]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove DW_SIGNATURE
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
630ed6b9
TT
12020-09-29 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (read_attribute_value, lookup_die_type)
4 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
5 Update.
6 * dwarf2/attribute.h (struct attribute) <as_signature,
7 set_signature>: New methods.
8 (DW_SIGNATURE): Remove.
9
9d2246fc
TT
102020-09-29 Tom Tromey <tom@tromey.com>
11
12 * dwarf2/read.c (read_call_site_scope)
13 (handle_data_member_location, dwarf2_add_member_fn)
14 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
15 (partial_die_info::read, read_attribute_value)
16 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
17 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
18 (dwarf2_symbol_mark_computed): Update.
19 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
20 methods.
21 (DW_BLOCK): Remove.
22 * dwarf2/attribute.c (attribute::form_is_block): Add
23 DW_FORM_data16.
24
c6481205
TT
252020-09-29 Tom Tromey <tom@tromey.com>
26
27 * dwarf2/read.c (read_cutu_die_from_dwo)
28 (read_attribute_reprocess, read_attribute_value, read_attribute)
29 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
30 (dwarf2_fetch_constant_bytes): Update.
31 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
32 <set_string_noncanonical, set_string_canonical>: New methods.
33 <string_is_canonical>: Update comment.
34 <canonical_string_p>: Add assert.
35 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
36 * dwarf2/attribute.c (attribute::form_is_string): New method.
37 (attribute::string): Use it.
38
3b64bf15
TT
392020-09-29 Tom Tromey <tom@tromey.com>
40
41 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
42 (dump_die_shallow): Use canonical_string_p.
43 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
44 method.
45
2c830f54
TT
462020-09-29 Tom Tromey <tom@tromey.com>
47
48 * dwarf2/read.c (partial_die_info::read)
49 (dwarf2_const_value_attr, anonymous_struct_prefix, )
50 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
51 attribute::as_string.
52
6c412691
TT
532020-09-29 Tom Tromey <tom@tromey.com>
54
55 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
56 DW_ADDR.
57 (attribute::string): Don't use DW_STRING.
58 (attribute::get_ref_die_offset): Don't use DW_UNSND.
59 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
60
95f982e5
TT
612020-09-29 Tom Tromey <tom@tromey.com>
62
63 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
64 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
65 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
66 * dwarf2/attribute.h (struct attribute): Rename methods.
67 * dwarf2/attribute.c (attribute::as_address): Rename from
68 value_as_address.
69 (attribute::as_string): Rename from value_as_string.
70
f800b00e
TT
712020-09-29 Tom Tromey <tom@tromey.com>
72
73 * dwarf2/read.c (partial_die_info::read) <case
74 DW_AT_linkage_name>: Use value_as_string.
75 (dwarf2_string_attr): Use value_as_string.
76 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
77 method.
78 * dwarf2/attribute.c (attribute::value_as_string): New method.
79
de38d64a
PA
802020-09-29 Pedro Alves <pedro@palves.net>
81
82 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
83 defined before using '#pragma GCC diagnostic' instead of checking
84 __clang__.
85
9aed480c
TT
862020-09-28 Tom Tromey <tom@tromey.com>
87
88 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
89 (handle_signal_stop): Update.
90 * procfs.c (procfs_target::insert_watchpoint): Update.
91 * target.h (target_have_steppable_watchpoint): Now a function.
92
8a3ecb79
TT
932020-09-28 Tom Tromey <tom@tromey.com>
94
95 * infrun.c (set_schedlock_func): Update.
96 * target.h (target_can_lock_scheduler): Now a function.
97
55f6301a
TT
982020-09-28 Tom Tromey <tom@tromey.com>
99
100 * inferior.h (class inferior) <has_execution>: Update.
101 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
102 * valops.c (find_function_in_inferior)
103 (value_allocate_space_in_inferior): Update.
104 * top.c (kill_or_detach): Update.
105 * target.c (target_preopen, set_target_permissions): Update.
106 (target_has_execution_current): Remove.
107 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
108 Update.
109 * solib.c (update_solib_list, reload_shared_libraries): Update.
110 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
111 * solib-dsbt.c (enable_break): Update.
112 * score-tdep.c (score7_fetch_inst): Update.
113 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
114 Update.
115 * remote.c (remote_target::start_remote)
116 (remote_target::remote_check_symbols, remote_target::open_1)
117 (remote_target::remote_detach_1, remote_target::verify_memory)
118 (remote_target::xfer_partial, remote_target::read_description)
119 (remote_target::get_min_fast_tracepoint_insn_len): Update.
120 * record-full.c (record_full_open_1): Update.
121 * record-btrace.c (record_btrace_target_open): Update.
122 * objc-lang.c (lookup_objc_class, lookup_child_selector)
123 (value_nsstring): Update.
124 * linux-thread-db.c (add_thread_db_info)
125 (thread_db_find_new_threads_silently, check_thread_db_callback)
126 (try_thread_db_load_1, record_thread): Update.
127 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
128 Update.
129 * linux-fork.c (checkpoint_command): Update.
130 * infrun.c (set_non_stop, set_observer_mode)
131 (check_multi_target_resumption, for_each_just_stopped_thread)
132 (maybe_remove_breakpoints, normal_stop)
133 (class infcall_suspend_state): Update.
134 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
135 (info_program_command, attach_command): Update.
136 * infcall.c (call_function_by_hand_dummy): Update.
137 * inf-loop.c (inferior_event_handler): Update.
138 * gcore.c (gcore_command, derive_heap_segment): Update.
139 * exec.c (exec_file_command): Update.
140 * eval.c (evaluate_subexp): Update.
141 * compile/compile.c (compile_to_object): Update.
142 * cli/cli-dump.c (restore_command): Update.
143 * breakpoint.c (update_watchpoint)
144 (update_inserted_breakpoint_locations)
145 (insert_breakpoint_locations, get_bpstat_thread): Update.
146 * target.h (target_has_execution): Remove macro.
147 (target_has_execution_current): Don't declare.
148 (target_has_execution): Rename from target_has_execution_1. Add
149 argument default.
150
05374cfd
TT
1512020-09-28 Tom Tromey <tom@tromey.com>
152
153 * mi/mi-main.c (exec_reverse_continue)
154 (mi_cmd_list_target_features): Update.
155 * infrun.c (set_exec_direction_func): Update.
156 * target.c (default_execution_direction): Update.
157 * reverse.c (exec_reverse_once): Update.
158 * target.h (target_can_execute_reverse): Now a function.
159
9dccd06e
TT
1602020-09-28 Tom Tromey <tom@tromey.com>
161
162 * tui/tui-regs.c (tui_get_register)
163 (tui_data_window::show_registers): Update.
164 * thread.c (scoped_restore_current_thread::restore)
165 (scoped_restore_current_thread::scoped_restore_current_thread):
166 Update.
167 * regcache-dump.c (regcache_print): Update.
168 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
169 Update.
170 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
171 * mep-tdep.c (current_me_module, current_options): Update.
172 * linux-thread-db.c (thread_db_load): Update.
173 * infcmd.c (registers_info, info_vector_command)
174 (info_float_command): Update.
175 * ia64-tdep.c (ia64_frame_prev_register)
176 (ia64_sigtramp_frame_prev_register): Update.
177 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
178 * gcore.c (derive_stack_segment): Update.
179 * frame.c (get_current_frame, has_stack_frames): Update.
180 * findvar.c (language_defn::read_var_value): Update.
181 * arm-tdep.c (arm_pc_is_thumb): Update.
182 * target.c (target_has_registers): Rename from
183 target_has_registers_1.
184 * target.h (target_has_registers): Remove macro.
185 (target_has_registers): Rename from target_has_registers_1.
186
841de120
TT
1872020-09-28 Tom Tromey <tom@tromey.com>
188
189 * windows-tdep.c (tlb_make_value): Update.
190 * tui/tui-regs.c (tui_data_window::show_registers): Update.
191 * thread.c (scoped_restore_current_thread::restore)
192 (scoped_restore_current_thread::scoped_restore_current_thread)
193 (thread_command): Update.
194 * stack.c (backtrace_command_1, frame_apply_level_command)
195 (frame_apply_all_command, frame_apply_command): Update.
196 * infrun.c (siginfo_make_value, restore_infcall_control_state):
197 Update.
198 * gcore.c (derive_stack_segment): Update.
199 * frame.c (get_current_frame, has_stack_frames): Update.
200 * auxv.c (info_auxv_command): Update.
201 * ada-tasks.c (ada_build_task_list): Update.
202 * target.c (target_has_stack): Rename from target_has_stack_1.
203 * target.h (target_has_stack): Remove macro.
204 (target_has_stack): Rename from target_has_stack_1.
205
a739972c
TT
2062020-09-28 Tom Tromey <tom@tromey.com>
207
208 * target.c (target_has_memory): Rename from target_has_memory_1.
209 * tui/tui-regs.c (tui_data_window::show_registers): Update.
210 * thread.c (scoped_restore_current_thread::restore)
211 (scoped_restore_current_thread::scoped_restore_current_thread):
212 Update.
213 * frame.c (get_current_frame, has_stack_frames): Update.
214 * target.h (target_has_memory): Remove macro.
215 (target_has_memory): Rename from target_has_memory_1.
216
5b8a4776
TT
2172020-09-28 Tom Tromey <tom@tromey.com>
218
219 * target.c (target_has_all_memory_1): Remove.
220 * target.h (target_has_all_memory): Remove define.
221 (target_has_all_memory_1): Don't declare.
222
bd356ec6
SM
2232020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
224
225 * ser-base.c: Adjust comments formatting.
226
2c72d5e5
TT
2272020-09-27 Tom Tromey <tom@tromey.com>
228
229 PR tui/25342:
230 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
231
35a98237
TT
2322020-09-27 Tom Tromey <tom@tromey.com>
233
234 PR tui/25342:
235 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
236
9e820dec
TT
2372020-09-27 Tom Tromey <tom@tromey.com>
238
239 * unittests/tui-selftests.c: Update.
240 * tui/tui-winsource.h (struct tui_source_window_base)
241 <extra_margin, show_line_number, refresh_pad>: New methods.
242 <m_max_length, m_pad>: New members.
243 (tui_copy_source_line): Update.
244 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
245 first_col, line_width, ndigits parameters. Add length.
246 (tui_source_window_base::show_source_line): Write to pad. Line
247 number now 0-based.
248 (tui_source_window_base::refresh_pad): New method.
249 (tui_source_window_base::show_source_content): Write to pad. Call
250 refresh_pad.
251 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
252 not refill.
253 (tui_source_window_base::update_exec_info): Call
254 show_line_number.
255 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
256 method.
257 <m_digits>: New member.
258 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
259 and m_max_length.
260 (tui_source_window::show_line_number): New method.
261 * tui/tui-io.h (tui_puts): Fix comment.
262 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
263 m_max_length.
264
c15c15c8
TT
2652020-09-27 Tom Tromey <tom@tromey.com>
266
267 * tui/tui-winsource.c
268 (tui_source_window_base::set_is_exec_point_at): Don't call
269 show_source_line.
270
149830c1
TT
2712020-09-27 Tom Tromey <tom@tromey.com>
272
273 * python/py-tui.c (class tui_py_window) <refresh_window>: New
274 method.
275 <erase>: Update.
276 <cursor_x, cursor_y>: Remove.
277 <m_inner_window>: New member.
278 (tui_py_window::rerender): Create inner window.
279 (tui_py_window::output): Write to inner window.
280
8f9929bb
GR
2812020-09-26 Gareth Rees <grees@undo.io> (tiny change)
282
283 PR python/26586
284 * cli/cli-script.c (execute_control_commands): don't set
285 instream to nullptr here as this breaks the from_tty argument
286 to gdb.execute in Python.
287 (execute_user_command): set instream to nullptr here instead.
288
956bdb59
SM
2892020-09-25 Simon Marchi <simon.marchi@efficios.com>
290
291 * infrun.h (infrun_debug_printf): Fix formatting.
292 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
293
3b93626b
SJ
2942020-09-25 Saagar Jha <saagar@saagarjha.com>
295
296 * compile/compile-object-load.h (struct munmap_list): Add
297 explicitly-defined move constructor.
298
b551a89f
TT
2992020-09-24 Tom Tromey <tromey@adacore.com>
300
301 PR tui/26638:
302 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
303 method.
304 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
305 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
306 (tui_prev_win): Rewrite.
307
99bb393f
HD
3082020-09-23 Hannes Domani <ssbssa@yahoo.de>
309
310 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
311 in WOW64 processes as SIGINT.
312 * nat/windows-nat.h: Make wow64_process a shared variable.
313 * windows-nat.c: Remove static wow64_process variable.
314
20a5fcbd
TT
3152020-09-23 Tom Tromey <tom@tromey.com>
316
317 PR symtab/25470:
318 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
319 offset and bit size.
320 * printcmd.c (print_scalar_formatted): Handle zero-length
321 integer.
322 (print_scalar_formatted): Use bit_size_differs_p.
323 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
324 constant.
325 (union type_specific): <int_stuff>: New member.
326 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
327 methods.
328 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
329 TYPE_SPECIFIC_FIELD.
330 (recursive_dump_type, copy_type_recursive): Update.
331 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
332 DW_AT_data_bit_offset.
333
bac51ab7
TT
3342020-09-23 Tom Tromey <tom@tromey.com>
335
336 * utils.h (class gdb_argv): Add move operators.
337 <append>: New methods.
338 * compile/compile.c (build_argc_argv): Remove.
339 (compile_args_argc): Remove.
340 (compile_args_argv): Change type.
341 (set_compile_args): Simplify.
342 (append_args): Remove.
343 (filter_args): Remove argcp parameter.
344 (get_args): Return gdb_argv. Simplify.
345 (compile_to_object): Update.
346
92677124
TT
3472020-09-23 Tom Tromey <tom@tromey.com>
348
349 * compile/compile-object-run.c (do_module_cleanup)
350 <~do_module_cleanup> :Remove.
351 (do_module_cleanup): Update.
352 * compile/compile-object-load.h (struct munmap_list): Add move
353 assignment operator.
354 <source_file>: Now a std::string.
355 <munmap_list>: Rename. No longer a pointer.
356 * compile/compile-object-load.c (struct setup_sections_data): Add
357 constructor.
358 <setup_one_section>: Declare.
359 <munmap_list>: Move earlier.
360 <m_bfd>: New member.
361 <m_last_size, m_last_section_first, m_last_prot,
362 m_last_max_alignment>: Rename, add initializers where needed.
363 (setup_sections_data::setup_one_section): Rename from
364 setup_sections. Update.
365 (compile_object_load): Update. Don't use bfd_map_over_sections.
366
e616f60a
TT
3672020-09-23 Tom Tromey <tom@tromey.com>
368
369 * compile/compile-object-run.c (struct do_module_cleanup): Add
370 parameters to constructor. Update destructor.
371 <source_file, scope, scope_data, out_value_type, out_value_addr,
372 munmap_list_head, objfile_name_string>: Remove.
373 <module>: New member.
374 (do_module_cleanup): Update.
375 (compile_object_run): Update.
376
e947a848
TT
3772020-09-23 Tom Tromey <tom@tromey.com>
378
379 * compile/compile.c (eval_compile_command): Update.
380 * compile/compile-object-run.h (compile_object_run): Take a
381 compile_module_up.
382 * compile/compile-object-run.c (compile_object_run): Take a
383 compile_module_up.
384 * compile/compile-object-load.h (struct compile_module): Add
385 constructor, destructor.
386 (compile_module_up): New typedef.
387 (compile_object_load): Return compile_object_up.
388 * compile/compile-object-load.c (compile_object_load): Return
389 compile_module_up.
390
0dbf6ee6
TT
3912020-09-23 Tom Tromey <tom@tromey.com>
392
393 * compile/compile-object-run.c (struct do_module_cleanup): Add
394 constructor, destructor.
395 <objfile_name_string>: Don't use struct hack.
396 (do_module_cleanup): Use delete.
397 (compile_object_run): Use new.
398
ebe824f5
TT
3992020-09-23 Tom Tromey <tom@tromey.com>
400
401 * compile/compile-cplus-types.c
402 (compile_cplus_convert_struct_or_union): Use std::vector.
403 (compile_cplus_convert_func): Likewise.
404 * compile/compile-c-types.c (convert_func): Use std::vector.
405
5dd918d9
TT
4062020-09-21 Tom Tromey <tromey@adacore.com>
407
408 * sparc-tdep.c (sparc32_skip_prologue): Use
409 skip_prologue_using_sal.
410
5486c517
TT
4112020-09-19 Tom Tromey <tom@tromey.com>
412
413 * symfile.c (add_section_size_callback): Remove.
414 (load_one_section): Rename from load_section_callback. Change
415 parameters.
416 (generic_load): Use foreach.
417
8a6bb1d1
TT
4182020-09-19 Tom Tromey <tom@tromey.com>
419
420 * exec.c (add_to_section_table): Remove.
421 (build_section_table): Use foreach.
422
08f93a1a
TT
4232020-09-19 Tom Tromey <tom@tromey.com>
424
425 * elfread.c (elf_locate_sections): Change parameters.
426 (elf_symfile_read): Use foreach.
427
03cd72b8
TT
4282020-09-19 Tom Tromey <tom@tromey.com>
429
430 * cli/cli-dump.c (struct callback_data): Remove.
431 (restore_one_section): Rename from restore_section_callback.
432 Change parameters.
433 (restore_binary_file): Change parameters.
434 (restore_command): Use foreach.
435
f4f2b85f
TT
4362020-09-19 Tom Tromey <tom@tromey.com>
437
438 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
439 (gcore_copy_callback): Likewise.
440 (gcore_memory_sections): Use foreach.
441
b35c1d1c
TT
4422020-09-19 Tom Tromey <tom@tromey.com>
443
444 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
445 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
446 parameters.
447 (generic_elf_osabi_sniffer): Use foreach.
448 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
449 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
450
5bb6e9dd
TT
4512020-09-19 Tom Tromey <tom@tromey.com>
452
453 * dwarf2/read.c (locate_dwz_sections): Change parameters.
454 (dwarf2_get_dwz_file): Use foreach.
455 (dwarf2_locate_dwo_sections): Change parameters.
456 (open_and_init_dwo_file): Use foreach.
457 (dwarf2_locate_common_dwp_sections): Change parameters.
458 (open_and_init_dwp_file): Use foreach.
459
ad7277da
TT
4602020-09-19 Tom Tromey <tom@tromey.com>
461
462 * symfile.h: (find_lowest_section): Don't declare.
463 * symfile.c (find_lowest_section): Now static. Change
464 parameters.
465 (struct place_section_arg): Remove.
466 (place_section): Change parameters.
467 (addr_info_make_relative): Use foreach.
468 (symfile_dummy_outputs): Remove.
469 (default_symfile_relocate): Use foreach.
470
cb814f2e
TT
4712020-09-19 Tom Tromey <tom@tromey.com>
472
473 * objfiles.c (add_to_objfile_sections): Rename from
474 add_to_objfile_sections_full.
475 (add_to_objfile_sections): Remove.
476 (build_objfile_section_table): Use foreach.
477
3cabfd26
TT
4782020-09-19 Tom Tromey <tom@tromey.com>
479
480 * stap-probe.c (get_stap_base_address_1): Remove.
481 (get_stap_base_address): Use foreach.
482
1ce51eb5
TT
4832020-09-19 Tom Tromey <tom@tromey.com>
484
485 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
486 parameters.
487 (gdb_bfd_close_or_warn): Use foreach.
488
a190fabb
TT
4892020-09-19 Tom Tromey <tom@tromey.com>
490
491 * corelow.c (add_to_thread_list): Change parameters.
492 (core_target_open): Use foreach.
493
cafb0d81
TT
4942020-09-19 Tom Tromey <tom@tromey.com>
495
496 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
497 existing function.
498
c8d5abea
AB
4992020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
500
501 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
502 for arrays.
503
6d816919
AB
5042020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
505
506 * eval.c: Remove 'f-lang.h' include.
507 (value_f90_subarray): Moved to f-lang.c.
508 (eval_call): Renamed to...
509 (evaluate_subexp_do_call): ...this, is no longer static, header
510 comment moved into header file.
511 (evaluate_funcall): Update call to eval_call.
512 (skip_undetermined_arglist): Moved to f-lang.c.
513 (fortran_value_subarray): Likewise.
514 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
515 moved to evaluate_subexp_f.
516 (calc_f77_array_dims): Moved to f-lang.c
517 * expprint.c (print_subexp_funcall): New function.
518 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
519 moved to print_subexp_f, OP_FUNCALL uses new function.
520 (dump_subexp_body_funcall): New function.
521 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
522 moved to dump_subexp_f, OP_FUNCALL uses new function.
523 * expression.h (evaluate_subexp_do_call): Declare.
524 * f-lang.c (value_f90_subarray): Moved from eval.c.
525 (skip_undetermined_arglist): Likewise.
526 (calc_f77_array_dims): Likewise.
527 (fortran_value_subarray): Likewise.
528 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
529 (operator_length_f): Likewise.
530 (print_subexp_f): Likewise.
531 (dump_subexp_body_f): Likewise.
532 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
533 declaration of this operation to here.
534 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
535 support moved to operator_length_f.
536 * parser-defs.h (dump_subexp_body_funcall): Declare.
537 (print_subexp_funcall): Declare.
538 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
539 fortran-operator.def.
540
8c37706a
AB
5412020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
542
543 * eval.c (fortran_value_subarray): New function, content is taken
544 from...
545 (evaluate_subexp_standard): ...here, in two places. Now arrays
546 and strings both call the new function.
547 (calc_f77_array_dims): Add header comment, handle strings.
548
14f9473c
VC
5492020-09-18 Victor Collod <vcollod@nvidia.com>
550
551 PR gdb/26635
552 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
553 (i386_analyze_prologue): Call i386_skip_endbr.
554
b60cea74
TT
5552020-09-18 Tom Tromey <tromey@adacore.com>
556
557 * windows-nat.c (struct windows_nat_target) <wait>: Update.
558 (windows_nat_target::wait): Update.
559 * target/wait.h (enum target_wait_flag): New. Use
560 DEF_ENUM_FLAGS_TYPE.
561 * target/target.h (target_wait): Change type of options.
562 * target.h (target_options_to_string, default_target_wait):
563 Update.
564 (struct target_ops) <wait>: Change type of options.
565 * target.c (target_wait, default_target_wait, do_option): Change
566 type of "options".
567 (target_options_to_string): Likewise.
568 * target-delegates.c: Rebuild.
569 * target-debug.h (target_debug_print_target_wait_flags): Rename
570 from target_debug_print_options.
571 * sol-thread.c (class sol_thread_target) <wait>: Update.
572 (sol_thread_target::wait): Update.
573 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
574 (rs6000_nat_target::wait): Update.
575 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
576 Update.
577 (remote_target::wait_ns, remote_target::wait_as): Change type of
578 "options".
579 (remote_target::wait): Update.
580 * remote-sim.c (struct gdbsim_target) <wait>: Update.
581 (gdbsim_target::wait): Update.
582 * record-full.c (class record_full_base_target) <wait>: Update.
583 (record_full_wait_1): Change type of "options".
584 (record_full_base_target::wait): Update.
585 * record-btrace.c (class record_btrace_target) <wait>: Update.
586 (record_btrace_target::wait): Update.
587 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
588 Update.
589 (ravenscar_thread_target::wait): Update.
590 * procfs.c (class procfs_target) <wait>: Update.
591 (procfs_target::wait): Update.
592 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
593 * obsd-nat.c (obsd_nat_target::wait): Update.
594 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
595 (nto_procfs_target::wait): Update.
596 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
597 * nbsd-nat.c (nbsd_wait): Change type of "options".
598 (nbsd_nat_target::wait): Update.
599 * linux-thread-db.c (class thread_db_target) <wait>: Update.
600 (thread_db_target::wait): Update.
601 * linux-nat.h (class linux_nat_target) <wait>: Update.
602 * linux-nat.c (linux_nat_target::wait): Update.
603 (linux_nat_wait_1): Update.
604 * infrun.c (do_target_wait_1, do_target_wait): Change type of
605 "options".
606 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
607 * inf-ptrace.c (inf_ptrace_target::wait): Update.
608 * go32-nat.c (struct go32_nat_target) <wait>: Update.
609 (go32_nat_target::wait): Update.
610 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
611 * gnu-nat.c (gnu_nat_target::wait): Update.
612 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
613 * fbsd-nat.c (fbsd_nat_target::wait): Update.
614 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
615 * darwin-nat.c (darwin_nat_target::wait): Update.
616 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
617 (bsd_uthread_target::wait): Update.
618 * aix-thread.c (class aix_thread_target) <wait>: Update.
619 (aix_thread_target::wait): Update.
620
0295dde6
AB
6212020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
622
623 * compile/compile-object-run.c (create_copied_type_recursive): New
624 function.
625 (compile_object_run): Use new function.
626
d3483b43
JT
6272020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
628
629 * NEWS: Mention x86_64 Cygwin core file support.
630
e7d612ad
JT
6312020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
632
633 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
634 (core_process_module_section): Handle NOTE_INFO_MODULE64.
635
aff9d387
JT
6362020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
637
62a5151b
JT
638 * windows-tdep.h: Add prototypes.
639 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
640 (i386_windows_core_pid_to_str): Move and rename ...
641 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
642 (windows_core_pid_to_str): ... and here.
643 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
644
6452020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
646 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
647 (amd64_windows_init_abi_common): ... and register.
648
7d155da3
JT
6492020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
650
651 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
652 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
653
e8ef12b9
PA
6542020-09-18 Pedro Alves <pedro@palves.net>
655
656 PR gdb/26631
657 * thread.c (thread_find_command): Switch inferior before calling
658 target methods.
659
c1e1314d
TT
6602020-09-17 Tom Tromey <tromey@adacore.com>
661
662 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
663 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
664 (tdesc_arch_data_up): New typedef.
665 (tdesc_use_registers, tdesc_data_alloc): Update.
666 (tdesc_data_cleanup): Don't declare.
667 * target-descriptions.c (tdesc_data_alloc): Return a
668 tdesc_arch_data_up.
669 (tdesc_arch_data_deleter::operator()): Rename from
670 tdesc_data_cleanup. Change argument type.
671 (tdesc_use_registers): Change early_data to an rvalue reference.
672 (tdesc_use_registers): Don't use delete.
673 * sparc-tdep.c (sparc32_gdbarch_init): Update.
674 * s390-tdep.c (s390_gdbarch_init): Update.
675 * rx-tdep.c (rx_gdbarch_init): Update.
676 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
677 * riscv-tdep.c (riscv_gdbarch_init): Update.
678 * or1k-tdep.c (or1k_gdbarch_init): Update.
679 * nios2-tdep.c (nios2_gdbarch_init): Update.
680 * nds32-tdep.c (nds32_gdbarch_init): Update.
681 * mips-tdep.c (mips_gdbarch_init): Update.
682 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
683 * m68k-tdep.c (m68k_gdbarch_init): Update.
684 * i386-tdep.c (i386_gdbarch_init): Update.
685 * arm-tdep.c (arm_gdbarch_init): Update.
686 * arc-tdep.c (arc_tdesc_init): Update.
687 (arc_gdbarch_init): Update.
688 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
689
0363df3d
HD
6902020-09-17 Hannes Domani <ssbssa@yahoo.de>
691
692 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
693 for WOW64 processes.
694
280a9412
TT
6952020-09-17 Tom Tromey <tom@tromey.com>
696
697 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
698
6108fd18
TT
6992020-09-17 Tom Tromey <tom@tromey.com>
700
701 * value.c (preserve_values): Update.
702 * python/py-type.c (save_objfile_types): Update.
703 * guile/scm-type.c (save_objfile_types): Update.
704 * gdbtypes.h (create_copied_types_hash): Return htab_up.
705 * gdbtypes.c (create_copied_types_hash): Return htab_up.
706 * compile/compile-object-run.c (compile_object_run): Update.
707
fa9b1164
TT
7082020-09-17 Tom Tromey <tom@tromey.com>
709
710 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
711 Remove.
712 <m_table>: Now htab_up.
713 * typeprint.c (typedef_hash_table::recursively_update)
714 (typedef_hash_table::add_template_parameters)
715 (typedef_hash_table::typedef_hash_table): Update.
716 (typedef_hash_table::~typedef_hash_table): Remove.
717 (typedef_hash_table::typedef_hash_table)
718 (typedef_hash_table::find_global_typedef)
719 (typedef_hash_table::find_typedef): Update.
720
eb53f105
TT
7212020-09-17 Tom Tromey <tom@tromey.com>
722
723 * target-descriptions.c (tdesc_use_registers): Use htab_up.
724
7a8a5d47
TT
7252020-09-17 Tom Tromey <tom@tromey.com>
726
727 * linespec.c (class decode_compound_collector)
728 <~decode_compound_collector>: Remove.
729 <m_unique_syms>: Now htab_up.
730 (decode_compound_collector::operator ()): Update.
731 (class symtab_collector) <~symtab_collector>: Remove.
732 <m_symtab_table>: Now htab_up.
733 (symtab_collector::operator ()): Update.
734
99032cfc
TT
7352020-09-17 Tom Tromey <tom@tromey.com>
736
737 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
738 (filename_seen_cache::clear): Update.
739 (~filename_seen_cache): Remove.
740 (filename_seen_cache::seen): Update.
741 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
742 htab_up.
743 <~filename_seen_cache>: Remove.
744 <traverse>: Update.
745
32580f6d
TT
7462020-09-17 Tom Tromey <tom@tromey.com>
747
748 * completer.c (completion_tracker::discard_completions)
749 (completion_tracker::~completion_tracker)
750 (completion_tracker::maybe_add_completion)
751 (completion_tracker::remove_completion)
752 (completion_tracker::recompute_lowest_common_denominator)
753 (completion_tracker::build_completion_result): Update.
754 * completer.h (class completion_tracker) <have_completions>:
755 Update.
756 <m_entries_hash>: Now htab_up.
757
c1fb9836
TT
7582020-09-17 Tom Tromey <tom@tromey.com>
759
760 * breakpoint.c (ambiguous_names_p): Use htab_up.
761
88f07206
TT
7622020-09-17 Tom Tromey <tom@tromey.com>
763
764 * auto-load.c (struct auto_load_pspace_info)
765 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
766 <loaded_script_files, loaded_script_texts>: Change type to
767 htab_up.
768 (~auto_load_pspace_info) Remove.
769 (init_loaded_scripts_info, maybe_add_script_file)
770 (maybe_add_script_text, auto_load_info_scripts): Update.
771
9519b2ee
TT
7722020-09-17 Tom Tromey <tromey@adacore.com>
773
774 * c-exp.y (name_obstack): Now static.
775
d2cd4113
CC
7762020-09-17 Chungyi Chi <demonic@csie.io>
777
778 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
779
b650a282
SM
7802020-09-16 Simon Marchi <simon.marchi@efficios.com>
781
782 * breakpoint.h (init_catchpoint): Change int parameter to bool.
783 (add_solib_catchpoint): Likewise.
784 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
785 to bool.
786 (add_solib_catchpoint): Change int parameter/variable to bool.
787 (catch_load_or_unload): Likewise.
788 (init_catchpoint): Likewise.
789 (create_fork_vfork_event_catchpoint): Likewise.
790 (catch_fork_command_1): Likewise.
791 (catch_exec_command_1): Likewise.
792
4d0bcfcf
SM
7932020-09-16 Simon Marchi <simon.marchi@efficios.com>
794
795 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
796 Change instance_flags to m_instance_flags.
797
fe830662
TT
7982020-09-16 Tom Tromey <tromey@adacore.com>
799
800 PR gdb/26598:
801 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
802
fe5ddfc3
JB
8032020-09-16 John Baldwin <jhb@FreeBSD.org>
804
805 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
806 PL_FLAG_EXEC.
807 (fbsd_nat_target::insert_exec_catchpoint)
808 (fbsd_nat_target::remove_exec_catchpoint): Always define.
809 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
810 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
811
e911c666
JB
8122020-09-16 John Baldwin <jhb@FreeBSD.org>
813
814 * configure.ac: Remove check for kinfo_getvmmap().
815 * configure, config.in: Regenerate.
816 * fbsd-nat.c (fbsd_read_mapping): Remove
817 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
818 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
819 kinfo_get_vmmap() are always present.
820
1f17d372
JB
8212020-09-16 John Baldwin <jhb@FreeBSD.org>
822
823 * fbsd-nat.c: Always include support for
824 TARGET_OBJECT_SIGNAL_INFO.
825
bcb1da7f
JB
8262020-09-16 John Baldwin <jhb@FreeBSD.org>
827
828 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
829 sysctl and remove procfs fallback.
830
5515f729
JB
8312020-09-16 John Baldwin <jhb@FreeBSD.org>
832
833 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
834 * fbsd-nat.h: Likewise.
835
da1df1db
TBA
8362020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
837
838 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
839 argument.
840
0e25e767
AB
8412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
842
843 * ada-lang.c (ada_language_data): Delete.
844 (ada_language): Remove references to ada_language_data.
845 * c-lang.c (c_language_data): Delete.
846 (c_language): Remove references to c_language_data.
847 (cplus_language_data): Delete.
848 (cplus_language): Remove references to cplus_language_data.
849 (asm_language_data): Delete.
850 (asm_language): Remove references to asm_language_data.
851 (minimal_language_data): Delete.
852 (minimal_language): Remove references to minimal_language_data.
853 * d-lang.c (d_language_data): Delete.
854 (d_language): Remove references to d_language_data.
855 * f-lang.c (f_language_data): Delete.
856 (f_language): Remove references to f_language_data.
857 * go-lang.c (go_language_data): Delete.
858 (go_language): Remove references to go_language_data.
859 * language.c (unknown_language_data): Delete.
860 (unknown_language): Remove references to unknown_language_data.
861 (auto_language_data): Delete.
862 (auto_language): Remove references to auto_language_data.
863 * language.h (language_data): Delete struct.
864 (language_defn): No longer inherit from language_data.
865 * m2-lang.c (m2_language_data): Delete.
866 (m2_language): Remove references to m2_language_data.
867 * objc-lang.c (objc_language_data): Delete.
868 (objc_language): Remove references to objc_language_data.
869 * opencl-lang.c (opencl_language_data): Delete.
870 (opencl_language): Remove references to opencl_language_data.
871 * p-lang.c (pascal_language_data): Delete.
872 (pascal_language): Remove references to pascal_language_data.
873 * rust-lang.c (rust_language_data): Delete.
874 (rust_language): Remove references to rust_language_data.
875
b7c6e27d
AB
8762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
877
878 * ada-lang.c (ada_language_data): Remove la_op_print_tab
879 initializer.
880 (ada_language::opcode_print_table): New member function.
881 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
882 (c_language::opcode_print_table): New member function.
883 (cplus_language_data): Remove la_op_print_tab initializer.
884 (cplus_language::opcode_print_table): New member function.
885 (asm_language_data): Remove la_op_print_tab initializer.
886 (asm_language::opcode_print_table): New member function.
887 (minimal_language_data): Remove la_op_print_tab initializer.
888 (minimal_language::opcode_print_table): New member function.
889 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
890 (d_language::opcode_print_table): New member function.
891 * expprint.c (print_subexp_standard): Update call to
892 opcode_print_table.
893 (op_string): Likewise.
894 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
895 (f_language::opcode_print_table): New member function.
896 * go-lang.c (go_language_data): Remove la_op_print_tab
897 initializer.
898 (go_language::opcode_print_table): New member function.
899 * language.c (unknown_language_data): Remove la_op_print_tab
900 initializer.
901 (unknown_language::opcode_print_table): New member function.
902 (auto_language_data): Remove la_op_print_tab initializer.
903 (auto_language::opcode_print_table): New member function.
904 * language.h (language_data): Remove la_op_print_tab field.
905 (language_defn::opcode_print_table): Declare new member function.
906 * m2-lang.c (m2_language_data): Remove la_op_print_tab
907 initializer.
908 (m2_language::opcode_print_table): New member function.
909 * objc-lang.c (objc_language_data): Remove la_op_print_tab
910 initializer.
911 (objc_language::opcode_print_table): New member function.
912 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
913 initializer.
914 (opencl_language::opcode_print_table): New member function.
915 * p-lang.c (pascal_language_data): Remove la_op_print_tab
916 initializer.
917 (pascal_language::opcode_print_table): New member function.
918 * rust-lang.c (rust_language_data): Remove la_op_print_tab
919 initializer.
920 (rust_language::opcode_print_table): New member function.
921
5aba6ebe
AB
9222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
923
924 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
925 (ada_language::expression_ops): New member function.
926 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
927 (c_language::expression_ops): New member function.
928 (cplus_language_data): Remove la_exp_desc initializer.
929 (cplus_language::expression_ops): New member function.
930 (asm_language_data): Remove la_exp_desc initializer.
931 (asm_language::expression_ops): New member function.
932 (minimal_language_data): Remove la_exp_desc initializer.
933 (minimal_language::expression_ops): New member function.
934 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
935 (d_language::expression_ops): New member function.
936 * eval.c (evaluate_subexp): Update call to expression_ops.
937 * expprint.c (print_subexp): Likewise.
938 (op_name): Likewise.
939 (dump_subexp_body): Likewise.
940 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
941 (f_language::expression_ops): New member function.
942 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
943 (go_language::expression_ops): New member function.
944 * language.c (language_defn::expression_ops): New function.
945 (unknown_language_data): Remove la_exp_desc initializer.
946 (auto_language_data): Likewise.
947 * language.h (language_data): Remove la_exp_desc field.
948 (language_defn::expression_ops): Declare new member function.
949 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
950 (m2_language::expression_ops): New member function.
951 * objc-lang.c (objc_language_data): Remove la_exp_desc
952 initializer.
953 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
954 initializer.
955 (opencl_language::expression_ops): New member function.
956 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
957 * parse.c (operator_length): Update call to expression_ops.
958 (exp_iterate): Likewise.
959 * rust-lang.c (rust_language_data): Remove la_exp_desc
960 initializer.
961 (ruse_language::expression_ops): New member function.
962
b63a3f3f
AB
9632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
964
965 * ada-lang.c (ada_language_data): Remove la_varobj_ops
966 initializer.
967 (ada_language::varobj_ops): New member function.
968 * c-lang.c (c_language_data): Remove la_varobj_ops
969 initializer.
970 (cplus_language_data): Likewise.
971 (cplus_language::varobj_ops): New member function.
972 (asm_language_data): Remove la_varobj_ops initializer.
973 (minimal_language_data): Likewise.
974 * d-lang.c (d_language_data): Likewise.
975 * f-lang.c (f_language_data): Likewise.
976 * go-lang.c (go_language_data): Likewise.
977 * language.c (language_defn::varobj_ops): New function.
978 (unknown_language_data): Remove la_varobj_ops
979 initializer.
980 (auto_language_data): Likewise.
981 * language.h (language_data): Remove la_varobj_ops field.
982 (language_defn::varobj_ops): Declare new member function.
983 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
984 * objc-lang.c (objc_language_data): Likewise.
985 * opencl-lang.c (opencl_language_data): Likewise.
986 * p-lang.c (pascal_language_data): Likewise.
987 * rust-lang.c (rust_language_data): Likewise.
988 * varobj.c (varobj_create): Update call to varobj_ops.
989 * varobj.h (default_varobj_ops): Delete define.
990
1ac14a04
AB
9912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
992
993 * ada-lang.c (ada_language_data): Remove la_macro_expansion
994 initializer.
995 * c-lang.c (c_language_data): Likewise.
996 (c_language::macro_expansion): New member function.
997 (cplus_language_data): Likewise.
998 (cplus_language::macro_expansion): New member function.
999 (asm_language_data): Likewise.
1000 (asm_language::macro_expansion): New member function.
1001 (minimal_language_data): Likewise.
1002 (minimal_language::macro_expansion): New member function.
1003 * d-lang.c (d_language_data): Remove la_macro_expansion
1004 initializer.
1005 * f-lang.c (f_language_data): Likewise.
1006 * go-lang.c (go_language_data): Likewise.
1007 * language.c (unknown_language_data): Likewise.
1008 (auto_language_data): Likewise.
1009 * language.h (language_data): Remove la_macro_expansion field.
1010 (language_defn::macro_expansion): New member function.
1011 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1012 initializer.
1013 * objc-lang.c (objc_language_data): Likewise.
1014 (objc_language::macro_expansion): New member function.
1015 * opencl-lang.c (opencl_language_data): Likewise.
1016 (opencl_language::macro_expansion): New member function.
1017 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1018 initializer.
1019 * rust-lang.c (rust_language_data): Likewise.
1020 * symtab.c (default_collect_symbol_completion_matches_break_on):
1021 Update call to macro_expansion.
1022
3a3440fb
AB
10232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1024
1025 * ada-lang.c (ada_language_data): Remove la_array_ordering
1026 initializer.
1027 * c-lang.c (c_language_data): Likewise.
1028 (cplus_language_data): Likewise.
1029 (asm_language_data): Likewise.
1030 (minimal_language_data): Likewise.
1031 * d-lang.c (d_language_data): Likewise.
1032 * dwarf2/read.c (read_array_order): Update for call to
1033 array_ordering.
1034 * f-lang.c (f_language_data): Remove la_array_ordering
1035 initializer.
1036 (f_language::array_ordering): New member function.
1037 * go-lang.c (go_language_data): Remove la_array_ordering
1038 initializer.
1039 * language.c (unknown_language_data): Likewise.
1040 (auto_language_data): Likewise.
1041 * language.h (language_data): Delete la_array_ordering field.
1042 (language_defn::array_ordering): New member function.
1043 * m2-lang.c (m2_language_data): Remove la_array_ordering
1044 initializer.
1045 * objc-lang.c (objc_language_data): Likewise.
1046 * opencl-lang.c (opencl_language_data): Likewise.
1047 * p-lang.c (pascal_language_data): Likewise.
1048 * rust-lang.c (rust_language_data): Likewise.
1049
0d201fa4
AB
10502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1051
1052 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1053 initializer.
1054 * c-lang.c (c_language_data): Likewise.
1055 (cplus_language_data): Likewise.
1056 (asm_language_data): Likewise.
1057 (minimal_language_data): Likewise.
1058 * d-lang.c (d_language_data): Likewise.
1059 * f-lang.c (f_language_data): Likewise.
1060 (f_language::case_sensitivity): New member function.
1061 * go-lang.c (go_language_data): Remove la_case_sensitivity
1062 initializer.
1063 * language.c (enum case_mode): Moved here from language.h.
1064 (case_mode): Make static.
1065 (show_case_command): Update for case_sensitivity being a method.
1066 (set_case_command): Likewise.
1067 (set_range_case): Likewise.
1068 (unknown_language_data): Remove la_case_sensitivity initializer.
1069 (auto_language_data): Likewise.
1070 * language.h (case_mode): Delete, move enum declaration to
1071 language.c.
1072 (language_data): Delete la_case_sensitivity field.
1073 (language_defn::case_sensitivity): New member function.
1074 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1075 initializer.
1076 * objc-lang.c (objc_language_data): Likewise.
1077 * opencl-lang.c (opencl_language_data): Likewise.
1078 * p-lang.c (pascal_language_data): Likewise.
1079 * rust-lang.c (rust_language_data): Likewise.
1080
efdf6a73
AB
10812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1082
1083 * ada-lang.c (ada_language_data): Remove la_range_check
1084 initializer.
1085 * c-lang.c (c_language_data): Likewise.
1086 (cplus_language_data): Likewise.
1087 (asm_language_data): Likewise.
1088 (minimal_language_data): Likewise.
1089 * d-lang.c (d_language_data): Likewise.
1090 * f-lang.c (f_language_data): Likewise.
1091 (f_language::range_checking_on_by_default): New member function.
1092 * go-lang.c (go_language_data): Remove la_range_check initializer.
1093 * language.c (enum range_mode): Moved here from language.h.
1094 (range_mode): Made static.
1095 (show_range_command): Update to use
1096 range_checking_on_by_default.
1097 (set_range_command): Likewise.
1098 (set_range_case): Likewise.
1099 (unknown_language_data): Remove la_range_check initializer.
1100 (auto_language_data): Likewise.
1101 * language.h (range_mode): Delete. Enum definition moved to
1102 language.c.
1103 (language_data): Remove la_range_check field.
1104 (language_defn::range_checking_on_by_default): New member
1105 function.
1106 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1107 (m2_language::range_checking_on_by_default): New member function.
1108 * objc-lang.c (objc_language_data): Remove la_range_check
1109 initializer.
1110 * opencl-lang.c (opencl_language_data): Likewise.
1111 * p-lang.c (pascal_language_data): Likewise.
1112 (pascal_language::range_checking_on_by_default): New member
1113 function.
1114 * rust-lang.c (rust_language_data): Remove la_range_check
1115 initializer.
1116 (rust_language::range_checking_on_by_default): New member
1117 function.
1118
bf92aec5
AB
11192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1120
1121 * dwarf2/read.c (dwarf2_physname): Remove special case for
1122 language_go.
1123 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1124 member function.
1125
d3355e4d
AB
11262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1127
1128 * ada-lang.c (ada_language_data): Remove
1129 la_store_sym_names_in_linkage_form_p initializer.
1130 (ada_language::store_sym_names_in_linkage_form_p): New member
1131 function.
1132 * c-lang.c (c_language_data): Remove
1133 la_store_sym_names_in_linkage_form_p initializer.
1134 (c_language::store_sym_names_in_linkage_form_p): New member
1135 function.
1136 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1137 initializer.
1138 (asm_language_data): Likewise.
1139 (asm_language::store_sym_names_in_linkage_form_p): New member
1140 function.
1141 (minimal_language_data): Remove
1142 la_store_sym_names_in_linkage_form_p initializer.
1143 (minimal_language::store_sym_names_in_linkage_form_p): New member
1144 function.
1145 * d-lang.c (d_language_data): Remove
1146 la_store_sym_names_in_linkage_form_p initializer.
1147 * dwarf2/read.c (dwarf2_physname): Update call to
1148 store_sym_names_in_linkage_form_p.
1149 * f-lang.c (f_language_data): Remove
1150 la_store_sym_names_in_linkage_form_p initializer.
1151 * go-lang.c (go_language_data): Remove
1152 la_store_sym_names_in_linkage_form_p initializer.
1153 * language.c (unknown_language_data): Remove
1154 la_store_sym_names_in_linkage_form_p initializer.
1155 (unknown_language::store_sym_names_in_linkage_form_p): New member
1156 function.
1157 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1158 initializer.
1159 (auto_language::store_sym_names_in_linkage_form_p): New member
1160 function.
1161 * language.h (language_data): Remove
1162 la_store_sym_names_in_linkage_form_p member variable.
1163 (language_defn::store_sym_names_in_linkage_form_p): New member
1164 function.
1165 * m2-lang.c (m2_language_data): Remove
1166 la_store_sym_names_in_linkage_form_p initializer.
1167 * objc-lang.c (objc_language_data): Likewise.
1168 * opencl-lang.c (opencl_language_data): Likewise.
1169 * p-lang.c (pascal_language_data): Likewise.
1170 * rust-lang.c (rust_language_data): Likewise.
1171
22c12a6c
AB
11722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1173
1174 * ada-lang.c (ada_language_data): Remove string_lower_bound
1175 initializer.
1176 * c-lang.c (c_language_data): Likewise.
1177 (cplus_language_data): Likewise.
1178 (asm_language_data): Likewise.
1179 (minimal_language_data): Likewise.
1180 * d-lang.c (d_language_data): Likewise.
1181 * f-lang.c (f_language_data): Likewise.
1182 * go-lang.c (go_language_data): Likewise.
1183 * language.c (unknown_language_data): Likewise.
1184 (auto_language_data): Likewise.
1185 * language.h (language_data): Remove string_lower_bound field.
1186 (language_defn::string_lower_bound): New member function.
1187 * m2-lang.c (m2_language_data): Remove string_lower_bound
1188 initializer.
1189 (m2_language::string_lower_bound): New member function.
1190 * objc-lang.c (objc_language_data): Remove string_lower_bound
1191 initializer.
1192 * opencl-lang.c (opencl_language_data): Likewise.
1193 * p-lang.c (pascal_language_data): Likewise.
1194 * rust-lang.c (rust_language_data): Likewise.
1195 * valops.c (value_cstring): Update call to string_lower_bound.
1196 (value_string): Likewise.
1197 * value.c (allocate_repeated_value): Likewise.
1198
1c236ddd
AB
11992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1200
1201 * valops.c (value_repeat): Fix incorrect argument name in comment.
1202
67bd3fd5
AB
12032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1204
1205 * ada-lang.c (ada_language_data): Remove c_style_arrays
1206 initializer.
1207 (ada_language::c_style_arrays_p): New member fuction.
1208 * c-lang.c (c_language_data): Remove c_style_arrays
1209 initializer.
1210 (cplus_language_data): Likewise.
1211 (asm_language_data): Likewise.
1212 (minimal_language_data): Likewise.
1213 * d-lang.c (d_language_data): Likewise.
1214 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1215 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1216 (f_language::c_style_arrays_p): New member function.
1217 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1218 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1219 * language.c (unknown_language_data): Remove c_style_arrays
1220 initializer.
1221 (auto_language_data): Likewise.
1222 * language.h (language_data): Remove c_style_arrays field.
1223 (language_defn::c_style_arrays_p): New member function.
1224 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1225 (m2_language::c_style_arrays_p): New member function.
1226 * objc-lang.c (objc_language_data): Remove c_style_arrays
1227 initializer.
1228 * opencl-lang.c (opencl_language_data): Likewise.
1229 * p-lang.c (pascal_language_data): Likewise.
1230 * rust-lang.c (rust_language_data): Likewise.
1231 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1232 and update local variable to a bool.
1233 * valops.c (value_cast): Update call to c_style_arrays_p.
1234 (value_array): Likewise.
1235 * value.c (coerce_array): Likewise.
1236
85967615
AB
12372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1238
1239 * ada-lang.c (ada_language_data): Remove la_language initializer.
1240 * c-lang.c (c_language_data): Likewise.
1241 (cplus_language_data): Likewise.
1242 (asm_language_data): Likewise.
1243 (minimal_language_data): Likewise.
1244 * d-lang.c (d_language_data): Likewise.
1245 * f-lang.c (f_language_data): Likewise.
1246 * go-lang.c (go_language_data): Likewise.
1247 * language.c (unknown_language_data): Likewise.
1248 (auto_language_data): Likewise.
1249 * language.h (language_data): Remove la_language field.
1250 (language_defn::language_defn): Initialise la_language field.
1251 (language_defn::la_language): New member variable.
1252 * m2-lang.c (m2_language_data): Remove la_language field.
1253 * objc-lang.c (objc_language_data): Likewise.
1254 * opencl-lang.c (opencl_language_data): Likewise.
1255 * p-lang.c (pascal_language_data): Likewise.
1256 * rust-lang.c (rust_language_data): Likewise.
1257
e171d6f1
AB
12582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1259
1260 * ada-lang.c (ada_extensions): Delete, moved into
1261 ada_language::filename_extensions.
1262 (ada_language_data): Remove la_filename_extensions initializer.
1263 (ada_language::filename_extensions): New member function.
1264 * c-lang.c (c_extensions): Delete, moved into
1265 c_language::filename_extensions.
1266 (c_language_data): Remove la_filename_extensions initializer.
1267 (c_language::filename_extensions): New member function.
1268 (cplus_extensions): Delete, moved into
1269 cplus_language::filename_extensions.
1270 (cplus_language_data): Remove la_filename_extensions initializer.
1271 (cplus_language::filename_extensions): New member function.
1272 (asm_extensions): Delete, moved into
1273 asm_language::filename_extensions.
1274 (asm_language_data): Remove la_filename_extensions initializer.
1275 (asm_language::filename_extensions): New member function.
1276 (minimal_language_data): Remove la_filename_extensions
1277 initializer.
1278 * d-lang.c (d_extensions): Delete, moved into
1279 d_language::filename_extensions.
1280 (d_language_data): Remove la_filename_extensions initializer.
1281 (d_language::filename_extensions): New member function.
1282 * f-lang.c (f_extensions): Delete, moved into
1283 f_language::filename_extensions.
1284 (f_language_data): Remove la_filename_extensions initializer.
1285 (f_language::filename_extensions): New member function.
1286 * go-lang.c (go_language_data): Remove la_filename_extensions
1287 initializer.
1288 * language.c (add_set_language_command): Update now that
1289 filename_extensions returns a vector.
1290 (unknown_language_data): Remove la_filename_extensions
1291 initializer.
1292 (auto_language_data): Likewise.
1293 * language.h (language_data): Remove la_filename_extensions field.
1294 (language_defn::filename_extensions): New member function.
1295 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1296 initializer.
1297 * objc-lang.c (objc_extensions): Delete, moved into
1298 objc_language::filename_extensions.
1299 (objc_language_data): Remove la_filename_extensions initializer.
1300 (objc_language::filename_extensions): New member function.
1301 * opencl-lang.c (opencl_language_data): Remove
1302 la_filename_extensions initializer.
1303 * p-lang.c (pascal_extensions): Delete, moved into
1304 pascal_language::filename_extensions.
1305 (pascal_language_data): Remove la_filename_extensions initializer.
1306 (pascal_language::filename_extensions): New member function.
1307 * rust-lang.c (rust_extensions): Delete, moved into
1308 rust_language::filename_extensions.
1309 (rust_language_data): Remove la_filename_extensions initializer.
1310 (rust_language::filename_extensions): New member function.
1311 * symfile.c (add_filename_language): Add new assert.
1312
6f7664a9
AB
13132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1314
1315 * ada-lang.c (ada_language_data): Remove la_name and
1316 la_natural_name initializers.
1317 (ada_language::name): New member function.
1318 (ada_language::natural_name): New member function.
1319 * c-lang.c (c_language_data): Remove la_name and
1320 la_natural_name initializers.
1321 (c_language::name): New member function.
1322 (c_language::natural_name): New member function.
1323 (cplus_language_data): Remove la_name and
1324 la_natural_name initializers.
1325 (cplus_language::name): New member function.
1326 (cplus_language::natural_name): New member function.
1327 (asm_language_data): Remove la_name and
1328 la_natural_name initializers.
1329 (asm_language::name): New member function.
1330 (asm_language::natural_name): New member function.
1331 (minimal_language_data): Remove la_name and
1332 la_natural_name initializers.
1333 (minimal_language::name): New member function.
1334 (minimal_language::natural_name): New member function.
1335 * compile/compile.c (compile_to_object): Update call to
1336 lanugage_defn::name.
1337 * d-lang.c (d_language_data): Remove la_name and
1338 la_natural_name initializers.
1339 (d_language::name): New member function.
1340 (d_language::natural_name): New member function.
1341 * expprint.c (print_subexp_standard): Update call to
1342 language_defn::name.
1343 (dump_raw_expression): Likewise
1344 (dump_prefix_expression): Likewise.
1345 * f-lang.c (f_language_data): Remove la_name and
1346 la_natural_name initializers.
1347 (f_language::name): New member function.
1348 (f_language::natural_name): New member function.
1349 * go-lang.c (go_language_data): Remove la_name and
1350 la_natural_name initializers.
1351 (go_language::name): New member function.
1352 (go_language::natural_name): New member function.
1353 * language.c (show_language_command): Update call to
1354 language_defn::name.
1355 (set_language_command): Likewise.
1356 (language_enum): Likewise.
1357 (language_str): Likewise.
1358 (add_set_language_command): Likewise, use
1359 language_defn::natural_name in the doc string.
1360 (unknown_language_data): Remove la_name and
1361 la_natural_name initializers.
1362 (unknown_language::name): New member function.
1363 (unknown_language::natural_name): New member function.
1364 (auto_language_data): Remove la_name and
1365 la_natural_name initializers.
1366 (auto_language::name): New member function.
1367 (auto_language::natural_name): New member function.
1368 (language_lookup_primitive_type_as_symbol): Update call to
1369 language_defn::name.
1370 * language.h (language_data): Remove la_name and la_natural_name
1371 member variables.
1372 (language_defn::name): New member function.
1373 (language_defn::natural_name): New member function.
1374 * m2-lang.c (m2_language_data): Remove la_name and
1375 la_natural_name initializers.
1376 (m2_language::name): New member function.
1377 (m2_language::natural_name): New member function.
1378 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1379 language_defn::natural_name.
1380 * objc-lang.c (objc_language_data): Remove la_name and
1381 la_natural_name initializers.
1382 (objc_language::name): New member function.
1383 (objc_language::natural_name): New member function.
1384 * opencl-lang.c (opencl_language_data): Remove la_name and
1385 la_natural_name initializers.
1386 (opencl_language::name): New member function.
1387 (opencl_language::natural_name): New member function.
1388 * p-lang.c (pascal_language_data): Remove la_name and
1389 la_natural_name initializers.
1390 (pascal_language::name): New member function.
1391 (pascal_language::natural_name): New member function.
1392 * rust-lang.c (rust_language_data): Remove la_name and
1393 la_natural_name initializers.
1394 (rust_language::name): New member function.
1395 (rust_language::natural_name): New member function.
1396 * symtab.c (lookup_language_this): Update call to
1397 language_defn::name.
1398
5bae7c4e
AB
13992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1400
1401 * ada-lang.c (ada_language_data): Remove la_name_of_this
1402 initializer.
1403 * ax-gdb.c (gen_expr): Update call to name_of_this.
1404 * c-exp.y (classify_name): Likewise.
1405 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1406 (cplus_language_data): Likewise.
1407 (cplus_language::name_of_this): New member function.
1408 (asm_language_data): Remove la_name_of_this initializer.
1409 (minimal_language_data): Likewise.
1410 * d-lang.c (d_language_data): Likewise.
1411 (d_language::name_of_this): New member function.
1412 * expprint.c (print_subexp_standard): Update call to name_of_this.
1413 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1414 * go-lang.c (go_language_data): Likewise.
1415 * language.c (unknown_language_data): Likewise.
1416 (unknown_language::name_of_this): New member function.
1417 (auto_language_data): Remove la_name_of_this initializer.
1418 (auto_language::name_of_this): New member function.
1419 * language.h (language_data): Delete la_name_of_this member
1420 variable.
1421 (language_defn::name_of_this): New member function.
1422 * m2-lang.c (m2_language_data): Remove la_name_of_this
1423 initializer.
1424 * objc-lang.c (objc_language_data): Likewise.
1425 (objc_language::name_of_this): New member function.
1426 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1427 initializer.
1428 * p-lang.c (pascal_language_data): Likewise.
1429 (pascal_language::name_of_this): New member function.
1430 * rust-lang.c (rust_language_data): Remove la_name_of_this
1431 initializer.
1432 * symtab.c (lookup_language_this): Update call to name_of_this.
1433 (lookup_symbol_aux): Likewise.
1434 * valops.c (value_of_this): Likewise.
1435
22e3f3ed
AB
14362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1437
1438 * ada-lang.c (ada_language_data): Remove
1439 la_struct_too_deep_ellipsis initializer.
1440 (ada_language::struct_too_deep_ellipsis): New member function.
1441 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1442 initializer.
1443 (cplus_language_data): Likewise.
1444 (asm_language_data): Likewise.
1445 (minimal_language_data): Likewise.
1446 * cp-valprint.c (cp_print_value): Update call to
1447 struct_too_deep_ellipsis.
1448 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1449 initializer.
1450 * f-lang.c (f_language_data): Likewise.
1451 (f_language::struct_too_deep_ellipsis): New member function.
1452 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1453 initializer.
1454 * language.c (unknown_language_data): Likewise.
1455 (auto_language_data): Likewise.
1456 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1457 member variable.
1458 (language_defn::struct_too_deep_ellipsis): New member function.
1459 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1460 initializer.Q
1461 * objc-lang.c (objc_language_data): Likewise.
1462 * opencl-lang.c (opencl_language_data): Likewise.
1463 * p-lang.c (pascal_language_data): Likewise.
1464 * rust-lang.c (rust_language_data): Likewise.
1465 * valprint.c (val_print_check_max_depth): Update call to
1466 struct_too_deep_ellipsis.
1467
ed29e1c7
FW
14682020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1469
1470 * MAINTAINERS (Write After Approval): Add myself.
1471
12d8f940
TT
14722020-09-15 Tom Tromey <tom@tromey.com>
1473
1474 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1475 Remove.
1476
6b5a7bc7
TT
14772020-09-15 Tom Tromey <tom@tromey.com>
1478
1479 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1480 and TYPE_CODE_METHODPTR cases.
1481 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1482 (c_value_print_inner): Update.
1483 * valprint.c (generic_value_print_memberptr): New function, from
1484 c_value_print_memberptr.
1485 (generic_value_print): Use it. Call cplus_print_method_ptr.
1486
47f0e2ff
TT
14872020-09-15 Tom Tromey <tromey@adacore.com>
1488
1489 * python/python-internal.h (PyInt_FromLong): Remove define.
1490 * python/py-value.c (convert_value_from_python): Use
1491 gdb_py_object_from_longest.
1492 * python/py-type.c (typy_get_code): Use
1493 gdb_py_object_from_longest.
1494 * python/py-symtab.c (salpy_get_line): Use
1495 gdb_py_object_from_longest.
1496 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1497 gdb_py_object_from_longest.
1498 * python/py-record.c (recpy_gap_reason_code): Use
1499 gdb_py_object_from_longest.
1500 * python/py-record-btrace.c (recpy_bt_insn_size)
1501 (recpy_bt_func_level, btpy_list_count): Use
1502 gdb_py_object_from_longest.
1503 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1504 gdb_py_object_from_longest. Fix error handling.
1505 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1506 gdb_py_object_from_longest.
1507 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1508 gdb_py_object_from_longest.
1509 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1510 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1511 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1512
512116ce
TT
15132020-09-15 Tom Tromey <tromey@adacore.com>
1514
1515 * python/python.c (gdbpy_parameter_value): Use
1516 gdb_py_object_from_ulongest.
1517
4ab1029c
TT
15182020-09-15 Tom Tromey <tromey@adacore.com>
1519
1520 * python/py-infevents.c (create_register_changed_event_object):
1521 Use gdb_py_object_from_longest.
1522 * python/py-exitedevent.c (create_exited_event_object): Use
1523 gdb_py_object_from_longest.
1524
062534d4
TT
15252020-09-15 Tom Tromey <tromey@adacore.com>
1526
1527 * python/python.c (gdbpy_parameter_value): Use
1528 gdb_py_object_from_longest.
1529 * python/py-type.c (convert_field, typy_range): Use
1530 gdb_py_object_from_longest.
1531 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1532 gdb_py_object_from_longest.
1533 * python/py-lazy-string.c (stpy_get_length): Use
1534 gdb_py_object_from_longest.
1535 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1536 gdb_py_object_from_longest.
1537 * python/py-infevents.c (create_memory_changed_event_object): Use
1538 gdb_py_object_from_longest.
1539 * python/py-inferior.c (infpy_get_num): Use
1540 gdb_py_object_from_longest.
1541 (infpy_get_pid): Likewise.
1542
d1cab987
TT
15432020-09-15 Tom Tromey <tromey@adacore.com>
1544
1545 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1546 defines.
1547 * python/py-value.c (valpy_long): Use
1548 gdb_py_object_from_ulongest.
1549 * python/py-symtab.c (salpy_get_pc): Use
1550 gdb_py_object_from_ulongest.
1551 (salpy_get_last): Likewise.
1552 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1553 gdb_py_object_from_ulongest.
1554 * python/py-lazy-string.c (stpy_get_address): Use
1555 gdb_py_object_from_ulongest.
1556 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1557 * python/py-arch.c (archpy_disassemble): Use
1558 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1559 error handling.
1560
4bde49dc
TT
15612020-09-15 Tom Tromey <tromey@adacore.com>
1562
1563 * python/python-internal.h (gdb_py_long_from_longest): Remove
1564 defines.
1565 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1566 * python/py-type.c (convert_field, typy_get_sizeof): Use
1567 gdb_py_object_from_longest.
1568 * python/py-record-btrace.c (btpy_list_index): Use
1569 gdb_py_object_from_longest.
1570
37431074
TT
15712020-09-15 Tom Tromey <tromey@adacore.com>
1572
1573 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1574 * python/py-record.c (recpy_element_number): Use
1575 gdb_py_object_from_longest.
1576 (recpy_gap_number): Likewise.
1577
cbe25684
TT
15782020-09-15 Tom Tromey <tromey@adacore.com>
1579
1580 * top.c (ui::ui): Update.
1581 (highest_ui_num): Remove.
1582 * top.h (struct ui) <num>: Remove.
1583
db92ac45
TT
15842020-09-15 Tom Tromey <tromey@adacore.com>
1585
1586 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1587 * ui-style.c (ansi_regex_text): Now array.
1588 * rust-exp.y (number_regex_text): Now array.
1589 * linespec.c (linespec_quote_characters): Now array.
1590 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1591 Now arrays.
1592
d2b31b67
SM
15932020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1594
1595 * debuginfod-support.c (debuginfod_client_deleter): New.
1596 (debuginfod_client_up): New.
1597 (debuginfod_init): Return debuginfod_client_up.
1598 (debuginfod_source_query): Adjust.
1599 (debuginfod_debuginfo_query): Adjust.
1600
3246bd8e
SM
16012020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1602
1603 * debuginfod-support.c (debuginfod_source_query): Use
1604 make_unique_xstrdup.
1605
10242f36
SM
16062020-09-14 Simon Marchi <simon.marchi@efficios.com>
1607
1608 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1609 with `type::instance_flags`.
1610
e1044e6a
MM
16112020-09-14 Michael Mullin <masmullin@gmail.com>
1612
1613 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1614 Remove baton parameter.
1615
04902b09
PA
16162020-09-14 Pedro Alves <pedro@palves.net>
1617
1618 * Makefile.in (SELFTESTS_SRCS): Add
1619 unittests/enum-flags-selftests.c.
1620 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1621 btrace_function_flags instead of enum btrace_function_flag.
1622 * compile/compile-c-types.c (convert_qualified): Use
1623 enum_flags::raw.
1624 * compile/compile-cplus-symbols.c (convert_one_symbol)
1625 (convert_symbol_bmsym):
1626 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1627 (compile_cplus_convert_struct_or_union_methods)
1628 (compile_cplus_instance::convert_qualified_base):
1629 * go-exp.y (parse_string_or_char): Add cast to int.
1630 * unittests/enum-flags-selftests.c: New file.
1631 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1632 type to btrace_thread_flags from btrace_thread_flag.
1633 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1634 local's type to btrace_thread_flags from btrace_thread_flag. Add
1635 cast in DEBUG call.
1636
69896a2c
PA
16372020-09-14 Pedro Alves <pedro@palves.net>
1638
1639 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1640 * gdbtypes.c (address_space_name_to_int): Rename to ...
1641 (address_space_name_to_type_instance_flags): ... this.
1642 (address_space_int_to_name): Rename to ...
1643 (address_space_type_instance_flags_to_name): ... this.
1644 * gdbtypes.h (address_space_name_to_int): Rename to ...
1645 (address_space_name_to_type_instance_flags): ... this.
1646 (address_space_int_to_name): Rename to ...
1647 (address_space_type_instance_flags_to_name): ... this.
1648 * type-stack.c (type_stack::insert): Adjust to rename.
1649 * type-stack.h (type_stack::insert): Likewise.
1650
314ad88d
PA
16512020-09-14 Pedro Alves <pedro@palves.net>
1652 Andrew Burgess <andrew.burgess@embecosm.com>
1653
1654 * avr-tdep.c (avr_address_class_type_flags): Return
1655 type_instance_flags.
1656 (avr_address_class_type_flags_to_name): Take a
1657 type_instance_flags.
1658 (avr_address_class_name_to_type_flags): Return bool and take a
1659 type_instance_flags.
1660 * d-lang.c (build_d_types): Use type::set_instance_flags.
1661 * ft32-tdep.c (ft32_address_class_type_flags): Return
1662 type_instance_flags.
1663 (ft32_address_class_type_flags_to_name): Take a
1664 type_instance_flags.
1665 (ft32_address_class_name_to_type_flags): Return bool and take a
1666 type_instance_flags.
1667 (ft32_gdbarch_init): Use type::set_instance_flags.
1668 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1669 * gdbarch.h, gdbarch.c: Regenerate.
1670 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1671 (address_class_name_to_type_flags): Use type_instance_flags and
1672 bool.
1673 * gdbtypes.c (address_space_name_to_int)
1674 (address_space_int_to_name, make_qualified_type): Use
1675 type_instance_flags.
1676 (make_qualified_type): Use type_instance_flags and
1677 type::set_instance_flags.
1678 (make_type_with_address_space, make_cv_type, make_vector_type)
1679 (check_typedef): Use type_instance_flags.
1680 (recursive_dump_type): Cast type_instance_flags to unsigned for
1681 printing.
1682 (copy_type_recursive): Use type::set_instance_flags.
1683 (gdbtypes_post_init): Use type::set_instance_flags.
1684 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1685 <m_instance_flags>: ... this.
1686 <instance_flags, set_instance_flags>: New methods.
1687 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1688 (SET_TYPE_INSTANCE_FLAGS): New.
1689 (address_space_name_to_int, address_space_int_to_name)
1690 (make_type_with_address_space): Pass flags using
1691 type_instance_flags instead of int.
1692 * stabsread.c (cleanup_undefined_types_noname): Use
1693 type::set_instance_flags.
1694 * s390-tdep.c (s390_address_class_type_flags): Return
1695 type_instance_flags.
1696 (s390_address_class_type_flags_to_name): Take a
1697 type_instance_flags.
1698 (s390_address_class_name_to_type_flags): Return bool and take a
1699 type_instance_flags.
1700 * type-stack.c (type_stack::follow_types): Use
1701 type_instance_flags.
1702 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1703
27087b7f
TT
17042020-09-14 Tom Tromey <tromey@adacore.com>
1705
1706 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1707 * x86-tdep.c (x86_is_thunk_register_name)
1708 (x86_in_indirect_branch_thunk): Update.
1709 * sparc64-tdep.c (sparc64_fpu_register_names)
1710 (sparc64_cp0_register_names, sparc64_register_names)
1711 (sparc64_pseudo_register_names): Now const.
1712 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1713 cp0_registers_num>: Now const.
1714 * sparc-tdep.c (sparc_core_register_names)
1715 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1716 (sparc32_pseudo_register_names): Now const.
1717 (validate_tdesc_registers): Update.
1718 * rust-lang.c (rust_extensions): Now const.
1719 * p-lang.c (p_extensions): Now const.
1720 * objc-lang.c (objc_extensions): Now const.
1721 * nto-tdep.c (nto_thread_state_str): Now const.
1722 * moxie-tdep.c (moxie_register_names): Now const.
1723 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1724 Now const.
1725 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1726 (mips_linux_reg_names): Now const.
1727 (mips_gdbarch_init): Update.
1728 * microblaze-tdep.c (microblaze_register_names): Now const.
1729 * m68k-tdep.c (m68k_register_names): Now const.
1730 * m32r-tdep.c (m32r_register_names): Now const.
1731 * ia64-tdep.c (ia64_register_names): Now const.
1732 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1733 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1734 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1735 ymm_avx512_register_names, pkeys_register_names>: Now const.
1736 * i386-tdep.c (i386_register_names, i386_zmm_names)
1737 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1738 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1739 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1740 * f-lang.c (f_extensions): Now const.
1741 * d-lang.c (d_extensions): Now const.
1742 * csky-tdep.c (csky_register_names): Now const.
1743 * charset.c (default_charset_names, charset_enum): Now const.
1744 (_initialize_charset): Update.
1745 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1746 const.
1747 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1748 (bsd_uthread_solib_loaded): Update.
1749 (bsd_uthread_state): Now const.
1750 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1751 (amd64_ymm_avx512_names, amd64_ymmh_names)
1752 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1753 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1754 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1755 (amd64_dword_names): Now const.
1756 * agent.c (can_use_agent_enum): Now const.
1757 * ada-tasks.c (task_states, long_task_states): Now const.
1758 * ada-lang.c (known_runtime_file_name_patterns)
1759 (known_auxiliary_function_name_patterns, attribute_names)
1760 (standard_exc, ada_extensions): Now const.
1761
89806626
SM
17622020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1763
1764 * bcache.h (struct bcache) <bcache>: Remove constructor.
1765 <m_hash_function, m_compare_function>: Remove.
1766 <~bcache>: Make virtual.
1767 <compare>: Remove static method, introduce virtual method.
1768 <default_hash>: Remove.
1769 <hash>: New virtual method.
1770 * bcache.c (bcache::expand_hash_table): Update.
1771 (bcache::insert): Update.
1772 (bcache::hash): New.
1773 (bcache::compare): Update comment and parameter names.
1774 * gdbtypes.c (types_deeply_equal): Update.
1775 * psymtab.h (struct psymbol_bcache): New struct.
1776 (class psymtab_storage) <psymtab_storage>: Make default.
1777 <psymbol_cache>: Change type to psymbol_bcache.
1778 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1779 (psymbol_hash): Change to...
1780 (psymbol_bcache::hash): ... this.
1781 (psymbol_compare): Change to...
1782 (psymbol_bcache::compare): ... this.
1783
677c92fe
SM
17842020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1785
1786 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1787 checking for initial lwp.
1788
3eba3a01
TT
17892020-09-14 Tom Tromey <tromey@adacore.com>
1790
1791 * m68k-tdep.c (m68k_extract_return_value): Use
1792 pointer_result_regnum.
1793 (m68k_store_return_value): Likewise.
1794 (m68k_reg_struct_return_p): Handle vectors and arrays.
1795 (m68k_return_value): Handle arrays.
1796 (m68k_svr4_return_value): Fix single-element aggregate handling.
1797 Handle long double. Adjust for embedded ABI.
1798 (m68k_svr4_init_abi): Set pointer_result_regnum.
1799 (m68k_embedded_init_abi): New function.
1800 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1801 (m68k_osabi_sniffer): New function.
1802 (_initialize_m68k_tdep): Register osabi sniffer.
1803 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1804 member.
1805
33f4dd48
SM
18062020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1807
1808 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1809 with gdb::unique_xmalloc_ptr<char>.
1810
8400a90d
SM
18112020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1812
1813 * xml-support.h (xml_fetch_another): Change type to be a
1814 function_view.
1815 (xml_process_xincludes): Remove baton parameter.
1816 (xml_fetch_content_from_file): Change baton parameter to
1817 dirname.
1818 * xml-support.c (struct xinclude_parsing_data)
1819 <xinclude_parsing_data>: Remove baton parameter.
1820 <fetcher_baton>: Remove.
1821 (xinclude_start_include): Adjust.
1822 (xml_process_xincludes): Adjust.
1823 (xml_fetch_content_from_file): Replace baton parameter with
1824 dirname.
1825 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1826 (xml_init_syscalls_info): Use a lambda.
1827 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1828 (file_read_description_xml): Use a lambda.
1829 (fetch_available_features_from_target): Change baton parameter
1830 to target_ops.
1831 (target_read_description_xml): Use a lambda.
1832 (target_fetch_description_xml): Use a lambda.
1833 (string_read_description_xml): Update.
1834
04f5bab2
SM
18352020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1836
1837 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1838 uses with type::endianity_is_not_default.
1839
db558e34
SM
18402020-09-14 Simon Marchi <simon.marchi@efficios.com>
1841
1842 * gdbtypes.h (struct type) <endianity_is_not_default,
1843 set_endianity_is_not_default>: New methods.
1844 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1845 type::endianity_is_not_default, change all write call sites to
1846 use type::set_endianity_is_not_default.
1847
22c4c60c
SM
18482020-09-14 Simon Marchi <simon.marchi@efficios.com>
1849
1850 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1851 uses with type::is_fixed_instance.
1852
9cdd0d12
SM
18532020-09-14 Simon Marchi <simon.marchi@efficios.com>
1854
1855 * gdbtypes.h (struct type) <is_fixed_instance,
1856 set_is_fixed_instance>: New methods.
1857 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1858 write call sites to use type::set_is_fixed_instance.
1859
0becda7a
SM
18602020-09-14 Simon Marchi <simon.marchi@efficios.com>
1861
1862 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1863 uses with type::is_gnu_ifunc.
1864
03cc7249
SM
18652020-09-14 Simon Marchi <simon.marchi@efficios.com>
1866
1867 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1868 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1869 use type::set_is_gnu_ifunc.
1870
3f46044c
SM
18712020-09-14 Simon Marchi <simon.marchi@efficios.com>
1872
1873 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1874 uses with type::stub_is_supported.
1875
9baccff6
SM
18762020-09-14 Simon Marchi <simon.marchi@efficios.com>
1877
1878 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1879 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1880 use type::set_stub_is_supported.
1881
bd63c870
SM
18822020-09-14 Simon Marchi <simon.marchi@efficios.com>
1883
1884 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1885 uses with type::is_vector.
1886
2062087b
SM
18872020-09-14 Simon Marchi <simon.marchi@efficios.com>
1888
1889 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1890 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1891 use type::set_is_vector.
1892
a409645d
SM
18932020-09-14 Simon Marchi <simon.marchi@efficios.com>
1894
1895 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1896 uses with type::has_varargs.
1897
1d6286ed
SM
18982020-09-14 Simon Marchi <simon.marchi@efficios.com>
1899
1900 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1901 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1902 use type::set_has_varargs.
1903
7f9f399b
SM
19042020-09-14 Simon Marchi <simon.marchi@efficios.com>
1905
1906 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1907 uses with type::is_prototyped.
1908
27e69b7a
SM
19092020-09-14 Simon Marchi <simon.marchi@efficios.com>
1910
1911 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1912 New methods.
1913 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1914 call sites to use type::set_is_prototyped.
1915
d2183968
SM
19162020-09-14 Simon Marchi <simon.marchi@efficios.com>
1917
1918 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1919 uses with type::target_is_stub.
1920
8f53807e
SM
19212020-09-14 Simon Marchi <simon.marchi@efficios.com>
1922
1923 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1924 New methods.
1925 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1926 sites to use type::set_target_is_stub.
1927
e46d3488
SM
19282020-09-14 Simon Marchi <simon.marchi@efficios.com>
1929
1930 * gdbtypes.h (TYPE_STUB): Remove, replace all
1931 uses with type::is_stub.
1932
b4b73759
SM
19332020-09-14 Simon Marchi <simon.marchi@efficios.com>
1934
1935 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1936 (TYPE_STUB): Use type::is_stub, change all write call sites to
1937 use type::set_is_stub.
1938
20ce4123
SM
19392020-09-14 Simon Marchi <simon.marchi@efficios.com>
1940
1941 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1942 type::has_no_signedness.
1943
15152a54
SM
19442020-09-14 Simon Marchi <simon.marchi@efficios.com>
1945
1946 * gdbtypes.h (struct type) <has_no_signedness,
1947 set_has_no_signedness>: New methods.
1948 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1949 call sites to use type::set_has_no_signedness.
1950
c6d940a9
SM
19512020-09-14 Simon Marchi <simon.marchi@efficios.com>
1952
1953 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1954 type::is_unsigned.
1955
653223d3
SM
19562020-09-14 Simon Marchi <simon.marchi@efficios.com>
1957
1958 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1959 methods.
1960 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1961 sites to use type::set_is_unsigned.
1962
55ea94da 19632020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 1964 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 1965
e851246a
SM
1966 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1967 pointer and stack frame offset when unwinding.
55ea94da 1968
6791b117
PA
19692020-09-13 Pedro Alves <pedro@palves.net>
1970
1971 * NEWS: Document "-break-insert --qualified".
1972 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1973
77f2120b
PA
19742020-09-13 Pedro Alves <pedro@palves.net>
1975
1976 * linespec.c (classify_mtype, compare_msyms): Delete.
1977 (search_minsyms_for_name): Remove classification logic. Instead
1978 filter out trampoline symbols if we also found an external
1979 function of the same name.
1980
ed6a896c
JB
19812020-09-13 Joel Brobecker <brobecker@adacore.com>
1982
1983 * NEWS: Create a new section for the next release branch.
1984 Rename the section of the current branch, now that it has
1985 been cut.
1986
32aea73e
JB
19872020-09-13 Joel Brobecker <brobecker@adacore.com>
1988
1989 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1990 * version.in: Bump version to 11.0.50.DATE-git.
1991
8087c3fa
JB
19922020-09-12 Joel Brobecker <brobecker@adacore.com>
1993
1994 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1995
2a67f09d
FW
19962020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1997 Felix Willgerodt <Felix.Willgerodt@intel.com>
1998
1999 * gdbarch.sh: Added bfloat16 type.
2000 * gdbarch.c: Regenerated.
2001 * gdbarch.h: Regenerated.
2002 * gdbtypes.c (floatformats_bfloat16): New struct.
2003 (gdbtypes_post_init): Add builtin_bfloat16.
2004 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2005 (floatformats_bfloat16): New struct.
2006 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2007 (i386_ymm_type): Add field "v16_bfloat16"
2008 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2009 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2010 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2011 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2012 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2013 * features/i386/64bit-avx512.c: Regenerated.
2014 * features/i386/64bit-sse.xml: Add bfloat16 type.
2015 * features/i386/64bit-sse.c: Regenerated.
2016
1347d111
FW
20172020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2018
2019 * i386-tdep.c (i386_zmm_type): Fix field names.
2020 (i386_ymm_type): Fix field names.
2021
7a4e8e7d
TBA
20222020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2023
2024 * breakpoint.c: Fix typo in the help message of the
2025 "set breakpoint condition-evaluation" command.
2026
cf4ac4be
KR
20272020-09-10 Kamil Rytarowski <n54@gmx.com>
2028
2029 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2030 * (nbsd_nat_target::pid_to_exec_file)
2031 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2032 (nbsd_nat_target::post_startup_inferior)
2033 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2034 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2035 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2036 * (nbsd_thread_lister): Remove.
2037
f404573e
KR
20382020-09-10 Kamil Rytarowski <n54@gmx.com>
2039
2040 * fork-inferior.c (startup_inferior): Avoid double free.
2041
1ccb2c17
KR
20422020-09-10 Kamil Rytarowski <n54@gmx.com>
2043
2044 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2045 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2046
feedfcc7
KR
20472020-09-10 Kamil Rytarowski <n54@gmx.com>
2048
2049 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2050 * netbsd-nat.c: Include <sys/ptrace.h>.
2051 * (netbsd_nat::enable_proc_events): Add.
2052
c489f8c6
KR
20532020-09-10 Kamil Rytarowski <n54@gmx.com>
2054
2055 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2056 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2057 (netbsd_nat::for_each_thread): Add.
2058 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2059 "gdbsupport/common-debug.h".
2060 * (netbsd_nat::netbsd_thread_lister)
2061 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2062 (netbsd_nat::for_each_thread): Add.
2063
330662f6
KR
20642020-09-10 Kamil Rytarowski <n54@gmx.com>
2065
2066 * netbsd-nat.h: Include <unistd.h>.
2067 * (netbsd_nat::pid_to_exec_file): Add.
2068 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2069 * (netbsd_nat::pid_to_exec_file) Add.
2070
70b67307
KR
20712020-09-10 Kamil Rytarowski <n54@gmx.com>
2072
2073 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2074
99cf6da6
KR
20752020-09-10 Kamil Rytarowski <n54@gmx.com>
2076
2077 * netbsd-nat.h: New file.
2078 * netbsd-nat.c: Likewise.
2079
1b788fb6
TT
20802020-09-09 Tom Tromey <tromey@adacore.com>
2081
2082 * ada-lang.c (remove_extra_symbols): Do not increment when
2083 removing an element
2084
03b0a45f
TT
20852020-09-08 Tom Tromey <tromey@adacore.com>
2086
2087 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2088
3cae4447
TT
20892020-09-08 Tom Tromey <tromey@adacore.com>
2090
2091 PR win32/25302:
2092 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2093 (gdb_bfd_init_data): New function.
2094 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2095
7f08fd51
TBA
20962020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2097
2098 * infrun.c (fetch_inferior_event): Use
2099 `switch_to_target_no_thread` to switch the target.
2100
3e6ff933
TT
21012020-09-06 Tom Tromey <tom@tromey.com>
2102
2103 * symfile.h (dwarf2_free_objfile): Don't declare.
2104
e56798df
AKS
21052020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2106
2107 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2108 to match 16 byte real/complex type generated by Flang compiler.
2109
8f5c6526
TV
21102020-09-03 Tom de Vries <tdevries@suse.de>
2111
2112 PR breakpoint/26546
2113 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2114 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2115
c5065df0
SM
21162020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2117
2118 * maint.c (index_digits): New function.
2119 (struct maint_print_section_data): Remove.
2120 (print_bfd_section_info): Remove print_data parameter, add arg
2121 and index_digits.
2122 (print_objfile_section_info): Likewise.
2123 (print_bfd_section_info_maybe_relocated): Likewise (plus
2124 objfile).
2125 (maintenance_info_sections): Adjust calls.
2126
02c6f3f1
TT
21272020-09-02 Tom Tromey <tromey@adacore.com>
2128
2129 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2130 for null pointers.
2131 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2132
ef5e5b0b
SM
21332020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2134
2135 * bcache.h (struct bcache) <insert>: Change type of `added` to
2136 pointer to bool.
2137 * bcache.c (bcache::insert): Likewise.
2138 * gdbtypes.c (check_types_worklist): Adjust.
2139 * psymtab.c (add_psymbol_to_bcache): Adjust.
2140
973695d6
KB
21412020-08-31 Kevin Buettner <kevinb@redhat.com>
2142
2143 * corelow.c (unordered_set): Include.
2144 (class core_target): Add field 'm_core_unavailable_mappings'.
2145 (core_target::build_file_mappings): Print only one warning
2146 per inaccessible file. Add unavailable/broken mappings
2147 to m_core_unavailable_mappings.
2148 (core_target::xfer_partial): Call...
2149 (core_target::xfer_memory_via_mappings): New method.
2150
264fc0e2
SM
21512020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2152
2153 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2154 type to bool.
2155
2de01bdb
SM
21562020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2157
2158 * dwarf2/read.c (struct field_info): Fix indentation.
2159
f3bd50f1
SM
21602020-08-31 Simon Marchi <simon.marchi@efficios.com>
2161
2162 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2163 ordering in comment.
2164 * frame.c (frame_id_eq): Fix indentation.
2165
22b9b4b0
SL
21662020-08-31 Scott Linder <scott@scottlinder.com>
2167 Simon Marchi <simon.marchi@efficios.com>
2168
2169 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2170 inline frame ids in outer frame.
2171
84154d16
SM
21722020-08-31 Simon Marchi <simon.marchi@efficios.com>
2173
2174 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2175 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2176 (outer_frame_id): Use FID_STACK_OUTER instead of
2177 FID_STACK_INVALID.
2178 (frame_id_p): Don't check for outer_frame_id.
2179
8efaf6b3
SM
21802020-08-31 Simon Marchi <simon.marchi@efficios.com>
2181
2182 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2183 regnum/frame in value. Call allocate_value_lazy.
2184 * frame.c (frame_unwind_register_value): Use
2185 val_print_not_saved.
2186
fe1fe7ea
SM
21872020-08-31 Simon Marchi <simon.marchi@efficios.com>
2188
2189 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2190
f7c7700d
PA
21912020-08-29 Pedro Alves <pedro@palves.net>
2192
2193 * progspace.c (print_program_space): Use all_inferiors. Switch to
2194 the inferior before calling target_pid_to_str.
2195
e0814aae
TT
21962020-08-28 Tom Tromey <tom@tromey.com>
2197
2198 * xcoffread.c (xcoff_end_psymtab): Update comment.
2199 * dbxread.c (dbx_end_psymtab): Update comment.
2200
626d2320
TV
22012020-08-28 Tom de Vries <tdevries@suse.de>
2202
2203 PR breakpoint/26544
2204 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2205 event_location.
2206 (create_breakpoint): Same.
2207 (base_breakpoint_decode_location): Same.
2208 (bkpt_create_sals_from_location): Same.
2209 (bkpt_decode_location): Same.
2210 (bkpt_probe_create_sals_from_location): Same.
2211 (bkpt_probe_decode_location): Same.
2212 (tracepoint_create_sals_from_location): Same.
2213 (tracepoint_decode_location): Same.
2214 (tracepoint_probe_decode_location): Same.
2215 (strace_marker_create_sals_from_location): Same.
2216 (strace_marker_decode_location): Same.
2217 (create_sals_from_location_default): Same.
2218 (decode_location_default): Same.
2219 * breakpoint.h (struct breakpoint_ops): Same.
2220 (create_breakpoint): Same.
2221 * linespec.h (decode_line_full): Same.
2222 * linespec.c (decode_line_full): Same. Throw error if
2223 result.size () == 0.
2224
df631783
PA
22252020-08-27 Pedro Alves <pedro@palves.net>
2226
2227 PR gdb/26524
2228 * breakpoint.c (until_break_fsm) <location_breakpoint,
2229 caller_breakpoint>: Delete fields.
2230 <breakpoints>: New field.
2231 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2232 two individual breakpoints.
2233 (until_break_fsm::should_stop): Loop over breakpoints in the
2234 breakpoint vector.
2235 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2236 vector.
2237 (until_break_command): Handle location expanding into multiple
2238 sals.
2239
b2b38aa4
PA
22402020-08-27 Pedro Alves <pedro@palves.net>
2241
2242 PR gdb/26523
2243 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2244 bp_until breakpoints user-specified locations. Update intro
2245 comment.
2246
b886559f
SM
22472020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2248
2249 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2250 gdb_bfd_sections): New.
2251 * maint.c (print_bfd_section_info): Change param type to
2252 maint_print_section_data.
2253 (print_objfile_section_info): Likewise.
2254 (print_bfd_section_info_maybe_relocated): Likewise.
2255 (maintenance_info_sections): Use gdb_bfd_sections.
2256
4c6e63bf
SV
22572020-08-25 Shahab Vahedi <shahab@synopsys.com>
2258
2259 * MAINTAINERS: Add ARC target and maintainer.
2260
8d7f0635
AK
22612020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2262
2263 * configure.tgt: ARC support for GNU/Linux.
2264 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2265 * arc-linux-tdep.c: New file.
2266 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2267 * arc-tdep.c (arc_write_pc): Use it.
2268
fdd8731b
SV
22692020-08-25 Shahab Vahedi <shahab@synopsys.com>
2270
2271 * arc-tdep.c (arc_check_for_hardware_loop): New.
2272 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2273
22459524
SV
22742020-08-25 Shahab Vahedi <shahab@synopsys.com>
2275
2276 * arc-tdep.h: Include "gdbarch.h".
2277
995d3a19
SV
22782020-08-25 Shahab Vahedi <shahab@synopsys.com>
2279
2280 * arch/arc.h
2281 (arc_gdbarch_features): New class to stir the selection of target XML.
2282 (arc_create_target_description): Use FEATURES to choose XML target.
2283 (arc_lookup_target_description): Use arc_create_target_description
2284 to create _new_ target descriptions or return the already created
2285 ones if the FEATURES is the same.
2286 * arch/arc.c: Implementation of prototypes described above.
2287 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2288 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2289 * arc-tdep.c (*_feature_name): Make feature names consistent.
2290 (arc_register_feature): A new struct to hold information about
2291 registers of a particular target/feature.
2292 (arc_check_tdesc_feature): Check if XML provides registers in
2293 compliance with ARC_REGISTER_FEATURE structs.
2294 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2295 (determine_*_reg_feature_set): Which feature name to look for.
2296 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2297 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2298 to expected ISA enums to be used in arc_gdbarch_features structs.
2299 * features/Makefile (FEATURE_XMLFILES): Add new files.
2300 * gdb/features/arc/v1-aux.c: New file.
2301 * gdb/features/arc/v1-aux.xml: Likewise.
2302 * gdb/features/arc/v1-core.c: Likewise.
2303 * gdb/features/arc/v1-core.xml: Likewise.
2304 * gdb/features/arc/v2-aux.c: Likewise.
2305 * gdb/features/arc/v2-aux.xml: Likewise.
2306 * gdb/features/arc/v2-core.c: Likewise.
2307 * gdb/features/arc/v2-core.xml: Likewise.
2308 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2309
3945d2d7
GM
23102020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2311 Andrew Burgess <andrew.burgess@embecosm.com>
2312
2313 PR m2/26372
fc5d6901 2314 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2315 an assert. Remove single element array indexing pattern as the
2316 MULTI_SUBSCRIPT support will handle this case too.
2317
2677f2d3
SM
23182020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2319
2320 * value.h (valprint_check_validity): Move declaration from
2321 here...
2322 * valprint.h (valprint_check_validity): ... to here.
2323
c426fddb
SM
23242020-08-24 Simon Marchi <simon.marchi@efficios.com>
2325
2326 * debug.h: New file.
2327 * debug.c (debug_prefixed_vprintf): New function.
2328 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2329 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2330
1eb8556f
SM
23312020-08-24 Simon Marchi <simon.marchi@efficios.com>
2332
2333 * infrun.h (infrun_debug_printf_1): New function declaration.
2334 (infrun_debug_printf): New macro.
2335 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2336 throughout.
2337 (infrun_debug_printf): New function.
2338 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2339 (handle_jit_event): Likewise.
2340
b8fff44e
MW
23412020-08-21 Mark Wielaard <mark@klomp.org>
2342
2343 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2344
d19c3068
SM
23452020-08-22 Simon Marchi <simon.marchi@efficios.com>
2346
2347 * frame.c (enum class frame_id_status): New.
2348 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2349 (fprintf_frame): Update.
2350 (compute_frame_id): Set frame id status to "computing" on entry.
2351 Set it back to "not_computed" on failure and to "computed" on
2352 success.
2353 (get_frame_id): Assert the frame id is not being computed.
2354 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2355 (create_new_frame): Likewise.
2356 (frame_cleanup_after_sniffer): Update assert.
2357
b70e516e
SM
23582020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2359
2360 * regcache.c (pid_ptid_regcache_map): New type.
2361 (target_ptid_regcache_map): Remove.
2362 (target_pid_ptid_regcache_map): New type.
2363 (regcaches): Change type to target_pid_ptid_regcache_map.
2364 (get_thread_arch_aspace_regcache): Update.
2365 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2366 case.
2367 (regcaches_size): Update.
2368 (regcache_count): Update.
2369 (registers_changed_ptid_target_pid_test): New.
2370 (_initialize_regcache): Register new test.
2371
cdd9148a
SM
23722020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2373
2374 * regcache.c (regcache_count): New.
2375 (struct regcache_test_data): New.
2376 (regcache_test_data_up): New.
2377 (populate_regcaches_for_test): New.
2378 (regcaches_test): Remove.
2379 (get_thread_arch_aspace_regcache_test): New.
2380 (registers_changed_ptid_all_test): New.
2381 (registers_changed_ptid_target_test): New.
2382 (registers_changed_ptid_target_ptid_test): New.
2383 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2384 (_initialize_regcache): Register new tests.
2385
dd125343
SM
23862020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2387
2388 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2389 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2390 gdbarch and aspace parameter. Use current inferior's aspace.
2391 Validate regcache's arch value.
2392 (regcaches_test): Update.
2393
3ee93972
SM
23942020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2395
2396 * regcache.c (regcaches_test): Call registers_changed.
2397
33bf4c5c
TBA
23982020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2399
2400 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2401
c2fd7fae
AKS
24022020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2403
2404 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2405 to find the end of prologue for flang compiled binaries.
2406 * arm-tdep.c (arm_skip_prologue): Likewise.
2407 * i386-tdep.c (i386_skip_prologue): Likewise.
2408 * producer.c (producer_is_llvm): New function.
2409 (producer_parsing_tests): Added new tests for clang/flang.
2410 * producer.h (producer_is_llvm): New declaration.
2411
9327494e
SM
24122020-08-18 Simon Marchi <simon.marchi@efficios.com>
2413
2414 * linux-nat.c (linux_nat_debug_printf): New function.
2415 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2416
d138725a
AM
24172020-08-18 Aaron Merey <amerey@redhat.com>
2418
2419 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2420 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2421 (CLIBS): Add DEBUGINFOD_LIBS.
2422
f9b11e6b
ST
24232020-08-17 Sergei Trofimovich <siarheit@google.com>
2424
2425 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2426 'gdbarch_num_regs'.
2427
3ae7ab99
TT
24282020-08-17 Tom Tromey <tromey@adacore.com>
2429
2430 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2431 ada_get_decoded_value returns NULL.
2432
b017825f
TT
24332020-08-17 Tom Tromey <tromey@adacore.com>
2434
2435 * python/py-inferior.c (infpy_search_memory): Use
2436 gdb_py_object_from_ulongest.
2437 * python/py-infevents.c (create_inferior_call_event_object)
2438 (create_memory_changed_event_object): Use
2439 gdb_py_object_from_ulongest.
2440 * python/py-linetable.c (ltpy_entry_get_pc): Use
2441 gdb_py_object_from_ulongest.
2442
7635cf79
SM
24432020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2444
2445 * loc.c (class symbol_needs_eval_context): Fix indentation.
2446
f54be24b
SM
24472020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2448
2449 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2450 bool.
2451
53d5a2a5
TV
24522020-08-17 Tom de Vries <tdevries@suse.de>
2453
2454 PR gdb/26393
2455 * gdbtypes.c (dump_dynamic_prop): New function.
2456 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2457
547ce8f0
TV
24582020-08-15 Tom de Vries <tdevries@suse.de>
2459
2460 PR backtrace/26390
2461 * stack.c (print_frame_args): Temporarily set the selected
2462 frame to FRAME while printing the frame's arguments.
2463
6ea815e7
PFC
24642020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2465
2466 PR breakpoints/26385
2467 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2468 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2469
6e562fa3
PFC
24702020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2471
2472 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2473 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2474 and >= to check return value instead of == -1 and != -1.
2475
d369b608
SM
24762020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2477
2478 * utils.h (class gdb_argv) <as_array_view>: New method.
2479 * utils.c (gdb_argv_as_array_view_test): New.
2480 (_initialize_utils): Register selftest.
2481 * maint.c (maintenance_selftest): Use the new method.
2482
b31488a3
KR
24832020-08-13 Kamil Rytarowski <n54@gmx.com>
2484
2485 * target.h (supports_dumpcore, dumpcore): New
2486 function declarations.
2487 * target.c (supports_dumpcore, dumpcore): New
2488 functions.
2489 * target-delegates.c: Rebuild.
2490 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2491 and target_dumpcore ().
2492
002a3166
AM
24932020-08-13 Aaron Merey <amerey@redhat.com>
2494
2495 * debuginfod-support.c: Replace global variables with user_data.
2496
ece5bc8a
SM
24972020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2498
2499 * maint.c (maintenance_selftest): Split args and pass array_view
2500 to run_tests.
2501
6d8a0a5e
LM
25022020-08-12 Luis Machado <luis.machado@linaro.org>
2503
2504 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2505 type's length.
2506 Use %s and pulongest to print the length.
2507
7cf663a9
PA
25082020-08-12 Pedro Alves <palves@redhat.com>
2509
2510 * NEWS: Move "Multi-target debugging support" item to the
2511 "Changes since GDB 9" section.
2512
27c7b875
PA
25132020-08-12 Pedro Alves <palves@redhat.com>
2514
2515 PR gdb/26336
2516 * progspace.c (program_space::remove_objfile): Invalidate the
2517 frame cache.
2518
1796a2a1
TV
25192020-08-11 Tom de Vries <tdevries@suse.de>
2520
2521 * MAINTAINERS: Mark ms1 as deleted.
2522
f8e3fe0d
LM
25232020-08-10 Luis Machado <luis.machado@linaro.org>
2524
2525 PR gdb/26310
2526
2527 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2528 act accordingly.
2529 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2530 movz/str/stur/stp skipping behavior.
2531
cc308722
LM
25322020-08-10 Luis Machado <luis.machado@linaro.org>
2533
2534 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2535 struct user_sve_header instead of struct sve_context.
2536
041d9819
SM
25372020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2538
2539 * read.h (dwarf2_fetch_die_loc_sect_off,
2540 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2541 `void *` parameter with function_view.
2542 * read.c (dwarf2_fetch_die_loc_sect_off,
2543 dwarf2_fetch_die_loc_cu_off): Likewise.
2544 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2545 (per_cu_dwarf_call): Adjust.
2546 (get_frame_address_in_block_wrapper): Remove.
2547 (indirect_synthetic_pointer): Adjust.
2548 (get_ax_pc): Remove.
2549 (dwarf2_compile_expr_to_ax): Adjust.
2550
38f8aa06
TV
25512020-08-08 Tom de Vries <tdevries@suse.de>
2552
2553 PR build/26344
2554 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2555 constructor.
2556 * regcache.c (get_thread_arch_aspace_regcache): Same.
2557
a52b3ae2
TT
25582020-08-07 Tom Tromey <tromey@adacore.com>
2559
2560 * ravenscar-thread.c
2561 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2562 New method.
2563 (ravenscar_thread_target::wait): Check
2564 runtime_initialized.
2565 (ravenscar_thread_target::prepare_to_store)
2566 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2567 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2568 (ravenscar_thread_target::stopped_by_watchpoint)
2569 (ravenscar_thread_target::stopped_data_address)
2570 (ravenscar_thread_target::core_of_thread): Use
2571 scoped_restore_current_thread and
2572 set_base_thread_from_ravenscar_task.
2573
0e29517d
TT
25742020-08-07 Tom Tromey <tromey@adacore.com>
2575
2576 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2577
592f9bd7
TT
25782020-08-07 Tom Tromey <tromey@adacore.com>
2579
2580 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2581 update_inferior_ptid before update_thread_list.
2582 (temporarily_change_regcache_ptid): New class.
2583 (ravenscar_thread_target::fetch_registers)
2584 (ravenscar_thread_target::store_registers)
2585 (ravenscar_thread_target::prepare_to_store): Use base thread when
2586 forwarding operation.
2587
39e2018a
TT
25882020-08-07 Tom Tromey <tromey@adacore.com>
2589
2590 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2591 "is_pid" case.
2592
2080266b
TT
25932020-08-07 Tom Tromey <tromey@adacore.com>
2594
2595 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2596 New methods.
2597 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2598 first.
2599 (ravenscar_thread_target::add_thread): Rename from
2600 ravenscar_add_thread.
2601 (ravenscar_thread_target::update_thread_list): Use a lambda.
2602 (ravenscar_thread_target::xfer_partial): New method.
2603
78c02f21
TT
26042020-08-07 Tom Tromey <tromey@adacore.com>
2605
2606 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2607 gdb::function_view.
2608 (iterate_over_live_ada_tasks): Change type of argument.
2609 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2610 of argument.
2611
d5d833af
TT
26122020-08-07 Tom Tromey <tromey@adacore.com>
2613
2614 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2615 Remove.
2616 (ravenscar_thread_target::extra_thread_info): Remove.
2617 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2618 defer to target beneath for non-Ravenscar threads.
2619
a8ac85bb
TT
26202020-08-07 Tom Tromey <tromey@adacore.com>
2621
2622 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2623 get_base_thread_from_ravenscar_task>: Now methods.
2624 <m_cpu_map>: New member.
2625 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2626 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2627 (ravenscar_thread_target::task_is_currently_active): Update.
2628 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2629 Now a method.
2630 (ravenscar_thread_target::add_active_thread): Put initial thread
2631 into the m_cpu_map.
2632
550ab58d
TT
26332020-08-07 Tom Tromey <tromey@adacore.com>
2634
2635 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2636 event_ptid.
2637
e9546579
TT
26382020-08-07 Tom Tromey <tromey@adacore.com>
2639
2640 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2641 runtime_initialized.
2642
3d4470e5
TT
26432020-08-07 Tom Tromey <tromey@adacore.com>
2644
2645 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2646 add_active_thread.
2647 (ravenscar_thread_target::add_active_thread): Now public.
2648 (ravenscar_inferior_created): Call add_active_thread after pushing
2649 the target.
2650
888bdb2b
SM
26512020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2652
2653 * regcache.c (ptid_regcache_map): New type.
2654 (target_ptid_regcache_map): New type.
2655 (regcaches): Change type to target_ptid_regcache_map.
2656 (get_thread_arch_aspace_regcache): Update to regcaches' new
2657 type.
2658 (regcache_thread_ptid_changed): Likewise.
2659 (registers_changed_ptid): Likewise.
2660 (regcaches_size): Likewise.
2661 (regcaches_test): Update.
2662 (regcache_thread_ptid_changed): Update.
2663 * regcache.h (regcache_up): New type.
2664 * gdbsupport/ptid.h (hash_ptid): New struct.
2665
b161a60d
SM
26662020-08-07 Simon Marchi <simon.marchi@efficios.com>
2667
2668 * observable.h (thread_ptid_changed): Add parameter
2669 `process_stratum_target *`.
2670 * infrun.c (infrun_thread_ptid_changed): Add parameter
2671 `process_stratum_target *` and use it.
2672 (selftests): New namespace.
2673 (infrun_thread_ptid_changed): New function.
2674 (_initialize_infrun): Register selftest.
2675 * regcache.c (regcache_thread_ptid_changed): Add parameter
2676 `process_stratum_target *` and use it.
2677 (regcache_thread_ptid_changed): New function.
2678 (_initialize_regcache): Register selftest.
2679 * thread.c (thread_change_ptid): Pass target to
2680 thread_ptid_changed observable.
2681
d2854d8d
CT
26822020-08-06 Caroline Tice <cmtice@google.com>
2683
fe4c3d43
SM
2684 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2685 (struct dwp_sections): Update field comments. Add loclists and
2686 rnglists fields.
2687 (struct virtual_v2_dwo_sections): Rename struct to
2688 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2689 size & offset fields for loclists and rnglists.
2690 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2691 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2692 skipping dummy type units.
2693 (create_dwp_hash_table): Update the large comment above the function to
2694 discuss Version 5 DWP files as well, with references. Update all the
2695 version checks in the function to check for version 5 as well. Add new
2696 section at the end to create dwp hash table for version 5.
2697 (create_dwp_v2_section): Rename function to
2698 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2699 Add V5 to error message text.
2700 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2701 into calls to create_dwp_v2_or_v5_section.
2702 (create_dwo_unit_in_dwp_v5): New function.
2703 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2704 check for version2; add else clause to handle version 5.
2705 (open_and_init_dwo_file): Add code to check dwarf version & only call
2706 create_debug_types_hash_table (with sections.types) if version is not 5;
2707 else call create_debug_type_hash_table, with sections.info.
2708 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2709 version 5.
2710 (dwarf2_locate_v5_dwp_sections): New function.
2711 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2712 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2713
159ed7d9
SM
27142020-08-06 Simon Marchi <simon.marchi@efficios.com>
2715
2716 * regcache.h (class regcache): Remove friend
2717 registers_changed_ptid.
2718 <regcache_thread_ptid_changed>: Remove.
2719 <regcaches>: Remove.
2720 * regcache.c (regcache::regcaches): Rename to...
2721 (regcaches): ... this. Make static.
2722 (get_thread_arch_aspace_regcache): Update.
2723 (regcache::regcache_thread_ptid_changed): Rename to...
2724 (regcache_thread_ptid_changed): ... this. Update.
2725 (class regcache_access): Remove.
2726 (regcaches_test): Update.
2727 (_initialize_regcache): Update.
2728 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2729 <forward_list>.
2730
174981ae
SM
27312020-08-06 Simon Marchi <simon.marchi@efficios.com>
2732
2733 * regcache.h (class regcache) <current_regcache>: Rename to...
2734 <regcaches>: ... this. Move doc here.
2735 * regcache.c (regcache::current_regcache) Rename to...
2736 (regcache::regcaches): ... this. Move doc to header.
2737 (get_thread_arch_aspace_regcache): Update.
2738 (regcache::regcache_thread_ptid_changed): Update.
2739 (registers_changed_ptid): Update.
2740 (class regcache_access) <current_regcache_size>: Rename to...
2741 <regcaches_size>: ... this.
2742 (current_regcache_test): Rename to...
2743 (regcaches_test): ... this.
2744 (_initialize_regcache): Update.
2745
ed908db6
VC
27462020-08-06 Victor Collod <vcollod@nvidia.com>
2747
2748 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2749
b5582ab7
KB
27502020-08-05 Kevin Buettner <kevinb@redhat.com>
2751
2752 * corelow.c (core_target::build_file_mappings): Don't output
2753 null pathname in warning.
2754
ea946b86
SM
27552020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2756
2757 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2758 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2759 gdb.dwarf2/dw2-single-line-discriminators.exp,
2760 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2761
57d02173
TT
27622020-08-05 Tom Tromey <tromey@adacore.com>
2763
2764 PR rust/26197:
2765 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2766 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2767 Fix off-by-one and type size errors in ordinary case.
2768
5555c86d
TV
27692020-08-05 Tom de Vries <tdevries@suse.de>
2770
2771 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2772 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2773
97916bfe
SM
27742020-08-04 Simon Marchi <simon.marchi@efficios.com>
2775
2776 * frame.h (frame_id_p): Return bool.
2777 (frame_id_artificial_p): Return bool.
2778 (frame_id_eq): Return bool.
2779 (has_stack_frames): Return bool.
2780 (get_selected_frame): Fix typo in comment.
2781 (get_frame_pc_if_available): Return bool.
2782 (get_frame_address_in_block_if_available): Return bool.
2783 (get_frame_func_if_available): Return bool.
2784 (read_frame_register_unsigned): Return bool.
2785 (get_frame_register_bytes): Return bool.
2786 (safe_frame_unwind_memory): Return bool.
2787 (deprecated_frame_register_read): Return bool.
2788 (frame_unwinder_is): Return bool.
2789 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2790 bool.
2791 <this_id::p>: Likewise.
2792 <prev_p>: Likewise.
2793 (frame_stash_add): Return bool.
2794 (get_frame_id): Use bool.
2795 (frame_id_build_special) Use bool.
2796 (frame_id_build_unavailable_stack): Use bool.
2797 (frame_id_build): Use bool.
2798 (frame_id_p): Return bool, use true/false instead of 1/0.
2799 (frame_id_artificial_p): Likewise.
2800 (frame_id_eq): Likewise.
2801 (frame_id_inner): Likewise.
2802 (get_frame_func_if_available): Likewise.
2803 (read_frame_register_unsigned): Likewise.
2804 (deprecated_frame_register_read): Likewise.
2805 (get_frame_register_bytes): Likewise.
2806 (has_stack_frames): Likewise.
2807 (inside_main_func): Likewise.
2808 (inside_entry_func): Likewise.
2809 (get_frame_pc_if_available): Likewise.
2810 (get_frame_address_in_block_if_available): Likewise.
2811 (frame_unwinder_is): Likewise.
2812 (safe_frame_unwind_memory): Likewise.
2813 (frame_unwind_arch): Likewise.
2814
fedfee88
SM
28152020-08-04 Simon Marchi <simon.marchi@efficios.com>
2816
2817 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2818 type to cached_copy_status.
2819 (fprintf_frame): Adjust.
2820 (get_frame_func_if_available): Adjust.
2821 (frame_cleanup_after_sniffer): Adjust.
2822
6cfa9b59
MW
28232020-08-04 Mark Wielaard <mark@klomp.org>
2824
2825 * MAINTAINERS (Write After Approval): Update email address.
2826
66d6346b
SM
28272020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2828
2829 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2830 dynamic_prop::const_val.
2831
8a6d5e35
SM
28322020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2833
2834 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2835 dynamic_prop::kind.
2836
51d6067d
SM
28372020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2838
2839 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2840
b26e2ae7
JM
28412020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2842
2843 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2844
39791af2
JM
28452020-08-04 Weimin Pan <weimin.pan@oracle.com>
2846 Jose E. Marchesi <jose.marchesi@oracle.com>
2847
2848 * configure.tgt: Add entry for bpf-*-*.
2849 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2850 (ALLDEPFILES): Add bpf-tdep.c.
2851 * bpf-tdep.c: New file.
2852 * MAINTAINERS: Add bpf target and maintainer.
2853 * NEWS: Mention the support for the new target.
2854
521894aa
TV
28552020-08-04 Tom de Vries <tdevries@suse.de>
2856
2857 PR symtab/23270
2858 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2859 Error.
2860
5d6356e9
JB
28612020-08-03 John Baldwin <jhb@FreeBSD.org>
2862
2863 * syscalls/freebsd.xml: Regenerate.
2864
0cf82b81
JB
28652020-08-03 John Baldwin <jhb@FreeBSD.org>
2866
2867 * syscalls/update-freebsd.sh: Fix usage and year range.
2868
8f34b746
TV
28692020-08-03 Tom de Vries <tdevries@suse.de>
2870
2871 PR symtab/26333
2872 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2873 DW_LNE_lo_user/DW_LNE_hi_user range.
2874
5e500d33
SM
28752020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2876
2877 PR ada/26318
2878 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2879 kind.
2880
78319c15
TBA
28812020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2882
2883 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2884
4c55e970
TBA
28852020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2886
2887 * breakpoint.c (set_breakpoint_condition): Update the condition
2888 expressions after checking that the input condition string parses
2889 successfully and does not contain junk at the end.
2890
1e620590
TBA
28912020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2892
2893 * breakpoint.c (set_breakpoint_condition): Update the
2894 condition string after parsing the new condition successfully.
2895
c8693053
RO
28962020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2897
2898 * proc-api.c (_STRUCTURED_PROC): Don't define.
2899 * proc-events.c: Likewise.
2900 * proc-flags.c: Likewise.
2901 * proc-why.c: Likewise.
2902 * procfs.c: Likewise.
2903
2904 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2905 * configure, config.in: Regenerate.
2906
5a99adb8
TV
29072020-07-30 Tom de Vries <tdevries@suse.de>
2908
2909 PR build/26320
2910 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2911 m_red/m_green/m_blue in a union.
2912
8ba83e91
TV
29132020-07-29 Tom de Vries <tdevries@suse.de>
2914
2915 PR tdep/26280
2916 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2917
f75a0693
AB
29182020-07-28 Tom Tromey <tromey@adacore.com>
2919
2920 PR symtab/26270:
2921 * symtab.h (find_pc_partial_function_sym): Declare.
2922 * cli/cli-cmds.c (disassemble_command): Use
2923 find_pc_partial_function_sym. Check asm_demangle.
2924 * blockframe.c (cache_pc_function_sym): New global.
2925 (cache_pc_function_name): Remove.
2926 (clear_pc_function_cache): Update.
2927 (find_pc_partial_function_sym): New function, from
2928 find_pc_partial_function.
2929 (find_pc_partial_function): Rewrite using
2930 find_pc_partial_function_sym.
2931
16f3242c
TT
29322020-07-28 Tom Tromey <tromey@adacore.com>
2933
2934 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2935 help. Add usage.
2936
4888741a
TT
29372020-07-28 Tom Tromey <tromey@adacore.com>
2938
2939 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2940 <DW_OP_GNU_variable_value>: Cast to address type.
2941
4d46f402
KR
29422020-07-28 Kamil Rytarowski <n54@gmx.com>
2943
2944 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2945 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2946 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2947 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2948 (nbsd_get_siginfo_type): New.
2949 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2950 (_initialize_nbsd_tdep): New.
2951
d70f978b
L
29522020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2953
2954 PR binutils/26301
2955 * configure: Regenerated.
2956
377170fa
L
29572020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2958
2959 PR binutils/26301
2960 * configure: Regenerated.
2961
43d5901d
AB
29622020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2963
2964 * python/py-frame.c: Remove 'user-regs.h' include.
2965 (frapy_read_register): Rewrite to make use of
2966 gdbpy_parse_register_id.
2967 * python/py-registers.c (gdbpy_parse_register_id): New function,
2968 moved here from python/py-unwind.c. Updated the return type, and
2969 also accepts register descriptor objects.
2970 * python/py-unwind.c: Remove 'user-regs.h' include.
2971 (pyuw_parse_register_id): Moved to python/py-registers.c.
2972 (unwind_infopy_add_saved_register): Update to use
2973 gdbpy_parse_register_id.
2974 (pending_framepy_read_register): Likewise.
2975 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2976
14fa8fb3
AB
29772020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2978
2979 * python/py-registers.c: Add 'user-regs.h' include.
2980 (register_descriptor_iter_find): New function.
2981 (register_descriptor_iterator_object_methods): New static global
2982 methods array.
2983 (register_descriptor_iterator_object_type): Add pointer to methods
2984 array.
2985
ddce1758
JB
29862020-07-27 John Baldwin <jhb@FreeBSD.org>
2987
2988 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2989 for all architectures on FreeBSD 11.3 and later.
2990
a4089f52
TT
29912020-07-27 Tom Tromey <tromey@adacore.com>
2992
2993 * gcore.h (load_corefile): Don't declare.
2994
95420d30
TV
29952020-07-27 Tom de Vries <tdevries@suse.de>
2996
2997 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2998 * config.in: Regenerate.
2999 * configure: Regenerate.
3000
05a6b8c2
EZ
30012020-07-26 Eli Zaretskii <eliz@gnu.org>
3002
3003 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3004 ws2tcpip.h. When checking whether socklen_t type is defined, use
3005 ws2tcpip.h if it is available and sys/socket.h isn't.
3006 * configure: Regenerate.
3007 * config.in: Regenerate.
3008
e79eb02f
AB
30092020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3010
3011 PR fortran/23051
3012 PR fortran/26139
3013 * valops.c (value_ind): Pass address to
3014 readjust_indirect_value_type.
3015 * value.c (readjust_indirect_value_type): Make parameter
3016 non-const, and add extra address parameter. Resolve original type
3017 before using it.
3018 * value.h (readjust_indirect_value_type): Update function
3019 signature and comment.
3020
876518dd
TV
30212020-07-25 Tom de Vries <tdevries@suse.de>
3022
3023 PR symtab/26243
3024 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3025 entries.
3026
f6720b1c
AM
30272020-07-24 Aaron Merey <amerey@redhat.com>
3028
3029 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3030 * configure: Rebuild.
3031
513487e1
KB
30322020-07-23 Kevin Buettner <kevinb@redhat.com>
3033
3034 PR corefiles/26294
3035 * corelow.c (_initialize_corelow): Add period to help text
3036 for "maintenance print core-file-backed-mappings".
3037
e7bc9db8
PA
30382020-07-23 Pedro Alves <pedro@palves.net>
3039
3040 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3041 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3042 meanwhile.
3043 * frame.c (frame_cache_generation, get_frame_cache_generation):
3044 New.
3045 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3046 (get_prev_frame_if_no_cycle): On exception, don't touch
3047 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3048 * frame.h (get_frame_cache_generation): Declare.
3049
90fcc466
TV
30502020-07-23 Tom de Vries <tdevries@suse.de>
3051
3052 PR tui/26282
3053 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3054 New default constructor.
3055
78344df7
AB
30562020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3057
3058 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3059 exclude non-statement entries.
3060
b089853a
KB
30612020-07-22 Kevin Buettner <kevinb@redhat.com>
3062
3063 * NEWS (New commands): Mention new command
3064 "maintenance print core-file-backed-mappings".
3065
09c2f5d4
KB
30662020-07-22 Kevin Buettner <kevinb@redhat.com>
3067
3068 * corelow.c (gdbcmd.h): Include.
3069 (core_target::info_proc_mappings): New method.
3070 (get_current_core_target): New function.
3071 (maintenance_print_core_file_backed_mappings): New function.
3072 (_initialize_corelow): Add core-file-backed-mappings to
3073 "maint print" commands.
3074
9c5ec5c2 30752020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3076
9c5ec5c2
KB
3077 * linux-tdep.c (dump_note_entry_p): New function.
3078 (linux_dump_mapping_p_ftype): New typedef.
3079 (linux_find_memory_regions_full): Add new parameter,
3080 should_dump_mapping_p.
3081 (linux_find_memory_regions): Adjust call to
3082 linux_find_memory_regions_full.
3083 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3084 call to linux_find_memory_regions_full.
3085
db082f59
KB
30862020-07-22 Kevin Buettner <kevinb@redhat.com>
3087
3088 * corelow.c (solist.h, unordered_map): Include.
3089 (class core_target): Add field m_core_file_mappings and
3090 method build_file_mappings.
3091 (core_target::core_target): Call build_file_mappings.
3092 (core_target::~core_target): Free memory associated with
3093 m_core_file_mappings.
3094 (core_target::build_file_mappings): New method.
3095 (core_target::xfer_partial): Use m_core_file_mappings
3096 for memory transfers.
3097 * linux-tdep.c (linux_read_core_file_mappings): New
3098 function.
3099 (linux_core_info_proc_mappings): Rewrite to use
3100 linux_read_core_file_mappings.
3101 (linux_init_abi): Register linux_read_core_file_mappings.
3102
7e183d27
KB
31032020-07-22 Kevin Buettner <kevinb@redhat.com>
3104
3105 * arch-utils.c (default_read_core_file_mappings): New function.
3106 * arch-utils.c (default_read_core_file_mappings): Declare.
3107 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3108 * gdbarch.h, gdbarch.c: Regenerate.
3109
2735d421
KB
31102020-07-22 Kevin Buettner <kevinb@redhat.com>
3111
3112 PR corefiles/25631
3113 * corelow.c (core_target:xfer_partial): Revise
3114 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3115 case after first checking the stratum beneath the core
3116 target.
3117 (has_all_memory): Return true.
3118 * target.c (raw_memory_xfer_partial): Revise comment
3119 regarding use of has_all_memory.
3120
e56cb451
KB
31212020-07-22 Kevin Buettner <kevinb@redhat.com>
3122
3123 * exec.h (section_table_xfer_memory): Revise declaration,
3124 replacing section name parameter with an optional callback
3125 predicate.
3126 * exec.c (section_table_xfer_memory): Likewise.
3127 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3128 of section_table_xfer_memory.
3129
32fa152e
TT
31302020-07-22 Tom Tromey <tromey@adacore.com>
3131
3132 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3133 lookup_symbol_search_name.
3134
a67a1c41
AB
31352020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3136
3137 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3138 redundant local variable.
3139 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3140 reference, not pointer, update code accordingly.
3141
a7b4ff4f
SM
31422020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3143 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3144
3145 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3146 * jit.c (jit_breakpoint_re_set_internal): Use the
3147 `skip_jit_symbol_lookup` field.
3148
2340e834
SM
31492020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3150 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3151
3152 * jit.c (jit_read_descriptor): Define the descriptor address once,
3153 use twice.
3154 (jit_breakpoint_deleted): Move the declaration of the loop variable
3155 `iter` into the loop header.
3156 (jit_breakpoint_re_set_internal): Move the declaration of the local
3157 variable `objf_data` to the first point of definition.
3158 (jit_event_handler): Move the declaration of local variables
3159 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3160 Rename `objf` to `jited`.
3161
c1072906
SM
31622020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3163
3164 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3165 Remove.
3166 * jit.c (get_jiter_objfile_data): Update.
3167
c8474dc3
TBA
31682020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3169 Simon Marchi <simon.marchi@polymtl.ca>
3170
3171 * jit.c (struct jit_program_space_data): Remove.
3172 (jit_program_space_key): Remove.
3173 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3174 stuff.
3175 (get_jit_program_space_data): Remove.
3176 (jit_breakpoint_deleted): Iterate on all of the program space's
3177 objfiles.
3178 (jit_inferior_init): Likewise.
3179 (jit_breakpoint_re_set_internal): Likewise. Also change return
3180 type to void.
3181 (jit_breakpoint_re_set): Pass current_program_space to
3182 jit_breakpoint_re_set_internal.
3183
77208eb7
SM
31842020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3185
3186 * jit.h (struct jiter_objfile_data) <cached_code_address,
3187 jit_breakpoint>: Move to here from ...
3188 * jit.c (jit_program_space_data): ... here.
3189 (jiter_objfile_data::~jiter_objfile_data): Update.
3190 (jit_breakpoint_deleted): Update.
3191 (jit_breakpoint_re_set_internal): Update.
3192
8c1c720f
SM
31932020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3194
3195 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3196 checks.
3197 (jit_read_descriptor): Remove NULL check.
3198 (jit_event_handler): Add an assertion.
3199
0e74a041
SM
32002020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3201
3202 * jit.h (struct jit_objfile_data): Split into...
3203 (struct jiter_objfile_data): ... this ...
3204 (struct jited_objfile_data): ... and this.
3205 * objfiles.h (struct objfile) <jit_data>: Remove.
3206 <jiter_data, jited_data>: New fields.
3207 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3208 (jiter_objfile_data::~jiter_objfile_data): ... this.
3209 (get_jit_objfile_data): Rename to ...
3210 (get_jiter_objfile_data): ... this.
3211 (add_objfile_entry): Update.
3212 (jit_read_descriptor): Use get_jiter_objfile_data.
3213 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3214 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3215 (jit_inferior_exit_hook): Use objfile's jited_data field.
3216
238b5c9f
SM
32172020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3218
3219 * jit.h: Forward-declare `struct minimal_symbol`.
3220 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3221 constructor, destructor, and an objfile* field.
3222 * jit.c (jit_objfile_data): Remove.
3223 (struct jit_objfile_data): Migrate from here to jit.h.
3224 (jit_objfile_data::~jit_objfile_data): New destructor
3225 implementation with code moved from free_objfile_data.
3226 (free_objfile_data): Delete.
3227 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3228 (jit_find_objf_with_entry_addr): Ditto.
3229 (jit_inferior_exit_hook): Ditto.
3230 (_initialize_jit): Remove the call to
3231 register_objfile_data_with_cleanup.
3232 * objfiles.h (struct objfile) <jit_data>: New field.
3233
fe053b9e
TBA
32342020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3235
3236 * jit.h: Forward-declare `struct objfile`.
3237 (jit_event_handler): Add a second parameter, the JITer objfile.
3238 * jit.c (jit_read_descriptor): Change the signature to take the
3239 JITer objfile as an argument instead of the jit_program_space_data.
3240 (jit_inferior_init): Update the call to jit_read_descriptor.
3241 (jit_event_handler): Use the new JITer objfile argument when calling
3242 jit_read_descriptor.
3243 * breakpoint.c (handle_jit_event): Update the call to
3244 jit_event_handler to pass the JITer objfile.
3245
4cec0c66
JB
32462020-07-21 John Baldwin <jhb@FreeBSD.org>
3247
3248 * gdbarch.c: Regenerate.
3249 * gdbarch.h: Regenerate.
3250 * gdbarch.sh (handle_segmentation_fault): Remove method.
3251 * infrun.c (handle_segmentation_fault): Remove.
3252 (print_signal_received_reason): Remove call to
3253 handle_segmentation_fault.
3254
0e42f66a
JB
32552020-07-21 John Baldwin <jhb@FreeBSD.org>
3256
3257 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3258 Rename to sparc64_linux_report_signal_info and add siggnal
3259 argument.
3260 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3261 instead of sparc64_linux_handle_segmentation_fault.
3262
77bdfeb2
JB
32632020-07-21 John Baldwin <jhb@FreeBSD.org>
3264
3265 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3266 i386_linux_report_signal_info instead of
3267 i386_linux_handle_segmentation_fault.
3268 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3269 to i386_linux_report_signal_info and add siggnal argument.
3270 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3271 of i386_linux_handle_segmentation_fault.
3272 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3273 to i386_linux_report_signal_info and add siggnal argument.
3274
ad97bfc5
JB
32752020-07-21 John Baldwin <jhb@FreeBSD.org>
3276
3277 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3278 hook if present.
3279
272bb05c
JB
32802020-07-21 John Baldwin <jhb@FreeBSD.org>
3281
3282 * gdbarch.c: Regenerate.
3283 * gdbarch.h: Regenerate.
3284 * gdbarch.sh (report_signal_info): New method.
3285 * infrun.c (print_signal_received_reason): Invoke gdbarch
3286 report_signal_info hook if present.
3287
baf8791e
AB
32882020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3289
3290 * python/py-registers.c : Add 'unordered_map' include.
3291 (gdbpy_new_reggroup): Renamed to...
3292 (gdbpy_get_reggroup): ...this. Update to only create register
3293 group descriptors when needed.
3294 (gdbpy_reggroup_iter_next): Update.
3295
f7306dac
AB
32962020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3297
3298 * python/py-registers.c (gdbpy_register_object_data): New static
3299 global.
3300 (gdbpy_register_object_data_init): New function.
3301 (gdbpy_new_register_descriptor): Renamed to...
3302 (gdbpy_get_register_descriptor): ...this, and update to reuse
3303 existing register descriptors where possible.
3304 (gdbpy_register_descriptor_iter_next): Update.
3305 (gdbpy_initialize_registers): Register new gdbarch data.
3306
05c309a8
SM
33072020-07-21 Simon Marchi <simon.marchi@efficios.com>
3308
3309 * linux-nat.c (stopped_pids): Make static.
3310
d1fd641e
SM
33112020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3312
3313 PR ada/26235
3314 * gdbtypes.c (ada_discrete_type_low_bound,
3315 ada_discrete_type_high_bound): Handle undefined bounds.
3316
1de14d77
KR
33172020-07-21 Kamil Rytarowski <n54@gmx.com>
3318
3319 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3320 declaration.
3321 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3322 function.
3323
ed810cc7
JB
33242020-07-20 John Baldwin <jhb@FreeBSD.org>
3325
3326 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3327 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3328 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3329 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3330 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3331 method.
3332
ae5369e7
LC
33332020-07-20 Ludovic Courtès <ludo@gnu.org>
3334
3335 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3336 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3337 which are deprecated in Guile 3.0.
3338 * configure.ac (try_guile_versions): Add "guile-3.0".
3339 * configure (try_guile_versions): Regenerate.
3340 * NEWS: Update entry.
3341
68cf161c
LC
33422020-07-20 Ludovic Courtès <ludo@gnu.org>
3343 Doug Evans <dje@google.com>
3344
3345 PR gdb/21104
3346 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3347 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3348 USING_GUILE_BEFORE_2_2.
3349 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3350 Change type to 'scm_t_port_type *'.
3351 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3352 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3353 parameter and honor it. Update callers.
3354 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3355 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3356 functions.
3357 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3358 USING_GUILE_BEFORE_2_2.
3359 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3360 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3361 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3362 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3363 and 'SCM_PORT_TYPE'.
3364 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3365 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3366 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3367 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3368 [!USING_GUILE_BEFORE_2_2]: New functions.
3369 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3370 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3371 'gdbscm_memory_port_read'.
3372 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3373 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3374 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3375 function.
3376 (ioscm_init_memory_port): Remove.
3377 (ioscm_init_memory_port_stream): New function
3378 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3379 function.
3380 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3381 Return scm_from_uint (0).
3382 (gdbscm_set_memory_port_read_buffer_size_x)
3383 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3384 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3385 Return scm_from_uint (0).
3386 (gdbscm_set_memory_port_write_buffer_size_x)
3387 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3388 * configure.ac (try_guile_versions): Add "guile-2.2".
3389 * configure: Regenerate.
3390 * NEWS: Add entry.
3391
aee91db3
TT
33922020-07-18 Tom Tromey <tom@tromey.com>
3393
3394 * linux-nat.c (linux_multi_process): Remove.
3395 (linux_nat_target::supports_multi_process): Return true.
3396
0e267416
AB
33972020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3398
3399 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3400 (riscv_lookup_target_description): Return pointer out of
3401 unique_ptr.
3402 * target-descriptions.c (allocate_target_description): Add
3403 comment.
3404 (target_desc_deleter::operator()): Likewise.
3405 * target-descriptions.h (struct target_desc_deleter): Moved to
3406 gdbsupport/tdesc.h.
3407 (target_desc_up): Likewise.
3408
f80c8ec4
TT
34092020-07-17 Tom Tromey <tromey@adacore.com>
3410
3411 * linux-nat.c (linux_nat_target::supports_non_stop)
3412 (linux_nat_target::always_non_stop_p): Use "true".
3413 (linux_nat_target::supports_disable_randomization): Use "true" and
3414 "false".
3415
d0ce17d8
CT
34162020-07-16 Caroline Tice <cmtice@google.com>
3417
3418 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3419 (RNGLIST_HEADER_SIZE64): New constant definition.
3420 (struct dwop_section_names): Add rnglists_dwo.
3421 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3422 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3423 (struct dwo_sections): Add rnglists field.
3424 (read_attribut_reprocess): Add tag parameter.
3425 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3426 (cu_debug_rnglists_section): New function (decl & definition).
3427 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3428 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3429 die whose range is being checked; get rnglist section from
3430 cu_debug_rnglists_section, to get from either objfile or dwo file as
3431 appropriate. Add cases for DW_RLE_base_addressx,
3432 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3433 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3434 test inside if-condition and updating complaint message.
3435 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3436 dwarf2_rnglists_process.
3437 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3438 dwarf2_ranges_process.
3439 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3440 need_ranges_base and update comment appropriately. Also pass die tag
3441 to dwarf2_ranges_read.
3442 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3443 need_ranges_base and update comment appropriately. Also pass die tag
3444 to dwarf2_ranges_process.
3445 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3446 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3447 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3448 need_ranges_base and update comment appropriately. Also pass die tag
3449 to read_attribute_reprocess and dwarf2_ranges_read.
3450 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3451 and update function comment appropriately.
3452 (read_loclist_index): Call read_loclists_rnglists_header instead of
3453 read_loclist_header.
3454 (read_rnglist_index): New function.
3455 (read_attribute_reprocess): Add tag parameter. Add code for
3456 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3457 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3458
3dcc261c
AB
34592020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3460
3461 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3462 being resolved.
3463
ccb9eba6
AB
34642020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3465
3466 * arch-utils.c (show_architecture): Update formatting of messages.
3467
cf88be68
SM
34682020-07-12 Simon Marchi <simon.marchi@efficios.com>
3469
3470 * gdbtypes.h (struct type) <bounds>: Handle array and string
3471 types.
3472 * ada-lang.c (assign_aggregate): Use type::bounds on
3473 array/string type.
3474 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3475 * c-varobj.c (c_number_of_children): Likewise.
3476 (c_describe_child): Likewise.
3477 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3478 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3479 (f_type_print_base): Likewise.
3480 * f-valprint.c (f77_array_offset_tbl): Likewise.
3481 (f77_get_upperbound): Likewise.
3482 (f77_print_array_1): Likewise.
3483 * guile/scm-type.c (gdbscm_type_range): Likewise.
3484 * m2-typeprint.c (m2_array): Likewise.
3485 (m2_is_long_set_of_type): Likewise.
3486 * m2-valprint.c (get_long_set_bounds): Likewise.
3487 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3488 * python/py-type.c (typy_range): Likewise.
3489 * rust-lang.c (rust_internal_print_type): Likewise.
3490 * type-stack.c (type_stack::follow_types): Likewise.
3491 * valarith.c (value_subscripted_rvalue): Likewise.
3492 * valops.c (value_cast): Likewise.
3493
509971ae
SM
34942020-07-12 Simon Marchi <simon.marchi@efficios.com>
3495
3496 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3497 callers to use the equivalent accessor methods.
3498
107406b7
SM
34992020-07-12 Simon Marchi <simon.marchi@efficios.com>
3500
3501 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3502 (struct type) <bit_stride>: New method.
3503 (TYPE_BIT_STRIDE): Remove.
3504 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3505
bb789949
SM
35062020-07-12 Simon Marchi <simon.marchi@efficios.com>
3507
3508 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3509 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3510 callers to use the equivalent accessor methods instead.
3511
39498edb
SM
35122020-07-12 Simon Marchi <simon.marchi@efficios.com>
3513
3514 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3515 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3516 callers to use the equivalent accessor methods instead.
3517
3b606f38
SM
35182020-07-12 Simon Marchi <simon.marchi@efficios.com>
3519
3520 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3521 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3522 to use dynamic_prop::kind.
3523
064d9cb9
SM
35242020-07-12 Simon Marchi <simon.marchi@efficios.com>
3525
3526 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3527 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3528 to get the bound property's kind and check against
3529 PROP_UNDEFINED.
3530
5537ddd0
SM
35312020-07-12 Simon Marchi <simon.marchi@efficios.com>
3532
3533 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3534 all callers to use type::range_bounds followed by
3535 dynamic_prop::{low,high}.
3536
8c2e4e06
SM
35372020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3538
3539 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3540 const_val, set_const_val, baton, set_locexpr, set_loclist,
3541 set_addr_offset, variant_parts, set_variant_parts,
3542 original_type, set_original_type>: New methods.
3543 <kind>: Rename to...
3544 <m_kind>: ... this. Update all users to use the new methods
3545 instead.
3546 <data>: Rename to...
3547 <m_data>: ... this. Update all users to use the new methods
3548 instead.
3549
7c6f2712
SM
35502020-07-12 Simon Marchi <simon.marchi@efficios.com>
3551
3552 * gdbtypes.c (get_discrete_bounds): Return failure if
3553 the range type's bounds are not both defined and constant
3554 values.
3555 (get_array_bounds): Update comment. Remove undefined bound check.
3556
599088e3
SM
35572020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3558
3559 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3560 the type::bounds method directly.
3561
c4dfcb36
SM
35622020-07-12 Simon Marchi <simon.marchi@efficios.com>
3563
3564 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3565 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3566 are used to set the range type's bounds to use set_bounds.
3567
0a278aa7
PW
35682020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3569
3570 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3571
cce20f10
PA
35722020-07-10 Pedro Alves <pedro@palves.net>
3573
3574 * gdbthread.h (inferior_ref): Define.
3575 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3576 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3577 * thread.c
3578 (scoped_restore_current_thread::restore):
3579 Adjust to gdb::ref_ptr.
3580 (scoped_restore_current_thread::~scoped_restore_current_thread):
3581 Remove manual decref handling.
3582 (scoped_restore_current_thread::scoped_restore_current_thread):
3583 Adjust to use
3584 inferior_ref::new_reference/thread_info_ref::new_reference.
3585 Incref the thread before calling get_frame_id instead of after.
3586 Let TARGET_CLOSE_ERROR propagate.
3587
6d7aa592
PA
35882020-07-10 Pedro Alves <pedro@palves.net>
3589
3590 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3591 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3592 NOT_AVAILABLE_ERROR.
3593 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3594 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3595
b3e3a4c1
SM
35962020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3597 Pedro Alves <pedro@palves.net>
3598
3599 PR gdb/26199
3600 * infrun.c (threads_are_resumed_pending_p): Delete.
3601 (do_target_wait): Remove threads_are_executing and
3602 threads_are_resumed_pending_p checks from the inferior_matches
3603 lambda. Update comments.
3604
d6cc5d98
PA
36052020-07-10 Pedro Alves <pedro@palves.net>
3606
3607 PR gdb/26199
3608 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3609 executing threads.
3610
7d3badc6
PA
36112020-07-10 Pedro Alves <pedro@palves.net>
3612
3613 PR gdb/26199
3614 * infrun.c (handle_no_resumed): Handle multiple targets.
3615
42bd97a6
PA
36162020-07-10 Pedro Alves <pedro@palves.net>
3617
3618 PR gdb/26199
3619 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3620 target_is_async_p.
3621
43667cc6
PA
36222020-07-10 Pedro Alves <pedro@palves.net>
3623
3624 PR gdb/26199
3625 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3626 threads, not all threads.
3627
96118d11
PA
36282020-07-10 Pedro Alves <pedro@palves.net>
3629
3630 PR gdb/26199
3631 * remote.c (remote_target::open_1): Pass remote target pointer as
3632 data to create_async_event_handler.
3633 (remote_async_inferior_event_handler): Mark async event handler
3634 before returning if the remote target still has either pending
3635 events or unacknowledged notifications.
3636
54904d81
JB
36372020-07-10 John Baldwin <jhb@FreeBSD.org>
3638
3639 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3640 declaration.
3641 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3642 function.
3643
f37e5866
JB
36442020-07-09 John Baldwin <jhb@FreeBSD.org>
3645
3646 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3647 inferior_ptid.
3648
fc238d4a
JB
36492020-07-09 John Baldwin <jhb@FreeBSD.org>
3650
3651 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3652 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3653 AT_FREEBSD_PS_STRINGS.
3654
6e2469ff
HD
36552020-07-08 Hannes Domani <ssbssa@yahoo.de>
3656
3657 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3658 of debugfile path on Windows.
3659
d1076c41
JB
36602020-07-08 John Baldwin <jhb@FreeBSD.org>
3661
3662 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3663 argument to 'data'.
3664
15f3b077
TT
36652020-07-08 Tom Tromey <tromey@adacore.com>
3666
3667 * ada-lang.c (ada_exception_message_1): Use read_memory.
3668
9fc501fd
AB
36692020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3670
3671 PR python/22748
3672 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3673 special handling for inline frames.
3674 * findvar.c (value_of_register_lazy): Skip inline frames when
3675 creating lazy register values.
3676 * frame.c (frame_id_computed_p): Delete definition.
3677 * frame.h (frame_id_computed_p): Delete declaration.
3678
64cb3757
AB
36792020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3680
3681 * NEWS: Mention additions to Python API.
3682 * python/py-arch.c (archpy_register_groups): New function.
3683 (arch_object_methods): Add 'register_groups' method.
3684 * python/py-registers.c (reggroup_iterator_object): New struct.
3685 (reggroup_object): New struct.
3686 (gdbpy_new_reggroup): New function.
3687 (gdbpy_reggroup_to_string): New function.
3688 (gdbpy_reggroup_name): New function.
3689 (gdbpy_reggroup_iter): New function.
3690 (gdbpy_reggroup_iter_next): New function.
3691 (gdbpy_new_reggroup_iterator): New function
3692 (gdbpy_initialize_registers): Register new types.
3693 (reggroup_iterator_object_type): Define new Python type.
3694 (gdbpy_reggroup_getset): New static global.
3695 (reggroup_object_type): Define new Python type.
3696 * python/python-internal.h
3697
0f767f94
AB
36982020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3699
3700 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3701 * python/py-arch.c (archpy_registers): New function.
3702 (arch_object_methods): Add 'registers' method.
3703 * python/py-registers.c: New file.
3704 * python/python-internal.h
3705 (gdbpy_new_register_descriptor_iterator): Declare.
3706 (gdbpy_initialize_registers): Declare.
3707 * python/python.c (do_start_initialization): Call
3708 gdbpy_initialize_registers.
3709 * NEWS: Mention additions to the Python API.
3710
87dbc774
AB
37112020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3712
3713 * NEWS: Mention new Python API method.
3714 * python/py-unwind.c (pending_framepy_architecture): New function.
3715 (pending_frame_object_methods): Add architecture method.
3716
3bc98c0c
AB
37172020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3718
3719 * gdbarch.c: Regenerate.
3720 * gdbarch.h: Regenerate.
3721 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3722 (gdbarch_data): Use internal_error for the case where
3723 deprecated_set_gdbarch_data was originally needed.
3724 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3725 and use passed in obstack.
3726 (libunwind_frame_set_descr): Should no longer get back NULL from
3727 gdbarch_data.
3728 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3729 type.
3730 * user-regs.c (user_regs_init): Update parameters, and use passed
3731 in obstack.
3732 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3733 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3734
d8cc8af6
TV
37352020-07-06 Tom de Vries <tdevries@suse.de>
3736
3737 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3738 End-Of-Sequence in lte_is_less_than.
3739 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3740 "gdb: Don't reorder line table entries too much when sorting".
3741
947f7597
TV
37422020-07-06 Tom de Vries <tdevries@suse.de>
3743
3744 PR tui/26205
3745 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3746
1e7c1b22
TV
37472020-07-05 Tom de Vries <tdevries@suse.de>
3748
3749 PR build/26187
3750 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3751 std::uncaught_exceptions instead of deprecated
3752 std::uncaught_exception.
3753
a36158ec
SM
37542020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3755
3756 * macroexp.h (macro_stringify): Return
3757 gdb::unique_xmalloc_ptr<char>.
3758 * macroexp.c (macro_stringify): Likewise.
3759 * macrotab.c (fixup_definition): Update.
3760
14d960c8
SM
37612020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3762
3763 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3764 (lex_one_token): Update.
3765 * macroexp.c (struct macro_buffer) <release>: Return
3766 gdb::unique_xmalloc_ptr<char>.
3767 (macro_stringify): Update.
3768 (macro_expand): Update.
3769 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3770 * macroexp.h (macro_expand_next): Likewise.
3771
211d5b1c
SM
37722020-07-02 Simon Marchi <simon.marchi@efficios.com>
3773
3774 * macroexp.h (macro_lookup_ftype): Remove.
3775 (macro_expand, macro_expand_once, macro_expand_next): Remove
3776 lookup function parameters, add scope parameter.
3777 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3778 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3779 * macroscope.h (standard_macro_lookup): Change parameter type
3780 to macro_scope.
3781 * macroscope.c (standard_macro_lookup): Likewise.
3782 * c-exp.y (lex_one_token): Update.
3783 * macrocmd.c (macro_expand_command): Likewise.
3784 (macro_expand_once_command): Likewise.
3785
b1a35af2
SM
37862020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3787
3788 * inf-loop.c (inferior_event_handler): Remove client_data param.
3789 * inf-loop.h (inferior_event_handler): Likewise.
3790 * infcmd.c (step_1): Adjust.
3791 * infrun.c (proceed): Adjust.
3792 (fetch_inferior_event): Remove client_data param.
3793 (infrun_async_inferior_event_handler): Adjust.
3794 * infrun.h (fetch_inferior_event): Remove `void *` param.
3795 * linux-nat.c (handle_target_event): Adjust.
3796 * record-btrace.c (record_btrace_handle_async_inferior_event):
3797 Adjust.
3798 * record-full.c (record_full_async_inferior_event_handler):
3799 Adjust.
3800 * remote.c (remote_async_inferior_event_handler): Adjust.
3801
1cdf9e33
TT
38022020-07-01 Tom Tromey <tom@tromey.com>
3803
3804 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3805 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3806
32c1e210
TT
38072020-07-01 Tom Tromey <tom@tromey.com>
3808
3809 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3810 tui_gen_win_info.
3811 (tui_win_info::make_window): Merge with
3812 tui_gen_win_info::make_window.
3813 (tui_win_info::make_visible): Move from tui_gen_win_info.
3814 * tui/tui-win.c (tui_win_info::max_width): Move from
3815 tui_gen_win_info.
3816 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3817 type.
3818 <window_factory>: Likewise.
3819 * tui/tui-layout.c (tui_win_info::resize): Move from
3820 tui_gen_win_info.
3821 (make_standard_window): Change return type.
3822 (get_locator_window, tui_get_window_by_name): Likewise.
3823 (tui_layout_window::apply): Remove a cast.
3824 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3825 (struct tui_win_info): Merge with tui_gen_win_info.
3826 (struct tui_gen_win_info): Remove.
3827
a30cb6da
TT
38282020-07-01 Tom Tromey <tom@tromey.com>
3829
3830 * tui/tui-stack.h (struct tui_locator_window): Derive from
3831 tui_win_info.
3832 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3833 <can_box>: New method.
3834
1eb2161f
TT
38352020-07-01 Tom Tromey <tom@tromey.com>
3836
3837 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3838
7134f2eb
TT
38392020-07-01 Tom Tromey <tom@tromey.com>
3840
3841 * tui/tui-regs.c (tui_data_window::display_registers_from)
3842 (tui_data_window::display_registers_from)
3843 (tui_data_window::first_data_item_displayed)
3844 (tui_data_window::delete_data_content_windows): Update.
3845 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3846 Remove.
3847 (tui_data_window::check_register_values): Update.
3848 (tui_data_item_window::rerender): Add parameters. Update.
3849 (tui_data_item_window::refresh_window): Remove.
3850 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3851 virtual.
3852 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3853 tui_gen_win_info.
3854 <refresh_window, max_height, min_height>: Remove.
3855 <rerender>: Add parameters.
3856 <x, y, visible>: New members.
3857 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3858 <m_item_width>: New member.
3859
22b7b041
TT
38602020-07-01 Tom Tromey <tom@tromey.com>
3861
3862 * tui/tui-regs.c (tui_data_window::show_register_group)
3863 (tui_data_window::check_register_values): Update.
3864 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3865 from item_no.
3866
c9753adb
TT
38672020-07-01 Tom Tromey <tom@tromey.com>
3868
3869 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3870 useless "if".
3871
9ab26b4a
TT
38722020-07-01 Tom Tromey <tom@tromey.com>
3873
3874 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3875 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3876
e555083f
TT
38772020-07-01 Tom Tromey <tom@tromey.com>
3878
3879 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3880 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3881 (struct tui_line_or_address): Move from tui-data.h.
3882 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3883 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3884 (tui_cmd_window, tui_source_window_base, tui_source_window)
3885 (tui_disasm_window): Don't declare.
3886 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3887 to tui-winsource.h.
3888 (SINGLE_KEY): Move to tui-stack.c.
3889
7a02bab7
TT
38902020-07-01 Tom Tromey <tom@tromey.com>
3891
3892 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3893 std::string.
3894 * tui/tui-regs.c (class tab_expansion_file): New.
3895 (tab_expansion_file::write): New method.
3896 (tui_register_format): Change return type. Use
3897 tab_expansion_file.
3898 (tui_get_register, tui_data_window::display_registers_from)
3899 (tui_data_item_window::rerender): Update.
3900 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3901 * tui/tui-io.c (tui_expand_tabs): Remove.
3902
ea68593b
TT
39032020-07-01 Tom Tromey <tom@tromey.com>
3904
3905 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3906
a8caed5d
FS
39072020-07-01 Fangrui Song <maskray@google.com>
3908
3909 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3910
9cdf9820
AKS
39112020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3912
3913 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3914 forms for DW_AT_associated and DW_AT_allocated attributes,
3915 which is already checked in function attr_to_dynamic_prop.
3916
a1520ad8
TT
39172020-06-30 Tom Tromey <tromey@adacore.com>
3918
3919 * dwarf2/read.c (quirk_rust_enum): Correctly call
3920 alloc_rust_variant for default-less enum.
3921
5ac58899
TT
39222020-06-30 Tom Tromey <tromey@adacore.com>
3923
3924 PR build/26183:
3925 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3926 gdb::to_string.
3927
19b187a9
SM
39282020-06-29 Simon Marchi <simon.marchi@efficios.com>
3929
3930 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3931 * gdbarch.h: Re-generate.
3932
cd4c4c07
TT
39332020-06-28 Tom Tromey <tom@tromey.com>
3934
3935 * command.h (cmd_types): Remove.
3936 (cmd_type): Don't declare.
3937 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3938 typedef.
3939 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3940 * cli/cli-decode.c (cmd_type): Remove.
3941
05779d57
PA
39422020-06-27 Pedro Alves <palves@redhat.com>
3943
3944 * fork-child.c (prefork_hook): Adjust.
3945 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3946 Delete.
3947 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3948 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3949 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3950 Remove declarations.
3951 (struct inferior) <set_tty, tty>: New methods.
3952 (struct inferior) <terminal>: Rename to ...
3953 (struct inferior) <m_terminal>: ... this and make private.
3954 * main.c (captured_main_1): Adjust.
3955 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3956 (mi_cmd_inferior_tty_show): Adjust.
3957 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3958 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3959
1776e3e5
NA
39602020-06-26 Nick Alcock <nick.alcock@oracle.com>
3961
3962 * configure.ac: Add --enable-libctf: handle --disable-static
3963 properly.
3964 * acinclude.m4: sinclude ../config/enable.m4.
3965 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3966 (LIBCTF): Substitute in.
3967 (CTF_DEPS): New, likewise.
3968 (CLIBS): libctf needs symbols from libbfd: move earlier.
3969 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3970 flags.
3971 * ctfread.c: Surround in ENABLE_LIBCTF.
3972 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3973 * configure: Regenerate.
3974 * config.in: Likewise.
3975
58373b80
SM
39762020-06-25 Simon Marchi <simon.marchi@efficios.com>
3977
3978 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3979
277474ee
SM
39802020-06-25 Simon Marchi <simon.marchi@efficios.com>
3981
3982 * inferior.h (struct inferior) <terminal>: Change type to
3983 gdb::unique_xmalloc_ptr<char>.
3984 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3985 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3986 field, adjust to unique pointer.
3987 (get_inferior_io_terminal): Adjust to unique pointer.
3988
6d74da72
AB
39892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3990
3991 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3992 registers, not just the known core set of registers.
3993
2e52d038
AB
39942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3995
3996 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3997 fflags, frm, and fcsr registers.
3998 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3999 restore groups.
4000 (riscv_tdesc_unknown_reg): New function.
4001 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4002 tdesc_use_registers.
4003 * riscv-tdep.h (struct gdbarch_tdep): Add
4004 unknown_csrs_first_regnum, unknown_csrs_count,
4005 duplicate_fflags_regnum, duplicate_frm_regnum, and
4006 duplicate_fcsr_regnum fields.
4007
be64fd07
AB
40082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4009
4010 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4011 callback, use the callback (when not null) to help number unknown
4012 registers.
4013 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4014 (tdesc_use_registers): Add extra parameter to declaration.
4015
3b9fce96
AB
40162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4017
4018 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4019 in the file.
4020 (class riscv_pending_register_alias): Likewise.
4021 (riscv_register_feature::register_info): Change 'required_p' field
4022 to 'required', and change its type. Add 'check' member function.
4023 (riscv_register_feature::register_info::check): Define new member
4024 function.
4025 (riscv_xreg_feature): Change initialisation of 'required' field.
4026 (riscv_freg_feature): Likewise.
4027 (riscv_virtual_feature): Likewise.
4028 (riscv_csr_feature): Likewise.
4029 (riscv_check_tdesc_feature): Take extra parameter, the csr
4030 tdesc_feature, rewrite the function to use the new
4031 riscv_register_feature::register_info::check function.
4032 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4033
865bad26
AB
40342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4035
4036 * features/Makefile: Remove all references to the deleted files
4037 below.
4038 * features/riscv/32bit-csr.c: Deleted.
4039 * features/riscv/32bit-csr.xml: Deleted.
4040 * features/riscv/64bit-csr.c: Deleted.
4041 * features/riscv/64bit-csr.xml: Deleted.
4042 * features/riscv/rebuild-csr-xml.sh: Deleted.
4043
ed69cbc8
AB
40442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4045
4046 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4047 whitespace error for declaration of names member variable.
4048 (struct riscv_register_feature): Add new prefer_first_name member
4049 variable, and fix whitespace error in declaration of registers.
4050 (riscv_xreg_feature): Initialize prefer_first_name field.
4051 (riscv_freg_feature): Likewise.
4052 (riscv_virtual_feature): Likewise.
4053 (riscv_csr_feature): Likewise.
4054 (riscv_register_name): Expand on comments. Remove register name
4055 modifications for CSR and virtual registers.
4056
4445e8f5
AB
40572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4058
4059 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4060 errors.
4061
767a879e
AB
40622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4063
4064 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4065 riscv-opc.h.
4066 (class riscv_pending_register_alias): New class.
4067 (riscv_check_tdesc_feature): Take vector of pending aliases and
4068 populate it as appropriate.
4069 (riscv_setup_register_aliases): Delete.
4070 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4071 to riscv_check_tdesc_feature in all cases. Use the vector to
4072 create the register aliases.
4073
bb6e55f3
RO
40742020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4075
4076 * sol2-tdep.c (sol2_static_transform_name): Remove.
4077 (sol2_init_abi): Don't register it.
4078 * gdbarch.sh (static_transform_name): Remove.
4079 * gdbarch.c, gdbarch.h: Regenerate.
4080
4081 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4082 gdbarch_static_transform_name.
4083 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4084 * stabsread.c (define_symbol) <'X'>: Remove.
4085 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4086 handling.
4087 <'V'>: Likewise.
4088 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4089 <'S'>: Remove call to gdbarch_static_transform_name.
4090
c6d36836
RO
40912020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4092
4093 * procfs.c (procfs_pre_trace): New function.
4094 (procfs_target::create_inferior): Pass it to fork_inferior.
4095
a7e6196b
RO
40962020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4097
4098 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4099 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4100 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4101 sol2-tdep.o, sparc-sol2-tdep.o.
4102 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4103 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4104 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4105 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4106
d412e696
RO
41072020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4108
4109 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4110 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4111 Call sol2_init_abi.
4112 Remove calls to set_gdbarch_skip_solib_resolver,
4113 set_gdbarch_core_pid_to_str.
4114 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4115 (i386_sol2_static_transform_name): Remove.
4116 (i386_sol2_init_abi): Call sol2_init_abi.
4117 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4118 set_gdbarch_static_transform_name,
4119 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4120 Use sol2_sigtramp_p.
4121 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4122 (sol2_sigtramp_p): New function.
4123 (sol2_static_transform_name): New function.
4124 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4125 (sol2_init_abi): New function.
4126 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4127 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4128 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4129 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4130 (sparc_sol2_static_transform_name): Remove.
4131 (sparc32_sol2_init_abi): Call sol2_init_abi.
4132 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4133 set_gdbarch_static_transform_name,
4134 set_gdbarch_skip_solib_resolver,
4135 set_gdbarch_core_pid_to_str.
4136 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4137 (sparc_sol2_static_transform_name): Remove
4138 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4139 call sol2_sigtramp_p.
4140 (sparc64_sol2_init_abi): Call sol2_init_abi.
4141 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4142 set_gdbarch_static_transform_name,
4143 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4144
a8654e7d
PW
41452020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4146
4147 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4148 * exec.c (validate_exec_file): If from_tty, set both
4149 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4150 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4151 and from_tty, unconditionally ask a confirmation.
4152
caa7fd04
AB
41532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4154
4155 * target-descriptions.c (tdesc_architecture_name): Protect against
4156 NULL pointer dereference.
4157 (maint_print_xml_tdesc_cmd): New function.
4158 (_initialize_target_descriptions): Register new 'maint print
4159 xml-tdesc' command and give it the filename completer.
4160 * NEWS: Mention new 'maint print xml-tdesc' command.
4161
fbf42f4e
AB
41622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4163
4164 * target-descriptions.c (class tdesc_compatible_info): New class.
4165 (struct target_desc): Change type of compatible vector.
4166 (tdesc_compatible_p): Update for change in type of
4167 target_desc::compatible.
4168 (tdesc_compatible_info_list): New function.
4169 (tdesc_compatible_info_arch_name): New function.
4170 (tdesc_add_compatible): Update for change in type of
4171 target_desc::compatible.
4172 (print_c_tdesc::visit_pre): Likewise.
4173
20821f4e
AB
41742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4175
4176 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4177 whitespace to underscore.
4178 (maint_print_c_tdesc_cmd): Use fake filename for target
4179 descriptions that came from the target.
4180 (_initialize_target_descriptions): Add filename command completion
4181 for 'maint print c-tdesc'.
4182
1fb5ee62
SM
41832020-06-23 Simon Marchi <simon.marchi@efficios.com>
4184
4185 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4186 lines.
4187
fc3ecb3e
SM
41882020-06-23 Simon Marchi <simon.marchi@efficios.com>
4189
4190 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4191 lines.
4192 (dwarf2_find_location_expression): Likewise.
4193 (call_site_parameter_matches): Likewise.
4194 (dwarf2_compile_expr_to_ax): Likewise.
4195 (disassemble_dwarf_expression): Likewise.
4196 (loclist_describe_location): Likewise.
4197
236ef034
PA
41982020-06-23 Pedro Alves <palves@redhat.com>
4199
4200 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4201 progspace-and-thread.h. Include scoped-mock-context.h instead.
4202 (register_to_value_test): Use scoped_mock_context.
4203 * regcache.c: Include "scoped-mock-context.h".
4204 (cooked_read_test): Don't error out if a target is already pushed.
4205 Use scoped_mock_context. Adjust.
4206 * scoped-mock-context.h: New file.
4207
39e7ecca
AB
42082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4209
4210 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4211 initializer.
4212 (ada_language::is_string_type_p): New member function.
4213 * c-lang.c (c_language_data): Delete la_is_string_type_p
4214 initializer.
4215 (cplus_language_data): Likewise.
4216 (asm_language_data): Likewise.
4217 (minimal_language_data): Likewise.
4218 * d-lang.c (d_language_data): Likewise.
4219 * f-lang.c (f_is_string_type_p): Delete function, implementation
4220 moved to f_language::is_string_type_p.
4221 (f_language_data): Delete la_is_string_type_p initializer.
4222 (f_language::is_string_type_p): New member function,
4223 implementation from f_is_string_type_p.
4224 * go-lang.c (go_is_string_type_p): Delete function, implementation
4225 moved to go_language::is_string_type_p.
4226 (go_language_data): Delete la_is_string_type_p initializer.
4227 (go_language::is_string_type_p): New member function,
4228 implementation from go_is_string_type_p.
4229 * language.c (language_defn::is_string_type_p): Define new member
4230 function.
4231 (default_is_string_type_p): Make static, add comment copied from
4232 header file.
4233 (unknown_language_data): Delete la_is_string_type_p initializer.
4234 (unknown_language::is_string_type_p): New member function.
4235 (auto_language_data): Delete la_is_string_type_p initializer.
4236 (auto_language::is_string_type_p): New member function.
4237 * language.h (language_data): Delete la_is_string_type_p field.
4238 (language_defn::is_string_type_p): Declare new function.
4239 (default_is_string_type_p): Delete desclaration, move comment to
4240 definition.
4241 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4242 moved to m2_language::is_string_type_p.
4243 (m2_language_data): Delete la_is_string_type_p initializer.
4244 (m2_language::is_string_type_p): New member function,
4245 implementation from m2_is_string_type_p.
4246 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4247 initializer.
4248 * opencl-lang.c (opencl_language_data): Likewise.
4249 * p-lang.c (pascal_is_string_type_p): Delete function,
4250 implementation moved to pascal_language::is_string_type_p.
4251 (pascal_language_data): Delete la_is_string_type_p initializer.
4252 (pascal_language::is_string_type_p): New member function,
4253 implementation from pascal_is_string_type_p.
4254 * rust-lang.c (rust_is_string_type_p): Delete function,
4255 implementation moved to rust_language::is_string_type_p.
4256 (rust_language_data): Delete la_is_string_type_p initializer.
4257 (rust_language::is_string_type_p): New member function,
4258 implementation from rust_is_string_type_p.
4259 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4260 is_string_type_p.
4261
4ffc13fb
AB
42622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4263
4264 * ada-lang.c (ada_language_data): Delete la_print_typedef
4265 initializer.
4266 (ada_language::print_typedef): New member function.
4267 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4268 (cplus_language_data): Likewise.
4269 (asm_language_data): Likewise.
4270 (minimal_language_data): Likewise.
4271 * d-lang.c (d_language_data): Likewise.
4272 * f-lang.c (f_language_data): Likewise.
4273 (f_language::print_typedef): New member function.
4274 * go-lang.c (go_language_data): Delete la_print_typedef
4275 initializer.
4276 * language.c (language_defn::print_typedef): Define member
4277 function.
4278 (unknown_language_data): Delete la_print_typedef initializer.
4279 (unknown_language::print_typedef): New member function.
4280 (auto_language_data): Delete la_print_typedef initializer.
4281 (auto_language::print_typedef): New member function.
4282 * language.h (language_data): Delete la_print_typedef field.
4283 (language_defn::print_typedef): Declare new member function.
4284 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4285 (default_print_typedef): Delete declaration.
4286 * m2-lang.c (m2_language_data): Delete la_print_typedef
4287 initializer.
4288 (m2_language::print_typedef): New member function.
4289 * objc-lang.c (objc_language_data): Delete la_print_typedef
4290 initializer.
4291 * opencl-lang.c (opencl_language_data): Likewise.
4292 * p-lang.c (pascal_language_data): Likewise.
4293 (pascal_language::print_typedef): New member function.
4294 * rust-lang.c (rust_print_typedef): Delete function,
4295 implementation moved to rust_language::print_typedef.
4296 (rust_language): Delete la_print_typedef initializer.
4297 (rust_language::print_typedef): New member function,
4298 implementation from rust_print_typedef.
4299 * typeprint.c (default_print_typedef): Delete.
4300
d711ee67
AB
43012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4302
4303 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4304 (ada_language::printstr): New member function.
4305 * c-lang.c (c_language_data): Delete la_printstr initializer.
4306 (cplus_language_data): Likewise.
4307 (asm_language_data): Likewise.
4308 (minimal_language_data): Likewise.
4309 * d-lang.c (d_language_data): Likewise.
4310 * f-lang.c (f_printstr): Rename to f_language::printstr.
4311 (f_language_data): Delete la_printstr initializer.
4312 (f_language::printstr): New member function, implementation from
4313 f_printstr.
4314 * go-lang.c (go_language_data): Delete la_printstr initializer.
4315 * language.c (language_defn::printstr): Define new member
4316 function.
4317 (unk_lang_printstr): Delete.
4318 (unknown_language_data): Delete la_printstr initializer.
4319 (unknown_language::printstr): New member function.
4320 (auto_language_data): Delete la_printstr initializer.
4321 (auto_language::printstr): New member function.
4322 * language.h (language_data): Delete la_printstr field.
4323 (language_defn::printstr): Declare new member function.
4324 (LA_PRINT_STRING): Update call to printstr.
4325 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4326 (m2_language_data): Delete la_printstr initializer.
4327 (m2_language::printstr): New member function, implementation from
4328 m2_printstr.
4329 * objc-lang.c (objc_language_data): Delete la_printstr
4330 initializer.
4331 * opencl-lang.c (opencl_language_data): Likewise.
4332 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4333 (pascal_language_data): Delete la_printstr initializer.
4334 (pascal_language::printstr): New member function, implementation
4335 from pascal_printstr.
4336 * p-lang.h (pascal_printstr): Delete declaration.
4337 * rust-lang.c (rust_printstr): Update header comment.
4338 (rust_language_data): Delete la_printstr initializer.
4339 (rust_language::printstr): New member function.
4340
52b50f2c
AB
43412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4342
4343 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4344 (ada_language::printchar): New member function.
4345 * c-lang.c (c_language_data): Delete la_printchar initializer.
4346 (cplus_language_data): Likewise.
4347 (asm_language_data): Likewise.
4348 (minimal_language_data): Likewise.
4349 * d-lang.c (d_language_data): Likewise.
4350 * f-lang.c (f_printchar): Rename to f_language::printchar.
4351 (f_language_data): Delete la_printchar initializer.
4352 (f_language::printchar): New member function, implementation from
4353 f_printchar.
4354 * go-lang.c (go_language_data): Delete la_printchar initializer.
4355 * language.c (unk_lang_printchar): Delete.
4356 (language_defn::printchar): Define new member function.
4357 (unknown_language_data): Delete la_printchar initializer.
4358 (unknown_language::printchar): New member function.
4359 (auto_language_data): Delete la_printchar initializer.
4360 (auto_language::printchar): New member function.
4361 * language.h (language_data): Delete la_printchar field.
4362 (language_defn::printchar): Declare new member function.
4363 (LA_PRINT_CHAR): Update call to printchar.
4364 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4365 (m2_language::printchar): New member function.
4366 * objc-lang.c (objc_language_data): Delete la_printchar
4367 initializer.
4368 * opencl-lang.c (opencl_language_data): Likewise.
4369 * p-lang.c (pascal_language_data): Delete la_printchar
4370 initializer.
4371 (pascal_language::printchar): New member function.
4372 * rust-lang.c (rust_printchar): Rename to
4373 rust_language::printchar.
4374 (rust_language_data): Delete la_printchar initializer.
4375 (rust_language::printchar): New member function, implementation
4376 from rust_printchar.
4377
ec8cec5b
AB
43782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4379
4380 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4381 (ada_language_data): Delete la_emitchar initializer.
4382 (ada_language::emitchar): New member function, implementation from
4383 emit_char.
4384 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4385 (cplus_language_data): Likewise.
4386 (asm_language_data): Likewise.
4387 (minimal_language_data): Likewise.
4388 * d-lang.c (d_language_data): Likewise.
4389 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4390 (f_language_data): Delete la_emitchar initializer.
4391 (f_language::emitchar): New member function, implementation from
4392 f_emit_char.
4393 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4394 * language.c (unk_lang_emit_char): Delete.
4395 (language_defn::emitchar): New member function definition.
4396 (unknown_language_data): Delete la_emitchar initializer.
4397 (unknown_language::emitchar): New member function.
4398 (auto_language_data): Delete la_emitchar initializer.
4399 (auto_language::emitchar): New member function.
4400 * language.h (language_data): Delete la_emitchar field.
4401 (language_defn::emitchar): New member field declaration.
4402 (LA_EMIT_CHAR): Update call to emitchar.
4403 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4404 (m2_language_data): Delete la_emitchar initializer.
4405 (m2_language::emitchar): New member function, implementation from
4406 m2_emit_char.
4407 * objc-lang.c (objc_language_data): Delete la_emitchar
4408 initializer.
4409 * opencl-lang.c (opencl_language_data): Likewise.
4410 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4411 (pascal_language_data): Delete la_emitchar initializer.
4412 (pascal_language::emitchar): New member function, implementation
4413 from pascal_emit_char.
4414 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4415 (rust_language_data): Delete la_emitchar initializer.
4416 (rust_language::emitchar): New member function, implementation
4417 from rust_emitchar.
4418
1bf9c363
AB
44192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4420
4421 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4422 (ada_language_data): Delete la_post_parser initializer.
4423 (ada_language::post_parser): New member function.
4424 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4425 (cplus_language_data): Likewise.
4426 (asm_language_data): Likewise.
4427 (minimal_language_data): Likewise.
4428 * d-lang.c (d_language_data): Likewise.
4429 * f-lang.c (f_language_data): Likewise.
4430 * go-lang.c (go_language_data): Likewise.
4431 * language.c (unknown_language_data): Likewise.
4432 (auto_language_data): Likewise.
4433 * language.h (language_data): Delete la_post_parser field.
4434 (language_defn::post_parser): New member function.
4435 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4436 * objc-lang.c (objc_language_data): Likewise.
4437 * opencl-lang.c (opencl_language_data): Likewise.
4438 * p-lang.c (pascal_language_data): Likewise.
4439 * parse.c (parse_exp_in_context): Update call to post_parser.
4440 (null_post_parser): Delete definition.
4441 * parser-defs.h (null_post_parser): Delete declaration.
4442 * rust-lang.c (rust_language_data): Delete la_post_parser
4443 initializer.
4444
87afa652
AB
44452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4446
4447 * ada-lang.c (parse): Rename to ada_language::parser.
4448 (ada_language_data): Delete la_parser initializer.
4449 (ada_language::parser): New member function, implementation from
4450 parse.
4451 * c-lang.c (c_language_data): Delete la_parser initializer.
4452 (cplus_language_data): Likewise.
4453 (asm_language_data): Likewise.
4454 (minimal_language_data): Likewise.
4455 * d-lang.c (d_language_data): Likewise.
4456 (d_language::parser): New member function.
4457 * f-lang.c (f_language_data): Delete la_parser initializer.
4458 (f_language::parser): New member function.
4459 * go-lang.c (go_language_data): Delete la_parser initializer.
4460 (go_language::parser): New member function.
4461 * language.c (unk_lang_parser): Delete.
4462 (language_defn::parser): Define new member function.
4463 (unknown_language_data): Delete la_parser initializer.
4464 (unknown_language::parser): New member function.
4465 (auto_language_data): Delete la_parser initializer.
4466 (auto_language::parser): New member function.
4467 * language.h (language_data): Delete la_parser field.
4468 (language_defn::parser): Declare new member function.
4469 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4470 (m2_language::parser): New member function.
4471 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4472 * opencl-lang.c (opencl_language_data): Likewise.
4473 * p-lang.c (pascal_language_data): Likewise.
4474 (pascal_language::parser): New member function.
4475 * parse.c (parse_exp_in_context): Update call to parser.
4476 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4477 (rust_language::parser): New member function.
4478
37825800
AB
44792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4480
4481 * top.c (print_gdb_configuration): Print --with-python-libdir
4482 configuration value.
4483
5b860c93
PW
44842020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4485
4486 * NEWS: Mention change to the alias command.
4487
cf00cd6f
PW
44882020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4489
4490 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4491 (alias_command_completer)
4492 (make_alias_options_def_group): New functions.
4493 (alias_opts, alias_option_defs): New struct and array.
4494 (alias_usage_error): Update usage.
4495 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4496 Use option framework.
4497 (_initialize_cli_cmds): Update alias command help.
4498 Update aliases command help.
4499 (show_user):
4500 Add NULL for new default_args lookup_cmd argument.
4501 (valid_command_p): Rename to validate_aliased_command.
4502 Add NULL for new default_args lookup_cmd argument. Verify that the
4503 aliased_command has no default args.
4504 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4505 (lookup_cmd_1, lookup_cmd): New argument default_args.
4506 (add_alias_cmd):
4507 Add NULL for new default_args lookup_cmd argument.
4508 (print_help_for_command): Show default args under the layout
4509 alias some_alias = some_aliased_cmd some_alias_default_arg.
4510 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4511 xfree default_args in destructor.
4512 * cli/cli-script.c (process_next_line, do_define_command):
4513 Add NULL for new default_args lookup_cmd argument.
4514 * command.h: Declare new default_args argument in lookup_cmd
4515 and lookup_cmd_1.
4516 * completer.c (complete_line_internal_1):
4517 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4518 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4519 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4520 Likewise.
4521 * infcmd.c (_initialize_infcmd): Likewise.
4522 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4523 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4524 * python/py-param.c (add_setshow_generic): Likewise.
4525 * remote.c (_initialize_remote): Likewise.
4526 * top.c (execute_command): Prepend default_args if command has some.
4527 (set_verbose):
4528 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4529 * tracepoint.c (validate_actionline, encode_actions_1):
4530 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4531
bd920864
TBA
45322020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4533
4534 * jit.c (jit_read_descriptor): Use bool as the return type.
4535 (jit_breakpoint_re_set_internal): Use bool as the return type.
4536 Invert the return value logic; return true if the jit breakpoint
4537 has been successfully initialized.
4538 (jit_inferior_init): Update the call to
4539 jit_breakpoint_re_set_internal.
4540
f8098322
PA
45412020-06-22 Pedro Alves <palves@redhat.com>
4542
4543 PR gdb/25939
4544 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4545 Use the current inferior instead. Don't return
4546 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4547 wait again.
4548 * sol-thread.c (sol_thread_target::wait): Don't reference
4549 inferior_ptid.
4550 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4551 (sol_update_thread_list_callback): Use the current inferior's pid
4552 instead of inferior_ptid.
4553
196535a6
RO
45542020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4555
4556 * procfs.c: Cleanup many comments.
4557
4558 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4559 (AFTER_WATCHFLAG): Replace by value.
4560
4561 (MAIN_PROC_NAME_FORMAT): Inline ...
4562 (create_procinfo): ... here.
4563
4564 (procfs_debug_inferior): Remove SYS_exec handling.
4565 (syscall_is_exec): Likewise.
4566 (procfs_set_exec_trap): Likewise.
4567
4568 (syscall_is_lwp_exit): Inline in callers.
4569 (syscall_is_exit): Likewise.
4570 (syscall_is_exec): Likewise.
4571 (syscall_is_lwp_create): Likewise.
4572
4573 (invalidate_cache): Remove #if 0 code.
4574
4575 (make_signal_thread_runnable): Remove.
4576 (procfs_target::resume): Remove #if 0 code.
4577
cf6f3e86
RO
45782020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4579
4580 PR gdb/25939
4581 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4582 call ...
4583 (procfs_target::create_inferior): ... here.
4584
48e9cc84
PW
45852020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4586
4587 * exec.c (validate_exec_file): Ensure the build-id is up to
4588 date by calling reopen_exec_file (that checks file timestamp
4589 to decide to re-read the file).
4590
3922b302
PA
45912020-06-18 Pedro Alves <palves@redhat.com>
4592
4593 PR gdb/25412
4594 * gdbthread.h (delete_thread, delete_thread_silent)
4595 (find_thread_ptid): Update comments.
4596 * thread.c (current_thread_): New global.
4597 (is_current_thread): Move higher, and reimplement.
4598 (inferior_thread): Reimplement.
4599 (set_thread_exited): Use bool. Add assertions.
4600 (add_thread_silent): Simplify thread-reuse handling by always
4601 calling delete_thread.
4602 (delete_thread): Remove intro comment.
4603 (find_thread_ptid): Skip exited threads.
4604 (switch_to_thread_no_regs): Write to current_thread_.
4605 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4606 INFERIOR_PTID. Clear current_thread_.
4607
6dbdab44
PA
46082020-06-18 Pedro Alves <palves@redhat.com>
4609
4610 * aix-thread.c (pd_update): Use switch_to_thread.
4611
2da4b788
PA
46122020-06-18 Pedro Alves <palves@redhat.com>
4613
4614 * ravenscar-thread.c (ravenscar_thread_target): Update.
4615 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4616 (ravenscar_thread_target::add_active_thread): ... this. Don't
4617 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4618 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4619
50838d1b
PA
46202020-06-18 Pedro Alves <palves@redhat.com>
4621
4622 * nat/windows-nat.c (current_windows_thread): Remove.
4623 * nat/windows-nat.h (current_windows_thread): Remove.
4624 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4625 Adjust.
4626 (display_selectors): Adjust to fetch the current
4627 windows_thread_info based on inferior_ptid.
4628 (fake_create_process): No longer write to current_windows_thread.
4629 (windows_nat_target::get_windows_debug_event):
4630 Don't set inferior_ptid or current_windows_thread.
4631 (windows_nat_target::wait): Adjust to not rely on
4632 current_windows_thread.
4633 (do_initial_windows_stuff): Now a method of windows_nat_target.
4634 Switch to the last_ptid thread.
4635 (windows_nat_target::attach): Adjust.
4636 (windows_nat_target::detach): Use switch_to_no_thread instead of
4637 writing to inferior_ptid directly.
4638 (windows_nat_target::create_inferior): Adjust.
4639
31ce04e9
PA
46402020-06-18 Pedro Alves <palves@redhat.com>
4641
4642 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4643
1ee1a363
PA
46442020-06-18 Pedro Alves <palves@redhat.com>
4645
4646 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4647 after creating it, instead of writing to inferior_ptid. Don't
4648 write to inferior_ptid.
4649
6d350754
PA
46502020-06-18 Pedro Alves <palves@redhat.com>
4651
4652 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4653
5d971d48
PA
46542020-06-18 Pedro Alves <palves@redhat.com>
4655
4656 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4657 it, instead of writing to inferior_ptid.
4658
86e57d1b
PA
46592020-06-18 Pedro Alves <palves@redhat.com>
4660
4661 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4662 to inferior_ptid.
4663
f2e1c129
PA
46642020-06-18 Pedro Alves <palves@redhat.com>
4665
4666 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4667 instead of writing to inferior_ptid directly.
4668
60db1b85
PA
46692020-06-18 Pedro Alves <palves@redhat.com>
4670
4671 * corelow.c (core_target::close): Use switch_to_no_thread instead
4672 of writing to inferior_ptid directly.
4673 (add_to_thread_list, core_target_open): Use switch_to_thread
4674 instead of writing to inferior_ptid directly.
4675
fe7d6a8d
PA
46762020-06-18 Pedro Alves <palves@redhat.com>
4677
4678 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4679 inferior_ptid.
4680 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4681 inferior_ptid.
4682 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4683 inferior_ptid directly.
4684 (darwin_nat_target::init_thread_list): Switch to thread, instead
4685 of writing to inferior_ptid.
4686 (darwin_nat_target::attach): Don't write to inferior_ptid.
4687 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4688
975f8708
PA
46892020-06-18 Pedro Alves <palves@redhat.com>
4690
4691 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4692 thread.
4693 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4694 Instead use switch_to_thread.
4695 (gnu_nat_target::detach): Use switch_to_no_thread
4696 instead of writing to inferior_ptid directly. Used passed-in
4697 inferior instead of looking up the inferior by pid.
4698
1a204730
PA
46992020-06-18 Pedro Alves <palves@redhat.com>
4700
4701 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4702 inferior_ptid.
4703
ebe84f23
PA
47042020-06-18 Pedro Alves <palves@redhat.com>
4705
4706 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4707 inferior_ptid.
4708 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4709 thread.
4710 (nto_procfs_target::detach): Avoid referencing
4711 inferior_ptid. Use switch_to_no_thread instead of writing to
4712 inferior_ptid directly.
4713 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4714 instead of writing to inferior_ptid directly.
4715 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4716 to thread.
4717
191f02e5
PA
47182020-06-18 Pedro Alves <palves@redhat.com>
4719
4720 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4721 after creating it, instead of writing to inferior_ptid.
4722 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4723 to inferior_ptid directly.
4724 (gdbsim_target::wait): Don't write to inferior_ptid.
4725
0ac55310
PA
47262020-06-18 Pedro Alves <palves@redhat.com>
4727
4728 * remote.c (remote_target::remote_notice_new_inferior): Use
4729 switch_to_thread instead of writing to inferior_ptid directly.
4730 (remote_target::add_current_inferior_and_thread): Use
4731 switch_to_no_thread instead of writing to inferior_ptid directly.
4732 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4733 and switch_to_thread instead of using set_current_inferior or
4734 writing to inferior_ptid directly.
4735
5233f39b
PA
47362020-06-18 Pedro Alves <palves@redhat.com>
4737
4738 * tracectf.c (ctf_target_open): Switch to added thread instead of
4739 writing to inferior_ptid directly.
4740 (ctf_target::close): Use switch_to_no_thread instead of writing to
4741 inferior_ptid directly.
4742
087e161b
PA
47432020-06-18 Pedro Alves <palves@redhat.com>
4744
4745 * tracefile-tfile.c (tfile_target_open): Don't write to
4746 inferior_ptid directly, instead switch to added thread.
4747 (tfile_target::close): Use switch_to_no_thread instead of writing
4748 to inferior_ptid directly.
4749
7fb43e53
PA
47502020-06-18 Pedro Alves <palves@redhat.com>
4751
4752 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4753 (procfs_target::detach): Use switch_to_no_thread
4754 instead of writing to inferior_ptid directly.
4755 (do_attach): Change return type to void. Switch to the added
4756 thread.
4757 (procfs_target::create_inferior): Switch to the added thread.
4758 (procfs_do_thread_registers): Don't write to inferior_ptid.
4759
18493a00
PA
47602020-06-18 Pedro Alves <palves@redhat.com>
4761
4762 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4763 of writing to inferior_ptid.
4764 (scoped_restore_exited_inferior): Delete.
4765 (handle_vfork_child_exec_or_exit): Simplify using
4766 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4767 instead of writing to inferior_ptid.
4768 (THREAD_STOPPED_BY): Delete.
4769 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4770 (thread_stopped_by_hw_breakpoint): Delete.
4771 (save_waitstatus): Use
4772 scoped_restore_current_thread+switch_to_thread, and call
4773 target_stopped_by_watchpoint instead of
4774 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4775 instead of thread_stopped_by_sw_breakpoint, and
4776 target_stopped_by_hw_breakpoint instead of
4777 thread_stopped_by_hw_breakpoint.
4778 (handle_inferior_event)
4779 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4780 inferior_ptid directly, nor
4781 set_current_inferior/set_current_program_space. Use
4782 switch_to_thread / switch_to_inferior_no_thread instead.
4783
a0776b13
PA
47842020-06-18 Pedro Alves <palves@redhat.com>
4785
4786 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4787 instead of writing to inferior_ptid.
4788
6155c136
PA
47892020-06-18 Pedro Alves <palves@redhat.com>
4790
4791 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4792 added thread.
4793 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4794 to the added thread.
4795 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4796 instead of writing to inferior_ptid.
4797
c5316fc6
PA
47982020-06-18 Pedro Alves <palves@redhat.com>
4799
4800 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4801 (register_to_value_test): Mock a program_space too. Heap-allocate
4802 the address space. Don't write to inferior_ptid. Use
4803 switch_to_thread instead.
4804
8df01799
PA
48052020-06-18 Pedro Alves <palves@redhat.com>
4806
4807 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4808 Delete.
4809 (find_signalled_thread()): New, factored out from
4810 linux_make_corefile_notes and adjusted to handle exited threads.
4811 (linux_make_corefile_notes): Adjust to use the new
4812 find_signalled_thread.
4813
41792d68
PA
48142020-06-18 Pedro Alves <palves@redhat.com>
4815
4816 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4817 of saving/restoring inferior_ptid.
4818
612f258a
TT
48192020-06-17 Tom Tromey <tom@tromey.com>
4820
4821 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4822 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4823 declare.
4824 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4825
efb763a5
SM
48262020-06-15 Simon Marchi <simon.marchi@efficios.com>
4827
4828 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4829 of partial symtabs.
4830
2951f6c0
SM
48312020-06-17 Simon Marchi <simon.marchi@efficios.com>
4832
4833 * regformats/reg-arm.dat: Remove.
4834 * regformats/reg-bfin.dat: Remove.
4835 * regformats/reg-cris.dat: Remove.
4836 * regformats/reg-crisv32.dat: Remove.
4837 * regformats/reg-m32r.dat: Remove.
4838 * regformats/reg-tilegx.dat: Remove.
4839 * regformats/reg-tilegx32.dat: Remove.
4840
7d458ea5
SM
48412020-06-17 Simon Marchi <simon.marchi@efficios.com>
4842
4843 * features/Makefile (WHICH): Remove arm files.
4844 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4845 * regformats/arm/arm-with-neon.dat: Remove.
4846 * regformats/arm/arm-with-vfpv2.dat: Remove.
4847 * regformats/arm/arm-with-vfpv3.dat: Remove.
4848
3af96c0d
SM
48492020-06-17 Simon Marchi <simon.marchi@efficios.com>
4850
4851 * features/Makefile (XMLTOC): Remove rx.xml.
4852
b25e22fd
PA
48532020-06-17 Pedro Alves <palves@redhat.com>
4854
4855 * gdbthread.h (thread_control_state) <trap_expected> Update
4856 comments.
4857
a78a19b1
AB
48582020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4859
4860 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4861 ada_language::lookup_symbol_nonlocal.
4862 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4863 (ada_language::lookup_symbol_nonlocal): New member function,
4864 implementation from ada_lookup_symbol_nonlocal.
4865 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4866 initializer.
4867 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4868 initializer.
4869 (cplus_language::lookup_symbol_nonlocal): New member function.
4870 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4871 (minimal_language_data) Likewise.
4872 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4873 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4874 initializer.
4875 (d_language::lookup_symbol_nonlocal): New member function.
4876 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4877 initializer.
4878 (f_language::lookup_symbol_nonlocal): New member function.
4879 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4880 initializer.
4881 * language.c (unknown_language_data): Likewise.
4882 (auto_language_data): Likewise.
4883 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4884 field.
4885 (language_defn::lookup_symbol_nonlocal): New member function.
4886 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4887 initializer.
4888 * objc-lang.c (objc_language_data): Likewise.
4889 * opencl-lang.c (opencl_language_data): Likewise.
4890 * p-lang.c (pascal_language_data): Likewise.
4891 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4892 rust_language::lookup_symbol_nonlocal.
4893 (rust_language_data): Delete la_lookup_symbol_nonlocal
4894 initializer.
4895 (rust_language::lookup_symbol_nonlocal): New member function,
4896 implementation from rust_lookup_symbol_nonlocal.
4897 * symtab.c (lookup_symbol_aux): Update call to
4898 lookup_symbol_nonlocal.
4899 (basic_lookup_symbol_nonlocal): Rename to...
4900 (language_defn::lookup_symbol_nonlocal): ...this, and update
4901 header comment. Remove language_defn parameter, and replace with
4902 uses of `this'.
4903 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4904
ebe2334e
AB
49052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4906
4907 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4908 initializer.
4909 (ada_language::value_print_inner): New member function.
4910 * c-lang.c (c_language_data): Delete la_value_print_inner
4911 initializer.
4912 (cplus_language_data): Likewise.
4913 (asm_language_data): Likewise.
4914 (minimal_language_data): Likewise.
4915 * d-lang.c (d_language_data): Likewise.
4916 (d_language::value_print_inner): New member function.
4917 * f-lang.c (f_language_data): Delete la_value_print_inner
4918 initializer.
4919 (f_language::value_print_inner): New member function.
4920 * f-lang.h (f_value_print_innner): Rename to...
4921 (f_value_print_inner): ...this (note spelling of 'inner').
4922 * f-valprint.c (f_value_print_innner): Rename to...
4923 (f_value_print_inner): ...this (note spelling of 'inner').
4924 * go-lang.c (go_language_data): Delete la_value_print_inner
4925 initializer.
4926 (go_language::value_print_inner): New member function.
4927 * language.c (language_defn::value_print_inner): Define new member
4928 function.
4929 (unk_lang_value_print_inner): Delete.
4930 (unknown_language_data): Delete la_value_print_inner initializer.
4931 (unknown_language::value_print_inner): New member function.
4932 (auto_language_data): Delete la_value_print_inner initializer.
4933 (auto_language::value_print_inner): New member function.
4934 * language.h (language_data): Delete la_value_print_inner field.
4935 (language_defn::value_print_inner): Delcare new member function.
4936 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4937 initializer.
4938 (m2_language::value_print_inner): New member function.
4939 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4940 initializer.
4941 * opencl-lang.c (opencl_language_data): Likewise.
4942 * p-lang.c (pascal_language_data): Likewise.
4943 (pascal_language::value_print_inner): New member function.
4944 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4945 initializer.
4946 (rust_language::value_print_inner): New member function.
4947 * valprint.c (do_val_print): Update call to value_print_inner.
4948
a1d1fa3e
AB
49492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4950
4951 * ada-lang.c (ada_language_data): Delete la_value_print
4952 initializer.
4953 (ada_language::value_print): New member function.
4954 * c-lang.c (c_language_data): Delete la_value_print initializer.
4955 (cplus_language_data): Likewise.
4956 (asm_language_data): Likewise.
4957 (minimal_language_data): Likewise.
4958 * d-lang.c (d_language_data): Likewise.
4959 * f-lang.c (f_language_data): Likewise.
4960 * go-lang.c (go_language_data): Likewise.
4961 * language.c (unk_lang_value_print): Delete.
4962 (language_defn::value_print): Define new member function.
4963 (unknown_language_data): Delete la_value_print initializer.
4964 (unknown_language::value_print): New member function.
4965 (auto_language_data): Delete la_value_print initializer.
4966 (auto_language::value_print): New member function.
4967 * language.h (language_data): Delete la_value_print field.
4968 (language_defn::value_print): Declare new member function.
4969 (LA_VALUE_PRINT): Update call to value_print.
4970 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4971 * objc-lang.c (objc_language_data): Likewise.
4972 * opencl-lang.c (opencl_language_data): Likewise.
4973 * p-lang.c (pascal_language_data): Likewise.
4974 (pascal_language::value_print): New member function.
4975 * rust-lang.c (rust_language_data): Delete la_value_print
4976 initializer.
4977
f16a9f57
AB
49782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4979
4980 * ada-lang.c (ada_watch_location_expression): Rename to
4981 ada_language::watch_location_expression.
4982 (ada_language_data): Delete la_watch_location_expression
4983 initializer.
4984 (ada_language::watch_location_expression): New member function,
4985 implementation from ada_watch_location_expression.
4986 * breakpoint.c (watch_command_1): Update call to
4987 watch_location_expression.
4988 * c-lang.c (c_watch_location_expression): Rename to
4989 language_defn::watch_location_expression.
4990 (c_language_data): Delete la_watch_location_expression
4991 initializer.
4992 (cplus_language_data): Likewise.
4993 (asm_language_data): Likewise.
4994 (minimal_language_data): Likewise.
4995 * c-lang.h (c_watch_location_expression): Delete declaration.
4996 * d-lang.c (d_language_data): Delete la_watch_location_expression
4997 initializer.
4998 * f-lang.c (f_language_data): Likewise.
4999 * go-lang.c (go_language_data): Likewise.
5000 * language.c (language_defn::watch_location_expression): Member
5001 function implementation from c_watch_location_expression.
5002 (unknown_language_data): Delete la_watch_location_expression
5003 initializer.
5004 (auto_language_data): Likewise.
5005 * language.h (language_data): Delete la_watch_location_expression
5006 field.
5007 (language_defn::watch_location_expression): Declare new member
5008 function.
5009 * m2-lang.c (m2_language_data): Delete
5010 la_watch_location_expression initializer.
5011 * objc-lang.c (objc_language_data): Likewise.
5012 * opencl-lang.c (opencl_language_data): Likewise.
5013 * p-lang.c (pascal_language_data): Likewise.
5014 * rust-lang.c (rust_watch_location_expression): Rename to
5015 rust_language::watch_location_expression.
5016 (rust_language_data): Delete la_watch_location_expression
5017 initializer.
5018 (rust_language::watch_location_expression): New member function,
5019 implementation from rust_watch_location_expression.
5020
7e56227d
AB
50212020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5022
5023 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5024 ada_language::collect_symbol_completion_matches.
5025 (ada_language_data): Delete la_collect_symbol_completion_matches
5026 initializer.
5027 (ada_language::collect_symbol_completion_matches): New member
5028 function, implementation from
5029 ada_collect_symbol_completion_matches.
5030 * c-lang.c (c_language_data): Delete
5031 la_collect_symbol_completion_matches initializer.
5032 (cplus_language_data): Likewise.
5033 (asm_language_data): Likewise.
5034 (minimal_language_data): Likewise.
5035 * d-lang.c (d_language_data): Likewise.
5036 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5037 f_language::collect_symbol_completion_matches.
5038 (f_language_data): Delete la_collect_symbol_completion_matches
5039 initializer.
5040 (f_language::collect_symbol_completion_matches) New member
5041 function, implementation from f_collect_symbol_completion_matches.
5042 * go-lang.c (go_language_data): Delete
5043 la_collect_symbol_completion_matches initializer.
5044 * language.c (unknown_language_data): Likewise.
5045 (auto_language_data): Likewise.
5046 * language.h (language_data): Delete
5047 la_collect_symbol_completion_matches field.
5048 (language_defn::collect_symbol_completion_matches): New member
5049 function.
5050 * m2-lang.c (m2_language_data): Delete
5051 la_collect_symbol_completion_matches initializer.
5052 * objc-lang.c (objc_language_data): Likewise.
5053 * opencl-lang.c (opencl_language_data): Likewise.
5054 * p-lang.c (pascal_language_data): Likewise.
5055 * rust-lang.c (rust_language_data): Likewise.
5056 * symtab.c (default_collect_symbol_completion_matches): Delete.
5057 (collect_symbol_completion_matches): Update call to
5058 collect_symbol_completion_matches.
5059 (collect_symbol_completion_matches_type): Likewise.
5060 * symtab.h (default_collect_symbol_completion_matches): Delete
5061 declaration.
5062
53fc67f8
AB
50632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5064
5065 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5066 (ada_language_data): Delete la_word_break_characters initializer.
5067 (ada_language::word_break_characters): New member function.
5068 * c-lang.c (c_language_data): Delete la_word_break_characters
5069 initializer.
5070 (cplus_language_data): Likewise.
5071 (asm_language_data): Likewise.
5072 (minimal_language_data): Likewise.
5073 * completer.c: Update global comment.
5074 (advance_to_expression_complete_word_point): Update call to
5075 word_break_characters.
5076 (complete_files_symbols): Likewise.
5077 (complete_line_internal_1): Likewise.
5078 (default_completer_handle_brkchars): Likewise.
5079 (skip_quoted_chars): Likewise.
5080 * d-lang.c (d_language_data): Delete la_word_break_characters
5081 initializer.
5082 * f-lang.c (f_word_break_characters): Delete.
5083 (f_language_data): Delete la_word_break_characters initializer.
5084 (f_language::word_break_characters): New member function.
5085 * go-lang.c (go_language_data): Delete la_word_break_characters
5086 initializer.
5087 * language.c (unknown_language_data): Likewise.
5088 (auto_language_data): Likewise.
5089 * language.h (default_word_break_characters): Move declaration to
5090 earlier in the file.
5091 (language_data): Delete la_word_break_characters field.
5092 (language_defn::word_break_characters): New member function.
5093 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5094 initializer.
5095 * objc-lang.c (objc_language_data): Likewise.
5096 * opencl-lang.c (opencl_language_data): Likewise.
5097 * p-lang.c (pascal_language_data): Likewise.
5098 * rust-lang.c (rust_language_data): Likewise.
5099
c9debfb9
AB
51002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5101
5102 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5103 (ada_language_data): Delete la_get_symbol_name_matcher
5104 initializer.
5105 (language_defn::get_symbol_name_matcher_inner): New member
5106 function.
5107 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5108 initializer.
5109 (cplus_language_data): Likewise.
5110 (cplus_language::get_symbol_name_matcher_inner): New member
5111 function.
5112 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5113 (minimal_language_data): Likewise.
5114 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5115 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5116 initializer.
5117 * dictionary.c (iter_match_first_hashed): Update call to
5118 get_symbol_name_matcher.
5119 (iter_match_next_hashed): Likewise.
5120 (iter_match_next_linear): Likewise.
5121 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5122 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5123 initializer.
5124 (f_language::get_symbol_name_matcher_inner): New member function.
5125 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5126 initializer.
5127 * language.c (default_symbol_name_matcher): Update header comment,
5128 make static.
5129 (language_defn::get_symbol_name_matcher): New definition.
5130 (language_defn::get_symbol_name_matcher_inner): Likewise.
5131 (get_symbol_name_matcher): Delete.
5132 (unknown_language_data): Delete la_get_symbol_name_matcher
5133 initializer.
5134 (auto_language_data): Likewise.
5135 * language.h (language_data): Delete la_get_symbol_name_matcher
5136 field.
5137 (language_defn::get_symbol_name_matcher): New member function.
5138 (language_defn::get_symbol_name_matcher_inner): Likewise.
5139 (default_symbol_name_matcher): Delete declaration.
5140 * linespec.c (find_methods): Update call to
5141 get_symbol_name_matcher.
5142 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5143 initializer.
5144 * minsyms.c (lookup_minimal_symbol): Update call to
5145 get_symbol_name_matcher.
5146 (iterate_over_minimal_symbols): Likewise.
5147 * objc-lang.c (objc_language_data): Delete
5148 la_get_symbol_name_matcher initializer.
5149 * opencl-lang.c (opencl_language_data): Likewise.
5150 * p-lang.c (pascal_language_data): Likewise.
5151 * psymtab.c (psymbol_name_matches): Update call to
5152 get_symbol_name_matcher.
5153 * rust-lang.c (rust_language_data): Delete
5154 la_get_symbol_name_matcher initializer.
5155 * symtab.c (symbol_matches_search_name): Update call to
5156 get_symbol_name_matcher.
5157 (compare_symbol_name): Likewise.
5158
9a49ad8c
AB
51592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5160
5161 * ada-lang.c (ada_language_data): Delete la_compute_program
5162 initializer.
5163 * c-lang.c (c_language_data): Likewise.
5164 (c_language::compute_program): New member function.
5165 (cplus_language_data): Delete la_compute_program initializer.
5166 (cplus_language::compute_program): New member function.
5167 (asm_language_data): Delete la_compute_program initializer.
5168 (minimal_language_data): Likewise.
5169 * c-lang.h (c_compute_program): Update comment.
5170 (cplus_compute_program): Likewise.
5171 * compile/compile-c-support.c (c_compute_program): Likewise.
5172 (cplus_compute_program): Likewise.
5173 * compile/compile.c (compile_to_object): Update call to
5174 la_compute_program.
5175 * d-lang.c (d_language_data): Delete la_compute_program
5176 initializer.
5177 * f-lang.c (f_language_data): Likewise.
5178 * go-lang.c (go_language_data): Likewise.
5179 * language.c (unknown_language_data): Likewise.
5180 (auto_language_data): Likewise.
5181 * language.h (language_data): Delete la_compute_program field.
5182 (language_defn::compute_program): New member function.
5183 * m2-lang.c (m2_language_data): Delete la_compute_program
5184 initializer.
5185 * objc-lang.c (objc_language_data): Likewise.
5186 * opencl-lang.c (opencl_language_data): Likewise.
5187 * p-lang.c (pascal_language_data): Likewise.
5188 * rust-lang.c (rust_language_data): Likewise.
5189
eff93b4d
AB
51902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5191
5192 * ada-lang.c (ada_language_data) Delete
5193 la_class_name_from_physname initializer.
5194 * c-lang.c (c_language_data): Likewise.
5195 (cplus_language_data): Likewise.
5196 (cplus_language::class_name_from_physname): New member function.
5197 (asm_language_data): Delete la_class_name_from_physname
5198 initializer.
5199 (minimal_language_data): Likewise.
5200 * d-lang.c (d_language_data): Likewise.
5201 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5202 method on language_defn class.
5203 (guess_full_die_structure_name): Likewise.
5204 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5205 initializer.
5206 * go-lang.c (go_language_data): Likewise.
5207 * language.c (language_class_name_from_physname): Delete.
5208 (unk_lang_class_name): Delete.
5209 (unknown_language_data): Delete la_class_name_from_physname
5210 initializer.
5211 (auto_language_data): Likewise.
5212 * language.h (language_data): Delete la_class_name_from_physname
5213 field.
5214 (language_defn::class_name_from_physname): New function.
5215 (language_class_name_from_physname): Delete declaration.
5216 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5217 initializer.
5218 * objc-lang.c (objc_language_data): Likewise.
5219 * opencl-lang.c (opencl_language_data): Likewise.
5220 * p-lang.c (pascal_language_data): Likewise.
5221 * rust-lang.c (rust_language_data): Likewise.
5222
de543742
TT
52232020-06-16 Tom Tromey <tom@tromey.com>
5224
5225 * tui/tui-data.h (STATUS_NAME): New macro.
5226 * tui/tui-layout.c (tui_remove_some_windows)
5227 (initialize_known_windows, tui_register_window)
5228 (tui_layout_split::remove_windows, initialize_layouts)
5229 (tui_new_layout_command): Don't use hard-coded window names.
5230
a350efd4
TT
52312020-06-16 Tom Tromey <tom@tromey.com>
5232
5233 PR tui/25348:
5234 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5235 tui_initialize_readline. Only run once. Call rl_initialize.
5236 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5237 tui_initialize_readline.
5238 * tui/tui-io.c (tui_setup_io): Call
5239 tui_ensure_readline_initialized.
5240 * tui/tui-interp.c (tui_interp::init): Update.
5241
39ec0490
TT
52422020-06-16 Tom Tromey <tom@tromey.com>
5243
5244 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5245 Also preserve the status window.
5246
d2d1ea20
TT
52472020-06-16 Tom Tromey <tom@tromey.com>
5248
5249 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5250 where m_window==nullptr.
5251
66920317
TT
52522020-06-15 Tom Tromey <tromey@adacore.com>
5253
5254 * windows-nat.c (windows_nat::handle_output_debug_string):
5255 Update.
5256 (windows_nat::handle_ms_vc_exception): Update.
5257 * target.h (target_read_string): Change API.
5258 * target.c (target_read_string): Change API.
5259 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5260 Update.
5261 * solib-frv.c (frv_current_sos): Update.
5262 * solib-dsbt.c (dsbt_current_sos): Update.
5263 * solib-darwin.c (darwin_current_sos): Update.
5264 * linux-thread-db.c (inferior_has_bug): Update.
5265 * expprint.c (print_subexp_standard): Update.
5266 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5267 (ada_exception_message_1): Update.
5268
a5d871dd
TT
52692020-06-15 Tom Tromey <tromey@adacore.com>
5270
5271 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5272
670e35fa
TT
52732020-06-15 Tom Tromey <tromey@adacore.com>
5274
5275 * valprint.c (read_string): Update comment.
5276 * target.c (MIN): Remove.
5277 (target_read_string): Rewrite.
5278
f5272a3b
TT
52792020-06-15 Tom Tromey <tromey@adacore.com>
5280
5281 * corefile.c (read_memory_string): Remove.
5282 * ada-valprint.c (ada_value_print_ptr): Update.
5283 * ada-lang.h (ada_tag_name): Change return type.
5284 * ada-lang.c (type_from_tag): Update.
5285 (ada_tag_name_from_tsd): Change return type. Use
5286 target_read_string.
5287 (ada_tag_name): Likewise.
5288 * gdbcore.h (read_memory_string): Don't declare.
5289
2c074f49
HD
52902020-06-14 Hannes Domani <ssbssa@yahoo.de>
5291
5292 * symtab.c (rbreak_command): Ignore Windows drive colon.
5293
6a17d503
SM
52942020-06-12 Simon Marchi <simon.marchi@efficios.com>
5295
5296 * NEWS: Mention removed GDBserver host support.
5297
453c733f
NC
52982020-06-12 Nelson Chu <nelson.chu@sifive.com>
5299
5300 * features/riscv/rebuild-csr-xml.sh: Updated.
5301
2b4e6a3f
TT
53022020-06-11 Tom Tromey <tom@tromey.com>
5303
5304 PR gdb/18318:
5305 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5306
4412332f
JG
53072020-06-09 Jonny Grant <jg@jguk.org>
53082020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5309
5310 * main.c (captured_main_1): Don't print new line after help.
5311 (print_gdb_help): add mailing list and IRC channel information
5312 to --help. Add new lines between items in the footer. Remove
5313 quotes around bug url.
5314
2f33032a
KS
53152020-06-11 Keith Seitz <keiths@redhat.com>
5316
5317 PR gdb/21356
5318 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5319 Resolve typedefs for type length calculations.
5320
7ab96794
TV
53212020-06-10 Tom de Vries <tdevries@suse.de>
5322
5323 PR ada/24713
5324 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5325 (write_psymbols): Enable .gdb_index for ada.
5326 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5327 ada.
5328
e5f3ece2
TV
53292020-06-10 Tom de Vries <tdevries@suse.de>
5330
5331 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5332 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5333 namei" instead of "const char *name" argument.
5334 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5335 dw2_symtab_iter_init.
5336
940da03e
SM
53372020-06-08 Simon Marchi <simon.marchi@efficios.com>
5338
5339 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5340 to use type::field and field::type instead.
5341
b6cdac4b
SM
53422020-06-08 Simon Marchi <simon.marchi@efficios.com>
5343
5344 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5345 to use field::type instead.
5346
5d14b6e5
SM
53472020-06-08 Simon Marchi <simon.marchi@efficios.com>
5348
5349 * gdbtypes.h (struct field) <type, set_type>: New methods.
5350 Rename `type` field to...
5351 <m_type>: ... this. Change references throughout to use type or
5352 set_type methods.
5353 (FIELD_TYPE): Use field::type. Change call sites that modify
5354 the field's type to use field::set_type instead.
5355
3d967001
SM
53562020-06-08 Simon Marchi <simon.marchi@efficios.com>
5357
5358 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5359 to use type::index_type instead.
5360
262abc0d
SM
53612020-06-08 Simon Marchi <simon.marchi@efficios.com>
5362
5363 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5364 methods.
5365 (TYPE_INDEX_TYPE): Use type::index_type.
5366 * gdbtypes.c (create_array_type_with_stride): Likewise.
5367
82836c92
TT
53682020-06-07 Tom Tromey <tom@tromey.com>
5369
5370 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5371 parameter.
5372 (generic_value_print): Update.
5373
940dace9
AB
53742020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5375
5376 Revert commit 982a38f60b0.
5377 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5378
982a38f6
AB
53792020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5380
5381 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5382 avoid use after free.
5383
82f06518
TV
53842020-06-05 Tom de Vries <tdevries@suse.de>
5385
5386 * NEWS: Fix typos.
5387
f8c41851
SM
53882020-06-04 Simon Marchi <simon.marchi@efficios.com>
5389
5390 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5391 the per_bfd object.
5392 (dwarf2_read_debug_names): Likewise.
5393 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5394 object when re-using a per_bfd object with an index.
5395
f9b5d5ea
TV
53962020-06-03 Tom de Vries <tdevries@suse.de>
5397
5398 PR symtab/26046
5399 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5400 children for C++.
5401 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5402 DW_TAG_subprogram.
5403
f6eee2d0
AB
54042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5405
5406 * ada-lang.c (ada_language_data): Delete skip_trampoline
5407 initializer.
5408 * c-lang.c (c_language_data): Likewise.
5409 (cplus_language_data): Likewise.
5410 (cplus_language::skip_trampoline): New member function.
5411 (asm_language_data): Delete skip_trampoline initializer.
5412 (minimal_language_data): Likewise.
5413 * d-lang.c (d_language_data): Likewise.
5414 * f-lang.c (f_language_data): Likewise.
5415 * go-lang.c (go_language_data): Likewise.
5416 * language.c (unk_lang_trampoline): Delete function.
5417 (skip_language_trampoline): Update.
5418 (unknown_language_data): Delete skip_trampoline initializer.
5419 (auto_language_data): Likewise.
5420 * language.h (language_data): Delete skip_trampoline field.
5421 (language_defn::skip_trampoline): New function.
5422 * m2-lang.c (m2_language_data): Delete skip_trampoline
5423 initializer.
5424 * objc-lang.c (objc_skip_trampoline): Delete function, move
5425 implementation to objc_language::skip_trampoline.
5426 (objc_language_data): Delete skip_trampoline initializer.
5427 (objc_language::skip_trampoline): New member function with
5428 implementation from objc_skip_trampoline.
5429 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5430 initializer.
5431 * p-lang.c (pascal_language_data): Likewise.
5432 * rust-lang.c (rust_language_data): Likewise.
5433
0a50df5d
AB
54342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5435
5436 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5437 (ada_language::demangle): New member function.
5438 * c-lang.c (c_language_data): Delete la_demangle initializer.
5439 (cplus_language_data): Delete la_demangle initializer.
5440 (cplus_language::demangle): New member function.
5441 (asm_language_data): Delete la_demangle initializer.
5442 (minimal_language_data): Delete la_demangle initializer.
5443 * d-lang.c (d_language_data): Delete la_demangle initializer.
5444 (d_language::demangle): New member function.
5445 * f-lang.c (f_language_data): Delete la_demangle initializer.
5446 (f_language::demangle): New member function.
5447 * go-lang.c (go_language_data): Delete la_demangle initializer.
5448 (go_language::demangle): New member function.
5449 * language.c (language_demangle): Update.
5450 (unk_lang_demangle): Delete.
5451 (unknown_language_data): Delete la_demangle initializer.
5452 (unknown_language::demangle): New member function.
5453 (auto_language_data): Delete la_demangle initializer.
5454 (auto_language::demangle): New member function.
5455 * language.h (language_data): Delete la_demangle field.
5456 (language_defn::demangle): New function.
5457 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5458 * objc-lang.c (objc_language_data): Delete la_demangle
5459 initializer.
5460 (objc_language::demangle): New member function.
5461 * opencl-lang.c (opencl_language_data): Delete la_demangle
5462 initializer.
5463 * p-lang.c (pascal_language_data): Likewise.
5464 * rust-lang.c (rust_language_data): Likewise.
5465 (rust_language::demangle): New member function.
5466
fbfb0a46
AB
54672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5468
5469 * ada-lang.c (ada_language_data): Delete la_print_type
5470 initializer.
5471 (ada_language::print_type): New member function.
5472 * c-lang.c (c_language_data): Delete la_print_type initializer.
5473 (c_language::print_type): New member function.
5474 (cplus_language_data): Delete la_print_type initializer.
5475 (cplus_language::print_type): New member function.
5476 (asm_language_data): Delete la_print_type initializer.
5477 (asm_language::print_type): New member function.
5478 (minimal_language_data): Delete la_print_type initializer.
5479 (minimal_language::print_type): New member function.
5480 * d-lang.c (d_language_data): Delete la_print_type initializer.
5481 (d_language::print_type): New member function.
5482 * f-lang.c (f_language_data): Delete la_print_type initializer.
5483 (f_language::print_type): New member function.
5484 * go-lang.c (go_language_data): Delete la_print_type initializer.
5485 (go_language::print_type): New member function.
5486 * language.c (unk_lang_print_type): Delete.
5487 (unknown_language_data): Delete la_print_type initializer.
5488 (unknown_language::print_type): New member function.
5489 (auto_language_data): Delete la_print_type initializer.
5490 (auto_language::print_type): New member function.
5491 * language.h (language_data): Delete la_print_type field.
5492 (language_defn::print_type): New function.
5493 (LA_PRINT_TYPE): Update.
5494 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5495 (m2_language::print_type): New member function.
5496 * objc-lang.c (objc_language_data): Delete la_print_type
5497 initializer.
5498 (objc_language::print_type): New member function.
5499 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5500 to opencl_language::print_type.
5501 (opencl_language_data): Delete la_print_type initializer.
5502 (opencl_language::print_type): New member function, implementation
5503 from opencl_print_type.
5504 * p-lang.c (pascal_language_data): Delete la_print_type
5505 initializer.
5506 (pascal_language::print_type): New member function.
5507 * rust-lang.c (rust_print_type): Delete, implementation moved to
5508 rust_language::print_type.
5509 (rust_language_data): Delete la_print_type initializer.
5510 (rust_language::print_type): New member function, implementation
5511 from rust_print_type.
5512
6f827019
AB
55132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5514
5515 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5516 implementation moves to...
5517 (ada_language::sniff_from_mangled_name): ...here. Update return
5518 type.
5519 (ada_language_data): Delete la_sniff_from_mangled_name
5520 initializer.
5521 * c-lang.c (c_language_data): Likewise.
5522 (cplus_language_data): Likewise.
5523 (cplus_language::sniff_from_mangled_name): New member function,
5524 implementation taken from gdb_sniff_from_mangled_name.
5525 (asm_language_data): Delete la_sniff_from_mangled_name
5526 initializer.
5527 (minimal_language_data): Likewise.
5528 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5529 implementation moves to cplus_language::sniff_from_mangled_name.
5530 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5531 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5532 moves to...
5533 (d_language::sniff_from_mangled_name): ...here.
5534 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5535 * f-lang.c (f_language_data): Likewise.
5536 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5537 moves to...
5538 (go_language::sniff_from_mangled_name): ...here.
5539 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5540 * language.c (language_sniff_from_mangled_name): Delete.
5541 (unknown_language_data): Delete la_sniff_from_mangled_name
5542 initializer.
5543 (auto_language_data): Likewise.
5544 * language.h (language_data): Delete la_sniff_from_mangled_name
5545 field.
5546 (language_defn::sniff_from_mangled_name): New function.
5547 (language_sniff_from_mangled_name): Delete declaration.
5548 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5549 field.
5550 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5551 implementation moves to...
5552 (objc_language::sniff_from_mangled_name): ...here.
5553 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5554 * opencl-lang.c (opencl_language_data): Likewise.
5555 * p-lang.c (pascal_language_data): Likewise.
5556 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5557 implementation moves to...
5558 (rust_language::sniff_from_mangled_name): ...here.
5559 (rust_language_data): Delete la_sniff_from_mangled_name
5560 initializer.
5561 * symtab.c (symbol_find_demangled_name): Call
5562 sniff_from_mangled_name member function.
5563
fb8006fd
AB
55642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5565
5566 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5567 initializer.
5568 * c-lang.c (c_language_data): Likewise.
5569 (cplus_language_data): Likewise.
5570 (cplus_language::search_name_hash): New member function.
5571 (asm_language_data): Delete la_search_name_hash initializer.
5572 (minimal_language_data): Likewise.
5573 * d-lang.c (d_language_data): Likewise.
5574 * dictionary.c (default_search_name_hash): Rename to...
5575 (language_defn::search_name_hash): ...this.
5576 * f-lang.c (f_language_data): Likewise.
5577 (f_language::search_name_hash): New member function.
5578 * go-lang.c (go_language_data): Delete la_search_name_hash
5579 initializer.
5580 * language.c (unknown_language_data): Likewise.
5581 (auto_language_data): Likewise.
5582 * language.h (struct language_data): Delete la_search_name_hash
5583 field.
5584 (language_defn::search_name_hash): Declare new member function.
5585 (default_search_name_hash): Delete declaration.
5586 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5587 initializer.
5588 * objc-lang.c (objc_language_data): Likewise.
5589 * opencl-lang.c (opencl_language_data): Likewise.
5590 * p-lang.c (pascal_language_data): Likewise.
5591 * rust-lang.c (rust_language_data): Likewise.
5592 * symtab.c (search_name_hash): Update call.
5593
8e25bafe
AB
55942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5595
5596 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5597 initializer.
5598 * c-lang.c (class compile_instance): Declare.
5599 (c_language_data): Delete la_get_compile_instance initializer.
5600 (c_language::get_compile_instance): New member function.
5601 (cplus_language_data): Delete la_get_compile_instance initializer.
5602 (cplus_language::get_compile_instance): New member function.
5603 (asm_language_data): Delete la_get_compile_instance initializer.
5604 (minimal_language_data): Likewise.
5605 * c-lang.h (c_get_compile_context): Update comment.
5606 (cplus_get_compile_context): Update comment.
5607 * compile/compile.c (compile_to_object): Update calls, don't rely
5608 on function pointer being NULL.
5609 * d-lang.c (d_language_data): Delete la_get_compile_instance
5610 initializer.
5611 * f-lang.c (f_language_data): Likewise.
5612 * go-lang.c (go_language_data): Likewise.
5613 * language.c (unknown_language_data): Likewise.
5614 (auto_language_data): Likewise.
5615 * language.h (language_data): Delete la_get_compile_instance field.
5616 (language_defn::get_compile_instance): New member function.
5617 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5618 initializer.
5619 * objc-lang.c (objc_language_data): Likewise.
5620 * opencl-lang.c (opencl_language_data): Likewise.
5621 * p-lang.c (pascal_language_data): Likewise.
5622 * rust-lang.c (rust_language_data): Likewise.
5623
4009ee92
AB
56242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5625
5626 * ada-lang.c (ada_add_all_symbols): Update comment.
5627 (ada_iterate_over_symbols): Delete, move implementation to...
5628 (ada_language::iterate_over_symbols): ...here, a new member
5629 function, rewrite to use range based for loop.
5630 (ada_language_data): Delete la_iterate_over_symbols initializer.
5631 * c-lang.c (c_language_data): Likewise.
5632 (cplus_language_data): Likewise.
5633 (asm_language_data): Likewise.
5634 (minimal_language_data): Likewise.
5635 * d-lang.c (d_language_data): Likewise.
5636 * f-lang.c (f_language_data): Likewise.
5637 * go-lang.c (go_language_data): Likewise.
5638 * language.c (unknown_language_data): Likewise.
5639 (auto_language_data): Likewise.
5640 * language.h (language_data): Delete la_iterate_over_symbols field.
5641 (language_defn::iterate_over_symbols): New member function.
5642 (LA_ITERATE_OVER_SYMBOLS): Update.
5643 * linespec.c (iterate_over_all_matching_symtabs): Update.
5644 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5645 initializer.
5646 * objc-lang.c (objc_language_data): Likewise.
5647 * opencl-lang.c (opencl_language_data): Likewise.
5648 * p-lang.c (pascal_language_data): Likewise.
5649 * rust-lang.c (rust_language_data): Likewise.
5650
54f4ca46
AB
56512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5652
5653 * ada-lang.c (ada_language_data): Delete
5654 la_lookup_transparent_type initializer.
5655 * c-lang.c (c_language_data): Likewise.
5656 (cplus_language_data): Likewise.
5657 (cplus_language::lookup_transparent_type): New member function.
5658 (asm_language_data): Delete la_lookup_transparent_type
5659 initializer.
5660 (minimal_language_data): Likewise.
5661 * d-lang.c (d_language_data): Likewise.
5662 * f-lang.c (f_language_data): Likewise.
5663 * go-lang.c (go_language_data): Likewise.
5664 * language.c (unknown_language_data): Likewise.
5665 (auto_language_data): Likewise.
5666 * language.h (struct language_data): Delete
5667 la_lookup_transparent_type field.
5668 (language_defn::lookup_transparent_type): New member function.
5669 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5670 initializer.
5671 * objc-lang.c (objc_language_data): Likewise.
5672 * opencl-lang.c (opencl_language_data): Likewise.
5673 * p-lang.c (pascal_language_data): Likewise.
5674 * rust-lang.c (rust_language_data): Likewise.
5675 * symtab.c (symbol_matches_domain): Update call.
5676
1fb314aa
AB
56772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5678
5679 * ada-lang.c (ada_language_arch_info): Delete function, move
5680 implementation to...
5681 (ada_language::language_arch_info): ...here, a new member
5682 function.
5683 (ada_language_data): Delete la_language_arch_info.
5684 * c-lang.c (c_language_data): Likewise.
5685 (c_language::language_arch_info): New member function.
5686 (cplus_language_arch_info): Delete function, move
5687 implementation to...
5688 (cplus_language::language_arch_info): ...here, a new member
5689 function.
5690 (cplus_language_data): Delete la_language_arch_info.
5691 (asm_language_data): Likewise.
5692 (asm_language::language_arch_info): New member function.
5693 (minimal_language_data): Delete la_language_arch_info.
5694 (minimal_language::language_arch_info): New member function.
5695 * d-lang.c (d_language_arch_info): Delete function, move
5696 implementation to...
5697 (d_language::language_arch_info): ...here, a new member
5698 function.
5699 (d_language_data): Delete la_language_arch_info.
5700 * f-lang.c (f_language_arch_info): Delete function, move
5701 implementation to...
5702 (f_language::language_arch_info): ...here, a new member
5703 function.
5704 (f_language_data): Delete la_language_arch_info.
5705 * go-lang.c (go_language_arch_info): Delete function, move
5706 implementation to...
5707 (go_language::language_arch_info): ...here, a new member
5708 function.
5709 (go_language_data): Delete la_language_arch_info.
5710 * language.c (unknown_language_data): Likewise.
5711 (unknown_language::language_arch_info): New member function.
5712 (auto_language_data): Delete la_language_arch_info.
5713 (auto_language::language_arch_info): New member function.
5714 (language_gdbarch_post_init): Update call to
5715 la_language_arch_info.
5716 * language.h (language_data): Delete la_language_arch_info
5717 function pointer.
5718 (language_defn::language_arch_info): New function.
5719 * m2-lang.c (m2_language_arch_info): Delete function, move
5720 implementation to...
5721 (m2_language::language_arch_info): ...here, a new member
5722 function.
5723 (m2_language_data): Delete la_language_arch_info.
5724 * objc-lang.c (objc_language_arch_info): Delete function, move
5725 implementation to...
5726 (objc_language::language_arch_info): ...here, a new member
5727 function.
5728 (objc_language_data): Delete la_language_arch_info.
5729 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5730 implementation to...
5731 (opencl_language::language_arch_info): ...here, a new member
5732 function.
5733 (opencl_language_data): Delete la_language_arch_info.
5734 * p-lang.c (pascal_language_arch_info): Delete function, move
5735 implementation to...
5736 (pascal_language::language_arch_info): ...here, a new member
5737 function.
5738 (pascal_language_data): Delete la_language_arch_info.
5739 * rust-lang.c (rust_language_arch_info): Delete function, move
5740 implementation to...
5741 (rust_language::language_arch_info): ...here, a new member
5742 function.
5743 (rust_language_data): Delete la_language_arch_info.
5744
48448202
AB
57452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5746
5747 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5748 initializer.
5749 * c-lang.c (c_language_data): Likewise.
5750 (cplus_language_data): Likewise.
5751 (cplus_language::pass_by_reference_info): New method.
5752 (asm_language_data): Delete la_pass_by_reference initializer.
5753 (minimal_language_data): Likewise.
5754 * cp-abi.c (cp_pass_by_reference): Remove use of
5755 default_pass_by_reference.
5756 * d-lang.c (d_language_data): Likewise.
5757 * f-lang.c (f_language_data): Likewise.
5758 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5759 default_pass_by_reference.
5760 * go-lang.c (go_language_data): Likewise.
5761 * language.c (language_pass_by_reference): Update.
5762 (default_pass_by_reference): Delete.
5763 (unknown_language_data): Delete la_pass_by_reference
5764 initializer.
5765 (auto_language_data): Likewise.
5766 * language.h (struct language_data): Delete la_pass_by_reference
5767 field.
5768 (language_defn::pass_by_reference_info): New member function.
5769 (default_pass_by_reference): Delete declaration.
5770 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5771 initializer.
5772 * objc-lang.c (objc_language_data): Likewise.
5773 * opencl-lang.c (opencl_language_data): Likewise.
5774 * p-lang.c (pascal_language_data): Likewise.
5775 * rust-lang.c (rust_language_data): Likewise.
5776
15e5fd35
AB
57772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5778
5779 * ada-lang.c (ada_read_var_value): Delete function, move
5780 implementation to...
5781 (ada_language::read_var_value): ...here.
5782 (ada_language_data): Delete la_read_var_value initializer.
5783 * c-lang.c (c_language_data): Likewise.
5784 (cplus_language_data): Likewise.
5785 (minimal_language_data): Likewise.
5786 * d-lang.c (d_language_data): Likewise.
5787 * f-lang.c (f_language_data): Likewise.
5788 * findvar.c (default_read_var_value): Rename to...
5789 (language_defn::read_var_value): ...this.
5790 * findvar.c (read_var_value): Update header comment, and change to
5791 call member function instead of function pointer.
5792 * go-lang.c (go_language_data): Likewise.
5793 * language.c (unknown_language_data): Delete la_read_var_value
5794 initializer.
5795 (auto_language_data): Likewise.
5796 * language.h (struct language_data): Delete la_read_var_value
5797 field.
5798 (language_defn::read_var_value): New member function.
5799 (default_read_var_value): Delete declaration.
5800 * m2-lang.c (m2_language_data): Delete la_read_var_value
5801 initializer.
5802 * objc-lang.c (objc_language_data): Likewise.
5803 * opencl-lang.c (opencl_language_data): Likewise.
5804 * p-lang.c (pascal_language_data): Likewise.
5805 * rust-lang.c (rust_language_data): Likewise.
5806 * value.h (default_read_var_value): Delete declaration.
5807
5bd40f2a
AB
58082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5809
5810 * ada-lang.c (ada_print_array_index): Delete function, move
5811 implementation to...
5812 (ada_language::print_array_index): ...here.
5813 (ada_language_data): Delete la_print_array_index initializer.
5814 * c-lang.c (c_language_data): Likewise.
5815 (cplus_language_data): Likewise.
5816 (minimal_language_data): Likewise.
5817 * d-lang.c (d_language_data): Likewise.
5818 * f-lang.c (f_language_data): Likewise.
5819 * go-lang.c (go_language_data): Likewise.
5820 * language.c (default_print_array_index): Delete function, move
5821 implementation to...
5822 (language_defn::print_array_index): ...here.
5823 (unknown_language_data): Delete la_print_array_index initializer.
5824 (auto_language_data): Likewise.
5825 * language.h (struct language_data): Delete la_print_array_index
5826 field.
5827 (language_defn::print_array_index): New member function.
5828 (LA_PRINT_ARRAY_INDEX): Update.
5829 (default_print_array_index): Delete declaration.
5830 * m2-lang.c (m2_language_data): Delete la_print_array_index
5831 initializer.
5832 * objc-lang.c (objc_language_data): Likewise.
5833 * opencl-lang.c (opencl_language_data): Likewise.
5834 * p-lang.c (pascal_language_data): Likewise.
5835 * rust-lang.c (rust_language_data): Likewise.
5836
0874fd07
AB
58372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5838
5839 * gdb/ada-lang.c (ada_language_defn): Convert to...
5840 (ada_language_data): ...this.
5841 (class ada_language): New class.
5842 (ada_language_defn): New static global.
5843 * gdb/c-lang.c (c_language_defn): Convert to...
5844 (c_language_data): ...this.
5845 (class c_language): New class.
5846 (c_language_defn): New static global.
5847 (cplus_language_defn): Convert to...
5848 (cplus_language_data): ...this.
5849 (class cplus_language): New class.
5850 (cplus_language_defn): New static global.
5851 (asm_language_defn): Convert to...
5852 (asm_language_data): ...this.
5853 (class asm_language): New class.
5854 (asm_language_defn): New static global.
5855 (minimal_language_defn): Convert to...
5856 (minimal_language_data): ...this.
5857 (class minimal_language): New class.
5858 (minimal_language_defn): New static global.
5859 * gdb/d-lang.c (d_language_defn): Convert to...
5860 (d_language_data): ...this.
5861 (class d_language): New class.
5862 (d_language_defn): New static global.
5863 * gdb/f-lang.c (f_language_defn): Convert to...
5864 (f_language_data): ...this.
5865 (class f_language): New class.
5866 (f_language_defn): New static global.
5867 * gdb/go-lang.c (go_language_defn): Convert to...
5868 (go_language_data): ...this.
5869 (class go_language): New class.
5870 (go_language_defn): New static global.
5871 * gdb/language.c (unknown_language_defn): Remove declaration.
5872 (current_language): Initialize to nullptr, real initialization is
5873 moved to _initialize_language.
5874 (languages): Delete global.
5875 (language_defn::languages): Define.
5876 (set_language_command): Use language_defn::languages.
5877 (set_language): Likewise.
5878 (range_error): Likewise.
5879 (language_enum): Likewise.
5880 (language_def): Likewise.
5881 (add_set_language_command): Use language_def::languages for the
5882 language list, and language_def to lookup language pointers.
5883 (skip_language_trampoline): Use language_defn::languages.
5884 (unknown_language_defn): Convert to...
5885 (unknown_language_data): ...this.
5886 (class unknown_language): New class.
5887 (unknown_language_defn): New static global.
5888 (auto_language_defn): Convert to...
5889 (auto_language_data): ...this.
5890 (class auto_language): New class.
5891 (auto_language_defn): New static global.
5892 (language_gdbarch_post_init): Use language_defn::languages.
5893 (_initialize_language): Initialize current_language.
5894 * gdb/language.h (struct language_defn): Rename to...
5895 (struct language_data): ...this.
5896 (struct language_defn): New.
5897 (auto_language_defn): Delete.
5898 (unknown_language_defn): Delete.
5899 (minimal_language_defn): Delete.
5900 (ada_language_defn): Delete.
5901 (asm_language_defn): Delete.
5902 (c_language_defn): Delete.
5903 (cplus_language_defn): Delete.
5904 (d_language_defn): Delete.
5905 (f_language_defn): Delete.
5906 (go_language_defn): Delete.
5907 (m2_language_defn): Delete.
5908 (objc_language_defn): Delete.
5909 (opencl_language_defn): Delete.
5910 (pascal_language_defn): Delete.
5911 (rust_language_defn): Delete.
5912 * gdb/m2-lang.c (m2_language_defn): Convert to...
5913 (m2_language_data): ...this.
5914 (class m2_language): New class.
5915 (m2_language_defn): New static global.
5916 * gdb/objc-lang.c (objc_language_defn): Convert to...
5917 (objc_language_data): ...this.
5918 (class objc_language): New class.
5919 (objc_language_defn): New static global.
5920 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5921 (opencl_language_data): ...this.
5922 (class opencl_language): New class.
5923 (opencl_language_defn): New static global.
5924 * gdb/p-lang.c (pascal_language_defn): Convert to...
5925 (pascal_language_data): ...this.
5926 (class pascal_language): New class.
5927 (pascal_language_defn): New static global.
5928 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5929 language pointer, update comment format.
5930 * gdb/rust-lang.c (rust_language_defn): Convert to...
5931 (rust_language_data): ...this.
5932 (class rust_language): New class.
5933 (rust_language_defn): New static global.
5934
1313c56e
AB
59352020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5936
5937 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5938 member variable.
5939 <m_stmt_at_address>: New member variable.
5940 (lnp_state_machine::record_line): Don't record some lines, update
5941 tracking of is_stmt at the same address.
5942 (lnp_state_machine::lnp_state_machine): Initialise new member
5943 variables.
5944
b7ed9f3d
ST
59452020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5946
5947 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5948 "-include gnu-nat-mig.h".
5949 * gnu-nat-mig.h: New file.
5950 * gnu-nat.c: Include "gnu-nat-mig.h".
5951 (exc_server, msg_reply_server, notify_server,
5952 process_reply_server): Remove declarations.
5953
14a8ad62
ST
59542020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5955
5956 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5957 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5958 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5959 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5960 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5961 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5962 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5963 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5964 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5965 to gnu_nat_target class.
5966 * gnu-nat.c: Likewise.
5967 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5968 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5969 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5970 object.
5971 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5972 instead of `gnu_target'.
5973
0af5e106
ST
59742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5975
5976 * i386-gnu-tdep.c: Include "gdbcore.h"
5977 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5978 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5979 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5980 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5981 i386_gnu_sigcontext_addr): New functions
5982 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5983 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5984 tdep.
5985
078f2fc9
ST
59862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5987
5988 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5989 before fork_inferior call. Avoid calling it if target_is_pushed returns
5990 true.
5991
53dff92c
ST
59922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5993
5994 * gnu-nat.h (gnu_target): New variable declaration.
5995 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5996 gnu_target.
5997 * gnu-nat.c (gnu_target): New variable.
5998 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5999 add_thread_silent, and add_thread calls.
6000 (gnu_nat_target::create_inferior): Pass gnu_target to
6001 add_thread_silent, thread_change_ptid call.
6002 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6003 call.
6004
5a8b8627
ST
60052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6006
6007 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6008 (gnu_nat_target::find_memory_regions): Remove unused
6009 `old_address' variable.
6010
366f550a
ST
60112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6012
6013 * gnu-nat.c: Include "gdbarch.h".
6014
f14871bf
ST
60152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6016
6017 * reply_mig_hack.awk (Error return): Cast function through
6018 void *, to bypass compiler function call check.
6019
c6887cfb
ST
60202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6021
6022 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6023 $(srcdir)/reply_mig_hack.awk.
6024
6930bffe
ST
60252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6026
6027 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6028
112c22ed
JG
60292020-05-30 Jonny Grant <jg@jguk.org>
6030
6031 * configure.ac (ACX_BUGURL): change bug URL to https.
6032
f68f85b5
PA
60332020-05-30 Pedro Alves <palves@redhat.com>
6034
6035 * cp-support.c (replace_typedefs_template): New.
6036 (replace_typedefs_qualified_name): Handle
6037 DEMANGLE_COMPONENT_TEMPLATE.
6038
976ca316
SM
60392020-05-29 Simon Marchi <simon.marchi@efficios.com>
6040
6041 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6042 dwarf2/index-cache.h, dwarf2/index-write.c,
6043 dwarf2/index-write.h, dwarf2/line-header.c,
6044 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6045 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6046 variables and fields from `dwarf2_per_objfile` to just
6047 `per_objfile` throughout.
6048
989ade05
SM
60492020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6050
6051 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6052 <push_dwarf_reg_entry_value>: Add comment.
6053
c47bae85
KB
60542020-05-28 Kevin Buettner <kevinb@redhat.com>
6055 Keith Seitz <keiths@redhat.com>
6056
6057 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6058 instead of PyEval_ReleaseLock.
6059 (class gdbpy_gil): Move to earlier in file.
6060 (finalize_python): Set gdb_python_initialized.
6061 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6062 when not initialized.
6063
44486dcf
SM
60642020-05-28 Simon Marchi <simon.marchi@efficios.com>
6065
6066 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6067 <push_dwarf_reg_entry_value>: Remove assert. Override
6068 per_objfile with caller_per_objfile.
6069
f030440d
TV
60702020-05-28 Tom de Vries <tdevries@suse.de>
6071
6072 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6073 PR gold/15646 workaround to symbol kind "type".
6074
f0fbb768
TT
60752020-05-27 Tom Tromey <tromey@adacore.com>
6076
6077 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6078
af0b2a3e
TT
60792020-05-27 Tom Tromey <tromey@adacore.com>
6080
6081 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6082 Use htab_find_with_hash.
6083 <add_abbrev>: Remove "abbrev_number" parameter.
6084 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6085 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6086 (hash_abbrev): Add comment.
6087 (abbrev_table::lookup_abbrev): Move to header file.
6088 (abbrev_table::read): Update.
6089
7d00ffec
TT
60902020-05-27 Tom Tromey <tromey@adacore.com>
6091
6092 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6093 method.
6094 <canonical_name>: New member.
6095 <raw_name>: Rename from "name".
6096 (partial_die_info): Initialize canonical_name.
6097 (scan_partial_symbols): Check raw_name.
6098 (partial_die_parent_scope, partial_die_full_name)
6099 (add_partial_symbol, add_partial_subprogram)
6100 (add_partial_enumeration, load_partial_dies): Use "name" method.
6101 (partial_die_info::name): New method.
6102 (partial_die_info::read, guess_partial_die_structure_name)
6103 (partial_die_info::fixup): Update.
6104
697bba18
TT
61052020-05-27 Tom Tromey <tromey@adacore.com>
6106
6107 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6108 <get_ref_die_offset>: Inline.
6109 <get_ref_die_offset_complaint>: New method.
6110 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6111 (attribute::get_ref_die_offset_complaint): Rename from
6112 get_ref_die_offset. Just issue complaint.
6113
c17ace43
HD
61142020-05-27 Hannes Domani <ssbssa@yahoo.de>
6115
6116 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6117
96445f0b
HD
61182020-05-27 Hannes Domani <ssbssa@yahoo.de>
6119
6120 * exec.c (exec_file_attach): Use errno value of first openp failure.
6121
ac637ec3
HD
61222020-05-27 Hannes Domani <ssbssa@yahoo.de>
6123
6124 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6125 Don't close thread handle.
6126
17ee85fc
TT
61272020-05-27 Tom Tromey <tom@tromey.com>
6128 Simon Marchi <simon.marchi@efficios.com>
6129
6130 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6131 shared_ptr.
6132 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6133 member.
6134 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6135 dwarf2_per_bfd_objfile_data_key>: New globals.
6136 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6137 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6138 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6139 shared.
6140 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6141 short-circuit when sharing.
6142 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6143 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6144
39b16f87
SM
61452020-05-27 Simon Marchi <simon.marchi@efficios.com>
6146
6147 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6148 to...
6149 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6150 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6151
fcf23d5b
SM
61522020-05-27 Simon Marchi <simon.marchi@efficios.com>
6153
6154 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6155 build_name_components, find_name_components_bounds>:
6156 Add per_objfile parameter.
6157 (struct mapped_index) <symbol_name_at>: Likewise.
6158 (struct mapped_debug_names): Remove constructor.
6159 <dwarf2_per_objfile>: Remove field.
6160 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6161 (mapped_index_base::find_name_components_bounds,
6162 mapped_index_base::build_name_components,
6163 dw2_expand_symtabs_matching_symbol): Likewise.
6164 (class mock_mapped_index) <symbol_name_at>: Likewise.
6165 (check_match): Likewise.
6166 (check_find_bounds_finds): Likewise.
6167 (test_mapped_index_find_name_component_bounds): Update.
6168 (CHECK_MATCH): Update.
6169 (dw2_expand_symtabs_matching): Update.
6170 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6171 per_objfile parameter.
6172 <find_vec_in_debug_names>: Likewise.
6173 <m_per_objfile>: New field.
6174 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6175 parameter.
6176 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6177 (dw2_debug_names_iterator::next): Update.
6178 (dw2_debug_names_lookup_symbol): Update.
6179 (dw2_debug_names_expand_symtabs_for_function): Update.
6180 (dw2_debug_names_map_matching_symbols): Update.
6181 (dw2_debug_names_expand_symtabs_matching): Update.
6182 (dwarf2_read_debug_names): Update.
6183
7188ed02
SM
61842020-05-27 Simon Marchi <simon.marchi@efficios.com>
6185
6186 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6187 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6188 move to dwarf2_per_objfile.
6189 <read_in_chain>: Remove.
6190 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6191 remove_all_cus, age_comp_units>: New methods.
6192 <m_dwarf2_cus>: New member.
6193 (struct dwarf2_per_cu_data) <cu>: Remove.
6194 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6195 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6196 moved to methods of dwarf2_per_objfile.
6197 (dwarf2_clear_marks): Remove.
6198 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6199 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6200 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6201 (dwarf2_per_objfile::remove_all_cus): New.
6202 (class free_cached_comp_units) <~free_cached_comp_units>:
6203 Update.
6204 (load_cu): Update.
6205 (dw2_do_instantiate_symtab): Adjust.
6206 (fill_in_sig_entry_from_dwo_entry): Adjust.
6207 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6208 (cutu_reader::cutu_reader): Likewise.
6209 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6210 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6211 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6212 and dwarf2_per_objfile::age_comp_units.
6213 (load_partial_comp_unit): Update.
6214 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6215 (process_queue): Likewise.
6216 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6217 backlink.
6218 (dwarf2_read_addr_index): Likewise.
6219 (follow_die_offset): Likewise.
6220 (dwarf2_fetch_die_loc_sect_off): Likewise.
6221 (dwarf2_fetch_constant_bytes): Likewise.
6222 (dwarf2_fetch_die_type_sect_off): Likewise.
6223 (follow_die_sig_1): Likewise.
6224 (load_full_type_unit): Likewise.
6225 (read_signatured_type): Likewise.
6226 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6227 (dwarf2_cu::~dwarf2_cu): Remove.
6228 (dwarf2_per_objfile::get_cu): New.
6229 (dwarf2_per_objfile::set_cu): New.
6230 (age_cached_comp_units): Rename to...
6231 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6232 to std::unordered_map.
6233 (free_one_cached_comp_unit): Rename to...
6234 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6235 to std::unordered_map.
6236 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6237 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6238 a dwarf2_per_objfile in data.
6239 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6240 (dwarf2_clear_marks): Remove.
6241
2e671100
SM
62422020-05-27 Simon Marchi <simon.marchi@efficios.com>
6243
6244 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6245 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6246 (init_tu_and_read_dwo_dies): Likewise.
6247 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6248 (cutu_reader::cutu_reader): Likewise.
6249 (load_partial_comp_unit): Likewise.
6250 (process_psymtab_comp_unit): Update.
6251 (build_type_psymtabs_1): Update.
6252 (process_skeletonless_type_unit): Update.
6253 (load_full_comp_unit): Update.
6254 (find_partial_die): Update.
6255 (dwarf2_read_addr_index): Update.
6256 (read_signatured_type): Update.
6257
2e6a9f79
SM
62582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6259
6260 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6261 m_header_read_in>: New fields.
6262 <get_header>: New method.
6263 * dwarf2/read.c (per_cu_header_read_in): Remove.
6264 (dwarf2_per_cu_data::get_header): New.
6265 (dwarf2_per_cu_data::addr_size): Update.
6266 (dwarf2_per_cu_data::offset_size): Update.
6267 (dwarf2_per_cu_data::ref_addr_size): Update.
6268
1b555f17
SM
62692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6270
6271 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6272 (dw2_do_instantiate_symtab): Update.
6273 (queue_and_load_all_dwo_tus): Change parameter from
6274 dwarf2_per_cu_data to dwarf2_cu.
6275 (dwarf2_fetch_die_loc_sect_off): Update.
6276 (dwarf2_fetch_constant_bytes): Update.
6277 (dwarf2_fetch_die_type_sect_off): Update.
6278
8fc0b21d
SM
62792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6280
6281 * dwarf2/read.c (process_full_comp_unit,
6282 process_full_type_unit): Remove per_cu, per_objfile paramters.
6283 Add dwarf2_cu parameter.
6284 (process_queue): Update.
6285
168c9250
SM
62862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6287
6288 * dwarf2/read.c (create_cu_from_index_list): Replace
6289 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6290 (create_cus_from_index_list): Likewise.
6291 (create_cus_from_index): Likewise.
6292 (create_signatured_type_table_from_index): Likewise.
6293 (create_cus_from_debug_names_list): Likewise.
6294 (create_cus_from_debug_names): Likewise.
6295 (dwarf2_read_gdb_index): Update.
6296 (dwarf2_read_debug_names): Update.
6297
e286671b
TT
62982020-05-27 Tom Tromey <tom@tromey.com>
6299 Simon Marchi <simon.marchi@efficios.com>
6300
6301 * dwarf2/read.h (struct dwarf2_per_objfile)
6302 <get_type_for_signatured_type, set_type_for_signatured_type>:
6303 New methods.
6304 <m_type_map>: New member.
6305 (struct signatured_type) <type>: Remove.
6306 * dwarf2/read.c
6307 (dwarf2_per_objfile::get_type_for_signatured_type,
6308 dwarf2_per_objfile::set_type_for_signatured_type): New.
6309 (get_signatured_type): Use new methods.
6310
8adb8487
TT
63112020-05-27 Tom Tromey <tom@tromey.com>
6312 Simon Marchi <simon.marchi@efficios.com>
6313
6314 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6315 (struct dwarf2_per_objfile) <type_units>: New member.
6316 <get_type_unit_group_unshareable>: New method.
6317 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6318 num_symtabs, symtabs>: Remove; move to
6319 type_unit_group_unshareable.
6320 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6321 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6322 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6323
127bbf4b
SM
63242020-05-27 Simon Marchi <simon.marchi@efficios.com>
6325
6326 * dwarf2/read.h (struct dwarf2_per_cu_data):
6327 <dwarf2_per_objfile>: Remove.
6328 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6329 dwarf2_per_objfile.
6330 (create_signatured_type_table_from_index): Likewise.
6331 (create_signatured_type_table_from_debug_names): Likewise.
6332 (create_debug_type_hash_table): Likewise.
6333 (fill_in_sig_entry_from_dwo_entry): Likewise.
6334 (create_type_unit_group): Likewise.
6335 (read_comp_units_from_section): Likewise.
6336 (create_cus_hash_table): Likewise.
6337
f6e649dd
SM
63382020-05-27 Simon Marchi <simon.marchi@efficios.com>
6339
6340 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6341 dwarf2_per_cu_data::dwarf2_per_objfile.
6342 (compute_compunit_symtab_includes): Likewise.
6343 (dwarf2_cu::start_symtab): Likewise.
6344
aa66c379
SM
63452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6346
6347 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6348 parameter.
6349 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6350 (read_namespace_alias): Update.
6351 (lookup_die_type): Update.
6352 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6353 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6354 Update.
6355 (disassemble_dwarf_expression): Update.
6356
120ce1b5
SM
63572020-05-27 Simon Marchi <simon.marchi@efficios.com>
6358
6359 * dwarf2/read.h (struct dwarf2_queue_item): Add
6360 dwarf2_per_objfile parameter, assign new parameter.
6361 <per_objfile>: New field.
6362 * dwarf2/read.c (free_one_cached_comp_unit): Add
6363 dwarf2_per_objfile parameter.
6364 (queue_comp_unit): Likewise.
6365 (dw2_do_instantiate_symtab): Update.
6366 (process_psymtab_comp_unit): Update.
6367 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6368 (process_imported_unit_die): Update.
6369 (queue_and_load_dwo_tu): Update.
6370 (follow_die_offset): Update.
6371 (follow_die_sig_1): Update.
6372
9f47c707
SM
63732020-05-27 Simon Marchi <simon.marchi@efficios.com>
6374
6375 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6376 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6377 (read_call_site_scope): Assign per_objfile.
6378 (dwarf2_per_cu_data::objfile): Remove.
6379 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6380 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6381 dwarf2_per_objfile parameter.
6382 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6383 dwarf2_per_objfile parameter.
6384 (dwarf_expr_reg_to_entry_parameter): Add output
6385 dwarf2_per_objfile parameter.
6386 (locexpr_get_frame_base): Update.
6387 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6388 <push_dwarf_reg_entry_value>: Update.
6389 <call_site_to_target_addr>: Update.
6390 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6391 parameter.
6392 (value_of_dwarf_reg_entry): Update.
6393 (rw_pieced_value): Update.
6394 (indirect_synthetic_pointer): Update.
6395 (dwarf2_evaluate_property): Update.
6396 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6397 parameter.
6398 (locexpr_read_variable): Update.
6399 (locexpr_get_symbol_read_needs): Update.
6400 (loclist_read_variable): Update.
6401
14095eb3
SM
64022020-05-27 Simon Marchi <simon.marchi@efficios.com>
6403
6404 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6405 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6406 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6407 parameter.
6408 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6409 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6410 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6411 parameter.
6412 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6413 sect_variable_value): Add dwarf2_per_objfile parameter.
6414 (class dwarf_evaluate_loc_desc) <dwarf_call,
6415 dwarf_variable_value>: Update.
6416 (fetch_const_value_from_synthetic_pointer): Add
6417 dwarf2_per_objfile parameter.
6418 (fetch_const_value_from_synthetic_pointer): Update.
6419 (coerced_pieced_ref): Update.
6420 (class symbol_needs_eval_context) <dwarf_call,
6421 dwarf_variable_value>: Update.
6422 (dwarf2_compile_expr_to_ax): Update.
6423
3c3cd3d4
SM
64242020-05-27 Simon Marchi <simon.marchi@efficios.com>
6425
6426 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6427 parameter.
6428 (dwarf2_evaluate_loc_desc_full): Update.
6429
82ca3f51
SM
64302020-05-27 Simon Marchi <simon.marchi@efficios.com>
6431
6432 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6433 parameter.
6434 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6435 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6436 dwarf2_per_objfile parameter.
6437 (decode_debug_loc_dwo_addresses): Likewise.
6438 (dwarf2_find_location_expression): Update.
6439 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6440 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6441 parameter.
6442 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6443 parameter.
6444 (locexpr_describe_location_1): Likewise.
6445 (locexpr_describe_location): Update.
6446
4b167ea1
SM
64472020-05-27 Simon Marchi <simon.marchi@efficios.com>
6448
6449 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6450 Remove.
6451 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6452 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6453 (dwarf2_compile_property_to_c): Update.
6454 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6455 use text offset from objfile.
6456 (locexpr_tracepoint_var_ref): Update.
6457 (locexpr_generate_c_location): Update.
6458 (loclist_describe_location): Update.
6459 (loclist_tracepoint_var_ref): Update.
6460 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6461 dwarf2_per_objfile parameter.
6462 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6463 use text offset from objfile.
6464 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6465
89b07335
SM
64662020-05-27 Simon Marchi <simon.marchi@efficios.com>
6467
6468 * dwarf2/expr.h (struct dwarf_expr_context)
6469 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6470 <offset>: Remove.
6471 <per_objfile>: New member.
6472 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6473 dwarf2_per_objfile parameter. Don't set offset, set
6474 per_objfile.
6475 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6476 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6477 a dwarf2_per_objfile object instead of an offset.
6478 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6479 constructor.
6480 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6481 to dwarf2_expr_executor constructor. Don't set offset.
6482 (dwarf2_fetch_cfa_info): Update.
6483 (struct dwarf2_frame_cache) <text_offset>: Remove.
6484 <per_objfile>: New field.
6485 (dwarf2_frame_cache): Update.
6486 (dwarf2_frame_prev_register): Update.
6487 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6488 <dwarf_evaluate_loc_desc>: Add constructor.
6489 (dwarf2_evaluate_loc_desc_full): Update.
6490 (dwarf2_locexpr_baton_eval): Update.
6491 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6492 Add constructor.
6493 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6494
293e7e51
SM
64952020-05-27 Simon Marchi <simon.marchi@efficios.com>
6496
6497 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6498 addr_sized_int_type>: Move to dwarf2_cu.
6499 <int_type>: Move to dwarf2_per_objfile.
6500 (struct dwarf2_per_objfile) <int_type>: Move here.
6501 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6502 addr_sized_int_type>: Move here.
6503 (read_func_scope): Update.
6504 (read_array_type): Update.
6505 (read_tag_string_type): Update.
6506 (attr_to_dynamic_prop): Update.
6507 (dwarf2_per_cu_data::int_type): Rename to...
6508 (dwarf2_per_objfile::int_type): ... this.
6509 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6510 (dwarf2_cu::addr_sized_int_type): ... this.
6511 (read_subrange_type): Update.
6512 (dwarf2_per_cu_data::addr_type): Rename to...
6513 (dwarf2_cu::addr_type): ... this.
6514 (set_die_type): Update.
6515
64874a40
SM
65162020-05-27 Simon Marchi <simon.marchi@efficios.com>
6517
6518 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6519 data through per_cu->cu.
6520
4ab09049
SM
65212020-05-27 Simon Marchi <simon.marchi@efficios.com>
6522
6523 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6524 dwarf2_per_cu_data parameter fo dwarf2_cu.
6525 (lookup_dwo_type_unit): Likewise.
6526 (read_cutu_die_from_dwo): Likewise.
6527 (lookup_dwo_unit): Likewise.
6528 (open_and_init_dwo_file): Likewise.
6529 (lookup_dwo_cutu): Likewise.
6530 (lookup_dwo_comp_unit): Likewise.
6531 (lookup_dwo_type_unit): Likewise.
6532 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6533 (cutu_reader::cutu_reader): Update.
6534
47b14e86
SM
65352020-05-27 Simon Marchi <simon.marchi@efficios.com>
6536
6537 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6538 parameter.
6539 (process_full_type_unit): Likewise.
6540 (process_queue): Update.
6541
43182c09
SM
65422020-05-27 Simon Marchi <simon.marchi@efficios.com>
6543
6544 * dwarf2/read.c (recursively_compute_inclusions): Add
6545 dwarf2_per_objfile parameter.
6546 (compute_compunit_symtab_includes): Likewise.
6547 (process_cu_includes): Update.
6548
7aa104c4
SM
65492020-05-27 Simon Marchi <simon.marchi@efficios.com>
6550
6551 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6552 parameter.
6553 (create_type_unit_group): Update.
6554 (process_psymtab_comp_unit_reader): Update.
6555 (build_type_psymtabs_reader): Update.
6556
e3beb21d
SM
65572020-05-27 Simon Marchi <simon.marchi@efficios.com>
6558
6559 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6560 object through m_this_cu->cu.
6561
d460f660
SM
65622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6563
6564 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6565 the info parameter.
6566 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6567
ab432490
SM
65682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6569
6570 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6571 per_objfile parameter.
6572 (load_full_type_unit): Add per_objfile parameter.
6573 (read_signatured_type): Likewise.
6574 (load_full_comp_unit): Likewise.
6575 (load_cu): Likewise.
6576 (dw2_do_instantiate_symtab): Likewise.
6577 (dw2_get_file_names): Likewise.
6578 (dw2_map_symtabs_matching_filename): Update.
6579 (dw_expand_symtabs_matching_file_matcher): Update.
6580 (dw2_map_symbol_filenames): Update.
6581 (process_psymtab_comp_unit): Add per_objfile parameter.
6582 (build_type_psymtabs_1): Update.
6583 (process_skeletonless_type_unit): Update.
6584 (dwarf2_build_psymtabs_hard): Update.
6585 (load_partial_comp_unit): Add per_objfile parameter.
6586 (scan_partial_symbols): Update.
6587 (load_full_comp_unit): Add per_objfile parameter.
6588 (process_imported_unit_die): Update.
6589 (create_cus_hash_table): Update.
6590 (find_partial_die): Update.
6591 (dwarf2_read_addr_index): Update.
6592 (follow_die_offset): Update.
6593 (dwarf2_fetch_die_loc_sect_off): Update.
6594 (dwarf2_fetch_constant_bytes): Update.
6595 (dwarf2_fetch_die_type_sect_off): Update.
6596 (follow_die_sig_1): Update.
6597 (load_full_type_unit): Add per_objfile parameter.
6598 (read_signatured_type): Likewise.
6599
313bad1b
SM
66002020-05-27 Simon Marchi <simon.marchi@efficios.com>
6601
6602 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6603 of objfile_name.
6604
c3699833
SM
66052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6606
6607 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6608 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6609 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6610 field.
6611 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6612 (create_cus_from_index): Update.
6613 (dwarf2_read_gdb_index): Update.
6614 (create_cus_from_debug_names): Update.
6615 (dwarf2_read_debug_names): Update.
6616 (get_abbrev_section_for_cu): Update.
6617 (create_all_comp_units): Update.
6618 (read_attribute_value): Update.
6619 (get_debug_line_section): Update.
6620 * dwarf2/index-cache.c (index_cache::store): Update.
6621 * dwarf2/index-write.c (save_gdb_index_command): Update.
6622 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6623
1859c670
SM
66242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6625
6626 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6627 member.
6628 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6629 dwarf2_per_cu_data::per_bfd.
6630 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6631 (create_type_unit_group): Likewise.
6632 (queue_comp_unit): Remove reference to
6633 per_cu->dwarf2_per_objfile.
6634 (maybe_queue_comp_unit): Likewise.
6635 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6636 (create_cus_hash_table): Assign new field.
6637
5e22e966
SM
66382020-05-27 Simon Marchi <simon.marchi@efficios.com>
6639
6640 * dwarf2/read.c: Replace
6641 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6642 dwarf2_cu->per_objfile throughout.
6643
97a1449a
SM
66442020-05-27 Simon Marchi <simon.marchi@efficios.com>
6645
6646 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6647 parameter, don't use per_cu->dwarf2_per_objfile.
6648 (dw2_instantiate_symtab): Likewise.
6649 (dw2_find_last_source_symtab): Update.
6650 (dw2_map_expand_apply): Update.
6651 (dw2_lookup_symbol): Update.
6652 (dw2_expand_symtabs_for_function): Update.
6653 (dw2_expand_all_symtabs): Update.
6654 (dw2_expand_symtabs_with_fullname): Update.
6655 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6656 don't use per_cu->dwarf2_per_objfile.
6657 (dw2_expand_marked_cus): Update.
6658 (dw2_find_pc_sect_compunit_symtab): Update.
6659 (dw2_debug_names_lookup_symbol): Update.
6660 (dw2_debug_names_expand_symtabs_for_function): Update.
6661 (dw2_debug_names_map_matching_symbols): Update.
6662 (dwarf2_psymtab::expand_psymtab): Update.
6663
9e021579
SM
66642020-05-27 Simon Marchi <simon.marchi@efficios.com>
6665
6666 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6667 <per_objfile>: New member.
6668 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6669 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6670 call to dwarf2_cu.
6671 (cutu_reader::cutu_reader): Update.
6672 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6673
ae090bdb
SM
66742020-05-27 Simon Marchi <simon.marchi@efficios.com>
6675
6676 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6677 struct dwarf2_per_objfile.
6678 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6679 dwarf2_per_bfd.
6680 * dwarf2/read.c (set_die_type): Update.
6681 (get_die_type_at_offset): Update.
6682
af758d11
SM
66832020-05-27 Tom Tromey <tom@tromey.com>
6684 Simon Marchi <simon.marchi@efficios.com>
6685
6686 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6687 method.
6688 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6689 get_symtab, set_symtab>: New methods.
6690 <m_symtabs>: New field.
6691 (struct dwarf2_psymtab): Derive from partial_symtab.
6692 <readin_p, get_compunit_symtab>: Declare methods.
6693 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6694 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6695 New methods.
6696 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6697 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6698 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6699 (dw2_symtab_iter_next, dw2_print_stats)
6700 (dw2_expand_symtabs_with_fullname)
6701 (dw2_expand_symtabs_matching_one)
6702 (dw_expand_symtabs_matching_file_matcher)
6703 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6704 (dw2_debug_names_iterator::next)
6705 (dw2_debug_names_map_matching_symbols)
6706 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6707 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6708 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6709 New methods.
6710 (get_compunit_symtab, process_full_comp_unit)
6711 (process_full_type_unit): Update.
6712 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6713
5989a64e
SM
67142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6715
6716 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6717 then introduce a new dwarf2_per_objfile type.
6718 <read_line_string>: Move to the new dwarf2_per_objfile type.
6719 <objfile>: Likewise.
6720 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6721 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6722 dwarf2_per_objfile->per_bfd.
6723 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6724 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6725 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6726 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6727 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6728 (dwarf2_per_objfile::locate_sections): Rename to...
6729 (dwarf2_per_bfd::locate_sections): ... this.
6730 (dwarf2_per_objfile::get_cutu): Rename to...
6731 (dwarf2_per_bfd::get_cutu): ... this.
6732 (dwarf2_per_objfile::get_cu): Rename to...
6733 (dwarf2_per_bfd::get_cu): ... this.
6734 (dwarf2_per_objfile::get_tu): Rename to...
6735 (dwarf2_per_bfd::get_tu): ... this.
6736 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6737 (dwarf2_per_bfd::allocate_per_cu): ... this.
6738 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6739 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6740 (get_gdb_index_contents_ftype): Change parameter from
6741 dwarf2_per_objfile to dwarf2_per_bfd.
6742 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6743 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6744
a50264ba
TT
67452020-05-27 Tom Tromey <tom@tromey.com>
6746 Simon Marchi <simon.marchi@efficios.com>
6747
6748 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6749 (allocate_piece_closure): Set "per_objfile" member.
6750 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6751 (locexpr_describe_location, loclist_describe_location): Use new
6752 member.
6753 * dwarf2/read.c (read_call_site_scope)
6754 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6755 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6756 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6757 handle_data_member_location): Set per_objfile member.
6758 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6759 member.
6760 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6761
d3473f0c
TT
67622020-05-27 Tom Tromey <tom@tromey.com>
6763
6764 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6765 allocate_signatured_type>: Declare new methods.
6766 <m_num_psymtabs>: New member.
6767 (struct dwarf2_per_cu_data) <index>: New member.
6768 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6769 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6770 (create_cu_from_index_list): Use allocate_per_cu.
6771 (create_signatured_type_table_from_index)
6772 (create_signatured_type_table_from_debug_names)
6773 (create_debug_type_hash_table, add_type_unit)
6774 (read_comp_units_from_section): Use allocate_signatured_type.
6775
5717c425
TT
67762020-05-27 Tom Tromey <tom@tromey.com>
6777
6778 * psymtab.c (partial_map_expand_apply)
6779 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6780 (psym_lookup_global_symbol_language)
6781 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6782 (psym_print_stats, psym_expand_symtabs_for_function)
6783 (psym_map_symbol_filenames, psym_map_matching_symbols)
6784 (psym_expand_symtabs_matching)
6785 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6786 (maintenance_check_psymtabs): Update.
6787 * psympriv.h (struct partial_symtab) <readin_p,
6788 get_compunit_symtab>: Add objfile parameter.
6789 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6790 Likewise.
6791 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6792 get_compunit_symtab>: Likewise.
6793 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6794
45940949
TT
67952020-05-27 Tom Tromey <tom@tromey.com>
6796
6797 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6798 member.
6799 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6800 (create_cu_from_index_list)
6801 (create_signatured_type_table_from_index)
6802 (create_signatured_type_table_from_debug_names)
6803 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6804 (dwarf2_create_include_psymtab)
6805 (create_debug_type_hash_table, add_type_unit)
6806 (create_type_unit_group, read_comp_units_from_section)
6807 (dwarf2_compute_name, create_cus_hash_table)
6808 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6809 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6810 obstack.
6811 (dw2_get_real_path): Likewise. Change argument to
6812 dwarf2_per_objfile.
6813
f8c6d152
LM
68142020-05-27 Luis Machado <luis.machado@linaro.org>
6815
6816 PR tdep/26000
6817 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6818 for ldrd (immediate).
6819
e98d2e6d
PW
68202020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6821
6822 * command.h: Add comment giving the name of class_tui.
6823 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6824 create the fake command for the help for class_tui.
6825
53a47a3e
TT
68262020-05-26 Tom Tromey <tromey@adacore.com>
6827
6828 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6829 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6830 (val_atr): New function.
6831 (value_val_atr): Use it.
6832 * ada-valprint.c (print_optional_low_bound): Change low bound
6833 handling for enums.
6834 (val_print_packed_array_elements): Don't call discrete_position.
6835 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6836 discrete_position for enum types.
6837 * language.c (default_print_array_index): Change type.
6838 * language.h (struct language_defn) <la_print_array_index>: Add
6839 index_type parameter, change type of index_value.
6840 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6841 (default_print_array_index): Update.
6842 * valprint.c (maybe_print_array_index): Don't call
6843 value_from_longest. Update.
6844 (value_print_array_elements): Don't call discrete_position.
6845
0bc2354b
TT
68462020-05-26 Tom Tromey <tromey@adacore.com>
6847
6848 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6849 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6850
1218a4bf
CDA
68512020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6852
6853 PR gdb/13519
6854 * avr-tdep.c (avr_integer_to_address): Return data or code
6855 address accordingly to the second 'type' argument of the
6856 function.
6857
92651b1d
MW
68582020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6859
6860 * infcmd.c, inferior.h: (construct_inferior_arguments):
6861 Moved function from here to gdbsupport/common-inferior.{h,cc}
6862
0a4f5f8c
TT
68632020-05-23 Tom Tromey <tom@tromey.com>
6864
6865 Revert commit eca1f90c:
6866 * NEWS: Remove entry for completion styling.
6867 * completer.c (_rl_completion_prefix_display_length): Move
6868 declaration later.
6869 (gdb_fnprint): Revert.
6870 (gdb_display_match_list_1): Likewise.
6871 * cli/cli-style.c (completion_prefix_style)
6872 (completion_difference_style, completion_suffix_style): Remove.
6873 (_initialize_cli_style): Revert.
6874 * cli/cli-style.h (completion_prefix_style)
6875 (completion_difference_style, completion_suffix_style): Don't
6876 declare.
6877
e08bd6c5
PA
68782020-05-24 Pedro Alves <palves@redhat.com>
6879
6880 * symtab.c (completion_list_add_name): Return boolean indication
6881 of whether the symbol matched.
6882 (completion_list_add_symbol): Don't try to remove C++ aliases if
6883 the symbol didn't match in the first place.
6884 * symtab.h (completion_list_add_name): Return bool.
6885
ceacbf6e
SM
68862020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6887
6888 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6889 type::field.
6890
26f16254
JB
68912020-05-23 Joel Brobecker <brobecker@adacore.com>
6892
6893 GDB 9.2 released.
6894
eca1f90c
TT
68952020-05-23 Tom Tromey <tom@tromey.com>
6896
6897 * NEWS: Add entry for completion styling.
6898 * completer.c (_rl_completion_prefix_display_length): Move
6899 declaration earlier.
6900 (gdb_fnprint): Use completion_style.
6901 (gdb_display_match_list_1): Likewise.
6902 * cli/cli-style.c (completion_prefix_style)
6903 (completion_difference_style, completion_suffix_style): New
6904 globals.
6905 (_initialize_cli_style): Register new globals.
6906 * cli/cli-style.h (completion_prefix_style)
6907 (completion_difference_style, completion_suffix_style): Declare.
6908
51e2cfa2
PA
69092020-05-23 Pedro Alves <palves@redhat.com>
6910
6911 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6912 (parse_escape): Use ISDIGIT instead of isdigit.
6913 (puts_debug): Use gdb_isprint instead of isprint.
6914 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6915 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6916 ISSPACE instead of isspace.
6917 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6918 instead of isspace.
6919 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6920 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6921 instead of isxdigit and ISDIGIT instead of isdigit.
6922
80fc5e77
SM
69232020-05-22 Simon Marchi <simon.marchi@efficios.com>
6924
6925 * gdbtypes.h (struct type) <field>: New method.
6926 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6927 or type::field.
6928
3cabb6b0
SM
69292020-05-22 Simon Marchi <simon.marchi@efficios.com>
6930
6931 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6932 (TYPE_FIELDS): Use type::fields. Change all call sites that
6933 modify the propery to use type::set_fields instead.
6934
1f704f76
SM
69352020-05-22 Simon Marchi <simon.marchi@efficios.com>
6936
6937 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6938 type::num_fields instead.
6939
5e33d5f4
SM
69402020-05-22 Simon Marchi <simon.marchi@efficios.com>
6941
6942 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6943 methods.
6944 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6945 that modify the number of fields to use type::set_num_fields
6946 instead.
6947
9392ebb3
TT
69482020-05-22 Tom Tromey <tromey@adacore.com>
6949
6950 * compile/compile-object-load.h (munmap_list_free): Don't
6951 declare.
6952
7c13f4e8
AB
69532020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6954
6955 * annotate.c (annotate_source_line): Update return type, add call
6956 to update current symtab and line.
6957 * annotate.h (annotate_source_line): Update return type, and
6958 extend header comment.
6959 * source.c (info_line_command): Check annotation_level before
6960 calling annotate_source_line.
6961 * stack.c (print_frame_info): If calling annotate_source_line
6962 returns true, then don't print any other source line information.
6963
aa370940
SM
69642020-05-21 Simon Marchi <simon.marchi@efficios.com>
6965
6966 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6967
84d53fa9
SM
69682020-05-21 Simon Marchi <simon.marchi@efficios.com>
6969
6970 * coffread.c (patch_type): Remove NULL check before xfree.
6971 * corefile.c (set_gnutarget): Likewise.
6972 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6973 * exec.c (build_section_table): Likewise.
6974 * remote.c (remote_target::pass_signals): Likewise.
6975 * utils.c (n_spaces): Likewise.
6976 * cli/cli-script.c (document_command): Likewise.
6977 * i386-windows-tdep.c (core_process_module_section): Likewise.
6978 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6979
9d428aae
SM
69802020-05-20 Simon Marchi <simon.marchi@efficios.com>
6981
6982 * symfile.c (reread_symbols): Clear objfile's section_offsets
6983 vector and section indices, re-compute them by calling
6984 sym_offsets.
6985
250106a7
TT
69862020-05-20 Tom Tromey <tromey@adacore.com>
6987
6988 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6989 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6990
9a0bacfb
TV
69912020-05-20 Tom de Vries <tdevries@suse.de>
6992
6993 PR symtab/25833
6994 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6995
7b958a48
AM
69962020-05-20 Alan Modra <amodra@gmail.com>
6997
6998 PR 25993
6999 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7000 bfd_set_filename.
7001 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7002 passed to bfd_set_filename.
7003 * symfile-mem.c (add_vsyscall_page): Likewise for string
7004 passed to symbol_file_add_from_memory.
7005 (symbol_file_add_from_memory): Make name param a const char* and
7006 don't strdup.
7007
c7e97679
AM
70082020-05-20 Alan Modra <amodra@gmail.com>
7009
7010 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7011 rather than accessing bfd->filename directly.
7012 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7013 and use bfd_section_name.
7014 * dwarf2/frame.c (decode_frame_entry): Likewise.
7015 * exec.c (exec_set_section_address): Likewise.
7016 * solib-aix.c (solib_aix_bfd_open): Likewise.
7017 * stap-probe.c (get_stap_base_address): Likewise.
7018 * symfile.c (reread_symbols): Likewise.
7019
563c591b
TT
70202020-05-19 Tom Tromey <tromey@adacore.com>
7021
7022 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7023
f408d82c
SM
70242020-05-19 Simon Marchi <simon.marchi@efficios.com>
7025
7026 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7027
98c59b52
PA
70282020-05-19 Pedro Alves <palves@redhat.com>
7029
7030 * NEWS (set exec-file-mismatch): Adjust entry.
7031 * exec.c: Include "build-id.h".
7032 (validate_exec_file): Try to match build IDs instead of filenames.
7033 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7034 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7035 and pass down 'warn_if_slow'.
7036 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7037 gdb_bfd_open_closure to pass it down.
7038 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7039
4111f652
PA
70402020-05-19 Pedro Alves <palves@redhat.com>
7041
7042 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7043 * target.c (target_fileio_open_1): Rename to target_fileio_open
7044 and make extern. Use bool.
7045 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7046 (target_fileio_read_alloc_1): Adjust.
7047 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7048 (target_fileio_open_warn_if_slow): Delete declaration.
7049
ad80db5b
PA
70502020-05-19 Pedro Alves <palves@redhat.com>
7051
7052 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7053 Adjust all callers.
7054
1d6ce4d3
YS
70552020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7056
7057 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7058 whether disp is negative.
7059
9005fbbb
SM
70602020-05-19 Simon Marchi <simon.marchi@efficios.com>
7061
7062 * symfile.h (struct symfile_segment_data)
7063 <~symfile_segment_data>: Remove.
7064 <segment_info>: Change to std::vector.
7065 * symfile.c (default_symfile_segments): Update.
7066 * elfread.c (elf_symfile_segments): Update.
7067
68b888ff
SM
70682020-05-19 Simon Marchi <simon.marchi@efficios.com>
7069
7070 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7071 <segments>: New.
7072 <segment_bases, segment_sizes>: Remove.
7073 * symfile.c (default_symfile_segments): Update.
7074 * elfread.c (elf_symfile_segments): Update.
7075 * remote.c (remote_target::get_offsets): Update.
7076 * solib-target.c (solib_target_relocate_section_addresses):
7077 Update.
7078
62982abd
SM
70792020-05-19 Simon Marchi <simon.marchi@efficios.com>
7080
7081 * symfile.h (struct symfile_segment_data): Initialize fields.
7082 <~symfile_segment_data>: Add.
7083 (symfile_segment_data_up): New.
7084 (struct sym_fns) <sym_segments>: Return a
7085 symfile_segment_data_up.
7086 (default_symfile_segments): Return a symfile_segment_data_up.
7087 (free_symfile_segment_data): Remove.
7088 (get_symfile_segment_data): Return a symfile_segment_data_up.
7089 * symfile.c (default_symfile_segments): Likewise.
7090 (get_symfile_segment_data): Likewise.
7091 (free_symfile_segment_data): Remove.
7092 (symfile_find_segment_sections): Update.
7093 * elfread.c (elf_symfile_segments): Return a
7094 symfile_segment_data_up.
7095 * remote.c (remote_target::get_offsets): Update.
7096 * solib-target.c (solib_target_relocate_section_addresses):
7097 Update.
7098 * symfile-debug.c (debug_sym_segments): Return a
7099 symfile_segment_data_up.
7100
7f204339
RO
71012020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7102
e52a0f1b
RO
7103 PR build/25981
7104 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7105 Hardcode register numbers.
7106
7f204339
RO
7107 PR build/25981
7108 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7109 procfs_find_LDT_entry): Remove.
7110 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7111 procfs_find_LDT_entry): Remove.
7112 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7113 Remove.
7114
7f32a4d5
PA
71152020-05-17 Pedro Alves <palves@redhat.com>
7116 Andrew Burgess <andrew.burgess@embecosm.com>
7117 Keno Fischer <keno@juliacomputing.com>
7118
7119 PR gdb/25741
7120 * breakpoint.c (build_target_condition_list): Update comments.
7121 (build_target_command_list): Update comments and skip matching
7122 locations.
7123 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7124 a separate function. Simplify "set breakpoint auto-hw off"
7125 handling.
7126 (insert_breakpoints): Update comment.
7127 (tracepoint_locations_match): New parameter. For breakpoints,
7128 compare location types too, if the caller wants to.
7129 (handle_automatic_hardware_breakpoints): New functions.
7130 (bp_location_is_less_than): Also sort by location type and
7131 hardware breakpoint length.
7132 (update_global_location_list): Handle "set breakpoint auto-hw on"
7133 here.
7134 (update_breakpoint_locations): Ask breakpoint_locations_match to
7135 ignore location types.
7136
7d93a1e0
SM
71372020-05-16 Simon Marchi <simon.marchi@efficios.com>
7138
7139 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7140 type::name instead.
7141
d0e39ea2
SM
71422020-05-16 Simon Marchi <simon.marchi@efficios.com>
7143
7144 * gdbtypes.h (struct type) <name, set_name>: New methods.
7145 (TYPE_CODE): Use type::name. Change all call sites used to set
7146 the name to use type::set_name instead.
7147
2dab0c7b
TT
71482020-05-16 Tom Tromey <tom@tromey.com>
7149
7150 * top.c (quit_force): Update.
7151 * infrun.c (handle_no_resumed): Update.
7152 * top.h (all_uis): New function.
7153 (ALL_UIS): Remove.
7154
59f7bd8d
SM
71552020-05-16 Simon Marchi <simon.marchi@efficios.com>
7156
7157 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7158
9bf058f0
PA
71592020-05-16 Pedro Alves <palves@redhat.com>
7160
7161 * ia64-linux-nat.c
7162 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7163 Declare method.
7164 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7165
8f86ae1a
SM
71662020-05-15 Simon Marchi <simon.marchi@efficios.com>
7167
7168 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7169 (sparc64_adi_info): Likewise.
7170
d6bc0792
TT
71712020-05-15 Tom Tromey <tom@tromey.com>
7172
7173 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7174 block_objfile.
7175 (lookup_objfile_from_block): Remove.
7176 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7177 (lookup_global_symbol): Use block_objfile.
7178 * symtab.h (lookup_objfile_from_block): Don't declare.
7179 * printcmd.c (clear_dangling_display_expressions): Use
7180 block_objfile.
7181 * parse.c (operator_check_standard): Use block_objfile.
7182
8c14c3a3
TT
71832020-05-15 Tom Tromey <tom@tromey.com>
7184
7185 * language.c (language_alloc_type_symbol): Set
7186 SYMBOL_SECTION.
7187 * symtab.c (initialize_objfile_symbol): Remove.
7188 (allocate_symbol): Remove.
7189 (allocate_template_symbol): Remove.
7190 * dwarf2/read.c (fixup_go_packaging): Use "new".
7191 (new_symbol): Use "new".
7192 (read_variable): Don't call initialize_objfile_symbol. Use
7193 "new".
7194 (read_func_scope): Use "new".
7195 * xcoffread.c (process_xcoff_symbol): Don't call
7196 initialize_objfile_symbol.
7197 (SYMBOL_DUP): Remove.
7198 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7199 "new".
7200 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7201 (allocate_template_symbol): Don't declare.
7202 (struct symbol): Add copy constructor. Change defaults.
7203 * jit.c (finalize_symtab): Use "new".
7204 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7205 Use "new".
7206 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7207 (common_block_end): Use "new".
7208 * mdebugread.c (parse_symbol): Use "new".
7209 (new_symbol): Likewise.
7210
5b4a1a8d
PW
72112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7212
7213 * NEWS: Mention changes to help and apropos.
7214
57b4f16e
PW
72152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7216
7217 * command.h (enum command_class): Improve comments, document
7218 that class_alias is for user-defined aliases, give the class
7219 name for each class, remove unused class_xdb.
7220 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7221 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7222 by a precise class.
7223 * infcmd.c (_initialize_infcmd): Likewise.
7224 * reverse.c (_initialize_reverse): Likewise.
7225 * stack.c (_initialize_stack): Likewise.
7226 * symfile.c (_initialize_symfile): Likewise.
7227 * tracepoint.c (_initialize_tracepoint): Likewise.
7228
7c05caf7
PW
72292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7230
7231 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7232 when their aliased command is traversed.
7233 (help_cmd): Add fput_command_names_styled call to
7234 output command name and aliases when command has an alias.
7235
3b3aaacb
PW
72362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7237
7238 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7239 * cli/cli-decode.c (help_cmd_list): Declare as static,
7240 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7241 a command together with the command.
7242 (fput_command_name_styled, fput_command_names_styled): New functions.
7243 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7244 fput_command_name_styled.
7245 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7246 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7247
7aa1b46f
PW
72482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7249
7250 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7251 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7252 * command.h (cmd_show_list): Likewise.
7253 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7254 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7255
89bcba74
PW
72562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7257
7258 * unittests/command-def-selftests.c (traverse_command_structure):
7259 Verify all commands of a list have the same prefix command and
7260 that only the top cmdlist commands have a null prefix.
7261
3f4d92eb
PW
72622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7263
7264 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7265 as prefix, not one of its aliases.
7266 (set_cmd_prefix): Remove.
7267 (do_add_cmd): Centralize the setting of the prefix of a command, when
7268 command is defined after its full chain of prefix commands.
7269 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7270 (add_setshow_cmd_full): Likewise.
7271 (update_prefix_field_of_prefixed_commands): New function.
7272 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7273 update_prefix_field_of_prefixed_commands.
7274 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7275 addresses of remote_set_cmdlist and remote_show_cmdlist given
7276 as argument, not the address of an argument.
7277 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7278 * gdb/remote.c (_initialize_remote): Likewise.
7279
0605465f
PW
72802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7281
7282 * cli/cli-cmds.c (alias_command): Check for an existing alias
7283 using lookup_cmd_composition, as valid_command_p is too strict
7284 and forbids aliases that are the prefix of an existing alias
7285 or command.
7286 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7287 command is properly recognised as a valid command.
7288
58e6ac70
PW
72892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7290
7291 * unittests/help-doc-selftests.c: Rename to
7292 unittests/command-def-selftests.c
7293 * unittests/command-def-selftests.c (help_doc_tests): Update some
7294 comments.
7295 (command_structure_tests, traverse_command_structure): New namespace
7296 and function.
7297 (command_structure_invariants_tests): New function.
7298 (_initialize_command_def_selftests) Renamed from
7299 _initialize_help_doc_selftests, register command_structure_invariants
7300 selftest.
7301
a7b9ceb8
PW
73022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7303
7304 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7305 an alias of 'show'.
7306
b2188a06
JB
73072020-05-15 Joel Brobecker <brobecker@adacore.com>
7308
7309 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7310 ada_is_fixed_point_type. Update all callers.
7311 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7312 all callers.
7313 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7314 Update all callers.
7315 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7316 print_fixed_point_type. Update all callers.
7317 * ada-valprint.c (ada_value_print_num): Replace call to
7318 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7319
a51951c2
KB
73202020-05-14 Kevin Buettner <kevinb@redhat.com>
7321
7322 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7323 processors.
7324 (cpu_supports_bts): Add CV_AMD case.
7325
29d6859f
LM
73262020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7327 Simon Marchi <simon.marchi@efficios.com>
7328
7329 * infrun.c (stop_all_threads): Collect multiple wait events at
7330 each pass.
7331
78134374
SM
73322020-05-14 Simon Marchi <simon.marchi@efficios.com>
7333
7334 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7335 type::code instead.
7336
67607e24
SM
73372020-05-14 Simon Marchi <simon.marchi@efficios.com>
7338
7339 * gdbtypes.h (struct type) <code, set_code>: New methods.
7340 (TYPE_CODE): Use type::code. Change all call sites used to set
7341 the code to use type::set_code instead.
7342
a05575d3
TBA
73432020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7344 Tom de Vries <tdevries@suse.de>
7345 Pedro Alves <palves@redhat.com>
7346
7347 PR threads/25478
7348 * infrun.c (stop_all_threads): Do NOT ignore
7349 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7350 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7351 received.
7352 (handle_no_resumed): Remove code handling a live inferior with no
7353 threads.
7354 * remote.c (has_single_non_exited_thread): New.
7355 (remote_target::update_thread_list): Do not delete a thread if is
7356 the last thread of the process.
7357 * thread.c (thread_select): Call delete_exited_threads instead of
7358 prune_threads.
7359
6ad82919
TBA
73602020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7361
7362 * infrun.c (stop_all_threads): Enable/disable thread events of all
7363 targets. Move a debug message denoting the end of the function
7364 into the SCOPED_EXIT block.
7365
d890404b
TBA
73662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7367
7368 * process-stratum-target.h: Include <set>.
7369 (all_non_exited_process_targets, switch_to_target_no_thread): New
7370 function declarations.
7371 * process-stratum-target.c (all_non_exited_process_targets)
7372 (switch_to_target_no_thread): New function implementations.
7373
293b3ebc
TBA
73742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7375
7376 * infrun.c (handle_inferior_event): Extract out a piece of code
7377 into...
7378 (mark_non_executing_threads): ...this new function.
7379
7ca9b62a
TBA
73802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7381
7382 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7383 use.
7384
fc75c28b
TBA
73852020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7386
7387 * regcache.c (regcache_read_pc_protected): New function
7388 implementation that returns 0 if the PC cannot read via
7389 'regcache_read_pc'.
7390 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7391 instead of 'regcache_read_pc'.
7392 (keep_going_pass_signal): Ditto.
7393
a89febbd
TT
73942020-05-13 Tom Tromey <tromey@adacore.com>
7395
7396 * ada-lang.c (align_value): Remove.
7397 (ada_template_to_fixed_record_type_1): Use align_up.
7398
f7e23710
TBA
73992020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7400
7401 * async-event.c: Update the copyright year.
7402 * async-event.h: Update the copyright year.
7403
02ff80c2
SM
74042020-05-12 Simon Marchi <simon.marchi@efficios.com>
7405
7406 * objfiles.h (is_addr_in_objfile,
7407 shared_objfile_contains_address_p): Return bool.
7408 * objfile.c (is_addr_in_objfile,
7409 shared_objfile_contains_address_p): Return bool.
7410
4fd6c7e8
TT
74112020-05-11 Tom Tromey <tromey@adacore.com>
7412
7413 * cli/cli-cmds.c (info_command): Restore.
7414 (_initialize_cli_cmds): Use add_prefix_command for "info".
7415 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7416
5eb68a39
TT
74172020-05-11 Tom Tromey <tromey@adacore.com>
7418
7419 * ada-lang.c (ada_value_primitive_field): Now public.
7420 * ada-lang.h (ada_value_primitive_field): Declare.
7421 * ada-valprint.c (print_field_values): Use
7422 ada_value_primitive_field for wrapper fields.
7423
7666722f
TV
74242020-05-11 Tom de Vries <tdevries@suse.de>
7425
7426 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7427 MODULE_DOMAIN.
7428
3ee6bb11
TV
74292020-05-11 Tom de Vries <tdevries@suse.de>
7430
7431 PR symtab/25941
7432 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7433 with length 0, if not gdb-produced.
7434 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7435
43434996
TV
74362020-05-09 Tom de Vries <tdevries@suse.de>
7437
7438 PR gdb/25955
7439 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7440 calculation.
7441
2f78cffc
TT
74422020-05-09 Tom Tromey <tom@tromey.com>
7443
7444 * top.c (server_command): Now bool.
7445 * top.h (server_command): Now bool.
7446
4f7bc5ed
TT
74472020-05-08 Tom Tromey <tromey@adacore.com>
7448
7449 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7450 already being processed.
7451
8be4b118
TT
74522020-05-08 Tom Tromey <tom@tromey.com>
7453
7454 * printcmd.c (struct display) <next>: Remove.
7455 <display>: New constructor.
7456 <exp_string>: Now a std::string.
7457 <enabled_p>: Now a bool.
7458 (display_number): Move definition earlier.
7459 (displays): Rename from display_chain. Now a std::vector.
7460 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7461 (display_command): Update.
7462 (do_one_display, disable_display)
7463 (enable_disable_display_command, do_enable_disable_display):
7464 Update.
7465 (free_display): Remove.
7466 (clear_displays): Rewrite.
7467 (delete_display): Update.
7468 (map_display_numbers): Use function_view. Remove "data"
7469 parameter. Update.
7470 (do_delete_display): Remove.
7471 (undisplay_command): Update.
7472 (do_one_display, do_displays, disable_display)
7473 (info_display_command): Update.
7474 (do_enable_disable_display): Remove.
7475 (enable_disable_display_command)
7476 (clear_dangling_display_expressions): Update.
7477
94c93c35
TT
74782020-05-08 Tom Tromey <tom@tromey.com>
7479
7480 * symtab.c (set_symbol_cache_size)
7481 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7482 (maintenance_print_symbol_cache_statistics): Update.
7483 * symmisc.c (print_symbol_bcache_statistics)
7484 (print_objfile_statistics, maintenance_print_objfiles)
7485 (maintenance_info_symtabs, maintenance_check_symtabs)
7486 (maintenance_expand_symtabs, maintenance_info_line_tables):
7487 Update.
7488 * symfile-debug.c (set_debug_symfile): Update.
7489 * source.c (forget_cached_source_info): Update.
7490 * python/python.c (gdbpy_progspaces): Update.
7491 * psymtab.c (maintenance_info_psymtabs): Update.
7492 * probe.c (parse_probes): Update.
7493 * linespec.c (iterate_over_all_matching_symtabs)
7494 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7495 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7496 * exec.c (exec_target::close): Update.
7497 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7498 * breakpoint.c (print_one_breakpoint_location)
7499 (create_longjmp_master_breakpoint)
7500 (create_std_terminate_master_breakpoint): Update.
7501 * progspace.c (program_spaces): Now a std::vector.
7502 (maybe_new_address_space): Update.
7503 (add_program_space): Remove.
7504 (program_space::program_space): Update.
7505 (remove_program_space): Update.
7506 (number_of_program_spaces): Remove.
7507 (print_program_space, update_address_spaces): Update.
7508 * progspace.h (program_spaces): Change type.
7509 (ALL_PSPACES): Remove.
7510 (number_of_program_spaces): Don't declare.
7511 (struct program_space) <next>: Remove.
7512
a1fd1ac9
TT
75132020-05-08 Tom Tromey <tom@tromey.com>
7514
7515 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7516 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7517 (enable_break): Update.
7518 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7519 (frv_fdpic_find_canonical_descriptor): Update.
7520 (frv_fetch_objfile_link_map): Update.
7521 * progspace.c (program_space::free_all_objfiles): Update.
7522 (program_space::solibs): New method.
7523 * progspace.h (struct program_space) <solibs>: New method.
7524 * solist.h (master_so_list): Don't declare.
7525 (ALL_SO_LIBS): Remove.
7526 * solib.h (so_list_head): Remove.
7527 (update_solib_list): Update comment.
7528 * solib.c (master_so_list): Remove.
7529 (solib_used, update_solib_list, solib_add)
7530 (info_sharedlibrary_command, clear_solib)
7531 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7532
38eae084
TT
75332020-05-08 Tom Tromey <tom@tromey.com>
7534
7535 * extension.c (extension_languages): Now a std::array.
7536 (ALL_EXTENSION_LANGUAGES): Remove.
7537 (get_ext_lang_defn, get_ext_lang_of_file)
7538 (eval_ext_lang_from_control_command): Update.
7539 (finish_ext_lang_initialization)
7540 (auto_load_ext_lang_scripts_for_objfile)
7541 (ext_lang_type_printers::ext_lang_type_printers)
7542 (apply_ext_lang_type_printers)
7543 (ext_lang_type_printers::~ext_lang_type_printers)
7544 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7545 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7546 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7547 (get_matching_xmethod_workers, ext_lang_colorize)
7548 (ext_lang_before_prompt): Update.
7549 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7550
596dc4ad
TT
75512020-05-08 Tom Tromey <tom@tromey.com>
7552
7553 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7554 overload.
7555 <swap_string, m_string>: Remove.
7556 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7557 Update.
7558 * stabsread.c (define_symbol, read_type): Update.
7559 * linespec.c (find_linespec_symbols): Update.
7560 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7561 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7562 * dbxread.c (read_dbx_symtab): Update.
7563 * cp-support.h (cp_canonicalize_string_full)
7564 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7565 Return unique_xmalloc_ptr.
7566 * cp-support.c (inspect_type): Update.
7567 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7568 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7569 Likewise.
7570 * c-typeprint.c (print_name_maybe_canonical): Update.
7571 * break-catch-throw.c (check_status_exception_catchpoint):
7572 Update.
7573
bf4cb9be
TV
75742020-05-08 Tom de Vries <tdevries@suse.de>
7575
7576 * infrun.c (follow_fork): Copy current_line and current_symtab to
7577 child thread.
7578
a1b68f28
SM
75792020-05-07 Simon Marchi <simon.marchi@efficios.com>
7580
7581 * async-event.c (struct async_signal_handler, struct
7582 async_event_handler): Reformat, remove typedef.
7583
98d48915
SM
75842020-05-07 Simon Marchi <simon.marchi@efficios.com>
7585
7586 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7587 access thistype->main_type->dyn_prop_list directly.
7588
7aa91313
SM
75892020-05-07 Simon Marchi <simon.marchi@efficios.com>
7590
7591 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7592 (remove_dyn_prop): Remove. Update all users to use
7593 type::remove_dyn_prop.
7594 * gdbtypes.c (remove_dyn_prop): Rename to...
7595 (type::remove_dyn_prop): ... this.
7596
5c54719c
SM
75972020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7598
7599 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7600 (add_dyn_prop): Remove. Update all users to use
7601 type::add_dyn_prop.
7602 * gdbtypes.c (add_dyn_prop): Rename to...
7603 (type::add_dyn_prop): ... this.
7604
24e99c6c
SM
76052020-05-07 Simon Marchi <simon.marchi@efficios.com>
7606
7607 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7608 (get_dyn_prop): Remove. Update all users to use
7609 type::dyn_prop.
7610 * gdbtypes.c (get_dyn_prop): Rename to...
7611 (type::dyn_prop): ... this.
7612
0d4bf016
SM
76132020-05-06 Simon Marchi <simon.marchi@efficios.com>
7614
7615 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7616
ac4a4f1c
SM
76172020-05-06 Simon Marchi <simon.marchi@efficios.com>
7618
7619 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7620 instruction, skip it if it's there.
7621
a3bbacc1
SM
76222020-05-05 Simon Marchi <simon.marchi@efficios.com>
7623
7624 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7625
c3236f84
SM
76262020-05-04 Simon Marchi <simon.marchi@efficios.com>
7627
7628 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7629 * gdbtypes.c (recursive_dump_type): Remove use of
7630 TYPE_INCOMPLETE.
7631
3b6acaee
TT
76322020-05-03 Tom Tromey <tom@tromey.com>
7633
7634 * breakpoint.c (catch_command, tcatch_command): Remove.
7635 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7636 add_show_prefix_cmd.
7637 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7638 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7639 Remove.
7640 (add_internal_problem_command): Use add_basic_prefix_cmd,
7641 add_show_prefix_cmd.
7642 * mips-tdep.c (set_mipsfpu_command): Remove.
7643 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7644 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7645 (_initialize_index_cache): Use add_basic_prefix_cmd.
7646 * memattr.c (dummy_cmd): Remove.
7647 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7648 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7649 (_initialize_tui_win): Use add_basic_prefix_cmd,
7650 add_show_prefix_cmd.
7651 * cli/cli-logging.c (set_logging_command): Remove.
7652 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7653 add_show_prefix_cmd.
7654 (show_logging_command): Remove.
7655 * target.c (target_command): Remove.
7656 (add_target): Use add_basic_prefix_cmd.
7657
a51119cd
HD
76582020-05-02 Hannes Domani <ssbssa@yahoo.de>
7659
7660 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7661
652fc23a 76622020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7663
652fc23a
PW
7664 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7665 info_command.
7666
117539e6
KR
76672020-04-30 Kamil Rytarowski <n54@gmx.com>
7668
7669 * nbsd-nat.c (nbsd_enable_proc_events)
7670 (nbsd_nat_target::post_startup_inferior): Add.
7671 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7672 (nbsd_nat_target::update_thread_list): Rewrite.
7673 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7674 "PTRACE_LWP_CREATE".
7675 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7676
102e38eb 76772020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7678
102e38eb
PW
7679 * stack.c (_initialize_stack): Remove duplicated creation
7680 of "frame" command and "f" alias.
7681
ee9d1e5f
HD
76822020-04-30 Hannes Domani <ssbssa@yahoo.de>
7683
7684 PR gdb/18706
7685 * gdbtypes.c (check_typedef): Calculate size of array of
7686 stubbed type.
7687
627c7fb8
HD
76882020-04-30 Hannes Domani <ssbssa@yahoo.de>
7689
7690 PR gdb/15559
7691 * i386-tdep.c (i386_push_dummy_call): Call
7692 i386_thiscall_push_dummy_call.
7693 (i386_thiscall_push_dummy_call): New function.
7694 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7695 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7696 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7697
ffc2844e
SM
76982020-04-29 Simon Marchi <simon.marchi@efficios.com>
7699
7700 * gdbarch.sh (do_read): Add shellcheck disable directive for
7701 warning SC2162.
7702
1207375d
SM
77032020-04-29 Simon Marchi <simon.marchi@efficios.com>
7704
7705 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7706 "referenced but not assigned" warning.
7707
9fdb2916
SM
77082020-04-29 Simon Marchi <simon.marchi@efficios.com>
7709
7710 * gdbarch.sh: Remove code that sets fallbackdefault.
7711
759cea5e
SM
77122020-04-29 Simon Marchi <simon.marchi@efficios.com>
7713
7714 * gdbarch.sh: Use shell operators && and || instead of
7715 -a and -o.
7716
cb02ab24
SM
77172020-04-29 Simon Marchi <simon.marchi@efficios.com>
7718
7719 * gdbarch.sh: Use $(...) instead of `...`.
7720
a6fc5ffc
SM
77212020-04-29 Simon Marchi <simon.marchi@efficios.com>
7722
7723 * gdbarch.sh: Use double quotes around variables.
7724
8d113d13
SM
77252020-04-29 Simon Marchi <simon.marchi@efficios.com>
7726
7727 * gdbarch.sh: Use %s with printf, instead of variables in the
7728 format string.
7729
ed6acedd
TT
77302020-04-29 Tom Tromey <tromey@adacore.com>
7731
7732 PR ada/25875:
7733 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7734 type fields here.
7735 (read_enumeration_type): Call
7736 update_enumeration_type_from_children later. Update comments.
7737 (process_enumeration_scope): Don't create type fields.
7738
b68b1b58
KR
77392020-04-29 Kamil Rytarowski <n54@gmx.com>
7740
7741 * nbsd-tdep.c: Include "xml-syscall.h".
7742 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7743
f94b2e03
KR
77442020-04-29 Kamil Rytarowski <n54@gmx.com>
7745
7746 * nbsd-nat.c: Include "sys/wait.h".
7747 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7748 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7749 (nbsd_nat_target::remove_exec_catchpoint)
7750 (nbsd_nat_target::set_syscall_catchpoint): Add.
7751 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7752 (nbsd_nat_target::insert_exec_catchpoint)
7753 (nbsd_nat_target::remove_exec_catchpoint)
7754 (nbsd_nat_target::set_syscall_catchpoint): Add.
7755 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7756 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7757 `nbsd_get_syscall_number'.
7758
fc49bc72
TT
77592020-04-29 Tom Tromey <tom@tromey.com>
7760
7761 * stack.c (print_block_frame_labels): Remove.
7762
d642b692
HD
77632020-04-29 Hannes Domani <ssbssa@yahoo.de>
7764
7765 PR gdb/17320
7766 * ada-valprint.c (val_print_packed_array_elements): Move array
7767 end bracket to new line.
7768 (ada_val_print_string): Remove extra spaces before first array
7769 element.
7770 * c-valprint.c (c_value_print_array): Likewise.
7771 * m2-valprint.c (m2_print_array_contents): Likewise.
7772 (m2_value_print_inner): Likewise.
7773 * p-valprint.c (pascal_value_print_inner): Likewise.
7774 * valprint.c (generic_val_print_array): Likewise.
7775 (value_print_array_elements): Move first array element and array
7776 end bracket to new line.
7777
ea90f227
TV
77782020-04-29 Tom de Vries <tdevries@suse.de>
7779
7780 PR symtab/25889
7781 * linespec.c (find_method): Fix ix calculation.
7782
4498ef4f
KR
77832020-04-28 Kamil Rytarowski <n54@gmx.com>
7784
7785 * syscalls/update-netbsd.sh: New file.
7786 * syscalls/netbsd.xml: Regenerate.
7787 * data-directory/Makefile.in: Register `netbsd.xml' in
7788 `SYSCALLS_FILES'.
7789
a55e30b5
SM
77902020-04-28 Simon Marchi <simon.marchi@efficios.com>
7791
7792 * syscalls/update-freebsd.sh: Add double quotes.
7793
2b2fbab8
TT
77942020-04-28 Tom Tromey <tom@tromey.com>
7795
7796 * NEWS: Update.
7797 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7798 (cmdpy_init): Allow class_tui.
7799
a65189c9
TV
78002020-04-28 Mark Williams <mark@myosotissp.com>
7801
7802 PR gdb/24480
7803 * dwarf2read.c: Add missing assingments to list_in_scope when
7804 start_symtab was already called.
7805
1b95cdb7
SM
78062020-04-28 Simon Marchi <simon.marchi@efficios.com>
7807
7808 PR gdb/25881
7809 * dwarf2/read.c (offset_map_type): Use
7810 gdb:hash_enum<sect_offset> as hash function.
7811
15cd93d0
TV
78122020-04-28 Tom de Vries <tdevries@suse.de>
7813
7814 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7815 with DW_AT_signature.
7816
1eb39914
SM
78172020-04-27 Simon Marchi <simon.marchi@efficios.com>
7818
7819 * configure.ac: Remove check for fs_base/gs_base in
7820 user_regs_struct.
7821 * configure: Re-generate.
7822 * config.in: Re-generate.
7823 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7824 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7825 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7826
991a3e2e
LM
78272020-04-27 Luis Machado <luis.machado@linaro.org>
7828
7829 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7830 problematic inline frame unwinding situation.
7831 * frame.c (frame_id_computed_p): New function.
7832 * frame.h (frame_id_computed_p): New prototype.
7833
361ba0e8
TT
78342020-04-26 Tom Tromey <tom@tromey.com>
7835
7836 * command.h (enum command_class) <class_pseudo>: Remove.
7837
bc3609fd
PW
78382020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7839
7840 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7841 and whitespace.
7842
b9771db7
KR
78432020-04-25 Kamil Rytarowski <n54@gmx.com>
7844
ec16513e
SM
7845 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7846 `PT_GET_PROCESS_STATE' block.
b9771db7 7847
7151c1af
TT
78482020-04-24 Tom Tromey <tom@tromey.com>
7849
7850 * symtab.h (symbol_get_demangled_name): Don't declare.
7851 * symtab.c (symbol_get_demangled_name): Remove.
7852 (general_symbol_info::natural_name)
7853 (general_symbol_info::demangled_name): Update.
7854
906bb4c5
TT
78552020-04-24 Tom Tromey <tom@tromey.com>
7856
7857 PR rust/25025:
7858 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7859
bcfe6157
TT
78602020-04-24 Tom Tromey <tom@tromey.com>
7861
7862 PR symtab/12707:
7863 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7864 exists.
7865 (new_symbol): Likewise.
7866 * compile/compile-object-load.c (get_out_value_type): Use
7867 symbol_matches_search_name.
7868
f049a313
TT
78692020-04-24 Tom Tromey <tom@tromey.com>
7870
7871 * dwarf2/read.c (add_partial_symbol): Do not call
7872 compute_and_set_names.
7873
76e288d1
TT
78742020-04-24 Tom Tromey <tom@tromey.com>
7875
7876 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7877 overload.
7878
2467f4f6
TT
78792020-04-24 Tom Tromey <tom@tromey.com>
7880
7881 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7882 (add_psymbol_to_list): New overload. Make old overload call new
7883 one.
7884 * psympriv.h (add_psymbol_to_list): New overload.
7885
e61108c9
TT
78862020-04-24 Tom Tromey <tom@tromey.com>
7887
7888 * dwarf2/read.c (partial_die_info::read) <case
7889 DW_AT_linkage_name>: Use value_as_string.
7890 (dwarf2_string_attr): Use value_as_string.
7891 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7892 method.
7893 * dwarf2/attribute.c (attribute::value_as_string): New method.
7894
8c87a452
TT
78952020-04-24 Tom Tromey <tom@tromey.com>
7896
7897 * symtab.c (general_symbol_info::natural_name)
7898 (general_symbol_info::demangled_name): Check for language_rust.
7899
787de330
TT
79002020-04-24 Tom Tromey <tom@tromey.com>
7901
7902 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7903 (dwarf2_physname): ... from here.
7904 (partial_die_info::read): Add Rust "{" hack.
7905
ff985671
TT
79062020-04-24 Tom Tromey <tom@tromey.com>
7907
7908 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7909 method.
7910 (symbol_set_demangled_name): Don't declare.
7911 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7912 symbol_set_demangled_name.
7913 (general_symbol_info::set_language)
7914 (general_symbol_info::compute_and_set_names): Update.
7915 * minsyms.c (minimal_symbol_reader::install): Update.
7916 * dwarf2/read.c (new_symbol): Update.
7917
1acda803
TT
79182020-04-24 Tom Tromey <tromey@adacore.com>
7919
7920 PR python/23662:
7921 * python/py-type.c (convert_field): Handle
7922 FIELD_LOC_KIND_DWARF_BLOCK.
7923 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7924 (typy_get_dynamic): Nw function.
7925 (type_object_getset): Add "dynamic".
7926 * NEWS: Add entry.
7927
d656f129
TT
79282020-04-24 Tom Tromey <tromey@adacore.com>
7929
7930 * ada-typeprint.c (print_choices, print_variant_part)
7931 (print_record_field_types_dynamic): New functions.
7932 (print_record_field_types): Use print_record_field_types_dynamic.
7933
7d79de9a
TT
79342020-04-24 Tom Tromey <tromey@adacore.com>
7935
7936 * dwarf2/read.c (handle_data_member_location): New overload.
7937 (dwarf2_add_field): Use it.
7938 (decode_locdesc): Add "computed" parameter. Update comment.
7939 * gdbtypes.c (is_dynamic_type_internal): Also look for
7940 FIELD_LOC_KIND_DWARF_BLOCK.
7941 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7942 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7943 virtual base classes.
7944 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7945 FIELD_LOC_KIND_DWARF_BLOCK.
7946
f8e89861
TT
79472020-04-24 Tom Tromey <tromey@adacore.com>
7948
7949 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7950 * gdbtypes.c (is_dynamic_type_internal): Check
7951 TYPE_HAS_DYNAMIC_LENGTH.
7952 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7953 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7954 New macros.
7955 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7956 constant.
7957
9c6a1327
TT
79582020-04-24 Tom Tromey <tromey@adacore.com>
7959
7960 * dwarf2/read.c (struct variant_field): Rewrite.
7961 (struct variant_part_builder): New.
7962 (struct nextfield): Remove "variant" field. Add "offset".
7963 (struct field_info): Add "current_variant_part" and
7964 "variant_parts".
7965 (alloc_discriminant_info): Remove.
7966 (alloc_rust_variant): New function.
7967 (quirk_rust_enum): Update.
7968 (dwarf2_add_field): Set "offset" member. Don't handle
7969 DW_TAG_variant_part.
7970 (offset_map_type): New typedef.
7971 (convert_variant_range, create_one_variant)
7972 (create_one_variant_part, create_variant_parts)
7973 (add_variant_property): New functions.
7974 (dwarf2_attach_fields_to_type): Call add_variant_property.
7975 (read_structure_type): Don't handle DW_TAG_variant_part.
7976 (handle_variant_part, handle_variant): New functions.
7977 (handle_struct_member_die): Use them.
7978 (process_structure_scope): Don't handle variant parts.
7979 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7980 (struct discriminant_info): Remove.
7981 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7982 (struct main_type) <flag_discriminated_union>: Remove.
7983 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7984 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7985 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7986 Update.
7987 * valops.c (value_union_variant): Remove.
7988 * value.h (value_union_variant): Don't declare.
7989
b249d2c2
TT
79902020-04-24 Tom Tromey <tromey@adacore.com>
7991
7992 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7993 (ada_value_primitive_packed_val): Update.
7994 * ada-valprint.c (ada_value_print_1): Update.
7995 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7996 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7997 just an address. Use evaluate_for_locexpr_baton.
7998 (dwarf2_evaluate_property): Update.
7999 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8000 array_view.
8001 * findvar.c (default_read_var_value): Update.
8002 * gdbtypes.c (compute_variant_fields_inner)
8003 (resolve_dynamic_type_internal): Update.
8004 (resolve_dynamic_type): Change type of valaddr parameter.
8005 * gdbtypes.h (resolve_dynamic_type): Update.
8006 * valarith.c (value_subscripted_rvalue): Update.
8007 * value.c (value_from_contents_and_address): Update.
8008
61122aa9
TT
80092020-04-24 Tom Tromey <tromey@adacore.com>
8010
8011 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8012 "push_initial_value" parameter.
8013 (dwarf2_evaluate_property): Likewise.
8014 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8015
ef83a141
TT
80162020-04-24 Tom Tromey <tromey@adacore.com>
8017
8018 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8019 (variant::matches, compute_variant_fields_recurse)
8020 (compute_variant_fields_inner, compute_variant_fields): New
8021 functions.
8022 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8023 Use resolved_type after type is made.
8024 (operator==): Add new cases.
8025 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8026 (struct discriminant_range, struct variant, struct variant_part):
8027 New.
8028 (union dynamic_prop_data) <variant_parts, original_type>: New
8029 members.
8030 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8031 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8032 constants.
8033 * value.c (unpack_bits_as_long): Now public.
8034 * value.h (unpack_bits_as_long): Declare.
8035
675127ec
TT
80362020-04-24 Tom Tromey <tromey@adacore.com>
8037
8038 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8039 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8040
9852ceef
HD
80412020-04-24 Hannes Domani <ssbssa@yahoo.de>
8042
8043 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8044
7632c6ce
KR
80452020-04-24 Kamil Rytarowski <n54@gmx.com>
8046
8047 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8048 (remove_fork_catchpoint, post_startup_inferior)
8049 (post_attach): Move...
8050 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8051 (remove_fork_catchpoint, post_startup_inferior)
8052 (post_attach): ...here.
8053 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8054 (remove_fork_catchpoint, post_startup_inferior)
8055 (post_attach): Move...
8056 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8057 (remove_fork_catchpoint, post_startup_inferior)
8058 (post_attach): ...here.
8059
7be2bb4f
TT
80602020-04-24 Tom Tromey <tromey@adacore.com>
8061
8062 * nat/windows-nat.h (struct windows_thread_info)
8063 <pc_adjusted>: New member.
8064 * windows-nat.c (windows_fetch_one_register): Check
8065 pc_adjusted.
8066 (windows_nat_target::get_windows_debug_event)
8067 (windows_nat_target::wait): Set pc_adjusted.
8068
f80cb3b4
TV
80692020-04-24 Tom de Vries <tdevries@suse.de>
8070
8071 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8072 Run gdb-add-index inside temp dir.
8073
29514b87
TT
80742020-04-23 Tom Tromey <tromey@adacore.com>
8075
8076 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8077 in loop.
8078
5939967b
LM
80792020-04-23 Luis Machado <luis.machado@linaro.org>
8080
8081 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8082 get_frame_register instead of gdbarch_unwind_pc.
8083
70bc38f5
TV
80842020-04-23 Tom de Vries <tdevries@suse.de>
8085
8086 * symtab.c (lookup_global_symbol): Prefer def over decl.
8087
de82891c
TV
80882020-04-23 Tom de Vries <tdevries@suse.de>
8089
8090 PR symtab/25807
8091 * block.c (best_symbol, better_symbol): Promote to external.
8092 * block.h (best_symbol, better_symbol): Declare.
8093 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8094 decl.
8095
ecc6c606
TT
80962020-04-23 Tom Tromey <tromey@adacore.com>
8097
8098 PR ada/25837:
8099 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8100 "const char *", not a "const std::string &".
8101 <name_and_matcher::operator==>: Update.
8102 * unittests/lookup_name_info-selftests.c: Change type of
8103 "result".
8104
740480b8
TT
81052020-04-23 Tom Tromey <tom@tromey.com>
8106
8107 * inferior.h (iterate_over_inferiors): Don't declare.
8108 * inferior.c (iterate_over_inferiors): Remove.
8109 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8110 Remove.
8111 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8112 use iterate_over_inferiors.
8113 (darwin_resume_inferior_it)
8114 (struct resume_inferior_threads_param)
8115 (darwin_resume_inferior_threads_it): Remove.
8116 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8117
ae3ab1f0
TV
81182020-04-23 Tom de Vries <tdevries@suse.de>
8119
8120 * blockframe.c (find_pc_partial_function): Use
8121 find_pc_sect_compunit_symtab rather than
8122 objfile->sf->qf->find_pc_sect_compunit_symtab.
8123
317d2668
TV
81242020-04-22 Tom de Vries <tdevries@suse.de>
8125
8126 PR symtab/25764
8127 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8128 in psymtabs.
8129
eea9e357
TV
81302020-04-22 Tom de Vries <tdevries@suse.de>
8131
8132 PR symtab/25801
8133 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8134 symtabs.
8135
3d5afab3
TV
81362020-04-22 Tom de Vries <tdevries@suse.de>
8137
8138 PR symtab/25700
8139 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8140 CU if already created.
8141
d43b7a2d
TBA
81422020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8143
8144 * infrun.c (displaced_step_fixup): Switch to the event_thread
8145 before calling displaced_step_restore, not after.
8146
d89edf9b
MM
81472020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8148
8149 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8150 its inferior is not recorded by us.
8151 (record_btrace_target_open): Replace call to
8152 all_non_exited_threads () with call to current_inferior
8153 ()->non_exited_threads ().
8154 (record_btrace_target::stop_recording): Likewise.
8155 (record_btrace_target::close): Likewise.
8156 (record_btrace_target::wait): Likewise.
8157 (record_btrace_target::record_stop_replaying): Likewise.
8158
5897fd49
MM
81592020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8160
8161 * btrace.c (btrace_enable): Throw an error on double enables and
8162 when enabling recording fails.
8163 (btrace_disable): Throw an error if the thread is not recorded.
8164
1a476b6d
MM
81652020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8166
8167 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8168 request if we do not have a thread_info.
8169
4778a5f8
TV
81702020-04-21 Tom de Vries <tdevries@suse.de>
8171
8172 PR gdb/25471
8173 * thread.c
8174 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8175 exception in get_frame_id.
8176
0fa7617d
TT
81772020-04-20 Tom Tromey <tromey@adacore.com>
8178
8179 * python/python.c (struct gdbpy_event): Mark move constructor as
8180 noexcept.
8181 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8182 constructor as noexcept.
8183 * completer.h (struct completion_result): Mark move constructor as
8184 noexcept.
8185 * completer.c (completion_result::completion_result): Use
8186 initialization style. Don't call reset_match_list.
8187
ad23bda0
MS
81882020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8189
8190 * MAINTAINERS (Write After Approval): Add myself.
8191
45e1f031
TT
81922020-04-18 Tom Tromey <tom@tromey.com>
8193
8194 * windows-tdep.c (init_w32_command_list)
8195 (w32_prefix_command_valid): Restore.
8196 (_initialize_windows_tdep): Call init_w32_command_list.
8197
08feed99
TT
81982020-04-18 Tom Tromey <tom@tromey.com>
8199
8200 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8201 * value.c (value_fn_field): Update.
8202 * valops.c (find_function_in_inferior)
8203 (value_allocate_space_in_inferior): Update.
8204 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8205 Update.
8206 * tui/tui-source.c (tui_source_window::set_contents): Update.
8207 * symtab.c (lookup_global_or_static_symbol)
8208 (find_function_start_sal_1, skip_prologue_sal)
8209 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8210 * symmisc.c (dump_msymbols, dump_symtab_1)
8211 (maintenance_print_one_line_table): Update.
8212 * symfile.c (init_entry_point_info, section_is_mapped)
8213 (list_overlays_command, simple_read_overlay_table)
8214 (simple_overlay_update_1): Update.
8215 * stap-probe.c (handle_stap_probe): Update.
8216 * stabsread.c (dbx_init_float_type, define_symbol)
8217 (read_one_struct_field, read_enum_type, read_range_type): Update.
8218 * source.c (info_line_command): Update.
8219 * python/python.c (gdbpy_source_objfile_script)
8220 (gdbpy_execute_objfile_script): Update.
8221 * python/py-type.c (save_objfile_types): Update.
8222 * python/py-objfile.c (py_free_objfile): Update.
8223 * python/py-inferior.c (python_new_objfile): Update.
8224 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8225 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8226 (maintenance_check_psymtabs): Update.
8227 * printcmd.c (info_address_command): Update.
8228 * objfiles.h (struct objfile) <arch>: New method, from
8229 get_objfile_arch.
8230 (get_objfile_arch): Don't declare.
8231 * objfiles.c (get_objfile_arch): Remove.
8232 (filter_overlapping_sections): Update.
8233 * minsyms.c (msymbol_is_function): Update.
8234 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8235 (output_nondebug_symbol): Update.
8236 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8237 (mdebug_expand_psymtab): Update.
8238 * machoread.c (macho_add_oso_symfile): Update.
8239 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8240 Update.
8241 * linux-fork.c (checkpoint_command): Update.
8242 * linespec.c (convert_linespec_to_sals): Update.
8243 * jit.c (finalize_symtab): Update.
8244 * infrun.c (insert_exception_resume_from_probe): Update.
8245 * ia64-tdep.c (ia64_find_unwind_table): Update.
8246 * hppa-tdep.c (internalize_unwinds): Update.
8247 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8248 Update.
8249 * gcore.c (call_target_sbrk): Update.
8250 * elfread.c (record_minimal_symbol, elf_symtab_read)
8251 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8252 (elf_gnu_ifunc_resolve_by_got): Update.
8253 * dwarf2/read.c (create_addrmap_from_index)
8254 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8255 (read_debug_names_from_section)
8256 (process_psymtab_comp_unit_reader, add_partial_symbol)
8257 (add_partial_subprogram, process_full_comp_unit)
8258 (read_file_scope, read_func_scope, read_lexical_block_scope)
8259 (read_call_site_scope, dwarf2_ranges_read)
8260 (dwarf2_record_block_ranges, dwarf2_add_field)
8261 (mark_common_block_symbol_computed, read_tag_pointer_type)
8262 (read_tag_string_type, dwarf2_init_float_type)
8263 (dwarf2_init_complex_target_type, read_base_type)
8264 (partial_die_info::read, partial_die_info::read)
8265 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8266 (dwarf2_fetch_die_loc_sect_off): Update.
8267 * dwarf2/loc.c (dwarf2_find_location_expression)
8268 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8269 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8270 (dwarf2_loc_desc_get_symbol_read_needs)
8271 (locexpr_describe_location_piece, locexpr_describe_location_1)
8272 (loclist_describe_location): Update.
8273 * dwarf2/index-write.c (write_debug_names): Update.
8274 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8275 * dtrace-probe.c (dtrace_process_dof): Update.
8276 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8277 (process_one_symbol): Update.
8278 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8279 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8280 (coff_read_enum_type): Update.
8281 * cli/cli-cmds.c (edit_command, list_command): Update.
8282 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8283 * breakpoint.c (create_overlay_event_breakpoint)
8284 (create_longjmp_master_breakpoint)
8285 (create_std_terminate_master_breakpoint)
8286 (create_exception_master_breakpoint, get_sal_arch): Update.
8287 * block.c (block_gdbarch): Update.
8288 * annotate.c (annotate_source_line): Update.
8289
0743fc83
TT
82902020-04-17 Tom Tromey <tromey@adacore.com>
8291
8292 * auto-load.c (show_auto_load_cmd): Remove.
8293 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8294 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8295 (maintenance_print_arc_command): Remove.
8296 * tui/tui-win.c (tui_command): Remove.
8297 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8298 * tui/tui-layout.c (tui_layout_command): Remove.
8299 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8300 * python/python.c (user_set_python, user_show_python): Remove.
8301 (_initialize_python): Use add_basic_prefix_cmd,
8302 add_show_prefix_cmd.
8303 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8304 (install_gdb_commands): Use add_basic_prefix_cmd,
8305 add_show_prefix_cmd.
8306 (info_guile_command): Remove.
8307 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8308 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8309 add_show_prefix_cmd.
8310 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8311 Remove do_set and do_show parameters.
8312 * cli/cli-style.c (set_style, show_style): Remove.
8313 (_initialize_cli_style): Use add_basic_prefix_cmd,
8314 add_show_prefix_cmd.
8315 (cli_style_option::add_setshow_commands): Remove do_set and
8316 do_show parameters.
8317 (cli_style_option::add_setshow_commands): Use
8318 add_basic_prefix_cmd, add_show_prefix_cmd.
8319 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8320 (set_style_name): Remove.
8321 * cli/cli-dump.c (dump_command, append_command): Remove.
8322 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8323 (tekhex_dump_command, binary_dump_command)
8324 (binary_append_command): Remove.
8325 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8326 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8327 (init_w32_command_list): Remove; move into ...
8328 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8329 * valprint.c (set_print, show_print, set_print_raw)
8330 (show_print_raw): Remove.
8331 (_initialize_valprint): Use add_basic_prefix_cmd,
8332 add_show_prefix_cmd.
8333 * typeprint.c (set_print_type, show_print_type): Remove.
8334 (_initialize_typeprint): Use add_basic_prefix_cmd,
8335 add_show_prefix_cmd.
8336 * record.c (set_record_command, show_record_command): Remove.
8337 (_initialize_record): Use add_basic_prefix_cmd,
8338 add_show_prefix_cmd.
8339 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8340 add_show_prefix_cmd.
8341 (info_command, show_command, set_debug, show_debug): Remove.
8342 * top.h (set_history, show_history): Don't declare.
8343 * top.c (set_history, show_history): Remove.
8344 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8345 (unset_tdesc_cmd): Remove.
8346 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8347 add_show_prefix_cmd.
8348 * symtab.c (info_module_command): Remove.
8349 (_initialize_symtab): Use add_basic_prefix_cmd.
8350 * symfile.c (overlay_command): Remove.
8351 (_initialize_symfile): Use add_basic_prefix_cmd.
8352 * sparc64-tdep.c (info_adi_command): Remove.
8353 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8354 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8355 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8356 add_show_prefix_cmd.
8357 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8358 (_initialize_serial): Use add_basic_prefix_cmd,
8359 add_show_prefix_cmd.
8360 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8361 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8362 add_show_prefix_cmd.
8363 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8364 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8365 add_show_prefix_cmd.
8366 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8367 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8368 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8369 add_show_prefix_cmd.
8370 * remote.c (remote_command, set_remote_cmd): Remove.
8371 (_initialize_remote): Use add_basic_prefix_cmd.
8372 * record-full.c (set_record_full_command)
8373 (show_record_full_command): Remove.
8374 (_initialize_record_full): Use add_basic_prefix_cmd,
8375 add_show_prefix_cmd.
8376 * record-btrace.c (cmd_set_record_btrace)
8377 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8378 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8379 (cmd_show_record_btrace_pt): Remove.
8380 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8381 add_show_prefix_cmd.
8382 * ravenscar-thread.c (set_ravenscar_command)
8383 (show_ravenscar_command): Remove.
8384 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8385 add_show_prefix_cmd.
8386 * mips-tdep.c (show_mips_command, set_mips_command)
8387 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8388 add_show_prefix_cmd.
8389 * maint.c (maintenance_command, maintenance_info_command)
8390 (maintenance_check_command, maintenance_print_command)
8391 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8392 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8393 add_show_prefix_cmd.
8394 (show_per_command_cmd): Remove.
8395 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8396 Remove.
8397 (maintenance_show_test_settings_cmd): Remove.
8398 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8399 add_show_prefix_cmd.
8400 * maint-test-options.c (maintenance_test_options_command):
8401 Remove.
8402 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8403 * macrocmd.c (macro_command): Remove
8404 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8405 * language.c (set_check, show_check): Remove.
8406 (_initialize_language): Use add_basic_prefix_cmd,
8407 add_show_prefix_cmd.
8408 * infcmd.c (unset_command): Remove.
8409 (_initialize_infcmd): Use add_basic_prefix_cmd.
8410 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8411 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8412 add_show_prefix_cmd.
8413 * go32-nat.c (go32_info_dos_command): Remove.
8414 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8415 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8416 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8417 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8418 (_initialize_frame): Use add_basic_prefix_cmd,
8419 add_show_prefix_cmd.
8420 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8421 (_initialize_dcache): Use add_basic_prefix_cmd,
8422 add_show_prefix_cmd.
8423 * cp-support.c (maint_cplus_command): Remove.
8424 (_initialize_cp_support): Use add_basic_prefix_cmd.
8425 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8426 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8427 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8428 add_basic_prefix_cmd, add_show_prefix_cmd.
8429 * breakpoint.c (save_command): Remove.
8430 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8431 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8432 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8433 add_show_prefix_cmd.
8434 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8435 (set_ada_command, show_ada_command): Remove.
8436 (_initialize_ada_language): Use add_basic_prefix_cmd,
8437 add_show_prefix_cmd.
8438 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8439
3557f442
KR
84402020-04-16 Kamil Rytarowski <n54@gmx.com>
8441
8442 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8443 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8444
16197208
SM
84452020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8446
8447 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8448 warning messages.
8449
00ac85d3
SM
84502020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8451
8452 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8453 import table is not at beginning of .idata section.
8454
381ce63f
PA
84552020-04-16 Pedro Alves <palves@redhat.com>
8456
8457 * inferior.c (delete_inferior): Use delete operator directly
8458 instead of delete_program_space.
8459 * progspace.c (add_program_space): New, factored out from
8460 program_space::program_space.
8461 (remove_program_space): New, factored out from
8462 delete_program_space.
8463 (program_space::program_space): Remove intro comment. Rewrite.
8464 (program_space::~program_space): Remove intro comment. Call
8465 remove_program_space.
8466 (delete_program_space): Delete.
8467 * progspace.h (program_space::program_space): Make explicit. Move
8468 intro comment here, adjusted.
8469 (program_space::~program_space): Move intro comment here,
8470 adjusted.
8471 (delete_program_space): Remove.
8472
a010605f
TT
84732020-04-16 Tom Tromey <tromey@adacore.com>
8474
8475 * windows-nat.c (windows_nat::handle_access_violation): New
8476 function.
8477 * nat/windows-nat.h (handle_access_violation): Declare.
8478 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8479 windows-nat.c. Call handle_access_violation.
8480
efba5c23
TV
84812020-04-16 Tom de Vries <tdevries@suse.de>
8482
8483 PR symtab/25791
8484 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8485 CUs without psymtab.
8486
97ed802d
KB
84872020-04-16 Kevin Buettner <kevinb@redhat.com>
8488
8489 * python/python.c (do_start_initialization): Don't call
8490 PyEval_InitThreads for Python 3.9 and beyond.
8491
c7d64809
KR
84922020-04-15 Kamil Rytarowski <n54@gmx.com>
8493
8494 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8495 thread functions.
8496 (obsd_nat_target::wait): Likewise.
8497
ce127a96
TT
84982020-04-15 Tom Tromey <tromey@adacore.com>
8499
8500 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8501 (DEBUG_EXCEPT): Use debug_printf.
8502
99f1bc6a
AB
85032020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8504
8505 * completer.c (class completion_tracker::completion_hash_entry)
8506 <hash_name>: New member function.
8507 (completion_tracker::discard_completions): New callback to hash a
8508 completion_hash_entry, pass this to htab_create_alloc.
8509
a0e9b532
JT
85102016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8511
8512 * windows-nat.c (windows_make_so): Warn rather than stopping with
8513 an error if realpath() fails.
8514
06ca5dd4
KR
85152020-04-14 Kamil Rytarowski <n54@gmx.com>
8516
8517 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8518 (nbsd_nat_target::info_proc): Add do_status.
8519
194d088f
TV
85202020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8521 Tom de Vries <tdevries@suse.de>
8522
8523 PR symtab/25718
8524 * psympriv.h (struct partial_symtab::read_symtab)
8525 (struct partial_symtab::expand_psymtab)
8526 (struct partial_symtab::read_dependencies): Update comments.
8527 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8528 read_symtab for includer.
8529 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8530 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8531 (struct dwarf2_include_psymtab::m_readin): Remove.
8532 (struct dwarf2_include_psymtab::includer): New member function.
8533 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8534
c1a66c06
TV
85352020-04-14 Tom de Vries <tdevries@suse.de>
8536
8537 PR symtab/25720
8538 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8539 with NULL symbol_matcher and lookup_name.
8540 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8541 and lookup_name.
8542 * dwarf2/read.c (dw2_expand_symtabs_matching)
8543 (dw2_debug_names_expand_symtabs_matching): Same.
8544 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8545 Make lookup_name a pointer. Update comment.
8546 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8547 lookup_name being a pointer.
8548 * symfile.c (expand_symtabs_matching): Same.
8549 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8550 * linespec.c (iterate_over_all_matching_symtabs): Same.
8551
400b5eca
TT
85522020-04-13 Tom Tromey <tom@tromey.com>
8553
8554 * run-on-main-thread.c: Update include.
8555 * unittests/main-thread-selftests.c: Update include.
8556 * tui/tui-win.c: Update include.
8557 * tui/tui-io.c: Update include.
8558 * tui/tui-interp.c: Update include.
8559 * tui/tui-hooks.c: Update include.
8560 * top.h: Update include.
8561 * top.c: Update include.
8562 * ser-base.c: Update include.
8563 * remote.c: Update include.
8564 * remote-notif.c: Update include.
8565 * remote-fileio.c: Update include.
8566 * record-full.c: Update include.
8567 * record-btrace.c: Update include.
8568 * python/python.c: Update include.
8569 * posix-hdep.c: Update include.
8570 * mingw-hdep.c: Update include.
8571 * mi/mi-main.c: Update include.
8572 * mi/mi-interp.c: Update include.
8573 * main.c: Update include.
8574 * linux-nat.c: Update include.
8575 * interps.c: Update include.
8576 * infrun.c: Update include.
8577 * inf-loop.c: Update include.
8578 * event-top.c: Update include.
8579 * event-loop.c: Move to ../gdbsupport/.
8580 * event-loop.h: Move to ../gdbsupport/.
8581 * async-event.h: Update include.
8582 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8583
93b54c8e
TT
85842020-04-13 Tom Tromey <tom@tromey.com>
8585
8586 * tui/tui-win.c: Include async-event.h.
8587 * remote.c: Include async-event.h.
8588 * remote-notif.c: Include async-event.h.
8589 * record-full.c: Include async-event.h.
8590 * record-btrace.c: Include async-event.h.
8591 * infrun.c: Include async-event.h.
8592 * event-top.c: Include async-event.h.
8593 * event-loop.h: Move some declarations to async-event.h.
8594 * event-loop.c: Don't include ser-event.h or top.h. Move some
8595 code to async-event.c.
8596 * async-event.h: New file.
8597 * async-event.c: New file.
8598 * Makefile.in (COMMON_SFILES): Add async-event.c.
8599 (HFILES_NO_SRCDIR): Add async-event.h.
8600
c1cd3163
TT
86012020-04-13 Tom Tromey <tom@tromey.com>
8602
8603 * utils.c (flush_streams): New function.
8604 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8605
29f2bf4f
TT
86062020-04-13 Tom Tromey <tom@tromey.com>
8607
8608 * event-loop.c (handle_file_event): Use warning, not
8609 printf_unfiltered.
8610
98029d02
TT
86112020-04-13 Tom Tromey <tom@tromey.com>
8612
8613 * event-loop.c: Include <chrono>.
8614
06cc9596
TT
86152020-04-13 Tom Tromey <tom@tromey.com>
8616
8617 * gdb_select.h: Move to ../gdbsupport/.
8618 * event-loop.c: Update include path.
8619 * top.c: Update include path.
8620 * ser-base.c: Update include path.
8621 * ui-file.c: Update include path.
8622 * ser-tcp.c: Update include path.
8623 * guile/scm-ports.c: Update include path.
8624 * posix-hdep.c: Update include path.
8625 * ser-unix.c: Update include path.
8626 * gdb_usleep.c: Update include path.
8627 * mingw-hdep.c: Update include path.
8628 * inflow.c: Update include path.
8629 * infrun.c: Update include path.
8630 * event-top.c: Update include path.
8631
8ae8e197
TT
86322020-04-13 Tom Tromey <tom@tromey.com>
8633
8634 * configure: Rebuild.
8635 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8636
58cf28e8
TT
86372020-04-13 Tom Tromey <tom@tromey.com>
8638
8639 * event-loop.h (start_event_loop): Don't declare.
8640 * event-loop.c (start_event_loop): Move...
8641 * main.c (start_event_loop): ...here. Now static.
8642
b7f999ae
SDJ
86432020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8644
8645 * MAINTAINERS: Update my email address.
8646
1085dfd4
KR
86472020-04-12 Kamil Rytarowski <n54@gmx.com>
8648
8649 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8650 IP_ALL.
8651
49d1d1f5
KR
86522020-04-12 Kamil Rytarowski <n54@gmx.com>
8653
8654 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8655 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8656
b4848d2a
KR
86572020-04-12 Kamil Rytarowski <n54@gmx.com>
8658
8659 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8660 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8661
51c133d5
KR
86622020-04-12 Kamil Rytarowski <n54@gmx.com>
8663
8664 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8665
54b8cbd0
KR
86662020-04-11 Kamil Rytarowski <n54@gmx.com>
8667
8668 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8669 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8670 (nbsd_nat_target::info_proc): New functions.
8671 * nbsd-nat.c (kinfo_get_vmmap): New function.
8672 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8673 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8674 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8675 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8676 functions.
8677 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8678 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8679 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8680 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8681 (KINFO_VME_FLAG_GROWS_DOWN): New.
8682
cf83625d
AS
86832020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8684
8685 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8686 bit shift.
8687
0c4311ab
TT
86882020-04-10 Tom Tromey <tromey@adacore.com>
8689
8690 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8691
3e65b3e9
TT
86922020-04-10 Tom Tromey <tromey@adacore.com>
8693
8694 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8695 separate debug files.
8696
13302e95
HD
86972020-04-10 Hannes Domani <ssbssa@yahoo.de>
8698
8699 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8700 Move to...
8701 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8702 ... here.
8703 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8704 Check for STATUS_WX86_BREAKPOINT.
8705 (windows_nat_target::wait): Same.
8706
bdfc1e8a
TV
87072020-04-10 Tom de Vries <tdevries@suse.de>
8708
8709 PR cli/25808
8710 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8711
f4460aec
SM
87122020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8713
8714 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8715 (Write After Approval): Remove Tom de Vries.
8716
a25198bb
BE
87172020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8718
8719 revert partially:
8720 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8721
aac66a4c
SM
8722 * buildsym.c (record_line): Fix undefined behavior and preserve
8723 lines at eof.
a25198bb 8724
206c98a6
KR
87252020-04-09 Kamil Rytarowski <n54@gmx.com>
8726
8727 * auxv.h (svr4_auxv_parse): New.
8728 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8729 and generic_auxv_parse.
8730 (svr4_auxv_parse): Add.
8731 * obsd-tdep.c: Include "auxv.h".
8732 (obsd_auxv_parse): Remove.
8733 (obsd_init_abi): Remove comment.
8734 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8735 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8736 * nbsd-tdep.c: Include "auxv.h".
8737 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8738
71fbdbaf
TT
87392020-04-08 Tom Tromey <tromey@adacore.com>
8740
8741 * nat/windows-nat.h (last_wait_event): Don't declare.
8742 (wait_for_debug_event): Update comment.
8743 * nat/windows-nat.c (last_wait_event): Now static.
8744
2c1d95e8
TT
87452020-04-08 Tom Tromey <tromey@adacore.com>
8746
8747 * windows-nat.c (wait_for_debug_event): Move to
8748 nat/windows-nat.c.
8749 * nat/windows-nat.h (wait_for_debug_event): Declare.
8750 * nat/windows-nat.c (wait_for_debug_event): Move from
8751 windows-nat.c. No longer static.
8752
d2977bc4
TT
87532020-04-08 Tom Tromey <tromey@adacore.com>
8754
8755 * windows-nat.c (get_windows_debug_event): Use
8756 fetch_pending_stop.
8757 * nat/windows-nat.h (fetch_pending_stop): Declare.
8758 * nat/windows-nat.c (fetch_pending_stop): New function.
8759
e758e19c
TT
87602020-04-08 Tom Tromey <tromey@adacore.com>
8761
8762 * windows-nat.c (windows_continue): Use matching_pending_stop and
8763 continue_last_debug_event.
8764 * nat/windows-nat.h (matching_pending_stop)
8765 (continue_last_debug_event): Declare.
8766 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8767 (matching_pending_stop, continue_last_debug_event): New
8768 functions.
8769
8d30e395
TT
87702020-04-08 Tom Tromey <tromey@adacore.com>
8771
8772 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8773 (handle_exception_result): Move to nat/windows-nat.h.
8774 (DEBUG_EXCEPTION_SIMPLE): Remove.
8775 (windows_nat::handle_ms_vc_exception): New function.
8776 (handle_exception): Move to nat/windows-nat.c.
8777 (get_windows_debug_event): Update.
8778 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8779 nat/windows-nat.c.
8780 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8781 (handle_exception_result): Move from windows-nat.c.
8782 (handle_exception): Declare.
8783 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8784 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8785 windows-nat.c.
8786
29de418d
TT
87872020-04-08 Tom Tromey <tromey@adacore.com>
8788
8789 * windows-nat.c (exception_count, event_count): Remove.
8790 (handle_exception, get_windows_debug_event)
8791 (do_initial_windows_stuff): Update.
8792
a816ba18
TT
87932020-04-08 Tom Tromey <tromey@adacore.com>
8794
8795 * windows-nat.c (windows_nat::handle_load_dll)
8796 (windows_nat::handle_unload_dll): Rename. No longer static.
8797 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8798 Declare.
8799
a00caa12
TT
88002020-04-08 Tom Tromey <tromey@adacore.com>
8801
8802 * complaints.h (stop_whining): Declare at top-level.
8803 (complaint): Don't declare stop_whining.
8804
d41b524f
TT
88052020-04-08 Tom Tromey <tromey@adacore.com>
8806
8807 * windows-nat.c (windows_nat::handle_output_debug_string):
8808 Rename. No longer static.
8809 * nat/windows-nat.h (handle_output_debug_string): Declare.
8810
3c76026d
TT
88112020-04-08 Tom Tromey <tromey@adacore.com>
8812
8813 * windows-nat.c (current_process_handle, current_process_id)
8814 (main_thread_id, last_sig, current_event, last_wait_event)
8815 (current_windows_thread, desired_stop_thread_id, pending_stops)
8816 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8817 (display_selectors, fake_create_process)
8818 (get_windows_debug_event): Update.
8819 * nat/windows-nat.h (current_process_handle, current_process_id)
8820 (main_thread_id, last_sig, current_event, last_wait_event)
8821 (current_windows_thread, desired_stop_thread_id, pending_stops)
8822 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8823 * nat/windows-nat.c (current_process_handle, current_process_id)
8824 (main_thread_id, last_sig, current_event, last_wait_event)
8825 (current_windows_thread, desired_stop_thread_id, pending_stops)
8826 (siginfo_er): New globals. Move from windows-nat.c.
8827
9d8679cc
TT
88282020-04-08 Tom Tromey <tromey@adacore.com>
8829
8830 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8831 (handle_load_dll): Update.
8832 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8833
28688adf
TT
88342020-04-08 Tom Tromey <tromey@adacore.com>
8835
8836 * windows-nat.c (enum thread_disposition_type): Move to
8837 nat/windows-nat.h.
8838 (windows_nat::thread_rec): Rename from thread_rec. No longer
8839 static.
8840 (windows_add_thread, windows_nat_target::fetch_registers)
8841 (windows_nat_target::store_registers, handle_exception)
8842 (windows_nat_target::resume, get_windows_debug_event)
8843 (windows_nat_target::get_tib_address)
8844 (windows_nat_target::thread_name)
8845 (windows_nat_target::thread_alive): Update.
8846 * nat/windows-nat.h (enum thread_disposition_type): Move from
8847 windows-nat.c.
8848 (thread_rec): Declare.
8849
4834dad0
TT
88502020-04-08 Tom Tromey <tromey@adacore.com>
8851
8852 * windows-nat.c: Add "using namespace".
8853 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8854 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8855
65bafd5b
TT
88562020-04-08 Tom Tromey <tromey@adacore.com>
8857
8858 * nat/windows-nat.h (struct windows_thread_info): Declare
8859 destructor.
8860 * nat/windows-nat.c (~windows_thread_info): New.
8861
0a4afda3
TT
88622020-04-08 Tom Tromey <tromey@adacore.com>
8863
8864 PR gdb/22992
8865 * windows-nat.c (current_event): Update comment.
8866 (last_wait_event, desired_stop_thread_id): New globals.
8867 (struct pending_stop): New.
8868 (pending_stops): New global.
8869 (windows_nat_target) <stopped_by_sw_breakpoint>
8870 <supports_stopped_by_sw_breakpoint>: New methods.
8871 (windows_fetch_one_register): Add assertions. Adjust PC.
8872 (windows_continue): Handle pending stops. Suspend other threads
8873 when stepping. Use last_wait_event
8874 (wait_for_debug_event): New function.
8875 (get_windows_debug_event): Use wait_for_debug_event. Handle
8876 pending stops. Queue spurious stops.
8877 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8878 (windows_nat_target::kill): Use wait_for_debug_event.
8879 * nat/windows-nat.h (struct windows_thread_info)
8880 <stopped_at_software_breakpoint>: New field.
8881 * nat/windows-nat.c (windows_thread_info::resume): Clear
8882 stopped_at_software_breakpoint.
8883
8e61ebec
TT
88842020-04-08 Tom Tromey <tromey@adacore.com>
8885
8886 * windows-nat.c (enum thread_disposition_type): New.
8887 (thread_rec): Replace "get_context" parameter with "disposition";
8888 change type.
8889 (windows_add_thread, windows_nat_target::fetch_registers)
8890 (windows_nat_target::store_registers, handle_exception)
8891 (windows_nat_target::resume, get_windows_debug_event)
8892 (windows_nat_target::get_tib_address)
8893 (windows_nat_target::thread_name)
8894 (windows_nat_target::thread_alive): Update.
8895
98a03287
TT
88962020-04-08 Tom Tromey <tromey@adacore.com>
8897
8898 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8899 (windows_continue): Use windows_continue::resume.
8900 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8901 resume>: Declare new methods.
8902 * nat/windows-nat.c: New file.
8903 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8904
7c7411bc
TT
89052020-04-08 Tom Tromey <tromey@adacore.com>
8906
8907 * windows-nat.c (windows_add_thread, windows_delete_thread)
8908 (windows_nat_target::fetch_registers)
8909 (windows_nat_target::store_registers, fake_create_process)
8910 (windows_nat_target::resume, windows_nat_target::resume)
8911 (get_windows_debug_event, windows_nat_target::wait)
8912 (windows_nat_target::pid_to_str)
8913 (windows_nat_target::get_tib_address)
8914 (windows_nat_target::get_ada_task_ptid)
8915 (windows_nat_target::thread_name)
8916 (windows_nat_target::thread_alive): Use lwp, not tid.
8917
2950fdf7
TT
89182020-04-08 Tom Tromey <tromey@adacore.com>
8919
8920 * windows-nat.c (handle_exception)
8921 (windows_nat_target::thread_name): Update.
8922 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8923 <name>: Now unique_xmalloc_ptr.
8924
62fe396b
TT
89252020-04-08 Tom Tromey <tromey@adacore.com>
8926
8927 * windows-nat.c (thread_rec)
8928 (windows_nat_target::fetch_registers): Update.
8929 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8930 Update comment.
8931 <debug_registers_changed, reload_context>: Now bool.
8932
e9534bd2
TT
89332020-04-08 Tom Tromey <tromey@adacore.com>
8934
8935 * windows-nat.c (windows_add_thread): Use new.
8936 (windows_init_thread_list, windows_delete_thread): Use delete.
8937 (get_windows_debug_event): Update.
8938 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8939 destructor, and initializers.
8940
ae1f8880
TT
89412020-04-08 Tom Tromey <tromey@adacore.com>
8942
8943 * windows-nat.c (struct windows_thread_info): Remove.
8944 * nat/windows-nat.h: New file.
8945
55a1e039
TT
89462020-04-08 Tom Tromey <tromey@adacore.com>
8947
8948 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8949 (thread_rec, windows_add_thread, windows_delete_thread)
8950 (windows_continue): Update.
8951
93366324
TT
89522020-04-08 Tom Tromey <tromey@adacore.com>
8953
8954 * windows-nat.c (struct windows_thread_info): Remove typedef.
8955 (thread_head): Remove.
8956 (thread_list): New global.
8957 (thread_rec, windows_add_thread, windows_init_thread_list)
8958 (windows_delete_thread, windows_continue): Update.
8959
0f2265e2
SM
89602020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8961
8962 * windows-tdep.h (windows_init_abi): Add comment.
8963 (cygwin_init_abi): New declaration.
8964 * windows-tdep.c: Split signal enumeration in two, one for
8965 Windows and one for Cygwin.
8966 (windows_gdb_signal_to_target): Only deal with signal of the
8967 Windows OS ABI.
8968 (cygwin_gdb_signal_to_target): New function.
8969 (windows_init_abi): Rename to windows_init_abi_common, don't set
8970 gdb_signal_to_target gdbarch method. Add new new function with
8971 this name.
8972 (cygwin_init_abi): New function.
8973 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8974 comment. Don't call windows_init_abi.
8975 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8976 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8977 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8978 i386_windows_init_abi_common, don't call windows_init_abi. Add
8979 a new function of this name.
8980 (i386_cygwin_init_abi): New function.
8981 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8982 OS ABI Cygwin.
8983
3810f182
SM
89842020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8985
8986 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8987 parameter.c.
8988 (dwarf2_read_gdb_index): Update.
8989
063f8e80
KR
89902020-04-07 Kamil Rytarowski <n54@gmx.com>
8991
8992 * nbsd-tdep.c: Include "objfiles.h".
8993 (nbsd_skip_solib_resolver): New.
8994 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8995
85a9510c 89962020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8997
8998 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8999 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9000 with DW_LLE_base_addressx are being emitted in DWARFv5.
9001 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9002 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9003 unsigned integer.
9004
9fc3eaae 90052020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9006
9007 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9008 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9009 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9010 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9011 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9012 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9013 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9014
9015
41144253 90162020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9017
9018 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9019 (read_loclist_index): New function definition.
9020 (lookup_loclist_base): New function definition.
9021 (read_loclist_header): New function definition.
9022 (dwarf2_cu): Add loclist_base and loclist_header field.
9023 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9024 (read_full_die_1): Read the value of DW_AT_loclists_base.
9025 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9026 (read_attribute_value): Handle DW_FORM_loclistx.
9027 (skip_one_die): Handle DW_FORM_loclistx.
9028 (loclist_header): New structure declaration.
9029 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9030
9f4e76a4
SM
90312020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9032
9033 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9034 constructor. Remove `addr` parameter from other constructor and
9035 add `per_cu` parameter.
9036 * dwarf2/read.c (create_partial_symtab): Update.
9037
25c11aca
TV
90382020-04-07 Tom de Vries <tdevries@suse.de>
9039
9040 PR symtab/25796
9041 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9042 (partial_die_info::fixup): Inherit has_const_value.
9043
5707e24b
TV
90442020-04-07 Tom de Vries <tdevries@suse.de>
9045
9046 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9047 symbols without address.
9048
05f00e22
KR
90492020-04-06 Kamil Rytarowski <n54@gmx.com>
9050
9051 * nbsd-nat.h (struct thread_info): Add forward declaration.
9052 (nbsd_nat_target::thread_alive): Add.
9053 (nbsd_nat_target::thread_name): Likewise.
9054 (nbsd_nat_target::update_thread_list): Likewise.
9055 (update_thread_list::post_attach): Likewise.
9056 (post_attach::pid_to_str): Likewise.
9057 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9058 (nbsd_thread_lister): Add.
9059 (nbsd_nat_target::thread_alive): Likewise.
9060 (nbsd_nat_target::thread_name): Likewise.
9061 (nbsd_add_threads): Likewise.
9062 (update_thread_list::post_attach): Likewise.
9063 (nbsd_nat_target::update_thread_list): Likewise.
9064 (post_attach::pid_to_str): Likewise.
9065
6ee448cc
TT
90662020-04-06 Tom Tromey <tromey@adacore.com>
9067
9068 * ada-valprint.c (print_variant_part): Extract the variant field.
9069 (print_field_values): Use the field as the outer value when
9070 recursing.
9071
dea34e8c
TT
90722020-04-06 Tom Tromey <tromey@adacore.com>
9073
9074 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9075 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9076 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9077 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9078 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9079
93689ce9
TT
90802020-04-06 Tom Tromey <tromey@adacore.com>
9081
9082 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9083 TYPE_CODE_ERROR.
9084
79743962
KR
90852020-04-06 Kamil Rytarowski <n54@gmx.com>
9086
9087 * nbsd-tdep.c: Include "gdbarch.h".
9088 Define enum with NetBSD signal numbers.
9089 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9090 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9091 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9092 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9093 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9094 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9095 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9096 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9097 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9098 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9099 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9100 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9101
9e7c9a03
HD
91022020-04-03 Hannes Domani <ssbssa@yahoo.de>
9103
9104 PR gdb/25325
9105 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9106
d9e49b61
TT
91072020-04-03 Tom Tromey <tromey@adacore.com>
9108
9109 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9110 Read constant block.
9111
e0fc5c3f
SM
91122020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9113
9114 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9115 (gdb_bfd_get_full_section_contents): New declaration.
9116 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9117 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9118 gdb_bfd_get_full_section_contents.
9119
e2ff18a0
SM
91202020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9121
9122 * exec.c (build_section_table): Replace internal_error with
9123 gdb_assert.
9124 (section_table_xfer_memory_partial): Likewise.
9125 * mdebugread.c (parse_partial_symbols): Likewise.
9126 * psymtab.c (lookup_partial_symbol): Likewise.
9127 * utils.c (wrap_here): Likewise.
9128
0830d301
TT
91292020-04-02 Tom Tromey <tromey@adacore.com>
9130
9131 * f-lang.c (build_fortran_types): Use arch_type to initialize
9132 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9133
e7da7f8f
TT
91342020-04-02 Tom Tromey <tromey@adacore.com>
9135
9136 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9137 of attributes.
9138
c90d28ac
AB
91392020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9140 Bernd Edlinger <bernd.edlinger@hotmail.de>
9141 Tom Tromey <tromey@adacore.com>
9142
9143 * buildsym.c (buildsym_compunit::record_line): Remove
9144 deduplication code.
9145
1aa98955
TV
91462020-04-02 Tom de Vries <tdevries@suse.de>
9147
9148 PR ada/24671
9149 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9150
d3214198
TV
91512020-04-02 Tom de Vries <tdevries@suse.de>
9152
9153 * dwarf2/read.c (dwarf2_gdb_index_functions,
9154 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9155 NULL.
9156 * psymtab.c (psym_lookup_global_symbol_language): New function.
9157 (psym_functions): Init psym_lookup_global_symbol_language with
9158 psym_lookup_global_symbol_language.
9159 * symfile-debug.c (debug_sym_quick_functions): Init
9160 lookup_global_symbol_language with NULL.
9161 * symfile.c (set_initial_language): Remove fixme comment.
9162 * symfile.h (struct quick_symbol_functions): Add
9163 lookup_global_symbol_language.
9164 * symtab.c (find_quick_global_symbol_language): New function.
9165 (find_main_name): Use find_quick_global_symbol_language.
9166
2836752f
SM
91672020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9168
9169 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9170
64dc2d4b
BE
91712020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9172
9173 * buildsym.c (record_line): Fix undefined behavior and preserve
9174 lines at eof.
9175
bbe3dc41
BE
91762020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9177
9178 * buildsym.c (record_line): Fix the resizing condition.
9179
6b4a335b
TT
91802020-04-01 Tom Tromey <tom@tromey.com>
9181
9182 * value.h (value_literal_complex): Add comment.
9183 * valops.c (value_literal_complex): Refer to value.h.
9184
3638a098
TT
91852020-04-01 Tom Tromey <tom@tromey.com>
9186
9187 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9188 (scalar_type): New rule, from typebase.
9189 (typebase): Use scalar_type. Recognize complex types.
9190 (field_name): Handle FLOAT_KEYWORD.
9191 (ident_tokens): Add _Complex and __complex__.
9192
c34e8714
TT
91932020-04-01 Tom Tromey <tom@tromey.com>
9194
9195 PR exp/25299:
9196 * valarith.c (promotion_type, complex_binop): New functions.
9197 (scalar_binop): Handle complex numbers. Use promotion_type.
9198 (value_pos, value_neg, value_complement): Handle complex numbers.
9199
fa649bb7
TT
92002020-04-01 Tom Tromey <tom@tromey.com>
9201
9202 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9203 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9204 (parse_number): Handle complex numbers.
9205
981c08ce
TT
92062020-04-01 Tom Tromey <tom@tromey.com>
9207
9208 * c-valprint.c (c_decorations): Change complex suffix to "i".
9209
4c99290d
TT
92102020-04-01 Tom Tromey <tom@tromey.com>
9211
9212 * valprint.c (generic_value_print_complex): Use accessors.
9213 * value.h (value_real_part, value_imaginary_part): Declare.
9214 * valops.c (value_real_part, value_imaginary_part): New
9215 functions.
9216 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9217
5b930b45
TT
92182020-04-01 Tom Tromey <tom@tromey.com>
9219
9220 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9221 (read_range_type): Update.
9222 * mdebugread.c (basic_type): Update.
9223 * go-lang.c (build_go_types): Use init_complex_type.
9224 * gdbtypes.h (struct main_type) <complex_type>: New member.
9225 (init_complex_type): Update.
9226 (arch_complex_type): Don't declare.
9227 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9228 Make name if none given. Use alloc_type_copy. Look for cached
9229 complex type.
9230 (arch_complex_type): Remove.
9231 (gdbtypes_post_init): Use init_complex_type.
9232 * f-lang.c (build_fortran_types): Use init_complex_type.
9233 * dwarf2/read.c (read_base_type): Update.
9234 * d-lang.c (build_d_types): Use init_complex_type.
9235 * ctfread.c (read_base_type): Update.
9236
53cccef1
TBA
92372020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9238
9239 * infrun.c (stop_all_threads): Update assertion, plus when
9240 stopping threads, take into account that we might be trying
9241 to stop an all-stop target.
9242 (stop_waiting): Call 'stop_all_threads' if there exists a
9243 non-stop target.
9244
a0714d30
TBA
92452020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9246
9247 * target.h (exists_non_stop_target): New function declaration.
9248 * target.c (exists_non_stop_target): New function.
9249
60e22c1e
HD
92502020-04-01 Hannes Domani <ssbssa@yahoo.de>
9251
9252 PR gdb/24789
9253 * eval.c (is_integral_or_integral_reference): New function.
9254 (evaluate_subexp_standard): Allow integer references in
9255 pointer arithmetic.
9256
e139a727
TBA
92572020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9258
9259 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9260 check for no ptid in the stop reply when the target is non-stop.
9261
e0802d59
TT
92622020-04-01 Tom Tromey <tromey@adacore.com>
9263
9264 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9265 "name" parameter to rvalue reference. Initialize m_name_holder.
9266 <lookup_name_info>: New overloads.
9267 <name>: Return gdb::string_view.
9268 <c_str>: New method.
9269 <make_ignore_params>: Update.
9270 <search_name_hash>: Update.
9271 <language_lookup_name>: Return const char *.
9272 <m_name>: Change type.
9273 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9274 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9275 (lookup_name_info::match_any): Update.
9276 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9277 Update.
9278 * minsyms.c (linkage_name_str): Update.
9279 * language.c (default_symbol_name_matcher): Update.
9280 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9281 Update.
9282 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9283 (ada_lookup_name_info::ada_lookup_name_info): Update.
9284 (literal_symbol_name_matcher): Update.
9285
8c072cb6
TT
92862020-04-01 Tom Tromey <tromey@adacore.com>
9287
9288 * psymtab.c (psymtab_search_name): Remove function.
9289 (psym_lookup_symbol): Create search name and lookup name here.
9290 (lookup_partial_symbol): Remove "name" parameter; add
9291 lookup_name.
9292 (psym_expand_symtabs_for_function): Update.
9293
6f29a534
TT
92942020-03-31 Joel Jones <joelkevinjones@gmail.com>
9295
9296 PR tui/25597:
9297 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9298
af62665e
TT
92992020-03-31 Tom Tromey <tromey@adacore.com>
9300
9301 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9302 memcpy.
9303
d1a89da5
NC
93042020-03-30 Nelson Chu <nelson.chu@sifive.com>
9305
9306 * features/riscv/32bit-csr.xml: Regenerated.
9307 * features/riscv/64bit-csr.xml: Regenerated.
9308
d8af9068
TT
93092020-03-30 Tom Tromey <tromey@adacore.com>
9310
9311 * ada-valprint.c (print_variant_part): Update.
9312 * ada-lang.h (ada_which_variant_applies): Update.
9313 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9314 outer_valaddr parameters; replace with "outer" value parameter.
9315 (to_fixed_variant_branch_type): Update.
9316
227c0bf4
PFC
93172020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9318
9319 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9320 <list>. Remove inclusion of observable.h.
9321 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9322 (struct arch_lwp_info): New struct.
9323 (class ppc_linux_dreg_interface): New class.
9324 (struct ppc_linux_process_info): New struct.
9325 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9326 <low_new_clone, low_forget_process, low_prepare_to_resume>
9327 <copy_thread_dreg_state, mark_thread_stale>
9328 <mark_debug_registers_changed, register_hw_breakpoint>
9329 <clear_hw_breakpoint, register_wp, clear_wp>
9330 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9331 <num_memory_accesses, get_trigger_type>
9332 <create_watchpoint_request, hwdebug_point_cmp>
9333 <init_arch_lwp_info, get_arch_lwp_info>
9334 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9335 methods.
9336 <struct ptid_hash>: New inner struct.
9337 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9338 members.
9339 (saved_dabr_value, hwdebug_info, max_slots_number)
9340 (struct hw_break_tuple, struct thread_points, ppc_threads)
9341 (have_ptrace_hwdebug_interface)
9342 (hwdebug_find_thread_points_by_tid)
9343 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9344 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9345 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9346 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9347 use m_dreg_interface.
9348 (hwdebug_point_cmp): Change to...
9349 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9350 reference arguments instead of pointers.
9351 (ppc_linux_nat_target::ranged_break_num_registers): Use
9352 m_dreg_interface.
9353 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9354 m_dreg_interface. Call register_hw_breakpoint.
9355 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9356 m_dreg_interface. Call clear_hw_breakpoint.
9357 (get_trigger_type): Change to...
9358 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9359 comment.
9360 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9361 use m_dreg_interface. Call register_hw_breakpoint.
9362 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9363 use m_dreg_interface. Call clear_hw_breakpoint.
9364 (can_use_watchpoint_cond_accel): Change to...
9365 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9366 method. Update comment, use m_dreg_interface and
9367 m_process_info.
9368 (calculate_dvc): Change to...
9369 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9370 m_dreg_interface.
9371 (num_memory_accesses): Change to...
9372 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9373 (check_condition): Change to...
9374 (ppc_linux_nat_target::check_condition): ...this method.
9375 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9376 comment, use m_dreg_interface.
9377 (create_watchpoint_request): Change to...
9378 (ppc_linux_nat_target::create_watchpoint_request): ...this
9379 method. Use m_dreg_interface.
9380 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9381 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9382 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9383 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9384 (ppc_linux_nat_target::low_forget_process)
9385 (ppc_linux_nat_target::low_new_fork)
9386 (ppc_linux_nat_target::low_new_clone)
9387 (ppc_linux_nat_target::low_delete_thread)
9388 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9389 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9390 only call mark_thread_stale.
9391 (ppc_linux_thread_exit): Remove.
9392 (ppc_linux_nat_target::stopped_data_address): Change to...
9393 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9394 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9395 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9396 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9397 comment. Call low_stopped_data_address.
9398 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9399 m_dreg_interface.
9400 (ppc_linux_nat_target::masked_watch_num_registers): Use
9401 m_dreg_interface.
9402 (ppc_linux_nat_target::copy_thread_dreg_state)
9403 (ppc_linux_nat_target::mark_thread_stale)
9404 (ppc_linux_nat_target::mark_debug_registers_changed)
9405 (ppc_linux_nat_target::register_hw_breakpoint)
9406 (ppc_linux_nat_target::clear_hw_breakpoint)
9407 (ppc_linux_nat_target::register_wp)
9408 (ppc_linux_nat_target::clear_wp)
9409 (ppc_linux_nat_target::init_arch_lwp_info)
9410 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9411 (_initialize_ppc_linux_nat): Remove observer callback.
9412
4db10d8f
PFC
94132020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9414
9415 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9416 (ppc_linux_nat_target::auxv_parse)
9417 (ppc_linux_nat_target::read_description)
9418 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9419 Move up.
9420
1310c1b0
PFC
94212020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9422
9423 * linux-nat.h (low_new_clone): New method.
9424 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9425
69b037c3
SM
94262020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9427
9428 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9429 (dbx_expand_psymtab): ... this.
9430 (start_psymtab): Update.
9431 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9432 (mdebug_expand_psymtab): ... this.
9433 (parse_partial_symbols): Update.
9434 (new_psymtab): Update.
9435 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9436 (xcoff_expand_psymtab): ... this.
9437 (xcoff_start_psymtab): Update.
9438
48993951
SM
94392020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9440
9441 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9442 <expand_dependencies>: ... this.
9443 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9444 (partial_symtab::expand_dependencies): ... this.
9445 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9446 Update.
9447 (dwarf2_psymtab::expand_psymtab): Update.
9448 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9449 * mdebugread.c (psymtab_to_symtab_1): Update.
9450 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9451
3ad83046
SM
94522020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9453
9454 * psympriv.h (discard_psymtab): Remove.
9455 * dbxread.c (dbx_end_psymtab): Update.
9456 * xcoffread.c (xcoff_end_psymtab): Update.
9457
4d1b9ab6
TT
94582020-03-28 Tom Tromey <tom@tromey.com>
9459
9460 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9461 comment.
9462
f1749218
TT
94632020-03-28 Tom Tromey <tom@tromey.com>
9464
9465 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9466
ebea7626
HD
94672020-03-27 Hannes Domani <ssbssa@yahoo.de>
9468
9469 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9470
a879b4d5
JB
94712020-03-26 John Baldwin <jhb@FreeBSD.org>
9472
9473 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9474
0826b30a
TT
94752020-03-26 Tom Tromey <tom@tromey.com>
9476
9477 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9478 (mark_common_block_symbol_computed, read_tag_string_type)
9479 (attr_to_dynamic_prop, read_subrange_type): Update.
9480 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9481 to be methods on struct attribute.
9482 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9483 (read_call_site_scope, partial_die_info::read)
9484 (partial_die_info::read, lookup_die_type, follow_die_ref):
9485 Update.
9486 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9487 from dwarf2_get_ref_die_offset.
9488 (attribute::constant_value): New method, from
9489 dwarf2_get_attr_constant_value.
9490 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9491 Declare method.
9492 <constant_value>: New method.
9493
2b2558bf
TT
94942020-03-26 Tom Tromey <tom@tromey.com>
9495
9496 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9497 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9498 (dwarf_type_encoding_name): Move to stringify.c.
9499 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9500 * dwarf2/stringify.c: New file.
9501 * dwarf2/stringify.h: New file.
9502
eeb64781
TT
95032020-03-26 Tom Tromey <tom@tromey.com>
9504
9505 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9506 Rewrite.
9507
a39fdb41
TT
95082020-03-26 Tom Tromey <tom@tromey.com>
9509
9510 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9511 methods.
9512 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9513 (lookup_ranges_base): Likewise.
9514 (read_cutu_die_from_dwo, read_full_die_1): Update.
9515
436c571c
TT
95162020-03-26 Tom Tromey <tom@tromey.com>
9517
9518 * dwarf2/read.c (read_import_statement, read_file_scope)
9519 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9520 (read_lexical_block_scope, read_call_site_scope)
9521 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9522 (handle_struct_member_die, process_structure_scope)
9523 (update_enumeration_type_from_children)
9524 (process_enumeration_scope, read_array_type, read_common_block)
9525 (read_namespace, read_module, read_subroutine_type): Update.
9526 (sibling_die): Remove.
9527
052c8bb8
TT
95282020-03-26 Tom Tromey <tom@tromey.com>
9529
9530 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9531 (build_type_psymtabs_reader, read_structure_type)
9532 (read_enumeration_type, read_full_die_1): Update.
9533 (dwarf2_attr_no_follow): Move to die.h.
9534 * dwarf2/die.h (struct die_info) <attr>: New method.
9535
2b24b6e4
TT
95362020-03-26 Tom Tromey <tom@tromey.com>
9537
9538 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9539 <base_address>: Now an optional.
9540 (dwarf2_find_base_address, dwarf2_rnglists_process)
9541 (dwarf2_ranges_process, fill_in_loclist_baton)
9542 (dwarf2_symbol_mark_computed): Update.
9543
c2d50fd0
TT
95442020-03-26 Tom Tromey <tom@tromey.com>
9545
9546 * dwarf2/read.c (struct die_info): Move to die.h.
9547 * dwarf2/die.h: New file.
9548
0df7ad3a
TT
95492020-03-26 Tom Tromey <tom@tromey.com>
9550
9551 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9552 * dwarf2/read.c
9553 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9554 Move to line-header.c.
9555 (read_checked_initial_length_and_offset, read_formatted_entries):
9556 Likewise.
9557 (dwarf_decode_line_header): Split into two.
9558 * dwarf2/line-header.c
9559 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9560 Move from read.c.
9561 (read_checked_initial_length_and_offset, read_formatted_entries):
9562 Likewise.
9563 (dwarf_decode_line_header): New function, split from read.c.
9564
86c0bb4c
TT
95652020-03-26 Tom Tromey <tom@tromey.com>
9566
9567 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9568 Declare method.
9569 * dwarf2/read.c (read_attribute_value): Update.
9570 (dwarf2_per_objfile::read_line_string): Rename from
9571 read_indirect_line_string.
9572 (read_formatted_entries): Update.
9573
2ef46c2f
TT
95742020-03-26 Tom Tromey <tom@tromey.com>
9575
9576 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9577 variable.
9578
4f9c1eda
TT
95792020-03-26 Tom Tromey <tom@tromey.com>
9580
9581 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9582 const.
9583 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9584 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9585 parameter const.
9586
5a0e026f
TT
95872020-03-26 Tom Tromey <tom@tromey.com>
9588
9589 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9590 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9591 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9592 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9593
8844c11b
TT
95942020-03-26 Tom Tromey <tom@tromey.com>
9595
9596 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9597 file_names_size, file_full_name, file_file_name>: Use const.
9598 <file_name_at, file_names>: Add const overload.
9599 * dwarf2/line-header.c (line_header::file_file_name)
9600 (line_header::file_full_name): Update.
9601
c90ec28a
TT
96022020-03-26 Tom Tromey <tom@tromey.com>
9603
9604 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9605 (macro_start_file, consume_improper_spaces)
9606 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9607 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9608 (dwarf_decode_macros): Move to macro.c.
9609 * dwarf2/macro.c: New file.
9610 * dwarf2/macro.h: New file.
9611 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9612
4f44ae6c
TT
96132020-03-26 Tom Tromey <tom@tromey.com>
9614
9615 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9616 method.
9617 * dwarf2/section.c: New method. From
9618 read_indirect_string_at_offset_from.
9619 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9620 (read_indirect_string_at_offset_from): Move to section.c.
9621 (read_indirect_string_at_offset): Rewrite.
9622 (read_indirect_line_string_at_offset): Remove.
9623 (read_indirect_string, read_indirect_line_string)
9624 (dwarf_decode_macro_bytes): Update.
9625
a0194fa8
TT
96262020-03-26 Tom Tromey <tom@tromey.com>
9627
9628 * dwarf2/section.h (struct dwarf2_section_info)
9629 <overload_complaint>: Declare.
9630 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9631 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9632 Rename from dwarf2_section_buffer_overflow_complaint.
9633 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9634 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9635
3d27bbdb
TT
96362020-03-26 Tom Tromey <tom@tromey.com>
9637
9638 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9639 Declare.
9640 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9641 Move from read.c.
9642 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9643 to section.c.
9644
9eac9650
TT
96452020-03-26 Tom Tromey <tom@tromey.com>
9646
9647 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9648
bf80d710
TT
96492020-03-26 Tom Tromey <tom@tromey.com>
9650
9651 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9652 "builder".
9653 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9654 parameter.
9655 (dwarf_decode_macros): Update.
9656
0314b390
TT
96572020-03-26 Tom Tromey <tom@tromey.com>
9658
9659 * dwarf2/read.c (read_attribute_value): Update.
9660 (read_indirect_string_from_dwz): Move to dwz.c; change into
9661 method.
9662 (dwarf_decode_macro_bytes): Update.
9663 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9664 * dwarf2/dwz.c: New file.
9665 * Makefile.in (COMMON_SFILES): Add dwz.c.
9666
9fda78b6
TT
96672020-03-26 Tom Tromey <tom@tromey.com>
9668
9669 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9670 * dwarf2/read.c: Add include.
9671 * dwarf2/index-write.c: Add include.
9672 * dwarf2/index-cache.c: Add include.
9673 * dwarf2/dwz.h: New file.
9674
33aa3c10
TT
96752020-03-25 Tom Tromey <tom@tromey.com>
9676
9677 * compile/compile-object-load.c (get_out_value_type): Mention
9678 correct symbol name in error message.
9679
d503b685
HD
96802020-03-25 Hannes Domani <ssbssa@yahoo.de>
9681
9682 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9683
7b1eff95
TV
96842020-03-25 Tom de Vries <tdevries@suse.de>
9685
9686 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9687 * symmisc.c (dump_symtab_1): Print user and includes fields.
9688 (maintenance_info_symtabs): Same.
9689
dd895392
AB
96902020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9691
9692 PR gdb/25534
9693 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9694 (riscv_regcache_cooked_write): New function.
9695 (riscv_push_dummy_call): Use new function.
9696 (riscv_return_value): Likewise.
9697
5ab2fbf1
SM
96982020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9699
9700 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9701 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9702 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9703 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9704 * infrun.c (follow_fork): Likewise.
9705 (follow_fork_inferior): Likewise.
9706 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9707 * linux-nat.h (class linux_nat_target): Likewise.
9708 * remote.c (class remote_target) <follow_fork>: Likewise.
9709 (remote_target::follow_fork): Likewise.
9710 * target-delegates.c: Re-generate.
9711 * target.c (default_follow_fork): Likewise.
9712 (target_follow_fork): Likewise.
9713 * target.h (struct target_ops) <follow_fork>: Likewise.
9714 (target_follow_fork): Likewise.
9715
a64fafb5
TV
97162020-03-24 Tom de Vries <tdevries@suse.de>
9717
9718 * psymtab.c (maintenance_info_psymtabs): Print user field.
9719
fe26d3a3
TT
97202020-03-20 Tom Tromey <tromey@adacore.com>
9721
9722 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9723 const.
9724 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9725 const.
9726
c884cc46
SM
97272020-03-20 Simon Marchi <simon.marchi@efficios.com>
9728
9729 * ptrace.m4: Don't check for ptrace declaration.
9730 * config.in: Re-generate.
9731 * configure: Re-generate.
9732 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9733 not defined.
9734
1ff700c2
KR
97352020-03-20 Kamil Rytarowski <n54@gmx.com>
9736
9737 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9738 `PTRACE_TYPE_RET'.
9739 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9740 * sparc-nat.c (gdb_ptrace): Likewise.
9741 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9742
f7d4f0b1
TT
97432020-03-20 Tom Tromey <tromey@adacore.com>
9744
9745 * c-exp.y (lex_one_token): Fix assert.
9746
f67210ff
TT
97472020-03-20 Tom Tromey <tromey@adacore.com>
9748
9749 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9750 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9751 strncpy call.
9752
1773be9e
TT
97532020-03-20 Tom Tromey <tromey@adacore.com>
9754
9755 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9756
70304be9
TT
97572020-03-20 Tom Tromey <tromey@adacore.com>
9758
9759 * ada-valprint.c (print_variant_part): Remove parameters; switch
9760 to value-based API.
9761 (print_field_values): Likewise.
9762 (ada_val_print_struct_union): Likewise.
9763 (ada_value_print_1): Update.
9764
9faa006d
KR
97652020-03-20 Kamil Rytarowski <n54@gmx.com>
9766
9767 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9768 nbsd_nat_target instead of inf_ptrace_target.
9769 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9770 nbsd_nat_target.
9771
4a90f062
KR
97722020-03-20 Kamil Rytarowski <n54@gmx.com>
9773
9774 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9775 it to the ptrace call.
9776 * (store_registers): Likewise.
9777
97782020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9779
9780 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9781 it to the ptrace call.
9782 * (store_registers): Likewise.
9783
2d07da27
LM
97842020-03-19 Luis Machado <luis.machado@linaro.org>
9785
9786 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9787 valid, fetch vg value from ptrace.
9788
f09db380
KR
97892020-03-19 Kamil Rytarowski <n54@gmx.com>
9790 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9791 * inf-ptrace.c: Likewise.
9792 * (gdb_ptrace): Add.
9793 * (inf_ptrace_target::resume): Update.
9794 * (inf_ptrace_target::xfer_partial): Likewise.
9795 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9796 * (inf_ptrace_peek_poke): Update.
9797
fcc7376e
KR
97982020-03-19 Kamil Rytarowski <n54@gmx.com>
9799
9800 * x86-bsd-nat.c (gdb_ptrace): New.
9801 * (x86bsd_dr_set): Add new argument `ptid'.
9802 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9803 x86bsd_dr_set_addr): Update.
9804
cada5fc9
AB
98052020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9806
9807 * remote.c (remote_target::process_stop_reply): Handle events for
9808 all threads differently.
9809
19a2740f
AB
98102020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9811
9812 * completer.c (completion_tracker::remove_completion): Define new
9813 function.
9814 * completer.h (completion_tracker::remove_completion): Declare new
9815 function.
9816 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9817 when adding a C++ function symbol.
9818
724fd9ba
AB
98192020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9820
9821 * completer.c (completion_tracker::completion_hash_entry): Define
9822 new class.
9823 (advance_to_filename_complete_word_point): Call
9824 recompute_lowest_common_denominator.
9825 (completion_tracker::completion_tracker): Call discard_completions
9826 to setup the hash table.
9827 (completion_tracker::discard_completions): Allow for being called
9828 from the constructor, pass new equal function, and element deleter
9829 when constructing the hash table. Initialise new class member
9830 variables.
9831 (completion_tracker::maybe_add_completion): Remove use of
9832 m_entries_vec, and store more information into m_entries_hash.
9833 (completion_tracker::recompute_lcd_visitor): New function, most
9834 content taken from...
9835 (completion_tracker::recompute_lowest_common_denominator):
9836 ...here, this now just visits each item in the hash calling the
9837 above visitor.
9838 (completion_tracker::build_completion_result): Remove use of
9839 m_entries_vec, call recompute_lowest_common_denominator.
9840 * completer.h (completion_tracker::have_completions): Remove use
9841 of m_entries_vec.
9842 (completion_tracker::completion_hash_entry): Declare new class.
9843 (completion_tracker::recompute_lowest_common_denominator): Change
9844 function signature.
9845 (completion_tracker::recompute_lcd_visitor): Declare new function.
9846 (completion_tracker::m_entries_vec): Delete.
9847 (completion_tracker::m_entries_hash): Initialize to NULL.
9848 (completion_tracker::m_lowest_common_denominator_valid): New
9849 member variable.
9850 (completion_tracker::m_lowest_common_denominator_max_length): New
9851 member variable.
9852
5a82b8a1
KR
98532020-03-17 Kamil Rytarowski <n54@gmx.com>
9854
9855 * regformats/regdef.h: Put reg in gdb namespace.
9856
fb516a69
KR
98572020-03-17 Kamil Rytarowski <n54@gmx.com>
9858
9859 * i386-bsd-nat.c (gdb_ptrace): New.
9860 * (i386bsd_fetch_inferior_registers,
9861 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9862 * (i386bsd_fetch_inferior_registers,
9863 i386bsd_store_inferior_registers) Use gdb_ptrace.
9864
1c0aa1fb
KR
98652020-03-17 Kamil Rytarowski <n54@gmx.com>
9866
9867 * amd64-bsd-nat.c (gdb_ptrace): New.
9868 * (amd64bsd_fetch_inferior_registers,
9869 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9870 * (amd64bsd_fetch_inferior_registers,
9871 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9872
5ccd2fb7
KR
98732020-03-17 Kamil Rytarowski <n54@gmx.com>
9874
9875 * user-regs.c (user_reg::read): Rename to...
9876 (user_reg::xread): ...this.
9877 * (append_user_reg): Rename argument `read' to `xread'.
9878 * (user_reg_add_builtin): Likewise.
9879 * (user_reg_add): Likewise.
9880 * (value_of_user_reg): Likewise.
9881
2108a63a
KR
98822020-03-17 Kamil Rytarowski <n54@gmx.com>
9883
9884 * sparc-nat.c (gdb_ptrace): New.
9885 * sparc-nat.c (sparc_fetch_inferior_registers)
9886 (sparc_store_inferior_registers) Remove obsolete comment.
9887 * sparc-nat.c (sparc_fetch_inferior_registers)
9888 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9889 * sparc-nat.c (sparc_fetch_inferior_registers)
9890 (sparc_store_inferior_registers) Use gdb_ptrace.
9891
a225c9a8
KR
98922020-03-17 Kamil Rytarowski <n54@gmx.com>
9893
9894 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9895 it to the ptrace call.
9896 * sh-nbsd-nat.c (store_registers): Likewise.
9897
98097623
KR
98982020-03-17 Kamil Rytarowski <n54@gmx.com>
9899
9900 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9901 nbsd_nat_target instead of inf_ptrace_target.
9902 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9903 nbsd_nat_target.
9904
9e38d619
KR
99052020-03-17 Kamil Rytarowski <n54@gmx.com>
9906
9907 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9908
a2ecbe9f
KR
99092020-03-17 Kamil Rytarowski <n54@gmx.com>
9910
9911 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9912 <sys/sysctl.h>.
9913 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9914
58990295
TV
99152020-03-17 Tom de Vries <tdevries@suse.de>
9916
9917 PR gdb/23710
9918 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9919 fields.
9920 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9921 fields.
9922 (process_imported_unit_die): Skip import of c++ CUs.
9923
771dd3a8
TT
99242020-03-16 Tom Tromey <tom@tromey.com>
9925
9926 * p-valprint.c (pascal_object_print_value): Initialize
9927 base_value.
9928
817a7585
AK
99292020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9930 Shahab Vahedi <shahab@synopsys.com>
9931
9932 * Makefile.in: Add arch/arc.o
9933 * configure.tgt: Likewise.
9934 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9935 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9936 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9937 * arc-tdep.h (arc_read_description): Add proto type.
9938 * arch/arc.c: New file.
9939 * arch/arc.h: Likewise.
9940 * features/Makefile: Replace old target descriptions with new.
9941 * features/arc-arcompact.c: Remove.
9942 * features/arc-arcompact.xml: Likewise.
9943 * features/arc-v2.c: Likewise
9944 * features/arc-v2.xml: Likewise
9945 * features/arc/aux-arcompact.xml: New file.
9946 * features/arc/aux-v2.xml: Likewise.
9947 * features/arc/core-arcompact.xml: Likewise.
9948 * features/arc/core-v2.xml: Likewise.
9949 * features/arc/aux-arcompact.c: Generate.
9950 * features/arc/aux-v2.c: Likewise.
9951 * features/arc/core-arcompact.c: Likewise.
9952 * features/arc/core-v2.c: Likewise.
9953 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9954
67430cd0
TT
99552020-03-16 Tom Tromey <tromey@adacore.com>
9956
9957 PR gdb/25663:
9958 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9959 putting value into bcache.
9960
30efb6c7
SM
99612020-03-16 Simon Marchi <simon.marchi@efficios.com>
9962
9963 PR gdb/21500
9964 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9965 to...
9966 (amd64_windows_init_abi_common): ... this. Don't set size of
9967 long type.
9968 (amd64_windows_init_abi): New function.
9969 (amd64_cygwin_init_abi): New function.
9970 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9971 the Cygwin OS ABI.
9972 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9973 comment.
9974
8db52437
SM
99752020-03-16 Simon Marchi <simon.marchi@efficios.com>
9976
9977 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9978 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9979 (pe_import_directory_entry): New struct type.
9980 (is_linked_with_cygwin_dll): New function.
9981 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9982 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9983 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9984
5982a56a
SM
99852020-03-16 Simon Marchi <simon.marchi@efficios.com>
9986
9987 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9988 i386_cygwin_core_osabi_sniffer.
9989
7a1998df
SM
99902020-03-16 Simon Marchi <simon.marchi@efficios.com>
9991
9992 * i386-cygwin-tdep.c: Rename to...
9993 * i386-windows-tdep.c: ... this.
9994 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9995 i386-windows-tdep.c.
9996 * configure.tgt: Likewise.
9997
053205cc
SM
99982020-03-16 Simon Marchi <simon.marchi@efficios.com>
9999
10000 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10001 * osabi.c (gdb_osabi_names): Add "Windows".
10002 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10003 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10004 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10005 i386_cygwin_osabi_sniffer.
10006 (_initialize_i386_cygwin_tdep): Register OS ABI
10007 GDB_OSABI_WINDOWS for i386.
10008 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10009 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10010 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10011 for x86-64.
10012 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10013 when the target matches '*-*-mingw*'.
10014
fe4b2ee6
SM
100152020-03-16 Simon Marchi <simon.marchi@efficios.com>
10016
10017 * defs.h (enum gdb_osabi): Move to...
10018 * osabi.h (enum gdb_osabi): ... here.
10019 * gdbarch.sh: Include osabi.h in gdbarch.h.
10020 * gdbarch.h: Re-generate.
10021
cb9b645d
SM
100222020-03-16 Simon Marchi <simon.marchi@efficios.com>
10023
10024 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10025 function.
10026 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10027
3293bbaf
TT
100282020-03-14 Tom Tromey <tom@tromey.com>
10029
10030 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10031 for C++.
10032 (c_type_print_modifier): Likewise. Add "language" parameter.
10033 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10034 (c_type_print_base_1): Update.
10035 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10036 constants.
10037 * type-stack.c (type_stack::insert): Handle tp_atomic and
10038 tp_restrict.
10039 (type_stack::follow_type_instance_flags): Likewise.
10040 (type_stack::follow_types): Likewise. Merge type-following code.
10041 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10042 (space_identifier, cv_with_space_id)
10043 (const_or_volatile_or_space_identifier_noopt)
10044 (const_or_volatile_or_space_identifier): Remove.
10045 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10046 rules.
10047 (ptr_operator, typebase): Update.
10048 (enum token_flag) <FLAG_C>: New constant.
10049 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10050 "_Atomic".
10051 (lex_one_token): Handle FLAG_C.
10052
154151a6
KR
100532020-03-14 Kamil Rytarowski <n54@gmx.com>
10054
10055 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10056 it to the ptrace call.
10057 * m68k-bsd-nat.c (store_registers): Likewise.
10058
bc107784
KR
100592020-03-14 Kamil Rytarowski <n54@gmx.com>
10060
10061 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10062 gdb_byte *.
10063 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10064 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10065 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10066
01a80117
KR
100672020-03-14 Kamil Rytarowski <n54@gmx.com>
10068
10069 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10070 nbsd_nat_target instead of inf_ptrace_target.
10071 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10072 nbsd_nat_target.
10073
f90280ca
KR
100742020-03-14 Kamil Rytarowski <n54@gmx.com>
10075
10076 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10077 register_t.
10078
6def66f1
KR
100792020-03-14 Kamil Rytarowski <n54@gmx.com>
10080
10081 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10082 it to the ptrace call.
10083 * alpha-bsd-nat.c (store_registers): Likewise.
10084
66eaca97
KR
100852020-03-14 Kamil Rytarowski <n54@gmx.com>
10086
10087 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10088 includes.
10089 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10090 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10091 fill_fpregset): Likewise.
10092
4fed520b
KR
100932020-03-14 Kamil Rytarowski <n54@gmx.com>
10094
10095 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10096 nbsd_nat_target instead of inf_ptrace_target.
10097 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10098 nbsd_nat_target.
10099
2190cf06
KR
101002020-03-14 Kamil Rytarowski <n54@gmx.com>
10101
10102 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10103 register_t.
10104
75c56d3d
KR
101052020-03-14 Kamil Rytarowski <n54@gmx.com>
10106
10107 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10108 it to the ptrace call.
10109 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10110 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10111 * arm-nbsd-nat.c (store_register): Likewise.
10112 * arm-nbsd-nat.c (store_regs): Likewise.
10113 * arm-nbsd-nat.c (store_fp_register): Likewise.
10114 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10115
6018d381
KR
101162020-03-14 Kamil Rytarowski <n54@gmx.com>
10117
10118 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10119 nbsd_nat_target instead of inf_ptrace_target.
10120 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10121 nbsd_nat_target.
10122
013f99f0
KR
101232020-03-14 Kamil Rytarowski <n54@gmx.com>
10124
10125 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10126 it to the ptrace call.
10127 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10128
12753073
KR
101292020-03-14 Kamil Rytarowski <n54@gmx.com>
10130
6227b330
KR
10131 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10132 it to the ptrace call.
10133 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10134
101352020-03-14 Kamil Rytarowski <n54@gmx.com>
10136
10137 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10138 gdb_byte *.
12753073
KR
10139 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10140
d5be5fa4
KR
101412020-03-14 Kamil Rytarowski <n54@gmx.com>
10142
10143 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10144 instead of inf_ptrace_target.
10145 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10146 nbsd_nat_target.
10147
8110f842
KR
101482020-03-14 Kamil Rytarowski <n54@gmx.com>
10149
10150 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10151 register_t.
10152
52feded7
KR
101532020-03-14 Kamil Rytarowski <n54@gmx.com>
10154
10155 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10156 register_t.
10157
25567eee
KR
101582020-03-14 Kamil Rytarowski <n54@gmx.com>
10159
10160 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10161 register_t.
10162
426a9c18
TT
101632020-03-13 Tom Tromey <tom@tromey.com>
10164
10165 * value.h (val_print): Don't declare.
10166 * valprint.h (val_print_array_elements)
10167 (val_print_scalar_formatted, generic_val_print): Don't declare.
10168 * valprint.c (generic_val_print_array): Take a struct value.
10169 (generic_val_print_ptr, generic_val_print_memberptr)
10170 (generic_val_print_bool, generic_val_print_int)
10171 (generic_val_print_char, generic_val_print_complex)
10172 (generic_val_print): Remove.
10173 (generic_value_print): Update.
10174 (do_val_print): Remove unused parameters. Don't call
10175 la_val_print.
10176 (val_print): Remove.
10177 (common_val_print): Update. Don't call value_check_printable.
10178 (val_print_scalar_formatted, val_print_array_elements): Remove.
10179 * rust-lang.c (rust_val_print): Remove.
10180 (rust_language_defn): Update.
10181 * p-valprint.c (pascal_val_print): Remove.
10182 (pascal_value_print_inner): Update.
10183 (pascal_object_print_val_fields, pascal_object_print_val):
10184 Remove.
10185 (pascal_object_print_static_field): Update.
10186 * p-lang.h (pascal_val_print): Don't declare.
10187 * p-lang.c (pascal_language_defn): Update.
10188 * opencl-lang.c (opencl_language_defn): Update.
10189 * objc-lang.c (objc_language_defn): Update.
10190 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10191 * m2-lang.h (m2_val_print): Don't declare.
10192 * m2-lang.c (m2_language_defn): Update.
10193 * language.h (struct language_defn) <la_val_print>: Remove.
10194 * language.c (unk_lang_value_print_inner): Rename. Change
10195 argument types.
10196 (unknown_language_defn, auto_language_defn): Update.
10197 * go-valprint.c (go_val_print): Remove.
10198 * go-lang.h (go_val_print): Don't declare.
10199 * go-lang.c (go_language_defn): Update.
10200 * f-valprint.c (f_val_print): Remove.
10201 * f-lang.h (f_value_print): Don't declare.
10202 * f-lang.c (f_language_defn): Update.
10203 * d-valprint.c (d_val_print): Remove.
10204 * d-lang.h (d_value_print): Don't declare.
10205 * d-lang.c (d_language_defn): Update.
10206 * cp-valprint.c (cp_print_value_fields)
10207 (cp_print_value_fields_rtti, cp_print_value): Remove.
10208 (cp_print_static_field): Update.
10209 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10210 (c_val_print_struct, c_val_print_union, c_val_print_int)
10211 (c_val_print_memberptr, c_val_print): Remove.
10212 * c-lang.h (c_val_print_array, cp_print_value_fields)
10213 (cp_print_value_fields_rtti): Don't declare.
10214 * c-lang.c (c_language_defn, cplus_language_defn)
10215 (asm_language_defn, minimal_language_defn): Update.
10216 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10217 (ada_val_print_enum): Take a struct value.
10218 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10219 (ada_val_print): Remove.
10220 (ada_value_print_1): Update.
10221 (printable_val_type): Remove.
10222 * ada-lang.h (ada_val_print): Don't declare.
10223 * ada-lang.c (ada_language_defn): Update.
10224
42331a1e
TT
102252020-03-13 Tom Tromey <tom@tromey.com>
10226
10227 * valprint.c (do_val_print): Update.
10228 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10229 a struct value.
10230 (value_to_value_object_no_release): Declare.
10231 * python/py-value.c (value_to_value_object_no_release): New
10232 function.
10233 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10234 struct value.
10235 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10236 function.
10237 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10238 a struct value.
10239 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10240 Declare.
10241 (gdbscm_apply_val_pretty_printer): Take a struct value.
10242 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10243 value.
10244 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10245 value.
10246 * extension-priv.h (struct extension_language_ops)
10247 <apply_val_pretty_printer>: Take a struct value.
10248 * cp-valprint.c (cp_print_value): Create a struct value.
10249 (cp_print_value): Update.
10250
3a916a97
TT
102512020-03-13 Tom Tromey <tom@tromey.com>
10252
10253 * ada-valprint.c (print_field_values): Call common_val_print.
10254
b59eac37
TT
102552020-03-13 Tom Tromey <tom@tromey.com>
10256
10257 * ada-valprint.c (val_print_packed_array_elements): Remove
10258 bitoffset and val parameters. Call common_val_print.
10259 (ada_val_print_string): Remove offset, address, and original_value
10260 parameters.
10261 (ada_val_print_array): Update.
10262 (ada_value_print_array): New function.
10263 (ada_value_print_1): Call it.
10264
03371129
TT
102652020-03-13 Tom Tromey <tom@tromey.com>
10266
10267 * ada-valprint.c (ada_value_print): Use common_val_print.
10268
2e088f8b
TT
102692020-03-13 Tom Tromey <tom@tromey.com>
10270
10271 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10272
39ef85a8
TT
102732020-03-13 Tom Tromey <tom@tromey.com>
10274
10275 * ada-valprint.c (ada_value_print_num): New function.
10276 (ada_value_print_1): Use it.
10277
b9fa6e07
TT
102782020-03-13 Tom Tromey <tom@tromey.com>
10279
10280 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10281
416595d6
TT
102822020-03-13 Tom Tromey <tom@tromey.com>
10283
10284 * ada-valprint.c (ada_value_print_ptr): New function.
10285 (ada_value_print_1): Use it.
10286
5b5e15ec
TT
102872020-03-13 Tom Tromey <tom@tromey.com>
10288
10289 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10290 call common_val_print.
10291 (ada_val_print_1): Update.
10292 (ada_value_print_1): New function.
10293 (ada_value_print_inner): Rewrite.
10294
fbf54e75
TT
102952020-03-13 Tom Tromey <tom@tromey.com>
10296
10297 * cp-valprint.c (cp_print_value_fields): Update.
10298 (cp_print_value): New function.
10299
64b653ca
TT
103002020-03-13 Tom Tromey <tom@tromey.com>
10301
10302 * m2-valprint.c (m2_value_print_inner): Use
10303 cp_print_value_fields.
10304 * cp-valprint.c (cp_print_value_fields): New function.
10305 * c-valprint.c (c_value_print_struct): New function.
10306 (c_value_print_inner): Use c_value_print_struct.
10307 * c-lang.h (cp_print_value_fields): Declare.
10308
6999f067
TT
103092020-03-13 Tom Tromey <tom@tromey.com>
10310
10311 * c-valprint.c (c_value_print_array): New function.
10312 (c_value_print_inner): Use it.
10313
ce80b8bd
TT
103142020-03-13 Tom Tromey <tom@tromey.com>
10315
10316 * c-valprint.c (c_value_print_memberptr): New function.
10317 (c_value_print_inner): Use it.
10318
2faac269
TT
103192020-03-13 Tom Tromey <tom@tromey.com>
10320
10321 * c-valprint.c (c_value_print_int): New function.
10322 (c_value_print_inner): Use it.
10323
da3e2c29
TT
103242020-03-13 Tom Tromey <tom@tromey.com>
10325
10326 * c-valprint.c (c_value_print_ptr): New function.
10327 (c_value_print_inner): Use it.
10328
50836231
TT
103292020-03-13 Tom Tromey <tom@tromey.com>
10330
10331 * c-valprint.c (c_value_print_inner): Rewrite.
10332
4f412b6e
TT
103332020-03-13 Tom Tromey <tom@tromey.com>
10334
10335 * valprint.c (generic_value_print_complex): New function.
10336 (generic_value_print): Use it.
10337
f5354008
TT
103382020-03-13 Tom Tromey <tom@tromey.com>
10339
10340 * valprint.c (generic_val_print_float): Don't call
10341 val_print_scalar_formatted.
10342 (generic_val_print, generic_value_print): Update.
10343
3eec3b05
TT
103442020-03-13 Tom Tromey <tom@tromey.com>
10345
10346 * valprint.c (generic_value_print_char): New function
10347 (generic_value_print): Use it.
10348
fdddfccb
TT
103492020-03-13 Tom Tromey <tom@tromey.com>
10350
10351 * valprint.c (generic_value_print_int): New function.
10352 (generic_value_print): Use it.
10353
6dde7521
TT
103542020-03-13 Tom Tromey <tom@tromey.com>
10355
10356 * valprint.c (generic_value_print_bool): New function.
10357 (generic_value_print): Use it.
10358
4112d2e6
TT
103592020-03-13 Tom Tromey <tom@tromey.com>
10360
10361 * valprint.c (generic_val_print_func): Simplify.
10362 (generic_val_print, generic_value_print): Update.
10363
65786af6
TT
103642020-03-13 Tom Tromey <tom@tromey.com>
10365
10366 * valprint.c (generic_val_print_flags): Remove.
10367 (generic_val_print, generic_value_print): Update.
10368 (val_print_type_code_flags): Add original_value parameter.
10369
40f3ce18
TT
103702020-03-13 Tom Tromey <tom@tromey.com>
10371
10372 * valprint.c (generic_val_print): Update.
10373 (generic_value_print): Update.
10374 * valprint.c (generic_val_print_enum): Don't call
10375 val_print_scalar_formatted.
10376
2a5b130b
TT
103772020-03-13 Tom Tromey <tom@tromey.com>
10378
10379 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10380 * valprint.c (generic_value_print_ptr): New function.
10381
abc66ce9
TT
103822020-03-13 Tom Tromey <tom@tromey.com>
10383
10384 * valprint.c (generic_value_print): Rewrite.
10385
07a32858
TT
103862020-03-13 Tom Tromey <tom@tromey.com>
10387
10388 * p-valprint.c (pascal_object_print_value_fields)
10389 (pascal_object_print_value): New functions.
10390
64d64d3a
TT
103912020-03-13 Tom Tromey <tom@tromey.com>
10392
10393 * p-valprint.c (pascal_value_print_inner): Rewrite.
10394
6a95a1f5
TT
103952020-03-13 Tom Tromey <tom@tromey.com>
10396
10397 * f-valprint.c (f_value_print_innner): Rewrite.
10398
59fcdac6
TT
103992020-03-13 Tom Tromey <tom@tromey.com>
10400
10401 * m2-valprint.c (m2_print_unbounded_array): New overload.
10402 (m2_print_unbounded_array): Update.
10403 (m2_print_array_contents): Take a struct value.
10404 (m2_value_print_inner): Rewrite.
10405
d133c3e1
TT
104062020-03-13 Tom Tromey <tom@tromey.com>
10407
10408 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10409 (d_value_print_inner): New function.
10410 * d-lang.h (d_value_print_inner): Declare.
10411 * d-lang.c (d_language_defn): Use d_value_print_inner.
10412
23b0f06b
TT
104132020-03-13 Tom Tromey <tom@tromey.com>
10414
10415 * go-valprint.c (go_value_print_inner): New function.
10416 * go-lang.h (go_value_print_inner): Declare.
10417 * go-lang.c (go_language_defn): Use go_value_print_inner.
10418
5f56f7cb
TT
104192020-03-13 Tom Tromey <tom@tromey.com>
10420
10421 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10422 API.
10423 (rust_val_print): Rewrite.
10424 (rust_value_print_inner): New function, from rust_val_print.
10425 (rust_language_defn): Use rust_value_print_inner.
10426
26792ee0
TT
104272020-03-13 Tom Tromey <tom@tromey.com>
10428
10429 * ada-valprint.c (ada_value_print_inner): New function.
10430 * ada-lang.h (ada_value_print_inner): Declare.
10431 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10432
24051bbe
TT
104332020-03-13 Tom Tromey <tom@tromey.com>
10434
10435 * f-valprint.c (f_value_print_innner): New function.
10436 * f-lang.h (f_value_print_innner): Declare.
10437 * f-lang.c (f_language_defn): Use f_value_print_innner.
10438
c0941be6
TT
104392020-03-13 Tom Tromey <tom@tromey.com>
10440
10441 * p-valprint.c (pascal_value_print_inner): New function.
10442 * p-lang.h (pascal_value_print_inner): Declare.
10443 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10444
62c4663d
TT
104452020-03-13 Tom Tromey <tom@tromey.com>
10446
10447 * m2-valprint.c (m2_value_print_inner): New function.
10448 * m2-lang.h (m2_value_print_inner): Declare.
10449 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10450
62182190
TT
104512020-03-13 Tom Tromey <tom@tromey.com>
10452
10453 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10454 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10455 * c-valprint.c (c_value_print_inner): New function.
10456 * c-lang.h (c_value_print_inner): Declare.
10457 * c-lang.c (c_language_defn, cplus_language_defn)
10458 (asm_language_defn, minimal_language_defn): Use
10459 c_value_print_inner.
10460
1e592a8a
TT
104612020-03-13 Tom Tromey <tom@tromey.com>
10462
10463 * p-valprint.c (pascal_object_print_value_fields): Now static.
10464 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10465
7fe471e9
TT
104662020-03-13 Tom Tromey <tom@tromey.com>
10467
10468 * c-valprint.c (c_val_print_array): Simplify.
10469
d121c6ce
TT
104702020-03-13 Tom Tromey <tom@tromey.com>
10471
10472 * valprint.c (value_print_array_elements): New function.
10473 * valprint.h (value_print_array_elements): Declare.
10474
4dba70ee
TT
104752020-03-13 Tom Tromey <tom@tromey.com>
10476
10477 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10478 * mips-tdep.c (mips_print_register): Use
10479 value_print_scalar_formatted.
10480
4f9ae810
TT
104812020-03-13 Tom Tromey <tom@tromey.com>
10482
10483 * valprint.h (value_print_scalar_formatted): Declare.
10484 * valprint.c (value_print_scalar_formatted): New function.
10485
156bfec9
TT
104862020-03-13 Tom Tromey <tom@tromey.com>
10487
10488 * valprint.h (generic_value_print): Declare.
10489 * valprint.c (generic_value_print): New function.
10490
2b4e573d
TT
104912020-03-13 Tom Tromey <tom@tromey.com>
10492
10493 * valprint.c (do_val_print): Call la_value_print_inner, if
10494 available.
10495 * rust-lang.c (rust_language_defn): Update.
10496 * p-lang.c (pascal_language_defn): Update.
10497 * opencl-lang.c (opencl_language_defn): Update.
10498 * objc-lang.c (objc_language_defn): Update.
10499 * m2-lang.c (m2_language_defn): Update.
10500 * language.h (struct language_defn) <la_value_print_inner>: New
10501 member.
10502 * language.c (unknown_language_defn, auto_language_defn): Update.
10503 * go-lang.c (go_language_defn): Update.
10504 * f-lang.c (f_language_defn): Update.
10505 * d-lang.c (d_language_defn): Update.
10506 * c-lang.c (c_language_defn, cplus_language_defn)
10507 (asm_language_defn, minimal_language_defn): Update.
10508 * ada-lang.c (ada_language_defn): Update.
10509
a1f6a07c
TT
105102020-03-13 Tom Tromey <tom@tromey.com>
10511
10512 * c-valprint.c (c_value_print): Use common_val_print.
10513
410cf315
TT
105142020-03-13 Tom Tromey <tom@tromey.com>
10515
10516 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10517
72a45c93
TT
105182020-03-13 Tom Tromey <tom@tromey.com>
10519
10520 * f-valprint.c (f77_print_array_1, f_val_print): Use
10521 common_val_print.
10522
040f66bd
TT
105232020-03-13 Tom Tromey <tom@tromey.com>
10524
10525 * riscv-tdep.c (riscv_print_one_register_info): Use
10526 common_val_print.
10527
a6e05a6c
TT
105282020-03-13 Tom Tromey <tom@tromey.com>
10529
10530 * mi/mi-main.c (output_register): Use common_val_print.
10531
3444c526
TT
105322020-03-13 Tom Tromey <tom@tromey.com>
10533
10534 * infcmd.c (default_print_one_register_info): Use
10535 common_val_print.
10536
c2a44efe
TT
105372020-03-13 Tom Tromey <tom@tromey.com>
10538
10539 * valprint.h (common_val_print_checked): Declare.
10540 * valprint.c (common_val_print_checked): New function.
10541 * stack.c (print_frame_arg): Use common_val_print_checked.
10542
b0c26e99
TT
105432020-03-13 Tom Tromey <tom@tromey.com>
10544
10545 * valprint.c (do_val_print): New function, from val_print.
10546 (val_print): Use do_val_print.
10547 (common_val_print): Use do_val_print.
10548
ce3acbe9
TT
105492020-03-13 Tom Tromey <tom@tromey.com>
10550
10551 * valprint.c (value_print): Use scoped_value_mark.
10552
96c7f873
TV
105532020-03-13 Tom de Vries <tdevries@suse.de>
10554
10555 PR symtab/25646
10556 * psymtab.c (partial_symtab::partial_symtab): Don't set
10557 globals_offset and statics_offset. Push element onto
10558 current_global_psymbols and current_static_psymbols stacks.
10559 (concat): New function.
10560 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10561 element from current_global_psymbols and current_static_psymbols
10562 stacks. Concat popped elements to global_psymbols and
10563 static_symbols.
10564 (add_psymbol_to_list): Use current_global_psymbols and
10565 current_static_psymbols stacks.
10566 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10567 current_static_psymbols fields.
10568
6ba0a321
CB
105692020-03-12 Christian Biesinger <cbiesinger@google.com>
10570
10571 * corelow.c (sniff_core_bfd): Remove.
10572 (class core_target) <m_core_vec>: Remove.
10573 (core_target::core_target): Update.
10574 (core_file_fns): Remove.
10575 (deprecated_add_core_fns): Remove.
10576 (default_core_sniffer): Remove.
10577 (sniff_core_bfd): Remove.
10578 (default_check_format): Remove.
10579 (gdb_check_format): Remove.
10580 (core_target_open): Update.
10581 (core_target::get_core_register_section): Update.
10582 (get_core_registers_cb): Update.
10583 (core_target::fetch_registers): Update.
10584 * gdbcore.h (struct core_fns): Remove.
10585 (deprecated_add_core_fns): Remove.
10586 (default_core_sniffer): Remove.
10587 (default_check_format): Remove.
10588
227031b2
TT
105892020-03-12 Tom Tromey <tom@tromey.com>
10590
10591 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10592 CORE_ADDR.
10593 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10594
53807e9f
TT
105952020-03-12 Tom Tromey <tom@tromey.com>
10596
10597 * remote.c (remote_target::download_tracepoint)
10598 (remote_target::enable_tracepoint)
10599 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10600 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10601 sprintf_vma.
10602
64f25102
TT
106032020-03-12 Tom Tromey <tom@tromey.com>
10604
10605 * symfile-mem.c: Update CORE_ADDR size assert.
10606
272cd5a3
SM
106072020-03-12 Simon Marchi <simon.marchi@efficios.com>
10608
10609 * selftest.m4: Move to gdbsupport/.
10610 * acinclude.m4: Update path to selftest.m4.
10611
74cd3f9d
SM
106122020-03-12 Simon Marchi <simon.marchi@efficios.com>
10613
10614 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10615 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10616 gdbarch-selfselftests.c and selftest-arch.c.
10617 (SUBDIR_UNITTESTS_OBS): Rename to...
10618 (SELFTESTS_OBS): ... this.
10619 (COMMON_SFILES): Remove disasm-selftests.c and
10620 gdbarch-selftests.c.
10621 * configure.ac: Don't add selftest-arch.{c,o} to
10622 CONFIG_{SRCS,OBS}.
10623 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10624 preprocessor conditions.
10625
db6878ac
SM
106262020-03-12 Simon Marchi <simon.marchi@efficios.com>
10627
10628 * configure.ac: Don't source bfd/development.sh.
10629 * selftest.m4: Modify comment.
10630 * configure: Re-generate.
10631
4d696a5c
SM
106322020-03-12 Simon Marchi <simon.marchi@efficios.com>
10633
10634 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10635 not "true" or "false".
10636 * configure: Re-generate.
10637
8dd8e1c7
CB
106382020-03-12 Christian Biesinger <cbiesinger@google.com>
10639
10640 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10641 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10642 renamed to arm_nbsd_supply_gregset.
10643 (fetch_register): Update to call arm_nbsd_supply_gregset.
10644 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10645 (arm_netbsd_nat_target::fetch_registers): Update.
10646 (fetch_elfcore_registers): Removed.
10647 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10648 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10649 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10650 not require NetBSD system headers.
10651 (arm_nbsd_regset): New struct.
10652 (arm_nbsd_iterate_over_regset_sections): New function.
10653 (arm_netbsd_init_abi_common): Updated to call
10654 set_gdbarch_iterate_over_regset_sections.
10655 * arm-nbsd-tdep.h: New file.
10656
dd69bf7a
KB
106572020-03-11 Kevin Buettner <kevinb@redhat.com>
10658
10659 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10660 recursion.
10661
a0761e34
SM
106622020-03-11 Simon Marchi <simon.marchi@efficios.com>
10663
10664 * configure: Re-generate.
10665
e7a82140
TT
106662020-03-11 Tom Tromey <tromey@adacore.com>
10667
10668 * ada-typeprint.c (print_choices): Fix comment.
10669
dcc050c8
AB
106702020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10671
10672 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10673 previous item in the list, when the list has no items.
10674
1c33af77
TV
106752020-03-11 Tom de Vries <tdevries@suse.de>
10676
10677 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10678 PROP_LOCLIST handling code.
10679
8c95582d
AB
106802020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10681
10682 * buildsym-legacy.c (record_line): Pass extra parameter to
10683 record_line.
10684 * buildsym.c (buildsym_compunit::record_line): Take an extra
10685 parameter, reduce duplication in the line table, and record the
10686 is_stmt flag in the line table.
10687 * buildsym.h (buildsym_compunit::record_line): Add extra
10688 parameter.
10689 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10690 non-statement lines.
10691 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10692 this to the symtab builder.
10693 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10694 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10695 through to dwarf_record_line_1.
10696 * infrun.c (process_event_stop_test): When stepping, don't stop at
10697 a non-statement instruction, and only refresh the step info when
10698 we land in the middle of a line's range. Also add an extra
10699 comment.
10700 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10701 field.
10702 * record-btrace.c (btrace_find_line_range): Only record lines
10703 marked as is-statement.
10704 * stack.c (frame_show_address): Show the frame address if we are
10705 in a non-statement sal.
10706 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10707 (maintenance_print_one_line_table): Print a header for the is_stmt
10708 column, and include is_stmt information in the output.
10709 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10710 preference to non-statements.
10711 (find_pcs_for_symtab_line): Prefer is-statement entries.
10712 (find_line_common): Likewise.
10713 * symtab.h (struct linetable_entry): Add is_stmt field.
10714 (struct symtab_and_line): Likewise.
10715 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10716 arranging the line table.
10717
e4003a34
TV
107182020-03-07 Tom de Vries <tdevries@suse.de>
10719
10720 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10721 DIE.
10722
e8932576
TT
107232020-03-07 Tom Tromey <tom@tromey.com>
10724
10725 * valops.c (value_literal_complex): Remove obsolete comment.
10726 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10727 comment.
10728
29734269
SM
107292020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10730
10731 * infrun.h: Forward-declare thread_info.
10732 (set_step_info): Add thread_info parameter, add doc.
10733 * infrun.c (set_step_info): Add thread_info parameter, move doc
10734 to header.
10735 * infrun.c (process_event_stop_test): Pass thread to
10736 set_step_info call.
10737 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10738 set_step_info.
10739 (prepare_one_step): Add thread_info parameter, pass it to
10740 set_step_frame and prepare_one_step (recursive) call.
10741 (step_1): Pass thread to prepare_one_step call.
10742 (step_command_fsm::should_stop): Pass thread to
10743 prepare_one_step.
10744 (until_next_fsm): Pass thread to set_step_frame call.
10745 (finish_command): Pass thread to set_step_info call.
10746
b7d64b29
HD
107472020-03-06 Hannes Domani <ssbssa@yahoo.de>
10748
10749 * windows-tdep.c (windows_solib_create_inferior_hook):
10750 Check if inferior is running.
10751
09f2921c
TV
107522020-03-06 Tom de Vries <tdevries@suse.de>
10753
10754 * NEWS: Fix "the the".
10755 * ctfread.c: Same.
10756
fd760e79
TV
107572020-03-06 Tom de Vries <tdevries@suse.de>
10758
10759 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10760
20ea4a60
AB
107612020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10762
10763 * .dir-locals.el: Add a comment referencing the other copies of
10764 this file.
10765
0afbabf0
JB
107662020-03-05 John Baldwin <jhb@FreeBSD.org>
10767
10768 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10769 psargs.
10770
842806cb
TBA
107712020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10772
10773 * .gitattributes: New file.
10774
be1e3d3e
TT
107752020-03-04 Tom Tromey <tom@tromey.com>
10776
10777 * symmisc.c (print_symbol_bcache_statistics)
10778 (print_objfile_statistics): Update.
10779 * symfile.c (allocate_symtab): Use intern.
10780 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10781 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10782 macro_cache>: Remove.
10783 <string_cache>: New member.
10784 (struct objfile) <intern>: New methods.
10785 * elfread.c (elf_symtab_read): Use intern.
10786 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10787 (dwarf2_compute_name, dwarf2_physname)
10788 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10789 names.
10790 (guess_partial_die_structure_name): Update.
10791 (partial_die_info::fixup): Intern name.
10792 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10793 name.
10794 (dwarf2_name): Intern name. Update.
10795 * buildsym.c (buildsym_compunit::get_macro_table): Use
10796 string_cache.
10797
4e7625fd
TT
107982020-03-04 Tom Tromey <tom@tromey.com>
10799
10800 * jit.c (bfd_open_from_target_memory): Make "target" const.
10801 * corefile.c (gnutarget): Now const.
10802 * gdbcore.h (gnutarget): Now const.
10803
46f9f931
HD
108042020-03-04 Hannes Domani <ssbssa@yahoo.de>
10805
10806 * NEWS: Mention support for WOW64 processes.
10807 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10808 (amd64_windows_segment_register_p): Remove static.
10809 (_initialize_amd64_windows_nat): Update.
10810 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10811 * i386-windows-nat.c (context_offset): Update.
10812 (i386_mappings): Rename and remove static.
10813 (i386_windows_segment_register_p): Remove static.
10814 (_initialize_i386_windows_nat): Update.
10815 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10816 (STATUS_WX86_SINGLE_STEP): New macro.
10817 (EnumProcessModulesEx): New macro.
10818 (Wow64SuspendThread): New macro.
10819 (Wow64GetThreadContext): New macro.
10820 (Wow64SetThreadContext): New macro.
10821 (Wow64GetThreadSelectorEntry): New macro.
10822 (windows_set_context_register_offsets): Add static.
10823 (windows_set_segment_register_p): Likewise.
10824 (windows_add_thread): Adapt for WOW64 processes.
10825 (windows_fetch_one_register): Likewise.
10826 (windows_nat_target::fetch_registers): Likewise.
10827 (windows_store_one_register): Likewise.
10828 (display_selector): Likewise.
10829 (display_selectors): Likewise.
10830 (handle_exception): Likewise.
10831 (windows_continue): Likewise.
10832 (windows_nat_target::resume): Likewise.
10833 (windows_add_all_dlls): Likewise.
10834 (do_initial_windows_stuff): Likewise.
10835 (windows_nat_target::attach): Likewise.
10836 (windows_get_exec_module_filename): Likewise.
10837 (windows_nat_target::create_inferior): Likewise.
10838 (windows_xfer_siginfo): Likewise.
10839 (_initialize_loadable): Initialize Wow64SuspendThread,
10840 Wow64GetThreadContext, Wow64SetThreadContext,
10841 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10842 * windows-nat.h (windows_set_context_register_offsets):
10843 Remove declaration.
10844 (windows_set_segment_register_p): Likewise.
10845 (i386_windows_segment_register_p): Add declaration.
10846 (amd64_windows_segment_register_p): Likewise.
10847
440cf44e
LM
108482020-03-04 Luis Machado <luis.machado@linaro.org>
10849
10850 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10851 in "info registers" for AArch64/ARM.
10852
10853 The change caused "info registers" to not print GPR's.
10854
10855 gdb/ChangeLog:
10856
10857 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10858
10859 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10860 when reg->group is empty and reggroup is not.
10861
1009d92f
TT
108622020-03-03 Tom Tromey <tromey@adacore.com>
10863
10864 * dwarf2/frame.c (struct dwarf2_frame_cache)
10865 <checked_tailcall_bottom, entry_cfa_sp_offset,
10866 entry_cfa_sp_offset_p>: Remove members.
10867 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10868 (dwarf2_frame_prev_register): Don't call
10869 dwarf2_tailcall_sniffer_first.
10870 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10871 * frame-unwind.c (add_unwinder): New fuction.
10872 (frame_unwind_init): Use it. Add tailcall unwinder.
10873
5e5d66b6
AB
108742020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10875 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10876
10877 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10878 value should be printed as true.
10879
584cf46d
HD
108802020-03-03 Hannes Domani <ssbssa@yahoo.de>
10881
10882 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10883 (windows_init_abi): Set and use windows_so_ops.
10884
7b973adc
SDJ
108852020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10886
10887 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10888 when verifying if dealing with a convenience variable.
10889
bb7b70ab
LM
108902020-03-03 Luis Machado <luis.machado@linaro.org>
10891
10892 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10893
9822cb57
SM
108942020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10895
10896 * infrun.c (gdbarch_supports_displaced_stepping): New.
10897 (use_displaced_stepping): Break up conditions in smaller pieces.
10898 Use gdbarch_supports_displaced_stepping.
10899 (displaced_step_prepare_throw): Use
10900 gdbarch_supports_displaced_stepping.
10901
63e163f2
AB
109022020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10903
10904 * NEWS: Mention new behaviour of the history filename.
10905 * top.c (write_history_p): Add comment.
10906 (show_write_history_p): Add header comment, give a different
10907 message when history writing is on, but the history filename is
10908 empty.
10909 (history_filename): Add comment.
10910 (history_filename_empty): New function.
10911 (show_history_filename): Add header comment, give a different
10912 message when the filename is empty.
10913 (init_history): Compare history_filename against nullptr, and only
10914 read history if the filename is not empty.
10915 (set_history_filename): Add header comment, and only make
10916 non-empty filenames absolute.
10917 (init_main): Make the filename argument to 'set history filename'
10918 optional.
10919
81b86b97
CB
109202020-03-02 Christian Biesinger <cbiesinger@google.com>
10921
10922 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10923 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10924 (fetch_fp_register): Update.
10925 (fetch_fp_regs): Update.
10926 (store_fp_register): Update.
10927 (store_fp_regs): Update.
10928 (arm_netbsd_nat_target::read_description): New function.
10929 (fetch_elfcore_registers): Update.
10930
24ed6739
AB
109312020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10932
10933 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10934 general_thread if the stop reply is missing a thread-id.
10935 (remote_target::process_stop_reply): Use the first non-exited
10936 thread if the target didn't pass a thread-id.
10937 * infrun.c (do_target_wait): Move call to
10938 switch_to_inferior_no_thread to ....
10939 (do_target_wait_1): ... here.
10940
a84bb2a0
JT
109412020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10942
10943 * debuginfod-support.c: Include defs.h first.
10944
658dadf0
TV
109452020-02-28 Tom de Vries <tdevries@suse.de>
10946
10947 * symfile.c (set_initial_language): Use default language for lookup.
10948
4ebe4877
SM
109492020-02-28 Simon Marchi <simon.marchi@efficios.com>
10950
10951 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10952 reader variable, pass `this` to read_cutu_die_from_dwo.
10953
e5da1139
AM
109542020-02-27 Aaron Merey <amerey@redhat.com>
10955
10956 * source.c (open_source_file): Check for nullptr when computing
10957 srcpath.
10958
317f7127
TT
109592020-02-27 Tom Tromey <tromey@adacore.com>
10960
10961 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10962 member.
10963 (dwarf2_add_field): Don't update nfields.
10964 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10965
3104d9ee
AB
109662020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10967
10968 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10969 abs.
10970
b83470bf
TT
109712020-02-26 Tom Tromey <tom@tromey.com>
10972
10973 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10974 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10975 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10976 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10977 per_cu_data.
10978
edfe0a0c
TT
109792020-02-26 Tom Tromey <tom@tromey.com>
10980
10981 * dwarf2/index-write.c (psym_index_map): Change type.
10982 (add_address_entry_worker, write_one_signatured_type)
10983 (recursively_count_psymbols, recursively_write_psymbols)
10984 (class debug_names, psyms_seen_size, write_gdbindex)
10985 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10986
0d79cdc4
AM
109872020-02-26 Aaron Merey <amerey@redhat.com>
10988
10989 * Makefile.in: Handle optional debuginfod support.
10990 * NEWS: Update.
10991 * README: Add --with-debuginfod summary.
10992 * config.in: Regenerate.
10993 * configure: Regenerate.
10994 * configure.ac: Handle optional debuginfod support.
10995 * debuginfod-support.c: debuginfod helper functions.
10996 * debuginfod-support.h: Ditto.
10997 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10998 summary.
10999 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11000 when a dwz file cannot be found.
11001 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11002 debuginfo file cannot be found.
11003 * source.c (open_source_file): Query debuginfod servers when a
11004 source file cannot be found.
11005 * top.c (print_gdb_configuration): Include
11006 --{with,without}-debuginfod in the output.
11007
b65ce565
JG
110082020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11009
11010 * thread.c (thr_try_catch_cmd): Print thread name.
11011
d4c9a4f8
SM
110122020-02-26 Simon Marchi <simon.marchi@efficios.com>
11013
11014 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11015 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11016 dwarf2_fetch_die_type_sect_off): Move to...
11017 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11018 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11019 dwarf2_fetch_die_type_sect_off): ... here.
11020 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11021 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11022 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11023
0dce4280
TV
110242020-02-26 Tom de Vries <tdevries@suse.de>
11025
11026 PR gdb/25603
11027 * symfile.c (set_initial_language): Exit-early if
11028 language_mode == language_mode_manual.
11029
450a1bfc
SM
110302020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11031
11032 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11033 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11034 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11035
9e80cfa1
AB
110362020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11037
11038 * gdbtypes.c (create_array_type_with_stride): Handle negative
11039 array strides.
11040 * valarith.c (value_subscripted_rvalue): Likewise.
11041
09624f1f
LM
110422020-02-25 Luis Machado <luis.machado@linaro.org>
11043
11044 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11045
8cb5117c
SM
110462020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11047
11048 * loc.h (dwarf2_get_die_type): Move to...
11049 * read.h (dwarf2_get_die_type): ... here.
11050 * read.c (dwarf2_get_die_type): Move doc to header.
11051
c325c44e
JB
110522020-02-25 Joel Brobecker <brobecker@adacore.com>
11053
11054 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11055 'gnulib/Makefile.in' to the list.
11056
4ac93832
TT
110572020-02-24 Tom Tromey <tom@tromey.com>
11058
11059 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11060 Remove.
11061 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11062 XOBNEWVEC.
11063
197400e8
TT
110642020-02-24 Tom Tromey <tom@tromey.com>
11065
11066 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11067 New method.
11068 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11069 (dw2_do_instantiate_symtab, dw2_get_file_names)
11070 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11071
76935768
TT
110722020-02-24 Tom Tromey <tom@tromey.com>
11073
11074 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11075 make_scoped_restore.
11076 (dwarf2_psymtab::read_symtab): Don't clear
11077 reading_partial_symbols.
11078
a88ef40d
TV
110792020-02-24 Tom de Vries <tdevries@suse.de>
11080
11081 PR gdb/25592
11082 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11083
c9af6521
TV
110842020-02-24 Tom de Vries <tdevries@suse.de>
11085
11086 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11087 commands layout next/prev/regs.
11088
5707a07a
TT
110892020-02-22 Tom Tromey <tom@tromey.com>
11090
11091 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11092 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11093
3b0fb49e
TT
110942020-02-22 Tom Tromey <tom@tromey.com>
11095
11096 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11097
283be8bf
TT
110982020-02-22 Tom Tromey <tom@tromey.com>
11099
11100 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11101 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11102 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11103 * tui/tui.c (_initialize_tui): Add usage text.
11104
ca793b96
TT
111052020-02-22 Tom Tromey <tom@tromey.com>
11106
11107 * tui/tui-win.c (tui_set_focus_command)
11108 (tui_set_win_height_command): Use error_no_arg.
11109 (_initialize_tui_win): Update help text.
11110 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11111
432b5c40
TT
111122020-02-22 Tom Tromey <tom@tromey.com>
11113
11114 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11115 * tui/tui-disasm.h (struct tui_disasm_window)
11116 <display_start_addr>: Declare.
11117 * tui/tui-source.h (struct tui_source_window)
11118 <display_start_addr>: Declare.
11119 * tui/tui-winsource.h (struct tui_source_window_base)
11120 <show_source_line, display_start_addr>: New methods.
11121 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11122 Rename and move to protected section.
11123 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11124 (tui_source_window_base::do_erase_source_content): Update.
11125 (tui_source_window_base::show_source_line): Now a method.
11126 (tui_source_window_base::show_source_content)
11127 (tui_source_window_base::tui_source_window_base)
11128 (tui_source_window_base::rerender)
11129 (tui_source_window_base::refill)
11130 (tui_source_window_base::do_scroll_horizontal)
11131 (tui_source_window_base::set_is_exec_point_at)
11132 (tui_source_window_base::update_breakpoint_info)
11133 (tui_source_window_base::update_exec_info): Update.
11134 * tui/tui-source.c (tui_source_window::set_contents)
11135 (tui_source_window::showing_source_p)
11136 (tui_source_window::do_scroll_vertical)
11137 (tui_source_window::location_matches_p)
11138 (tui_source_window::line_is_displayed): Update.
11139 (tui_source_window::display_start_addr): New method.
11140 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11141 (tui_disasm_window::do_scroll_vertical)
11142 (tui_disasm_window::location_matches_p): Update.
11143 (tui_disasm_window::display_start_addr): New method.
11144
01b1af32
TT
111452020-02-22 Tom Tromey <tom@tromey.com>
11146
11147 * NEWS: Add entry for gdb.register_window_type.
11148 * tui/tui-layout.h (window_factory): New typedef.
11149 (tui_register_window): Declare.
11150 * tui/tui-layout.c (saved_tui_windows): New global.
11151 (tui_apply_current_layout): Use it.
11152 (tui_register_window): New function.
11153 * python/python.c (do_start_initialization): Call
11154 gdbpy_initialize_tui.
11155 (python_GdbMethods): Add "register_window_type" function.
11156 * python/python-internal.h (gdbpy_register_tui_window)
11157 (gdbpy_initialize_tui): Declare.
11158 * python/py-tui.c: New file.
11159 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11160
fc96d20b
TT
111612020-02-22 Tom Tromey <tom@tromey.com>
11162
11163 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11164
935c78c0
TT
111652020-02-22 Tom Tromey <tom@tromey.com>
11166
11167 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11168 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11169 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11170 (tui_set_win_focus_to): Move from tui-win.c.
11171
0240c8f1
TT
111722020-02-22 Tom Tromey <tom@tromey.com>
11173
11174 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11175 functions.
11176 (known_window_types): New global.
11177 (tui_get_window_by_name): Reimplement.
11178 (initialize_known_windows): New function.
11179 (validate_window_name): Rewrite.
11180 (_initialize_tui_layout): Call initialize_known_windows.
11181
fdb01f0c
TT
111822020-02-22 Tom Tromey <tom@tromey.com>
11183
11184 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11185 Remove constants.
11186 * tui/tui-winsource.h (struct tui_source_window_base)
11187 <tui_source_window_base>: Remove parameter.
11188 * tui/tui-winsource.c
11189 (tui_source_window_base::tui_source_window_base): Remove
11190 parameter.
11191 (tui_source_window_base::refill): Update.
11192 * tui/tui-stack.h (struct tui_locator_window)
11193 <tui_locator_window>: Update.
11194 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11195 Default the constructor.
11196 * tui/tui-regs.h (struct tui_data_item_window)
11197 <tui_data_item_window>: Default the constructor.
11198 (struct tui_data_window) <tui_data_window>: Likewise.
11199 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11200 Default the constructor.
11201 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11202 Default the constructor.
11203 <type>: Remove.
11204 (struct tui_win_info) <tui_win_info>: Default the constructor.
11205 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11206 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11207 Default the constructor.
11208
865a5aec
TT
112092020-02-22 Tom Tromey <tom@tromey.com>
11210
11211 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11212 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11213 * tui/tui-win.c (tui_resize_all): Don't call
11214 tui_delete_invisible_windows.
11215 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11216 done.
11217 (tui_set_layout): Update.
11218 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11219 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11220 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11221
e098d18c
TT
112222020-02-22 Tom Tromey <tom@tromey.com>
11223
11224 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11225 correctly.
11226
eb9c8874
TT
112272020-02-22 Tom Tromey <tom@tromey.com>
11228
11229 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11230
7eed1a8e
TT
112312020-02-22 Tom Tromey <tom@tromey.com>
11232
11233 * tui/tui-winsource.h (struct tui_source_window_iterator)
11234 <inner_iterator>: New etytypedef.
11235 <tui_source_window_iterator>: Take "end" parameter.
11236 <tui_source_window_iterator>: Take iterator.
11237 <operator*, advance>: Update.
11238 <m_iter>: Change type.
11239 <m_end>: New field.
11240 (struct tui_source_windows) <begin, end>: Update.
11241 * tui/tui-layout.c (tui_windows): New global.
11242 (tui_apply_current_layout): Clear tui_windows.
11243 (tui_layout_window::apply): Update tui_windows.
11244 * tui/tui-data.h (tui_windows): Declare.
11245 (all_tui_windows): Now inline function.
11246 (class tui_window_iterator, struct all_tui_windows): Remove.
11247
7c043ba6
TT
112482020-02-22 Tom Tromey <tom@tromey.com>
11249
11250 PR tui/17850:
11251 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11252 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11253 "height" argument.
11254 (class tui_layout_window) <get_sizes>: Likewise.
11255 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11256 argument.
11257 <get_sizes>: Add "height" argument.
11258 <m_vertical>: New field.
11259 * tui/tui-layout.c (tui_layout_split::clone): Update.
11260 (tui_layout_split::get_sizes): Add "height" argument.
11261 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11262 (tui_new_layout_command): Parse "-horizontal".
11263 (_initialize_tui_layout): Update help string.
11264 (tui_layout_split::specification): Add "-horizontal" when needed.
11265 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11266 argument.
11267 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11268 New methods.
11269
6bc56648
TT
112702020-02-22 Tom Tromey <tom@tromey.com>
11271
11272 * tui/tui-layout.h (enum tui_adjust_result): New.
11273 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11274 (class tui_layout_window) <adjust_size>: Return
11275 tui_adjust_result. Rewrite.
11276 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11277 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11278
c22fef7e
TT
112792020-02-22 Tom Tromey <tom@tromey.com>
11280
11281 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11282 parameter and return types.
11283 (class tui_layout_base) <specification>: Add "depth".
11284 (class tui_layout_window) <specification>: Add "depth".
11285 (class tui_layout_split) <specification>: Add "depth".
11286 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11287 and return types.
11288 (tui_new_layout_command): Parse sub-layouts.
11289 (_initialize_tui_layout): Update help string.
11290 (tui_layout_window::specification): Add "depth".
11291 (add_layout_command): Update.
11292
ee325b61
TT
112932020-02-22 Tom Tromey <tom@tromey.com>
11294
11295 * NEWS: Add "tui new-layout" item.
11296 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11297 Add new-layout command to help text.
11298 (validate_window_name): New function.
11299 (tui_new_layout_command): New function.
11300 (_initialize_tui_layout): Register "new-layout".
11301 (tui_layout_window::specification): New method.
11302 (tui_layout_window::specification): New method.
11303 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11304 method.
11305 (class tui_layout_window) <specification>: New method.
11306 (class tui_layout_split) <specification>: New method.
11307
416eb92d
TT
113082020-02-22 Tom Tromey <tom@tromey.com>
11309
11310 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11311 * tui/tui-win.c (window_name_completer): Update comment.
11312 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11313 Declare method.
11314 (class tui_layout_window) <replace_window>: Likewise.
11315 (class tui_layout_split) <replace_window>: Likewise.
11316 (tui_set_layout): Don't declare.
11317 (tui_set_initial_layout): Declare function.
11318 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11319 (asm_regs_layout): New globals.
11320 (tui_current_layout, show_layout): Remove.
11321 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11322 (find_layout, tui_apply_layout): New function.
11323 (layout_completer): Remove.
11324 (tui_next_layout): Reimplement.
11325 (tui_next_layout_command): New function.
11326 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11327 (tui_regs_layout): Reimplement.
11328 (tui_regs_layout_command): New function.
11329 (extract_display_start_addr): Rewrite.
11330 (next_layout, prev_layout): Remove.
11331 (tui_layout_window::replace_window): New method.
11332 (tui_layout_split::replace_window): New method.
11333 (destroy_layout): New function.
11334 (layout_list): New global.
11335 (add_layout_command): New function.
11336 (initialize_layouts): Update.
11337 (tui_layout_command): New function.
11338 (_initialize_tui_layout): Install "layout" commands.
11339 * tui/tui-data.h (enum tui_layout_type): Remove.
11340 (tui_current_layout): Don't declare.
11341
0dbc2fc7
TT
113422020-02-22 Tom Tromey <tom@tromey.com>
11343
11344 * tui/tui-regs.c (tui_reg_layout): Remove.
11345 (tui_reg_command): Use tui_regs_layout.
11346 * tui/tui-layout.h (tui_reg_command): Declare.
11347 * tui/tui-layout.c (tui_reg_command): New function.
11348
5afe342e
TT
113492020-02-22 Tom Tromey <tom@tromey.com>
11350
11351 * tui/tui.c (tui_rl_delete_other_windows): Call
11352 tui_remove_some_windows.
11353 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11354 Declare method.
11355 (class tui_layout_window) <remove_windows>: New method.
11356 (class tui_layout_split) <remove_windows>: Declare.
11357 (tui_remove_some_windows): Declare.
11358 * tui/tui-layout.c (tui_remove_some_windows): New function.
11359 (tui_layout_split::remove_windows): New method.
11360
427326a8
TT
113612020-02-22 Tom Tromey <tom@tromey.com>
11362
11363 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11364 * tui/tui-layout.h (tui_next_layout): Declare.
11365 * tui/tui-layout.c (tui_next_layout): New function.
11366
3fe12b6d
TT
113672020-02-22 Tom Tromey <tom@tromey.com>
11368
11369 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11370 correct coordinates.
11371
59b8b5d2
TT
113722020-02-22 Tom Tromey <tom@tromey.com>
11373
11374 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11375 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11376 DATA_WIN case.
11377
2a3d458b
TT
113782020-02-22 Tom Tromey <tom@tromey.com>
11379
11380 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11381 TUI_DISASM_WIN, not tui_win_list.
11382
3f0cbb04
TT
113832020-02-22 Tom Tromey <tom@tromey.com>
11384
11385 * valprint.c (generic_val_print_enum_1)
11386 (val_print_type_code_flags): Style member names.
11387 * rust-lang.c (val_print_struct, rust_print_enum)
11388 (rust_print_struct_def, rust_internal_print_type): Style member
11389 names.
11390 * p-valprint.c (pascal_object_print_value_fields): Style member
11391 names. Only call fprintf_symbol_filtered for static members.
11392 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11393 * f-valprint.c (f_val_print): Style member names.
11394 * f-typeprint.c (f_type_print_base): Style member names.
11395 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11396 call fprintf_symbol_filtered for static members.
11397 (cp_print_class_member): Style member names.
11398 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11399 member names.
11400 * ada-valprint.c (ada_print_scalar): Style enum names.
11401 (ada_val_print_enum): Likewise.
11402 * ada-typeprint.c (print_enum_type): Style enum names.
11403
d4d947ae
TT
114042020-02-21 Tom Tromey <tom@tromey.com>
11405
11406 * psympriv.h (struct partial_symtab): Update comment.
11407
e94e944b
TT
114082020-02-21 Tom Tromey <tromey@adacore.com>
11409
11410 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11411 type is CORE_ADDR.
11412
1eb73179
TV
114132020-02-21 Tom de Vries <tdevries@suse.de>
11414
11415 PR gdb/25534
11416 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11417 if dependencies[i]->user != NULL.
11418
4f180d53
AT
114192020-02-21 Ali Tamur <tamur@google.com>
11420
11421 * dwarf2/read.c (dwarf2_name): Add null check.
11422
22b6cd70
TT
114232020-02-20 Tom Tromey <tom@tromey.com>
11424
11425 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11426 ">=", in binary search.
11427 (dwarf2_find_containing_comp_unit): New overload.
11428 (run_test): New self-test.
11429 (_initialize_dwarf2_read): Register new test.
11430
bd0cf5a6
NC
114312020-02-20 Nelson Chu <nelson.chu@sifive.com>
11432
11433 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11434 * riscv-tdep.h: Likewise.
11435 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11436 rv32-only CSR.
11437 * features/riscv/64bit-csr.xml: Regenerated.
11438
3f702acd
SDJ
114392020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11440 Tom Tromey <tom@tromey.com>
11441
11442 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11443 of 'fputc_unfiltered'.
11444 (putchar_unfiltered): Call 'fputc_unfiltered'.
11445 (fputc_unfiltered): Call 'fputs_unfiltered'.
11446
d13c7322
AB
114472020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11448
11449 * config.in: Regenerate.
11450 * configure: Regenerate.
11451 * configure.ac: Add --with-python-libdir option.
11452 * main.c: Use WITH_PYTHON_LIBDIR.
11453
869d8950
TT
114542020-02-19 Tom Tromey <tom@tromey.com>
11455
11456 * symtab.c (general_symbol_info::compute_and_set_names): Use
11457 obstack_strndup. Simplify call to symbol_set_demangled_name.
11458
298e9637
SM
114592020-02-19 Simon Marchi <simon.marchi@efficios.com>
11460
11461 * dwarf2/read.c (allocate_signatured_type_table,
11462 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11463 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11464 Remove objfile parameter, update all callers.
11465
08410482
DE
114662020-02-19 Doug Evans <dje@google.com>
11467
11468 PR rust/25535
11469 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11470 rust_enum_variant calculation.
11471
dfdeeca1
TT
114722020-02-19 Tom Tromey <tromey@adacore.com>
11473
11474 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11475
2ef5453b
TT
114762020-02-19 Tom Tromey <tromey@adacore.com>
11477
11478 * ada-lang.c (cache_symbol): Use obstack_strdup.
11479
9f1528a1
AB
114802020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11481
11482 * configure: Regenerate.
11483
d3c22fa8
TT
114842020-02-19 Tom Tromey <tromey@adacore.com>
11485
11486 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11487 NULL check.
11488
bf84f706
MR
114892020-02-19 Maciej W. Rozycki <macro@wdc.com>
11490
11491 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11492
d1c9b20f
AB
114932020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11494
11495 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11496 if GDBSERVER is not defined.
11497 (riscv_tdesc_cache): Likewise, also store const target_desc.
11498 (STATIC_IN_GDB): Define.
11499 (riscv_create_target_description): Update declaration with
11500 STATIC_IN_GDB.
11501 (riscv_lookup_target_description): New function, only define if
11502 GDBSERVER is not defined.
11503 * arch/riscv.h (riscv_create_target_description): Declare only
11504 when GDBSERVER is defined.
11505 (riscv_lookup_target_description): New declaration when GDBSERVER
11506 is not defined.
11507 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11508 (riscv_linux_read_features): ...this, and return
11509 riscv_gdbarch_features instead of target_desc.
11510 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11511 (riscv_linux_read_description): Rename to...
11512 (riscv_linux_read_features): ...this.
11513 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11514 Update to use riscv_gdbarch_features and
11515 riscv_lookup_target_description.
11516 * riscv-tdep.c (riscv_find_default_target_description): Use
11517 riscv_lookup_target_description instead of
11518 riscv_create_target_description.
11519
373d7ac0
SM
115202020-02-18 Simon Marchi <simon.marchi@efficios.com>
11521
11522 * valprint.c (generic_val_print_enum_1): When printing a flag
11523 enum with value 0 and there is no enumerator with value 0, print
11524 just "0" instead of "(unknown: 0x0)".
11525
b29a2df0
SM
115262020-02-18 Simon Marchi <simon.marchi@efficios.com>
11527
11528 * valprint.c (generic_val_print_enum_1): Print unknown part of
11529 flag enum in hex.
11530
6740f0cc
SM
115312020-02-18 Simon Marchi <simon.marchi@efficios.com>
11532
11533 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11534 flag enums to contain duplicate enumerators.
11535 * valprint.c (generic_val_print_enum_1): Update comment.
11536
edd45eb0
SM
115372020-02-18 Simon Marchi <simon.marchi@efficios.com>
11538
11539 * dwarf2/read.c: Include "count-one-bits.h".
11540 (update_enumeration_type_from_children): If an enumerator has
11541 multiple bits set, don't treat the enumeration as a "flag enum".
11542 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11543 of flag enums have 0 or 1 bit set.
11544
6d0cf446
BE
115452020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11546
11547 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11548 conversion.
11549 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11550 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11551 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11552 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11553 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11554
7001c1b7
SM
115552020-02-18 Simon Marchi <simon.marchi@efficios.com>
11556
11557 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11558
fdb61c6c
SM
115592020-02-14 Simon Marchi <simon.marchi@efficios.com>
11560
11561 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11562 displaced_step_closure_up.
11563 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11564 (struct displaced_step_closure_up):
11565 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11566 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11567 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11568 Likewise.
11569 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11570 * gdbarch.c, gdbarch.h: Re-generate.
11571 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11572 displaced_step_closure_up.
11573 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11574 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11575 * infrun.h (displaced_step_closure_up): New type alias.
11576 (struct displaced_step_inferior_state) <step_closure>: Change
11577 type to displaced_step_closure_up.
11578 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11579 displaced_step_closure_up.
11580 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11581
a4a38eb4
TT
115822020-02-14 Tom Tromey <tom@tromey.com>
11583
11584 * minidebug.c (gnu_debug_key): New global.
11585 (find_separate_debug_file_in_section): Use it.
11586
e8217e61
SM
115872020-02-14 Simon Marchi <simon.marchi@efficios.com>
11588
11589 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11590 std::unique_ptr.
11591 * gdbarch.c: Re-generate.
11592 * gdbarch.h: Re-generate.
11593 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11594 change.
11595 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11596 type to std::unique_ptr.
11597 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11598 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11599 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11600 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11601 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11602 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11603 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11604 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11605 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11606
d8d83535
SM
116072020-02-14 Simon Marchi <simon.marchi@efficios.com>
11608
11609 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11610 std::unique_ptr.
11611 (displaced_step_clear): Rename to...
11612 (displaced_step_reset): ... this. Just call displaced->reset ().
11613 (displaced_step_clear_cleanup): Rename to...
11614 (displaced_step_reset_cleanup): ... this.
11615 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11616 (displaced_step_fixup): Likewise.
11617 (resume_1): Likewise.
11618 (handle_inferior_event): Restore child's memory before calling
11619 displaced_step_fixup on the parent.
11620 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11621 to std::unique_ptr.
11622 <step_closure>: Change type to std::unique_ptr.
11623
5f661e03
SM
116242020-02-14 Simon Marchi <simon.marchi@efficios.com>
11625
11626 * arm-tdep.c: Include count-one-bits.h.
11627 (cleanup_block_store_pc): Use count_one_bits.
11628 (cleanup_block_load_pc): Use count_one_bits.
11629 (arm_copy_block_xfer): Use count_one_bits.
11630 (thumb2_copy_block_xfer): Use count_one_bits.
11631 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11632 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11633 (thumb_get_next_pcs_raw): Use count_one_bits.
11634 (arm_get_next_pcs_raw): Use count_one_bits_l.
11635 * arch/arm.c (bitcount): Remove.
11636 * arch/arm.h (bitcount): Remove.
11637
8084e579
TT
116382020-02-14 Tom Tromey <tromey@adacore.com>
11639
11640 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11641 Update.
11642 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11643 * dwarf2/loc.c (call_site_find_chain_1): Return
11644 unique_xmalloc_ptr.
11645 (call_site_find_chain): Likewise.
11646
258bf0ee
RB
116472020-02-14 Richard Biener <rguenther@suse.de>
11648
11649 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11650 on expression with division operators.
11651
f98a8458
AKS
116522020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11653
11654 * MAINTAINERS (Write After Approval): Adding myself.
11655
d1437c0e
TT
116562020-02-12 Tom Tromey <tom@tromey.com>
11657
11658 * event-loop.c (event_data, gdb_event, event_handler_func):
11659 Remove.
11660
3d4560f7
TT
116612020-02-12 Tom Tromey <tom@tromey.com>
11662
11663 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11664 (dwarf2_frame_objfile_data): Add comment.
11665 (find_comp_unit, set_comp_unit): New functions.
11666 (dwarf2_frame_find_fde): Use find_comp_unit.
11667 (dwarf2_build_frame_info): Use set_comp_unit.
11668
21982304
TT
116692020-02-12 Tom Tromey <tom@tromey.com>
11670
11671 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11672 (comp_unit): Don't initialize objfile.
11673 (execute_cfa_program): Add text_offset parameter.
11674 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11675 (dwarf2_frame_cache): Update.
11676 (dwarf2_build_frame_info): Don't set "objfile" member.
11677
4debb237
TT
116782020-02-12 Tom Tromey <tom@tromey.com>
11679
11680 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11681 (decode_frame_entry): Likewise.
11682 (dwarf2_build_frame_info): Update.
11683
0d404d44
TT
116842020-02-12 Tom Tromey <tom@tromey.com>
11685
11686 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11687 (decode_frame_entry_1): Use the comp_unit obstack.
11688
a7a3ae5c
TT
116892020-02-12 Tom Tromey <tom@tromey.com>
11690
11691 * dwarf2/frame.c (struct comp_unit): Add initializers and
11692 constructor.
11693 (dwarf2_frame_objfile_data): Store a comp_unit.
11694 (dwarf2_frame_find_fde): Update.
11695 (dwarf2_build_frame_info): Use "new".
11696
a9d65418
TT
116972020-02-12 Tom Tromey <tom@tromey.com>
11698
11699 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11700 (dwarf2_fde_table): Typedef for std::vector.
11701 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11702 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11703 (decode_frame_entry): Update.
11704 (dwarf2_build_frame_info): Use "new".
11705
7559c217
CB
117062020-02-12 Christian Biesinger <cbiesinger@google.com>
11707
11708 * arm-tdep.c (arm_gdbarch_init): Update.
11709 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11710 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11711 have_neon, is_m>: Change to bool.
11712
aeefc73c
CB
117132020-02-12 Christian Biesinger <cbiesinger@google.com>
11714
11715 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11716
d27b8e5f
TT
117172020-02-12 Tom Tromey <tom@tromey.com>
11718
11719 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11720
cd5900f3
HD
117212020-02-12 Hannes Domani <ssbssa@yahoo.de>
11722
11723 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11724 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11725
f056b22b
TT
117262020-02-11 Tom Tromey <tom@tromey.com>
11727
11728 * psymtab.h: Update comment.
11729
f92ff6b5
TT
117302020-02-11 Tom Tromey <tom@tromey.com>
11731
11732 * gdb_obstack.h (struct auto_obstack): Use
11733 DISABLE_COPY_AND_ASSIGN.
11734
3fd6912b
TT
117352020-02-11 Tom Tromey <tom@tromey.com>
11736
11737 * dwarf2/frame.h (struct objfile): Don't forward declare.
11738
69ed9b74
CB
117392020-02-11 Christian Biesinger <cbiesinger@google.com>
11740
11741 * cris-tdep.c (cris_supply_gregset): Change signature to match
11742 what struct regset expects.
11743 (cris_regset): New struct.
11744 (fetch_core_registers): Remove.
11745 (cris_iterate_over_regset_sections): New function.
11746 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11747 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11748
bda874f6
CB
117492020-02-11 Christian Biesinger <cbiesinger@google.com>
11750
11751 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11752 registers.
11753
754e1564
CB
117542020-02-11 Christian Biesinger <cbiesinger@google.com>
11755
11756 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11757
8ddd8e0e
SM
117582020-02-11 Simon Marchi <simon.marchi@efficios.com>
11759
11760 * configure: Re-generate.
11761
898e7f60
SM
117622020-02-11 Simon Marchi <simon.marchi@efficios.com>
11763
11764 * configure: Re-generate.
11765
58df732b
SM
117662020-02-11 Simon Marchi <simon.marchi@efficios.com>
11767
11768 * acinclude: Update warning.m4 path.
11769 * warning.m4: Move to gdbsupport.
11770
da5bd37e
TT
117712020-02-11 Tom Tromey <tromey@adacore.com>
11772
11773 * remote.c (remote_console_output): Update.
11774 * printcmd.c (printf_command): Update.
11775 * event-loop.c (gdb_wait_for_event): Update.
11776 * linux-nat.c (sigchld_handler): Update.
11777 * remote-sim.c (gdb_os_write_stdout): Update.
11778 (gdb_os_flush_stdout): Update.
11779 (gdb_os_flush_stderr): Update.
11780 (gdb_os_write_stderr): Update.
11781 * exceptions.c (print_exception): Update.
11782 * remote-fileio.c (remote_fileio_func_read): Update.
11783 (remote_fileio_func_write): Update.
11784 * tui/tui.c (tui_enable): Update.
11785 * tui/tui-interp.c (tui_interp::init): Update.
11786 * utils.c (init_page_info): Update.
11787 (putchar_unfiltered, fputc_unfiltered): Update.
11788 (gdb_flush): Update.
11789 (emit_style_escape): Update.
11790 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11791 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11792 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11793 (stderr_file::write): Update.
11794 (stderr_file::puts): Update.
11795 * ui-file.h (ui_file_isatty, ui_file_write)
11796 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11797 (ui_file_puts): Don't declare.
11798
85f0dd3c
TV
117992020-02-10 Tom de Vries <tdevries@suse.de>
11800
11801 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11802 sentinel to char *.
11803
2e927613
TV
118042020-02-09 Tom de Vries <tdevries@suse.de>
11805
11806 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11807 filename if it matches "<artificial>".
11808
6bafc845
HD
118092020-02-09 Hannes Domani <ssbssa@yahoo.de>
11810
11811 * windows-tdep.c (struct enum_value_name): New struct.
11812 (create_enum): New function.
11813 (windows_get_siginfo_type): Create and use enum types.
11814
7928d571
HD
118152020-02-09 Hannes Domani <ssbssa@yahoo.de>
11816
11817 * NEWS: Mention $_siginfo support for Windows.
11818 * windows-nat.c (handle_exception): Set siginfo_er.
11819 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11820 (windows_xfer_siginfo): New function.
11821 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11822 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11823 (init_windows_gdbarch_data): New function.
11824 (get_windows_gdbarch_data): New function.
11825 (windows_get_siginfo_type): New function.
11826 (windows_init_abi): Register windows_get_siginfo_type.
11827 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11828
6751ebae
TT
118292020-02-08 Tom Tromey <tom@tromey.com>
11830
11831 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11832 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11833 <keep>: Declare method.
11834 <m_keep>: Remove member.
11835 <~cutu_reader>: Remove.
11836 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11837 (cutu_reader::cutu_reader): Update.
11838 (cutu_reader::keep): Rename from ~cutu_reader.
11839 (process_psymtab_comp_unit, build_type_psymtabs_1)
11840 (process_skeletonless_type_unit, load_partial_comp_unit)
11841 (load_full_comp_unit, dwarf2_read_addr_index)
11842 (read_signatured_type): Update.
11843
135f5437
TT
118442020-02-08 Tom Tromey <tom@tromey.com>
11845
11846 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11847 "want_partial_unit" parameter.
11848 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11849 Inline check for DW_TAG_partial_unit.
11850 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11851
9f66ff1c
TT
118522020-02-08 Tom Tromey <tom@tromey.com>
11853
11854 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11855 read.c.
11856 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11857 read.c.
11858
c8a7a66f
TT
118592020-02-08 Tom Tromey <tom@tromey.com>
11860
11861 * dwarf2/read.c (read_address): Move to comp-unit.c.
11862 (dwarf2_rnglists_process, dwarf2_ranges_process)
11863 (read_attribute_value, dwarf_decode_lines_1)
11864 (var_decode_location, decode_locdesc): Update.
11865 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11866 read.c. Remove "cu" parameter.
11867 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11868 method.
11869
8266302d
TT
118702020-02-08 Tom Tromey <tom@tromey.com>
11871
11872 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11873 (read_indirect_line_string): Update.
11874 * dwarf2/comp-unit.c (read_offset): Remove.
11875 (read_comp_unit_head): Update.
11876 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11877 method.
11878 (read_offset): Don't declare.
11879
4057dfde
TT
118802020-02-08 Tom Tromey <tom@tromey.com>
11881
11882 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11883 * dwarf2/read.c (struct comp_unit_head): Move to
11884 dwarf2/comp-unit.h.
11885 (enum class rcuh_kind): Move to comp-unit.h.
11886 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11887 (read_comp_unit_head, error_check_comp_unit_head)
11888 (read_and_check_comp_unit_head): Move to comp-unit.c.
11889 (read_offset, dwarf_unit_type_name): Likewise.
11890 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11891 (cutu_reader::cutu_reader, read_call_site_scope)
11892 (find_partial_die, follow_die_offset): Update.
11893 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11894
24aa364d
TT
118952020-02-08 Tom Tromey <tom@tromey.com>
11896
11897 * dwarf2/read.c (read_offset_1): Move to leb.c.
11898 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11899 (dwarf_decode_macro_bytes): Update.
11900 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11901 * dwarf2/leb.h (read_offset): Declare.
11902
2c7d5afc
TT
119032020-02-08 Tom Tromey <tom@tromey.com>
11904
11905 * dwarf2/read.c (dwarf2_section_size): Remove.
11906 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11907 Update.
11908 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11909
4075cb26
TT
119102020-02-08 Tom Tromey <tom@tromey.com>
11911
11912 * dwarf2/read.c (read_initial_length): Move to leb.c.
11913 * dwarf2/leb.h (read_initial_length): Declare.
11914 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11915 handle_nonstd parameter.
11916 * dwarf2/frame.c (read_initial_length): Remove.
11917 (decode_frame_entry_1): Update.
11918
09ba997f
TT
119192020-02-08 Tom Tromey <tom@tromey.com>
11920
11921 * dwarf2/loc.c (dwarf2_find_location_expression)
11922 (dwarf_evaluate_loc_desc::get_tls_address)
11923 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11924 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11925 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11926 (dwarf2_compile_property_to_c)
11927 (dwarf2_loc_desc_get_symbol_read_needs)
11928 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11929 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11930 (loclist_describe_location, loclist_tracepoint_var_ref)
11931 (loclist_generate_c_location): Update.
11932 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11933 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11934 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11935 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11936 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11937 (dwarf2_per_cu_data::addr_size)
11938 (dwarf2_per_cu_data::ref_addr_size)
11939 (dwarf2_per_cu_data::text_offset)
11940 (dwarf2_per_cu_data::addr_type): Now methods.
11941 (per_cu_header_read_in): Make per_cu "const".
11942 (dwarf2_version): Remove.
11943 (dwarf2_per_cu_data::int_type): Now a method.
11944 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11945 (set_die_type, read_array_type, read_subrange_index_type)
11946 (read_tag_string_type, read_subrange_type): Update.
11947 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11948 offset_size, ref_addr_size, text_offset, addr_type, version,
11949 objfile, int_type, addr_sized_int_type>: Declare methods.
11950
96c738c0
TT
119512020-02-08 Tom Tromey <tom@tromey.com>
11952
11953 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11954 Move earlier.
11955
8fdd972c
TT
119562020-02-08 Tom Tromey <tom@tromey.com>
11957
11958 * dwarf2/read.h (dwarf_line_debug): Declare.
11959 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11960 * dwarf2/read.c: Move line_header code to new files.
11961 (dwarf_line_debug): No longer static.
11962 * dwarf2/line-header.c: New file.
11963 * dwarf2/line-header.h: New file.
11964
03075812
TT
119652020-02-08 Tom Tromey <tom@tromey.com>
11966
11967 * dwarf2/read.c (struct line_header) <file_full_name,
11968 file_file_name>: Return unique_xmalloc_ptr.
11969 (line_header::file_file_name): Update.
11970 (line_header::file_full_name): Update.
11971 (dw2_get_file_names_reader): Update.
11972 (macro_start_file): Update.
11973
bb822404
TT
119742020-02-08 Tom Tromey <tom@tromey.com>
11975
11976 * dwarf2/read.c (struct line_header) <file_full_name,
11977 file_file_name>: Declare methods.
11978 (dw2_get_file_names_reader): Update.
11979 (file_file_name): Now a method.
11980 (file_full_name): Likewise.
11981 (macro_start_file): Update.
11982
009b64fc
TT
119832020-02-08 Tom Tromey <tom@tromey.com>
11984
11985 * dwarf2/read.c (dwarf_always_disassemble)
11986 (show_dwarf_always_disassemble): Move to loc.c.
11987 (_initialize_dwarf2_read): Move "always-disassemble" registration
11988 to loc.c.
11989 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11990 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11991 static.
11992 (show_dwarf_always_disassemble): Move from read.c.
11993 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11994
5895093f
TT
119952020-02-08 Tom Tromey <tom@tromey.com>
11996
11997 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11998 (create_quick_file_names_table): Return htab_up.
11999 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12000 Update.
12001 * dwarf2/read.h (struct dwarf2_per_objfile)
12002 <quick_file_names_table>: Now htab_up.
12003
b3b32279
TT
120042020-02-08 Tom Tromey <tom@tromey.com>
12005
12006 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12007
1d33d811
TT
120082020-02-08 Tom Tromey <tom@tromey.com>
12009
12010 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12011 Rewrite.
12012 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12013 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12014 (abbrev_table::abbrev_table): No longer inline.
12015 (ABBREV_HASH_SIZE): Remove.
12016 (abbrev_table::m_abbrevs): Now an htab_up.
12017
86de1d91
TT
120182020-02-08 Tom Tromey <tom@tromey.com>
12019
12020 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12021 (cutu_reader): Update.
12022 (build_type_psymtabs_1): Update.
12023 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12024 (abbrev_table::alloc_abbrev): Update.
12025 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12026 (abbrev_table::read): New static method, renamed from
12027 abbrev_table_read_table.
12028 (abbrev_table::alloc_abbrev)
12029 (abbrev_table::add_abbrev): Now private.
12030 (abbrev_table::abbrev_table): Now private.
12031 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12032
0335378b
TT
120332020-02-08 Tom Tromey <tom@tromey.com>
12034
12035 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12036 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12037 htab_up.
12038
48b490f2
TT
120392020-02-08 Tom Tromey <tom@tromey.com>
12040
12041 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12042 htab_up.
12043 (lookup_dwo_unit_in_dwp): Update.
12044 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12045 on obstack.
12046
bc68fb19
TT
120472020-02-08 Tom Tromey <tom@tromey.com>
12048
12049 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12050 obstack.
12051
d15acc42
TT
120522020-02-08 Tom Tromey <tom@tromey.com>
12053
12054 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12055 line_header_hash.
12056 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12057 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12058 Change type to htab_up.
12059
eaa5fa8b
TT
120602020-02-08 Tom Tromey <tom@tromey.com>
12061
12062 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12063 htab_up. Don't allocate on obstack.
12064 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12065 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12066 Change type to htab_up.
12067
b0b6a987
TT
120682020-02-08 Tom Tromey <tom@tromey.com>
12069
12070 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12071 Change type to htab_up.
12072 * dwarf2/read.c (create_signatured_type_table_from_index)
12073 (create_signatured_type_table_from_debug_names)
12074 (create_all_type_units, add_type_unit)
12075 (lookup_dwo_signatured_type, lookup_signatured_type)
12076 (process_skeletonless_type_unit): Update.
12077 (create_debug_type_hash_table, create_debug_types_hash_table):
12078 Change type of types_htab.
12079 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12080 htab_up. Don't allocate on obstack.
12081 (create_cus_hash_table): Change type of cus_htab parameter.
12082 (struct dwo_file) <cus, tus>: Now htab_up.
12083 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12084 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12085 (queue_and_load_all_dwo_tus): Update.
12086 * dwarf2/index-write.c (write_gdbindex): Update.
12087 (write_debug_names): Update.
12088
39856def
TT
120892020-02-08 Tom Tromey <tom@tromey.com>
12090
12091 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12092 dwarf2/read.c. Remove "next" member. Add constructor ntad
12093 destructor.
12094 (struct dwarf2_per_objfile) <queue>: New member.
12095 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12096 dwarf2/read.h.
12097 (dwarf2_queue, dwarf2_queue_tail): Remove.
12098 (class dwarf2_queue_guard): Add parameter to constructor. Use
12099 DISABLE_COPY_AND_ASSIGN.
12100 <m_per_objfile>: New member.
12101 <~dwarf2_queue_guard>: Rewrite.
12102 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12103 Update.
12104 (~dwarf2_queue_item): New.
12105
3e225074
TT
121062020-02-08 Tom Tromey <tom@tromey.com>
12107
12108 * dwarf2/read.c (struct die_info) <has_children>: New member.
12109 (dw2_get_file_names_reader): Remove has_children.
12110 (dw2_get_file_names): Update.
12111 (read_cutu_die_from_dwo): Remove has_children.
12112 (cutu_reader::init_tu_and_read_dwo_dies)
12113 (cutu_reader::cutu_reader): Update.
12114 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12115 Remove has_children.
12116 (build_type_psymtabs_1, process_skeletonless_type_unit)
12117 (load_partial_comp_unit, load_full_comp_unit): Update.
12118 (create_dwo_cu_reader): Remove has_children.
12119 (create_cus_hash_table, read_die_and_children): Update.
12120 (read_full_die_1,read_full_die): Remove has_children.
12121 (read_signatured_type): Update.
12122 (class cutu_reader) <has_children>: Remove.
12123
82ca8957
TT
121242020-02-08 Tom Tromey <tom@tromey.com>
12125
12126 * dwarf2/expr.c: Rename from dwarf2expr.c.
12127 * dwarf2/expr.h: Rename from dwarf2expr.h.
12128 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12129 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12130 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12131 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12132 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12133 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12134 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12135 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12136 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12137 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12138 * dwarf2/loc.c: Rename from dwarf2loc.c.
12139 * dwarf2/loc.h: Rename from dwarf2loc.h.
12140 * dwarf2/read.c: Rename from dwarf2read.c.
12141 * dwarf2/read.h: Rename from dwarf2read.h.
12142 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12143 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12144 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12145 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12146 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12147 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12148 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12149 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12150 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12151 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12152 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12153 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12154 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12155 Update.
12156 * Makefile.in (COMMON_SFILES): Update.
12157 (HFILES_NO_SRCDIR): Update.
12158
9e35d499
TT
121592020-02-08 Tom Tromey <tom@tromey.com>
12160
12161 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12162 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12163
1eba2311
TT
121642020-02-08 Tom Tromey <tom@tromey.com>
12165
12166 * dwarf2read.h (struct die_info): Don't declare.
12167
e41c2da2
TT
121682020-02-08 Tom Tromey <tom@tromey.com>
12169
12170 * dwarf2read.h (die_info_ptr): Remove typedef.
12171
4fc6c0d5
TT
121722020-02-08 Tom Tromey <tom@tromey.com>
12173
12174 * dwarf2read.c (read_call_site_scope)
12175 (handle_data_member_location, dwarf2_add_member_fn)
12176 (mark_common_block_symbol_computed, read_common_block)
12177 (attr_to_dynamic_prop, partial_die_info::read)
12178 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12179 (dwarf2_symbol_mark_computed, set_die_type): Update.
12180 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12181 method.
12182 (attr_form_is_block): Don't declare.
12183 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12184
cd6c91b4
TT
121852020-02-08 Tom Tromey <tom@tromey.com>
12186
12187 * dwarf2read.c (dwarf2_find_base_address, )
12188 (read_call_site_scope, rust_containing_type)
12189 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12190 (handle_data_member_location, dwarf2_add_member_fn)
12191 (get_alignment, read_structure_type, process_structure_scope)
12192 (mark_common_block_symbol_computed, read_common_block)
12193 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12194 (partial_die_info::read, read_attribute_value, new_symbol)
12195 (lookup_die_type, dwarf2_get_ref_die_offset)
12196 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12197 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12198 (dwarf2_symbol_mark_computed): Update.
12199 * dwarf2/attribute.h (struct attribute) <value_as_address,
12200 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12201 methods.
12202 (value_as_address, attr_form_is_section_offset)
12203 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12204 * dwarf2/attribute.c (attribute::value_as_address)
12205 (attribute::form_is_section_offset, attribute::form_is_constant)
12206 (attribute::form_is_ref): Now methods.
12207
162dce55
TT
122082020-02-08 Tom Tromey <tom@tromey.com>
12209
12210 * dwarf2read.c (struct attribute, DW_STRING)
12211 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12212 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12213 (attr_form_is_block, attr_form_is_section_offset)
12214 (attr_form_is_constant, attr_form_is_ref): Move.
12215 * dwarf2/attribute.h: New file.
12216 * dwarf2/attribute.c: New file, from dwarf2read.c.
12217 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12218
3054dd54
TT
122192020-02-08 Tom Tromey <tom@tromey.com>
12220
12221 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12222 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12223 Move.
12224 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12225 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12226 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12227 abbrev.c.
12228 * dwarf2/abbrev.h: New file.
12229 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12230 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12231
96b79293
TT
122322020-02-08 Tom Tromey <tom@tromey.com>
12233
12234 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12235 (dwarf2_section_size, dwarf2_get_section_info)
12236 (create_signatured_type_table_from_debug_names)
12237 (create_addrmap_from_aranges, read_debug_names_from_section)
12238 (get_gdb_index_contents_from_section, read_comp_unit_head)
12239 (error_check_comp_unit_head, read_abbrev_offset)
12240 (create_debug_type_hash_table, init_cu_die_reader)
12241 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12242 (read_comp_units_from_section, create_cus_hash_table)
12243 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12244 (create_dwp_v2_section, dwarf2_rnglists_process)
12245 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12246 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12247 (read_indirect_string_from_dwz, read_addr_index_1)
12248 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12249 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12250 (fill_in_loclist_baton): Update.
12251 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12252 get_containing_section, get_bfd_owner, get_bfd_section,
12253 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12254 (dwarf2_read_section, get_section_name, get_section_file_name)
12255 (get_containing_section, get_section_bfd_owner)
12256 (get_section_bfd_section, get_section_name, get_section_file_name)
12257 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12258 declare.
12259 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12260 (dwarf2_section_info::get_bfd_owner)
12261 (dwarf2_section_info::get_bfd_section)
12262 (dwarf2_section_info::get_name)
12263 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12264 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12265 (dwarf2_section_info::read): Now methods.
12266 * dwarf-index-write.c (class debug_names): Update.
12267
2c86cff9
TT
122682020-02-08 Tom Tromey <tom@tromey.com>
12269
12270 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12271 Move to dwarf2/section.h.
12272 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12273 (get_section_bfd_section, get_section_name)
12274 (get_section_file_name, get_section_id, get_section_flags)
12275 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12276 dwarf2/section.c.
12277 * dwarf2/section.h: New file.
12278 * dwarf2/section.c: New file, from dwarf2read.c.
12279 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12280
f4382c45
TT
122812020-02-08 Tom Tromey <tom@tromey.com>
12282
12283 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12284 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12285 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12286 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12287 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12288 * dwarf2/leb.h: New file, from dwarf2read.c.
12289 * dwarf2/leb.c: New file, from dwarf2read.c.
12290 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12291 Remove.
12292 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12293 (COMMON_SFILES): Add dwarf2/leb.c.
12294
01840b7a
JB
122952020-02-08 Joel Brobecker <brobecker@adacore.com>
12296
12297 GDB 9.1 released.
12298
dfcb27e4
IB
122992020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12300
12301 PR gdb/25190:
aac66a4c
SM
12302 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12303 * gdb/remote.c (remote_console_output): Update.
12304 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12305 (ui_file_puts): ...this.
12306 * gdb/ui-file.h (ui_file_puts): Add declaration.
12307 * gdb/utils.c (emit_style_escape): Update.
12308 (flush_wrap_buffer): Update.
12309 (fputs_maybe_filtered): Update.
12310 (fputs_unfiltered): Add function.
dfcb27e4 12311
faa17681
IB
123122020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12313
aac66a4c
SM
12314 * gdb/event-loop.c (gdb_wait_for_event): Update.
12315 * gdb/printcmd.c (printf_command): Update.
12316 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12317 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12318 (gdb_os_flush_stderr): Update.
12319 * gdb/remote.c (remote_console_output): Update.
12320 * gdb/ui-file.c (gdb_flush): Rename to...
12321 (ui_file_flush): ...this.
12322 (stderr_file::write): Update.
12323 (stderr_file::puts): Update.
12324 * gdb/ui-file.h (gdb_flush): Rename to...
12325 (ui_file_flush): ...this.
12326 * gdb/utils.c (gdb_flush): Add function.
12327 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12328
5abbbe1d
TT
123292020-02-07 Tom Tromey <tromey@adacore.com>
12330
12331 PR breakpoints/24915:
12332 * source.c (find_and_open_source): Do not check basenames_may_differ.
12333
919adfe8
TT
123342020-02-07 Tom Tromey <tom@tromey.com>
12335
12336 * README: Update gdbserver documentation.
12337 * gdbserver: Move to top level.
12338 * configure.tgt (build_gdbserver): Remove.
12339 * configure.ac: Remove --enable-gdbserver.
12340 * configure: Rebuild.
12341 * Makefile.in (distclean): Don't mention gdbserver.
12342
1d5d29e7
SV
123432020-02-06 Shahab Vahedi <shahab@synopsys.com>
12344
12345 * source-cache.c (source_cache::ensure): Surround
12346 get_plain_source_lines with a try/catch.
12347 (source_cache::get_line_charpos): Get rid of try/catch
12348 and only check for the return value of "ensure".
12349 * tui/tui-source.c (tui_source_window::set_contents):
12350 Simplify "nlines" calculation.
12351
6eb1129c
SV
123522020-02-06 Shahab Vahedi <shahab@synopsys.com>
12353
12354 * MAINTAINERS (Write After Approval): Add myself.
12355
c6a42d11
CB
123562020-02-05 Christian Biesinger <cbiesinger@google.com>
12357
12358 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12359 function call.
12360
c8ecdda6
CB
123612020-02-05 Christian Biesinger <cbiesinger@google.com>
12362
12363 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12364
f6480e70
MR
123652020-02-05 Maciej W. Rozycki <macro@wdc.com>
12366
12367 * nat/riscv-linux-tdesc.h: New file.
12368 * nat/riscv-linux-tdesc.c: New file, taking code from...
12369 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12370 ... here.
12371 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12372 NATDEPFILES.
12373
dcc9fbc6
AB
123742020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12375
12376 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12377 we don't set the fake simulator ptid to the null_ptid.
12378
719546c4
SM
123792020-02-03 Simon Marchi <simon.marchi@efficios.com>
12380
12381 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12382 * gdbthread.h (class thread_info) <resumed>: Likewise.
12383 * infrun.c (resume_1): Likewise.
12384 (proceed): Likewise.
12385 (infrun_thread_stop_requested): Likewise.
12386 (stop_all_threads): Likewise.
12387 (handle_inferior_event): Likewise.
12388 (restart_threads): Likewise.
12389 (finish_step_over): Likewise.
12390 (keep_going_stepped_thread): Likewise.
12391 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12392 (linux_handle_extended_wait): Likewise.
12393 * record-btrace.c (get_thread_current_frame_id): Likewise.
12394 * record-full.c (record_full_wait_1): Likewise.
12395 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12396 * target.c (target_resume): Likewise.
12397 * thread.c (set_running_thread): Likewise.
12398
e409c542
AKS
123992020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12400
12401 * f-valprint.c (f77_print_array_1): Changed datatype of index
12402 variable to LONGEST from int to enable it to contain bound
12403 values correctly.
12404
ee98c0da
MR
124052020-02-03 Maciej W. Rozycki <macro@wdc.com>
12406
12407 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12408 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12409 offsets according to FLEN determined.
12410 (riscv_linux_nat_target::read_description): Determine FLEN
12411 dynamically.
12412 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12413 according to FLEN determined.
12414 (riscv_linux_nat_target::store_registers): Likewise.
12415
aa66aac4
SV
124162020-02-01 Shahab Vahedi <shahab@synopsys.com>
12417
12418 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12419 when reg->group is empty and reggroup is not.
12420
fd9faca8
TT
124212020-01-31 Tom Tromey <tromey@adacore.com>
12422
12423 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12424 Call beneath target's mourn_inferior after unpushing.
12425
42330a68
AB
124262020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12427
12428 PR tui/9765
12429 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12430 have enough lines to fill the screen, still return the lowest
12431 address we found.
12432
7a27a45b
AB
124332020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12434
12435 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12436 '-', '<', and '>' commands.
12437
c47f70e2
PA
124382020-01-29 Pedro Alves <palves@redhat.com>
12439 Sergio Durigan Junior <sergiodj@redhat.com>
12440
12441 * infcmd.c (construct_inferior_arguments): Assert that
12442 'argc' is greater than 0.
12443
5133a315
LM
124442020-01-29 Luis Machado <luis.machado@linaro.org>
12445
12446 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12447 (BRK_INSN_MASK): Define to 0xd4200000.
12448 (aarch64_program_breakpoint_here_p): New function.
12449 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12450 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12451 breakpoint.c.
12452 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12453 breakpoint.h
12454 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12455 call gdbarch_program_breakpoint_here_p.
12456 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12457 default_program_breakpoint_here_p, changed return type to bool and
12458 simplified.
12459 * breakpoint.h (program_breakpoint_here): Moved prototype to
12460 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12461 return type to bool.
12462 * gdbarch.c: Regenerate.
12463 * gdbarch.h: Regenerate.
12464 * gdbarch.sh (program_breakpoint_here_p): New method.
12465 * infrun.c (handle_signal_stop): Call
12466 gdbarch_program_breakpoint_here_p.
12467
168f8c6b
TT
124682020-01-26 Tom Tromey <tom@tromey.com>
12469
12470 * ctfread.c (struct ctf_fp_info): Reindent.
12471 (_initialize_ctfread): Remove.
12472
128a391f
TT
124732020-01-26 Tom Tromey <tom@tromey.com>
12474
12475 * psymtab.c (partial_map_expand_apply)
12476 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12477 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12478 (psym_print_stats, psym_expand_symtabs_for_function)
12479 (psym_map_symbol_filenames, psym_map_matching_symbols)
12480 (psym_expand_symtabs_matching)
12481 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12482 (maintenance_check_psymtabs): Use new methods.
12483 * psympriv.h (struct partial_symtab) <readin_p,
12484 get_compunit_symtab>: New methods.
12485 <readin, compunit_symtab>: Remove members.
12486 (struct standard_psymtab): New.
12487 (struct legacy_psymtab): Derive from standard_psymtab.
12488 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12489 standard_psymtab.
12490 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12491
0494dbec
TT
124922020-01-26 Tom Tromey <tom@tromey.com>
12493
12494 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12495 read_dependencies. Add assert.
12496 * psymtab.c (partial_symtab::read_dependencies): New method.
12497 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12498 method.
12499 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12500 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12501 read_dependencies.
12502 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12503 Add assert.
12504
8566b89b
TT
125052020-01-26 Tom Tromey <tom@tromey.com>
12506
12507 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12508 Call expand_psymtab.
12509 (xcoff_read_symtab): Call expand_psymtab.
12510 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12511 legacy_expand_psymtab.
12512 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12513 method.
12514 (struct legacy_psymtab) <expand_psymtab>: Implement.
12515 <legacy_expand_psymtab>: New member.
12516 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12517 (parse_partial_symbols): Set legacy_expand_psymtab.
12518 (psymtab_to_symtab_1): Change argument order. Call
12519 expand_psymtab.
12520 (new_psymtab): Set legacy_expand_psymtab.
12521 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12522 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12523 expand_psymtab.
12524 (dwarf2_psymtab::expand_psymtab): Rename from
12525 psymtab_to_symtab_1. Call expand_psymtab.
12526 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12527 (dbx_end_psymtab): Likewise.
12528 (dbx_psymtab_to_symtab_1): Change argument order. Call
12529 expand_psymtab.
12530 (dbx_read_symtab): Call expand_psymtab.
12531 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12532 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12533 (ctf_psymtab::read_symtab): Call expand_psymtab.
12534
077cbab2
TT
125352020-01-26 Tom Tromey <tom@tromey.com>
12536
12537 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12538 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12539 messages.
12540 * mdebugread.c (mdebug_read_symtab): Remove prints.
12541 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12542 assert.
12543 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12544
891813be
TT
125452020-01-26 Tom Tromey <tom@tromey.com>
12546
12547 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12548 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12549 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12550 legacy_symtab.
12551 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12552 * psymtab.c (psymtab_to_symtab): Call method.
12553 (dump_psymtab): Update.
12554 * psympriv.h (struct partial_symtab): Add virtual destructor.
12555 <read_symtab>: New method.
12556 (struct legacy_symtab): New.
12557 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12558 (struct pst_map) <pst>: Now a legacy_psymtab.
12559 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12560 (new_psymtab): Use legacy_psymtab.
12561 * dwarf2read.h (struct dwarf2_psymtab): New.
12562 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12563 * dwarf2read.c (dwarf2_create_include_psymtab)
12564 (dwarf2_build_include_psymtabs, create_type_unit_group)
12565 (create_partial_symtab, process_psymtab_comp_unit_reader)
12566 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12567 (set_partial_user): Use dwarf2_psymtab.
12568 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12569 (psymtab_to_symtab_1, process_full_comp_unit)
12570 (process_full_type_unit, dwarf2_ranges_read)
12571 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12572 (dwarf_decode_lines): Use dwarf2_psymtab.
12573 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12574 (add_address_entry_worker, write_one_signatured_type)
12575 (recursively_count_psymbols, recursively_write_psymbols)
12576 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12577 (write_debug_names): Likewise.
12578 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12579 <pst>: Now a legacy_psymtab.
12580 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12581 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12582 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12583 * ctfread.c (struct ctf_psymtab): New.
12584 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12585 ctf_psymtab.
12586 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12587 (create_partial_symtab): Return a ctf_psymtab.
12588 (scan_partial_symbols): Update.
12589
c3693a1d
TT
125902020-01-26 Tom Tromey <tom@tromey.com>
12591
12592 * xcoffread.c (xcoff_start_psymtab): Use new.
12593 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12594 renamed from start_psymtab_common.
12595 * psympriv.h (struct partial_symtab): Add new constructor.
12596 (start_psymtab_common): Don't declare.
12597 * mdebugread.c (parse_partial_symbols): Use new.
12598 * dwarf2read.c (create_partial_symtab): Use new.
12599 * dbxread.c (start_psymtab): Use new.
12600 * ctfread.c (create_partial_symtab): Use new.
12601
32caafd0
TT
126022020-01-26 Tom Tromey <tom@tromey.com>
12603
12604 * xcoffread.c (xcoff_end_psymtab): Use new.
12605 * psymtab.c (start_psymtab_common): Use new.
12606 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12607 Update.
12608 * psympriv.h (struct partial_symtab): Add parameters to
12609 constructor. Don't inline.
12610 (allocate_psymtab): Don't declare.
12611 * mdebugread.c (new_psymtab): Use new.
12612 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12613 * dbxread.c (dbx_end_psymtab): Use new.
12614
abaa2f23
TT
126152020-01-26 Tom Tromey <tom@tromey.com>
12616
12617 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12618 allocate_psymtab. Update documentation.
12619 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12620 allocate_psymtab. Do not use new.
12621 (allocate_psymtab): Use new. Update.
12622
6d94535f
TT
126232020-01-26 Tom Tromey <tom@tromey.com>
12624
12625 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12626 * psymtab.c (psym_print_stats): Update.
12627 * psympriv.h (struct partial_symtab) <readin,
12628 psymtabs_addrmap_supported, anonymous>: Now bool.
12629 * mdebugread.c (psymtab_to_symtab_1): Update.
12630 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12631 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12632 (process_full_comp_unit, process_full_type_unit): Update.
12633 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12634 * ctfread.c (psymtab_to_symtab): Update.
12635
6f17252b
TT
126362020-01-26 Tom Tromey <tom@tromey.com>
12637
12638 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12639 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12640 * psymtab.c (psymtab_storage): Delete psymtabs.
12641 (psymtab_storage::allocate_psymtab): Use new.
12642 (psymtab_storage::discard_psymtab): Use delete.
12643 * psympriv.h (struct partial_symtab): Add constructor and
12644 initializers.
12645
f6f1cebc
TT
126462020-01-26 Tom Tromey <tom@tromey.com>
12647
12648 * machoread.c: Do not include psympriv.h.
12649
e47e48f6
PW
126502020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12651
12652 * NEWS: Mention the new option and the set/show commands.
12653
a2fedca9
PW
126542020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12655
12656 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12657 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12658 (validate_exec_file): New variables, enums, functions.
12659 (exec_file_locate_attach, print_section_info): Style the filenames.
12660 (_initialize_exec): Install show_exec_file_mismatch_command and
12661 set_exec_file_mismatch_command.
12662 * gdbcore.h (validate_exec_file): Declare.
12663 * infcmd.c (attach_command): Call validate_exec_file.
12664 * remote.c ( remote_target::remote_add_inferior): Likewise.
12665
7ffa82e1
AB
126662020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12667
12668 * frame.c (find_frame_sal): Move call to get_next_frame into more
12669 inner scope.
12670 * inline-frame.c (inilne_state) <inline_state>: Update argument
12671 types.
12672 (inilne_state) <skipped_symbol>: Rename to...
12673 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12674 (skip_inline_frames): Build vector of skipped symbols and use this
12675 to reate the inline_state.
12676 (inline_skipped_symbol): Add a comment and some assertions, fetch
12677 skipped symbol from the list.
12678
3d92a3e3
AB
126792020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12680
12681 * buildsym.c (lte_is_less_than): Delete.
12682 (buildsym_compunit::end_symtab_with_blockvector): Create local
12683 lambda function to sort line table entries, and use
12684 std::stable_sort instead of std::sort.
12685 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12686 markers when looking for a previous line.
12687
94a72be7
AB
126882020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12689
12690 * dwarf2read.c (lnp_state_machine::record_line): Include
12691 end_sequence parameter in debug print out. Record the line if we
12692 are at an end_sequence marker even if it's not the start of a
12693 statement.
12694 * symmisc.c (maintenance_print_one_line_table): Print end of
12695 sequence markers with 'END' not '0'.
12696
53af73bf
PA
126972020-01-24 Pedro Alves <palves@redhat.com>
12698
12699 PR gdb/25410
12700 * thread.c (scoped_restore_current_thread::restore): Use
12701 switch_to_inferior_no_thread.
12702 * exec.c: Include "progspace-and-thread.h".
12703 (add_target_sections, remove_target_sections):
12704 scoped_restore_current_pspace_and_thread instead of
12705 scoped_restore_current_thread.
12706 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12707 and aspace to the inferior before calling clone_program_space.
12708 Remove stale comment.
12709
3050c6f4
CB
127102020-01-24 Christian Biesinger <cbiesinger@google.com>
12711
12712 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12713 (arm_netbsd_nat_target::fetch_registers): ...this.
12714 (arm_nbsd_nat_target::store_registers): Rename to...
12715 (arm_netbsd_nat_target::store_registers): ...this.
12716
73685c7e
CB
127172020-01-24 Christian Biesinger <cbiesinger@google.com>
12718
12719 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12720 register_t.
12721
89203d40
CB
127222020-01-24 Christian Biesinger <cbiesinger@google.com>
12723
12724 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12725 Update comment.
12726 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12727 Likewise.
12728 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12729 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12730 the correct replacement (iterate_over_regset_sections).
12731 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12732 Update comment.
12733
1ba1ac88
AB
127342020-01-24 Graham Markall <graham.markall@embecosm.com>
12735
12736 PR gdb/23718
12737 * gdb/python/python.c (execute_gdb_command): Call
12738 async_enable_stdin in catch block.
12739
f3364a6d
AB
127402020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12741
12742 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12743 SWITCH_THRU_ALL_UIS.
12744
733d0a67
AB
127452020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12746
12747 PR tui/9765
12748 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12749 comment, add extra parameter, and update to store previous symbol
12750 when appropriate.
12751 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12752 add extra parameter.
12753 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12754 remove unneeded parameter, add try/catch around gdb_print_insn,
12755 rewrite to add items to asm_lines vector.
12756 (tui_find_backward_disassembly_start_address): New function.
12757 (tui_find_disassembly_address): Updated throughout.
12758 (tui_disasm_window::set_contents): Update for changes to
12759 tui_disassemble.
12760 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12761 number of lines to scroll.
12762
b3b3bada
SM
127632020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12764
12765 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12766 (SECT_OFF_DATA): Likewise.
12767 (SECT_OFF_RODATA): Likewise.
12768 (SECT_OFF_TEXT): Likewise.
12769 (SECT_OFF_BSS): Likewise.
12770 (struct objfile) <text_section_offset, data_section_offset>: New
12771 methods.
12772 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12773 objfile::text_section_offset.
12774 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12775 * coffread.c (coff_symtab_read): Likewise.
12776 (enter_linenos): Likewise.
12777 (process_coff_symbol): Likewise.
12778 * ctfread.c (get_objfile_text_range): Likewise.
12779 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12780 Use objfile::data_section_offset.
12781 * dwarf2-frame.c (execute_cfa_program): Use
12782 objfile::text_section_offset.
12783 (dwarf2_frame_find_fde): Likewise.
12784 * dwarf2read.c (create_addrmap_from_index): Likewise.
12785 (create_addrmap_from_aranges): Likewise.
12786 (dw2_find_pc_sect_compunit_symtab): Likewise.
12787 (process_psymtab_comp_unit_reader): Likewise.
12788 (add_partial_symbol): Likewise.
12789 (add_partial_subprogram): Likewise.
12790 (process_full_comp_unit): Likewise.
12791 (read_file_scope): Likewise.
12792 (read_func_scope): Likewise.
12793 (read_lexical_block_scope): Likewise.
12794 (read_call_site_scope): Likewise.
12795 (dwarf2_rnglists_process): Likewise.
12796 (dwarf2_ranges_process): Likewise.
12797 (dwarf2_ranges_read): Likewise.
12798 (dwarf_decode_lines_1): Likewise.
12799 (new_symbol): Likewise.
12800 (dwarf2_fetch_die_loc_sect_off): Likewise.
12801 (dwarf2_per_cu_text_offset): Likewise.
12802 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12803 * hppa-tdep.c (read_unwind_info): Likewise.
12804 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12805 * psympriv.h (struct partial_symtab): Likewise.
12806 * psymtab.c (find_pc_sect_psymtab): Likewise.
12807 * solib-svr4.c (enable_break): Likewise.
12808 * stap-probe.c (relocate_address): Use
12809 objfile::data_section_offset.
12810 * xcoffread.c (enter_line_range): Use
12811 objfile::text_section_offset.
12812 (read_xcoff_symtab): Likewise.
12813
ab53f382
SM
128142020-01-23 Simon Marchi <simon.marchi@efficios.com>
12815
12816 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12817 declaration to narrower scopes.
12818
e7eee665
SM
128192020-01-23 Simon Marchi <simon.marchi@efficios.com>
12820
12821 * darwin-nat.h (struct darwin_exception_msg, enum
12822 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12823 Move up.
12824 (class darwin_nat_target) <wait_1, check_new_threads,
12825 decode_exception_message, decode_message, stop_inferior,
12826 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12827 * darwin-nat.c (darwin_check_new_threads): Rename to...
12828 (darwin_nat_target::check_new_threads): ... this.
12829 (darwin_suspend_inferior_it): Remove.
12830 (darwin_decode_exception_message): Rename to...
12831 (darwin_nat_target::decode_exception_message): ... this.
12832 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12833 (darwin_decode_message): Rename to...
12834 (darwin_nat_target::decode_message): ... this.
12835 (cancel_breakpoint): Rename to...
12836 (darwin_nat_target::cancel_breakpoint): ... this.
12837 (darwin_wait): Rename to...
12838 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12839 instead of iterate_over_inferiors.
12840 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12841 (darwin_stop_inferior): Rename to...
12842 (darwin_nat_target::stop_inferior): ... this.
12843 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12844 (darwin_init_thread_list): Rename to...
12845 (darwin_nat_target::init_thread_list): ... this.
12846 (darwin_ptrace_him): Rename to...
12847 (darwin_nat_target::ptrace_him): ... this.
12848 (darwin_nat_target::create_inferior): Pass lambda function to
12849 fork_inferior.
12850 (darwin_nat_target::detach): Call stop_inferior instead of
12851 darwin_stop_inferior.
12852 * fork-inferior.h (fork_inferior): Change init_trace_fun
12853 parameter to gdb::function_view.
12854 * fork-inferior.c (fork_inferior): Likewise.
12855
c162ed3e
HD
128562020-01-23 Hannes Domani <ssbssa@yahoo.de>
12857
12858 * i386-cygwin-tdep.c (core_process_module_section): Update.
12859 * windows-nat.c (struct lm_info_windows): Add text_offset.
12860 (windows_xfer_shared_libraries): Update.
12861 * windows-tdep.c (windows_xfer_shared_library):
12862 Add text_offset_cached argument.
12863 * windows-tdep.h (windows_xfer_shared_library): Update.
12864
a1237872
SM
128652020-01-21 Simon Marchi <simon.marchi@efficios.com>
12866
12867 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12868
b3ee6dd9
SM
128692020-01-21 Simon Marchi <simon.marchi@efficios.com>
12870
12871 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12872 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12873 replace with range-based for.
12874 (gdbsim_interrupt_inferior): Remove.
12875 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12876 with a range-based for. Inline code from
12877 gdbsim_interrupt_inferior.
12878
f9fac3c8
SM
128792020-01-21 Simon Marchi <simon.marchi@efficios.com>
12880
12881 * infrun.c (proceed): Fix indentation.
12882
f6474de9
TT
128832020-01-21 Tom Tromey <tromey@adacore.com>
12884
12885 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12886 * python/python.c (python_extension_ops): Update.
12887 (gdbpy_colorize): New function.
12888 * python/lib/gdb/__init__.py (colorize): New function.
12889 * extension.h (ext_lang_colorize): Declare.
12890 * extension.c (ext_lang_colorize): New function.
12891 * extension-priv.h (struct extension_language_ops) <colorize>: New
12892 member.
12893 * cli/cli-style.c (_initialize_cli_style): Update help text.
12894
f0c702d4
LM
128952020-01-21 Luis Machado <luis.machado@linaro.org>
12896
12897 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12898 <cond>: Change type to bool.
12899 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12900 (aarch64_displaced_step_cb): Likewise.
12901 (aarch64_displaced_step_tb): Likewise.
12902
1ab139e5
LM
129032020-01-21 Luis Machado <luis.machado@linaro.org>
12904
12905 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12906 output.
12907
0c271889
LM
129082020-01-21 Luis Machado <luis.machado@linaro.org>
12909
12910 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12911 <pc_adjust>: Adjust the documentation.
12912 (aarch64_displaced_step_fixup): Check if PC really moved before
12913 adjusting it.
12914
4d89c1c7
TT
129152020-01-19 Tom Tromey <tom@tromey.com>
12916
12917 * disasm.c (~gdb_disassembler): New destructor.
12918 (gdb_buffered_insn_length): Call disassemble_free_target.
12919 * disasm.h (class gdb_disassembler): Declare destructor. Use
12920 DISABLE_COPY_AND_ASSIGN.
12921
c0ab21c2
TT
129222020-01-19 Tom Tromey <tom@tromey.com>
12923
12924 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12925 (die_reader_func_ftype): Remove.
12926 (cutu_reader): New class.
12927 (dw2_get_file_names_reader): Remove "data" parameter.
12928 (dw2_get_file_names): Use cutu_reader.
12929 (create_debug_type_hash_table): Update.
12930 (read_cutu_die_from_dwo): Update comment.
12931 (lookup_dwo_unit): Add dwo_name parameter.
12932 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12933 die_reader_func_ftype and data parameters.
12934 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12935 Remove die_reader_func_ftype and data parameters.
12936 (~cutu_reader): New; from init_cutu_and_read_dies.
12937 (cutu_reader::cutu_reader): Rename from
12938 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12939 and data parameters.
12940 (init_cutu_and_read_dies_simple): Remove.
12941 (struct process_psymtab_comp_unit_data): Remove.
12942 (process_psymtab_comp_unit_reader): Remove data parameter; add
12943 want_partial_unit and pretend_language parameters.
12944 (process_psymtab_comp_unit): Use cutu_reader.
12945 (build_type_psymtabs_reader): Remove data parameter.
12946 (build_type_psymtabs_1): Use cutu_reader.
12947 (process_skeletonless_type_unit): Likewise.
12948 (load_partial_comp_unit_reader): Remove.
12949 (load_partial_comp_unit): Use cutu_reader.
12950 (load_full_comp_unit_reader): Remove.
12951 (load_full_comp_unit): Use cutu_reader.
12952 (struct create_dwo_cu_data): Remove.
12953 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12954 dwo_unit parameters.
12955 (create_cus_hash_table): Use cutu_reader.
12956 (struct dwarf2_read_addr_index_data): Remove.
12957 (dwarf2_read_addr_index_reader): Remove.
12958 (dwarf2_read_addr_index): Use cutu_reader.
12959 (read_signatured_type_reader): Remove.
12960 (read_signatured_type): Use cutu_reader.
12961
45bbae5c
TT
129622020-01-19 Tom Tromey <tom@tromey.com>
12963
12964 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12965 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12966 (tui_wrefresh): Declare.
12967 * tui/tui-wingeneral.c (suppress_output): New global.
12968 (tui_suppress_output, ~tui_suppress_output): New constructor and
12969 destructor.
12970 (tui_wrefresh): New function.
12971 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12972 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12973 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12974 method.
12975 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12976 tui_wrefresh.
12977 (tui_data_window::no_refresh): New method.
12978 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12979 (tui_reg_command): Use tui_suppress_output
12980 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12981 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12982 method.
12983 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12984
4f13c1c0
TT
129852020-01-19 Tom Tromey <tom@tromey.com>
12986
12987 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12988 Handle case where symtab is null.
12989
fa47e446
SM
129902020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12991
12992 * linux-fork.c (one_fork_p): Simplify.
12993
26f42329
SM
129942020-01-17 Simon Marchi <simon.marchi@efficios.com>
12995
12996 * top.c (struct qt_args): Remove.
12997 (kill_or_detach): Change return type to void, replace `void *`
12998 parameter with a proper one.
12999 (print_inferior_quit_action): Likewise.
13000 (quit_confirm): Use range-based for loop to iterate over inferiors.
13001 (quit_force): Likewise.
13002
a9ac81b1
SM
130032020-01-17 Simon Marchi <simon.marchi@efficios.com>
13004
13005 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13006 `void *` parameter with proper parameters.
13007 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13008 (print_one_inferior): Change return type to void, replace `void *`
13009 parameter with proper parameters.
13010 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13011 inferiors.
13012 (get_other_inferior): Remove.
13013 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13014 inferiors.
13015
788eca49
SM
130162020-01-17 Simon Marchi <simon.marchi@efficios.com>
13017
13018 * mi/mi-interp.c (report_initial_inferior): Remove.
13019 (mi_interp::init): Use range-based for to iterate over inferiors.
13020
d9bc85b6
SM
130212020-01-17 Simon Marchi <simon.marchi@efficios.com>
13022
13023 * python/py-inferior.c (build_inferior_list): Remove.
13024 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13025
40c94099
CB
130262020-01-16 Christian Biesinger <cbiesinger@google.com>
13027
13028 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13029 (btrace_stitch_trace): Likewise.
13030 * charset.c (intermediate_encoding): Likewise (vaild).
13031 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13032 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13033 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13034
e0cdfe3c
HD
130352020-01-16 Hannes Domani <ssbssa@yahoo.de>
13036
13037 * windows-tdep.c (windows_get_tlb_type):
13038 Add rtl_user_process_parameters type.
13039
790f1718 130402020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13041 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13042
13043 PR build/24805
13044 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13045 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13046 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13047 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13048 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13049 (ps_plog): Redeclare exported functions with default visibility.
13050
3112ed97
NA
130512020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13052
13053 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13054 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13055
8dc3273e
SM
130562020-01-15 Simon Marchi <simon.marchi@efficios.com>
13057
13058 * infcmd.c (post_create_inferior): Use get_thread_regcache
13059 instead of get_current_regcache.
13060
ff47f4f0
TT
130612020-01-14 Tom Tromey <tom@tromey.com>
13062
13063 PR symtab/12535:
13064 * python/python.c (gdbpy_decode_line): Treat empty string the same
13065 as no argument.
13066
975f45b7
TT
130672020-01-14 Tom Tromey <tom@tromey.com>
13068
13069 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13070
25e57356
TT
130712020-01-14 Tom Tromey <tom@tromey.com>
13072
13073 * nat/linux-btrace.c: Don't include <config.h>.
13074 * nat/linux-ptrace.c: Don't include <config.h>.
13075 * nat/x86-linux-dregs.c: Don't include <config.h>.
13076
05ea2a05
TT
130772020-01-14 Tom Tromey <tom@tromey.com>
13078
13079 * configure: Rebuild.
13080 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13081
01027315
TT
130822020-01-14 Tom Tromey <tom@tromey.com>
13083
13084 * nat/x86-linux-dregs.c: Include configh.h.
13085 * nat/linux-ptrace.c: Include configh.h.
13086 * nat/linux-btrace.c: Include configh.h.
13087 * defs.h: Include config.h, bfd.h.
13088 * configure.ac: Don't source common.host.
13089 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13090 * configure: Rebuild.
13091 * acinclude.m4: Update path.
13092 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13093 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13094 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13095 (CLIBS): Add LIBSUPPORT.
13096 (CDEPS): Likewise.
13097 (COMMON_SFILES): Remove gdbsupport files.
13098 (HFILES_NO_SRCDIR): Likewise.
13099 (stamp-version): Update path to create-version.sh.
13100 (ALLDEPFILES): Remove gdbsupport files.
13101
b2ceabe8
TT
131022020-01-14 Tom Tromey <tom@tromey.com>
13103
13104 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13105 USE_WIN32API when needed.
13106 * configure.ac (USE_WIN32API): Don't define.
13107 (WIN32LIBS): Use WIN32APILIBS.
13108 * configure: Rebuild.
13109
25c51f71
TT
131102020-01-14 Tom Tromey <tom@tromey.com>
13111
13112 * configure: Rebuild.
13113 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13114
717c684d
BE
131152020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13116
13117 * skip.c (skip_function_command): Make skip w/o arguments use the
13118 name of the inlined function if pc is inside any inlined function.
13119
7da6a5b9
LM
131202020-01-14 Luis Machado <luis.machado@linaro.org>
13121
13122 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13123 * infrun.c (resume_1): Likewise.
13124 (handle_inferior_event): Remove stale comment.
13125 * linux-nat.c (linux_nat_target::resume): Update comments.
13126 (save_stop_reason): Likewise.
13127 (linux_nat_filter_event): Likewise.
13128 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13129
44e4c775
AB
131302020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13131
13132 * elfread.c (record_minimal_symbol): Set section index to 0 for
13133 non-allocatable sections.
13134
18a8505e
AT
13135
131362020-01-13 Ali Tamur <tamur@google.com>
13137
13138 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13139 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13140 to gdb::optional. Update comments.
13141 (dwo_file): Update comments.
13142 (read_attribute): Update API to take an additional out parameter,
13143 need_reprocess. This is used to mark attributes that need other
13144 attributes (e.g. str_offsets_base) for correct computation which may not
13145 have been read yet.
13146 (read_attribute_reprocess): New function declaration.
13147 (read_addr_index): Likewise.
13148 (read_dwo_str_index): Likewise.
13149 (read_stub_str_index): Likewise.
13150 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13151 (lookup_addr_base): New function definition.
13152 (lookup_ranges_base): Likewise.
13153 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13154 lookup_ranges_base.
13155 (init_cutu_and_read_dies): Update comments.
13156 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13157 unit. This is used to inherit parent's str_offsets_base and addr_base.
13158 Update comments.
13159 (init_cutu_and_read_dies_simple): Reflect API changes.
13160 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13161 (create_cus_hash_table): Change API to take parent compile unit.
13162 Reflect API changes.
13163 (open_and_init_dwo_file): Reflect API changes.
13164 (dwarf2_get_pc_bounds): Update comments.
13165 (dwarf2_record_block_ranges): Likewise.
13166 (read_full_die_1): Change implementation to reprocess attributes that
13167 need str_offsets_base and addr_base.
13168 (partial_die_info::read): Likewise.
13169 (read_attribute_reprocess): New function definition.
13170 (read_attribute_value): Change API to take an additional out parameter,
13171 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13172 when a non-dwo compile unit has index based attributes.
13173 (read_attribute): Reflect API changes.
13174 (read_addr_index_1): Reflect API changes. Update comments.
13175 (dwarf2_read_addr_index_data): Reflect API changes.
13176 (dwarf2_read_addr_index): Likewise.
13177 (read_str_index): Change API and implementation. This becomes a helper
13178 to be used by the new string index related methods. Update error
13179 message and comments.
13180 (read_dwo_str_index): New function definition.
13181 (read_stub_str_index): Likewise.
13182 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13183 * symfile.h (dwarf2_debug_sections): Likewise.
13184 * xcoffread.c (dwarf2_debug_sections): Likewise.
13185
0cac9354
SM
131862020-01-13 Simon Marchi <simon.marchi@efficios.com>
13187
13188 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13189 core_reg_sect type to gdb_byte *.
13190 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13191 * cris-tdep.c (fetch_core_registers): Likewise.
13192 * corelow.c (core_target::get_core_register_section): Change
13193 type of `contents` to gdb::byte_vector.
13194
9a6d629c
AB
131952020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13196
13197 * tui/tui-wingeneral.c (box_win): Position the title in the center
13198 of the border.
13199
d8b2f9e3
SM
132002020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13201
13202 * corelow.c (core_target::get_core_register_section): Use
13203 std::vector instead of alloca.
13204
bb564c58
SM
132052020-01-13 Simon Marchi <simon.marchi@efficios.com>
13206
13207 * warning.m4: Add -Wmissing-declarations to build_warnings.
13208 * configure: Re-generate.
13209
6b366111
SM
132102020-01-13 Simon Marchi <simon.marchi@efficios.com>
13211
13212 * python/python.c (init__gdb_module): Add declaration.
13213
6c265988
SM
132142020-01-13 Simon Marchi <simon.marchi@efficios.com>
13215
13216 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13217 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13218 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13219 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13220 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13221 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13222 * ada-exp.y (_initialize_ada_exp): Add declaration.
13223 * ada-lang.c (_initialize_ada_language): Add declaration.
13224 * ada-tasks.c (_initialize_tasks): Add declaration.
13225 * agent.c (_initialize_agent): Add declaration.
13226 * aix-thread.c (_initialize_aix_thread): Add declaration.
13227 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13228 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13229 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13230 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13231 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13232 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13233 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13234 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13235 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13236 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13237 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13238 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13239 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13240 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13241 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13242 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13243 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13244 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13245 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13246 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13247 * annotate.c (_initialize_annotate): Add declaration.
13248 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13249 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13250 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13251 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13252 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13253 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13254 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13255 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13256 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13257 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13258 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13259 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13260 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13261 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13262 * auto-load.c (_initialize_auto_load): Add declaration.
13263 * auxv.c (_initialize_auxv): Add declaration.
13264 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13265 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13266 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13267 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13268 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13269 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13270 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13271 * breakpoint.c (_initialize_breakpoint): Add declaration.
13272 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13273 * btrace.c (_initialize_btrace): Add declaration.
13274 * charset.c (_initialize_charset): Add declaration.
13275 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13276 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13277 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13278 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13279 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13280 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13281 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13282 * coffread.c (_initialize_coffread): Add declaration.
13283 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13284 * compile/compile.c (_initialize_compile): Add declaration.
13285 * complaints.c (_initialize_complaints): Add declaration.
13286 * completer.c (_initialize_completer): Add declaration.
13287 * copying.c (_initialize_copying): Add declaration.
13288 * corefile.c (_initialize_core): Add declaration.
13289 * corelow.c (_initialize_corelow): Add declaration.
13290 * cp-abi.c (_initialize_cp_abi): Add declaration.
13291 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13292 * cp-support.c (_initialize_cp_support): Add declaration.
13293 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13294 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13295 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13296 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13297 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13298 * ctfread.c (_initialize_ctfread): Add declaration.
13299 * d-lang.c (_initialize_d_language): Add declaration.
13300 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13301 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13302 * dbxread.c (_initialize_dbxread): Add declaration.
13303 * dcache.c (_initialize_dcache): Add declaration.
13304 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13305 * disasm.c (_initialize_disasm): Add declaration.
13306 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13307 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13308 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13309 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13310 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13311 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13312 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13313 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13314 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13315 * elfread.c (_initialize_elfread): Add declaration.
13316 * exec.c (_initialize_exec): Add declaration.
13317 * extension.c (_initialize_extension): Add declaration.
13318 * f-lang.c (_initialize_f_language): Add declaration.
13319 * f-valprint.c (_initialize_f_valprint): Add declaration.
13320 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13321 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13322 * filesystem.c (_initialize_filesystem): Add declaration.
13323 * findcmd.c (_initialize_mem_search): Add declaration.
13324 * findvar.c (_initialize_findvar): Add declaration.
13325 * fork-child.c (_initialize_fork_child): Add declaration.
13326 * frame-base.c (_initialize_frame_base): Add declaration.
13327 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13328 * frame.c (_initialize_frame): Add declaration.
13329 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13330 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13331 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13332 * gcore.c (_initialize_gcore): Add declaration.
13333 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13334 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13335 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13336 * gdbarch.c (_initialize_gdbarch): Add declaration.
13337 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13338 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13339 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13340 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13341 * go-lang.c (_initialize_go_language): Add declaration.
13342 * go32-nat.c (_initialize_go32_nat): Add declaration.
13343 * guile/guile.c (_initialize_guile): Add declaration.
13344 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13345 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13346 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13347 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13348 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13349 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13350 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13351 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13352 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13353 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13354 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13355 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13356 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13357 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13358 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13359 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13360 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13361 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13362 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13363 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13364 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13365 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13366 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13367 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13368 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13369 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13370 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13371 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13372 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13373 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13374 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13375 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13376 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13377 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13378 * infcall.c (_initialize_infcall): Add declaration.
13379 * infcmd.c (_initialize_infcmd): Add declaration.
13380 * inflow.c (_initialize_inflow): Add declaration.
13381 * infrun.c (_initialize_infrun): Add declaration.
13382 * interps.c (_initialize_interpreter): Add declaration.
13383 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13384 * jit.c (_initialize_jit): Add declaration.
13385 * language.c (_initialize_language): Add declaration.
13386 * linux-fork.c (_initialize_linux_fork): Add declaration.
13387 * linux-nat.c (_initialize_linux_nat): Add declaration.
13388 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13389 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13390 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13391 * m2-lang.c (_initialize_m2_language): Add declaration.
13392 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13393 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13394 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13395 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13396 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13397 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13398 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13399 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13400 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13401 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13402 * machoread.c (_initialize_machoread): Add declaration.
13403 * macrocmd.c (_initialize_macrocmd): Add declaration.
13404 * macroscope.c (_initialize_macroscope): Add declaration.
13405 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13406 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13407 * maint.c (_initialize_maint_cmds): Add declaration.
13408 * mdebugread.c (_initialize_mdebugread): Add declaration.
13409 * memattr.c (_initialize_mem): Add declaration.
13410 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13411 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13412 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13413 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13414 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13415 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13416 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13417 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13418 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13419 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13420 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13421 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13422 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13423 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13424 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13425 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13426 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13427 * mipsread.c (_initialize_mipsread): Add declaration.
13428 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13429 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13430 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13431 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13432 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13433 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13434 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13435 * nto-procfs.c (_initialize_procfs): Add declaration.
13436 * objc-lang.c (_initialize_objc_language): Add declaration.
13437 * observable.c (_initialize_observer): Add declaration.
13438 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13439 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13440 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13441 * osabi.c (_initialize_gdb_osabi): Add declaration.
13442 * osdata.c (_initialize_osdata): Add declaration.
13443 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13444 * parse.c (_initialize_parse): Add declaration.
13445 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13446 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13447 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13448 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13449 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13450 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13451 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13452 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13453 * printcmd.c (_initialize_printcmd): Add declaration.
13454 * probe.c (_initialize_probe): Add declaration.
13455 * proc-api.c (_initialize_proc_api): Add declaration.
13456 * proc-events.c (_initialize_proc_events): Add declaration.
13457 * proc-service.c (_initialize_proc_service): Add declaration.
13458 * procfs.c (_initialize_procfs): Add declaration.
13459 * producer.c (_initialize_producer): Add declaration.
13460 * psymtab.c (_initialize_psymtab): Add declaration.
13461 * python/python.c (_initialize_python): Add declaration.
13462 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13463 * record-btrace.c (_initialize_record_btrace): Add declaration.
13464 * record-full.c (_initialize_record_full): Add declaration.
13465 * record.c (_initialize_record): Add declaration.
13466 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13467 * regcache.c (_initialize_regcache): Add declaration.
13468 * reggroups.c (_initialize_reggroup): Add declaration.
13469 * remote-notif.c (_initialize_notif): Add declaration.
13470 * remote-sim.c (_initialize_remote_sim): Add declaration.
13471 * remote.c (_initialize_remote): Add declaration.
13472 * reverse.c (_initialize_reverse): Add declaration.
13473 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13474 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13475 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13476 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13477 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13478 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13479 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13480 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13481 Add declaration.
13482 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13483 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13484 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13485 * rust-exp.y (_initialize_rust_exp): Add declaration.
13486 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13487 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13488 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13489 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13490 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13491 * score-tdep.c (_initialize_score_tdep): Add declaration.
13492 * ser-go32.c (_initialize_ser_dos): Add declaration.
13493 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13494 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13495 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13496 * ser-uds.c (_initialize_ser_socket): Add declaration.
13497 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13498 * serial.c (_initialize_serial): Add declaration.
13499 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13500 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13501 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13502 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13503 * skip.c (_initialize_step_skip): Add declaration.
13504 * sol-thread.c (_initialize_sol_thread): Add declaration.
13505 * solib-aix.c (_initialize_solib_aix): Add declaration.
13506 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13507 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13508 * solib-frv.c (_initialize_frv_solib): Add declaration.
13509 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13510 * solib-target.c (_initialize_solib_target): Add declaration.
13511 * solib.c (_initialize_solib): Add declaration.
13512 * source-cache.c (_initialize_source_cache): Add declaration.
13513 * source.c (_initialize_source): Add declaration.
13514 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13515 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13516 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13517 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13518 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13519 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13520 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13521 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13522 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13523 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13524 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13525 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13526 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13527 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13528 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13529 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13530 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13531 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13532 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13533 * stabsread.c (_initialize_stabsread): Add declaration.
13534 * stack.c (_initialize_stack): Add declaration.
13535 * stap-probe.c (_initialize_stap_probe): Add declaration.
13536 * std-regs.c (_initialize_frame_reg): Add declaration.
13537 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13538 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13539 * symfile.c (_initialize_symfile): Add declaration.
13540 * symmisc.c (_initialize_symmisc): Add declaration.
13541 * symtab.c (_initialize_symtab): Add declaration.
13542 * target.c (_initialize_target): Add declaration.
13543 * target-connection.c (_initialize_target_connection): Add
13544 declaration.
13545 * target-dcache.c (_initialize_target_dcache): Add declaration.
13546 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13547 * thread.c (_initialize_thread): Add declaration.
13548 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13549 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13550 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13551 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13552 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13553 * tracectf.c (_initialize_ctf): Add declaration.
13554 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13555 * tracefile.c (_initialize_tracefile): Add declaration.
13556 * tracepoint.c (_initialize_tracepoint): Add declaration.
13557 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13558 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13559 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13560 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13561 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13562 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13563 * tui/tui.c (_initialize_tui): Add declaration.
13564 * typeprint.c (_initialize_typeprint): Add declaration.
13565 * ui-style.c (_initialize_ui_style): Add declaration.
13566 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13567 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13568 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13569 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13570 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13571 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13572 * unittests/filtered_iterator-selftests.c
13573 (_initialize_filtered_iterator_selftests): Add declaration.
13574 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13575 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13576 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13577 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13578 * unittests/main-thread-selftests.c
13579 (_initialize_main_thread_selftests): Add declaration.
13580 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13581 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13582 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13583 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13584 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13585 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13586 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13587 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13588 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13589 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13590 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13591 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13592 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13593 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13594 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13595 declaration.
13596 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13597 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13598 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13599 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13600 * user-regs.c (_initialize_user_regs): Add declaration.
13601 * utils.c (_initialize_utils): Add declaration.
13602 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13603 * valops.c (_initialize_valops): Add declaration.
13604 * valprint.c (_initialize_valprint): Add declaration.
13605 * value.c (_initialize_values): Add declaration.
13606 * varobj.c (_initialize_varobj): Add declaration.
13607 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13608 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13609 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13610 * windows-nat.c (_initialize_windows_nat): Add declaration.
13611 (_initialize_check_for_gdb_ini): Add declaration.
13612 (_initialize_loadable): Add declaration.
13613 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13614 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13615 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13616 * xcoffread.c (_initialize_xcoffread): Add declaration.
13617 * xml-support.c (_initialize_xml_support): Add declaration.
13618 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13619 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13620 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13621 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13622
e2de1eec
SM
136232020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13624
13625 * regformats/regdat.sh: Generate declaration for init function.
13626
e0037b4c
SM
136272020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13628
13629 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13630 up.
13631 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13632 close_one_inferior>: New methods.
13633 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13634 pass down target to find_inferior_pid.
13635 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13636 Pass down target to find_inferior_ptid.
13637 (gdbsim_target::create_inferior): Pass down target to
13638 add_thread_silent.
13639 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13640 target down to find_inferior_ptid and switch_to_thread.
13641 (gdbsim_target::close): Update to call close_one_inferior.
13642 (struct resume_data): Remove.
13643 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13644 directly, rather than through a void pointer.
13645 (gdbsim_target::resume): Update to call resume_one_inferior.
13646
58920b5b
SM
136472020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13648
13649 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13650
4ec89149
PA
136512020-01-12 Pedro Alves <palves@redhat.com>
13652
13653 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13654 directly for the current inferior instead of
13655 discard_all_inferiors.
13656 (discard_all_inferiors): Delete.
13657
7c392d1d
TT
136582020-01-11 Tom Tromey <tom@tromey.com>
13659
13660 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13661 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13662 deprecated_safe_get_selected_frame.
13663
d9ebdab7
TBA
136642020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13665
13666 * inferior.c (print_inferior): Switch inferior before printing it.
13667
f3c469b9
PA
136682020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13669 Pedro Alves <palves@redhat.com>
13670
13671 * progspace-and-thread.c (switch_to_program_space_and_thread):
13672 Assert there's an inferior for PSPACE. Use
13673 switch_to_inferior_no_thread to switch the inferior too.
13674 * progspace.c (program_space::~program_space): Call
13675 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13676 (program_space::free_all_objfiles): Don't call clear_symtab_users
13677 here.
13678 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13679
65c574f6
PA
136802020-01-10 Pedro Alves <palves@redhat.com>
13681
13682 * NEWS: Mention multi-target debugging, "info connections", and
13683 "add-inferior -no-connection".
13684
2f4fcf00
PA
136852020-01-10 Pedro Alves <palves@redhat.com>
13686
13687 * infrun.c: Include "target-connection.h".
13688 (check_multi_target_resumption): New.
13689 (proceed): Call it.
13690 * target-connection.c (make_target_connection_string): Make
13691 extern.
13692 * target-connection.h (make_target_connection_string): Declare.
13693
121b3efd
PA
136942020-01-10 Pedro Alves <palves@redhat.com>
13695
13696 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13697 * inferior.c (uiout_field_connection): New function.
13698 (print_inferior): Add new "connection-id" column.
13699 (add_inferior_command): Show connection number/string of added
13700 inferior.
13701 * process-stratum-target.h
13702 (process_stratum_target::connection_string): New virtual method.
13703 (process_stratum_target::connection_number): New field.
13704 * remote.c (remote_target::connection_string): New override.
13705 * target-connection.c: New file.
13706 * target-connection.h: New file.
13707 * target.c (decref_target): Remove process_stratum targets from
13708 the connection list.
13709 (target_stack::push): Add process_stratum targets to the
13710 connection list.
13711
4f837581
PA
137122020-01-10 Pedro Alves <palves@redhat.com>
13713
13714 Revert:
13715 2016-04-12 Pedro Alves <palves@redhat.com>
13716 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13717 Remove references to name.
13718 * serial.h (struct serial) <name>: Delete.
13719
f4ec508e
PA
137202020-01-10 Pedro Alves <palves@redhat.com>
13721
13722 * gdbarch-selftests.c (register_to_value_test): Remove "target
13723 already pushed" check.
13724
5b6d1e4f
PA
137252020-01-10 Pedro Alves <palves@redhat.com>
13726 John Baldwin <jhb@FreeBSD.org>
13727
13728 * aarch64-linux-nat.c
13729 (aarch64_linux_nat_target::thread_architecture): Adjust.
13730 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13731 (task_command_1): Likewise.
13732 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13733 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13734 (aix_thread_target::store_registers)
13735 (aix_thread_target::thread_alive): Adjust.
13736 * amd64-fbsd-tdep.c: Include "inferior.h".
13737 (amd64fbsd_get_thread_local_address): Pass down target.
13738 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13739 thread's gdbarch instead of target_gdbarch.
13740 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13741 get_last_target_status.
13742 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13743 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13744 inferiors.
13745 (update_inserted_breakpoint_locations): Skip if inferiors with no
13746 execution.
13747 (update_global_location_list): When handling moribund locations,
13748 find representative inferior for location's pspace, and use thread
13749 count of its process_stratum target.
13750 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13751 * bsd-uthread.c (bsd_uthread_target::wait): Use
13752 as_process_stratum_target and adjust thread_change_ptid and
13753 add_thread calls.
13754 (bsd_uthread_target::update_thread_list): Use
13755 as_process_stratum_target and adjust find_thread_ptid,
13756 thread_change_ptid and add_thread calls.
13757 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13758 find_thread_ptid call.
13759 * corelow.c (add_to_thread_list): Adjust add_thread call.
13760 (core_target_open): Adjust add_thread_silent and thread_count
13761 calls.
13762 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13763 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13764 * event-top.c (async_disconnect): Pop targets from all inferiors.
13765 * exec.c (add_target_sections): Push exec target on all inferiors
13766 sharing the program space.
13767 (remove_target_sections): Remove the exec target from all
13768 inferiors sharing the program space.
13769 (exec_on_vfork): New.
13770 * exec.h (exec_on_vfork): Declare.
13771 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13772 Pass it down.
13773 (fbsd_nat_target::update_thread_list): Adjust.
13774 (fbsd_nat_target::resume): Adjust.
13775 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13776 down.
13777 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13778 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13779 get_thread_arch_regcache call.
13780 * fork-child.c (gdb_startup_inferior): Pass target down to
13781 startup_inferior and set_executing.
13782 * gdbthread.h (struct process_stratum_target): Forward declare.
13783 (add_thread, add_thread_silent, add_thread_with_info)
13784 (in_thread_list): Add process_stratum_target parameter.
13785 (find_thread_ptid(inferior*, ptid_t)): New overload.
13786 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13787 parameter.
13788 (all_threads()): Delete overload.
13789 (all_threads, all_non_exited_threads): Add process_stratum_target
13790 parameter.
13791 (all_threads_safe): Use brace initialization.
13792 (thread_count): Add process_stratum_target parameter.
13793 (set_resumed, set_running, set_stop_requested, set_executing)
13794 (threads_are_executing, finish_thread_state): Add
13795 process_stratum_target parameter.
13796 (switch_to_thread): Use is_current_thread.
13797 * i386-fbsd-tdep.c: Include "inferior.h".
13798 (i386fbsd_get_thread_local_address): Pass down target.
13799 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13800 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13801 have_inferiors check.
13802 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13803 (inf_ptrace_target::attach): Adjust.
13804 * infcall.c (run_inferior_call): Adjust.
13805 * infcmd.c (run_command_1): Pass target to
13806 scoped_finish_thread_state.
13807 (proceed_thread_callback): Skip inferiors with no execution.
13808 (continue_command): Rename 'all_threads' local to avoid hiding
13809 'all_threads' function. Adjust get_last_target_status call.
13810 (prepare_one_step): Adjust set_running call.
13811 (signal_command): Use user_visible_resume_target. Compare thread
13812 pointers instead of inferior_ptid.
13813 (info_program_command): Adjust to pass down target.
13814 (attach_command): Mark target's 'thread_executing' flag.
13815 (stop_current_target_threads_ns): New, factored out from ...
13816 (interrupt_target_1): ... this. Switch inferior before making
13817 target calls.
13818 * inferior-iter.h
13819 (struct all_inferiors_iterator, struct all_inferiors_range)
13820 (struct all_inferiors_safe_range)
13821 (struct all_non_exited_inferiors_range): Filter on
13822 process_stratum_target too. Remove explicit.
13823 * inferior.c (inferior::inferior): Push dummy target on target
13824 stack.
13825 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13826 Add process_stratum_target parameter, and pass it down.
13827 (have_live_inferiors): Adjust.
13828 (switch_to_inferior_and_push_target): New.
13829 (add_inferior_command, clone_inferior_command): Handle
13830 "-no-connection" parameter. Use
13831 switch_to_inferior_and_push_target.
13832 (_initialize_inferior): Mention "-no-connection" option in
13833 the help of "add-inferior" and "clone-inferior" commands.
13834 * inferior.h: Include "process-stratum-target.h".
13835 (interrupt_target_1): Use bool.
13836 (struct inferior) <push_target, unpush_target, target_is_pushed,
13837 find_target_beneath, top_target, process_target, target_at,
13838 m_stack>: New.
13839 (discard_all_inferiors): Delete.
13840 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13841 (all_inferiors, all_non_exited_inferiors): Add
13842 process_stratum_target parameter.
13843 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13844 (target_last_proc_target): New global.
13845 (follow_fork_inferior): Push target on new inferior. Pass target
13846 to add_thread_silent. Call exec_on_vfork. Handle target's
13847 reference count.
13848 (follow_fork): Adjust get_last_target_status call. Also consider
13849 target.
13850 (follow_exec): Push target on new inferior.
13851 (struct execution_control_state) <target>: New field.
13852 (user_visible_resume_target): New.
13853 (do_target_resume): Call target_async.
13854 (resume_1): Set target's threads_executing flag. Consider resume
13855 target.
13856 (commit_resume_all_targets): New.
13857 (proceed): Also consider resume target. Skip threads of inferiors
13858 with no execution. Commit resumtion in all targets.
13859 (start_remote): Pass current inferior to wait_for_inferior.
13860 (infrun_thread_stop_requested): Consider target as well. Pass
13861 thread_info pointer to clear_inline_frame_state instead of ptid.
13862 (infrun_thread_thread_exit): Consider target as well.
13863 (random_pending_event_thread): New inferior parameter. Use it.
13864 (do_target_wait): Rename to ...
13865 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13866 down.
13867 (threads_are_resumed_pending_p, do_target_wait): New.
13868 (prepare_for_detach): Adjust calls.
13869 (wait_for_inferior): New inferior parameter. Handle it. Use
13870 do_target_wait_1 instead of do_target_wait.
13871 (fetch_inferior_event): Adjust. Switch to representative
13872 inferior. Pass target down.
13873 (set_last_target_status): Add process_stratum_target parameter.
13874 Save target in global.
13875 (get_last_target_status): Add process_stratum_target parameter and
13876 handle it.
13877 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13878 (context_switch): Check inferior_ptid == null_ptid before calling
13879 inferior_thread().
13880 (get_inferior_stop_soon): Pass down target.
13881 (wait_one): Rename to ...
13882 (poll_one_curr_target): ... this.
13883 (struct wait_one_event): New.
13884 (wait_one): New.
13885 (stop_all_threads): Adjust.
13886 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13887 event's target.
13888 (switch_back_to_stepped_thread): Also consider target.
13889 (print_stop_event): Update.
13890 (normal_stop): Update. Also consider the resume target.
13891 * infrun.h (wait_for_inferior): Remove declaration.
13892 (user_visible_resume_target): New declaration.
13893 (get_last_target_status, set_last_target_status): New
13894 process_stratum_target parameter.
13895 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13896 process_stratum_target parameter, and use it.
13897 (clear_inline_frame_state (thread_info*)): New.
13898 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13899 process_stratum_target parameter.
13900 (clear_inline_frame_state (thread_info*)): Declare.
13901 * linux-fork.c (delete_checkpoint_command): Pass target down to
13902 find_thread_ptid.
13903 (checkpoint_command): Adjust.
13904 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13905 instead of just tweaking inferior_ptid.
13906 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13907 (exit_lwp): Pass target down to find_thread_ptid.
13908 (attach_proc_task_lwp_callback): Pass target down to
13909 add_thread/set_running/set_executing.
13910 (linux_nat_target::attach): Pass target down to
13911 thread_change_ptid.
13912 (get_detach_signal): Pass target down to find_thread_ptid.
13913 Consider last target status's target.
13914 (linux_resume_one_lwp_throw, resume_lwp)
13915 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13916 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13917 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13918 (linux_nat_target::async_wait_fd): New.
13919 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13920 target down.
13921 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13922 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13923 * linux-thread-db.c (struct thread_db_info::process_target): New
13924 field.
13925 (add_thread_db_info): Save target.
13926 (get_thread_db_info): New process_stratum_target parameter. Also
13927 match target.
13928 (delete_thread_db_info): New process_stratum_target parameter.
13929 Also match target.
13930 (thread_from_lwp): Adjust to pass down target.
13931 (thread_db_notice_clone): Pass down target.
13932 (check_thread_db_callback): Pass down target.
13933 (try_thread_db_load_1): Always push the thread_db target.
13934 (try_thread_db_load, record_thread): Pass target down.
13935 (thread_db_target::detach): Pass target down. Always unpush the
13936 thread_db target.
13937 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13938 target down. Always unpush the thread_db target.
13939 (find_new_threads_callback, thread_db_find_new_threads_2)
13940 (thread_db_target::update_thread_list): Pass target down.
13941 (thread_db_target::pid_to_str): Pass current inferior down.
13942 (thread_db_target::get_thread_local_address): Pass target down.
13943 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13944 target down.
13945 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13946 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13947 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13948 (procfs_init_inferior): Rename to ...
13949 (procfs_target::procfs_init_inferior): ... this and adjust.
13950 (procfs_target::create_inferior, procfs_notice_thread)
13951 (procfs_do_thread_registers): Adjust.
13952 * ppc-fbsd-tdep.c: Include "inferior.h".
13953 (ppcfbsd_get_thread_local_address): Pass down target.
13954 * proc-service.c (ps_xfer_memory): Switch current inferior and
13955 program space as well.
13956 (get_ps_regcache): Pass target down.
13957 * process-stratum-target.c
13958 (process_stratum_target::thread_address_space)
13959 (process_stratum_target::thread_architecture): Pass target down.
13960 * process-stratum-target.h
13961 (process_stratum_target::threads_executing): New field.
13962 (as_process_stratum_target): New.
13963 * ravenscar-thread.c
13964 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13965 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13966 down.
13967 * record-btrace.c (record_btrace_target::info_record): Adjust.
13968 (record_btrace_target::record_method)
13969 (record_btrace_target::record_is_replaying)
13970 (record_btrace_target::fetch_registers)
13971 (get_thread_current_frame_id, record_btrace_target::resume)
13972 (record_btrace_target::wait, record_btrace_target::stop): Pass
13973 target down.
13974 * record-full.c (record_full_wait_1): Switch to event thread.
13975 Pass target down.
13976 * regcache.c (regcache::regcache)
13977 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13978 process_stratum_target parameter and handle it.
13979 (current_thread_target): New global.
13980 (get_thread_regcache): Add process_stratum_target parameter and
13981 handle it. Switch inferior before calling target method.
13982 (get_thread_regcache): Pass target down.
13983 (get_thread_regcache_for_ptid): Pass target down.
13984 (registers_changed_ptid): Add process_stratum_target parameter and
13985 handle it.
13986 (registers_changed_thread, registers_changed): Pass target down.
13987 (test_get_thread_arch_aspace_regcache): New.
13988 (current_regcache_test): Define a couple local test_target_ops
13989 instances and use them for testing.
13990 (readwrite_regcache): Pass process_stratum_target parameter.
13991 (cooked_read_test, cooked_write_test): Pass mock_target down.
13992 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13993 (get_thread_arch_aspace_regcache): Add process_stratum_target
13994 parameter.
13995 (regcache::target): New method.
13996 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13997 (regcache::registers_changed_ptid): Add process_stratum_target
13998 parameter.
13999 (regcache::m_target): New field.
14000 (registers_changed_ptid): Add process_stratum_target parameter.
14001 * remote.c (remote_state::supports_vCont_probed): New field.
14002 (remote_target::async_wait_fd): New method.
14003 (remote_unpush_and_throw): Add remote_target parameter.
14004 (get_current_remote_target): Adjust.
14005 (remote_target::remote_add_inferior): Push target.
14006 (remote_target::remote_add_thread)
14007 (remote_target::remote_notice_new_inferior)
14008 (get_remote_thread_info): Pass target down.
14009 (remote_target::update_thread_list): Skip threads of inferiors
14010 bound to other targets. (remote_target::close): Don't discard
14011 inferiors. (remote_target::add_current_inferior_and_thread)
14012 (remote_target::process_initial_stop_replies)
14013 (remote_target::start_remote)
14014 (remote_target::remote_serial_quit_handler): Pass down target.
14015 (remote_target::remote_unpush_target): New remote_target
14016 parameter. Unpush the target from all inferiors.
14017 (remote_target::remote_unpush_and_throw): New remote_target
14018 parameter. Pass it down.
14019 (remote_target::open_1): Check whether the current inferior has
14020 execution instead of checking whether any inferior is live. Pass
14021 target down.
14022 (remote_target::remote_detach_1): Pass down target. Use
14023 remote_unpush_target.
14024 (extended_remote_target::attach): Pass down target.
14025 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14026 (remote_target::append_resumption): Pass down target.
14027 (remote_target::append_pending_thread_resumptions)
14028 (remote_target::remote_resume_with_hc, remote_target::resume)
14029 (remote_target::commit_resume): Pass down target.
14030 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14031 (remote_target::interrupt_query)
14032 (remote_target::remove_new_fork_children)
14033 (remote_target::check_pending_events_prevent_wildcard_vcont)
14034 (remote_target::remote_parse_stop_reply)
14035 (remote_target::process_stop_reply): Pass down target.
14036 (first_remote_resumed_thread): New remote_target parameter. Pass
14037 it down.
14038 (remote_target::wait_as): Pass down target.
14039 (unpush_and_perror): New remote_target parameter. Pass it down.
14040 (remote_target::readchar, remote_target::remote_serial_write)
14041 (remote_target::getpkt_or_notif_sane_1)
14042 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14043 down target.
14044 (remote_target::mourn_inferior): Pass down target. Use
14045 remote_unpush_target.
14046 (remote_target::core_of_thread)
14047 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14048 (remote_target::pid_to_exec_file)
14049 (remote_target::thread_handle_to_thread_info): Pass down target.
14050 (remote_target::async_wait_fd): New.
14051 * riscv-fbsd-tdep.c: Include "inferior.h".
14052 (riscv_fbsd_get_thread_local_address): Pass down target.
14053 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14054 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14055 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14056 Adjust.
14057 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14058 * solib-svr4.c (enable_break): Pass down target.
14059 * spu-multiarch.c (parse_spufs_run): Pass down target.
14060 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14061 * target-delegates.c: Regenerate.
14062 * target.c (g_target_stack): Delete.
14063 (current_top_target): Return the current inferior's top target.
14064 (target_has_execution_1): Refer to the passed-in inferior's top
14065 target.
14066 (target_supports_terminal_ours): Check whether the initial
14067 inferior was already created.
14068 (decref_target): New.
14069 (target_stack::push): Incref/decref the target.
14070 (push_target, push_target, unpush_target): Adjust.
14071 (target_stack::unpush): Defref target.
14072 (target_is_pushed): Return bool. Adjust to refer to the current
14073 inferior's target stack.
14074 (dispose_inferior): Delete, and inline parts ...
14075 (target_preopen): ... here. Only dispose of the current inferior.
14076 (target_detach): Hold strong target reference while detaching.
14077 Pass target down.
14078 (target_thread_name): Add assertion.
14079 (target_resume): Pass down target.
14080 (target_ops::beneath, find_target_at): Adjust to refer to the
14081 current inferior's target stack.
14082 (get_dummy_target): New.
14083 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14084 has a thread running.
14085 (initialize_targets): Rename to ...
14086 (_initialize_target): ... this.
14087 * target.h: Include "gdbsupport/refcounted-object.h".
14088 (struct target_ops): Inherit refcounted_object.
14089 (target_ops::shortname, target_ops::longname): Make const.
14090 (target_ops::async_wait_fd): New method.
14091 (decref_target): Declare.
14092 (struct target_ops_ref_policy): New.
14093 (target_ops_ref): New typedef.
14094 (get_dummy_target): Declare function.
14095 (target_is_pushed): Return bool.
14096 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14097 (all_matching_threads_iterator::all_matching_threads_iterator):
14098 Handle filter target.
14099 * thread-iter.h (struct all_matching_threads_iterator, struct
14100 all_matching_threads_range, class all_non_exited_threads_range):
14101 Filter by target too. Remove explicit.
14102 * thread.c (threads_executing): Delete.
14103 (inferior_thread): Pass down current inferior.
14104 (clear_thread_inferior_resources): Pass down thread pointer
14105 instead of ptid_t.
14106 (add_thread_silent, add_thread_with_info, add_thread): Add
14107 process_stratum_target parameter. Use it for thread and inferior
14108 searches.
14109 (is_current_thread): New.
14110 (thread_info::deletable): Use it.
14111 (find_thread_ptid, thread_count, in_thread_list)
14112 (thread_change_ptid, set_resumed, set_running): New
14113 process_stratum_target parameter. Pass it down.
14114 (set_executing): New process_stratum_target parameter. Pass it
14115 down. Adjust reference to 'threads_executing'.
14116 (threads_are_executing): New process_stratum_target parameter.
14117 Adjust reference to 'threads_executing'.
14118 (set_stop_requested, finish_thread_state): New
14119 process_stratum_target parameter. Pass it down.
14120 (switch_to_thread): Also match inferior.
14121 (switch_to_thread): New process_stratum_target parameter. Pass it
14122 down.
14123 (update_threads_executing): Reimplement.
14124 * top.c (quit_force): Pop targets from all inferior.
14125 (gdb_init): Don't call initialize_targets.
14126 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14127 Declare.
14128 (windows_add_thread, windows_delete_thread): Adjust.
14129 (get_windows_debug_event): Rename to ...
14130 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14131 * tracefile-tfile.c (tfile_target_open): Pass down target.
14132 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14133 Forward declare.
14134 (switch_to_thread): Add process_stratum_target parameter.
14135 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14136 parameter. Use it.
14137 (mi_on_resume): Pass target down.
14138 * nat/fork-inferior.c (startup_inferior): Add
14139 process_stratum_target parameter. Pass it down.
14140 * nat/fork-inferior.h (startup_inferior): Add
14141 process_stratum_target parameter.
14142 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14143
75c6c844
PA
141442020-01-10 Pedro Alves <palves@redhat.com>
14145
14146 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14147 directly. Instead find the first thread in the thread list and
14148 use switch_to_thread.
14149
78f2c40a
PA
141502020-01-10 Pedro Alves <palves@redhat.com>
14151
14152 * remote.c (remote_target::remote_add_inferior): Don't bind a
14153 process to the current inferior if the current inferior is already
14154 bound to a process.
14155
e7af6c70
TBA
141562020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14157 Pedro Alves <palves@redhat.com>
14158
14159 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14160 If no process is specified, return null_ptid instead of
14161 inferior_ptid.
14162 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14163 TARGET_WAITKIND_SIGNALLED with no pid.
14164
31ba933e
PA
141652020-01-10 Pedro Alves <palves@redhat.com>
14166
14167 * remote.c (first_remote_resumed_thread): New.
14168 (remote_target::wait_as): Use it as default event_ptid instead of
14169 inferior_ptid.
14170
735fc2ca
PA
141712020-01-10 Pedro Alves <palves@redhat.com>
14172
14173 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14174
c17e02e1
PA
141752020-01-10 Pedro Alves <palves@redhat.com>
14176
14177 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14178 not -1.
14179
ab1ddbcf
PA
141802020-01-10 Pedro Alves <palves@redhat.com>
14181
14182 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14183 ptid to get_last_target_status.
14184 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14185 ptid to get_last_target_status.
14186 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14187 get_last_target_status.
14188 (info_program_command): Don't pass a target_waitstatus to
14189 get_last_target_status.
14190 * infrun.c (init_wait_for_inferior): Use
14191 nullify_last_target_wait_ptid.
14192 (get_last_target_status): Handle nullptr arguments.
14193 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14194 (print_stop_event): Don't pass a ptid to get_last_target_status.
14195 (normal_stop): Don't pass a ptid to get_last_target_status.
14196 * infrun.h (get_last_target_status, set_last_target_status): Move
14197 comments here and update.
14198 (nullify_last_target_wait_ptid): Declare.
14199 * linux-fork.c (fork_load_infrun_state): Remove local extern
14200 declaration of nullify_last_target_wait_ptid.
14201 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14202 to get_last_target_status.
14203
f3f8ece4
PA
142042020-01-10 Pedro Alves <palves@redhat.com>
14205
14206 * gdbthread.h (scoped_restore_current_thread)
14207 <dont_restore, restore, m_dont_restore>: Declare.
14208 * thread.c (thread_alive): Add assertion. Return bool.
14209 (switch_to_thread_if_alive): New.
14210 (prune_threads): Switch inferior/thread.
14211 (print_thread_info_1): Switch thread before calling target methods.
14212 (scoped_restore_current_thread::restore): New, factored out from
14213 ...
14214 (scoped_restore_current_thread::~scoped_restore_current_thread):
14215 ... this.
14216 (scoped_restore_current_thread::scoped_restore_current_thread):
14217 Add assertion.
14218 (thread_apply_all_command, thread_select): Use
14219 switch_to_thread_if_alive.
14220 * infrun.c (proceed, restart_threads, handle_signal_stop)
14221 (switch_back_to_stepped_thread): Switch current thread before
14222 calling target methods.
14223
db2d40f7
PA
142242020-01-10 Pedro Alves <palves@redhat.com>
14225
14226 * inferior.c (switch_to_inferior_no_thread): New function,
14227 factored out from ...
14228 (inferior_command): ... here.
14229 * inferior.h (switch_to_inferior_no_thread): Declare.
14230 * mi/mi-main.c (run_one_inferior): Use
14231 switch_to_inferior_no_thread.
14232
bd420a2d
PA
142332020-01-10 Pedro Alves <palves@redhat.com>
14234
14235 * infcmd.c (kill_command): Remove dead code.
14236
ddf5db90
PA
142372020-01-10 Pedro Alves <palves@redhat.com>
14238
14239 * remote.c (remote_target::mourn_inferior): No longer check
14240 whether the target is running.
14241
5018ce90
PA
142422020-01-10 Pedro Alves <palves@redhat.com>
14243
14244 * corelow.c (core_target::has_execution): Change parameter type to
14245 inferior pointer.
14246 * inferior.c (number_of_live_inferiors): Use
14247 inferior::has_execution instead of target_has_execution_1.
14248 * inferior.h (inferior::has_execution): New.
14249 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14250 inferior::has_execution instead of target_has_execution_1.
14251 * process-stratum-target.c
14252 (process_stratum_target::has_execution): Change parameter type to
14253 inferior pointer. Check the inferior's PID instead of
14254 inferior_ptid.
14255 * process-stratum-target.h
14256 (process_stratum_target::has_execution): Change parameter type to
14257 inferior pointer.
14258 * record-full.c (record_full_core_target::has_execution): Change
14259 parameter type to inferior pointer.
14260 * target.c (target_has_execution_1): Change parameter type to
14261 inferior pointer.
14262 (target_has_execution_current): Adjust.
14263 * target.h (target_ops::has_execution): Change parameter type to
14264 inferior pointer.
14265 (target_has_execution_1): Change parameter type to inferior
14266 pointer. Change return type to bool.
14267 * tracefile.h (tracefile_target::has_execution): Change parameter
14268 type to inferior pointer.
14269
74375d18
PA
142702020-01-10 Pedro Alves <palves@redhat.com>
14271
14272 * exceptions.c (print_flush): Remove current_top_target() check.
14273
acdf84a6
PA
142742020-01-10 Pedro Alves <palves@redhat.com>
14275
14276 * remote.c (show_remote_exec_file): Show the current inferior's
14277 exec-file instead of the command variable's value.
14278
ec506636
PA
142792020-01-10 Pedro Alves <palves@redhat.com>
14280
14281 * record-full.c (record_full_resume_ptid): New global.
14282 (record_full_target::resume): Set it.
14283 (record_full_wait_1): Use record_full_resume_ptid instead of
14284 inferior_ptid.
14285
873657b9
PA
142862020-01-10 Pedro Alves <palves@redhat.com>
14287
14288 * gdbthread.h (scoped_restore_current_thread)
14289 <dont_restore, restore, m_dont_restore>: Declare.
14290 * thread.c (thread_alive): Add assertion. Return bool.
14291 (switch_to_thread_if_alive): New.
14292 (prune_threads): Switch inferior/thread.
14293 (print_thread_info_1): Switch thread before calling target methods.
14294 (scoped_restore_current_thread::restore): New, factored out from
14295 ...
14296 (scoped_restore_current_thread::~scoped_restore_current_thread):
14297 ... this.
14298 (scoped_restore_current_thread::scoped_restore_current_thread):
14299 Add assertion.
14300 (thread_apply_all_command, thread_select): Use
14301 switch_to_thread_if_alive.
14302
7f0ae84c
GB
143032020-01-10 George Barrett <bob@bob131.so>
14304
14305 * stap-probe.c (stap_modify_semaphore): Don't check for null
14306 semaphores.
14307 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14308 for null semaphores.
14309
f5a7c406
AB
143102020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14311
14312 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14313 all source windows, and maintain horizontal scroll status while
14314 doing so.
14315
9ae6bf64
TT
143162020-01-09 Tom Tromey <tom@tromey.com>
14317
14318 PR tui/18932:
14319 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14320 update_source_window, not print_source_lines.
14321
b2efe70c
AB
143222020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14323
14324 * tui/tui.c (tui_enable): Register tui hooks after calling
14325 tui_display_main.
14326
5f23a082
CB
143272020-01-09 Christian Biesinger <cbiesinger@google.com>
14328
14329 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14330
3061113b
SM
143312020-01-08 Simon Marchi <simon.marchi@efficios.com>
14332
14333 * thread.c (print_thread_info_1): Fix indentation.
14334
57d75002
CB
143352020-01-09 Christian Biesinger <cbiesinger@google.com>
14336
14337 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14338 unique_xmalloc_ptr outside the if to always free the demangled name.
14339
6a053cb1
TT
143402020-01-08 Tom Tromey <tromey@adacore.com>
14341
14342 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14343 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14344 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14345 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14346 Remove.
14347 (section_offsets): New typedef.
14348 * symtab.c (fixup_section, get_msymbol_address): Update.
14349 * symmisc.c (dump_msymbols): Update.
14350 * symfile.h (relative_addr_info_to_section_offsets)
14351 (symfile_map_offsets_to_segments): Update.
14352 * symfile.c (build_section_addr_info_from_objfile)
14353 (init_objfile_sect_indices): Update.
14354 (struct place_section_arg): Change type of "offsets".
14355 (place_section): Update.
14356 (relative_addr_info_to_section_offsets): Change type of
14357 "section_offsets". Remove "num_sections" parameter.
14358 (default_symfile_offsets, syms_from_objfile_1)
14359 (set_objfile_default_section_offset): Update.
14360 (reread_symbols): No need to preserve section offsets by hand.
14361 (symfile_map_offsets_to_segments): Change type of "offsets".
14362 * stap-probe.c (relocate_address): Update.
14363 * stabsread.h (process_one_symbol): Update.
14364 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14365 (solib_target_relocate_section_addresses): Update.
14366 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14367 Update.
14368 * solib-frv.c (frv_relocate_main_executable): Update.
14369 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14370 * solib-aix.c (solib_aix_get_section_offsets): Change return
14371 type.
14372 (solib_aix_solib_create_inferior_hook): Update.
14373 * remote.c (remote_target::get_offsets): Update.
14374 * psymtab.c (find_pc_sect_psymtab): Update.
14375 * psympriv.h (struct partial_symbol) <address, text_low,
14376 text_high>: Update.
14377 * objfiles.h (obj_section_offset): Update.
14378 (struct objfile) <section_offsets>: Change type.
14379 <num_sections>: Remove.
14380 (objfile_relocate): Update.
14381 * objfiles.c (entry_point_address_query): Update
14382 (relocate_one_symbol): Change type of "section_offsets".
14383 (objfile_relocate1, objfile_relocate1): Change type of
14384 "new_offsets".
14385 (objfile_rebase1): Update.
14386 * mipsread.c (mipscoff_symfile_read): Update.
14387 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14388 parameter.
14389 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14390 (parse_external, psymtab_to_symtab_1): Update.
14391 * machoread.c (macho_symfile_offsets): Update.
14392 * ia64-tdep.c (ia64_find_unwind_table): Update.
14393 * hppa-tdep.c (read_unwind_info): Update.
14394 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14395 * dwarf2read.c (create_addrmap_from_index)
14396 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14397 (process_psymtab_comp_unit_reader, add_partial_symbol)
14398 (add_partial_subprogram, process_full_comp_unit)
14399 (read_file_scope, read_func_scope, read_lexical_block_scope)
14400 (read_call_site_scope, dwarf2_rnglists_process)
14401 (dwarf2_ranges_process, dwarf2_ranges_read)
14402 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14403 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14404 Update.
14405 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14406 Update.
14407 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14408 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14409 (process_one_symbol): Change type of "section_offsets".
14410 * ctfread.c (get_objfile_text_range): Update.
14411 * coffread.c (coff_symtab_read, enter_linenos)
14412 (process_coff_symbol): Update.
14413 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14414 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14415
456e800a
TT
144162020-01-08 Tom Tromey <tromey@adacore.com>
14417
14418 * dwarf2read.c (parse_macro_definition): Use std::string.
14419 (parse_macro_definition): Likewise.
14420
6dfa2fc2
TT
144212020-01-08 Tom Tromey <tromey@adacore.com>
14422
14423 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14424 (ATTR_ALLOC_CHUNK): Remove.
14425
421d1616
TT
144262020-01-08 Tom Tromey <tromey@adacore.com>
14427
14428 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14429
43816ebc
TT
144302020-01-08 Tom Tromey <tromey@adacore.com>
14431
14432 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14433 (dwarf2_compute_name, open_dwo_file): Likewise.
14434 (process_enumeration_scope): Use std::vector.
14435 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14436 (partial_die_info::fixup, dwarf2_start_subfile)
14437 (guess_full_die_structure_name, dwarf2_name): Likewise.
14438 (determine_prefix): Update.
14439 (guess_full_die_structure_name): Make return type const.
14440 (partial_die_full_name): Return unique_xmalloc_ptr.
14441 (DW_FIELD_ALLOC_CHUNK): Remove.
14442
4212d509
TT
144432020-01-07 Tom Tromey <tromey@adacore.com>
14444
14445 PR build/24937:
14446 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14447
06a6207a
JT
144482020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14449
14450 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14451
153d79c4
AB
144522020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14453
14454 * stack.c (print_frame_info): Move disassemble_next_line code
14455 inside source_print block.
14456
66182876
EZ
144572020-01-06 Eli Zaretskii <eliz@gnu.org>
14458
14459 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14460 gdb/signals.h, as we are now using native signal symbols.
14461
cbfa8581
SV
144622020-01-06 Shahab Vahedi <shahab@synopsys.com>
14463
14464 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14465 overflow by an early check of content vs threshold.
aac66a4c 14466 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14467 Likewise.
14468
3f602821
EZ
144692020-01-06 Eli Zaretskii <eliz@gnu.org>
14470
14471 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14472
a08c904d
JT
144732020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14474
14475 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14476 export table if no section contains it's RVA.
14477
89a65580
EZ
144782020-01-06 Eli Zaretskii <eliz@gnu.org>
14479
14480 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14481
8b7fcda2
HD
144822020-01-06 Hannes Domani <ssbssa@yahoo.de>
14483
14484 * source.c (print_source_lines_base): Set last_line_listed.
14485
a61b4f69
SV
144862020-01-06 Shahab Vahedi <shahab@synopsys.com>
14487
14488 * tui/tui-disasm.c: Remove trailing spaces.
14489
559e7e50
EZ
144902020-01-06 Eli Zaretskii <eliz@gnu.org>
14491 Pedro Alves <palves@redhat.com>
14492
14493 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14494 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14495 (windows_gdb_signal_to_target): New function, uses the above
14496 enumeration to convert GDB internal signal codes to equivalent
14497 Windows codes.
14498 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14499 * windows-nat.c: Include "gdb_wait.h".
14500 (get_windows_debug_event): Extract the fatal exception from the
14501 exit status and convert to the equivalent Posix signal number.
14502 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14503 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14504 * gdbsupport/gdb_wait.c: New file, implements
14505 windows_status_to_termsig.
14506 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14507 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14508
f2302a34
AB
145092020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14510
14511 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14512 show_layout.
14513
6a5206eb
LM
145142020-01-05 Luis Machado <luis.machado@linaro.org>
14515
14516 * aarch64-linux-nat.c
14517 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14518 and bfd_mach_aarch64.
14519
6ec1d75e
PW
145202020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14521
14522 * ui-file.c (stdio_file::can_emit_style_escape)
14523 (tee_file::can_emit_style_escape): Ensure style is used also on
14524 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14525 to gdb_stdout.
14526 * main.c (set_gdb_data_directory): Use file style to output the
14527 warning that the given pathname is not a directory.
14528 * top.c (show_history_filename, gdb_safe_append_history)
14529 (show_gdb_datadir): Use file style.
14530
44f81a76
HD
145312020-01-03 Hannes Domani <ssbssa@yahoo.de>
14532
14533 * solib-target.c (struct lm_info_target):
14534 Change offsets to be a unique_xmalloc_ptr.
14535 (solib_target_relocate_section_addresses): Update.
14536
25057eb0
HD
145372020-01-03 Hannes Domani <ssbssa@yahoo.de>
14538
14539 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14540
6e2118f5
BE
145412020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14542
14543 * MAINTAINERS (Write After Approval): Add myself.
14544
8133c7dc
LM
145452020-01-02 Luis Machado <luis.machado@linaro.org>
14546
14547 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14548 Cell BE architecture.
14549 * target.h (struct target_ops) <thread_architecture>: Likewise.
14550
48189bec
HD
145512020-01-01 Hannes Domani <ssbssa@yahoo.de>
14552
14553 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14554
ead1063b
HD
145552020-01-01 Hannes Domani <ssbssa@yahoo.de>
14556
14557 * MAINTAINERS (Write After Approval): Add myself.
14558
e5d78223
JB
145592020-01-01 Joel Brobecker <brobecker@adacore.com>
14560
14561 * gdbarch.sh: Update copyright year range of generated files.
14562
b811d2c2
JB
145632020-01-01 Joel Brobecker <brobecker@adacore.com>
14564
14565 Update copyright year range in all GDB files.
14566
5f4def5c
JB
145672020-01-01 Joel Brobecker <brobecker@adacore.com>
14568
14569 * copyright.py: Convert to Python 3.
14570
51fd4002
JB
145712020-01-01 Joel Brobecker <brobecker@adacore.com>
14572
14573 * copyright.py: Adapt after move of gnulib directory from gdb
14574 directory to toplevel directory.
14575
5fb651f2
JB
145762020-01-01 Joel Brobecker <brobecker@adacore.com>
14577
14578 * copyright.py (main): Exit if run from the wrong directory.
14579
5dd8bf88
JB
145802020-01-01 Joel Brobecker <brobecker@adacore.com>
14581
14582 * top.c (print_gdb_version): Change copyright year to 2020.
14583
9f71dacb 145842020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14585
9f71dacb 14586 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14587
9f71dacb 14588For older changes see ChangeLog-2019.
c906108c
SS
14589\f
14590Local Variables:
14591mode: change-log
14592left-margin: 8
14593fill-column: 74
14594version-control: never
57da7796 14595coding: utf-8
c906108c 14596End: