Use setter for attribute's unsigned value
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
414ad644
TT
12020-09-29 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (read_attribute_value): Update.
4 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
5 set_unsigned>: New methods.
6 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
7
1bc397c5
TT
82020-09-29 Tom Tromey <tom@tromey.com>
9
10 * dwarf2/read.c (get_alignment, read_array_order)
11 (read_attribute_value, dwarf2_const_value_attr)
12 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
13 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
14 New methods.
15 (DW_SND): Remove.
16
630ed6b9
TT
172020-09-29 Tom Tromey <tom@tromey.com>
18
19 * dwarf2/read.c (read_attribute_value, lookup_die_type)
20 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
21 Update.
22 * dwarf2/attribute.h (struct attribute) <as_signature,
23 set_signature>: New methods.
24 (DW_SIGNATURE): Remove.
25
9d2246fc
TT
262020-09-29 Tom Tromey <tom@tromey.com>
27
28 * dwarf2/read.c (read_call_site_scope)
29 (handle_data_member_location, dwarf2_add_member_fn)
30 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
31 (partial_die_info::read, read_attribute_value)
32 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
33 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
34 (dwarf2_symbol_mark_computed): Update.
35 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
36 methods.
37 (DW_BLOCK): Remove.
38 * dwarf2/attribute.c (attribute::form_is_block): Add
39 DW_FORM_data16.
40
c6481205
TT
412020-09-29 Tom Tromey <tom@tromey.com>
42
43 * dwarf2/read.c (read_cutu_die_from_dwo)
44 (read_attribute_reprocess, read_attribute_value, read_attribute)
45 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
46 (dwarf2_fetch_constant_bytes): Update.
47 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
48 <set_string_noncanonical, set_string_canonical>: New methods.
49 <string_is_canonical>: Update comment.
50 <canonical_string_p>: Add assert.
51 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
52 * dwarf2/attribute.c (attribute::form_is_string): New method.
53 (attribute::string): Use it.
54
3b64bf15
TT
552020-09-29 Tom Tromey <tom@tromey.com>
56
57 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
58 (dump_die_shallow): Use canonical_string_p.
59 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
60 method.
61
2c830f54
TT
622020-09-29 Tom Tromey <tom@tromey.com>
63
64 * dwarf2/read.c (partial_die_info::read)
65 (dwarf2_const_value_attr, anonymous_struct_prefix, )
66 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
67 attribute::as_string.
68
6c412691
TT
692020-09-29 Tom Tromey <tom@tromey.com>
70
71 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
72 DW_ADDR.
73 (attribute::string): Don't use DW_STRING.
74 (attribute::get_ref_die_offset): Don't use DW_UNSND.
75 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
76
95f982e5
TT
772020-09-29 Tom Tromey <tom@tromey.com>
78
79 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
80 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
81 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
82 * dwarf2/attribute.h (struct attribute): Rename methods.
83 * dwarf2/attribute.c (attribute::as_address): Rename from
84 value_as_address.
85 (attribute::as_string): Rename from value_as_string.
86
f800b00e
TT
872020-09-29 Tom Tromey <tom@tromey.com>
88
89 * dwarf2/read.c (partial_die_info::read) <case
90 DW_AT_linkage_name>: Use value_as_string.
91 (dwarf2_string_attr): Use value_as_string.
92 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
93 method.
94 * dwarf2/attribute.c (attribute::value_as_string): New method.
95
de38d64a
PA
962020-09-29 Pedro Alves <pedro@palves.net>
97
98 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
99 defined before using '#pragma GCC diagnostic' instead of checking
100 __clang__.
101
9aed480c
TT
1022020-09-28 Tom Tromey <tom@tromey.com>
103
104 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
105 (handle_signal_stop): Update.
106 * procfs.c (procfs_target::insert_watchpoint): Update.
107 * target.h (target_have_steppable_watchpoint): Now a function.
108
8a3ecb79
TT
1092020-09-28 Tom Tromey <tom@tromey.com>
110
111 * infrun.c (set_schedlock_func): Update.
112 * target.h (target_can_lock_scheduler): Now a function.
113
55f6301a
TT
1142020-09-28 Tom Tromey <tom@tromey.com>
115
116 * inferior.h (class inferior) <has_execution>: Update.
117 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
118 * valops.c (find_function_in_inferior)
119 (value_allocate_space_in_inferior): Update.
120 * top.c (kill_or_detach): Update.
121 * target.c (target_preopen, set_target_permissions): Update.
122 (target_has_execution_current): Remove.
123 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
124 Update.
125 * solib.c (update_solib_list, reload_shared_libraries): Update.
126 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
127 * solib-dsbt.c (enable_break): Update.
128 * score-tdep.c (score7_fetch_inst): Update.
129 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
130 Update.
131 * remote.c (remote_target::start_remote)
132 (remote_target::remote_check_symbols, remote_target::open_1)
133 (remote_target::remote_detach_1, remote_target::verify_memory)
134 (remote_target::xfer_partial, remote_target::read_description)
135 (remote_target::get_min_fast_tracepoint_insn_len): Update.
136 * record-full.c (record_full_open_1): Update.
137 * record-btrace.c (record_btrace_target_open): Update.
138 * objc-lang.c (lookup_objc_class, lookup_child_selector)
139 (value_nsstring): Update.
140 * linux-thread-db.c (add_thread_db_info)
141 (thread_db_find_new_threads_silently, check_thread_db_callback)
142 (try_thread_db_load_1, record_thread): Update.
143 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
144 Update.
145 * linux-fork.c (checkpoint_command): Update.
146 * infrun.c (set_non_stop, set_observer_mode)
147 (check_multi_target_resumption, for_each_just_stopped_thread)
148 (maybe_remove_breakpoints, normal_stop)
149 (class infcall_suspend_state): Update.
150 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
151 (info_program_command, attach_command): Update.
152 * infcall.c (call_function_by_hand_dummy): Update.
153 * inf-loop.c (inferior_event_handler): Update.
154 * gcore.c (gcore_command, derive_heap_segment): Update.
155 * exec.c (exec_file_command): Update.
156 * eval.c (evaluate_subexp): Update.
157 * compile/compile.c (compile_to_object): Update.
158 * cli/cli-dump.c (restore_command): Update.
159 * breakpoint.c (update_watchpoint)
160 (update_inserted_breakpoint_locations)
161 (insert_breakpoint_locations, get_bpstat_thread): Update.
162 * target.h (target_has_execution): Remove macro.
163 (target_has_execution_current): Don't declare.
164 (target_has_execution): Rename from target_has_execution_1. Add
165 argument default.
166
05374cfd
TT
1672020-09-28 Tom Tromey <tom@tromey.com>
168
169 * mi/mi-main.c (exec_reverse_continue)
170 (mi_cmd_list_target_features): Update.
171 * infrun.c (set_exec_direction_func): Update.
172 * target.c (default_execution_direction): Update.
173 * reverse.c (exec_reverse_once): Update.
174 * target.h (target_can_execute_reverse): Now a function.
175
9dccd06e
TT
1762020-09-28 Tom Tromey <tom@tromey.com>
177
178 * tui/tui-regs.c (tui_get_register)
179 (tui_data_window::show_registers): Update.
180 * thread.c (scoped_restore_current_thread::restore)
181 (scoped_restore_current_thread::scoped_restore_current_thread):
182 Update.
183 * regcache-dump.c (regcache_print): Update.
184 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
185 Update.
186 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
187 * mep-tdep.c (current_me_module, current_options): Update.
188 * linux-thread-db.c (thread_db_load): Update.
189 * infcmd.c (registers_info, info_vector_command)
190 (info_float_command): Update.
191 * ia64-tdep.c (ia64_frame_prev_register)
192 (ia64_sigtramp_frame_prev_register): Update.
193 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
194 * gcore.c (derive_stack_segment): Update.
195 * frame.c (get_current_frame, has_stack_frames): Update.
196 * findvar.c (language_defn::read_var_value): Update.
197 * arm-tdep.c (arm_pc_is_thumb): Update.
198 * target.c (target_has_registers): Rename from
199 target_has_registers_1.
200 * target.h (target_has_registers): Remove macro.
201 (target_has_registers): Rename from target_has_registers_1.
202
841de120
TT
2032020-09-28 Tom Tromey <tom@tromey.com>
204
205 * windows-tdep.c (tlb_make_value): Update.
206 * tui/tui-regs.c (tui_data_window::show_registers): Update.
207 * thread.c (scoped_restore_current_thread::restore)
208 (scoped_restore_current_thread::scoped_restore_current_thread)
209 (thread_command): Update.
210 * stack.c (backtrace_command_1, frame_apply_level_command)
211 (frame_apply_all_command, frame_apply_command): Update.
212 * infrun.c (siginfo_make_value, restore_infcall_control_state):
213 Update.
214 * gcore.c (derive_stack_segment): Update.
215 * frame.c (get_current_frame, has_stack_frames): Update.
216 * auxv.c (info_auxv_command): Update.
217 * ada-tasks.c (ada_build_task_list): Update.
218 * target.c (target_has_stack): Rename from target_has_stack_1.
219 * target.h (target_has_stack): Remove macro.
220 (target_has_stack): Rename from target_has_stack_1.
221
a739972c
TT
2222020-09-28 Tom Tromey <tom@tromey.com>
223
224 * target.c (target_has_memory): Rename from target_has_memory_1.
225 * tui/tui-regs.c (tui_data_window::show_registers): Update.
226 * thread.c (scoped_restore_current_thread::restore)
227 (scoped_restore_current_thread::scoped_restore_current_thread):
228 Update.
229 * frame.c (get_current_frame, has_stack_frames): Update.
230 * target.h (target_has_memory): Remove macro.
231 (target_has_memory): Rename from target_has_memory_1.
232
5b8a4776
TT
2332020-09-28 Tom Tromey <tom@tromey.com>
234
235 * target.c (target_has_all_memory_1): Remove.
236 * target.h (target_has_all_memory): Remove define.
237 (target_has_all_memory_1): Don't declare.
238
bd356ec6
SM
2392020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
240
241 * ser-base.c: Adjust comments formatting.
242
2c72d5e5
TT
2432020-09-27 Tom Tromey <tom@tromey.com>
244
245 PR tui/25342:
246 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
247
35a98237
TT
2482020-09-27 Tom Tromey <tom@tromey.com>
249
250 PR tui/25342:
251 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
252
9e820dec
TT
2532020-09-27 Tom Tromey <tom@tromey.com>
254
255 * unittests/tui-selftests.c: Update.
256 * tui/tui-winsource.h (struct tui_source_window_base)
257 <extra_margin, show_line_number, refresh_pad>: New methods.
258 <m_max_length, m_pad>: New members.
259 (tui_copy_source_line): Update.
260 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
261 first_col, line_width, ndigits parameters. Add length.
262 (tui_source_window_base::show_source_line): Write to pad. Line
263 number now 0-based.
264 (tui_source_window_base::refresh_pad): New method.
265 (tui_source_window_base::show_source_content): Write to pad. Call
266 refresh_pad.
267 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
268 not refill.
269 (tui_source_window_base::update_exec_info): Call
270 show_line_number.
271 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
272 method.
273 <m_digits>: New member.
274 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
275 and m_max_length.
276 (tui_source_window::show_line_number): New method.
277 * tui/tui-io.h (tui_puts): Fix comment.
278 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
279 m_max_length.
280
c15c15c8
TT
2812020-09-27 Tom Tromey <tom@tromey.com>
282
283 * tui/tui-winsource.c
284 (tui_source_window_base::set_is_exec_point_at): Don't call
285 show_source_line.
286
149830c1
TT
2872020-09-27 Tom Tromey <tom@tromey.com>
288
289 * python/py-tui.c (class tui_py_window) <refresh_window>: New
290 method.
291 <erase>: Update.
292 <cursor_x, cursor_y>: Remove.
293 <m_inner_window>: New member.
294 (tui_py_window::rerender): Create inner window.
295 (tui_py_window::output): Write to inner window.
296
8f9929bb
GR
2972020-09-26 Gareth Rees <grees@undo.io> (tiny change)
298
299 PR python/26586
300 * cli/cli-script.c (execute_control_commands): don't set
301 instream to nullptr here as this breaks the from_tty argument
302 to gdb.execute in Python.
303 (execute_user_command): set instream to nullptr here instead.
304
956bdb59
SM
3052020-09-25 Simon Marchi <simon.marchi@efficios.com>
306
307 * infrun.h (infrun_debug_printf): Fix formatting.
308 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
309
3b93626b
SJ
3102020-09-25 Saagar Jha <saagar@saagarjha.com>
311
312 * compile/compile-object-load.h (struct munmap_list): Add
313 explicitly-defined move constructor.
314
b551a89f
TT
3152020-09-24 Tom Tromey <tromey@adacore.com>
316
317 PR tui/26638:
318 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
319 method.
320 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
321 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
322 (tui_prev_win): Rewrite.
323
99bb393f
HD
3242020-09-23 Hannes Domani <ssbssa@yahoo.de>
325
326 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
327 in WOW64 processes as SIGINT.
328 * nat/windows-nat.h: Make wow64_process a shared variable.
329 * windows-nat.c: Remove static wow64_process variable.
330
20a5fcbd
TT
3312020-09-23 Tom Tromey <tom@tromey.com>
332
333 PR symtab/25470:
334 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
335 offset and bit size.
336 * printcmd.c (print_scalar_formatted): Handle zero-length
337 integer.
338 (print_scalar_formatted): Use bit_size_differs_p.
339 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
340 constant.
341 (union type_specific): <int_stuff>: New member.
342 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
343 methods.
344 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
345 TYPE_SPECIFIC_FIELD.
346 (recursive_dump_type, copy_type_recursive): Update.
347 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
348 DW_AT_data_bit_offset.
349
bac51ab7
TT
3502020-09-23 Tom Tromey <tom@tromey.com>
351
352 * utils.h (class gdb_argv): Add move operators.
353 <append>: New methods.
354 * compile/compile.c (build_argc_argv): Remove.
355 (compile_args_argc): Remove.
356 (compile_args_argv): Change type.
357 (set_compile_args): Simplify.
358 (append_args): Remove.
359 (filter_args): Remove argcp parameter.
360 (get_args): Return gdb_argv. Simplify.
361 (compile_to_object): Update.
362
92677124
TT
3632020-09-23 Tom Tromey <tom@tromey.com>
364
365 * compile/compile-object-run.c (do_module_cleanup)
366 <~do_module_cleanup> :Remove.
367 (do_module_cleanup): Update.
368 * compile/compile-object-load.h (struct munmap_list): Add move
369 assignment operator.
370 <source_file>: Now a std::string.
371 <munmap_list>: Rename. No longer a pointer.
372 * compile/compile-object-load.c (struct setup_sections_data): Add
373 constructor.
374 <setup_one_section>: Declare.
375 <munmap_list>: Move earlier.
376 <m_bfd>: New member.
377 <m_last_size, m_last_section_first, m_last_prot,
378 m_last_max_alignment>: Rename, add initializers where needed.
379 (setup_sections_data::setup_one_section): Rename from
380 setup_sections. Update.
381 (compile_object_load): Update. Don't use bfd_map_over_sections.
382
e616f60a
TT
3832020-09-23 Tom Tromey <tom@tromey.com>
384
385 * compile/compile-object-run.c (struct do_module_cleanup): Add
386 parameters to constructor. Update destructor.
387 <source_file, scope, scope_data, out_value_type, out_value_addr,
388 munmap_list_head, objfile_name_string>: Remove.
389 <module>: New member.
390 (do_module_cleanup): Update.
391 (compile_object_run): Update.
392
e947a848
TT
3932020-09-23 Tom Tromey <tom@tromey.com>
394
395 * compile/compile.c (eval_compile_command): Update.
396 * compile/compile-object-run.h (compile_object_run): Take a
397 compile_module_up.
398 * compile/compile-object-run.c (compile_object_run): Take a
399 compile_module_up.
400 * compile/compile-object-load.h (struct compile_module): Add
401 constructor, destructor.
402 (compile_module_up): New typedef.
403 (compile_object_load): Return compile_object_up.
404 * compile/compile-object-load.c (compile_object_load): Return
405 compile_module_up.
406
0dbf6ee6
TT
4072020-09-23 Tom Tromey <tom@tromey.com>
408
409 * compile/compile-object-run.c (struct do_module_cleanup): Add
410 constructor, destructor.
411 <objfile_name_string>: Don't use struct hack.
412 (do_module_cleanup): Use delete.
413 (compile_object_run): Use new.
414
ebe824f5
TT
4152020-09-23 Tom Tromey <tom@tromey.com>
416
417 * compile/compile-cplus-types.c
418 (compile_cplus_convert_struct_or_union): Use std::vector.
419 (compile_cplus_convert_func): Likewise.
420 * compile/compile-c-types.c (convert_func): Use std::vector.
421
5dd918d9
TT
4222020-09-21 Tom Tromey <tromey@adacore.com>
423
424 * sparc-tdep.c (sparc32_skip_prologue): Use
425 skip_prologue_using_sal.
426
5486c517
TT
4272020-09-19 Tom Tromey <tom@tromey.com>
428
429 * symfile.c (add_section_size_callback): Remove.
430 (load_one_section): Rename from load_section_callback. Change
431 parameters.
432 (generic_load): Use foreach.
433
8a6bb1d1
TT
4342020-09-19 Tom Tromey <tom@tromey.com>
435
436 * exec.c (add_to_section_table): Remove.
437 (build_section_table): Use foreach.
438
08f93a1a
TT
4392020-09-19 Tom Tromey <tom@tromey.com>
440
441 * elfread.c (elf_locate_sections): Change parameters.
442 (elf_symfile_read): Use foreach.
443
03cd72b8
TT
4442020-09-19 Tom Tromey <tom@tromey.com>
445
446 * cli/cli-dump.c (struct callback_data): Remove.
447 (restore_one_section): Rename from restore_section_callback.
448 Change parameters.
449 (restore_binary_file): Change parameters.
450 (restore_command): Use foreach.
451
f4f2b85f
TT
4522020-09-19 Tom Tromey <tom@tromey.com>
453
454 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
455 (gcore_copy_callback): Likewise.
456 (gcore_memory_sections): Use foreach.
457
b35c1d1c
TT
4582020-09-19 Tom Tromey <tom@tromey.com>
459
460 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
461 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
462 parameters.
463 (generic_elf_osabi_sniffer): Use foreach.
464 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
465 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
466
5bb6e9dd
TT
4672020-09-19 Tom Tromey <tom@tromey.com>
468
469 * dwarf2/read.c (locate_dwz_sections): Change parameters.
470 (dwarf2_get_dwz_file): Use foreach.
471 (dwarf2_locate_dwo_sections): Change parameters.
472 (open_and_init_dwo_file): Use foreach.
473 (dwarf2_locate_common_dwp_sections): Change parameters.
474 (open_and_init_dwp_file): Use foreach.
475
ad7277da
TT
4762020-09-19 Tom Tromey <tom@tromey.com>
477
478 * symfile.h: (find_lowest_section): Don't declare.
479 * symfile.c (find_lowest_section): Now static. Change
480 parameters.
481 (struct place_section_arg): Remove.
482 (place_section): Change parameters.
483 (addr_info_make_relative): Use foreach.
484 (symfile_dummy_outputs): Remove.
485 (default_symfile_relocate): Use foreach.
486
cb814f2e
TT
4872020-09-19 Tom Tromey <tom@tromey.com>
488
489 * objfiles.c (add_to_objfile_sections): Rename from
490 add_to_objfile_sections_full.
491 (add_to_objfile_sections): Remove.
492 (build_objfile_section_table): Use foreach.
493
3cabfd26
TT
4942020-09-19 Tom Tromey <tom@tromey.com>
495
496 * stap-probe.c (get_stap_base_address_1): Remove.
497 (get_stap_base_address): Use foreach.
498
1ce51eb5
TT
4992020-09-19 Tom Tromey <tom@tromey.com>
500
501 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
502 parameters.
503 (gdb_bfd_close_or_warn): Use foreach.
504
a190fabb
TT
5052020-09-19 Tom Tromey <tom@tromey.com>
506
507 * corelow.c (add_to_thread_list): Change parameters.
508 (core_target_open): Use foreach.
509
cafb0d81
TT
5102020-09-19 Tom Tromey <tom@tromey.com>
511
512 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
513 existing function.
514
c8d5abea
AB
5152020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
516
517 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
518 for arrays.
519
6d816919
AB
5202020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
521
522 * eval.c: Remove 'f-lang.h' include.
523 (value_f90_subarray): Moved to f-lang.c.
524 (eval_call): Renamed to...
525 (evaluate_subexp_do_call): ...this, is no longer static, header
526 comment moved into header file.
527 (evaluate_funcall): Update call to eval_call.
528 (skip_undetermined_arglist): Moved to f-lang.c.
529 (fortran_value_subarray): Likewise.
530 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
531 moved to evaluate_subexp_f.
532 (calc_f77_array_dims): Moved to f-lang.c
533 * expprint.c (print_subexp_funcall): New function.
534 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
535 moved to print_subexp_f, OP_FUNCALL uses new function.
536 (dump_subexp_body_funcall): New function.
537 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
538 moved to dump_subexp_f, OP_FUNCALL uses new function.
539 * expression.h (evaluate_subexp_do_call): Declare.
540 * f-lang.c (value_f90_subarray): Moved from eval.c.
541 (skip_undetermined_arglist): Likewise.
542 (calc_f77_array_dims): Likewise.
543 (fortran_value_subarray): Likewise.
544 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
545 (operator_length_f): Likewise.
546 (print_subexp_f): Likewise.
547 (dump_subexp_body_f): Likewise.
548 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
549 declaration of this operation to here.
550 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
551 support moved to operator_length_f.
552 * parser-defs.h (dump_subexp_body_funcall): Declare.
553 (print_subexp_funcall): Declare.
554 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
555 fortran-operator.def.
556
8c37706a
AB
5572020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
558
559 * eval.c (fortran_value_subarray): New function, content is taken
560 from...
561 (evaluate_subexp_standard): ...here, in two places. Now arrays
562 and strings both call the new function.
563 (calc_f77_array_dims): Add header comment, handle strings.
564
14f9473c
VC
5652020-09-18 Victor Collod <vcollod@nvidia.com>
566
567 PR gdb/26635
568 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
569 (i386_analyze_prologue): Call i386_skip_endbr.
570
b60cea74
TT
5712020-09-18 Tom Tromey <tromey@adacore.com>
572
573 * windows-nat.c (struct windows_nat_target) <wait>: Update.
574 (windows_nat_target::wait): Update.
575 * target/wait.h (enum target_wait_flag): New. Use
576 DEF_ENUM_FLAGS_TYPE.
577 * target/target.h (target_wait): Change type of options.
578 * target.h (target_options_to_string, default_target_wait):
579 Update.
580 (struct target_ops) <wait>: Change type of options.
581 * target.c (target_wait, default_target_wait, do_option): Change
582 type of "options".
583 (target_options_to_string): Likewise.
584 * target-delegates.c: Rebuild.
585 * target-debug.h (target_debug_print_target_wait_flags): Rename
586 from target_debug_print_options.
587 * sol-thread.c (class sol_thread_target) <wait>: Update.
588 (sol_thread_target::wait): Update.
589 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
590 (rs6000_nat_target::wait): Update.
591 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
592 Update.
593 (remote_target::wait_ns, remote_target::wait_as): Change type of
594 "options".
595 (remote_target::wait): Update.
596 * remote-sim.c (struct gdbsim_target) <wait>: Update.
597 (gdbsim_target::wait): Update.
598 * record-full.c (class record_full_base_target) <wait>: Update.
599 (record_full_wait_1): Change type of "options".
600 (record_full_base_target::wait): Update.
601 * record-btrace.c (class record_btrace_target) <wait>: Update.
602 (record_btrace_target::wait): Update.
603 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
604 Update.
605 (ravenscar_thread_target::wait): Update.
606 * procfs.c (class procfs_target) <wait>: Update.
607 (procfs_target::wait): Update.
608 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
609 * obsd-nat.c (obsd_nat_target::wait): Update.
610 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
611 (nto_procfs_target::wait): Update.
612 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
613 * nbsd-nat.c (nbsd_wait): Change type of "options".
614 (nbsd_nat_target::wait): Update.
615 * linux-thread-db.c (class thread_db_target) <wait>: Update.
616 (thread_db_target::wait): Update.
617 * linux-nat.h (class linux_nat_target) <wait>: Update.
618 * linux-nat.c (linux_nat_target::wait): Update.
619 (linux_nat_wait_1): Update.
620 * infrun.c (do_target_wait_1, do_target_wait): Change type of
621 "options".
622 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
623 * inf-ptrace.c (inf_ptrace_target::wait): Update.
624 * go32-nat.c (struct go32_nat_target) <wait>: Update.
625 (go32_nat_target::wait): Update.
626 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
627 * gnu-nat.c (gnu_nat_target::wait): Update.
628 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
629 * fbsd-nat.c (fbsd_nat_target::wait): Update.
630 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
631 * darwin-nat.c (darwin_nat_target::wait): Update.
632 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
633 (bsd_uthread_target::wait): Update.
634 * aix-thread.c (class aix_thread_target) <wait>: Update.
635 (aix_thread_target::wait): Update.
636
0295dde6
AB
6372020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
638
639 * compile/compile-object-run.c (create_copied_type_recursive): New
640 function.
641 (compile_object_run): Use new function.
642
d3483b43
JT
6432020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
644
645 * NEWS: Mention x86_64 Cygwin core file support.
646
e7d612ad
JT
6472020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
648
649 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
650 (core_process_module_section): Handle NOTE_INFO_MODULE64.
651
aff9d387
JT
6522020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
653
62a5151b
JT
654 * windows-tdep.h: Add prototypes.
655 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
656 (i386_windows_core_pid_to_str): Move and rename ...
657 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
658 (windows_core_pid_to_str): ... and here.
659 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
660
6612020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
662 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
663 (amd64_windows_init_abi_common): ... and register.
664
7d155da3
JT
6652020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
666
667 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
668 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
669
e8ef12b9
PA
6702020-09-18 Pedro Alves <pedro@palves.net>
671
672 PR gdb/26631
673 * thread.c (thread_find_command): Switch inferior before calling
674 target methods.
675
c1e1314d
TT
6762020-09-17 Tom Tromey <tromey@adacore.com>
677
678 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
679 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
680 (tdesc_arch_data_up): New typedef.
681 (tdesc_use_registers, tdesc_data_alloc): Update.
682 (tdesc_data_cleanup): Don't declare.
683 * target-descriptions.c (tdesc_data_alloc): Return a
684 tdesc_arch_data_up.
685 (tdesc_arch_data_deleter::operator()): Rename from
686 tdesc_data_cleanup. Change argument type.
687 (tdesc_use_registers): Change early_data to an rvalue reference.
688 (tdesc_use_registers): Don't use delete.
689 * sparc-tdep.c (sparc32_gdbarch_init): Update.
690 * s390-tdep.c (s390_gdbarch_init): Update.
691 * rx-tdep.c (rx_gdbarch_init): Update.
692 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
693 * riscv-tdep.c (riscv_gdbarch_init): Update.
694 * or1k-tdep.c (or1k_gdbarch_init): Update.
695 * nios2-tdep.c (nios2_gdbarch_init): Update.
696 * nds32-tdep.c (nds32_gdbarch_init): Update.
697 * mips-tdep.c (mips_gdbarch_init): Update.
698 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
699 * m68k-tdep.c (m68k_gdbarch_init): Update.
700 * i386-tdep.c (i386_gdbarch_init): Update.
701 * arm-tdep.c (arm_gdbarch_init): Update.
702 * arc-tdep.c (arc_tdesc_init): Update.
703 (arc_gdbarch_init): Update.
704 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
705
0363df3d
HD
7062020-09-17 Hannes Domani <ssbssa@yahoo.de>
707
708 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
709 for WOW64 processes.
710
280a9412
TT
7112020-09-17 Tom Tromey <tom@tromey.com>
712
713 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
714
6108fd18
TT
7152020-09-17 Tom Tromey <tom@tromey.com>
716
717 * value.c (preserve_values): Update.
718 * python/py-type.c (save_objfile_types): Update.
719 * guile/scm-type.c (save_objfile_types): Update.
720 * gdbtypes.h (create_copied_types_hash): Return htab_up.
721 * gdbtypes.c (create_copied_types_hash): Return htab_up.
722 * compile/compile-object-run.c (compile_object_run): Update.
723
fa9b1164
TT
7242020-09-17 Tom Tromey <tom@tromey.com>
725
726 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
727 Remove.
728 <m_table>: Now htab_up.
729 * typeprint.c (typedef_hash_table::recursively_update)
730 (typedef_hash_table::add_template_parameters)
731 (typedef_hash_table::typedef_hash_table): Update.
732 (typedef_hash_table::~typedef_hash_table): Remove.
733 (typedef_hash_table::typedef_hash_table)
734 (typedef_hash_table::find_global_typedef)
735 (typedef_hash_table::find_typedef): Update.
736
eb53f105
TT
7372020-09-17 Tom Tromey <tom@tromey.com>
738
739 * target-descriptions.c (tdesc_use_registers): Use htab_up.
740
7a8a5d47
TT
7412020-09-17 Tom Tromey <tom@tromey.com>
742
743 * linespec.c (class decode_compound_collector)
744 <~decode_compound_collector>: Remove.
745 <m_unique_syms>: Now htab_up.
746 (decode_compound_collector::operator ()): Update.
747 (class symtab_collector) <~symtab_collector>: Remove.
748 <m_symtab_table>: Now htab_up.
749 (symtab_collector::operator ()): Update.
750
99032cfc
TT
7512020-09-17 Tom Tromey <tom@tromey.com>
752
753 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
754 (filename_seen_cache::clear): Update.
755 (~filename_seen_cache): Remove.
756 (filename_seen_cache::seen): Update.
757 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
758 htab_up.
759 <~filename_seen_cache>: Remove.
760 <traverse>: Update.
761
32580f6d
TT
7622020-09-17 Tom Tromey <tom@tromey.com>
763
764 * completer.c (completion_tracker::discard_completions)
765 (completion_tracker::~completion_tracker)
766 (completion_tracker::maybe_add_completion)
767 (completion_tracker::remove_completion)
768 (completion_tracker::recompute_lowest_common_denominator)
769 (completion_tracker::build_completion_result): Update.
770 * completer.h (class completion_tracker) <have_completions>:
771 Update.
772 <m_entries_hash>: Now htab_up.
773
c1fb9836
TT
7742020-09-17 Tom Tromey <tom@tromey.com>
775
776 * breakpoint.c (ambiguous_names_p): Use htab_up.
777
88f07206
TT
7782020-09-17 Tom Tromey <tom@tromey.com>
779
780 * auto-load.c (struct auto_load_pspace_info)
781 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
782 <loaded_script_files, loaded_script_texts>: Change type to
783 htab_up.
784 (~auto_load_pspace_info) Remove.
785 (init_loaded_scripts_info, maybe_add_script_file)
786 (maybe_add_script_text, auto_load_info_scripts): Update.
787
9519b2ee
TT
7882020-09-17 Tom Tromey <tromey@adacore.com>
789
790 * c-exp.y (name_obstack): Now static.
791
d2cd4113
CC
7922020-09-17 Chungyi Chi <demonic@csie.io>
793
794 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
795
b650a282
SM
7962020-09-16 Simon Marchi <simon.marchi@efficios.com>
797
798 * breakpoint.h (init_catchpoint): Change int parameter to bool.
799 (add_solib_catchpoint): Likewise.
800 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
801 to bool.
802 (add_solib_catchpoint): Change int parameter/variable to bool.
803 (catch_load_or_unload): Likewise.
804 (init_catchpoint): Likewise.
805 (create_fork_vfork_event_catchpoint): Likewise.
806 (catch_fork_command_1): Likewise.
807 (catch_exec_command_1): Likewise.
808
4d0bcfcf
SM
8092020-09-16 Simon Marchi <simon.marchi@efficios.com>
810
811 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
812 Change instance_flags to m_instance_flags.
813
fe830662
TT
8142020-09-16 Tom Tromey <tromey@adacore.com>
815
816 PR gdb/26598:
817 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
818
fe5ddfc3
JB
8192020-09-16 John Baldwin <jhb@FreeBSD.org>
820
821 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
822 PL_FLAG_EXEC.
823 (fbsd_nat_target::insert_exec_catchpoint)
824 (fbsd_nat_target::remove_exec_catchpoint): Always define.
825 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
826 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
827
e911c666
JB
8282020-09-16 John Baldwin <jhb@FreeBSD.org>
829
830 * configure.ac: Remove check for kinfo_getvmmap().
831 * configure, config.in: Regenerate.
832 * fbsd-nat.c (fbsd_read_mapping): Remove
833 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
834 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
835 kinfo_get_vmmap() are always present.
836
1f17d372
JB
8372020-09-16 John Baldwin <jhb@FreeBSD.org>
838
839 * fbsd-nat.c: Always include support for
840 TARGET_OBJECT_SIGNAL_INFO.
841
bcb1da7f
JB
8422020-09-16 John Baldwin <jhb@FreeBSD.org>
843
844 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
845 sysctl and remove procfs fallback.
846
5515f729
JB
8472020-09-16 John Baldwin <jhb@FreeBSD.org>
848
849 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
850 * fbsd-nat.h: Likewise.
851
da1df1db
TBA
8522020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
853
854 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
855 argument.
856
0e25e767
AB
8572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
858
859 * ada-lang.c (ada_language_data): Delete.
860 (ada_language): Remove references to ada_language_data.
861 * c-lang.c (c_language_data): Delete.
862 (c_language): Remove references to c_language_data.
863 (cplus_language_data): Delete.
864 (cplus_language): Remove references to cplus_language_data.
865 (asm_language_data): Delete.
866 (asm_language): Remove references to asm_language_data.
867 (minimal_language_data): Delete.
868 (minimal_language): Remove references to minimal_language_data.
869 * d-lang.c (d_language_data): Delete.
870 (d_language): Remove references to d_language_data.
871 * f-lang.c (f_language_data): Delete.
872 (f_language): Remove references to f_language_data.
873 * go-lang.c (go_language_data): Delete.
874 (go_language): Remove references to go_language_data.
875 * language.c (unknown_language_data): Delete.
876 (unknown_language): Remove references to unknown_language_data.
877 (auto_language_data): Delete.
878 (auto_language): Remove references to auto_language_data.
879 * language.h (language_data): Delete struct.
880 (language_defn): No longer inherit from language_data.
881 * m2-lang.c (m2_language_data): Delete.
882 (m2_language): Remove references to m2_language_data.
883 * objc-lang.c (objc_language_data): Delete.
884 (objc_language): Remove references to objc_language_data.
885 * opencl-lang.c (opencl_language_data): Delete.
886 (opencl_language): Remove references to opencl_language_data.
887 * p-lang.c (pascal_language_data): Delete.
888 (pascal_language): Remove references to pascal_language_data.
889 * rust-lang.c (rust_language_data): Delete.
890 (rust_language): Remove references to rust_language_data.
891
b7c6e27d
AB
8922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
893
894 * ada-lang.c (ada_language_data): Remove la_op_print_tab
895 initializer.
896 (ada_language::opcode_print_table): New member function.
897 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
898 (c_language::opcode_print_table): New member function.
899 (cplus_language_data): Remove la_op_print_tab initializer.
900 (cplus_language::opcode_print_table): New member function.
901 (asm_language_data): Remove la_op_print_tab initializer.
902 (asm_language::opcode_print_table): New member function.
903 (minimal_language_data): Remove la_op_print_tab initializer.
904 (minimal_language::opcode_print_table): New member function.
905 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
906 (d_language::opcode_print_table): New member function.
907 * expprint.c (print_subexp_standard): Update call to
908 opcode_print_table.
909 (op_string): Likewise.
910 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
911 (f_language::opcode_print_table): New member function.
912 * go-lang.c (go_language_data): Remove la_op_print_tab
913 initializer.
914 (go_language::opcode_print_table): New member function.
915 * language.c (unknown_language_data): Remove la_op_print_tab
916 initializer.
917 (unknown_language::opcode_print_table): New member function.
918 (auto_language_data): Remove la_op_print_tab initializer.
919 (auto_language::opcode_print_table): New member function.
920 * language.h (language_data): Remove la_op_print_tab field.
921 (language_defn::opcode_print_table): Declare new member function.
922 * m2-lang.c (m2_language_data): Remove la_op_print_tab
923 initializer.
924 (m2_language::opcode_print_table): New member function.
925 * objc-lang.c (objc_language_data): Remove la_op_print_tab
926 initializer.
927 (objc_language::opcode_print_table): New member function.
928 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
929 initializer.
930 (opencl_language::opcode_print_table): New member function.
931 * p-lang.c (pascal_language_data): Remove la_op_print_tab
932 initializer.
933 (pascal_language::opcode_print_table): New member function.
934 * rust-lang.c (rust_language_data): Remove la_op_print_tab
935 initializer.
936 (rust_language::opcode_print_table): New member function.
937
5aba6ebe
AB
9382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
939
940 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
941 (ada_language::expression_ops): New member function.
942 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
943 (c_language::expression_ops): New member function.
944 (cplus_language_data): Remove la_exp_desc initializer.
945 (cplus_language::expression_ops): New member function.
946 (asm_language_data): Remove la_exp_desc initializer.
947 (asm_language::expression_ops): New member function.
948 (minimal_language_data): Remove la_exp_desc initializer.
949 (minimal_language::expression_ops): New member function.
950 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
951 (d_language::expression_ops): New member function.
952 * eval.c (evaluate_subexp): Update call to expression_ops.
953 * expprint.c (print_subexp): Likewise.
954 (op_name): Likewise.
955 (dump_subexp_body): Likewise.
956 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
957 (f_language::expression_ops): New member function.
958 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
959 (go_language::expression_ops): New member function.
960 * language.c (language_defn::expression_ops): New function.
961 (unknown_language_data): Remove la_exp_desc initializer.
962 (auto_language_data): Likewise.
963 * language.h (language_data): Remove la_exp_desc field.
964 (language_defn::expression_ops): Declare new member function.
965 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
966 (m2_language::expression_ops): New member function.
967 * objc-lang.c (objc_language_data): Remove la_exp_desc
968 initializer.
969 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
970 initializer.
971 (opencl_language::expression_ops): New member function.
972 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
973 * parse.c (operator_length): Update call to expression_ops.
974 (exp_iterate): Likewise.
975 * rust-lang.c (rust_language_data): Remove la_exp_desc
976 initializer.
977 (ruse_language::expression_ops): New member function.
978
b63a3f3f
AB
9792020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
980
981 * ada-lang.c (ada_language_data): Remove la_varobj_ops
982 initializer.
983 (ada_language::varobj_ops): New member function.
984 * c-lang.c (c_language_data): Remove la_varobj_ops
985 initializer.
986 (cplus_language_data): Likewise.
987 (cplus_language::varobj_ops): New member function.
988 (asm_language_data): Remove la_varobj_ops initializer.
989 (minimal_language_data): Likewise.
990 * d-lang.c (d_language_data): Likewise.
991 * f-lang.c (f_language_data): Likewise.
992 * go-lang.c (go_language_data): Likewise.
993 * language.c (language_defn::varobj_ops): New function.
994 (unknown_language_data): Remove la_varobj_ops
995 initializer.
996 (auto_language_data): Likewise.
997 * language.h (language_data): Remove la_varobj_ops field.
998 (language_defn::varobj_ops): Declare new member function.
999 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1000 * objc-lang.c (objc_language_data): Likewise.
1001 * opencl-lang.c (opencl_language_data): Likewise.
1002 * p-lang.c (pascal_language_data): Likewise.
1003 * rust-lang.c (rust_language_data): Likewise.
1004 * varobj.c (varobj_create): Update call to varobj_ops.
1005 * varobj.h (default_varobj_ops): Delete define.
1006
1ac14a04
AB
10072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1008
1009 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1010 initializer.
1011 * c-lang.c (c_language_data): Likewise.
1012 (c_language::macro_expansion): New member function.
1013 (cplus_language_data): Likewise.
1014 (cplus_language::macro_expansion): New member function.
1015 (asm_language_data): Likewise.
1016 (asm_language::macro_expansion): New member function.
1017 (minimal_language_data): Likewise.
1018 (minimal_language::macro_expansion): New member function.
1019 * d-lang.c (d_language_data): Remove la_macro_expansion
1020 initializer.
1021 * f-lang.c (f_language_data): Likewise.
1022 * go-lang.c (go_language_data): Likewise.
1023 * language.c (unknown_language_data): Likewise.
1024 (auto_language_data): Likewise.
1025 * language.h (language_data): Remove la_macro_expansion field.
1026 (language_defn::macro_expansion): New member function.
1027 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1028 initializer.
1029 * objc-lang.c (objc_language_data): Likewise.
1030 (objc_language::macro_expansion): New member function.
1031 * opencl-lang.c (opencl_language_data): Likewise.
1032 (opencl_language::macro_expansion): New member function.
1033 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1034 initializer.
1035 * rust-lang.c (rust_language_data): Likewise.
1036 * symtab.c (default_collect_symbol_completion_matches_break_on):
1037 Update call to macro_expansion.
1038
3a3440fb
AB
10392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1040
1041 * ada-lang.c (ada_language_data): Remove la_array_ordering
1042 initializer.
1043 * c-lang.c (c_language_data): Likewise.
1044 (cplus_language_data): Likewise.
1045 (asm_language_data): Likewise.
1046 (minimal_language_data): Likewise.
1047 * d-lang.c (d_language_data): Likewise.
1048 * dwarf2/read.c (read_array_order): Update for call to
1049 array_ordering.
1050 * f-lang.c (f_language_data): Remove la_array_ordering
1051 initializer.
1052 (f_language::array_ordering): New member function.
1053 * go-lang.c (go_language_data): Remove la_array_ordering
1054 initializer.
1055 * language.c (unknown_language_data): Likewise.
1056 (auto_language_data): Likewise.
1057 * language.h (language_data): Delete la_array_ordering field.
1058 (language_defn::array_ordering): New member function.
1059 * m2-lang.c (m2_language_data): Remove la_array_ordering
1060 initializer.
1061 * objc-lang.c (objc_language_data): Likewise.
1062 * opencl-lang.c (opencl_language_data): Likewise.
1063 * p-lang.c (pascal_language_data): Likewise.
1064 * rust-lang.c (rust_language_data): Likewise.
1065
0d201fa4
AB
10662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1067
1068 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1069 initializer.
1070 * c-lang.c (c_language_data): Likewise.
1071 (cplus_language_data): Likewise.
1072 (asm_language_data): Likewise.
1073 (minimal_language_data): Likewise.
1074 * d-lang.c (d_language_data): Likewise.
1075 * f-lang.c (f_language_data): Likewise.
1076 (f_language::case_sensitivity): New member function.
1077 * go-lang.c (go_language_data): Remove la_case_sensitivity
1078 initializer.
1079 * language.c (enum case_mode): Moved here from language.h.
1080 (case_mode): Make static.
1081 (show_case_command): Update for case_sensitivity being a method.
1082 (set_case_command): Likewise.
1083 (set_range_case): Likewise.
1084 (unknown_language_data): Remove la_case_sensitivity initializer.
1085 (auto_language_data): Likewise.
1086 * language.h (case_mode): Delete, move enum declaration to
1087 language.c.
1088 (language_data): Delete la_case_sensitivity field.
1089 (language_defn::case_sensitivity): New member function.
1090 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1091 initializer.
1092 * objc-lang.c (objc_language_data): Likewise.
1093 * opencl-lang.c (opencl_language_data): Likewise.
1094 * p-lang.c (pascal_language_data): Likewise.
1095 * rust-lang.c (rust_language_data): Likewise.
1096
efdf6a73
AB
10972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1098
1099 * ada-lang.c (ada_language_data): Remove la_range_check
1100 initializer.
1101 * c-lang.c (c_language_data): Likewise.
1102 (cplus_language_data): Likewise.
1103 (asm_language_data): Likewise.
1104 (minimal_language_data): Likewise.
1105 * d-lang.c (d_language_data): Likewise.
1106 * f-lang.c (f_language_data): Likewise.
1107 (f_language::range_checking_on_by_default): New member function.
1108 * go-lang.c (go_language_data): Remove la_range_check initializer.
1109 * language.c (enum range_mode): Moved here from language.h.
1110 (range_mode): Made static.
1111 (show_range_command): Update to use
1112 range_checking_on_by_default.
1113 (set_range_command): Likewise.
1114 (set_range_case): Likewise.
1115 (unknown_language_data): Remove la_range_check initializer.
1116 (auto_language_data): Likewise.
1117 * language.h (range_mode): Delete. Enum definition moved to
1118 language.c.
1119 (language_data): Remove la_range_check field.
1120 (language_defn::range_checking_on_by_default): New member
1121 function.
1122 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1123 (m2_language::range_checking_on_by_default): New member function.
1124 * objc-lang.c (objc_language_data): Remove la_range_check
1125 initializer.
1126 * opencl-lang.c (opencl_language_data): Likewise.
1127 * p-lang.c (pascal_language_data): Likewise.
1128 (pascal_language::range_checking_on_by_default): New member
1129 function.
1130 * rust-lang.c (rust_language_data): Remove la_range_check
1131 initializer.
1132 (rust_language::range_checking_on_by_default): New member
1133 function.
1134
bf92aec5
AB
11352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1136
1137 * dwarf2/read.c (dwarf2_physname): Remove special case for
1138 language_go.
1139 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1140 member function.
1141
d3355e4d
AB
11422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1143
1144 * ada-lang.c (ada_language_data): Remove
1145 la_store_sym_names_in_linkage_form_p initializer.
1146 (ada_language::store_sym_names_in_linkage_form_p): New member
1147 function.
1148 * c-lang.c (c_language_data): Remove
1149 la_store_sym_names_in_linkage_form_p initializer.
1150 (c_language::store_sym_names_in_linkage_form_p): New member
1151 function.
1152 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1153 initializer.
1154 (asm_language_data): Likewise.
1155 (asm_language::store_sym_names_in_linkage_form_p): New member
1156 function.
1157 (minimal_language_data): Remove
1158 la_store_sym_names_in_linkage_form_p initializer.
1159 (minimal_language::store_sym_names_in_linkage_form_p): New member
1160 function.
1161 * d-lang.c (d_language_data): Remove
1162 la_store_sym_names_in_linkage_form_p initializer.
1163 * dwarf2/read.c (dwarf2_physname): Update call to
1164 store_sym_names_in_linkage_form_p.
1165 * f-lang.c (f_language_data): Remove
1166 la_store_sym_names_in_linkage_form_p initializer.
1167 * go-lang.c (go_language_data): Remove
1168 la_store_sym_names_in_linkage_form_p initializer.
1169 * language.c (unknown_language_data): Remove
1170 la_store_sym_names_in_linkage_form_p initializer.
1171 (unknown_language::store_sym_names_in_linkage_form_p): New member
1172 function.
1173 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1174 initializer.
1175 (auto_language::store_sym_names_in_linkage_form_p): New member
1176 function.
1177 * language.h (language_data): Remove
1178 la_store_sym_names_in_linkage_form_p member variable.
1179 (language_defn::store_sym_names_in_linkage_form_p): New member
1180 function.
1181 * m2-lang.c (m2_language_data): Remove
1182 la_store_sym_names_in_linkage_form_p initializer.
1183 * objc-lang.c (objc_language_data): Likewise.
1184 * opencl-lang.c (opencl_language_data): Likewise.
1185 * p-lang.c (pascal_language_data): Likewise.
1186 * rust-lang.c (rust_language_data): Likewise.
1187
22c12a6c
AB
11882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1189
1190 * ada-lang.c (ada_language_data): Remove string_lower_bound
1191 initializer.
1192 * c-lang.c (c_language_data): Likewise.
1193 (cplus_language_data): Likewise.
1194 (asm_language_data): Likewise.
1195 (minimal_language_data): Likewise.
1196 * d-lang.c (d_language_data): Likewise.
1197 * f-lang.c (f_language_data): Likewise.
1198 * go-lang.c (go_language_data): Likewise.
1199 * language.c (unknown_language_data): Likewise.
1200 (auto_language_data): Likewise.
1201 * language.h (language_data): Remove string_lower_bound field.
1202 (language_defn::string_lower_bound): New member function.
1203 * m2-lang.c (m2_language_data): Remove string_lower_bound
1204 initializer.
1205 (m2_language::string_lower_bound): New member function.
1206 * objc-lang.c (objc_language_data): Remove string_lower_bound
1207 initializer.
1208 * opencl-lang.c (opencl_language_data): Likewise.
1209 * p-lang.c (pascal_language_data): Likewise.
1210 * rust-lang.c (rust_language_data): Likewise.
1211 * valops.c (value_cstring): Update call to string_lower_bound.
1212 (value_string): Likewise.
1213 * value.c (allocate_repeated_value): Likewise.
1214
1c236ddd
AB
12152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1216
1217 * valops.c (value_repeat): Fix incorrect argument name in comment.
1218
67bd3fd5
AB
12192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1220
1221 * ada-lang.c (ada_language_data): Remove c_style_arrays
1222 initializer.
1223 (ada_language::c_style_arrays_p): New member fuction.
1224 * c-lang.c (c_language_data): Remove c_style_arrays
1225 initializer.
1226 (cplus_language_data): Likewise.
1227 (asm_language_data): Likewise.
1228 (minimal_language_data): Likewise.
1229 * d-lang.c (d_language_data): Likewise.
1230 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1231 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1232 (f_language::c_style_arrays_p): New member function.
1233 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1234 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1235 * language.c (unknown_language_data): Remove c_style_arrays
1236 initializer.
1237 (auto_language_data): Likewise.
1238 * language.h (language_data): Remove c_style_arrays field.
1239 (language_defn::c_style_arrays_p): New member function.
1240 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1241 (m2_language::c_style_arrays_p): New member function.
1242 * objc-lang.c (objc_language_data): Remove c_style_arrays
1243 initializer.
1244 * opencl-lang.c (opencl_language_data): Likewise.
1245 * p-lang.c (pascal_language_data): Likewise.
1246 * rust-lang.c (rust_language_data): Likewise.
1247 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1248 and update local variable to a bool.
1249 * valops.c (value_cast): Update call to c_style_arrays_p.
1250 (value_array): Likewise.
1251 * value.c (coerce_array): Likewise.
1252
85967615
AB
12532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1254
1255 * ada-lang.c (ada_language_data): Remove la_language initializer.
1256 * c-lang.c (c_language_data): Likewise.
1257 (cplus_language_data): Likewise.
1258 (asm_language_data): Likewise.
1259 (minimal_language_data): Likewise.
1260 * d-lang.c (d_language_data): Likewise.
1261 * f-lang.c (f_language_data): Likewise.
1262 * go-lang.c (go_language_data): Likewise.
1263 * language.c (unknown_language_data): Likewise.
1264 (auto_language_data): Likewise.
1265 * language.h (language_data): Remove la_language field.
1266 (language_defn::language_defn): Initialise la_language field.
1267 (language_defn::la_language): New member variable.
1268 * m2-lang.c (m2_language_data): Remove la_language field.
1269 * objc-lang.c (objc_language_data): Likewise.
1270 * opencl-lang.c (opencl_language_data): Likewise.
1271 * p-lang.c (pascal_language_data): Likewise.
1272 * rust-lang.c (rust_language_data): Likewise.
1273
e171d6f1
AB
12742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1275
1276 * ada-lang.c (ada_extensions): Delete, moved into
1277 ada_language::filename_extensions.
1278 (ada_language_data): Remove la_filename_extensions initializer.
1279 (ada_language::filename_extensions): New member function.
1280 * c-lang.c (c_extensions): Delete, moved into
1281 c_language::filename_extensions.
1282 (c_language_data): Remove la_filename_extensions initializer.
1283 (c_language::filename_extensions): New member function.
1284 (cplus_extensions): Delete, moved into
1285 cplus_language::filename_extensions.
1286 (cplus_language_data): Remove la_filename_extensions initializer.
1287 (cplus_language::filename_extensions): New member function.
1288 (asm_extensions): Delete, moved into
1289 asm_language::filename_extensions.
1290 (asm_language_data): Remove la_filename_extensions initializer.
1291 (asm_language::filename_extensions): New member function.
1292 (minimal_language_data): Remove la_filename_extensions
1293 initializer.
1294 * d-lang.c (d_extensions): Delete, moved into
1295 d_language::filename_extensions.
1296 (d_language_data): Remove la_filename_extensions initializer.
1297 (d_language::filename_extensions): New member function.
1298 * f-lang.c (f_extensions): Delete, moved into
1299 f_language::filename_extensions.
1300 (f_language_data): Remove la_filename_extensions initializer.
1301 (f_language::filename_extensions): New member function.
1302 * go-lang.c (go_language_data): Remove la_filename_extensions
1303 initializer.
1304 * language.c (add_set_language_command): Update now that
1305 filename_extensions returns a vector.
1306 (unknown_language_data): Remove la_filename_extensions
1307 initializer.
1308 (auto_language_data): Likewise.
1309 * language.h (language_data): Remove la_filename_extensions field.
1310 (language_defn::filename_extensions): New member function.
1311 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1312 initializer.
1313 * objc-lang.c (objc_extensions): Delete, moved into
1314 objc_language::filename_extensions.
1315 (objc_language_data): Remove la_filename_extensions initializer.
1316 (objc_language::filename_extensions): New member function.
1317 * opencl-lang.c (opencl_language_data): Remove
1318 la_filename_extensions initializer.
1319 * p-lang.c (pascal_extensions): Delete, moved into
1320 pascal_language::filename_extensions.
1321 (pascal_language_data): Remove la_filename_extensions initializer.
1322 (pascal_language::filename_extensions): New member function.
1323 * rust-lang.c (rust_extensions): Delete, moved into
1324 rust_language::filename_extensions.
1325 (rust_language_data): Remove la_filename_extensions initializer.
1326 (rust_language::filename_extensions): New member function.
1327 * symfile.c (add_filename_language): Add new assert.
1328
6f7664a9
AB
13292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1330
1331 * ada-lang.c (ada_language_data): Remove la_name and
1332 la_natural_name initializers.
1333 (ada_language::name): New member function.
1334 (ada_language::natural_name): New member function.
1335 * c-lang.c (c_language_data): Remove la_name and
1336 la_natural_name initializers.
1337 (c_language::name): New member function.
1338 (c_language::natural_name): New member function.
1339 (cplus_language_data): Remove la_name and
1340 la_natural_name initializers.
1341 (cplus_language::name): New member function.
1342 (cplus_language::natural_name): New member function.
1343 (asm_language_data): Remove la_name and
1344 la_natural_name initializers.
1345 (asm_language::name): New member function.
1346 (asm_language::natural_name): New member function.
1347 (minimal_language_data): Remove la_name and
1348 la_natural_name initializers.
1349 (minimal_language::name): New member function.
1350 (minimal_language::natural_name): New member function.
1351 * compile/compile.c (compile_to_object): Update call to
1352 lanugage_defn::name.
1353 * d-lang.c (d_language_data): Remove la_name and
1354 la_natural_name initializers.
1355 (d_language::name): New member function.
1356 (d_language::natural_name): New member function.
1357 * expprint.c (print_subexp_standard): Update call to
1358 language_defn::name.
1359 (dump_raw_expression): Likewise
1360 (dump_prefix_expression): Likewise.
1361 * f-lang.c (f_language_data): Remove la_name and
1362 la_natural_name initializers.
1363 (f_language::name): New member function.
1364 (f_language::natural_name): New member function.
1365 * go-lang.c (go_language_data): Remove la_name and
1366 la_natural_name initializers.
1367 (go_language::name): New member function.
1368 (go_language::natural_name): New member function.
1369 * language.c (show_language_command): Update call to
1370 language_defn::name.
1371 (set_language_command): Likewise.
1372 (language_enum): Likewise.
1373 (language_str): Likewise.
1374 (add_set_language_command): Likewise, use
1375 language_defn::natural_name in the doc string.
1376 (unknown_language_data): Remove la_name and
1377 la_natural_name initializers.
1378 (unknown_language::name): New member function.
1379 (unknown_language::natural_name): New member function.
1380 (auto_language_data): Remove la_name and
1381 la_natural_name initializers.
1382 (auto_language::name): New member function.
1383 (auto_language::natural_name): New member function.
1384 (language_lookup_primitive_type_as_symbol): Update call to
1385 language_defn::name.
1386 * language.h (language_data): Remove la_name and la_natural_name
1387 member variables.
1388 (language_defn::name): New member function.
1389 (language_defn::natural_name): New member function.
1390 * m2-lang.c (m2_language_data): Remove la_name and
1391 la_natural_name initializers.
1392 (m2_language::name): New member function.
1393 (m2_language::natural_name): New member function.
1394 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1395 language_defn::natural_name.
1396 * objc-lang.c (objc_language_data): Remove la_name and
1397 la_natural_name initializers.
1398 (objc_language::name): New member function.
1399 (objc_language::natural_name): New member function.
1400 * opencl-lang.c (opencl_language_data): Remove la_name and
1401 la_natural_name initializers.
1402 (opencl_language::name): New member function.
1403 (opencl_language::natural_name): New member function.
1404 * p-lang.c (pascal_language_data): Remove la_name and
1405 la_natural_name initializers.
1406 (pascal_language::name): New member function.
1407 (pascal_language::natural_name): New member function.
1408 * rust-lang.c (rust_language_data): Remove la_name and
1409 la_natural_name initializers.
1410 (rust_language::name): New member function.
1411 (rust_language::natural_name): New member function.
1412 * symtab.c (lookup_language_this): Update call to
1413 language_defn::name.
1414
5bae7c4e
AB
14152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1416
1417 * ada-lang.c (ada_language_data): Remove la_name_of_this
1418 initializer.
1419 * ax-gdb.c (gen_expr): Update call to name_of_this.
1420 * c-exp.y (classify_name): Likewise.
1421 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1422 (cplus_language_data): Likewise.
1423 (cplus_language::name_of_this): New member function.
1424 (asm_language_data): Remove la_name_of_this initializer.
1425 (minimal_language_data): Likewise.
1426 * d-lang.c (d_language_data): Likewise.
1427 (d_language::name_of_this): New member function.
1428 * expprint.c (print_subexp_standard): Update call to name_of_this.
1429 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1430 * go-lang.c (go_language_data): Likewise.
1431 * language.c (unknown_language_data): Likewise.
1432 (unknown_language::name_of_this): New member function.
1433 (auto_language_data): Remove la_name_of_this initializer.
1434 (auto_language::name_of_this): New member function.
1435 * language.h (language_data): Delete la_name_of_this member
1436 variable.
1437 (language_defn::name_of_this): New member function.
1438 * m2-lang.c (m2_language_data): Remove la_name_of_this
1439 initializer.
1440 * objc-lang.c (objc_language_data): Likewise.
1441 (objc_language::name_of_this): New member function.
1442 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1443 initializer.
1444 * p-lang.c (pascal_language_data): Likewise.
1445 (pascal_language::name_of_this): New member function.
1446 * rust-lang.c (rust_language_data): Remove la_name_of_this
1447 initializer.
1448 * symtab.c (lookup_language_this): Update call to name_of_this.
1449 (lookup_symbol_aux): Likewise.
1450 * valops.c (value_of_this): Likewise.
1451
22e3f3ed
AB
14522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1453
1454 * ada-lang.c (ada_language_data): Remove
1455 la_struct_too_deep_ellipsis initializer.
1456 (ada_language::struct_too_deep_ellipsis): New member function.
1457 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1458 initializer.
1459 (cplus_language_data): Likewise.
1460 (asm_language_data): Likewise.
1461 (minimal_language_data): Likewise.
1462 * cp-valprint.c (cp_print_value): Update call to
1463 struct_too_deep_ellipsis.
1464 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1465 initializer.
1466 * f-lang.c (f_language_data): Likewise.
1467 (f_language::struct_too_deep_ellipsis): New member function.
1468 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1469 initializer.
1470 * language.c (unknown_language_data): Likewise.
1471 (auto_language_data): Likewise.
1472 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1473 member variable.
1474 (language_defn::struct_too_deep_ellipsis): New member function.
1475 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1476 initializer.Q
1477 * objc-lang.c (objc_language_data): Likewise.
1478 * opencl-lang.c (opencl_language_data): Likewise.
1479 * p-lang.c (pascal_language_data): Likewise.
1480 * rust-lang.c (rust_language_data): Likewise.
1481 * valprint.c (val_print_check_max_depth): Update call to
1482 struct_too_deep_ellipsis.
1483
ed29e1c7
FW
14842020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1485
1486 * MAINTAINERS (Write After Approval): Add myself.
1487
12d8f940
TT
14882020-09-15 Tom Tromey <tom@tromey.com>
1489
1490 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1491 Remove.
1492
6b5a7bc7
TT
14932020-09-15 Tom Tromey <tom@tromey.com>
1494
1495 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1496 and TYPE_CODE_METHODPTR cases.
1497 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1498 (c_value_print_inner): Update.
1499 * valprint.c (generic_value_print_memberptr): New function, from
1500 c_value_print_memberptr.
1501 (generic_value_print): Use it. Call cplus_print_method_ptr.
1502
47f0e2ff
TT
15032020-09-15 Tom Tromey <tromey@adacore.com>
1504
1505 * python/python-internal.h (PyInt_FromLong): Remove define.
1506 * python/py-value.c (convert_value_from_python): Use
1507 gdb_py_object_from_longest.
1508 * python/py-type.c (typy_get_code): Use
1509 gdb_py_object_from_longest.
1510 * python/py-symtab.c (salpy_get_line): Use
1511 gdb_py_object_from_longest.
1512 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1513 gdb_py_object_from_longest.
1514 * python/py-record.c (recpy_gap_reason_code): Use
1515 gdb_py_object_from_longest.
1516 * python/py-record-btrace.c (recpy_bt_insn_size)
1517 (recpy_bt_func_level, btpy_list_count): Use
1518 gdb_py_object_from_longest.
1519 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1520 gdb_py_object_from_longest. Fix error handling.
1521 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1522 gdb_py_object_from_longest.
1523 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1524 gdb_py_object_from_longest.
1525 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1526 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1527 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1528
512116ce
TT
15292020-09-15 Tom Tromey <tromey@adacore.com>
1530
1531 * python/python.c (gdbpy_parameter_value): Use
1532 gdb_py_object_from_ulongest.
1533
4ab1029c
TT
15342020-09-15 Tom Tromey <tromey@adacore.com>
1535
1536 * python/py-infevents.c (create_register_changed_event_object):
1537 Use gdb_py_object_from_longest.
1538 * python/py-exitedevent.c (create_exited_event_object): Use
1539 gdb_py_object_from_longest.
1540
062534d4
TT
15412020-09-15 Tom Tromey <tromey@adacore.com>
1542
1543 * python/python.c (gdbpy_parameter_value): Use
1544 gdb_py_object_from_longest.
1545 * python/py-type.c (convert_field, typy_range): Use
1546 gdb_py_object_from_longest.
1547 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1548 gdb_py_object_from_longest.
1549 * python/py-lazy-string.c (stpy_get_length): Use
1550 gdb_py_object_from_longest.
1551 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1552 gdb_py_object_from_longest.
1553 * python/py-infevents.c (create_memory_changed_event_object): Use
1554 gdb_py_object_from_longest.
1555 * python/py-inferior.c (infpy_get_num): Use
1556 gdb_py_object_from_longest.
1557 (infpy_get_pid): Likewise.
1558
d1cab987
TT
15592020-09-15 Tom Tromey <tromey@adacore.com>
1560
1561 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1562 defines.
1563 * python/py-value.c (valpy_long): Use
1564 gdb_py_object_from_ulongest.
1565 * python/py-symtab.c (salpy_get_pc): Use
1566 gdb_py_object_from_ulongest.
1567 (salpy_get_last): Likewise.
1568 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1569 gdb_py_object_from_ulongest.
1570 * python/py-lazy-string.c (stpy_get_address): Use
1571 gdb_py_object_from_ulongest.
1572 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1573 * python/py-arch.c (archpy_disassemble): Use
1574 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1575 error handling.
1576
4bde49dc
TT
15772020-09-15 Tom Tromey <tromey@adacore.com>
1578
1579 * python/python-internal.h (gdb_py_long_from_longest): Remove
1580 defines.
1581 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1582 * python/py-type.c (convert_field, typy_get_sizeof): Use
1583 gdb_py_object_from_longest.
1584 * python/py-record-btrace.c (btpy_list_index): Use
1585 gdb_py_object_from_longest.
1586
37431074
TT
15872020-09-15 Tom Tromey <tromey@adacore.com>
1588
1589 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1590 * python/py-record.c (recpy_element_number): Use
1591 gdb_py_object_from_longest.
1592 (recpy_gap_number): Likewise.
1593
cbe25684
TT
15942020-09-15 Tom Tromey <tromey@adacore.com>
1595
1596 * top.c (ui::ui): Update.
1597 (highest_ui_num): Remove.
1598 * top.h (struct ui) <num>: Remove.
1599
db92ac45
TT
16002020-09-15 Tom Tromey <tromey@adacore.com>
1601
1602 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1603 * ui-style.c (ansi_regex_text): Now array.
1604 * rust-exp.y (number_regex_text): Now array.
1605 * linespec.c (linespec_quote_characters): Now array.
1606 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1607 Now arrays.
1608
d2b31b67
SM
16092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1610
1611 * debuginfod-support.c (debuginfod_client_deleter): New.
1612 (debuginfod_client_up): New.
1613 (debuginfod_init): Return debuginfod_client_up.
1614 (debuginfod_source_query): Adjust.
1615 (debuginfod_debuginfo_query): Adjust.
1616
3246bd8e
SM
16172020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1618
1619 * debuginfod-support.c (debuginfod_source_query): Use
1620 make_unique_xstrdup.
1621
10242f36
SM
16222020-09-14 Simon Marchi <simon.marchi@efficios.com>
1623
1624 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1625 with `type::instance_flags`.
1626
e1044e6a
MM
16272020-09-14 Michael Mullin <masmullin@gmail.com>
1628
1629 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1630 Remove baton parameter.
1631
04902b09
PA
16322020-09-14 Pedro Alves <pedro@palves.net>
1633
1634 * Makefile.in (SELFTESTS_SRCS): Add
1635 unittests/enum-flags-selftests.c.
1636 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1637 btrace_function_flags instead of enum btrace_function_flag.
1638 * compile/compile-c-types.c (convert_qualified): Use
1639 enum_flags::raw.
1640 * compile/compile-cplus-symbols.c (convert_one_symbol)
1641 (convert_symbol_bmsym):
1642 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1643 (compile_cplus_convert_struct_or_union_methods)
1644 (compile_cplus_instance::convert_qualified_base):
1645 * go-exp.y (parse_string_or_char): Add cast to int.
1646 * unittests/enum-flags-selftests.c: New file.
1647 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1648 type to btrace_thread_flags from btrace_thread_flag.
1649 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1650 local's type to btrace_thread_flags from btrace_thread_flag. Add
1651 cast in DEBUG call.
1652
69896a2c
PA
16532020-09-14 Pedro Alves <pedro@palves.net>
1654
1655 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1656 * gdbtypes.c (address_space_name_to_int): Rename to ...
1657 (address_space_name_to_type_instance_flags): ... this.
1658 (address_space_int_to_name): Rename to ...
1659 (address_space_type_instance_flags_to_name): ... this.
1660 * gdbtypes.h (address_space_name_to_int): Rename to ...
1661 (address_space_name_to_type_instance_flags): ... this.
1662 (address_space_int_to_name): Rename to ...
1663 (address_space_type_instance_flags_to_name): ... this.
1664 * type-stack.c (type_stack::insert): Adjust to rename.
1665 * type-stack.h (type_stack::insert): Likewise.
1666
314ad88d
PA
16672020-09-14 Pedro Alves <pedro@palves.net>
1668 Andrew Burgess <andrew.burgess@embecosm.com>
1669
1670 * avr-tdep.c (avr_address_class_type_flags): Return
1671 type_instance_flags.
1672 (avr_address_class_type_flags_to_name): Take a
1673 type_instance_flags.
1674 (avr_address_class_name_to_type_flags): Return bool and take a
1675 type_instance_flags.
1676 * d-lang.c (build_d_types): Use type::set_instance_flags.
1677 * ft32-tdep.c (ft32_address_class_type_flags): Return
1678 type_instance_flags.
1679 (ft32_address_class_type_flags_to_name): Take a
1680 type_instance_flags.
1681 (ft32_address_class_name_to_type_flags): Return bool and take a
1682 type_instance_flags.
1683 (ft32_gdbarch_init): Use type::set_instance_flags.
1684 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1685 * gdbarch.h, gdbarch.c: Regenerate.
1686 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1687 (address_class_name_to_type_flags): Use type_instance_flags and
1688 bool.
1689 * gdbtypes.c (address_space_name_to_int)
1690 (address_space_int_to_name, make_qualified_type): Use
1691 type_instance_flags.
1692 (make_qualified_type): Use type_instance_flags and
1693 type::set_instance_flags.
1694 (make_type_with_address_space, make_cv_type, make_vector_type)
1695 (check_typedef): Use type_instance_flags.
1696 (recursive_dump_type): Cast type_instance_flags to unsigned for
1697 printing.
1698 (copy_type_recursive): Use type::set_instance_flags.
1699 (gdbtypes_post_init): Use type::set_instance_flags.
1700 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1701 <m_instance_flags>: ... this.
1702 <instance_flags, set_instance_flags>: New methods.
1703 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1704 (SET_TYPE_INSTANCE_FLAGS): New.
1705 (address_space_name_to_int, address_space_int_to_name)
1706 (make_type_with_address_space): Pass flags using
1707 type_instance_flags instead of int.
1708 * stabsread.c (cleanup_undefined_types_noname): Use
1709 type::set_instance_flags.
1710 * s390-tdep.c (s390_address_class_type_flags): Return
1711 type_instance_flags.
1712 (s390_address_class_type_flags_to_name): Take a
1713 type_instance_flags.
1714 (s390_address_class_name_to_type_flags): Return bool and take a
1715 type_instance_flags.
1716 * type-stack.c (type_stack::follow_types): Use
1717 type_instance_flags.
1718 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1719
27087b7f
TT
17202020-09-14 Tom Tromey <tromey@adacore.com>
1721
1722 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1723 * x86-tdep.c (x86_is_thunk_register_name)
1724 (x86_in_indirect_branch_thunk): Update.
1725 * sparc64-tdep.c (sparc64_fpu_register_names)
1726 (sparc64_cp0_register_names, sparc64_register_names)
1727 (sparc64_pseudo_register_names): Now const.
1728 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1729 cp0_registers_num>: Now const.
1730 * sparc-tdep.c (sparc_core_register_names)
1731 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1732 (sparc32_pseudo_register_names): Now const.
1733 (validate_tdesc_registers): Update.
1734 * rust-lang.c (rust_extensions): Now const.
1735 * p-lang.c (p_extensions): Now const.
1736 * objc-lang.c (objc_extensions): Now const.
1737 * nto-tdep.c (nto_thread_state_str): Now const.
1738 * moxie-tdep.c (moxie_register_names): Now const.
1739 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1740 Now const.
1741 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1742 (mips_linux_reg_names): Now const.
1743 (mips_gdbarch_init): Update.
1744 * microblaze-tdep.c (microblaze_register_names): Now const.
1745 * m68k-tdep.c (m68k_register_names): Now const.
1746 * m32r-tdep.c (m32r_register_names): Now const.
1747 * ia64-tdep.c (ia64_register_names): Now const.
1748 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1749 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1750 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1751 ymm_avx512_register_names, pkeys_register_names>: Now const.
1752 * i386-tdep.c (i386_register_names, i386_zmm_names)
1753 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1754 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1755 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1756 * f-lang.c (f_extensions): Now const.
1757 * d-lang.c (d_extensions): Now const.
1758 * csky-tdep.c (csky_register_names): Now const.
1759 * charset.c (default_charset_names, charset_enum): Now const.
1760 (_initialize_charset): Update.
1761 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1762 const.
1763 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1764 (bsd_uthread_solib_loaded): Update.
1765 (bsd_uthread_state): Now const.
1766 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1767 (amd64_ymm_avx512_names, amd64_ymmh_names)
1768 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1769 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1770 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1771 (amd64_dword_names): Now const.
1772 * agent.c (can_use_agent_enum): Now const.
1773 * ada-tasks.c (task_states, long_task_states): Now const.
1774 * ada-lang.c (known_runtime_file_name_patterns)
1775 (known_auxiliary_function_name_patterns, attribute_names)
1776 (standard_exc, ada_extensions): Now const.
1777
89806626
SM
17782020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1779
1780 * bcache.h (struct bcache) <bcache>: Remove constructor.
1781 <m_hash_function, m_compare_function>: Remove.
1782 <~bcache>: Make virtual.
1783 <compare>: Remove static method, introduce virtual method.
1784 <default_hash>: Remove.
1785 <hash>: New virtual method.
1786 * bcache.c (bcache::expand_hash_table): Update.
1787 (bcache::insert): Update.
1788 (bcache::hash): New.
1789 (bcache::compare): Update comment and parameter names.
1790 * gdbtypes.c (types_deeply_equal): Update.
1791 * psymtab.h (struct psymbol_bcache): New struct.
1792 (class psymtab_storage) <psymtab_storage>: Make default.
1793 <psymbol_cache>: Change type to psymbol_bcache.
1794 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1795 (psymbol_hash): Change to...
1796 (psymbol_bcache::hash): ... this.
1797 (psymbol_compare): Change to...
1798 (psymbol_bcache::compare): ... this.
1799
677c92fe
SM
18002020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1801
1802 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1803 checking for initial lwp.
1804
3eba3a01
TT
18052020-09-14 Tom Tromey <tromey@adacore.com>
1806
1807 * m68k-tdep.c (m68k_extract_return_value): Use
1808 pointer_result_regnum.
1809 (m68k_store_return_value): Likewise.
1810 (m68k_reg_struct_return_p): Handle vectors and arrays.
1811 (m68k_return_value): Handle arrays.
1812 (m68k_svr4_return_value): Fix single-element aggregate handling.
1813 Handle long double. Adjust for embedded ABI.
1814 (m68k_svr4_init_abi): Set pointer_result_regnum.
1815 (m68k_embedded_init_abi): New function.
1816 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1817 (m68k_osabi_sniffer): New function.
1818 (_initialize_m68k_tdep): Register osabi sniffer.
1819 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1820 member.
1821
33f4dd48
SM
18222020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1823
1824 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1825 with gdb::unique_xmalloc_ptr<char>.
1826
8400a90d
SM
18272020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1828
1829 * xml-support.h (xml_fetch_another): Change type to be a
1830 function_view.
1831 (xml_process_xincludes): Remove baton parameter.
1832 (xml_fetch_content_from_file): Change baton parameter to
1833 dirname.
1834 * xml-support.c (struct xinclude_parsing_data)
1835 <xinclude_parsing_data>: Remove baton parameter.
1836 <fetcher_baton>: Remove.
1837 (xinclude_start_include): Adjust.
1838 (xml_process_xincludes): Adjust.
1839 (xml_fetch_content_from_file): Replace baton parameter with
1840 dirname.
1841 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1842 (xml_init_syscalls_info): Use a lambda.
1843 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1844 (file_read_description_xml): Use a lambda.
1845 (fetch_available_features_from_target): Change baton parameter
1846 to target_ops.
1847 (target_read_description_xml): Use a lambda.
1848 (target_fetch_description_xml): Use a lambda.
1849 (string_read_description_xml): Update.
1850
04f5bab2
SM
18512020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1852
1853 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1854 uses with type::endianity_is_not_default.
1855
db558e34
SM
18562020-09-14 Simon Marchi <simon.marchi@efficios.com>
1857
1858 * gdbtypes.h (struct type) <endianity_is_not_default,
1859 set_endianity_is_not_default>: New methods.
1860 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1861 type::endianity_is_not_default, change all write call sites to
1862 use type::set_endianity_is_not_default.
1863
22c4c60c
SM
18642020-09-14 Simon Marchi <simon.marchi@efficios.com>
1865
1866 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1867 uses with type::is_fixed_instance.
1868
9cdd0d12
SM
18692020-09-14 Simon Marchi <simon.marchi@efficios.com>
1870
1871 * gdbtypes.h (struct type) <is_fixed_instance,
1872 set_is_fixed_instance>: New methods.
1873 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1874 write call sites to use type::set_is_fixed_instance.
1875
0becda7a
SM
18762020-09-14 Simon Marchi <simon.marchi@efficios.com>
1877
1878 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1879 uses with type::is_gnu_ifunc.
1880
03cc7249
SM
18812020-09-14 Simon Marchi <simon.marchi@efficios.com>
1882
1883 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1884 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1885 use type::set_is_gnu_ifunc.
1886
3f46044c
SM
18872020-09-14 Simon Marchi <simon.marchi@efficios.com>
1888
1889 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1890 uses with type::stub_is_supported.
1891
9baccff6
SM
18922020-09-14 Simon Marchi <simon.marchi@efficios.com>
1893
1894 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1895 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1896 use type::set_stub_is_supported.
1897
bd63c870
SM
18982020-09-14 Simon Marchi <simon.marchi@efficios.com>
1899
1900 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1901 uses with type::is_vector.
1902
2062087b
SM
19032020-09-14 Simon Marchi <simon.marchi@efficios.com>
1904
1905 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1906 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1907 use type::set_is_vector.
1908
a409645d
SM
19092020-09-14 Simon Marchi <simon.marchi@efficios.com>
1910
1911 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1912 uses with type::has_varargs.
1913
1d6286ed
SM
19142020-09-14 Simon Marchi <simon.marchi@efficios.com>
1915
1916 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1917 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1918 use type::set_has_varargs.
1919
7f9f399b
SM
19202020-09-14 Simon Marchi <simon.marchi@efficios.com>
1921
1922 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1923 uses with type::is_prototyped.
1924
27e69b7a
SM
19252020-09-14 Simon Marchi <simon.marchi@efficios.com>
1926
1927 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1928 New methods.
1929 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1930 call sites to use type::set_is_prototyped.
1931
d2183968
SM
19322020-09-14 Simon Marchi <simon.marchi@efficios.com>
1933
1934 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1935 uses with type::target_is_stub.
1936
8f53807e
SM
19372020-09-14 Simon Marchi <simon.marchi@efficios.com>
1938
1939 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1940 New methods.
1941 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1942 sites to use type::set_target_is_stub.
1943
e46d3488
SM
19442020-09-14 Simon Marchi <simon.marchi@efficios.com>
1945
1946 * gdbtypes.h (TYPE_STUB): Remove, replace all
1947 uses with type::is_stub.
1948
b4b73759
SM
19492020-09-14 Simon Marchi <simon.marchi@efficios.com>
1950
1951 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1952 (TYPE_STUB): Use type::is_stub, change all write call sites to
1953 use type::set_is_stub.
1954
20ce4123
SM
19552020-09-14 Simon Marchi <simon.marchi@efficios.com>
1956
1957 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1958 type::has_no_signedness.
1959
15152a54
SM
19602020-09-14 Simon Marchi <simon.marchi@efficios.com>
1961
1962 * gdbtypes.h (struct type) <has_no_signedness,
1963 set_has_no_signedness>: New methods.
1964 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1965 call sites to use type::set_has_no_signedness.
1966
c6d940a9
SM
19672020-09-14 Simon Marchi <simon.marchi@efficios.com>
1968
1969 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1970 type::is_unsigned.
1971
653223d3
SM
19722020-09-14 Simon Marchi <simon.marchi@efficios.com>
1973
1974 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1975 methods.
1976 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1977 sites to use type::set_is_unsigned.
1978
55ea94da 19792020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 1980 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 1981
e851246a
SM
1982 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1983 pointer and stack frame offset when unwinding.
55ea94da 1984
6791b117
PA
19852020-09-13 Pedro Alves <pedro@palves.net>
1986
1987 * NEWS: Document "-break-insert --qualified".
1988 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1989
77f2120b
PA
19902020-09-13 Pedro Alves <pedro@palves.net>
1991
1992 * linespec.c (classify_mtype, compare_msyms): Delete.
1993 (search_minsyms_for_name): Remove classification logic. Instead
1994 filter out trampoline symbols if we also found an external
1995 function of the same name.
1996
ed6a896c
JB
19972020-09-13 Joel Brobecker <brobecker@adacore.com>
1998
1999 * NEWS: Create a new section for the next release branch.
2000 Rename the section of the current branch, now that it has
2001 been cut.
2002
32aea73e
JB
20032020-09-13 Joel Brobecker <brobecker@adacore.com>
2004
2005 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2006 * version.in: Bump version to 11.0.50.DATE-git.
2007
8087c3fa
JB
20082020-09-12 Joel Brobecker <brobecker@adacore.com>
2009
2010 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2011
2a67f09d
FW
20122020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2013 Felix Willgerodt <Felix.Willgerodt@intel.com>
2014
2015 * gdbarch.sh: Added bfloat16 type.
2016 * gdbarch.c: Regenerated.
2017 * gdbarch.h: Regenerated.
2018 * gdbtypes.c (floatformats_bfloat16): New struct.
2019 (gdbtypes_post_init): Add builtin_bfloat16.
2020 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2021 (floatformats_bfloat16): New struct.
2022 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2023 (i386_ymm_type): Add field "v16_bfloat16"
2024 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2025 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2026 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2027 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2028 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2029 * features/i386/64bit-avx512.c: Regenerated.
2030 * features/i386/64bit-sse.xml: Add bfloat16 type.
2031 * features/i386/64bit-sse.c: Regenerated.
2032
1347d111
FW
20332020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2034
2035 * i386-tdep.c (i386_zmm_type): Fix field names.
2036 (i386_ymm_type): Fix field names.
2037
7a4e8e7d
TBA
20382020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2039
2040 * breakpoint.c: Fix typo in the help message of the
2041 "set breakpoint condition-evaluation" command.
2042
cf4ac4be
KR
20432020-09-10 Kamil Rytarowski <n54@gmx.com>
2044
2045 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2046 * (nbsd_nat_target::pid_to_exec_file)
2047 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2048 (nbsd_nat_target::post_startup_inferior)
2049 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2050 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2051 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2052 * (nbsd_thread_lister): Remove.
2053
f404573e
KR
20542020-09-10 Kamil Rytarowski <n54@gmx.com>
2055
2056 * fork-inferior.c (startup_inferior): Avoid double free.
2057
1ccb2c17
KR
20582020-09-10 Kamil Rytarowski <n54@gmx.com>
2059
2060 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2061 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2062
feedfcc7
KR
20632020-09-10 Kamil Rytarowski <n54@gmx.com>
2064
2065 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2066 * netbsd-nat.c: Include <sys/ptrace.h>.
2067 * (netbsd_nat::enable_proc_events): Add.
2068
c489f8c6
KR
20692020-09-10 Kamil Rytarowski <n54@gmx.com>
2070
2071 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2072 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2073 (netbsd_nat::for_each_thread): Add.
2074 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2075 "gdbsupport/common-debug.h".
2076 * (netbsd_nat::netbsd_thread_lister)
2077 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2078 (netbsd_nat::for_each_thread): Add.
2079
330662f6
KR
20802020-09-10 Kamil Rytarowski <n54@gmx.com>
2081
2082 * netbsd-nat.h: Include <unistd.h>.
2083 * (netbsd_nat::pid_to_exec_file): Add.
2084 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2085 * (netbsd_nat::pid_to_exec_file) Add.
2086
70b67307
KR
20872020-09-10 Kamil Rytarowski <n54@gmx.com>
2088
2089 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2090
99cf6da6
KR
20912020-09-10 Kamil Rytarowski <n54@gmx.com>
2092
2093 * netbsd-nat.h: New file.
2094 * netbsd-nat.c: Likewise.
2095
1b788fb6
TT
20962020-09-09 Tom Tromey <tromey@adacore.com>
2097
2098 * ada-lang.c (remove_extra_symbols): Do not increment when
2099 removing an element
2100
03b0a45f
TT
21012020-09-08 Tom Tromey <tromey@adacore.com>
2102
2103 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2104
3cae4447
TT
21052020-09-08 Tom Tromey <tromey@adacore.com>
2106
2107 PR win32/25302:
2108 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2109 (gdb_bfd_init_data): New function.
2110 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2111
7f08fd51
TBA
21122020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2113
2114 * infrun.c (fetch_inferior_event): Use
2115 `switch_to_target_no_thread` to switch the target.
2116
3e6ff933
TT
21172020-09-06 Tom Tromey <tom@tromey.com>
2118
2119 * symfile.h (dwarf2_free_objfile): Don't declare.
2120
e56798df
AKS
21212020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2122
2123 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2124 to match 16 byte real/complex type generated by Flang compiler.
2125
8f5c6526
TV
21262020-09-03 Tom de Vries <tdevries@suse.de>
2127
2128 PR breakpoint/26546
2129 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2130 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2131
c5065df0
SM
21322020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2133
2134 * maint.c (index_digits): New function.
2135 (struct maint_print_section_data): Remove.
2136 (print_bfd_section_info): Remove print_data parameter, add arg
2137 and index_digits.
2138 (print_objfile_section_info): Likewise.
2139 (print_bfd_section_info_maybe_relocated): Likewise (plus
2140 objfile).
2141 (maintenance_info_sections): Adjust calls.
2142
02c6f3f1
TT
21432020-09-02 Tom Tromey <tromey@adacore.com>
2144
2145 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2146 for null pointers.
2147 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2148
ef5e5b0b
SM
21492020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2150
2151 * bcache.h (struct bcache) <insert>: Change type of `added` to
2152 pointer to bool.
2153 * bcache.c (bcache::insert): Likewise.
2154 * gdbtypes.c (check_types_worklist): Adjust.
2155 * psymtab.c (add_psymbol_to_bcache): Adjust.
2156
973695d6
KB
21572020-08-31 Kevin Buettner <kevinb@redhat.com>
2158
2159 * corelow.c (unordered_set): Include.
2160 (class core_target): Add field 'm_core_unavailable_mappings'.
2161 (core_target::build_file_mappings): Print only one warning
2162 per inaccessible file. Add unavailable/broken mappings
2163 to m_core_unavailable_mappings.
2164 (core_target::xfer_partial): Call...
2165 (core_target::xfer_memory_via_mappings): New method.
2166
264fc0e2
SM
21672020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2168
2169 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2170 type to bool.
2171
2de01bdb
SM
21722020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2173
2174 * dwarf2/read.c (struct field_info): Fix indentation.
2175
f3bd50f1
SM
21762020-08-31 Simon Marchi <simon.marchi@efficios.com>
2177
2178 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2179 ordering in comment.
2180 * frame.c (frame_id_eq): Fix indentation.
2181
22b9b4b0
SL
21822020-08-31 Scott Linder <scott@scottlinder.com>
2183 Simon Marchi <simon.marchi@efficios.com>
2184
2185 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2186 inline frame ids in outer frame.
2187
84154d16
SM
21882020-08-31 Simon Marchi <simon.marchi@efficios.com>
2189
2190 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2191 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2192 (outer_frame_id): Use FID_STACK_OUTER instead of
2193 FID_STACK_INVALID.
2194 (frame_id_p): Don't check for outer_frame_id.
2195
8efaf6b3
SM
21962020-08-31 Simon Marchi <simon.marchi@efficios.com>
2197
2198 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2199 regnum/frame in value. Call allocate_value_lazy.
2200 * frame.c (frame_unwind_register_value): Use
2201 val_print_not_saved.
2202
fe1fe7ea
SM
22032020-08-31 Simon Marchi <simon.marchi@efficios.com>
2204
2205 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2206
f7c7700d
PA
22072020-08-29 Pedro Alves <pedro@palves.net>
2208
2209 * progspace.c (print_program_space): Use all_inferiors. Switch to
2210 the inferior before calling target_pid_to_str.
2211
e0814aae
TT
22122020-08-28 Tom Tromey <tom@tromey.com>
2213
2214 * xcoffread.c (xcoff_end_psymtab): Update comment.
2215 * dbxread.c (dbx_end_psymtab): Update comment.
2216
626d2320
TV
22172020-08-28 Tom de Vries <tdevries@suse.de>
2218
2219 PR breakpoint/26544
2220 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2221 event_location.
2222 (create_breakpoint): Same.
2223 (base_breakpoint_decode_location): Same.
2224 (bkpt_create_sals_from_location): Same.
2225 (bkpt_decode_location): Same.
2226 (bkpt_probe_create_sals_from_location): Same.
2227 (bkpt_probe_decode_location): Same.
2228 (tracepoint_create_sals_from_location): Same.
2229 (tracepoint_decode_location): Same.
2230 (tracepoint_probe_decode_location): Same.
2231 (strace_marker_create_sals_from_location): Same.
2232 (strace_marker_decode_location): Same.
2233 (create_sals_from_location_default): Same.
2234 (decode_location_default): Same.
2235 * breakpoint.h (struct breakpoint_ops): Same.
2236 (create_breakpoint): Same.
2237 * linespec.h (decode_line_full): Same.
2238 * linespec.c (decode_line_full): Same. Throw error if
2239 result.size () == 0.
2240
df631783
PA
22412020-08-27 Pedro Alves <pedro@palves.net>
2242
2243 PR gdb/26524
2244 * breakpoint.c (until_break_fsm) <location_breakpoint,
2245 caller_breakpoint>: Delete fields.
2246 <breakpoints>: New field.
2247 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2248 two individual breakpoints.
2249 (until_break_fsm::should_stop): Loop over breakpoints in the
2250 breakpoint vector.
2251 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2252 vector.
2253 (until_break_command): Handle location expanding into multiple
2254 sals.
2255
b2b38aa4
PA
22562020-08-27 Pedro Alves <pedro@palves.net>
2257
2258 PR gdb/26523
2259 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2260 bp_until breakpoints user-specified locations. Update intro
2261 comment.
2262
b886559f
SM
22632020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2264
2265 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2266 gdb_bfd_sections): New.
2267 * maint.c (print_bfd_section_info): Change param type to
2268 maint_print_section_data.
2269 (print_objfile_section_info): Likewise.
2270 (print_bfd_section_info_maybe_relocated): Likewise.
2271 (maintenance_info_sections): Use gdb_bfd_sections.
2272
4c6e63bf
SV
22732020-08-25 Shahab Vahedi <shahab@synopsys.com>
2274
2275 * MAINTAINERS: Add ARC target and maintainer.
2276
8d7f0635
AK
22772020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2278
2279 * configure.tgt: ARC support for GNU/Linux.
2280 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2281 * arc-linux-tdep.c: New file.
2282 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2283 * arc-tdep.c (arc_write_pc): Use it.
2284
fdd8731b
SV
22852020-08-25 Shahab Vahedi <shahab@synopsys.com>
2286
2287 * arc-tdep.c (arc_check_for_hardware_loop): New.
2288 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2289
22459524
SV
22902020-08-25 Shahab Vahedi <shahab@synopsys.com>
2291
2292 * arc-tdep.h: Include "gdbarch.h".
2293
995d3a19
SV
22942020-08-25 Shahab Vahedi <shahab@synopsys.com>
2295
2296 * arch/arc.h
2297 (arc_gdbarch_features): New class to stir the selection of target XML.
2298 (arc_create_target_description): Use FEATURES to choose XML target.
2299 (arc_lookup_target_description): Use arc_create_target_description
2300 to create _new_ target descriptions or return the already created
2301 ones if the FEATURES is the same.
2302 * arch/arc.c: Implementation of prototypes described above.
2303 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2304 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2305 * arc-tdep.c (*_feature_name): Make feature names consistent.
2306 (arc_register_feature): A new struct to hold information about
2307 registers of a particular target/feature.
2308 (arc_check_tdesc_feature): Check if XML provides registers in
2309 compliance with ARC_REGISTER_FEATURE structs.
2310 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2311 (determine_*_reg_feature_set): Which feature name to look for.
2312 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2313 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2314 to expected ISA enums to be used in arc_gdbarch_features structs.
2315 * features/Makefile (FEATURE_XMLFILES): Add new files.
2316 * gdb/features/arc/v1-aux.c: New file.
2317 * gdb/features/arc/v1-aux.xml: Likewise.
2318 * gdb/features/arc/v1-core.c: Likewise.
2319 * gdb/features/arc/v1-core.xml: Likewise.
2320 * gdb/features/arc/v2-aux.c: Likewise.
2321 * gdb/features/arc/v2-aux.xml: Likewise.
2322 * gdb/features/arc/v2-core.c: Likewise.
2323 * gdb/features/arc/v2-core.xml: Likewise.
2324 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2325
3945d2d7
GM
23262020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2327 Andrew Burgess <andrew.burgess@embecosm.com>
2328
2329 PR m2/26372
fc5d6901 2330 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2331 an assert. Remove single element array indexing pattern as the
2332 MULTI_SUBSCRIPT support will handle this case too.
2333
2677f2d3
SM
23342020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2335
2336 * value.h (valprint_check_validity): Move declaration from
2337 here...
2338 * valprint.h (valprint_check_validity): ... to here.
2339
c426fddb
SM
23402020-08-24 Simon Marchi <simon.marchi@efficios.com>
2341
2342 * debug.h: New file.
2343 * debug.c (debug_prefixed_vprintf): New function.
2344 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2345 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2346
1eb8556f
SM
23472020-08-24 Simon Marchi <simon.marchi@efficios.com>
2348
2349 * infrun.h (infrun_debug_printf_1): New function declaration.
2350 (infrun_debug_printf): New macro.
2351 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2352 throughout.
2353 (infrun_debug_printf): New function.
2354 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2355 (handle_jit_event): Likewise.
2356
b8fff44e
MW
23572020-08-21 Mark Wielaard <mark@klomp.org>
2358
2359 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2360
d19c3068
SM
23612020-08-22 Simon Marchi <simon.marchi@efficios.com>
2362
2363 * frame.c (enum class frame_id_status): New.
2364 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2365 (fprintf_frame): Update.
2366 (compute_frame_id): Set frame id status to "computing" on entry.
2367 Set it back to "not_computed" on failure and to "computed" on
2368 success.
2369 (get_frame_id): Assert the frame id is not being computed.
2370 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2371 (create_new_frame): Likewise.
2372 (frame_cleanup_after_sniffer): Update assert.
2373
b70e516e
SM
23742020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2375
2376 * regcache.c (pid_ptid_regcache_map): New type.
2377 (target_ptid_regcache_map): Remove.
2378 (target_pid_ptid_regcache_map): New type.
2379 (regcaches): Change type to target_pid_ptid_regcache_map.
2380 (get_thread_arch_aspace_regcache): Update.
2381 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2382 case.
2383 (regcaches_size): Update.
2384 (regcache_count): Update.
2385 (registers_changed_ptid_target_pid_test): New.
2386 (_initialize_regcache): Register new test.
2387
cdd9148a
SM
23882020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2389
2390 * regcache.c (regcache_count): New.
2391 (struct regcache_test_data): New.
2392 (regcache_test_data_up): New.
2393 (populate_regcaches_for_test): New.
2394 (regcaches_test): Remove.
2395 (get_thread_arch_aspace_regcache_test): New.
2396 (registers_changed_ptid_all_test): New.
2397 (registers_changed_ptid_target_test): New.
2398 (registers_changed_ptid_target_ptid_test): New.
2399 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2400 (_initialize_regcache): Register new tests.
2401
dd125343
SM
24022020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2403
2404 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2405 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2406 gdbarch and aspace parameter. Use current inferior's aspace.
2407 Validate regcache's arch value.
2408 (regcaches_test): Update.
2409
3ee93972
SM
24102020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2411
2412 * regcache.c (regcaches_test): Call registers_changed.
2413
33bf4c5c
TBA
24142020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2415
2416 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2417
c2fd7fae
AKS
24182020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2419
2420 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2421 to find the end of prologue for flang compiled binaries.
2422 * arm-tdep.c (arm_skip_prologue): Likewise.
2423 * i386-tdep.c (i386_skip_prologue): Likewise.
2424 * producer.c (producer_is_llvm): New function.
2425 (producer_parsing_tests): Added new tests for clang/flang.
2426 * producer.h (producer_is_llvm): New declaration.
2427
9327494e
SM
24282020-08-18 Simon Marchi <simon.marchi@efficios.com>
2429
2430 * linux-nat.c (linux_nat_debug_printf): New function.
2431 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2432
d138725a
AM
24332020-08-18 Aaron Merey <amerey@redhat.com>
2434
2435 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2436 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2437 (CLIBS): Add DEBUGINFOD_LIBS.
2438
f9b11e6b
ST
24392020-08-17 Sergei Trofimovich <siarheit@google.com>
2440
2441 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2442 'gdbarch_num_regs'.
2443
3ae7ab99
TT
24442020-08-17 Tom Tromey <tromey@adacore.com>
2445
2446 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2447 ada_get_decoded_value returns NULL.
2448
b017825f
TT
24492020-08-17 Tom Tromey <tromey@adacore.com>
2450
2451 * python/py-inferior.c (infpy_search_memory): Use
2452 gdb_py_object_from_ulongest.
2453 * python/py-infevents.c (create_inferior_call_event_object)
2454 (create_memory_changed_event_object): Use
2455 gdb_py_object_from_ulongest.
2456 * python/py-linetable.c (ltpy_entry_get_pc): Use
2457 gdb_py_object_from_ulongest.
2458
7635cf79
SM
24592020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2460
2461 * loc.c (class symbol_needs_eval_context): Fix indentation.
2462
f54be24b
SM
24632020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2464
2465 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2466 bool.
2467
53d5a2a5
TV
24682020-08-17 Tom de Vries <tdevries@suse.de>
2469
2470 PR gdb/26393
2471 * gdbtypes.c (dump_dynamic_prop): New function.
2472 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2473
547ce8f0
TV
24742020-08-15 Tom de Vries <tdevries@suse.de>
2475
2476 PR backtrace/26390
2477 * stack.c (print_frame_args): Temporarily set the selected
2478 frame to FRAME while printing the frame's arguments.
2479
6ea815e7
PFC
24802020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2481
2482 PR breakpoints/26385
2483 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2484 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2485
6e562fa3
PFC
24862020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2487
2488 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2489 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2490 and >= to check return value instead of == -1 and != -1.
2491
d369b608
SM
24922020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2493
2494 * utils.h (class gdb_argv) <as_array_view>: New method.
2495 * utils.c (gdb_argv_as_array_view_test): New.
2496 (_initialize_utils): Register selftest.
2497 * maint.c (maintenance_selftest): Use the new method.
2498
b31488a3
KR
24992020-08-13 Kamil Rytarowski <n54@gmx.com>
2500
2501 * target.h (supports_dumpcore, dumpcore): New
2502 function declarations.
2503 * target.c (supports_dumpcore, dumpcore): New
2504 functions.
2505 * target-delegates.c: Rebuild.
2506 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2507 and target_dumpcore ().
2508
002a3166
AM
25092020-08-13 Aaron Merey <amerey@redhat.com>
2510
2511 * debuginfod-support.c: Replace global variables with user_data.
2512
ece5bc8a
SM
25132020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2514
2515 * maint.c (maintenance_selftest): Split args and pass array_view
2516 to run_tests.
2517
6d8a0a5e
LM
25182020-08-12 Luis Machado <luis.machado@linaro.org>
2519
2520 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2521 type's length.
2522 Use %s and pulongest to print the length.
2523
7cf663a9
PA
25242020-08-12 Pedro Alves <palves@redhat.com>
2525
2526 * NEWS: Move "Multi-target debugging support" item to the
2527 "Changes since GDB 9" section.
2528
27c7b875
PA
25292020-08-12 Pedro Alves <palves@redhat.com>
2530
2531 PR gdb/26336
2532 * progspace.c (program_space::remove_objfile): Invalidate the
2533 frame cache.
2534
1796a2a1
TV
25352020-08-11 Tom de Vries <tdevries@suse.de>
2536
2537 * MAINTAINERS: Mark ms1 as deleted.
2538
f8e3fe0d
LM
25392020-08-10 Luis Machado <luis.machado@linaro.org>
2540
2541 PR gdb/26310
2542
2543 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2544 act accordingly.
2545 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2546 movz/str/stur/stp skipping behavior.
2547
cc308722
LM
25482020-08-10 Luis Machado <luis.machado@linaro.org>
2549
2550 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2551 struct user_sve_header instead of struct sve_context.
2552
041d9819
SM
25532020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2554
2555 * read.h (dwarf2_fetch_die_loc_sect_off,
2556 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2557 `void *` parameter with function_view.
2558 * read.c (dwarf2_fetch_die_loc_sect_off,
2559 dwarf2_fetch_die_loc_cu_off): Likewise.
2560 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2561 (per_cu_dwarf_call): Adjust.
2562 (get_frame_address_in_block_wrapper): Remove.
2563 (indirect_synthetic_pointer): Adjust.
2564 (get_ax_pc): Remove.
2565 (dwarf2_compile_expr_to_ax): Adjust.
2566
38f8aa06
TV
25672020-08-08 Tom de Vries <tdevries@suse.de>
2568
2569 PR build/26344
2570 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2571 constructor.
2572 * regcache.c (get_thread_arch_aspace_regcache): Same.
2573
a52b3ae2
TT
25742020-08-07 Tom Tromey <tromey@adacore.com>
2575
2576 * ravenscar-thread.c
2577 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2578 New method.
2579 (ravenscar_thread_target::wait): Check
2580 runtime_initialized.
2581 (ravenscar_thread_target::prepare_to_store)
2582 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2583 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2584 (ravenscar_thread_target::stopped_by_watchpoint)
2585 (ravenscar_thread_target::stopped_data_address)
2586 (ravenscar_thread_target::core_of_thread): Use
2587 scoped_restore_current_thread and
2588 set_base_thread_from_ravenscar_task.
2589
0e29517d
TT
25902020-08-07 Tom Tromey <tromey@adacore.com>
2591
2592 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2593
592f9bd7
TT
25942020-08-07 Tom Tromey <tromey@adacore.com>
2595
2596 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2597 update_inferior_ptid before update_thread_list.
2598 (temporarily_change_regcache_ptid): New class.
2599 (ravenscar_thread_target::fetch_registers)
2600 (ravenscar_thread_target::store_registers)
2601 (ravenscar_thread_target::prepare_to_store): Use base thread when
2602 forwarding operation.
2603
39e2018a
TT
26042020-08-07 Tom Tromey <tromey@adacore.com>
2605
2606 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2607 "is_pid" case.
2608
2080266b
TT
26092020-08-07 Tom Tromey <tromey@adacore.com>
2610
2611 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2612 New methods.
2613 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2614 first.
2615 (ravenscar_thread_target::add_thread): Rename from
2616 ravenscar_add_thread.
2617 (ravenscar_thread_target::update_thread_list): Use a lambda.
2618 (ravenscar_thread_target::xfer_partial): New method.
2619
78c02f21
TT
26202020-08-07 Tom Tromey <tromey@adacore.com>
2621
2622 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2623 gdb::function_view.
2624 (iterate_over_live_ada_tasks): Change type of argument.
2625 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2626 of argument.
2627
d5d833af
TT
26282020-08-07 Tom Tromey <tromey@adacore.com>
2629
2630 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2631 Remove.
2632 (ravenscar_thread_target::extra_thread_info): Remove.
2633 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2634 defer to target beneath for non-Ravenscar threads.
2635
a8ac85bb
TT
26362020-08-07 Tom Tromey <tromey@adacore.com>
2637
2638 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2639 get_base_thread_from_ravenscar_task>: Now methods.
2640 <m_cpu_map>: New member.
2641 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2642 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2643 (ravenscar_thread_target::task_is_currently_active): Update.
2644 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2645 Now a method.
2646 (ravenscar_thread_target::add_active_thread): Put initial thread
2647 into the m_cpu_map.
2648
550ab58d
TT
26492020-08-07 Tom Tromey <tromey@adacore.com>
2650
2651 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2652 event_ptid.
2653
e9546579
TT
26542020-08-07 Tom Tromey <tromey@adacore.com>
2655
2656 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2657 runtime_initialized.
2658
3d4470e5
TT
26592020-08-07 Tom Tromey <tromey@adacore.com>
2660
2661 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2662 add_active_thread.
2663 (ravenscar_thread_target::add_active_thread): Now public.
2664 (ravenscar_inferior_created): Call add_active_thread after pushing
2665 the target.
2666
888bdb2b
SM
26672020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2668
2669 * regcache.c (ptid_regcache_map): New type.
2670 (target_ptid_regcache_map): New type.
2671 (regcaches): Change type to target_ptid_regcache_map.
2672 (get_thread_arch_aspace_regcache): Update to regcaches' new
2673 type.
2674 (regcache_thread_ptid_changed): Likewise.
2675 (registers_changed_ptid): Likewise.
2676 (regcaches_size): Likewise.
2677 (regcaches_test): Update.
2678 (regcache_thread_ptid_changed): Update.
2679 * regcache.h (regcache_up): New type.
2680 * gdbsupport/ptid.h (hash_ptid): New struct.
2681
b161a60d
SM
26822020-08-07 Simon Marchi <simon.marchi@efficios.com>
2683
2684 * observable.h (thread_ptid_changed): Add parameter
2685 `process_stratum_target *`.
2686 * infrun.c (infrun_thread_ptid_changed): Add parameter
2687 `process_stratum_target *` and use it.
2688 (selftests): New namespace.
2689 (infrun_thread_ptid_changed): New function.
2690 (_initialize_infrun): Register selftest.
2691 * regcache.c (regcache_thread_ptid_changed): Add parameter
2692 `process_stratum_target *` and use it.
2693 (regcache_thread_ptid_changed): New function.
2694 (_initialize_regcache): Register selftest.
2695 * thread.c (thread_change_ptid): Pass target to
2696 thread_ptid_changed observable.
2697
d2854d8d
CT
26982020-08-06 Caroline Tice <cmtice@google.com>
2699
fe4c3d43
SM
2700 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2701 (struct dwp_sections): Update field comments. Add loclists and
2702 rnglists fields.
2703 (struct virtual_v2_dwo_sections): Rename struct to
2704 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2705 size & offset fields for loclists and rnglists.
2706 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2707 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2708 skipping dummy type units.
2709 (create_dwp_hash_table): Update the large comment above the function to
2710 discuss Version 5 DWP files as well, with references. Update all the
2711 version checks in the function to check for version 5 as well. Add new
2712 section at the end to create dwp hash table for version 5.
2713 (create_dwp_v2_section): Rename function to
2714 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2715 Add V5 to error message text.
2716 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2717 into calls to create_dwp_v2_or_v5_section.
2718 (create_dwo_unit_in_dwp_v5): New function.
2719 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2720 check for version2; add else clause to handle version 5.
2721 (open_and_init_dwo_file): Add code to check dwarf version & only call
2722 create_debug_types_hash_table (with sections.types) if version is not 5;
2723 else call create_debug_type_hash_table, with sections.info.
2724 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2725 version 5.
2726 (dwarf2_locate_v5_dwp_sections): New function.
2727 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2728 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2729
159ed7d9
SM
27302020-08-06 Simon Marchi <simon.marchi@efficios.com>
2731
2732 * regcache.h (class regcache): Remove friend
2733 registers_changed_ptid.
2734 <regcache_thread_ptid_changed>: Remove.
2735 <regcaches>: Remove.
2736 * regcache.c (regcache::regcaches): Rename to...
2737 (regcaches): ... this. Make static.
2738 (get_thread_arch_aspace_regcache): Update.
2739 (regcache::regcache_thread_ptid_changed): Rename to...
2740 (regcache_thread_ptid_changed): ... this. Update.
2741 (class regcache_access): Remove.
2742 (regcaches_test): Update.
2743 (_initialize_regcache): Update.
2744 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2745 <forward_list>.
2746
174981ae
SM
27472020-08-06 Simon Marchi <simon.marchi@efficios.com>
2748
2749 * regcache.h (class regcache) <current_regcache>: Rename to...
2750 <regcaches>: ... this. Move doc here.
2751 * regcache.c (regcache::current_regcache) Rename to...
2752 (regcache::regcaches): ... this. Move doc to header.
2753 (get_thread_arch_aspace_regcache): Update.
2754 (regcache::regcache_thread_ptid_changed): Update.
2755 (registers_changed_ptid): Update.
2756 (class regcache_access) <current_regcache_size>: Rename to...
2757 <regcaches_size>: ... this.
2758 (current_regcache_test): Rename to...
2759 (regcaches_test): ... this.
2760 (_initialize_regcache): Update.
2761
ed908db6
VC
27622020-08-06 Victor Collod <vcollod@nvidia.com>
2763
2764 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2765
b5582ab7
KB
27662020-08-05 Kevin Buettner <kevinb@redhat.com>
2767
2768 * corelow.c (core_target::build_file_mappings): Don't output
2769 null pathname in warning.
2770
ea946b86
SM
27712020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2772
2773 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2774 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2775 gdb.dwarf2/dw2-single-line-discriminators.exp,
2776 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2777
57d02173
TT
27782020-08-05 Tom Tromey <tromey@adacore.com>
2779
2780 PR rust/26197:
2781 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2782 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2783 Fix off-by-one and type size errors in ordinary case.
2784
5555c86d
TV
27852020-08-05 Tom de Vries <tdevries@suse.de>
2786
2787 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2788 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2789
97916bfe
SM
27902020-08-04 Simon Marchi <simon.marchi@efficios.com>
2791
2792 * frame.h (frame_id_p): Return bool.
2793 (frame_id_artificial_p): Return bool.
2794 (frame_id_eq): Return bool.
2795 (has_stack_frames): Return bool.
2796 (get_selected_frame): Fix typo in comment.
2797 (get_frame_pc_if_available): Return bool.
2798 (get_frame_address_in_block_if_available): Return bool.
2799 (get_frame_func_if_available): Return bool.
2800 (read_frame_register_unsigned): Return bool.
2801 (get_frame_register_bytes): Return bool.
2802 (safe_frame_unwind_memory): Return bool.
2803 (deprecated_frame_register_read): Return bool.
2804 (frame_unwinder_is): Return bool.
2805 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2806 bool.
2807 <this_id::p>: Likewise.
2808 <prev_p>: Likewise.
2809 (frame_stash_add): Return bool.
2810 (get_frame_id): Use bool.
2811 (frame_id_build_special) Use bool.
2812 (frame_id_build_unavailable_stack): Use bool.
2813 (frame_id_build): Use bool.
2814 (frame_id_p): Return bool, use true/false instead of 1/0.
2815 (frame_id_artificial_p): Likewise.
2816 (frame_id_eq): Likewise.
2817 (frame_id_inner): Likewise.
2818 (get_frame_func_if_available): Likewise.
2819 (read_frame_register_unsigned): Likewise.
2820 (deprecated_frame_register_read): Likewise.
2821 (get_frame_register_bytes): Likewise.
2822 (has_stack_frames): Likewise.
2823 (inside_main_func): Likewise.
2824 (inside_entry_func): Likewise.
2825 (get_frame_pc_if_available): Likewise.
2826 (get_frame_address_in_block_if_available): Likewise.
2827 (frame_unwinder_is): Likewise.
2828 (safe_frame_unwind_memory): Likewise.
2829 (frame_unwind_arch): Likewise.
2830
fedfee88
SM
28312020-08-04 Simon Marchi <simon.marchi@efficios.com>
2832
2833 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2834 type to cached_copy_status.
2835 (fprintf_frame): Adjust.
2836 (get_frame_func_if_available): Adjust.
2837 (frame_cleanup_after_sniffer): Adjust.
2838
6cfa9b59
MW
28392020-08-04 Mark Wielaard <mark@klomp.org>
2840
2841 * MAINTAINERS (Write After Approval): Update email address.
2842
66d6346b
SM
28432020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2844
2845 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2846 dynamic_prop::const_val.
2847
8a6d5e35
SM
28482020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2849
2850 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2851 dynamic_prop::kind.
2852
51d6067d
SM
28532020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2854
2855 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2856
b26e2ae7
JM
28572020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2858
2859 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2860
39791af2
JM
28612020-08-04 Weimin Pan <weimin.pan@oracle.com>
2862 Jose E. Marchesi <jose.marchesi@oracle.com>
2863
2864 * configure.tgt: Add entry for bpf-*-*.
2865 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2866 (ALLDEPFILES): Add bpf-tdep.c.
2867 * bpf-tdep.c: New file.
2868 * MAINTAINERS: Add bpf target and maintainer.
2869 * NEWS: Mention the support for the new target.
2870
521894aa
TV
28712020-08-04 Tom de Vries <tdevries@suse.de>
2872
2873 PR symtab/23270
2874 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2875 Error.
2876
5d6356e9
JB
28772020-08-03 John Baldwin <jhb@FreeBSD.org>
2878
2879 * syscalls/freebsd.xml: Regenerate.
2880
0cf82b81
JB
28812020-08-03 John Baldwin <jhb@FreeBSD.org>
2882
2883 * syscalls/update-freebsd.sh: Fix usage and year range.
2884
8f34b746
TV
28852020-08-03 Tom de Vries <tdevries@suse.de>
2886
2887 PR symtab/26333
2888 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2889 DW_LNE_lo_user/DW_LNE_hi_user range.
2890
5e500d33
SM
28912020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2892
2893 PR ada/26318
2894 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2895 kind.
2896
78319c15
TBA
28972020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2898
2899 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2900
4c55e970
TBA
29012020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2902
2903 * breakpoint.c (set_breakpoint_condition): Update the condition
2904 expressions after checking that the input condition string parses
2905 successfully and does not contain junk at the end.
2906
1e620590
TBA
29072020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2908
2909 * breakpoint.c (set_breakpoint_condition): Update the
2910 condition string after parsing the new condition successfully.
2911
c8693053
RO
29122020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2913
2914 * proc-api.c (_STRUCTURED_PROC): Don't define.
2915 * proc-events.c: Likewise.
2916 * proc-flags.c: Likewise.
2917 * proc-why.c: Likewise.
2918 * procfs.c: Likewise.
2919
2920 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2921 * configure, config.in: Regenerate.
2922
5a99adb8
TV
29232020-07-30 Tom de Vries <tdevries@suse.de>
2924
2925 PR build/26320
2926 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2927 m_red/m_green/m_blue in a union.
2928
8ba83e91
TV
29292020-07-29 Tom de Vries <tdevries@suse.de>
2930
2931 PR tdep/26280
2932 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2933
f75a0693
AB
29342020-07-28 Tom Tromey <tromey@adacore.com>
2935
2936 PR symtab/26270:
2937 * symtab.h (find_pc_partial_function_sym): Declare.
2938 * cli/cli-cmds.c (disassemble_command): Use
2939 find_pc_partial_function_sym. Check asm_demangle.
2940 * blockframe.c (cache_pc_function_sym): New global.
2941 (cache_pc_function_name): Remove.
2942 (clear_pc_function_cache): Update.
2943 (find_pc_partial_function_sym): New function, from
2944 find_pc_partial_function.
2945 (find_pc_partial_function): Rewrite using
2946 find_pc_partial_function_sym.
2947
16f3242c
TT
29482020-07-28 Tom Tromey <tromey@adacore.com>
2949
2950 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2951 help. Add usage.
2952
4888741a
TT
29532020-07-28 Tom Tromey <tromey@adacore.com>
2954
2955 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2956 <DW_OP_GNU_variable_value>: Cast to address type.
2957
4d46f402
KR
29582020-07-28 Kamil Rytarowski <n54@gmx.com>
2959
2960 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2961 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2962 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2963 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2964 (nbsd_get_siginfo_type): New.
2965 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2966 (_initialize_nbsd_tdep): New.
2967
d70f978b
L
29682020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2969
2970 PR binutils/26301
2971 * configure: Regenerated.
2972
377170fa
L
29732020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2974
2975 PR binutils/26301
2976 * configure: Regenerated.
2977
43d5901d
AB
29782020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2979
2980 * python/py-frame.c: Remove 'user-regs.h' include.
2981 (frapy_read_register): Rewrite to make use of
2982 gdbpy_parse_register_id.
2983 * python/py-registers.c (gdbpy_parse_register_id): New function,
2984 moved here from python/py-unwind.c. Updated the return type, and
2985 also accepts register descriptor objects.
2986 * python/py-unwind.c: Remove 'user-regs.h' include.
2987 (pyuw_parse_register_id): Moved to python/py-registers.c.
2988 (unwind_infopy_add_saved_register): Update to use
2989 gdbpy_parse_register_id.
2990 (pending_framepy_read_register): Likewise.
2991 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2992
14fa8fb3
AB
29932020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2994
2995 * python/py-registers.c: Add 'user-regs.h' include.
2996 (register_descriptor_iter_find): New function.
2997 (register_descriptor_iterator_object_methods): New static global
2998 methods array.
2999 (register_descriptor_iterator_object_type): Add pointer to methods
3000 array.
3001
ddce1758
JB
30022020-07-27 John Baldwin <jhb@FreeBSD.org>
3003
3004 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3005 for all architectures on FreeBSD 11.3 and later.
3006
a4089f52
TT
30072020-07-27 Tom Tromey <tromey@adacore.com>
3008
3009 * gcore.h (load_corefile): Don't declare.
3010
95420d30
TV
30112020-07-27 Tom de Vries <tdevries@suse.de>
3012
3013 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3014 * config.in: Regenerate.
3015 * configure: Regenerate.
3016
05a6b8c2
EZ
30172020-07-26 Eli Zaretskii <eliz@gnu.org>
3018
3019 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3020 ws2tcpip.h. When checking whether socklen_t type is defined, use
3021 ws2tcpip.h if it is available and sys/socket.h isn't.
3022 * configure: Regenerate.
3023 * config.in: Regenerate.
3024
e79eb02f
AB
30252020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3026
3027 PR fortran/23051
3028 PR fortran/26139
3029 * valops.c (value_ind): Pass address to
3030 readjust_indirect_value_type.
3031 * value.c (readjust_indirect_value_type): Make parameter
3032 non-const, and add extra address parameter. Resolve original type
3033 before using it.
3034 * value.h (readjust_indirect_value_type): Update function
3035 signature and comment.
3036
876518dd
TV
30372020-07-25 Tom de Vries <tdevries@suse.de>
3038
3039 PR symtab/26243
3040 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3041 entries.
3042
f6720b1c
AM
30432020-07-24 Aaron Merey <amerey@redhat.com>
3044
3045 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3046 * configure: Rebuild.
3047
513487e1
KB
30482020-07-23 Kevin Buettner <kevinb@redhat.com>
3049
3050 PR corefiles/26294
3051 * corelow.c (_initialize_corelow): Add period to help text
3052 for "maintenance print core-file-backed-mappings".
3053
e7bc9db8
PA
30542020-07-23 Pedro Alves <pedro@palves.net>
3055
3056 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3057 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3058 meanwhile.
3059 * frame.c (frame_cache_generation, get_frame_cache_generation):
3060 New.
3061 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3062 (get_prev_frame_if_no_cycle): On exception, don't touch
3063 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3064 * frame.h (get_frame_cache_generation): Declare.
3065
90fcc466
TV
30662020-07-23 Tom de Vries <tdevries@suse.de>
3067
3068 PR tui/26282
3069 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3070 New default constructor.
3071
78344df7
AB
30722020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3073
3074 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3075 exclude non-statement entries.
3076
b089853a
KB
30772020-07-22 Kevin Buettner <kevinb@redhat.com>
3078
3079 * NEWS (New commands): Mention new command
3080 "maintenance print core-file-backed-mappings".
3081
09c2f5d4
KB
30822020-07-22 Kevin Buettner <kevinb@redhat.com>
3083
3084 * corelow.c (gdbcmd.h): Include.
3085 (core_target::info_proc_mappings): New method.
3086 (get_current_core_target): New function.
3087 (maintenance_print_core_file_backed_mappings): New function.
3088 (_initialize_corelow): Add core-file-backed-mappings to
3089 "maint print" commands.
3090
9c5ec5c2 30912020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3092
9c5ec5c2
KB
3093 * linux-tdep.c (dump_note_entry_p): New function.
3094 (linux_dump_mapping_p_ftype): New typedef.
3095 (linux_find_memory_regions_full): Add new parameter,
3096 should_dump_mapping_p.
3097 (linux_find_memory_regions): Adjust call to
3098 linux_find_memory_regions_full.
3099 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3100 call to linux_find_memory_regions_full.
3101
db082f59
KB
31022020-07-22 Kevin Buettner <kevinb@redhat.com>
3103
3104 * corelow.c (solist.h, unordered_map): Include.
3105 (class core_target): Add field m_core_file_mappings and
3106 method build_file_mappings.
3107 (core_target::core_target): Call build_file_mappings.
3108 (core_target::~core_target): Free memory associated with
3109 m_core_file_mappings.
3110 (core_target::build_file_mappings): New method.
3111 (core_target::xfer_partial): Use m_core_file_mappings
3112 for memory transfers.
3113 * linux-tdep.c (linux_read_core_file_mappings): New
3114 function.
3115 (linux_core_info_proc_mappings): Rewrite to use
3116 linux_read_core_file_mappings.
3117 (linux_init_abi): Register linux_read_core_file_mappings.
3118
7e183d27
KB
31192020-07-22 Kevin Buettner <kevinb@redhat.com>
3120
3121 * arch-utils.c (default_read_core_file_mappings): New function.
3122 * arch-utils.c (default_read_core_file_mappings): Declare.
3123 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3124 * gdbarch.h, gdbarch.c: Regenerate.
3125
2735d421
KB
31262020-07-22 Kevin Buettner <kevinb@redhat.com>
3127
3128 PR corefiles/25631
3129 * corelow.c (core_target:xfer_partial): Revise
3130 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3131 case after first checking the stratum beneath the core
3132 target.
3133 (has_all_memory): Return true.
3134 * target.c (raw_memory_xfer_partial): Revise comment
3135 regarding use of has_all_memory.
3136
e56cb451
KB
31372020-07-22 Kevin Buettner <kevinb@redhat.com>
3138
3139 * exec.h (section_table_xfer_memory): Revise declaration,
3140 replacing section name parameter with an optional callback
3141 predicate.
3142 * exec.c (section_table_xfer_memory): Likewise.
3143 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3144 of section_table_xfer_memory.
3145
32fa152e
TT
31462020-07-22 Tom Tromey <tromey@adacore.com>
3147
3148 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3149 lookup_symbol_search_name.
3150
a67a1c41
AB
31512020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3152
3153 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3154 redundant local variable.
3155 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3156 reference, not pointer, update code accordingly.
3157
a7b4ff4f
SM
31582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3159 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3160
3161 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3162 * jit.c (jit_breakpoint_re_set_internal): Use the
3163 `skip_jit_symbol_lookup` field.
3164
2340e834
SM
31652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3166 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3167
3168 * jit.c (jit_read_descriptor): Define the descriptor address once,
3169 use twice.
3170 (jit_breakpoint_deleted): Move the declaration of the loop variable
3171 `iter` into the loop header.
3172 (jit_breakpoint_re_set_internal): Move the declaration of the local
3173 variable `objf_data` to the first point of definition.
3174 (jit_event_handler): Move the declaration of local variables
3175 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3176 Rename `objf` to `jited`.
3177
c1072906
SM
31782020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3179
3180 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3181 Remove.
3182 * jit.c (get_jiter_objfile_data): Update.
3183
c8474dc3
TBA
31842020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3185 Simon Marchi <simon.marchi@polymtl.ca>
3186
3187 * jit.c (struct jit_program_space_data): Remove.
3188 (jit_program_space_key): Remove.
3189 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3190 stuff.
3191 (get_jit_program_space_data): Remove.
3192 (jit_breakpoint_deleted): Iterate on all of the program space's
3193 objfiles.
3194 (jit_inferior_init): Likewise.
3195 (jit_breakpoint_re_set_internal): Likewise. Also change return
3196 type to void.
3197 (jit_breakpoint_re_set): Pass current_program_space to
3198 jit_breakpoint_re_set_internal.
3199
77208eb7
SM
32002020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3201
3202 * jit.h (struct jiter_objfile_data) <cached_code_address,
3203 jit_breakpoint>: Move to here from ...
3204 * jit.c (jit_program_space_data): ... here.
3205 (jiter_objfile_data::~jiter_objfile_data): Update.
3206 (jit_breakpoint_deleted): Update.
3207 (jit_breakpoint_re_set_internal): Update.
3208
8c1c720f
SM
32092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3210
3211 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3212 checks.
3213 (jit_read_descriptor): Remove NULL check.
3214 (jit_event_handler): Add an assertion.
3215
0e74a041
SM
32162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3217
3218 * jit.h (struct jit_objfile_data): Split into...
3219 (struct jiter_objfile_data): ... this ...
3220 (struct jited_objfile_data): ... and this.
3221 * objfiles.h (struct objfile) <jit_data>: Remove.
3222 <jiter_data, jited_data>: New fields.
3223 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3224 (jiter_objfile_data::~jiter_objfile_data): ... this.
3225 (get_jit_objfile_data): Rename to ...
3226 (get_jiter_objfile_data): ... this.
3227 (add_objfile_entry): Update.
3228 (jit_read_descriptor): Use get_jiter_objfile_data.
3229 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3230 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3231 (jit_inferior_exit_hook): Use objfile's jited_data field.
3232
238b5c9f
SM
32332020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3234
3235 * jit.h: Forward-declare `struct minimal_symbol`.
3236 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3237 constructor, destructor, and an objfile* field.
3238 * jit.c (jit_objfile_data): Remove.
3239 (struct jit_objfile_data): Migrate from here to jit.h.
3240 (jit_objfile_data::~jit_objfile_data): New destructor
3241 implementation with code moved from free_objfile_data.
3242 (free_objfile_data): Delete.
3243 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3244 (jit_find_objf_with_entry_addr): Ditto.
3245 (jit_inferior_exit_hook): Ditto.
3246 (_initialize_jit): Remove the call to
3247 register_objfile_data_with_cleanup.
3248 * objfiles.h (struct objfile) <jit_data>: New field.
3249
fe053b9e
TBA
32502020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3251
3252 * jit.h: Forward-declare `struct objfile`.
3253 (jit_event_handler): Add a second parameter, the JITer objfile.
3254 * jit.c (jit_read_descriptor): Change the signature to take the
3255 JITer objfile as an argument instead of the jit_program_space_data.
3256 (jit_inferior_init): Update the call to jit_read_descriptor.
3257 (jit_event_handler): Use the new JITer objfile argument when calling
3258 jit_read_descriptor.
3259 * breakpoint.c (handle_jit_event): Update the call to
3260 jit_event_handler to pass the JITer objfile.
3261
4cec0c66
JB
32622020-07-21 John Baldwin <jhb@FreeBSD.org>
3263
3264 * gdbarch.c: Regenerate.
3265 * gdbarch.h: Regenerate.
3266 * gdbarch.sh (handle_segmentation_fault): Remove method.
3267 * infrun.c (handle_segmentation_fault): Remove.
3268 (print_signal_received_reason): Remove call to
3269 handle_segmentation_fault.
3270
0e42f66a
JB
32712020-07-21 John Baldwin <jhb@FreeBSD.org>
3272
3273 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3274 Rename to sparc64_linux_report_signal_info and add siggnal
3275 argument.
3276 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3277 instead of sparc64_linux_handle_segmentation_fault.
3278
77bdfeb2
JB
32792020-07-21 John Baldwin <jhb@FreeBSD.org>
3280
3281 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3282 i386_linux_report_signal_info instead of
3283 i386_linux_handle_segmentation_fault.
3284 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3285 to i386_linux_report_signal_info and add siggnal argument.
3286 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3287 of i386_linux_handle_segmentation_fault.
3288 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3289 to i386_linux_report_signal_info and add siggnal argument.
3290
ad97bfc5
JB
32912020-07-21 John Baldwin <jhb@FreeBSD.org>
3292
3293 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3294 hook if present.
3295
272bb05c
JB
32962020-07-21 John Baldwin <jhb@FreeBSD.org>
3297
3298 * gdbarch.c: Regenerate.
3299 * gdbarch.h: Regenerate.
3300 * gdbarch.sh (report_signal_info): New method.
3301 * infrun.c (print_signal_received_reason): Invoke gdbarch
3302 report_signal_info hook if present.
3303
baf8791e
AB
33042020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3305
3306 * python/py-registers.c : Add 'unordered_map' include.
3307 (gdbpy_new_reggroup): Renamed to...
3308 (gdbpy_get_reggroup): ...this. Update to only create register
3309 group descriptors when needed.
3310 (gdbpy_reggroup_iter_next): Update.
3311
f7306dac
AB
33122020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3313
3314 * python/py-registers.c (gdbpy_register_object_data): New static
3315 global.
3316 (gdbpy_register_object_data_init): New function.
3317 (gdbpy_new_register_descriptor): Renamed to...
3318 (gdbpy_get_register_descriptor): ...this, and update to reuse
3319 existing register descriptors where possible.
3320 (gdbpy_register_descriptor_iter_next): Update.
3321 (gdbpy_initialize_registers): Register new gdbarch data.
3322
05c309a8
SM
33232020-07-21 Simon Marchi <simon.marchi@efficios.com>
3324
3325 * linux-nat.c (stopped_pids): Make static.
3326
d1fd641e
SM
33272020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3328
3329 PR ada/26235
3330 * gdbtypes.c (ada_discrete_type_low_bound,
3331 ada_discrete_type_high_bound): Handle undefined bounds.
3332
1de14d77
KR
33332020-07-21 Kamil Rytarowski <n54@gmx.com>
3334
3335 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3336 declaration.
3337 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3338 function.
3339
ed810cc7
JB
33402020-07-20 John Baldwin <jhb@FreeBSD.org>
3341
3342 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3343 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3344 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3345 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3346 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3347 method.
3348
ae5369e7
LC
33492020-07-20 Ludovic Courtès <ludo@gnu.org>
3350
3351 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3352 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3353 which are deprecated in Guile 3.0.
3354 * configure.ac (try_guile_versions): Add "guile-3.0".
3355 * configure (try_guile_versions): Regenerate.
3356 * NEWS: Update entry.
3357
68cf161c
LC
33582020-07-20 Ludovic Courtès <ludo@gnu.org>
3359 Doug Evans <dje@google.com>
3360
3361 PR gdb/21104
3362 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3363 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3364 USING_GUILE_BEFORE_2_2.
3365 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3366 Change type to 'scm_t_port_type *'.
3367 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3368 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3369 parameter and honor it. Update callers.
3370 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3371 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3372 functions.
3373 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3374 USING_GUILE_BEFORE_2_2.
3375 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3376 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3377 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3378 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3379 and 'SCM_PORT_TYPE'.
3380 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3381 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3382 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3383 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3384 [!USING_GUILE_BEFORE_2_2]: New functions.
3385 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3386 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3387 'gdbscm_memory_port_read'.
3388 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3389 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3390 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3391 function.
3392 (ioscm_init_memory_port): Remove.
3393 (ioscm_init_memory_port_stream): New function
3394 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3395 function.
3396 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3397 Return scm_from_uint (0).
3398 (gdbscm_set_memory_port_read_buffer_size_x)
3399 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3400 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3401 Return scm_from_uint (0).
3402 (gdbscm_set_memory_port_write_buffer_size_x)
3403 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3404 * configure.ac (try_guile_versions): Add "guile-2.2".
3405 * configure: Regenerate.
3406 * NEWS: Add entry.
3407
aee91db3
TT
34082020-07-18 Tom Tromey <tom@tromey.com>
3409
3410 * linux-nat.c (linux_multi_process): Remove.
3411 (linux_nat_target::supports_multi_process): Return true.
3412
0e267416
AB
34132020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3414
3415 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3416 (riscv_lookup_target_description): Return pointer out of
3417 unique_ptr.
3418 * target-descriptions.c (allocate_target_description): Add
3419 comment.
3420 (target_desc_deleter::operator()): Likewise.
3421 * target-descriptions.h (struct target_desc_deleter): Moved to
3422 gdbsupport/tdesc.h.
3423 (target_desc_up): Likewise.
3424
f80c8ec4
TT
34252020-07-17 Tom Tromey <tromey@adacore.com>
3426
3427 * linux-nat.c (linux_nat_target::supports_non_stop)
3428 (linux_nat_target::always_non_stop_p): Use "true".
3429 (linux_nat_target::supports_disable_randomization): Use "true" and
3430 "false".
3431
d0ce17d8
CT
34322020-07-16 Caroline Tice <cmtice@google.com>
3433
3434 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3435 (RNGLIST_HEADER_SIZE64): New constant definition.
3436 (struct dwop_section_names): Add rnglists_dwo.
3437 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3438 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3439 (struct dwo_sections): Add rnglists field.
3440 (read_attribut_reprocess): Add tag parameter.
3441 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3442 (cu_debug_rnglists_section): New function (decl & definition).
3443 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3444 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3445 die whose range is being checked; get rnglist section from
3446 cu_debug_rnglists_section, to get from either objfile or dwo file as
3447 appropriate. Add cases for DW_RLE_base_addressx,
3448 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3449 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3450 test inside if-condition and updating complaint message.
3451 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3452 dwarf2_rnglists_process.
3453 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3454 dwarf2_ranges_process.
3455 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3456 need_ranges_base and update comment appropriately. Also pass die tag
3457 to dwarf2_ranges_read.
3458 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3459 need_ranges_base and update comment appropriately. Also pass die tag
3460 to dwarf2_ranges_process.
3461 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3462 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3463 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3464 need_ranges_base and update comment appropriately. Also pass die tag
3465 to read_attribute_reprocess and dwarf2_ranges_read.
3466 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3467 and update function comment appropriately.
3468 (read_loclist_index): Call read_loclists_rnglists_header instead of
3469 read_loclist_header.
3470 (read_rnglist_index): New function.
3471 (read_attribute_reprocess): Add tag parameter. Add code for
3472 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3473 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3474
3dcc261c
AB
34752020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3476
3477 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3478 being resolved.
3479
ccb9eba6
AB
34802020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3481
3482 * arch-utils.c (show_architecture): Update formatting of messages.
3483
cf88be68
SM
34842020-07-12 Simon Marchi <simon.marchi@efficios.com>
3485
3486 * gdbtypes.h (struct type) <bounds>: Handle array and string
3487 types.
3488 * ada-lang.c (assign_aggregate): Use type::bounds on
3489 array/string type.
3490 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3491 * c-varobj.c (c_number_of_children): Likewise.
3492 (c_describe_child): Likewise.
3493 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3494 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3495 (f_type_print_base): Likewise.
3496 * f-valprint.c (f77_array_offset_tbl): Likewise.
3497 (f77_get_upperbound): Likewise.
3498 (f77_print_array_1): Likewise.
3499 * guile/scm-type.c (gdbscm_type_range): Likewise.
3500 * m2-typeprint.c (m2_array): Likewise.
3501 (m2_is_long_set_of_type): Likewise.
3502 * m2-valprint.c (get_long_set_bounds): Likewise.
3503 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3504 * python/py-type.c (typy_range): Likewise.
3505 * rust-lang.c (rust_internal_print_type): Likewise.
3506 * type-stack.c (type_stack::follow_types): Likewise.
3507 * valarith.c (value_subscripted_rvalue): Likewise.
3508 * valops.c (value_cast): Likewise.
3509
509971ae
SM
35102020-07-12 Simon Marchi <simon.marchi@efficios.com>
3511
3512 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3513 callers to use the equivalent accessor methods.
3514
107406b7
SM
35152020-07-12 Simon Marchi <simon.marchi@efficios.com>
3516
3517 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3518 (struct type) <bit_stride>: New method.
3519 (TYPE_BIT_STRIDE): Remove.
3520 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3521
bb789949
SM
35222020-07-12 Simon Marchi <simon.marchi@efficios.com>
3523
3524 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3525 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3526 callers to use the equivalent accessor methods instead.
3527
39498edb
SM
35282020-07-12 Simon Marchi <simon.marchi@efficios.com>
3529
3530 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3531 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3532 callers to use the equivalent accessor methods instead.
3533
3b606f38
SM
35342020-07-12 Simon Marchi <simon.marchi@efficios.com>
3535
3536 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3537 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3538 to use dynamic_prop::kind.
3539
064d9cb9
SM
35402020-07-12 Simon Marchi <simon.marchi@efficios.com>
3541
3542 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3543 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3544 to get the bound property's kind and check against
3545 PROP_UNDEFINED.
3546
5537ddd0
SM
35472020-07-12 Simon Marchi <simon.marchi@efficios.com>
3548
3549 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3550 all callers to use type::range_bounds followed by
3551 dynamic_prop::{low,high}.
3552
8c2e4e06
SM
35532020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3554
3555 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3556 const_val, set_const_val, baton, set_locexpr, set_loclist,
3557 set_addr_offset, variant_parts, set_variant_parts,
3558 original_type, set_original_type>: New methods.
3559 <kind>: Rename to...
3560 <m_kind>: ... this. Update all users to use the new methods
3561 instead.
3562 <data>: Rename to...
3563 <m_data>: ... this. Update all users to use the new methods
3564 instead.
3565
7c6f2712
SM
35662020-07-12 Simon Marchi <simon.marchi@efficios.com>
3567
3568 * gdbtypes.c (get_discrete_bounds): Return failure if
3569 the range type's bounds are not both defined and constant
3570 values.
3571 (get_array_bounds): Update comment. Remove undefined bound check.
3572
599088e3
SM
35732020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3574
3575 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3576 the type::bounds method directly.
3577
c4dfcb36
SM
35782020-07-12 Simon Marchi <simon.marchi@efficios.com>
3579
3580 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3581 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3582 are used to set the range type's bounds to use set_bounds.
3583
0a278aa7
PW
35842020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3585
3586 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3587
cce20f10
PA
35882020-07-10 Pedro Alves <pedro@palves.net>
3589
3590 * gdbthread.h (inferior_ref): Define.
3591 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3592 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3593 * thread.c
3594 (scoped_restore_current_thread::restore):
3595 Adjust to gdb::ref_ptr.
3596 (scoped_restore_current_thread::~scoped_restore_current_thread):
3597 Remove manual decref handling.
3598 (scoped_restore_current_thread::scoped_restore_current_thread):
3599 Adjust to use
3600 inferior_ref::new_reference/thread_info_ref::new_reference.
3601 Incref the thread before calling get_frame_id instead of after.
3602 Let TARGET_CLOSE_ERROR propagate.
3603
6d7aa592
PA
36042020-07-10 Pedro Alves <pedro@palves.net>
3605
3606 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3607 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3608 NOT_AVAILABLE_ERROR.
3609 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3610 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3611
b3e3a4c1
SM
36122020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3613 Pedro Alves <pedro@palves.net>
3614
3615 PR gdb/26199
3616 * infrun.c (threads_are_resumed_pending_p): Delete.
3617 (do_target_wait): Remove threads_are_executing and
3618 threads_are_resumed_pending_p checks from the inferior_matches
3619 lambda. Update comments.
3620
d6cc5d98
PA
36212020-07-10 Pedro Alves <pedro@palves.net>
3622
3623 PR gdb/26199
3624 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3625 executing threads.
3626
7d3badc6
PA
36272020-07-10 Pedro Alves <pedro@palves.net>
3628
3629 PR gdb/26199
3630 * infrun.c (handle_no_resumed): Handle multiple targets.
3631
42bd97a6
PA
36322020-07-10 Pedro Alves <pedro@palves.net>
3633
3634 PR gdb/26199
3635 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3636 target_is_async_p.
3637
43667cc6
PA
36382020-07-10 Pedro Alves <pedro@palves.net>
3639
3640 PR gdb/26199
3641 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3642 threads, not all threads.
3643
96118d11
PA
36442020-07-10 Pedro Alves <pedro@palves.net>
3645
3646 PR gdb/26199
3647 * remote.c (remote_target::open_1): Pass remote target pointer as
3648 data to create_async_event_handler.
3649 (remote_async_inferior_event_handler): Mark async event handler
3650 before returning if the remote target still has either pending
3651 events or unacknowledged notifications.
3652
54904d81
JB
36532020-07-10 John Baldwin <jhb@FreeBSD.org>
3654
3655 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3656 declaration.
3657 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3658 function.
3659
f37e5866
JB
36602020-07-09 John Baldwin <jhb@FreeBSD.org>
3661
3662 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3663 inferior_ptid.
3664
fc238d4a
JB
36652020-07-09 John Baldwin <jhb@FreeBSD.org>
3666
3667 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3668 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3669 AT_FREEBSD_PS_STRINGS.
3670
6e2469ff
HD
36712020-07-08 Hannes Domani <ssbssa@yahoo.de>
3672
3673 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3674 of debugfile path on Windows.
3675
d1076c41
JB
36762020-07-08 John Baldwin <jhb@FreeBSD.org>
3677
3678 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3679 argument to 'data'.
3680
15f3b077
TT
36812020-07-08 Tom Tromey <tromey@adacore.com>
3682
3683 * ada-lang.c (ada_exception_message_1): Use read_memory.
3684
9fc501fd
AB
36852020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3686
3687 PR python/22748
3688 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3689 special handling for inline frames.
3690 * findvar.c (value_of_register_lazy): Skip inline frames when
3691 creating lazy register values.
3692 * frame.c (frame_id_computed_p): Delete definition.
3693 * frame.h (frame_id_computed_p): Delete declaration.
3694
64cb3757
AB
36952020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3696
3697 * NEWS: Mention additions to Python API.
3698 * python/py-arch.c (archpy_register_groups): New function.
3699 (arch_object_methods): Add 'register_groups' method.
3700 * python/py-registers.c (reggroup_iterator_object): New struct.
3701 (reggroup_object): New struct.
3702 (gdbpy_new_reggroup): New function.
3703 (gdbpy_reggroup_to_string): New function.
3704 (gdbpy_reggroup_name): New function.
3705 (gdbpy_reggroup_iter): New function.
3706 (gdbpy_reggroup_iter_next): New function.
3707 (gdbpy_new_reggroup_iterator): New function
3708 (gdbpy_initialize_registers): Register new types.
3709 (reggroup_iterator_object_type): Define new Python type.
3710 (gdbpy_reggroup_getset): New static global.
3711 (reggroup_object_type): Define new Python type.
3712 * python/python-internal.h
3713
0f767f94
AB
37142020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3715
3716 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3717 * python/py-arch.c (archpy_registers): New function.
3718 (arch_object_methods): Add 'registers' method.
3719 * python/py-registers.c: New file.
3720 * python/python-internal.h
3721 (gdbpy_new_register_descriptor_iterator): Declare.
3722 (gdbpy_initialize_registers): Declare.
3723 * python/python.c (do_start_initialization): Call
3724 gdbpy_initialize_registers.
3725 * NEWS: Mention additions to the Python API.
3726
87dbc774
AB
37272020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3728
3729 * NEWS: Mention new Python API method.
3730 * python/py-unwind.c (pending_framepy_architecture): New function.
3731 (pending_frame_object_methods): Add architecture method.
3732
3bc98c0c
AB
37332020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3734
3735 * gdbarch.c: Regenerate.
3736 * gdbarch.h: Regenerate.
3737 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3738 (gdbarch_data): Use internal_error for the case where
3739 deprecated_set_gdbarch_data was originally needed.
3740 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3741 and use passed in obstack.
3742 (libunwind_frame_set_descr): Should no longer get back NULL from
3743 gdbarch_data.
3744 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3745 type.
3746 * user-regs.c (user_regs_init): Update parameters, and use passed
3747 in obstack.
3748 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3749 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3750
d8cc8af6
TV
37512020-07-06 Tom de Vries <tdevries@suse.de>
3752
3753 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3754 End-Of-Sequence in lte_is_less_than.
3755 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3756 "gdb: Don't reorder line table entries too much when sorting".
3757
947f7597
TV
37582020-07-06 Tom de Vries <tdevries@suse.de>
3759
3760 PR tui/26205
3761 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3762
1e7c1b22
TV
37632020-07-05 Tom de Vries <tdevries@suse.de>
3764
3765 PR build/26187
3766 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3767 std::uncaught_exceptions instead of deprecated
3768 std::uncaught_exception.
3769
a36158ec
SM
37702020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3771
3772 * macroexp.h (macro_stringify): Return
3773 gdb::unique_xmalloc_ptr<char>.
3774 * macroexp.c (macro_stringify): Likewise.
3775 * macrotab.c (fixup_definition): Update.
3776
14d960c8
SM
37772020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3778
3779 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3780 (lex_one_token): Update.
3781 * macroexp.c (struct macro_buffer) <release>: Return
3782 gdb::unique_xmalloc_ptr<char>.
3783 (macro_stringify): Update.
3784 (macro_expand): Update.
3785 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3786 * macroexp.h (macro_expand_next): Likewise.
3787
211d5b1c
SM
37882020-07-02 Simon Marchi <simon.marchi@efficios.com>
3789
3790 * macroexp.h (macro_lookup_ftype): Remove.
3791 (macro_expand, macro_expand_once, macro_expand_next): Remove
3792 lookup function parameters, add scope parameter.
3793 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3794 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3795 * macroscope.h (standard_macro_lookup): Change parameter type
3796 to macro_scope.
3797 * macroscope.c (standard_macro_lookup): Likewise.
3798 * c-exp.y (lex_one_token): Update.
3799 * macrocmd.c (macro_expand_command): Likewise.
3800 (macro_expand_once_command): Likewise.
3801
b1a35af2
SM
38022020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3803
3804 * inf-loop.c (inferior_event_handler): Remove client_data param.
3805 * inf-loop.h (inferior_event_handler): Likewise.
3806 * infcmd.c (step_1): Adjust.
3807 * infrun.c (proceed): Adjust.
3808 (fetch_inferior_event): Remove client_data param.
3809 (infrun_async_inferior_event_handler): Adjust.
3810 * infrun.h (fetch_inferior_event): Remove `void *` param.
3811 * linux-nat.c (handle_target_event): Adjust.
3812 * record-btrace.c (record_btrace_handle_async_inferior_event):
3813 Adjust.
3814 * record-full.c (record_full_async_inferior_event_handler):
3815 Adjust.
3816 * remote.c (remote_async_inferior_event_handler): Adjust.
3817
1cdf9e33
TT
38182020-07-01 Tom Tromey <tom@tromey.com>
3819
3820 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3821 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3822
32c1e210
TT
38232020-07-01 Tom Tromey <tom@tromey.com>
3824
3825 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3826 tui_gen_win_info.
3827 (tui_win_info::make_window): Merge with
3828 tui_gen_win_info::make_window.
3829 (tui_win_info::make_visible): Move from tui_gen_win_info.
3830 * tui/tui-win.c (tui_win_info::max_width): Move from
3831 tui_gen_win_info.
3832 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3833 type.
3834 <window_factory>: Likewise.
3835 * tui/tui-layout.c (tui_win_info::resize): Move from
3836 tui_gen_win_info.
3837 (make_standard_window): Change return type.
3838 (get_locator_window, tui_get_window_by_name): Likewise.
3839 (tui_layout_window::apply): Remove a cast.
3840 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3841 (struct tui_win_info): Merge with tui_gen_win_info.
3842 (struct tui_gen_win_info): Remove.
3843
a30cb6da
TT
38442020-07-01 Tom Tromey <tom@tromey.com>
3845
3846 * tui/tui-stack.h (struct tui_locator_window): Derive from
3847 tui_win_info.
3848 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3849 <can_box>: New method.
3850
1eb2161f
TT
38512020-07-01 Tom Tromey <tom@tromey.com>
3852
3853 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3854
7134f2eb
TT
38552020-07-01 Tom Tromey <tom@tromey.com>
3856
3857 * tui/tui-regs.c (tui_data_window::display_registers_from)
3858 (tui_data_window::display_registers_from)
3859 (tui_data_window::first_data_item_displayed)
3860 (tui_data_window::delete_data_content_windows): Update.
3861 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3862 Remove.
3863 (tui_data_window::check_register_values): Update.
3864 (tui_data_item_window::rerender): Add parameters. Update.
3865 (tui_data_item_window::refresh_window): Remove.
3866 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3867 virtual.
3868 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3869 tui_gen_win_info.
3870 <refresh_window, max_height, min_height>: Remove.
3871 <rerender>: Add parameters.
3872 <x, y, visible>: New members.
3873 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3874 <m_item_width>: New member.
3875
22b7b041
TT
38762020-07-01 Tom Tromey <tom@tromey.com>
3877
3878 * tui/tui-regs.c (tui_data_window::show_register_group)
3879 (tui_data_window::check_register_values): Update.
3880 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3881 from item_no.
3882
c9753adb
TT
38832020-07-01 Tom Tromey <tom@tromey.com>
3884
3885 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3886 useless "if".
3887
9ab26b4a
TT
38882020-07-01 Tom Tromey <tom@tromey.com>
3889
3890 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3891 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3892
e555083f
TT
38932020-07-01 Tom Tromey <tom@tromey.com>
3894
3895 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3896 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3897 (struct tui_line_or_address): Move from tui-data.h.
3898 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3899 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3900 (tui_cmd_window, tui_source_window_base, tui_source_window)
3901 (tui_disasm_window): Don't declare.
3902 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3903 to tui-winsource.h.
3904 (SINGLE_KEY): Move to tui-stack.c.
3905
7a02bab7
TT
39062020-07-01 Tom Tromey <tom@tromey.com>
3907
3908 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3909 std::string.
3910 * tui/tui-regs.c (class tab_expansion_file): New.
3911 (tab_expansion_file::write): New method.
3912 (tui_register_format): Change return type. Use
3913 tab_expansion_file.
3914 (tui_get_register, tui_data_window::display_registers_from)
3915 (tui_data_item_window::rerender): Update.
3916 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3917 * tui/tui-io.c (tui_expand_tabs): Remove.
3918
ea68593b
TT
39192020-07-01 Tom Tromey <tom@tromey.com>
3920
3921 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3922
a8caed5d
FS
39232020-07-01 Fangrui Song <maskray@google.com>
3924
3925 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3926
9cdf9820
AKS
39272020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3928
3929 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3930 forms for DW_AT_associated and DW_AT_allocated attributes,
3931 which is already checked in function attr_to_dynamic_prop.
3932
a1520ad8
TT
39332020-06-30 Tom Tromey <tromey@adacore.com>
3934
3935 * dwarf2/read.c (quirk_rust_enum): Correctly call
3936 alloc_rust_variant for default-less enum.
3937
5ac58899
TT
39382020-06-30 Tom Tromey <tromey@adacore.com>
3939
3940 PR build/26183:
3941 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3942 gdb::to_string.
3943
19b187a9
SM
39442020-06-29 Simon Marchi <simon.marchi@efficios.com>
3945
3946 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3947 * gdbarch.h: Re-generate.
3948
cd4c4c07
TT
39492020-06-28 Tom Tromey <tom@tromey.com>
3950
3951 * command.h (cmd_types): Remove.
3952 (cmd_type): Don't declare.
3953 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3954 typedef.
3955 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3956 * cli/cli-decode.c (cmd_type): Remove.
3957
05779d57
PA
39582020-06-27 Pedro Alves <palves@redhat.com>
3959
3960 * fork-child.c (prefork_hook): Adjust.
3961 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3962 Delete.
3963 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3964 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3965 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3966 Remove declarations.
3967 (struct inferior) <set_tty, tty>: New methods.
3968 (struct inferior) <terminal>: Rename to ...
3969 (struct inferior) <m_terminal>: ... this and make private.
3970 * main.c (captured_main_1): Adjust.
3971 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3972 (mi_cmd_inferior_tty_show): Adjust.
3973 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3974 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3975
1776e3e5
NA
39762020-06-26 Nick Alcock <nick.alcock@oracle.com>
3977
3978 * configure.ac: Add --enable-libctf: handle --disable-static
3979 properly.
3980 * acinclude.m4: sinclude ../config/enable.m4.
3981 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3982 (LIBCTF): Substitute in.
3983 (CTF_DEPS): New, likewise.
3984 (CLIBS): libctf needs symbols from libbfd: move earlier.
3985 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3986 flags.
3987 * ctfread.c: Surround in ENABLE_LIBCTF.
3988 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3989 * configure: Regenerate.
3990 * config.in: Likewise.
3991
58373b80
SM
39922020-06-25 Simon Marchi <simon.marchi@efficios.com>
3993
3994 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3995
277474ee
SM
39962020-06-25 Simon Marchi <simon.marchi@efficios.com>
3997
3998 * inferior.h (struct inferior) <terminal>: Change type to
3999 gdb::unique_xmalloc_ptr<char>.
4000 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4001 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4002 field, adjust to unique pointer.
4003 (get_inferior_io_terminal): Adjust to unique pointer.
4004
6d74da72
AB
40052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4006
4007 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4008 registers, not just the known core set of registers.
4009
2e52d038
AB
40102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4011
4012 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4013 fflags, frm, and fcsr registers.
4014 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4015 restore groups.
4016 (riscv_tdesc_unknown_reg): New function.
4017 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4018 tdesc_use_registers.
4019 * riscv-tdep.h (struct gdbarch_tdep): Add
4020 unknown_csrs_first_regnum, unknown_csrs_count,
4021 duplicate_fflags_regnum, duplicate_frm_regnum, and
4022 duplicate_fcsr_regnum fields.
4023
be64fd07
AB
40242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4025
4026 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4027 callback, use the callback (when not null) to help number unknown
4028 registers.
4029 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4030 (tdesc_use_registers): Add extra parameter to declaration.
4031
3b9fce96
AB
40322020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4033
4034 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4035 in the file.
4036 (class riscv_pending_register_alias): Likewise.
4037 (riscv_register_feature::register_info): Change 'required_p' field
4038 to 'required', and change its type. Add 'check' member function.
4039 (riscv_register_feature::register_info::check): Define new member
4040 function.
4041 (riscv_xreg_feature): Change initialisation of 'required' field.
4042 (riscv_freg_feature): Likewise.
4043 (riscv_virtual_feature): Likewise.
4044 (riscv_csr_feature): Likewise.
4045 (riscv_check_tdesc_feature): Take extra parameter, the csr
4046 tdesc_feature, rewrite the function to use the new
4047 riscv_register_feature::register_info::check function.
4048 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4049
865bad26
AB
40502020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4051
4052 * features/Makefile: Remove all references to the deleted files
4053 below.
4054 * features/riscv/32bit-csr.c: Deleted.
4055 * features/riscv/32bit-csr.xml: Deleted.
4056 * features/riscv/64bit-csr.c: Deleted.
4057 * features/riscv/64bit-csr.xml: Deleted.
4058 * features/riscv/rebuild-csr-xml.sh: Deleted.
4059
ed69cbc8
AB
40602020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4061
4062 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4063 whitespace error for declaration of names member variable.
4064 (struct riscv_register_feature): Add new prefer_first_name member
4065 variable, and fix whitespace error in declaration of registers.
4066 (riscv_xreg_feature): Initialize prefer_first_name field.
4067 (riscv_freg_feature): Likewise.
4068 (riscv_virtual_feature): Likewise.
4069 (riscv_csr_feature): Likewise.
4070 (riscv_register_name): Expand on comments. Remove register name
4071 modifications for CSR and virtual registers.
4072
4445e8f5
AB
40732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4074
4075 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4076 errors.
4077
767a879e
AB
40782020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4079
4080 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4081 riscv-opc.h.
4082 (class riscv_pending_register_alias): New class.
4083 (riscv_check_tdesc_feature): Take vector of pending aliases and
4084 populate it as appropriate.
4085 (riscv_setup_register_aliases): Delete.
4086 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4087 to riscv_check_tdesc_feature in all cases. Use the vector to
4088 create the register aliases.
4089
bb6e55f3
RO
40902020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4091
4092 * sol2-tdep.c (sol2_static_transform_name): Remove.
4093 (sol2_init_abi): Don't register it.
4094 * gdbarch.sh (static_transform_name): Remove.
4095 * gdbarch.c, gdbarch.h: Regenerate.
4096
4097 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4098 gdbarch_static_transform_name.
4099 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4100 * stabsread.c (define_symbol) <'X'>: Remove.
4101 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4102 handling.
4103 <'V'>: Likewise.
4104 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4105 <'S'>: Remove call to gdbarch_static_transform_name.
4106
c6d36836
RO
41072020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4108
4109 * procfs.c (procfs_pre_trace): New function.
4110 (procfs_target::create_inferior): Pass it to fork_inferior.
4111
a7e6196b
RO
41122020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4113
4114 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4115 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4116 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4117 sol2-tdep.o, sparc-sol2-tdep.o.
4118 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4119 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4120 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4121 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4122
d412e696
RO
41232020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4124
4125 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4126 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4127 Call sol2_init_abi.
4128 Remove calls to set_gdbarch_skip_solib_resolver,
4129 set_gdbarch_core_pid_to_str.
4130 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4131 (i386_sol2_static_transform_name): Remove.
4132 (i386_sol2_init_abi): Call sol2_init_abi.
4133 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4134 set_gdbarch_static_transform_name,
4135 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4136 Use sol2_sigtramp_p.
4137 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4138 (sol2_sigtramp_p): New function.
4139 (sol2_static_transform_name): New function.
4140 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4141 (sol2_init_abi): New function.
4142 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4143 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4144 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4145 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4146 (sparc_sol2_static_transform_name): Remove.
4147 (sparc32_sol2_init_abi): Call sol2_init_abi.
4148 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4149 set_gdbarch_static_transform_name,
4150 set_gdbarch_skip_solib_resolver,
4151 set_gdbarch_core_pid_to_str.
4152 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4153 (sparc_sol2_static_transform_name): Remove
4154 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4155 call sol2_sigtramp_p.
4156 (sparc64_sol2_init_abi): Call sol2_init_abi.
4157 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4158 set_gdbarch_static_transform_name,
4159 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4160
a8654e7d
PW
41612020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4162
4163 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4164 * exec.c (validate_exec_file): If from_tty, set both
4165 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4166 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4167 and from_tty, unconditionally ask a confirmation.
4168
caa7fd04
AB
41692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4170
4171 * target-descriptions.c (tdesc_architecture_name): Protect against
4172 NULL pointer dereference.
4173 (maint_print_xml_tdesc_cmd): New function.
4174 (_initialize_target_descriptions): Register new 'maint print
4175 xml-tdesc' command and give it the filename completer.
4176 * NEWS: Mention new 'maint print xml-tdesc' command.
4177
fbf42f4e
AB
41782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4179
4180 * target-descriptions.c (class tdesc_compatible_info): New class.
4181 (struct target_desc): Change type of compatible vector.
4182 (tdesc_compatible_p): Update for change in type of
4183 target_desc::compatible.
4184 (tdesc_compatible_info_list): New function.
4185 (tdesc_compatible_info_arch_name): New function.
4186 (tdesc_add_compatible): Update for change in type of
4187 target_desc::compatible.
4188 (print_c_tdesc::visit_pre): Likewise.
4189
20821f4e
AB
41902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4191
4192 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4193 whitespace to underscore.
4194 (maint_print_c_tdesc_cmd): Use fake filename for target
4195 descriptions that came from the target.
4196 (_initialize_target_descriptions): Add filename command completion
4197 for 'maint print c-tdesc'.
4198
1fb5ee62
SM
41992020-06-23 Simon Marchi <simon.marchi@efficios.com>
4200
4201 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4202 lines.
4203
fc3ecb3e
SM
42042020-06-23 Simon Marchi <simon.marchi@efficios.com>
4205
4206 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4207 lines.
4208 (dwarf2_find_location_expression): Likewise.
4209 (call_site_parameter_matches): Likewise.
4210 (dwarf2_compile_expr_to_ax): Likewise.
4211 (disassemble_dwarf_expression): Likewise.
4212 (loclist_describe_location): Likewise.
4213
236ef034
PA
42142020-06-23 Pedro Alves <palves@redhat.com>
4215
4216 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4217 progspace-and-thread.h. Include scoped-mock-context.h instead.
4218 (register_to_value_test): Use scoped_mock_context.
4219 * regcache.c: Include "scoped-mock-context.h".
4220 (cooked_read_test): Don't error out if a target is already pushed.
4221 Use scoped_mock_context. Adjust.
4222 * scoped-mock-context.h: New file.
4223
39e7ecca
AB
42242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4225
4226 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4227 initializer.
4228 (ada_language::is_string_type_p): New member function.
4229 * c-lang.c (c_language_data): Delete la_is_string_type_p
4230 initializer.
4231 (cplus_language_data): Likewise.
4232 (asm_language_data): Likewise.
4233 (minimal_language_data): Likewise.
4234 * d-lang.c (d_language_data): Likewise.
4235 * f-lang.c (f_is_string_type_p): Delete function, implementation
4236 moved to f_language::is_string_type_p.
4237 (f_language_data): Delete la_is_string_type_p initializer.
4238 (f_language::is_string_type_p): New member function,
4239 implementation from f_is_string_type_p.
4240 * go-lang.c (go_is_string_type_p): Delete function, implementation
4241 moved to go_language::is_string_type_p.
4242 (go_language_data): Delete la_is_string_type_p initializer.
4243 (go_language::is_string_type_p): New member function,
4244 implementation from go_is_string_type_p.
4245 * language.c (language_defn::is_string_type_p): Define new member
4246 function.
4247 (default_is_string_type_p): Make static, add comment copied from
4248 header file.
4249 (unknown_language_data): Delete la_is_string_type_p initializer.
4250 (unknown_language::is_string_type_p): New member function.
4251 (auto_language_data): Delete la_is_string_type_p initializer.
4252 (auto_language::is_string_type_p): New member function.
4253 * language.h (language_data): Delete la_is_string_type_p field.
4254 (language_defn::is_string_type_p): Declare new function.
4255 (default_is_string_type_p): Delete desclaration, move comment to
4256 definition.
4257 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4258 moved to m2_language::is_string_type_p.
4259 (m2_language_data): Delete la_is_string_type_p initializer.
4260 (m2_language::is_string_type_p): New member function,
4261 implementation from m2_is_string_type_p.
4262 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4263 initializer.
4264 * opencl-lang.c (opencl_language_data): Likewise.
4265 * p-lang.c (pascal_is_string_type_p): Delete function,
4266 implementation moved to pascal_language::is_string_type_p.
4267 (pascal_language_data): Delete la_is_string_type_p initializer.
4268 (pascal_language::is_string_type_p): New member function,
4269 implementation from pascal_is_string_type_p.
4270 * rust-lang.c (rust_is_string_type_p): Delete function,
4271 implementation moved to rust_language::is_string_type_p.
4272 (rust_language_data): Delete la_is_string_type_p initializer.
4273 (rust_language::is_string_type_p): New member function,
4274 implementation from rust_is_string_type_p.
4275 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4276 is_string_type_p.
4277
4ffc13fb
AB
42782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4279
4280 * ada-lang.c (ada_language_data): Delete la_print_typedef
4281 initializer.
4282 (ada_language::print_typedef): New member function.
4283 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4284 (cplus_language_data): Likewise.
4285 (asm_language_data): Likewise.
4286 (minimal_language_data): Likewise.
4287 * d-lang.c (d_language_data): Likewise.
4288 * f-lang.c (f_language_data): Likewise.
4289 (f_language::print_typedef): New member function.
4290 * go-lang.c (go_language_data): Delete la_print_typedef
4291 initializer.
4292 * language.c (language_defn::print_typedef): Define member
4293 function.
4294 (unknown_language_data): Delete la_print_typedef initializer.
4295 (unknown_language::print_typedef): New member function.
4296 (auto_language_data): Delete la_print_typedef initializer.
4297 (auto_language::print_typedef): New member function.
4298 * language.h (language_data): Delete la_print_typedef field.
4299 (language_defn::print_typedef): Declare new member function.
4300 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4301 (default_print_typedef): Delete declaration.
4302 * m2-lang.c (m2_language_data): Delete la_print_typedef
4303 initializer.
4304 (m2_language::print_typedef): New member function.
4305 * objc-lang.c (objc_language_data): Delete la_print_typedef
4306 initializer.
4307 * opencl-lang.c (opencl_language_data): Likewise.
4308 * p-lang.c (pascal_language_data): Likewise.
4309 (pascal_language::print_typedef): New member function.
4310 * rust-lang.c (rust_print_typedef): Delete function,
4311 implementation moved to rust_language::print_typedef.
4312 (rust_language): Delete la_print_typedef initializer.
4313 (rust_language::print_typedef): New member function,
4314 implementation from rust_print_typedef.
4315 * typeprint.c (default_print_typedef): Delete.
4316
d711ee67
AB
43172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4318
4319 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4320 (ada_language::printstr): New member function.
4321 * c-lang.c (c_language_data): Delete la_printstr initializer.
4322 (cplus_language_data): Likewise.
4323 (asm_language_data): Likewise.
4324 (minimal_language_data): Likewise.
4325 * d-lang.c (d_language_data): Likewise.
4326 * f-lang.c (f_printstr): Rename to f_language::printstr.
4327 (f_language_data): Delete la_printstr initializer.
4328 (f_language::printstr): New member function, implementation from
4329 f_printstr.
4330 * go-lang.c (go_language_data): Delete la_printstr initializer.
4331 * language.c (language_defn::printstr): Define new member
4332 function.
4333 (unk_lang_printstr): Delete.
4334 (unknown_language_data): Delete la_printstr initializer.
4335 (unknown_language::printstr): New member function.
4336 (auto_language_data): Delete la_printstr initializer.
4337 (auto_language::printstr): New member function.
4338 * language.h (language_data): Delete la_printstr field.
4339 (language_defn::printstr): Declare new member function.
4340 (LA_PRINT_STRING): Update call to printstr.
4341 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4342 (m2_language_data): Delete la_printstr initializer.
4343 (m2_language::printstr): New member function, implementation from
4344 m2_printstr.
4345 * objc-lang.c (objc_language_data): Delete la_printstr
4346 initializer.
4347 * opencl-lang.c (opencl_language_data): Likewise.
4348 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4349 (pascal_language_data): Delete la_printstr initializer.
4350 (pascal_language::printstr): New member function, implementation
4351 from pascal_printstr.
4352 * p-lang.h (pascal_printstr): Delete declaration.
4353 * rust-lang.c (rust_printstr): Update header comment.
4354 (rust_language_data): Delete la_printstr initializer.
4355 (rust_language::printstr): New member function.
4356
52b50f2c
AB
43572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4358
4359 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4360 (ada_language::printchar): New member function.
4361 * c-lang.c (c_language_data): Delete la_printchar initializer.
4362 (cplus_language_data): Likewise.
4363 (asm_language_data): Likewise.
4364 (minimal_language_data): Likewise.
4365 * d-lang.c (d_language_data): Likewise.
4366 * f-lang.c (f_printchar): Rename to f_language::printchar.
4367 (f_language_data): Delete la_printchar initializer.
4368 (f_language::printchar): New member function, implementation from
4369 f_printchar.
4370 * go-lang.c (go_language_data): Delete la_printchar initializer.
4371 * language.c (unk_lang_printchar): Delete.
4372 (language_defn::printchar): Define new member function.
4373 (unknown_language_data): Delete la_printchar initializer.
4374 (unknown_language::printchar): New member function.
4375 (auto_language_data): Delete la_printchar initializer.
4376 (auto_language::printchar): New member function.
4377 * language.h (language_data): Delete la_printchar field.
4378 (language_defn::printchar): Declare new member function.
4379 (LA_PRINT_CHAR): Update call to printchar.
4380 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4381 (m2_language::printchar): New member function.
4382 * objc-lang.c (objc_language_data): Delete la_printchar
4383 initializer.
4384 * opencl-lang.c (opencl_language_data): Likewise.
4385 * p-lang.c (pascal_language_data): Delete la_printchar
4386 initializer.
4387 (pascal_language::printchar): New member function.
4388 * rust-lang.c (rust_printchar): Rename to
4389 rust_language::printchar.
4390 (rust_language_data): Delete la_printchar initializer.
4391 (rust_language::printchar): New member function, implementation
4392 from rust_printchar.
4393
ec8cec5b
AB
43942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4395
4396 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4397 (ada_language_data): Delete la_emitchar initializer.
4398 (ada_language::emitchar): New member function, implementation from
4399 emit_char.
4400 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4401 (cplus_language_data): Likewise.
4402 (asm_language_data): Likewise.
4403 (minimal_language_data): Likewise.
4404 * d-lang.c (d_language_data): Likewise.
4405 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4406 (f_language_data): Delete la_emitchar initializer.
4407 (f_language::emitchar): New member function, implementation from
4408 f_emit_char.
4409 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4410 * language.c (unk_lang_emit_char): Delete.
4411 (language_defn::emitchar): New member function definition.
4412 (unknown_language_data): Delete la_emitchar initializer.
4413 (unknown_language::emitchar): New member function.
4414 (auto_language_data): Delete la_emitchar initializer.
4415 (auto_language::emitchar): New member function.
4416 * language.h (language_data): Delete la_emitchar field.
4417 (language_defn::emitchar): New member field declaration.
4418 (LA_EMIT_CHAR): Update call to emitchar.
4419 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4420 (m2_language_data): Delete la_emitchar initializer.
4421 (m2_language::emitchar): New member function, implementation from
4422 m2_emit_char.
4423 * objc-lang.c (objc_language_data): Delete la_emitchar
4424 initializer.
4425 * opencl-lang.c (opencl_language_data): Likewise.
4426 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4427 (pascal_language_data): Delete la_emitchar initializer.
4428 (pascal_language::emitchar): New member function, implementation
4429 from pascal_emit_char.
4430 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4431 (rust_language_data): Delete la_emitchar initializer.
4432 (rust_language::emitchar): New member function, implementation
4433 from rust_emitchar.
4434
1bf9c363
AB
44352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4436
4437 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4438 (ada_language_data): Delete la_post_parser initializer.
4439 (ada_language::post_parser): New member function.
4440 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4441 (cplus_language_data): Likewise.
4442 (asm_language_data): Likewise.
4443 (minimal_language_data): Likewise.
4444 * d-lang.c (d_language_data): Likewise.
4445 * f-lang.c (f_language_data): Likewise.
4446 * go-lang.c (go_language_data): Likewise.
4447 * language.c (unknown_language_data): Likewise.
4448 (auto_language_data): Likewise.
4449 * language.h (language_data): Delete la_post_parser field.
4450 (language_defn::post_parser): New member function.
4451 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4452 * objc-lang.c (objc_language_data): Likewise.
4453 * opencl-lang.c (opencl_language_data): Likewise.
4454 * p-lang.c (pascal_language_data): Likewise.
4455 * parse.c (parse_exp_in_context): Update call to post_parser.
4456 (null_post_parser): Delete definition.
4457 * parser-defs.h (null_post_parser): Delete declaration.
4458 * rust-lang.c (rust_language_data): Delete la_post_parser
4459 initializer.
4460
87afa652
AB
44612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4462
4463 * ada-lang.c (parse): Rename to ada_language::parser.
4464 (ada_language_data): Delete la_parser initializer.
4465 (ada_language::parser): New member function, implementation from
4466 parse.
4467 * c-lang.c (c_language_data): Delete la_parser initializer.
4468 (cplus_language_data): Likewise.
4469 (asm_language_data): Likewise.
4470 (minimal_language_data): Likewise.
4471 * d-lang.c (d_language_data): Likewise.
4472 (d_language::parser): New member function.
4473 * f-lang.c (f_language_data): Delete la_parser initializer.
4474 (f_language::parser): New member function.
4475 * go-lang.c (go_language_data): Delete la_parser initializer.
4476 (go_language::parser): New member function.
4477 * language.c (unk_lang_parser): Delete.
4478 (language_defn::parser): Define new member function.
4479 (unknown_language_data): Delete la_parser initializer.
4480 (unknown_language::parser): New member function.
4481 (auto_language_data): Delete la_parser initializer.
4482 (auto_language::parser): New member function.
4483 * language.h (language_data): Delete la_parser field.
4484 (language_defn::parser): Declare new member function.
4485 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4486 (m2_language::parser): New member function.
4487 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4488 * opencl-lang.c (opencl_language_data): Likewise.
4489 * p-lang.c (pascal_language_data): Likewise.
4490 (pascal_language::parser): New member function.
4491 * parse.c (parse_exp_in_context): Update call to parser.
4492 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4493 (rust_language::parser): New member function.
4494
37825800
AB
44952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4496
4497 * top.c (print_gdb_configuration): Print --with-python-libdir
4498 configuration value.
4499
5b860c93
PW
45002020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4501
4502 * NEWS: Mention change to the alias command.
4503
cf00cd6f
PW
45042020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4505
4506 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4507 (alias_command_completer)
4508 (make_alias_options_def_group): New functions.
4509 (alias_opts, alias_option_defs): New struct and array.
4510 (alias_usage_error): Update usage.
4511 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4512 Use option framework.
4513 (_initialize_cli_cmds): Update alias command help.
4514 Update aliases command help.
4515 (show_user):
4516 Add NULL for new default_args lookup_cmd argument.
4517 (valid_command_p): Rename to validate_aliased_command.
4518 Add NULL for new default_args lookup_cmd argument. Verify that the
4519 aliased_command has no default args.
4520 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4521 (lookup_cmd_1, lookup_cmd): New argument default_args.
4522 (add_alias_cmd):
4523 Add NULL for new default_args lookup_cmd argument.
4524 (print_help_for_command): Show default args under the layout
4525 alias some_alias = some_aliased_cmd some_alias_default_arg.
4526 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4527 xfree default_args in destructor.
4528 * cli/cli-script.c (process_next_line, do_define_command):
4529 Add NULL for new default_args lookup_cmd argument.
4530 * command.h: Declare new default_args argument in lookup_cmd
4531 and lookup_cmd_1.
4532 * completer.c (complete_line_internal_1):
4533 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4534 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4535 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4536 Likewise.
4537 * infcmd.c (_initialize_infcmd): Likewise.
4538 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4539 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4540 * python/py-param.c (add_setshow_generic): Likewise.
4541 * remote.c (_initialize_remote): Likewise.
4542 * top.c (execute_command): Prepend default_args if command has some.
4543 (set_verbose):
4544 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4545 * tracepoint.c (validate_actionline, encode_actions_1):
4546 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4547
bd920864
TBA
45482020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4549
4550 * jit.c (jit_read_descriptor): Use bool as the return type.
4551 (jit_breakpoint_re_set_internal): Use bool as the return type.
4552 Invert the return value logic; return true if the jit breakpoint
4553 has been successfully initialized.
4554 (jit_inferior_init): Update the call to
4555 jit_breakpoint_re_set_internal.
4556
f8098322
PA
45572020-06-22 Pedro Alves <palves@redhat.com>
4558
4559 PR gdb/25939
4560 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4561 Use the current inferior instead. Don't return
4562 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4563 wait again.
4564 * sol-thread.c (sol_thread_target::wait): Don't reference
4565 inferior_ptid.
4566 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4567 (sol_update_thread_list_callback): Use the current inferior's pid
4568 instead of inferior_ptid.
4569
196535a6
RO
45702020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4571
4572 * procfs.c: Cleanup many comments.
4573
4574 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4575 (AFTER_WATCHFLAG): Replace by value.
4576
4577 (MAIN_PROC_NAME_FORMAT): Inline ...
4578 (create_procinfo): ... here.
4579
4580 (procfs_debug_inferior): Remove SYS_exec handling.
4581 (syscall_is_exec): Likewise.
4582 (procfs_set_exec_trap): Likewise.
4583
4584 (syscall_is_lwp_exit): Inline in callers.
4585 (syscall_is_exit): Likewise.
4586 (syscall_is_exec): Likewise.
4587 (syscall_is_lwp_create): Likewise.
4588
4589 (invalidate_cache): Remove #if 0 code.
4590
4591 (make_signal_thread_runnable): Remove.
4592 (procfs_target::resume): Remove #if 0 code.
4593
cf6f3e86
RO
45942020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4595
4596 PR gdb/25939
4597 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4598 call ...
4599 (procfs_target::create_inferior): ... here.
4600
48e9cc84
PW
46012020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4602
4603 * exec.c (validate_exec_file): Ensure the build-id is up to
4604 date by calling reopen_exec_file (that checks file timestamp
4605 to decide to re-read the file).
4606
3922b302
PA
46072020-06-18 Pedro Alves <palves@redhat.com>
4608
4609 PR gdb/25412
4610 * gdbthread.h (delete_thread, delete_thread_silent)
4611 (find_thread_ptid): Update comments.
4612 * thread.c (current_thread_): New global.
4613 (is_current_thread): Move higher, and reimplement.
4614 (inferior_thread): Reimplement.
4615 (set_thread_exited): Use bool. Add assertions.
4616 (add_thread_silent): Simplify thread-reuse handling by always
4617 calling delete_thread.
4618 (delete_thread): Remove intro comment.
4619 (find_thread_ptid): Skip exited threads.
4620 (switch_to_thread_no_regs): Write to current_thread_.
4621 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4622 INFERIOR_PTID. Clear current_thread_.
4623
6dbdab44
PA
46242020-06-18 Pedro Alves <palves@redhat.com>
4625
4626 * aix-thread.c (pd_update): Use switch_to_thread.
4627
2da4b788
PA
46282020-06-18 Pedro Alves <palves@redhat.com>
4629
4630 * ravenscar-thread.c (ravenscar_thread_target): Update.
4631 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4632 (ravenscar_thread_target::add_active_thread): ... this. Don't
4633 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4634 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4635
50838d1b
PA
46362020-06-18 Pedro Alves <palves@redhat.com>
4637
4638 * nat/windows-nat.c (current_windows_thread): Remove.
4639 * nat/windows-nat.h (current_windows_thread): Remove.
4640 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4641 Adjust.
4642 (display_selectors): Adjust to fetch the current
4643 windows_thread_info based on inferior_ptid.
4644 (fake_create_process): No longer write to current_windows_thread.
4645 (windows_nat_target::get_windows_debug_event):
4646 Don't set inferior_ptid or current_windows_thread.
4647 (windows_nat_target::wait): Adjust to not rely on
4648 current_windows_thread.
4649 (do_initial_windows_stuff): Now a method of windows_nat_target.
4650 Switch to the last_ptid thread.
4651 (windows_nat_target::attach): Adjust.
4652 (windows_nat_target::detach): Use switch_to_no_thread instead of
4653 writing to inferior_ptid directly.
4654 (windows_nat_target::create_inferior): Adjust.
4655
31ce04e9
PA
46562020-06-18 Pedro Alves <palves@redhat.com>
4657
4658 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4659
1ee1a363
PA
46602020-06-18 Pedro Alves <palves@redhat.com>
4661
4662 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4663 after creating it, instead of writing to inferior_ptid. Don't
4664 write to inferior_ptid.
4665
6d350754
PA
46662020-06-18 Pedro Alves <palves@redhat.com>
4667
4668 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4669
5d971d48
PA
46702020-06-18 Pedro Alves <palves@redhat.com>
4671
4672 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4673 it, instead of writing to inferior_ptid.
4674
86e57d1b
PA
46752020-06-18 Pedro Alves <palves@redhat.com>
4676
4677 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4678 to inferior_ptid.
4679
f2e1c129
PA
46802020-06-18 Pedro Alves <palves@redhat.com>
4681
4682 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4683 instead of writing to inferior_ptid directly.
4684
60db1b85
PA
46852020-06-18 Pedro Alves <palves@redhat.com>
4686
4687 * corelow.c (core_target::close): Use switch_to_no_thread instead
4688 of writing to inferior_ptid directly.
4689 (add_to_thread_list, core_target_open): Use switch_to_thread
4690 instead of writing to inferior_ptid directly.
4691
fe7d6a8d
PA
46922020-06-18 Pedro Alves <palves@redhat.com>
4693
4694 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4695 inferior_ptid.
4696 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4697 inferior_ptid.
4698 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4699 inferior_ptid directly.
4700 (darwin_nat_target::init_thread_list): Switch to thread, instead
4701 of writing to inferior_ptid.
4702 (darwin_nat_target::attach): Don't write to inferior_ptid.
4703 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4704
975f8708
PA
47052020-06-18 Pedro Alves <palves@redhat.com>
4706
4707 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4708 thread.
4709 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4710 Instead use switch_to_thread.
4711 (gnu_nat_target::detach): Use switch_to_no_thread
4712 instead of writing to inferior_ptid directly. Used passed-in
4713 inferior instead of looking up the inferior by pid.
4714
1a204730
PA
47152020-06-18 Pedro Alves <palves@redhat.com>
4716
4717 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4718 inferior_ptid.
4719
ebe84f23
PA
47202020-06-18 Pedro Alves <palves@redhat.com>
4721
4722 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4723 inferior_ptid.
4724 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4725 thread.
4726 (nto_procfs_target::detach): Avoid referencing
4727 inferior_ptid. Use switch_to_no_thread instead of writing to
4728 inferior_ptid directly.
4729 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4730 instead of writing to inferior_ptid directly.
4731 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4732 to thread.
4733
191f02e5
PA
47342020-06-18 Pedro Alves <palves@redhat.com>
4735
4736 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4737 after creating it, instead of writing to inferior_ptid.
4738 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4739 to inferior_ptid directly.
4740 (gdbsim_target::wait): Don't write to inferior_ptid.
4741
0ac55310
PA
47422020-06-18 Pedro Alves <palves@redhat.com>
4743
4744 * remote.c (remote_target::remote_notice_new_inferior): Use
4745 switch_to_thread instead of writing to inferior_ptid directly.
4746 (remote_target::add_current_inferior_and_thread): Use
4747 switch_to_no_thread instead of writing to inferior_ptid directly.
4748 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4749 and switch_to_thread instead of using set_current_inferior or
4750 writing to inferior_ptid directly.
4751
5233f39b
PA
47522020-06-18 Pedro Alves <palves@redhat.com>
4753
4754 * tracectf.c (ctf_target_open): Switch to added thread instead of
4755 writing to inferior_ptid directly.
4756 (ctf_target::close): Use switch_to_no_thread instead of writing to
4757 inferior_ptid directly.
4758
087e161b
PA
47592020-06-18 Pedro Alves <palves@redhat.com>
4760
4761 * tracefile-tfile.c (tfile_target_open): Don't write to
4762 inferior_ptid directly, instead switch to added thread.
4763 (tfile_target::close): Use switch_to_no_thread instead of writing
4764 to inferior_ptid directly.
4765
7fb43e53
PA
47662020-06-18 Pedro Alves <palves@redhat.com>
4767
4768 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4769 (procfs_target::detach): Use switch_to_no_thread
4770 instead of writing to inferior_ptid directly.
4771 (do_attach): Change return type to void. Switch to the added
4772 thread.
4773 (procfs_target::create_inferior): Switch to the added thread.
4774 (procfs_do_thread_registers): Don't write to inferior_ptid.
4775
18493a00
PA
47762020-06-18 Pedro Alves <palves@redhat.com>
4777
4778 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4779 of writing to inferior_ptid.
4780 (scoped_restore_exited_inferior): Delete.
4781 (handle_vfork_child_exec_or_exit): Simplify using
4782 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4783 instead of writing to inferior_ptid.
4784 (THREAD_STOPPED_BY): Delete.
4785 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4786 (thread_stopped_by_hw_breakpoint): Delete.
4787 (save_waitstatus): Use
4788 scoped_restore_current_thread+switch_to_thread, and call
4789 target_stopped_by_watchpoint instead of
4790 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4791 instead of thread_stopped_by_sw_breakpoint, and
4792 target_stopped_by_hw_breakpoint instead of
4793 thread_stopped_by_hw_breakpoint.
4794 (handle_inferior_event)
4795 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4796 inferior_ptid directly, nor
4797 set_current_inferior/set_current_program_space. Use
4798 switch_to_thread / switch_to_inferior_no_thread instead.
4799
a0776b13
PA
48002020-06-18 Pedro Alves <palves@redhat.com>
4801
4802 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4803 instead of writing to inferior_ptid.
4804
6155c136
PA
48052020-06-18 Pedro Alves <palves@redhat.com>
4806
4807 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4808 added thread.
4809 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4810 to the added thread.
4811 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4812 instead of writing to inferior_ptid.
4813
c5316fc6
PA
48142020-06-18 Pedro Alves <palves@redhat.com>
4815
4816 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4817 (register_to_value_test): Mock a program_space too. Heap-allocate
4818 the address space. Don't write to inferior_ptid. Use
4819 switch_to_thread instead.
4820
8df01799
PA
48212020-06-18 Pedro Alves <palves@redhat.com>
4822
4823 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4824 Delete.
4825 (find_signalled_thread()): New, factored out from
4826 linux_make_corefile_notes and adjusted to handle exited threads.
4827 (linux_make_corefile_notes): Adjust to use the new
4828 find_signalled_thread.
4829
41792d68
PA
48302020-06-18 Pedro Alves <palves@redhat.com>
4831
4832 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4833 of saving/restoring inferior_ptid.
4834
612f258a
TT
48352020-06-17 Tom Tromey <tom@tromey.com>
4836
4837 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4838 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4839 declare.
4840 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4841
efb763a5
SM
48422020-06-15 Simon Marchi <simon.marchi@efficios.com>
4843
4844 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4845 of partial symtabs.
4846
2951f6c0
SM
48472020-06-17 Simon Marchi <simon.marchi@efficios.com>
4848
4849 * regformats/reg-arm.dat: Remove.
4850 * regformats/reg-bfin.dat: Remove.
4851 * regformats/reg-cris.dat: Remove.
4852 * regformats/reg-crisv32.dat: Remove.
4853 * regformats/reg-m32r.dat: Remove.
4854 * regformats/reg-tilegx.dat: Remove.
4855 * regformats/reg-tilegx32.dat: Remove.
4856
7d458ea5
SM
48572020-06-17 Simon Marchi <simon.marchi@efficios.com>
4858
4859 * features/Makefile (WHICH): Remove arm files.
4860 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4861 * regformats/arm/arm-with-neon.dat: Remove.
4862 * regformats/arm/arm-with-vfpv2.dat: Remove.
4863 * regformats/arm/arm-with-vfpv3.dat: Remove.
4864
3af96c0d
SM
48652020-06-17 Simon Marchi <simon.marchi@efficios.com>
4866
4867 * features/Makefile (XMLTOC): Remove rx.xml.
4868
b25e22fd
PA
48692020-06-17 Pedro Alves <palves@redhat.com>
4870
4871 * gdbthread.h (thread_control_state) <trap_expected> Update
4872 comments.
4873
a78a19b1
AB
48742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4875
4876 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4877 ada_language::lookup_symbol_nonlocal.
4878 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4879 (ada_language::lookup_symbol_nonlocal): New member function,
4880 implementation from ada_lookup_symbol_nonlocal.
4881 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4882 initializer.
4883 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4884 initializer.
4885 (cplus_language::lookup_symbol_nonlocal): New member function.
4886 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4887 (minimal_language_data) Likewise.
4888 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4889 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4890 initializer.
4891 (d_language::lookup_symbol_nonlocal): New member function.
4892 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4893 initializer.
4894 (f_language::lookup_symbol_nonlocal): New member function.
4895 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4896 initializer.
4897 * language.c (unknown_language_data): Likewise.
4898 (auto_language_data): Likewise.
4899 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4900 field.
4901 (language_defn::lookup_symbol_nonlocal): New member function.
4902 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4903 initializer.
4904 * objc-lang.c (objc_language_data): Likewise.
4905 * opencl-lang.c (opencl_language_data): Likewise.
4906 * p-lang.c (pascal_language_data): Likewise.
4907 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4908 rust_language::lookup_symbol_nonlocal.
4909 (rust_language_data): Delete la_lookup_symbol_nonlocal
4910 initializer.
4911 (rust_language::lookup_symbol_nonlocal): New member function,
4912 implementation from rust_lookup_symbol_nonlocal.
4913 * symtab.c (lookup_symbol_aux): Update call to
4914 lookup_symbol_nonlocal.
4915 (basic_lookup_symbol_nonlocal): Rename to...
4916 (language_defn::lookup_symbol_nonlocal): ...this, and update
4917 header comment. Remove language_defn parameter, and replace with
4918 uses of `this'.
4919 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4920
ebe2334e
AB
49212020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4922
4923 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4924 initializer.
4925 (ada_language::value_print_inner): New member function.
4926 * c-lang.c (c_language_data): Delete la_value_print_inner
4927 initializer.
4928 (cplus_language_data): Likewise.
4929 (asm_language_data): Likewise.
4930 (minimal_language_data): Likewise.
4931 * d-lang.c (d_language_data): Likewise.
4932 (d_language::value_print_inner): New member function.
4933 * f-lang.c (f_language_data): Delete la_value_print_inner
4934 initializer.
4935 (f_language::value_print_inner): New member function.
4936 * f-lang.h (f_value_print_innner): Rename to...
4937 (f_value_print_inner): ...this (note spelling of 'inner').
4938 * f-valprint.c (f_value_print_innner): Rename to...
4939 (f_value_print_inner): ...this (note spelling of 'inner').
4940 * go-lang.c (go_language_data): Delete la_value_print_inner
4941 initializer.
4942 (go_language::value_print_inner): New member function.
4943 * language.c (language_defn::value_print_inner): Define new member
4944 function.
4945 (unk_lang_value_print_inner): Delete.
4946 (unknown_language_data): Delete la_value_print_inner initializer.
4947 (unknown_language::value_print_inner): New member function.
4948 (auto_language_data): Delete la_value_print_inner initializer.
4949 (auto_language::value_print_inner): New member function.
4950 * language.h (language_data): Delete la_value_print_inner field.
4951 (language_defn::value_print_inner): Delcare new member function.
4952 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4953 initializer.
4954 (m2_language::value_print_inner): New member function.
4955 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4956 initializer.
4957 * opencl-lang.c (opencl_language_data): Likewise.
4958 * p-lang.c (pascal_language_data): Likewise.
4959 (pascal_language::value_print_inner): New member function.
4960 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4961 initializer.
4962 (rust_language::value_print_inner): New member function.
4963 * valprint.c (do_val_print): Update call to value_print_inner.
4964
a1d1fa3e
AB
49652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4966
4967 * ada-lang.c (ada_language_data): Delete la_value_print
4968 initializer.
4969 (ada_language::value_print): New member function.
4970 * c-lang.c (c_language_data): Delete la_value_print initializer.
4971 (cplus_language_data): Likewise.
4972 (asm_language_data): Likewise.
4973 (minimal_language_data): Likewise.
4974 * d-lang.c (d_language_data): Likewise.
4975 * f-lang.c (f_language_data): Likewise.
4976 * go-lang.c (go_language_data): Likewise.
4977 * language.c (unk_lang_value_print): Delete.
4978 (language_defn::value_print): Define new member function.
4979 (unknown_language_data): Delete la_value_print initializer.
4980 (unknown_language::value_print): New member function.
4981 (auto_language_data): Delete la_value_print initializer.
4982 (auto_language::value_print): New member function.
4983 * language.h (language_data): Delete la_value_print field.
4984 (language_defn::value_print): Declare new member function.
4985 (LA_VALUE_PRINT): Update call to value_print.
4986 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4987 * objc-lang.c (objc_language_data): Likewise.
4988 * opencl-lang.c (opencl_language_data): Likewise.
4989 * p-lang.c (pascal_language_data): Likewise.
4990 (pascal_language::value_print): New member function.
4991 * rust-lang.c (rust_language_data): Delete la_value_print
4992 initializer.
4993
f16a9f57
AB
49942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4995
4996 * ada-lang.c (ada_watch_location_expression): Rename to
4997 ada_language::watch_location_expression.
4998 (ada_language_data): Delete la_watch_location_expression
4999 initializer.
5000 (ada_language::watch_location_expression): New member function,
5001 implementation from ada_watch_location_expression.
5002 * breakpoint.c (watch_command_1): Update call to
5003 watch_location_expression.
5004 * c-lang.c (c_watch_location_expression): Rename to
5005 language_defn::watch_location_expression.
5006 (c_language_data): Delete la_watch_location_expression
5007 initializer.
5008 (cplus_language_data): Likewise.
5009 (asm_language_data): Likewise.
5010 (minimal_language_data): Likewise.
5011 * c-lang.h (c_watch_location_expression): Delete declaration.
5012 * d-lang.c (d_language_data): Delete la_watch_location_expression
5013 initializer.
5014 * f-lang.c (f_language_data): Likewise.
5015 * go-lang.c (go_language_data): Likewise.
5016 * language.c (language_defn::watch_location_expression): Member
5017 function implementation from c_watch_location_expression.
5018 (unknown_language_data): Delete la_watch_location_expression
5019 initializer.
5020 (auto_language_data): Likewise.
5021 * language.h (language_data): Delete la_watch_location_expression
5022 field.
5023 (language_defn::watch_location_expression): Declare new member
5024 function.
5025 * m2-lang.c (m2_language_data): Delete
5026 la_watch_location_expression initializer.
5027 * objc-lang.c (objc_language_data): Likewise.
5028 * opencl-lang.c (opencl_language_data): Likewise.
5029 * p-lang.c (pascal_language_data): Likewise.
5030 * rust-lang.c (rust_watch_location_expression): Rename to
5031 rust_language::watch_location_expression.
5032 (rust_language_data): Delete la_watch_location_expression
5033 initializer.
5034 (rust_language::watch_location_expression): New member function,
5035 implementation from rust_watch_location_expression.
5036
7e56227d
AB
50372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5038
5039 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5040 ada_language::collect_symbol_completion_matches.
5041 (ada_language_data): Delete la_collect_symbol_completion_matches
5042 initializer.
5043 (ada_language::collect_symbol_completion_matches): New member
5044 function, implementation from
5045 ada_collect_symbol_completion_matches.
5046 * c-lang.c (c_language_data): Delete
5047 la_collect_symbol_completion_matches initializer.
5048 (cplus_language_data): Likewise.
5049 (asm_language_data): Likewise.
5050 (minimal_language_data): Likewise.
5051 * d-lang.c (d_language_data): Likewise.
5052 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5053 f_language::collect_symbol_completion_matches.
5054 (f_language_data): Delete la_collect_symbol_completion_matches
5055 initializer.
5056 (f_language::collect_symbol_completion_matches) New member
5057 function, implementation from f_collect_symbol_completion_matches.
5058 * go-lang.c (go_language_data): Delete
5059 la_collect_symbol_completion_matches initializer.
5060 * language.c (unknown_language_data): Likewise.
5061 (auto_language_data): Likewise.
5062 * language.h (language_data): Delete
5063 la_collect_symbol_completion_matches field.
5064 (language_defn::collect_symbol_completion_matches): New member
5065 function.
5066 * m2-lang.c (m2_language_data): Delete
5067 la_collect_symbol_completion_matches initializer.
5068 * objc-lang.c (objc_language_data): Likewise.
5069 * opencl-lang.c (opencl_language_data): Likewise.
5070 * p-lang.c (pascal_language_data): Likewise.
5071 * rust-lang.c (rust_language_data): Likewise.
5072 * symtab.c (default_collect_symbol_completion_matches): Delete.
5073 (collect_symbol_completion_matches): Update call to
5074 collect_symbol_completion_matches.
5075 (collect_symbol_completion_matches_type): Likewise.
5076 * symtab.h (default_collect_symbol_completion_matches): Delete
5077 declaration.
5078
53fc67f8
AB
50792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5080
5081 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5082 (ada_language_data): Delete la_word_break_characters initializer.
5083 (ada_language::word_break_characters): New member function.
5084 * c-lang.c (c_language_data): Delete la_word_break_characters
5085 initializer.
5086 (cplus_language_data): Likewise.
5087 (asm_language_data): Likewise.
5088 (minimal_language_data): Likewise.
5089 * completer.c: Update global comment.
5090 (advance_to_expression_complete_word_point): Update call to
5091 word_break_characters.
5092 (complete_files_symbols): Likewise.
5093 (complete_line_internal_1): Likewise.
5094 (default_completer_handle_brkchars): Likewise.
5095 (skip_quoted_chars): Likewise.
5096 * d-lang.c (d_language_data): Delete la_word_break_characters
5097 initializer.
5098 * f-lang.c (f_word_break_characters): Delete.
5099 (f_language_data): Delete la_word_break_characters initializer.
5100 (f_language::word_break_characters): New member function.
5101 * go-lang.c (go_language_data): Delete la_word_break_characters
5102 initializer.
5103 * language.c (unknown_language_data): Likewise.
5104 (auto_language_data): Likewise.
5105 * language.h (default_word_break_characters): Move declaration to
5106 earlier in the file.
5107 (language_data): Delete la_word_break_characters field.
5108 (language_defn::word_break_characters): New member function.
5109 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5110 initializer.
5111 * objc-lang.c (objc_language_data): Likewise.
5112 * opencl-lang.c (opencl_language_data): Likewise.
5113 * p-lang.c (pascal_language_data): Likewise.
5114 * rust-lang.c (rust_language_data): Likewise.
5115
c9debfb9
AB
51162020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5117
5118 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5119 (ada_language_data): Delete la_get_symbol_name_matcher
5120 initializer.
5121 (language_defn::get_symbol_name_matcher_inner): New member
5122 function.
5123 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5124 initializer.
5125 (cplus_language_data): Likewise.
5126 (cplus_language::get_symbol_name_matcher_inner): New member
5127 function.
5128 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5129 (minimal_language_data): Likewise.
5130 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5131 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5132 initializer.
5133 * dictionary.c (iter_match_first_hashed): Update call to
5134 get_symbol_name_matcher.
5135 (iter_match_next_hashed): Likewise.
5136 (iter_match_next_linear): Likewise.
5137 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5138 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5139 initializer.
5140 (f_language::get_symbol_name_matcher_inner): New member function.
5141 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5142 initializer.
5143 * language.c (default_symbol_name_matcher): Update header comment,
5144 make static.
5145 (language_defn::get_symbol_name_matcher): New definition.
5146 (language_defn::get_symbol_name_matcher_inner): Likewise.
5147 (get_symbol_name_matcher): Delete.
5148 (unknown_language_data): Delete la_get_symbol_name_matcher
5149 initializer.
5150 (auto_language_data): Likewise.
5151 * language.h (language_data): Delete la_get_symbol_name_matcher
5152 field.
5153 (language_defn::get_symbol_name_matcher): New member function.
5154 (language_defn::get_symbol_name_matcher_inner): Likewise.
5155 (default_symbol_name_matcher): Delete declaration.
5156 * linespec.c (find_methods): Update call to
5157 get_symbol_name_matcher.
5158 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5159 initializer.
5160 * minsyms.c (lookup_minimal_symbol): Update call to
5161 get_symbol_name_matcher.
5162 (iterate_over_minimal_symbols): Likewise.
5163 * objc-lang.c (objc_language_data): Delete
5164 la_get_symbol_name_matcher initializer.
5165 * opencl-lang.c (opencl_language_data): Likewise.
5166 * p-lang.c (pascal_language_data): Likewise.
5167 * psymtab.c (psymbol_name_matches): Update call to
5168 get_symbol_name_matcher.
5169 * rust-lang.c (rust_language_data): Delete
5170 la_get_symbol_name_matcher initializer.
5171 * symtab.c (symbol_matches_search_name): Update call to
5172 get_symbol_name_matcher.
5173 (compare_symbol_name): Likewise.
5174
9a49ad8c
AB
51752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5176
5177 * ada-lang.c (ada_language_data): Delete la_compute_program
5178 initializer.
5179 * c-lang.c (c_language_data): Likewise.
5180 (c_language::compute_program): New member function.
5181 (cplus_language_data): Delete la_compute_program initializer.
5182 (cplus_language::compute_program): New member function.
5183 (asm_language_data): Delete la_compute_program initializer.
5184 (minimal_language_data): Likewise.
5185 * c-lang.h (c_compute_program): Update comment.
5186 (cplus_compute_program): Likewise.
5187 * compile/compile-c-support.c (c_compute_program): Likewise.
5188 (cplus_compute_program): Likewise.
5189 * compile/compile.c (compile_to_object): Update call to
5190 la_compute_program.
5191 * d-lang.c (d_language_data): Delete la_compute_program
5192 initializer.
5193 * f-lang.c (f_language_data): Likewise.
5194 * go-lang.c (go_language_data): Likewise.
5195 * language.c (unknown_language_data): Likewise.
5196 (auto_language_data): Likewise.
5197 * language.h (language_data): Delete la_compute_program field.
5198 (language_defn::compute_program): New member function.
5199 * m2-lang.c (m2_language_data): Delete la_compute_program
5200 initializer.
5201 * objc-lang.c (objc_language_data): Likewise.
5202 * opencl-lang.c (opencl_language_data): Likewise.
5203 * p-lang.c (pascal_language_data): Likewise.
5204 * rust-lang.c (rust_language_data): Likewise.
5205
eff93b4d
AB
52062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5207
5208 * ada-lang.c (ada_language_data) Delete
5209 la_class_name_from_physname initializer.
5210 * c-lang.c (c_language_data): Likewise.
5211 (cplus_language_data): Likewise.
5212 (cplus_language::class_name_from_physname): New member function.
5213 (asm_language_data): Delete la_class_name_from_physname
5214 initializer.
5215 (minimal_language_data): Likewise.
5216 * d-lang.c (d_language_data): Likewise.
5217 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5218 method on language_defn class.
5219 (guess_full_die_structure_name): Likewise.
5220 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5221 initializer.
5222 * go-lang.c (go_language_data): Likewise.
5223 * language.c (language_class_name_from_physname): Delete.
5224 (unk_lang_class_name): Delete.
5225 (unknown_language_data): Delete la_class_name_from_physname
5226 initializer.
5227 (auto_language_data): Likewise.
5228 * language.h (language_data): Delete la_class_name_from_physname
5229 field.
5230 (language_defn::class_name_from_physname): New function.
5231 (language_class_name_from_physname): Delete declaration.
5232 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5233 initializer.
5234 * objc-lang.c (objc_language_data): Likewise.
5235 * opencl-lang.c (opencl_language_data): Likewise.
5236 * p-lang.c (pascal_language_data): Likewise.
5237 * rust-lang.c (rust_language_data): Likewise.
5238
de543742
TT
52392020-06-16 Tom Tromey <tom@tromey.com>
5240
5241 * tui/tui-data.h (STATUS_NAME): New macro.
5242 * tui/tui-layout.c (tui_remove_some_windows)
5243 (initialize_known_windows, tui_register_window)
5244 (tui_layout_split::remove_windows, initialize_layouts)
5245 (tui_new_layout_command): Don't use hard-coded window names.
5246
a350efd4
TT
52472020-06-16 Tom Tromey <tom@tromey.com>
5248
5249 PR tui/25348:
5250 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5251 tui_initialize_readline. Only run once. Call rl_initialize.
5252 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5253 tui_initialize_readline.
5254 * tui/tui-io.c (tui_setup_io): Call
5255 tui_ensure_readline_initialized.
5256 * tui/tui-interp.c (tui_interp::init): Update.
5257
39ec0490
TT
52582020-06-16 Tom Tromey <tom@tromey.com>
5259
5260 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5261 Also preserve the status window.
5262
d2d1ea20
TT
52632020-06-16 Tom Tromey <tom@tromey.com>
5264
5265 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5266 where m_window==nullptr.
5267
66920317
TT
52682020-06-15 Tom Tromey <tromey@adacore.com>
5269
5270 * windows-nat.c (windows_nat::handle_output_debug_string):
5271 Update.
5272 (windows_nat::handle_ms_vc_exception): Update.
5273 * target.h (target_read_string): Change API.
5274 * target.c (target_read_string): Change API.
5275 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5276 Update.
5277 * solib-frv.c (frv_current_sos): Update.
5278 * solib-dsbt.c (dsbt_current_sos): Update.
5279 * solib-darwin.c (darwin_current_sos): Update.
5280 * linux-thread-db.c (inferior_has_bug): Update.
5281 * expprint.c (print_subexp_standard): Update.
5282 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5283 (ada_exception_message_1): Update.
5284
a5d871dd
TT
52852020-06-15 Tom Tromey <tromey@adacore.com>
5286
5287 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5288
670e35fa
TT
52892020-06-15 Tom Tromey <tromey@adacore.com>
5290
5291 * valprint.c (read_string): Update comment.
5292 * target.c (MIN): Remove.
5293 (target_read_string): Rewrite.
5294
f5272a3b
TT
52952020-06-15 Tom Tromey <tromey@adacore.com>
5296
5297 * corefile.c (read_memory_string): Remove.
5298 * ada-valprint.c (ada_value_print_ptr): Update.
5299 * ada-lang.h (ada_tag_name): Change return type.
5300 * ada-lang.c (type_from_tag): Update.
5301 (ada_tag_name_from_tsd): Change return type. Use
5302 target_read_string.
5303 (ada_tag_name): Likewise.
5304 * gdbcore.h (read_memory_string): Don't declare.
5305
2c074f49
HD
53062020-06-14 Hannes Domani <ssbssa@yahoo.de>
5307
5308 * symtab.c (rbreak_command): Ignore Windows drive colon.
5309
6a17d503
SM
53102020-06-12 Simon Marchi <simon.marchi@efficios.com>
5311
5312 * NEWS: Mention removed GDBserver host support.
5313
453c733f
NC
53142020-06-12 Nelson Chu <nelson.chu@sifive.com>
5315
5316 * features/riscv/rebuild-csr-xml.sh: Updated.
5317
2b4e6a3f
TT
53182020-06-11 Tom Tromey <tom@tromey.com>
5319
5320 PR gdb/18318:
5321 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5322
4412332f
JG
53232020-06-09 Jonny Grant <jg@jguk.org>
53242020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5325
5326 * main.c (captured_main_1): Don't print new line after help.
5327 (print_gdb_help): add mailing list and IRC channel information
5328 to --help. Add new lines between items in the footer. Remove
5329 quotes around bug url.
5330
2f33032a
KS
53312020-06-11 Keith Seitz <keiths@redhat.com>
5332
5333 PR gdb/21356
5334 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5335 Resolve typedefs for type length calculations.
5336
7ab96794
TV
53372020-06-10 Tom de Vries <tdevries@suse.de>
5338
5339 PR ada/24713
5340 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5341 (write_psymbols): Enable .gdb_index for ada.
5342 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5343 ada.
5344
e5f3ece2
TV
53452020-06-10 Tom de Vries <tdevries@suse.de>
5346
5347 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5348 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5349 namei" instead of "const char *name" argument.
5350 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5351 dw2_symtab_iter_init.
5352
940da03e
SM
53532020-06-08 Simon Marchi <simon.marchi@efficios.com>
5354
5355 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5356 to use type::field and field::type instead.
5357
b6cdac4b
SM
53582020-06-08 Simon Marchi <simon.marchi@efficios.com>
5359
5360 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5361 to use field::type instead.
5362
5d14b6e5
SM
53632020-06-08 Simon Marchi <simon.marchi@efficios.com>
5364
5365 * gdbtypes.h (struct field) <type, set_type>: New methods.
5366 Rename `type` field to...
5367 <m_type>: ... this. Change references throughout to use type or
5368 set_type methods.
5369 (FIELD_TYPE): Use field::type. Change call sites that modify
5370 the field's type to use field::set_type instead.
5371
3d967001
SM
53722020-06-08 Simon Marchi <simon.marchi@efficios.com>
5373
5374 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5375 to use type::index_type instead.
5376
262abc0d
SM
53772020-06-08 Simon Marchi <simon.marchi@efficios.com>
5378
5379 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5380 methods.
5381 (TYPE_INDEX_TYPE): Use type::index_type.
5382 * gdbtypes.c (create_array_type_with_stride): Likewise.
5383
82836c92
TT
53842020-06-07 Tom Tromey <tom@tromey.com>
5385
5386 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5387 parameter.
5388 (generic_value_print): Update.
5389
940dace9
AB
53902020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5391
5392 Revert commit 982a38f60b0.
5393 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5394
982a38f6
AB
53952020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5396
5397 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5398 avoid use after free.
5399
82f06518
TV
54002020-06-05 Tom de Vries <tdevries@suse.de>
5401
5402 * NEWS: Fix typos.
5403
f8c41851
SM
54042020-06-04 Simon Marchi <simon.marchi@efficios.com>
5405
5406 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5407 the per_bfd object.
5408 (dwarf2_read_debug_names): Likewise.
5409 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5410 object when re-using a per_bfd object with an index.
5411
f9b5d5ea
TV
54122020-06-03 Tom de Vries <tdevries@suse.de>
5413
5414 PR symtab/26046
5415 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5416 children for C++.
5417 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5418 DW_TAG_subprogram.
5419
f6eee2d0
AB
54202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5421
5422 * ada-lang.c (ada_language_data): Delete skip_trampoline
5423 initializer.
5424 * c-lang.c (c_language_data): Likewise.
5425 (cplus_language_data): Likewise.
5426 (cplus_language::skip_trampoline): New member function.
5427 (asm_language_data): Delete skip_trampoline initializer.
5428 (minimal_language_data): Likewise.
5429 * d-lang.c (d_language_data): Likewise.
5430 * f-lang.c (f_language_data): Likewise.
5431 * go-lang.c (go_language_data): Likewise.
5432 * language.c (unk_lang_trampoline): Delete function.
5433 (skip_language_trampoline): Update.
5434 (unknown_language_data): Delete skip_trampoline initializer.
5435 (auto_language_data): Likewise.
5436 * language.h (language_data): Delete skip_trampoline field.
5437 (language_defn::skip_trampoline): New function.
5438 * m2-lang.c (m2_language_data): Delete skip_trampoline
5439 initializer.
5440 * objc-lang.c (objc_skip_trampoline): Delete function, move
5441 implementation to objc_language::skip_trampoline.
5442 (objc_language_data): Delete skip_trampoline initializer.
5443 (objc_language::skip_trampoline): New member function with
5444 implementation from objc_skip_trampoline.
5445 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5446 initializer.
5447 * p-lang.c (pascal_language_data): Likewise.
5448 * rust-lang.c (rust_language_data): Likewise.
5449
0a50df5d
AB
54502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5451
5452 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5453 (ada_language::demangle): New member function.
5454 * c-lang.c (c_language_data): Delete la_demangle initializer.
5455 (cplus_language_data): Delete la_demangle initializer.
5456 (cplus_language::demangle): New member function.
5457 (asm_language_data): Delete la_demangle initializer.
5458 (minimal_language_data): Delete la_demangle initializer.
5459 * d-lang.c (d_language_data): Delete la_demangle initializer.
5460 (d_language::demangle): New member function.
5461 * f-lang.c (f_language_data): Delete la_demangle initializer.
5462 (f_language::demangle): New member function.
5463 * go-lang.c (go_language_data): Delete la_demangle initializer.
5464 (go_language::demangle): New member function.
5465 * language.c (language_demangle): Update.
5466 (unk_lang_demangle): Delete.
5467 (unknown_language_data): Delete la_demangle initializer.
5468 (unknown_language::demangle): New member function.
5469 (auto_language_data): Delete la_demangle initializer.
5470 (auto_language::demangle): New member function.
5471 * language.h (language_data): Delete la_demangle field.
5472 (language_defn::demangle): New function.
5473 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5474 * objc-lang.c (objc_language_data): Delete la_demangle
5475 initializer.
5476 (objc_language::demangle): New member function.
5477 * opencl-lang.c (opencl_language_data): Delete la_demangle
5478 initializer.
5479 * p-lang.c (pascal_language_data): Likewise.
5480 * rust-lang.c (rust_language_data): Likewise.
5481 (rust_language::demangle): New member function.
5482
fbfb0a46
AB
54832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5484
5485 * ada-lang.c (ada_language_data): Delete la_print_type
5486 initializer.
5487 (ada_language::print_type): New member function.
5488 * c-lang.c (c_language_data): Delete la_print_type initializer.
5489 (c_language::print_type): New member function.
5490 (cplus_language_data): Delete la_print_type initializer.
5491 (cplus_language::print_type): New member function.
5492 (asm_language_data): Delete la_print_type initializer.
5493 (asm_language::print_type): New member function.
5494 (minimal_language_data): Delete la_print_type initializer.
5495 (minimal_language::print_type): New member function.
5496 * d-lang.c (d_language_data): Delete la_print_type initializer.
5497 (d_language::print_type): New member function.
5498 * f-lang.c (f_language_data): Delete la_print_type initializer.
5499 (f_language::print_type): New member function.
5500 * go-lang.c (go_language_data): Delete la_print_type initializer.
5501 (go_language::print_type): New member function.
5502 * language.c (unk_lang_print_type): Delete.
5503 (unknown_language_data): Delete la_print_type initializer.
5504 (unknown_language::print_type): New member function.
5505 (auto_language_data): Delete la_print_type initializer.
5506 (auto_language::print_type): New member function.
5507 * language.h (language_data): Delete la_print_type field.
5508 (language_defn::print_type): New function.
5509 (LA_PRINT_TYPE): Update.
5510 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5511 (m2_language::print_type): New member function.
5512 * objc-lang.c (objc_language_data): Delete la_print_type
5513 initializer.
5514 (objc_language::print_type): New member function.
5515 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5516 to opencl_language::print_type.
5517 (opencl_language_data): Delete la_print_type initializer.
5518 (opencl_language::print_type): New member function, implementation
5519 from opencl_print_type.
5520 * p-lang.c (pascal_language_data): Delete la_print_type
5521 initializer.
5522 (pascal_language::print_type): New member function.
5523 * rust-lang.c (rust_print_type): Delete, implementation moved to
5524 rust_language::print_type.
5525 (rust_language_data): Delete la_print_type initializer.
5526 (rust_language::print_type): New member function, implementation
5527 from rust_print_type.
5528
6f827019
AB
55292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5530
5531 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5532 implementation moves to...
5533 (ada_language::sniff_from_mangled_name): ...here. Update return
5534 type.
5535 (ada_language_data): Delete la_sniff_from_mangled_name
5536 initializer.
5537 * c-lang.c (c_language_data): Likewise.
5538 (cplus_language_data): Likewise.
5539 (cplus_language::sniff_from_mangled_name): New member function,
5540 implementation taken from gdb_sniff_from_mangled_name.
5541 (asm_language_data): Delete la_sniff_from_mangled_name
5542 initializer.
5543 (minimal_language_data): Likewise.
5544 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5545 implementation moves to cplus_language::sniff_from_mangled_name.
5546 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5547 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5548 moves to...
5549 (d_language::sniff_from_mangled_name): ...here.
5550 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5551 * f-lang.c (f_language_data): Likewise.
5552 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5553 moves to...
5554 (go_language::sniff_from_mangled_name): ...here.
5555 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5556 * language.c (language_sniff_from_mangled_name): Delete.
5557 (unknown_language_data): Delete la_sniff_from_mangled_name
5558 initializer.
5559 (auto_language_data): Likewise.
5560 * language.h (language_data): Delete la_sniff_from_mangled_name
5561 field.
5562 (language_defn::sniff_from_mangled_name): New function.
5563 (language_sniff_from_mangled_name): Delete declaration.
5564 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5565 field.
5566 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5567 implementation moves to...
5568 (objc_language::sniff_from_mangled_name): ...here.
5569 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5570 * opencl-lang.c (opencl_language_data): Likewise.
5571 * p-lang.c (pascal_language_data): Likewise.
5572 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5573 implementation moves to...
5574 (rust_language::sniff_from_mangled_name): ...here.
5575 (rust_language_data): Delete la_sniff_from_mangled_name
5576 initializer.
5577 * symtab.c (symbol_find_demangled_name): Call
5578 sniff_from_mangled_name member function.
5579
fb8006fd
AB
55802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5581
5582 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5583 initializer.
5584 * c-lang.c (c_language_data): Likewise.
5585 (cplus_language_data): Likewise.
5586 (cplus_language::search_name_hash): New member function.
5587 (asm_language_data): Delete la_search_name_hash initializer.
5588 (minimal_language_data): Likewise.
5589 * d-lang.c (d_language_data): Likewise.
5590 * dictionary.c (default_search_name_hash): Rename to...
5591 (language_defn::search_name_hash): ...this.
5592 * f-lang.c (f_language_data): Likewise.
5593 (f_language::search_name_hash): New member function.
5594 * go-lang.c (go_language_data): Delete la_search_name_hash
5595 initializer.
5596 * language.c (unknown_language_data): Likewise.
5597 (auto_language_data): Likewise.
5598 * language.h (struct language_data): Delete la_search_name_hash
5599 field.
5600 (language_defn::search_name_hash): Declare new member function.
5601 (default_search_name_hash): Delete declaration.
5602 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5603 initializer.
5604 * objc-lang.c (objc_language_data): Likewise.
5605 * opencl-lang.c (opencl_language_data): Likewise.
5606 * p-lang.c (pascal_language_data): Likewise.
5607 * rust-lang.c (rust_language_data): Likewise.
5608 * symtab.c (search_name_hash): Update call.
5609
8e25bafe
AB
56102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5611
5612 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5613 initializer.
5614 * c-lang.c (class compile_instance): Declare.
5615 (c_language_data): Delete la_get_compile_instance initializer.
5616 (c_language::get_compile_instance): New member function.
5617 (cplus_language_data): Delete la_get_compile_instance initializer.
5618 (cplus_language::get_compile_instance): New member function.
5619 (asm_language_data): Delete la_get_compile_instance initializer.
5620 (minimal_language_data): Likewise.
5621 * c-lang.h (c_get_compile_context): Update comment.
5622 (cplus_get_compile_context): Update comment.
5623 * compile/compile.c (compile_to_object): Update calls, don't rely
5624 on function pointer being NULL.
5625 * d-lang.c (d_language_data): Delete la_get_compile_instance
5626 initializer.
5627 * f-lang.c (f_language_data): Likewise.
5628 * go-lang.c (go_language_data): Likewise.
5629 * language.c (unknown_language_data): Likewise.
5630 (auto_language_data): Likewise.
5631 * language.h (language_data): Delete la_get_compile_instance field.
5632 (language_defn::get_compile_instance): New member function.
5633 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5634 initializer.
5635 * objc-lang.c (objc_language_data): Likewise.
5636 * opencl-lang.c (opencl_language_data): Likewise.
5637 * p-lang.c (pascal_language_data): Likewise.
5638 * rust-lang.c (rust_language_data): Likewise.
5639
4009ee92
AB
56402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5641
5642 * ada-lang.c (ada_add_all_symbols): Update comment.
5643 (ada_iterate_over_symbols): Delete, move implementation to...
5644 (ada_language::iterate_over_symbols): ...here, a new member
5645 function, rewrite to use range based for loop.
5646 (ada_language_data): Delete la_iterate_over_symbols initializer.
5647 * c-lang.c (c_language_data): Likewise.
5648 (cplus_language_data): Likewise.
5649 (asm_language_data): Likewise.
5650 (minimal_language_data): Likewise.
5651 * d-lang.c (d_language_data): Likewise.
5652 * f-lang.c (f_language_data): Likewise.
5653 * go-lang.c (go_language_data): Likewise.
5654 * language.c (unknown_language_data): Likewise.
5655 (auto_language_data): Likewise.
5656 * language.h (language_data): Delete la_iterate_over_symbols field.
5657 (language_defn::iterate_over_symbols): New member function.
5658 (LA_ITERATE_OVER_SYMBOLS): Update.
5659 * linespec.c (iterate_over_all_matching_symtabs): Update.
5660 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5661 initializer.
5662 * objc-lang.c (objc_language_data): Likewise.
5663 * opencl-lang.c (opencl_language_data): Likewise.
5664 * p-lang.c (pascal_language_data): Likewise.
5665 * rust-lang.c (rust_language_data): Likewise.
5666
54f4ca46
AB
56672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5668
5669 * ada-lang.c (ada_language_data): Delete
5670 la_lookup_transparent_type initializer.
5671 * c-lang.c (c_language_data): Likewise.
5672 (cplus_language_data): Likewise.
5673 (cplus_language::lookup_transparent_type): New member function.
5674 (asm_language_data): Delete la_lookup_transparent_type
5675 initializer.
5676 (minimal_language_data): Likewise.
5677 * d-lang.c (d_language_data): Likewise.
5678 * f-lang.c (f_language_data): Likewise.
5679 * go-lang.c (go_language_data): Likewise.
5680 * language.c (unknown_language_data): Likewise.
5681 (auto_language_data): Likewise.
5682 * language.h (struct language_data): Delete
5683 la_lookup_transparent_type field.
5684 (language_defn::lookup_transparent_type): New member function.
5685 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5686 initializer.
5687 * objc-lang.c (objc_language_data): Likewise.
5688 * opencl-lang.c (opencl_language_data): Likewise.
5689 * p-lang.c (pascal_language_data): Likewise.
5690 * rust-lang.c (rust_language_data): Likewise.
5691 * symtab.c (symbol_matches_domain): Update call.
5692
1fb314aa
AB
56932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5694
5695 * ada-lang.c (ada_language_arch_info): Delete function, move
5696 implementation to...
5697 (ada_language::language_arch_info): ...here, a new member
5698 function.
5699 (ada_language_data): Delete la_language_arch_info.
5700 * c-lang.c (c_language_data): Likewise.
5701 (c_language::language_arch_info): New member function.
5702 (cplus_language_arch_info): Delete function, move
5703 implementation to...
5704 (cplus_language::language_arch_info): ...here, a new member
5705 function.
5706 (cplus_language_data): Delete la_language_arch_info.
5707 (asm_language_data): Likewise.
5708 (asm_language::language_arch_info): New member function.
5709 (minimal_language_data): Delete la_language_arch_info.
5710 (minimal_language::language_arch_info): New member function.
5711 * d-lang.c (d_language_arch_info): Delete function, move
5712 implementation to...
5713 (d_language::language_arch_info): ...here, a new member
5714 function.
5715 (d_language_data): Delete la_language_arch_info.
5716 * f-lang.c (f_language_arch_info): Delete function, move
5717 implementation to...
5718 (f_language::language_arch_info): ...here, a new member
5719 function.
5720 (f_language_data): Delete la_language_arch_info.
5721 * go-lang.c (go_language_arch_info): Delete function, move
5722 implementation to...
5723 (go_language::language_arch_info): ...here, a new member
5724 function.
5725 (go_language_data): Delete la_language_arch_info.
5726 * language.c (unknown_language_data): Likewise.
5727 (unknown_language::language_arch_info): New member function.
5728 (auto_language_data): Delete la_language_arch_info.
5729 (auto_language::language_arch_info): New member function.
5730 (language_gdbarch_post_init): Update call to
5731 la_language_arch_info.
5732 * language.h (language_data): Delete la_language_arch_info
5733 function pointer.
5734 (language_defn::language_arch_info): New function.
5735 * m2-lang.c (m2_language_arch_info): Delete function, move
5736 implementation to...
5737 (m2_language::language_arch_info): ...here, a new member
5738 function.
5739 (m2_language_data): Delete la_language_arch_info.
5740 * objc-lang.c (objc_language_arch_info): Delete function, move
5741 implementation to...
5742 (objc_language::language_arch_info): ...here, a new member
5743 function.
5744 (objc_language_data): Delete la_language_arch_info.
5745 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5746 implementation to...
5747 (opencl_language::language_arch_info): ...here, a new member
5748 function.
5749 (opencl_language_data): Delete la_language_arch_info.
5750 * p-lang.c (pascal_language_arch_info): Delete function, move
5751 implementation to...
5752 (pascal_language::language_arch_info): ...here, a new member
5753 function.
5754 (pascal_language_data): Delete la_language_arch_info.
5755 * rust-lang.c (rust_language_arch_info): Delete function, move
5756 implementation to...
5757 (rust_language::language_arch_info): ...here, a new member
5758 function.
5759 (rust_language_data): Delete la_language_arch_info.
5760
48448202
AB
57612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5762
5763 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5764 initializer.
5765 * c-lang.c (c_language_data): Likewise.
5766 (cplus_language_data): Likewise.
5767 (cplus_language::pass_by_reference_info): New method.
5768 (asm_language_data): Delete la_pass_by_reference initializer.
5769 (minimal_language_data): Likewise.
5770 * cp-abi.c (cp_pass_by_reference): Remove use of
5771 default_pass_by_reference.
5772 * d-lang.c (d_language_data): Likewise.
5773 * f-lang.c (f_language_data): Likewise.
5774 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5775 default_pass_by_reference.
5776 * go-lang.c (go_language_data): Likewise.
5777 * language.c (language_pass_by_reference): Update.
5778 (default_pass_by_reference): Delete.
5779 (unknown_language_data): Delete la_pass_by_reference
5780 initializer.
5781 (auto_language_data): Likewise.
5782 * language.h (struct language_data): Delete la_pass_by_reference
5783 field.
5784 (language_defn::pass_by_reference_info): New member function.
5785 (default_pass_by_reference): Delete declaration.
5786 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5787 initializer.
5788 * objc-lang.c (objc_language_data): Likewise.
5789 * opencl-lang.c (opencl_language_data): Likewise.
5790 * p-lang.c (pascal_language_data): Likewise.
5791 * rust-lang.c (rust_language_data): Likewise.
5792
15e5fd35
AB
57932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5794
5795 * ada-lang.c (ada_read_var_value): Delete function, move
5796 implementation to...
5797 (ada_language::read_var_value): ...here.
5798 (ada_language_data): Delete la_read_var_value initializer.
5799 * c-lang.c (c_language_data): Likewise.
5800 (cplus_language_data): Likewise.
5801 (minimal_language_data): Likewise.
5802 * d-lang.c (d_language_data): Likewise.
5803 * f-lang.c (f_language_data): Likewise.
5804 * findvar.c (default_read_var_value): Rename to...
5805 (language_defn::read_var_value): ...this.
5806 * findvar.c (read_var_value): Update header comment, and change to
5807 call member function instead of function pointer.
5808 * go-lang.c (go_language_data): Likewise.
5809 * language.c (unknown_language_data): Delete la_read_var_value
5810 initializer.
5811 (auto_language_data): Likewise.
5812 * language.h (struct language_data): Delete la_read_var_value
5813 field.
5814 (language_defn::read_var_value): New member function.
5815 (default_read_var_value): Delete declaration.
5816 * m2-lang.c (m2_language_data): Delete la_read_var_value
5817 initializer.
5818 * objc-lang.c (objc_language_data): Likewise.
5819 * opencl-lang.c (opencl_language_data): Likewise.
5820 * p-lang.c (pascal_language_data): Likewise.
5821 * rust-lang.c (rust_language_data): Likewise.
5822 * value.h (default_read_var_value): Delete declaration.
5823
5bd40f2a
AB
58242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5825
5826 * ada-lang.c (ada_print_array_index): Delete function, move
5827 implementation to...
5828 (ada_language::print_array_index): ...here.
5829 (ada_language_data): Delete la_print_array_index initializer.
5830 * c-lang.c (c_language_data): Likewise.
5831 (cplus_language_data): Likewise.
5832 (minimal_language_data): Likewise.
5833 * d-lang.c (d_language_data): Likewise.
5834 * f-lang.c (f_language_data): Likewise.
5835 * go-lang.c (go_language_data): Likewise.
5836 * language.c (default_print_array_index): Delete function, move
5837 implementation to...
5838 (language_defn::print_array_index): ...here.
5839 (unknown_language_data): Delete la_print_array_index initializer.
5840 (auto_language_data): Likewise.
5841 * language.h (struct language_data): Delete la_print_array_index
5842 field.
5843 (language_defn::print_array_index): New member function.
5844 (LA_PRINT_ARRAY_INDEX): Update.
5845 (default_print_array_index): Delete declaration.
5846 * m2-lang.c (m2_language_data): Delete la_print_array_index
5847 initializer.
5848 * objc-lang.c (objc_language_data): Likewise.
5849 * opencl-lang.c (opencl_language_data): Likewise.
5850 * p-lang.c (pascal_language_data): Likewise.
5851 * rust-lang.c (rust_language_data): Likewise.
5852
0874fd07
AB
58532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5854
5855 * gdb/ada-lang.c (ada_language_defn): Convert to...
5856 (ada_language_data): ...this.
5857 (class ada_language): New class.
5858 (ada_language_defn): New static global.
5859 * gdb/c-lang.c (c_language_defn): Convert to...
5860 (c_language_data): ...this.
5861 (class c_language): New class.
5862 (c_language_defn): New static global.
5863 (cplus_language_defn): Convert to...
5864 (cplus_language_data): ...this.
5865 (class cplus_language): New class.
5866 (cplus_language_defn): New static global.
5867 (asm_language_defn): Convert to...
5868 (asm_language_data): ...this.
5869 (class asm_language): New class.
5870 (asm_language_defn): New static global.
5871 (minimal_language_defn): Convert to...
5872 (minimal_language_data): ...this.
5873 (class minimal_language): New class.
5874 (minimal_language_defn): New static global.
5875 * gdb/d-lang.c (d_language_defn): Convert to...
5876 (d_language_data): ...this.
5877 (class d_language): New class.
5878 (d_language_defn): New static global.
5879 * gdb/f-lang.c (f_language_defn): Convert to...
5880 (f_language_data): ...this.
5881 (class f_language): New class.
5882 (f_language_defn): New static global.
5883 * gdb/go-lang.c (go_language_defn): Convert to...
5884 (go_language_data): ...this.
5885 (class go_language): New class.
5886 (go_language_defn): New static global.
5887 * gdb/language.c (unknown_language_defn): Remove declaration.
5888 (current_language): Initialize to nullptr, real initialization is
5889 moved to _initialize_language.
5890 (languages): Delete global.
5891 (language_defn::languages): Define.
5892 (set_language_command): Use language_defn::languages.
5893 (set_language): Likewise.
5894 (range_error): Likewise.
5895 (language_enum): Likewise.
5896 (language_def): Likewise.
5897 (add_set_language_command): Use language_def::languages for the
5898 language list, and language_def to lookup language pointers.
5899 (skip_language_trampoline): Use language_defn::languages.
5900 (unknown_language_defn): Convert to...
5901 (unknown_language_data): ...this.
5902 (class unknown_language): New class.
5903 (unknown_language_defn): New static global.
5904 (auto_language_defn): Convert to...
5905 (auto_language_data): ...this.
5906 (class auto_language): New class.
5907 (auto_language_defn): New static global.
5908 (language_gdbarch_post_init): Use language_defn::languages.
5909 (_initialize_language): Initialize current_language.
5910 * gdb/language.h (struct language_defn): Rename to...
5911 (struct language_data): ...this.
5912 (struct language_defn): New.
5913 (auto_language_defn): Delete.
5914 (unknown_language_defn): Delete.
5915 (minimal_language_defn): Delete.
5916 (ada_language_defn): Delete.
5917 (asm_language_defn): Delete.
5918 (c_language_defn): Delete.
5919 (cplus_language_defn): Delete.
5920 (d_language_defn): Delete.
5921 (f_language_defn): Delete.
5922 (go_language_defn): Delete.
5923 (m2_language_defn): Delete.
5924 (objc_language_defn): Delete.
5925 (opencl_language_defn): Delete.
5926 (pascal_language_defn): Delete.
5927 (rust_language_defn): Delete.
5928 * gdb/m2-lang.c (m2_language_defn): Convert to...
5929 (m2_language_data): ...this.
5930 (class m2_language): New class.
5931 (m2_language_defn): New static global.
5932 * gdb/objc-lang.c (objc_language_defn): Convert to...
5933 (objc_language_data): ...this.
5934 (class objc_language): New class.
5935 (objc_language_defn): New static global.
5936 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5937 (opencl_language_data): ...this.
5938 (class opencl_language): New class.
5939 (opencl_language_defn): New static global.
5940 * gdb/p-lang.c (pascal_language_defn): Convert to...
5941 (pascal_language_data): ...this.
5942 (class pascal_language): New class.
5943 (pascal_language_defn): New static global.
5944 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5945 language pointer, update comment format.
5946 * gdb/rust-lang.c (rust_language_defn): Convert to...
5947 (rust_language_data): ...this.
5948 (class rust_language): New class.
5949 (rust_language_defn): New static global.
5950
1313c56e
AB
59512020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5952
5953 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5954 member variable.
5955 <m_stmt_at_address>: New member variable.
5956 (lnp_state_machine::record_line): Don't record some lines, update
5957 tracking of is_stmt at the same address.
5958 (lnp_state_machine::lnp_state_machine): Initialise new member
5959 variables.
5960
b7ed9f3d
ST
59612020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5962
5963 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5964 "-include gnu-nat-mig.h".
5965 * gnu-nat-mig.h: New file.
5966 * gnu-nat.c: Include "gnu-nat-mig.h".
5967 (exc_server, msg_reply_server, notify_server,
5968 process_reply_server): Remove declarations.
5969
14a8ad62
ST
59702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5971
5972 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5973 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5974 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5975 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5976 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5977 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5978 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5979 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5980 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5981 to gnu_nat_target class.
5982 * gnu-nat.c: Likewise.
5983 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5984 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5985 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5986 object.
5987 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5988 instead of `gnu_target'.
5989
0af5e106
ST
59902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5991
5992 * i386-gnu-tdep.c: Include "gdbcore.h"
5993 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5994 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5995 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5996 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5997 i386_gnu_sigcontext_addr): New functions
5998 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5999 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6000 tdep.
6001
078f2fc9
ST
60022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6003
6004 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6005 before fork_inferior call. Avoid calling it if target_is_pushed returns
6006 true.
6007
53dff92c
ST
60082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6009
6010 * gnu-nat.h (gnu_target): New variable declaration.
6011 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6012 gnu_target.
6013 * gnu-nat.c (gnu_target): New variable.
6014 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6015 add_thread_silent, and add_thread calls.
6016 (gnu_nat_target::create_inferior): Pass gnu_target to
6017 add_thread_silent, thread_change_ptid call.
6018 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6019 call.
6020
5a8b8627
ST
60212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6022
6023 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6024 (gnu_nat_target::find_memory_regions): Remove unused
6025 `old_address' variable.
6026
366f550a
ST
60272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6028
6029 * gnu-nat.c: Include "gdbarch.h".
6030
f14871bf
ST
60312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6032
6033 * reply_mig_hack.awk (Error return): Cast function through
6034 void *, to bypass compiler function call check.
6035
c6887cfb
ST
60362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6037
6038 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6039 $(srcdir)/reply_mig_hack.awk.
6040
6930bffe
ST
60412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6042
6043 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6044
112c22ed
JG
60452020-05-30 Jonny Grant <jg@jguk.org>
6046
6047 * configure.ac (ACX_BUGURL): change bug URL to https.
6048
f68f85b5
PA
60492020-05-30 Pedro Alves <palves@redhat.com>
6050
6051 * cp-support.c (replace_typedefs_template): New.
6052 (replace_typedefs_qualified_name): Handle
6053 DEMANGLE_COMPONENT_TEMPLATE.
6054
976ca316
SM
60552020-05-29 Simon Marchi <simon.marchi@efficios.com>
6056
6057 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6058 dwarf2/index-cache.h, dwarf2/index-write.c,
6059 dwarf2/index-write.h, dwarf2/line-header.c,
6060 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6061 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6062 variables and fields from `dwarf2_per_objfile` to just
6063 `per_objfile` throughout.
6064
989ade05
SM
60652020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6066
6067 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6068 <push_dwarf_reg_entry_value>: Add comment.
6069
c47bae85
KB
60702020-05-28 Kevin Buettner <kevinb@redhat.com>
6071 Keith Seitz <keiths@redhat.com>
6072
6073 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6074 instead of PyEval_ReleaseLock.
6075 (class gdbpy_gil): Move to earlier in file.
6076 (finalize_python): Set gdb_python_initialized.
6077 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6078 when not initialized.
6079
44486dcf
SM
60802020-05-28 Simon Marchi <simon.marchi@efficios.com>
6081
6082 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6083 <push_dwarf_reg_entry_value>: Remove assert. Override
6084 per_objfile with caller_per_objfile.
6085
f030440d
TV
60862020-05-28 Tom de Vries <tdevries@suse.de>
6087
6088 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6089 PR gold/15646 workaround to symbol kind "type".
6090
f0fbb768
TT
60912020-05-27 Tom Tromey <tromey@adacore.com>
6092
6093 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6094
af0b2a3e
TT
60952020-05-27 Tom Tromey <tromey@adacore.com>
6096
6097 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6098 Use htab_find_with_hash.
6099 <add_abbrev>: Remove "abbrev_number" parameter.
6100 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6101 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6102 (hash_abbrev): Add comment.
6103 (abbrev_table::lookup_abbrev): Move to header file.
6104 (abbrev_table::read): Update.
6105
7d00ffec
TT
61062020-05-27 Tom Tromey <tromey@adacore.com>
6107
6108 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6109 method.
6110 <canonical_name>: New member.
6111 <raw_name>: Rename from "name".
6112 (partial_die_info): Initialize canonical_name.
6113 (scan_partial_symbols): Check raw_name.
6114 (partial_die_parent_scope, partial_die_full_name)
6115 (add_partial_symbol, add_partial_subprogram)
6116 (add_partial_enumeration, load_partial_dies): Use "name" method.
6117 (partial_die_info::name): New method.
6118 (partial_die_info::read, guess_partial_die_structure_name)
6119 (partial_die_info::fixup): Update.
6120
697bba18
TT
61212020-05-27 Tom Tromey <tromey@adacore.com>
6122
6123 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6124 <get_ref_die_offset>: Inline.
6125 <get_ref_die_offset_complaint>: New method.
6126 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6127 (attribute::get_ref_die_offset_complaint): Rename from
6128 get_ref_die_offset. Just issue complaint.
6129
c17ace43
HD
61302020-05-27 Hannes Domani <ssbssa@yahoo.de>
6131
6132 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6133
96445f0b
HD
61342020-05-27 Hannes Domani <ssbssa@yahoo.de>
6135
6136 * exec.c (exec_file_attach): Use errno value of first openp failure.
6137
ac637ec3
HD
61382020-05-27 Hannes Domani <ssbssa@yahoo.de>
6139
6140 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6141 Don't close thread handle.
6142
17ee85fc
TT
61432020-05-27 Tom Tromey <tom@tromey.com>
6144 Simon Marchi <simon.marchi@efficios.com>
6145
6146 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6147 shared_ptr.
6148 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6149 member.
6150 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6151 dwarf2_per_bfd_objfile_data_key>: New globals.
6152 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6153 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6154 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6155 shared.
6156 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6157 short-circuit when sharing.
6158 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6159 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6160
39b16f87
SM
61612020-05-27 Simon Marchi <simon.marchi@efficios.com>
6162
6163 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6164 to...
6165 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6166 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6167
fcf23d5b
SM
61682020-05-27 Simon Marchi <simon.marchi@efficios.com>
6169
6170 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6171 build_name_components, find_name_components_bounds>:
6172 Add per_objfile parameter.
6173 (struct mapped_index) <symbol_name_at>: Likewise.
6174 (struct mapped_debug_names): Remove constructor.
6175 <dwarf2_per_objfile>: Remove field.
6176 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6177 (mapped_index_base::find_name_components_bounds,
6178 mapped_index_base::build_name_components,
6179 dw2_expand_symtabs_matching_symbol): Likewise.
6180 (class mock_mapped_index) <symbol_name_at>: Likewise.
6181 (check_match): Likewise.
6182 (check_find_bounds_finds): Likewise.
6183 (test_mapped_index_find_name_component_bounds): Update.
6184 (CHECK_MATCH): Update.
6185 (dw2_expand_symtabs_matching): Update.
6186 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6187 per_objfile parameter.
6188 <find_vec_in_debug_names>: Likewise.
6189 <m_per_objfile>: New field.
6190 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6191 parameter.
6192 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6193 (dw2_debug_names_iterator::next): Update.
6194 (dw2_debug_names_lookup_symbol): Update.
6195 (dw2_debug_names_expand_symtabs_for_function): Update.
6196 (dw2_debug_names_map_matching_symbols): Update.
6197 (dw2_debug_names_expand_symtabs_matching): Update.
6198 (dwarf2_read_debug_names): Update.
6199
7188ed02
SM
62002020-05-27 Simon Marchi <simon.marchi@efficios.com>
6201
6202 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6203 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6204 move to dwarf2_per_objfile.
6205 <read_in_chain>: Remove.
6206 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6207 remove_all_cus, age_comp_units>: New methods.
6208 <m_dwarf2_cus>: New member.
6209 (struct dwarf2_per_cu_data) <cu>: Remove.
6210 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6211 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6212 moved to methods of dwarf2_per_objfile.
6213 (dwarf2_clear_marks): Remove.
6214 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6215 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6216 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6217 (dwarf2_per_objfile::remove_all_cus): New.
6218 (class free_cached_comp_units) <~free_cached_comp_units>:
6219 Update.
6220 (load_cu): Update.
6221 (dw2_do_instantiate_symtab): Adjust.
6222 (fill_in_sig_entry_from_dwo_entry): Adjust.
6223 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6224 (cutu_reader::cutu_reader): Likewise.
6225 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6226 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6227 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6228 and dwarf2_per_objfile::age_comp_units.
6229 (load_partial_comp_unit): Update.
6230 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6231 (process_queue): Likewise.
6232 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6233 backlink.
6234 (dwarf2_read_addr_index): Likewise.
6235 (follow_die_offset): Likewise.
6236 (dwarf2_fetch_die_loc_sect_off): Likewise.
6237 (dwarf2_fetch_constant_bytes): Likewise.
6238 (dwarf2_fetch_die_type_sect_off): Likewise.
6239 (follow_die_sig_1): Likewise.
6240 (load_full_type_unit): Likewise.
6241 (read_signatured_type): Likewise.
6242 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6243 (dwarf2_cu::~dwarf2_cu): Remove.
6244 (dwarf2_per_objfile::get_cu): New.
6245 (dwarf2_per_objfile::set_cu): New.
6246 (age_cached_comp_units): Rename to...
6247 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6248 to std::unordered_map.
6249 (free_one_cached_comp_unit): Rename to...
6250 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6251 to std::unordered_map.
6252 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6253 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6254 a dwarf2_per_objfile in data.
6255 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6256 (dwarf2_clear_marks): Remove.
6257
2e671100
SM
62582020-05-27 Simon Marchi <simon.marchi@efficios.com>
6259
6260 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6261 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6262 (init_tu_and_read_dwo_dies): Likewise.
6263 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6264 (cutu_reader::cutu_reader): Likewise.
6265 (load_partial_comp_unit): Likewise.
6266 (process_psymtab_comp_unit): Update.
6267 (build_type_psymtabs_1): Update.
6268 (process_skeletonless_type_unit): Update.
6269 (load_full_comp_unit): Update.
6270 (find_partial_die): Update.
6271 (dwarf2_read_addr_index): Update.
6272 (read_signatured_type): Update.
6273
2e6a9f79
SM
62742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6275
6276 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6277 m_header_read_in>: New fields.
6278 <get_header>: New method.
6279 * dwarf2/read.c (per_cu_header_read_in): Remove.
6280 (dwarf2_per_cu_data::get_header): New.
6281 (dwarf2_per_cu_data::addr_size): Update.
6282 (dwarf2_per_cu_data::offset_size): Update.
6283 (dwarf2_per_cu_data::ref_addr_size): Update.
6284
1b555f17
SM
62852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6286
6287 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6288 (dw2_do_instantiate_symtab): Update.
6289 (queue_and_load_all_dwo_tus): Change parameter from
6290 dwarf2_per_cu_data to dwarf2_cu.
6291 (dwarf2_fetch_die_loc_sect_off): Update.
6292 (dwarf2_fetch_constant_bytes): Update.
6293 (dwarf2_fetch_die_type_sect_off): Update.
6294
8fc0b21d
SM
62952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6296
6297 * dwarf2/read.c (process_full_comp_unit,
6298 process_full_type_unit): Remove per_cu, per_objfile paramters.
6299 Add dwarf2_cu parameter.
6300 (process_queue): Update.
6301
168c9250
SM
63022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6303
6304 * dwarf2/read.c (create_cu_from_index_list): Replace
6305 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6306 (create_cus_from_index_list): Likewise.
6307 (create_cus_from_index): Likewise.
6308 (create_signatured_type_table_from_index): Likewise.
6309 (create_cus_from_debug_names_list): Likewise.
6310 (create_cus_from_debug_names): Likewise.
6311 (dwarf2_read_gdb_index): Update.
6312 (dwarf2_read_debug_names): Update.
6313
e286671b
TT
63142020-05-27 Tom Tromey <tom@tromey.com>
6315 Simon Marchi <simon.marchi@efficios.com>
6316
6317 * dwarf2/read.h (struct dwarf2_per_objfile)
6318 <get_type_for_signatured_type, set_type_for_signatured_type>:
6319 New methods.
6320 <m_type_map>: New member.
6321 (struct signatured_type) <type>: Remove.
6322 * dwarf2/read.c
6323 (dwarf2_per_objfile::get_type_for_signatured_type,
6324 dwarf2_per_objfile::set_type_for_signatured_type): New.
6325 (get_signatured_type): Use new methods.
6326
8adb8487
TT
63272020-05-27 Tom Tromey <tom@tromey.com>
6328 Simon Marchi <simon.marchi@efficios.com>
6329
6330 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6331 (struct dwarf2_per_objfile) <type_units>: New member.
6332 <get_type_unit_group_unshareable>: New method.
6333 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6334 num_symtabs, symtabs>: Remove; move to
6335 type_unit_group_unshareable.
6336 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6337 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6338 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6339
127bbf4b
SM
63402020-05-27 Simon Marchi <simon.marchi@efficios.com>
6341
6342 * dwarf2/read.h (struct dwarf2_per_cu_data):
6343 <dwarf2_per_objfile>: Remove.
6344 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6345 dwarf2_per_objfile.
6346 (create_signatured_type_table_from_index): Likewise.
6347 (create_signatured_type_table_from_debug_names): Likewise.
6348 (create_debug_type_hash_table): Likewise.
6349 (fill_in_sig_entry_from_dwo_entry): Likewise.
6350 (create_type_unit_group): Likewise.
6351 (read_comp_units_from_section): Likewise.
6352 (create_cus_hash_table): Likewise.
6353
f6e649dd
SM
63542020-05-27 Simon Marchi <simon.marchi@efficios.com>
6355
6356 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6357 dwarf2_per_cu_data::dwarf2_per_objfile.
6358 (compute_compunit_symtab_includes): Likewise.
6359 (dwarf2_cu::start_symtab): Likewise.
6360
aa66c379
SM
63612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6362
6363 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6364 parameter.
6365 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6366 (read_namespace_alias): Update.
6367 (lookup_die_type): Update.
6368 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6369 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6370 Update.
6371 (disassemble_dwarf_expression): Update.
6372
120ce1b5
SM
63732020-05-27 Simon Marchi <simon.marchi@efficios.com>
6374
6375 * dwarf2/read.h (struct dwarf2_queue_item): Add
6376 dwarf2_per_objfile parameter, assign new parameter.
6377 <per_objfile>: New field.
6378 * dwarf2/read.c (free_one_cached_comp_unit): Add
6379 dwarf2_per_objfile parameter.
6380 (queue_comp_unit): Likewise.
6381 (dw2_do_instantiate_symtab): Update.
6382 (process_psymtab_comp_unit): Update.
6383 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6384 (process_imported_unit_die): Update.
6385 (queue_and_load_dwo_tu): Update.
6386 (follow_die_offset): Update.
6387 (follow_die_sig_1): Update.
6388
9f47c707
SM
63892020-05-27 Simon Marchi <simon.marchi@efficios.com>
6390
6391 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6392 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6393 (read_call_site_scope): Assign per_objfile.
6394 (dwarf2_per_cu_data::objfile): Remove.
6395 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6396 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6397 dwarf2_per_objfile parameter.
6398 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6399 dwarf2_per_objfile parameter.
6400 (dwarf_expr_reg_to_entry_parameter): Add output
6401 dwarf2_per_objfile parameter.
6402 (locexpr_get_frame_base): Update.
6403 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6404 <push_dwarf_reg_entry_value>: Update.
6405 <call_site_to_target_addr>: Update.
6406 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6407 parameter.
6408 (value_of_dwarf_reg_entry): Update.
6409 (rw_pieced_value): Update.
6410 (indirect_synthetic_pointer): Update.
6411 (dwarf2_evaluate_property): Update.
6412 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6413 parameter.
6414 (locexpr_read_variable): Update.
6415 (locexpr_get_symbol_read_needs): Update.
6416 (loclist_read_variable): Update.
6417
14095eb3
SM
64182020-05-27 Simon Marchi <simon.marchi@efficios.com>
6419
6420 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6421 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6422 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6423 parameter.
6424 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6425 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6426 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6427 parameter.
6428 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6429 sect_variable_value): Add dwarf2_per_objfile parameter.
6430 (class dwarf_evaluate_loc_desc) <dwarf_call,
6431 dwarf_variable_value>: Update.
6432 (fetch_const_value_from_synthetic_pointer): Add
6433 dwarf2_per_objfile parameter.
6434 (fetch_const_value_from_synthetic_pointer): Update.
6435 (coerced_pieced_ref): Update.
6436 (class symbol_needs_eval_context) <dwarf_call,
6437 dwarf_variable_value>: Update.
6438 (dwarf2_compile_expr_to_ax): Update.
6439
3c3cd3d4
SM
64402020-05-27 Simon Marchi <simon.marchi@efficios.com>
6441
6442 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6443 parameter.
6444 (dwarf2_evaluate_loc_desc_full): Update.
6445
82ca3f51
SM
64462020-05-27 Simon Marchi <simon.marchi@efficios.com>
6447
6448 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6449 parameter.
6450 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6451 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6452 dwarf2_per_objfile parameter.
6453 (decode_debug_loc_dwo_addresses): Likewise.
6454 (dwarf2_find_location_expression): Update.
6455 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6456 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6457 parameter.
6458 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6459 parameter.
6460 (locexpr_describe_location_1): Likewise.
6461 (locexpr_describe_location): Update.
6462
4b167ea1
SM
64632020-05-27 Simon Marchi <simon.marchi@efficios.com>
6464
6465 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6466 Remove.
6467 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6468 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6469 (dwarf2_compile_property_to_c): Update.
6470 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6471 use text offset from objfile.
6472 (locexpr_tracepoint_var_ref): Update.
6473 (locexpr_generate_c_location): Update.
6474 (loclist_describe_location): Update.
6475 (loclist_tracepoint_var_ref): Update.
6476 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6477 dwarf2_per_objfile parameter.
6478 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6479 use text offset from objfile.
6480 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6481
89b07335
SM
64822020-05-27 Simon Marchi <simon.marchi@efficios.com>
6483
6484 * dwarf2/expr.h (struct dwarf_expr_context)
6485 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6486 <offset>: Remove.
6487 <per_objfile>: New member.
6488 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6489 dwarf2_per_objfile parameter. Don't set offset, set
6490 per_objfile.
6491 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6492 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6493 a dwarf2_per_objfile object instead of an offset.
6494 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6495 constructor.
6496 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6497 to dwarf2_expr_executor constructor. Don't set offset.
6498 (dwarf2_fetch_cfa_info): Update.
6499 (struct dwarf2_frame_cache) <text_offset>: Remove.
6500 <per_objfile>: New field.
6501 (dwarf2_frame_cache): Update.
6502 (dwarf2_frame_prev_register): Update.
6503 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6504 <dwarf_evaluate_loc_desc>: Add constructor.
6505 (dwarf2_evaluate_loc_desc_full): Update.
6506 (dwarf2_locexpr_baton_eval): Update.
6507 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6508 Add constructor.
6509 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6510
293e7e51
SM
65112020-05-27 Simon Marchi <simon.marchi@efficios.com>
6512
6513 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6514 addr_sized_int_type>: Move to dwarf2_cu.
6515 <int_type>: Move to dwarf2_per_objfile.
6516 (struct dwarf2_per_objfile) <int_type>: Move here.
6517 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6518 addr_sized_int_type>: Move here.
6519 (read_func_scope): Update.
6520 (read_array_type): Update.
6521 (read_tag_string_type): Update.
6522 (attr_to_dynamic_prop): Update.
6523 (dwarf2_per_cu_data::int_type): Rename to...
6524 (dwarf2_per_objfile::int_type): ... this.
6525 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6526 (dwarf2_cu::addr_sized_int_type): ... this.
6527 (read_subrange_type): Update.
6528 (dwarf2_per_cu_data::addr_type): Rename to...
6529 (dwarf2_cu::addr_type): ... this.
6530 (set_die_type): Update.
6531
64874a40
SM
65322020-05-27 Simon Marchi <simon.marchi@efficios.com>
6533
6534 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6535 data through per_cu->cu.
6536
4ab09049
SM
65372020-05-27 Simon Marchi <simon.marchi@efficios.com>
6538
6539 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6540 dwarf2_per_cu_data parameter fo dwarf2_cu.
6541 (lookup_dwo_type_unit): Likewise.
6542 (read_cutu_die_from_dwo): Likewise.
6543 (lookup_dwo_unit): Likewise.
6544 (open_and_init_dwo_file): Likewise.
6545 (lookup_dwo_cutu): Likewise.
6546 (lookup_dwo_comp_unit): Likewise.
6547 (lookup_dwo_type_unit): Likewise.
6548 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6549 (cutu_reader::cutu_reader): Update.
6550
47b14e86
SM
65512020-05-27 Simon Marchi <simon.marchi@efficios.com>
6552
6553 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6554 parameter.
6555 (process_full_type_unit): Likewise.
6556 (process_queue): Update.
6557
43182c09
SM
65582020-05-27 Simon Marchi <simon.marchi@efficios.com>
6559
6560 * dwarf2/read.c (recursively_compute_inclusions): Add
6561 dwarf2_per_objfile parameter.
6562 (compute_compunit_symtab_includes): Likewise.
6563 (process_cu_includes): Update.
6564
7aa104c4
SM
65652020-05-27 Simon Marchi <simon.marchi@efficios.com>
6566
6567 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6568 parameter.
6569 (create_type_unit_group): Update.
6570 (process_psymtab_comp_unit_reader): Update.
6571 (build_type_psymtabs_reader): Update.
6572
e3beb21d
SM
65732020-05-27 Simon Marchi <simon.marchi@efficios.com>
6574
6575 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6576 object through m_this_cu->cu.
6577
d460f660
SM
65782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6579
6580 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6581 the info parameter.
6582 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6583
ab432490
SM
65842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6585
6586 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6587 per_objfile parameter.
6588 (load_full_type_unit): Add per_objfile parameter.
6589 (read_signatured_type): Likewise.
6590 (load_full_comp_unit): Likewise.
6591 (load_cu): Likewise.
6592 (dw2_do_instantiate_symtab): Likewise.
6593 (dw2_get_file_names): Likewise.
6594 (dw2_map_symtabs_matching_filename): Update.
6595 (dw_expand_symtabs_matching_file_matcher): Update.
6596 (dw2_map_symbol_filenames): Update.
6597 (process_psymtab_comp_unit): Add per_objfile parameter.
6598 (build_type_psymtabs_1): Update.
6599 (process_skeletonless_type_unit): Update.
6600 (dwarf2_build_psymtabs_hard): Update.
6601 (load_partial_comp_unit): Add per_objfile parameter.
6602 (scan_partial_symbols): Update.
6603 (load_full_comp_unit): Add per_objfile parameter.
6604 (process_imported_unit_die): Update.
6605 (create_cus_hash_table): Update.
6606 (find_partial_die): Update.
6607 (dwarf2_read_addr_index): Update.
6608 (follow_die_offset): Update.
6609 (dwarf2_fetch_die_loc_sect_off): Update.
6610 (dwarf2_fetch_constant_bytes): Update.
6611 (dwarf2_fetch_die_type_sect_off): Update.
6612 (follow_die_sig_1): Update.
6613 (load_full_type_unit): Add per_objfile parameter.
6614 (read_signatured_type): Likewise.
6615
313bad1b
SM
66162020-05-27 Simon Marchi <simon.marchi@efficios.com>
6617
6618 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6619 of objfile_name.
6620
c3699833
SM
66212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6622
6623 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6624 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6625 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6626 field.
6627 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6628 (create_cus_from_index): Update.
6629 (dwarf2_read_gdb_index): Update.
6630 (create_cus_from_debug_names): Update.
6631 (dwarf2_read_debug_names): Update.
6632 (get_abbrev_section_for_cu): Update.
6633 (create_all_comp_units): Update.
6634 (read_attribute_value): Update.
6635 (get_debug_line_section): Update.
6636 * dwarf2/index-cache.c (index_cache::store): Update.
6637 * dwarf2/index-write.c (save_gdb_index_command): Update.
6638 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6639
1859c670
SM
66402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6641
6642 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6643 member.
6644 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6645 dwarf2_per_cu_data::per_bfd.
6646 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6647 (create_type_unit_group): Likewise.
6648 (queue_comp_unit): Remove reference to
6649 per_cu->dwarf2_per_objfile.
6650 (maybe_queue_comp_unit): Likewise.
6651 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6652 (create_cus_hash_table): Assign new field.
6653
5e22e966
SM
66542020-05-27 Simon Marchi <simon.marchi@efficios.com>
6655
6656 * dwarf2/read.c: Replace
6657 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6658 dwarf2_cu->per_objfile throughout.
6659
97a1449a
SM
66602020-05-27 Simon Marchi <simon.marchi@efficios.com>
6661
6662 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6663 parameter, don't use per_cu->dwarf2_per_objfile.
6664 (dw2_instantiate_symtab): Likewise.
6665 (dw2_find_last_source_symtab): Update.
6666 (dw2_map_expand_apply): Update.
6667 (dw2_lookup_symbol): Update.
6668 (dw2_expand_symtabs_for_function): Update.
6669 (dw2_expand_all_symtabs): Update.
6670 (dw2_expand_symtabs_with_fullname): Update.
6671 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6672 don't use per_cu->dwarf2_per_objfile.
6673 (dw2_expand_marked_cus): Update.
6674 (dw2_find_pc_sect_compunit_symtab): Update.
6675 (dw2_debug_names_lookup_symbol): Update.
6676 (dw2_debug_names_expand_symtabs_for_function): Update.
6677 (dw2_debug_names_map_matching_symbols): Update.
6678 (dwarf2_psymtab::expand_psymtab): Update.
6679
9e021579
SM
66802020-05-27 Simon Marchi <simon.marchi@efficios.com>
6681
6682 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6683 <per_objfile>: New member.
6684 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6685 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6686 call to dwarf2_cu.
6687 (cutu_reader::cutu_reader): Update.
6688 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6689
ae090bdb
SM
66902020-05-27 Simon Marchi <simon.marchi@efficios.com>
6691
6692 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6693 struct dwarf2_per_objfile.
6694 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6695 dwarf2_per_bfd.
6696 * dwarf2/read.c (set_die_type): Update.
6697 (get_die_type_at_offset): Update.
6698
af758d11
SM
66992020-05-27 Tom Tromey <tom@tromey.com>
6700 Simon Marchi <simon.marchi@efficios.com>
6701
6702 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6703 method.
6704 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6705 get_symtab, set_symtab>: New methods.
6706 <m_symtabs>: New field.
6707 (struct dwarf2_psymtab): Derive from partial_symtab.
6708 <readin_p, get_compunit_symtab>: Declare methods.
6709 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6710 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6711 New methods.
6712 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6713 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6714 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6715 (dw2_symtab_iter_next, dw2_print_stats)
6716 (dw2_expand_symtabs_with_fullname)
6717 (dw2_expand_symtabs_matching_one)
6718 (dw_expand_symtabs_matching_file_matcher)
6719 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6720 (dw2_debug_names_iterator::next)
6721 (dw2_debug_names_map_matching_symbols)
6722 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6723 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6724 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6725 New methods.
6726 (get_compunit_symtab, process_full_comp_unit)
6727 (process_full_type_unit): Update.
6728 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6729
5989a64e
SM
67302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6731
6732 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6733 then introduce a new dwarf2_per_objfile type.
6734 <read_line_string>: Move to the new dwarf2_per_objfile type.
6735 <objfile>: Likewise.
6736 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6737 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6738 dwarf2_per_objfile->per_bfd.
6739 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6740 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6741 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6742 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6743 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6744 (dwarf2_per_objfile::locate_sections): Rename to...
6745 (dwarf2_per_bfd::locate_sections): ... this.
6746 (dwarf2_per_objfile::get_cutu): Rename to...
6747 (dwarf2_per_bfd::get_cutu): ... this.
6748 (dwarf2_per_objfile::get_cu): Rename to...
6749 (dwarf2_per_bfd::get_cu): ... this.
6750 (dwarf2_per_objfile::get_tu): Rename to...
6751 (dwarf2_per_bfd::get_tu): ... this.
6752 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6753 (dwarf2_per_bfd::allocate_per_cu): ... this.
6754 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6755 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6756 (get_gdb_index_contents_ftype): Change parameter from
6757 dwarf2_per_objfile to dwarf2_per_bfd.
6758 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6759 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6760
a50264ba
TT
67612020-05-27 Tom Tromey <tom@tromey.com>
6762 Simon Marchi <simon.marchi@efficios.com>
6763
6764 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6765 (allocate_piece_closure): Set "per_objfile" member.
6766 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6767 (locexpr_describe_location, loclist_describe_location): Use new
6768 member.
6769 * dwarf2/read.c (read_call_site_scope)
6770 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6771 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6772 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6773 handle_data_member_location): Set per_objfile member.
6774 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6775 member.
6776 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6777
d3473f0c
TT
67782020-05-27 Tom Tromey <tom@tromey.com>
6779
6780 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6781 allocate_signatured_type>: Declare new methods.
6782 <m_num_psymtabs>: New member.
6783 (struct dwarf2_per_cu_data) <index>: New member.
6784 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6785 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6786 (create_cu_from_index_list): Use allocate_per_cu.
6787 (create_signatured_type_table_from_index)
6788 (create_signatured_type_table_from_debug_names)
6789 (create_debug_type_hash_table, add_type_unit)
6790 (read_comp_units_from_section): Use allocate_signatured_type.
6791
5717c425
TT
67922020-05-27 Tom Tromey <tom@tromey.com>
6793
6794 * psymtab.c (partial_map_expand_apply)
6795 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6796 (psym_lookup_global_symbol_language)
6797 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6798 (psym_print_stats, psym_expand_symtabs_for_function)
6799 (psym_map_symbol_filenames, psym_map_matching_symbols)
6800 (psym_expand_symtabs_matching)
6801 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6802 (maintenance_check_psymtabs): Update.
6803 * psympriv.h (struct partial_symtab) <readin_p,
6804 get_compunit_symtab>: Add objfile parameter.
6805 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6806 Likewise.
6807 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6808 get_compunit_symtab>: Likewise.
6809 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6810
45940949
TT
68112020-05-27 Tom Tromey <tom@tromey.com>
6812
6813 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6814 member.
6815 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6816 (create_cu_from_index_list)
6817 (create_signatured_type_table_from_index)
6818 (create_signatured_type_table_from_debug_names)
6819 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6820 (dwarf2_create_include_psymtab)
6821 (create_debug_type_hash_table, add_type_unit)
6822 (create_type_unit_group, read_comp_units_from_section)
6823 (dwarf2_compute_name, create_cus_hash_table)
6824 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6825 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6826 obstack.
6827 (dw2_get_real_path): Likewise. Change argument to
6828 dwarf2_per_objfile.
6829
f8c6d152
LM
68302020-05-27 Luis Machado <luis.machado@linaro.org>
6831
6832 PR tdep/26000
6833 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6834 for ldrd (immediate).
6835
e98d2e6d
PW
68362020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6837
6838 * command.h: Add comment giving the name of class_tui.
6839 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6840 create the fake command for the help for class_tui.
6841
53a47a3e
TT
68422020-05-26 Tom Tromey <tromey@adacore.com>
6843
6844 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6845 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6846 (val_atr): New function.
6847 (value_val_atr): Use it.
6848 * ada-valprint.c (print_optional_low_bound): Change low bound
6849 handling for enums.
6850 (val_print_packed_array_elements): Don't call discrete_position.
6851 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6852 discrete_position for enum types.
6853 * language.c (default_print_array_index): Change type.
6854 * language.h (struct language_defn) <la_print_array_index>: Add
6855 index_type parameter, change type of index_value.
6856 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6857 (default_print_array_index): Update.
6858 * valprint.c (maybe_print_array_index): Don't call
6859 value_from_longest. Update.
6860 (value_print_array_elements): Don't call discrete_position.
6861
0bc2354b
TT
68622020-05-26 Tom Tromey <tromey@adacore.com>
6863
6864 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6865 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6866
1218a4bf
CDA
68672020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6868
6869 PR gdb/13519
6870 * avr-tdep.c (avr_integer_to_address): Return data or code
6871 address accordingly to the second 'type' argument of the
6872 function.
6873
92651b1d
MW
68742020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6875
6876 * infcmd.c, inferior.h: (construct_inferior_arguments):
6877 Moved function from here to gdbsupport/common-inferior.{h,cc}
6878
0a4f5f8c
TT
68792020-05-23 Tom Tromey <tom@tromey.com>
6880
6881 Revert commit eca1f90c:
6882 * NEWS: Remove entry for completion styling.
6883 * completer.c (_rl_completion_prefix_display_length): Move
6884 declaration later.
6885 (gdb_fnprint): Revert.
6886 (gdb_display_match_list_1): Likewise.
6887 * cli/cli-style.c (completion_prefix_style)
6888 (completion_difference_style, completion_suffix_style): Remove.
6889 (_initialize_cli_style): Revert.
6890 * cli/cli-style.h (completion_prefix_style)
6891 (completion_difference_style, completion_suffix_style): Don't
6892 declare.
6893
e08bd6c5
PA
68942020-05-24 Pedro Alves <palves@redhat.com>
6895
6896 * symtab.c (completion_list_add_name): Return boolean indication
6897 of whether the symbol matched.
6898 (completion_list_add_symbol): Don't try to remove C++ aliases if
6899 the symbol didn't match in the first place.
6900 * symtab.h (completion_list_add_name): Return bool.
6901
ceacbf6e
SM
69022020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6903
6904 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6905 type::field.
6906
26f16254
JB
69072020-05-23 Joel Brobecker <brobecker@adacore.com>
6908
6909 GDB 9.2 released.
6910
eca1f90c
TT
69112020-05-23 Tom Tromey <tom@tromey.com>
6912
6913 * NEWS: Add entry for completion styling.
6914 * completer.c (_rl_completion_prefix_display_length): Move
6915 declaration earlier.
6916 (gdb_fnprint): Use completion_style.
6917 (gdb_display_match_list_1): Likewise.
6918 * cli/cli-style.c (completion_prefix_style)
6919 (completion_difference_style, completion_suffix_style): New
6920 globals.
6921 (_initialize_cli_style): Register new globals.
6922 * cli/cli-style.h (completion_prefix_style)
6923 (completion_difference_style, completion_suffix_style): Declare.
6924
51e2cfa2
PA
69252020-05-23 Pedro Alves <palves@redhat.com>
6926
6927 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6928 (parse_escape): Use ISDIGIT instead of isdigit.
6929 (puts_debug): Use gdb_isprint instead of isprint.
6930 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6931 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6932 ISSPACE instead of isspace.
6933 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6934 instead of isspace.
6935 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6936 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6937 instead of isxdigit and ISDIGIT instead of isdigit.
6938
80fc5e77
SM
69392020-05-22 Simon Marchi <simon.marchi@efficios.com>
6940
6941 * gdbtypes.h (struct type) <field>: New method.
6942 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6943 or type::field.
6944
3cabb6b0
SM
69452020-05-22 Simon Marchi <simon.marchi@efficios.com>
6946
6947 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6948 (TYPE_FIELDS): Use type::fields. Change all call sites that
6949 modify the propery to use type::set_fields instead.
6950
1f704f76
SM
69512020-05-22 Simon Marchi <simon.marchi@efficios.com>
6952
6953 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6954 type::num_fields instead.
6955
5e33d5f4
SM
69562020-05-22 Simon Marchi <simon.marchi@efficios.com>
6957
6958 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6959 methods.
6960 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6961 that modify the number of fields to use type::set_num_fields
6962 instead.
6963
9392ebb3
TT
69642020-05-22 Tom Tromey <tromey@adacore.com>
6965
6966 * compile/compile-object-load.h (munmap_list_free): Don't
6967 declare.
6968
7c13f4e8
AB
69692020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6970
6971 * annotate.c (annotate_source_line): Update return type, add call
6972 to update current symtab and line.
6973 * annotate.h (annotate_source_line): Update return type, and
6974 extend header comment.
6975 * source.c (info_line_command): Check annotation_level before
6976 calling annotate_source_line.
6977 * stack.c (print_frame_info): If calling annotate_source_line
6978 returns true, then don't print any other source line information.
6979
aa370940
SM
69802020-05-21 Simon Marchi <simon.marchi@efficios.com>
6981
6982 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6983
84d53fa9
SM
69842020-05-21 Simon Marchi <simon.marchi@efficios.com>
6985
6986 * coffread.c (patch_type): Remove NULL check before xfree.
6987 * corefile.c (set_gnutarget): Likewise.
6988 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6989 * exec.c (build_section_table): Likewise.
6990 * remote.c (remote_target::pass_signals): Likewise.
6991 * utils.c (n_spaces): Likewise.
6992 * cli/cli-script.c (document_command): Likewise.
6993 * i386-windows-tdep.c (core_process_module_section): Likewise.
6994 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6995
9d428aae
SM
69962020-05-20 Simon Marchi <simon.marchi@efficios.com>
6997
6998 * symfile.c (reread_symbols): Clear objfile's section_offsets
6999 vector and section indices, re-compute them by calling
7000 sym_offsets.
7001
250106a7
TT
70022020-05-20 Tom Tromey <tromey@adacore.com>
7003
7004 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7005 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7006
9a0bacfb
TV
70072020-05-20 Tom de Vries <tdevries@suse.de>
7008
7009 PR symtab/25833
7010 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7011
7b958a48
AM
70122020-05-20 Alan Modra <amodra@gmail.com>
7013
7014 PR 25993
7015 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7016 bfd_set_filename.
7017 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7018 passed to bfd_set_filename.
7019 * symfile-mem.c (add_vsyscall_page): Likewise for string
7020 passed to symbol_file_add_from_memory.
7021 (symbol_file_add_from_memory): Make name param a const char* and
7022 don't strdup.
7023
c7e97679
AM
70242020-05-20 Alan Modra <amodra@gmail.com>
7025
7026 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7027 rather than accessing bfd->filename directly.
7028 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7029 and use bfd_section_name.
7030 * dwarf2/frame.c (decode_frame_entry): Likewise.
7031 * exec.c (exec_set_section_address): Likewise.
7032 * solib-aix.c (solib_aix_bfd_open): Likewise.
7033 * stap-probe.c (get_stap_base_address): Likewise.
7034 * symfile.c (reread_symbols): Likewise.
7035
563c591b
TT
70362020-05-19 Tom Tromey <tromey@adacore.com>
7037
7038 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7039
f408d82c
SM
70402020-05-19 Simon Marchi <simon.marchi@efficios.com>
7041
7042 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7043
98c59b52
PA
70442020-05-19 Pedro Alves <palves@redhat.com>
7045
7046 * NEWS (set exec-file-mismatch): Adjust entry.
7047 * exec.c: Include "build-id.h".
7048 (validate_exec_file): Try to match build IDs instead of filenames.
7049 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7050 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7051 and pass down 'warn_if_slow'.
7052 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7053 gdb_bfd_open_closure to pass it down.
7054 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7055
4111f652
PA
70562020-05-19 Pedro Alves <palves@redhat.com>
7057
7058 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7059 * target.c (target_fileio_open_1): Rename to target_fileio_open
7060 and make extern. Use bool.
7061 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7062 (target_fileio_read_alloc_1): Adjust.
7063 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7064 (target_fileio_open_warn_if_slow): Delete declaration.
7065
ad80db5b
PA
70662020-05-19 Pedro Alves <palves@redhat.com>
7067
7068 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7069 Adjust all callers.
7070
1d6ce4d3
YS
70712020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7072
7073 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7074 whether disp is negative.
7075
9005fbbb
SM
70762020-05-19 Simon Marchi <simon.marchi@efficios.com>
7077
7078 * symfile.h (struct symfile_segment_data)
7079 <~symfile_segment_data>: Remove.
7080 <segment_info>: Change to std::vector.
7081 * symfile.c (default_symfile_segments): Update.
7082 * elfread.c (elf_symfile_segments): Update.
7083
68b888ff
SM
70842020-05-19 Simon Marchi <simon.marchi@efficios.com>
7085
7086 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7087 <segments>: New.
7088 <segment_bases, segment_sizes>: Remove.
7089 * symfile.c (default_symfile_segments): Update.
7090 * elfread.c (elf_symfile_segments): Update.
7091 * remote.c (remote_target::get_offsets): Update.
7092 * solib-target.c (solib_target_relocate_section_addresses):
7093 Update.
7094
62982abd
SM
70952020-05-19 Simon Marchi <simon.marchi@efficios.com>
7096
7097 * symfile.h (struct symfile_segment_data): Initialize fields.
7098 <~symfile_segment_data>: Add.
7099 (symfile_segment_data_up): New.
7100 (struct sym_fns) <sym_segments>: Return a
7101 symfile_segment_data_up.
7102 (default_symfile_segments): Return a symfile_segment_data_up.
7103 (free_symfile_segment_data): Remove.
7104 (get_symfile_segment_data): Return a symfile_segment_data_up.
7105 * symfile.c (default_symfile_segments): Likewise.
7106 (get_symfile_segment_data): Likewise.
7107 (free_symfile_segment_data): Remove.
7108 (symfile_find_segment_sections): Update.
7109 * elfread.c (elf_symfile_segments): Return a
7110 symfile_segment_data_up.
7111 * remote.c (remote_target::get_offsets): Update.
7112 * solib-target.c (solib_target_relocate_section_addresses):
7113 Update.
7114 * symfile-debug.c (debug_sym_segments): Return a
7115 symfile_segment_data_up.
7116
7f204339
RO
71172020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7118
e52a0f1b
RO
7119 PR build/25981
7120 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7121 Hardcode register numbers.
7122
7f204339
RO
7123 PR build/25981
7124 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7125 procfs_find_LDT_entry): Remove.
7126 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7127 procfs_find_LDT_entry): Remove.
7128 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7129 Remove.
7130
7f32a4d5
PA
71312020-05-17 Pedro Alves <palves@redhat.com>
7132 Andrew Burgess <andrew.burgess@embecosm.com>
7133 Keno Fischer <keno@juliacomputing.com>
7134
7135 PR gdb/25741
7136 * breakpoint.c (build_target_condition_list): Update comments.
7137 (build_target_command_list): Update comments and skip matching
7138 locations.
7139 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7140 a separate function. Simplify "set breakpoint auto-hw off"
7141 handling.
7142 (insert_breakpoints): Update comment.
7143 (tracepoint_locations_match): New parameter. For breakpoints,
7144 compare location types too, if the caller wants to.
7145 (handle_automatic_hardware_breakpoints): New functions.
7146 (bp_location_is_less_than): Also sort by location type and
7147 hardware breakpoint length.
7148 (update_global_location_list): Handle "set breakpoint auto-hw on"
7149 here.
7150 (update_breakpoint_locations): Ask breakpoint_locations_match to
7151 ignore location types.
7152
7d93a1e0
SM
71532020-05-16 Simon Marchi <simon.marchi@efficios.com>
7154
7155 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7156 type::name instead.
7157
d0e39ea2
SM
71582020-05-16 Simon Marchi <simon.marchi@efficios.com>
7159
7160 * gdbtypes.h (struct type) <name, set_name>: New methods.
7161 (TYPE_CODE): Use type::name. Change all call sites used to set
7162 the name to use type::set_name instead.
7163
2dab0c7b
TT
71642020-05-16 Tom Tromey <tom@tromey.com>
7165
7166 * top.c (quit_force): Update.
7167 * infrun.c (handle_no_resumed): Update.
7168 * top.h (all_uis): New function.
7169 (ALL_UIS): Remove.
7170
59f7bd8d
SM
71712020-05-16 Simon Marchi <simon.marchi@efficios.com>
7172
7173 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7174
9bf058f0
PA
71752020-05-16 Pedro Alves <palves@redhat.com>
7176
7177 * ia64-linux-nat.c
7178 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7179 Declare method.
7180 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7181
8f86ae1a
SM
71822020-05-15 Simon Marchi <simon.marchi@efficios.com>
7183
7184 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7185 (sparc64_adi_info): Likewise.
7186
d6bc0792
TT
71872020-05-15 Tom Tromey <tom@tromey.com>
7188
7189 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7190 block_objfile.
7191 (lookup_objfile_from_block): Remove.
7192 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7193 (lookup_global_symbol): Use block_objfile.
7194 * symtab.h (lookup_objfile_from_block): Don't declare.
7195 * printcmd.c (clear_dangling_display_expressions): Use
7196 block_objfile.
7197 * parse.c (operator_check_standard): Use block_objfile.
7198
8c14c3a3
TT
71992020-05-15 Tom Tromey <tom@tromey.com>
7200
7201 * language.c (language_alloc_type_symbol): Set
7202 SYMBOL_SECTION.
7203 * symtab.c (initialize_objfile_symbol): Remove.
7204 (allocate_symbol): Remove.
7205 (allocate_template_symbol): Remove.
7206 * dwarf2/read.c (fixup_go_packaging): Use "new".
7207 (new_symbol): Use "new".
7208 (read_variable): Don't call initialize_objfile_symbol. Use
7209 "new".
7210 (read_func_scope): Use "new".
7211 * xcoffread.c (process_xcoff_symbol): Don't call
7212 initialize_objfile_symbol.
7213 (SYMBOL_DUP): Remove.
7214 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7215 "new".
7216 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7217 (allocate_template_symbol): Don't declare.
7218 (struct symbol): Add copy constructor. Change defaults.
7219 * jit.c (finalize_symtab): Use "new".
7220 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7221 Use "new".
7222 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7223 (common_block_end): Use "new".
7224 * mdebugread.c (parse_symbol): Use "new".
7225 (new_symbol): Likewise.
7226
5b4a1a8d
PW
72272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7228
7229 * NEWS: Mention changes to help and apropos.
7230
57b4f16e
PW
72312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7232
7233 * command.h (enum command_class): Improve comments, document
7234 that class_alias is for user-defined aliases, give the class
7235 name for each class, remove unused class_xdb.
7236 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7237 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7238 by a precise class.
7239 * infcmd.c (_initialize_infcmd): Likewise.
7240 * reverse.c (_initialize_reverse): Likewise.
7241 * stack.c (_initialize_stack): Likewise.
7242 * symfile.c (_initialize_symfile): Likewise.
7243 * tracepoint.c (_initialize_tracepoint): Likewise.
7244
7c05caf7
PW
72452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7246
7247 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7248 when their aliased command is traversed.
7249 (help_cmd): Add fput_command_names_styled call to
7250 output command name and aliases when command has an alias.
7251
3b3aaacb
PW
72522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7253
7254 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7255 * cli/cli-decode.c (help_cmd_list): Declare as static,
7256 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7257 a command together with the command.
7258 (fput_command_name_styled, fput_command_names_styled): New functions.
7259 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7260 fput_command_name_styled.
7261 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7262 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7263
7aa1b46f
PW
72642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7265
7266 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7267 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7268 * command.h (cmd_show_list): Likewise.
7269 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7270 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7271
89bcba74
PW
72722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7273
7274 * unittests/command-def-selftests.c (traverse_command_structure):
7275 Verify all commands of a list have the same prefix command and
7276 that only the top cmdlist commands have a null prefix.
7277
3f4d92eb
PW
72782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7279
7280 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7281 as prefix, not one of its aliases.
7282 (set_cmd_prefix): Remove.
7283 (do_add_cmd): Centralize the setting of the prefix of a command, when
7284 command is defined after its full chain of prefix commands.
7285 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7286 (add_setshow_cmd_full): Likewise.
7287 (update_prefix_field_of_prefixed_commands): New function.
7288 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7289 update_prefix_field_of_prefixed_commands.
7290 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7291 addresses of remote_set_cmdlist and remote_show_cmdlist given
7292 as argument, not the address of an argument.
7293 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7294 * gdb/remote.c (_initialize_remote): Likewise.
7295
0605465f
PW
72962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7297
7298 * cli/cli-cmds.c (alias_command): Check for an existing alias
7299 using lookup_cmd_composition, as valid_command_p is too strict
7300 and forbids aliases that are the prefix of an existing alias
7301 or command.
7302 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7303 command is properly recognised as a valid command.
7304
58e6ac70
PW
73052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7306
7307 * unittests/help-doc-selftests.c: Rename to
7308 unittests/command-def-selftests.c
7309 * unittests/command-def-selftests.c (help_doc_tests): Update some
7310 comments.
7311 (command_structure_tests, traverse_command_structure): New namespace
7312 and function.
7313 (command_structure_invariants_tests): New function.
7314 (_initialize_command_def_selftests) Renamed from
7315 _initialize_help_doc_selftests, register command_structure_invariants
7316 selftest.
7317
a7b9ceb8
PW
73182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7319
7320 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7321 an alias of 'show'.
7322
b2188a06
JB
73232020-05-15 Joel Brobecker <brobecker@adacore.com>
7324
7325 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7326 ada_is_fixed_point_type. Update all callers.
7327 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7328 all callers.
7329 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7330 Update all callers.
7331 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7332 print_fixed_point_type. Update all callers.
7333 * ada-valprint.c (ada_value_print_num): Replace call to
7334 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7335
a51951c2
KB
73362020-05-14 Kevin Buettner <kevinb@redhat.com>
7337
7338 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7339 processors.
7340 (cpu_supports_bts): Add CV_AMD case.
7341
29d6859f
LM
73422020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7343 Simon Marchi <simon.marchi@efficios.com>
7344
7345 * infrun.c (stop_all_threads): Collect multiple wait events at
7346 each pass.
7347
78134374
SM
73482020-05-14 Simon Marchi <simon.marchi@efficios.com>
7349
7350 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7351 type::code instead.
7352
67607e24
SM
73532020-05-14 Simon Marchi <simon.marchi@efficios.com>
7354
7355 * gdbtypes.h (struct type) <code, set_code>: New methods.
7356 (TYPE_CODE): Use type::code. Change all call sites used to set
7357 the code to use type::set_code instead.
7358
a05575d3
TBA
73592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7360 Tom de Vries <tdevries@suse.de>
7361 Pedro Alves <palves@redhat.com>
7362
7363 PR threads/25478
7364 * infrun.c (stop_all_threads): Do NOT ignore
7365 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7366 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7367 received.
7368 (handle_no_resumed): Remove code handling a live inferior with no
7369 threads.
7370 * remote.c (has_single_non_exited_thread): New.
7371 (remote_target::update_thread_list): Do not delete a thread if is
7372 the last thread of the process.
7373 * thread.c (thread_select): Call delete_exited_threads instead of
7374 prune_threads.
7375
6ad82919
TBA
73762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7377
7378 * infrun.c (stop_all_threads): Enable/disable thread events of all
7379 targets. Move a debug message denoting the end of the function
7380 into the SCOPED_EXIT block.
7381
d890404b
TBA
73822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7383
7384 * process-stratum-target.h: Include <set>.
7385 (all_non_exited_process_targets, switch_to_target_no_thread): New
7386 function declarations.
7387 * process-stratum-target.c (all_non_exited_process_targets)
7388 (switch_to_target_no_thread): New function implementations.
7389
293b3ebc
TBA
73902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7391
7392 * infrun.c (handle_inferior_event): Extract out a piece of code
7393 into...
7394 (mark_non_executing_threads): ...this new function.
7395
7ca9b62a
TBA
73962020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7397
7398 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7399 use.
7400
fc75c28b
TBA
74012020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7402
7403 * regcache.c (regcache_read_pc_protected): New function
7404 implementation that returns 0 if the PC cannot read via
7405 'regcache_read_pc'.
7406 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7407 instead of 'regcache_read_pc'.
7408 (keep_going_pass_signal): Ditto.
7409
a89febbd
TT
74102020-05-13 Tom Tromey <tromey@adacore.com>
7411
7412 * ada-lang.c (align_value): Remove.
7413 (ada_template_to_fixed_record_type_1): Use align_up.
7414
f7e23710
TBA
74152020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7416
7417 * async-event.c: Update the copyright year.
7418 * async-event.h: Update the copyright year.
7419
02ff80c2
SM
74202020-05-12 Simon Marchi <simon.marchi@efficios.com>
7421
7422 * objfiles.h (is_addr_in_objfile,
7423 shared_objfile_contains_address_p): Return bool.
7424 * objfile.c (is_addr_in_objfile,
7425 shared_objfile_contains_address_p): Return bool.
7426
4fd6c7e8
TT
74272020-05-11 Tom Tromey <tromey@adacore.com>
7428
7429 * cli/cli-cmds.c (info_command): Restore.
7430 (_initialize_cli_cmds): Use add_prefix_command for "info".
7431 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7432
5eb68a39
TT
74332020-05-11 Tom Tromey <tromey@adacore.com>
7434
7435 * ada-lang.c (ada_value_primitive_field): Now public.
7436 * ada-lang.h (ada_value_primitive_field): Declare.
7437 * ada-valprint.c (print_field_values): Use
7438 ada_value_primitive_field for wrapper fields.
7439
7666722f
TV
74402020-05-11 Tom de Vries <tdevries@suse.de>
7441
7442 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7443 MODULE_DOMAIN.
7444
3ee6bb11
TV
74452020-05-11 Tom de Vries <tdevries@suse.de>
7446
7447 PR symtab/25941
7448 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7449 with length 0, if not gdb-produced.
7450 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7451
43434996
TV
74522020-05-09 Tom de Vries <tdevries@suse.de>
7453
7454 PR gdb/25955
7455 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7456 calculation.
7457
2f78cffc
TT
74582020-05-09 Tom Tromey <tom@tromey.com>
7459
7460 * top.c (server_command): Now bool.
7461 * top.h (server_command): Now bool.
7462
4f7bc5ed
TT
74632020-05-08 Tom Tromey <tromey@adacore.com>
7464
7465 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7466 already being processed.
7467
8be4b118
TT
74682020-05-08 Tom Tromey <tom@tromey.com>
7469
7470 * printcmd.c (struct display) <next>: Remove.
7471 <display>: New constructor.
7472 <exp_string>: Now a std::string.
7473 <enabled_p>: Now a bool.
7474 (display_number): Move definition earlier.
7475 (displays): Rename from display_chain. Now a std::vector.
7476 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7477 (display_command): Update.
7478 (do_one_display, disable_display)
7479 (enable_disable_display_command, do_enable_disable_display):
7480 Update.
7481 (free_display): Remove.
7482 (clear_displays): Rewrite.
7483 (delete_display): Update.
7484 (map_display_numbers): Use function_view. Remove "data"
7485 parameter. Update.
7486 (do_delete_display): Remove.
7487 (undisplay_command): Update.
7488 (do_one_display, do_displays, disable_display)
7489 (info_display_command): Update.
7490 (do_enable_disable_display): Remove.
7491 (enable_disable_display_command)
7492 (clear_dangling_display_expressions): Update.
7493
94c93c35
TT
74942020-05-08 Tom Tromey <tom@tromey.com>
7495
7496 * symtab.c (set_symbol_cache_size)
7497 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7498 (maintenance_print_symbol_cache_statistics): Update.
7499 * symmisc.c (print_symbol_bcache_statistics)
7500 (print_objfile_statistics, maintenance_print_objfiles)
7501 (maintenance_info_symtabs, maintenance_check_symtabs)
7502 (maintenance_expand_symtabs, maintenance_info_line_tables):
7503 Update.
7504 * symfile-debug.c (set_debug_symfile): Update.
7505 * source.c (forget_cached_source_info): Update.
7506 * python/python.c (gdbpy_progspaces): Update.
7507 * psymtab.c (maintenance_info_psymtabs): Update.
7508 * probe.c (parse_probes): Update.
7509 * linespec.c (iterate_over_all_matching_symtabs)
7510 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7511 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7512 * exec.c (exec_target::close): Update.
7513 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7514 * breakpoint.c (print_one_breakpoint_location)
7515 (create_longjmp_master_breakpoint)
7516 (create_std_terminate_master_breakpoint): Update.
7517 * progspace.c (program_spaces): Now a std::vector.
7518 (maybe_new_address_space): Update.
7519 (add_program_space): Remove.
7520 (program_space::program_space): Update.
7521 (remove_program_space): Update.
7522 (number_of_program_spaces): Remove.
7523 (print_program_space, update_address_spaces): Update.
7524 * progspace.h (program_spaces): Change type.
7525 (ALL_PSPACES): Remove.
7526 (number_of_program_spaces): Don't declare.
7527 (struct program_space) <next>: Remove.
7528
a1fd1ac9
TT
75292020-05-08 Tom Tromey <tom@tromey.com>
7530
7531 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7532 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7533 (enable_break): Update.
7534 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7535 (frv_fdpic_find_canonical_descriptor): Update.
7536 (frv_fetch_objfile_link_map): Update.
7537 * progspace.c (program_space::free_all_objfiles): Update.
7538 (program_space::solibs): New method.
7539 * progspace.h (struct program_space) <solibs>: New method.
7540 * solist.h (master_so_list): Don't declare.
7541 (ALL_SO_LIBS): Remove.
7542 * solib.h (so_list_head): Remove.
7543 (update_solib_list): Update comment.
7544 * solib.c (master_so_list): Remove.
7545 (solib_used, update_solib_list, solib_add)
7546 (info_sharedlibrary_command, clear_solib)
7547 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7548
38eae084
TT
75492020-05-08 Tom Tromey <tom@tromey.com>
7550
7551 * extension.c (extension_languages): Now a std::array.
7552 (ALL_EXTENSION_LANGUAGES): Remove.
7553 (get_ext_lang_defn, get_ext_lang_of_file)
7554 (eval_ext_lang_from_control_command): Update.
7555 (finish_ext_lang_initialization)
7556 (auto_load_ext_lang_scripts_for_objfile)
7557 (ext_lang_type_printers::ext_lang_type_printers)
7558 (apply_ext_lang_type_printers)
7559 (ext_lang_type_printers::~ext_lang_type_printers)
7560 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7561 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7562 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7563 (get_matching_xmethod_workers, ext_lang_colorize)
7564 (ext_lang_before_prompt): Update.
7565 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7566
596dc4ad
TT
75672020-05-08 Tom Tromey <tom@tromey.com>
7568
7569 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7570 overload.
7571 <swap_string, m_string>: Remove.
7572 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7573 Update.
7574 * stabsread.c (define_symbol, read_type): Update.
7575 * linespec.c (find_linespec_symbols): Update.
7576 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7577 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7578 * dbxread.c (read_dbx_symtab): Update.
7579 * cp-support.h (cp_canonicalize_string_full)
7580 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7581 Return unique_xmalloc_ptr.
7582 * cp-support.c (inspect_type): Update.
7583 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7584 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7585 Likewise.
7586 * c-typeprint.c (print_name_maybe_canonical): Update.
7587 * break-catch-throw.c (check_status_exception_catchpoint):
7588 Update.
7589
bf4cb9be
TV
75902020-05-08 Tom de Vries <tdevries@suse.de>
7591
7592 * infrun.c (follow_fork): Copy current_line and current_symtab to
7593 child thread.
7594
a1b68f28
SM
75952020-05-07 Simon Marchi <simon.marchi@efficios.com>
7596
7597 * async-event.c (struct async_signal_handler, struct
7598 async_event_handler): Reformat, remove typedef.
7599
98d48915
SM
76002020-05-07 Simon Marchi <simon.marchi@efficios.com>
7601
7602 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7603 access thistype->main_type->dyn_prop_list directly.
7604
7aa91313
SM
76052020-05-07 Simon Marchi <simon.marchi@efficios.com>
7606
7607 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7608 (remove_dyn_prop): Remove. Update all users to use
7609 type::remove_dyn_prop.
7610 * gdbtypes.c (remove_dyn_prop): Rename to...
7611 (type::remove_dyn_prop): ... this.
7612
5c54719c
SM
76132020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7614
7615 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7616 (add_dyn_prop): Remove. Update all users to use
7617 type::add_dyn_prop.
7618 * gdbtypes.c (add_dyn_prop): Rename to...
7619 (type::add_dyn_prop): ... this.
7620
24e99c6c
SM
76212020-05-07 Simon Marchi <simon.marchi@efficios.com>
7622
7623 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7624 (get_dyn_prop): Remove. Update all users to use
7625 type::dyn_prop.
7626 * gdbtypes.c (get_dyn_prop): Rename to...
7627 (type::dyn_prop): ... this.
7628
0d4bf016
SM
76292020-05-06 Simon Marchi <simon.marchi@efficios.com>
7630
7631 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7632
ac4a4f1c
SM
76332020-05-06 Simon Marchi <simon.marchi@efficios.com>
7634
7635 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7636 instruction, skip it if it's there.
7637
a3bbacc1
SM
76382020-05-05 Simon Marchi <simon.marchi@efficios.com>
7639
7640 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7641
c3236f84
SM
76422020-05-04 Simon Marchi <simon.marchi@efficios.com>
7643
7644 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7645 * gdbtypes.c (recursive_dump_type): Remove use of
7646 TYPE_INCOMPLETE.
7647
3b6acaee
TT
76482020-05-03 Tom Tromey <tom@tromey.com>
7649
7650 * breakpoint.c (catch_command, tcatch_command): Remove.
7651 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7652 add_show_prefix_cmd.
7653 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7654 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7655 Remove.
7656 (add_internal_problem_command): Use add_basic_prefix_cmd,
7657 add_show_prefix_cmd.
7658 * mips-tdep.c (set_mipsfpu_command): Remove.
7659 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7660 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7661 (_initialize_index_cache): Use add_basic_prefix_cmd.
7662 * memattr.c (dummy_cmd): Remove.
7663 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7664 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7665 (_initialize_tui_win): Use add_basic_prefix_cmd,
7666 add_show_prefix_cmd.
7667 * cli/cli-logging.c (set_logging_command): Remove.
7668 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7669 add_show_prefix_cmd.
7670 (show_logging_command): Remove.
7671 * target.c (target_command): Remove.
7672 (add_target): Use add_basic_prefix_cmd.
7673
a51119cd
HD
76742020-05-02 Hannes Domani <ssbssa@yahoo.de>
7675
7676 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7677
652fc23a 76782020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7679
652fc23a
PW
7680 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7681 info_command.
7682
117539e6
KR
76832020-04-30 Kamil Rytarowski <n54@gmx.com>
7684
7685 * nbsd-nat.c (nbsd_enable_proc_events)
7686 (nbsd_nat_target::post_startup_inferior): Add.
7687 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7688 (nbsd_nat_target::update_thread_list): Rewrite.
7689 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7690 "PTRACE_LWP_CREATE".
7691 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7692
102e38eb 76932020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7694
102e38eb
PW
7695 * stack.c (_initialize_stack): Remove duplicated creation
7696 of "frame" command and "f" alias.
7697
ee9d1e5f
HD
76982020-04-30 Hannes Domani <ssbssa@yahoo.de>
7699
7700 PR gdb/18706
7701 * gdbtypes.c (check_typedef): Calculate size of array of
7702 stubbed type.
7703
627c7fb8
HD
77042020-04-30 Hannes Domani <ssbssa@yahoo.de>
7705
7706 PR gdb/15559
7707 * i386-tdep.c (i386_push_dummy_call): Call
7708 i386_thiscall_push_dummy_call.
7709 (i386_thiscall_push_dummy_call): New function.
7710 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7711 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7712 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7713
ffc2844e
SM
77142020-04-29 Simon Marchi <simon.marchi@efficios.com>
7715
7716 * gdbarch.sh (do_read): Add shellcheck disable directive for
7717 warning SC2162.
7718
1207375d
SM
77192020-04-29 Simon Marchi <simon.marchi@efficios.com>
7720
7721 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7722 "referenced but not assigned" warning.
7723
9fdb2916
SM
77242020-04-29 Simon Marchi <simon.marchi@efficios.com>
7725
7726 * gdbarch.sh: Remove code that sets fallbackdefault.
7727
759cea5e
SM
77282020-04-29 Simon Marchi <simon.marchi@efficios.com>
7729
7730 * gdbarch.sh: Use shell operators && and || instead of
7731 -a and -o.
7732
cb02ab24
SM
77332020-04-29 Simon Marchi <simon.marchi@efficios.com>
7734
7735 * gdbarch.sh: Use $(...) instead of `...`.
7736
a6fc5ffc
SM
77372020-04-29 Simon Marchi <simon.marchi@efficios.com>
7738
7739 * gdbarch.sh: Use double quotes around variables.
7740
8d113d13
SM
77412020-04-29 Simon Marchi <simon.marchi@efficios.com>
7742
7743 * gdbarch.sh: Use %s with printf, instead of variables in the
7744 format string.
7745
ed6acedd
TT
77462020-04-29 Tom Tromey <tromey@adacore.com>
7747
7748 PR ada/25875:
7749 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7750 type fields here.
7751 (read_enumeration_type): Call
7752 update_enumeration_type_from_children later. Update comments.
7753 (process_enumeration_scope): Don't create type fields.
7754
b68b1b58
KR
77552020-04-29 Kamil Rytarowski <n54@gmx.com>
7756
7757 * nbsd-tdep.c: Include "xml-syscall.h".
7758 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7759
f94b2e03
KR
77602020-04-29 Kamil Rytarowski <n54@gmx.com>
7761
7762 * nbsd-nat.c: Include "sys/wait.h".
7763 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7764 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7765 (nbsd_nat_target::remove_exec_catchpoint)
7766 (nbsd_nat_target::set_syscall_catchpoint): Add.
7767 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7768 (nbsd_nat_target::insert_exec_catchpoint)
7769 (nbsd_nat_target::remove_exec_catchpoint)
7770 (nbsd_nat_target::set_syscall_catchpoint): Add.
7771 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7772 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7773 `nbsd_get_syscall_number'.
7774
fc49bc72
TT
77752020-04-29 Tom Tromey <tom@tromey.com>
7776
7777 * stack.c (print_block_frame_labels): Remove.
7778
d642b692
HD
77792020-04-29 Hannes Domani <ssbssa@yahoo.de>
7780
7781 PR gdb/17320
7782 * ada-valprint.c (val_print_packed_array_elements): Move array
7783 end bracket to new line.
7784 (ada_val_print_string): Remove extra spaces before first array
7785 element.
7786 * c-valprint.c (c_value_print_array): Likewise.
7787 * m2-valprint.c (m2_print_array_contents): Likewise.
7788 (m2_value_print_inner): Likewise.
7789 * p-valprint.c (pascal_value_print_inner): Likewise.
7790 * valprint.c (generic_val_print_array): Likewise.
7791 (value_print_array_elements): Move first array element and array
7792 end bracket to new line.
7793
ea90f227
TV
77942020-04-29 Tom de Vries <tdevries@suse.de>
7795
7796 PR symtab/25889
7797 * linespec.c (find_method): Fix ix calculation.
7798
4498ef4f
KR
77992020-04-28 Kamil Rytarowski <n54@gmx.com>
7800
7801 * syscalls/update-netbsd.sh: New file.
7802 * syscalls/netbsd.xml: Regenerate.
7803 * data-directory/Makefile.in: Register `netbsd.xml' in
7804 `SYSCALLS_FILES'.
7805
a55e30b5
SM
78062020-04-28 Simon Marchi <simon.marchi@efficios.com>
7807
7808 * syscalls/update-freebsd.sh: Add double quotes.
7809
2b2fbab8
TT
78102020-04-28 Tom Tromey <tom@tromey.com>
7811
7812 * NEWS: Update.
7813 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7814 (cmdpy_init): Allow class_tui.
7815
a65189c9
TV
78162020-04-28 Mark Williams <mark@myosotissp.com>
7817
7818 PR gdb/24480
7819 * dwarf2read.c: Add missing assingments to list_in_scope when
7820 start_symtab was already called.
7821
1b95cdb7
SM
78222020-04-28 Simon Marchi <simon.marchi@efficios.com>
7823
7824 PR gdb/25881
7825 * dwarf2/read.c (offset_map_type): Use
7826 gdb:hash_enum<sect_offset> as hash function.
7827
15cd93d0
TV
78282020-04-28 Tom de Vries <tdevries@suse.de>
7829
7830 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7831 with DW_AT_signature.
7832
1eb39914
SM
78332020-04-27 Simon Marchi <simon.marchi@efficios.com>
7834
7835 * configure.ac: Remove check for fs_base/gs_base in
7836 user_regs_struct.
7837 * configure: Re-generate.
7838 * config.in: Re-generate.
7839 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7840 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7841 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7842
991a3e2e
LM
78432020-04-27 Luis Machado <luis.machado@linaro.org>
7844
7845 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7846 problematic inline frame unwinding situation.
7847 * frame.c (frame_id_computed_p): New function.
7848 * frame.h (frame_id_computed_p): New prototype.
7849
361ba0e8
TT
78502020-04-26 Tom Tromey <tom@tromey.com>
7851
7852 * command.h (enum command_class) <class_pseudo>: Remove.
7853
bc3609fd
PW
78542020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7855
7856 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7857 and whitespace.
7858
b9771db7
KR
78592020-04-25 Kamil Rytarowski <n54@gmx.com>
7860
ec16513e
SM
7861 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7862 `PT_GET_PROCESS_STATE' block.
b9771db7 7863
7151c1af
TT
78642020-04-24 Tom Tromey <tom@tromey.com>
7865
7866 * symtab.h (symbol_get_demangled_name): Don't declare.
7867 * symtab.c (symbol_get_demangled_name): Remove.
7868 (general_symbol_info::natural_name)
7869 (general_symbol_info::demangled_name): Update.
7870
906bb4c5
TT
78712020-04-24 Tom Tromey <tom@tromey.com>
7872
7873 PR rust/25025:
7874 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7875
bcfe6157
TT
78762020-04-24 Tom Tromey <tom@tromey.com>
7877
7878 PR symtab/12707:
7879 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7880 exists.
7881 (new_symbol): Likewise.
7882 * compile/compile-object-load.c (get_out_value_type): Use
7883 symbol_matches_search_name.
7884
f049a313
TT
78852020-04-24 Tom Tromey <tom@tromey.com>
7886
7887 * dwarf2/read.c (add_partial_symbol): Do not call
7888 compute_and_set_names.
7889
76e288d1
TT
78902020-04-24 Tom Tromey <tom@tromey.com>
7891
7892 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7893 overload.
7894
2467f4f6
TT
78952020-04-24 Tom Tromey <tom@tromey.com>
7896
7897 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7898 (add_psymbol_to_list): New overload. Make old overload call new
7899 one.
7900 * psympriv.h (add_psymbol_to_list): New overload.
7901
e61108c9
TT
79022020-04-24 Tom Tromey <tom@tromey.com>
7903
7904 * dwarf2/read.c (partial_die_info::read) <case
7905 DW_AT_linkage_name>: Use value_as_string.
7906 (dwarf2_string_attr): Use value_as_string.
7907 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7908 method.
7909 * dwarf2/attribute.c (attribute::value_as_string): New method.
7910
8c87a452
TT
79112020-04-24 Tom Tromey <tom@tromey.com>
7912
7913 * symtab.c (general_symbol_info::natural_name)
7914 (general_symbol_info::demangled_name): Check for language_rust.
7915
787de330
TT
79162020-04-24 Tom Tromey <tom@tromey.com>
7917
7918 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7919 (dwarf2_physname): ... from here.
7920 (partial_die_info::read): Add Rust "{" hack.
7921
ff985671
TT
79222020-04-24 Tom Tromey <tom@tromey.com>
7923
7924 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7925 method.
7926 (symbol_set_demangled_name): Don't declare.
7927 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7928 symbol_set_demangled_name.
7929 (general_symbol_info::set_language)
7930 (general_symbol_info::compute_and_set_names): Update.
7931 * minsyms.c (minimal_symbol_reader::install): Update.
7932 * dwarf2/read.c (new_symbol): Update.
7933
1acda803
TT
79342020-04-24 Tom Tromey <tromey@adacore.com>
7935
7936 PR python/23662:
7937 * python/py-type.c (convert_field): Handle
7938 FIELD_LOC_KIND_DWARF_BLOCK.
7939 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7940 (typy_get_dynamic): Nw function.
7941 (type_object_getset): Add "dynamic".
7942 * NEWS: Add entry.
7943
d656f129
TT
79442020-04-24 Tom Tromey <tromey@adacore.com>
7945
7946 * ada-typeprint.c (print_choices, print_variant_part)
7947 (print_record_field_types_dynamic): New functions.
7948 (print_record_field_types): Use print_record_field_types_dynamic.
7949
7d79de9a
TT
79502020-04-24 Tom Tromey <tromey@adacore.com>
7951
7952 * dwarf2/read.c (handle_data_member_location): New overload.
7953 (dwarf2_add_field): Use it.
7954 (decode_locdesc): Add "computed" parameter. Update comment.
7955 * gdbtypes.c (is_dynamic_type_internal): Also look for
7956 FIELD_LOC_KIND_DWARF_BLOCK.
7957 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7958 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7959 virtual base classes.
7960 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7961 FIELD_LOC_KIND_DWARF_BLOCK.
7962
f8e89861
TT
79632020-04-24 Tom Tromey <tromey@adacore.com>
7964
7965 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7966 * gdbtypes.c (is_dynamic_type_internal): Check
7967 TYPE_HAS_DYNAMIC_LENGTH.
7968 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7969 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7970 New macros.
7971 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7972 constant.
7973
9c6a1327
TT
79742020-04-24 Tom Tromey <tromey@adacore.com>
7975
7976 * dwarf2/read.c (struct variant_field): Rewrite.
7977 (struct variant_part_builder): New.
7978 (struct nextfield): Remove "variant" field. Add "offset".
7979 (struct field_info): Add "current_variant_part" and
7980 "variant_parts".
7981 (alloc_discriminant_info): Remove.
7982 (alloc_rust_variant): New function.
7983 (quirk_rust_enum): Update.
7984 (dwarf2_add_field): Set "offset" member. Don't handle
7985 DW_TAG_variant_part.
7986 (offset_map_type): New typedef.
7987 (convert_variant_range, create_one_variant)
7988 (create_one_variant_part, create_variant_parts)
7989 (add_variant_property): New functions.
7990 (dwarf2_attach_fields_to_type): Call add_variant_property.
7991 (read_structure_type): Don't handle DW_TAG_variant_part.
7992 (handle_variant_part, handle_variant): New functions.
7993 (handle_struct_member_die): Use them.
7994 (process_structure_scope): Don't handle variant parts.
7995 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7996 (struct discriminant_info): Remove.
7997 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7998 (struct main_type) <flag_discriminated_union>: Remove.
7999 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8000 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8001 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8002 Update.
8003 * valops.c (value_union_variant): Remove.
8004 * value.h (value_union_variant): Don't declare.
8005
b249d2c2
TT
80062020-04-24 Tom Tromey <tromey@adacore.com>
8007
8008 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8009 (ada_value_primitive_packed_val): Update.
8010 * ada-valprint.c (ada_value_print_1): Update.
8011 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8012 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8013 just an address. Use evaluate_for_locexpr_baton.
8014 (dwarf2_evaluate_property): Update.
8015 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8016 array_view.
8017 * findvar.c (default_read_var_value): Update.
8018 * gdbtypes.c (compute_variant_fields_inner)
8019 (resolve_dynamic_type_internal): Update.
8020 (resolve_dynamic_type): Change type of valaddr parameter.
8021 * gdbtypes.h (resolve_dynamic_type): Update.
8022 * valarith.c (value_subscripted_rvalue): Update.
8023 * value.c (value_from_contents_and_address): Update.
8024
61122aa9
TT
80252020-04-24 Tom Tromey <tromey@adacore.com>
8026
8027 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8028 "push_initial_value" parameter.
8029 (dwarf2_evaluate_property): Likewise.
8030 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8031
ef83a141
TT
80322020-04-24 Tom Tromey <tromey@adacore.com>
8033
8034 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8035 (variant::matches, compute_variant_fields_recurse)
8036 (compute_variant_fields_inner, compute_variant_fields): New
8037 functions.
8038 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8039 Use resolved_type after type is made.
8040 (operator==): Add new cases.
8041 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8042 (struct discriminant_range, struct variant, struct variant_part):
8043 New.
8044 (union dynamic_prop_data) <variant_parts, original_type>: New
8045 members.
8046 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8047 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8048 constants.
8049 * value.c (unpack_bits_as_long): Now public.
8050 * value.h (unpack_bits_as_long): Declare.
8051
675127ec
TT
80522020-04-24 Tom Tromey <tromey@adacore.com>
8053
8054 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8055 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8056
9852ceef
HD
80572020-04-24 Hannes Domani <ssbssa@yahoo.de>
8058
8059 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8060
7632c6ce
KR
80612020-04-24 Kamil Rytarowski <n54@gmx.com>
8062
8063 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8064 (remove_fork_catchpoint, post_startup_inferior)
8065 (post_attach): Move...
8066 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8067 (remove_fork_catchpoint, post_startup_inferior)
8068 (post_attach): ...here.
8069 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8070 (remove_fork_catchpoint, post_startup_inferior)
8071 (post_attach): Move...
8072 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8073 (remove_fork_catchpoint, post_startup_inferior)
8074 (post_attach): ...here.
8075
7be2bb4f
TT
80762020-04-24 Tom Tromey <tromey@adacore.com>
8077
8078 * nat/windows-nat.h (struct windows_thread_info)
8079 <pc_adjusted>: New member.
8080 * windows-nat.c (windows_fetch_one_register): Check
8081 pc_adjusted.
8082 (windows_nat_target::get_windows_debug_event)
8083 (windows_nat_target::wait): Set pc_adjusted.
8084
f80cb3b4
TV
80852020-04-24 Tom de Vries <tdevries@suse.de>
8086
8087 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8088 Run gdb-add-index inside temp dir.
8089
29514b87
TT
80902020-04-23 Tom Tromey <tromey@adacore.com>
8091
8092 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8093 in loop.
8094
5939967b
LM
80952020-04-23 Luis Machado <luis.machado@linaro.org>
8096
8097 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8098 get_frame_register instead of gdbarch_unwind_pc.
8099
70bc38f5
TV
81002020-04-23 Tom de Vries <tdevries@suse.de>
8101
8102 * symtab.c (lookup_global_symbol): Prefer def over decl.
8103
de82891c
TV
81042020-04-23 Tom de Vries <tdevries@suse.de>
8105
8106 PR symtab/25807
8107 * block.c (best_symbol, better_symbol): Promote to external.
8108 * block.h (best_symbol, better_symbol): Declare.
8109 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8110 decl.
8111
ecc6c606
TT
81122020-04-23 Tom Tromey <tromey@adacore.com>
8113
8114 PR ada/25837:
8115 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8116 "const char *", not a "const std::string &".
8117 <name_and_matcher::operator==>: Update.
8118 * unittests/lookup_name_info-selftests.c: Change type of
8119 "result".
8120
740480b8
TT
81212020-04-23 Tom Tromey <tom@tromey.com>
8122
8123 * inferior.h (iterate_over_inferiors): Don't declare.
8124 * inferior.c (iterate_over_inferiors): Remove.
8125 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8126 Remove.
8127 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8128 use iterate_over_inferiors.
8129 (darwin_resume_inferior_it)
8130 (struct resume_inferior_threads_param)
8131 (darwin_resume_inferior_threads_it): Remove.
8132 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8133
ae3ab1f0
TV
81342020-04-23 Tom de Vries <tdevries@suse.de>
8135
8136 * blockframe.c (find_pc_partial_function): Use
8137 find_pc_sect_compunit_symtab rather than
8138 objfile->sf->qf->find_pc_sect_compunit_symtab.
8139
317d2668
TV
81402020-04-22 Tom de Vries <tdevries@suse.de>
8141
8142 PR symtab/25764
8143 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8144 in psymtabs.
8145
eea9e357
TV
81462020-04-22 Tom de Vries <tdevries@suse.de>
8147
8148 PR symtab/25801
8149 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8150 symtabs.
8151
3d5afab3
TV
81522020-04-22 Tom de Vries <tdevries@suse.de>
8153
8154 PR symtab/25700
8155 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8156 CU if already created.
8157
d43b7a2d
TBA
81582020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8159
8160 * infrun.c (displaced_step_fixup): Switch to the event_thread
8161 before calling displaced_step_restore, not after.
8162
d89edf9b
MM
81632020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8164
8165 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8166 its inferior is not recorded by us.
8167 (record_btrace_target_open): Replace call to
8168 all_non_exited_threads () with call to current_inferior
8169 ()->non_exited_threads ().
8170 (record_btrace_target::stop_recording): Likewise.
8171 (record_btrace_target::close): Likewise.
8172 (record_btrace_target::wait): Likewise.
8173 (record_btrace_target::record_stop_replaying): Likewise.
8174
5897fd49
MM
81752020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8176
8177 * btrace.c (btrace_enable): Throw an error on double enables and
8178 when enabling recording fails.
8179 (btrace_disable): Throw an error if the thread is not recorded.
8180
1a476b6d
MM
81812020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8182
8183 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8184 request if we do not have a thread_info.
8185
4778a5f8
TV
81862020-04-21 Tom de Vries <tdevries@suse.de>
8187
8188 PR gdb/25471
8189 * thread.c
8190 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8191 exception in get_frame_id.
8192
0fa7617d
TT
81932020-04-20 Tom Tromey <tromey@adacore.com>
8194
8195 * python/python.c (struct gdbpy_event): Mark move constructor as
8196 noexcept.
8197 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8198 constructor as noexcept.
8199 * completer.h (struct completion_result): Mark move constructor as
8200 noexcept.
8201 * completer.c (completion_result::completion_result): Use
8202 initialization style. Don't call reset_match_list.
8203
ad23bda0
MS
82042020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8205
8206 * MAINTAINERS (Write After Approval): Add myself.
8207
45e1f031
TT
82082020-04-18 Tom Tromey <tom@tromey.com>
8209
8210 * windows-tdep.c (init_w32_command_list)
8211 (w32_prefix_command_valid): Restore.
8212 (_initialize_windows_tdep): Call init_w32_command_list.
8213
08feed99
TT
82142020-04-18 Tom Tromey <tom@tromey.com>
8215
8216 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8217 * value.c (value_fn_field): Update.
8218 * valops.c (find_function_in_inferior)
8219 (value_allocate_space_in_inferior): Update.
8220 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8221 Update.
8222 * tui/tui-source.c (tui_source_window::set_contents): Update.
8223 * symtab.c (lookup_global_or_static_symbol)
8224 (find_function_start_sal_1, skip_prologue_sal)
8225 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8226 * symmisc.c (dump_msymbols, dump_symtab_1)
8227 (maintenance_print_one_line_table): Update.
8228 * symfile.c (init_entry_point_info, section_is_mapped)
8229 (list_overlays_command, simple_read_overlay_table)
8230 (simple_overlay_update_1): Update.
8231 * stap-probe.c (handle_stap_probe): Update.
8232 * stabsread.c (dbx_init_float_type, define_symbol)
8233 (read_one_struct_field, read_enum_type, read_range_type): Update.
8234 * source.c (info_line_command): Update.
8235 * python/python.c (gdbpy_source_objfile_script)
8236 (gdbpy_execute_objfile_script): Update.
8237 * python/py-type.c (save_objfile_types): Update.
8238 * python/py-objfile.c (py_free_objfile): Update.
8239 * python/py-inferior.c (python_new_objfile): Update.
8240 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8241 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8242 (maintenance_check_psymtabs): Update.
8243 * printcmd.c (info_address_command): Update.
8244 * objfiles.h (struct objfile) <arch>: New method, from
8245 get_objfile_arch.
8246 (get_objfile_arch): Don't declare.
8247 * objfiles.c (get_objfile_arch): Remove.
8248 (filter_overlapping_sections): Update.
8249 * minsyms.c (msymbol_is_function): Update.
8250 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8251 (output_nondebug_symbol): Update.
8252 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8253 (mdebug_expand_psymtab): Update.
8254 * machoread.c (macho_add_oso_symfile): Update.
8255 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8256 Update.
8257 * linux-fork.c (checkpoint_command): Update.
8258 * linespec.c (convert_linespec_to_sals): Update.
8259 * jit.c (finalize_symtab): Update.
8260 * infrun.c (insert_exception_resume_from_probe): Update.
8261 * ia64-tdep.c (ia64_find_unwind_table): Update.
8262 * hppa-tdep.c (internalize_unwinds): Update.
8263 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8264 Update.
8265 * gcore.c (call_target_sbrk): Update.
8266 * elfread.c (record_minimal_symbol, elf_symtab_read)
8267 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8268 (elf_gnu_ifunc_resolve_by_got): Update.
8269 * dwarf2/read.c (create_addrmap_from_index)
8270 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8271 (read_debug_names_from_section)
8272 (process_psymtab_comp_unit_reader, add_partial_symbol)
8273 (add_partial_subprogram, process_full_comp_unit)
8274 (read_file_scope, read_func_scope, read_lexical_block_scope)
8275 (read_call_site_scope, dwarf2_ranges_read)
8276 (dwarf2_record_block_ranges, dwarf2_add_field)
8277 (mark_common_block_symbol_computed, read_tag_pointer_type)
8278 (read_tag_string_type, dwarf2_init_float_type)
8279 (dwarf2_init_complex_target_type, read_base_type)
8280 (partial_die_info::read, partial_die_info::read)
8281 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8282 (dwarf2_fetch_die_loc_sect_off): Update.
8283 * dwarf2/loc.c (dwarf2_find_location_expression)
8284 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8285 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8286 (dwarf2_loc_desc_get_symbol_read_needs)
8287 (locexpr_describe_location_piece, locexpr_describe_location_1)
8288 (loclist_describe_location): Update.
8289 * dwarf2/index-write.c (write_debug_names): Update.
8290 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8291 * dtrace-probe.c (dtrace_process_dof): Update.
8292 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8293 (process_one_symbol): Update.
8294 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8295 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8296 (coff_read_enum_type): Update.
8297 * cli/cli-cmds.c (edit_command, list_command): Update.
8298 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8299 * breakpoint.c (create_overlay_event_breakpoint)
8300 (create_longjmp_master_breakpoint)
8301 (create_std_terminate_master_breakpoint)
8302 (create_exception_master_breakpoint, get_sal_arch): Update.
8303 * block.c (block_gdbarch): Update.
8304 * annotate.c (annotate_source_line): Update.
8305
0743fc83
TT
83062020-04-17 Tom Tromey <tromey@adacore.com>
8307
8308 * auto-load.c (show_auto_load_cmd): Remove.
8309 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8310 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8311 (maintenance_print_arc_command): Remove.
8312 * tui/tui-win.c (tui_command): Remove.
8313 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8314 * tui/tui-layout.c (tui_layout_command): Remove.
8315 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8316 * python/python.c (user_set_python, user_show_python): Remove.
8317 (_initialize_python): Use add_basic_prefix_cmd,
8318 add_show_prefix_cmd.
8319 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8320 (install_gdb_commands): Use add_basic_prefix_cmd,
8321 add_show_prefix_cmd.
8322 (info_guile_command): Remove.
8323 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8324 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8325 add_show_prefix_cmd.
8326 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8327 Remove do_set and do_show parameters.
8328 * cli/cli-style.c (set_style, show_style): Remove.
8329 (_initialize_cli_style): Use add_basic_prefix_cmd,
8330 add_show_prefix_cmd.
8331 (cli_style_option::add_setshow_commands): Remove do_set and
8332 do_show parameters.
8333 (cli_style_option::add_setshow_commands): Use
8334 add_basic_prefix_cmd, add_show_prefix_cmd.
8335 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8336 (set_style_name): Remove.
8337 * cli/cli-dump.c (dump_command, append_command): Remove.
8338 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8339 (tekhex_dump_command, binary_dump_command)
8340 (binary_append_command): Remove.
8341 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8342 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8343 (init_w32_command_list): Remove; move into ...
8344 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8345 * valprint.c (set_print, show_print, set_print_raw)
8346 (show_print_raw): Remove.
8347 (_initialize_valprint): Use add_basic_prefix_cmd,
8348 add_show_prefix_cmd.
8349 * typeprint.c (set_print_type, show_print_type): Remove.
8350 (_initialize_typeprint): Use add_basic_prefix_cmd,
8351 add_show_prefix_cmd.
8352 * record.c (set_record_command, show_record_command): Remove.
8353 (_initialize_record): Use add_basic_prefix_cmd,
8354 add_show_prefix_cmd.
8355 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8356 add_show_prefix_cmd.
8357 (info_command, show_command, set_debug, show_debug): Remove.
8358 * top.h (set_history, show_history): Don't declare.
8359 * top.c (set_history, show_history): Remove.
8360 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8361 (unset_tdesc_cmd): Remove.
8362 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8363 add_show_prefix_cmd.
8364 * symtab.c (info_module_command): Remove.
8365 (_initialize_symtab): Use add_basic_prefix_cmd.
8366 * symfile.c (overlay_command): Remove.
8367 (_initialize_symfile): Use add_basic_prefix_cmd.
8368 * sparc64-tdep.c (info_adi_command): Remove.
8369 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8370 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8371 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8372 add_show_prefix_cmd.
8373 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8374 (_initialize_serial): Use add_basic_prefix_cmd,
8375 add_show_prefix_cmd.
8376 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8377 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8378 add_show_prefix_cmd.
8379 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8380 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8381 add_show_prefix_cmd.
8382 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8383 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8384 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8385 add_show_prefix_cmd.
8386 * remote.c (remote_command, set_remote_cmd): Remove.
8387 (_initialize_remote): Use add_basic_prefix_cmd.
8388 * record-full.c (set_record_full_command)
8389 (show_record_full_command): Remove.
8390 (_initialize_record_full): Use add_basic_prefix_cmd,
8391 add_show_prefix_cmd.
8392 * record-btrace.c (cmd_set_record_btrace)
8393 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8394 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8395 (cmd_show_record_btrace_pt): Remove.
8396 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8397 add_show_prefix_cmd.
8398 * ravenscar-thread.c (set_ravenscar_command)
8399 (show_ravenscar_command): Remove.
8400 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8401 add_show_prefix_cmd.
8402 * mips-tdep.c (show_mips_command, set_mips_command)
8403 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8404 add_show_prefix_cmd.
8405 * maint.c (maintenance_command, maintenance_info_command)
8406 (maintenance_check_command, maintenance_print_command)
8407 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8408 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8409 add_show_prefix_cmd.
8410 (show_per_command_cmd): Remove.
8411 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8412 Remove.
8413 (maintenance_show_test_settings_cmd): Remove.
8414 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8415 add_show_prefix_cmd.
8416 * maint-test-options.c (maintenance_test_options_command):
8417 Remove.
8418 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8419 * macrocmd.c (macro_command): Remove
8420 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8421 * language.c (set_check, show_check): Remove.
8422 (_initialize_language): Use add_basic_prefix_cmd,
8423 add_show_prefix_cmd.
8424 * infcmd.c (unset_command): Remove.
8425 (_initialize_infcmd): Use add_basic_prefix_cmd.
8426 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8427 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8428 add_show_prefix_cmd.
8429 * go32-nat.c (go32_info_dos_command): Remove.
8430 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8431 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8432 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8433 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8434 (_initialize_frame): Use add_basic_prefix_cmd,
8435 add_show_prefix_cmd.
8436 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8437 (_initialize_dcache): Use add_basic_prefix_cmd,
8438 add_show_prefix_cmd.
8439 * cp-support.c (maint_cplus_command): Remove.
8440 (_initialize_cp_support): Use add_basic_prefix_cmd.
8441 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8442 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8443 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8444 add_basic_prefix_cmd, add_show_prefix_cmd.
8445 * breakpoint.c (save_command): Remove.
8446 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8447 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8448 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8449 add_show_prefix_cmd.
8450 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8451 (set_ada_command, show_ada_command): Remove.
8452 (_initialize_ada_language): Use add_basic_prefix_cmd,
8453 add_show_prefix_cmd.
8454 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8455
3557f442
KR
84562020-04-16 Kamil Rytarowski <n54@gmx.com>
8457
8458 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8459 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8460
16197208
SM
84612020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8462
8463 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8464 warning messages.
8465
00ac85d3
SM
84662020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8467
8468 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8469 import table is not at beginning of .idata section.
8470
381ce63f
PA
84712020-04-16 Pedro Alves <palves@redhat.com>
8472
8473 * inferior.c (delete_inferior): Use delete operator directly
8474 instead of delete_program_space.
8475 * progspace.c (add_program_space): New, factored out from
8476 program_space::program_space.
8477 (remove_program_space): New, factored out from
8478 delete_program_space.
8479 (program_space::program_space): Remove intro comment. Rewrite.
8480 (program_space::~program_space): Remove intro comment. Call
8481 remove_program_space.
8482 (delete_program_space): Delete.
8483 * progspace.h (program_space::program_space): Make explicit. Move
8484 intro comment here, adjusted.
8485 (program_space::~program_space): Move intro comment here,
8486 adjusted.
8487 (delete_program_space): Remove.
8488
a010605f
TT
84892020-04-16 Tom Tromey <tromey@adacore.com>
8490
8491 * windows-nat.c (windows_nat::handle_access_violation): New
8492 function.
8493 * nat/windows-nat.h (handle_access_violation): Declare.
8494 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8495 windows-nat.c. Call handle_access_violation.
8496
efba5c23
TV
84972020-04-16 Tom de Vries <tdevries@suse.de>
8498
8499 PR symtab/25791
8500 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8501 CUs without psymtab.
8502
97ed802d
KB
85032020-04-16 Kevin Buettner <kevinb@redhat.com>
8504
8505 * python/python.c (do_start_initialization): Don't call
8506 PyEval_InitThreads for Python 3.9 and beyond.
8507
c7d64809
KR
85082020-04-15 Kamil Rytarowski <n54@gmx.com>
8509
8510 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8511 thread functions.
8512 (obsd_nat_target::wait): Likewise.
8513
ce127a96
TT
85142020-04-15 Tom Tromey <tromey@adacore.com>
8515
8516 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8517 (DEBUG_EXCEPT): Use debug_printf.
8518
99f1bc6a
AB
85192020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8520
8521 * completer.c (class completion_tracker::completion_hash_entry)
8522 <hash_name>: New member function.
8523 (completion_tracker::discard_completions): New callback to hash a
8524 completion_hash_entry, pass this to htab_create_alloc.
8525
a0e9b532
JT
85262016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8527
8528 * windows-nat.c (windows_make_so): Warn rather than stopping with
8529 an error if realpath() fails.
8530
06ca5dd4
KR
85312020-04-14 Kamil Rytarowski <n54@gmx.com>
8532
8533 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8534 (nbsd_nat_target::info_proc): Add do_status.
8535
194d088f
TV
85362020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8537 Tom de Vries <tdevries@suse.de>
8538
8539 PR symtab/25718
8540 * psympriv.h (struct partial_symtab::read_symtab)
8541 (struct partial_symtab::expand_psymtab)
8542 (struct partial_symtab::read_dependencies): Update comments.
8543 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8544 read_symtab for includer.
8545 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8546 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8547 (struct dwarf2_include_psymtab::m_readin): Remove.
8548 (struct dwarf2_include_psymtab::includer): New member function.
8549 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8550
c1a66c06
TV
85512020-04-14 Tom de Vries <tdevries@suse.de>
8552
8553 PR symtab/25720
8554 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8555 with NULL symbol_matcher and lookup_name.
8556 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8557 and lookup_name.
8558 * dwarf2/read.c (dw2_expand_symtabs_matching)
8559 (dw2_debug_names_expand_symtabs_matching): Same.
8560 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8561 Make lookup_name a pointer. Update comment.
8562 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8563 lookup_name being a pointer.
8564 * symfile.c (expand_symtabs_matching): Same.
8565 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8566 * linespec.c (iterate_over_all_matching_symtabs): Same.
8567
400b5eca
TT
85682020-04-13 Tom Tromey <tom@tromey.com>
8569
8570 * run-on-main-thread.c: Update include.
8571 * unittests/main-thread-selftests.c: Update include.
8572 * tui/tui-win.c: Update include.
8573 * tui/tui-io.c: Update include.
8574 * tui/tui-interp.c: Update include.
8575 * tui/tui-hooks.c: Update include.
8576 * top.h: Update include.
8577 * top.c: Update include.
8578 * ser-base.c: Update include.
8579 * remote.c: Update include.
8580 * remote-notif.c: Update include.
8581 * remote-fileio.c: Update include.
8582 * record-full.c: Update include.
8583 * record-btrace.c: Update include.
8584 * python/python.c: Update include.
8585 * posix-hdep.c: Update include.
8586 * mingw-hdep.c: Update include.
8587 * mi/mi-main.c: Update include.
8588 * mi/mi-interp.c: Update include.
8589 * main.c: Update include.
8590 * linux-nat.c: Update include.
8591 * interps.c: Update include.
8592 * infrun.c: Update include.
8593 * inf-loop.c: Update include.
8594 * event-top.c: Update include.
8595 * event-loop.c: Move to ../gdbsupport/.
8596 * event-loop.h: Move to ../gdbsupport/.
8597 * async-event.h: Update include.
8598 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8599
93b54c8e
TT
86002020-04-13 Tom Tromey <tom@tromey.com>
8601
8602 * tui/tui-win.c: Include async-event.h.
8603 * remote.c: Include async-event.h.
8604 * remote-notif.c: Include async-event.h.
8605 * record-full.c: Include async-event.h.
8606 * record-btrace.c: Include async-event.h.
8607 * infrun.c: Include async-event.h.
8608 * event-top.c: Include async-event.h.
8609 * event-loop.h: Move some declarations to async-event.h.
8610 * event-loop.c: Don't include ser-event.h or top.h. Move some
8611 code to async-event.c.
8612 * async-event.h: New file.
8613 * async-event.c: New file.
8614 * Makefile.in (COMMON_SFILES): Add async-event.c.
8615 (HFILES_NO_SRCDIR): Add async-event.h.
8616
c1cd3163
TT
86172020-04-13 Tom Tromey <tom@tromey.com>
8618
8619 * utils.c (flush_streams): New function.
8620 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8621
29f2bf4f
TT
86222020-04-13 Tom Tromey <tom@tromey.com>
8623
8624 * event-loop.c (handle_file_event): Use warning, not
8625 printf_unfiltered.
8626
98029d02
TT
86272020-04-13 Tom Tromey <tom@tromey.com>
8628
8629 * event-loop.c: Include <chrono>.
8630
06cc9596
TT
86312020-04-13 Tom Tromey <tom@tromey.com>
8632
8633 * gdb_select.h: Move to ../gdbsupport/.
8634 * event-loop.c: Update include path.
8635 * top.c: Update include path.
8636 * ser-base.c: Update include path.
8637 * ui-file.c: Update include path.
8638 * ser-tcp.c: Update include path.
8639 * guile/scm-ports.c: Update include path.
8640 * posix-hdep.c: Update include path.
8641 * ser-unix.c: Update include path.
8642 * gdb_usleep.c: Update include path.
8643 * mingw-hdep.c: Update include path.
8644 * inflow.c: Update include path.
8645 * infrun.c: Update include path.
8646 * event-top.c: Update include path.
8647
8ae8e197
TT
86482020-04-13 Tom Tromey <tom@tromey.com>
8649
8650 * configure: Rebuild.
8651 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8652
58cf28e8
TT
86532020-04-13 Tom Tromey <tom@tromey.com>
8654
8655 * event-loop.h (start_event_loop): Don't declare.
8656 * event-loop.c (start_event_loop): Move...
8657 * main.c (start_event_loop): ...here. Now static.
8658
b7f999ae
SDJ
86592020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8660
8661 * MAINTAINERS: Update my email address.
8662
1085dfd4
KR
86632020-04-12 Kamil Rytarowski <n54@gmx.com>
8664
8665 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8666 IP_ALL.
8667
49d1d1f5
KR
86682020-04-12 Kamil Rytarowski <n54@gmx.com>
8669
8670 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8671 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8672
b4848d2a
KR
86732020-04-12 Kamil Rytarowski <n54@gmx.com>
8674
8675 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8676 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8677
51c133d5
KR
86782020-04-12 Kamil Rytarowski <n54@gmx.com>
8679
8680 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8681
54b8cbd0
KR
86822020-04-11 Kamil Rytarowski <n54@gmx.com>
8683
8684 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8685 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8686 (nbsd_nat_target::info_proc): New functions.
8687 * nbsd-nat.c (kinfo_get_vmmap): New function.
8688 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8689 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8690 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8691 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8692 functions.
8693 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8694 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8695 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8696 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8697 (KINFO_VME_FLAG_GROWS_DOWN): New.
8698
cf83625d
AS
86992020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8700
8701 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8702 bit shift.
8703
0c4311ab
TT
87042020-04-10 Tom Tromey <tromey@adacore.com>
8705
8706 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8707
3e65b3e9
TT
87082020-04-10 Tom Tromey <tromey@adacore.com>
8709
8710 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8711 separate debug files.
8712
13302e95
HD
87132020-04-10 Hannes Domani <ssbssa@yahoo.de>
8714
8715 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8716 Move to...
8717 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8718 ... here.
8719 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8720 Check for STATUS_WX86_BREAKPOINT.
8721 (windows_nat_target::wait): Same.
8722
bdfc1e8a
TV
87232020-04-10 Tom de Vries <tdevries@suse.de>
8724
8725 PR cli/25808
8726 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8727
f4460aec
SM
87282020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8729
8730 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8731 (Write After Approval): Remove Tom de Vries.
8732
a25198bb
BE
87332020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8734
8735 revert partially:
8736 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8737
aac66a4c
SM
8738 * buildsym.c (record_line): Fix undefined behavior and preserve
8739 lines at eof.
a25198bb 8740
206c98a6
KR
87412020-04-09 Kamil Rytarowski <n54@gmx.com>
8742
8743 * auxv.h (svr4_auxv_parse): New.
8744 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8745 and generic_auxv_parse.
8746 (svr4_auxv_parse): Add.
8747 * obsd-tdep.c: Include "auxv.h".
8748 (obsd_auxv_parse): Remove.
8749 (obsd_init_abi): Remove comment.
8750 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8751 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8752 * nbsd-tdep.c: Include "auxv.h".
8753 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8754
71fbdbaf
TT
87552020-04-08 Tom Tromey <tromey@adacore.com>
8756
8757 * nat/windows-nat.h (last_wait_event): Don't declare.
8758 (wait_for_debug_event): Update comment.
8759 * nat/windows-nat.c (last_wait_event): Now static.
8760
2c1d95e8
TT
87612020-04-08 Tom Tromey <tromey@adacore.com>
8762
8763 * windows-nat.c (wait_for_debug_event): Move to
8764 nat/windows-nat.c.
8765 * nat/windows-nat.h (wait_for_debug_event): Declare.
8766 * nat/windows-nat.c (wait_for_debug_event): Move from
8767 windows-nat.c. No longer static.
8768
d2977bc4
TT
87692020-04-08 Tom Tromey <tromey@adacore.com>
8770
8771 * windows-nat.c (get_windows_debug_event): Use
8772 fetch_pending_stop.
8773 * nat/windows-nat.h (fetch_pending_stop): Declare.
8774 * nat/windows-nat.c (fetch_pending_stop): New function.
8775
e758e19c
TT
87762020-04-08 Tom Tromey <tromey@adacore.com>
8777
8778 * windows-nat.c (windows_continue): Use matching_pending_stop and
8779 continue_last_debug_event.
8780 * nat/windows-nat.h (matching_pending_stop)
8781 (continue_last_debug_event): Declare.
8782 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8783 (matching_pending_stop, continue_last_debug_event): New
8784 functions.
8785
8d30e395
TT
87862020-04-08 Tom Tromey <tromey@adacore.com>
8787
8788 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8789 (handle_exception_result): Move to nat/windows-nat.h.
8790 (DEBUG_EXCEPTION_SIMPLE): Remove.
8791 (windows_nat::handle_ms_vc_exception): New function.
8792 (handle_exception): Move to nat/windows-nat.c.
8793 (get_windows_debug_event): Update.
8794 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8795 nat/windows-nat.c.
8796 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8797 (handle_exception_result): Move from windows-nat.c.
8798 (handle_exception): Declare.
8799 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8800 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8801 windows-nat.c.
8802
29de418d
TT
88032020-04-08 Tom Tromey <tromey@adacore.com>
8804
8805 * windows-nat.c (exception_count, event_count): Remove.
8806 (handle_exception, get_windows_debug_event)
8807 (do_initial_windows_stuff): Update.
8808
a816ba18
TT
88092020-04-08 Tom Tromey <tromey@adacore.com>
8810
8811 * windows-nat.c (windows_nat::handle_load_dll)
8812 (windows_nat::handle_unload_dll): Rename. No longer static.
8813 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8814 Declare.
8815
a00caa12
TT
88162020-04-08 Tom Tromey <tromey@adacore.com>
8817
8818 * complaints.h (stop_whining): Declare at top-level.
8819 (complaint): Don't declare stop_whining.
8820
d41b524f
TT
88212020-04-08 Tom Tromey <tromey@adacore.com>
8822
8823 * windows-nat.c (windows_nat::handle_output_debug_string):
8824 Rename. No longer static.
8825 * nat/windows-nat.h (handle_output_debug_string): Declare.
8826
3c76026d
TT
88272020-04-08 Tom Tromey <tromey@adacore.com>
8828
8829 * windows-nat.c (current_process_handle, current_process_id)
8830 (main_thread_id, last_sig, current_event, last_wait_event)
8831 (current_windows_thread, desired_stop_thread_id, pending_stops)
8832 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8833 (display_selectors, fake_create_process)
8834 (get_windows_debug_event): Update.
8835 * nat/windows-nat.h (current_process_handle, current_process_id)
8836 (main_thread_id, last_sig, current_event, last_wait_event)
8837 (current_windows_thread, desired_stop_thread_id, pending_stops)
8838 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8839 * nat/windows-nat.c (current_process_handle, current_process_id)
8840 (main_thread_id, last_sig, current_event, last_wait_event)
8841 (current_windows_thread, desired_stop_thread_id, pending_stops)
8842 (siginfo_er): New globals. Move from windows-nat.c.
8843
9d8679cc
TT
88442020-04-08 Tom Tromey <tromey@adacore.com>
8845
8846 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8847 (handle_load_dll): Update.
8848 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8849
28688adf
TT
88502020-04-08 Tom Tromey <tromey@adacore.com>
8851
8852 * windows-nat.c (enum thread_disposition_type): Move to
8853 nat/windows-nat.h.
8854 (windows_nat::thread_rec): Rename from thread_rec. No longer
8855 static.
8856 (windows_add_thread, windows_nat_target::fetch_registers)
8857 (windows_nat_target::store_registers, handle_exception)
8858 (windows_nat_target::resume, get_windows_debug_event)
8859 (windows_nat_target::get_tib_address)
8860 (windows_nat_target::thread_name)
8861 (windows_nat_target::thread_alive): Update.
8862 * nat/windows-nat.h (enum thread_disposition_type): Move from
8863 windows-nat.c.
8864 (thread_rec): Declare.
8865
4834dad0
TT
88662020-04-08 Tom Tromey <tromey@adacore.com>
8867
8868 * windows-nat.c: Add "using namespace".
8869 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8870 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8871
65bafd5b
TT
88722020-04-08 Tom Tromey <tromey@adacore.com>
8873
8874 * nat/windows-nat.h (struct windows_thread_info): Declare
8875 destructor.
8876 * nat/windows-nat.c (~windows_thread_info): New.
8877
0a4afda3
TT
88782020-04-08 Tom Tromey <tromey@adacore.com>
8879
8880 PR gdb/22992
8881 * windows-nat.c (current_event): Update comment.
8882 (last_wait_event, desired_stop_thread_id): New globals.
8883 (struct pending_stop): New.
8884 (pending_stops): New global.
8885 (windows_nat_target) <stopped_by_sw_breakpoint>
8886 <supports_stopped_by_sw_breakpoint>: New methods.
8887 (windows_fetch_one_register): Add assertions. Adjust PC.
8888 (windows_continue): Handle pending stops. Suspend other threads
8889 when stepping. Use last_wait_event
8890 (wait_for_debug_event): New function.
8891 (get_windows_debug_event): Use wait_for_debug_event. Handle
8892 pending stops. Queue spurious stops.
8893 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8894 (windows_nat_target::kill): Use wait_for_debug_event.
8895 * nat/windows-nat.h (struct windows_thread_info)
8896 <stopped_at_software_breakpoint>: New field.
8897 * nat/windows-nat.c (windows_thread_info::resume): Clear
8898 stopped_at_software_breakpoint.
8899
8e61ebec
TT
89002020-04-08 Tom Tromey <tromey@adacore.com>
8901
8902 * windows-nat.c (enum thread_disposition_type): New.
8903 (thread_rec): Replace "get_context" parameter with "disposition";
8904 change type.
8905 (windows_add_thread, windows_nat_target::fetch_registers)
8906 (windows_nat_target::store_registers, handle_exception)
8907 (windows_nat_target::resume, get_windows_debug_event)
8908 (windows_nat_target::get_tib_address)
8909 (windows_nat_target::thread_name)
8910 (windows_nat_target::thread_alive): Update.
8911
98a03287
TT
89122020-04-08 Tom Tromey <tromey@adacore.com>
8913
8914 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8915 (windows_continue): Use windows_continue::resume.
8916 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8917 resume>: Declare new methods.
8918 * nat/windows-nat.c: New file.
8919 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8920
7c7411bc
TT
89212020-04-08 Tom Tromey <tromey@adacore.com>
8922
8923 * windows-nat.c (windows_add_thread, windows_delete_thread)
8924 (windows_nat_target::fetch_registers)
8925 (windows_nat_target::store_registers, fake_create_process)
8926 (windows_nat_target::resume, windows_nat_target::resume)
8927 (get_windows_debug_event, windows_nat_target::wait)
8928 (windows_nat_target::pid_to_str)
8929 (windows_nat_target::get_tib_address)
8930 (windows_nat_target::get_ada_task_ptid)
8931 (windows_nat_target::thread_name)
8932 (windows_nat_target::thread_alive): Use lwp, not tid.
8933
2950fdf7
TT
89342020-04-08 Tom Tromey <tromey@adacore.com>
8935
8936 * windows-nat.c (handle_exception)
8937 (windows_nat_target::thread_name): Update.
8938 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8939 <name>: Now unique_xmalloc_ptr.
8940
62fe396b
TT
89412020-04-08 Tom Tromey <tromey@adacore.com>
8942
8943 * windows-nat.c (thread_rec)
8944 (windows_nat_target::fetch_registers): Update.
8945 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8946 Update comment.
8947 <debug_registers_changed, reload_context>: Now bool.
8948
e9534bd2
TT
89492020-04-08 Tom Tromey <tromey@adacore.com>
8950
8951 * windows-nat.c (windows_add_thread): Use new.
8952 (windows_init_thread_list, windows_delete_thread): Use delete.
8953 (get_windows_debug_event): Update.
8954 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8955 destructor, and initializers.
8956
ae1f8880
TT
89572020-04-08 Tom Tromey <tromey@adacore.com>
8958
8959 * windows-nat.c (struct windows_thread_info): Remove.
8960 * nat/windows-nat.h: New file.
8961
55a1e039
TT
89622020-04-08 Tom Tromey <tromey@adacore.com>
8963
8964 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8965 (thread_rec, windows_add_thread, windows_delete_thread)
8966 (windows_continue): Update.
8967
93366324
TT
89682020-04-08 Tom Tromey <tromey@adacore.com>
8969
8970 * windows-nat.c (struct windows_thread_info): Remove typedef.
8971 (thread_head): Remove.
8972 (thread_list): New global.
8973 (thread_rec, windows_add_thread, windows_init_thread_list)
8974 (windows_delete_thread, windows_continue): Update.
8975
0f2265e2
SM
89762020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8977
8978 * windows-tdep.h (windows_init_abi): Add comment.
8979 (cygwin_init_abi): New declaration.
8980 * windows-tdep.c: Split signal enumeration in two, one for
8981 Windows and one for Cygwin.
8982 (windows_gdb_signal_to_target): Only deal with signal of the
8983 Windows OS ABI.
8984 (cygwin_gdb_signal_to_target): New function.
8985 (windows_init_abi): Rename to windows_init_abi_common, don't set
8986 gdb_signal_to_target gdbarch method. Add new new function with
8987 this name.
8988 (cygwin_init_abi): New function.
8989 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8990 comment. Don't call windows_init_abi.
8991 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8992 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8993 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8994 i386_windows_init_abi_common, don't call windows_init_abi. Add
8995 a new function of this name.
8996 (i386_cygwin_init_abi): New function.
8997 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8998 OS ABI Cygwin.
8999
3810f182
SM
90002020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9001
9002 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9003 parameter.c.
9004 (dwarf2_read_gdb_index): Update.
9005
063f8e80
KR
90062020-04-07 Kamil Rytarowski <n54@gmx.com>
9007
9008 * nbsd-tdep.c: Include "objfiles.h".
9009 (nbsd_skip_solib_resolver): New.
9010 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9011
85a9510c 90122020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9013
9014 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9015 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9016 with DW_LLE_base_addressx are being emitted in DWARFv5.
9017 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9018 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9019 unsigned integer.
9020
9fc3eaae 90212020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9022
9023 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9024 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9025 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9026 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9027 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9028 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9029 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9030
9031
41144253 90322020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9033
9034 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9035 (read_loclist_index): New function definition.
9036 (lookup_loclist_base): New function definition.
9037 (read_loclist_header): New function definition.
9038 (dwarf2_cu): Add loclist_base and loclist_header field.
9039 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9040 (read_full_die_1): Read the value of DW_AT_loclists_base.
9041 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9042 (read_attribute_value): Handle DW_FORM_loclistx.
9043 (skip_one_die): Handle DW_FORM_loclistx.
9044 (loclist_header): New structure declaration.
9045 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9046
9f4e76a4
SM
90472020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9048
9049 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9050 constructor. Remove `addr` parameter from other constructor and
9051 add `per_cu` parameter.
9052 * dwarf2/read.c (create_partial_symtab): Update.
9053
25c11aca
TV
90542020-04-07 Tom de Vries <tdevries@suse.de>
9055
9056 PR symtab/25796
9057 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9058 (partial_die_info::fixup): Inherit has_const_value.
9059
5707e24b
TV
90602020-04-07 Tom de Vries <tdevries@suse.de>
9061
9062 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9063 symbols without address.
9064
05f00e22
KR
90652020-04-06 Kamil Rytarowski <n54@gmx.com>
9066
9067 * nbsd-nat.h (struct thread_info): Add forward declaration.
9068 (nbsd_nat_target::thread_alive): Add.
9069 (nbsd_nat_target::thread_name): Likewise.
9070 (nbsd_nat_target::update_thread_list): Likewise.
9071 (update_thread_list::post_attach): Likewise.
9072 (post_attach::pid_to_str): Likewise.
9073 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9074 (nbsd_thread_lister): Add.
9075 (nbsd_nat_target::thread_alive): Likewise.
9076 (nbsd_nat_target::thread_name): Likewise.
9077 (nbsd_add_threads): Likewise.
9078 (update_thread_list::post_attach): Likewise.
9079 (nbsd_nat_target::update_thread_list): Likewise.
9080 (post_attach::pid_to_str): Likewise.
9081
6ee448cc
TT
90822020-04-06 Tom Tromey <tromey@adacore.com>
9083
9084 * ada-valprint.c (print_variant_part): Extract the variant field.
9085 (print_field_values): Use the field as the outer value when
9086 recursing.
9087
dea34e8c
TT
90882020-04-06 Tom Tromey <tromey@adacore.com>
9089
9090 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9091 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9092 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9093 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9094 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9095
93689ce9
TT
90962020-04-06 Tom Tromey <tromey@adacore.com>
9097
9098 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9099 TYPE_CODE_ERROR.
9100
79743962
KR
91012020-04-06 Kamil Rytarowski <n54@gmx.com>
9102
9103 * nbsd-tdep.c: Include "gdbarch.h".
9104 Define enum with NetBSD signal numbers.
9105 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9106 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9107 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9108 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9109 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9110 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9111 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9112 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9113 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9114 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9115 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9116 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9117
9e7c9a03
HD
91182020-04-03 Hannes Domani <ssbssa@yahoo.de>
9119
9120 PR gdb/25325
9121 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9122
d9e49b61
TT
91232020-04-03 Tom Tromey <tromey@adacore.com>
9124
9125 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9126 Read constant block.
9127
e0fc5c3f
SM
91282020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9129
9130 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9131 (gdb_bfd_get_full_section_contents): New declaration.
9132 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9133 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9134 gdb_bfd_get_full_section_contents.
9135
e2ff18a0
SM
91362020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9137
9138 * exec.c (build_section_table): Replace internal_error with
9139 gdb_assert.
9140 (section_table_xfer_memory_partial): Likewise.
9141 * mdebugread.c (parse_partial_symbols): Likewise.
9142 * psymtab.c (lookup_partial_symbol): Likewise.
9143 * utils.c (wrap_here): Likewise.
9144
0830d301
TT
91452020-04-02 Tom Tromey <tromey@adacore.com>
9146
9147 * f-lang.c (build_fortran_types): Use arch_type to initialize
9148 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9149
e7da7f8f
TT
91502020-04-02 Tom Tromey <tromey@adacore.com>
9151
9152 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9153 of attributes.
9154
c90d28ac
AB
91552020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9156 Bernd Edlinger <bernd.edlinger@hotmail.de>
9157 Tom Tromey <tromey@adacore.com>
9158
9159 * buildsym.c (buildsym_compunit::record_line): Remove
9160 deduplication code.
9161
1aa98955
TV
91622020-04-02 Tom de Vries <tdevries@suse.de>
9163
9164 PR ada/24671
9165 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9166
d3214198
TV
91672020-04-02 Tom de Vries <tdevries@suse.de>
9168
9169 * dwarf2/read.c (dwarf2_gdb_index_functions,
9170 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9171 NULL.
9172 * psymtab.c (psym_lookup_global_symbol_language): New function.
9173 (psym_functions): Init psym_lookup_global_symbol_language with
9174 psym_lookup_global_symbol_language.
9175 * symfile-debug.c (debug_sym_quick_functions): Init
9176 lookup_global_symbol_language with NULL.
9177 * symfile.c (set_initial_language): Remove fixme comment.
9178 * symfile.h (struct quick_symbol_functions): Add
9179 lookup_global_symbol_language.
9180 * symtab.c (find_quick_global_symbol_language): New function.
9181 (find_main_name): Use find_quick_global_symbol_language.
9182
2836752f
SM
91832020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9184
9185 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9186
64dc2d4b
BE
91872020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9188
9189 * buildsym.c (record_line): Fix undefined behavior and preserve
9190 lines at eof.
9191
bbe3dc41
BE
91922020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9193
9194 * buildsym.c (record_line): Fix the resizing condition.
9195
6b4a335b
TT
91962020-04-01 Tom Tromey <tom@tromey.com>
9197
9198 * value.h (value_literal_complex): Add comment.
9199 * valops.c (value_literal_complex): Refer to value.h.
9200
3638a098
TT
92012020-04-01 Tom Tromey <tom@tromey.com>
9202
9203 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9204 (scalar_type): New rule, from typebase.
9205 (typebase): Use scalar_type. Recognize complex types.
9206 (field_name): Handle FLOAT_KEYWORD.
9207 (ident_tokens): Add _Complex and __complex__.
9208
c34e8714
TT
92092020-04-01 Tom Tromey <tom@tromey.com>
9210
9211 PR exp/25299:
9212 * valarith.c (promotion_type, complex_binop): New functions.
9213 (scalar_binop): Handle complex numbers. Use promotion_type.
9214 (value_pos, value_neg, value_complement): Handle complex numbers.
9215
fa649bb7
TT
92162020-04-01 Tom Tromey <tom@tromey.com>
9217
9218 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9219 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9220 (parse_number): Handle complex numbers.
9221
981c08ce
TT
92222020-04-01 Tom Tromey <tom@tromey.com>
9223
9224 * c-valprint.c (c_decorations): Change complex suffix to "i".
9225
4c99290d
TT
92262020-04-01 Tom Tromey <tom@tromey.com>
9227
9228 * valprint.c (generic_value_print_complex): Use accessors.
9229 * value.h (value_real_part, value_imaginary_part): Declare.
9230 * valops.c (value_real_part, value_imaginary_part): New
9231 functions.
9232 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9233
5b930b45
TT
92342020-04-01 Tom Tromey <tom@tromey.com>
9235
9236 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9237 (read_range_type): Update.
9238 * mdebugread.c (basic_type): Update.
9239 * go-lang.c (build_go_types): Use init_complex_type.
9240 * gdbtypes.h (struct main_type) <complex_type>: New member.
9241 (init_complex_type): Update.
9242 (arch_complex_type): Don't declare.
9243 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9244 Make name if none given. Use alloc_type_copy. Look for cached
9245 complex type.
9246 (arch_complex_type): Remove.
9247 (gdbtypes_post_init): Use init_complex_type.
9248 * f-lang.c (build_fortran_types): Use init_complex_type.
9249 * dwarf2/read.c (read_base_type): Update.
9250 * d-lang.c (build_d_types): Use init_complex_type.
9251 * ctfread.c (read_base_type): Update.
9252
53cccef1
TBA
92532020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9254
9255 * infrun.c (stop_all_threads): Update assertion, plus when
9256 stopping threads, take into account that we might be trying
9257 to stop an all-stop target.
9258 (stop_waiting): Call 'stop_all_threads' if there exists a
9259 non-stop target.
9260
a0714d30
TBA
92612020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9262
9263 * target.h (exists_non_stop_target): New function declaration.
9264 * target.c (exists_non_stop_target): New function.
9265
60e22c1e
HD
92662020-04-01 Hannes Domani <ssbssa@yahoo.de>
9267
9268 PR gdb/24789
9269 * eval.c (is_integral_or_integral_reference): New function.
9270 (evaluate_subexp_standard): Allow integer references in
9271 pointer arithmetic.
9272
e139a727
TBA
92732020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9274
9275 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9276 check for no ptid in the stop reply when the target is non-stop.
9277
e0802d59
TT
92782020-04-01 Tom Tromey <tromey@adacore.com>
9279
9280 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9281 "name" parameter to rvalue reference. Initialize m_name_holder.
9282 <lookup_name_info>: New overloads.
9283 <name>: Return gdb::string_view.
9284 <c_str>: New method.
9285 <make_ignore_params>: Update.
9286 <search_name_hash>: Update.
9287 <language_lookup_name>: Return const char *.
9288 <m_name>: Change type.
9289 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9290 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9291 (lookup_name_info::match_any): Update.
9292 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9293 Update.
9294 * minsyms.c (linkage_name_str): Update.
9295 * language.c (default_symbol_name_matcher): Update.
9296 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9297 Update.
9298 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9299 (ada_lookup_name_info::ada_lookup_name_info): Update.
9300 (literal_symbol_name_matcher): Update.
9301
8c072cb6
TT
93022020-04-01 Tom Tromey <tromey@adacore.com>
9303
9304 * psymtab.c (psymtab_search_name): Remove function.
9305 (psym_lookup_symbol): Create search name and lookup name here.
9306 (lookup_partial_symbol): Remove "name" parameter; add
9307 lookup_name.
9308 (psym_expand_symtabs_for_function): Update.
9309
6f29a534
TT
93102020-03-31 Joel Jones <joelkevinjones@gmail.com>
9311
9312 PR tui/25597:
9313 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9314
af62665e
TT
93152020-03-31 Tom Tromey <tromey@adacore.com>
9316
9317 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9318 memcpy.
9319
d1a89da5
NC
93202020-03-30 Nelson Chu <nelson.chu@sifive.com>
9321
9322 * features/riscv/32bit-csr.xml: Regenerated.
9323 * features/riscv/64bit-csr.xml: Regenerated.
9324
d8af9068
TT
93252020-03-30 Tom Tromey <tromey@adacore.com>
9326
9327 * ada-valprint.c (print_variant_part): Update.
9328 * ada-lang.h (ada_which_variant_applies): Update.
9329 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9330 outer_valaddr parameters; replace with "outer" value parameter.
9331 (to_fixed_variant_branch_type): Update.
9332
227c0bf4
PFC
93332020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9334
9335 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9336 <list>. Remove inclusion of observable.h.
9337 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9338 (struct arch_lwp_info): New struct.
9339 (class ppc_linux_dreg_interface): New class.
9340 (struct ppc_linux_process_info): New struct.
9341 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9342 <low_new_clone, low_forget_process, low_prepare_to_resume>
9343 <copy_thread_dreg_state, mark_thread_stale>
9344 <mark_debug_registers_changed, register_hw_breakpoint>
9345 <clear_hw_breakpoint, register_wp, clear_wp>
9346 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9347 <num_memory_accesses, get_trigger_type>
9348 <create_watchpoint_request, hwdebug_point_cmp>
9349 <init_arch_lwp_info, get_arch_lwp_info>
9350 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9351 methods.
9352 <struct ptid_hash>: New inner struct.
9353 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9354 members.
9355 (saved_dabr_value, hwdebug_info, max_slots_number)
9356 (struct hw_break_tuple, struct thread_points, ppc_threads)
9357 (have_ptrace_hwdebug_interface)
9358 (hwdebug_find_thread_points_by_tid)
9359 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9360 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9361 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9362 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9363 use m_dreg_interface.
9364 (hwdebug_point_cmp): Change to...
9365 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9366 reference arguments instead of pointers.
9367 (ppc_linux_nat_target::ranged_break_num_registers): Use
9368 m_dreg_interface.
9369 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9370 m_dreg_interface. Call register_hw_breakpoint.
9371 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9372 m_dreg_interface. Call clear_hw_breakpoint.
9373 (get_trigger_type): Change to...
9374 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9375 comment.
9376 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9377 use m_dreg_interface. Call register_hw_breakpoint.
9378 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9379 use m_dreg_interface. Call clear_hw_breakpoint.
9380 (can_use_watchpoint_cond_accel): Change to...
9381 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9382 method. Update comment, use m_dreg_interface and
9383 m_process_info.
9384 (calculate_dvc): Change to...
9385 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9386 m_dreg_interface.
9387 (num_memory_accesses): Change to...
9388 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9389 (check_condition): Change to...
9390 (ppc_linux_nat_target::check_condition): ...this method.
9391 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9392 comment, use m_dreg_interface.
9393 (create_watchpoint_request): Change to...
9394 (ppc_linux_nat_target::create_watchpoint_request): ...this
9395 method. Use m_dreg_interface.
9396 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9397 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9398 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9399 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9400 (ppc_linux_nat_target::low_forget_process)
9401 (ppc_linux_nat_target::low_new_fork)
9402 (ppc_linux_nat_target::low_new_clone)
9403 (ppc_linux_nat_target::low_delete_thread)
9404 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9405 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9406 only call mark_thread_stale.
9407 (ppc_linux_thread_exit): Remove.
9408 (ppc_linux_nat_target::stopped_data_address): Change to...
9409 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9410 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9411 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9412 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9413 comment. Call low_stopped_data_address.
9414 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9415 m_dreg_interface.
9416 (ppc_linux_nat_target::masked_watch_num_registers): Use
9417 m_dreg_interface.
9418 (ppc_linux_nat_target::copy_thread_dreg_state)
9419 (ppc_linux_nat_target::mark_thread_stale)
9420 (ppc_linux_nat_target::mark_debug_registers_changed)
9421 (ppc_linux_nat_target::register_hw_breakpoint)
9422 (ppc_linux_nat_target::clear_hw_breakpoint)
9423 (ppc_linux_nat_target::register_wp)
9424 (ppc_linux_nat_target::clear_wp)
9425 (ppc_linux_nat_target::init_arch_lwp_info)
9426 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9427 (_initialize_ppc_linux_nat): Remove observer callback.
9428
4db10d8f
PFC
94292020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9430
9431 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9432 (ppc_linux_nat_target::auxv_parse)
9433 (ppc_linux_nat_target::read_description)
9434 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9435 Move up.
9436
1310c1b0
PFC
94372020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9438
9439 * linux-nat.h (low_new_clone): New method.
9440 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9441
69b037c3
SM
94422020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9443
9444 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9445 (dbx_expand_psymtab): ... this.
9446 (start_psymtab): Update.
9447 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9448 (mdebug_expand_psymtab): ... this.
9449 (parse_partial_symbols): Update.
9450 (new_psymtab): Update.
9451 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9452 (xcoff_expand_psymtab): ... this.
9453 (xcoff_start_psymtab): Update.
9454
48993951
SM
94552020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9456
9457 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9458 <expand_dependencies>: ... this.
9459 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9460 (partial_symtab::expand_dependencies): ... this.
9461 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9462 Update.
9463 (dwarf2_psymtab::expand_psymtab): Update.
9464 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9465 * mdebugread.c (psymtab_to_symtab_1): Update.
9466 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9467
3ad83046
SM
94682020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9469
9470 * psympriv.h (discard_psymtab): Remove.
9471 * dbxread.c (dbx_end_psymtab): Update.
9472 * xcoffread.c (xcoff_end_psymtab): Update.
9473
4d1b9ab6
TT
94742020-03-28 Tom Tromey <tom@tromey.com>
9475
9476 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9477 comment.
9478
f1749218
TT
94792020-03-28 Tom Tromey <tom@tromey.com>
9480
9481 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9482
ebea7626
HD
94832020-03-27 Hannes Domani <ssbssa@yahoo.de>
9484
9485 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9486
a879b4d5
JB
94872020-03-26 John Baldwin <jhb@FreeBSD.org>
9488
9489 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9490
0826b30a
TT
94912020-03-26 Tom Tromey <tom@tromey.com>
9492
9493 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9494 (mark_common_block_symbol_computed, read_tag_string_type)
9495 (attr_to_dynamic_prop, read_subrange_type): Update.
9496 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9497 to be methods on struct attribute.
9498 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9499 (read_call_site_scope, partial_die_info::read)
9500 (partial_die_info::read, lookup_die_type, follow_die_ref):
9501 Update.
9502 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9503 from dwarf2_get_ref_die_offset.
9504 (attribute::constant_value): New method, from
9505 dwarf2_get_attr_constant_value.
9506 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9507 Declare method.
9508 <constant_value>: New method.
9509
2b2558bf
TT
95102020-03-26 Tom Tromey <tom@tromey.com>
9511
9512 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9513 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9514 (dwarf_type_encoding_name): Move to stringify.c.
9515 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9516 * dwarf2/stringify.c: New file.
9517 * dwarf2/stringify.h: New file.
9518
eeb64781
TT
95192020-03-26 Tom Tromey <tom@tromey.com>
9520
9521 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9522 Rewrite.
9523
a39fdb41
TT
95242020-03-26 Tom Tromey <tom@tromey.com>
9525
9526 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9527 methods.
9528 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9529 (lookup_ranges_base): Likewise.
9530 (read_cutu_die_from_dwo, read_full_die_1): Update.
9531
436c571c
TT
95322020-03-26 Tom Tromey <tom@tromey.com>
9533
9534 * dwarf2/read.c (read_import_statement, read_file_scope)
9535 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9536 (read_lexical_block_scope, read_call_site_scope)
9537 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9538 (handle_struct_member_die, process_structure_scope)
9539 (update_enumeration_type_from_children)
9540 (process_enumeration_scope, read_array_type, read_common_block)
9541 (read_namespace, read_module, read_subroutine_type): Update.
9542 (sibling_die): Remove.
9543
052c8bb8
TT
95442020-03-26 Tom Tromey <tom@tromey.com>
9545
9546 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9547 (build_type_psymtabs_reader, read_structure_type)
9548 (read_enumeration_type, read_full_die_1): Update.
9549 (dwarf2_attr_no_follow): Move to die.h.
9550 * dwarf2/die.h (struct die_info) <attr>: New method.
9551
2b24b6e4
TT
95522020-03-26 Tom Tromey <tom@tromey.com>
9553
9554 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9555 <base_address>: Now an optional.
9556 (dwarf2_find_base_address, dwarf2_rnglists_process)
9557 (dwarf2_ranges_process, fill_in_loclist_baton)
9558 (dwarf2_symbol_mark_computed): Update.
9559
c2d50fd0
TT
95602020-03-26 Tom Tromey <tom@tromey.com>
9561
9562 * dwarf2/read.c (struct die_info): Move to die.h.
9563 * dwarf2/die.h: New file.
9564
0df7ad3a
TT
95652020-03-26 Tom Tromey <tom@tromey.com>
9566
9567 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9568 * dwarf2/read.c
9569 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9570 Move to line-header.c.
9571 (read_checked_initial_length_and_offset, read_formatted_entries):
9572 Likewise.
9573 (dwarf_decode_line_header): Split into two.
9574 * dwarf2/line-header.c
9575 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9576 Move from read.c.
9577 (read_checked_initial_length_and_offset, read_formatted_entries):
9578 Likewise.
9579 (dwarf_decode_line_header): New function, split from read.c.
9580
86c0bb4c
TT
95812020-03-26 Tom Tromey <tom@tromey.com>
9582
9583 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9584 Declare method.
9585 * dwarf2/read.c (read_attribute_value): Update.
9586 (dwarf2_per_objfile::read_line_string): Rename from
9587 read_indirect_line_string.
9588 (read_formatted_entries): Update.
9589
2ef46c2f
TT
95902020-03-26 Tom Tromey <tom@tromey.com>
9591
9592 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9593 variable.
9594
4f9c1eda
TT
95952020-03-26 Tom Tromey <tom@tromey.com>
9596
9597 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9598 const.
9599 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9600 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9601 parameter const.
9602
5a0e026f
TT
96032020-03-26 Tom Tromey <tom@tromey.com>
9604
9605 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9606 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9607 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9608 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9609
8844c11b
TT
96102020-03-26 Tom Tromey <tom@tromey.com>
9611
9612 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9613 file_names_size, file_full_name, file_file_name>: Use const.
9614 <file_name_at, file_names>: Add const overload.
9615 * dwarf2/line-header.c (line_header::file_file_name)
9616 (line_header::file_full_name): Update.
9617
c90ec28a
TT
96182020-03-26 Tom Tromey <tom@tromey.com>
9619
9620 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9621 (macro_start_file, consume_improper_spaces)
9622 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9623 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9624 (dwarf_decode_macros): Move to macro.c.
9625 * dwarf2/macro.c: New file.
9626 * dwarf2/macro.h: New file.
9627 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9628
4f44ae6c
TT
96292020-03-26 Tom Tromey <tom@tromey.com>
9630
9631 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9632 method.
9633 * dwarf2/section.c: New method. From
9634 read_indirect_string_at_offset_from.
9635 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9636 (read_indirect_string_at_offset_from): Move to section.c.
9637 (read_indirect_string_at_offset): Rewrite.
9638 (read_indirect_line_string_at_offset): Remove.
9639 (read_indirect_string, read_indirect_line_string)
9640 (dwarf_decode_macro_bytes): Update.
9641
a0194fa8
TT
96422020-03-26 Tom Tromey <tom@tromey.com>
9643
9644 * dwarf2/section.h (struct dwarf2_section_info)
9645 <overload_complaint>: Declare.
9646 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9647 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9648 Rename from dwarf2_section_buffer_overflow_complaint.
9649 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9650 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9651
3d27bbdb
TT
96522020-03-26 Tom Tromey <tom@tromey.com>
9653
9654 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9655 Declare.
9656 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9657 Move from read.c.
9658 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9659 to section.c.
9660
9eac9650
TT
96612020-03-26 Tom Tromey <tom@tromey.com>
9662
9663 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9664
bf80d710
TT
96652020-03-26 Tom Tromey <tom@tromey.com>
9666
9667 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9668 "builder".
9669 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9670 parameter.
9671 (dwarf_decode_macros): Update.
9672
0314b390
TT
96732020-03-26 Tom Tromey <tom@tromey.com>
9674
9675 * dwarf2/read.c (read_attribute_value): Update.
9676 (read_indirect_string_from_dwz): Move to dwz.c; change into
9677 method.
9678 (dwarf_decode_macro_bytes): Update.
9679 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9680 * dwarf2/dwz.c: New file.
9681 * Makefile.in (COMMON_SFILES): Add dwz.c.
9682
9fda78b6
TT
96832020-03-26 Tom Tromey <tom@tromey.com>
9684
9685 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9686 * dwarf2/read.c: Add include.
9687 * dwarf2/index-write.c: Add include.
9688 * dwarf2/index-cache.c: Add include.
9689 * dwarf2/dwz.h: New file.
9690
33aa3c10
TT
96912020-03-25 Tom Tromey <tom@tromey.com>
9692
9693 * compile/compile-object-load.c (get_out_value_type): Mention
9694 correct symbol name in error message.
9695
d503b685
HD
96962020-03-25 Hannes Domani <ssbssa@yahoo.de>
9697
9698 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9699
7b1eff95
TV
97002020-03-25 Tom de Vries <tdevries@suse.de>
9701
9702 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9703 * symmisc.c (dump_symtab_1): Print user and includes fields.
9704 (maintenance_info_symtabs): Same.
9705
dd895392
AB
97062020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9707
9708 PR gdb/25534
9709 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9710 (riscv_regcache_cooked_write): New function.
9711 (riscv_push_dummy_call): Use new function.
9712 (riscv_return_value): Likewise.
9713
5ab2fbf1
SM
97142020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9715
9716 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9717 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9718 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9719 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9720 * infrun.c (follow_fork): Likewise.
9721 (follow_fork_inferior): Likewise.
9722 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9723 * linux-nat.h (class linux_nat_target): Likewise.
9724 * remote.c (class remote_target) <follow_fork>: Likewise.
9725 (remote_target::follow_fork): Likewise.
9726 * target-delegates.c: Re-generate.
9727 * target.c (default_follow_fork): Likewise.
9728 (target_follow_fork): Likewise.
9729 * target.h (struct target_ops) <follow_fork>: Likewise.
9730 (target_follow_fork): Likewise.
9731
a64fafb5
TV
97322020-03-24 Tom de Vries <tdevries@suse.de>
9733
9734 * psymtab.c (maintenance_info_psymtabs): Print user field.
9735
fe26d3a3
TT
97362020-03-20 Tom Tromey <tromey@adacore.com>
9737
9738 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9739 const.
9740 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9741 const.
9742
c884cc46
SM
97432020-03-20 Simon Marchi <simon.marchi@efficios.com>
9744
9745 * ptrace.m4: Don't check for ptrace declaration.
9746 * config.in: Re-generate.
9747 * configure: Re-generate.
9748 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9749 not defined.
9750
1ff700c2
KR
97512020-03-20 Kamil Rytarowski <n54@gmx.com>
9752
9753 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9754 `PTRACE_TYPE_RET'.
9755 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9756 * sparc-nat.c (gdb_ptrace): Likewise.
9757 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9758
f7d4f0b1
TT
97592020-03-20 Tom Tromey <tromey@adacore.com>
9760
9761 * c-exp.y (lex_one_token): Fix assert.
9762
f67210ff
TT
97632020-03-20 Tom Tromey <tromey@adacore.com>
9764
9765 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9766 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9767 strncpy call.
9768
1773be9e
TT
97692020-03-20 Tom Tromey <tromey@adacore.com>
9770
9771 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9772
70304be9
TT
97732020-03-20 Tom Tromey <tromey@adacore.com>
9774
9775 * ada-valprint.c (print_variant_part): Remove parameters; switch
9776 to value-based API.
9777 (print_field_values): Likewise.
9778 (ada_val_print_struct_union): Likewise.
9779 (ada_value_print_1): Update.
9780
9faa006d
KR
97812020-03-20 Kamil Rytarowski <n54@gmx.com>
9782
9783 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9784 nbsd_nat_target instead of inf_ptrace_target.
9785 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9786 nbsd_nat_target.
9787
4a90f062
KR
97882020-03-20 Kamil Rytarowski <n54@gmx.com>
9789
9790 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9791 it to the ptrace call.
9792 * (store_registers): Likewise.
9793
97942020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9795
9796 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9797 it to the ptrace call.
9798 * (store_registers): Likewise.
9799
2d07da27
LM
98002020-03-19 Luis Machado <luis.machado@linaro.org>
9801
9802 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9803 valid, fetch vg value from ptrace.
9804
f09db380
KR
98052020-03-19 Kamil Rytarowski <n54@gmx.com>
9806 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9807 * inf-ptrace.c: Likewise.
9808 * (gdb_ptrace): Add.
9809 * (inf_ptrace_target::resume): Update.
9810 * (inf_ptrace_target::xfer_partial): Likewise.
9811 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9812 * (inf_ptrace_peek_poke): Update.
9813
fcc7376e
KR
98142020-03-19 Kamil Rytarowski <n54@gmx.com>
9815
9816 * x86-bsd-nat.c (gdb_ptrace): New.
9817 * (x86bsd_dr_set): Add new argument `ptid'.
9818 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9819 x86bsd_dr_set_addr): Update.
9820
cada5fc9
AB
98212020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9822
9823 * remote.c (remote_target::process_stop_reply): Handle events for
9824 all threads differently.
9825
19a2740f
AB
98262020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9827
9828 * completer.c (completion_tracker::remove_completion): Define new
9829 function.
9830 * completer.h (completion_tracker::remove_completion): Declare new
9831 function.
9832 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9833 when adding a C++ function symbol.
9834
724fd9ba
AB
98352020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9836
9837 * completer.c (completion_tracker::completion_hash_entry): Define
9838 new class.
9839 (advance_to_filename_complete_word_point): Call
9840 recompute_lowest_common_denominator.
9841 (completion_tracker::completion_tracker): Call discard_completions
9842 to setup the hash table.
9843 (completion_tracker::discard_completions): Allow for being called
9844 from the constructor, pass new equal function, and element deleter
9845 when constructing the hash table. Initialise new class member
9846 variables.
9847 (completion_tracker::maybe_add_completion): Remove use of
9848 m_entries_vec, and store more information into m_entries_hash.
9849 (completion_tracker::recompute_lcd_visitor): New function, most
9850 content taken from...
9851 (completion_tracker::recompute_lowest_common_denominator):
9852 ...here, this now just visits each item in the hash calling the
9853 above visitor.
9854 (completion_tracker::build_completion_result): Remove use of
9855 m_entries_vec, call recompute_lowest_common_denominator.
9856 * completer.h (completion_tracker::have_completions): Remove use
9857 of m_entries_vec.
9858 (completion_tracker::completion_hash_entry): Declare new class.
9859 (completion_tracker::recompute_lowest_common_denominator): Change
9860 function signature.
9861 (completion_tracker::recompute_lcd_visitor): Declare new function.
9862 (completion_tracker::m_entries_vec): Delete.
9863 (completion_tracker::m_entries_hash): Initialize to NULL.
9864 (completion_tracker::m_lowest_common_denominator_valid): New
9865 member variable.
9866 (completion_tracker::m_lowest_common_denominator_max_length): New
9867 member variable.
9868
5a82b8a1
KR
98692020-03-17 Kamil Rytarowski <n54@gmx.com>
9870
9871 * regformats/regdef.h: Put reg in gdb namespace.
9872
fb516a69
KR
98732020-03-17 Kamil Rytarowski <n54@gmx.com>
9874
9875 * i386-bsd-nat.c (gdb_ptrace): New.
9876 * (i386bsd_fetch_inferior_registers,
9877 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9878 * (i386bsd_fetch_inferior_registers,
9879 i386bsd_store_inferior_registers) Use gdb_ptrace.
9880
1c0aa1fb
KR
98812020-03-17 Kamil Rytarowski <n54@gmx.com>
9882
9883 * amd64-bsd-nat.c (gdb_ptrace): New.
9884 * (amd64bsd_fetch_inferior_registers,
9885 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9886 * (amd64bsd_fetch_inferior_registers,
9887 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9888
5ccd2fb7
KR
98892020-03-17 Kamil Rytarowski <n54@gmx.com>
9890
9891 * user-regs.c (user_reg::read): Rename to...
9892 (user_reg::xread): ...this.
9893 * (append_user_reg): Rename argument `read' to `xread'.
9894 * (user_reg_add_builtin): Likewise.
9895 * (user_reg_add): Likewise.
9896 * (value_of_user_reg): Likewise.
9897
2108a63a
KR
98982020-03-17 Kamil Rytarowski <n54@gmx.com>
9899
9900 * sparc-nat.c (gdb_ptrace): New.
9901 * sparc-nat.c (sparc_fetch_inferior_registers)
9902 (sparc_store_inferior_registers) Remove obsolete comment.
9903 * sparc-nat.c (sparc_fetch_inferior_registers)
9904 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9905 * sparc-nat.c (sparc_fetch_inferior_registers)
9906 (sparc_store_inferior_registers) Use gdb_ptrace.
9907
a225c9a8
KR
99082020-03-17 Kamil Rytarowski <n54@gmx.com>
9909
9910 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9911 it to the ptrace call.
9912 * sh-nbsd-nat.c (store_registers): Likewise.
9913
98097623
KR
99142020-03-17 Kamil Rytarowski <n54@gmx.com>
9915
9916 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9917 nbsd_nat_target instead of inf_ptrace_target.
9918 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9919 nbsd_nat_target.
9920
9e38d619
KR
99212020-03-17 Kamil Rytarowski <n54@gmx.com>
9922
9923 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9924
a2ecbe9f
KR
99252020-03-17 Kamil Rytarowski <n54@gmx.com>
9926
9927 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9928 <sys/sysctl.h>.
9929 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9930
58990295
TV
99312020-03-17 Tom de Vries <tdevries@suse.de>
9932
9933 PR gdb/23710
9934 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9935 fields.
9936 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9937 fields.
9938 (process_imported_unit_die): Skip import of c++ CUs.
9939
771dd3a8
TT
99402020-03-16 Tom Tromey <tom@tromey.com>
9941
9942 * p-valprint.c (pascal_object_print_value): Initialize
9943 base_value.
9944
817a7585
AK
99452020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9946 Shahab Vahedi <shahab@synopsys.com>
9947
9948 * Makefile.in: Add arch/arc.o
9949 * configure.tgt: Likewise.
9950 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9951 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9952 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9953 * arc-tdep.h (arc_read_description): Add proto type.
9954 * arch/arc.c: New file.
9955 * arch/arc.h: Likewise.
9956 * features/Makefile: Replace old target descriptions with new.
9957 * features/arc-arcompact.c: Remove.
9958 * features/arc-arcompact.xml: Likewise.
9959 * features/arc-v2.c: Likewise
9960 * features/arc-v2.xml: Likewise
9961 * features/arc/aux-arcompact.xml: New file.
9962 * features/arc/aux-v2.xml: Likewise.
9963 * features/arc/core-arcompact.xml: Likewise.
9964 * features/arc/core-v2.xml: Likewise.
9965 * features/arc/aux-arcompact.c: Generate.
9966 * features/arc/aux-v2.c: Likewise.
9967 * features/arc/core-arcompact.c: Likewise.
9968 * features/arc/core-v2.c: Likewise.
9969 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9970
67430cd0
TT
99712020-03-16 Tom Tromey <tromey@adacore.com>
9972
9973 PR gdb/25663:
9974 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9975 putting value into bcache.
9976
30efb6c7
SM
99772020-03-16 Simon Marchi <simon.marchi@efficios.com>
9978
9979 PR gdb/21500
9980 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9981 to...
9982 (amd64_windows_init_abi_common): ... this. Don't set size of
9983 long type.
9984 (amd64_windows_init_abi): New function.
9985 (amd64_cygwin_init_abi): New function.
9986 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9987 the Cygwin OS ABI.
9988 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9989 comment.
9990
8db52437
SM
99912020-03-16 Simon Marchi <simon.marchi@efficios.com>
9992
9993 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9994 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9995 (pe_import_directory_entry): New struct type.
9996 (is_linked_with_cygwin_dll): New function.
9997 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9998 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9999 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10000
5982a56a
SM
100012020-03-16 Simon Marchi <simon.marchi@efficios.com>
10002
10003 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10004 i386_cygwin_core_osabi_sniffer.
10005
7a1998df
SM
100062020-03-16 Simon Marchi <simon.marchi@efficios.com>
10007
10008 * i386-cygwin-tdep.c: Rename to...
10009 * i386-windows-tdep.c: ... this.
10010 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10011 i386-windows-tdep.c.
10012 * configure.tgt: Likewise.
10013
053205cc
SM
100142020-03-16 Simon Marchi <simon.marchi@efficios.com>
10015
10016 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10017 * osabi.c (gdb_osabi_names): Add "Windows".
10018 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10019 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10020 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10021 i386_cygwin_osabi_sniffer.
10022 (_initialize_i386_cygwin_tdep): Register OS ABI
10023 GDB_OSABI_WINDOWS for i386.
10024 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10025 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10026 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10027 for x86-64.
10028 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10029 when the target matches '*-*-mingw*'.
10030
fe4b2ee6
SM
100312020-03-16 Simon Marchi <simon.marchi@efficios.com>
10032
10033 * defs.h (enum gdb_osabi): Move to...
10034 * osabi.h (enum gdb_osabi): ... here.
10035 * gdbarch.sh: Include osabi.h in gdbarch.h.
10036 * gdbarch.h: Re-generate.
10037
cb9b645d
SM
100382020-03-16 Simon Marchi <simon.marchi@efficios.com>
10039
10040 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10041 function.
10042 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10043
3293bbaf
TT
100442020-03-14 Tom Tromey <tom@tromey.com>
10045
10046 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10047 for C++.
10048 (c_type_print_modifier): Likewise. Add "language" parameter.
10049 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10050 (c_type_print_base_1): Update.
10051 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10052 constants.
10053 * type-stack.c (type_stack::insert): Handle tp_atomic and
10054 tp_restrict.
10055 (type_stack::follow_type_instance_flags): Likewise.
10056 (type_stack::follow_types): Likewise. Merge type-following code.
10057 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10058 (space_identifier, cv_with_space_id)
10059 (const_or_volatile_or_space_identifier_noopt)
10060 (const_or_volatile_or_space_identifier): Remove.
10061 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10062 rules.
10063 (ptr_operator, typebase): Update.
10064 (enum token_flag) <FLAG_C>: New constant.
10065 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10066 "_Atomic".
10067 (lex_one_token): Handle FLAG_C.
10068
154151a6
KR
100692020-03-14 Kamil Rytarowski <n54@gmx.com>
10070
10071 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10072 it to the ptrace call.
10073 * m68k-bsd-nat.c (store_registers): Likewise.
10074
bc107784
KR
100752020-03-14 Kamil Rytarowski <n54@gmx.com>
10076
10077 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10078 gdb_byte *.
10079 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10080 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10081 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10082
01a80117
KR
100832020-03-14 Kamil Rytarowski <n54@gmx.com>
10084
10085 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10086 nbsd_nat_target instead of inf_ptrace_target.
10087 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10088 nbsd_nat_target.
10089
f90280ca
KR
100902020-03-14 Kamil Rytarowski <n54@gmx.com>
10091
10092 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10093 register_t.
10094
6def66f1
KR
100952020-03-14 Kamil Rytarowski <n54@gmx.com>
10096
10097 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10098 it to the ptrace call.
10099 * alpha-bsd-nat.c (store_registers): Likewise.
10100
66eaca97
KR
101012020-03-14 Kamil Rytarowski <n54@gmx.com>
10102
10103 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10104 includes.
10105 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10106 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10107 fill_fpregset): Likewise.
10108
4fed520b
KR
101092020-03-14 Kamil Rytarowski <n54@gmx.com>
10110
10111 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10112 nbsd_nat_target instead of inf_ptrace_target.
10113 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10114 nbsd_nat_target.
10115
2190cf06
KR
101162020-03-14 Kamil Rytarowski <n54@gmx.com>
10117
10118 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10119 register_t.
10120
75c56d3d
KR
101212020-03-14 Kamil Rytarowski <n54@gmx.com>
10122
10123 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10124 it to the ptrace call.
10125 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10126 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10127 * arm-nbsd-nat.c (store_register): Likewise.
10128 * arm-nbsd-nat.c (store_regs): Likewise.
10129 * arm-nbsd-nat.c (store_fp_register): Likewise.
10130 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10131
6018d381
KR
101322020-03-14 Kamil Rytarowski <n54@gmx.com>
10133
10134 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10135 nbsd_nat_target instead of inf_ptrace_target.
10136 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10137 nbsd_nat_target.
10138
013f99f0
KR
101392020-03-14 Kamil Rytarowski <n54@gmx.com>
10140
10141 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10142 it to the ptrace call.
10143 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10144
12753073
KR
101452020-03-14 Kamil Rytarowski <n54@gmx.com>
10146
6227b330
KR
10147 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10148 it to the ptrace call.
10149 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10150
101512020-03-14 Kamil Rytarowski <n54@gmx.com>
10152
10153 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10154 gdb_byte *.
12753073
KR
10155 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10156
d5be5fa4
KR
101572020-03-14 Kamil Rytarowski <n54@gmx.com>
10158
10159 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10160 instead of inf_ptrace_target.
10161 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10162 nbsd_nat_target.
10163
8110f842
KR
101642020-03-14 Kamil Rytarowski <n54@gmx.com>
10165
10166 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10167 register_t.
10168
52feded7
KR
101692020-03-14 Kamil Rytarowski <n54@gmx.com>
10170
10171 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10172 register_t.
10173
25567eee
KR
101742020-03-14 Kamil Rytarowski <n54@gmx.com>
10175
10176 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10177 register_t.
10178
426a9c18
TT
101792020-03-13 Tom Tromey <tom@tromey.com>
10180
10181 * value.h (val_print): Don't declare.
10182 * valprint.h (val_print_array_elements)
10183 (val_print_scalar_formatted, generic_val_print): Don't declare.
10184 * valprint.c (generic_val_print_array): Take a struct value.
10185 (generic_val_print_ptr, generic_val_print_memberptr)
10186 (generic_val_print_bool, generic_val_print_int)
10187 (generic_val_print_char, generic_val_print_complex)
10188 (generic_val_print): Remove.
10189 (generic_value_print): Update.
10190 (do_val_print): Remove unused parameters. Don't call
10191 la_val_print.
10192 (val_print): Remove.
10193 (common_val_print): Update. Don't call value_check_printable.
10194 (val_print_scalar_formatted, val_print_array_elements): Remove.
10195 * rust-lang.c (rust_val_print): Remove.
10196 (rust_language_defn): Update.
10197 * p-valprint.c (pascal_val_print): Remove.
10198 (pascal_value_print_inner): Update.
10199 (pascal_object_print_val_fields, pascal_object_print_val):
10200 Remove.
10201 (pascal_object_print_static_field): Update.
10202 * p-lang.h (pascal_val_print): Don't declare.
10203 * p-lang.c (pascal_language_defn): Update.
10204 * opencl-lang.c (opencl_language_defn): Update.
10205 * objc-lang.c (objc_language_defn): Update.
10206 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10207 * m2-lang.h (m2_val_print): Don't declare.
10208 * m2-lang.c (m2_language_defn): Update.
10209 * language.h (struct language_defn) <la_val_print>: Remove.
10210 * language.c (unk_lang_value_print_inner): Rename. Change
10211 argument types.
10212 (unknown_language_defn, auto_language_defn): Update.
10213 * go-valprint.c (go_val_print): Remove.
10214 * go-lang.h (go_val_print): Don't declare.
10215 * go-lang.c (go_language_defn): Update.
10216 * f-valprint.c (f_val_print): Remove.
10217 * f-lang.h (f_value_print): Don't declare.
10218 * f-lang.c (f_language_defn): Update.
10219 * d-valprint.c (d_val_print): Remove.
10220 * d-lang.h (d_value_print): Don't declare.
10221 * d-lang.c (d_language_defn): Update.
10222 * cp-valprint.c (cp_print_value_fields)
10223 (cp_print_value_fields_rtti, cp_print_value): Remove.
10224 (cp_print_static_field): Update.
10225 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10226 (c_val_print_struct, c_val_print_union, c_val_print_int)
10227 (c_val_print_memberptr, c_val_print): Remove.
10228 * c-lang.h (c_val_print_array, cp_print_value_fields)
10229 (cp_print_value_fields_rtti): Don't declare.
10230 * c-lang.c (c_language_defn, cplus_language_defn)
10231 (asm_language_defn, minimal_language_defn): Update.
10232 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10233 (ada_val_print_enum): Take a struct value.
10234 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10235 (ada_val_print): Remove.
10236 (ada_value_print_1): Update.
10237 (printable_val_type): Remove.
10238 * ada-lang.h (ada_val_print): Don't declare.
10239 * ada-lang.c (ada_language_defn): Update.
10240
42331a1e
TT
102412020-03-13 Tom Tromey <tom@tromey.com>
10242
10243 * valprint.c (do_val_print): Update.
10244 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10245 a struct value.
10246 (value_to_value_object_no_release): Declare.
10247 * python/py-value.c (value_to_value_object_no_release): New
10248 function.
10249 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10250 struct value.
10251 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10252 function.
10253 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10254 a struct value.
10255 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10256 Declare.
10257 (gdbscm_apply_val_pretty_printer): Take a struct value.
10258 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10259 value.
10260 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10261 value.
10262 * extension-priv.h (struct extension_language_ops)
10263 <apply_val_pretty_printer>: Take a struct value.
10264 * cp-valprint.c (cp_print_value): Create a struct value.
10265 (cp_print_value): Update.
10266
3a916a97
TT
102672020-03-13 Tom Tromey <tom@tromey.com>
10268
10269 * ada-valprint.c (print_field_values): Call common_val_print.
10270
b59eac37
TT
102712020-03-13 Tom Tromey <tom@tromey.com>
10272
10273 * ada-valprint.c (val_print_packed_array_elements): Remove
10274 bitoffset and val parameters. Call common_val_print.
10275 (ada_val_print_string): Remove offset, address, and original_value
10276 parameters.
10277 (ada_val_print_array): Update.
10278 (ada_value_print_array): New function.
10279 (ada_value_print_1): Call it.
10280
03371129
TT
102812020-03-13 Tom Tromey <tom@tromey.com>
10282
10283 * ada-valprint.c (ada_value_print): Use common_val_print.
10284
2e088f8b
TT
102852020-03-13 Tom Tromey <tom@tromey.com>
10286
10287 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10288
39ef85a8
TT
102892020-03-13 Tom Tromey <tom@tromey.com>
10290
10291 * ada-valprint.c (ada_value_print_num): New function.
10292 (ada_value_print_1): Use it.
10293
b9fa6e07
TT
102942020-03-13 Tom Tromey <tom@tromey.com>
10295
10296 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10297
416595d6
TT
102982020-03-13 Tom Tromey <tom@tromey.com>
10299
10300 * ada-valprint.c (ada_value_print_ptr): New function.
10301 (ada_value_print_1): Use it.
10302
5b5e15ec
TT
103032020-03-13 Tom Tromey <tom@tromey.com>
10304
10305 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10306 call common_val_print.
10307 (ada_val_print_1): Update.
10308 (ada_value_print_1): New function.
10309 (ada_value_print_inner): Rewrite.
10310
fbf54e75
TT
103112020-03-13 Tom Tromey <tom@tromey.com>
10312
10313 * cp-valprint.c (cp_print_value_fields): Update.
10314 (cp_print_value): New function.
10315
64b653ca
TT
103162020-03-13 Tom Tromey <tom@tromey.com>
10317
10318 * m2-valprint.c (m2_value_print_inner): Use
10319 cp_print_value_fields.
10320 * cp-valprint.c (cp_print_value_fields): New function.
10321 * c-valprint.c (c_value_print_struct): New function.
10322 (c_value_print_inner): Use c_value_print_struct.
10323 * c-lang.h (cp_print_value_fields): Declare.
10324
6999f067
TT
103252020-03-13 Tom Tromey <tom@tromey.com>
10326
10327 * c-valprint.c (c_value_print_array): New function.
10328 (c_value_print_inner): Use it.
10329
ce80b8bd
TT
103302020-03-13 Tom Tromey <tom@tromey.com>
10331
10332 * c-valprint.c (c_value_print_memberptr): New function.
10333 (c_value_print_inner): Use it.
10334
2faac269
TT
103352020-03-13 Tom Tromey <tom@tromey.com>
10336
10337 * c-valprint.c (c_value_print_int): New function.
10338 (c_value_print_inner): Use it.
10339
da3e2c29
TT
103402020-03-13 Tom Tromey <tom@tromey.com>
10341
10342 * c-valprint.c (c_value_print_ptr): New function.
10343 (c_value_print_inner): Use it.
10344
50836231
TT
103452020-03-13 Tom Tromey <tom@tromey.com>
10346
10347 * c-valprint.c (c_value_print_inner): Rewrite.
10348
4f412b6e
TT
103492020-03-13 Tom Tromey <tom@tromey.com>
10350
10351 * valprint.c (generic_value_print_complex): New function.
10352 (generic_value_print): Use it.
10353
f5354008
TT
103542020-03-13 Tom Tromey <tom@tromey.com>
10355
10356 * valprint.c (generic_val_print_float): Don't call
10357 val_print_scalar_formatted.
10358 (generic_val_print, generic_value_print): Update.
10359
3eec3b05
TT
103602020-03-13 Tom Tromey <tom@tromey.com>
10361
10362 * valprint.c (generic_value_print_char): New function
10363 (generic_value_print): Use it.
10364
fdddfccb
TT
103652020-03-13 Tom Tromey <tom@tromey.com>
10366
10367 * valprint.c (generic_value_print_int): New function.
10368 (generic_value_print): Use it.
10369
6dde7521
TT
103702020-03-13 Tom Tromey <tom@tromey.com>
10371
10372 * valprint.c (generic_value_print_bool): New function.
10373 (generic_value_print): Use it.
10374
4112d2e6
TT
103752020-03-13 Tom Tromey <tom@tromey.com>
10376
10377 * valprint.c (generic_val_print_func): Simplify.
10378 (generic_val_print, generic_value_print): Update.
10379
65786af6
TT
103802020-03-13 Tom Tromey <tom@tromey.com>
10381
10382 * valprint.c (generic_val_print_flags): Remove.
10383 (generic_val_print, generic_value_print): Update.
10384 (val_print_type_code_flags): Add original_value parameter.
10385
40f3ce18
TT
103862020-03-13 Tom Tromey <tom@tromey.com>
10387
10388 * valprint.c (generic_val_print): Update.
10389 (generic_value_print): Update.
10390 * valprint.c (generic_val_print_enum): Don't call
10391 val_print_scalar_formatted.
10392
2a5b130b
TT
103932020-03-13 Tom Tromey <tom@tromey.com>
10394
10395 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10396 * valprint.c (generic_value_print_ptr): New function.
10397
abc66ce9
TT
103982020-03-13 Tom Tromey <tom@tromey.com>
10399
10400 * valprint.c (generic_value_print): Rewrite.
10401
07a32858
TT
104022020-03-13 Tom Tromey <tom@tromey.com>
10403
10404 * p-valprint.c (pascal_object_print_value_fields)
10405 (pascal_object_print_value): New functions.
10406
64d64d3a
TT
104072020-03-13 Tom Tromey <tom@tromey.com>
10408
10409 * p-valprint.c (pascal_value_print_inner): Rewrite.
10410
6a95a1f5
TT
104112020-03-13 Tom Tromey <tom@tromey.com>
10412
10413 * f-valprint.c (f_value_print_innner): Rewrite.
10414
59fcdac6
TT
104152020-03-13 Tom Tromey <tom@tromey.com>
10416
10417 * m2-valprint.c (m2_print_unbounded_array): New overload.
10418 (m2_print_unbounded_array): Update.
10419 (m2_print_array_contents): Take a struct value.
10420 (m2_value_print_inner): Rewrite.
10421
d133c3e1
TT
104222020-03-13 Tom Tromey <tom@tromey.com>
10423
10424 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10425 (d_value_print_inner): New function.
10426 * d-lang.h (d_value_print_inner): Declare.
10427 * d-lang.c (d_language_defn): Use d_value_print_inner.
10428
23b0f06b
TT
104292020-03-13 Tom Tromey <tom@tromey.com>
10430
10431 * go-valprint.c (go_value_print_inner): New function.
10432 * go-lang.h (go_value_print_inner): Declare.
10433 * go-lang.c (go_language_defn): Use go_value_print_inner.
10434
5f56f7cb
TT
104352020-03-13 Tom Tromey <tom@tromey.com>
10436
10437 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10438 API.
10439 (rust_val_print): Rewrite.
10440 (rust_value_print_inner): New function, from rust_val_print.
10441 (rust_language_defn): Use rust_value_print_inner.
10442
26792ee0
TT
104432020-03-13 Tom Tromey <tom@tromey.com>
10444
10445 * ada-valprint.c (ada_value_print_inner): New function.
10446 * ada-lang.h (ada_value_print_inner): Declare.
10447 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10448
24051bbe
TT
104492020-03-13 Tom Tromey <tom@tromey.com>
10450
10451 * f-valprint.c (f_value_print_innner): New function.
10452 * f-lang.h (f_value_print_innner): Declare.
10453 * f-lang.c (f_language_defn): Use f_value_print_innner.
10454
c0941be6
TT
104552020-03-13 Tom Tromey <tom@tromey.com>
10456
10457 * p-valprint.c (pascal_value_print_inner): New function.
10458 * p-lang.h (pascal_value_print_inner): Declare.
10459 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10460
62c4663d
TT
104612020-03-13 Tom Tromey <tom@tromey.com>
10462
10463 * m2-valprint.c (m2_value_print_inner): New function.
10464 * m2-lang.h (m2_value_print_inner): Declare.
10465 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10466
62182190
TT
104672020-03-13 Tom Tromey <tom@tromey.com>
10468
10469 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10470 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10471 * c-valprint.c (c_value_print_inner): New function.
10472 * c-lang.h (c_value_print_inner): Declare.
10473 * c-lang.c (c_language_defn, cplus_language_defn)
10474 (asm_language_defn, minimal_language_defn): Use
10475 c_value_print_inner.
10476
1e592a8a
TT
104772020-03-13 Tom Tromey <tom@tromey.com>
10478
10479 * p-valprint.c (pascal_object_print_value_fields): Now static.
10480 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10481
7fe471e9
TT
104822020-03-13 Tom Tromey <tom@tromey.com>
10483
10484 * c-valprint.c (c_val_print_array): Simplify.
10485
d121c6ce
TT
104862020-03-13 Tom Tromey <tom@tromey.com>
10487
10488 * valprint.c (value_print_array_elements): New function.
10489 * valprint.h (value_print_array_elements): Declare.
10490
4dba70ee
TT
104912020-03-13 Tom Tromey <tom@tromey.com>
10492
10493 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10494 * mips-tdep.c (mips_print_register): Use
10495 value_print_scalar_formatted.
10496
4f9ae810
TT
104972020-03-13 Tom Tromey <tom@tromey.com>
10498
10499 * valprint.h (value_print_scalar_formatted): Declare.
10500 * valprint.c (value_print_scalar_formatted): New function.
10501
156bfec9
TT
105022020-03-13 Tom Tromey <tom@tromey.com>
10503
10504 * valprint.h (generic_value_print): Declare.
10505 * valprint.c (generic_value_print): New function.
10506
2b4e573d
TT
105072020-03-13 Tom Tromey <tom@tromey.com>
10508
10509 * valprint.c (do_val_print): Call la_value_print_inner, if
10510 available.
10511 * rust-lang.c (rust_language_defn): Update.
10512 * p-lang.c (pascal_language_defn): Update.
10513 * opencl-lang.c (opencl_language_defn): Update.
10514 * objc-lang.c (objc_language_defn): Update.
10515 * m2-lang.c (m2_language_defn): Update.
10516 * language.h (struct language_defn) <la_value_print_inner>: New
10517 member.
10518 * language.c (unknown_language_defn, auto_language_defn): Update.
10519 * go-lang.c (go_language_defn): Update.
10520 * f-lang.c (f_language_defn): Update.
10521 * d-lang.c (d_language_defn): Update.
10522 * c-lang.c (c_language_defn, cplus_language_defn)
10523 (asm_language_defn, minimal_language_defn): Update.
10524 * ada-lang.c (ada_language_defn): Update.
10525
a1f6a07c
TT
105262020-03-13 Tom Tromey <tom@tromey.com>
10527
10528 * c-valprint.c (c_value_print): Use common_val_print.
10529
410cf315
TT
105302020-03-13 Tom Tromey <tom@tromey.com>
10531
10532 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10533
72a45c93
TT
105342020-03-13 Tom Tromey <tom@tromey.com>
10535
10536 * f-valprint.c (f77_print_array_1, f_val_print): Use
10537 common_val_print.
10538
040f66bd
TT
105392020-03-13 Tom Tromey <tom@tromey.com>
10540
10541 * riscv-tdep.c (riscv_print_one_register_info): Use
10542 common_val_print.
10543
a6e05a6c
TT
105442020-03-13 Tom Tromey <tom@tromey.com>
10545
10546 * mi/mi-main.c (output_register): Use common_val_print.
10547
3444c526
TT
105482020-03-13 Tom Tromey <tom@tromey.com>
10549
10550 * infcmd.c (default_print_one_register_info): Use
10551 common_val_print.
10552
c2a44efe
TT
105532020-03-13 Tom Tromey <tom@tromey.com>
10554
10555 * valprint.h (common_val_print_checked): Declare.
10556 * valprint.c (common_val_print_checked): New function.
10557 * stack.c (print_frame_arg): Use common_val_print_checked.
10558
b0c26e99
TT
105592020-03-13 Tom Tromey <tom@tromey.com>
10560
10561 * valprint.c (do_val_print): New function, from val_print.
10562 (val_print): Use do_val_print.
10563 (common_val_print): Use do_val_print.
10564
ce3acbe9
TT
105652020-03-13 Tom Tromey <tom@tromey.com>
10566
10567 * valprint.c (value_print): Use scoped_value_mark.
10568
96c7f873
TV
105692020-03-13 Tom de Vries <tdevries@suse.de>
10570
10571 PR symtab/25646
10572 * psymtab.c (partial_symtab::partial_symtab): Don't set
10573 globals_offset and statics_offset. Push element onto
10574 current_global_psymbols and current_static_psymbols stacks.
10575 (concat): New function.
10576 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10577 element from current_global_psymbols and current_static_psymbols
10578 stacks. Concat popped elements to global_psymbols and
10579 static_symbols.
10580 (add_psymbol_to_list): Use current_global_psymbols and
10581 current_static_psymbols stacks.
10582 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10583 current_static_psymbols fields.
10584
6ba0a321
CB
105852020-03-12 Christian Biesinger <cbiesinger@google.com>
10586
10587 * corelow.c (sniff_core_bfd): Remove.
10588 (class core_target) <m_core_vec>: Remove.
10589 (core_target::core_target): Update.
10590 (core_file_fns): Remove.
10591 (deprecated_add_core_fns): Remove.
10592 (default_core_sniffer): Remove.
10593 (sniff_core_bfd): Remove.
10594 (default_check_format): Remove.
10595 (gdb_check_format): Remove.
10596 (core_target_open): Update.
10597 (core_target::get_core_register_section): Update.
10598 (get_core_registers_cb): Update.
10599 (core_target::fetch_registers): Update.
10600 * gdbcore.h (struct core_fns): Remove.
10601 (deprecated_add_core_fns): Remove.
10602 (default_core_sniffer): Remove.
10603 (default_check_format): Remove.
10604
227031b2
TT
106052020-03-12 Tom Tromey <tom@tromey.com>
10606
10607 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10608 CORE_ADDR.
10609 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10610
53807e9f
TT
106112020-03-12 Tom Tromey <tom@tromey.com>
10612
10613 * remote.c (remote_target::download_tracepoint)
10614 (remote_target::enable_tracepoint)
10615 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10616 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10617 sprintf_vma.
10618
64f25102
TT
106192020-03-12 Tom Tromey <tom@tromey.com>
10620
10621 * symfile-mem.c: Update CORE_ADDR size assert.
10622
272cd5a3
SM
106232020-03-12 Simon Marchi <simon.marchi@efficios.com>
10624
10625 * selftest.m4: Move to gdbsupport/.
10626 * acinclude.m4: Update path to selftest.m4.
10627
74cd3f9d
SM
106282020-03-12 Simon Marchi <simon.marchi@efficios.com>
10629
10630 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10631 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10632 gdbarch-selfselftests.c and selftest-arch.c.
10633 (SUBDIR_UNITTESTS_OBS): Rename to...
10634 (SELFTESTS_OBS): ... this.
10635 (COMMON_SFILES): Remove disasm-selftests.c and
10636 gdbarch-selftests.c.
10637 * configure.ac: Don't add selftest-arch.{c,o} to
10638 CONFIG_{SRCS,OBS}.
10639 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10640 preprocessor conditions.
10641
db6878ac
SM
106422020-03-12 Simon Marchi <simon.marchi@efficios.com>
10643
10644 * configure.ac: Don't source bfd/development.sh.
10645 * selftest.m4: Modify comment.
10646 * configure: Re-generate.
10647
4d696a5c
SM
106482020-03-12 Simon Marchi <simon.marchi@efficios.com>
10649
10650 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10651 not "true" or "false".
10652 * configure: Re-generate.
10653
8dd8e1c7
CB
106542020-03-12 Christian Biesinger <cbiesinger@google.com>
10655
10656 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10657 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10658 renamed to arm_nbsd_supply_gregset.
10659 (fetch_register): Update to call arm_nbsd_supply_gregset.
10660 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10661 (arm_netbsd_nat_target::fetch_registers): Update.
10662 (fetch_elfcore_registers): Removed.
10663 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10664 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10665 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10666 not require NetBSD system headers.
10667 (arm_nbsd_regset): New struct.
10668 (arm_nbsd_iterate_over_regset_sections): New function.
10669 (arm_netbsd_init_abi_common): Updated to call
10670 set_gdbarch_iterate_over_regset_sections.
10671 * arm-nbsd-tdep.h: New file.
10672
dd69bf7a
KB
106732020-03-11 Kevin Buettner <kevinb@redhat.com>
10674
10675 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10676 recursion.
10677
a0761e34
SM
106782020-03-11 Simon Marchi <simon.marchi@efficios.com>
10679
10680 * configure: Re-generate.
10681
e7a82140
TT
106822020-03-11 Tom Tromey <tromey@adacore.com>
10683
10684 * ada-typeprint.c (print_choices): Fix comment.
10685
dcc050c8
AB
106862020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10687
10688 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10689 previous item in the list, when the list has no items.
10690
1c33af77
TV
106912020-03-11 Tom de Vries <tdevries@suse.de>
10692
10693 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10694 PROP_LOCLIST handling code.
10695
8c95582d
AB
106962020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10697
10698 * buildsym-legacy.c (record_line): Pass extra parameter to
10699 record_line.
10700 * buildsym.c (buildsym_compunit::record_line): Take an extra
10701 parameter, reduce duplication in the line table, and record the
10702 is_stmt flag in the line table.
10703 * buildsym.h (buildsym_compunit::record_line): Add extra
10704 parameter.
10705 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10706 non-statement lines.
10707 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10708 this to the symtab builder.
10709 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10710 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10711 through to dwarf_record_line_1.
10712 * infrun.c (process_event_stop_test): When stepping, don't stop at
10713 a non-statement instruction, and only refresh the step info when
10714 we land in the middle of a line's range. Also add an extra
10715 comment.
10716 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10717 field.
10718 * record-btrace.c (btrace_find_line_range): Only record lines
10719 marked as is-statement.
10720 * stack.c (frame_show_address): Show the frame address if we are
10721 in a non-statement sal.
10722 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10723 (maintenance_print_one_line_table): Print a header for the is_stmt
10724 column, and include is_stmt information in the output.
10725 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10726 preference to non-statements.
10727 (find_pcs_for_symtab_line): Prefer is-statement entries.
10728 (find_line_common): Likewise.
10729 * symtab.h (struct linetable_entry): Add is_stmt field.
10730 (struct symtab_and_line): Likewise.
10731 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10732 arranging the line table.
10733
e4003a34
TV
107342020-03-07 Tom de Vries <tdevries@suse.de>
10735
10736 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10737 DIE.
10738
e8932576
TT
107392020-03-07 Tom Tromey <tom@tromey.com>
10740
10741 * valops.c (value_literal_complex): Remove obsolete comment.
10742 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10743 comment.
10744
29734269
SM
107452020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10746
10747 * infrun.h: Forward-declare thread_info.
10748 (set_step_info): Add thread_info parameter, add doc.
10749 * infrun.c (set_step_info): Add thread_info parameter, move doc
10750 to header.
10751 * infrun.c (process_event_stop_test): Pass thread to
10752 set_step_info call.
10753 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10754 set_step_info.
10755 (prepare_one_step): Add thread_info parameter, pass it to
10756 set_step_frame and prepare_one_step (recursive) call.
10757 (step_1): Pass thread to prepare_one_step call.
10758 (step_command_fsm::should_stop): Pass thread to
10759 prepare_one_step.
10760 (until_next_fsm): Pass thread to set_step_frame call.
10761 (finish_command): Pass thread to set_step_info call.
10762
b7d64b29
HD
107632020-03-06 Hannes Domani <ssbssa@yahoo.de>
10764
10765 * windows-tdep.c (windows_solib_create_inferior_hook):
10766 Check if inferior is running.
10767
09f2921c
TV
107682020-03-06 Tom de Vries <tdevries@suse.de>
10769
10770 * NEWS: Fix "the the".
10771 * ctfread.c: Same.
10772
fd760e79
TV
107732020-03-06 Tom de Vries <tdevries@suse.de>
10774
10775 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10776
20ea4a60
AB
107772020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10778
10779 * .dir-locals.el: Add a comment referencing the other copies of
10780 this file.
10781
0afbabf0
JB
107822020-03-05 John Baldwin <jhb@FreeBSD.org>
10783
10784 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10785 psargs.
10786
842806cb
TBA
107872020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10788
10789 * .gitattributes: New file.
10790
be1e3d3e
TT
107912020-03-04 Tom Tromey <tom@tromey.com>
10792
10793 * symmisc.c (print_symbol_bcache_statistics)
10794 (print_objfile_statistics): Update.
10795 * symfile.c (allocate_symtab): Use intern.
10796 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10797 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10798 macro_cache>: Remove.
10799 <string_cache>: New member.
10800 (struct objfile) <intern>: New methods.
10801 * elfread.c (elf_symtab_read): Use intern.
10802 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10803 (dwarf2_compute_name, dwarf2_physname)
10804 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10805 names.
10806 (guess_partial_die_structure_name): Update.
10807 (partial_die_info::fixup): Intern name.
10808 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10809 name.
10810 (dwarf2_name): Intern name. Update.
10811 * buildsym.c (buildsym_compunit::get_macro_table): Use
10812 string_cache.
10813
4e7625fd
TT
108142020-03-04 Tom Tromey <tom@tromey.com>
10815
10816 * jit.c (bfd_open_from_target_memory): Make "target" const.
10817 * corefile.c (gnutarget): Now const.
10818 * gdbcore.h (gnutarget): Now const.
10819
46f9f931
HD
108202020-03-04 Hannes Domani <ssbssa@yahoo.de>
10821
10822 * NEWS: Mention support for WOW64 processes.
10823 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10824 (amd64_windows_segment_register_p): Remove static.
10825 (_initialize_amd64_windows_nat): Update.
10826 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10827 * i386-windows-nat.c (context_offset): Update.
10828 (i386_mappings): Rename and remove static.
10829 (i386_windows_segment_register_p): Remove static.
10830 (_initialize_i386_windows_nat): Update.
10831 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10832 (STATUS_WX86_SINGLE_STEP): New macro.
10833 (EnumProcessModulesEx): New macro.
10834 (Wow64SuspendThread): New macro.
10835 (Wow64GetThreadContext): New macro.
10836 (Wow64SetThreadContext): New macro.
10837 (Wow64GetThreadSelectorEntry): New macro.
10838 (windows_set_context_register_offsets): Add static.
10839 (windows_set_segment_register_p): Likewise.
10840 (windows_add_thread): Adapt for WOW64 processes.
10841 (windows_fetch_one_register): Likewise.
10842 (windows_nat_target::fetch_registers): Likewise.
10843 (windows_store_one_register): Likewise.
10844 (display_selector): Likewise.
10845 (display_selectors): Likewise.
10846 (handle_exception): Likewise.
10847 (windows_continue): Likewise.
10848 (windows_nat_target::resume): Likewise.
10849 (windows_add_all_dlls): Likewise.
10850 (do_initial_windows_stuff): Likewise.
10851 (windows_nat_target::attach): Likewise.
10852 (windows_get_exec_module_filename): Likewise.
10853 (windows_nat_target::create_inferior): Likewise.
10854 (windows_xfer_siginfo): Likewise.
10855 (_initialize_loadable): Initialize Wow64SuspendThread,
10856 Wow64GetThreadContext, Wow64SetThreadContext,
10857 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10858 * windows-nat.h (windows_set_context_register_offsets):
10859 Remove declaration.
10860 (windows_set_segment_register_p): Likewise.
10861 (i386_windows_segment_register_p): Add declaration.
10862 (amd64_windows_segment_register_p): Likewise.
10863
440cf44e
LM
108642020-03-04 Luis Machado <luis.machado@linaro.org>
10865
10866 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10867 in "info registers" for AArch64/ARM.
10868
10869 The change caused "info registers" to not print GPR's.
10870
10871 gdb/ChangeLog:
10872
10873 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10874
10875 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10876 when reg->group is empty and reggroup is not.
10877
1009d92f
TT
108782020-03-03 Tom Tromey <tromey@adacore.com>
10879
10880 * dwarf2/frame.c (struct dwarf2_frame_cache)
10881 <checked_tailcall_bottom, entry_cfa_sp_offset,
10882 entry_cfa_sp_offset_p>: Remove members.
10883 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10884 (dwarf2_frame_prev_register): Don't call
10885 dwarf2_tailcall_sniffer_first.
10886 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10887 * frame-unwind.c (add_unwinder): New fuction.
10888 (frame_unwind_init): Use it. Add tailcall unwinder.
10889
5e5d66b6
AB
108902020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10891 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10892
10893 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10894 value should be printed as true.
10895
584cf46d
HD
108962020-03-03 Hannes Domani <ssbssa@yahoo.de>
10897
10898 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10899 (windows_init_abi): Set and use windows_so_ops.
10900
7b973adc
SDJ
109012020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10902
10903 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10904 when verifying if dealing with a convenience variable.
10905
bb7b70ab
LM
109062020-03-03 Luis Machado <luis.machado@linaro.org>
10907
10908 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10909
9822cb57
SM
109102020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10911
10912 * infrun.c (gdbarch_supports_displaced_stepping): New.
10913 (use_displaced_stepping): Break up conditions in smaller pieces.
10914 Use gdbarch_supports_displaced_stepping.
10915 (displaced_step_prepare_throw): Use
10916 gdbarch_supports_displaced_stepping.
10917
63e163f2
AB
109182020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10919
10920 * NEWS: Mention new behaviour of the history filename.
10921 * top.c (write_history_p): Add comment.
10922 (show_write_history_p): Add header comment, give a different
10923 message when history writing is on, but the history filename is
10924 empty.
10925 (history_filename): Add comment.
10926 (history_filename_empty): New function.
10927 (show_history_filename): Add header comment, give a different
10928 message when the filename is empty.
10929 (init_history): Compare history_filename against nullptr, and only
10930 read history if the filename is not empty.
10931 (set_history_filename): Add header comment, and only make
10932 non-empty filenames absolute.
10933 (init_main): Make the filename argument to 'set history filename'
10934 optional.
10935
81b86b97
CB
109362020-03-02 Christian Biesinger <cbiesinger@google.com>
10937
10938 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10939 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10940 (fetch_fp_register): Update.
10941 (fetch_fp_regs): Update.
10942 (store_fp_register): Update.
10943 (store_fp_regs): Update.
10944 (arm_netbsd_nat_target::read_description): New function.
10945 (fetch_elfcore_registers): Update.
10946
24ed6739
AB
109472020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10948
10949 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10950 general_thread if the stop reply is missing a thread-id.
10951 (remote_target::process_stop_reply): Use the first non-exited
10952 thread if the target didn't pass a thread-id.
10953 * infrun.c (do_target_wait): Move call to
10954 switch_to_inferior_no_thread to ....
10955 (do_target_wait_1): ... here.
10956
a84bb2a0
JT
109572020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10958
10959 * debuginfod-support.c: Include defs.h first.
10960
658dadf0
TV
109612020-02-28 Tom de Vries <tdevries@suse.de>
10962
10963 * symfile.c (set_initial_language): Use default language for lookup.
10964
4ebe4877
SM
109652020-02-28 Simon Marchi <simon.marchi@efficios.com>
10966
10967 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10968 reader variable, pass `this` to read_cutu_die_from_dwo.
10969
e5da1139
AM
109702020-02-27 Aaron Merey <amerey@redhat.com>
10971
10972 * source.c (open_source_file): Check for nullptr when computing
10973 srcpath.
10974
317f7127
TT
109752020-02-27 Tom Tromey <tromey@adacore.com>
10976
10977 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10978 member.
10979 (dwarf2_add_field): Don't update nfields.
10980 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10981
3104d9ee
AB
109822020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10983
10984 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10985 abs.
10986
b83470bf
TT
109872020-02-26 Tom Tromey <tom@tromey.com>
10988
10989 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10990 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10991 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10992 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10993 per_cu_data.
10994
edfe0a0c
TT
109952020-02-26 Tom Tromey <tom@tromey.com>
10996
10997 * dwarf2/index-write.c (psym_index_map): Change type.
10998 (add_address_entry_worker, write_one_signatured_type)
10999 (recursively_count_psymbols, recursively_write_psymbols)
11000 (class debug_names, psyms_seen_size, write_gdbindex)
11001 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11002
0d79cdc4
AM
110032020-02-26 Aaron Merey <amerey@redhat.com>
11004
11005 * Makefile.in: Handle optional debuginfod support.
11006 * NEWS: Update.
11007 * README: Add --with-debuginfod summary.
11008 * config.in: Regenerate.
11009 * configure: Regenerate.
11010 * configure.ac: Handle optional debuginfod support.
11011 * debuginfod-support.c: debuginfod helper functions.
11012 * debuginfod-support.h: Ditto.
11013 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11014 summary.
11015 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11016 when a dwz file cannot be found.
11017 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11018 debuginfo file cannot be found.
11019 * source.c (open_source_file): Query debuginfod servers when a
11020 source file cannot be found.
11021 * top.c (print_gdb_configuration): Include
11022 --{with,without}-debuginfod in the output.
11023
b65ce565
JG
110242020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11025
11026 * thread.c (thr_try_catch_cmd): Print thread name.
11027
d4c9a4f8
SM
110282020-02-26 Simon Marchi <simon.marchi@efficios.com>
11029
11030 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11031 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11032 dwarf2_fetch_die_type_sect_off): Move to...
11033 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11034 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11035 dwarf2_fetch_die_type_sect_off): ... here.
11036 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11037 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11038 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11039
0dce4280
TV
110402020-02-26 Tom de Vries <tdevries@suse.de>
11041
11042 PR gdb/25603
11043 * symfile.c (set_initial_language): Exit-early if
11044 language_mode == language_mode_manual.
11045
450a1bfc
SM
110462020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11047
11048 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11049 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11050 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11051
9e80cfa1
AB
110522020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11053
11054 * gdbtypes.c (create_array_type_with_stride): Handle negative
11055 array strides.
11056 * valarith.c (value_subscripted_rvalue): Likewise.
11057
09624f1f
LM
110582020-02-25 Luis Machado <luis.machado@linaro.org>
11059
11060 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11061
8cb5117c
SM
110622020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11063
11064 * loc.h (dwarf2_get_die_type): Move to...
11065 * read.h (dwarf2_get_die_type): ... here.
11066 * read.c (dwarf2_get_die_type): Move doc to header.
11067
c325c44e
JB
110682020-02-25 Joel Brobecker <brobecker@adacore.com>
11069
11070 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11071 'gnulib/Makefile.in' to the list.
11072
4ac93832
TT
110732020-02-24 Tom Tromey <tom@tromey.com>
11074
11075 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11076 Remove.
11077 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11078 XOBNEWVEC.
11079
197400e8
TT
110802020-02-24 Tom Tromey <tom@tromey.com>
11081
11082 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11083 New method.
11084 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11085 (dw2_do_instantiate_symtab, dw2_get_file_names)
11086 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11087
76935768
TT
110882020-02-24 Tom Tromey <tom@tromey.com>
11089
11090 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11091 make_scoped_restore.
11092 (dwarf2_psymtab::read_symtab): Don't clear
11093 reading_partial_symbols.
11094
a88ef40d
TV
110952020-02-24 Tom de Vries <tdevries@suse.de>
11096
11097 PR gdb/25592
11098 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11099
c9af6521
TV
111002020-02-24 Tom de Vries <tdevries@suse.de>
11101
11102 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11103 commands layout next/prev/regs.
11104
5707a07a
TT
111052020-02-22 Tom Tromey <tom@tromey.com>
11106
11107 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11108 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11109
3b0fb49e
TT
111102020-02-22 Tom Tromey <tom@tromey.com>
11111
11112 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11113
283be8bf
TT
111142020-02-22 Tom Tromey <tom@tromey.com>
11115
11116 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11117 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11118 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11119 * tui/tui.c (_initialize_tui): Add usage text.
11120
ca793b96
TT
111212020-02-22 Tom Tromey <tom@tromey.com>
11122
11123 * tui/tui-win.c (tui_set_focus_command)
11124 (tui_set_win_height_command): Use error_no_arg.
11125 (_initialize_tui_win): Update help text.
11126 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11127
432b5c40
TT
111282020-02-22 Tom Tromey <tom@tromey.com>
11129
11130 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11131 * tui/tui-disasm.h (struct tui_disasm_window)
11132 <display_start_addr>: Declare.
11133 * tui/tui-source.h (struct tui_source_window)
11134 <display_start_addr>: Declare.
11135 * tui/tui-winsource.h (struct tui_source_window_base)
11136 <show_source_line, display_start_addr>: New methods.
11137 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11138 Rename and move to protected section.
11139 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11140 (tui_source_window_base::do_erase_source_content): Update.
11141 (tui_source_window_base::show_source_line): Now a method.
11142 (tui_source_window_base::show_source_content)
11143 (tui_source_window_base::tui_source_window_base)
11144 (tui_source_window_base::rerender)
11145 (tui_source_window_base::refill)
11146 (tui_source_window_base::do_scroll_horizontal)
11147 (tui_source_window_base::set_is_exec_point_at)
11148 (tui_source_window_base::update_breakpoint_info)
11149 (tui_source_window_base::update_exec_info): Update.
11150 * tui/tui-source.c (tui_source_window::set_contents)
11151 (tui_source_window::showing_source_p)
11152 (tui_source_window::do_scroll_vertical)
11153 (tui_source_window::location_matches_p)
11154 (tui_source_window::line_is_displayed): Update.
11155 (tui_source_window::display_start_addr): New method.
11156 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11157 (tui_disasm_window::do_scroll_vertical)
11158 (tui_disasm_window::location_matches_p): Update.
11159 (tui_disasm_window::display_start_addr): New method.
11160
01b1af32
TT
111612020-02-22 Tom Tromey <tom@tromey.com>
11162
11163 * NEWS: Add entry for gdb.register_window_type.
11164 * tui/tui-layout.h (window_factory): New typedef.
11165 (tui_register_window): Declare.
11166 * tui/tui-layout.c (saved_tui_windows): New global.
11167 (tui_apply_current_layout): Use it.
11168 (tui_register_window): New function.
11169 * python/python.c (do_start_initialization): Call
11170 gdbpy_initialize_tui.
11171 (python_GdbMethods): Add "register_window_type" function.
11172 * python/python-internal.h (gdbpy_register_tui_window)
11173 (gdbpy_initialize_tui): Declare.
11174 * python/py-tui.c: New file.
11175 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11176
fc96d20b
TT
111772020-02-22 Tom Tromey <tom@tromey.com>
11178
11179 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11180
935c78c0
TT
111812020-02-22 Tom Tromey <tom@tromey.com>
11182
11183 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11184 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11185 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11186 (tui_set_win_focus_to): Move from tui-win.c.
11187
0240c8f1
TT
111882020-02-22 Tom Tromey <tom@tromey.com>
11189
11190 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11191 functions.
11192 (known_window_types): New global.
11193 (tui_get_window_by_name): Reimplement.
11194 (initialize_known_windows): New function.
11195 (validate_window_name): Rewrite.
11196 (_initialize_tui_layout): Call initialize_known_windows.
11197
fdb01f0c
TT
111982020-02-22 Tom Tromey <tom@tromey.com>
11199
11200 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11201 Remove constants.
11202 * tui/tui-winsource.h (struct tui_source_window_base)
11203 <tui_source_window_base>: Remove parameter.
11204 * tui/tui-winsource.c
11205 (tui_source_window_base::tui_source_window_base): Remove
11206 parameter.
11207 (tui_source_window_base::refill): Update.
11208 * tui/tui-stack.h (struct tui_locator_window)
11209 <tui_locator_window>: Update.
11210 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11211 Default the constructor.
11212 * tui/tui-regs.h (struct tui_data_item_window)
11213 <tui_data_item_window>: Default the constructor.
11214 (struct tui_data_window) <tui_data_window>: Likewise.
11215 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11216 Default the constructor.
11217 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11218 Default the constructor.
11219 <type>: Remove.
11220 (struct tui_win_info) <tui_win_info>: Default the constructor.
11221 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11222 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11223 Default the constructor.
11224
865a5aec
TT
112252020-02-22 Tom Tromey <tom@tromey.com>
11226
11227 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11228 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11229 * tui/tui-win.c (tui_resize_all): Don't call
11230 tui_delete_invisible_windows.
11231 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11232 done.
11233 (tui_set_layout): Update.
11234 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11235 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11236 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11237
e098d18c
TT
112382020-02-22 Tom Tromey <tom@tromey.com>
11239
11240 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11241 correctly.
11242
eb9c8874
TT
112432020-02-22 Tom Tromey <tom@tromey.com>
11244
11245 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11246
7eed1a8e
TT
112472020-02-22 Tom Tromey <tom@tromey.com>
11248
11249 * tui/tui-winsource.h (struct tui_source_window_iterator)
11250 <inner_iterator>: New etytypedef.
11251 <tui_source_window_iterator>: Take "end" parameter.
11252 <tui_source_window_iterator>: Take iterator.
11253 <operator*, advance>: Update.
11254 <m_iter>: Change type.
11255 <m_end>: New field.
11256 (struct tui_source_windows) <begin, end>: Update.
11257 * tui/tui-layout.c (tui_windows): New global.
11258 (tui_apply_current_layout): Clear tui_windows.
11259 (tui_layout_window::apply): Update tui_windows.
11260 * tui/tui-data.h (tui_windows): Declare.
11261 (all_tui_windows): Now inline function.
11262 (class tui_window_iterator, struct all_tui_windows): Remove.
11263
7c043ba6
TT
112642020-02-22 Tom Tromey <tom@tromey.com>
11265
11266 PR tui/17850:
11267 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11268 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11269 "height" argument.
11270 (class tui_layout_window) <get_sizes>: Likewise.
11271 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11272 argument.
11273 <get_sizes>: Add "height" argument.
11274 <m_vertical>: New field.
11275 * tui/tui-layout.c (tui_layout_split::clone): Update.
11276 (tui_layout_split::get_sizes): Add "height" argument.
11277 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11278 (tui_new_layout_command): Parse "-horizontal".
11279 (_initialize_tui_layout): Update help string.
11280 (tui_layout_split::specification): Add "-horizontal" when needed.
11281 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11282 argument.
11283 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11284 New methods.
11285
6bc56648
TT
112862020-02-22 Tom Tromey <tom@tromey.com>
11287
11288 * tui/tui-layout.h (enum tui_adjust_result): New.
11289 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11290 (class tui_layout_window) <adjust_size>: Return
11291 tui_adjust_result. Rewrite.
11292 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11293 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11294
c22fef7e
TT
112952020-02-22 Tom Tromey <tom@tromey.com>
11296
11297 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11298 parameter and return types.
11299 (class tui_layout_base) <specification>: Add "depth".
11300 (class tui_layout_window) <specification>: Add "depth".
11301 (class tui_layout_split) <specification>: Add "depth".
11302 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11303 and return types.
11304 (tui_new_layout_command): Parse sub-layouts.
11305 (_initialize_tui_layout): Update help string.
11306 (tui_layout_window::specification): Add "depth".
11307 (add_layout_command): Update.
11308
ee325b61
TT
113092020-02-22 Tom Tromey <tom@tromey.com>
11310
11311 * NEWS: Add "tui new-layout" item.
11312 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11313 Add new-layout command to help text.
11314 (validate_window_name): New function.
11315 (tui_new_layout_command): New function.
11316 (_initialize_tui_layout): Register "new-layout".
11317 (tui_layout_window::specification): New method.
11318 (tui_layout_window::specification): New method.
11319 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11320 method.
11321 (class tui_layout_window) <specification>: New method.
11322 (class tui_layout_split) <specification>: New method.
11323
416eb92d
TT
113242020-02-22 Tom Tromey <tom@tromey.com>
11325
11326 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11327 * tui/tui-win.c (window_name_completer): Update comment.
11328 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11329 Declare method.
11330 (class tui_layout_window) <replace_window>: Likewise.
11331 (class tui_layout_split) <replace_window>: Likewise.
11332 (tui_set_layout): Don't declare.
11333 (tui_set_initial_layout): Declare function.
11334 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11335 (asm_regs_layout): New globals.
11336 (tui_current_layout, show_layout): Remove.
11337 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11338 (find_layout, tui_apply_layout): New function.
11339 (layout_completer): Remove.
11340 (tui_next_layout): Reimplement.
11341 (tui_next_layout_command): New function.
11342 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11343 (tui_regs_layout): Reimplement.
11344 (tui_regs_layout_command): New function.
11345 (extract_display_start_addr): Rewrite.
11346 (next_layout, prev_layout): Remove.
11347 (tui_layout_window::replace_window): New method.
11348 (tui_layout_split::replace_window): New method.
11349 (destroy_layout): New function.
11350 (layout_list): New global.
11351 (add_layout_command): New function.
11352 (initialize_layouts): Update.
11353 (tui_layout_command): New function.
11354 (_initialize_tui_layout): Install "layout" commands.
11355 * tui/tui-data.h (enum tui_layout_type): Remove.
11356 (tui_current_layout): Don't declare.
11357
0dbc2fc7
TT
113582020-02-22 Tom Tromey <tom@tromey.com>
11359
11360 * tui/tui-regs.c (tui_reg_layout): Remove.
11361 (tui_reg_command): Use tui_regs_layout.
11362 * tui/tui-layout.h (tui_reg_command): Declare.
11363 * tui/tui-layout.c (tui_reg_command): New function.
11364
5afe342e
TT
113652020-02-22 Tom Tromey <tom@tromey.com>
11366
11367 * tui/tui.c (tui_rl_delete_other_windows): Call
11368 tui_remove_some_windows.
11369 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11370 Declare method.
11371 (class tui_layout_window) <remove_windows>: New method.
11372 (class tui_layout_split) <remove_windows>: Declare.
11373 (tui_remove_some_windows): Declare.
11374 * tui/tui-layout.c (tui_remove_some_windows): New function.
11375 (tui_layout_split::remove_windows): New method.
11376
427326a8
TT
113772020-02-22 Tom Tromey <tom@tromey.com>
11378
11379 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11380 * tui/tui-layout.h (tui_next_layout): Declare.
11381 * tui/tui-layout.c (tui_next_layout): New function.
11382
3fe12b6d
TT
113832020-02-22 Tom Tromey <tom@tromey.com>
11384
11385 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11386 correct coordinates.
11387
59b8b5d2
TT
113882020-02-22 Tom Tromey <tom@tromey.com>
11389
11390 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11391 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11392 DATA_WIN case.
11393
2a3d458b
TT
113942020-02-22 Tom Tromey <tom@tromey.com>
11395
11396 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11397 TUI_DISASM_WIN, not tui_win_list.
11398
3f0cbb04
TT
113992020-02-22 Tom Tromey <tom@tromey.com>
11400
11401 * valprint.c (generic_val_print_enum_1)
11402 (val_print_type_code_flags): Style member names.
11403 * rust-lang.c (val_print_struct, rust_print_enum)
11404 (rust_print_struct_def, rust_internal_print_type): Style member
11405 names.
11406 * p-valprint.c (pascal_object_print_value_fields): Style member
11407 names. Only call fprintf_symbol_filtered for static members.
11408 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11409 * f-valprint.c (f_val_print): Style member names.
11410 * f-typeprint.c (f_type_print_base): Style member names.
11411 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11412 call fprintf_symbol_filtered for static members.
11413 (cp_print_class_member): Style member names.
11414 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11415 member names.
11416 * ada-valprint.c (ada_print_scalar): Style enum names.
11417 (ada_val_print_enum): Likewise.
11418 * ada-typeprint.c (print_enum_type): Style enum names.
11419
d4d947ae
TT
114202020-02-21 Tom Tromey <tom@tromey.com>
11421
11422 * psympriv.h (struct partial_symtab): Update comment.
11423
e94e944b
TT
114242020-02-21 Tom Tromey <tromey@adacore.com>
11425
11426 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11427 type is CORE_ADDR.
11428
1eb73179
TV
114292020-02-21 Tom de Vries <tdevries@suse.de>
11430
11431 PR gdb/25534
11432 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11433 if dependencies[i]->user != NULL.
11434
4f180d53
AT
114352020-02-21 Ali Tamur <tamur@google.com>
11436
11437 * dwarf2/read.c (dwarf2_name): Add null check.
11438
22b6cd70
TT
114392020-02-20 Tom Tromey <tom@tromey.com>
11440
11441 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11442 ">=", in binary search.
11443 (dwarf2_find_containing_comp_unit): New overload.
11444 (run_test): New self-test.
11445 (_initialize_dwarf2_read): Register new test.
11446
bd0cf5a6
NC
114472020-02-20 Nelson Chu <nelson.chu@sifive.com>
11448
11449 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11450 * riscv-tdep.h: Likewise.
11451 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11452 rv32-only CSR.
11453 * features/riscv/64bit-csr.xml: Regenerated.
11454
3f702acd
SDJ
114552020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11456 Tom Tromey <tom@tromey.com>
11457
11458 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11459 of 'fputc_unfiltered'.
11460 (putchar_unfiltered): Call 'fputc_unfiltered'.
11461 (fputc_unfiltered): Call 'fputs_unfiltered'.
11462
d13c7322
AB
114632020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11464
11465 * config.in: Regenerate.
11466 * configure: Regenerate.
11467 * configure.ac: Add --with-python-libdir option.
11468 * main.c: Use WITH_PYTHON_LIBDIR.
11469
869d8950
TT
114702020-02-19 Tom Tromey <tom@tromey.com>
11471
11472 * symtab.c (general_symbol_info::compute_and_set_names): Use
11473 obstack_strndup. Simplify call to symbol_set_demangled_name.
11474
298e9637
SM
114752020-02-19 Simon Marchi <simon.marchi@efficios.com>
11476
11477 * dwarf2/read.c (allocate_signatured_type_table,
11478 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11479 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11480 Remove objfile parameter, update all callers.
11481
08410482
DE
114822020-02-19 Doug Evans <dje@google.com>
11483
11484 PR rust/25535
11485 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11486 rust_enum_variant calculation.
11487
dfdeeca1
TT
114882020-02-19 Tom Tromey <tromey@adacore.com>
11489
11490 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11491
2ef5453b
TT
114922020-02-19 Tom Tromey <tromey@adacore.com>
11493
11494 * ada-lang.c (cache_symbol): Use obstack_strdup.
11495
9f1528a1
AB
114962020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11497
11498 * configure: Regenerate.
11499
d3c22fa8
TT
115002020-02-19 Tom Tromey <tromey@adacore.com>
11501
11502 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11503 NULL check.
11504
bf84f706
MR
115052020-02-19 Maciej W. Rozycki <macro@wdc.com>
11506
11507 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11508
d1c9b20f
AB
115092020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11510
11511 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11512 if GDBSERVER is not defined.
11513 (riscv_tdesc_cache): Likewise, also store const target_desc.
11514 (STATIC_IN_GDB): Define.
11515 (riscv_create_target_description): Update declaration with
11516 STATIC_IN_GDB.
11517 (riscv_lookup_target_description): New function, only define if
11518 GDBSERVER is not defined.
11519 * arch/riscv.h (riscv_create_target_description): Declare only
11520 when GDBSERVER is defined.
11521 (riscv_lookup_target_description): New declaration when GDBSERVER
11522 is not defined.
11523 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11524 (riscv_linux_read_features): ...this, and return
11525 riscv_gdbarch_features instead of target_desc.
11526 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11527 (riscv_linux_read_description): Rename to...
11528 (riscv_linux_read_features): ...this.
11529 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11530 Update to use riscv_gdbarch_features and
11531 riscv_lookup_target_description.
11532 * riscv-tdep.c (riscv_find_default_target_description): Use
11533 riscv_lookup_target_description instead of
11534 riscv_create_target_description.
11535
373d7ac0
SM
115362020-02-18 Simon Marchi <simon.marchi@efficios.com>
11537
11538 * valprint.c (generic_val_print_enum_1): When printing a flag
11539 enum with value 0 and there is no enumerator with value 0, print
11540 just "0" instead of "(unknown: 0x0)".
11541
b29a2df0
SM
115422020-02-18 Simon Marchi <simon.marchi@efficios.com>
11543
11544 * valprint.c (generic_val_print_enum_1): Print unknown part of
11545 flag enum in hex.
11546
6740f0cc
SM
115472020-02-18 Simon Marchi <simon.marchi@efficios.com>
11548
11549 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11550 flag enums to contain duplicate enumerators.
11551 * valprint.c (generic_val_print_enum_1): Update comment.
11552
edd45eb0
SM
115532020-02-18 Simon Marchi <simon.marchi@efficios.com>
11554
11555 * dwarf2/read.c: Include "count-one-bits.h".
11556 (update_enumeration_type_from_children): If an enumerator has
11557 multiple bits set, don't treat the enumeration as a "flag enum".
11558 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11559 of flag enums have 0 or 1 bit set.
11560
6d0cf446
BE
115612020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11562
11563 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11564 conversion.
11565 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11566 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11567 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11568 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11569 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11570
7001c1b7
SM
115712020-02-18 Simon Marchi <simon.marchi@efficios.com>
11572
11573 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11574
fdb61c6c
SM
115752020-02-14 Simon Marchi <simon.marchi@efficios.com>
11576
11577 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11578 displaced_step_closure_up.
11579 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11580 (struct displaced_step_closure_up):
11581 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11582 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11583 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11584 Likewise.
11585 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11586 * gdbarch.c, gdbarch.h: Re-generate.
11587 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11588 displaced_step_closure_up.
11589 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11590 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11591 * infrun.h (displaced_step_closure_up): New type alias.
11592 (struct displaced_step_inferior_state) <step_closure>: Change
11593 type to displaced_step_closure_up.
11594 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11595 displaced_step_closure_up.
11596 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11597
a4a38eb4
TT
115982020-02-14 Tom Tromey <tom@tromey.com>
11599
11600 * minidebug.c (gnu_debug_key): New global.
11601 (find_separate_debug_file_in_section): Use it.
11602
e8217e61
SM
116032020-02-14 Simon Marchi <simon.marchi@efficios.com>
11604
11605 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11606 std::unique_ptr.
11607 * gdbarch.c: Re-generate.
11608 * gdbarch.h: Re-generate.
11609 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11610 change.
11611 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11612 type to std::unique_ptr.
11613 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11614 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11615 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11616 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11617 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11618 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11619 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11620 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11621 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11622
d8d83535
SM
116232020-02-14 Simon Marchi <simon.marchi@efficios.com>
11624
11625 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11626 std::unique_ptr.
11627 (displaced_step_clear): Rename to...
11628 (displaced_step_reset): ... this. Just call displaced->reset ().
11629 (displaced_step_clear_cleanup): Rename to...
11630 (displaced_step_reset_cleanup): ... this.
11631 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11632 (displaced_step_fixup): Likewise.
11633 (resume_1): Likewise.
11634 (handle_inferior_event): Restore child's memory before calling
11635 displaced_step_fixup on the parent.
11636 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11637 to std::unique_ptr.
11638 <step_closure>: Change type to std::unique_ptr.
11639
5f661e03
SM
116402020-02-14 Simon Marchi <simon.marchi@efficios.com>
11641
11642 * arm-tdep.c: Include count-one-bits.h.
11643 (cleanup_block_store_pc): Use count_one_bits.
11644 (cleanup_block_load_pc): Use count_one_bits.
11645 (arm_copy_block_xfer): Use count_one_bits.
11646 (thumb2_copy_block_xfer): Use count_one_bits.
11647 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11648 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11649 (thumb_get_next_pcs_raw): Use count_one_bits.
11650 (arm_get_next_pcs_raw): Use count_one_bits_l.
11651 * arch/arm.c (bitcount): Remove.
11652 * arch/arm.h (bitcount): Remove.
11653
8084e579
TT
116542020-02-14 Tom Tromey <tromey@adacore.com>
11655
11656 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11657 Update.
11658 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11659 * dwarf2/loc.c (call_site_find_chain_1): Return
11660 unique_xmalloc_ptr.
11661 (call_site_find_chain): Likewise.
11662
258bf0ee
RB
116632020-02-14 Richard Biener <rguenther@suse.de>
11664
11665 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11666 on expression with division operators.
11667
f98a8458
AKS
116682020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11669
11670 * MAINTAINERS (Write After Approval): Adding myself.
11671
d1437c0e
TT
116722020-02-12 Tom Tromey <tom@tromey.com>
11673
11674 * event-loop.c (event_data, gdb_event, event_handler_func):
11675 Remove.
11676
3d4560f7
TT
116772020-02-12 Tom Tromey <tom@tromey.com>
11678
11679 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11680 (dwarf2_frame_objfile_data): Add comment.
11681 (find_comp_unit, set_comp_unit): New functions.
11682 (dwarf2_frame_find_fde): Use find_comp_unit.
11683 (dwarf2_build_frame_info): Use set_comp_unit.
11684
21982304
TT
116852020-02-12 Tom Tromey <tom@tromey.com>
11686
11687 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11688 (comp_unit): Don't initialize objfile.
11689 (execute_cfa_program): Add text_offset parameter.
11690 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11691 (dwarf2_frame_cache): Update.
11692 (dwarf2_build_frame_info): Don't set "objfile" member.
11693
4debb237
TT
116942020-02-12 Tom Tromey <tom@tromey.com>
11695
11696 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11697 (decode_frame_entry): Likewise.
11698 (dwarf2_build_frame_info): Update.
11699
0d404d44
TT
117002020-02-12 Tom Tromey <tom@tromey.com>
11701
11702 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11703 (decode_frame_entry_1): Use the comp_unit obstack.
11704
a7a3ae5c
TT
117052020-02-12 Tom Tromey <tom@tromey.com>
11706
11707 * dwarf2/frame.c (struct comp_unit): Add initializers and
11708 constructor.
11709 (dwarf2_frame_objfile_data): Store a comp_unit.
11710 (dwarf2_frame_find_fde): Update.
11711 (dwarf2_build_frame_info): Use "new".
11712
a9d65418
TT
117132020-02-12 Tom Tromey <tom@tromey.com>
11714
11715 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11716 (dwarf2_fde_table): Typedef for std::vector.
11717 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11718 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11719 (decode_frame_entry): Update.
11720 (dwarf2_build_frame_info): Use "new".
11721
7559c217
CB
117222020-02-12 Christian Biesinger <cbiesinger@google.com>
11723
11724 * arm-tdep.c (arm_gdbarch_init): Update.
11725 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11726 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11727 have_neon, is_m>: Change to bool.
11728
aeefc73c
CB
117292020-02-12 Christian Biesinger <cbiesinger@google.com>
11730
11731 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11732
d27b8e5f
TT
117332020-02-12 Tom Tromey <tom@tromey.com>
11734
11735 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11736
cd5900f3
HD
117372020-02-12 Hannes Domani <ssbssa@yahoo.de>
11738
11739 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11740 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11741
f056b22b
TT
117422020-02-11 Tom Tromey <tom@tromey.com>
11743
11744 * psymtab.h: Update comment.
11745
f92ff6b5
TT
117462020-02-11 Tom Tromey <tom@tromey.com>
11747
11748 * gdb_obstack.h (struct auto_obstack): Use
11749 DISABLE_COPY_AND_ASSIGN.
11750
3fd6912b
TT
117512020-02-11 Tom Tromey <tom@tromey.com>
11752
11753 * dwarf2/frame.h (struct objfile): Don't forward declare.
11754
69ed9b74
CB
117552020-02-11 Christian Biesinger <cbiesinger@google.com>
11756
11757 * cris-tdep.c (cris_supply_gregset): Change signature to match
11758 what struct regset expects.
11759 (cris_regset): New struct.
11760 (fetch_core_registers): Remove.
11761 (cris_iterate_over_regset_sections): New function.
11762 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11763 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11764
bda874f6
CB
117652020-02-11 Christian Biesinger <cbiesinger@google.com>
11766
11767 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11768 registers.
11769
754e1564
CB
117702020-02-11 Christian Biesinger <cbiesinger@google.com>
11771
11772 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11773
8ddd8e0e
SM
117742020-02-11 Simon Marchi <simon.marchi@efficios.com>
11775
11776 * configure: Re-generate.
11777
898e7f60
SM
117782020-02-11 Simon Marchi <simon.marchi@efficios.com>
11779
11780 * configure: Re-generate.
11781
58df732b
SM
117822020-02-11 Simon Marchi <simon.marchi@efficios.com>
11783
11784 * acinclude: Update warning.m4 path.
11785 * warning.m4: Move to gdbsupport.
11786
da5bd37e
TT
117872020-02-11 Tom Tromey <tromey@adacore.com>
11788
11789 * remote.c (remote_console_output): Update.
11790 * printcmd.c (printf_command): Update.
11791 * event-loop.c (gdb_wait_for_event): Update.
11792 * linux-nat.c (sigchld_handler): Update.
11793 * remote-sim.c (gdb_os_write_stdout): Update.
11794 (gdb_os_flush_stdout): Update.
11795 (gdb_os_flush_stderr): Update.
11796 (gdb_os_write_stderr): Update.
11797 * exceptions.c (print_exception): Update.
11798 * remote-fileio.c (remote_fileio_func_read): Update.
11799 (remote_fileio_func_write): Update.
11800 * tui/tui.c (tui_enable): Update.
11801 * tui/tui-interp.c (tui_interp::init): Update.
11802 * utils.c (init_page_info): Update.
11803 (putchar_unfiltered, fputc_unfiltered): Update.
11804 (gdb_flush): Update.
11805 (emit_style_escape): Update.
11806 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11807 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11808 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11809 (stderr_file::write): Update.
11810 (stderr_file::puts): Update.
11811 * ui-file.h (ui_file_isatty, ui_file_write)
11812 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11813 (ui_file_puts): Don't declare.
11814
85f0dd3c
TV
118152020-02-10 Tom de Vries <tdevries@suse.de>
11816
11817 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11818 sentinel to char *.
11819
2e927613
TV
118202020-02-09 Tom de Vries <tdevries@suse.de>
11821
11822 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11823 filename if it matches "<artificial>".
11824
6bafc845
HD
118252020-02-09 Hannes Domani <ssbssa@yahoo.de>
11826
11827 * windows-tdep.c (struct enum_value_name): New struct.
11828 (create_enum): New function.
11829 (windows_get_siginfo_type): Create and use enum types.
11830
7928d571
HD
118312020-02-09 Hannes Domani <ssbssa@yahoo.de>
11832
11833 * NEWS: Mention $_siginfo support for Windows.
11834 * windows-nat.c (handle_exception): Set siginfo_er.
11835 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11836 (windows_xfer_siginfo): New function.
11837 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11838 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11839 (init_windows_gdbarch_data): New function.
11840 (get_windows_gdbarch_data): New function.
11841 (windows_get_siginfo_type): New function.
11842 (windows_init_abi): Register windows_get_siginfo_type.
11843 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11844
6751ebae
TT
118452020-02-08 Tom Tromey <tom@tromey.com>
11846
11847 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11848 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11849 <keep>: Declare method.
11850 <m_keep>: Remove member.
11851 <~cutu_reader>: Remove.
11852 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11853 (cutu_reader::cutu_reader): Update.
11854 (cutu_reader::keep): Rename from ~cutu_reader.
11855 (process_psymtab_comp_unit, build_type_psymtabs_1)
11856 (process_skeletonless_type_unit, load_partial_comp_unit)
11857 (load_full_comp_unit, dwarf2_read_addr_index)
11858 (read_signatured_type): Update.
11859
135f5437
TT
118602020-02-08 Tom Tromey <tom@tromey.com>
11861
11862 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11863 "want_partial_unit" parameter.
11864 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11865 Inline check for DW_TAG_partial_unit.
11866 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11867
9f66ff1c
TT
118682020-02-08 Tom Tromey <tom@tromey.com>
11869
11870 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11871 read.c.
11872 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11873 read.c.
11874
c8a7a66f
TT
118752020-02-08 Tom Tromey <tom@tromey.com>
11876
11877 * dwarf2/read.c (read_address): Move to comp-unit.c.
11878 (dwarf2_rnglists_process, dwarf2_ranges_process)
11879 (read_attribute_value, dwarf_decode_lines_1)
11880 (var_decode_location, decode_locdesc): Update.
11881 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11882 read.c. Remove "cu" parameter.
11883 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11884 method.
11885
8266302d
TT
118862020-02-08 Tom Tromey <tom@tromey.com>
11887
11888 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11889 (read_indirect_line_string): Update.
11890 * dwarf2/comp-unit.c (read_offset): Remove.
11891 (read_comp_unit_head): Update.
11892 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11893 method.
11894 (read_offset): Don't declare.
11895
4057dfde
TT
118962020-02-08 Tom Tromey <tom@tromey.com>
11897
11898 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11899 * dwarf2/read.c (struct comp_unit_head): Move to
11900 dwarf2/comp-unit.h.
11901 (enum class rcuh_kind): Move to comp-unit.h.
11902 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11903 (read_comp_unit_head, error_check_comp_unit_head)
11904 (read_and_check_comp_unit_head): Move to comp-unit.c.
11905 (read_offset, dwarf_unit_type_name): Likewise.
11906 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11907 (cutu_reader::cutu_reader, read_call_site_scope)
11908 (find_partial_die, follow_die_offset): Update.
11909 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11910
24aa364d
TT
119112020-02-08 Tom Tromey <tom@tromey.com>
11912
11913 * dwarf2/read.c (read_offset_1): Move to leb.c.
11914 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11915 (dwarf_decode_macro_bytes): Update.
11916 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11917 * dwarf2/leb.h (read_offset): Declare.
11918
2c7d5afc
TT
119192020-02-08 Tom Tromey <tom@tromey.com>
11920
11921 * dwarf2/read.c (dwarf2_section_size): Remove.
11922 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11923 Update.
11924 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11925
4075cb26
TT
119262020-02-08 Tom Tromey <tom@tromey.com>
11927
11928 * dwarf2/read.c (read_initial_length): Move to leb.c.
11929 * dwarf2/leb.h (read_initial_length): Declare.
11930 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11931 handle_nonstd parameter.
11932 * dwarf2/frame.c (read_initial_length): Remove.
11933 (decode_frame_entry_1): Update.
11934
09ba997f
TT
119352020-02-08 Tom Tromey <tom@tromey.com>
11936
11937 * dwarf2/loc.c (dwarf2_find_location_expression)
11938 (dwarf_evaluate_loc_desc::get_tls_address)
11939 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11940 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11941 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11942 (dwarf2_compile_property_to_c)
11943 (dwarf2_loc_desc_get_symbol_read_needs)
11944 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11945 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11946 (loclist_describe_location, loclist_tracepoint_var_ref)
11947 (loclist_generate_c_location): Update.
11948 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11949 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11950 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11951 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11952 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11953 (dwarf2_per_cu_data::addr_size)
11954 (dwarf2_per_cu_data::ref_addr_size)
11955 (dwarf2_per_cu_data::text_offset)
11956 (dwarf2_per_cu_data::addr_type): Now methods.
11957 (per_cu_header_read_in): Make per_cu "const".
11958 (dwarf2_version): Remove.
11959 (dwarf2_per_cu_data::int_type): Now a method.
11960 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11961 (set_die_type, read_array_type, read_subrange_index_type)
11962 (read_tag_string_type, read_subrange_type): Update.
11963 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11964 offset_size, ref_addr_size, text_offset, addr_type, version,
11965 objfile, int_type, addr_sized_int_type>: Declare methods.
11966
96c738c0
TT
119672020-02-08 Tom Tromey <tom@tromey.com>
11968
11969 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11970 Move earlier.
11971
8fdd972c
TT
119722020-02-08 Tom Tromey <tom@tromey.com>
11973
11974 * dwarf2/read.h (dwarf_line_debug): Declare.
11975 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11976 * dwarf2/read.c: Move line_header code to new files.
11977 (dwarf_line_debug): No longer static.
11978 * dwarf2/line-header.c: New file.
11979 * dwarf2/line-header.h: New file.
11980
03075812
TT
119812020-02-08 Tom Tromey <tom@tromey.com>
11982
11983 * dwarf2/read.c (struct line_header) <file_full_name,
11984 file_file_name>: Return unique_xmalloc_ptr.
11985 (line_header::file_file_name): Update.
11986 (line_header::file_full_name): Update.
11987 (dw2_get_file_names_reader): Update.
11988 (macro_start_file): Update.
11989
bb822404
TT
119902020-02-08 Tom Tromey <tom@tromey.com>
11991
11992 * dwarf2/read.c (struct line_header) <file_full_name,
11993 file_file_name>: Declare methods.
11994 (dw2_get_file_names_reader): Update.
11995 (file_file_name): Now a method.
11996 (file_full_name): Likewise.
11997 (macro_start_file): Update.
11998
009b64fc
TT
119992020-02-08 Tom Tromey <tom@tromey.com>
12000
12001 * dwarf2/read.c (dwarf_always_disassemble)
12002 (show_dwarf_always_disassemble): Move to loc.c.
12003 (_initialize_dwarf2_read): Move "always-disassemble" registration
12004 to loc.c.
12005 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12006 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12007 static.
12008 (show_dwarf_always_disassemble): Move from read.c.
12009 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12010
5895093f
TT
120112020-02-08 Tom Tromey <tom@tromey.com>
12012
12013 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12014 (create_quick_file_names_table): Return htab_up.
12015 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12016 Update.
12017 * dwarf2/read.h (struct dwarf2_per_objfile)
12018 <quick_file_names_table>: Now htab_up.
12019
b3b32279
TT
120202020-02-08 Tom Tromey <tom@tromey.com>
12021
12022 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12023
1d33d811
TT
120242020-02-08 Tom Tromey <tom@tromey.com>
12025
12026 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12027 Rewrite.
12028 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12029 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12030 (abbrev_table::abbrev_table): No longer inline.
12031 (ABBREV_HASH_SIZE): Remove.
12032 (abbrev_table::m_abbrevs): Now an htab_up.
12033
86de1d91
TT
120342020-02-08 Tom Tromey <tom@tromey.com>
12035
12036 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12037 (cutu_reader): Update.
12038 (build_type_psymtabs_1): Update.
12039 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12040 (abbrev_table::alloc_abbrev): Update.
12041 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12042 (abbrev_table::read): New static method, renamed from
12043 abbrev_table_read_table.
12044 (abbrev_table::alloc_abbrev)
12045 (abbrev_table::add_abbrev): Now private.
12046 (abbrev_table::abbrev_table): Now private.
12047 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12048
0335378b
TT
120492020-02-08 Tom Tromey <tom@tromey.com>
12050
12051 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12052 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12053 htab_up.
12054
48b490f2
TT
120552020-02-08 Tom Tromey <tom@tromey.com>
12056
12057 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12058 htab_up.
12059 (lookup_dwo_unit_in_dwp): Update.
12060 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12061 on obstack.
12062
bc68fb19
TT
120632020-02-08 Tom Tromey <tom@tromey.com>
12064
12065 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12066 obstack.
12067
d15acc42
TT
120682020-02-08 Tom Tromey <tom@tromey.com>
12069
12070 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12071 line_header_hash.
12072 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12073 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12074 Change type to htab_up.
12075
eaa5fa8b
TT
120762020-02-08 Tom Tromey <tom@tromey.com>
12077
12078 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12079 htab_up. Don't allocate on obstack.
12080 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12081 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12082 Change type to htab_up.
12083
b0b6a987
TT
120842020-02-08 Tom Tromey <tom@tromey.com>
12085
12086 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12087 Change type to htab_up.
12088 * dwarf2/read.c (create_signatured_type_table_from_index)
12089 (create_signatured_type_table_from_debug_names)
12090 (create_all_type_units, add_type_unit)
12091 (lookup_dwo_signatured_type, lookup_signatured_type)
12092 (process_skeletonless_type_unit): Update.
12093 (create_debug_type_hash_table, create_debug_types_hash_table):
12094 Change type of types_htab.
12095 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12096 htab_up. Don't allocate on obstack.
12097 (create_cus_hash_table): Change type of cus_htab parameter.
12098 (struct dwo_file) <cus, tus>: Now htab_up.
12099 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12100 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12101 (queue_and_load_all_dwo_tus): Update.
12102 * dwarf2/index-write.c (write_gdbindex): Update.
12103 (write_debug_names): Update.
12104
39856def
TT
121052020-02-08 Tom Tromey <tom@tromey.com>
12106
12107 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12108 dwarf2/read.c. Remove "next" member. Add constructor ntad
12109 destructor.
12110 (struct dwarf2_per_objfile) <queue>: New member.
12111 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12112 dwarf2/read.h.
12113 (dwarf2_queue, dwarf2_queue_tail): Remove.
12114 (class dwarf2_queue_guard): Add parameter to constructor. Use
12115 DISABLE_COPY_AND_ASSIGN.
12116 <m_per_objfile>: New member.
12117 <~dwarf2_queue_guard>: Rewrite.
12118 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12119 Update.
12120 (~dwarf2_queue_item): New.
12121
3e225074
TT
121222020-02-08 Tom Tromey <tom@tromey.com>
12123
12124 * dwarf2/read.c (struct die_info) <has_children>: New member.
12125 (dw2_get_file_names_reader): Remove has_children.
12126 (dw2_get_file_names): Update.
12127 (read_cutu_die_from_dwo): Remove has_children.
12128 (cutu_reader::init_tu_and_read_dwo_dies)
12129 (cutu_reader::cutu_reader): Update.
12130 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12131 Remove has_children.
12132 (build_type_psymtabs_1, process_skeletonless_type_unit)
12133 (load_partial_comp_unit, load_full_comp_unit): Update.
12134 (create_dwo_cu_reader): Remove has_children.
12135 (create_cus_hash_table, read_die_and_children): Update.
12136 (read_full_die_1,read_full_die): Remove has_children.
12137 (read_signatured_type): Update.
12138 (class cutu_reader) <has_children>: Remove.
12139
82ca8957
TT
121402020-02-08 Tom Tromey <tom@tromey.com>
12141
12142 * dwarf2/expr.c: Rename from dwarf2expr.c.
12143 * dwarf2/expr.h: Rename from dwarf2expr.h.
12144 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12145 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12146 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12147 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12148 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12149 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12150 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12151 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12152 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12153 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12154 * dwarf2/loc.c: Rename from dwarf2loc.c.
12155 * dwarf2/loc.h: Rename from dwarf2loc.h.
12156 * dwarf2/read.c: Rename from dwarf2read.c.
12157 * dwarf2/read.h: Rename from dwarf2read.h.
12158 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12159 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12160 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12161 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12162 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12163 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12164 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12165 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12166 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12167 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12168 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12169 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12170 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12171 Update.
12172 * Makefile.in (COMMON_SFILES): Update.
12173 (HFILES_NO_SRCDIR): Update.
12174
9e35d499
TT
121752020-02-08 Tom Tromey <tom@tromey.com>
12176
12177 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12178 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12179
1eba2311
TT
121802020-02-08 Tom Tromey <tom@tromey.com>
12181
12182 * dwarf2read.h (struct die_info): Don't declare.
12183
e41c2da2
TT
121842020-02-08 Tom Tromey <tom@tromey.com>
12185
12186 * dwarf2read.h (die_info_ptr): Remove typedef.
12187
4fc6c0d5
TT
121882020-02-08 Tom Tromey <tom@tromey.com>
12189
12190 * dwarf2read.c (read_call_site_scope)
12191 (handle_data_member_location, dwarf2_add_member_fn)
12192 (mark_common_block_symbol_computed, read_common_block)
12193 (attr_to_dynamic_prop, partial_die_info::read)
12194 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12195 (dwarf2_symbol_mark_computed, set_die_type): Update.
12196 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12197 method.
12198 (attr_form_is_block): Don't declare.
12199 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12200
cd6c91b4
TT
122012020-02-08 Tom Tromey <tom@tromey.com>
12202
12203 * dwarf2read.c (dwarf2_find_base_address, )
12204 (read_call_site_scope, rust_containing_type)
12205 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12206 (handle_data_member_location, dwarf2_add_member_fn)
12207 (get_alignment, read_structure_type, process_structure_scope)
12208 (mark_common_block_symbol_computed, read_common_block)
12209 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12210 (partial_die_info::read, read_attribute_value, new_symbol)
12211 (lookup_die_type, dwarf2_get_ref_die_offset)
12212 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12213 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12214 (dwarf2_symbol_mark_computed): Update.
12215 * dwarf2/attribute.h (struct attribute) <value_as_address,
12216 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12217 methods.
12218 (value_as_address, attr_form_is_section_offset)
12219 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12220 * dwarf2/attribute.c (attribute::value_as_address)
12221 (attribute::form_is_section_offset, attribute::form_is_constant)
12222 (attribute::form_is_ref): Now methods.
12223
162dce55
TT
122242020-02-08 Tom Tromey <tom@tromey.com>
12225
12226 * dwarf2read.c (struct attribute, DW_STRING)
12227 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12228 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12229 (attr_form_is_block, attr_form_is_section_offset)
12230 (attr_form_is_constant, attr_form_is_ref): Move.
12231 * dwarf2/attribute.h: New file.
12232 * dwarf2/attribute.c: New file, from dwarf2read.c.
12233 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12234
3054dd54
TT
122352020-02-08 Tom Tromey <tom@tromey.com>
12236
12237 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12238 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12239 Move.
12240 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12241 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12242 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12243 abbrev.c.
12244 * dwarf2/abbrev.h: New file.
12245 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12246 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12247
96b79293
TT
122482020-02-08 Tom Tromey <tom@tromey.com>
12249
12250 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12251 (dwarf2_section_size, dwarf2_get_section_info)
12252 (create_signatured_type_table_from_debug_names)
12253 (create_addrmap_from_aranges, read_debug_names_from_section)
12254 (get_gdb_index_contents_from_section, read_comp_unit_head)
12255 (error_check_comp_unit_head, read_abbrev_offset)
12256 (create_debug_type_hash_table, init_cu_die_reader)
12257 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12258 (read_comp_units_from_section, create_cus_hash_table)
12259 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12260 (create_dwp_v2_section, dwarf2_rnglists_process)
12261 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12262 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12263 (read_indirect_string_from_dwz, read_addr_index_1)
12264 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12265 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12266 (fill_in_loclist_baton): Update.
12267 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12268 get_containing_section, get_bfd_owner, get_bfd_section,
12269 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12270 (dwarf2_read_section, get_section_name, get_section_file_name)
12271 (get_containing_section, get_section_bfd_owner)
12272 (get_section_bfd_section, get_section_name, get_section_file_name)
12273 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12274 declare.
12275 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12276 (dwarf2_section_info::get_bfd_owner)
12277 (dwarf2_section_info::get_bfd_section)
12278 (dwarf2_section_info::get_name)
12279 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12280 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12281 (dwarf2_section_info::read): Now methods.
12282 * dwarf-index-write.c (class debug_names): Update.
12283
2c86cff9
TT
122842020-02-08 Tom Tromey <tom@tromey.com>
12285
12286 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12287 Move to dwarf2/section.h.
12288 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12289 (get_section_bfd_section, get_section_name)
12290 (get_section_file_name, get_section_id, get_section_flags)
12291 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12292 dwarf2/section.c.
12293 * dwarf2/section.h: New file.
12294 * dwarf2/section.c: New file, from dwarf2read.c.
12295 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12296
f4382c45
TT
122972020-02-08 Tom Tromey <tom@tromey.com>
12298
12299 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12300 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12301 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12302 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12303 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12304 * dwarf2/leb.h: New file, from dwarf2read.c.
12305 * dwarf2/leb.c: New file, from dwarf2read.c.
12306 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12307 Remove.
12308 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12309 (COMMON_SFILES): Add dwarf2/leb.c.
12310
01840b7a
JB
123112020-02-08 Joel Brobecker <brobecker@adacore.com>
12312
12313 GDB 9.1 released.
12314
dfcb27e4
IB
123152020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12316
12317 PR gdb/25190:
aac66a4c
SM
12318 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12319 * gdb/remote.c (remote_console_output): Update.
12320 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12321 (ui_file_puts): ...this.
12322 * gdb/ui-file.h (ui_file_puts): Add declaration.
12323 * gdb/utils.c (emit_style_escape): Update.
12324 (flush_wrap_buffer): Update.
12325 (fputs_maybe_filtered): Update.
12326 (fputs_unfiltered): Add function.
dfcb27e4 12327
faa17681
IB
123282020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12329
aac66a4c
SM
12330 * gdb/event-loop.c (gdb_wait_for_event): Update.
12331 * gdb/printcmd.c (printf_command): Update.
12332 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12333 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12334 (gdb_os_flush_stderr): Update.
12335 * gdb/remote.c (remote_console_output): Update.
12336 * gdb/ui-file.c (gdb_flush): Rename to...
12337 (ui_file_flush): ...this.
12338 (stderr_file::write): Update.
12339 (stderr_file::puts): Update.
12340 * gdb/ui-file.h (gdb_flush): Rename to...
12341 (ui_file_flush): ...this.
12342 * gdb/utils.c (gdb_flush): Add function.
12343 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12344
5abbbe1d
TT
123452020-02-07 Tom Tromey <tromey@adacore.com>
12346
12347 PR breakpoints/24915:
12348 * source.c (find_and_open_source): Do not check basenames_may_differ.
12349
919adfe8
TT
123502020-02-07 Tom Tromey <tom@tromey.com>
12351
12352 * README: Update gdbserver documentation.
12353 * gdbserver: Move to top level.
12354 * configure.tgt (build_gdbserver): Remove.
12355 * configure.ac: Remove --enable-gdbserver.
12356 * configure: Rebuild.
12357 * Makefile.in (distclean): Don't mention gdbserver.
12358
1d5d29e7
SV
123592020-02-06 Shahab Vahedi <shahab@synopsys.com>
12360
12361 * source-cache.c (source_cache::ensure): Surround
12362 get_plain_source_lines with a try/catch.
12363 (source_cache::get_line_charpos): Get rid of try/catch
12364 and only check for the return value of "ensure".
12365 * tui/tui-source.c (tui_source_window::set_contents):
12366 Simplify "nlines" calculation.
12367
6eb1129c
SV
123682020-02-06 Shahab Vahedi <shahab@synopsys.com>
12369
12370 * MAINTAINERS (Write After Approval): Add myself.
12371
c6a42d11
CB
123722020-02-05 Christian Biesinger <cbiesinger@google.com>
12373
12374 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12375 function call.
12376
c8ecdda6
CB
123772020-02-05 Christian Biesinger <cbiesinger@google.com>
12378
12379 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12380
f6480e70
MR
123812020-02-05 Maciej W. Rozycki <macro@wdc.com>
12382
12383 * nat/riscv-linux-tdesc.h: New file.
12384 * nat/riscv-linux-tdesc.c: New file, taking code from...
12385 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12386 ... here.
12387 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12388 NATDEPFILES.
12389
dcc9fbc6
AB
123902020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12391
12392 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12393 we don't set the fake simulator ptid to the null_ptid.
12394
719546c4
SM
123952020-02-03 Simon Marchi <simon.marchi@efficios.com>
12396
12397 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12398 * gdbthread.h (class thread_info) <resumed>: Likewise.
12399 * infrun.c (resume_1): Likewise.
12400 (proceed): Likewise.
12401 (infrun_thread_stop_requested): Likewise.
12402 (stop_all_threads): Likewise.
12403 (handle_inferior_event): Likewise.
12404 (restart_threads): Likewise.
12405 (finish_step_over): Likewise.
12406 (keep_going_stepped_thread): Likewise.
12407 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12408 (linux_handle_extended_wait): Likewise.
12409 * record-btrace.c (get_thread_current_frame_id): Likewise.
12410 * record-full.c (record_full_wait_1): Likewise.
12411 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12412 * target.c (target_resume): Likewise.
12413 * thread.c (set_running_thread): Likewise.
12414
e409c542
AKS
124152020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12416
12417 * f-valprint.c (f77_print_array_1): Changed datatype of index
12418 variable to LONGEST from int to enable it to contain bound
12419 values correctly.
12420
ee98c0da
MR
124212020-02-03 Maciej W. Rozycki <macro@wdc.com>
12422
12423 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12424 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12425 offsets according to FLEN determined.
12426 (riscv_linux_nat_target::read_description): Determine FLEN
12427 dynamically.
12428 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12429 according to FLEN determined.
12430 (riscv_linux_nat_target::store_registers): Likewise.
12431
aa66aac4
SV
124322020-02-01 Shahab Vahedi <shahab@synopsys.com>
12433
12434 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12435 when reg->group is empty and reggroup is not.
12436
fd9faca8
TT
124372020-01-31 Tom Tromey <tromey@adacore.com>
12438
12439 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12440 Call beneath target's mourn_inferior after unpushing.
12441
42330a68
AB
124422020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12443
12444 PR tui/9765
12445 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12446 have enough lines to fill the screen, still return the lowest
12447 address we found.
12448
7a27a45b
AB
124492020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12450
12451 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12452 '-', '<', and '>' commands.
12453
c47f70e2
PA
124542020-01-29 Pedro Alves <palves@redhat.com>
12455 Sergio Durigan Junior <sergiodj@redhat.com>
12456
12457 * infcmd.c (construct_inferior_arguments): Assert that
12458 'argc' is greater than 0.
12459
5133a315
LM
124602020-01-29 Luis Machado <luis.machado@linaro.org>
12461
12462 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12463 (BRK_INSN_MASK): Define to 0xd4200000.
12464 (aarch64_program_breakpoint_here_p): New function.
12465 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12466 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12467 breakpoint.c.
12468 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12469 breakpoint.h
12470 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12471 call gdbarch_program_breakpoint_here_p.
12472 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12473 default_program_breakpoint_here_p, changed return type to bool and
12474 simplified.
12475 * breakpoint.h (program_breakpoint_here): Moved prototype to
12476 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12477 return type to bool.
12478 * gdbarch.c: Regenerate.
12479 * gdbarch.h: Regenerate.
12480 * gdbarch.sh (program_breakpoint_here_p): New method.
12481 * infrun.c (handle_signal_stop): Call
12482 gdbarch_program_breakpoint_here_p.
12483
168f8c6b
TT
124842020-01-26 Tom Tromey <tom@tromey.com>
12485
12486 * ctfread.c (struct ctf_fp_info): Reindent.
12487 (_initialize_ctfread): Remove.
12488
128a391f
TT
124892020-01-26 Tom Tromey <tom@tromey.com>
12490
12491 * psymtab.c (partial_map_expand_apply)
12492 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12493 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12494 (psym_print_stats, psym_expand_symtabs_for_function)
12495 (psym_map_symbol_filenames, psym_map_matching_symbols)
12496 (psym_expand_symtabs_matching)
12497 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12498 (maintenance_check_psymtabs): Use new methods.
12499 * psympriv.h (struct partial_symtab) <readin_p,
12500 get_compunit_symtab>: New methods.
12501 <readin, compunit_symtab>: Remove members.
12502 (struct standard_psymtab): New.
12503 (struct legacy_psymtab): Derive from standard_psymtab.
12504 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12505 standard_psymtab.
12506 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12507
0494dbec
TT
125082020-01-26 Tom Tromey <tom@tromey.com>
12509
12510 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12511 read_dependencies. Add assert.
12512 * psymtab.c (partial_symtab::read_dependencies): New method.
12513 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12514 method.
12515 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12516 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12517 read_dependencies.
12518 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12519 Add assert.
12520
8566b89b
TT
125212020-01-26 Tom Tromey <tom@tromey.com>
12522
12523 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12524 Call expand_psymtab.
12525 (xcoff_read_symtab): Call expand_psymtab.
12526 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12527 legacy_expand_psymtab.
12528 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12529 method.
12530 (struct legacy_psymtab) <expand_psymtab>: Implement.
12531 <legacy_expand_psymtab>: New member.
12532 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12533 (parse_partial_symbols): Set legacy_expand_psymtab.
12534 (psymtab_to_symtab_1): Change argument order. Call
12535 expand_psymtab.
12536 (new_psymtab): Set legacy_expand_psymtab.
12537 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12538 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12539 expand_psymtab.
12540 (dwarf2_psymtab::expand_psymtab): Rename from
12541 psymtab_to_symtab_1. Call expand_psymtab.
12542 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12543 (dbx_end_psymtab): Likewise.
12544 (dbx_psymtab_to_symtab_1): Change argument order. Call
12545 expand_psymtab.
12546 (dbx_read_symtab): Call expand_psymtab.
12547 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12548 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12549 (ctf_psymtab::read_symtab): Call expand_psymtab.
12550
077cbab2
TT
125512020-01-26 Tom Tromey <tom@tromey.com>
12552
12553 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12554 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12555 messages.
12556 * mdebugread.c (mdebug_read_symtab): Remove prints.
12557 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12558 assert.
12559 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12560
891813be
TT
125612020-01-26 Tom Tromey <tom@tromey.com>
12562
12563 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12564 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12565 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12566 legacy_symtab.
12567 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12568 * psymtab.c (psymtab_to_symtab): Call method.
12569 (dump_psymtab): Update.
12570 * psympriv.h (struct partial_symtab): Add virtual destructor.
12571 <read_symtab>: New method.
12572 (struct legacy_symtab): New.
12573 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12574 (struct pst_map) <pst>: Now a legacy_psymtab.
12575 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12576 (new_psymtab): Use legacy_psymtab.
12577 * dwarf2read.h (struct dwarf2_psymtab): New.
12578 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12579 * dwarf2read.c (dwarf2_create_include_psymtab)
12580 (dwarf2_build_include_psymtabs, create_type_unit_group)
12581 (create_partial_symtab, process_psymtab_comp_unit_reader)
12582 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12583 (set_partial_user): Use dwarf2_psymtab.
12584 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12585 (psymtab_to_symtab_1, process_full_comp_unit)
12586 (process_full_type_unit, dwarf2_ranges_read)
12587 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12588 (dwarf_decode_lines): Use dwarf2_psymtab.
12589 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12590 (add_address_entry_worker, write_one_signatured_type)
12591 (recursively_count_psymbols, recursively_write_psymbols)
12592 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12593 (write_debug_names): Likewise.
12594 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12595 <pst>: Now a legacy_psymtab.
12596 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12597 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12598 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12599 * ctfread.c (struct ctf_psymtab): New.
12600 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12601 ctf_psymtab.
12602 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12603 (create_partial_symtab): Return a ctf_psymtab.
12604 (scan_partial_symbols): Update.
12605
c3693a1d
TT
126062020-01-26 Tom Tromey <tom@tromey.com>
12607
12608 * xcoffread.c (xcoff_start_psymtab): Use new.
12609 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12610 renamed from start_psymtab_common.
12611 * psympriv.h (struct partial_symtab): Add new constructor.
12612 (start_psymtab_common): Don't declare.
12613 * mdebugread.c (parse_partial_symbols): Use new.
12614 * dwarf2read.c (create_partial_symtab): Use new.
12615 * dbxread.c (start_psymtab): Use new.
12616 * ctfread.c (create_partial_symtab): Use new.
12617
32caafd0
TT
126182020-01-26 Tom Tromey <tom@tromey.com>
12619
12620 * xcoffread.c (xcoff_end_psymtab): Use new.
12621 * psymtab.c (start_psymtab_common): Use new.
12622 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12623 Update.
12624 * psympriv.h (struct partial_symtab): Add parameters to
12625 constructor. Don't inline.
12626 (allocate_psymtab): Don't declare.
12627 * mdebugread.c (new_psymtab): Use new.
12628 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12629 * dbxread.c (dbx_end_psymtab): Use new.
12630
abaa2f23
TT
126312020-01-26 Tom Tromey <tom@tromey.com>
12632
12633 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12634 allocate_psymtab. Update documentation.
12635 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12636 allocate_psymtab. Do not use new.
12637 (allocate_psymtab): Use new. Update.
12638
6d94535f
TT
126392020-01-26 Tom Tromey <tom@tromey.com>
12640
12641 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12642 * psymtab.c (psym_print_stats): Update.
12643 * psympriv.h (struct partial_symtab) <readin,
12644 psymtabs_addrmap_supported, anonymous>: Now bool.
12645 * mdebugread.c (psymtab_to_symtab_1): Update.
12646 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12647 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12648 (process_full_comp_unit, process_full_type_unit): Update.
12649 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12650 * ctfread.c (psymtab_to_symtab): Update.
12651
6f17252b
TT
126522020-01-26 Tom Tromey <tom@tromey.com>
12653
12654 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12655 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12656 * psymtab.c (psymtab_storage): Delete psymtabs.
12657 (psymtab_storage::allocate_psymtab): Use new.
12658 (psymtab_storage::discard_psymtab): Use delete.
12659 * psympriv.h (struct partial_symtab): Add constructor and
12660 initializers.
12661
f6f1cebc
TT
126622020-01-26 Tom Tromey <tom@tromey.com>
12663
12664 * machoread.c: Do not include psympriv.h.
12665
e47e48f6
PW
126662020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12667
12668 * NEWS: Mention the new option and the set/show commands.
12669
a2fedca9
PW
126702020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12671
12672 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12673 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12674 (validate_exec_file): New variables, enums, functions.
12675 (exec_file_locate_attach, print_section_info): Style the filenames.
12676 (_initialize_exec): Install show_exec_file_mismatch_command and
12677 set_exec_file_mismatch_command.
12678 * gdbcore.h (validate_exec_file): Declare.
12679 * infcmd.c (attach_command): Call validate_exec_file.
12680 * remote.c ( remote_target::remote_add_inferior): Likewise.
12681
7ffa82e1
AB
126822020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12683
12684 * frame.c (find_frame_sal): Move call to get_next_frame into more
12685 inner scope.
12686 * inline-frame.c (inilne_state) <inline_state>: Update argument
12687 types.
12688 (inilne_state) <skipped_symbol>: Rename to...
12689 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12690 (skip_inline_frames): Build vector of skipped symbols and use this
12691 to reate the inline_state.
12692 (inline_skipped_symbol): Add a comment and some assertions, fetch
12693 skipped symbol from the list.
12694
3d92a3e3
AB
126952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12696
12697 * buildsym.c (lte_is_less_than): Delete.
12698 (buildsym_compunit::end_symtab_with_blockvector): Create local
12699 lambda function to sort line table entries, and use
12700 std::stable_sort instead of std::sort.
12701 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12702 markers when looking for a previous line.
12703
94a72be7
AB
127042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12705
12706 * dwarf2read.c (lnp_state_machine::record_line): Include
12707 end_sequence parameter in debug print out. Record the line if we
12708 are at an end_sequence marker even if it's not the start of a
12709 statement.
12710 * symmisc.c (maintenance_print_one_line_table): Print end of
12711 sequence markers with 'END' not '0'.
12712
53af73bf
PA
127132020-01-24 Pedro Alves <palves@redhat.com>
12714
12715 PR gdb/25410
12716 * thread.c (scoped_restore_current_thread::restore): Use
12717 switch_to_inferior_no_thread.
12718 * exec.c: Include "progspace-and-thread.h".
12719 (add_target_sections, remove_target_sections):
12720 scoped_restore_current_pspace_and_thread instead of
12721 scoped_restore_current_thread.
12722 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12723 and aspace to the inferior before calling clone_program_space.
12724 Remove stale comment.
12725
3050c6f4
CB
127262020-01-24 Christian Biesinger <cbiesinger@google.com>
12727
12728 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12729 (arm_netbsd_nat_target::fetch_registers): ...this.
12730 (arm_nbsd_nat_target::store_registers): Rename to...
12731 (arm_netbsd_nat_target::store_registers): ...this.
12732
73685c7e
CB
127332020-01-24 Christian Biesinger <cbiesinger@google.com>
12734
12735 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12736 register_t.
12737
89203d40
CB
127382020-01-24 Christian Biesinger <cbiesinger@google.com>
12739
12740 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12741 Update comment.
12742 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12743 Likewise.
12744 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12745 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12746 the correct replacement (iterate_over_regset_sections).
12747 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12748 Update comment.
12749
1ba1ac88
AB
127502020-01-24 Graham Markall <graham.markall@embecosm.com>
12751
12752 PR gdb/23718
12753 * gdb/python/python.c (execute_gdb_command): Call
12754 async_enable_stdin in catch block.
12755
f3364a6d
AB
127562020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12757
12758 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12759 SWITCH_THRU_ALL_UIS.
12760
733d0a67
AB
127612020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12762
12763 PR tui/9765
12764 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12765 comment, add extra parameter, and update to store previous symbol
12766 when appropriate.
12767 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12768 add extra parameter.
12769 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12770 remove unneeded parameter, add try/catch around gdb_print_insn,
12771 rewrite to add items to asm_lines vector.
12772 (tui_find_backward_disassembly_start_address): New function.
12773 (tui_find_disassembly_address): Updated throughout.
12774 (tui_disasm_window::set_contents): Update for changes to
12775 tui_disassemble.
12776 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12777 number of lines to scroll.
12778
b3b3bada
SM
127792020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12780
12781 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12782 (SECT_OFF_DATA): Likewise.
12783 (SECT_OFF_RODATA): Likewise.
12784 (SECT_OFF_TEXT): Likewise.
12785 (SECT_OFF_BSS): Likewise.
12786 (struct objfile) <text_section_offset, data_section_offset>: New
12787 methods.
12788 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12789 objfile::text_section_offset.
12790 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12791 * coffread.c (coff_symtab_read): Likewise.
12792 (enter_linenos): Likewise.
12793 (process_coff_symbol): Likewise.
12794 * ctfread.c (get_objfile_text_range): Likewise.
12795 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12796 Use objfile::data_section_offset.
12797 * dwarf2-frame.c (execute_cfa_program): Use
12798 objfile::text_section_offset.
12799 (dwarf2_frame_find_fde): Likewise.
12800 * dwarf2read.c (create_addrmap_from_index): Likewise.
12801 (create_addrmap_from_aranges): Likewise.
12802 (dw2_find_pc_sect_compunit_symtab): Likewise.
12803 (process_psymtab_comp_unit_reader): Likewise.
12804 (add_partial_symbol): Likewise.
12805 (add_partial_subprogram): Likewise.
12806 (process_full_comp_unit): Likewise.
12807 (read_file_scope): Likewise.
12808 (read_func_scope): Likewise.
12809 (read_lexical_block_scope): Likewise.
12810 (read_call_site_scope): Likewise.
12811 (dwarf2_rnglists_process): Likewise.
12812 (dwarf2_ranges_process): Likewise.
12813 (dwarf2_ranges_read): Likewise.
12814 (dwarf_decode_lines_1): Likewise.
12815 (new_symbol): Likewise.
12816 (dwarf2_fetch_die_loc_sect_off): Likewise.
12817 (dwarf2_per_cu_text_offset): Likewise.
12818 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12819 * hppa-tdep.c (read_unwind_info): Likewise.
12820 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12821 * psympriv.h (struct partial_symtab): Likewise.
12822 * psymtab.c (find_pc_sect_psymtab): Likewise.
12823 * solib-svr4.c (enable_break): Likewise.
12824 * stap-probe.c (relocate_address): Use
12825 objfile::data_section_offset.
12826 * xcoffread.c (enter_line_range): Use
12827 objfile::text_section_offset.
12828 (read_xcoff_symtab): Likewise.
12829
ab53f382
SM
128302020-01-23 Simon Marchi <simon.marchi@efficios.com>
12831
12832 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12833 declaration to narrower scopes.
12834
e7eee665
SM
128352020-01-23 Simon Marchi <simon.marchi@efficios.com>
12836
12837 * darwin-nat.h (struct darwin_exception_msg, enum
12838 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12839 Move up.
12840 (class darwin_nat_target) <wait_1, check_new_threads,
12841 decode_exception_message, decode_message, stop_inferior,
12842 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12843 * darwin-nat.c (darwin_check_new_threads): Rename to...
12844 (darwin_nat_target::check_new_threads): ... this.
12845 (darwin_suspend_inferior_it): Remove.
12846 (darwin_decode_exception_message): Rename to...
12847 (darwin_nat_target::decode_exception_message): ... this.
12848 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12849 (darwin_decode_message): Rename to...
12850 (darwin_nat_target::decode_message): ... this.
12851 (cancel_breakpoint): Rename to...
12852 (darwin_nat_target::cancel_breakpoint): ... this.
12853 (darwin_wait): Rename to...
12854 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12855 instead of iterate_over_inferiors.
12856 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12857 (darwin_stop_inferior): Rename to...
12858 (darwin_nat_target::stop_inferior): ... this.
12859 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12860 (darwin_init_thread_list): Rename to...
12861 (darwin_nat_target::init_thread_list): ... this.
12862 (darwin_ptrace_him): Rename to...
12863 (darwin_nat_target::ptrace_him): ... this.
12864 (darwin_nat_target::create_inferior): Pass lambda function to
12865 fork_inferior.
12866 (darwin_nat_target::detach): Call stop_inferior instead of
12867 darwin_stop_inferior.
12868 * fork-inferior.h (fork_inferior): Change init_trace_fun
12869 parameter to gdb::function_view.
12870 * fork-inferior.c (fork_inferior): Likewise.
12871
c162ed3e
HD
128722020-01-23 Hannes Domani <ssbssa@yahoo.de>
12873
12874 * i386-cygwin-tdep.c (core_process_module_section): Update.
12875 * windows-nat.c (struct lm_info_windows): Add text_offset.
12876 (windows_xfer_shared_libraries): Update.
12877 * windows-tdep.c (windows_xfer_shared_library):
12878 Add text_offset_cached argument.
12879 * windows-tdep.h (windows_xfer_shared_library): Update.
12880
a1237872
SM
128812020-01-21 Simon Marchi <simon.marchi@efficios.com>
12882
12883 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12884
b3ee6dd9
SM
128852020-01-21 Simon Marchi <simon.marchi@efficios.com>
12886
12887 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12888 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12889 replace with range-based for.
12890 (gdbsim_interrupt_inferior): Remove.
12891 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12892 with a range-based for. Inline code from
12893 gdbsim_interrupt_inferior.
12894
f9fac3c8
SM
128952020-01-21 Simon Marchi <simon.marchi@efficios.com>
12896
12897 * infrun.c (proceed): Fix indentation.
12898
f6474de9
TT
128992020-01-21 Tom Tromey <tromey@adacore.com>
12900
12901 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12902 * python/python.c (python_extension_ops): Update.
12903 (gdbpy_colorize): New function.
12904 * python/lib/gdb/__init__.py (colorize): New function.
12905 * extension.h (ext_lang_colorize): Declare.
12906 * extension.c (ext_lang_colorize): New function.
12907 * extension-priv.h (struct extension_language_ops) <colorize>: New
12908 member.
12909 * cli/cli-style.c (_initialize_cli_style): Update help text.
12910
f0c702d4
LM
129112020-01-21 Luis Machado <luis.machado@linaro.org>
12912
12913 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12914 <cond>: Change type to bool.
12915 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12916 (aarch64_displaced_step_cb): Likewise.
12917 (aarch64_displaced_step_tb): Likewise.
12918
1ab139e5
LM
129192020-01-21 Luis Machado <luis.machado@linaro.org>
12920
12921 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12922 output.
12923
0c271889
LM
129242020-01-21 Luis Machado <luis.machado@linaro.org>
12925
12926 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12927 <pc_adjust>: Adjust the documentation.
12928 (aarch64_displaced_step_fixup): Check if PC really moved before
12929 adjusting it.
12930
4d89c1c7
TT
129312020-01-19 Tom Tromey <tom@tromey.com>
12932
12933 * disasm.c (~gdb_disassembler): New destructor.
12934 (gdb_buffered_insn_length): Call disassemble_free_target.
12935 * disasm.h (class gdb_disassembler): Declare destructor. Use
12936 DISABLE_COPY_AND_ASSIGN.
12937
c0ab21c2
TT
129382020-01-19 Tom Tromey <tom@tromey.com>
12939
12940 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12941 (die_reader_func_ftype): Remove.
12942 (cutu_reader): New class.
12943 (dw2_get_file_names_reader): Remove "data" parameter.
12944 (dw2_get_file_names): Use cutu_reader.
12945 (create_debug_type_hash_table): Update.
12946 (read_cutu_die_from_dwo): Update comment.
12947 (lookup_dwo_unit): Add dwo_name parameter.
12948 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12949 die_reader_func_ftype and data parameters.
12950 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12951 Remove die_reader_func_ftype and data parameters.
12952 (~cutu_reader): New; from init_cutu_and_read_dies.
12953 (cutu_reader::cutu_reader): Rename from
12954 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12955 and data parameters.
12956 (init_cutu_and_read_dies_simple): Remove.
12957 (struct process_psymtab_comp_unit_data): Remove.
12958 (process_psymtab_comp_unit_reader): Remove data parameter; add
12959 want_partial_unit and pretend_language parameters.
12960 (process_psymtab_comp_unit): Use cutu_reader.
12961 (build_type_psymtabs_reader): Remove data parameter.
12962 (build_type_psymtabs_1): Use cutu_reader.
12963 (process_skeletonless_type_unit): Likewise.
12964 (load_partial_comp_unit_reader): Remove.
12965 (load_partial_comp_unit): Use cutu_reader.
12966 (load_full_comp_unit_reader): Remove.
12967 (load_full_comp_unit): Use cutu_reader.
12968 (struct create_dwo_cu_data): Remove.
12969 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12970 dwo_unit parameters.
12971 (create_cus_hash_table): Use cutu_reader.
12972 (struct dwarf2_read_addr_index_data): Remove.
12973 (dwarf2_read_addr_index_reader): Remove.
12974 (dwarf2_read_addr_index): Use cutu_reader.
12975 (read_signatured_type_reader): Remove.
12976 (read_signatured_type): Use cutu_reader.
12977
45bbae5c
TT
129782020-01-19 Tom Tromey <tom@tromey.com>
12979
12980 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12981 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12982 (tui_wrefresh): Declare.
12983 * tui/tui-wingeneral.c (suppress_output): New global.
12984 (tui_suppress_output, ~tui_suppress_output): New constructor and
12985 destructor.
12986 (tui_wrefresh): New function.
12987 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12988 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12989 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12990 method.
12991 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12992 tui_wrefresh.
12993 (tui_data_window::no_refresh): New method.
12994 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12995 (tui_reg_command): Use tui_suppress_output
12996 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12997 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12998 method.
12999 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13000
4f13c1c0
TT
130012020-01-19 Tom Tromey <tom@tromey.com>
13002
13003 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13004 Handle case where symtab is null.
13005
fa47e446
SM
130062020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13007
13008 * linux-fork.c (one_fork_p): Simplify.
13009
26f42329
SM
130102020-01-17 Simon Marchi <simon.marchi@efficios.com>
13011
13012 * top.c (struct qt_args): Remove.
13013 (kill_or_detach): Change return type to void, replace `void *`
13014 parameter with a proper one.
13015 (print_inferior_quit_action): Likewise.
13016 (quit_confirm): Use range-based for loop to iterate over inferiors.
13017 (quit_force): Likewise.
13018
a9ac81b1
SM
130192020-01-17 Simon Marchi <simon.marchi@efficios.com>
13020
13021 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13022 `void *` parameter with proper parameters.
13023 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13024 (print_one_inferior): Change return type to void, replace `void *`
13025 parameter with proper parameters.
13026 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13027 inferiors.
13028 (get_other_inferior): Remove.
13029 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13030 inferiors.
13031
788eca49
SM
130322020-01-17 Simon Marchi <simon.marchi@efficios.com>
13033
13034 * mi/mi-interp.c (report_initial_inferior): Remove.
13035 (mi_interp::init): Use range-based for to iterate over inferiors.
13036
d9bc85b6
SM
130372020-01-17 Simon Marchi <simon.marchi@efficios.com>
13038
13039 * python/py-inferior.c (build_inferior_list): Remove.
13040 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13041
40c94099
CB
130422020-01-16 Christian Biesinger <cbiesinger@google.com>
13043
13044 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13045 (btrace_stitch_trace): Likewise.
13046 * charset.c (intermediate_encoding): Likewise (vaild).
13047 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13048 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13049 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13050
e0cdfe3c
HD
130512020-01-16 Hannes Domani <ssbssa@yahoo.de>
13052
13053 * windows-tdep.c (windows_get_tlb_type):
13054 Add rtl_user_process_parameters type.
13055
790f1718 130562020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13057 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13058
13059 PR build/24805
13060 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13061 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13062 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13063 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13064 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13065 (ps_plog): Redeclare exported functions with default visibility.
13066
3112ed97
NA
130672020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13068
13069 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13070 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13071
8dc3273e
SM
130722020-01-15 Simon Marchi <simon.marchi@efficios.com>
13073
13074 * infcmd.c (post_create_inferior): Use get_thread_regcache
13075 instead of get_current_regcache.
13076
ff47f4f0
TT
130772020-01-14 Tom Tromey <tom@tromey.com>
13078
13079 PR symtab/12535:
13080 * python/python.c (gdbpy_decode_line): Treat empty string the same
13081 as no argument.
13082
975f45b7
TT
130832020-01-14 Tom Tromey <tom@tromey.com>
13084
13085 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13086
25e57356
TT
130872020-01-14 Tom Tromey <tom@tromey.com>
13088
13089 * nat/linux-btrace.c: Don't include <config.h>.
13090 * nat/linux-ptrace.c: Don't include <config.h>.
13091 * nat/x86-linux-dregs.c: Don't include <config.h>.
13092
05ea2a05
TT
130932020-01-14 Tom Tromey <tom@tromey.com>
13094
13095 * configure: Rebuild.
13096 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13097
01027315
TT
130982020-01-14 Tom Tromey <tom@tromey.com>
13099
13100 * nat/x86-linux-dregs.c: Include configh.h.
13101 * nat/linux-ptrace.c: Include configh.h.
13102 * nat/linux-btrace.c: Include configh.h.
13103 * defs.h: Include config.h, bfd.h.
13104 * configure.ac: Don't source common.host.
13105 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13106 * configure: Rebuild.
13107 * acinclude.m4: Update path.
13108 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13109 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13110 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13111 (CLIBS): Add LIBSUPPORT.
13112 (CDEPS): Likewise.
13113 (COMMON_SFILES): Remove gdbsupport files.
13114 (HFILES_NO_SRCDIR): Likewise.
13115 (stamp-version): Update path to create-version.sh.
13116 (ALLDEPFILES): Remove gdbsupport files.
13117
b2ceabe8
TT
131182020-01-14 Tom Tromey <tom@tromey.com>
13119
13120 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13121 USE_WIN32API when needed.
13122 * configure.ac (USE_WIN32API): Don't define.
13123 (WIN32LIBS): Use WIN32APILIBS.
13124 * configure: Rebuild.
13125
25c51f71
TT
131262020-01-14 Tom Tromey <tom@tromey.com>
13127
13128 * configure: Rebuild.
13129 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13130
717c684d
BE
131312020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13132
13133 * skip.c (skip_function_command): Make skip w/o arguments use the
13134 name of the inlined function if pc is inside any inlined function.
13135
7da6a5b9
LM
131362020-01-14 Luis Machado <luis.machado@linaro.org>
13137
13138 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13139 * infrun.c (resume_1): Likewise.
13140 (handle_inferior_event): Remove stale comment.
13141 * linux-nat.c (linux_nat_target::resume): Update comments.
13142 (save_stop_reason): Likewise.
13143 (linux_nat_filter_event): Likewise.
13144 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13145
44e4c775
AB
131462020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13147
13148 * elfread.c (record_minimal_symbol): Set section index to 0 for
13149 non-allocatable sections.
13150
18a8505e
AT
13151
131522020-01-13 Ali Tamur <tamur@google.com>
13153
13154 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13155 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13156 to gdb::optional. Update comments.
13157 (dwo_file): Update comments.
13158 (read_attribute): Update API to take an additional out parameter,
13159 need_reprocess. This is used to mark attributes that need other
13160 attributes (e.g. str_offsets_base) for correct computation which may not
13161 have been read yet.
13162 (read_attribute_reprocess): New function declaration.
13163 (read_addr_index): Likewise.
13164 (read_dwo_str_index): Likewise.
13165 (read_stub_str_index): Likewise.
13166 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13167 (lookup_addr_base): New function definition.
13168 (lookup_ranges_base): Likewise.
13169 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13170 lookup_ranges_base.
13171 (init_cutu_and_read_dies): Update comments.
13172 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13173 unit. This is used to inherit parent's str_offsets_base and addr_base.
13174 Update comments.
13175 (init_cutu_and_read_dies_simple): Reflect API changes.
13176 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13177 (create_cus_hash_table): Change API to take parent compile unit.
13178 Reflect API changes.
13179 (open_and_init_dwo_file): Reflect API changes.
13180 (dwarf2_get_pc_bounds): Update comments.
13181 (dwarf2_record_block_ranges): Likewise.
13182 (read_full_die_1): Change implementation to reprocess attributes that
13183 need str_offsets_base and addr_base.
13184 (partial_die_info::read): Likewise.
13185 (read_attribute_reprocess): New function definition.
13186 (read_attribute_value): Change API to take an additional out parameter,
13187 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13188 when a non-dwo compile unit has index based attributes.
13189 (read_attribute): Reflect API changes.
13190 (read_addr_index_1): Reflect API changes. Update comments.
13191 (dwarf2_read_addr_index_data): Reflect API changes.
13192 (dwarf2_read_addr_index): Likewise.
13193 (read_str_index): Change API and implementation. This becomes a helper
13194 to be used by the new string index related methods. Update error
13195 message and comments.
13196 (read_dwo_str_index): New function definition.
13197 (read_stub_str_index): Likewise.
13198 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13199 * symfile.h (dwarf2_debug_sections): Likewise.
13200 * xcoffread.c (dwarf2_debug_sections): Likewise.
13201
0cac9354
SM
132022020-01-13 Simon Marchi <simon.marchi@efficios.com>
13203
13204 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13205 core_reg_sect type to gdb_byte *.
13206 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13207 * cris-tdep.c (fetch_core_registers): Likewise.
13208 * corelow.c (core_target::get_core_register_section): Change
13209 type of `contents` to gdb::byte_vector.
13210
9a6d629c
AB
132112020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13212
13213 * tui/tui-wingeneral.c (box_win): Position the title in the center
13214 of the border.
13215
d8b2f9e3
SM
132162020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13217
13218 * corelow.c (core_target::get_core_register_section): Use
13219 std::vector instead of alloca.
13220
bb564c58
SM
132212020-01-13 Simon Marchi <simon.marchi@efficios.com>
13222
13223 * warning.m4: Add -Wmissing-declarations to build_warnings.
13224 * configure: Re-generate.
13225
6b366111
SM
132262020-01-13 Simon Marchi <simon.marchi@efficios.com>
13227
13228 * python/python.c (init__gdb_module): Add declaration.
13229
6c265988
SM
132302020-01-13 Simon Marchi <simon.marchi@efficios.com>
13231
13232 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13233 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13234 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13235 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13236 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13237 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13238 * ada-exp.y (_initialize_ada_exp): Add declaration.
13239 * ada-lang.c (_initialize_ada_language): Add declaration.
13240 * ada-tasks.c (_initialize_tasks): Add declaration.
13241 * agent.c (_initialize_agent): Add declaration.
13242 * aix-thread.c (_initialize_aix_thread): Add declaration.
13243 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13244 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13245 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13246 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13247 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13248 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13249 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13250 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13251 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13252 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13253 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13254 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13255 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13256 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13257 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13258 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13259 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13260 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13261 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13262 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13263 * annotate.c (_initialize_annotate): Add declaration.
13264 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13265 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13266 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13267 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13268 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13269 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13270 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13271 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13272 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13273 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13274 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13275 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13276 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13277 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13278 * auto-load.c (_initialize_auto_load): Add declaration.
13279 * auxv.c (_initialize_auxv): Add declaration.
13280 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13281 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13282 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13283 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13284 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13285 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13286 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13287 * breakpoint.c (_initialize_breakpoint): Add declaration.
13288 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13289 * btrace.c (_initialize_btrace): Add declaration.
13290 * charset.c (_initialize_charset): Add declaration.
13291 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13292 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13293 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13294 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13295 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13296 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13297 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13298 * coffread.c (_initialize_coffread): Add declaration.
13299 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13300 * compile/compile.c (_initialize_compile): Add declaration.
13301 * complaints.c (_initialize_complaints): Add declaration.
13302 * completer.c (_initialize_completer): Add declaration.
13303 * copying.c (_initialize_copying): Add declaration.
13304 * corefile.c (_initialize_core): Add declaration.
13305 * corelow.c (_initialize_corelow): Add declaration.
13306 * cp-abi.c (_initialize_cp_abi): Add declaration.
13307 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13308 * cp-support.c (_initialize_cp_support): Add declaration.
13309 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13310 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13311 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13312 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13313 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13314 * ctfread.c (_initialize_ctfread): Add declaration.
13315 * d-lang.c (_initialize_d_language): Add declaration.
13316 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13317 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13318 * dbxread.c (_initialize_dbxread): Add declaration.
13319 * dcache.c (_initialize_dcache): Add declaration.
13320 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13321 * disasm.c (_initialize_disasm): Add declaration.
13322 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13323 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13324 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13325 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13326 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13327 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13328 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13329 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13330 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13331 * elfread.c (_initialize_elfread): Add declaration.
13332 * exec.c (_initialize_exec): Add declaration.
13333 * extension.c (_initialize_extension): Add declaration.
13334 * f-lang.c (_initialize_f_language): Add declaration.
13335 * f-valprint.c (_initialize_f_valprint): Add declaration.
13336 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13337 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13338 * filesystem.c (_initialize_filesystem): Add declaration.
13339 * findcmd.c (_initialize_mem_search): Add declaration.
13340 * findvar.c (_initialize_findvar): Add declaration.
13341 * fork-child.c (_initialize_fork_child): Add declaration.
13342 * frame-base.c (_initialize_frame_base): Add declaration.
13343 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13344 * frame.c (_initialize_frame): Add declaration.
13345 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13346 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13347 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13348 * gcore.c (_initialize_gcore): Add declaration.
13349 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13350 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13351 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13352 * gdbarch.c (_initialize_gdbarch): Add declaration.
13353 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13354 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13355 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13356 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13357 * go-lang.c (_initialize_go_language): Add declaration.
13358 * go32-nat.c (_initialize_go32_nat): Add declaration.
13359 * guile/guile.c (_initialize_guile): Add declaration.
13360 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13361 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13362 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13363 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13364 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13365 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13366 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13367 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13368 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13369 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13370 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13371 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13372 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13373 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13374 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13375 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13376 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13377 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13378 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13379 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13380 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13381 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13382 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13383 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13384 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13385 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13386 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13387 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13388 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13389 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13390 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13391 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13392 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13393 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13394 * infcall.c (_initialize_infcall): Add declaration.
13395 * infcmd.c (_initialize_infcmd): Add declaration.
13396 * inflow.c (_initialize_inflow): Add declaration.
13397 * infrun.c (_initialize_infrun): Add declaration.
13398 * interps.c (_initialize_interpreter): Add declaration.
13399 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13400 * jit.c (_initialize_jit): Add declaration.
13401 * language.c (_initialize_language): Add declaration.
13402 * linux-fork.c (_initialize_linux_fork): Add declaration.
13403 * linux-nat.c (_initialize_linux_nat): Add declaration.
13404 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13405 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13406 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13407 * m2-lang.c (_initialize_m2_language): Add declaration.
13408 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13409 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13410 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13411 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13412 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13413 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13414 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13415 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13416 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13417 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13418 * machoread.c (_initialize_machoread): Add declaration.
13419 * macrocmd.c (_initialize_macrocmd): Add declaration.
13420 * macroscope.c (_initialize_macroscope): Add declaration.
13421 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13422 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13423 * maint.c (_initialize_maint_cmds): Add declaration.
13424 * mdebugread.c (_initialize_mdebugread): Add declaration.
13425 * memattr.c (_initialize_mem): Add declaration.
13426 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13427 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13428 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13429 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13430 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13431 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13432 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13433 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13434 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13435 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13436 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13437 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13438 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13439 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13440 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13441 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13442 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13443 * mipsread.c (_initialize_mipsread): Add declaration.
13444 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13445 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13446 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13447 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13448 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13449 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13450 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13451 * nto-procfs.c (_initialize_procfs): Add declaration.
13452 * objc-lang.c (_initialize_objc_language): Add declaration.
13453 * observable.c (_initialize_observer): Add declaration.
13454 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13455 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13456 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13457 * osabi.c (_initialize_gdb_osabi): Add declaration.
13458 * osdata.c (_initialize_osdata): Add declaration.
13459 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13460 * parse.c (_initialize_parse): Add declaration.
13461 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13462 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13463 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13464 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13465 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13466 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13467 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13468 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13469 * printcmd.c (_initialize_printcmd): Add declaration.
13470 * probe.c (_initialize_probe): Add declaration.
13471 * proc-api.c (_initialize_proc_api): Add declaration.
13472 * proc-events.c (_initialize_proc_events): Add declaration.
13473 * proc-service.c (_initialize_proc_service): Add declaration.
13474 * procfs.c (_initialize_procfs): Add declaration.
13475 * producer.c (_initialize_producer): Add declaration.
13476 * psymtab.c (_initialize_psymtab): Add declaration.
13477 * python/python.c (_initialize_python): Add declaration.
13478 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13479 * record-btrace.c (_initialize_record_btrace): Add declaration.
13480 * record-full.c (_initialize_record_full): Add declaration.
13481 * record.c (_initialize_record): Add declaration.
13482 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13483 * regcache.c (_initialize_regcache): Add declaration.
13484 * reggroups.c (_initialize_reggroup): Add declaration.
13485 * remote-notif.c (_initialize_notif): Add declaration.
13486 * remote-sim.c (_initialize_remote_sim): Add declaration.
13487 * remote.c (_initialize_remote): Add declaration.
13488 * reverse.c (_initialize_reverse): Add declaration.
13489 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13490 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13491 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13492 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13493 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13494 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13495 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13496 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13497 Add declaration.
13498 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13499 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13500 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13501 * rust-exp.y (_initialize_rust_exp): Add declaration.
13502 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13503 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13504 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13505 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13506 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13507 * score-tdep.c (_initialize_score_tdep): Add declaration.
13508 * ser-go32.c (_initialize_ser_dos): Add declaration.
13509 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13510 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13511 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13512 * ser-uds.c (_initialize_ser_socket): Add declaration.
13513 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13514 * serial.c (_initialize_serial): Add declaration.
13515 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13516 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13517 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13518 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13519 * skip.c (_initialize_step_skip): Add declaration.
13520 * sol-thread.c (_initialize_sol_thread): Add declaration.
13521 * solib-aix.c (_initialize_solib_aix): Add declaration.
13522 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13523 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13524 * solib-frv.c (_initialize_frv_solib): Add declaration.
13525 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13526 * solib-target.c (_initialize_solib_target): Add declaration.
13527 * solib.c (_initialize_solib): Add declaration.
13528 * source-cache.c (_initialize_source_cache): Add declaration.
13529 * source.c (_initialize_source): Add declaration.
13530 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13531 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13532 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13533 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13534 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13535 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13536 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13537 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13538 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13539 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13540 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13541 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13542 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13543 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13544 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13545 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13546 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13547 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13548 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13549 * stabsread.c (_initialize_stabsread): Add declaration.
13550 * stack.c (_initialize_stack): Add declaration.
13551 * stap-probe.c (_initialize_stap_probe): Add declaration.
13552 * std-regs.c (_initialize_frame_reg): Add declaration.
13553 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13554 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13555 * symfile.c (_initialize_symfile): Add declaration.
13556 * symmisc.c (_initialize_symmisc): Add declaration.
13557 * symtab.c (_initialize_symtab): Add declaration.
13558 * target.c (_initialize_target): Add declaration.
13559 * target-connection.c (_initialize_target_connection): Add
13560 declaration.
13561 * target-dcache.c (_initialize_target_dcache): Add declaration.
13562 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13563 * thread.c (_initialize_thread): Add declaration.
13564 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13565 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13566 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13567 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13568 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13569 * tracectf.c (_initialize_ctf): Add declaration.
13570 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13571 * tracefile.c (_initialize_tracefile): Add declaration.
13572 * tracepoint.c (_initialize_tracepoint): Add declaration.
13573 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13574 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13575 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13576 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13577 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13578 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13579 * tui/tui.c (_initialize_tui): Add declaration.
13580 * typeprint.c (_initialize_typeprint): Add declaration.
13581 * ui-style.c (_initialize_ui_style): Add declaration.
13582 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13583 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13584 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13585 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13586 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13587 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13588 * unittests/filtered_iterator-selftests.c
13589 (_initialize_filtered_iterator_selftests): Add declaration.
13590 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13591 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13592 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13593 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13594 * unittests/main-thread-selftests.c
13595 (_initialize_main_thread_selftests): Add declaration.
13596 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13597 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13598 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13599 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13600 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13601 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13602 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13603 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13604 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13605 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13606 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13607 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13608 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13609 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13610 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13611 declaration.
13612 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13613 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13614 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13615 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13616 * user-regs.c (_initialize_user_regs): Add declaration.
13617 * utils.c (_initialize_utils): Add declaration.
13618 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13619 * valops.c (_initialize_valops): Add declaration.
13620 * valprint.c (_initialize_valprint): Add declaration.
13621 * value.c (_initialize_values): Add declaration.
13622 * varobj.c (_initialize_varobj): Add declaration.
13623 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13624 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13625 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13626 * windows-nat.c (_initialize_windows_nat): Add declaration.
13627 (_initialize_check_for_gdb_ini): Add declaration.
13628 (_initialize_loadable): Add declaration.
13629 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13630 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13631 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13632 * xcoffread.c (_initialize_xcoffread): Add declaration.
13633 * xml-support.c (_initialize_xml_support): Add declaration.
13634 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13635 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13636 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13637 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13638
e2de1eec
SM
136392020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13640
13641 * regformats/regdat.sh: Generate declaration for init function.
13642
e0037b4c
SM
136432020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13644
13645 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13646 up.
13647 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13648 close_one_inferior>: New methods.
13649 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13650 pass down target to find_inferior_pid.
13651 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13652 Pass down target to find_inferior_ptid.
13653 (gdbsim_target::create_inferior): Pass down target to
13654 add_thread_silent.
13655 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13656 target down to find_inferior_ptid and switch_to_thread.
13657 (gdbsim_target::close): Update to call close_one_inferior.
13658 (struct resume_data): Remove.
13659 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13660 directly, rather than through a void pointer.
13661 (gdbsim_target::resume): Update to call resume_one_inferior.
13662
58920b5b
SM
136632020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13664
13665 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13666
4ec89149
PA
136672020-01-12 Pedro Alves <palves@redhat.com>
13668
13669 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13670 directly for the current inferior instead of
13671 discard_all_inferiors.
13672 (discard_all_inferiors): Delete.
13673
7c392d1d
TT
136742020-01-11 Tom Tromey <tom@tromey.com>
13675
13676 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13677 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13678 deprecated_safe_get_selected_frame.
13679
d9ebdab7
TBA
136802020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13681
13682 * inferior.c (print_inferior): Switch inferior before printing it.
13683
f3c469b9
PA
136842020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13685 Pedro Alves <palves@redhat.com>
13686
13687 * progspace-and-thread.c (switch_to_program_space_and_thread):
13688 Assert there's an inferior for PSPACE. Use
13689 switch_to_inferior_no_thread to switch the inferior too.
13690 * progspace.c (program_space::~program_space): Call
13691 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13692 (program_space::free_all_objfiles): Don't call clear_symtab_users
13693 here.
13694 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13695
65c574f6
PA
136962020-01-10 Pedro Alves <palves@redhat.com>
13697
13698 * NEWS: Mention multi-target debugging, "info connections", and
13699 "add-inferior -no-connection".
13700
2f4fcf00
PA
137012020-01-10 Pedro Alves <palves@redhat.com>
13702
13703 * infrun.c: Include "target-connection.h".
13704 (check_multi_target_resumption): New.
13705 (proceed): Call it.
13706 * target-connection.c (make_target_connection_string): Make
13707 extern.
13708 * target-connection.h (make_target_connection_string): Declare.
13709
121b3efd
PA
137102020-01-10 Pedro Alves <palves@redhat.com>
13711
13712 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13713 * inferior.c (uiout_field_connection): New function.
13714 (print_inferior): Add new "connection-id" column.
13715 (add_inferior_command): Show connection number/string of added
13716 inferior.
13717 * process-stratum-target.h
13718 (process_stratum_target::connection_string): New virtual method.
13719 (process_stratum_target::connection_number): New field.
13720 * remote.c (remote_target::connection_string): New override.
13721 * target-connection.c: New file.
13722 * target-connection.h: New file.
13723 * target.c (decref_target): Remove process_stratum targets from
13724 the connection list.
13725 (target_stack::push): Add process_stratum targets to the
13726 connection list.
13727
4f837581
PA
137282020-01-10 Pedro Alves <palves@redhat.com>
13729
13730 Revert:
13731 2016-04-12 Pedro Alves <palves@redhat.com>
13732 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13733 Remove references to name.
13734 * serial.h (struct serial) <name>: Delete.
13735
f4ec508e
PA
137362020-01-10 Pedro Alves <palves@redhat.com>
13737
13738 * gdbarch-selftests.c (register_to_value_test): Remove "target
13739 already pushed" check.
13740
5b6d1e4f
PA
137412020-01-10 Pedro Alves <palves@redhat.com>
13742 John Baldwin <jhb@FreeBSD.org>
13743
13744 * aarch64-linux-nat.c
13745 (aarch64_linux_nat_target::thread_architecture): Adjust.
13746 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13747 (task_command_1): Likewise.
13748 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13749 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13750 (aix_thread_target::store_registers)
13751 (aix_thread_target::thread_alive): Adjust.
13752 * amd64-fbsd-tdep.c: Include "inferior.h".
13753 (amd64fbsd_get_thread_local_address): Pass down target.
13754 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13755 thread's gdbarch instead of target_gdbarch.
13756 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13757 get_last_target_status.
13758 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13759 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13760 inferiors.
13761 (update_inserted_breakpoint_locations): Skip if inferiors with no
13762 execution.
13763 (update_global_location_list): When handling moribund locations,
13764 find representative inferior for location's pspace, and use thread
13765 count of its process_stratum target.
13766 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13767 * bsd-uthread.c (bsd_uthread_target::wait): Use
13768 as_process_stratum_target and adjust thread_change_ptid and
13769 add_thread calls.
13770 (bsd_uthread_target::update_thread_list): Use
13771 as_process_stratum_target and adjust find_thread_ptid,
13772 thread_change_ptid and add_thread calls.
13773 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13774 find_thread_ptid call.
13775 * corelow.c (add_to_thread_list): Adjust add_thread call.
13776 (core_target_open): Adjust add_thread_silent and thread_count
13777 calls.
13778 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13779 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13780 * event-top.c (async_disconnect): Pop targets from all inferiors.
13781 * exec.c (add_target_sections): Push exec target on all inferiors
13782 sharing the program space.
13783 (remove_target_sections): Remove the exec target from all
13784 inferiors sharing the program space.
13785 (exec_on_vfork): New.
13786 * exec.h (exec_on_vfork): Declare.
13787 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13788 Pass it down.
13789 (fbsd_nat_target::update_thread_list): Adjust.
13790 (fbsd_nat_target::resume): Adjust.
13791 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13792 down.
13793 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13794 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13795 get_thread_arch_regcache call.
13796 * fork-child.c (gdb_startup_inferior): Pass target down to
13797 startup_inferior and set_executing.
13798 * gdbthread.h (struct process_stratum_target): Forward declare.
13799 (add_thread, add_thread_silent, add_thread_with_info)
13800 (in_thread_list): Add process_stratum_target parameter.
13801 (find_thread_ptid(inferior*, ptid_t)): New overload.
13802 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13803 parameter.
13804 (all_threads()): Delete overload.
13805 (all_threads, all_non_exited_threads): Add process_stratum_target
13806 parameter.
13807 (all_threads_safe): Use brace initialization.
13808 (thread_count): Add process_stratum_target parameter.
13809 (set_resumed, set_running, set_stop_requested, set_executing)
13810 (threads_are_executing, finish_thread_state): Add
13811 process_stratum_target parameter.
13812 (switch_to_thread): Use is_current_thread.
13813 * i386-fbsd-tdep.c: Include "inferior.h".
13814 (i386fbsd_get_thread_local_address): Pass down target.
13815 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13816 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13817 have_inferiors check.
13818 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13819 (inf_ptrace_target::attach): Adjust.
13820 * infcall.c (run_inferior_call): Adjust.
13821 * infcmd.c (run_command_1): Pass target to
13822 scoped_finish_thread_state.
13823 (proceed_thread_callback): Skip inferiors with no execution.
13824 (continue_command): Rename 'all_threads' local to avoid hiding
13825 'all_threads' function. Adjust get_last_target_status call.
13826 (prepare_one_step): Adjust set_running call.
13827 (signal_command): Use user_visible_resume_target. Compare thread
13828 pointers instead of inferior_ptid.
13829 (info_program_command): Adjust to pass down target.
13830 (attach_command): Mark target's 'thread_executing' flag.
13831 (stop_current_target_threads_ns): New, factored out from ...
13832 (interrupt_target_1): ... this. Switch inferior before making
13833 target calls.
13834 * inferior-iter.h
13835 (struct all_inferiors_iterator, struct all_inferiors_range)
13836 (struct all_inferiors_safe_range)
13837 (struct all_non_exited_inferiors_range): Filter on
13838 process_stratum_target too. Remove explicit.
13839 * inferior.c (inferior::inferior): Push dummy target on target
13840 stack.
13841 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13842 Add process_stratum_target parameter, and pass it down.
13843 (have_live_inferiors): Adjust.
13844 (switch_to_inferior_and_push_target): New.
13845 (add_inferior_command, clone_inferior_command): Handle
13846 "-no-connection" parameter. Use
13847 switch_to_inferior_and_push_target.
13848 (_initialize_inferior): Mention "-no-connection" option in
13849 the help of "add-inferior" and "clone-inferior" commands.
13850 * inferior.h: Include "process-stratum-target.h".
13851 (interrupt_target_1): Use bool.
13852 (struct inferior) <push_target, unpush_target, target_is_pushed,
13853 find_target_beneath, top_target, process_target, target_at,
13854 m_stack>: New.
13855 (discard_all_inferiors): Delete.
13856 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13857 (all_inferiors, all_non_exited_inferiors): Add
13858 process_stratum_target parameter.
13859 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13860 (target_last_proc_target): New global.
13861 (follow_fork_inferior): Push target on new inferior. Pass target
13862 to add_thread_silent. Call exec_on_vfork. Handle target's
13863 reference count.
13864 (follow_fork): Adjust get_last_target_status call. Also consider
13865 target.
13866 (follow_exec): Push target on new inferior.
13867 (struct execution_control_state) <target>: New field.
13868 (user_visible_resume_target): New.
13869 (do_target_resume): Call target_async.
13870 (resume_1): Set target's threads_executing flag. Consider resume
13871 target.
13872 (commit_resume_all_targets): New.
13873 (proceed): Also consider resume target. Skip threads of inferiors
13874 with no execution. Commit resumtion in all targets.
13875 (start_remote): Pass current inferior to wait_for_inferior.
13876 (infrun_thread_stop_requested): Consider target as well. Pass
13877 thread_info pointer to clear_inline_frame_state instead of ptid.
13878 (infrun_thread_thread_exit): Consider target as well.
13879 (random_pending_event_thread): New inferior parameter. Use it.
13880 (do_target_wait): Rename to ...
13881 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13882 down.
13883 (threads_are_resumed_pending_p, do_target_wait): New.
13884 (prepare_for_detach): Adjust calls.
13885 (wait_for_inferior): New inferior parameter. Handle it. Use
13886 do_target_wait_1 instead of do_target_wait.
13887 (fetch_inferior_event): Adjust. Switch to representative
13888 inferior. Pass target down.
13889 (set_last_target_status): Add process_stratum_target parameter.
13890 Save target in global.
13891 (get_last_target_status): Add process_stratum_target parameter and
13892 handle it.
13893 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13894 (context_switch): Check inferior_ptid == null_ptid before calling
13895 inferior_thread().
13896 (get_inferior_stop_soon): Pass down target.
13897 (wait_one): Rename to ...
13898 (poll_one_curr_target): ... this.
13899 (struct wait_one_event): New.
13900 (wait_one): New.
13901 (stop_all_threads): Adjust.
13902 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13903 event's target.
13904 (switch_back_to_stepped_thread): Also consider target.
13905 (print_stop_event): Update.
13906 (normal_stop): Update. Also consider the resume target.
13907 * infrun.h (wait_for_inferior): Remove declaration.
13908 (user_visible_resume_target): New declaration.
13909 (get_last_target_status, set_last_target_status): New
13910 process_stratum_target parameter.
13911 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13912 process_stratum_target parameter, and use it.
13913 (clear_inline_frame_state (thread_info*)): New.
13914 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13915 process_stratum_target parameter.
13916 (clear_inline_frame_state (thread_info*)): Declare.
13917 * linux-fork.c (delete_checkpoint_command): Pass target down to
13918 find_thread_ptid.
13919 (checkpoint_command): Adjust.
13920 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13921 instead of just tweaking inferior_ptid.
13922 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13923 (exit_lwp): Pass target down to find_thread_ptid.
13924 (attach_proc_task_lwp_callback): Pass target down to
13925 add_thread/set_running/set_executing.
13926 (linux_nat_target::attach): Pass target down to
13927 thread_change_ptid.
13928 (get_detach_signal): Pass target down to find_thread_ptid.
13929 Consider last target status's target.
13930 (linux_resume_one_lwp_throw, resume_lwp)
13931 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13932 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13933 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13934 (linux_nat_target::async_wait_fd): New.
13935 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13936 target down.
13937 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13938 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13939 * linux-thread-db.c (struct thread_db_info::process_target): New
13940 field.
13941 (add_thread_db_info): Save target.
13942 (get_thread_db_info): New process_stratum_target parameter. Also
13943 match target.
13944 (delete_thread_db_info): New process_stratum_target parameter.
13945 Also match target.
13946 (thread_from_lwp): Adjust to pass down target.
13947 (thread_db_notice_clone): Pass down target.
13948 (check_thread_db_callback): Pass down target.
13949 (try_thread_db_load_1): Always push the thread_db target.
13950 (try_thread_db_load, record_thread): Pass target down.
13951 (thread_db_target::detach): Pass target down. Always unpush the
13952 thread_db target.
13953 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13954 target down. Always unpush the thread_db target.
13955 (find_new_threads_callback, thread_db_find_new_threads_2)
13956 (thread_db_target::update_thread_list): Pass target down.
13957 (thread_db_target::pid_to_str): Pass current inferior down.
13958 (thread_db_target::get_thread_local_address): Pass target down.
13959 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13960 target down.
13961 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13962 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13963 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13964 (procfs_init_inferior): Rename to ...
13965 (procfs_target::procfs_init_inferior): ... this and adjust.
13966 (procfs_target::create_inferior, procfs_notice_thread)
13967 (procfs_do_thread_registers): Adjust.
13968 * ppc-fbsd-tdep.c: Include "inferior.h".
13969 (ppcfbsd_get_thread_local_address): Pass down target.
13970 * proc-service.c (ps_xfer_memory): Switch current inferior and
13971 program space as well.
13972 (get_ps_regcache): Pass target down.
13973 * process-stratum-target.c
13974 (process_stratum_target::thread_address_space)
13975 (process_stratum_target::thread_architecture): Pass target down.
13976 * process-stratum-target.h
13977 (process_stratum_target::threads_executing): New field.
13978 (as_process_stratum_target): New.
13979 * ravenscar-thread.c
13980 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13981 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13982 down.
13983 * record-btrace.c (record_btrace_target::info_record): Adjust.
13984 (record_btrace_target::record_method)
13985 (record_btrace_target::record_is_replaying)
13986 (record_btrace_target::fetch_registers)
13987 (get_thread_current_frame_id, record_btrace_target::resume)
13988 (record_btrace_target::wait, record_btrace_target::stop): Pass
13989 target down.
13990 * record-full.c (record_full_wait_1): Switch to event thread.
13991 Pass target down.
13992 * regcache.c (regcache::regcache)
13993 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13994 process_stratum_target parameter and handle it.
13995 (current_thread_target): New global.
13996 (get_thread_regcache): Add process_stratum_target parameter and
13997 handle it. Switch inferior before calling target method.
13998 (get_thread_regcache): Pass target down.
13999 (get_thread_regcache_for_ptid): Pass target down.
14000 (registers_changed_ptid): Add process_stratum_target parameter and
14001 handle it.
14002 (registers_changed_thread, registers_changed): Pass target down.
14003 (test_get_thread_arch_aspace_regcache): New.
14004 (current_regcache_test): Define a couple local test_target_ops
14005 instances and use them for testing.
14006 (readwrite_regcache): Pass process_stratum_target parameter.
14007 (cooked_read_test, cooked_write_test): Pass mock_target down.
14008 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14009 (get_thread_arch_aspace_regcache): Add process_stratum_target
14010 parameter.
14011 (regcache::target): New method.
14012 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14013 (regcache::registers_changed_ptid): Add process_stratum_target
14014 parameter.
14015 (regcache::m_target): New field.
14016 (registers_changed_ptid): Add process_stratum_target parameter.
14017 * remote.c (remote_state::supports_vCont_probed): New field.
14018 (remote_target::async_wait_fd): New method.
14019 (remote_unpush_and_throw): Add remote_target parameter.
14020 (get_current_remote_target): Adjust.
14021 (remote_target::remote_add_inferior): Push target.
14022 (remote_target::remote_add_thread)
14023 (remote_target::remote_notice_new_inferior)
14024 (get_remote_thread_info): Pass target down.
14025 (remote_target::update_thread_list): Skip threads of inferiors
14026 bound to other targets. (remote_target::close): Don't discard
14027 inferiors. (remote_target::add_current_inferior_and_thread)
14028 (remote_target::process_initial_stop_replies)
14029 (remote_target::start_remote)
14030 (remote_target::remote_serial_quit_handler): Pass down target.
14031 (remote_target::remote_unpush_target): New remote_target
14032 parameter. Unpush the target from all inferiors.
14033 (remote_target::remote_unpush_and_throw): New remote_target
14034 parameter. Pass it down.
14035 (remote_target::open_1): Check whether the current inferior has
14036 execution instead of checking whether any inferior is live. Pass
14037 target down.
14038 (remote_target::remote_detach_1): Pass down target. Use
14039 remote_unpush_target.
14040 (extended_remote_target::attach): Pass down target.
14041 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14042 (remote_target::append_resumption): Pass down target.
14043 (remote_target::append_pending_thread_resumptions)
14044 (remote_target::remote_resume_with_hc, remote_target::resume)
14045 (remote_target::commit_resume): Pass down target.
14046 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14047 (remote_target::interrupt_query)
14048 (remote_target::remove_new_fork_children)
14049 (remote_target::check_pending_events_prevent_wildcard_vcont)
14050 (remote_target::remote_parse_stop_reply)
14051 (remote_target::process_stop_reply): Pass down target.
14052 (first_remote_resumed_thread): New remote_target parameter. Pass
14053 it down.
14054 (remote_target::wait_as): Pass down target.
14055 (unpush_and_perror): New remote_target parameter. Pass it down.
14056 (remote_target::readchar, remote_target::remote_serial_write)
14057 (remote_target::getpkt_or_notif_sane_1)
14058 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14059 down target.
14060 (remote_target::mourn_inferior): Pass down target. Use
14061 remote_unpush_target.
14062 (remote_target::core_of_thread)
14063 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14064 (remote_target::pid_to_exec_file)
14065 (remote_target::thread_handle_to_thread_info): Pass down target.
14066 (remote_target::async_wait_fd): New.
14067 * riscv-fbsd-tdep.c: Include "inferior.h".
14068 (riscv_fbsd_get_thread_local_address): Pass down target.
14069 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14070 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14071 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14072 Adjust.
14073 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14074 * solib-svr4.c (enable_break): Pass down target.
14075 * spu-multiarch.c (parse_spufs_run): Pass down target.
14076 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14077 * target-delegates.c: Regenerate.
14078 * target.c (g_target_stack): Delete.
14079 (current_top_target): Return the current inferior's top target.
14080 (target_has_execution_1): Refer to the passed-in inferior's top
14081 target.
14082 (target_supports_terminal_ours): Check whether the initial
14083 inferior was already created.
14084 (decref_target): New.
14085 (target_stack::push): Incref/decref the target.
14086 (push_target, push_target, unpush_target): Adjust.
14087 (target_stack::unpush): Defref target.
14088 (target_is_pushed): Return bool. Adjust to refer to the current
14089 inferior's target stack.
14090 (dispose_inferior): Delete, and inline parts ...
14091 (target_preopen): ... here. Only dispose of the current inferior.
14092 (target_detach): Hold strong target reference while detaching.
14093 Pass target down.
14094 (target_thread_name): Add assertion.
14095 (target_resume): Pass down target.
14096 (target_ops::beneath, find_target_at): Adjust to refer to the
14097 current inferior's target stack.
14098 (get_dummy_target): New.
14099 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14100 has a thread running.
14101 (initialize_targets): Rename to ...
14102 (_initialize_target): ... this.
14103 * target.h: Include "gdbsupport/refcounted-object.h".
14104 (struct target_ops): Inherit refcounted_object.
14105 (target_ops::shortname, target_ops::longname): Make const.
14106 (target_ops::async_wait_fd): New method.
14107 (decref_target): Declare.
14108 (struct target_ops_ref_policy): New.
14109 (target_ops_ref): New typedef.
14110 (get_dummy_target): Declare function.
14111 (target_is_pushed): Return bool.
14112 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14113 (all_matching_threads_iterator::all_matching_threads_iterator):
14114 Handle filter target.
14115 * thread-iter.h (struct all_matching_threads_iterator, struct
14116 all_matching_threads_range, class all_non_exited_threads_range):
14117 Filter by target too. Remove explicit.
14118 * thread.c (threads_executing): Delete.
14119 (inferior_thread): Pass down current inferior.
14120 (clear_thread_inferior_resources): Pass down thread pointer
14121 instead of ptid_t.
14122 (add_thread_silent, add_thread_with_info, add_thread): Add
14123 process_stratum_target parameter. Use it for thread and inferior
14124 searches.
14125 (is_current_thread): New.
14126 (thread_info::deletable): Use it.
14127 (find_thread_ptid, thread_count, in_thread_list)
14128 (thread_change_ptid, set_resumed, set_running): New
14129 process_stratum_target parameter. Pass it down.
14130 (set_executing): New process_stratum_target parameter. Pass it
14131 down. Adjust reference to 'threads_executing'.
14132 (threads_are_executing): New process_stratum_target parameter.
14133 Adjust reference to 'threads_executing'.
14134 (set_stop_requested, finish_thread_state): New
14135 process_stratum_target parameter. Pass it down.
14136 (switch_to_thread): Also match inferior.
14137 (switch_to_thread): New process_stratum_target parameter. Pass it
14138 down.
14139 (update_threads_executing): Reimplement.
14140 * top.c (quit_force): Pop targets from all inferior.
14141 (gdb_init): Don't call initialize_targets.
14142 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14143 Declare.
14144 (windows_add_thread, windows_delete_thread): Adjust.
14145 (get_windows_debug_event): Rename to ...
14146 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14147 * tracefile-tfile.c (tfile_target_open): Pass down target.
14148 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14149 Forward declare.
14150 (switch_to_thread): Add process_stratum_target parameter.
14151 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14152 parameter. Use it.
14153 (mi_on_resume): Pass target down.
14154 * nat/fork-inferior.c (startup_inferior): Add
14155 process_stratum_target parameter. Pass it down.
14156 * nat/fork-inferior.h (startup_inferior): Add
14157 process_stratum_target parameter.
14158 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14159
75c6c844
PA
141602020-01-10 Pedro Alves <palves@redhat.com>
14161
14162 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14163 directly. Instead find the first thread in the thread list and
14164 use switch_to_thread.
14165
78f2c40a
PA
141662020-01-10 Pedro Alves <palves@redhat.com>
14167
14168 * remote.c (remote_target::remote_add_inferior): Don't bind a
14169 process to the current inferior if the current inferior is already
14170 bound to a process.
14171
e7af6c70
TBA
141722020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14173 Pedro Alves <palves@redhat.com>
14174
14175 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14176 If no process is specified, return null_ptid instead of
14177 inferior_ptid.
14178 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14179 TARGET_WAITKIND_SIGNALLED with no pid.
14180
31ba933e
PA
141812020-01-10 Pedro Alves <palves@redhat.com>
14182
14183 * remote.c (first_remote_resumed_thread): New.
14184 (remote_target::wait_as): Use it as default event_ptid instead of
14185 inferior_ptid.
14186
735fc2ca
PA
141872020-01-10 Pedro Alves <palves@redhat.com>
14188
14189 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14190
c17e02e1
PA
141912020-01-10 Pedro Alves <palves@redhat.com>
14192
14193 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14194 not -1.
14195
ab1ddbcf
PA
141962020-01-10 Pedro Alves <palves@redhat.com>
14197
14198 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14199 ptid to get_last_target_status.
14200 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14201 ptid to get_last_target_status.
14202 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14203 get_last_target_status.
14204 (info_program_command): Don't pass a target_waitstatus to
14205 get_last_target_status.
14206 * infrun.c (init_wait_for_inferior): Use
14207 nullify_last_target_wait_ptid.
14208 (get_last_target_status): Handle nullptr arguments.
14209 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14210 (print_stop_event): Don't pass a ptid to get_last_target_status.
14211 (normal_stop): Don't pass a ptid to get_last_target_status.
14212 * infrun.h (get_last_target_status, set_last_target_status): Move
14213 comments here and update.
14214 (nullify_last_target_wait_ptid): Declare.
14215 * linux-fork.c (fork_load_infrun_state): Remove local extern
14216 declaration of nullify_last_target_wait_ptid.
14217 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14218 to get_last_target_status.
14219
f3f8ece4
PA
142202020-01-10 Pedro Alves <palves@redhat.com>
14221
14222 * gdbthread.h (scoped_restore_current_thread)
14223 <dont_restore, restore, m_dont_restore>: Declare.
14224 * thread.c (thread_alive): Add assertion. Return bool.
14225 (switch_to_thread_if_alive): New.
14226 (prune_threads): Switch inferior/thread.
14227 (print_thread_info_1): Switch thread before calling target methods.
14228 (scoped_restore_current_thread::restore): New, factored out from
14229 ...
14230 (scoped_restore_current_thread::~scoped_restore_current_thread):
14231 ... this.
14232 (scoped_restore_current_thread::scoped_restore_current_thread):
14233 Add assertion.
14234 (thread_apply_all_command, thread_select): Use
14235 switch_to_thread_if_alive.
14236 * infrun.c (proceed, restart_threads, handle_signal_stop)
14237 (switch_back_to_stepped_thread): Switch current thread before
14238 calling target methods.
14239
db2d40f7
PA
142402020-01-10 Pedro Alves <palves@redhat.com>
14241
14242 * inferior.c (switch_to_inferior_no_thread): New function,
14243 factored out from ...
14244 (inferior_command): ... here.
14245 * inferior.h (switch_to_inferior_no_thread): Declare.
14246 * mi/mi-main.c (run_one_inferior): Use
14247 switch_to_inferior_no_thread.
14248
bd420a2d
PA
142492020-01-10 Pedro Alves <palves@redhat.com>
14250
14251 * infcmd.c (kill_command): Remove dead code.
14252
ddf5db90
PA
142532020-01-10 Pedro Alves <palves@redhat.com>
14254
14255 * remote.c (remote_target::mourn_inferior): No longer check
14256 whether the target is running.
14257
5018ce90
PA
142582020-01-10 Pedro Alves <palves@redhat.com>
14259
14260 * corelow.c (core_target::has_execution): Change parameter type to
14261 inferior pointer.
14262 * inferior.c (number_of_live_inferiors): Use
14263 inferior::has_execution instead of target_has_execution_1.
14264 * inferior.h (inferior::has_execution): New.
14265 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14266 inferior::has_execution instead of target_has_execution_1.
14267 * process-stratum-target.c
14268 (process_stratum_target::has_execution): Change parameter type to
14269 inferior pointer. Check the inferior's PID instead of
14270 inferior_ptid.
14271 * process-stratum-target.h
14272 (process_stratum_target::has_execution): Change parameter type to
14273 inferior pointer.
14274 * record-full.c (record_full_core_target::has_execution): Change
14275 parameter type to inferior pointer.
14276 * target.c (target_has_execution_1): Change parameter type to
14277 inferior pointer.
14278 (target_has_execution_current): Adjust.
14279 * target.h (target_ops::has_execution): Change parameter type to
14280 inferior pointer.
14281 (target_has_execution_1): Change parameter type to inferior
14282 pointer. Change return type to bool.
14283 * tracefile.h (tracefile_target::has_execution): Change parameter
14284 type to inferior pointer.
14285
74375d18
PA
142862020-01-10 Pedro Alves <palves@redhat.com>
14287
14288 * exceptions.c (print_flush): Remove current_top_target() check.
14289
acdf84a6
PA
142902020-01-10 Pedro Alves <palves@redhat.com>
14291
14292 * remote.c (show_remote_exec_file): Show the current inferior's
14293 exec-file instead of the command variable's value.
14294
ec506636
PA
142952020-01-10 Pedro Alves <palves@redhat.com>
14296
14297 * record-full.c (record_full_resume_ptid): New global.
14298 (record_full_target::resume): Set it.
14299 (record_full_wait_1): Use record_full_resume_ptid instead of
14300 inferior_ptid.
14301
873657b9
PA
143022020-01-10 Pedro Alves <palves@redhat.com>
14303
14304 * gdbthread.h (scoped_restore_current_thread)
14305 <dont_restore, restore, m_dont_restore>: Declare.
14306 * thread.c (thread_alive): Add assertion. Return bool.
14307 (switch_to_thread_if_alive): New.
14308 (prune_threads): Switch inferior/thread.
14309 (print_thread_info_1): Switch thread before calling target methods.
14310 (scoped_restore_current_thread::restore): New, factored out from
14311 ...
14312 (scoped_restore_current_thread::~scoped_restore_current_thread):
14313 ... this.
14314 (scoped_restore_current_thread::scoped_restore_current_thread):
14315 Add assertion.
14316 (thread_apply_all_command, thread_select): Use
14317 switch_to_thread_if_alive.
14318
7f0ae84c
GB
143192020-01-10 George Barrett <bob@bob131.so>
14320
14321 * stap-probe.c (stap_modify_semaphore): Don't check for null
14322 semaphores.
14323 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14324 for null semaphores.
14325
f5a7c406
AB
143262020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14327
14328 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14329 all source windows, and maintain horizontal scroll status while
14330 doing so.
14331
9ae6bf64
TT
143322020-01-09 Tom Tromey <tom@tromey.com>
14333
14334 PR tui/18932:
14335 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14336 update_source_window, not print_source_lines.
14337
b2efe70c
AB
143382020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14339
14340 * tui/tui.c (tui_enable): Register tui hooks after calling
14341 tui_display_main.
14342
5f23a082
CB
143432020-01-09 Christian Biesinger <cbiesinger@google.com>
14344
14345 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14346
3061113b
SM
143472020-01-08 Simon Marchi <simon.marchi@efficios.com>
14348
14349 * thread.c (print_thread_info_1): Fix indentation.
14350
57d75002
CB
143512020-01-09 Christian Biesinger <cbiesinger@google.com>
14352
14353 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14354 unique_xmalloc_ptr outside the if to always free the demangled name.
14355
6a053cb1
TT
143562020-01-08 Tom Tromey <tromey@adacore.com>
14357
14358 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14359 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14360 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14361 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14362 Remove.
14363 (section_offsets): New typedef.
14364 * symtab.c (fixup_section, get_msymbol_address): Update.
14365 * symmisc.c (dump_msymbols): Update.
14366 * symfile.h (relative_addr_info_to_section_offsets)
14367 (symfile_map_offsets_to_segments): Update.
14368 * symfile.c (build_section_addr_info_from_objfile)
14369 (init_objfile_sect_indices): Update.
14370 (struct place_section_arg): Change type of "offsets".
14371 (place_section): Update.
14372 (relative_addr_info_to_section_offsets): Change type of
14373 "section_offsets". Remove "num_sections" parameter.
14374 (default_symfile_offsets, syms_from_objfile_1)
14375 (set_objfile_default_section_offset): Update.
14376 (reread_symbols): No need to preserve section offsets by hand.
14377 (symfile_map_offsets_to_segments): Change type of "offsets".
14378 * stap-probe.c (relocate_address): Update.
14379 * stabsread.h (process_one_symbol): Update.
14380 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14381 (solib_target_relocate_section_addresses): Update.
14382 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14383 Update.
14384 * solib-frv.c (frv_relocate_main_executable): Update.
14385 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14386 * solib-aix.c (solib_aix_get_section_offsets): Change return
14387 type.
14388 (solib_aix_solib_create_inferior_hook): Update.
14389 * remote.c (remote_target::get_offsets): Update.
14390 * psymtab.c (find_pc_sect_psymtab): Update.
14391 * psympriv.h (struct partial_symbol) <address, text_low,
14392 text_high>: Update.
14393 * objfiles.h (obj_section_offset): Update.
14394 (struct objfile) <section_offsets>: Change type.
14395 <num_sections>: Remove.
14396 (objfile_relocate): Update.
14397 * objfiles.c (entry_point_address_query): Update
14398 (relocate_one_symbol): Change type of "section_offsets".
14399 (objfile_relocate1, objfile_relocate1): Change type of
14400 "new_offsets".
14401 (objfile_rebase1): Update.
14402 * mipsread.c (mipscoff_symfile_read): Update.
14403 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14404 parameter.
14405 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14406 (parse_external, psymtab_to_symtab_1): Update.
14407 * machoread.c (macho_symfile_offsets): Update.
14408 * ia64-tdep.c (ia64_find_unwind_table): Update.
14409 * hppa-tdep.c (read_unwind_info): Update.
14410 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14411 * dwarf2read.c (create_addrmap_from_index)
14412 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14413 (process_psymtab_comp_unit_reader, add_partial_symbol)
14414 (add_partial_subprogram, process_full_comp_unit)
14415 (read_file_scope, read_func_scope, read_lexical_block_scope)
14416 (read_call_site_scope, dwarf2_rnglists_process)
14417 (dwarf2_ranges_process, dwarf2_ranges_read)
14418 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14419 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14420 Update.
14421 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14422 Update.
14423 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14424 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14425 (process_one_symbol): Change type of "section_offsets".
14426 * ctfread.c (get_objfile_text_range): Update.
14427 * coffread.c (coff_symtab_read, enter_linenos)
14428 (process_coff_symbol): Update.
14429 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14430 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14431
456e800a
TT
144322020-01-08 Tom Tromey <tromey@adacore.com>
14433
14434 * dwarf2read.c (parse_macro_definition): Use std::string.
14435 (parse_macro_definition): Likewise.
14436
6dfa2fc2
TT
144372020-01-08 Tom Tromey <tromey@adacore.com>
14438
14439 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14440 (ATTR_ALLOC_CHUNK): Remove.
14441
421d1616
TT
144422020-01-08 Tom Tromey <tromey@adacore.com>
14443
14444 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14445
43816ebc
TT
144462020-01-08 Tom Tromey <tromey@adacore.com>
14447
14448 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14449 (dwarf2_compute_name, open_dwo_file): Likewise.
14450 (process_enumeration_scope): Use std::vector.
14451 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14452 (partial_die_info::fixup, dwarf2_start_subfile)
14453 (guess_full_die_structure_name, dwarf2_name): Likewise.
14454 (determine_prefix): Update.
14455 (guess_full_die_structure_name): Make return type const.
14456 (partial_die_full_name): Return unique_xmalloc_ptr.
14457 (DW_FIELD_ALLOC_CHUNK): Remove.
14458
4212d509
TT
144592020-01-07 Tom Tromey <tromey@adacore.com>
14460
14461 PR build/24937:
14462 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14463
06a6207a
JT
144642020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14465
14466 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14467
153d79c4
AB
144682020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14469
14470 * stack.c (print_frame_info): Move disassemble_next_line code
14471 inside source_print block.
14472
66182876
EZ
144732020-01-06 Eli Zaretskii <eliz@gnu.org>
14474
14475 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14476 gdb/signals.h, as we are now using native signal symbols.
14477
cbfa8581
SV
144782020-01-06 Shahab Vahedi <shahab@synopsys.com>
14479
14480 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14481 overflow by an early check of content vs threshold.
aac66a4c 14482 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14483 Likewise.
14484
3f602821
EZ
144852020-01-06 Eli Zaretskii <eliz@gnu.org>
14486
14487 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14488
a08c904d
JT
144892020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14490
14491 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14492 export table if no section contains it's RVA.
14493
89a65580
EZ
144942020-01-06 Eli Zaretskii <eliz@gnu.org>
14495
14496 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14497
8b7fcda2
HD
144982020-01-06 Hannes Domani <ssbssa@yahoo.de>
14499
14500 * source.c (print_source_lines_base): Set last_line_listed.
14501
a61b4f69
SV
145022020-01-06 Shahab Vahedi <shahab@synopsys.com>
14503
14504 * tui/tui-disasm.c: Remove trailing spaces.
14505
559e7e50
EZ
145062020-01-06 Eli Zaretskii <eliz@gnu.org>
14507 Pedro Alves <palves@redhat.com>
14508
14509 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14510 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14511 (windows_gdb_signal_to_target): New function, uses the above
14512 enumeration to convert GDB internal signal codes to equivalent
14513 Windows codes.
14514 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14515 * windows-nat.c: Include "gdb_wait.h".
14516 (get_windows_debug_event): Extract the fatal exception from the
14517 exit status and convert to the equivalent Posix signal number.
14518 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14519 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14520 * gdbsupport/gdb_wait.c: New file, implements
14521 windows_status_to_termsig.
14522 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14523 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14524
f2302a34
AB
145252020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14526
14527 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14528 show_layout.
14529
6a5206eb
LM
145302020-01-05 Luis Machado <luis.machado@linaro.org>
14531
14532 * aarch64-linux-nat.c
14533 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14534 and bfd_mach_aarch64.
14535
6ec1d75e
PW
145362020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14537
14538 * ui-file.c (stdio_file::can_emit_style_escape)
14539 (tee_file::can_emit_style_escape): Ensure style is used also on
14540 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14541 to gdb_stdout.
14542 * main.c (set_gdb_data_directory): Use file style to output the
14543 warning that the given pathname is not a directory.
14544 * top.c (show_history_filename, gdb_safe_append_history)
14545 (show_gdb_datadir): Use file style.
14546
44f81a76
HD
145472020-01-03 Hannes Domani <ssbssa@yahoo.de>
14548
14549 * solib-target.c (struct lm_info_target):
14550 Change offsets to be a unique_xmalloc_ptr.
14551 (solib_target_relocate_section_addresses): Update.
14552
25057eb0
HD
145532020-01-03 Hannes Domani <ssbssa@yahoo.de>
14554
14555 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14556
6e2118f5
BE
145572020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14558
14559 * MAINTAINERS (Write After Approval): Add myself.
14560
8133c7dc
LM
145612020-01-02 Luis Machado <luis.machado@linaro.org>
14562
14563 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14564 Cell BE architecture.
14565 * target.h (struct target_ops) <thread_architecture>: Likewise.
14566
48189bec
HD
145672020-01-01 Hannes Domani <ssbssa@yahoo.de>
14568
14569 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14570
ead1063b
HD
145712020-01-01 Hannes Domani <ssbssa@yahoo.de>
14572
14573 * MAINTAINERS (Write After Approval): Add myself.
14574
e5d78223
JB
145752020-01-01 Joel Brobecker <brobecker@adacore.com>
14576
14577 * gdbarch.sh: Update copyright year range of generated files.
14578
b811d2c2
JB
145792020-01-01 Joel Brobecker <brobecker@adacore.com>
14580
14581 Update copyright year range in all GDB files.
14582
5f4def5c
JB
145832020-01-01 Joel Brobecker <brobecker@adacore.com>
14584
14585 * copyright.py: Convert to Python 3.
14586
51fd4002
JB
145872020-01-01 Joel Brobecker <brobecker@adacore.com>
14588
14589 * copyright.py: Adapt after move of gnulib directory from gdb
14590 directory to toplevel directory.
14591
5fb651f2
JB
145922020-01-01 Joel Brobecker <brobecker@adacore.com>
14593
14594 * copyright.py (main): Exit if run from the wrong directory.
14595
5dd8bf88
JB
145962020-01-01 Joel Brobecker <brobecker@adacore.com>
14597
14598 * top.c (print_gdb_version): Change copyright year to 2020.
14599
9f71dacb 146002020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14601
9f71dacb 14602 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14603
9f71dacb 14604For older changes see ChangeLog-2019.
c906108c
SS
14605\f
14606Local Variables:
14607mode: change-log
14608left-margin: 8
14609fill-column: 74
14610version-control: never
57da7796 14611coding: utf-8
c906108c 14612End:
This page took 4.718229 seconds and 4 git commands to generate.