]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove DW_SND
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1bc397c5
TT
12020-09-29 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (get_alignment, read_array_order)
4 (read_attribute_value, dwarf2_const_value_attr)
5 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
6 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
7 New methods.
8 (DW_SND): Remove.
9
630ed6b9
TT
102020-09-29 Tom Tromey <tom@tromey.com>
11
12 * dwarf2/read.c (read_attribute_value, lookup_die_type)
13 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
14 Update.
15 * dwarf2/attribute.h (struct attribute) <as_signature,
16 set_signature>: New methods.
17 (DW_SIGNATURE): Remove.
18
9d2246fc
TT
192020-09-29 Tom Tromey <tom@tromey.com>
20
21 * dwarf2/read.c (read_call_site_scope)
22 (handle_data_member_location, dwarf2_add_member_fn)
23 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
24 (partial_die_info::read, read_attribute_value)
25 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
26 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
27 (dwarf2_symbol_mark_computed): Update.
28 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
29 methods.
30 (DW_BLOCK): Remove.
31 * dwarf2/attribute.c (attribute::form_is_block): Add
32 DW_FORM_data16.
33
c6481205
TT
342020-09-29 Tom Tromey <tom@tromey.com>
35
36 * dwarf2/read.c (read_cutu_die_from_dwo)
37 (read_attribute_reprocess, read_attribute_value, read_attribute)
38 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
39 (dwarf2_fetch_constant_bytes): Update.
40 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
41 <set_string_noncanonical, set_string_canonical>: New methods.
42 <string_is_canonical>: Update comment.
43 <canonical_string_p>: Add assert.
44 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
45 * dwarf2/attribute.c (attribute::form_is_string): New method.
46 (attribute::string): Use it.
47
3b64bf15
TT
482020-09-29 Tom Tromey <tom@tromey.com>
49
50 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
51 (dump_die_shallow): Use canonical_string_p.
52 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
53 method.
54
2c830f54
TT
552020-09-29 Tom Tromey <tom@tromey.com>
56
57 * dwarf2/read.c (partial_die_info::read)
58 (dwarf2_const_value_attr, anonymous_struct_prefix, )
59 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
60 attribute::as_string.
61
6c412691
TT
622020-09-29 Tom Tromey <tom@tromey.com>
63
64 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
65 DW_ADDR.
66 (attribute::string): Don't use DW_STRING.
67 (attribute::get_ref_die_offset): Don't use DW_UNSND.
68 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
69
95f982e5
TT
702020-09-29 Tom Tromey <tom@tromey.com>
71
72 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
73 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
74 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
75 * dwarf2/attribute.h (struct attribute): Rename methods.
76 * dwarf2/attribute.c (attribute::as_address): Rename from
77 value_as_address.
78 (attribute::as_string): Rename from value_as_string.
79
f800b00e
TT
802020-09-29 Tom Tromey <tom@tromey.com>
81
82 * dwarf2/read.c (partial_die_info::read) <case
83 DW_AT_linkage_name>: Use value_as_string.
84 (dwarf2_string_attr): Use value_as_string.
85 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
86 method.
87 * dwarf2/attribute.c (attribute::value_as_string): New method.
88
de38d64a
PA
892020-09-29 Pedro Alves <pedro@palves.net>
90
91 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
92 defined before using '#pragma GCC diagnostic' instead of checking
93 __clang__.
94
9aed480c
TT
952020-09-28 Tom Tromey <tom@tromey.com>
96
97 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
98 (handle_signal_stop): Update.
99 * procfs.c (procfs_target::insert_watchpoint): Update.
100 * target.h (target_have_steppable_watchpoint): Now a function.
101
8a3ecb79
TT
1022020-09-28 Tom Tromey <tom@tromey.com>
103
104 * infrun.c (set_schedlock_func): Update.
105 * target.h (target_can_lock_scheduler): Now a function.
106
55f6301a
TT
1072020-09-28 Tom Tromey <tom@tromey.com>
108
109 * inferior.h (class inferior) <has_execution>: Update.
110 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
111 * valops.c (find_function_in_inferior)
112 (value_allocate_space_in_inferior): Update.
113 * top.c (kill_or_detach): Update.
114 * target.c (target_preopen, set_target_permissions): Update.
115 (target_has_execution_current): Remove.
116 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
117 Update.
118 * solib.c (update_solib_list, reload_shared_libraries): Update.
119 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
120 * solib-dsbt.c (enable_break): Update.
121 * score-tdep.c (score7_fetch_inst): Update.
122 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
123 Update.
124 * remote.c (remote_target::start_remote)
125 (remote_target::remote_check_symbols, remote_target::open_1)
126 (remote_target::remote_detach_1, remote_target::verify_memory)
127 (remote_target::xfer_partial, remote_target::read_description)
128 (remote_target::get_min_fast_tracepoint_insn_len): Update.
129 * record-full.c (record_full_open_1): Update.
130 * record-btrace.c (record_btrace_target_open): Update.
131 * objc-lang.c (lookup_objc_class, lookup_child_selector)
132 (value_nsstring): Update.
133 * linux-thread-db.c (add_thread_db_info)
134 (thread_db_find_new_threads_silently, check_thread_db_callback)
135 (try_thread_db_load_1, record_thread): Update.
136 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
137 Update.
138 * linux-fork.c (checkpoint_command): Update.
139 * infrun.c (set_non_stop, set_observer_mode)
140 (check_multi_target_resumption, for_each_just_stopped_thread)
141 (maybe_remove_breakpoints, normal_stop)
142 (class infcall_suspend_state): Update.
143 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
144 (info_program_command, attach_command): Update.
145 * infcall.c (call_function_by_hand_dummy): Update.
146 * inf-loop.c (inferior_event_handler): Update.
147 * gcore.c (gcore_command, derive_heap_segment): Update.
148 * exec.c (exec_file_command): Update.
149 * eval.c (evaluate_subexp): Update.
150 * compile/compile.c (compile_to_object): Update.
151 * cli/cli-dump.c (restore_command): Update.
152 * breakpoint.c (update_watchpoint)
153 (update_inserted_breakpoint_locations)
154 (insert_breakpoint_locations, get_bpstat_thread): Update.
155 * target.h (target_has_execution): Remove macro.
156 (target_has_execution_current): Don't declare.
157 (target_has_execution): Rename from target_has_execution_1. Add
158 argument default.
159
05374cfd
TT
1602020-09-28 Tom Tromey <tom@tromey.com>
161
162 * mi/mi-main.c (exec_reverse_continue)
163 (mi_cmd_list_target_features): Update.
164 * infrun.c (set_exec_direction_func): Update.
165 * target.c (default_execution_direction): Update.
166 * reverse.c (exec_reverse_once): Update.
167 * target.h (target_can_execute_reverse): Now a function.
168
9dccd06e
TT
1692020-09-28 Tom Tromey <tom@tromey.com>
170
171 * tui/tui-regs.c (tui_get_register)
172 (tui_data_window::show_registers): Update.
173 * thread.c (scoped_restore_current_thread::restore)
174 (scoped_restore_current_thread::scoped_restore_current_thread):
175 Update.
176 * regcache-dump.c (regcache_print): Update.
177 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
178 Update.
179 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
180 * mep-tdep.c (current_me_module, current_options): Update.
181 * linux-thread-db.c (thread_db_load): Update.
182 * infcmd.c (registers_info, info_vector_command)
183 (info_float_command): Update.
184 * ia64-tdep.c (ia64_frame_prev_register)
185 (ia64_sigtramp_frame_prev_register): Update.
186 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
187 * gcore.c (derive_stack_segment): Update.
188 * frame.c (get_current_frame, has_stack_frames): Update.
189 * findvar.c (language_defn::read_var_value): Update.
190 * arm-tdep.c (arm_pc_is_thumb): Update.
191 * target.c (target_has_registers): Rename from
192 target_has_registers_1.
193 * target.h (target_has_registers): Remove macro.
194 (target_has_registers): Rename from target_has_registers_1.
195
841de120
TT
1962020-09-28 Tom Tromey <tom@tromey.com>
197
198 * windows-tdep.c (tlb_make_value): Update.
199 * tui/tui-regs.c (tui_data_window::show_registers): Update.
200 * thread.c (scoped_restore_current_thread::restore)
201 (scoped_restore_current_thread::scoped_restore_current_thread)
202 (thread_command): Update.
203 * stack.c (backtrace_command_1, frame_apply_level_command)
204 (frame_apply_all_command, frame_apply_command): Update.
205 * infrun.c (siginfo_make_value, restore_infcall_control_state):
206 Update.
207 * gcore.c (derive_stack_segment): Update.
208 * frame.c (get_current_frame, has_stack_frames): Update.
209 * auxv.c (info_auxv_command): Update.
210 * ada-tasks.c (ada_build_task_list): Update.
211 * target.c (target_has_stack): Rename from target_has_stack_1.
212 * target.h (target_has_stack): Remove macro.
213 (target_has_stack): Rename from target_has_stack_1.
214
a739972c
TT
2152020-09-28 Tom Tromey <tom@tromey.com>
216
217 * target.c (target_has_memory): Rename from target_has_memory_1.
218 * tui/tui-regs.c (tui_data_window::show_registers): Update.
219 * thread.c (scoped_restore_current_thread::restore)
220 (scoped_restore_current_thread::scoped_restore_current_thread):
221 Update.
222 * frame.c (get_current_frame, has_stack_frames): Update.
223 * target.h (target_has_memory): Remove macro.
224 (target_has_memory): Rename from target_has_memory_1.
225
5b8a4776
TT
2262020-09-28 Tom Tromey <tom@tromey.com>
227
228 * target.c (target_has_all_memory_1): Remove.
229 * target.h (target_has_all_memory): Remove define.
230 (target_has_all_memory_1): Don't declare.
231
bd356ec6
SM
2322020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
233
234 * ser-base.c: Adjust comments formatting.
235
2c72d5e5
TT
2362020-09-27 Tom Tromey <tom@tromey.com>
237
238 PR tui/25342:
239 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
240
35a98237
TT
2412020-09-27 Tom Tromey <tom@tromey.com>
242
243 PR tui/25342:
244 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
245
9e820dec
TT
2462020-09-27 Tom Tromey <tom@tromey.com>
247
248 * unittests/tui-selftests.c: Update.
249 * tui/tui-winsource.h (struct tui_source_window_base)
250 <extra_margin, show_line_number, refresh_pad>: New methods.
251 <m_max_length, m_pad>: New members.
252 (tui_copy_source_line): Update.
253 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
254 first_col, line_width, ndigits parameters. Add length.
255 (tui_source_window_base::show_source_line): Write to pad. Line
256 number now 0-based.
257 (tui_source_window_base::refresh_pad): New method.
258 (tui_source_window_base::show_source_content): Write to pad. Call
259 refresh_pad.
260 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
261 not refill.
262 (tui_source_window_base::update_exec_info): Call
263 show_line_number.
264 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
265 method.
266 <m_digits>: New member.
267 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
268 and m_max_length.
269 (tui_source_window::show_line_number): New method.
270 * tui/tui-io.h (tui_puts): Fix comment.
271 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
272 m_max_length.
273
c15c15c8
TT
2742020-09-27 Tom Tromey <tom@tromey.com>
275
276 * tui/tui-winsource.c
277 (tui_source_window_base::set_is_exec_point_at): Don't call
278 show_source_line.
279
149830c1
TT
2802020-09-27 Tom Tromey <tom@tromey.com>
281
282 * python/py-tui.c (class tui_py_window) <refresh_window>: New
283 method.
284 <erase>: Update.
285 <cursor_x, cursor_y>: Remove.
286 <m_inner_window>: New member.
287 (tui_py_window::rerender): Create inner window.
288 (tui_py_window::output): Write to inner window.
289
8f9929bb
GR
2902020-09-26 Gareth Rees <grees@undo.io> (tiny change)
291
292 PR python/26586
293 * cli/cli-script.c (execute_control_commands): don't set
294 instream to nullptr here as this breaks the from_tty argument
295 to gdb.execute in Python.
296 (execute_user_command): set instream to nullptr here instead.
297
956bdb59
SM
2982020-09-25 Simon Marchi <simon.marchi@efficios.com>
299
300 * infrun.h (infrun_debug_printf): Fix formatting.
301 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
302
3b93626b
SJ
3032020-09-25 Saagar Jha <saagar@saagarjha.com>
304
305 * compile/compile-object-load.h (struct munmap_list): Add
306 explicitly-defined move constructor.
307
b551a89f
TT
3082020-09-24 Tom Tromey <tromey@adacore.com>
309
310 PR tui/26638:
311 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
312 method.
313 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
314 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
315 (tui_prev_win): Rewrite.
316
99bb393f
HD
3172020-09-23 Hannes Domani <ssbssa@yahoo.de>
318
319 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
320 in WOW64 processes as SIGINT.
321 * nat/windows-nat.h: Make wow64_process a shared variable.
322 * windows-nat.c: Remove static wow64_process variable.
323
20a5fcbd
TT
3242020-09-23 Tom Tromey <tom@tromey.com>
325
326 PR symtab/25470:
327 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
328 offset and bit size.
329 * printcmd.c (print_scalar_formatted): Handle zero-length
330 integer.
331 (print_scalar_formatted): Use bit_size_differs_p.
332 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
333 constant.
334 (union type_specific): <int_stuff>: New member.
335 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
336 methods.
337 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
338 TYPE_SPECIFIC_FIELD.
339 (recursive_dump_type, copy_type_recursive): Update.
340 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
341 DW_AT_data_bit_offset.
342
bac51ab7
TT
3432020-09-23 Tom Tromey <tom@tromey.com>
344
345 * utils.h (class gdb_argv): Add move operators.
346 <append>: New methods.
347 * compile/compile.c (build_argc_argv): Remove.
348 (compile_args_argc): Remove.
349 (compile_args_argv): Change type.
350 (set_compile_args): Simplify.
351 (append_args): Remove.
352 (filter_args): Remove argcp parameter.
353 (get_args): Return gdb_argv. Simplify.
354 (compile_to_object): Update.
355
92677124
TT
3562020-09-23 Tom Tromey <tom@tromey.com>
357
358 * compile/compile-object-run.c (do_module_cleanup)
359 <~do_module_cleanup> :Remove.
360 (do_module_cleanup): Update.
361 * compile/compile-object-load.h (struct munmap_list): Add move
362 assignment operator.
363 <source_file>: Now a std::string.
364 <munmap_list>: Rename. No longer a pointer.
365 * compile/compile-object-load.c (struct setup_sections_data): Add
366 constructor.
367 <setup_one_section>: Declare.
368 <munmap_list>: Move earlier.
369 <m_bfd>: New member.
370 <m_last_size, m_last_section_first, m_last_prot,
371 m_last_max_alignment>: Rename, add initializers where needed.
372 (setup_sections_data::setup_one_section): Rename from
373 setup_sections. Update.
374 (compile_object_load): Update. Don't use bfd_map_over_sections.
375
e616f60a
TT
3762020-09-23 Tom Tromey <tom@tromey.com>
377
378 * compile/compile-object-run.c (struct do_module_cleanup): Add
379 parameters to constructor. Update destructor.
380 <source_file, scope, scope_data, out_value_type, out_value_addr,
381 munmap_list_head, objfile_name_string>: Remove.
382 <module>: New member.
383 (do_module_cleanup): Update.
384 (compile_object_run): Update.
385
e947a848
TT
3862020-09-23 Tom Tromey <tom@tromey.com>
387
388 * compile/compile.c (eval_compile_command): Update.
389 * compile/compile-object-run.h (compile_object_run): Take a
390 compile_module_up.
391 * compile/compile-object-run.c (compile_object_run): Take a
392 compile_module_up.
393 * compile/compile-object-load.h (struct compile_module): Add
394 constructor, destructor.
395 (compile_module_up): New typedef.
396 (compile_object_load): Return compile_object_up.
397 * compile/compile-object-load.c (compile_object_load): Return
398 compile_module_up.
399
0dbf6ee6
TT
4002020-09-23 Tom Tromey <tom@tromey.com>
401
402 * compile/compile-object-run.c (struct do_module_cleanup): Add
403 constructor, destructor.
404 <objfile_name_string>: Don't use struct hack.
405 (do_module_cleanup): Use delete.
406 (compile_object_run): Use new.
407
ebe824f5
TT
4082020-09-23 Tom Tromey <tom@tromey.com>
409
410 * compile/compile-cplus-types.c
411 (compile_cplus_convert_struct_or_union): Use std::vector.
412 (compile_cplus_convert_func): Likewise.
413 * compile/compile-c-types.c (convert_func): Use std::vector.
414
5dd918d9
TT
4152020-09-21 Tom Tromey <tromey@adacore.com>
416
417 * sparc-tdep.c (sparc32_skip_prologue): Use
418 skip_prologue_using_sal.
419
5486c517
TT
4202020-09-19 Tom Tromey <tom@tromey.com>
421
422 * symfile.c (add_section_size_callback): Remove.
423 (load_one_section): Rename from load_section_callback. Change
424 parameters.
425 (generic_load): Use foreach.
426
8a6bb1d1
TT
4272020-09-19 Tom Tromey <tom@tromey.com>
428
429 * exec.c (add_to_section_table): Remove.
430 (build_section_table): Use foreach.
431
08f93a1a
TT
4322020-09-19 Tom Tromey <tom@tromey.com>
433
434 * elfread.c (elf_locate_sections): Change parameters.
435 (elf_symfile_read): Use foreach.
436
03cd72b8
TT
4372020-09-19 Tom Tromey <tom@tromey.com>
438
439 * cli/cli-dump.c (struct callback_data): Remove.
440 (restore_one_section): Rename from restore_section_callback.
441 Change parameters.
442 (restore_binary_file): Change parameters.
443 (restore_command): Use foreach.
444
f4f2b85f
TT
4452020-09-19 Tom Tromey <tom@tromey.com>
446
447 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
448 (gcore_copy_callback): Likewise.
449 (gcore_memory_sections): Use foreach.
450
b35c1d1c
TT
4512020-09-19 Tom Tromey <tom@tromey.com>
452
453 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
454 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
455 parameters.
456 (generic_elf_osabi_sniffer): Use foreach.
457 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
458 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
459
5bb6e9dd
TT
4602020-09-19 Tom Tromey <tom@tromey.com>
461
462 * dwarf2/read.c (locate_dwz_sections): Change parameters.
463 (dwarf2_get_dwz_file): Use foreach.
464 (dwarf2_locate_dwo_sections): Change parameters.
465 (open_and_init_dwo_file): Use foreach.
466 (dwarf2_locate_common_dwp_sections): Change parameters.
467 (open_and_init_dwp_file): Use foreach.
468
ad7277da
TT
4692020-09-19 Tom Tromey <tom@tromey.com>
470
471 * symfile.h: (find_lowest_section): Don't declare.
472 * symfile.c (find_lowest_section): Now static. Change
473 parameters.
474 (struct place_section_arg): Remove.
475 (place_section): Change parameters.
476 (addr_info_make_relative): Use foreach.
477 (symfile_dummy_outputs): Remove.
478 (default_symfile_relocate): Use foreach.
479
cb814f2e
TT
4802020-09-19 Tom Tromey <tom@tromey.com>
481
482 * objfiles.c (add_to_objfile_sections): Rename from
483 add_to_objfile_sections_full.
484 (add_to_objfile_sections): Remove.
485 (build_objfile_section_table): Use foreach.
486
3cabfd26
TT
4872020-09-19 Tom Tromey <tom@tromey.com>
488
489 * stap-probe.c (get_stap_base_address_1): Remove.
490 (get_stap_base_address): Use foreach.
491
1ce51eb5
TT
4922020-09-19 Tom Tromey <tom@tromey.com>
493
494 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
495 parameters.
496 (gdb_bfd_close_or_warn): Use foreach.
497
a190fabb
TT
4982020-09-19 Tom Tromey <tom@tromey.com>
499
500 * corelow.c (add_to_thread_list): Change parameters.
501 (core_target_open): Use foreach.
502
cafb0d81
TT
5032020-09-19 Tom Tromey <tom@tromey.com>
504
505 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
506 existing function.
507
c8d5abea
AB
5082020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
509
510 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
511 for arrays.
512
6d816919
AB
5132020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
514
515 * eval.c: Remove 'f-lang.h' include.
516 (value_f90_subarray): Moved to f-lang.c.
517 (eval_call): Renamed to...
518 (evaluate_subexp_do_call): ...this, is no longer static, header
519 comment moved into header file.
520 (evaluate_funcall): Update call to eval_call.
521 (skip_undetermined_arglist): Moved to f-lang.c.
522 (fortran_value_subarray): Likewise.
523 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
524 moved to evaluate_subexp_f.
525 (calc_f77_array_dims): Moved to f-lang.c
526 * expprint.c (print_subexp_funcall): New function.
527 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
528 moved to print_subexp_f, OP_FUNCALL uses new function.
529 (dump_subexp_body_funcall): New function.
530 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
531 moved to dump_subexp_f, OP_FUNCALL uses new function.
532 * expression.h (evaluate_subexp_do_call): Declare.
533 * f-lang.c (value_f90_subarray): Moved from eval.c.
534 (skip_undetermined_arglist): Likewise.
535 (calc_f77_array_dims): Likewise.
536 (fortran_value_subarray): Likewise.
537 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
538 (operator_length_f): Likewise.
539 (print_subexp_f): Likewise.
540 (dump_subexp_body_f): Likewise.
541 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
542 declaration of this operation to here.
543 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
544 support moved to operator_length_f.
545 * parser-defs.h (dump_subexp_body_funcall): Declare.
546 (print_subexp_funcall): Declare.
547 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
548 fortran-operator.def.
549
8c37706a
AB
5502020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
551
552 * eval.c (fortran_value_subarray): New function, content is taken
553 from...
554 (evaluate_subexp_standard): ...here, in two places. Now arrays
555 and strings both call the new function.
556 (calc_f77_array_dims): Add header comment, handle strings.
557
14f9473c
VC
5582020-09-18 Victor Collod <vcollod@nvidia.com>
559
560 PR gdb/26635
561 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
562 (i386_analyze_prologue): Call i386_skip_endbr.
563
b60cea74
TT
5642020-09-18 Tom Tromey <tromey@adacore.com>
565
566 * windows-nat.c (struct windows_nat_target) <wait>: Update.
567 (windows_nat_target::wait): Update.
568 * target/wait.h (enum target_wait_flag): New. Use
569 DEF_ENUM_FLAGS_TYPE.
570 * target/target.h (target_wait): Change type of options.
571 * target.h (target_options_to_string, default_target_wait):
572 Update.
573 (struct target_ops) <wait>: Change type of options.
574 * target.c (target_wait, default_target_wait, do_option): Change
575 type of "options".
576 (target_options_to_string): Likewise.
577 * target-delegates.c: Rebuild.
578 * target-debug.h (target_debug_print_target_wait_flags): Rename
579 from target_debug_print_options.
580 * sol-thread.c (class sol_thread_target) <wait>: Update.
581 (sol_thread_target::wait): Update.
582 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
583 (rs6000_nat_target::wait): Update.
584 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
585 Update.
586 (remote_target::wait_ns, remote_target::wait_as): Change type of
587 "options".
588 (remote_target::wait): Update.
589 * remote-sim.c (struct gdbsim_target) <wait>: Update.
590 (gdbsim_target::wait): Update.
591 * record-full.c (class record_full_base_target) <wait>: Update.
592 (record_full_wait_1): Change type of "options".
593 (record_full_base_target::wait): Update.
594 * record-btrace.c (class record_btrace_target) <wait>: Update.
595 (record_btrace_target::wait): Update.
596 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
597 Update.
598 (ravenscar_thread_target::wait): Update.
599 * procfs.c (class procfs_target) <wait>: Update.
600 (procfs_target::wait): Update.
601 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
602 * obsd-nat.c (obsd_nat_target::wait): Update.
603 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
604 (nto_procfs_target::wait): Update.
605 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
606 * nbsd-nat.c (nbsd_wait): Change type of "options".
607 (nbsd_nat_target::wait): Update.
608 * linux-thread-db.c (class thread_db_target) <wait>: Update.
609 (thread_db_target::wait): Update.
610 * linux-nat.h (class linux_nat_target) <wait>: Update.
611 * linux-nat.c (linux_nat_target::wait): Update.
612 (linux_nat_wait_1): Update.
613 * infrun.c (do_target_wait_1, do_target_wait): Change type of
614 "options".
615 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
616 * inf-ptrace.c (inf_ptrace_target::wait): Update.
617 * go32-nat.c (struct go32_nat_target) <wait>: Update.
618 (go32_nat_target::wait): Update.
619 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
620 * gnu-nat.c (gnu_nat_target::wait): Update.
621 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
622 * fbsd-nat.c (fbsd_nat_target::wait): Update.
623 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
624 * darwin-nat.c (darwin_nat_target::wait): Update.
625 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
626 (bsd_uthread_target::wait): Update.
627 * aix-thread.c (class aix_thread_target) <wait>: Update.
628 (aix_thread_target::wait): Update.
629
0295dde6
AB
6302020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
631
632 * compile/compile-object-run.c (create_copied_type_recursive): New
633 function.
634 (compile_object_run): Use new function.
635
d3483b43
JT
6362020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
637
638 * NEWS: Mention x86_64 Cygwin core file support.
639
e7d612ad
JT
6402020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
641
642 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
643 (core_process_module_section): Handle NOTE_INFO_MODULE64.
644
aff9d387
JT
6452020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
646
62a5151b
JT
647 * windows-tdep.h: Add prototypes.
648 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
649 (i386_windows_core_pid_to_str): Move and rename ...
650 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
651 (windows_core_pid_to_str): ... and here.
652 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
653
6542020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
655 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
656 (amd64_windows_init_abi_common): ... and register.
657
7d155da3
JT
6582020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
659
660 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
661 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
662
e8ef12b9
PA
6632020-09-18 Pedro Alves <pedro@palves.net>
664
665 PR gdb/26631
666 * thread.c (thread_find_command): Switch inferior before calling
667 target methods.
668
c1e1314d
TT
6692020-09-17 Tom Tromey <tromey@adacore.com>
670
671 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
672 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
673 (tdesc_arch_data_up): New typedef.
674 (tdesc_use_registers, tdesc_data_alloc): Update.
675 (tdesc_data_cleanup): Don't declare.
676 * target-descriptions.c (tdesc_data_alloc): Return a
677 tdesc_arch_data_up.
678 (tdesc_arch_data_deleter::operator()): Rename from
679 tdesc_data_cleanup. Change argument type.
680 (tdesc_use_registers): Change early_data to an rvalue reference.
681 (tdesc_use_registers): Don't use delete.
682 * sparc-tdep.c (sparc32_gdbarch_init): Update.
683 * s390-tdep.c (s390_gdbarch_init): Update.
684 * rx-tdep.c (rx_gdbarch_init): Update.
685 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
686 * riscv-tdep.c (riscv_gdbarch_init): Update.
687 * or1k-tdep.c (or1k_gdbarch_init): Update.
688 * nios2-tdep.c (nios2_gdbarch_init): Update.
689 * nds32-tdep.c (nds32_gdbarch_init): Update.
690 * mips-tdep.c (mips_gdbarch_init): Update.
691 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
692 * m68k-tdep.c (m68k_gdbarch_init): Update.
693 * i386-tdep.c (i386_gdbarch_init): Update.
694 * arm-tdep.c (arm_gdbarch_init): Update.
695 * arc-tdep.c (arc_tdesc_init): Update.
696 (arc_gdbarch_init): Update.
697 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
698
0363df3d
HD
6992020-09-17 Hannes Domani <ssbssa@yahoo.de>
700
701 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
702 for WOW64 processes.
703
280a9412
TT
7042020-09-17 Tom Tromey <tom@tromey.com>
705
706 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
707
6108fd18
TT
7082020-09-17 Tom Tromey <tom@tromey.com>
709
710 * value.c (preserve_values): Update.
711 * python/py-type.c (save_objfile_types): Update.
712 * guile/scm-type.c (save_objfile_types): Update.
713 * gdbtypes.h (create_copied_types_hash): Return htab_up.
714 * gdbtypes.c (create_copied_types_hash): Return htab_up.
715 * compile/compile-object-run.c (compile_object_run): Update.
716
fa9b1164
TT
7172020-09-17 Tom Tromey <tom@tromey.com>
718
719 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
720 Remove.
721 <m_table>: Now htab_up.
722 * typeprint.c (typedef_hash_table::recursively_update)
723 (typedef_hash_table::add_template_parameters)
724 (typedef_hash_table::typedef_hash_table): Update.
725 (typedef_hash_table::~typedef_hash_table): Remove.
726 (typedef_hash_table::typedef_hash_table)
727 (typedef_hash_table::find_global_typedef)
728 (typedef_hash_table::find_typedef): Update.
729
eb53f105
TT
7302020-09-17 Tom Tromey <tom@tromey.com>
731
732 * target-descriptions.c (tdesc_use_registers): Use htab_up.
733
7a8a5d47
TT
7342020-09-17 Tom Tromey <tom@tromey.com>
735
736 * linespec.c (class decode_compound_collector)
737 <~decode_compound_collector>: Remove.
738 <m_unique_syms>: Now htab_up.
739 (decode_compound_collector::operator ()): Update.
740 (class symtab_collector) <~symtab_collector>: Remove.
741 <m_symtab_table>: Now htab_up.
742 (symtab_collector::operator ()): Update.
743
99032cfc
TT
7442020-09-17 Tom Tromey <tom@tromey.com>
745
746 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
747 (filename_seen_cache::clear): Update.
748 (~filename_seen_cache): Remove.
749 (filename_seen_cache::seen): Update.
750 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
751 htab_up.
752 <~filename_seen_cache>: Remove.
753 <traverse>: Update.
754
32580f6d
TT
7552020-09-17 Tom Tromey <tom@tromey.com>
756
757 * completer.c (completion_tracker::discard_completions)
758 (completion_tracker::~completion_tracker)
759 (completion_tracker::maybe_add_completion)
760 (completion_tracker::remove_completion)
761 (completion_tracker::recompute_lowest_common_denominator)
762 (completion_tracker::build_completion_result): Update.
763 * completer.h (class completion_tracker) <have_completions>:
764 Update.
765 <m_entries_hash>: Now htab_up.
766
c1fb9836
TT
7672020-09-17 Tom Tromey <tom@tromey.com>
768
769 * breakpoint.c (ambiguous_names_p): Use htab_up.
770
88f07206
TT
7712020-09-17 Tom Tromey <tom@tromey.com>
772
773 * auto-load.c (struct auto_load_pspace_info)
774 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
775 <loaded_script_files, loaded_script_texts>: Change type to
776 htab_up.
777 (~auto_load_pspace_info) Remove.
778 (init_loaded_scripts_info, maybe_add_script_file)
779 (maybe_add_script_text, auto_load_info_scripts): Update.
780
9519b2ee
TT
7812020-09-17 Tom Tromey <tromey@adacore.com>
782
783 * c-exp.y (name_obstack): Now static.
784
d2cd4113
CC
7852020-09-17 Chungyi Chi <demonic@csie.io>
786
787 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
788
b650a282
SM
7892020-09-16 Simon Marchi <simon.marchi@efficios.com>
790
791 * breakpoint.h (init_catchpoint): Change int parameter to bool.
792 (add_solib_catchpoint): Likewise.
793 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
794 to bool.
795 (add_solib_catchpoint): Change int parameter/variable to bool.
796 (catch_load_or_unload): Likewise.
797 (init_catchpoint): Likewise.
798 (create_fork_vfork_event_catchpoint): Likewise.
799 (catch_fork_command_1): Likewise.
800 (catch_exec_command_1): Likewise.
801
4d0bcfcf
SM
8022020-09-16 Simon Marchi <simon.marchi@efficios.com>
803
804 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
805 Change instance_flags to m_instance_flags.
806
fe830662
TT
8072020-09-16 Tom Tromey <tromey@adacore.com>
808
809 PR gdb/26598:
810 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
811
fe5ddfc3
JB
8122020-09-16 John Baldwin <jhb@FreeBSD.org>
813
814 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
815 PL_FLAG_EXEC.
816 (fbsd_nat_target::insert_exec_catchpoint)
817 (fbsd_nat_target::remove_exec_catchpoint): Always define.
818 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
819 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
820
e911c666
JB
8212020-09-16 John Baldwin <jhb@FreeBSD.org>
822
823 * configure.ac: Remove check for kinfo_getvmmap().
824 * configure, config.in: Regenerate.
825 * fbsd-nat.c (fbsd_read_mapping): Remove
826 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
827 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
828 kinfo_get_vmmap() are always present.
829
1f17d372
JB
8302020-09-16 John Baldwin <jhb@FreeBSD.org>
831
832 * fbsd-nat.c: Always include support for
833 TARGET_OBJECT_SIGNAL_INFO.
834
bcb1da7f
JB
8352020-09-16 John Baldwin <jhb@FreeBSD.org>
836
837 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
838 sysctl and remove procfs fallback.
839
5515f729
JB
8402020-09-16 John Baldwin <jhb@FreeBSD.org>
841
842 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
843 * fbsd-nat.h: Likewise.
844
da1df1db
TBA
8452020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
846
847 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
848 argument.
849
0e25e767
AB
8502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
851
852 * ada-lang.c (ada_language_data): Delete.
853 (ada_language): Remove references to ada_language_data.
854 * c-lang.c (c_language_data): Delete.
855 (c_language): Remove references to c_language_data.
856 (cplus_language_data): Delete.
857 (cplus_language): Remove references to cplus_language_data.
858 (asm_language_data): Delete.
859 (asm_language): Remove references to asm_language_data.
860 (minimal_language_data): Delete.
861 (minimal_language): Remove references to minimal_language_data.
862 * d-lang.c (d_language_data): Delete.
863 (d_language): Remove references to d_language_data.
864 * f-lang.c (f_language_data): Delete.
865 (f_language): Remove references to f_language_data.
866 * go-lang.c (go_language_data): Delete.
867 (go_language): Remove references to go_language_data.
868 * language.c (unknown_language_data): Delete.
869 (unknown_language): Remove references to unknown_language_data.
870 (auto_language_data): Delete.
871 (auto_language): Remove references to auto_language_data.
872 * language.h (language_data): Delete struct.
873 (language_defn): No longer inherit from language_data.
874 * m2-lang.c (m2_language_data): Delete.
875 (m2_language): Remove references to m2_language_data.
876 * objc-lang.c (objc_language_data): Delete.
877 (objc_language): Remove references to objc_language_data.
878 * opencl-lang.c (opencl_language_data): Delete.
879 (opencl_language): Remove references to opencl_language_data.
880 * p-lang.c (pascal_language_data): Delete.
881 (pascal_language): Remove references to pascal_language_data.
882 * rust-lang.c (rust_language_data): Delete.
883 (rust_language): Remove references to rust_language_data.
884
b7c6e27d
AB
8852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
886
887 * ada-lang.c (ada_language_data): Remove la_op_print_tab
888 initializer.
889 (ada_language::opcode_print_table): New member function.
890 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
891 (c_language::opcode_print_table): New member function.
892 (cplus_language_data): Remove la_op_print_tab initializer.
893 (cplus_language::opcode_print_table): New member function.
894 (asm_language_data): Remove la_op_print_tab initializer.
895 (asm_language::opcode_print_table): New member function.
896 (minimal_language_data): Remove la_op_print_tab initializer.
897 (minimal_language::opcode_print_table): New member function.
898 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
899 (d_language::opcode_print_table): New member function.
900 * expprint.c (print_subexp_standard): Update call to
901 opcode_print_table.
902 (op_string): Likewise.
903 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
904 (f_language::opcode_print_table): New member function.
905 * go-lang.c (go_language_data): Remove la_op_print_tab
906 initializer.
907 (go_language::opcode_print_table): New member function.
908 * language.c (unknown_language_data): Remove la_op_print_tab
909 initializer.
910 (unknown_language::opcode_print_table): New member function.
911 (auto_language_data): Remove la_op_print_tab initializer.
912 (auto_language::opcode_print_table): New member function.
913 * language.h (language_data): Remove la_op_print_tab field.
914 (language_defn::opcode_print_table): Declare new member function.
915 * m2-lang.c (m2_language_data): Remove la_op_print_tab
916 initializer.
917 (m2_language::opcode_print_table): New member function.
918 * objc-lang.c (objc_language_data): Remove la_op_print_tab
919 initializer.
920 (objc_language::opcode_print_table): New member function.
921 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
922 initializer.
923 (opencl_language::opcode_print_table): New member function.
924 * p-lang.c (pascal_language_data): Remove la_op_print_tab
925 initializer.
926 (pascal_language::opcode_print_table): New member function.
927 * rust-lang.c (rust_language_data): Remove la_op_print_tab
928 initializer.
929 (rust_language::opcode_print_table): New member function.
930
5aba6ebe
AB
9312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
932
933 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
934 (ada_language::expression_ops): New member function.
935 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
936 (c_language::expression_ops): New member function.
937 (cplus_language_data): Remove la_exp_desc initializer.
938 (cplus_language::expression_ops): New member function.
939 (asm_language_data): Remove la_exp_desc initializer.
940 (asm_language::expression_ops): New member function.
941 (minimal_language_data): Remove la_exp_desc initializer.
942 (minimal_language::expression_ops): New member function.
943 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
944 (d_language::expression_ops): New member function.
945 * eval.c (evaluate_subexp): Update call to expression_ops.
946 * expprint.c (print_subexp): Likewise.
947 (op_name): Likewise.
948 (dump_subexp_body): Likewise.
949 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
950 (f_language::expression_ops): New member function.
951 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
952 (go_language::expression_ops): New member function.
953 * language.c (language_defn::expression_ops): New function.
954 (unknown_language_data): Remove la_exp_desc initializer.
955 (auto_language_data): Likewise.
956 * language.h (language_data): Remove la_exp_desc field.
957 (language_defn::expression_ops): Declare new member function.
958 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
959 (m2_language::expression_ops): New member function.
960 * objc-lang.c (objc_language_data): Remove la_exp_desc
961 initializer.
962 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
963 initializer.
964 (opencl_language::expression_ops): New member function.
965 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
966 * parse.c (operator_length): Update call to expression_ops.
967 (exp_iterate): Likewise.
968 * rust-lang.c (rust_language_data): Remove la_exp_desc
969 initializer.
970 (ruse_language::expression_ops): New member function.
971
b63a3f3f
AB
9722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
973
974 * ada-lang.c (ada_language_data): Remove la_varobj_ops
975 initializer.
976 (ada_language::varobj_ops): New member function.
977 * c-lang.c (c_language_data): Remove la_varobj_ops
978 initializer.
979 (cplus_language_data): Likewise.
980 (cplus_language::varobj_ops): New member function.
981 (asm_language_data): Remove la_varobj_ops initializer.
982 (minimal_language_data): Likewise.
983 * d-lang.c (d_language_data): Likewise.
984 * f-lang.c (f_language_data): Likewise.
985 * go-lang.c (go_language_data): Likewise.
986 * language.c (language_defn::varobj_ops): New function.
987 (unknown_language_data): Remove la_varobj_ops
988 initializer.
989 (auto_language_data): Likewise.
990 * language.h (language_data): Remove la_varobj_ops field.
991 (language_defn::varobj_ops): Declare new member function.
992 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
993 * objc-lang.c (objc_language_data): Likewise.
994 * opencl-lang.c (opencl_language_data): Likewise.
995 * p-lang.c (pascal_language_data): Likewise.
996 * rust-lang.c (rust_language_data): Likewise.
997 * varobj.c (varobj_create): Update call to varobj_ops.
998 * varobj.h (default_varobj_ops): Delete define.
999
1ac14a04
AB
10002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1001
1002 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1003 initializer.
1004 * c-lang.c (c_language_data): Likewise.
1005 (c_language::macro_expansion): New member function.
1006 (cplus_language_data): Likewise.
1007 (cplus_language::macro_expansion): New member function.
1008 (asm_language_data): Likewise.
1009 (asm_language::macro_expansion): New member function.
1010 (minimal_language_data): Likewise.
1011 (minimal_language::macro_expansion): New member function.
1012 * d-lang.c (d_language_data): Remove la_macro_expansion
1013 initializer.
1014 * f-lang.c (f_language_data): Likewise.
1015 * go-lang.c (go_language_data): Likewise.
1016 * language.c (unknown_language_data): Likewise.
1017 (auto_language_data): Likewise.
1018 * language.h (language_data): Remove la_macro_expansion field.
1019 (language_defn::macro_expansion): New member function.
1020 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1021 initializer.
1022 * objc-lang.c (objc_language_data): Likewise.
1023 (objc_language::macro_expansion): New member function.
1024 * opencl-lang.c (opencl_language_data): Likewise.
1025 (opencl_language::macro_expansion): New member function.
1026 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1027 initializer.
1028 * rust-lang.c (rust_language_data): Likewise.
1029 * symtab.c (default_collect_symbol_completion_matches_break_on):
1030 Update call to macro_expansion.
1031
3a3440fb
AB
10322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1033
1034 * ada-lang.c (ada_language_data): Remove la_array_ordering
1035 initializer.
1036 * c-lang.c (c_language_data): Likewise.
1037 (cplus_language_data): Likewise.
1038 (asm_language_data): Likewise.
1039 (minimal_language_data): Likewise.
1040 * d-lang.c (d_language_data): Likewise.
1041 * dwarf2/read.c (read_array_order): Update for call to
1042 array_ordering.
1043 * f-lang.c (f_language_data): Remove la_array_ordering
1044 initializer.
1045 (f_language::array_ordering): New member function.
1046 * go-lang.c (go_language_data): Remove la_array_ordering
1047 initializer.
1048 * language.c (unknown_language_data): Likewise.
1049 (auto_language_data): Likewise.
1050 * language.h (language_data): Delete la_array_ordering field.
1051 (language_defn::array_ordering): New member function.
1052 * m2-lang.c (m2_language_data): Remove la_array_ordering
1053 initializer.
1054 * objc-lang.c (objc_language_data): Likewise.
1055 * opencl-lang.c (opencl_language_data): Likewise.
1056 * p-lang.c (pascal_language_data): Likewise.
1057 * rust-lang.c (rust_language_data): Likewise.
1058
0d201fa4
AB
10592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1060
1061 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1062 initializer.
1063 * c-lang.c (c_language_data): Likewise.
1064 (cplus_language_data): Likewise.
1065 (asm_language_data): Likewise.
1066 (minimal_language_data): Likewise.
1067 * d-lang.c (d_language_data): Likewise.
1068 * f-lang.c (f_language_data): Likewise.
1069 (f_language::case_sensitivity): New member function.
1070 * go-lang.c (go_language_data): Remove la_case_sensitivity
1071 initializer.
1072 * language.c (enum case_mode): Moved here from language.h.
1073 (case_mode): Make static.
1074 (show_case_command): Update for case_sensitivity being a method.
1075 (set_case_command): Likewise.
1076 (set_range_case): Likewise.
1077 (unknown_language_data): Remove la_case_sensitivity initializer.
1078 (auto_language_data): Likewise.
1079 * language.h (case_mode): Delete, move enum declaration to
1080 language.c.
1081 (language_data): Delete la_case_sensitivity field.
1082 (language_defn::case_sensitivity): New member function.
1083 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1084 initializer.
1085 * objc-lang.c (objc_language_data): Likewise.
1086 * opencl-lang.c (opencl_language_data): Likewise.
1087 * p-lang.c (pascal_language_data): Likewise.
1088 * rust-lang.c (rust_language_data): Likewise.
1089
efdf6a73
AB
10902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1091
1092 * ada-lang.c (ada_language_data): Remove la_range_check
1093 initializer.
1094 * c-lang.c (c_language_data): Likewise.
1095 (cplus_language_data): Likewise.
1096 (asm_language_data): Likewise.
1097 (minimal_language_data): Likewise.
1098 * d-lang.c (d_language_data): Likewise.
1099 * f-lang.c (f_language_data): Likewise.
1100 (f_language::range_checking_on_by_default): New member function.
1101 * go-lang.c (go_language_data): Remove la_range_check initializer.
1102 * language.c (enum range_mode): Moved here from language.h.
1103 (range_mode): Made static.
1104 (show_range_command): Update to use
1105 range_checking_on_by_default.
1106 (set_range_command): Likewise.
1107 (set_range_case): Likewise.
1108 (unknown_language_data): Remove la_range_check initializer.
1109 (auto_language_data): Likewise.
1110 * language.h (range_mode): Delete. Enum definition moved to
1111 language.c.
1112 (language_data): Remove la_range_check field.
1113 (language_defn::range_checking_on_by_default): New member
1114 function.
1115 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1116 (m2_language::range_checking_on_by_default): New member function.
1117 * objc-lang.c (objc_language_data): Remove la_range_check
1118 initializer.
1119 * opencl-lang.c (opencl_language_data): Likewise.
1120 * p-lang.c (pascal_language_data): Likewise.
1121 (pascal_language::range_checking_on_by_default): New member
1122 function.
1123 * rust-lang.c (rust_language_data): Remove la_range_check
1124 initializer.
1125 (rust_language::range_checking_on_by_default): New member
1126 function.
1127
bf92aec5
AB
11282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1129
1130 * dwarf2/read.c (dwarf2_physname): Remove special case for
1131 language_go.
1132 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1133 member function.
1134
d3355e4d
AB
11352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1136
1137 * ada-lang.c (ada_language_data): Remove
1138 la_store_sym_names_in_linkage_form_p initializer.
1139 (ada_language::store_sym_names_in_linkage_form_p): New member
1140 function.
1141 * c-lang.c (c_language_data): Remove
1142 la_store_sym_names_in_linkage_form_p initializer.
1143 (c_language::store_sym_names_in_linkage_form_p): New member
1144 function.
1145 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1146 initializer.
1147 (asm_language_data): Likewise.
1148 (asm_language::store_sym_names_in_linkage_form_p): New member
1149 function.
1150 (minimal_language_data): Remove
1151 la_store_sym_names_in_linkage_form_p initializer.
1152 (minimal_language::store_sym_names_in_linkage_form_p): New member
1153 function.
1154 * d-lang.c (d_language_data): Remove
1155 la_store_sym_names_in_linkage_form_p initializer.
1156 * dwarf2/read.c (dwarf2_physname): Update call to
1157 store_sym_names_in_linkage_form_p.
1158 * f-lang.c (f_language_data): Remove
1159 la_store_sym_names_in_linkage_form_p initializer.
1160 * go-lang.c (go_language_data): Remove
1161 la_store_sym_names_in_linkage_form_p initializer.
1162 * language.c (unknown_language_data): Remove
1163 la_store_sym_names_in_linkage_form_p initializer.
1164 (unknown_language::store_sym_names_in_linkage_form_p): New member
1165 function.
1166 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1167 initializer.
1168 (auto_language::store_sym_names_in_linkage_form_p): New member
1169 function.
1170 * language.h (language_data): Remove
1171 la_store_sym_names_in_linkage_form_p member variable.
1172 (language_defn::store_sym_names_in_linkage_form_p): New member
1173 function.
1174 * m2-lang.c (m2_language_data): Remove
1175 la_store_sym_names_in_linkage_form_p initializer.
1176 * objc-lang.c (objc_language_data): Likewise.
1177 * opencl-lang.c (opencl_language_data): Likewise.
1178 * p-lang.c (pascal_language_data): Likewise.
1179 * rust-lang.c (rust_language_data): Likewise.
1180
22c12a6c
AB
11812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1182
1183 * ada-lang.c (ada_language_data): Remove string_lower_bound
1184 initializer.
1185 * c-lang.c (c_language_data): Likewise.
1186 (cplus_language_data): Likewise.
1187 (asm_language_data): Likewise.
1188 (minimal_language_data): Likewise.
1189 * d-lang.c (d_language_data): Likewise.
1190 * f-lang.c (f_language_data): Likewise.
1191 * go-lang.c (go_language_data): Likewise.
1192 * language.c (unknown_language_data): Likewise.
1193 (auto_language_data): Likewise.
1194 * language.h (language_data): Remove string_lower_bound field.
1195 (language_defn::string_lower_bound): New member function.
1196 * m2-lang.c (m2_language_data): Remove string_lower_bound
1197 initializer.
1198 (m2_language::string_lower_bound): New member function.
1199 * objc-lang.c (objc_language_data): Remove string_lower_bound
1200 initializer.
1201 * opencl-lang.c (opencl_language_data): Likewise.
1202 * p-lang.c (pascal_language_data): Likewise.
1203 * rust-lang.c (rust_language_data): Likewise.
1204 * valops.c (value_cstring): Update call to string_lower_bound.
1205 (value_string): Likewise.
1206 * value.c (allocate_repeated_value): Likewise.
1207
1c236ddd
AB
12082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1209
1210 * valops.c (value_repeat): Fix incorrect argument name in comment.
1211
67bd3fd5
AB
12122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1213
1214 * ada-lang.c (ada_language_data): Remove c_style_arrays
1215 initializer.
1216 (ada_language::c_style_arrays_p): New member fuction.
1217 * c-lang.c (c_language_data): Remove c_style_arrays
1218 initializer.
1219 (cplus_language_data): Likewise.
1220 (asm_language_data): Likewise.
1221 (minimal_language_data): Likewise.
1222 * d-lang.c (d_language_data): Likewise.
1223 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1224 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1225 (f_language::c_style_arrays_p): New member function.
1226 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1227 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1228 * language.c (unknown_language_data): Remove c_style_arrays
1229 initializer.
1230 (auto_language_data): Likewise.
1231 * language.h (language_data): Remove c_style_arrays field.
1232 (language_defn::c_style_arrays_p): New member function.
1233 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1234 (m2_language::c_style_arrays_p): New member function.
1235 * objc-lang.c (objc_language_data): Remove c_style_arrays
1236 initializer.
1237 * opencl-lang.c (opencl_language_data): Likewise.
1238 * p-lang.c (pascal_language_data): Likewise.
1239 * rust-lang.c (rust_language_data): Likewise.
1240 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1241 and update local variable to a bool.
1242 * valops.c (value_cast): Update call to c_style_arrays_p.
1243 (value_array): Likewise.
1244 * value.c (coerce_array): Likewise.
1245
85967615
AB
12462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1247
1248 * ada-lang.c (ada_language_data): Remove la_language initializer.
1249 * c-lang.c (c_language_data): Likewise.
1250 (cplus_language_data): Likewise.
1251 (asm_language_data): Likewise.
1252 (minimal_language_data): Likewise.
1253 * d-lang.c (d_language_data): Likewise.
1254 * f-lang.c (f_language_data): Likewise.
1255 * go-lang.c (go_language_data): Likewise.
1256 * language.c (unknown_language_data): Likewise.
1257 (auto_language_data): Likewise.
1258 * language.h (language_data): Remove la_language field.
1259 (language_defn::language_defn): Initialise la_language field.
1260 (language_defn::la_language): New member variable.
1261 * m2-lang.c (m2_language_data): Remove la_language field.
1262 * objc-lang.c (objc_language_data): Likewise.
1263 * opencl-lang.c (opencl_language_data): Likewise.
1264 * p-lang.c (pascal_language_data): Likewise.
1265 * rust-lang.c (rust_language_data): Likewise.
1266
e171d6f1
AB
12672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * ada-lang.c (ada_extensions): Delete, moved into
1270 ada_language::filename_extensions.
1271 (ada_language_data): Remove la_filename_extensions initializer.
1272 (ada_language::filename_extensions): New member function.
1273 * c-lang.c (c_extensions): Delete, moved into
1274 c_language::filename_extensions.
1275 (c_language_data): Remove la_filename_extensions initializer.
1276 (c_language::filename_extensions): New member function.
1277 (cplus_extensions): Delete, moved into
1278 cplus_language::filename_extensions.
1279 (cplus_language_data): Remove la_filename_extensions initializer.
1280 (cplus_language::filename_extensions): New member function.
1281 (asm_extensions): Delete, moved into
1282 asm_language::filename_extensions.
1283 (asm_language_data): Remove la_filename_extensions initializer.
1284 (asm_language::filename_extensions): New member function.
1285 (minimal_language_data): Remove la_filename_extensions
1286 initializer.
1287 * d-lang.c (d_extensions): Delete, moved into
1288 d_language::filename_extensions.
1289 (d_language_data): Remove la_filename_extensions initializer.
1290 (d_language::filename_extensions): New member function.
1291 * f-lang.c (f_extensions): Delete, moved into
1292 f_language::filename_extensions.
1293 (f_language_data): Remove la_filename_extensions initializer.
1294 (f_language::filename_extensions): New member function.
1295 * go-lang.c (go_language_data): Remove la_filename_extensions
1296 initializer.
1297 * language.c (add_set_language_command): Update now that
1298 filename_extensions returns a vector.
1299 (unknown_language_data): Remove la_filename_extensions
1300 initializer.
1301 (auto_language_data): Likewise.
1302 * language.h (language_data): Remove la_filename_extensions field.
1303 (language_defn::filename_extensions): New member function.
1304 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1305 initializer.
1306 * objc-lang.c (objc_extensions): Delete, moved into
1307 objc_language::filename_extensions.
1308 (objc_language_data): Remove la_filename_extensions initializer.
1309 (objc_language::filename_extensions): New member function.
1310 * opencl-lang.c (opencl_language_data): Remove
1311 la_filename_extensions initializer.
1312 * p-lang.c (pascal_extensions): Delete, moved into
1313 pascal_language::filename_extensions.
1314 (pascal_language_data): Remove la_filename_extensions initializer.
1315 (pascal_language::filename_extensions): New member function.
1316 * rust-lang.c (rust_extensions): Delete, moved into
1317 rust_language::filename_extensions.
1318 (rust_language_data): Remove la_filename_extensions initializer.
1319 (rust_language::filename_extensions): New member function.
1320 * symfile.c (add_filename_language): Add new assert.
1321
6f7664a9
AB
13222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1323
1324 * ada-lang.c (ada_language_data): Remove la_name and
1325 la_natural_name initializers.
1326 (ada_language::name): New member function.
1327 (ada_language::natural_name): New member function.
1328 * c-lang.c (c_language_data): Remove la_name and
1329 la_natural_name initializers.
1330 (c_language::name): New member function.
1331 (c_language::natural_name): New member function.
1332 (cplus_language_data): Remove la_name and
1333 la_natural_name initializers.
1334 (cplus_language::name): New member function.
1335 (cplus_language::natural_name): New member function.
1336 (asm_language_data): Remove la_name and
1337 la_natural_name initializers.
1338 (asm_language::name): New member function.
1339 (asm_language::natural_name): New member function.
1340 (minimal_language_data): Remove la_name and
1341 la_natural_name initializers.
1342 (minimal_language::name): New member function.
1343 (minimal_language::natural_name): New member function.
1344 * compile/compile.c (compile_to_object): Update call to
1345 lanugage_defn::name.
1346 * d-lang.c (d_language_data): Remove la_name and
1347 la_natural_name initializers.
1348 (d_language::name): New member function.
1349 (d_language::natural_name): New member function.
1350 * expprint.c (print_subexp_standard): Update call to
1351 language_defn::name.
1352 (dump_raw_expression): Likewise
1353 (dump_prefix_expression): Likewise.
1354 * f-lang.c (f_language_data): Remove la_name and
1355 la_natural_name initializers.
1356 (f_language::name): New member function.
1357 (f_language::natural_name): New member function.
1358 * go-lang.c (go_language_data): Remove la_name and
1359 la_natural_name initializers.
1360 (go_language::name): New member function.
1361 (go_language::natural_name): New member function.
1362 * language.c (show_language_command): Update call to
1363 language_defn::name.
1364 (set_language_command): Likewise.
1365 (language_enum): Likewise.
1366 (language_str): Likewise.
1367 (add_set_language_command): Likewise, use
1368 language_defn::natural_name in the doc string.
1369 (unknown_language_data): Remove la_name and
1370 la_natural_name initializers.
1371 (unknown_language::name): New member function.
1372 (unknown_language::natural_name): New member function.
1373 (auto_language_data): Remove la_name and
1374 la_natural_name initializers.
1375 (auto_language::name): New member function.
1376 (auto_language::natural_name): New member function.
1377 (language_lookup_primitive_type_as_symbol): Update call to
1378 language_defn::name.
1379 * language.h (language_data): Remove la_name and la_natural_name
1380 member variables.
1381 (language_defn::name): New member function.
1382 (language_defn::natural_name): New member function.
1383 * m2-lang.c (m2_language_data): Remove la_name and
1384 la_natural_name initializers.
1385 (m2_language::name): New member function.
1386 (m2_language::natural_name): New member function.
1387 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1388 language_defn::natural_name.
1389 * objc-lang.c (objc_language_data): Remove la_name and
1390 la_natural_name initializers.
1391 (objc_language::name): New member function.
1392 (objc_language::natural_name): New member function.
1393 * opencl-lang.c (opencl_language_data): Remove la_name and
1394 la_natural_name initializers.
1395 (opencl_language::name): New member function.
1396 (opencl_language::natural_name): New member function.
1397 * p-lang.c (pascal_language_data): Remove la_name and
1398 la_natural_name initializers.
1399 (pascal_language::name): New member function.
1400 (pascal_language::natural_name): New member function.
1401 * rust-lang.c (rust_language_data): Remove la_name and
1402 la_natural_name initializers.
1403 (rust_language::name): New member function.
1404 (rust_language::natural_name): New member function.
1405 * symtab.c (lookup_language_this): Update call to
1406 language_defn::name.
1407
5bae7c4e
AB
14082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1409
1410 * ada-lang.c (ada_language_data): Remove la_name_of_this
1411 initializer.
1412 * ax-gdb.c (gen_expr): Update call to name_of_this.
1413 * c-exp.y (classify_name): Likewise.
1414 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1415 (cplus_language_data): Likewise.
1416 (cplus_language::name_of_this): New member function.
1417 (asm_language_data): Remove la_name_of_this initializer.
1418 (minimal_language_data): Likewise.
1419 * d-lang.c (d_language_data): Likewise.
1420 (d_language::name_of_this): New member function.
1421 * expprint.c (print_subexp_standard): Update call to name_of_this.
1422 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1423 * go-lang.c (go_language_data): Likewise.
1424 * language.c (unknown_language_data): Likewise.
1425 (unknown_language::name_of_this): New member function.
1426 (auto_language_data): Remove la_name_of_this initializer.
1427 (auto_language::name_of_this): New member function.
1428 * language.h (language_data): Delete la_name_of_this member
1429 variable.
1430 (language_defn::name_of_this): New member function.
1431 * m2-lang.c (m2_language_data): Remove la_name_of_this
1432 initializer.
1433 * objc-lang.c (objc_language_data): Likewise.
1434 (objc_language::name_of_this): New member function.
1435 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1436 initializer.
1437 * p-lang.c (pascal_language_data): Likewise.
1438 (pascal_language::name_of_this): New member function.
1439 * rust-lang.c (rust_language_data): Remove la_name_of_this
1440 initializer.
1441 * symtab.c (lookup_language_this): Update call to name_of_this.
1442 (lookup_symbol_aux): Likewise.
1443 * valops.c (value_of_this): Likewise.
1444
22e3f3ed
AB
14452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1446
1447 * ada-lang.c (ada_language_data): Remove
1448 la_struct_too_deep_ellipsis initializer.
1449 (ada_language::struct_too_deep_ellipsis): New member function.
1450 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1451 initializer.
1452 (cplus_language_data): Likewise.
1453 (asm_language_data): Likewise.
1454 (minimal_language_data): Likewise.
1455 * cp-valprint.c (cp_print_value): Update call to
1456 struct_too_deep_ellipsis.
1457 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1458 initializer.
1459 * f-lang.c (f_language_data): Likewise.
1460 (f_language::struct_too_deep_ellipsis): New member function.
1461 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1462 initializer.
1463 * language.c (unknown_language_data): Likewise.
1464 (auto_language_data): Likewise.
1465 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1466 member variable.
1467 (language_defn::struct_too_deep_ellipsis): New member function.
1468 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1469 initializer.Q
1470 * objc-lang.c (objc_language_data): Likewise.
1471 * opencl-lang.c (opencl_language_data): Likewise.
1472 * p-lang.c (pascal_language_data): Likewise.
1473 * rust-lang.c (rust_language_data): Likewise.
1474 * valprint.c (val_print_check_max_depth): Update call to
1475 struct_too_deep_ellipsis.
1476
ed29e1c7
FW
14772020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1478
1479 * MAINTAINERS (Write After Approval): Add myself.
1480
12d8f940
TT
14812020-09-15 Tom Tromey <tom@tromey.com>
1482
1483 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1484 Remove.
1485
6b5a7bc7
TT
14862020-09-15 Tom Tromey <tom@tromey.com>
1487
1488 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1489 and TYPE_CODE_METHODPTR cases.
1490 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1491 (c_value_print_inner): Update.
1492 * valprint.c (generic_value_print_memberptr): New function, from
1493 c_value_print_memberptr.
1494 (generic_value_print): Use it. Call cplus_print_method_ptr.
1495
47f0e2ff
TT
14962020-09-15 Tom Tromey <tromey@adacore.com>
1497
1498 * python/python-internal.h (PyInt_FromLong): Remove define.
1499 * python/py-value.c (convert_value_from_python): Use
1500 gdb_py_object_from_longest.
1501 * python/py-type.c (typy_get_code): Use
1502 gdb_py_object_from_longest.
1503 * python/py-symtab.c (salpy_get_line): Use
1504 gdb_py_object_from_longest.
1505 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1506 gdb_py_object_from_longest.
1507 * python/py-record.c (recpy_gap_reason_code): Use
1508 gdb_py_object_from_longest.
1509 * python/py-record-btrace.c (recpy_bt_insn_size)
1510 (recpy_bt_func_level, btpy_list_count): Use
1511 gdb_py_object_from_longest.
1512 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1513 gdb_py_object_from_longest. Fix error handling.
1514 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1515 gdb_py_object_from_longest.
1516 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1517 gdb_py_object_from_longest.
1518 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1519 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1520 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1521
512116ce
TT
15222020-09-15 Tom Tromey <tromey@adacore.com>
1523
1524 * python/python.c (gdbpy_parameter_value): Use
1525 gdb_py_object_from_ulongest.
1526
4ab1029c
TT
15272020-09-15 Tom Tromey <tromey@adacore.com>
1528
1529 * python/py-infevents.c (create_register_changed_event_object):
1530 Use gdb_py_object_from_longest.
1531 * python/py-exitedevent.c (create_exited_event_object): Use
1532 gdb_py_object_from_longest.
1533
062534d4
TT
15342020-09-15 Tom Tromey <tromey@adacore.com>
1535
1536 * python/python.c (gdbpy_parameter_value): Use
1537 gdb_py_object_from_longest.
1538 * python/py-type.c (convert_field, typy_range): Use
1539 gdb_py_object_from_longest.
1540 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1541 gdb_py_object_from_longest.
1542 * python/py-lazy-string.c (stpy_get_length): Use
1543 gdb_py_object_from_longest.
1544 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1545 gdb_py_object_from_longest.
1546 * python/py-infevents.c (create_memory_changed_event_object): Use
1547 gdb_py_object_from_longest.
1548 * python/py-inferior.c (infpy_get_num): Use
1549 gdb_py_object_from_longest.
1550 (infpy_get_pid): Likewise.
1551
d1cab987
TT
15522020-09-15 Tom Tromey <tromey@adacore.com>
1553
1554 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1555 defines.
1556 * python/py-value.c (valpy_long): Use
1557 gdb_py_object_from_ulongest.
1558 * python/py-symtab.c (salpy_get_pc): Use
1559 gdb_py_object_from_ulongest.
1560 (salpy_get_last): Likewise.
1561 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1562 gdb_py_object_from_ulongest.
1563 * python/py-lazy-string.c (stpy_get_address): Use
1564 gdb_py_object_from_ulongest.
1565 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1566 * python/py-arch.c (archpy_disassemble): Use
1567 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1568 error handling.
1569
4bde49dc
TT
15702020-09-15 Tom Tromey <tromey@adacore.com>
1571
1572 * python/python-internal.h (gdb_py_long_from_longest): Remove
1573 defines.
1574 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1575 * python/py-type.c (convert_field, typy_get_sizeof): Use
1576 gdb_py_object_from_longest.
1577 * python/py-record-btrace.c (btpy_list_index): Use
1578 gdb_py_object_from_longest.
1579
37431074
TT
15802020-09-15 Tom Tromey <tromey@adacore.com>
1581
1582 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1583 * python/py-record.c (recpy_element_number): Use
1584 gdb_py_object_from_longest.
1585 (recpy_gap_number): Likewise.
1586
cbe25684
TT
15872020-09-15 Tom Tromey <tromey@adacore.com>
1588
1589 * top.c (ui::ui): Update.
1590 (highest_ui_num): Remove.
1591 * top.h (struct ui) <num>: Remove.
1592
db92ac45
TT
15932020-09-15 Tom Tromey <tromey@adacore.com>
1594
1595 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1596 * ui-style.c (ansi_regex_text): Now array.
1597 * rust-exp.y (number_regex_text): Now array.
1598 * linespec.c (linespec_quote_characters): Now array.
1599 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1600 Now arrays.
1601
d2b31b67
SM
16022020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1603
1604 * debuginfod-support.c (debuginfod_client_deleter): New.
1605 (debuginfod_client_up): New.
1606 (debuginfod_init): Return debuginfod_client_up.
1607 (debuginfod_source_query): Adjust.
1608 (debuginfod_debuginfo_query): Adjust.
1609
3246bd8e
SM
16102020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1611
1612 * debuginfod-support.c (debuginfod_source_query): Use
1613 make_unique_xstrdup.
1614
10242f36
SM
16152020-09-14 Simon Marchi <simon.marchi@efficios.com>
1616
1617 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1618 with `type::instance_flags`.
1619
e1044e6a
MM
16202020-09-14 Michael Mullin <masmullin@gmail.com>
1621
1622 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1623 Remove baton parameter.
1624
04902b09
PA
16252020-09-14 Pedro Alves <pedro@palves.net>
1626
1627 * Makefile.in (SELFTESTS_SRCS): Add
1628 unittests/enum-flags-selftests.c.
1629 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1630 btrace_function_flags instead of enum btrace_function_flag.
1631 * compile/compile-c-types.c (convert_qualified): Use
1632 enum_flags::raw.
1633 * compile/compile-cplus-symbols.c (convert_one_symbol)
1634 (convert_symbol_bmsym):
1635 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1636 (compile_cplus_convert_struct_or_union_methods)
1637 (compile_cplus_instance::convert_qualified_base):
1638 * go-exp.y (parse_string_or_char): Add cast to int.
1639 * unittests/enum-flags-selftests.c: New file.
1640 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1641 type to btrace_thread_flags from btrace_thread_flag.
1642 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1643 local's type to btrace_thread_flags from btrace_thread_flag. Add
1644 cast in DEBUG call.
1645
69896a2c
PA
16462020-09-14 Pedro Alves <pedro@palves.net>
1647
1648 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1649 * gdbtypes.c (address_space_name_to_int): Rename to ...
1650 (address_space_name_to_type_instance_flags): ... this.
1651 (address_space_int_to_name): Rename to ...
1652 (address_space_type_instance_flags_to_name): ... this.
1653 * gdbtypes.h (address_space_name_to_int): Rename to ...
1654 (address_space_name_to_type_instance_flags): ... this.
1655 (address_space_int_to_name): Rename to ...
1656 (address_space_type_instance_flags_to_name): ... this.
1657 * type-stack.c (type_stack::insert): Adjust to rename.
1658 * type-stack.h (type_stack::insert): Likewise.
1659
314ad88d
PA
16602020-09-14 Pedro Alves <pedro@palves.net>
1661 Andrew Burgess <andrew.burgess@embecosm.com>
1662
1663 * avr-tdep.c (avr_address_class_type_flags): Return
1664 type_instance_flags.
1665 (avr_address_class_type_flags_to_name): Take a
1666 type_instance_flags.
1667 (avr_address_class_name_to_type_flags): Return bool and take a
1668 type_instance_flags.
1669 * d-lang.c (build_d_types): Use type::set_instance_flags.
1670 * ft32-tdep.c (ft32_address_class_type_flags): Return
1671 type_instance_flags.
1672 (ft32_address_class_type_flags_to_name): Take a
1673 type_instance_flags.
1674 (ft32_address_class_name_to_type_flags): Return bool and take a
1675 type_instance_flags.
1676 (ft32_gdbarch_init): Use type::set_instance_flags.
1677 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1678 * gdbarch.h, gdbarch.c: Regenerate.
1679 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1680 (address_class_name_to_type_flags): Use type_instance_flags and
1681 bool.
1682 * gdbtypes.c (address_space_name_to_int)
1683 (address_space_int_to_name, make_qualified_type): Use
1684 type_instance_flags.
1685 (make_qualified_type): Use type_instance_flags and
1686 type::set_instance_flags.
1687 (make_type_with_address_space, make_cv_type, make_vector_type)
1688 (check_typedef): Use type_instance_flags.
1689 (recursive_dump_type): Cast type_instance_flags to unsigned for
1690 printing.
1691 (copy_type_recursive): Use type::set_instance_flags.
1692 (gdbtypes_post_init): Use type::set_instance_flags.
1693 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1694 <m_instance_flags>: ... this.
1695 <instance_flags, set_instance_flags>: New methods.
1696 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1697 (SET_TYPE_INSTANCE_FLAGS): New.
1698 (address_space_name_to_int, address_space_int_to_name)
1699 (make_type_with_address_space): Pass flags using
1700 type_instance_flags instead of int.
1701 * stabsread.c (cleanup_undefined_types_noname): Use
1702 type::set_instance_flags.
1703 * s390-tdep.c (s390_address_class_type_flags): Return
1704 type_instance_flags.
1705 (s390_address_class_type_flags_to_name): Take a
1706 type_instance_flags.
1707 (s390_address_class_name_to_type_flags): Return bool and take a
1708 type_instance_flags.
1709 * type-stack.c (type_stack::follow_types): Use
1710 type_instance_flags.
1711 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1712
27087b7f
TT
17132020-09-14 Tom Tromey <tromey@adacore.com>
1714
1715 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1716 * x86-tdep.c (x86_is_thunk_register_name)
1717 (x86_in_indirect_branch_thunk): Update.
1718 * sparc64-tdep.c (sparc64_fpu_register_names)
1719 (sparc64_cp0_register_names, sparc64_register_names)
1720 (sparc64_pseudo_register_names): Now const.
1721 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1722 cp0_registers_num>: Now const.
1723 * sparc-tdep.c (sparc_core_register_names)
1724 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1725 (sparc32_pseudo_register_names): Now const.
1726 (validate_tdesc_registers): Update.
1727 * rust-lang.c (rust_extensions): Now const.
1728 * p-lang.c (p_extensions): Now const.
1729 * objc-lang.c (objc_extensions): Now const.
1730 * nto-tdep.c (nto_thread_state_str): Now const.
1731 * moxie-tdep.c (moxie_register_names): Now const.
1732 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1733 Now const.
1734 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1735 (mips_linux_reg_names): Now const.
1736 (mips_gdbarch_init): Update.
1737 * microblaze-tdep.c (microblaze_register_names): Now const.
1738 * m68k-tdep.c (m68k_register_names): Now const.
1739 * m32r-tdep.c (m32r_register_names): Now const.
1740 * ia64-tdep.c (ia64_register_names): Now const.
1741 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1742 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1743 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1744 ymm_avx512_register_names, pkeys_register_names>: Now const.
1745 * i386-tdep.c (i386_register_names, i386_zmm_names)
1746 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1747 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1748 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1749 * f-lang.c (f_extensions): Now const.
1750 * d-lang.c (d_extensions): Now const.
1751 * csky-tdep.c (csky_register_names): Now const.
1752 * charset.c (default_charset_names, charset_enum): Now const.
1753 (_initialize_charset): Update.
1754 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1755 const.
1756 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1757 (bsd_uthread_solib_loaded): Update.
1758 (bsd_uthread_state): Now const.
1759 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1760 (amd64_ymm_avx512_names, amd64_ymmh_names)
1761 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1762 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1763 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1764 (amd64_dword_names): Now const.
1765 * agent.c (can_use_agent_enum): Now const.
1766 * ada-tasks.c (task_states, long_task_states): Now const.
1767 * ada-lang.c (known_runtime_file_name_patterns)
1768 (known_auxiliary_function_name_patterns, attribute_names)
1769 (standard_exc, ada_extensions): Now const.
1770
89806626
SM
17712020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1772
1773 * bcache.h (struct bcache) <bcache>: Remove constructor.
1774 <m_hash_function, m_compare_function>: Remove.
1775 <~bcache>: Make virtual.
1776 <compare>: Remove static method, introduce virtual method.
1777 <default_hash>: Remove.
1778 <hash>: New virtual method.
1779 * bcache.c (bcache::expand_hash_table): Update.
1780 (bcache::insert): Update.
1781 (bcache::hash): New.
1782 (bcache::compare): Update comment and parameter names.
1783 * gdbtypes.c (types_deeply_equal): Update.
1784 * psymtab.h (struct psymbol_bcache): New struct.
1785 (class psymtab_storage) <psymtab_storage>: Make default.
1786 <psymbol_cache>: Change type to psymbol_bcache.
1787 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1788 (psymbol_hash): Change to...
1789 (psymbol_bcache::hash): ... this.
1790 (psymbol_compare): Change to...
1791 (psymbol_bcache::compare): ... this.
1792
677c92fe
SM
17932020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1794
1795 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1796 checking for initial lwp.
1797
3eba3a01
TT
17982020-09-14 Tom Tromey <tromey@adacore.com>
1799
1800 * m68k-tdep.c (m68k_extract_return_value): Use
1801 pointer_result_regnum.
1802 (m68k_store_return_value): Likewise.
1803 (m68k_reg_struct_return_p): Handle vectors and arrays.
1804 (m68k_return_value): Handle arrays.
1805 (m68k_svr4_return_value): Fix single-element aggregate handling.
1806 Handle long double. Adjust for embedded ABI.
1807 (m68k_svr4_init_abi): Set pointer_result_regnum.
1808 (m68k_embedded_init_abi): New function.
1809 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1810 (m68k_osabi_sniffer): New function.
1811 (_initialize_m68k_tdep): Register osabi sniffer.
1812 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1813 member.
1814
33f4dd48
SM
18152020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1816
1817 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1818 with gdb::unique_xmalloc_ptr<char>.
1819
8400a90d
SM
18202020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1821
1822 * xml-support.h (xml_fetch_another): Change type to be a
1823 function_view.
1824 (xml_process_xincludes): Remove baton parameter.
1825 (xml_fetch_content_from_file): Change baton parameter to
1826 dirname.
1827 * xml-support.c (struct xinclude_parsing_data)
1828 <xinclude_parsing_data>: Remove baton parameter.
1829 <fetcher_baton>: Remove.
1830 (xinclude_start_include): Adjust.
1831 (xml_process_xincludes): Adjust.
1832 (xml_fetch_content_from_file): Replace baton parameter with
1833 dirname.
1834 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1835 (xml_init_syscalls_info): Use a lambda.
1836 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1837 (file_read_description_xml): Use a lambda.
1838 (fetch_available_features_from_target): Change baton parameter
1839 to target_ops.
1840 (target_read_description_xml): Use a lambda.
1841 (target_fetch_description_xml): Use a lambda.
1842 (string_read_description_xml): Update.
1843
04f5bab2
SM
18442020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1845
1846 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1847 uses with type::endianity_is_not_default.
1848
db558e34
SM
18492020-09-14 Simon Marchi <simon.marchi@efficios.com>
1850
1851 * gdbtypes.h (struct type) <endianity_is_not_default,
1852 set_endianity_is_not_default>: New methods.
1853 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1854 type::endianity_is_not_default, change all write call sites to
1855 use type::set_endianity_is_not_default.
1856
22c4c60c
SM
18572020-09-14 Simon Marchi <simon.marchi@efficios.com>
1858
1859 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1860 uses with type::is_fixed_instance.
1861
9cdd0d12
SM
18622020-09-14 Simon Marchi <simon.marchi@efficios.com>
1863
1864 * gdbtypes.h (struct type) <is_fixed_instance,
1865 set_is_fixed_instance>: New methods.
1866 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1867 write call sites to use type::set_is_fixed_instance.
1868
0becda7a
SM
18692020-09-14 Simon Marchi <simon.marchi@efficios.com>
1870
1871 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1872 uses with type::is_gnu_ifunc.
1873
03cc7249
SM
18742020-09-14 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1877 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1878 use type::set_is_gnu_ifunc.
1879
3f46044c
SM
18802020-09-14 Simon Marchi <simon.marchi@efficios.com>
1881
1882 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1883 uses with type::stub_is_supported.
1884
9baccff6
SM
18852020-09-14 Simon Marchi <simon.marchi@efficios.com>
1886
1887 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1888 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1889 use type::set_stub_is_supported.
1890
bd63c870
SM
18912020-09-14 Simon Marchi <simon.marchi@efficios.com>
1892
1893 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1894 uses with type::is_vector.
1895
2062087b
SM
18962020-09-14 Simon Marchi <simon.marchi@efficios.com>
1897
1898 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1899 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1900 use type::set_is_vector.
1901
a409645d
SM
19022020-09-14 Simon Marchi <simon.marchi@efficios.com>
1903
1904 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1905 uses with type::has_varargs.
1906
1d6286ed
SM
19072020-09-14 Simon Marchi <simon.marchi@efficios.com>
1908
1909 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1910 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1911 use type::set_has_varargs.
1912
7f9f399b
SM
19132020-09-14 Simon Marchi <simon.marchi@efficios.com>
1914
1915 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1916 uses with type::is_prototyped.
1917
27e69b7a
SM
19182020-09-14 Simon Marchi <simon.marchi@efficios.com>
1919
1920 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1921 New methods.
1922 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1923 call sites to use type::set_is_prototyped.
1924
d2183968
SM
19252020-09-14 Simon Marchi <simon.marchi@efficios.com>
1926
1927 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1928 uses with type::target_is_stub.
1929
8f53807e
SM
19302020-09-14 Simon Marchi <simon.marchi@efficios.com>
1931
1932 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1933 New methods.
1934 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1935 sites to use type::set_target_is_stub.
1936
e46d3488
SM
19372020-09-14 Simon Marchi <simon.marchi@efficios.com>
1938
1939 * gdbtypes.h (TYPE_STUB): Remove, replace all
1940 uses with type::is_stub.
1941
b4b73759
SM
19422020-09-14 Simon Marchi <simon.marchi@efficios.com>
1943
1944 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1945 (TYPE_STUB): Use type::is_stub, change all write call sites to
1946 use type::set_is_stub.
1947
20ce4123
SM
19482020-09-14 Simon Marchi <simon.marchi@efficios.com>
1949
1950 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1951 type::has_no_signedness.
1952
15152a54
SM
19532020-09-14 Simon Marchi <simon.marchi@efficios.com>
1954
1955 * gdbtypes.h (struct type) <has_no_signedness,
1956 set_has_no_signedness>: New methods.
1957 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1958 call sites to use type::set_has_no_signedness.
1959
c6d940a9
SM
19602020-09-14 Simon Marchi <simon.marchi@efficios.com>
1961
1962 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1963 type::is_unsigned.
1964
653223d3
SM
19652020-09-14 Simon Marchi <simon.marchi@efficios.com>
1966
1967 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1968 methods.
1969 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1970 sites to use type::set_is_unsigned.
1971
55ea94da 19722020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 1973 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 1974
e851246a
SM
1975 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1976 pointer and stack frame offset when unwinding.
55ea94da 1977
6791b117
PA
19782020-09-13 Pedro Alves <pedro@palves.net>
1979
1980 * NEWS: Document "-break-insert --qualified".
1981 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1982
77f2120b
PA
19832020-09-13 Pedro Alves <pedro@palves.net>
1984
1985 * linespec.c (classify_mtype, compare_msyms): Delete.
1986 (search_minsyms_for_name): Remove classification logic. Instead
1987 filter out trampoline symbols if we also found an external
1988 function of the same name.
1989
ed6a896c
JB
19902020-09-13 Joel Brobecker <brobecker@adacore.com>
1991
1992 * NEWS: Create a new section for the next release branch.
1993 Rename the section of the current branch, now that it has
1994 been cut.
1995
32aea73e
JB
19962020-09-13 Joel Brobecker <brobecker@adacore.com>
1997
1998 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1999 * version.in: Bump version to 11.0.50.DATE-git.
2000
8087c3fa
JB
20012020-09-12 Joel Brobecker <brobecker@adacore.com>
2002
2003 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2004
2a67f09d
FW
20052020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2006 Felix Willgerodt <Felix.Willgerodt@intel.com>
2007
2008 * gdbarch.sh: Added bfloat16 type.
2009 * gdbarch.c: Regenerated.
2010 * gdbarch.h: Regenerated.
2011 * gdbtypes.c (floatformats_bfloat16): New struct.
2012 (gdbtypes_post_init): Add builtin_bfloat16.
2013 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2014 (floatformats_bfloat16): New struct.
2015 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2016 (i386_ymm_type): Add field "v16_bfloat16"
2017 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2018 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2019 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2020 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2021 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2022 * features/i386/64bit-avx512.c: Regenerated.
2023 * features/i386/64bit-sse.xml: Add bfloat16 type.
2024 * features/i386/64bit-sse.c: Regenerated.
2025
1347d111
FW
20262020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2027
2028 * i386-tdep.c (i386_zmm_type): Fix field names.
2029 (i386_ymm_type): Fix field names.
2030
7a4e8e7d
TBA
20312020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2032
2033 * breakpoint.c: Fix typo in the help message of the
2034 "set breakpoint condition-evaluation" command.
2035
cf4ac4be
KR
20362020-09-10 Kamil Rytarowski <n54@gmx.com>
2037
2038 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2039 * (nbsd_nat_target::pid_to_exec_file)
2040 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2041 (nbsd_nat_target::post_startup_inferior)
2042 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2043 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2044 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2045 * (nbsd_thread_lister): Remove.
2046
f404573e
KR
20472020-09-10 Kamil Rytarowski <n54@gmx.com>
2048
2049 * fork-inferior.c (startup_inferior): Avoid double free.
2050
1ccb2c17
KR
20512020-09-10 Kamil Rytarowski <n54@gmx.com>
2052
2053 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2054 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2055
feedfcc7
KR
20562020-09-10 Kamil Rytarowski <n54@gmx.com>
2057
2058 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2059 * netbsd-nat.c: Include <sys/ptrace.h>.
2060 * (netbsd_nat::enable_proc_events): Add.
2061
c489f8c6
KR
20622020-09-10 Kamil Rytarowski <n54@gmx.com>
2063
2064 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2065 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2066 (netbsd_nat::for_each_thread): Add.
2067 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2068 "gdbsupport/common-debug.h".
2069 * (netbsd_nat::netbsd_thread_lister)
2070 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2071 (netbsd_nat::for_each_thread): Add.
2072
330662f6
KR
20732020-09-10 Kamil Rytarowski <n54@gmx.com>
2074
2075 * netbsd-nat.h: Include <unistd.h>.
2076 * (netbsd_nat::pid_to_exec_file): Add.
2077 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2078 * (netbsd_nat::pid_to_exec_file) Add.
2079
70b67307
KR
20802020-09-10 Kamil Rytarowski <n54@gmx.com>
2081
2082 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2083
99cf6da6
KR
20842020-09-10 Kamil Rytarowski <n54@gmx.com>
2085
2086 * netbsd-nat.h: New file.
2087 * netbsd-nat.c: Likewise.
2088
1b788fb6
TT
20892020-09-09 Tom Tromey <tromey@adacore.com>
2090
2091 * ada-lang.c (remove_extra_symbols): Do not increment when
2092 removing an element
2093
03b0a45f
TT
20942020-09-08 Tom Tromey <tromey@adacore.com>
2095
2096 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2097
3cae4447
TT
20982020-09-08 Tom Tromey <tromey@adacore.com>
2099
2100 PR win32/25302:
2101 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2102 (gdb_bfd_init_data): New function.
2103 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2104
7f08fd51
TBA
21052020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2106
2107 * infrun.c (fetch_inferior_event): Use
2108 `switch_to_target_no_thread` to switch the target.
2109
3e6ff933
TT
21102020-09-06 Tom Tromey <tom@tromey.com>
2111
2112 * symfile.h (dwarf2_free_objfile): Don't declare.
2113
e56798df
AKS
21142020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2115
2116 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2117 to match 16 byte real/complex type generated by Flang compiler.
2118
8f5c6526
TV
21192020-09-03 Tom de Vries <tdevries@suse.de>
2120
2121 PR breakpoint/26546
2122 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2123 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2124
c5065df0
SM
21252020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2126
2127 * maint.c (index_digits): New function.
2128 (struct maint_print_section_data): Remove.
2129 (print_bfd_section_info): Remove print_data parameter, add arg
2130 and index_digits.
2131 (print_objfile_section_info): Likewise.
2132 (print_bfd_section_info_maybe_relocated): Likewise (plus
2133 objfile).
2134 (maintenance_info_sections): Adjust calls.
2135
02c6f3f1
TT
21362020-09-02 Tom Tromey <tromey@adacore.com>
2137
2138 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2139 for null pointers.
2140 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2141
ef5e5b0b
SM
21422020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2143
2144 * bcache.h (struct bcache) <insert>: Change type of `added` to
2145 pointer to bool.
2146 * bcache.c (bcache::insert): Likewise.
2147 * gdbtypes.c (check_types_worklist): Adjust.
2148 * psymtab.c (add_psymbol_to_bcache): Adjust.
2149
973695d6
KB
21502020-08-31 Kevin Buettner <kevinb@redhat.com>
2151
2152 * corelow.c (unordered_set): Include.
2153 (class core_target): Add field 'm_core_unavailable_mappings'.
2154 (core_target::build_file_mappings): Print only one warning
2155 per inaccessible file. Add unavailable/broken mappings
2156 to m_core_unavailable_mappings.
2157 (core_target::xfer_partial): Call...
2158 (core_target::xfer_memory_via_mappings): New method.
2159
264fc0e2
SM
21602020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2161
2162 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2163 type to bool.
2164
2de01bdb
SM
21652020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2166
2167 * dwarf2/read.c (struct field_info): Fix indentation.
2168
f3bd50f1
SM
21692020-08-31 Simon Marchi <simon.marchi@efficios.com>
2170
2171 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2172 ordering in comment.
2173 * frame.c (frame_id_eq): Fix indentation.
2174
22b9b4b0
SL
21752020-08-31 Scott Linder <scott@scottlinder.com>
2176 Simon Marchi <simon.marchi@efficios.com>
2177
2178 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2179 inline frame ids in outer frame.
2180
84154d16
SM
21812020-08-31 Simon Marchi <simon.marchi@efficios.com>
2182
2183 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2184 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2185 (outer_frame_id): Use FID_STACK_OUTER instead of
2186 FID_STACK_INVALID.
2187 (frame_id_p): Don't check for outer_frame_id.
2188
8efaf6b3
SM
21892020-08-31 Simon Marchi <simon.marchi@efficios.com>
2190
2191 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2192 regnum/frame in value. Call allocate_value_lazy.
2193 * frame.c (frame_unwind_register_value): Use
2194 val_print_not_saved.
2195
fe1fe7ea
SM
21962020-08-31 Simon Marchi <simon.marchi@efficios.com>
2197
2198 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2199
f7c7700d
PA
22002020-08-29 Pedro Alves <pedro@palves.net>
2201
2202 * progspace.c (print_program_space): Use all_inferiors. Switch to
2203 the inferior before calling target_pid_to_str.
2204
e0814aae
TT
22052020-08-28 Tom Tromey <tom@tromey.com>
2206
2207 * xcoffread.c (xcoff_end_psymtab): Update comment.
2208 * dbxread.c (dbx_end_psymtab): Update comment.
2209
626d2320
TV
22102020-08-28 Tom de Vries <tdevries@suse.de>
2211
2212 PR breakpoint/26544
2213 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2214 event_location.
2215 (create_breakpoint): Same.
2216 (base_breakpoint_decode_location): Same.
2217 (bkpt_create_sals_from_location): Same.
2218 (bkpt_decode_location): Same.
2219 (bkpt_probe_create_sals_from_location): Same.
2220 (bkpt_probe_decode_location): Same.
2221 (tracepoint_create_sals_from_location): Same.
2222 (tracepoint_decode_location): Same.
2223 (tracepoint_probe_decode_location): Same.
2224 (strace_marker_create_sals_from_location): Same.
2225 (strace_marker_decode_location): Same.
2226 (create_sals_from_location_default): Same.
2227 (decode_location_default): Same.
2228 * breakpoint.h (struct breakpoint_ops): Same.
2229 (create_breakpoint): Same.
2230 * linespec.h (decode_line_full): Same.
2231 * linespec.c (decode_line_full): Same. Throw error if
2232 result.size () == 0.
2233
df631783
PA
22342020-08-27 Pedro Alves <pedro@palves.net>
2235
2236 PR gdb/26524
2237 * breakpoint.c (until_break_fsm) <location_breakpoint,
2238 caller_breakpoint>: Delete fields.
2239 <breakpoints>: New field.
2240 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2241 two individual breakpoints.
2242 (until_break_fsm::should_stop): Loop over breakpoints in the
2243 breakpoint vector.
2244 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2245 vector.
2246 (until_break_command): Handle location expanding into multiple
2247 sals.
2248
b2b38aa4
PA
22492020-08-27 Pedro Alves <pedro@palves.net>
2250
2251 PR gdb/26523
2252 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2253 bp_until breakpoints user-specified locations. Update intro
2254 comment.
2255
b886559f
SM
22562020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2257
2258 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2259 gdb_bfd_sections): New.
2260 * maint.c (print_bfd_section_info): Change param type to
2261 maint_print_section_data.
2262 (print_objfile_section_info): Likewise.
2263 (print_bfd_section_info_maybe_relocated): Likewise.
2264 (maintenance_info_sections): Use gdb_bfd_sections.
2265
4c6e63bf
SV
22662020-08-25 Shahab Vahedi <shahab@synopsys.com>
2267
2268 * MAINTAINERS: Add ARC target and maintainer.
2269
8d7f0635
AK
22702020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2271
2272 * configure.tgt: ARC support for GNU/Linux.
2273 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2274 * arc-linux-tdep.c: New file.
2275 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2276 * arc-tdep.c (arc_write_pc): Use it.
2277
fdd8731b
SV
22782020-08-25 Shahab Vahedi <shahab@synopsys.com>
2279
2280 * arc-tdep.c (arc_check_for_hardware_loop): New.
2281 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2282
22459524
SV
22832020-08-25 Shahab Vahedi <shahab@synopsys.com>
2284
2285 * arc-tdep.h: Include "gdbarch.h".
2286
995d3a19
SV
22872020-08-25 Shahab Vahedi <shahab@synopsys.com>
2288
2289 * arch/arc.h
2290 (arc_gdbarch_features): New class to stir the selection of target XML.
2291 (arc_create_target_description): Use FEATURES to choose XML target.
2292 (arc_lookup_target_description): Use arc_create_target_description
2293 to create _new_ target descriptions or return the already created
2294 ones if the FEATURES is the same.
2295 * arch/arc.c: Implementation of prototypes described above.
2296 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2297 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2298 * arc-tdep.c (*_feature_name): Make feature names consistent.
2299 (arc_register_feature): A new struct to hold information about
2300 registers of a particular target/feature.
2301 (arc_check_tdesc_feature): Check if XML provides registers in
2302 compliance with ARC_REGISTER_FEATURE structs.
2303 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2304 (determine_*_reg_feature_set): Which feature name to look for.
2305 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2306 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2307 to expected ISA enums to be used in arc_gdbarch_features structs.
2308 * features/Makefile (FEATURE_XMLFILES): Add new files.
2309 * gdb/features/arc/v1-aux.c: New file.
2310 * gdb/features/arc/v1-aux.xml: Likewise.
2311 * gdb/features/arc/v1-core.c: Likewise.
2312 * gdb/features/arc/v1-core.xml: Likewise.
2313 * gdb/features/arc/v2-aux.c: Likewise.
2314 * gdb/features/arc/v2-aux.xml: Likewise.
2315 * gdb/features/arc/v2-core.c: Likewise.
2316 * gdb/features/arc/v2-core.xml: Likewise.
2317 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2318
3945d2d7
GM
23192020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2320 Andrew Burgess <andrew.burgess@embecosm.com>
2321
2322 PR m2/26372
fc5d6901 2323 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2324 an assert. Remove single element array indexing pattern as the
2325 MULTI_SUBSCRIPT support will handle this case too.
2326
2677f2d3
SM
23272020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2328
2329 * value.h (valprint_check_validity): Move declaration from
2330 here...
2331 * valprint.h (valprint_check_validity): ... to here.
2332
c426fddb
SM
23332020-08-24 Simon Marchi <simon.marchi@efficios.com>
2334
2335 * debug.h: New file.
2336 * debug.c (debug_prefixed_vprintf): New function.
2337 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2338 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2339
1eb8556f
SM
23402020-08-24 Simon Marchi <simon.marchi@efficios.com>
2341
2342 * infrun.h (infrun_debug_printf_1): New function declaration.
2343 (infrun_debug_printf): New macro.
2344 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2345 throughout.
2346 (infrun_debug_printf): New function.
2347 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2348 (handle_jit_event): Likewise.
2349
b8fff44e
MW
23502020-08-21 Mark Wielaard <mark@klomp.org>
2351
2352 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2353
d19c3068
SM
23542020-08-22 Simon Marchi <simon.marchi@efficios.com>
2355
2356 * frame.c (enum class frame_id_status): New.
2357 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2358 (fprintf_frame): Update.
2359 (compute_frame_id): Set frame id status to "computing" on entry.
2360 Set it back to "not_computed" on failure and to "computed" on
2361 success.
2362 (get_frame_id): Assert the frame id is not being computed.
2363 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2364 (create_new_frame): Likewise.
2365 (frame_cleanup_after_sniffer): Update assert.
2366
b70e516e
SM
23672020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2368
2369 * regcache.c (pid_ptid_regcache_map): New type.
2370 (target_ptid_regcache_map): Remove.
2371 (target_pid_ptid_regcache_map): New type.
2372 (regcaches): Change type to target_pid_ptid_regcache_map.
2373 (get_thread_arch_aspace_regcache): Update.
2374 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2375 case.
2376 (regcaches_size): Update.
2377 (regcache_count): Update.
2378 (registers_changed_ptid_target_pid_test): New.
2379 (_initialize_regcache): Register new test.
2380
cdd9148a
SM
23812020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2382
2383 * regcache.c (regcache_count): New.
2384 (struct regcache_test_data): New.
2385 (regcache_test_data_up): New.
2386 (populate_regcaches_for_test): New.
2387 (regcaches_test): Remove.
2388 (get_thread_arch_aspace_regcache_test): New.
2389 (registers_changed_ptid_all_test): New.
2390 (registers_changed_ptid_target_test): New.
2391 (registers_changed_ptid_target_ptid_test): New.
2392 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2393 (_initialize_regcache): Register new tests.
2394
dd125343
SM
23952020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2396
2397 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2398 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2399 gdbarch and aspace parameter. Use current inferior's aspace.
2400 Validate regcache's arch value.
2401 (regcaches_test): Update.
2402
3ee93972
SM
24032020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2404
2405 * regcache.c (regcaches_test): Call registers_changed.
2406
33bf4c5c
TBA
24072020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2408
2409 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2410
c2fd7fae
AKS
24112020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2412
2413 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2414 to find the end of prologue for flang compiled binaries.
2415 * arm-tdep.c (arm_skip_prologue): Likewise.
2416 * i386-tdep.c (i386_skip_prologue): Likewise.
2417 * producer.c (producer_is_llvm): New function.
2418 (producer_parsing_tests): Added new tests for clang/flang.
2419 * producer.h (producer_is_llvm): New declaration.
2420
9327494e
SM
24212020-08-18 Simon Marchi <simon.marchi@efficios.com>
2422
2423 * linux-nat.c (linux_nat_debug_printf): New function.
2424 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2425
d138725a
AM
24262020-08-18 Aaron Merey <amerey@redhat.com>
2427
2428 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2429 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2430 (CLIBS): Add DEBUGINFOD_LIBS.
2431
f9b11e6b
ST
24322020-08-17 Sergei Trofimovich <siarheit@google.com>
2433
2434 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2435 'gdbarch_num_regs'.
2436
3ae7ab99
TT
24372020-08-17 Tom Tromey <tromey@adacore.com>
2438
2439 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2440 ada_get_decoded_value returns NULL.
2441
b017825f
TT
24422020-08-17 Tom Tromey <tromey@adacore.com>
2443
2444 * python/py-inferior.c (infpy_search_memory): Use
2445 gdb_py_object_from_ulongest.
2446 * python/py-infevents.c (create_inferior_call_event_object)
2447 (create_memory_changed_event_object): Use
2448 gdb_py_object_from_ulongest.
2449 * python/py-linetable.c (ltpy_entry_get_pc): Use
2450 gdb_py_object_from_ulongest.
2451
7635cf79
SM
24522020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2453
2454 * loc.c (class symbol_needs_eval_context): Fix indentation.
2455
f54be24b
SM
24562020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2457
2458 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2459 bool.
2460
53d5a2a5
TV
24612020-08-17 Tom de Vries <tdevries@suse.de>
2462
2463 PR gdb/26393
2464 * gdbtypes.c (dump_dynamic_prop): New function.
2465 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2466
547ce8f0
TV
24672020-08-15 Tom de Vries <tdevries@suse.de>
2468
2469 PR backtrace/26390
2470 * stack.c (print_frame_args): Temporarily set the selected
2471 frame to FRAME while printing the frame's arguments.
2472
6ea815e7
PFC
24732020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2474
2475 PR breakpoints/26385
2476 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2477 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2478
6e562fa3
PFC
24792020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2480
2481 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2482 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2483 and >= to check return value instead of == -1 and != -1.
2484
d369b608
SM
24852020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2486
2487 * utils.h (class gdb_argv) <as_array_view>: New method.
2488 * utils.c (gdb_argv_as_array_view_test): New.
2489 (_initialize_utils): Register selftest.
2490 * maint.c (maintenance_selftest): Use the new method.
2491
b31488a3
KR
24922020-08-13 Kamil Rytarowski <n54@gmx.com>
2493
2494 * target.h (supports_dumpcore, dumpcore): New
2495 function declarations.
2496 * target.c (supports_dumpcore, dumpcore): New
2497 functions.
2498 * target-delegates.c: Rebuild.
2499 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2500 and target_dumpcore ().
2501
002a3166
AM
25022020-08-13 Aaron Merey <amerey@redhat.com>
2503
2504 * debuginfod-support.c: Replace global variables with user_data.
2505
ece5bc8a
SM
25062020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2507
2508 * maint.c (maintenance_selftest): Split args and pass array_view
2509 to run_tests.
2510
6d8a0a5e
LM
25112020-08-12 Luis Machado <luis.machado@linaro.org>
2512
2513 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2514 type's length.
2515 Use %s and pulongest to print the length.
2516
7cf663a9
PA
25172020-08-12 Pedro Alves <palves@redhat.com>
2518
2519 * NEWS: Move "Multi-target debugging support" item to the
2520 "Changes since GDB 9" section.
2521
27c7b875
PA
25222020-08-12 Pedro Alves <palves@redhat.com>
2523
2524 PR gdb/26336
2525 * progspace.c (program_space::remove_objfile): Invalidate the
2526 frame cache.
2527
1796a2a1
TV
25282020-08-11 Tom de Vries <tdevries@suse.de>
2529
2530 * MAINTAINERS: Mark ms1 as deleted.
2531
f8e3fe0d
LM
25322020-08-10 Luis Machado <luis.machado@linaro.org>
2533
2534 PR gdb/26310
2535
2536 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2537 act accordingly.
2538 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2539 movz/str/stur/stp skipping behavior.
2540
cc308722
LM
25412020-08-10 Luis Machado <luis.machado@linaro.org>
2542
2543 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2544 struct user_sve_header instead of struct sve_context.
2545
041d9819
SM
25462020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2547
2548 * read.h (dwarf2_fetch_die_loc_sect_off,
2549 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2550 `void *` parameter with function_view.
2551 * read.c (dwarf2_fetch_die_loc_sect_off,
2552 dwarf2_fetch_die_loc_cu_off): Likewise.
2553 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2554 (per_cu_dwarf_call): Adjust.
2555 (get_frame_address_in_block_wrapper): Remove.
2556 (indirect_synthetic_pointer): Adjust.
2557 (get_ax_pc): Remove.
2558 (dwarf2_compile_expr_to_ax): Adjust.
2559
38f8aa06
TV
25602020-08-08 Tom de Vries <tdevries@suse.de>
2561
2562 PR build/26344
2563 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2564 constructor.
2565 * regcache.c (get_thread_arch_aspace_regcache): Same.
2566
a52b3ae2
TT
25672020-08-07 Tom Tromey <tromey@adacore.com>
2568
2569 * ravenscar-thread.c
2570 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2571 New method.
2572 (ravenscar_thread_target::wait): Check
2573 runtime_initialized.
2574 (ravenscar_thread_target::prepare_to_store)
2575 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2576 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2577 (ravenscar_thread_target::stopped_by_watchpoint)
2578 (ravenscar_thread_target::stopped_data_address)
2579 (ravenscar_thread_target::core_of_thread): Use
2580 scoped_restore_current_thread and
2581 set_base_thread_from_ravenscar_task.
2582
0e29517d
TT
25832020-08-07 Tom Tromey <tromey@adacore.com>
2584
2585 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2586
592f9bd7
TT
25872020-08-07 Tom Tromey <tromey@adacore.com>
2588
2589 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2590 update_inferior_ptid before update_thread_list.
2591 (temporarily_change_regcache_ptid): New class.
2592 (ravenscar_thread_target::fetch_registers)
2593 (ravenscar_thread_target::store_registers)
2594 (ravenscar_thread_target::prepare_to_store): Use base thread when
2595 forwarding operation.
2596
39e2018a
TT
25972020-08-07 Tom Tromey <tromey@adacore.com>
2598
2599 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2600 "is_pid" case.
2601
2080266b
TT
26022020-08-07 Tom Tromey <tromey@adacore.com>
2603
2604 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2605 New methods.
2606 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2607 first.
2608 (ravenscar_thread_target::add_thread): Rename from
2609 ravenscar_add_thread.
2610 (ravenscar_thread_target::update_thread_list): Use a lambda.
2611 (ravenscar_thread_target::xfer_partial): New method.
2612
78c02f21
TT
26132020-08-07 Tom Tromey <tromey@adacore.com>
2614
2615 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2616 gdb::function_view.
2617 (iterate_over_live_ada_tasks): Change type of argument.
2618 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2619 of argument.
2620
d5d833af
TT
26212020-08-07 Tom Tromey <tromey@adacore.com>
2622
2623 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2624 Remove.
2625 (ravenscar_thread_target::extra_thread_info): Remove.
2626 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2627 defer to target beneath for non-Ravenscar threads.
2628
a8ac85bb
TT
26292020-08-07 Tom Tromey <tromey@adacore.com>
2630
2631 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2632 get_base_thread_from_ravenscar_task>: Now methods.
2633 <m_cpu_map>: New member.
2634 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2635 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2636 (ravenscar_thread_target::task_is_currently_active): Update.
2637 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2638 Now a method.
2639 (ravenscar_thread_target::add_active_thread): Put initial thread
2640 into the m_cpu_map.
2641
550ab58d
TT
26422020-08-07 Tom Tromey <tromey@adacore.com>
2643
2644 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2645 event_ptid.
2646
e9546579
TT
26472020-08-07 Tom Tromey <tromey@adacore.com>
2648
2649 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2650 runtime_initialized.
2651
3d4470e5
TT
26522020-08-07 Tom Tromey <tromey@adacore.com>
2653
2654 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2655 add_active_thread.
2656 (ravenscar_thread_target::add_active_thread): Now public.
2657 (ravenscar_inferior_created): Call add_active_thread after pushing
2658 the target.
2659
888bdb2b
SM
26602020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2661
2662 * regcache.c (ptid_regcache_map): New type.
2663 (target_ptid_regcache_map): New type.
2664 (regcaches): Change type to target_ptid_regcache_map.
2665 (get_thread_arch_aspace_regcache): Update to regcaches' new
2666 type.
2667 (regcache_thread_ptid_changed): Likewise.
2668 (registers_changed_ptid): Likewise.
2669 (regcaches_size): Likewise.
2670 (regcaches_test): Update.
2671 (regcache_thread_ptid_changed): Update.
2672 * regcache.h (regcache_up): New type.
2673 * gdbsupport/ptid.h (hash_ptid): New struct.
2674
b161a60d
SM
26752020-08-07 Simon Marchi <simon.marchi@efficios.com>
2676
2677 * observable.h (thread_ptid_changed): Add parameter
2678 `process_stratum_target *`.
2679 * infrun.c (infrun_thread_ptid_changed): Add parameter
2680 `process_stratum_target *` and use it.
2681 (selftests): New namespace.
2682 (infrun_thread_ptid_changed): New function.
2683 (_initialize_infrun): Register selftest.
2684 * regcache.c (regcache_thread_ptid_changed): Add parameter
2685 `process_stratum_target *` and use it.
2686 (regcache_thread_ptid_changed): New function.
2687 (_initialize_regcache): Register selftest.
2688 * thread.c (thread_change_ptid): Pass target to
2689 thread_ptid_changed observable.
2690
d2854d8d
CT
26912020-08-06 Caroline Tice <cmtice@google.com>
2692
fe4c3d43
SM
2693 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2694 (struct dwp_sections): Update field comments. Add loclists and
2695 rnglists fields.
2696 (struct virtual_v2_dwo_sections): Rename struct to
2697 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2698 size & offset fields for loclists and rnglists.
2699 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2700 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2701 skipping dummy type units.
2702 (create_dwp_hash_table): Update the large comment above the function to
2703 discuss Version 5 DWP files as well, with references. Update all the
2704 version checks in the function to check for version 5 as well. Add new
2705 section at the end to create dwp hash table for version 5.
2706 (create_dwp_v2_section): Rename function to
2707 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2708 Add V5 to error message text.
2709 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2710 into calls to create_dwp_v2_or_v5_section.
2711 (create_dwo_unit_in_dwp_v5): New function.
2712 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2713 check for version2; add else clause to handle version 5.
2714 (open_and_init_dwo_file): Add code to check dwarf version & only call
2715 create_debug_types_hash_table (with sections.types) if version is not 5;
2716 else call create_debug_type_hash_table, with sections.info.
2717 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2718 version 5.
2719 (dwarf2_locate_v5_dwp_sections): New function.
2720 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2721 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2722
159ed7d9
SM
27232020-08-06 Simon Marchi <simon.marchi@efficios.com>
2724
2725 * regcache.h (class regcache): Remove friend
2726 registers_changed_ptid.
2727 <regcache_thread_ptid_changed>: Remove.
2728 <regcaches>: Remove.
2729 * regcache.c (regcache::regcaches): Rename to...
2730 (regcaches): ... this. Make static.
2731 (get_thread_arch_aspace_regcache): Update.
2732 (regcache::regcache_thread_ptid_changed): Rename to...
2733 (regcache_thread_ptid_changed): ... this. Update.
2734 (class regcache_access): Remove.
2735 (regcaches_test): Update.
2736 (_initialize_regcache): Update.
2737 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2738 <forward_list>.
2739
174981ae
SM
27402020-08-06 Simon Marchi <simon.marchi@efficios.com>
2741
2742 * regcache.h (class regcache) <current_regcache>: Rename to...
2743 <regcaches>: ... this. Move doc here.
2744 * regcache.c (regcache::current_regcache) Rename to...
2745 (regcache::regcaches): ... this. Move doc to header.
2746 (get_thread_arch_aspace_regcache): Update.
2747 (regcache::regcache_thread_ptid_changed): Update.
2748 (registers_changed_ptid): Update.
2749 (class regcache_access) <current_regcache_size>: Rename to...
2750 <regcaches_size>: ... this.
2751 (current_regcache_test): Rename to...
2752 (regcaches_test): ... this.
2753 (_initialize_regcache): Update.
2754
ed908db6
VC
27552020-08-06 Victor Collod <vcollod@nvidia.com>
2756
2757 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2758
b5582ab7
KB
27592020-08-05 Kevin Buettner <kevinb@redhat.com>
2760
2761 * corelow.c (core_target::build_file_mappings): Don't output
2762 null pathname in warning.
2763
ea946b86
SM
27642020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2765
2766 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2767 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2768 gdb.dwarf2/dw2-single-line-discriminators.exp,
2769 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2770
57d02173
TT
27712020-08-05 Tom Tromey <tromey@adacore.com>
2772
2773 PR rust/26197:
2774 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2775 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2776 Fix off-by-one and type size errors in ordinary case.
2777
5555c86d
TV
27782020-08-05 Tom de Vries <tdevries@suse.de>
2779
2780 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2781 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2782
97916bfe
SM
27832020-08-04 Simon Marchi <simon.marchi@efficios.com>
2784
2785 * frame.h (frame_id_p): Return bool.
2786 (frame_id_artificial_p): Return bool.
2787 (frame_id_eq): Return bool.
2788 (has_stack_frames): Return bool.
2789 (get_selected_frame): Fix typo in comment.
2790 (get_frame_pc_if_available): Return bool.
2791 (get_frame_address_in_block_if_available): Return bool.
2792 (get_frame_func_if_available): Return bool.
2793 (read_frame_register_unsigned): Return bool.
2794 (get_frame_register_bytes): Return bool.
2795 (safe_frame_unwind_memory): Return bool.
2796 (deprecated_frame_register_read): Return bool.
2797 (frame_unwinder_is): Return bool.
2798 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2799 bool.
2800 <this_id::p>: Likewise.
2801 <prev_p>: Likewise.
2802 (frame_stash_add): Return bool.
2803 (get_frame_id): Use bool.
2804 (frame_id_build_special) Use bool.
2805 (frame_id_build_unavailable_stack): Use bool.
2806 (frame_id_build): Use bool.
2807 (frame_id_p): Return bool, use true/false instead of 1/0.
2808 (frame_id_artificial_p): Likewise.
2809 (frame_id_eq): Likewise.
2810 (frame_id_inner): Likewise.
2811 (get_frame_func_if_available): Likewise.
2812 (read_frame_register_unsigned): Likewise.
2813 (deprecated_frame_register_read): Likewise.
2814 (get_frame_register_bytes): Likewise.
2815 (has_stack_frames): Likewise.
2816 (inside_main_func): Likewise.
2817 (inside_entry_func): Likewise.
2818 (get_frame_pc_if_available): Likewise.
2819 (get_frame_address_in_block_if_available): Likewise.
2820 (frame_unwinder_is): Likewise.
2821 (safe_frame_unwind_memory): Likewise.
2822 (frame_unwind_arch): Likewise.
2823
fedfee88
SM
28242020-08-04 Simon Marchi <simon.marchi@efficios.com>
2825
2826 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2827 type to cached_copy_status.
2828 (fprintf_frame): Adjust.
2829 (get_frame_func_if_available): Adjust.
2830 (frame_cleanup_after_sniffer): Adjust.
2831
6cfa9b59
MW
28322020-08-04 Mark Wielaard <mark@klomp.org>
2833
2834 * MAINTAINERS (Write After Approval): Update email address.
2835
66d6346b
SM
28362020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2837
2838 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2839 dynamic_prop::const_val.
2840
8a6d5e35
SM
28412020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2842
2843 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2844 dynamic_prop::kind.
2845
51d6067d
SM
28462020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2847
2848 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2849
b26e2ae7
JM
28502020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2851
2852 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2853
39791af2
JM
28542020-08-04 Weimin Pan <weimin.pan@oracle.com>
2855 Jose E. Marchesi <jose.marchesi@oracle.com>
2856
2857 * configure.tgt: Add entry for bpf-*-*.
2858 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2859 (ALLDEPFILES): Add bpf-tdep.c.
2860 * bpf-tdep.c: New file.
2861 * MAINTAINERS: Add bpf target and maintainer.
2862 * NEWS: Mention the support for the new target.
2863
521894aa
TV
28642020-08-04 Tom de Vries <tdevries@suse.de>
2865
2866 PR symtab/23270
2867 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2868 Error.
2869
5d6356e9
JB
28702020-08-03 John Baldwin <jhb@FreeBSD.org>
2871
2872 * syscalls/freebsd.xml: Regenerate.
2873
0cf82b81
JB
28742020-08-03 John Baldwin <jhb@FreeBSD.org>
2875
2876 * syscalls/update-freebsd.sh: Fix usage and year range.
2877
8f34b746
TV
28782020-08-03 Tom de Vries <tdevries@suse.de>
2879
2880 PR symtab/26333
2881 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2882 DW_LNE_lo_user/DW_LNE_hi_user range.
2883
5e500d33
SM
28842020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2885
2886 PR ada/26318
2887 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2888 kind.
2889
78319c15
TBA
28902020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2891
2892 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2893
4c55e970
TBA
28942020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2895
2896 * breakpoint.c (set_breakpoint_condition): Update the condition
2897 expressions after checking that the input condition string parses
2898 successfully and does not contain junk at the end.
2899
1e620590
TBA
29002020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2901
2902 * breakpoint.c (set_breakpoint_condition): Update the
2903 condition string after parsing the new condition successfully.
2904
c8693053
RO
29052020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2906
2907 * proc-api.c (_STRUCTURED_PROC): Don't define.
2908 * proc-events.c: Likewise.
2909 * proc-flags.c: Likewise.
2910 * proc-why.c: Likewise.
2911 * procfs.c: Likewise.
2912
2913 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2914 * configure, config.in: Regenerate.
2915
5a99adb8
TV
29162020-07-30 Tom de Vries <tdevries@suse.de>
2917
2918 PR build/26320
2919 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2920 m_red/m_green/m_blue in a union.
2921
8ba83e91
TV
29222020-07-29 Tom de Vries <tdevries@suse.de>
2923
2924 PR tdep/26280
2925 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2926
f75a0693
AB
29272020-07-28 Tom Tromey <tromey@adacore.com>
2928
2929 PR symtab/26270:
2930 * symtab.h (find_pc_partial_function_sym): Declare.
2931 * cli/cli-cmds.c (disassemble_command): Use
2932 find_pc_partial_function_sym. Check asm_demangle.
2933 * blockframe.c (cache_pc_function_sym): New global.
2934 (cache_pc_function_name): Remove.
2935 (clear_pc_function_cache): Update.
2936 (find_pc_partial_function_sym): New function, from
2937 find_pc_partial_function.
2938 (find_pc_partial_function): Rewrite using
2939 find_pc_partial_function_sym.
2940
16f3242c
TT
29412020-07-28 Tom Tromey <tromey@adacore.com>
2942
2943 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2944 help. Add usage.
2945
4888741a
TT
29462020-07-28 Tom Tromey <tromey@adacore.com>
2947
2948 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2949 <DW_OP_GNU_variable_value>: Cast to address type.
2950
4d46f402
KR
29512020-07-28 Kamil Rytarowski <n54@gmx.com>
2952
2953 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2954 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2955 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2956 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2957 (nbsd_get_siginfo_type): New.
2958 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2959 (_initialize_nbsd_tdep): New.
2960
d70f978b
L
29612020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2962
2963 PR binutils/26301
2964 * configure: Regenerated.
2965
377170fa
L
29662020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2967
2968 PR binutils/26301
2969 * configure: Regenerated.
2970
43d5901d
AB
29712020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2972
2973 * python/py-frame.c: Remove 'user-regs.h' include.
2974 (frapy_read_register): Rewrite to make use of
2975 gdbpy_parse_register_id.
2976 * python/py-registers.c (gdbpy_parse_register_id): New function,
2977 moved here from python/py-unwind.c. Updated the return type, and
2978 also accepts register descriptor objects.
2979 * python/py-unwind.c: Remove 'user-regs.h' include.
2980 (pyuw_parse_register_id): Moved to python/py-registers.c.
2981 (unwind_infopy_add_saved_register): Update to use
2982 gdbpy_parse_register_id.
2983 (pending_framepy_read_register): Likewise.
2984 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2985
14fa8fb3
AB
29862020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2987
2988 * python/py-registers.c: Add 'user-regs.h' include.
2989 (register_descriptor_iter_find): New function.
2990 (register_descriptor_iterator_object_methods): New static global
2991 methods array.
2992 (register_descriptor_iterator_object_type): Add pointer to methods
2993 array.
2994
ddce1758
JB
29952020-07-27 John Baldwin <jhb@FreeBSD.org>
2996
2997 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2998 for all architectures on FreeBSD 11.3 and later.
2999
a4089f52
TT
30002020-07-27 Tom Tromey <tromey@adacore.com>
3001
3002 * gcore.h (load_corefile): Don't declare.
3003
95420d30
TV
30042020-07-27 Tom de Vries <tdevries@suse.de>
3005
3006 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3007 * config.in: Regenerate.
3008 * configure: Regenerate.
3009
05a6b8c2
EZ
30102020-07-26 Eli Zaretskii <eliz@gnu.org>
3011
3012 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3013 ws2tcpip.h. When checking whether socklen_t type is defined, use
3014 ws2tcpip.h if it is available and sys/socket.h isn't.
3015 * configure: Regenerate.
3016 * config.in: Regenerate.
3017
e79eb02f
AB
30182020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3019
3020 PR fortran/23051
3021 PR fortran/26139
3022 * valops.c (value_ind): Pass address to
3023 readjust_indirect_value_type.
3024 * value.c (readjust_indirect_value_type): Make parameter
3025 non-const, and add extra address parameter. Resolve original type
3026 before using it.
3027 * value.h (readjust_indirect_value_type): Update function
3028 signature and comment.
3029
876518dd
TV
30302020-07-25 Tom de Vries <tdevries@suse.de>
3031
3032 PR symtab/26243
3033 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3034 entries.
3035
f6720b1c
AM
30362020-07-24 Aaron Merey <amerey@redhat.com>
3037
3038 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3039 * configure: Rebuild.
3040
513487e1
KB
30412020-07-23 Kevin Buettner <kevinb@redhat.com>
3042
3043 PR corefiles/26294
3044 * corelow.c (_initialize_corelow): Add period to help text
3045 for "maintenance print core-file-backed-mappings".
3046
e7bc9db8
PA
30472020-07-23 Pedro Alves <pedro@palves.net>
3048
3049 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3050 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3051 meanwhile.
3052 * frame.c (frame_cache_generation, get_frame_cache_generation):
3053 New.
3054 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3055 (get_prev_frame_if_no_cycle): On exception, don't touch
3056 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3057 * frame.h (get_frame_cache_generation): Declare.
3058
90fcc466
TV
30592020-07-23 Tom de Vries <tdevries@suse.de>
3060
3061 PR tui/26282
3062 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3063 New default constructor.
3064
78344df7
AB
30652020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3066
3067 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3068 exclude non-statement entries.
3069
b089853a
KB
30702020-07-22 Kevin Buettner <kevinb@redhat.com>
3071
3072 * NEWS (New commands): Mention new command
3073 "maintenance print core-file-backed-mappings".
3074
09c2f5d4
KB
30752020-07-22 Kevin Buettner <kevinb@redhat.com>
3076
3077 * corelow.c (gdbcmd.h): Include.
3078 (core_target::info_proc_mappings): New method.
3079 (get_current_core_target): New function.
3080 (maintenance_print_core_file_backed_mappings): New function.
3081 (_initialize_corelow): Add core-file-backed-mappings to
3082 "maint print" commands.
3083
9c5ec5c2 30842020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3085
9c5ec5c2
KB
3086 * linux-tdep.c (dump_note_entry_p): New function.
3087 (linux_dump_mapping_p_ftype): New typedef.
3088 (linux_find_memory_regions_full): Add new parameter,
3089 should_dump_mapping_p.
3090 (linux_find_memory_regions): Adjust call to
3091 linux_find_memory_regions_full.
3092 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3093 call to linux_find_memory_regions_full.
3094
db082f59
KB
30952020-07-22 Kevin Buettner <kevinb@redhat.com>
3096
3097 * corelow.c (solist.h, unordered_map): Include.
3098 (class core_target): Add field m_core_file_mappings and
3099 method build_file_mappings.
3100 (core_target::core_target): Call build_file_mappings.
3101 (core_target::~core_target): Free memory associated with
3102 m_core_file_mappings.
3103 (core_target::build_file_mappings): New method.
3104 (core_target::xfer_partial): Use m_core_file_mappings
3105 for memory transfers.
3106 * linux-tdep.c (linux_read_core_file_mappings): New
3107 function.
3108 (linux_core_info_proc_mappings): Rewrite to use
3109 linux_read_core_file_mappings.
3110 (linux_init_abi): Register linux_read_core_file_mappings.
3111
7e183d27
KB
31122020-07-22 Kevin Buettner <kevinb@redhat.com>
3113
3114 * arch-utils.c (default_read_core_file_mappings): New function.
3115 * arch-utils.c (default_read_core_file_mappings): Declare.
3116 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3117 * gdbarch.h, gdbarch.c: Regenerate.
3118
2735d421
KB
31192020-07-22 Kevin Buettner <kevinb@redhat.com>
3120
3121 PR corefiles/25631
3122 * corelow.c (core_target:xfer_partial): Revise
3123 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3124 case after first checking the stratum beneath the core
3125 target.
3126 (has_all_memory): Return true.
3127 * target.c (raw_memory_xfer_partial): Revise comment
3128 regarding use of has_all_memory.
3129
e56cb451
KB
31302020-07-22 Kevin Buettner <kevinb@redhat.com>
3131
3132 * exec.h (section_table_xfer_memory): Revise declaration,
3133 replacing section name parameter with an optional callback
3134 predicate.
3135 * exec.c (section_table_xfer_memory): Likewise.
3136 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3137 of section_table_xfer_memory.
3138
32fa152e
TT
31392020-07-22 Tom Tromey <tromey@adacore.com>
3140
3141 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3142 lookup_symbol_search_name.
3143
a67a1c41
AB
31442020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3145
3146 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3147 redundant local variable.
3148 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3149 reference, not pointer, update code accordingly.
3150
a7b4ff4f
SM
31512020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3152 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3153
3154 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3155 * jit.c (jit_breakpoint_re_set_internal): Use the
3156 `skip_jit_symbol_lookup` field.
3157
2340e834
SM
31582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3159 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3160
3161 * jit.c (jit_read_descriptor): Define the descriptor address once,
3162 use twice.
3163 (jit_breakpoint_deleted): Move the declaration of the loop variable
3164 `iter` into the loop header.
3165 (jit_breakpoint_re_set_internal): Move the declaration of the local
3166 variable `objf_data` to the first point of definition.
3167 (jit_event_handler): Move the declaration of local variables
3168 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3169 Rename `objf` to `jited`.
3170
c1072906
SM
31712020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3172
3173 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3174 Remove.
3175 * jit.c (get_jiter_objfile_data): Update.
3176
c8474dc3
TBA
31772020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3178 Simon Marchi <simon.marchi@polymtl.ca>
3179
3180 * jit.c (struct jit_program_space_data): Remove.
3181 (jit_program_space_key): Remove.
3182 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3183 stuff.
3184 (get_jit_program_space_data): Remove.
3185 (jit_breakpoint_deleted): Iterate on all of the program space's
3186 objfiles.
3187 (jit_inferior_init): Likewise.
3188 (jit_breakpoint_re_set_internal): Likewise. Also change return
3189 type to void.
3190 (jit_breakpoint_re_set): Pass current_program_space to
3191 jit_breakpoint_re_set_internal.
3192
77208eb7
SM
31932020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3194
3195 * jit.h (struct jiter_objfile_data) <cached_code_address,
3196 jit_breakpoint>: Move to here from ...
3197 * jit.c (jit_program_space_data): ... here.
3198 (jiter_objfile_data::~jiter_objfile_data): Update.
3199 (jit_breakpoint_deleted): Update.
3200 (jit_breakpoint_re_set_internal): Update.
3201
8c1c720f
SM
32022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3203
3204 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3205 checks.
3206 (jit_read_descriptor): Remove NULL check.
3207 (jit_event_handler): Add an assertion.
3208
0e74a041
SM
32092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3210
3211 * jit.h (struct jit_objfile_data): Split into...
3212 (struct jiter_objfile_data): ... this ...
3213 (struct jited_objfile_data): ... and this.
3214 * objfiles.h (struct objfile) <jit_data>: Remove.
3215 <jiter_data, jited_data>: New fields.
3216 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3217 (jiter_objfile_data::~jiter_objfile_data): ... this.
3218 (get_jit_objfile_data): Rename to ...
3219 (get_jiter_objfile_data): ... this.
3220 (add_objfile_entry): Update.
3221 (jit_read_descriptor): Use get_jiter_objfile_data.
3222 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3223 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3224 (jit_inferior_exit_hook): Use objfile's jited_data field.
3225
238b5c9f
SM
32262020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3227
3228 * jit.h: Forward-declare `struct minimal_symbol`.
3229 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3230 constructor, destructor, and an objfile* field.
3231 * jit.c (jit_objfile_data): Remove.
3232 (struct jit_objfile_data): Migrate from here to jit.h.
3233 (jit_objfile_data::~jit_objfile_data): New destructor
3234 implementation with code moved from free_objfile_data.
3235 (free_objfile_data): Delete.
3236 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3237 (jit_find_objf_with_entry_addr): Ditto.
3238 (jit_inferior_exit_hook): Ditto.
3239 (_initialize_jit): Remove the call to
3240 register_objfile_data_with_cleanup.
3241 * objfiles.h (struct objfile) <jit_data>: New field.
3242
fe053b9e
TBA
32432020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3244
3245 * jit.h: Forward-declare `struct objfile`.
3246 (jit_event_handler): Add a second parameter, the JITer objfile.
3247 * jit.c (jit_read_descriptor): Change the signature to take the
3248 JITer objfile as an argument instead of the jit_program_space_data.
3249 (jit_inferior_init): Update the call to jit_read_descriptor.
3250 (jit_event_handler): Use the new JITer objfile argument when calling
3251 jit_read_descriptor.
3252 * breakpoint.c (handle_jit_event): Update the call to
3253 jit_event_handler to pass the JITer objfile.
3254
4cec0c66
JB
32552020-07-21 John Baldwin <jhb@FreeBSD.org>
3256
3257 * gdbarch.c: Regenerate.
3258 * gdbarch.h: Regenerate.
3259 * gdbarch.sh (handle_segmentation_fault): Remove method.
3260 * infrun.c (handle_segmentation_fault): Remove.
3261 (print_signal_received_reason): Remove call to
3262 handle_segmentation_fault.
3263
0e42f66a
JB
32642020-07-21 John Baldwin <jhb@FreeBSD.org>
3265
3266 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3267 Rename to sparc64_linux_report_signal_info and add siggnal
3268 argument.
3269 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3270 instead of sparc64_linux_handle_segmentation_fault.
3271
77bdfeb2
JB
32722020-07-21 John Baldwin <jhb@FreeBSD.org>
3273
3274 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3275 i386_linux_report_signal_info instead of
3276 i386_linux_handle_segmentation_fault.
3277 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3278 to i386_linux_report_signal_info and add siggnal argument.
3279 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3280 of i386_linux_handle_segmentation_fault.
3281 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3282 to i386_linux_report_signal_info and add siggnal argument.
3283
ad97bfc5
JB
32842020-07-21 John Baldwin <jhb@FreeBSD.org>
3285
3286 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3287 hook if present.
3288
272bb05c
JB
32892020-07-21 John Baldwin <jhb@FreeBSD.org>
3290
3291 * gdbarch.c: Regenerate.
3292 * gdbarch.h: Regenerate.
3293 * gdbarch.sh (report_signal_info): New method.
3294 * infrun.c (print_signal_received_reason): Invoke gdbarch
3295 report_signal_info hook if present.
3296
baf8791e
AB
32972020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3298
3299 * python/py-registers.c : Add 'unordered_map' include.
3300 (gdbpy_new_reggroup): Renamed to...
3301 (gdbpy_get_reggroup): ...this. Update to only create register
3302 group descriptors when needed.
3303 (gdbpy_reggroup_iter_next): Update.
3304
f7306dac
AB
33052020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3306
3307 * python/py-registers.c (gdbpy_register_object_data): New static
3308 global.
3309 (gdbpy_register_object_data_init): New function.
3310 (gdbpy_new_register_descriptor): Renamed to...
3311 (gdbpy_get_register_descriptor): ...this, and update to reuse
3312 existing register descriptors where possible.
3313 (gdbpy_register_descriptor_iter_next): Update.
3314 (gdbpy_initialize_registers): Register new gdbarch data.
3315
05c309a8
SM
33162020-07-21 Simon Marchi <simon.marchi@efficios.com>
3317
3318 * linux-nat.c (stopped_pids): Make static.
3319
d1fd641e
SM
33202020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3321
3322 PR ada/26235
3323 * gdbtypes.c (ada_discrete_type_low_bound,
3324 ada_discrete_type_high_bound): Handle undefined bounds.
3325
1de14d77
KR
33262020-07-21 Kamil Rytarowski <n54@gmx.com>
3327
3328 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3329 declaration.
3330 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3331 function.
3332
ed810cc7
JB
33332020-07-20 John Baldwin <jhb@FreeBSD.org>
3334
3335 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3336 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3337 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3338 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3339 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3340 method.
3341
ae5369e7
LC
33422020-07-20 Ludovic Courtès <ludo@gnu.org>
3343
3344 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3345 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3346 which are deprecated in Guile 3.0.
3347 * configure.ac (try_guile_versions): Add "guile-3.0".
3348 * configure (try_guile_versions): Regenerate.
3349 * NEWS: Update entry.
3350
68cf161c
LC
33512020-07-20 Ludovic Courtès <ludo@gnu.org>
3352 Doug Evans <dje@google.com>
3353
3354 PR gdb/21104
3355 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3356 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3357 USING_GUILE_BEFORE_2_2.
3358 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3359 Change type to 'scm_t_port_type *'.
3360 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3361 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3362 parameter and honor it. Update callers.
3363 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3364 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3365 functions.
3366 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3367 USING_GUILE_BEFORE_2_2.
3368 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3369 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3370 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3371 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3372 and 'SCM_PORT_TYPE'.
3373 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3374 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3375 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3376 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3377 [!USING_GUILE_BEFORE_2_2]: New functions.
3378 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3379 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3380 'gdbscm_memory_port_read'.
3381 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3382 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3383 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3384 function.
3385 (ioscm_init_memory_port): Remove.
3386 (ioscm_init_memory_port_stream): New function
3387 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3388 function.
3389 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3390 Return scm_from_uint (0).
3391 (gdbscm_set_memory_port_read_buffer_size_x)
3392 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3393 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3394 Return scm_from_uint (0).
3395 (gdbscm_set_memory_port_write_buffer_size_x)
3396 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3397 * configure.ac (try_guile_versions): Add "guile-2.2".
3398 * configure: Regenerate.
3399 * NEWS: Add entry.
3400
aee91db3
TT
34012020-07-18 Tom Tromey <tom@tromey.com>
3402
3403 * linux-nat.c (linux_multi_process): Remove.
3404 (linux_nat_target::supports_multi_process): Return true.
3405
0e267416
AB
34062020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3407
3408 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3409 (riscv_lookup_target_description): Return pointer out of
3410 unique_ptr.
3411 * target-descriptions.c (allocate_target_description): Add
3412 comment.
3413 (target_desc_deleter::operator()): Likewise.
3414 * target-descriptions.h (struct target_desc_deleter): Moved to
3415 gdbsupport/tdesc.h.
3416 (target_desc_up): Likewise.
3417
f80c8ec4
TT
34182020-07-17 Tom Tromey <tromey@adacore.com>
3419
3420 * linux-nat.c (linux_nat_target::supports_non_stop)
3421 (linux_nat_target::always_non_stop_p): Use "true".
3422 (linux_nat_target::supports_disable_randomization): Use "true" and
3423 "false".
3424
d0ce17d8
CT
34252020-07-16 Caroline Tice <cmtice@google.com>
3426
3427 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3428 (RNGLIST_HEADER_SIZE64): New constant definition.
3429 (struct dwop_section_names): Add rnglists_dwo.
3430 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3431 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3432 (struct dwo_sections): Add rnglists field.
3433 (read_attribut_reprocess): Add tag parameter.
3434 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3435 (cu_debug_rnglists_section): New function (decl & definition).
3436 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3437 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3438 die whose range is being checked; get rnglist section from
3439 cu_debug_rnglists_section, to get from either objfile or dwo file as
3440 appropriate. Add cases for DW_RLE_base_addressx,
3441 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3442 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3443 test inside if-condition and updating complaint message.
3444 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3445 dwarf2_rnglists_process.
3446 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3447 dwarf2_ranges_process.
3448 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3449 need_ranges_base and update comment appropriately. Also pass die tag
3450 to dwarf2_ranges_read.
3451 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3452 need_ranges_base and update comment appropriately. Also pass die tag
3453 to dwarf2_ranges_process.
3454 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3455 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3456 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3457 need_ranges_base and update comment appropriately. Also pass die tag
3458 to read_attribute_reprocess and dwarf2_ranges_read.
3459 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3460 and update function comment appropriately.
3461 (read_loclist_index): Call read_loclists_rnglists_header instead of
3462 read_loclist_header.
3463 (read_rnglist_index): New function.
3464 (read_attribute_reprocess): Add tag parameter. Add code for
3465 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3466 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3467
3dcc261c
AB
34682020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3469
3470 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3471 being resolved.
3472
ccb9eba6
AB
34732020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3474
3475 * arch-utils.c (show_architecture): Update formatting of messages.
3476
cf88be68
SM
34772020-07-12 Simon Marchi <simon.marchi@efficios.com>
3478
3479 * gdbtypes.h (struct type) <bounds>: Handle array and string
3480 types.
3481 * ada-lang.c (assign_aggregate): Use type::bounds on
3482 array/string type.
3483 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3484 * c-varobj.c (c_number_of_children): Likewise.
3485 (c_describe_child): Likewise.
3486 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3487 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3488 (f_type_print_base): Likewise.
3489 * f-valprint.c (f77_array_offset_tbl): Likewise.
3490 (f77_get_upperbound): Likewise.
3491 (f77_print_array_1): Likewise.
3492 * guile/scm-type.c (gdbscm_type_range): Likewise.
3493 * m2-typeprint.c (m2_array): Likewise.
3494 (m2_is_long_set_of_type): Likewise.
3495 * m2-valprint.c (get_long_set_bounds): Likewise.
3496 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3497 * python/py-type.c (typy_range): Likewise.
3498 * rust-lang.c (rust_internal_print_type): Likewise.
3499 * type-stack.c (type_stack::follow_types): Likewise.
3500 * valarith.c (value_subscripted_rvalue): Likewise.
3501 * valops.c (value_cast): Likewise.
3502
509971ae
SM
35032020-07-12 Simon Marchi <simon.marchi@efficios.com>
3504
3505 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3506 callers to use the equivalent accessor methods.
3507
107406b7
SM
35082020-07-12 Simon Marchi <simon.marchi@efficios.com>
3509
3510 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3511 (struct type) <bit_stride>: New method.
3512 (TYPE_BIT_STRIDE): Remove.
3513 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3514
bb789949
SM
35152020-07-12 Simon Marchi <simon.marchi@efficios.com>
3516
3517 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3518 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3519 callers to use the equivalent accessor methods instead.
3520
39498edb
SM
35212020-07-12 Simon Marchi <simon.marchi@efficios.com>
3522
3523 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3524 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3525 callers to use the equivalent accessor methods instead.
3526
3b606f38
SM
35272020-07-12 Simon Marchi <simon.marchi@efficios.com>
3528
3529 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3530 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3531 to use dynamic_prop::kind.
3532
064d9cb9
SM
35332020-07-12 Simon Marchi <simon.marchi@efficios.com>
3534
3535 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3536 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3537 to get the bound property's kind and check against
3538 PROP_UNDEFINED.
3539
5537ddd0
SM
35402020-07-12 Simon Marchi <simon.marchi@efficios.com>
3541
3542 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3543 all callers to use type::range_bounds followed by
3544 dynamic_prop::{low,high}.
3545
8c2e4e06
SM
35462020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3547
3548 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3549 const_val, set_const_val, baton, set_locexpr, set_loclist,
3550 set_addr_offset, variant_parts, set_variant_parts,
3551 original_type, set_original_type>: New methods.
3552 <kind>: Rename to...
3553 <m_kind>: ... this. Update all users to use the new methods
3554 instead.
3555 <data>: Rename to...
3556 <m_data>: ... this. Update all users to use the new methods
3557 instead.
3558
7c6f2712
SM
35592020-07-12 Simon Marchi <simon.marchi@efficios.com>
3560
3561 * gdbtypes.c (get_discrete_bounds): Return failure if
3562 the range type's bounds are not both defined and constant
3563 values.
3564 (get_array_bounds): Update comment. Remove undefined bound check.
3565
599088e3
SM
35662020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3567
3568 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3569 the type::bounds method directly.
3570
c4dfcb36
SM
35712020-07-12 Simon Marchi <simon.marchi@efficios.com>
3572
3573 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3574 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3575 are used to set the range type's bounds to use set_bounds.
3576
0a278aa7
PW
35772020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3578
3579 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3580
cce20f10
PA
35812020-07-10 Pedro Alves <pedro@palves.net>
3582
3583 * gdbthread.h (inferior_ref): Define.
3584 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3585 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3586 * thread.c
3587 (scoped_restore_current_thread::restore):
3588 Adjust to gdb::ref_ptr.
3589 (scoped_restore_current_thread::~scoped_restore_current_thread):
3590 Remove manual decref handling.
3591 (scoped_restore_current_thread::scoped_restore_current_thread):
3592 Adjust to use
3593 inferior_ref::new_reference/thread_info_ref::new_reference.
3594 Incref the thread before calling get_frame_id instead of after.
3595 Let TARGET_CLOSE_ERROR propagate.
3596
6d7aa592
PA
35972020-07-10 Pedro Alves <pedro@palves.net>
3598
3599 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3600 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3601 NOT_AVAILABLE_ERROR.
3602 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3603 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3604
b3e3a4c1
SM
36052020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3606 Pedro Alves <pedro@palves.net>
3607
3608 PR gdb/26199
3609 * infrun.c (threads_are_resumed_pending_p): Delete.
3610 (do_target_wait): Remove threads_are_executing and
3611 threads_are_resumed_pending_p checks from the inferior_matches
3612 lambda. Update comments.
3613
d6cc5d98
PA
36142020-07-10 Pedro Alves <pedro@palves.net>
3615
3616 PR gdb/26199
3617 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3618 executing threads.
3619
7d3badc6
PA
36202020-07-10 Pedro Alves <pedro@palves.net>
3621
3622 PR gdb/26199
3623 * infrun.c (handle_no_resumed): Handle multiple targets.
3624
42bd97a6
PA
36252020-07-10 Pedro Alves <pedro@palves.net>
3626
3627 PR gdb/26199
3628 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3629 target_is_async_p.
3630
43667cc6
PA
36312020-07-10 Pedro Alves <pedro@palves.net>
3632
3633 PR gdb/26199
3634 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3635 threads, not all threads.
3636
96118d11
PA
36372020-07-10 Pedro Alves <pedro@palves.net>
3638
3639 PR gdb/26199
3640 * remote.c (remote_target::open_1): Pass remote target pointer as
3641 data to create_async_event_handler.
3642 (remote_async_inferior_event_handler): Mark async event handler
3643 before returning if the remote target still has either pending
3644 events or unacknowledged notifications.
3645
54904d81
JB
36462020-07-10 John Baldwin <jhb@FreeBSD.org>
3647
3648 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3649 declaration.
3650 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3651 function.
3652
f37e5866
JB
36532020-07-09 John Baldwin <jhb@FreeBSD.org>
3654
3655 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3656 inferior_ptid.
3657
fc238d4a
JB
36582020-07-09 John Baldwin <jhb@FreeBSD.org>
3659
3660 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3661 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3662 AT_FREEBSD_PS_STRINGS.
3663
6e2469ff
HD
36642020-07-08 Hannes Domani <ssbssa@yahoo.de>
3665
3666 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3667 of debugfile path on Windows.
3668
d1076c41
JB
36692020-07-08 John Baldwin <jhb@FreeBSD.org>
3670
3671 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3672 argument to 'data'.
3673
15f3b077
TT
36742020-07-08 Tom Tromey <tromey@adacore.com>
3675
3676 * ada-lang.c (ada_exception_message_1): Use read_memory.
3677
9fc501fd
AB
36782020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3679
3680 PR python/22748
3681 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3682 special handling for inline frames.
3683 * findvar.c (value_of_register_lazy): Skip inline frames when
3684 creating lazy register values.
3685 * frame.c (frame_id_computed_p): Delete definition.
3686 * frame.h (frame_id_computed_p): Delete declaration.
3687
64cb3757
AB
36882020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3689
3690 * NEWS: Mention additions to Python API.
3691 * python/py-arch.c (archpy_register_groups): New function.
3692 (arch_object_methods): Add 'register_groups' method.
3693 * python/py-registers.c (reggroup_iterator_object): New struct.
3694 (reggroup_object): New struct.
3695 (gdbpy_new_reggroup): New function.
3696 (gdbpy_reggroup_to_string): New function.
3697 (gdbpy_reggroup_name): New function.
3698 (gdbpy_reggroup_iter): New function.
3699 (gdbpy_reggroup_iter_next): New function.
3700 (gdbpy_new_reggroup_iterator): New function
3701 (gdbpy_initialize_registers): Register new types.
3702 (reggroup_iterator_object_type): Define new Python type.
3703 (gdbpy_reggroup_getset): New static global.
3704 (reggroup_object_type): Define new Python type.
3705 * python/python-internal.h
3706
0f767f94
AB
37072020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3708
3709 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3710 * python/py-arch.c (archpy_registers): New function.
3711 (arch_object_methods): Add 'registers' method.
3712 * python/py-registers.c: New file.
3713 * python/python-internal.h
3714 (gdbpy_new_register_descriptor_iterator): Declare.
3715 (gdbpy_initialize_registers): Declare.
3716 * python/python.c (do_start_initialization): Call
3717 gdbpy_initialize_registers.
3718 * NEWS: Mention additions to the Python API.
3719
87dbc774
AB
37202020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3721
3722 * NEWS: Mention new Python API method.
3723 * python/py-unwind.c (pending_framepy_architecture): New function.
3724 (pending_frame_object_methods): Add architecture method.
3725
3bc98c0c
AB
37262020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3727
3728 * gdbarch.c: Regenerate.
3729 * gdbarch.h: Regenerate.
3730 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3731 (gdbarch_data): Use internal_error for the case where
3732 deprecated_set_gdbarch_data was originally needed.
3733 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3734 and use passed in obstack.
3735 (libunwind_frame_set_descr): Should no longer get back NULL from
3736 gdbarch_data.
3737 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3738 type.
3739 * user-regs.c (user_regs_init): Update parameters, and use passed
3740 in obstack.
3741 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3742 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3743
d8cc8af6
TV
37442020-07-06 Tom de Vries <tdevries@suse.de>
3745
3746 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3747 End-Of-Sequence in lte_is_less_than.
3748 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3749 "gdb: Don't reorder line table entries too much when sorting".
3750
947f7597
TV
37512020-07-06 Tom de Vries <tdevries@suse.de>
3752
3753 PR tui/26205
3754 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3755
1e7c1b22
TV
37562020-07-05 Tom de Vries <tdevries@suse.de>
3757
3758 PR build/26187
3759 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3760 std::uncaught_exceptions instead of deprecated
3761 std::uncaught_exception.
3762
a36158ec
SM
37632020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3764
3765 * macroexp.h (macro_stringify): Return
3766 gdb::unique_xmalloc_ptr<char>.
3767 * macroexp.c (macro_stringify): Likewise.
3768 * macrotab.c (fixup_definition): Update.
3769
14d960c8
SM
37702020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3771
3772 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3773 (lex_one_token): Update.
3774 * macroexp.c (struct macro_buffer) <release>: Return
3775 gdb::unique_xmalloc_ptr<char>.
3776 (macro_stringify): Update.
3777 (macro_expand): Update.
3778 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3779 * macroexp.h (macro_expand_next): Likewise.
3780
211d5b1c
SM
37812020-07-02 Simon Marchi <simon.marchi@efficios.com>
3782
3783 * macroexp.h (macro_lookup_ftype): Remove.
3784 (macro_expand, macro_expand_once, macro_expand_next): Remove
3785 lookup function parameters, add scope parameter.
3786 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3787 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3788 * macroscope.h (standard_macro_lookup): Change parameter type
3789 to macro_scope.
3790 * macroscope.c (standard_macro_lookup): Likewise.
3791 * c-exp.y (lex_one_token): Update.
3792 * macrocmd.c (macro_expand_command): Likewise.
3793 (macro_expand_once_command): Likewise.
3794
b1a35af2
SM
37952020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3796
3797 * inf-loop.c (inferior_event_handler): Remove client_data param.
3798 * inf-loop.h (inferior_event_handler): Likewise.
3799 * infcmd.c (step_1): Adjust.
3800 * infrun.c (proceed): Adjust.
3801 (fetch_inferior_event): Remove client_data param.
3802 (infrun_async_inferior_event_handler): Adjust.
3803 * infrun.h (fetch_inferior_event): Remove `void *` param.
3804 * linux-nat.c (handle_target_event): Adjust.
3805 * record-btrace.c (record_btrace_handle_async_inferior_event):
3806 Adjust.
3807 * record-full.c (record_full_async_inferior_event_handler):
3808 Adjust.
3809 * remote.c (remote_async_inferior_event_handler): Adjust.
3810
1cdf9e33
TT
38112020-07-01 Tom Tromey <tom@tromey.com>
3812
3813 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3814 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3815
32c1e210
TT
38162020-07-01 Tom Tromey <tom@tromey.com>
3817
3818 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3819 tui_gen_win_info.
3820 (tui_win_info::make_window): Merge with
3821 tui_gen_win_info::make_window.
3822 (tui_win_info::make_visible): Move from tui_gen_win_info.
3823 * tui/tui-win.c (tui_win_info::max_width): Move from
3824 tui_gen_win_info.
3825 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3826 type.
3827 <window_factory>: Likewise.
3828 * tui/tui-layout.c (tui_win_info::resize): Move from
3829 tui_gen_win_info.
3830 (make_standard_window): Change return type.
3831 (get_locator_window, tui_get_window_by_name): Likewise.
3832 (tui_layout_window::apply): Remove a cast.
3833 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3834 (struct tui_win_info): Merge with tui_gen_win_info.
3835 (struct tui_gen_win_info): Remove.
3836
a30cb6da
TT
38372020-07-01 Tom Tromey <tom@tromey.com>
3838
3839 * tui/tui-stack.h (struct tui_locator_window): Derive from
3840 tui_win_info.
3841 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3842 <can_box>: New method.
3843
1eb2161f
TT
38442020-07-01 Tom Tromey <tom@tromey.com>
3845
3846 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3847
7134f2eb
TT
38482020-07-01 Tom Tromey <tom@tromey.com>
3849
3850 * tui/tui-regs.c (tui_data_window::display_registers_from)
3851 (tui_data_window::display_registers_from)
3852 (tui_data_window::first_data_item_displayed)
3853 (tui_data_window::delete_data_content_windows): Update.
3854 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3855 Remove.
3856 (tui_data_window::check_register_values): Update.
3857 (tui_data_item_window::rerender): Add parameters. Update.
3858 (tui_data_item_window::refresh_window): Remove.
3859 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3860 virtual.
3861 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3862 tui_gen_win_info.
3863 <refresh_window, max_height, min_height>: Remove.
3864 <rerender>: Add parameters.
3865 <x, y, visible>: New members.
3866 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3867 <m_item_width>: New member.
3868
22b7b041
TT
38692020-07-01 Tom Tromey <tom@tromey.com>
3870
3871 * tui/tui-regs.c (tui_data_window::show_register_group)
3872 (tui_data_window::check_register_values): Update.
3873 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3874 from item_no.
3875
c9753adb
TT
38762020-07-01 Tom Tromey <tom@tromey.com>
3877
3878 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3879 useless "if".
3880
9ab26b4a
TT
38812020-07-01 Tom Tromey <tom@tromey.com>
3882
3883 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3884 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3885
e555083f
TT
38862020-07-01 Tom Tromey <tom@tromey.com>
3887
3888 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3889 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3890 (struct tui_line_or_address): Move from tui-data.h.
3891 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3892 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3893 (tui_cmd_window, tui_source_window_base, tui_source_window)
3894 (tui_disasm_window): Don't declare.
3895 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3896 to tui-winsource.h.
3897 (SINGLE_KEY): Move to tui-stack.c.
3898
7a02bab7
TT
38992020-07-01 Tom Tromey <tom@tromey.com>
3900
3901 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3902 std::string.
3903 * tui/tui-regs.c (class tab_expansion_file): New.
3904 (tab_expansion_file::write): New method.
3905 (tui_register_format): Change return type. Use
3906 tab_expansion_file.
3907 (tui_get_register, tui_data_window::display_registers_from)
3908 (tui_data_item_window::rerender): Update.
3909 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3910 * tui/tui-io.c (tui_expand_tabs): Remove.
3911
ea68593b
TT
39122020-07-01 Tom Tromey <tom@tromey.com>
3913
3914 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3915
a8caed5d
FS
39162020-07-01 Fangrui Song <maskray@google.com>
3917
3918 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3919
9cdf9820
AKS
39202020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3921
3922 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3923 forms for DW_AT_associated and DW_AT_allocated attributes,
3924 which is already checked in function attr_to_dynamic_prop.
3925
a1520ad8
TT
39262020-06-30 Tom Tromey <tromey@adacore.com>
3927
3928 * dwarf2/read.c (quirk_rust_enum): Correctly call
3929 alloc_rust_variant for default-less enum.
3930
5ac58899
TT
39312020-06-30 Tom Tromey <tromey@adacore.com>
3932
3933 PR build/26183:
3934 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3935 gdb::to_string.
3936
19b187a9
SM
39372020-06-29 Simon Marchi <simon.marchi@efficios.com>
3938
3939 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3940 * gdbarch.h: Re-generate.
3941
cd4c4c07
TT
39422020-06-28 Tom Tromey <tom@tromey.com>
3943
3944 * command.h (cmd_types): Remove.
3945 (cmd_type): Don't declare.
3946 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3947 typedef.
3948 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3949 * cli/cli-decode.c (cmd_type): Remove.
3950
05779d57
PA
39512020-06-27 Pedro Alves <palves@redhat.com>
3952
3953 * fork-child.c (prefork_hook): Adjust.
3954 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3955 Delete.
3956 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3957 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3958 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3959 Remove declarations.
3960 (struct inferior) <set_tty, tty>: New methods.
3961 (struct inferior) <terminal>: Rename to ...
3962 (struct inferior) <m_terminal>: ... this and make private.
3963 * main.c (captured_main_1): Adjust.
3964 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3965 (mi_cmd_inferior_tty_show): Adjust.
3966 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3967 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3968
1776e3e5
NA
39692020-06-26 Nick Alcock <nick.alcock@oracle.com>
3970
3971 * configure.ac: Add --enable-libctf: handle --disable-static
3972 properly.
3973 * acinclude.m4: sinclude ../config/enable.m4.
3974 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3975 (LIBCTF): Substitute in.
3976 (CTF_DEPS): New, likewise.
3977 (CLIBS): libctf needs symbols from libbfd: move earlier.
3978 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3979 flags.
3980 * ctfread.c: Surround in ENABLE_LIBCTF.
3981 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3982 * configure: Regenerate.
3983 * config.in: Likewise.
3984
58373b80
SM
39852020-06-25 Simon Marchi <simon.marchi@efficios.com>
3986
3987 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3988
277474ee
SM
39892020-06-25 Simon Marchi <simon.marchi@efficios.com>
3990
3991 * inferior.h (struct inferior) <terminal>: Change type to
3992 gdb::unique_xmalloc_ptr<char>.
3993 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3994 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3995 field, adjust to unique pointer.
3996 (get_inferior_io_terminal): Adjust to unique pointer.
3997
6d74da72
AB
39982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3999
4000 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4001 registers, not just the known core set of registers.
4002
2e52d038
AB
40032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4004
4005 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4006 fflags, frm, and fcsr registers.
4007 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4008 restore groups.
4009 (riscv_tdesc_unknown_reg): New function.
4010 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4011 tdesc_use_registers.
4012 * riscv-tdep.h (struct gdbarch_tdep): Add
4013 unknown_csrs_first_regnum, unknown_csrs_count,
4014 duplicate_fflags_regnum, duplicate_frm_regnum, and
4015 duplicate_fcsr_regnum fields.
4016
be64fd07
AB
40172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4018
4019 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4020 callback, use the callback (when not null) to help number unknown
4021 registers.
4022 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4023 (tdesc_use_registers): Add extra parameter to declaration.
4024
3b9fce96
AB
40252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4026
4027 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4028 in the file.
4029 (class riscv_pending_register_alias): Likewise.
4030 (riscv_register_feature::register_info): Change 'required_p' field
4031 to 'required', and change its type. Add 'check' member function.
4032 (riscv_register_feature::register_info::check): Define new member
4033 function.
4034 (riscv_xreg_feature): Change initialisation of 'required' field.
4035 (riscv_freg_feature): Likewise.
4036 (riscv_virtual_feature): Likewise.
4037 (riscv_csr_feature): Likewise.
4038 (riscv_check_tdesc_feature): Take extra parameter, the csr
4039 tdesc_feature, rewrite the function to use the new
4040 riscv_register_feature::register_info::check function.
4041 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4042
865bad26
AB
40432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4044
4045 * features/Makefile: Remove all references to the deleted files
4046 below.
4047 * features/riscv/32bit-csr.c: Deleted.
4048 * features/riscv/32bit-csr.xml: Deleted.
4049 * features/riscv/64bit-csr.c: Deleted.
4050 * features/riscv/64bit-csr.xml: Deleted.
4051 * features/riscv/rebuild-csr-xml.sh: Deleted.
4052
ed69cbc8
AB
40532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4054
4055 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4056 whitespace error for declaration of names member variable.
4057 (struct riscv_register_feature): Add new prefer_first_name member
4058 variable, and fix whitespace error in declaration of registers.
4059 (riscv_xreg_feature): Initialize prefer_first_name field.
4060 (riscv_freg_feature): Likewise.
4061 (riscv_virtual_feature): Likewise.
4062 (riscv_csr_feature): Likewise.
4063 (riscv_register_name): Expand on comments. Remove register name
4064 modifications for CSR and virtual registers.
4065
4445e8f5
AB
40662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4067
4068 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4069 errors.
4070
767a879e
AB
40712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4072
4073 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4074 riscv-opc.h.
4075 (class riscv_pending_register_alias): New class.
4076 (riscv_check_tdesc_feature): Take vector of pending aliases and
4077 populate it as appropriate.
4078 (riscv_setup_register_aliases): Delete.
4079 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4080 to riscv_check_tdesc_feature in all cases. Use the vector to
4081 create the register aliases.
4082
bb6e55f3
RO
40832020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4084
4085 * sol2-tdep.c (sol2_static_transform_name): Remove.
4086 (sol2_init_abi): Don't register it.
4087 * gdbarch.sh (static_transform_name): Remove.
4088 * gdbarch.c, gdbarch.h: Regenerate.
4089
4090 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4091 gdbarch_static_transform_name.
4092 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4093 * stabsread.c (define_symbol) <'X'>: Remove.
4094 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4095 handling.
4096 <'V'>: Likewise.
4097 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4098 <'S'>: Remove call to gdbarch_static_transform_name.
4099
c6d36836
RO
41002020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4101
4102 * procfs.c (procfs_pre_trace): New function.
4103 (procfs_target::create_inferior): Pass it to fork_inferior.
4104
a7e6196b
RO
41052020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4106
4107 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4108 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4109 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4110 sol2-tdep.o, sparc-sol2-tdep.o.
4111 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4112 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4113 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4114 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4115
d412e696
RO
41162020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4117
4118 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4119 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4120 Call sol2_init_abi.
4121 Remove calls to set_gdbarch_skip_solib_resolver,
4122 set_gdbarch_core_pid_to_str.
4123 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4124 (i386_sol2_static_transform_name): Remove.
4125 (i386_sol2_init_abi): Call sol2_init_abi.
4126 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4127 set_gdbarch_static_transform_name,
4128 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4129 Use sol2_sigtramp_p.
4130 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4131 (sol2_sigtramp_p): New function.
4132 (sol2_static_transform_name): New function.
4133 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4134 (sol2_init_abi): New function.
4135 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4136 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4137 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4138 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4139 (sparc_sol2_static_transform_name): Remove.
4140 (sparc32_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,
4144 set_gdbarch_core_pid_to_str.
4145 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4146 (sparc_sol2_static_transform_name): Remove
4147 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4148 call sol2_sigtramp_p.
4149 (sparc64_sol2_init_abi): Call sol2_init_abi.
4150 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4151 set_gdbarch_static_transform_name,
4152 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4153
a8654e7d
PW
41542020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4155
4156 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4157 * exec.c (validate_exec_file): If from_tty, set both
4158 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4159 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4160 and from_tty, unconditionally ask a confirmation.
4161
caa7fd04
AB
41622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4163
4164 * target-descriptions.c (tdesc_architecture_name): Protect against
4165 NULL pointer dereference.
4166 (maint_print_xml_tdesc_cmd): New function.
4167 (_initialize_target_descriptions): Register new 'maint print
4168 xml-tdesc' command and give it the filename completer.
4169 * NEWS: Mention new 'maint print xml-tdesc' command.
4170
fbf42f4e
AB
41712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4172
4173 * target-descriptions.c (class tdesc_compatible_info): New class.
4174 (struct target_desc): Change type of compatible vector.
4175 (tdesc_compatible_p): Update for change in type of
4176 target_desc::compatible.
4177 (tdesc_compatible_info_list): New function.
4178 (tdesc_compatible_info_arch_name): New function.
4179 (tdesc_add_compatible): Update for change in type of
4180 target_desc::compatible.
4181 (print_c_tdesc::visit_pre): Likewise.
4182
20821f4e
AB
41832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4184
4185 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4186 whitespace to underscore.
4187 (maint_print_c_tdesc_cmd): Use fake filename for target
4188 descriptions that came from the target.
4189 (_initialize_target_descriptions): Add filename command completion
4190 for 'maint print c-tdesc'.
4191
1fb5ee62
SM
41922020-06-23 Simon Marchi <simon.marchi@efficios.com>
4193
4194 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4195 lines.
4196
fc3ecb3e
SM
41972020-06-23 Simon Marchi <simon.marchi@efficios.com>
4198
4199 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4200 lines.
4201 (dwarf2_find_location_expression): Likewise.
4202 (call_site_parameter_matches): Likewise.
4203 (dwarf2_compile_expr_to_ax): Likewise.
4204 (disassemble_dwarf_expression): Likewise.
4205 (loclist_describe_location): Likewise.
4206
236ef034
PA
42072020-06-23 Pedro Alves <palves@redhat.com>
4208
4209 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4210 progspace-and-thread.h. Include scoped-mock-context.h instead.
4211 (register_to_value_test): Use scoped_mock_context.
4212 * regcache.c: Include "scoped-mock-context.h".
4213 (cooked_read_test): Don't error out if a target is already pushed.
4214 Use scoped_mock_context. Adjust.
4215 * scoped-mock-context.h: New file.
4216
39e7ecca
AB
42172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4218
4219 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4220 initializer.
4221 (ada_language::is_string_type_p): New member function.
4222 * c-lang.c (c_language_data): Delete la_is_string_type_p
4223 initializer.
4224 (cplus_language_data): Likewise.
4225 (asm_language_data): Likewise.
4226 (minimal_language_data): Likewise.
4227 * d-lang.c (d_language_data): Likewise.
4228 * f-lang.c (f_is_string_type_p): Delete function, implementation
4229 moved to f_language::is_string_type_p.
4230 (f_language_data): Delete la_is_string_type_p initializer.
4231 (f_language::is_string_type_p): New member function,
4232 implementation from f_is_string_type_p.
4233 * go-lang.c (go_is_string_type_p): Delete function, implementation
4234 moved to go_language::is_string_type_p.
4235 (go_language_data): Delete la_is_string_type_p initializer.
4236 (go_language::is_string_type_p): New member function,
4237 implementation from go_is_string_type_p.
4238 * language.c (language_defn::is_string_type_p): Define new member
4239 function.
4240 (default_is_string_type_p): Make static, add comment copied from
4241 header file.
4242 (unknown_language_data): Delete la_is_string_type_p initializer.
4243 (unknown_language::is_string_type_p): New member function.
4244 (auto_language_data): Delete la_is_string_type_p initializer.
4245 (auto_language::is_string_type_p): New member function.
4246 * language.h (language_data): Delete la_is_string_type_p field.
4247 (language_defn::is_string_type_p): Declare new function.
4248 (default_is_string_type_p): Delete desclaration, move comment to
4249 definition.
4250 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4251 moved to m2_language::is_string_type_p.
4252 (m2_language_data): Delete la_is_string_type_p initializer.
4253 (m2_language::is_string_type_p): New member function,
4254 implementation from m2_is_string_type_p.
4255 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4256 initializer.
4257 * opencl-lang.c (opencl_language_data): Likewise.
4258 * p-lang.c (pascal_is_string_type_p): Delete function,
4259 implementation moved to pascal_language::is_string_type_p.
4260 (pascal_language_data): Delete la_is_string_type_p initializer.
4261 (pascal_language::is_string_type_p): New member function,
4262 implementation from pascal_is_string_type_p.
4263 * rust-lang.c (rust_is_string_type_p): Delete function,
4264 implementation moved to rust_language::is_string_type_p.
4265 (rust_language_data): Delete la_is_string_type_p initializer.
4266 (rust_language::is_string_type_p): New member function,
4267 implementation from rust_is_string_type_p.
4268 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4269 is_string_type_p.
4270
4ffc13fb
AB
42712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4272
4273 * ada-lang.c (ada_language_data): Delete la_print_typedef
4274 initializer.
4275 (ada_language::print_typedef): New member function.
4276 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4277 (cplus_language_data): Likewise.
4278 (asm_language_data): Likewise.
4279 (minimal_language_data): Likewise.
4280 * d-lang.c (d_language_data): Likewise.
4281 * f-lang.c (f_language_data): Likewise.
4282 (f_language::print_typedef): New member function.
4283 * go-lang.c (go_language_data): Delete la_print_typedef
4284 initializer.
4285 * language.c (language_defn::print_typedef): Define member
4286 function.
4287 (unknown_language_data): Delete la_print_typedef initializer.
4288 (unknown_language::print_typedef): New member function.
4289 (auto_language_data): Delete la_print_typedef initializer.
4290 (auto_language::print_typedef): New member function.
4291 * language.h (language_data): Delete la_print_typedef field.
4292 (language_defn::print_typedef): Declare new member function.
4293 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4294 (default_print_typedef): Delete declaration.
4295 * m2-lang.c (m2_language_data): Delete la_print_typedef
4296 initializer.
4297 (m2_language::print_typedef): New member function.
4298 * objc-lang.c (objc_language_data): Delete la_print_typedef
4299 initializer.
4300 * opencl-lang.c (opencl_language_data): Likewise.
4301 * p-lang.c (pascal_language_data): Likewise.
4302 (pascal_language::print_typedef): New member function.
4303 * rust-lang.c (rust_print_typedef): Delete function,
4304 implementation moved to rust_language::print_typedef.
4305 (rust_language): Delete la_print_typedef initializer.
4306 (rust_language::print_typedef): New member function,
4307 implementation from rust_print_typedef.
4308 * typeprint.c (default_print_typedef): Delete.
4309
d711ee67
AB
43102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4311
4312 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4313 (ada_language::printstr): New member function.
4314 * c-lang.c (c_language_data): Delete la_printstr initializer.
4315 (cplus_language_data): Likewise.
4316 (asm_language_data): Likewise.
4317 (minimal_language_data): Likewise.
4318 * d-lang.c (d_language_data): Likewise.
4319 * f-lang.c (f_printstr): Rename to f_language::printstr.
4320 (f_language_data): Delete la_printstr initializer.
4321 (f_language::printstr): New member function, implementation from
4322 f_printstr.
4323 * go-lang.c (go_language_data): Delete la_printstr initializer.
4324 * language.c (language_defn::printstr): Define new member
4325 function.
4326 (unk_lang_printstr): Delete.
4327 (unknown_language_data): Delete la_printstr initializer.
4328 (unknown_language::printstr): New member function.
4329 (auto_language_data): Delete la_printstr initializer.
4330 (auto_language::printstr): New member function.
4331 * language.h (language_data): Delete la_printstr field.
4332 (language_defn::printstr): Declare new member function.
4333 (LA_PRINT_STRING): Update call to printstr.
4334 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4335 (m2_language_data): Delete la_printstr initializer.
4336 (m2_language::printstr): New member function, implementation from
4337 m2_printstr.
4338 * objc-lang.c (objc_language_data): Delete la_printstr
4339 initializer.
4340 * opencl-lang.c (opencl_language_data): Likewise.
4341 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4342 (pascal_language_data): Delete la_printstr initializer.
4343 (pascal_language::printstr): New member function, implementation
4344 from pascal_printstr.
4345 * p-lang.h (pascal_printstr): Delete declaration.
4346 * rust-lang.c (rust_printstr): Update header comment.
4347 (rust_language_data): Delete la_printstr initializer.
4348 (rust_language::printstr): New member function.
4349
52b50f2c
AB
43502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4351
4352 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4353 (ada_language::printchar): New member function.
4354 * c-lang.c (c_language_data): Delete la_printchar initializer.
4355 (cplus_language_data): Likewise.
4356 (asm_language_data): Likewise.
4357 (minimal_language_data): Likewise.
4358 * d-lang.c (d_language_data): Likewise.
4359 * f-lang.c (f_printchar): Rename to f_language::printchar.
4360 (f_language_data): Delete la_printchar initializer.
4361 (f_language::printchar): New member function, implementation from
4362 f_printchar.
4363 * go-lang.c (go_language_data): Delete la_printchar initializer.
4364 * language.c (unk_lang_printchar): Delete.
4365 (language_defn::printchar): Define new member function.
4366 (unknown_language_data): Delete la_printchar initializer.
4367 (unknown_language::printchar): New member function.
4368 (auto_language_data): Delete la_printchar initializer.
4369 (auto_language::printchar): New member function.
4370 * language.h (language_data): Delete la_printchar field.
4371 (language_defn::printchar): Declare new member function.
4372 (LA_PRINT_CHAR): Update call to printchar.
4373 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4374 (m2_language::printchar): New member function.
4375 * objc-lang.c (objc_language_data): Delete la_printchar
4376 initializer.
4377 * opencl-lang.c (opencl_language_data): Likewise.
4378 * p-lang.c (pascal_language_data): Delete la_printchar
4379 initializer.
4380 (pascal_language::printchar): New member function.
4381 * rust-lang.c (rust_printchar): Rename to
4382 rust_language::printchar.
4383 (rust_language_data): Delete la_printchar initializer.
4384 (rust_language::printchar): New member function, implementation
4385 from rust_printchar.
4386
ec8cec5b
AB
43872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4388
4389 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4390 (ada_language_data): Delete la_emitchar initializer.
4391 (ada_language::emitchar): New member function, implementation from
4392 emit_char.
4393 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4394 (cplus_language_data): Likewise.
4395 (asm_language_data): Likewise.
4396 (minimal_language_data): Likewise.
4397 * d-lang.c (d_language_data): Likewise.
4398 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4399 (f_language_data): Delete la_emitchar initializer.
4400 (f_language::emitchar): New member function, implementation from
4401 f_emit_char.
4402 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4403 * language.c (unk_lang_emit_char): Delete.
4404 (language_defn::emitchar): New member function definition.
4405 (unknown_language_data): Delete la_emitchar initializer.
4406 (unknown_language::emitchar): New member function.
4407 (auto_language_data): Delete la_emitchar initializer.
4408 (auto_language::emitchar): New member function.
4409 * language.h (language_data): Delete la_emitchar field.
4410 (language_defn::emitchar): New member field declaration.
4411 (LA_EMIT_CHAR): Update call to emitchar.
4412 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4413 (m2_language_data): Delete la_emitchar initializer.
4414 (m2_language::emitchar): New member function, implementation from
4415 m2_emit_char.
4416 * objc-lang.c (objc_language_data): Delete la_emitchar
4417 initializer.
4418 * opencl-lang.c (opencl_language_data): Likewise.
4419 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4420 (pascal_language_data): Delete la_emitchar initializer.
4421 (pascal_language::emitchar): New member function, implementation
4422 from pascal_emit_char.
4423 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4424 (rust_language_data): Delete la_emitchar initializer.
4425 (rust_language::emitchar): New member function, implementation
4426 from rust_emitchar.
4427
1bf9c363
AB
44282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4429
4430 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4431 (ada_language_data): Delete la_post_parser initializer.
4432 (ada_language::post_parser): New member function.
4433 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4434 (cplus_language_data): Likewise.
4435 (asm_language_data): Likewise.
4436 (minimal_language_data): Likewise.
4437 * d-lang.c (d_language_data): Likewise.
4438 * f-lang.c (f_language_data): Likewise.
4439 * go-lang.c (go_language_data): Likewise.
4440 * language.c (unknown_language_data): Likewise.
4441 (auto_language_data): Likewise.
4442 * language.h (language_data): Delete la_post_parser field.
4443 (language_defn::post_parser): New member function.
4444 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4445 * objc-lang.c (objc_language_data): Likewise.
4446 * opencl-lang.c (opencl_language_data): Likewise.
4447 * p-lang.c (pascal_language_data): Likewise.
4448 * parse.c (parse_exp_in_context): Update call to post_parser.
4449 (null_post_parser): Delete definition.
4450 * parser-defs.h (null_post_parser): Delete declaration.
4451 * rust-lang.c (rust_language_data): Delete la_post_parser
4452 initializer.
4453
87afa652
AB
44542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4455
4456 * ada-lang.c (parse): Rename to ada_language::parser.
4457 (ada_language_data): Delete la_parser initializer.
4458 (ada_language::parser): New member function, implementation from
4459 parse.
4460 * c-lang.c (c_language_data): Delete la_parser initializer.
4461 (cplus_language_data): Likewise.
4462 (asm_language_data): Likewise.
4463 (minimal_language_data): Likewise.
4464 * d-lang.c (d_language_data): Likewise.
4465 (d_language::parser): New member function.
4466 * f-lang.c (f_language_data): Delete la_parser initializer.
4467 (f_language::parser): New member function.
4468 * go-lang.c (go_language_data): Delete la_parser initializer.
4469 (go_language::parser): New member function.
4470 * language.c (unk_lang_parser): Delete.
4471 (language_defn::parser): Define new member function.
4472 (unknown_language_data): Delete la_parser initializer.
4473 (unknown_language::parser): New member function.
4474 (auto_language_data): Delete la_parser initializer.
4475 (auto_language::parser): New member function.
4476 * language.h (language_data): Delete la_parser field.
4477 (language_defn::parser): Declare new member function.
4478 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4479 (m2_language::parser): New member function.
4480 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4481 * opencl-lang.c (opencl_language_data): Likewise.
4482 * p-lang.c (pascal_language_data): Likewise.
4483 (pascal_language::parser): New member function.
4484 * parse.c (parse_exp_in_context): Update call to parser.
4485 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4486 (rust_language::parser): New member function.
4487
37825800
AB
44882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4489
4490 * top.c (print_gdb_configuration): Print --with-python-libdir
4491 configuration value.
4492
5b860c93
PW
44932020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4494
4495 * NEWS: Mention change to the alias command.
4496
cf00cd6f
PW
44972020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4498
4499 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4500 (alias_command_completer)
4501 (make_alias_options_def_group): New functions.
4502 (alias_opts, alias_option_defs): New struct and array.
4503 (alias_usage_error): Update usage.
4504 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4505 Use option framework.
4506 (_initialize_cli_cmds): Update alias command help.
4507 Update aliases command help.
4508 (show_user):
4509 Add NULL for new default_args lookup_cmd argument.
4510 (valid_command_p): Rename to validate_aliased_command.
4511 Add NULL for new default_args lookup_cmd argument. Verify that the
4512 aliased_command has no default args.
4513 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4514 (lookup_cmd_1, lookup_cmd): New argument default_args.
4515 (add_alias_cmd):
4516 Add NULL for new default_args lookup_cmd argument.
4517 (print_help_for_command): Show default args under the layout
4518 alias some_alias = some_aliased_cmd some_alias_default_arg.
4519 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4520 xfree default_args in destructor.
4521 * cli/cli-script.c (process_next_line, do_define_command):
4522 Add NULL for new default_args lookup_cmd argument.
4523 * command.h: Declare new default_args argument in lookup_cmd
4524 and lookup_cmd_1.
4525 * completer.c (complete_line_internal_1):
4526 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4527 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4528 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4529 Likewise.
4530 * infcmd.c (_initialize_infcmd): Likewise.
4531 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4532 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4533 * python/py-param.c (add_setshow_generic): Likewise.
4534 * remote.c (_initialize_remote): Likewise.
4535 * top.c (execute_command): Prepend default_args if command has some.
4536 (set_verbose):
4537 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4538 * tracepoint.c (validate_actionline, encode_actions_1):
4539 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4540
bd920864
TBA
45412020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4542
4543 * jit.c (jit_read_descriptor): Use bool as the return type.
4544 (jit_breakpoint_re_set_internal): Use bool as the return type.
4545 Invert the return value logic; return true if the jit breakpoint
4546 has been successfully initialized.
4547 (jit_inferior_init): Update the call to
4548 jit_breakpoint_re_set_internal.
4549
f8098322
PA
45502020-06-22 Pedro Alves <palves@redhat.com>
4551
4552 PR gdb/25939
4553 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4554 Use the current inferior instead. Don't return
4555 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4556 wait again.
4557 * sol-thread.c (sol_thread_target::wait): Don't reference
4558 inferior_ptid.
4559 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4560 (sol_update_thread_list_callback): Use the current inferior's pid
4561 instead of inferior_ptid.
4562
196535a6
RO
45632020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4564
4565 * procfs.c: Cleanup many comments.
4566
4567 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4568 (AFTER_WATCHFLAG): Replace by value.
4569
4570 (MAIN_PROC_NAME_FORMAT): Inline ...
4571 (create_procinfo): ... here.
4572
4573 (procfs_debug_inferior): Remove SYS_exec handling.
4574 (syscall_is_exec): Likewise.
4575 (procfs_set_exec_trap): Likewise.
4576
4577 (syscall_is_lwp_exit): Inline in callers.
4578 (syscall_is_exit): Likewise.
4579 (syscall_is_exec): Likewise.
4580 (syscall_is_lwp_create): Likewise.
4581
4582 (invalidate_cache): Remove #if 0 code.
4583
4584 (make_signal_thread_runnable): Remove.
4585 (procfs_target::resume): Remove #if 0 code.
4586
cf6f3e86
RO
45872020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4588
4589 PR gdb/25939
4590 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4591 call ...
4592 (procfs_target::create_inferior): ... here.
4593
48e9cc84
PW
45942020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4595
4596 * exec.c (validate_exec_file): Ensure the build-id is up to
4597 date by calling reopen_exec_file (that checks file timestamp
4598 to decide to re-read the file).
4599
3922b302
PA
46002020-06-18 Pedro Alves <palves@redhat.com>
4601
4602 PR gdb/25412
4603 * gdbthread.h (delete_thread, delete_thread_silent)
4604 (find_thread_ptid): Update comments.
4605 * thread.c (current_thread_): New global.
4606 (is_current_thread): Move higher, and reimplement.
4607 (inferior_thread): Reimplement.
4608 (set_thread_exited): Use bool. Add assertions.
4609 (add_thread_silent): Simplify thread-reuse handling by always
4610 calling delete_thread.
4611 (delete_thread): Remove intro comment.
4612 (find_thread_ptid): Skip exited threads.
4613 (switch_to_thread_no_regs): Write to current_thread_.
4614 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4615 INFERIOR_PTID. Clear current_thread_.
4616
6dbdab44
PA
46172020-06-18 Pedro Alves <palves@redhat.com>
4618
4619 * aix-thread.c (pd_update): Use switch_to_thread.
4620
2da4b788
PA
46212020-06-18 Pedro Alves <palves@redhat.com>
4622
4623 * ravenscar-thread.c (ravenscar_thread_target): Update.
4624 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4625 (ravenscar_thread_target::add_active_thread): ... this. Don't
4626 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4627 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4628
50838d1b
PA
46292020-06-18 Pedro Alves <palves@redhat.com>
4630
4631 * nat/windows-nat.c (current_windows_thread): Remove.
4632 * nat/windows-nat.h (current_windows_thread): Remove.
4633 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4634 Adjust.
4635 (display_selectors): Adjust to fetch the current
4636 windows_thread_info based on inferior_ptid.
4637 (fake_create_process): No longer write to current_windows_thread.
4638 (windows_nat_target::get_windows_debug_event):
4639 Don't set inferior_ptid or current_windows_thread.
4640 (windows_nat_target::wait): Adjust to not rely on
4641 current_windows_thread.
4642 (do_initial_windows_stuff): Now a method of windows_nat_target.
4643 Switch to the last_ptid thread.
4644 (windows_nat_target::attach): Adjust.
4645 (windows_nat_target::detach): Use switch_to_no_thread instead of
4646 writing to inferior_ptid directly.
4647 (windows_nat_target::create_inferior): Adjust.
4648
31ce04e9
PA
46492020-06-18 Pedro Alves <palves@redhat.com>
4650
4651 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4652
1ee1a363
PA
46532020-06-18 Pedro Alves <palves@redhat.com>
4654
4655 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4656 after creating it, instead of writing to inferior_ptid. Don't
4657 write to inferior_ptid.
4658
6d350754
PA
46592020-06-18 Pedro Alves <palves@redhat.com>
4660
4661 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4662
5d971d48
PA
46632020-06-18 Pedro Alves <palves@redhat.com>
4664
4665 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4666 it, instead of writing to inferior_ptid.
4667
86e57d1b
PA
46682020-06-18 Pedro Alves <palves@redhat.com>
4669
4670 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4671 to inferior_ptid.
4672
f2e1c129
PA
46732020-06-18 Pedro Alves <palves@redhat.com>
4674
4675 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4676 instead of writing to inferior_ptid directly.
4677
60db1b85
PA
46782020-06-18 Pedro Alves <palves@redhat.com>
4679
4680 * corelow.c (core_target::close): Use switch_to_no_thread instead
4681 of writing to inferior_ptid directly.
4682 (add_to_thread_list, core_target_open): Use switch_to_thread
4683 instead of writing to inferior_ptid directly.
4684
fe7d6a8d
PA
46852020-06-18 Pedro Alves <palves@redhat.com>
4686
4687 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4688 inferior_ptid.
4689 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4690 inferior_ptid.
4691 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4692 inferior_ptid directly.
4693 (darwin_nat_target::init_thread_list): Switch to thread, instead
4694 of writing to inferior_ptid.
4695 (darwin_nat_target::attach): Don't write to inferior_ptid.
4696 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4697
975f8708
PA
46982020-06-18 Pedro Alves <palves@redhat.com>
4699
4700 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4701 thread.
4702 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4703 Instead use switch_to_thread.
4704 (gnu_nat_target::detach): Use switch_to_no_thread
4705 instead of writing to inferior_ptid directly. Used passed-in
4706 inferior instead of looking up the inferior by pid.
4707
1a204730
PA
47082020-06-18 Pedro Alves <palves@redhat.com>
4709
4710 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4711 inferior_ptid.
4712
ebe84f23
PA
47132020-06-18 Pedro Alves <palves@redhat.com>
4714
4715 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4716 inferior_ptid.
4717 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4718 thread.
4719 (nto_procfs_target::detach): Avoid referencing
4720 inferior_ptid. Use switch_to_no_thread instead of writing to
4721 inferior_ptid directly.
4722 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4723 instead of writing to inferior_ptid directly.
4724 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4725 to thread.
4726
191f02e5
PA
47272020-06-18 Pedro Alves <palves@redhat.com>
4728
4729 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4730 after creating it, instead of writing to inferior_ptid.
4731 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4732 to inferior_ptid directly.
4733 (gdbsim_target::wait): Don't write to inferior_ptid.
4734
0ac55310
PA
47352020-06-18 Pedro Alves <palves@redhat.com>
4736
4737 * remote.c (remote_target::remote_notice_new_inferior): Use
4738 switch_to_thread instead of writing to inferior_ptid directly.
4739 (remote_target::add_current_inferior_and_thread): Use
4740 switch_to_no_thread instead of writing to inferior_ptid directly.
4741 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4742 and switch_to_thread instead of using set_current_inferior or
4743 writing to inferior_ptid directly.
4744
5233f39b
PA
47452020-06-18 Pedro Alves <palves@redhat.com>
4746
4747 * tracectf.c (ctf_target_open): Switch to added thread instead of
4748 writing to inferior_ptid directly.
4749 (ctf_target::close): Use switch_to_no_thread instead of writing to
4750 inferior_ptid directly.
4751
087e161b
PA
47522020-06-18 Pedro Alves <palves@redhat.com>
4753
4754 * tracefile-tfile.c (tfile_target_open): Don't write to
4755 inferior_ptid directly, instead switch to added thread.
4756 (tfile_target::close): Use switch_to_no_thread instead of writing
4757 to inferior_ptid directly.
4758
7fb43e53
PA
47592020-06-18 Pedro Alves <palves@redhat.com>
4760
4761 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4762 (procfs_target::detach): Use switch_to_no_thread
4763 instead of writing to inferior_ptid directly.
4764 (do_attach): Change return type to void. Switch to the added
4765 thread.
4766 (procfs_target::create_inferior): Switch to the added thread.
4767 (procfs_do_thread_registers): Don't write to inferior_ptid.
4768
18493a00
PA
47692020-06-18 Pedro Alves <palves@redhat.com>
4770
4771 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4772 of writing to inferior_ptid.
4773 (scoped_restore_exited_inferior): Delete.
4774 (handle_vfork_child_exec_or_exit): Simplify using
4775 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4776 instead of writing to inferior_ptid.
4777 (THREAD_STOPPED_BY): Delete.
4778 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4779 (thread_stopped_by_hw_breakpoint): Delete.
4780 (save_waitstatus): Use
4781 scoped_restore_current_thread+switch_to_thread, and call
4782 target_stopped_by_watchpoint instead of
4783 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4784 instead of thread_stopped_by_sw_breakpoint, and
4785 target_stopped_by_hw_breakpoint instead of
4786 thread_stopped_by_hw_breakpoint.
4787 (handle_inferior_event)
4788 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4789 inferior_ptid directly, nor
4790 set_current_inferior/set_current_program_space. Use
4791 switch_to_thread / switch_to_inferior_no_thread instead.
4792
a0776b13
PA
47932020-06-18 Pedro Alves <palves@redhat.com>
4794
4795 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4796 instead of writing to inferior_ptid.
4797
6155c136
PA
47982020-06-18 Pedro Alves <palves@redhat.com>
4799
4800 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4801 added thread.
4802 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4803 to the added thread.
4804 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4805 instead of writing to inferior_ptid.
4806
c5316fc6
PA
48072020-06-18 Pedro Alves <palves@redhat.com>
4808
4809 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4810 (register_to_value_test): Mock a program_space too. Heap-allocate
4811 the address space. Don't write to inferior_ptid. Use
4812 switch_to_thread instead.
4813
8df01799
PA
48142020-06-18 Pedro Alves <palves@redhat.com>
4815
4816 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4817 Delete.
4818 (find_signalled_thread()): New, factored out from
4819 linux_make_corefile_notes and adjusted to handle exited threads.
4820 (linux_make_corefile_notes): Adjust to use the new
4821 find_signalled_thread.
4822
41792d68
PA
48232020-06-18 Pedro Alves <palves@redhat.com>
4824
4825 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4826 of saving/restoring inferior_ptid.
4827
612f258a
TT
48282020-06-17 Tom Tromey <tom@tromey.com>
4829
4830 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4831 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4832 declare.
4833 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4834
efb763a5
SM
48352020-06-15 Simon Marchi <simon.marchi@efficios.com>
4836
4837 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4838 of partial symtabs.
4839
2951f6c0
SM
48402020-06-17 Simon Marchi <simon.marchi@efficios.com>
4841
4842 * regformats/reg-arm.dat: Remove.
4843 * regformats/reg-bfin.dat: Remove.
4844 * regformats/reg-cris.dat: Remove.
4845 * regformats/reg-crisv32.dat: Remove.
4846 * regformats/reg-m32r.dat: Remove.
4847 * regformats/reg-tilegx.dat: Remove.
4848 * regformats/reg-tilegx32.dat: Remove.
4849
7d458ea5
SM
48502020-06-17 Simon Marchi <simon.marchi@efficios.com>
4851
4852 * features/Makefile (WHICH): Remove arm files.
4853 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4854 * regformats/arm/arm-with-neon.dat: Remove.
4855 * regformats/arm/arm-with-vfpv2.dat: Remove.
4856 * regformats/arm/arm-with-vfpv3.dat: Remove.
4857
3af96c0d
SM
48582020-06-17 Simon Marchi <simon.marchi@efficios.com>
4859
4860 * features/Makefile (XMLTOC): Remove rx.xml.
4861
b25e22fd
PA
48622020-06-17 Pedro Alves <palves@redhat.com>
4863
4864 * gdbthread.h (thread_control_state) <trap_expected> Update
4865 comments.
4866
a78a19b1
AB
48672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4868
4869 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4870 ada_language::lookup_symbol_nonlocal.
4871 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4872 (ada_language::lookup_symbol_nonlocal): New member function,
4873 implementation from ada_lookup_symbol_nonlocal.
4874 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4875 initializer.
4876 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4877 initializer.
4878 (cplus_language::lookup_symbol_nonlocal): New member function.
4879 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4880 (minimal_language_data) Likewise.
4881 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4882 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4883 initializer.
4884 (d_language::lookup_symbol_nonlocal): New member function.
4885 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4886 initializer.
4887 (f_language::lookup_symbol_nonlocal): New member function.
4888 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4889 initializer.
4890 * language.c (unknown_language_data): Likewise.
4891 (auto_language_data): Likewise.
4892 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4893 field.
4894 (language_defn::lookup_symbol_nonlocal): New member function.
4895 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4896 initializer.
4897 * objc-lang.c (objc_language_data): Likewise.
4898 * opencl-lang.c (opencl_language_data): Likewise.
4899 * p-lang.c (pascal_language_data): Likewise.
4900 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4901 rust_language::lookup_symbol_nonlocal.
4902 (rust_language_data): Delete la_lookup_symbol_nonlocal
4903 initializer.
4904 (rust_language::lookup_symbol_nonlocal): New member function,
4905 implementation from rust_lookup_symbol_nonlocal.
4906 * symtab.c (lookup_symbol_aux): Update call to
4907 lookup_symbol_nonlocal.
4908 (basic_lookup_symbol_nonlocal): Rename to...
4909 (language_defn::lookup_symbol_nonlocal): ...this, and update
4910 header comment. Remove language_defn parameter, and replace with
4911 uses of `this'.
4912 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4913
ebe2334e
AB
49142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4915
4916 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4917 initializer.
4918 (ada_language::value_print_inner): New member function.
4919 * c-lang.c (c_language_data): Delete la_value_print_inner
4920 initializer.
4921 (cplus_language_data): Likewise.
4922 (asm_language_data): Likewise.
4923 (minimal_language_data): Likewise.
4924 * d-lang.c (d_language_data): Likewise.
4925 (d_language::value_print_inner): New member function.
4926 * f-lang.c (f_language_data): Delete la_value_print_inner
4927 initializer.
4928 (f_language::value_print_inner): New member function.
4929 * f-lang.h (f_value_print_innner): Rename to...
4930 (f_value_print_inner): ...this (note spelling of 'inner').
4931 * f-valprint.c (f_value_print_innner): Rename to...
4932 (f_value_print_inner): ...this (note spelling of 'inner').
4933 * go-lang.c (go_language_data): Delete la_value_print_inner
4934 initializer.
4935 (go_language::value_print_inner): New member function.
4936 * language.c (language_defn::value_print_inner): Define new member
4937 function.
4938 (unk_lang_value_print_inner): Delete.
4939 (unknown_language_data): Delete la_value_print_inner initializer.
4940 (unknown_language::value_print_inner): New member function.
4941 (auto_language_data): Delete la_value_print_inner initializer.
4942 (auto_language::value_print_inner): New member function.
4943 * language.h (language_data): Delete la_value_print_inner field.
4944 (language_defn::value_print_inner): Delcare new member function.
4945 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4946 initializer.
4947 (m2_language::value_print_inner): New member function.
4948 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4949 initializer.
4950 * opencl-lang.c (opencl_language_data): Likewise.
4951 * p-lang.c (pascal_language_data): Likewise.
4952 (pascal_language::value_print_inner): New member function.
4953 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4954 initializer.
4955 (rust_language::value_print_inner): New member function.
4956 * valprint.c (do_val_print): Update call to value_print_inner.
4957
a1d1fa3e
AB
49582020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4959
4960 * ada-lang.c (ada_language_data): Delete la_value_print
4961 initializer.
4962 (ada_language::value_print): New member function.
4963 * c-lang.c (c_language_data): Delete la_value_print initializer.
4964 (cplus_language_data): Likewise.
4965 (asm_language_data): Likewise.
4966 (minimal_language_data): Likewise.
4967 * d-lang.c (d_language_data): Likewise.
4968 * f-lang.c (f_language_data): Likewise.
4969 * go-lang.c (go_language_data): Likewise.
4970 * language.c (unk_lang_value_print): Delete.
4971 (language_defn::value_print): Define new member function.
4972 (unknown_language_data): Delete la_value_print initializer.
4973 (unknown_language::value_print): New member function.
4974 (auto_language_data): Delete la_value_print initializer.
4975 (auto_language::value_print): New member function.
4976 * language.h (language_data): Delete la_value_print field.
4977 (language_defn::value_print): Declare new member function.
4978 (LA_VALUE_PRINT): Update call to value_print.
4979 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4980 * objc-lang.c (objc_language_data): Likewise.
4981 * opencl-lang.c (opencl_language_data): Likewise.
4982 * p-lang.c (pascal_language_data): Likewise.
4983 (pascal_language::value_print): New member function.
4984 * rust-lang.c (rust_language_data): Delete la_value_print
4985 initializer.
4986
f16a9f57
AB
49872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4988
4989 * ada-lang.c (ada_watch_location_expression): Rename to
4990 ada_language::watch_location_expression.
4991 (ada_language_data): Delete la_watch_location_expression
4992 initializer.
4993 (ada_language::watch_location_expression): New member function,
4994 implementation from ada_watch_location_expression.
4995 * breakpoint.c (watch_command_1): Update call to
4996 watch_location_expression.
4997 * c-lang.c (c_watch_location_expression): Rename to
4998 language_defn::watch_location_expression.
4999 (c_language_data): Delete la_watch_location_expression
5000 initializer.
5001 (cplus_language_data): Likewise.
5002 (asm_language_data): Likewise.
5003 (minimal_language_data): Likewise.
5004 * c-lang.h (c_watch_location_expression): Delete declaration.
5005 * d-lang.c (d_language_data): Delete la_watch_location_expression
5006 initializer.
5007 * f-lang.c (f_language_data): Likewise.
5008 * go-lang.c (go_language_data): Likewise.
5009 * language.c (language_defn::watch_location_expression): Member
5010 function implementation from c_watch_location_expression.
5011 (unknown_language_data): Delete la_watch_location_expression
5012 initializer.
5013 (auto_language_data): Likewise.
5014 * language.h (language_data): Delete la_watch_location_expression
5015 field.
5016 (language_defn::watch_location_expression): Declare new member
5017 function.
5018 * m2-lang.c (m2_language_data): Delete
5019 la_watch_location_expression initializer.
5020 * objc-lang.c (objc_language_data): Likewise.
5021 * opencl-lang.c (opencl_language_data): Likewise.
5022 * p-lang.c (pascal_language_data): Likewise.
5023 * rust-lang.c (rust_watch_location_expression): Rename to
5024 rust_language::watch_location_expression.
5025 (rust_language_data): Delete la_watch_location_expression
5026 initializer.
5027 (rust_language::watch_location_expression): New member function,
5028 implementation from rust_watch_location_expression.
5029
7e56227d
AB
50302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5031
5032 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5033 ada_language::collect_symbol_completion_matches.
5034 (ada_language_data): Delete la_collect_symbol_completion_matches
5035 initializer.
5036 (ada_language::collect_symbol_completion_matches): New member
5037 function, implementation from
5038 ada_collect_symbol_completion_matches.
5039 * c-lang.c (c_language_data): Delete
5040 la_collect_symbol_completion_matches initializer.
5041 (cplus_language_data): Likewise.
5042 (asm_language_data): Likewise.
5043 (minimal_language_data): Likewise.
5044 * d-lang.c (d_language_data): Likewise.
5045 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5046 f_language::collect_symbol_completion_matches.
5047 (f_language_data): Delete la_collect_symbol_completion_matches
5048 initializer.
5049 (f_language::collect_symbol_completion_matches) New member
5050 function, implementation from f_collect_symbol_completion_matches.
5051 * go-lang.c (go_language_data): Delete
5052 la_collect_symbol_completion_matches initializer.
5053 * language.c (unknown_language_data): Likewise.
5054 (auto_language_data): Likewise.
5055 * language.h (language_data): Delete
5056 la_collect_symbol_completion_matches field.
5057 (language_defn::collect_symbol_completion_matches): New member
5058 function.
5059 * m2-lang.c (m2_language_data): Delete
5060 la_collect_symbol_completion_matches initializer.
5061 * objc-lang.c (objc_language_data): Likewise.
5062 * opencl-lang.c (opencl_language_data): Likewise.
5063 * p-lang.c (pascal_language_data): Likewise.
5064 * rust-lang.c (rust_language_data): Likewise.
5065 * symtab.c (default_collect_symbol_completion_matches): Delete.
5066 (collect_symbol_completion_matches): Update call to
5067 collect_symbol_completion_matches.
5068 (collect_symbol_completion_matches_type): Likewise.
5069 * symtab.h (default_collect_symbol_completion_matches): Delete
5070 declaration.
5071
53fc67f8
AB
50722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5073
5074 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5075 (ada_language_data): Delete la_word_break_characters initializer.
5076 (ada_language::word_break_characters): New member function.
5077 * c-lang.c (c_language_data): Delete la_word_break_characters
5078 initializer.
5079 (cplus_language_data): Likewise.
5080 (asm_language_data): Likewise.
5081 (minimal_language_data): Likewise.
5082 * completer.c: Update global comment.
5083 (advance_to_expression_complete_word_point): Update call to
5084 word_break_characters.
5085 (complete_files_symbols): Likewise.
5086 (complete_line_internal_1): Likewise.
5087 (default_completer_handle_brkchars): Likewise.
5088 (skip_quoted_chars): Likewise.
5089 * d-lang.c (d_language_data): Delete la_word_break_characters
5090 initializer.
5091 * f-lang.c (f_word_break_characters): Delete.
5092 (f_language_data): Delete la_word_break_characters initializer.
5093 (f_language::word_break_characters): New member function.
5094 * go-lang.c (go_language_data): Delete la_word_break_characters
5095 initializer.
5096 * language.c (unknown_language_data): Likewise.
5097 (auto_language_data): Likewise.
5098 * language.h (default_word_break_characters): Move declaration to
5099 earlier in the file.
5100 (language_data): Delete la_word_break_characters field.
5101 (language_defn::word_break_characters): New member function.
5102 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5103 initializer.
5104 * objc-lang.c (objc_language_data): Likewise.
5105 * opencl-lang.c (opencl_language_data): Likewise.
5106 * p-lang.c (pascal_language_data): Likewise.
5107 * rust-lang.c (rust_language_data): Likewise.
5108
c9debfb9
AB
51092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5110
5111 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5112 (ada_language_data): Delete la_get_symbol_name_matcher
5113 initializer.
5114 (language_defn::get_symbol_name_matcher_inner): New member
5115 function.
5116 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5117 initializer.
5118 (cplus_language_data): Likewise.
5119 (cplus_language::get_symbol_name_matcher_inner): New member
5120 function.
5121 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5122 (minimal_language_data): Likewise.
5123 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5124 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5125 initializer.
5126 * dictionary.c (iter_match_first_hashed): Update call to
5127 get_symbol_name_matcher.
5128 (iter_match_next_hashed): Likewise.
5129 (iter_match_next_linear): Likewise.
5130 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5131 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5132 initializer.
5133 (f_language::get_symbol_name_matcher_inner): New member function.
5134 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5135 initializer.
5136 * language.c (default_symbol_name_matcher): Update header comment,
5137 make static.
5138 (language_defn::get_symbol_name_matcher): New definition.
5139 (language_defn::get_symbol_name_matcher_inner): Likewise.
5140 (get_symbol_name_matcher): Delete.
5141 (unknown_language_data): Delete la_get_symbol_name_matcher
5142 initializer.
5143 (auto_language_data): Likewise.
5144 * language.h (language_data): Delete la_get_symbol_name_matcher
5145 field.
5146 (language_defn::get_symbol_name_matcher): New member function.
5147 (language_defn::get_symbol_name_matcher_inner): Likewise.
5148 (default_symbol_name_matcher): Delete declaration.
5149 * linespec.c (find_methods): Update call to
5150 get_symbol_name_matcher.
5151 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5152 initializer.
5153 * minsyms.c (lookup_minimal_symbol): Update call to
5154 get_symbol_name_matcher.
5155 (iterate_over_minimal_symbols): Likewise.
5156 * objc-lang.c (objc_language_data): Delete
5157 la_get_symbol_name_matcher initializer.
5158 * opencl-lang.c (opencl_language_data): Likewise.
5159 * p-lang.c (pascal_language_data): Likewise.
5160 * psymtab.c (psymbol_name_matches): Update call to
5161 get_symbol_name_matcher.
5162 * rust-lang.c (rust_language_data): Delete
5163 la_get_symbol_name_matcher initializer.
5164 * symtab.c (symbol_matches_search_name): Update call to
5165 get_symbol_name_matcher.
5166 (compare_symbol_name): Likewise.
5167
9a49ad8c
AB
51682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5169
5170 * ada-lang.c (ada_language_data): Delete la_compute_program
5171 initializer.
5172 * c-lang.c (c_language_data): Likewise.
5173 (c_language::compute_program): New member function.
5174 (cplus_language_data): Delete la_compute_program initializer.
5175 (cplus_language::compute_program): New member function.
5176 (asm_language_data): Delete la_compute_program initializer.
5177 (minimal_language_data): Likewise.
5178 * c-lang.h (c_compute_program): Update comment.
5179 (cplus_compute_program): Likewise.
5180 * compile/compile-c-support.c (c_compute_program): Likewise.
5181 (cplus_compute_program): Likewise.
5182 * compile/compile.c (compile_to_object): Update call to
5183 la_compute_program.
5184 * d-lang.c (d_language_data): Delete la_compute_program
5185 initializer.
5186 * f-lang.c (f_language_data): Likewise.
5187 * go-lang.c (go_language_data): Likewise.
5188 * language.c (unknown_language_data): Likewise.
5189 (auto_language_data): Likewise.
5190 * language.h (language_data): Delete la_compute_program field.
5191 (language_defn::compute_program): New member function.
5192 * m2-lang.c (m2_language_data): Delete la_compute_program
5193 initializer.
5194 * objc-lang.c (objc_language_data): Likewise.
5195 * opencl-lang.c (opencl_language_data): Likewise.
5196 * p-lang.c (pascal_language_data): Likewise.
5197 * rust-lang.c (rust_language_data): Likewise.
5198
eff93b4d
AB
51992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5200
5201 * ada-lang.c (ada_language_data) Delete
5202 la_class_name_from_physname initializer.
5203 * c-lang.c (c_language_data): Likewise.
5204 (cplus_language_data): Likewise.
5205 (cplus_language::class_name_from_physname): New member function.
5206 (asm_language_data): Delete la_class_name_from_physname
5207 initializer.
5208 (minimal_language_data): Likewise.
5209 * d-lang.c (d_language_data): Likewise.
5210 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5211 method on language_defn class.
5212 (guess_full_die_structure_name): Likewise.
5213 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5214 initializer.
5215 * go-lang.c (go_language_data): Likewise.
5216 * language.c (language_class_name_from_physname): Delete.
5217 (unk_lang_class_name): Delete.
5218 (unknown_language_data): Delete la_class_name_from_physname
5219 initializer.
5220 (auto_language_data): Likewise.
5221 * language.h (language_data): Delete la_class_name_from_physname
5222 field.
5223 (language_defn::class_name_from_physname): New function.
5224 (language_class_name_from_physname): Delete declaration.
5225 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5226 initializer.
5227 * objc-lang.c (objc_language_data): Likewise.
5228 * opencl-lang.c (opencl_language_data): Likewise.
5229 * p-lang.c (pascal_language_data): Likewise.
5230 * rust-lang.c (rust_language_data): Likewise.
5231
de543742
TT
52322020-06-16 Tom Tromey <tom@tromey.com>
5233
5234 * tui/tui-data.h (STATUS_NAME): New macro.
5235 * tui/tui-layout.c (tui_remove_some_windows)
5236 (initialize_known_windows, tui_register_window)
5237 (tui_layout_split::remove_windows, initialize_layouts)
5238 (tui_new_layout_command): Don't use hard-coded window names.
5239
a350efd4
TT
52402020-06-16 Tom Tromey <tom@tromey.com>
5241
5242 PR tui/25348:
5243 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5244 tui_initialize_readline. Only run once. Call rl_initialize.
5245 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5246 tui_initialize_readline.
5247 * tui/tui-io.c (tui_setup_io): Call
5248 tui_ensure_readline_initialized.
5249 * tui/tui-interp.c (tui_interp::init): Update.
5250
39ec0490
TT
52512020-06-16 Tom Tromey <tom@tromey.com>
5252
5253 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5254 Also preserve the status window.
5255
d2d1ea20
TT
52562020-06-16 Tom Tromey <tom@tromey.com>
5257
5258 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5259 where m_window==nullptr.
5260
66920317
TT
52612020-06-15 Tom Tromey <tromey@adacore.com>
5262
5263 * windows-nat.c (windows_nat::handle_output_debug_string):
5264 Update.
5265 (windows_nat::handle_ms_vc_exception): Update.
5266 * target.h (target_read_string): Change API.
5267 * target.c (target_read_string): Change API.
5268 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5269 Update.
5270 * solib-frv.c (frv_current_sos): Update.
5271 * solib-dsbt.c (dsbt_current_sos): Update.
5272 * solib-darwin.c (darwin_current_sos): Update.
5273 * linux-thread-db.c (inferior_has_bug): Update.
5274 * expprint.c (print_subexp_standard): Update.
5275 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5276 (ada_exception_message_1): Update.
5277
a5d871dd
TT
52782020-06-15 Tom Tromey <tromey@adacore.com>
5279
5280 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5281
670e35fa
TT
52822020-06-15 Tom Tromey <tromey@adacore.com>
5283
5284 * valprint.c (read_string): Update comment.
5285 * target.c (MIN): Remove.
5286 (target_read_string): Rewrite.
5287
f5272a3b
TT
52882020-06-15 Tom Tromey <tromey@adacore.com>
5289
5290 * corefile.c (read_memory_string): Remove.
5291 * ada-valprint.c (ada_value_print_ptr): Update.
5292 * ada-lang.h (ada_tag_name): Change return type.
5293 * ada-lang.c (type_from_tag): Update.
5294 (ada_tag_name_from_tsd): Change return type. Use
5295 target_read_string.
5296 (ada_tag_name): Likewise.
5297 * gdbcore.h (read_memory_string): Don't declare.
5298
2c074f49
HD
52992020-06-14 Hannes Domani <ssbssa@yahoo.de>
5300
5301 * symtab.c (rbreak_command): Ignore Windows drive colon.
5302
6a17d503
SM
53032020-06-12 Simon Marchi <simon.marchi@efficios.com>
5304
5305 * NEWS: Mention removed GDBserver host support.
5306
453c733f
NC
53072020-06-12 Nelson Chu <nelson.chu@sifive.com>
5308
5309 * features/riscv/rebuild-csr-xml.sh: Updated.
5310
2b4e6a3f
TT
53112020-06-11 Tom Tromey <tom@tromey.com>
5312
5313 PR gdb/18318:
5314 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5315
4412332f
JG
53162020-06-09 Jonny Grant <jg@jguk.org>
53172020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5318
5319 * main.c (captured_main_1): Don't print new line after help.
5320 (print_gdb_help): add mailing list and IRC channel information
5321 to --help. Add new lines between items in the footer. Remove
5322 quotes around bug url.
5323
2f33032a
KS
53242020-06-11 Keith Seitz <keiths@redhat.com>
5325
5326 PR gdb/21356
5327 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5328 Resolve typedefs for type length calculations.
5329
7ab96794
TV
53302020-06-10 Tom de Vries <tdevries@suse.de>
5331
5332 PR ada/24713
5333 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5334 (write_psymbols): Enable .gdb_index for ada.
5335 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5336 ada.
5337
e5f3ece2
TV
53382020-06-10 Tom de Vries <tdevries@suse.de>
5339
5340 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5341 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5342 namei" instead of "const char *name" argument.
5343 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5344 dw2_symtab_iter_init.
5345
940da03e
SM
53462020-06-08 Simon Marchi <simon.marchi@efficios.com>
5347
5348 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5349 to use type::field and field::type instead.
5350
b6cdac4b
SM
53512020-06-08 Simon Marchi <simon.marchi@efficios.com>
5352
5353 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5354 to use field::type instead.
5355
5d14b6e5
SM
53562020-06-08 Simon Marchi <simon.marchi@efficios.com>
5357
5358 * gdbtypes.h (struct field) <type, set_type>: New methods.
5359 Rename `type` field to...
5360 <m_type>: ... this. Change references throughout to use type or
5361 set_type methods.
5362 (FIELD_TYPE): Use field::type. Change call sites that modify
5363 the field's type to use field::set_type instead.
5364
3d967001
SM
53652020-06-08 Simon Marchi <simon.marchi@efficios.com>
5366
5367 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5368 to use type::index_type instead.
5369
262abc0d
SM
53702020-06-08 Simon Marchi <simon.marchi@efficios.com>
5371
5372 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5373 methods.
5374 (TYPE_INDEX_TYPE): Use type::index_type.
5375 * gdbtypes.c (create_array_type_with_stride): Likewise.
5376
82836c92
TT
53772020-06-07 Tom Tromey <tom@tromey.com>
5378
5379 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5380 parameter.
5381 (generic_value_print): Update.
5382
940dace9
AB
53832020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5384
5385 Revert commit 982a38f60b0.
5386 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5387
982a38f6
AB
53882020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5389
5390 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5391 avoid use after free.
5392
82f06518
TV
53932020-06-05 Tom de Vries <tdevries@suse.de>
5394
5395 * NEWS: Fix typos.
5396
f8c41851
SM
53972020-06-04 Simon Marchi <simon.marchi@efficios.com>
5398
5399 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5400 the per_bfd object.
5401 (dwarf2_read_debug_names): Likewise.
5402 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5403 object when re-using a per_bfd object with an index.
5404
f9b5d5ea
TV
54052020-06-03 Tom de Vries <tdevries@suse.de>
5406
5407 PR symtab/26046
5408 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5409 children for C++.
5410 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5411 DW_TAG_subprogram.
5412
f6eee2d0
AB
54132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5414
5415 * ada-lang.c (ada_language_data): Delete skip_trampoline
5416 initializer.
5417 * c-lang.c (c_language_data): Likewise.
5418 (cplus_language_data): Likewise.
5419 (cplus_language::skip_trampoline): New member function.
5420 (asm_language_data): Delete skip_trampoline initializer.
5421 (minimal_language_data): Likewise.
5422 * d-lang.c (d_language_data): Likewise.
5423 * f-lang.c (f_language_data): Likewise.
5424 * go-lang.c (go_language_data): Likewise.
5425 * language.c (unk_lang_trampoline): Delete function.
5426 (skip_language_trampoline): Update.
5427 (unknown_language_data): Delete skip_trampoline initializer.
5428 (auto_language_data): Likewise.
5429 * language.h (language_data): Delete skip_trampoline field.
5430 (language_defn::skip_trampoline): New function.
5431 * m2-lang.c (m2_language_data): Delete skip_trampoline
5432 initializer.
5433 * objc-lang.c (objc_skip_trampoline): Delete function, move
5434 implementation to objc_language::skip_trampoline.
5435 (objc_language_data): Delete skip_trampoline initializer.
5436 (objc_language::skip_trampoline): New member function with
5437 implementation from objc_skip_trampoline.
5438 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5439 initializer.
5440 * p-lang.c (pascal_language_data): Likewise.
5441 * rust-lang.c (rust_language_data): Likewise.
5442
0a50df5d
AB
54432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5444
5445 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5446 (ada_language::demangle): New member function.
5447 * c-lang.c (c_language_data): Delete la_demangle initializer.
5448 (cplus_language_data): Delete la_demangle initializer.
5449 (cplus_language::demangle): New member function.
5450 (asm_language_data): Delete la_demangle initializer.
5451 (minimal_language_data): Delete la_demangle initializer.
5452 * d-lang.c (d_language_data): Delete la_demangle initializer.
5453 (d_language::demangle): New member function.
5454 * f-lang.c (f_language_data): Delete la_demangle initializer.
5455 (f_language::demangle): New member function.
5456 * go-lang.c (go_language_data): Delete la_demangle initializer.
5457 (go_language::demangle): New member function.
5458 * language.c (language_demangle): Update.
5459 (unk_lang_demangle): Delete.
5460 (unknown_language_data): Delete la_demangle initializer.
5461 (unknown_language::demangle): New member function.
5462 (auto_language_data): Delete la_demangle initializer.
5463 (auto_language::demangle): New member function.
5464 * language.h (language_data): Delete la_demangle field.
5465 (language_defn::demangle): New function.
5466 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5467 * objc-lang.c (objc_language_data): Delete la_demangle
5468 initializer.
5469 (objc_language::demangle): New member function.
5470 * opencl-lang.c (opencl_language_data): Delete la_demangle
5471 initializer.
5472 * p-lang.c (pascal_language_data): Likewise.
5473 * rust-lang.c (rust_language_data): Likewise.
5474 (rust_language::demangle): New member function.
5475
fbfb0a46
AB
54762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5477
5478 * ada-lang.c (ada_language_data): Delete la_print_type
5479 initializer.
5480 (ada_language::print_type): New member function.
5481 * c-lang.c (c_language_data): Delete la_print_type initializer.
5482 (c_language::print_type): New member function.
5483 (cplus_language_data): Delete la_print_type initializer.
5484 (cplus_language::print_type): New member function.
5485 (asm_language_data): Delete la_print_type initializer.
5486 (asm_language::print_type): New member function.
5487 (minimal_language_data): Delete la_print_type initializer.
5488 (minimal_language::print_type): New member function.
5489 * d-lang.c (d_language_data): Delete la_print_type initializer.
5490 (d_language::print_type): New member function.
5491 * f-lang.c (f_language_data): Delete la_print_type initializer.
5492 (f_language::print_type): New member function.
5493 * go-lang.c (go_language_data): Delete la_print_type initializer.
5494 (go_language::print_type): New member function.
5495 * language.c (unk_lang_print_type): Delete.
5496 (unknown_language_data): Delete la_print_type initializer.
5497 (unknown_language::print_type): New member function.
5498 (auto_language_data): Delete la_print_type initializer.
5499 (auto_language::print_type): New member function.
5500 * language.h (language_data): Delete la_print_type field.
5501 (language_defn::print_type): New function.
5502 (LA_PRINT_TYPE): Update.
5503 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5504 (m2_language::print_type): New member function.
5505 * objc-lang.c (objc_language_data): Delete la_print_type
5506 initializer.
5507 (objc_language::print_type): New member function.
5508 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5509 to opencl_language::print_type.
5510 (opencl_language_data): Delete la_print_type initializer.
5511 (opencl_language::print_type): New member function, implementation
5512 from opencl_print_type.
5513 * p-lang.c (pascal_language_data): Delete la_print_type
5514 initializer.
5515 (pascal_language::print_type): New member function.
5516 * rust-lang.c (rust_print_type): Delete, implementation moved to
5517 rust_language::print_type.
5518 (rust_language_data): Delete la_print_type initializer.
5519 (rust_language::print_type): New member function, implementation
5520 from rust_print_type.
5521
6f827019
AB
55222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5523
5524 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5525 implementation moves to...
5526 (ada_language::sniff_from_mangled_name): ...here. Update return
5527 type.
5528 (ada_language_data): Delete la_sniff_from_mangled_name
5529 initializer.
5530 * c-lang.c (c_language_data): Likewise.
5531 (cplus_language_data): Likewise.
5532 (cplus_language::sniff_from_mangled_name): New member function,
5533 implementation taken from gdb_sniff_from_mangled_name.
5534 (asm_language_data): Delete la_sniff_from_mangled_name
5535 initializer.
5536 (minimal_language_data): Likewise.
5537 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5538 implementation moves to cplus_language::sniff_from_mangled_name.
5539 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5540 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5541 moves to...
5542 (d_language::sniff_from_mangled_name): ...here.
5543 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5544 * f-lang.c (f_language_data): Likewise.
5545 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5546 moves to...
5547 (go_language::sniff_from_mangled_name): ...here.
5548 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5549 * language.c (language_sniff_from_mangled_name): Delete.
5550 (unknown_language_data): Delete la_sniff_from_mangled_name
5551 initializer.
5552 (auto_language_data): Likewise.
5553 * language.h (language_data): Delete la_sniff_from_mangled_name
5554 field.
5555 (language_defn::sniff_from_mangled_name): New function.
5556 (language_sniff_from_mangled_name): Delete declaration.
5557 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5558 field.
5559 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5560 implementation moves to...
5561 (objc_language::sniff_from_mangled_name): ...here.
5562 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5563 * opencl-lang.c (opencl_language_data): Likewise.
5564 * p-lang.c (pascal_language_data): Likewise.
5565 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5566 implementation moves to...
5567 (rust_language::sniff_from_mangled_name): ...here.
5568 (rust_language_data): Delete la_sniff_from_mangled_name
5569 initializer.
5570 * symtab.c (symbol_find_demangled_name): Call
5571 sniff_from_mangled_name member function.
5572
fb8006fd
AB
55732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5574
5575 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5576 initializer.
5577 * c-lang.c (c_language_data): Likewise.
5578 (cplus_language_data): Likewise.
5579 (cplus_language::search_name_hash): New member function.
5580 (asm_language_data): Delete la_search_name_hash initializer.
5581 (minimal_language_data): Likewise.
5582 * d-lang.c (d_language_data): Likewise.
5583 * dictionary.c (default_search_name_hash): Rename to...
5584 (language_defn::search_name_hash): ...this.
5585 * f-lang.c (f_language_data): Likewise.
5586 (f_language::search_name_hash): New member function.
5587 * go-lang.c (go_language_data): Delete la_search_name_hash
5588 initializer.
5589 * language.c (unknown_language_data): Likewise.
5590 (auto_language_data): Likewise.
5591 * language.h (struct language_data): Delete la_search_name_hash
5592 field.
5593 (language_defn::search_name_hash): Declare new member function.
5594 (default_search_name_hash): Delete declaration.
5595 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5596 initializer.
5597 * objc-lang.c (objc_language_data): Likewise.
5598 * opencl-lang.c (opencl_language_data): Likewise.
5599 * p-lang.c (pascal_language_data): Likewise.
5600 * rust-lang.c (rust_language_data): Likewise.
5601 * symtab.c (search_name_hash): Update call.
5602
8e25bafe
AB
56032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5604
5605 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5606 initializer.
5607 * c-lang.c (class compile_instance): Declare.
5608 (c_language_data): Delete la_get_compile_instance initializer.
5609 (c_language::get_compile_instance): New member function.
5610 (cplus_language_data): Delete la_get_compile_instance initializer.
5611 (cplus_language::get_compile_instance): New member function.
5612 (asm_language_data): Delete la_get_compile_instance initializer.
5613 (minimal_language_data): Likewise.
5614 * c-lang.h (c_get_compile_context): Update comment.
5615 (cplus_get_compile_context): Update comment.
5616 * compile/compile.c (compile_to_object): Update calls, don't rely
5617 on function pointer being NULL.
5618 * d-lang.c (d_language_data): Delete la_get_compile_instance
5619 initializer.
5620 * f-lang.c (f_language_data): Likewise.
5621 * go-lang.c (go_language_data): Likewise.
5622 * language.c (unknown_language_data): Likewise.
5623 (auto_language_data): Likewise.
5624 * language.h (language_data): Delete la_get_compile_instance field.
5625 (language_defn::get_compile_instance): New member function.
5626 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5627 initializer.
5628 * objc-lang.c (objc_language_data): Likewise.
5629 * opencl-lang.c (opencl_language_data): Likewise.
5630 * p-lang.c (pascal_language_data): Likewise.
5631 * rust-lang.c (rust_language_data): Likewise.
5632
4009ee92
AB
56332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5634
5635 * ada-lang.c (ada_add_all_symbols): Update comment.
5636 (ada_iterate_over_symbols): Delete, move implementation to...
5637 (ada_language::iterate_over_symbols): ...here, a new member
5638 function, rewrite to use range based for loop.
5639 (ada_language_data): Delete la_iterate_over_symbols initializer.
5640 * c-lang.c (c_language_data): Likewise.
5641 (cplus_language_data): Likewise.
5642 (asm_language_data): Likewise.
5643 (minimal_language_data): Likewise.
5644 * d-lang.c (d_language_data): Likewise.
5645 * f-lang.c (f_language_data): Likewise.
5646 * go-lang.c (go_language_data): Likewise.
5647 * language.c (unknown_language_data): Likewise.
5648 (auto_language_data): Likewise.
5649 * language.h (language_data): Delete la_iterate_over_symbols field.
5650 (language_defn::iterate_over_symbols): New member function.
5651 (LA_ITERATE_OVER_SYMBOLS): Update.
5652 * linespec.c (iterate_over_all_matching_symtabs): Update.
5653 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5654 initializer.
5655 * objc-lang.c (objc_language_data): Likewise.
5656 * opencl-lang.c (opencl_language_data): Likewise.
5657 * p-lang.c (pascal_language_data): Likewise.
5658 * rust-lang.c (rust_language_data): Likewise.
5659
54f4ca46
AB
56602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5661
5662 * ada-lang.c (ada_language_data): Delete
5663 la_lookup_transparent_type initializer.
5664 * c-lang.c (c_language_data): Likewise.
5665 (cplus_language_data): Likewise.
5666 (cplus_language::lookup_transparent_type): New member function.
5667 (asm_language_data): Delete la_lookup_transparent_type
5668 initializer.
5669 (minimal_language_data): Likewise.
5670 * d-lang.c (d_language_data): Likewise.
5671 * f-lang.c (f_language_data): Likewise.
5672 * go-lang.c (go_language_data): Likewise.
5673 * language.c (unknown_language_data): Likewise.
5674 (auto_language_data): Likewise.
5675 * language.h (struct language_data): Delete
5676 la_lookup_transparent_type field.
5677 (language_defn::lookup_transparent_type): New member function.
5678 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5679 initializer.
5680 * objc-lang.c (objc_language_data): Likewise.
5681 * opencl-lang.c (opencl_language_data): Likewise.
5682 * p-lang.c (pascal_language_data): Likewise.
5683 * rust-lang.c (rust_language_data): Likewise.
5684 * symtab.c (symbol_matches_domain): Update call.
5685
1fb314aa
AB
56862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5687
5688 * ada-lang.c (ada_language_arch_info): Delete function, move
5689 implementation to...
5690 (ada_language::language_arch_info): ...here, a new member
5691 function.
5692 (ada_language_data): Delete la_language_arch_info.
5693 * c-lang.c (c_language_data): Likewise.
5694 (c_language::language_arch_info): New member function.
5695 (cplus_language_arch_info): Delete function, move
5696 implementation to...
5697 (cplus_language::language_arch_info): ...here, a new member
5698 function.
5699 (cplus_language_data): Delete la_language_arch_info.
5700 (asm_language_data): Likewise.
5701 (asm_language::language_arch_info): New member function.
5702 (minimal_language_data): Delete la_language_arch_info.
5703 (minimal_language::language_arch_info): New member function.
5704 * d-lang.c (d_language_arch_info): Delete function, move
5705 implementation to...
5706 (d_language::language_arch_info): ...here, a new member
5707 function.
5708 (d_language_data): Delete la_language_arch_info.
5709 * f-lang.c (f_language_arch_info): Delete function, move
5710 implementation to...
5711 (f_language::language_arch_info): ...here, a new member
5712 function.
5713 (f_language_data): Delete la_language_arch_info.
5714 * go-lang.c (go_language_arch_info): Delete function, move
5715 implementation to...
5716 (go_language::language_arch_info): ...here, a new member
5717 function.
5718 (go_language_data): Delete la_language_arch_info.
5719 * language.c (unknown_language_data): Likewise.
5720 (unknown_language::language_arch_info): New member function.
5721 (auto_language_data): Delete la_language_arch_info.
5722 (auto_language::language_arch_info): New member function.
5723 (language_gdbarch_post_init): Update call to
5724 la_language_arch_info.
5725 * language.h (language_data): Delete la_language_arch_info
5726 function pointer.
5727 (language_defn::language_arch_info): New function.
5728 * m2-lang.c (m2_language_arch_info): Delete function, move
5729 implementation to...
5730 (m2_language::language_arch_info): ...here, a new member
5731 function.
5732 (m2_language_data): Delete la_language_arch_info.
5733 * objc-lang.c (objc_language_arch_info): Delete function, move
5734 implementation to...
5735 (objc_language::language_arch_info): ...here, a new member
5736 function.
5737 (objc_language_data): Delete la_language_arch_info.
5738 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5739 implementation to...
5740 (opencl_language::language_arch_info): ...here, a new member
5741 function.
5742 (opencl_language_data): Delete la_language_arch_info.
5743 * p-lang.c (pascal_language_arch_info): Delete function, move
5744 implementation to...
5745 (pascal_language::language_arch_info): ...here, a new member
5746 function.
5747 (pascal_language_data): Delete la_language_arch_info.
5748 * rust-lang.c (rust_language_arch_info): Delete function, move
5749 implementation to...
5750 (rust_language::language_arch_info): ...here, a new member
5751 function.
5752 (rust_language_data): Delete la_language_arch_info.
5753
48448202
AB
57542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5755
5756 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5757 initializer.
5758 * c-lang.c (c_language_data): Likewise.
5759 (cplus_language_data): Likewise.
5760 (cplus_language::pass_by_reference_info): New method.
5761 (asm_language_data): Delete la_pass_by_reference initializer.
5762 (minimal_language_data): Likewise.
5763 * cp-abi.c (cp_pass_by_reference): Remove use of
5764 default_pass_by_reference.
5765 * d-lang.c (d_language_data): Likewise.
5766 * f-lang.c (f_language_data): Likewise.
5767 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5768 default_pass_by_reference.
5769 * go-lang.c (go_language_data): Likewise.
5770 * language.c (language_pass_by_reference): Update.
5771 (default_pass_by_reference): Delete.
5772 (unknown_language_data): Delete la_pass_by_reference
5773 initializer.
5774 (auto_language_data): Likewise.
5775 * language.h (struct language_data): Delete la_pass_by_reference
5776 field.
5777 (language_defn::pass_by_reference_info): New member function.
5778 (default_pass_by_reference): Delete declaration.
5779 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5780 initializer.
5781 * objc-lang.c (objc_language_data): Likewise.
5782 * opencl-lang.c (opencl_language_data): Likewise.
5783 * p-lang.c (pascal_language_data): Likewise.
5784 * rust-lang.c (rust_language_data): Likewise.
5785
15e5fd35
AB
57862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5787
5788 * ada-lang.c (ada_read_var_value): Delete function, move
5789 implementation to...
5790 (ada_language::read_var_value): ...here.
5791 (ada_language_data): Delete la_read_var_value initializer.
5792 * c-lang.c (c_language_data): Likewise.
5793 (cplus_language_data): Likewise.
5794 (minimal_language_data): Likewise.
5795 * d-lang.c (d_language_data): Likewise.
5796 * f-lang.c (f_language_data): Likewise.
5797 * findvar.c (default_read_var_value): Rename to...
5798 (language_defn::read_var_value): ...this.
5799 * findvar.c (read_var_value): Update header comment, and change to
5800 call member function instead of function pointer.
5801 * go-lang.c (go_language_data): Likewise.
5802 * language.c (unknown_language_data): Delete la_read_var_value
5803 initializer.
5804 (auto_language_data): Likewise.
5805 * language.h (struct language_data): Delete la_read_var_value
5806 field.
5807 (language_defn::read_var_value): New member function.
5808 (default_read_var_value): Delete declaration.
5809 * m2-lang.c (m2_language_data): Delete la_read_var_value
5810 initializer.
5811 * objc-lang.c (objc_language_data): Likewise.
5812 * opencl-lang.c (opencl_language_data): Likewise.
5813 * p-lang.c (pascal_language_data): Likewise.
5814 * rust-lang.c (rust_language_data): Likewise.
5815 * value.h (default_read_var_value): Delete declaration.
5816
5bd40f2a
AB
58172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5818
5819 * ada-lang.c (ada_print_array_index): Delete function, move
5820 implementation to...
5821 (ada_language::print_array_index): ...here.
5822 (ada_language_data): Delete la_print_array_index initializer.
5823 * c-lang.c (c_language_data): Likewise.
5824 (cplus_language_data): Likewise.
5825 (minimal_language_data): Likewise.
5826 * d-lang.c (d_language_data): Likewise.
5827 * f-lang.c (f_language_data): Likewise.
5828 * go-lang.c (go_language_data): Likewise.
5829 * language.c (default_print_array_index): Delete function, move
5830 implementation to...
5831 (language_defn::print_array_index): ...here.
5832 (unknown_language_data): Delete la_print_array_index initializer.
5833 (auto_language_data): Likewise.
5834 * language.h (struct language_data): Delete la_print_array_index
5835 field.
5836 (language_defn::print_array_index): New member function.
5837 (LA_PRINT_ARRAY_INDEX): Update.
5838 (default_print_array_index): Delete declaration.
5839 * m2-lang.c (m2_language_data): Delete la_print_array_index
5840 initializer.
5841 * objc-lang.c (objc_language_data): Likewise.
5842 * opencl-lang.c (opencl_language_data): Likewise.
5843 * p-lang.c (pascal_language_data): Likewise.
5844 * rust-lang.c (rust_language_data): Likewise.
5845
0874fd07
AB
58462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5847
5848 * gdb/ada-lang.c (ada_language_defn): Convert to...
5849 (ada_language_data): ...this.
5850 (class ada_language): New class.
5851 (ada_language_defn): New static global.
5852 * gdb/c-lang.c (c_language_defn): Convert to...
5853 (c_language_data): ...this.
5854 (class c_language): New class.
5855 (c_language_defn): New static global.
5856 (cplus_language_defn): Convert to...
5857 (cplus_language_data): ...this.
5858 (class cplus_language): New class.
5859 (cplus_language_defn): New static global.
5860 (asm_language_defn): Convert to...
5861 (asm_language_data): ...this.
5862 (class asm_language): New class.
5863 (asm_language_defn): New static global.
5864 (minimal_language_defn): Convert to...
5865 (minimal_language_data): ...this.
5866 (class minimal_language): New class.
5867 (minimal_language_defn): New static global.
5868 * gdb/d-lang.c (d_language_defn): Convert to...
5869 (d_language_data): ...this.
5870 (class d_language): New class.
5871 (d_language_defn): New static global.
5872 * gdb/f-lang.c (f_language_defn): Convert to...
5873 (f_language_data): ...this.
5874 (class f_language): New class.
5875 (f_language_defn): New static global.
5876 * gdb/go-lang.c (go_language_defn): Convert to...
5877 (go_language_data): ...this.
5878 (class go_language): New class.
5879 (go_language_defn): New static global.
5880 * gdb/language.c (unknown_language_defn): Remove declaration.
5881 (current_language): Initialize to nullptr, real initialization is
5882 moved to _initialize_language.
5883 (languages): Delete global.
5884 (language_defn::languages): Define.
5885 (set_language_command): Use language_defn::languages.
5886 (set_language): Likewise.
5887 (range_error): Likewise.
5888 (language_enum): Likewise.
5889 (language_def): Likewise.
5890 (add_set_language_command): Use language_def::languages for the
5891 language list, and language_def to lookup language pointers.
5892 (skip_language_trampoline): Use language_defn::languages.
5893 (unknown_language_defn): Convert to...
5894 (unknown_language_data): ...this.
5895 (class unknown_language): New class.
5896 (unknown_language_defn): New static global.
5897 (auto_language_defn): Convert to...
5898 (auto_language_data): ...this.
5899 (class auto_language): New class.
5900 (auto_language_defn): New static global.
5901 (language_gdbarch_post_init): Use language_defn::languages.
5902 (_initialize_language): Initialize current_language.
5903 * gdb/language.h (struct language_defn): Rename to...
5904 (struct language_data): ...this.
5905 (struct language_defn): New.
5906 (auto_language_defn): Delete.
5907 (unknown_language_defn): Delete.
5908 (minimal_language_defn): Delete.
5909 (ada_language_defn): Delete.
5910 (asm_language_defn): Delete.
5911 (c_language_defn): Delete.
5912 (cplus_language_defn): Delete.
5913 (d_language_defn): Delete.
5914 (f_language_defn): Delete.
5915 (go_language_defn): Delete.
5916 (m2_language_defn): Delete.
5917 (objc_language_defn): Delete.
5918 (opencl_language_defn): Delete.
5919 (pascal_language_defn): Delete.
5920 (rust_language_defn): Delete.
5921 * gdb/m2-lang.c (m2_language_defn): Convert to...
5922 (m2_language_data): ...this.
5923 (class m2_language): New class.
5924 (m2_language_defn): New static global.
5925 * gdb/objc-lang.c (objc_language_defn): Convert to...
5926 (objc_language_data): ...this.
5927 (class objc_language): New class.
5928 (objc_language_defn): New static global.
5929 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5930 (opencl_language_data): ...this.
5931 (class opencl_language): New class.
5932 (opencl_language_defn): New static global.
5933 * gdb/p-lang.c (pascal_language_defn): Convert to...
5934 (pascal_language_data): ...this.
5935 (class pascal_language): New class.
5936 (pascal_language_defn): New static global.
5937 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5938 language pointer, update comment format.
5939 * gdb/rust-lang.c (rust_language_defn): Convert to...
5940 (rust_language_data): ...this.
5941 (class rust_language): New class.
5942 (rust_language_defn): New static global.
5943
1313c56e
AB
59442020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5945
5946 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5947 member variable.
5948 <m_stmt_at_address>: New member variable.
5949 (lnp_state_machine::record_line): Don't record some lines, update
5950 tracking of is_stmt at the same address.
5951 (lnp_state_machine::lnp_state_machine): Initialise new member
5952 variables.
5953
b7ed9f3d
ST
59542020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5955
5956 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5957 "-include gnu-nat-mig.h".
5958 * gnu-nat-mig.h: New file.
5959 * gnu-nat.c: Include "gnu-nat-mig.h".
5960 (exc_server, msg_reply_server, notify_server,
5961 process_reply_server): Remove declarations.
5962
14a8ad62
ST
59632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5964
5965 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5966 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5967 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5968 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5969 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5970 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5971 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5972 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5973 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5974 to gnu_nat_target class.
5975 * gnu-nat.c: Likewise.
5976 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5977 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5978 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5979 object.
5980 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5981 instead of `gnu_target'.
5982
0af5e106
ST
59832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5984
5985 * i386-gnu-tdep.c: Include "gdbcore.h"
5986 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5987 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5988 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5989 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5990 i386_gnu_sigcontext_addr): New functions
5991 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5992 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5993 tdep.
5994
078f2fc9
ST
59952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5996
5997 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5998 before fork_inferior call. Avoid calling it if target_is_pushed returns
5999 true.
6000
53dff92c
ST
60012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6002
6003 * gnu-nat.h (gnu_target): New variable declaration.
6004 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6005 gnu_target.
6006 * gnu-nat.c (gnu_target): New variable.
6007 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6008 add_thread_silent, and add_thread calls.
6009 (gnu_nat_target::create_inferior): Pass gnu_target to
6010 add_thread_silent, thread_change_ptid call.
6011 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6012 call.
6013
5a8b8627
ST
60142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6015
6016 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6017 (gnu_nat_target::find_memory_regions): Remove unused
6018 `old_address' variable.
6019
366f550a
ST
60202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6021
6022 * gnu-nat.c: Include "gdbarch.h".
6023
f14871bf
ST
60242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6025
6026 * reply_mig_hack.awk (Error return): Cast function through
6027 void *, to bypass compiler function call check.
6028
c6887cfb
ST
60292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6030
6031 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6032 $(srcdir)/reply_mig_hack.awk.
6033
6930bffe
ST
60342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6035
6036 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6037
112c22ed
JG
60382020-05-30 Jonny Grant <jg@jguk.org>
6039
6040 * configure.ac (ACX_BUGURL): change bug URL to https.
6041
f68f85b5
PA
60422020-05-30 Pedro Alves <palves@redhat.com>
6043
6044 * cp-support.c (replace_typedefs_template): New.
6045 (replace_typedefs_qualified_name): Handle
6046 DEMANGLE_COMPONENT_TEMPLATE.
6047
976ca316
SM
60482020-05-29 Simon Marchi <simon.marchi@efficios.com>
6049
6050 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6051 dwarf2/index-cache.h, dwarf2/index-write.c,
6052 dwarf2/index-write.h, dwarf2/line-header.c,
6053 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6054 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6055 variables and fields from `dwarf2_per_objfile` to just
6056 `per_objfile` throughout.
6057
989ade05
SM
60582020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6059
6060 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6061 <push_dwarf_reg_entry_value>: Add comment.
6062
c47bae85
KB
60632020-05-28 Kevin Buettner <kevinb@redhat.com>
6064 Keith Seitz <keiths@redhat.com>
6065
6066 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6067 instead of PyEval_ReleaseLock.
6068 (class gdbpy_gil): Move to earlier in file.
6069 (finalize_python): Set gdb_python_initialized.
6070 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6071 when not initialized.
6072
44486dcf
SM
60732020-05-28 Simon Marchi <simon.marchi@efficios.com>
6074
6075 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6076 <push_dwarf_reg_entry_value>: Remove assert. Override
6077 per_objfile with caller_per_objfile.
6078
f030440d
TV
60792020-05-28 Tom de Vries <tdevries@suse.de>
6080
6081 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6082 PR gold/15646 workaround to symbol kind "type".
6083
f0fbb768
TT
60842020-05-27 Tom Tromey <tromey@adacore.com>
6085
6086 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6087
af0b2a3e
TT
60882020-05-27 Tom Tromey <tromey@adacore.com>
6089
6090 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6091 Use htab_find_with_hash.
6092 <add_abbrev>: Remove "abbrev_number" parameter.
6093 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6094 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6095 (hash_abbrev): Add comment.
6096 (abbrev_table::lookup_abbrev): Move to header file.
6097 (abbrev_table::read): Update.
6098
7d00ffec
TT
60992020-05-27 Tom Tromey <tromey@adacore.com>
6100
6101 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6102 method.
6103 <canonical_name>: New member.
6104 <raw_name>: Rename from "name".
6105 (partial_die_info): Initialize canonical_name.
6106 (scan_partial_symbols): Check raw_name.
6107 (partial_die_parent_scope, partial_die_full_name)
6108 (add_partial_symbol, add_partial_subprogram)
6109 (add_partial_enumeration, load_partial_dies): Use "name" method.
6110 (partial_die_info::name): New method.
6111 (partial_die_info::read, guess_partial_die_structure_name)
6112 (partial_die_info::fixup): Update.
6113
697bba18
TT
61142020-05-27 Tom Tromey <tromey@adacore.com>
6115
6116 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6117 <get_ref_die_offset>: Inline.
6118 <get_ref_die_offset_complaint>: New method.
6119 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6120 (attribute::get_ref_die_offset_complaint): Rename from
6121 get_ref_die_offset. Just issue complaint.
6122
c17ace43
HD
61232020-05-27 Hannes Domani <ssbssa@yahoo.de>
6124
6125 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6126
96445f0b
HD
61272020-05-27 Hannes Domani <ssbssa@yahoo.de>
6128
6129 * exec.c (exec_file_attach): Use errno value of first openp failure.
6130
ac637ec3
HD
61312020-05-27 Hannes Domani <ssbssa@yahoo.de>
6132
6133 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6134 Don't close thread handle.
6135
17ee85fc
TT
61362020-05-27 Tom Tromey <tom@tromey.com>
6137 Simon Marchi <simon.marchi@efficios.com>
6138
6139 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6140 shared_ptr.
6141 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6142 member.
6143 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6144 dwarf2_per_bfd_objfile_data_key>: New globals.
6145 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6146 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6147 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6148 shared.
6149 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6150 short-circuit when sharing.
6151 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6152 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6153
39b16f87
SM
61542020-05-27 Simon Marchi <simon.marchi@efficios.com>
6155
6156 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6157 to...
6158 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6159 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6160
fcf23d5b
SM
61612020-05-27 Simon Marchi <simon.marchi@efficios.com>
6162
6163 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6164 build_name_components, find_name_components_bounds>:
6165 Add per_objfile parameter.
6166 (struct mapped_index) <symbol_name_at>: Likewise.
6167 (struct mapped_debug_names): Remove constructor.
6168 <dwarf2_per_objfile>: Remove field.
6169 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6170 (mapped_index_base::find_name_components_bounds,
6171 mapped_index_base::build_name_components,
6172 dw2_expand_symtabs_matching_symbol): Likewise.
6173 (class mock_mapped_index) <symbol_name_at>: Likewise.
6174 (check_match): Likewise.
6175 (check_find_bounds_finds): Likewise.
6176 (test_mapped_index_find_name_component_bounds): Update.
6177 (CHECK_MATCH): Update.
6178 (dw2_expand_symtabs_matching): Update.
6179 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6180 per_objfile parameter.
6181 <find_vec_in_debug_names>: Likewise.
6182 <m_per_objfile>: New field.
6183 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6184 parameter.
6185 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6186 (dw2_debug_names_iterator::next): Update.
6187 (dw2_debug_names_lookup_symbol): Update.
6188 (dw2_debug_names_expand_symtabs_for_function): Update.
6189 (dw2_debug_names_map_matching_symbols): Update.
6190 (dw2_debug_names_expand_symtabs_matching): Update.
6191 (dwarf2_read_debug_names): Update.
6192
7188ed02
SM
61932020-05-27 Simon Marchi <simon.marchi@efficios.com>
6194
6195 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6196 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6197 move to dwarf2_per_objfile.
6198 <read_in_chain>: Remove.
6199 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6200 remove_all_cus, age_comp_units>: New methods.
6201 <m_dwarf2_cus>: New member.
6202 (struct dwarf2_per_cu_data) <cu>: Remove.
6203 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6204 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6205 moved to methods of dwarf2_per_objfile.
6206 (dwarf2_clear_marks): Remove.
6207 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6208 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6209 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6210 (dwarf2_per_objfile::remove_all_cus): New.
6211 (class free_cached_comp_units) <~free_cached_comp_units>:
6212 Update.
6213 (load_cu): Update.
6214 (dw2_do_instantiate_symtab): Adjust.
6215 (fill_in_sig_entry_from_dwo_entry): Adjust.
6216 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6217 (cutu_reader::cutu_reader): Likewise.
6218 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6219 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6220 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6221 and dwarf2_per_objfile::age_comp_units.
6222 (load_partial_comp_unit): Update.
6223 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6224 (process_queue): Likewise.
6225 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6226 backlink.
6227 (dwarf2_read_addr_index): Likewise.
6228 (follow_die_offset): Likewise.
6229 (dwarf2_fetch_die_loc_sect_off): Likewise.
6230 (dwarf2_fetch_constant_bytes): Likewise.
6231 (dwarf2_fetch_die_type_sect_off): Likewise.
6232 (follow_die_sig_1): Likewise.
6233 (load_full_type_unit): Likewise.
6234 (read_signatured_type): Likewise.
6235 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6236 (dwarf2_cu::~dwarf2_cu): Remove.
6237 (dwarf2_per_objfile::get_cu): New.
6238 (dwarf2_per_objfile::set_cu): New.
6239 (age_cached_comp_units): Rename to...
6240 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6241 to std::unordered_map.
6242 (free_one_cached_comp_unit): Rename to...
6243 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6244 to std::unordered_map.
6245 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6246 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6247 a dwarf2_per_objfile in data.
6248 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6249 (dwarf2_clear_marks): Remove.
6250
2e671100
SM
62512020-05-27 Simon Marchi <simon.marchi@efficios.com>
6252
6253 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6254 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6255 (init_tu_and_read_dwo_dies): Likewise.
6256 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6257 (cutu_reader::cutu_reader): Likewise.
6258 (load_partial_comp_unit): Likewise.
6259 (process_psymtab_comp_unit): Update.
6260 (build_type_psymtabs_1): Update.
6261 (process_skeletonless_type_unit): Update.
6262 (load_full_comp_unit): Update.
6263 (find_partial_die): Update.
6264 (dwarf2_read_addr_index): Update.
6265 (read_signatured_type): Update.
6266
2e6a9f79
SM
62672020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6268
6269 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6270 m_header_read_in>: New fields.
6271 <get_header>: New method.
6272 * dwarf2/read.c (per_cu_header_read_in): Remove.
6273 (dwarf2_per_cu_data::get_header): New.
6274 (dwarf2_per_cu_data::addr_size): Update.
6275 (dwarf2_per_cu_data::offset_size): Update.
6276 (dwarf2_per_cu_data::ref_addr_size): Update.
6277
1b555f17
SM
62782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6279
6280 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6281 (dw2_do_instantiate_symtab): Update.
6282 (queue_and_load_all_dwo_tus): Change parameter from
6283 dwarf2_per_cu_data to dwarf2_cu.
6284 (dwarf2_fetch_die_loc_sect_off): Update.
6285 (dwarf2_fetch_constant_bytes): Update.
6286 (dwarf2_fetch_die_type_sect_off): Update.
6287
8fc0b21d
SM
62882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6289
6290 * dwarf2/read.c (process_full_comp_unit,
6291 process_full_type_unit): Remove per_cu, per_objfile paramters.
6292 Add dwarf2_cu parameter.
6293 (process_queue): Update.
6294
168c9250
SM
62952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6296
6297 * dwarf2/read.c (create_cu_from_index_list): Replace
6298 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6299 (create_cus_from_index_list): Likewise.
6300 (create_cus_from_index): Likewise.
6301 (create_signatured_type_table_from_index): Likewise.
6302 (create_cus_from_debug_names_list): Likewise.
6303 (create_cus_from_debug_names): Likewise.
6304 (dwarf2_read_gdb_index): Update.
6305 (dwarf2_read_debug_names): Update.
6306
e286671b
TT
63072020-05-27 Tom Tromey <tom@tromey.com>
6308 Simon Marchi <simon.marchi@efficios.com>
6309
6310 * dwarf2/read.h (struct dwarf2_per_objfile)
6311 <get_type_for_signatured_type, set_type_for_signatured_type>:
6312 New methods.
6313 <m_type_map>: New member.
6314 (struct signatured_type) <type>: Remove.
6315 * dwarf2/read.c
6316 (dwarf2_per_objfile::get_type_for_signatured_type,
6317 dwarf2_per_objfile::set_type_for_signatured_type): New.
6318 (get_signatured_type): Use new methods.
6319
8adb8487
TT
63202020-05-27 Tom Tromey <tom@tromey.com>
6321 Simon Marchi <simon.marchi@efficios.com>
6322
6323 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6324 (struct dwarf2_per_objfile) <type_units>: New member.
6325 <get_type_unit_group_unshareable>: New method.
6326 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6327 num_symtabs, symtabs>: Remove; move to
6328 type_unit_group_unshareable.
6329 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6330 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6331 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6332
127bbf4b
SM
63332020-05-27 Simon Marchi <simon.marchi@efficios.com>
6334
6335 * dwarf2/read.h (struct dwarf2_per_cu_data):
6336 <dwarf2_per_objfile>: Remove.
6337 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6338 dwarf2_per_objfile.
6339 (create_signatured_type_table_from_index): Likewise.
6340 (create_signatured_type_table_from_debug_names): Likewise.
6341 (create_debug_type_hash_table): Likewise.
6342 (fill_in_sig_entry_from_dwo_entry): Likewise.
6343 (create_type_unit_group): Likewise.
6344 (read_comp_units_from_section): Likewise.
6345 (create_cus_hash_table): Likewise.
6346
f6e649dd
SM
63472020-05-27 Simon Marchi <simon.marchi@efficios.com>
6348
6349 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6350 dwarf2_per_cu_data::dwarf2_per_objfile.
6351 (compute_compunit_symtab_includes): Likewise.
6352 (dwarf2_cu::start_symtab): Likewise.
6353
aa66c379
SM
63542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6355
6356 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6357 parameter.
6358 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6359 (read_namespace_alias): Update.
6360 (lookup_die_type): Update.
6361 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6362 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6363 Update.
6364 (disassemble_dwarf_expression): Update.
6365
120ce1b5
SM
63662020-05-27 Simon Marchi <simon.marchi@efficios.com>
6367
6368 * dwarf2/read.h (struct dwarf2_queue_item): Add
6369 dwarf2_per_objfile parameter, assign new parameter.
6370 <per_objfile>: New field.
6371 * dwarf2/read.c (free_one_cached_comp_unit): Add
6372 dwarf2_per_objfile parameter.
6373 (queue_comp_unit): Likewise.
6374 (dw2_do_instantiate_symtab): Update.
6375 (process_psymtab_comp_unit): Update.
6376 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6377 (process_imported_unit_die): Update.
6378 (queue_and_load_dwo_tu): Update.
6379 (follow_die_offset): Update.
6380 (follow_die_sig_1): Update.
6381
9f47c707
SM
63822020-05-27 Simon Marchi <simon.marchi@efficios.com>
6383
6384 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6385 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6386 (read_call_site_scope): Assign per_objfile.
6387 (dwarf2_per_cu_data::objfile): Remove.
6388 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6389 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6390 dwarf2_per_objfile parameter.
6391 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6392 dwarf2_per_objfile parameter.
6393 (dwarf_expr_reg_to_entry_parameter): Add output
6394 dwarf2_per_objfile parameter.
6395 (locexpr_get_frame_base): Update.
6396 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6397 <push_dwarf_reg_entry_value>: Update.
6398 <call_site_to_target_addr>: Update.
6399 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6400 parameter.
6401 (value_of_dwarf_reg_entry): Update.
6402 (rw_pieced_value): Update.
6403 (indirect_synthetic_pointer): Update.
6404 (dwarf2_evaluate_property): Update.
6405 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6406 parameter.
6407 (locexpr_read_variable): Update.
6408 (locexpr_get_symbol_read_needs): Update.
6409 (loclist_read_variable): Update.
6410
14095eb3
SM
64112020-05-27 Simon Marchi <simon.marchi@efficios.com>
6412
6413 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6414 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6415 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6416 parameter.
6417 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6418 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6419 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6420 parameter.
6421 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6422 sect_variable_value): Add dwarf2_per_objfile parameter.
6423 (class dwarf_evaluate_loc_desc) <dwarf_call,
6424 dwarf_variable_value>: Update.
6425 (fetch_const_value_from_synthetic_pointer): Add
6426 dwarf2_per_objfile parameter.
6427 (fetch_const_value_from_synthetic_pointer): Update.
6428 (coerced_pieced_ref): Update.
6429 (class symbol_needs_eval_context) <dwarf_call,
6430 dwarf_variable_value>: Update.
6431 (dwarf2_compile_expr_to_ax): Update.
6432
3c3cd3d4
SM
64332020-05-27 Simon Marchi <simon.marchi@efficios.com>
6434
6435 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6436 parameter.
6437 (dwarf2_evaluate_loc_desc_full): Update.
6438
82ca3f51
SM
64392020-05-27 Simon Marchi <simon.marchi@efficios.com>
6440
6441 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6442 parameter.
6443 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6444 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6445 dwarf2_per_objfile parameter.
6446 (decode_debug_loc_dwo_addresses): Likewise.
6447 (dwarf2_find_location_expression): Update.
6448 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6449 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6450 parameter.
6451 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6452 parameter.
6453 (locexpr_describe_location_1): Likewise.
6454 (locexpr_describe_location): Update.
6455
4b167ea1
SM
64562020-05-27 Simon Marchi <simon.marchi@efficios.com>
6457
6458 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6459 Remove.
6460 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6461 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6462 (dwarf2_compile_property_to_c): Update.
6463 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6464 use text offset from objfile.
6465 (locexpr_tracepoint_var_ref): Update.
6466 (locexpr_generate_c_location): Update.
6467 (loclist_describe_location): Update.
6468 (loclist_tracepoint_var_ref): Update.
6469 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6470 dwarf2_per_objfile parameter.
6471 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6472 use text offset from objfile.
6473 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6474
89b07335
SM
64752020-05-27 Simon Marchi <simon.marchi@efficios.com>
6476
6477 * dwarf2/expr.h (struct dwarf_expr_context)
6478 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6479 <offset>: Remove.
6480 <per_objfile>: New member.
6481 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6482 dwarf2_per_objfile parameter. Don't set offset, set
6483 per_objfile.
6484 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6485 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6486 a dwarf2_per_objfile object instead of an offset.
6487 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6488 constructor.
6489 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6490 to dwarf2_expr_executor constructor. Don't set offset.
6491 (dwarf2_fetch_cfa_info): Update.
6492 (struct dwarf2_frame_cache) <text_offset>: Remove.
6493 <per_objfile>: New field.
6494 (dwarf2_frame_cache): Update.
6495 (dwarf2_frame_prev_register): Update.
6496 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6497 <dwarf_evaluate_loc_desc>: Add constructor.
6498 (dwarf2_evaluate_loc_desc_full): Update.
6499 (dwarf2_locexpr_baton_eval): Update.
6500 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6501 Add constructor.
6502 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6503
293e7e51
SM
65042020-05-27 Simon Marchi <simon.marchi@efficios.com>
6505
6506 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6507 addr_sized_int_type>: Move to dwarf2_cu.
6508 <int_type>: Move to dwarf2_per_objfile.
6509 (struct dwarf2_per_objfile) <int_type>: Move here.
6510 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6511 addr_sized_int_type>: Move here.
6512 (read_func_scope): Update.
6513 (read_array_type): Update.
6514 (read_tag_string_type): Update.
6515 (attr_to_dynamic_prop): Update.
6516 (dwarf2_per_cu_data::int_type): Rename to...
6517 (dwarf2_per_objfile::int_type): ... this.
6518 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6519 (dwarf2_cu::addr_sized_int_type): ... this.
6520 (read_subrange_type): Update.
6521 (dwarf2_per_cu_data::addr_type): Rename to...
6522 (dwarf2_cu::addr_type): ... this.
6523 (set_die_type): Update.
6524
64874a40
SM
65252020-05-27 Simon Marchi <simon.marchi@efficios.com>
6526
6527 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6528 data through per_cu->cu.
6529
4ab09049
SM
65302020-05-27 Simon Marchi <simon.marchi@efficios.com>
6531
6532 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6533 dwarf2_per_cu_data parameter fo dwarf2_cu.
6534 (lookup_dwo_type_unit): Likewise.
6535 (read_cutu_die_from_dwo): Likewise.
6536 (lookup_dwo_unit): Likewise.
6537 (open_and_init_dwo_file): Likewise.
6538 (lookup_dwo_cutu): Likewise.
6539 (lookup_dwo_comp_unit): Likewise.
6540 (lookup_dwo_type_unit): Likewise.
6541 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6542 (cutu_reader::cutu_reader): Update.
6543
47b14e86
SM
65442020-05-27 Simon Marchi <simon.marchi@efficios.com>
6545
6546 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6547 parameter.
6548 (process_full_type_unit): Likewise.
6549 (process_queue): Update.
6550
43182c09
SM
65512020-05-27 Simon Marchi <simon.marchi@efficios.com>
6552
6553 * dwarf2/read.c (recursively_compute_inclusions): Add
6554 dwarf2_per_objfile parameter.
6555 (compute_compunit_symtab_includes): Likewise.
6556 (process_cu_includes): Update.
6557
7aa104c4
SM
65582020-05-27 Simon Marchi <simon.marchi@efficios.com>
6559
6560 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6561 parameter.
6562 (create_type_unit_group): Update.
6563 (process_psymtab_comp_unit_reader): Update.
6564 (build_type_psymtabs_reader): Update.
6565
e3beb21d
SM
65662020-05-27 Simon Marchi <simon.marchi@efficios.com>
6567
6568 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6569 object through m_this_cu->cu.
6570
d460f660
SM
65712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6572
6573 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6574 the info parameter.
6575 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6576
ab432490
SM
65772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6578
6579 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6580 per_objfile parameter.
6581 (load_full_type_unit): Add per_objfile parameter.
6582 (read_signatured_type): Likewise.
6583 (load_full_comp_unit): Likewise.
6584 (load_cu): Likewise.
6585 (dw2_do_instantiate_symtab): Likewise.
6586 (dw2_get_file_names): Likewise.
6587 (dw2_map_symtabs_matching_filename): Update.
6588 (dw_expand_symtabs_matching_file_matcher): Update.
6589 (dw2_map_symbol_filenames): Update.
6590 (process_psymtab_comp_unit): Add per_objfile parameter.
6591 (build_type_psymtabs_1): Update.
6592 (process_skeletonless_type_unit): Update.
6593 (dwarf2_build_psymtabs_hard): Update.
6594 (load_partial_comp_unit): Add per_objfile parameter.
6595 (scan_partial_symbols): Update.
6596 (load_full_comp_unit): Add per_objfile parameter.
6597 (process_imported_unit_die): Update.
6598 (create_cus_hash_table): Update.
6599 (find_partial_die): Update.
6600 (dwarf2_read_addr_index): Update.
6601 (follow_die_offset): Update.
6602 (dwarf2_fetch_die_loc_sect_off): Update.
6603 (dwarf2_fetch_constant_bytes): Update.
6604 (dwarf2_fetch_die_type_sect_off): Update.
6605 (follow_die_sig_1): Update.
6606 (load_full_type_unit): Add per_objfile parameter.
6607 (read_signatured_type): Likewise.
6608
313bad1b
SM
66092020-05-27 Simon Marchi <simon.marchi@efficios.com>
6610
6611 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6612 of objfile_name.
6613
c3699833
SM
66142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6615
6616 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6617 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6618 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6619 field.
6620 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6621 (create_cus_from_index): Update.
6622 (dwarf2_read_gdb_index): Update.
6623 (create_cus_from_debug_names): Update.
6624 (dwarf2_read_debug_names): Update.
6625 (get_abbrev_section_for_cu): Update.
6626 (create_all_comp_units): Update.
6627 (read_attribute_value): Update.
6628 (get_debug_line_section): Update.
6629 * dwarf2/index-cache.c (index_cache::store): Update.
6630 * dwarf2/index-write.c (save_gdb_index_command): Update.
6631 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6632
1859c670
SM
66332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6634
6635 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6636 member.
6637 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6638 dwarf2_per_cu_data::per_bfd.
6639 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6640 (create_type_unit_group): Likewise.
6641 (queue_comp_unit): Remove reference to
6642 per_cu->dwarf2_per_objfile.
6643 (maybe_queue_comp_unit): Likewise.
6644 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6645 (create_cus_hash_table): Assign new field.
6646
5e22e966
SM
66472020-05-27 Simon Marchi <simon.marchi@efficios.com>
6648
6649 * dwarf2/read.c: Replace
6650 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6651 dwarf2_cu->per_objfile throughout.
6652
97a1449a
SM
66532020-05-27 Simon Marchi <simon.marchi@efficios.com>
6654
6655 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6656 parameter, don't use per_cu->dwarf2_per_objfile.
6657 (dw2_instantiate_symtab): Likewise.
6658 (dw2_find_last_source_symtab): Update.
6659 (dw2_map_expand_apply): Update.
6660 (dw2_lookup_symbol): Update.
6661 (dw2_expand_symtabs_for_function): Update.
6662 (dw2_expand_all_symtabs): Update.
6663 (dw2_expand_symtabs_with_fullname): Update.
6664 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6665 don't use per_cu->dwarf2_per_objfile.
6666 (dw2_expand_marked_cus): Update.
6667 (dw2_find_pc_sect_compunit_symtab): Update.
6668 (dw2_debug_names_lookup_symbol): Update.
6669 (dw2_debug_names_expand_symtabs_for_function): Update.
6670 (dw2_debug_names_map_matching_symbols): Update.
6671 (dwarf2_psymtab::expand_psymtab): Update.
6672
9e021579
SM
66732020-05-27 Simon Marchi <simon.marchi@efficios.com>
6674
6675 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6676 <per_objfile>: New member.
6677 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6678 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6679 call to dwarf2_cu.
6680 (cutu_reader::cutu_reader): Update.
6681 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6682
ae090bdb
SM
66832020-05-27 Simon Marchi <simon.marchi@efficios.com>
6684
6685 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6686 struct dwarf2_per_objfile.
6687 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6688 dwarf2_per_bfd.
6689 * dwarf2/read.c (set_die_type): Update.
6690 (get_die_type_at_offset): Update.
6691
af758d11
SM
66922020-05-27 Tom Tromey <tom@tromey.com>
6693 Simon Marchi <simon.marchi@efficios.com>
6694
6695 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6696 method.
6697 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6698 get_symtab, set_symtab>: New methods.
6699 <m_symtabs>: New field.
6700 (struct dwarf2_psymtab): Derive from partial_symtab.
6701 <readin_p, get_compunit_symtab>: Declare methods.
6702 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6703 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6704 New methods.
6705 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6706 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6707 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6708 (dw2_symtab_iter_next, dw2_print_stats)
6709 (dw2_expand_symtabs_with_fullname)
6710 (dw2_expand_symtabs_matching_one)
6711 (dw_expand_symtabs_matching_file_matcher)
6712 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6713 (dw2_debug_names_iterator::next)
6714 (dw2_debug_names_map_matching_symbols)
6715 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6716 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6717 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6718 New methods.
6719 (get_compunit_symtab, process_full_comp_unit)
6720 (process_full_type_unit): Update.
6721 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6722
5989a64e
SM
67232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6724
6725 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6726 then introduce a new dwarf2_per_objfile type.
6727 <read_line_string>: Move to the new dwarf2_per_objfile type.
6728 <objfile>: Likewise.
6729 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6730 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6731 dwarf2_per_objfile->per_bfd.
6732 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6733 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6734 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6735 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6736 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6737 (dwarf2_per_objfile::locate_sections): Rename to...
6738 (dwarf2_per_bfd::locate_sections): ... this.
6739 (dwarf2_per_objfile::get_cutu): Rename to...
6740 (dwarf2_per_bfd::get_cutu): ... this.
6741 (dwarf2_per_objfile::get_cu): Rename to...
6742 (dwarf2_per_bfd::get_cu): ... this.
6743 (dwarf2_per_objfile::get_tu): Rename to...
6744 (dwarf2_per_bfd::get_tu): ... this.
6745 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6746 (dwarf2_per_bfd::allocate_per_cu): ... this.
6747 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6748 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6749 (get_gdb_index_contents_ftype): Change parameter from
6750 dwarf2_per_objfile to dwarf2_per_bfd.
6751 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6752 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6753
a50264ba
TT
67542020-05-27 Tom Tromey <tom@tromey.com>
6755 Simon Marchi <simon.marchi@efficios.com>
6756
6757 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6758 (allocate_piece_closure): Set "per_objfile" member.
6759 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6760 (locexpr_describe_location, loclist_describe_location): Use new
6761 member.
6762 * dwarf2/read.c (read_call_site_scope)
6763 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6764 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6765 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6766 handle_data_member_location): Set per_objfile member.
6767 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6768 member.
6769 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6770
d3473f0c
TT
67712020-05-27 Tom Tromey <tom@tromey.com>
6772
6773 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6774 allocate_signatured_type>: Declare new methods.
6775 <m_num_psymtabs>: New member.
6776 (struct dwarf2_per_cu_data) <index>: New member.
6777 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6778 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6779 (create_cu_from_index_list): Use allocate_per_cu.
6780 (create_signatured_type_table_from_index)
6781 (create_signatured_type_table_from_debug_names)
6782 (create_debug_type_hash_table, add_type_unit)
6783 (read_comp_units_from_section): Use allocate_signatured_type.
6784
5717c425
TT
67852020-05-27 Tom Tromey <tom@tromey.com>
6786
6787 * psymtab.c (partial_map_expand_apply)
6788 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6789 (psym_lookup_global_symbol_language)
6790 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6791 (psym_print_stats, psym_expand_symtabs_for_function)
6792 (psym_map_symbol_filenames, psym_map_matching_symbols)
6793 (psym_expand_symtabs_matching)
6794 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6795 (maintenance_check_psymtabs): Update.
6796 * psympriv.h (struct partial_symtab) <readin_p,
6797 get_compunit_symtab>: Add objfile parameter.
6798 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6799 Likewise.
6800 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6801 get_compunit_symtab>: Likewise.
6802 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6803
45940949
TT
68042020-05-27 Tom Tromey <tom@tromey.com>
6805
6806 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6807 member.
6808 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6809 (create_cu_from_index_list)
6810 (create_signatured_type_table_from_index)
6811 (create_signatured_type_table_from_debug_names)
6812 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6813 (dwarf2_create_include_psymtab)
6814 (create_debug_type_hash_table, add_type_unit)
6815 (create_type_unit_group, read_comp_units_from_section)
6816 (dwarf2_compute_name, create_cus_hash_table)
6817 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6818 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6819 obstack.
6820 (dw2_get_real_path): Likewise. Change argument to
6821 dwarf2_per_objfile.
6822
f8c6d152
LM
68232020-05-27 Luis Machado <luis.machado@linaro.org>
6824
6825 PR tdep/26000
6826 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6827 for ldrd (immediate).
6828
e98d2e6d
PW
68292020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6830
6831 * command.h: Add comment giving the name of class_tui.
6832 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6833 create the fake command for the help for class_tui.
6834
53a47a3e
TT
68352020-05-26 Tom Tromey <tromey@adacore.com>
6836
6837 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6838 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6839 (val_atr): New function.
6840 (value_val_atr): Use it.
6841 * ada-valprint.c (print_optional_low_bound): Change low bound
6842 handling for enums.
6843 (val_print_packed_array_elements): Don't call discrete_position.
6844 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6845 discrete_position for enum types.
6846 * language.c (default_print_array_index): Change type.
6847 * language.h (struct language_defn) <la_print_array_index>: Add
6848 index_type parameter, change type of index_value.
6849 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6850 (default_print_array_index): Update.
6851 * valprint.c (maybe_print_array_index): Don't call
6852 value_from_longest. Update.
6853 (value_print_array_elements): Don't call discrete_position.
6854
0bc2354b
TT
68552020-05-26 Tom Tromey <tromey@adacore.com>
6856
6857 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6858 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6859
1218a4bf
CDA
68602020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6861
6862 PR gdb/13519
6863 * avr-tdep.c (avr_integer_to_address): Return data or code
6864 address accordingly to the second 'type' argument of the
6865 function.
6866
92651b1d
MW
68672020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6868
6869 * infcmd.c, inferior.h: (construct_inferior_arguments):
6870 Moved function from here to gdbsupport/common-inferior.{h,cc}
6871
0a4f5f8c
TT
68722020-05-23 Tom Tromey <tom@tromey.com>
6873
6874 Revert commit eca1f90c:
6875 * NEWS: Remove entry for completion styling.
6876 * completer.c (_rl_completion_prefix_display_length): Move
6877 declaration later.
6878 (gdb_fnprint): Revert.
6879 (gdb_display_match_list_1): Likewise.
6880 * cli/cli-style.c (completion_prefix_style)
6881 (completion_difference_style, completion_suffix_style): Remove.
6882 (_initialize_cli_style): Revert.
6883 * cli/cli-style.h (completion_prefix_style)
6884 (completion_difference_style, completion_suffix_style): Don't
6885 declare.
6886
e08bd6c5
PA
68872020-05-24 Pedro Alves <palves@redhat.com>
6888
6889 * symtab.c (completion_list_add_name): Return boolean indication
6890 of whether the symbol matched.
6891 (completion_list_add_symbol): Don't try to remove C++ aliases if
6892 the symbol didn't match in the first place.
6893 * symtab.h (completion_list_add_name): Return bool.
6894
ceacbf6e
SM
68952020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6896
6897 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6898 type::field.
6899
26f16254
JB
69002020-05-23 Joel Brobecker <brobecker@adacore.com>
6901
6902 GDB 9.2 released.
6903
eca1f90c
TT
69042020-05-23 Tom Tromey <tom@tromey.com>
6905
6906 * NEWS: Add entry for completion styling.
6907 * completer.c (_rl_completion_prefix_display_length): Move
6908 declaration earlier.
6909 (gdb_fnprint): Use completion_style.
6910 (gdb_display_match_list_1): Likewise.
6911 * cli/cli-style.c (completion_prefix_style)
6912 (completion_difference_style, completion_suffix_style): New
6913 globals.
6914 (_initialize_cli_style): Register new globals.
6915 * cli/cli-style.h (completion_prefix_style)
6916 (completion_difference_style, completion_suffix_style): Declare.
6917
51e2cfa2
PA
69182020-05-23 Pedro Alves <palves@redhat.com>
6919
6920 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6921 (parse_escape): Use ISDIGIT instead of isdigit.
6922 (puts_debug): Use gdb_isprint instead of isprint.
6923 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6924 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6925 ISSPACE instead of isspace.
6926 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6927 instead of isspace.
6928 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6929 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6930 instead of isxdigit and ISDIGIT instead of isdigit.
6931
80fc5e77
SM
69322020-05-22 Simon Marchi <simon.marchi@efficios.com>
6933
6934 * gdbtypes.h (struct type) <field>: New method.
6935 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6936 or type::field.
6937
3cabb6b0
SM
69382020-05-22 Simon Marchi <simon.marchi@efficios.com>
6939
6940 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6941 (TYPE_FIELDS): Use type::fields. Change all call sites that
6942 modify the propery to use type::set_fields instead.
6943
1f704f76
SM
69442020-05-22 Simon Marchi <simon.marchi@efficios.com>
6945
6946 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6947 type::num_fields instead.
6948
5e33d5f4
SM
69492020-05-22 Simon Marchi <simon.marchi@efficios.com>
6950
6951 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6952 methods.
6953 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6954 that modify the number of fields to use type::set_num_fields
6955 instead.
6956
9392ebb3
TT
69572020-05-22 Tom Tromey <tromey@adacore.com>
6958
6959 * compile/compile-object-load.h (munmap_list_free): Don't
6960 declare.
6961
7c13f4e8
AB
69622020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6963
6964 * annotate.c (annotate_source_line): Update return type, add call
6965 to update current symtab and line.
6966 * annotate.h (annotate_source_line): Update return type, and
6967 extend header comment.
6968 * source.c (info_line_command): Check annotation_level before
6969 calling annotate_source_line.
6970 * stack.c (print_frame_info): If calling annotate_source_line
6971 returns true, then don't print any other source line information.
6972
aa370940
SM
69732020-05-21 Simon Marchi <simon.marchi@efficios.com>
6974
6975 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6976
84d53fa9
SM
69772020-05-21 Simon Marchi <simon.marchi@efficios.com>
6978
6979 * coffread.c (patch_type): Remove NULL check before xfree.
6980 * corefile.c (set_gnutarget): Likewise.
6981 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6982 * exec.c (build_section_table): Likewise.
6983 * remote.c (remote_target::pass_signals): Likewise.
6984 * utils.c (n_spaces): Likewise.
6985 * cli/cli-script.c (document_command): Likewise.
6986 * i386-windows-tdep.c (core_process_module_section): Likewise.
6987 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6988
9d428aae
SM
69892020-05-20 Simon Marchi <simon.marchi@efficios.com>
6990
6991 * symfile.c (reread_symbols): Clear objfile's section_offsets
6992 vector and section indices, re-compute them by calling
6993 sym_offsets.
6994
250106a7
TT
69952020-05-20 Tom Tromey <tromey@adacore.com>
6996
6997 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6998 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6999
9a0bacfb
TV
70002020-05-20 Tom de Vries <tdevries@suse.de>
7001
7002 PR symtab/25833
7003 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7004
7b958a48
AM
70052020-05-20 Alan Modra <amodra@gmail.com>
7006
7007 PR 25993
7008 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7009 bfd_set_filename.
7010 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7011 passed to bfd_set_filename.
7012 * symfile-mem.c (add_vsyscall_page): Likewise for string
7013 passed to symbol_file_add_from_memory.
7014 (symbol_file_add_from_memory): Make name param a const char* and
7015 don't strdup.
7016
c7e97679
AM
70172020-05-20 Alan Modra <amodra@gmail.com>
7018
7019 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7020 rather than accessing bfd->filename directly.
7021 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7022 and use bfd_section_name.
7023 * dwarf2/frame.c (decode_frame_entry): Likewise.
7024 * exec.c (exec_set_section_address): Likewise.
7025 * solib-aix.c (solib_aix_bfd_open): Likewise.
7026 * stap-probe.c (get_stap_base_address): Likewise.
7027 * symfile.c (reread_symbols): Likewise.
7028
563c591b
TT
70292020-05-19 Tom Tromey <tromey@adacore.com>
7030
7031 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7032
f408d82c
SM
70332020-05-19 Simon Marchi <simon.marchi@efficios.com>
7034
7035 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7036
98c59b52
PA
70372020-05-19 Pedro Alves <palves@redhat.com>
7038
7039 * NEWS (set exec-file-mismatch): Adjust entry.
7040 * exec.c: Include "build-id.h".
7041 (validate_exec_file): Try to match build IDs instead of filenames.
7042 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7043 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7044 and pass down 'warn_if_slow'.
7045 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7046 gdb_bfd_open_closure to pass it down.
7047 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7048
4111f652
PA
70492020-05-19 Pedro Alves <palves@redhat.com>
7050
7051 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7052 * target.c (target_fileio_open_1): Rename to target_fileio_open
7053 and make extern. Use bool.
7054 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7055 (target_fileio_read_alloc_1): Adjust.
7056 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7057 (target_fileio_open_warn_if_slow): Delete declaration.
7058
ad80db5b
PA
70592020-05-19 Pedro Alves <palves@redhat.com>
7060
7061 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7062 Adjust all callers.
7063
1d6ce4d3
YS
70642020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7065
7066 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7067 whether disp is negative.
7068
9005fbbb
SM
70692020-05-19 Simon Marchi <simon.marchi@efficios.com>
7070
7071 * symfile.h (struct symfile_segment_data)
7072 <~symfile_segment_data>: Remove.
7073 <segment_info>: Change to std::vector.
7074 * symfile.c (default_symfile_segments): Update.
7075 * elfread.c (elf_symfile_segments): Update.
7076
68b888ff
SM
70772020-05-19 Simon Marchi <simon.marchi@efficios.com>
7078
7079 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7080 <segments>: New.
7081 <segment_bases, segment_sizes>: Remove.
7082 * symfile.c (default_symfile_segments): Update.
7083 * elfread.c (elf_symfile_segments): Update.
7084 * remote.c (remote_target::get_offsets): Update.
7085 * solib-target.c (solib_target_relocate_section_addresses):
7086 Update.
7087
62982abd
SM
70882020-05-19 Simon Marchi <simon.marchi@efficios.com>
7089
7090 * symfile.h (struct symfile_segment_data): Initialize fields.
7091 <~symfile_segment_data>: Add.
7092 (symfile_segment_data_up): New.
7093 (struct sym_fns) <sym_segments>: Return a
7094 symfile_segment_data_up.
7095 (default_symfile_segments): Return a symfile_segment_data_up.
7096 (free_symfile_segment_data): Remove.
7097 (get_symfile_segment_data): Return a symfile_segment_data_up.
7098 * symfile.c (default_symfile_segments): Likewise.
7099 (get_symfile_segment_data): Likewise.
7100 (free_symfile_segment_data): Remove.
7101 (symfile_find_segment_sections): Update.
7102 * elfread.c (elf_symfile_segments): Return a
7103 symfile_segment_data_up.
7104 * remote.c (remote_target::get_offsets): Update.
7105 * solib-target.c (solib_target_relocate_section_addresses):
7106 Update.
7107 * symfile-debug.c (debug_sym_segments): Return a
7108 symfile_segment_data_up.
7109
7f204339
RO
71102020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7111
e52a0f1b
RO
7112 PR build/25981
7113 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7114 Hardcode register numbers.
7115
7f204339
RO
7116 PR build/25981
7117 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7118 procfs_find_LDT_entry): Remove.
7119 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7120 procfs_find_LDT_entry): Remove.
7121 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7122 Remove.
7123
7f32a4d5
PA
71242020-05-17 Pedro Alves <palves@redhat.com>
7125 Andrew Burgess <andrew.burgess@embecosm.com>
7126 Keno Fischer <keno@juliacomputing.com>
7127
7128 PR gdb/25741
7129 * breakpoint.c (build_target_condition_list): Update comments.
7130 (build_target_command_list): Update comments and skip matching
7131 locations.
7132 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7133 a separate function. Simplify "set breakpoint auto-hw off"
7134 handling.
7135 (insert_breakpoints): Update comment.
7136 (tracepoint_locations_match): New parameter. For breakpoints,
7137 compare location types too, if the caller wants to.
7138 (handle_automatic_hardware_breakpoints): New functions.
7139 (bp_location_is_less_than): Also sort by location type and
7140 hardware breakpoint length.
7141 (update_global_location_list): Handle "set breakpoint auto-hw on"
7142 here.
7143 (update_breakpoint_locations): Ask breakpoint_locations_match to
7144 ignore location types.
7145
7d93a1e0
SM
71462020-05-16 Simon Marchi <simon.marchi@efficios.com>
7147
7148 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7149 type::name instead.
7150
d0e39ea2
SM
71512020-05-16 Simon Marchi <simon.marchi@efficios.com>
7152
7153 * gdbtypes.h (struct type) <name, set_name>: New methods.
7154 (TYPE_CODE): Use type::name. Change all call sites used to set
7155 the name to use type::set_name instead.
7156
2dab0c7b
TT
71572020-05-16 Tom Tromey <tom@tromey.com>
7158
7159 * top.c (quit_force): Update.
7160 * infrun.c (handle_no_resumed): Update.
7161 * top.h (all_uis): New function.
7162 (ALL_UIS): Remove.
7163
59f7bd8d
SM
71642020-05-16 Simon Marchi <simon.marchi@efficios.com>
7165
7166 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7167
9bf058f0
PA
71682020-05-16 Pedro Alves <palves@redhat.com>
7169
7170 * ia64-linux-nat.c
7171 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7172 Declare method.
7173 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7174
8f86ae1a
SM
71752020-05-15 Simon Marchi <simon.marchi@efficios.com>
7176
7177 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7178 (sparc64_adi_info): Likewise.
7179
d6bc0792
TT
71802020-05-15 Tom Tromey <tom@tromey.com>
7181
7182 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7183 block_objfile.
7184 (lookup_objfile_from_block): Remove.
7185 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7186 (lookup_global_symbol): Use block_objfile.
7187 * symtab.h (lookup_objfile_from_block): Don't declare.
7188 * printcmd.c (clear_dangling_display_expressions): Use
7189 block_objfile.
7190 * parse.c (operator_check_standard): Use block_objfile.
7191
8c14c3a3
TT
71922020-05-15 Tom Tromey <tom@tromey.com>
7193
7194 * language.c (language_alloc_type_symbol): Set
7195 SYMBOL_SECTION.
7196 * symtab.c (initialize_objfile_symbol): Remove.
7197 (allocate_symbol): Remove.
7198 (allocate_template_symbol): Remove.
7199 * dwarf2/read.c (fixup_go_packaging): Use "new".
7200 (new_symbol): Use "new".
7201 (read_variable): Don't call initialize_objfile_symbol. Use
7202 "new".
7203 (read_func_scope): Use "new".
7204 * xcoffread.c (process_xcoff_symbol): Don't call
7205 initialize_objfile_symbol.
7206 (SYMBOL_DUP): Remove.
7207 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7208 "new".
7209 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7210 (allocate_template_symbol): Don't declare.
7211 (struct symbol): Add copy constructor. Change defaults.
7212 * jit.c (finalize_symtab): Use "new".
7213 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7214 Use "new".
7215 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7216 (common_block_end): Use "new".
7217 * mdebugread.c (parse_symbol): Use "new".
7218 (new_symbol): Likewise.
7219
5b4a1a8d
PW
72202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7221
7222 * NEWS: Mention changes to help and apropos.
7223
57b4f16e
PW
72242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7225
7226 * command.h (enum command_class): Improve comments, document
7227 that class_alias is for user-defined aliases, give the class
7228 name for each class, remove unused class_xdb.
7229 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7230 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7231 by a precise class.
7232 * infcmd.c (_initialize_infcmd): Likewise.
7233 * reverse.c (_initialize_reverse): Likewise.
7234 * stack.c (_initialize_stack): Likewise.
7235 * symfile.c (_initialize_symfile): Likewise.
7236 * tracepoint.c (_initialize_tracepoint): Likewise.
7237
7c05caf7
PW
72382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7239
7240 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7241 when their aliased command is traversed.
7242 (help_cmd): Add fput_command_names_styled call to
7243 output command name and aliases when command has an alias.
7244
3b3aaacb
PW
72452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7246
7247 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7248 * cli/cli-decode.c (help_cmd_list): Declare as static,
7249 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7250 a command together with the command.
7251 (fput_command_name_styled, fput_command_names_styled): New functions.
7252 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7253 fput_command_name_styled.
7254 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7255 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7256
7aa1b46f
PW
72572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7258
7259 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7260 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7261 * command.h (cmd_show_list): Likewise.
7262 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7263 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7264
89bcba74
PW
72652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7266
7267 * unittests/command-def-selftests.c (traverse_command_structure):
7268 Verify all commands of a list have the same prefix command and
7269 that only the top cmdlist commands have a null prefix.
7270
3f4d92eb
PW
72712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7272
7273 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7274 as prefix, not one of its aliases.
7275 (set_cmd_prefix): Remove.
7276 (do_add_cmd): Centralize the setting of the prefix of a command, when
7277 command is defined after its full chain of prefix commands.
7278 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7279 (add_setshow_cmd_full): Likewise.
7280 (update_prefix_field_of_prefixed_commands): New function.
7281 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7282 update_prefix_field_of_prefixed_commands.
7283 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7284 addresses of remote_set_cmdlist and remote_show_cmdlist given
7285 as argument, not the address of an argument.
7286 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7287 * gdb/remote.c (_initialize_remote): Likewise.
7288
0605465f
PW
72892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7290
7291 * cli/cli-cmds.c (alias_command): Check for an existing alias
7292 using lookup_cmd_composition, as valid_command_p is too strict
7293 and forbids aliases that are the prefix of an existing alias
7294 or command.
7295 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7296 command is properly recognised as a valid command.
7297
58e6ac70
PW
72982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7299
7300 * unittests/help-doc-selftests.c: Rename to
7301 unittests/command-def-selftests.c
7302 * unittests/command-def-selftests.c (help_doc_tests): Update some
7303 comments.
7304 (command_structure_tests, traverse_command_structure): New namespace
7305 and function.
7306 (command_structure_invariants_tests): New function.
7307 (_initialize_command_def_selftests) Renamed from
7308 _initialize_help_doc_selftests, register command_structure_invariants
7309 selftest.
7310
a7b9ceb8
PW
73112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7312
7313 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7314 an alias of 'show'.
7315
b2188a06
JB
73162020-05-15 Joel Brobecker <brobecker@adacore.com>
7317
7318 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7319 ada_is_fixed_point_type. Update all callers.
7320 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7321 all callers.
7322 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7323 Update all callers.
7324 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7325 print_fixed_point_type. Update all callers.
7326 * ada-valprint.c (ada_value_print_num): Replace call to
7327 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7328
a51951c2
KB
73292020-05-14 Kevin Buettner <kevinb@redhat.com>
7330
7331 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7332 processors.
7333 (cpu_supports_bts): Add CV_AMD case.
7334
29d6859f
LM
73352020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7336 Simon Marchi <simon.marchi@efficios.com>
7337
7338 * infrun.c (stop_all_threads): Collect multiple wait events at
7339 each pass.
7340
78134374
SM
73412020-05-14 Simon Marchi <simon.marchi@efficios.com>
7342
7343 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7344 type::code instead.
7345
67607e24
SM
73462020-05-14 Simon Marchi <simon.marchi@efficios.com>
7347
7348 * gdbtypes.h (struct type) <code, set_code>: New methods.
7349 (TYPE_CODE): Use type::code. Change all call sites used to set
7350 the code to use type::set_code instead.
7351
a05575d3
TBA
73522020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7353 Tom de Vries <tdevries@suse.de>
7354 Pedro Alves <palves@redhat.com>
7355
7356 PR threads/25478
7357 * infrun.c (stop_all_threads): Do NOT ignore
7358 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7359 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7360 received.
7361 (handle_no_resumed): Remove code handling a live inferior with no
7362 threads.
7363 * remote.c (has_single_non_exited_thread): New.
7364 (remote_target::update_thread_list): Do not delete a thread if is
7365 the last thread of the process.
7366 * thread.c (thread_select): Call delete_exited_threads instead of
7367 prune_threads.
7368
6ad82919
TBA
73692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7370
7371 * infrun.c (stop_all_threads): Enable/disable thread events of all
7372 targets. Move a debug message denoting the end of the function
7373 into the SCOPED_EXIT block.
7374
d890404b
TBA
73752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7376
7377 * process-stratum-target.h: Include <set>.
7378 (all_non_exited_process_targets, switch_to_target_no_thread): New
7379 function declarations.
7380 * process-stratum-target.c (all_non_exited_process_targets)
7381 (switch_to_target_no_thread): New function implementations.
7382
293b3ebc
TBA
73832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7384
7385 * infrun.c (handle_inferior_event): Extract out a piece of code
7386 into...
7387 (mark_non_executing_threads): ...this new function.
7388
7ca9b62a
TBA
73892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7390
7391 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7392 use.
7393
fc75c28b
TBA
73942020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7395
7396 * regcache.c (regcache_read_pc_protected): New function
7397 implementation that returns 0 if the PC cannot read via
7398 'regcache_read_pc'.
7399 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7400 instead of 'regcache_read_pc'.
7401 (keep_going_pass_signal): Ditto.
7402
a89febbd
TT
74032020-05-13 Tom Tromey <tromey@adacore.com>
7404
7405 * ada-lang.c (align_value): Remove.
7406 (ada_template_to_fixed_record_type_1): Use align_up.
7407
f7e23710
TBA
74082020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7409
7410 * async-event.c: Update the copyright year.
7411 * async-event.h: Update the copyright year.
7412
02ff80c2
SM
74132020-05-12 Simon Marchi <simon.marchi@efficios.com>
7414
7415 * objfiles.h (is_addr_in_objfile,
7416 shared_objfile_contains_address_p): Return bool.
7417 * objfile.c (is_addr_in_objfile,
7418 shared_objfile_contains_address_p): Return bool.
7419
4fd6c7e8
TT
74202020-05-11 Tom Tromey <tromey@adacore.com>
7421
7422 * cli/cli-cmds.c (info_command): Restore.
7423 (_initialize_cli_cmds): Use add_prefix_command for "info".
7424 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7425
5eb68a39
TT
74262020-05-11 Tom Tromey <tromey@adacore.com>
7427
7428 * ada-lang.c (ada_value_primitive_field): Now public.
7429 * ada-lang.h (ada_value_primitive_field): Declare.
7430 * ada-valprint.c (print_field_values): Use
7431 ada_value_primitive_field for wrapper fields.
7432
7666722f
TV
74332020-05-11 Tom de Vries <tdevries@suse.de>
7434
7435 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7436 MODULE_DOMAIN.
7437
3ee6bb11
TV
74382020-05-11 Tom de Vries <tdevries@suse.de>
7439
7440 PR symtab/25941
7441 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7442 with length 0, if not gdb-produced.
7443 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7444
43434996
TV
74452020-05-09 Tom de Vries <tdevries@suse.de>
7446
7447 PR gdb/25955
7448 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7449 calculation.
7450
2f78cffc
TT
74512020-05-09 Tom Tromey <tom@tromey.com>
7452
7453 * top.c (server_command): Now bool.
7454 * top.h (server_command): Now bool.
7455
4f7bc5ed
TT
74562020-05-08 Tom Tromey <tromey@adacore.com>
7457
7458 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7459 already being processed.
7460
8be4b118
TT
74612020-05-08 Tom Tromey <tom@tromey.com>
7462
7463 * printcmd.c (struct display) <next>: Remove.
7464 <display>: New constructor.
7465 <exp_string>: Now a std::string.
7466 <enabled_p>: Now a bool.
7467 (display_number): Move definition earlier.
7468 (displays): Rename from display_chain. Now a std::vector.
7469 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7470 (display_command): Update.
7471 (do_one_display, disable_display)
7472 (enable_disable_display_command, do_enable_disable_display):
7473 Update.
7474 (free_display): Remove.
7475 (clear_displays): Rewrite.
7476 (delete_display): Update.
7477 (map_display_numbers): Use function_view. Remove "data"
7478 parameter. Update.
7479 (do_delete_display): Remove.
7480 (undisplay_command): Update.
7481 (do_one_display, do_displays, disable_display)
7482 (info_display_command): Update.
7483 (do_enable_disable_display): Remove.
7484 (enable_disable_display_command)
7485 (clear_dangling_display_expressions): Update.
7486
94c93c35
TT
74872020-05-08 Tom Tromey <tom@tromey.com>
7488
7489 * symtab.c (set_symbol_cache_size)
7490 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7491 (maintenance_print_symbol_cache_statistics): Update.
7492 * symmisc.c (print_symbol_bcache_statistics)
7493 (print_objfile_statistics, maintenance_print_objfiles)
7494 (maintenance_info_symtabs, maintenance_check_symtabs)
7495 (maintenance_expand_symtabs, maintenance_info_line_tables):
7496 Update.
7497 * symfile-debug.c (set_debug_symfile): Update.
7498 * source.c (forget_cached_source_info): Update.
7499 * python/python.c (gdbpy_progspaces): Update.
7500 * psymtab.c (maintenance_info_psymtabs): Update.
7501 * probe.c (parse_probes): Update.
7502 * linespec.c (iterate_over_all_matching_symtabs)
7503 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7504 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7505 * exec.c (exec_target::close): Update.
7506 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7507 * breakpoint.c (print_one_breakpoint_location)
7508 (create_longjmp_master_breakpoint)
7509 (create_std_terminate_master_breakpoint): Update.
7510 * progspace.c (program_spaces): Now a std::vector.
7511 (maybe_new_address_space): Update.
7512 (add_program_space): Remove.
7513 (program_space::program_space): Update.
7514 (remove_program_space): Update.
7515 (number_of_program_spaces): Remove.
7516 (print_program_space, update_address_spaces): Update.
7517 * progspace.h (program_spaces): Change type.
7518 (ALL_PSPACES): Remove.
7519 (number_of_program_spaces): Don't declare.
7520 (struct program_space) <next>: Remove.
7521
a1fd1ac9
TT
75222020-05-08 Tom Tromey <tom@tromey.com>
7523
7524 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7525 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7526 (enable_break): Update.
7527 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7528 (frv_fdpic_find_canonical_descriptor): Update.
7529 (frv_fetch_objfile_link_map): Update.
7530 * progspace.c (program_space::free_all_objfiles): Update.
7531 (program_space::solibs): New method.
7532 * progspace.h (struct program_space) <solibs>: New method.
7533 * solist.h (master_so_list): Don't declare.
7534 (ALL_SO_LIBS): Remove.
7535 * solib.h (so_list_head): Remove.
7536 (update_solib_list): Update comment.
7537 * solib.c (master_so_list): Remove.
7538 (solib_used, update_solib_list, solib_add)
7539 (info_sharedlibrary_command, clear_solib)
7540 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7541
38eae084
TT
75422020-05-08 Tom Tromey <tom@tromey.com>
7543
7544 * extension.c (extension_languages): Now a std::array.
7545 (ALL_EXTENSION_LANGUAGES): Remove.
7546 (get_ext_lang_defn, get_ext_lang_of_file)
7547 (eval_ext_lang_from_control_command): Update.
7548 (finish_ext_lang_initialization)
7549 (auto_load_ext_lang_scripts_for_objfile)
7550 (ext_lang_type_printers::ext_lang_type_printers)
7551 (apply_ext_lang_type_printers)
7552 (ext_lang_type_printers::~ext_lang_type_printers)
7553 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7554 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7555 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7556 (get_matching_xmethod_workers, ext_lang_colorize)
7557 (ext_lang_before_prompt): Update.
7558 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7559
596dc4ad
TT
75602020-05-08 Tom Tromey <tom@tromey.com>
7561
7562 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7563 overload.
7564 <swap_string, m_string>: Remove.
7565 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7566 Update.
7567 * stabsread.c (define_symbol, read_type): Update.
7568 * linespec.c (find_linespec_symbols): Update.
7569 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7570 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7571 * dbxread.c (read_dbx_symtab): Update.
7572 * cp-support.h (cp_canonicalize_string_full)
7573 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7574 Return unique_xmalloc_ptr.
7575 * cp-support.c (inspect_type): Update.
7576 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7577 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7578 Likewise.
7579 * c-typeprint.c (print_name_maybe_canonical): Update.
7580 * break-catch-throw.c (check_status_exception_catchpoint):
7581 Update.
7582
bf4cb9be
TV
75832020-05-08 Tom de Vries <tdevries@suse.de>
7584
7585 * infrun.c (follow_fork): Copy current_line and current_symtab to
7586 child thread.
7587
a1b68f28
SM
75882020-05-07 Simon Marchi <simon.marchi@efficios.com>
7589
7590 * async-event.c (struct async_signal_handler, struct
7591 async_event_handler): Reformat, remove typedef.
7592
98d48915
SM
75932020-05-07 Simon Marchi <simon.marchi@efficios.com>
7594
7595 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7596 access thistype->main_type->dyn_prop_list directly.
7597
7aa91313
SM
75982020-05-07 Simon Marchi <simon.marchi@efficios.com>
7599
7600 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7601 (remove_dyn_prop): Remove. Update all users to use
7602 type::remove_dyn_prop.
7603 * gdbtypes.c (remove_dyn_prop): Rename to...
7604 (type::remove_dyn_prop): ... this.
7605
5c54719c
SM
76062020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7607
7608 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7609 (add_dyn_prop): Remove. Update all users to use
7610 type::add_dyn_prop.
7611 * gdbtypes.c (add_dyn_prop): Rename to...
7612 (type::add_dyn_prop): ... this.
7613
24e99c6c
SM
76142020-05-07 Simon Marchi <simon.marchi@efficios.com>
7615
7616 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7617 (get_dyn_prop): Remove. Update all users to use
7618 type::dyn_prop.
7619 * gdbtypes.c (get_dyn_prop): Rename to...
7620 (type::dyn_prop): ... this.
7621
0d4bf016
SM
76222020-05-06 Simon Marchi <simon.marchi@efficios.com>
7623
7624 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7625
ac4a4f1c
SM
76262020-05-06 Simon Marchi <simon.marchi@efficios.com>
7627
7628 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7629 instruction, skip it if it's there.
7630
a3bbacc1
SM
76312020-05-05 Simon Marchi <simon.marchi@efficios.com>
7632
7633 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7634
c3236f84
SM
76352020-05-04 Simon Marchi <simon.marchi@efficios.com>
7636
7637 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7638 * gdbtypes.c (recursive_dump_type): Remove use of
7639 TYPE_INCOMPLETE.
7640
3b6acaee
TT
76412020-05-03 Tom Tromey <tom@tromey.com>
7642
7643 * breakpoint.c (catch_command, tcatch_command): Remove.
7644 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7645 add_show_prefix_cmd.
7646 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7647 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7648 Remove.
7649 (add_internal_problem_command): Use add_basic_prefix_cmd,
7650 add_show_prefix_cmd.
7651 * mips-tdep.c (set_mipsfpu_command): Remove.
7652 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7653 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7654 (_initialize_index_cache): Use add_basic_prefix_cmd.
7655 * memattr.c (dummy_cmd): Remove.
7656 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7657 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7658 (_initialize_tui_win): Use add_basic_prefix_cmd,
7659 add_show_prefix_cmd.
7660 * cli/cli-logging.c (set_logging_command): Remove.
7661 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7662 add_show_prefix_cmd.
7663 (show_logging_command): Remove.
7664 * target.c (target_command): Remove.
7665 (add_target): Use add_basic_prefix_cmd.
7666
a51119cd
HD
76672020-05-02 Hannes Domani <ssbssa@yahoo.de>
7668
7669 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7670
652fc23a 76712020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7672
652fc23a
PW
7673 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7674 info_command.
7675
117539e6
KR
76762020-04-30 Kamil Rytarowski <n54@gmx.com>
7677
7678 * nbsd-nat.c (nbsd_enable_proc_events)
7679 (nbsd_nat_target::post_startup_inferior): Add.
7680 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7681 (nbsd_nat_target::update_thread_list): Rewrite.
7682 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7683 "PTRACE_LWP_CREATE".
7684 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7685
102e38eb 76862020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7687
102e38eb
PW
7688 * stack.c (_initialize_stack): Remove duplicated creation
7689 of "frame" command and "f" alias.
7690
ee9d1e5f
HD
76912020-04-30 Hannes Domani <ssbssa@yahoo.de>
7692
7693 PR gdb/18706
7694 * gdbtypes.c (check_typedef): Calculate size of array of
7695 stubbed type.
7696
627c7fb8
HD
76972020-04-30 Hannes Domani <ssbssa@yahoo.de>
7698
7699 PR gdb/15559
7700 * i386-tdep.c (i386_push_dummy_call): Call
7701 i386_thiscall_push_dummy_call.
7702 (i386_thiscall_push_dummy_call): New function.
7703 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7704 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7705 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7706
ffc2844e
SM
77072020-04-29 Simon Marchi <simon.marchi@efficios.com>
7708
7709 * gdbarch.sh (do_read): Add shellcheck disable directive for
7710 warning SC2162.
7711
1207375d
SM
77122020-04-29 Simon Marchi <simon.marchi@efficios.com>
7713
7714 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7715 "referenced but not assigned" warning.
7716
9fdb2916
SM
77172020-04-29 Simon Marchi <simon.marchi@efficios.com>
7718
7719 * gdbarch.sh: Remove code that sets fallbackdefault.
7720
759cea5e
SM
77212020-04-29 Simon Marchi <simon.marchi@efficios.com>
7722
7723 * gdbarch.sh: Use shell operators && and || instead of
7724 -a and -o.
7725
cb02ab24
SM
77262020-04-29 Simon Marchi <simon.marchi@efficios.com>
7727
7728 * gdbarch.sh: Use $(...) instead of `...`.
7729
a6fc5ffc
SM
77302020-04-29 Simon Marchi <simon.marchi@efficios.com>
7731
7732 * gdbarch.sh: Use double quotes around variables.
7733
8d113d13
SM
77342020-04-29 Simon Marchi <simon.marchi@efficios.com>
7735
7736 * gdbarch.sh: Use %s with printf, instead of variables in the
7737 format string.
7738
ed6acedd
TT
77392020-04-29 Tom Tromey <tromey@adacore.com>
7740
7741 PR ada/25875:
7742 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7743 type fields here.
7744 (read_enumeration_type): Call
7745 update_enumeration_type_from_children later. Update comments.
7746 (process_enumeration_scope): Don't create type fields.
7747
b68b1b58
KR
77482020-04-29 Kamil Rytarowski <n54@gmx.com>
7749
7750 * nbsd-tdep.c: Include "xml-syscall.h".
7751 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7752
f94b2e03
KR
77532020-04-29 Kamil Rytarowski <n54@gmx.com>
7754
7755 * nbsd-nat.c: Include "sys/wait.h".
7756 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7757 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7758 (nbsd_nat_target::remove_exec_catchpoint)
7759 (nbsd_nat_target::set_syscall_catchpoint): Add.
7760 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7761 (nbsd_nat_target::insert_exec_catchpoint)
7762 (nbsd_nat_target::remove_exec_catchpoint)
7763 (nbsd_nat_target::set_syscall_catchpoint): Add.
7764 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7765 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7766 `nbsd_get_syscall_number'.
7767
fc49bc72
TT
77682020-04-29 Tom Tromey <tom@tromey.com>
7769
7770 * stack.c (print_block_frame_labels): Remove.
7771
d642b692
HD
77722020-04-29 Hannes Domani <ssbssa@yahoo.de>
7773
7774 PR gdb/17320
7775 * ada-valprint.c (val_print_packed_array_elements): Move array
7776 end bracket to new line.
7777 (ada_val_print_string): Remove extra spaces before first array
7778 element.
7779 * c-valprint.c (c_value_print_array): Likewise.
7780 * m2-valprint.c (m2_print_array_contents): Likewise.
7781 (m2_value_print_inner): Likewise.
7782 * p-valprint.c (pascal_value_print_inner): Likewise.
7783 * valprint.c (generic_val_print_array): Likewise.
7784 (value_print_array_elements): Move first array element and array
7785 end bracket to new line.
7786
ea90f227
TV
77872020-04-29 Tom de Vries <tdevries@suse.de>
7788
7789 PR symtab/25889
7790 * linespec.c (find_method): Fix ix calculation.
7791
4498ef4f
KR
77922020-04-28 Kamil Rytarowski <n54@gmx.com>
7793
7794 * syscalls/update-netbsd.sh: New file.
7795 * syscalls/netbsd.xml: Regenerate.
7796 * data-directory/Makefile.in: Register `netbsd.xml' in
7797 `SYSCALLS_FILES'.
7798
a55e30b5
SM
77992020-04-28 Simon Marchi <simon.marchi@efficios.com>
7800
7801 * syscalls/update-freebsd.sh: Add double quotes.
7802
2b2fbab8
TT
78032020-04-28 Tom Tromey <tom@tromey.com>
7804
7805 * NEWS: Update.
7806 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7807 (cmdpy_init): Allow class_tui.
7808
a65189c9
TV
78092020-04-28 Mark Williams <mark@myosotissp.com>
7810
7811 PR gdb/24480
7812 * dwarf2read.c: Add missing assingments to list_in_scope when
7813 start_symtab was already called.
7814
1b95cdb7
SM
78152020-04-28 Simon Marchi <simon.marchi@efficios.com>
7816
7817 PR gdb/25881
7818 * dwarf2/read.c (offset_map_type): Use
7819 gdb:hash_enum<sect_offset> as hash function.
7820
15cd93d0
TV
78212020-04-28 Tom de Vries <tdevries@suse.de>
7822
7823 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7824 with DW_AT_signature.
7825
1eb39914
SM
78262020-04-27 Simon Marchi <simon.marchi@efficios.com>
7827
7828 * configure.ac: Remove check for fs_base/gs_base in
7829 user_regs_struct.
7830 * configure: Re-generate.
7831 * config.in: Re-generate.
7832 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7833 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7834 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7835
991a3e2e
LM
78362020-04-27 Luis Machado <luis.machado@linaro.org>
7837
7838 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7839 problematic inline frame unwinding situation.
7840 * frame.c (frame_id_computed_p): New function.
7841 * frame.h (frame_id_computed_p): New prototype.
7842
361ba0e8
TT
78432020-04-26 Tom Tromey <tom@tromey.com>
7844
7845 * command.h (enum command_class) <class_pseudo>: Remove.
7846
bc3609fd
PW
78472020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7848
7849 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7850 and whitespace.
7851
b9771db7
KR
78522020-04-25 Kamil Rytarowski <n54@gmx.com>
7853
ec16513e
SM
7854 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7855 `PT_GET_PROCESS_STATE' block.
b9771db7 7856
7151c1af
TT
78572020-04-24 Tom Tromey <tom@tromey.com>
7858
7859 * symtab.h (symbol_get_demangled_name): Don't declare.
7860 * symtab.c (symbol_get_demangled_name): Remove.
7861 (general_symbol_info::natural_name)
7862 (general_symbol_info::demangled_name): Update.
7863
906bb4c5
TT
78642020-04-24 Tom Tromey <tom@tromey.com>
7865
7866 PR rust/25025:
7867 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7868
bcfe6157
TT
78692020-04-24 Tom Tromey <tom@tromey.com>
7870
7871 PR symtab/12707:
7872 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7873 exists.
7874 (new_symbol): Likewise.
7875 * compile/compile-object-load.c (get_out_value_type): Use
7876 symbol_matches_search_name.
7877
f049a313
TT
78782020-04-24 Tom Tromey <tom@tromey.com>
7879
7880 * dwarf2/read.c (add_partial_symbol): Do not call
7881 compute_and_set_names.
7882
76e288d1
TT
78832020-04-24 Tom Tromey <tom@tromey.com>
7884
7885 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7886 overload.
7887
2467f4f6
TT
78882020-04-24 Tom Tromey <tom@tromey.com>
7889
7890 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7891 (add_psymbol_to_list): New overload. Make old overload call new
7892 one.
7893 * psympriv.h (add_psymbol_to_list): New overload.
7894
e61108c9
TT
78952020-04-24 Tom Tromey <tom@tromey.com>
7896
7897 * dwarf2/read.c (partial_die_info::read) <case
7898 DW_AT_linkage_name>: Use value_as_string.
7899 (dwarf2_string_attr): Use value_as_string.
7900 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7901 method.
7902 * dwarf2/attribute.c (attribute::value_as_string): New method.
7903
8c87a452
TT
79042020-04-24 Tom Tromey <tom@tromey.com>
7905
7906 * symtab.c (general_symbol_info::natural_name)
7907 (general_symbol_info::demangled_name): Check for language_rust.
7908
787de330
TT
79092020-04-24 Tom Tromey <tom@tromey.com>
7910
7911 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7912 (dwarf2_physname): ... from here.
7913 (partial_die_info::read): Add Rust "{" hack.
7914
ff985671
TT
79152020-04-24 Tom Tromey <tom@tromey.com>
7916
7917 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7918 method.
7919 (symbol_set_demangled_name): Don't declare.
7920 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7921 symbol_set_demangled_name.
7922 (general_symbol_info::set_language)
7923 (general_symbol_info::compute_and_set_names): Update.
7924 * minsyms.c (minimal_symbol_reader::install): Update.
7925 * dwarf2/read.c (new_symbol): Update.
7926
1acda803
TT
79272020-04-24 Tom Tromey <tromey@adacore.com>
7928
7929 PR python/23662:
7930 * python/py-type.c (convert_field): Handle
7931 FIELD_LOC_KIND_DWARF_BLOCK.
7932 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7933 (typy_get_dynamic): Nw function.
7934 (type_object_getset): Add "dynamic".
7935 * NEWS: Add entry.
7936
d656f129
TT
79372020-04-24 Tom Tromey <tromey@adacore.com>
7938
7939 * ada-typeprint.c (print_choices, print_variant_part)
7940 (print_record_field_types_dynamic): New functions.
7941 (print_record_field_types): Use print_record_field_types_dynamic.
7942
7d79de9a
TT
79432020-04-24 Tom Tromey <tromey@adacore.com>
7944
7945 * dwarf2/read.c (handle_data_member_location): New overload.
7946 (dwarf2_add_field): Use it.
7947 (decode_locdesc): Add "computed" parameter. Update comment.
7948 * gdbtypes.c (is_dynamic_type_internal): Also look for
7949 FIELD_LOC_KIND_DWARF_BLOCK.
7950 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7951 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7952 virtual base classes.
7953 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7954 FIELD_LOC_KIND_DWARF_BLOCK.
7955
f8e89861
TT
79562020-04-24 Tom Tromey <tromey@adacore.com>
7957
7958 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7959 * gdbtypes.c (is_dynamic_type_internal): Check
7960 TYPE_HAS_DYNAMIC_LENGTH.
7961 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7962 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7963 New macros.
7964 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7965 constant.
7966
9c6a1327
TT
79672020-04-24 Tom Tromey <tromey@adacore.com>
7968
7969 * dwarf2/read.c (struct variant_field): Rewrite.
7970 (struct variant_part_builder): New.
7971 (struct nextfield): Remove "variant" field. Add "offset".
7972 (struct field_info): Add "current_variant_part" and
7973 "variant_parts".
7974 (alloc_discriminant_info): Remove.
7975 (alloc_rust_variant): New function.
7976 (quirk_rust_enum): Update.
7977 (dwarf2_add_field): Set "offset" member. Don't handle
7978 DW_TAG_variant_part.
7979 (offset_map_type): New typedef.
7980 (convert_variant_range, create_one_variant)
7981 (create_one_variant_part, create_variant_parts)
7982 (add_variant_property): New functions.
7983 (dwarf2_attach_fields_to_type): Call add_variant_property.
7984 (read_structure_type): Don't handle DW_TAG_variant_part.
7985 (handle_variant_part, handle_variant): New functions.
7986 (handle_struct_member_die): Use them.
7987 (process_structure_scope): Don't handle variant parts.
7988 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7989 (struct discriminant_info): Remove.
7990 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7991 (struct main_type) <flag_discriminated_union>: Remove.
7992 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7993 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7994 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7995 Update.
7996 * valops.c (value_union_variant): Remove.
7997 * value.h (value_union_variant): Don't declare.
7998
b249d2c2
TT
79992020-04-24 Tom Tromey <tromey@adacore.com>
8000
8001 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8002 (ada_value_primitive_packed_val): Update.
8003 * ada-valprint.c (ada_value_print_1): Update.
8004 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8005 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8006 just an address. Use evaluate_for_locexpr_baton.
8007 (dwarf2_evaluate_property): Update.
8008 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8009 array_view.
8010 * findvar.c (default_read_var_value): Update.
8011 * gdbtypes.c (compute_variant_fields_inner)
8012 (resolve_dynamic_type_internal): Update.
8013 (resolve_dynamic_type): Change type of valaddr parameter.
8014 * gdbtypes.h (resolve_dynamic_type): Update.
8015 * valarith.c (value_subscripted_rvalue): Update.
8016 * value.c (value_from_contents_and_address): Update.
8017
61122aa9
TT
80182020-04-24 Tom Tromey <tromey@adacore.com>
8019
8020 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8021 "push_initial_value" parameter.
8022 (dwarf2_evaluate_property): Likewise.
8023 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8024
ef83a141
TT
80252020-04-24 Tom Tromey <tromey@adacore.com>
8026
8027 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8028 (variant::matches, compute_variant_fields_recurse)
8029 (compute_variant_fields_inner, compute_variant_fields): New
8030 functions.
8031 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8032 Use resolved_type after type is made.
8033 (operator==): Add new cases.
8034 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8035 (struct discriminant_range, struct variant, struct variant_part):
8036 New.
8037 (union dynamic_prop_data) <variant_parts, original_type>: New
8038 members.
8039 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8040 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8041 constants.
8042 * value.c (unpack_bits_as_long): Now public.
8043 * value.h (unpack_bits_as_long): Declare.
8044
675127ec
TT
80452020-04-24 Tom Tromey <tromey@adacore.com>
8046
8047 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8048 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8049
9852ceef
HD
80502020-04-24 Hannes Domani <ssbssa@yahoo.de>
8051
8052 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8053
7632c6ce
KR
80542020-04-24 Kamil Rytarowski <n54@gmx.com>
8055
8056 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8057 (remove_fork_catchpoint, post_startup_inferior)
8058 (post_attach): Move...
8059 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8060 (remove_fork_catchpoint, post_startup_inferior)
8061 (post_attach): ...here.
8062 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8063 (remove_fork_catchpoint, post_startup_inferior)
8064 (post_attach): Move...
8065 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8066 (remove_fork_catchpoint, post_startup_inferior)
8067 (post_attach): ...here.
8068
7be2bb4f
TT
80692020-04-24 Tom Tromey <tromey@adacore.com>
8070
8071 * nat/windows-nat.h (struct windows_thread_info)
8072 <pc_adjusted>: New member.
8073 * windows-nat.c (windows_fetch_one_register): Check
8074 pc_adjusted.
8075 (windows_nat_target::get_windows_debug_event)
8076 (windows_nat_target::wait): Set pc_adjusted.
8077
f80cb3b4
TV
80782020-04-24 Tom de Vries <tdevries@suse.de>
8079
8080 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8081 Run gdb-add-index inside temp dir.
8082
29514b87
TT
80832020-04-23 Tom Tromey <tromey@adacore.com>
8084
8085 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8086 in loop.
8087
5939967b
LM
80882020-04-23 Luis Machado <luis.machado@linaro.org>
8089
8090 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8091 get_frame_register instead of gdbarch_unwind_pc.
8092
70bc38f5
TV
80932020-04-23 Tom de Vries <tdevries@suse.de>
8094
8095 * symtab.c (lookup_global_symbol): Prefer def over decl.
8096
de82891c
TV
80972020-04-23 Tom de Vries <tdevries@suse.de>
8098
8099 PR symtab/25807
8100 * block.c (best_symbol, better_symbol): Promote to external.
8101 * block.h (best_symbol, better_symbol): Declare.
8102 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8103 decl.
8104
ecc6c606
TT
81052020-04-23 Tom Tromey <tromey@adacore.com>
8106
8107 PR ada/25837:
8108 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8109 "const char *", not a "const std::string &".
8110 <name_and_matcher::operator==>: Update.
8111 * unittests/lookup_name_info-selftests.c: Change type of
8112 "result".
8113
740480b8
TT
81142020-04-23 Tom Tromey <tom@tromey.com>
8115
8116 * inferior.h (iterate_over_inferiors): Don't declare.
8117 * inferior.c (iterate_over_inferiors): Remove.
8118 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8119 Remove.
8120 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8121 use iterate_over_inferiors.
8122 (darwin_resume_inferior_it)
8123 (struct resume_inferior_threads_param)
8124 (darwin_resume_inferior_threads_it): Remove.
8125 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8126
ae3ab1f0
TV
81272020-04-23 Tom de Vries <tdevries@suse.de>
8128
8129 * blockframe.c (find_pc_partial_function): Use
8130 find_pc_sect_compunit_symtab rather than
8131 objfile->sf->qf->find_pc_sect_compunit_symtab.
8132
317d2668
TV
81332020-04-22 Tom de Vries <tdevries@suse.de>
8134
8135 PR symtab/25764
8136 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8137 in psymtabs.
8138
eea9e357
TV
81392020-04-22 Tom de Vries <tdevries@suse.de>
8140
8141 PR symtab/25801
8142 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8143 symtabs.
8144
3d5afab3
TV
81452020-04-22 Tom de Vries <tdevries@suse.de>
8146
8147 PR symtab/25700
8148 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8149 CU if already created.
8150
d43b7a2d
TBA
81512020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8152
8153 * infrun.c (displaced_step_fixup): Switch to the event_thread
8154 before calling displaced_step_restore, not after.
8155
d89edf9b
MM
81562020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8157
8158 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8159 its inferior is not recorded by us.
8160 (record_btrace_target_open): Replace call to
8161 all_non_exited_threads () with call to current_inferior
8162 ()->non_exited_threads ().
8163 (record_btrace_target::stop_recording): Likewise.
8164 (record_btrace_target::close): Likewise.
8165 (record_btrace_target::wait): Likewise.
8166 (record_btrace_target::record_stop_replaying): Likewise.
8167
5897fd49
MM
81682020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8169
8170 * btrace.c (btrace_enable): Throw an error on double enables and
8171 when enabling recording fails.
8172 (btrace_disable): Throw an error if the thread is not recorded.
8173
1a476b6d
MM
81742020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8175
8176 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8177 request if we do not have a thread_info.
8178
4778a5f8
TV
81792020-04-21 Tom de Vries <tdevries@suse.de>
8180
8181 PR gdb/25471
8182 * thread.c
8183 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8184 exception in get_frame_id.
8185
0fa7617d
TT
81862020-04-20 Tom Tromey <tromey@adacore.com>
8187
8188 * python/python.c (struct gdbpy_event): Mark move constructor as
8189 noexcept.
8190 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8191 constructor as noexcept.
8192 * completer.h (struct completion_result): Mark move constructor as
8193 noexcept.
8194 * completer.c (completion_result::completion_result): Use
8195 initialization style. Don't call reset_match_list.
8196
ad23bda0
MS
81972020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8198
8199 * MAINTAINERS (Write After Approval): Add myself.
8200
45e1f031
TT
82012020-04-18 Tom Tromey <tom@tromey.com>
8202
8203 * windows-tdep.c (init_w32_command_list)
8204 (w32_prefix_command_valid): Restore.
8205 (_initialize_windows_tdep): Call init_w32_command_list.
8206
08feed99
TT
82072020-04-18 Tom Tromey <tom@tromey.com>
8208
8209 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8210 * value.c (value_fn_field): Update.
8211 * valops.c (find_function_in_inferior)
8212 (value_allocate_space_in_inferior): Update.
8213 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8214 Update.
8215 * tui/tui-source.c (tui_source_window::set_contents): Update.
8216 * symtab.c (lookup_global_or_static_symbol)
8217 (find_function_start_sal_1, skip_prologue_sal)
8218 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8219 * symmisc.c (dump_msymbols, dump_symtab_1)
8220 (maintenance_print_one_line_table): Update.
8221 * symfile.c (init_entry_point_info, section_is_mapped)
8222 (list_overlays_command, simple_read_overlay_table)
8223 (simple_overlay_update_1): Update.
8224 * stap-probe.c (handle_stap_probe): Update.
8225 * stabsread.c (dbx_init_float_type, define_symbol)
8226 (read_one_struct_field, read_enum_type, read_range_type): Update.
8227 * source.c (info_line_command): Update.
8228 * python/python.c (gdbpy_source_objfile_script)
8229 (gdbpy_execute_objfile_script): Update.
8230 * python/py-type.c (save_objfile_types): Update.
8231 * python/py-objfile.c (py_free_objfile): Update.
8232 * python/py-inferior.c (python_new_objfile): Update.
8233 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8234 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8235 (maintenance_check_psymtabs): Update.
8236 * printcmd.c (info_address_command): Update.
8237 * objfiles.h (struct objfile) <arch>: New method, from
8238 get_objfile_arch.
8239 (get_objfile_arch): Don't declare.
8240 * objfiles.c (get_objfile_arch): Remove.
8241 (filter_overlapping_sections): Update.
8242 * minsyms.c (msymbol_is_function): Update.
8243 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8244 (output_nondebug_symbol): Update.
8245 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8246 (mdebug_expand_psymtab): Update.
8247 * machoread.c (macho_add_oso_symfile): Update.
8248 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8249 Update.
8250 * linux-fork.c (checkpoint_command): Update.
8251 * linespec.c (convert_linespec_to_sals): Update.
8252 * jit.c (finalize_symtab): Update.
8253 * infrun.c (insert_exception_resume_from_probe): Update.
8254 * ia64-tdep.c (ia64_find_unwind_table): Update.
8255 * hppa-tdep.c (internalize_unwinds): Update.
8256 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8257 Update.
8258 * gcore.c (call_target_sbrk): Update.
8259 * elfread.c (record_minimal_symbol, elf_symtab_read)
8260 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8261 (elf_gnu_ifunc_resolve_by_got): Update.
8262 * dwarf2/read.c (create_addrmap_from_index)
8263 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8264 (read_debug_names_from_section)
8265 (process_psymtab_comp_unit_reader, add_partial_symbol)
8266 (add_partial_subprogram, process_full_comp_unit)
8267 (read_file_scope, read_func_scope, read_lexical_block_scope)
8268 (read_call_site_scope, dwarf2_ranges_read)
8269 (dwarf2_record_block_ranges, dwarf2_add_field)
8270 (mark_common_block_symbol_computed, read_tag_pointer_type)
8271 (read_tag_string_type, dwarf2_init_float_type)
8272 (dwarf2_init_complex_target_type, read_base_type)
8273 (partial_die_info::read, partial_die_info::read)
8274 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8275 (dwarf2_fetch_die_loc_sect_off): Update.
8276 * dwarf2/loc.c (dwarf2_find_location_expression)
8277 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8278 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8279 (dwarf2_loc_desc_get_symbol_read_needs)
8280 (locexpr_describe_location_piece, locexpr_describe_location_1)
8281 (loclist_describe_location): Update.
8282 * dwarf2/index-write.c (write_debug_names): Update.
8283 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8284 * dtrace-probe.c (dtrace_process_dof): Update.
8285 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8286 (process_one_symbol): Update.
8287 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8288 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8289 (coff_read_enum_type): Update.
8290 * cli/cli-cmds.c (edit_command, list_command): Update.
8291 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8292 * breakpoint.c (create_overlay_event_breakpoint)
8293 (create_longjmp_master_breakpoint)
8294 (create_std_terminate_master_breakpoint)
8295 (create_exception_master_breakpoint, get_sal_arch): Update.
8296 * block.c (block_gdbarch): Update.
8297 * annotate.c (annotate_source_line): Update.
8298
0743fc83
TT
82992020-04-17 Tom Tromey <tromey@adacore.com>
8300
8301 * auto-load.c (show_auto_load_cmd): Remove.
8302 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8303 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8304 (maintenance_print_arc_command): Remove.
8305 * tui/tui-win.c (tui_command): Remove.
8306 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8307 * tui/tui-layout.c (tui_layout_command): Remove.
8308 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8309 * python/python.c (user_set_python, user_show_python): Remove.
8310 (_initialize_python): Use add_basic_prefix_cmd,
8311 add_show_prefix_cmd.
8312 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8313 (install_gdb_commands): Use add_basic_prefix_cmd,
8314 add_show_prefix_cmd.
8315 (info_guile_command): Remove.
8316 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8317 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8318 add_show_prefix_cmd.
8319 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8320 Remove do_set and do_show parameters.
8321 * cli/cli-style.c (set_style, show_style): Remove.
8322 (_initialize_cli_style): Use add_basic_prefix_cmd,
8323 add_show_prefix_cmd.
8324 (cli_style_option::add_setshow_commands): Remove do_set and
8325 do_show parameters.
8326 (cli_style_option::add_setshow_commands): Use
8327 add_basic_prefix_cmd, add_show_prefix_cmd.
8328 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8329 (set_style_name): Remove.
8330 * cli/cli-dump.c (dump_command, append_command): Remove.
8331 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8332 (tekhex_dump_command, binary_dump_command)
8333 (binary_append_command): Remove.
8334 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8335 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8336 (init_w32_command_list): Remove; move into ...
8337 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8338 * valprint.c (set_print, show_print, set_print_raw)
8339 (show_print_raw): Remove.
8340 (_initialize_valprint): Use add_basic_prefix_cmd,
8341 add_show_prefix_cmd.
8342 * typeprint.c (set_print_type, show_print_type): Remove.
8343 (_initialize_typeprint): Use add_basic_prefix_cmd,
8344 add_show_prefix_cmd.
8345 * record.c (set_record_command, show_record_command): Remove.
8346 (_initialize_record): Use add_basic_prefix_cmd,
8347 add_show_prefix_cmd.
8348 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8349 add_show_prefix_cmd.
8350 (info_command, show_command, set_debug, show_debug): Remove.
8351 * top.h (set_history, show_history): Don't declare.
8352 * top.c (set_history, show_history): Remove.
8353 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8354 (unset_tdesc_cmd): Remove.
8355 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8356 add_show_prefix_cmd.
8357 * symtab.c (info_module_command): Remove.
8358 (_initialize_symtab): Use add_basic_prefix_cmd.
8359 * symfile.c (overlay_command): Remove.
8360 (_initialize_symfile): Use add_basic_prefix_cmd.
8361 * sparc64-tdep.c (info_adi_command): Remove.
8362 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8363 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8364 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8365 add_show_prefix_cmd.
8366 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8367 (_initialize_serial): Use add_basic_prefix_cmd,
8368 add_show_prefix_cmd.
8369 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8370 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8371 add_show_prefix_cmd.
8372 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8373 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8374 add_show_prefix_cmd.
8375 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8376 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8377 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8378 add_show_prefix_cmd.
8379 * remote.c (remote_command, set_remote_cmd): Remove.
8380 (_initialize_remote): Use add_basic_prefix_cmd.
8381 * record-full.c (set_record_full_command)
8382 (show_record_full_command): Remove.
8383 (_initialize_record_full): Use add_basic_prefix_cmd,
8384 add_show_prefix_cmd.
8385 * record-btrace.c (cmd_set_record_btrace)
8386 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8387 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8388 (cmd_show_record_btrace_pt): Remove.
8389 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8390 add_show_prefix_cmd.
8391 * ravenscar-thread.c (set_ravenscar_command)
8392 (show_ravenscar_command): Remove.
8393 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8394 add_show_prefix_cmd.
8395 * mips-tdep.c (show_mips_command, set_mips_command)
8396 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8397 add_show_prefix_cmd.
8398 * maint.c (maintenance_command, maintenance_info_command)
8399 (maintenance_check_command, maintenance_print_command)
8400 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8401 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8402 add_show_prefix_cmd.
8403 (show_per_command_cmd): Remove.
8404 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8405 Remove.
8406 (maintenance_show_test_settings_cmd): Remove.
8407 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8408 add_show_prefix_cmd.
8409 * maint-test-options.c (maintenance_test_options_command):
8410 Remove.
8411 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8412 * macrocmd.c (macro_command): Remove
8413 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8414 * language.c (set_check, show_check): Remove.
8415 (_initialize_language): Use add_basic_prefix_cmd,
8416 add_show_prefix_cmd.
8417 * infcmd.c (unset_command): Remove.
8418 (_initialize_infcmd): Use add_basic_prefix_cmd.
8419 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8420 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8421 add_show_prefix_cmd.
8422 * go32-nat.c (go32_info_dos_command): Remove.
8423 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8424 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8425 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8426 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8427 (_initialize_frame): Use add_basic_prefix_cmd,
8428 add_show_prefix_cmd.
8429 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8430 (_initialize_dcache): Use add_basic_prefix_cmd,
8431 add_show_prefix_cmd.
8432 * cp-support.c (maint_cplus_command): Remove.
8433 (_initialize_cp_support): Use add_basic_prefix_cmd.
8434 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8435 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8436 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8437 add_basic_prefix_cmd, add_show_prefix_cmd.
8438 * breakpoint.c (save_command): Remove.
8439 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8440 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8441 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8442 add_show_prefix_cmd.
8443 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8444 (set_ada_command, show_ada_command): Remove.
8445 (_initialize_ada_language): Use add_basic_prefix_cmd,
8446 add_show_prefix_cmd.
8447 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8448
3557f442
KR
84492020-04-16 Kamil Rytarowski <n54@gmx.com>
8450
8451 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8452 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8453
16197208
SM
84542020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8455
8456 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8457 warning messages.
8458
00ac85d3
SM
84592020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8460
8461 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8462 import table is not at beginning of .idata section.
8463
381ce63f
PA
84642020-04-16 Pedro Alves <palves@redhat.com>
8465
8466 * inferior.c (delete_inferior): Use delete operator directly
8467 instead of delete_program_space.
8468 * progspace.c (add_program_space): New, factored out from
8469 program_space::program_space.
8470 (remove_program_space): New, factored out from
8471 delete_program_space.
8472 (program_space::program_space): Remove intro comment. Rewrite.
8473 (program_space::~program_space): Remove intro comment. Call
8474 remove_program_space.
8475 (delete_program_space): Delete.
8476 * progspace.h (program_space::program_space): Make explicit. Move
8477 intro comment here, adjusted.
8478 (program_space::~program_space): Move intro comment here,
8479 adjusted.
8480 (delete_program_space): Remove.
8481
a010605f
TT
84822020-04-16 Tom Tromey <tromey@adacore.com>
8483
8484 * windows-nat.c (windows_nat::handle_access_violation): New
8485 function.
8486 * nat/windows-nat.h (handle_access_violation): Declare.
8487 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8488 windows-nat.c. Call handle_access_violation.
8489
efba5c23
TV
84902020-04-16 Tom de Vries <tdevries@suse.de>
8491
8492 PR symtab/25791
8493 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8494 CUs without psymtab.
8495
97ed802d
KB
84962020-04-16 Kevin Buettner <kevinb@redhat.com>
8497
8498 * python/python.c (do_start_initialization): Don't call
8499 PyEval_InitThreads for Python 3.9 and beyond.
8500
c7d64809
KR
85012020-04-15 Kamil Rytarowski <n54@gmx.com>
8502
8503 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8504 thread functions.
8505 (obsd_nat_target::wait): Likewise.
8506
ce127a96
TT
85072020-04-15 Tom Tromey <tromey@adacore.com>
8508
8509 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8510 (DEBUG_EXCEPT): Use debug_printf.
8511
99f1bc6a
AB
85122020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8513
8514 * completer.c (class completion_tracker::completion_hash_entry)
8515 <hash_name>: New member function.
8516 (completion_tracker::discard_completions): New callback to hash a
8517 completion_hash_entry, pass this to htab_create_alloc.
8518
a0e9b532
JT
85192016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8520
8521 * windows-nat.c (windows_make_so): Warn rather than stopping with
8522 an error if realpath() fails.
8523
06ca5dd4
KR
85242020-04-14 Kamil Rytarowski <n54@gmx.com>
8525
8526 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8527 (nbsd_nat_target::info_proc): Add do_status.
8528
194d088f
TV
85292020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8530 Tom de Vries <tdevries@suse.de>
8531
8532 PR symtab/25718
8533 * psympriv.h (struct partial_symtab::read_symtab)
8534 (struct partial_symtab::expand_psymtab)
8535 (struct partial_symtab::read_dependencies): Update comments.
8536 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8537 read_symtab for includer.
8538 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8539 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8540 (struct dwarf2_include_psymtab::m_readin): Remove.
8541 (struct dwarf2_include_psymtab::includer): New member function.
8542 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8543
c1a66c06
TV
85442020-04-14 Tom de Vries <tdevries@suse.de>
8545
8546 PR symtab/25720
8547 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8548 with NULL symbol_matcher and lookup_name.
8549 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8550 and lookup_name.
8551 * dwarf2/read.c (dw2_expand_symtabs_matching)
8552 (dw2_debug_names_expand_symtabs_matching): Same.
8553 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8554 Make lookup_name a pointer. Update comment.
8555 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8556 lookup_name being a pointer.
8557 * symfile.c (expand_symtabs_matching): Same.
8558 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8559 * linespec.c (iterate_over_all_matching_symtabs): Same.
8560
400b5eca
TT
85612020-04-13 Tom Tromey <tom@tromey.com>
8562
8563 * run-on-main-thread.c: Update include.
8564 * unittests/main-thread-selftests.c: Update include.
8565 * tui/tui-win.c: Update include.
8566 * tui/tui-io.c: Update include.
8567 * tui/tui-interp.c: Update include.
8568 * tui/tui-hooks.c: Update include.
8569 * top.h: Update include.
8570 * top.c: Update include.
8571 * ser-base.c: Update include.
8572 * remote.c: Update include.
8573 * remote-notif.c: Update include.
8574 * remote-fileio.c: Update include.
8575 * record-full.c: Update include.
8576 * record-btrace.c: Update include.
8577 * python/python.c: Update include.
8578 * posix-hdep.c: Update include.
8579 * mingw-hdep.c: Update include.
8580 * mi/mi-main.c: Update include.
8581 * mi/mi-interp.c: Update include.
8582 * main.c: Update include.
8583 * linux-nat.c: Update include.
8584 * interps.c: Update include.
8585 * infrun.c: Update include.
8586 * inf-loop.c: Update include.
8587 * event-top.c: Update include.
8588 * event-loop.c: Move to ../gdbsupport/.
8589 * event-loop.h: Move to ../gdbsupport/.
8590 * async-event.h: Update include.
8591 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8592
93b54c8e
TT
85932020-04-13 Tom Tromey <tom@tromey.com>
8594
8595 * tui/tui-win.c: Include async-event.h.
8596 * remote.c: Include async-event.h.
8597 * remote-notif.c: Include async-event.h.
8598 * record-full.c: Include async-event.h.
8599 * record-btrace.c: Include async-event.h.
8600 * infrun.c: Include async-event.h.
8601 * event-top.c: Include async-event.h.
8602 * event-loop.h: Move some declarations to async-event.h.
8603 * event-loop.c: Don't include ser-event.h or top.h. Move some
8604 code to async-event.c.
8605 * async-event.h: New file.
8606 * async-event.c: New file.
8607 * Makefile.in (COMMON_SFILES): Add async-event.c.
8608 (HFILES_NO_SRCDIR): Add async-event.h.
8609
c1cd3163
TT
86102020-04-13 Tom Tromey <tom@tromey.com>
8611
8612 * utils.c (flush_streams): New function.
8613 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8614
29f2bf4f
TT
86152020-04-13 Tom Tromey <tom@tromey.com>
8616
8617 * event-loop.c (handle_file_event): Use warning, not
8618 printf_unfiltered.
8619
98029d02
TT
86202020-04-13 Tom Tromey <tom@tromey.com>
8621
8622 * event-loop.c: Include <chrono>.
8623
06cc9596
TT
86242020-04-13 Tom Tromey <tom@tromey.com>
8625
8626 * gdb_select.h: Move to ../gdbsupport/.
8627 * event-loop.c: Update include path.
8628 * top.c: Update include path.
8629 * ser-base.c: Update include path.
8630 * ui-file.c: Update include path.
8631 * ser-tcp.c: Update include path.
8632 * guile/scm-ports.c: Update include path.
8633 * posix-hdep.c: Update include path.
8634 * ser-unix.c: Update include path.
8635 * gdb_usleep.c: Update include path.
8636 * mingw-hdep.c: Update include path.
8637 * inflow.c: Update include path.
8638 * infrun.c: Update include path.
8639 * event-top.c: Update include path.
8640
8ae8e197
TT
86412020-04-13 Tom Tromey <tom@tromey.com>
8642
8643 * configure: Rebuild.
8644 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8645
58cf28e8
TT
86462020-04-13 Tom Tromey <tom@tromey.com>
8647
8648 * event-loop.h (start_event_loop): Don't declare.
8649 * event-loop.c (start_event_loop): Move...
8650 * main.c (start_event_loop): ...here. Now static.
8651
b7f999ae
SDJ
86522020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8653
8654 * MAINTAINERS: Update my email address.
8655
1085dfd4
KR
86562020-04-12 Kamil Rytarowski <n54@gmx.com>
8657
8658 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8659 IP_ALL.
8660
49d1d1f5
KR
86612020-04-12 Kamil Rytarowski <n54@gmx.com>
8662
8663 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8664 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8665
b4848d2a
KR
86662020-04-12 Kamil Rytarowski <n54@gmx.com>
8667
8668 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8669 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8670
51c133d5
KR
86712020-04-12 Kamil Rytarowski <n54@gmx.com>
8672
8673 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8674
54b8cbd0
KR
86752020-04-11 Kamil Rytarowski <n54@gmx.com>
8676
8677 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8678 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8679 (nbsd_nat_target::info_proc): New functions.
8680 * nbsd-nat.c (kinfo_get_vmmap): New function.
8681 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8682 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8683 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8684 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8685 functions.
8686 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8687 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8688 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8689 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8690 (KINFO_VME_FLAG_GROWS_DOWN): New.
8691
cf83625d
AS
86922020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8693
8694 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8695 bit shift.
8696
0c4311ab
TT
86972020-04-10 Tom Tromey <tromey@adacore.com>
8698
8699 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8700
3e65b3e9
TT
87012020-04-10 Tom Tromey <tromey@adacore.com>
8702
8703 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8704 separate debug files.
8705
13302e95
HD
87062020-04-10 Hannes Domani <ssbssa@yahoo.de>
8707
8708 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8709 Move to...
8710 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8711 ... here.
8712 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8713 Check for STATUS_WX86_BREAKPOINT.
8714 (windows_nat_target::wait): Same.
8715
bdfc1e8a
TV
87162020-04-10 Tom de Vries <tdevries@suse.de>
8717
8718 PR cli/25808
8719 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8720
f4460aec
SM
87212020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8722
8723 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8724 (Write After Approval): Remove Tom de Vries.
8725
a25198bb
BE
87262020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8727
8728 revert partially:
8729 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8730
aac66a4c
SM
8731 * buildsym.c (record_line): Fix undefined behavior and preserve
8732 lines at eof.
a25198bb 8733
206c98a6
KR
87342020-04-09 Kamil Rytarowski <n54@gmx.com>
8735
8736 * auxv.h (svr4_auxv_parse): New.
8737 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8738 and generic_auxv_parse.
8739 (svr4_auxv_parse): Add.
8740 * obsd-tdep.c: Include "auxv.h".
8741 (obsd_auxv_parse): Remove.
8742 (obsd_init_abi): Remove comment.
8743 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8744 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8745 * nbsd-tdep.c: Include "auxv.h".
8746 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8747
71fbdbaf
TT
87482020-04-08 Tom Tromey <tromey@adacore.com>
8749
8750 * nat/windows-nat.h (last_wait_event): Don't declare.
8751 (wait_for_debug_event): Update comment.
8752 * nat/windows-nat.c (last_wait_event): Now static.
8753
2c1d95e8
TT
87542020-04-08 Tom Tromey <tromey@adacore.com>
8755
8756 * windows-nat.c (wait_for_debug_event): Move to
8757 nat/windows-nat.c.
8758 * nat/windows-nat.h (wait_for_debug_event): Declare.
8759 * nat/windows-nat.c (wait_for_debug_event): Move from
8760 windows-nat.c. No longer static.
8761
d2977bc4
TT
87622020-04-08 Tom Tromey <tromey@adacore.com>
8763
8764 * windows-nat.c (get_windows_debug_event): Use
8765 fetch_pending_stop.
8766 * nat/windows-nat.h (fetch_pending_stop): Declare.
8767 * nat/windows-nat.c (fetch_pending_stop): New function.
8768
e758e19c
TT
87692020-04-08 Tom Tromey <tromey@adacore.com>
8770
8771 * windows-nat.c (windows_continue): Use matching_pending_stop and
8772 continue_last_debug_event.
8773 * nat/windows-nat.h (matching_pending_stop)
8774 (continue_last_debug_event): Declare.
8775 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8776 (matching_pending_stop, continue_last_debug_event): New
8777 functions.
8778
8d30e395
TT
87792020-04-08 Tom Tromey <tromey@adacore.com>
8780
8781 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8782 (handle_exception_result): Move to nat/windows-nat.h.
8783 (DEBUG_EXCEPTION_SIMPLE): Remove.
8784 (windows_nat::handle_ms_vc_exception): New function.
8785 (handle_exception): Move to nat/windows-nat.c.
8786 (get_windows_debug_event): Update.
8787 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8788 nat/windows-nat.c.
8789 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8790 (handle_exception_result): Move from windows-nat.c.
8791 (handle_exception): Declare.
8792 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8793 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8794 windows-nat.c.
8795
29de418d
TT
87962020-04-08 Tom Tromey <tromey@adacore.com>
8797
8798 * windows-nat.c (exception_count, event_count): Remove.
8799 (handle_exception, get_windows_debug_event)
8800 (do_initial_windows_stuff): Update.
8801
a816ba18
TT
88022020-04-08 Tom Tromey <tromey@adacore.com>
8803
8804 * windows-nat.c (windows_nat::handle_load_dll)
8805 (windows_nat::handle_unload_dll): Rename. No longer static.
8806 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8807 Declare.
8808
a00caa12
TT
88092020-04-08 Tom Tromey <tromey@adacore.com>
8810
8811 * complaints.h (stop_whining): Declare at top-level.
8812 (complaint): Don't declare stop_whining.
8813
d41b524f
TT
88142020-04-08 Tom Tromey <tromey@adacore.com>
8815
8816 * windows-nat.c (windows_nat::handle_output_debug_string):
8817 Rename. No longer static.
8818 * nat/windows-nat.h (handle_output_debug_string): Declare.
8819
3c76026d
TT
88202020-04-08 Tom Tromey <tromey@adacore.com>
8821
8822 * windows-nat.c (current_process_handle, current_process_id)
8823 (main_thread_id, last_sig, current_event, last_wait_event)
8824 (current_windows_thread, desired_stop_thread_id, pending_stops)
8825 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8826 (display_selectors, fake_create_process)
8827 (get_windows_debug_event): Update.
8828 * nat/windows-nat.h (current_process_handle, current_process_id)
8829 (main_thread_id, last_sig, current_event, last_wait_event)
8830 (current_windows_thread, desired_stop_thread_id, pending_stops)
8831 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8832 * nat/windows-nat.c (current_process_handle, current_process_id)
8833 (main_thread_id, last_sig, current_event, last_wait_event)
8834 (current_windows_thread, desired_stop_thread_id, pending_stops)
8835 (siginfo_er): New globals. Move from windows-nat.c.
8836
9d8679cc
TT
88372020-04-08 Tom Tromey <tromey@adacore.com>
8838
8839 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8840 (handle_load_dll): Update.
8841 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8842
28688adf
TT
88432020-04-08 Tom Tromey <tromey@adacore.com>
8844
8845 * windows-nat.c (enum thread_disposition_type): Move to
8846 nat/windows-nat.h.
8847 (windows_nat::thread_rec): Rename from thread_rec. No longer
8848 static.
8849 (windows_add_thread, windows_nat_target::fetch_registers)
8850 (windows_nat_target::store_registers, handle_exception)
8851 (windows_nat_target::resume, get_windows_debug_event)
8852 (windows_nat_target::get_tib_address)
8853 (windows_nat_target::thread_name)
8854 (windows_nat_target::thread_alive): Update.
8855 * nat/windows-nat.h (enum thread_disposition_type): Move from
8856 windows-nat.c.
8857 (thread_rec): Declare.
8858
4834dad0
TT
88592020-04-08 Tom Tromey <tromey@adacore.com>
8860
8861 * windows-nat.c: Add "using namespace".
8862 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8863 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8864
65bafd5b
TT
88652020-04-08 Tom Tromey <tromey@adacore.com>
8866
8867 * nat/windows-nat.h (struct windows_thread_info): Declare
8868 destructor.
8869 * nat/windows-nat.c (~windows_thread_info): New.
8870
0a4afda3
TT
88712020-04-08 Tom Tromey <tromey@adacore.com>
8872
8873 PR gdb/22992
8874 * windows-nat.c (current_event): Update comment.
8875 (last_wait_event, desired_stop_thread_id): New globals.
8876 (struct pending_stop): New.
8877 (pending_stops): New global.
8878 (windows_nat_target) <stopped_by_sw_breakpoint>
8879 <supports_stopped_by_sw_breakpoint>: New methods.
8880 (windows_fetch_one_register): Add assertions. Adjust PC.
8881 (windows_continue): Handle pending stops. Suspend other threads
8882 when stepping. Use last_wait_event
8883 (wait_for_debug_event): New function.
8884 (get_windows_debug_event): Use wait_for_debug_event. Handle
8885 pending stops. Queue spurious stops.
8886 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8887 (windows_nat_target::kill): Use wait_for_debug_event.
8888 * nat/windows-nat.h (struct windows_thread_info)
8889 <stopped_at_software_breakpoint>: New field.
8890 * nat/windows-nat.c (windows_thread_info::resume): Clear
8891 stopped_at_software_breakpoint.
8892
8e61ebec
TT
88932020-04-08 Tom Tromey <tromey@adacore.com>
8894
8895 * windows-nat.c (enum thread_disposition_type): New.
8896 (thread_rec): Replace "get_context" parameter with "disposition";
8897 change type.
8898 (windows_add_thread, windows_nat_target::fetch_registers)
8899 (windows_nat_target::store_registers, handle_exception)
8900 (windows_nat_target::resume, get_windows_debug_event)
8901 (windows_nat_target::get_tib_address)
8902 (windows_nat_target::thread_name)
8903 (windows_nat_target::thread_alive): Update.
8904
98a03287
TT
89052020-04-08 Tom Tromey <tromey@adacore.com>
8906
8907 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8908 (windows_continue): Use windows_continue::resume.
8909 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8910 resume>: Declare new methods.
8911 * nat/windows-nat.c: New file.
8912 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8913
7c7411bc
TT
89142020-04-08 Tom Tromey <tromey@adacore.com>
8915
8916 * windows-nat.c (windows_add_thread, windows_delete_thread)
8917 (windows_nat_target::fetch_registers)
8918 (windows_nat_target::store_registers, fake_create_process)
8919 (windows_nat_target::resume, windows_nat_target::resume)
8920 (get_windows_debug_event, windows_nat_target::wait)
8921 (windows_nat_target::pid_to_str)
8922 (windows_nat_target::get_tib_address)
8923 (windows_nat_target::get_ada_task_ptid)
8924 (windows_nat_target::thread_name)
8925 (windows_nat_target::thread_alive): Use lwp, not tid.
8926
2950fdf7
TT
89272020-04-08 Tom Tromey <tromey@adacore.com>
8928
8929 * windows-nat.c (handle_exception)
8930 (windows_nat_target::thread_name): Update.
8931 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8932 <name>: Now unique_xmalloc_ptr.
8933
62fe396b
TT
89342020-04-08 Tom Tromey <tromey@adacore.com>
8935
8936 * windows-nat.c (thread_rec)
8937 (windows_nat_target::fetch_registers): Update.
8938 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8939 Update comment.
8940 <debug_registers_changed, reload_context>: Now bool.
8941
e9534bd2
TT
89422020-04-08 Tom Tromey <tromey@adacore.com>
8943
8944 * windows-nat.c (windows_add_thread): Use new.
8945 (windows_init_thread_list, windows_delete_thread): Use delete.
8946 (get_windows_debug_event): Update.
8947 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8948 destructor, and initializers.
8949
ae1f8880
TT
89502020-04-08 Tom Tromey <tromey@adacore.com>
8951
8952 * windows-nat.c (struct windows_thread_info): Remove.
8953 * nat/windows-nat.h: New file.
8954
55a1e039
TT
89552020-04-08 Tom Tromey <tromey@adacore.com>
8956
8957 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8958 (thread_rec, windows_add_thread, windows_delete_thread)
8959 (windows_continue): Update.
8960
93366324
TT
89612020-04-08 Tom Tromey <tromey@adacore.com>
8962
8963 * windows-nat.c (struct windows_thread_info): Remove typedef.
8964 (thread_head): Remove.
8965 (thread_list): New global.
8966 (thread_rec, windows_add_thread, windows_init_thread_list)
8967 (windows_delete_thread, windows_continue): Update.
8968
0f2265e2
SM
89692020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8970
8971 * windows-tdep.h (windows_init_abi): Add comment.
8972 (cygwin_init_abi): New declaration.
8973 * windows-tdep.c: Split signal enumeration in two, one for
8974 Windows and one for Cygwin.
8975 (windows_gdb_signal_to_target): Only deal with signal of the
8976 Windows OS ABI.
8977 (cygwin_gdb_signal_to_target): New function.
8978 (windows_init_abi): Rename to windows_init_abi_common, don't set
8979 gdb_signal_to_target gdbarch method. Add new new function with
8980 this name.
8981 (cygwin_init_abi): New function.
8982 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8983 comment. Don't call windows_init_abi.
8984 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8985 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8986 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8987 i386_windows_init_abi_common, don't call windows_init_abi. Add
8988 a new function of this name.
8989 (i386_cygwin_init_abi): New function.
8990 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8991 OS ABI Cygwin.
8992
3810f182
SM
89932020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8994
8995 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8996 parameter.c.
8997 (dwarf2_read_gdb_index): Update.
8998
063f8e80
KR
89992020-04-07 Kamil Rytarowski <n54@gmx.com>
9000
9001 * nbsd-tdep.c: Include "objfiles.h".
9002 (nbsd_skip_solib_resolver): New.
9003 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9004
85a9510c 90052020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9006
9007 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9008 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9009 with DW_LLE_base_addressx are being emitted in DWARFv5.
9010 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9011 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9012 unsigned integer.
9013
9fc3eaae 90142020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9015
9016 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9017 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9018 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9019 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9020 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9021 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9022 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9023
9024
41144253 90252020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9026
9027 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9028 (read_loclist_index): New function definition.
9029 (lookup_loclist_base): New function definition.
9030 (read_loclist_header): New function definition.
9031 (dwarf2_cu): Add loclist_base and loclist_header field.
9032 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9033 (read_full_die_1): Read the value of DW_AT_loclists_base.
9034 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9035 (read_attribute_value): Handle DW_FORM_loclistx.
9036 (skip_one_die): Handle DW_FORM_loclistx.
9037 (loclist_header): New structure declaration.
9038 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9039
9f4e76a4
SM
90402020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9041
9042 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9043 constructor. Remove `addr` parameter from other constructor and
9044 add `per_cu` parameter.
9045 * dwarf2/read.c (create_partial_symtab): Update.
9046
25c11aca
TV
90472020-04-07 Tom de Vries <tdevries@suse.de>
9048
9049 PR symtab/25796
9050 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9051 (partial_die_info::fixup): Inherit has_const_value.
9052
5707e24b
TV
90532020-04-07 Tom de Vries <tdevries@suse.de>
9054
9055 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9056 symbols without address.
9057
05f00e22
KR
90582020-04-06 Kamil Rytarowski <n54@gmx.com>
9059
9060 * nbsd-nat.h (struct thread_info): Add forward declaration.
9061 (nbsd_nat_target::thread_alive): Add.
9062 (nbsd_nat_target::thread_name): Likewise.
9063 (nbsd_nat_target::update_thread_list): Likewise.
9064 (update_thread_list::post_attach): Likewise.
9065 (post_attach::pid_to_str): Likewise.
9066 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9067 (nbsd_thread_lister): Add.
9068 (nbsd_nat_target::thread_alive): Likewise.
9069 (nbsd_nat_target::thread_name): Likewise.
9070 (nbsd_add_threads): Likewise.
9071 (update_thread_list::post_attach): Likewise.
9072 (nbsd_nat_target::update_thread_list): Likewise.
9073 (post_attach::pid_to_str): Likewise.
9074
6ee448cc
TT
90752020-04-06 Tom Tromey <tromey@adacore.com>
9076
9077 * ada-valprint.c (print_variant_part): Extract the variant field.
9078 (print_field_values): Use the field as the outer value when
9079 recursing.
9080
dea34e8c
TT
90812020-04-06 Tom Tromey <tromey@adacore.com>
9082
9083 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9084 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9085 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9086 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9087 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9088
93689ce9
TT
90892020-04-06 Tom Tromey <tromey@adacore.com>
9090
9091 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9092 TYPE_CODE_ERROR.
9093
79743962
KR
90942020-04-06 Kamil Rytarowski <n54@gmx.com>
9095
9096 * nbsd-tdep.c: Include "gdbarch.h".
9097 Define enum with NetBSD signal numbers.
9098 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9099 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9100 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9101 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9102 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9103 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9104 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9105 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9106 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9107 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9108 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9109 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9110
9e7c9a03
HD
91112020-04-03 Hannes Domani <ssbssa@yahoo.de>
9112
9113 PR gdb/25325
9114 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9115
d9e49b61
TT
91162020-04-03 Tom Tromey <tromey@adacore.com>
9117
9118 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9119 Read constant block.
9120
e0fc5c3f
SM
91212020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9122
9123 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9124 (gdb_bfd_get_full_section_contents): New declaration.
9125 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9126 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9127 gdb_bfd_get_full_section_contents.
9128
e2ff18a0
SM
91292020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9130
9131 * exec.c (build_section_table): Replace internal_error with
9132 gdb_assert.
9133 (section_table_xfer_memory_partial): Likewise.
9134 * mdebugread.c (parse_partial_symbols): Likewise.
9135 * psymtab.c (lookup_partial_symbol): Likewise.
9136 * utils.c (wrap_here): Likewise.
9137
0830d301
TT
91382020-04-02 Tom Tromey <tromey@adacore.com>
9139
9140 * f-lang.c (build_fortran_types): Use arch_type to initialize
9141 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9142
e7da7f8f
TT
91432020-04-02 Tom Tromey <tromey@adacore.com>
9144
9145 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9146 of attributes.
9147
c90d28ac
AB
91482020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9149 Bernd Edlinger <bernd.edlinger@hotmail.de>
9150 Tom Tromey <tromey@adacore.com>
9151
9152 * buildsym.c (buildsym_compunit::record_line): Remove
9153 deduplication code.
9154
1aa98955
TV
91552020-04-02 Tom de Vries <tdevries@suse.de>
9156
9157 PR ada/24671
9158 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9159
d3214198
TV
91602020-04-02 Tom de Vries <tdevries@suse.de>
9161
9162 * dwarf2/read.c (dwarf2_gdb_index_functions,
9163 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9164 NULL.
9165 * psymtab.c (psym_lookup_global_symbol_language): New function.
9166 (psym_functions): Init psym_lookup_global_symbol_language with
9167 psym_lookup_global_symbol_language.
9168 * symfile-debug.c (debug_sym_quick_functions): Init
9169 lookup_global_symbol_language with NULL.
9170 * symfile.c (set_initial_language): Remove fixme comment.
9171 * symfile.h (struct quick_symbol_functions): Add
9172 lookup_global_symbol_language.
9173 * symtab.c (find_quick_global_symbol_language): New function.
9174 (find_main_name): Use find_quick_global_symbol_language.
9175
2836752f
SM
91762020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9177
9178 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9179
64dc2d4b
BE
91802020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9181
9182 * buildsym.c (record_line): Fix undefined behavior and preserve
9183 lines at eof.
9184
bbe3dc41
BE
91852020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9186
9187 * buildsym.c (record_line): Fix the resizing condition.
9188
6b4a335b
TT
91892020-04-01 Tom Tromey <tom@tromey.com>
9190
9191 * value.h (value_literal_complex): Add comment.
9192 * valops.c (value_literal_complex): Refer to value.h.
9193
3638a098
TT
91942020-04-01 Tom Tromey <tom@tromey.com>
9195
9196 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9197 (scalar_type): New rule, from typebase.
9198 (typebase): Use scalar_type. Recognize complex types.
9199 (field_name): Handle FLOAT_KEYWORD.
9200 (ident_tokens): Add _Complex and __complex__.
9201
c34e8714
TT
92022020-04-01 Tom Tromey <tom@tromey.com>
9203
9204 PR exp/25299:
9205 * valarith.c (promotion_type, complex_binop): New functions.
9206 (scalar_binop): Handle complex numbers. Use promotion_type.
9207 (value_pos, value_neg, value_complement): Handle complex numbers.
9208
fa649bb7
TT
92092020-04-01 Tom Tromey <tom@tromey.com>
9210
9211 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9212 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9213 (parse_number): Handle complex numbers.
9214
981c08ce
TT
92152020-04-01 Tom Tromey <tom@tromey.com>
9216
9217 * c-valprint.c (c_decorations): Change complex suffix to "i".
9218
4c99290d
TT
92192020-04-01 Tom Tromey <tom@tromey.com>
9220
9221 * valprint.c (generic_value_print_complex): Use accessors.
9222 * value.h (value_real_part, value_imaginary_part): Declare.
9223 * valops.c (value_real_part, value_imaginary_part): New
9224 functions.
9225 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9226
5b930b45
TT
92272020-04-01 Tom Tromey <tom@tromey.com>
9228
9229 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9230 (read_range_type): Update.
9231 * mdebugread.c (basic_type): Update.
9232 * go-lang.c (build_go_types): Use init_complex_type.
9233 * gdbtypes.h (struct main_type) <complex_type>: New member.
9234 (init_complex_type): Update.
9235 (arch_complex_type): Don't declare.
9236 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9237 Make name if none given. Use alloc_type_copy. Look for cached
9238 complex type.
9239 (arch_complex_type): Remove.
9240 (gdbtypes_post_init): Use init_complex_type.
9241 * f-lang.c (build_fortran_types): Use init_complex_type.
9242 * dwarf2/read.c (read_base_type): Update.
9243 * d-lang.c (build_d_types): Use init_complex_type.
9244 * ctfread.c (read_base_type): Update.
9245
53cccef1
TBA
92462020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9247
9248 * infrun.c (stop_all_threads): Update assertion, plus when
9249 stopping threads, take into account that we might be trying
9250 to stop an all-stop target.
9251 (stop_waiting): Call 'stop_all_threads' if there exists a
9252 non-stop target.
9253
a0714d30
TBA
92542020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9255
9256 * target.h (exists_non_stop_target): New function declaration.
9257 * target.c (exists_non_stop_target): New function.
9258
60e22c1e
HD
92592020-04-01 Hannes Domani <ssbssa@yahoo.de>
9260
9261 PR gdb/24789
9262 * eval.c (is_integral_or_integral_reference): New function.
9263 (evaluate_subexp_standard): Allow integer references in
9264 pointer arithmetic.
9265
e139a727
TBA
92662020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9267
9268 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9269 check for no ptid in the stop reply when the target is non-stop.
9270
e0802d59
TT
92712020-04-01 Tom Tromey <tromey@adacore.com>
9272
9273 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9274 "name" parameter to rvalue reference. Initialize m_name_holder.
9275 <lookup_name_info>: New overloads.
9276 <name>: Return gdb::string_view.
9277 <c_str>: New method.
9278 <make_ignore_params>: Update.
9279 <search_name_hash>: Update.
9280 <language_lookup_name>: Return const char *.
9281 <m_name>: Change type.
9282 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9283 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9284 (lookup_name_info::match_any): Update.
9285 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9286 Update.
9287 * minsyms.c (linkage_name_str): Update.
9288 * language.c (default_symbol_name_matcher): Update.
9289 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9290 Update.
9291 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9292 (ada_lookup_name_info::ada_lookup_name_info): Update.
9293 (literal_symbol_name_matcher): Update.
9294
8c072cb6
TT
92952020-04-01 Tom Tromey <tromey@adacore.com>
9296
9297 * psymtab.c (psymtab_search_name): Remove function.
9298 (psym_lookup_symbol): Create search name and lookup name here.
9299 (lookup_partial_symbol): Remove "name" parameter; add
9300 lookup_name.
9301 (psym_expand_symtabs_for_function): Update.
9302
6f29a534
TT
93032020-03-31 Joel Jones <joelkevinjones@gmail.com>
9304
9305 PR tui/25597:
9306 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9307
af62665e
TT
93082020-03-31 Tom Tromey <tromey@adacore.com>
9309
9310 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9311 memcpy.
9312
d1a89da5
NC
93132020-03-30 Nelson Chu <nelson.chu@sifive.com>
9314
9315 * features/riscv/32bit-csr.xml: Regenerated.
9316 * features/riscv/64bit-csr.xml: Regenerated.
9317
d8af9068
TT
93182020-03-30 Tom Tromey <tromey@adacore.com>
9319
9320 * ada-valprint.c (print_variant_part): Update.
9321 * ada-lang.h (ada_which_variant_applies): Update.
9322 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9323 outer_valaddr parameters; replace with "outer" value parameter.
9324 (to_fixed_variant_branch_type): Update.
9325
227c0bf4
PFC
93262020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9327
9328 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9329 <list>. Remove inclusion of observable.h.
9330 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9331 (struct arch_lwp_info): New struct.
9332 (class ppc_linux_dreg_interface): New class.
9333 (struct ppc_linux_process_info): New struct.
9334 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9335 <low_new_clone, low_forget_process, low_prepare_to_resume>
9336 <copy_thread_dreg_state, mark_thread_stale>
9337 <mark_debug_registers_changed, register_hw_breakpoint>
9338 <clear_hw_breakpoint, register_wp, clear_wp>
9339 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9340 <num_memory_accesses, get_trigger_type>
9341 <create_watchpoint_request, hwdebug_point_cmp>
9342 <init_arch_lwp_info, get_arch_lwp_info>
9343 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9344 methods.
9345 <struct ptid_hash>: New inner struct.
9346 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9347 members.
9348 (saved_dabr_value, hwdebug_info, max_slots_number)
9349 (struct hw_break_tuple, struct thread_points, ppc_threads)
9350 (have_ptrace_hwdebug_interface)
9351 (hwdebug_find_thread_points_by_tid)
9352 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9353 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9354 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9355 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9356 use m_dreg_interface.
9357 (hwdebug_point_cmp): Change to...
9358 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9359 reference arguments instead of pointers.
9360 (ppc_linux_nat_target::ranged_break_num_registers): Use
9361 m_dreg_interface.
9362 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9363 m_dreg_interface. Call register_hw_breakpoint.
9364 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9365 m_dreg_interface. Call clear_hw_breakpoint.
9366 (get_trigger_type): Change to...
9367 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9368 comment.
9369 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9370 use m_dreg_interface. Call register_hw_breakpoint.
9371 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9372 use m_dreg_interface. Call clear_hw_breakpoint.
9373 (can_use_watchpoint_cond_accel): Change to...
9374 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9375 method. Update comment, use m_dreg_interface and
9376 m_process_info.
9377 (calculate_dvc): Change to...
9378 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9379 m_dreg_interface.
9380 (num_memory_accesses): Change to...
9381 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9382 (check_condition): Change to...
9383 (ppc_linux_nat_target::check_condition): ...this method.
9384 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9385 comment, use m_dreg_interface.
9386 (create_watchpoint_request): Change to...
9387 (ppc_linux_nat_target::create_watchpoint_request): ...this
9388 method. Use m_dreg_interface.
9389 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9390 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9391 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9392 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9393 (ppc_linux_nat_target::low_forget_process)
9394 (ppc_linux_nat_target::low_new_fork)
9395 (ppc_linux_nat_target::low_new_clone)
9396 (ppc_linux_nat_target::low_delete_thread)
9397 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9398 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9399 only call mark_thread_stale.
9400 (ppc_linux_thread_exit): Remove.
9401 (ppc_linux_nat_target::stopped_data_address): Change to...
9402 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9403 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9404 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9405 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9406 comment. Call low_stopped_data_address.
9407 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9408 m_dreg_interface.
9409 (ppc_linux_nat_target::masked_watch_num_registers): Use
9410 m_dreg_interface.
9411 (ppc_linux_nat_target::copy_thread_dreg_state)
9412 (ppc_linux_nat_target::mark_thread_stale)
9413 (ppc_linux_nat_target::mark_debug_registers_changed)
9414 (ppc_linux_nat_target::register_hw_breakpoint)
9415 (ppc_linux_nat_target::clear_hw_breakpoint)
9416 (ppc_linux_nat_target::register_wp)
9417 (ppc_linux_nat_target::clear_wp)
9418 (ppc_linux_nat_target::init_arch_lwp_info)
9419 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9420 (_initialize_ppc_linux_nat): Remove observer callback.
9421
4db10d8f
PFC
94222020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9423
9424 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9425 (ppc_linux_nat_target::auxv_parse)
9426 (ppc_linux_nat_target::read_description)
9427 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9428 Move up.
9429
1310c1b0
PFC
94302020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9431
9432 * linux-nat.h (low_new_clone): New method.
9433 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9434
69b037c3
SM
94352020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9436
9437 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9438 (dbx_expand_psymtab): ... this.
9439 (start_psymtab): Update.
9440 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9441 (mdebug_expand_psymtab): ... this.
9442 (parse_partial_symbols): Update.
9443 (new_psymtab): Update.
9444 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9445 (xcoff_expand_psymtab): ... this.
9446 (xcoff_start_psymtab): Update.
9447
48993951
SM
94482020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9449
9450 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9451 <expand_dependencies>: ... this.
9452 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9453 (partial_symtab::expand_dependencies): ... this.
9454 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9455 Update.
9456 (dwarf2_psymtab::expand_psymtab): Update.
9457 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9458 * mdebugread.c (psymtab_to_symtab_1): Update.
9459 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9460
3ad83046
SM
94612020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9462
9463 * psympriv.h (discard_psymtab): Remove.
9464 * dbxread.c (dbx_end_psymtab): Update.
9465 * xcoffread.c (xcoff_end_psymtab): Update.
9466
4d1b9ab6
TT
94672020-03-28 Tom Tromey <tom@tromey.com>
9468
9469 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9470 comment.
9471
f1749218
TT
94722020-03-28 Tom Tromey <tom@tromey.com>
9473
9474 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9475
ebea7626
HD
94762020-03-27 Hannes Domani <ssbssa@yahoo.de>
9477
9478 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9479
a879b4d5
JB
94802020-03-26 John Baldwin <jhb@FreeBSD.org>
9481
9482 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9483
0826b30a
TT
94842020-03-26 Tom Tromey <tom@tromey.com>
9485
9486 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9487 (mark_common_block_symbol_computed, read_tag_string_type)
9488 (attr_to_dynamic_prop, read_subrange_type): Update.
9489 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9490 to be methods on struct attribute.
9491 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9492 (read_call_site_scope, partial_die_info::read)
9493 (partial_die_info::read, lookup_die_type, follow_die_ref):
9494 Update.
9495 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9496 from dwarf2_get_ref_die_offset.
9497 (attribute::constant_value): New method, from
9498 dwarf2_get_attr_constant_value.
9499 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9500 Declare method.
9501 <constant_value>: New method.
9502
2b2558bf
TT
95032020-03-26 Tom Tromey <tom@tromey.com>
9504
9505 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9506 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9507 (dwarf_type_encoding_name): Move to stringify.c.
9508 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9509 * dwarf2/stringify.c: New file.
9510 * dwarf2/stringify.h: New file.
9511
eeb64781
TT
95122020-03-26 Tom Tromey <tom@tromey.com>
9513
9514 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9515 Rewrite.
9516
a39fdb41
TT
95172020-03-26 Tom Tromey <tom@tromey.com>
9518
9519 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9520 methods.
9521 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9522 (lookup_ranges_base): Likewise.
9523 (read_cutu_die_from_dwo, read_full_die_1): Update.
9524
436c571c
TT
95252020-03-26 Tom Tromey <tom@tromey.com>
9526
9527 * dwarf2/read.c (read_import_statement, read_file_scope)
9528 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9529 (read_lexical_block_scope, read_call_site_scope)
9530 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9531 (handle_struct_member_die, process_structure_scope)
9532 (update_enumeration_type_from_children)
9533 (process_enumeration_scope, read_array_type, read_common_block)
9534 (read_namespace, read_module, read_subroutine_type): Update.
9535 (sibling_die): Remove.
9536
052c8bb8
TT
95372020-03-26 Tom Tromey <tom@tromey.com>
9538
9539 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9540 (build_type_psymtabs_reader, read_structure_type)
9541 (read_enumeration_type, read_full_die_1): Update.
9542 (dwarf2_attr_no_follow): Move to die.h.
9543 * dwarf2/die.h (struct die_info) <attr>: New method.
9544
2b24b6e4
TT
95452020-03-26 Tom Tromey <tom@tromey.com>
9546
9547 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9548 <base_address>: Now an optional.
9549 (dwarf2_find_base_address, dwarf2_rnglists_process)
9550 (dwarf2_ranges_process, fill_in_loclist_baton)
9551 (dwarf2_symbol_mark_computed): Update.
9552
c2d50fd0
TT
95532020-03-26 Tom Tromey <tom@tromey.com>
9554
9555 * dwarf2/read.c (struct die_info): Move to die.h.
9556 * dwarf2/die.h: New file.
9557
0df7ad3a
TT
95582020-03-26 Tom Tromey <tom@tromey.com>
9559
9560 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9561 * dwarf2/read.c
9562 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9563 Move to line-header.c.
9564 (read_checked_initial_length_and_offset, read_formatted_entries):
9565 Likewise.
9566 (dwarf_decode_line_header): Split into two.
9567 * dwarf2/line-header.c
9568 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9569 Move from read.c.
9570 (read_checked_initial_length_and_offset, read_formatted_entries):
9571 Likewise.
9572 (dwarf_decode_line_header): New function, split from read.c.
9573
86c0bb4c
TT
95742020-03-26 Tom Tromey <tom@tromey.com>
9575
9576 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9577 Declare method.
9578 * dwarf2/read.c (read_attribute_value): Update.
9579 (dwarf2_per_objfile::read_line_string): Rename from
9580 read_indirect_line_string.
9581 (read_formatted_entries): Update.
9582
2ef46c2f
TT
95832020-03-26 Tom Tromey <tom@tromey.com>
9584
9585 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9586 variable.
9587
4f9c1eda
TT
95882020-03-26 Tom Tromey <tom@tromey.com>
9589
9590 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9591 const.
9592 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9593 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9594 parameter const.
9595
5a0e026f
TT
95962020-03-26 Tom Tromey <tom@tromey.com>
9597
9598 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9599 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9600 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9601 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9602
8844c11b
TT
96032020-03-26 Tom Tromey <tom@tromey.com>
9604
9605 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9606 file_names_size, file_full_name, file_file_name>: Use const.
9607 <file_name_at, file_names>: Add const overload.
9608 * dwarf2/line-header.c (line_header::file_file_name)
9609 (line_header::file_full_name): Update.
9610
c90ec28a
TT
96112020-03-26 Tom Tromey <tom@tromey.com>
9612
9613 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9614 (macro_start_file, consume_improper_spaces)
9615 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9616 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9617 (dwarf_decode_macros): Move to macro.c.
9618 * dwarf2/macro.c: New file.
9619 * dwarf2/macro.h: New file.
9620 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9621
4f44ae6c
TT
96222020-03-26 Tom Tromey <tom@tromey.com>
9623
9624 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9625 method.
9626 * dwarf2/section.c: New method. From
9627 read_indirect_string_at_offset_from.
9628 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9629 (read_indirect_string_at_offset_from): Move to section.c.
9630 (read_indirect_string_at_offset): Rewrite.
9631 (read_indirect_line_string_at_offset): Remove.
9632 (read_indirect_string, read_indirect_line_string)
9633 (dwarf_decode_macro_bytes): Update.
9634
a0194fa8
TT
96352020-03-26 Tom Tromey <tom@tromey.com>
9636
9637 * dwarf2/section.h (struct dwarf2_section_info)
9638 <overload_complaint>: Declare.
9639 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9640 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9641 Rename from dwarf2_section_buffer_overflow_complaint.
9642 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9643 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9644
3d27bbdb
TT
96452020-03-26 Tom Tromey <tom@tromey.com>
9646
9647 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9648 Declare.
9649 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9650 Move from read.c.
9651 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9652 to section.c.
9653
9eac9650
TT
96542020-03-26 Tom Tromey <tom@tromey.com>
9655
9656 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9657
bf80d710
TT
96582020-03-26 Tom Tromey <tom@tromey.com>
9659
9660 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9661 "builder".
9662 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9663 parameter.
9664 (dwarf_decode_macros): Update.
9665
0314b390
TT
96662020-03-26 Tom Tromey <tom@tromey.com>
9667
9668 * dwarf2/read.c (read_attribute_value): Update.
9669 (read_indirect_string_from_dwz): Move to dwz.c; change into
9670 method.
9671 (dwarf_decode_macro_bytes): Update.
9672 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9673 * dwarf2/dwz.c: New file.
9674 * Makefile.in (COMMON_SFILES): Add dwz.c.
9675
9fda78b6
TT
96762020-03-26 Tom Tromey <tom@tromey.com>
9677
9678 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9679 * dwarf2/read.c: Add include.
9680 * dwarf2/index-write.c: Add include.
9681 * dwarf2/index-cache.c: Add include.
9682 * dwarf2/dwz.h: New file.
9683
33aa3c10
TT
96842020-03-25 Tom Tromey <tom@tromey.com>
9685
9686 * compile/compile-object-load.c (get_out_value_type): Mention
9687 correct symbol name in error message.
9688
d503b685
HD
96892020-03-25 Hannes Domani <ssbssa@yahoo.de>
9690
9691 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9692
7b1eff95
TV
96932020-03-25 Tom de Vries <tdevries@suse.de>
9694
9695 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9696 * symmisc.c (dump_symtab_1): Print user and includes fields.
9697 (maintenance_info_symtabs): Same.
9698
dd895392
AB
96992020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9700
9701 PR gdb/25534
9702 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9703 (riscv_regcache_cooked_write): New function.
9704 (riscv_push_dummy_call): Use new function.
9705 (riscv_return_value): Likewise.
9706
5ab2fbf1
SM
97072020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9708
9709 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9710 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9711 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9712 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9713 * infrun.c (follow_fork): Likewise.
9714 (follow_fork_inferior): Likewise.
9715 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9716 * linux-nat.h (class linux_nat_target): Likewise.
9717 * remote.c (class remote_target) <follow_fork>: Likewise.
9718 (remote_target::follow_fork): Likewise.
9719 * target-delegates.c: Re-generate.
9720 * target.c (default_follow_fork): Likewise.
9721 (target_follow_fork): Likewise.
9722 * target.h (struct target_ops) <follow_fork>: Likewise.
9723 (target_follow_fork): Likewise.
9724
a64fafb5
TV
97252020-03-24 Tom de Vries <tdevries@suse.de>
9726
9727 * psymtab.c (maintenance_info_psymtabs): Print user field.
9728
fe26d3a3
TT
97292020-03-20 Tom Tromey <tromey@adacore.com>
9730
9731 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9732 const.
9733 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9734 const.
9735
c884cc46
SM
97362020-03-20 Simon Marchi <simon.marchi@efficios.com>
9737
9738 * ptrace.m4: Don't check for ptrace declaration.
9739 * config.in: Re-generate.
9740 * configure: Re-generate.
9741 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9742 not defined.
9743
1ff700c2
KR
97442020-03-20 Kamil Rytarowski <n54@gmx.com>
9745
9746 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9747 `PTRACE_TYPE_RET'.
9748 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9749 * sparc-nat.c (gdb_ptrace): Likewise.
9750 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9751
f7d4f0b1
TT
97522020-03-20 Tom Tromey <tromey@adacore.com>
9753
9754 * c-exp.y (lex_one_token): Fix assert.
9755
f67210ff
TT
97562020-03-20 Tom Tromey <tromey@adacore.com>
9757
9758 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9759 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9760 strncpy call.
9761
1773be9e
TT
97622020-03-20 Tom Tromey <tromey@adacore.com>
9763
9764 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9765
70304be9
TT
97662020-03-20 Tom Tromey <tromey@adacore.com>
9767
9768 * ada-valprint.c (print_variant_part): Remove parameters; switch
9769 to value-based API.
9770 (print_field_values): Likewise.
9771 (ada_val_print_struct_union): Likewise.
9772 (ada_value_print_1): Update.
9773
9faa006d
KR
97742020-03-20 Kamil Rytarowski <n54@gmx.com>
9775
9776 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9777 nbsd_nat_target instead of inf_ptrace_target.
9778 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9779 nbsd_nat_target.
9780
4a90f062
KR
97812020-03-20 Kamil Rytarowski <n54@gmx.com>
9782
9783 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9784 it to the ptrace call.
9785 * (store_registers): Likewise.
9786
97872020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9788
9789 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9790 it to the ptrace call.
9791 * (store_registers): Likewise.
9792
2d07da27
LM
97932020-03-19 Luis Machado <luis.machado@linaro.org>
9794
9795 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9796 valid, fetch vg value from ptrace.
9797
f09db380
KR
97982020-03-19 Kamil Rytarowski <n54@gmx.com>
9799 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9800 * inf-ptrace.c: Likewise.
9801 * (gdb_ptrace): Add.
9802 * (inf_ptrace_target::resume): Update.
9803 * (inf_ptrace_target::xfer_partial): Likewise.
9804 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9805 * (inf_ptrace_peek_poke): Update.
9806
fcc7376e
KR
98072020-03-19 Kamil Rytarowski <n54@gmx.com>
9808
9809 * x86-bsd-nat.c (gdb_ptrace): New.
9810 * (x86bsd_dr_set): Add new argument `ptid'.
9811 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9812 x86bsd_dr_set_addr): Update.
9813
cada5fc9
AB
98142020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9815
9816 * remote.c (remote_target::process_stop_reply): Handle events for
9817 all threads differently.
9818
19a2740f
AB
98192020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9820
9821 * completer.c (completion_tracker::remove_completion): Define new
9822 function.
9823 * completer.h (completion_tracker::remove_completion): Declare new
9824 function.
9825 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9826 when adding a C++ function symbol.
9827
724fd9ba
AB
98282020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9829
9830 * completer.c (completion_tracker::completion_hash_entry): Define
9831 new class.
9832 (advance_to_filename_complete_word_point): Call
9833 recompute_lowest_common_denominator.
9834 (completion_tracker::completion_tracker): Call discard_completions
9835 to setup the hash table.
9836 (completion_tracker::discard_completions): Allow for being called
9837 from the constructor, pass new equal function, and element deleter
9838 when constructing the hash table. Initialise new class member
9839 variables.
9840 (completion_tracker::maybe_add_completion): Remove use of
9841 m_entries_vec, and store more information into m_entries_hash.
9842 (completion_tracker::recompute_lcd_visitor): New function, most
9843 content taken from...
9844 (completion_tracker::recompute_lowest_common_denominator):
9845 ...here, this now just visits each item in the hash calling the
9846 above visitor.
9847 (completion_tracker::build_completion_result): Remove use of
9848 m_entries_vec, call recompute_lowest_common_denominator.
9849 * completer.h (completion_tracker::have_completions): Remove use
9850 of m_entries_vec.
9851 (completion_tracker::completion_hash_entry): Declare new class.
9852 (completion_tracker::recompute_lowest_common_denominator): Change
9853 function signature.
9854 (completion_tracker::recompute_lcd_visitor): Declare new function.
9855 (completion_tracker::m_entries_vec): Delete.
9856 (completion_tracker::m_entries_hash): Initialize to NULL.
9857 (completion_tracker::m_lowest_common_denominator_valid): New
9858 member variable.
9859 (completion_tracker::m_lowest_common_denominator_max_length): New
9860 member variable.
9861
5a82b8a1
KR
98622020-03-17 Kamil Rytarowski <n54@gmx.com>
9863
9864 * regformats/regdef.h: Put reg in gdb namespace.
9865
fb516a69
KR
98662020-03-17 Kamil Rytarowski <n54@gmx.com>
9867
9868 * i386-bsd-nat.c (gdb_ptrace): New.
9869 * (i386bsd_fetch_inferior_registers,
9870 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9871 * (i386bsd_fetch_inferior_registers,
9872 i386bsd_store_inferior_registers) Use gdb_ptrace.
9873
1c0aa1fb
KR
98742020-03-17 Kamil Rytarowski <n54@gmx.com>
9875
9876 * amd64-bsd-nat.c (gdb_ptrace): New.
9877 * (amd64bsd_fetch_inferior_registers,
9878 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9879 * (amd64bsd_fetch_inferior_registers,
9880 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9881
5ccd2fb7
KR
98822020-03-17 Kamil Rytarowski <n54@gmx.com>
9883
9884 * user-regs.c (user_reg::read): Rename to...
9885 (user_reg::xread): ...this.
9886 * (append_user_reg): Rename argument `read' to `xread'.
9887 * (user_reg_add_builtin): Likewise.
9888 * (user_reg_add): Likewise.
9889 * (value_of_user_reg): Likewise.
9890
2108a63a
KR
98912020-03-17 Kamil Rytarowski <n54@gmx.com>
9892
9893 * sparc-nat.c (gdb_ptrace): New.
9894 * sparc-nat.c (sparc_fetch_inferior_registers)
9895 (sparc_store_inferior_registers) Remove obsolete comment.
9896 * sparc-nat.c (sparc_fetch_inferior_registers)
9897 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9898 * sparc-nat.c (sparc_fetch_inferior_registers)
9899 (sparc_store_inferior_registers) Use gdb_ptrace.
9900
a225c9a8
KR
99012020-03-17 Kamil Rytarowski <n54@gmx.com>
9902
9903 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9904 it to the ptrace call.
9905 * sh-nbsd-nat.c (store_registers): Likewise.
9906
98097623
KR
99072020-03-17 Kamil Rytarowski <n54@gmx.com>
9908
9909 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9910 nbsd_nat_target instead of inf_ptrace_target.
9911 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9912 nbsd_nat_target.
9913
9e38d619
KR
99142020-03-17 Kamil Rytarowski <n54@gmx.com>
9915
9916 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9917
a2ecbe9f
KR
99182020-03-17 Kamil Rytarowski <n54@gmx.com>
9919
9920 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9921 <sys/sysctl.h>.
9922 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9923
58990295
TV
99242020-03-17 Tom de Vries <tdevries@suse.de>
9925
9926 PR gdb/23710
9927 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9928 fields.
9929 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9930 fields.
9931 (process_imported_unit_die): Skip import of c++ CUs.
9932
771dd3a8
TT
99332020-03-16 Tom Tromey <tom@tromey.com>
9934
9935 * p-valprint.c (pascal_object_print_value): Initialize
9936 base_value.
9937
817a7585
AK
99382020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9939 Shahab Vahedi <shahab@synopsys.com>
9940
9941 * Makefile.in: Add arch/arc.o
9942 * configure.tgt: Likewise.
9943 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9944 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9945 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9946 * arc-tdep.h (arc_read_description): Add proto type.
9947 * arch/arc.c: New file.
9948 * arch/arc.h: Likewise.
9949 * features/Makefile: Replace old target descriptions with new.
9950 * features/arc-arcompact.c: Remove.
9951 * features/arc-arcompact.xml: Likewise.
9952 * features/arc-v2.c: Likewise
9953 * features/arc-v2.xml: Likewise
9954 * features/arc/aux-arcompact.xml: New file.
9955 * features/arc/aux-v2.xml: Likewise.
9956 * features/arc/core-arcompact.xml: Likewise.
9957 * features/arc/core-v2.xml: Likewise.
9958 * features/arc/aux-arcompact.c: Generate.
9959 * features/arc/aux-v2.c: Likewise.
9960 * features/arc/core-arcompact.c: Likewise.
9961 * features/arc/core-v2.c: Likewise.
9962 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9963
67430cd0
TT
99642020-03-16 Tom Tromey <tromey@adacore.com>
9965
9966 PR gdb/25663:
9967 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9968 putting value into bcache.
9969
30efb6c7
SM
99702020-03-16 Simon Marchi <simon.marchi@efficios.com>
9971
9972 PR gdb/21500
9973 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9974 to...
9975 (amd64_windows_init_abi_common): ... this. Don't set size of
9976 long type.
9977 (amd64_windows_init_abi): New function.
9978 (amd64_cygwin_init_abi): New function.
9979 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9980 the Cygwin OS ABI.
9981 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9982 comment.
9983
8db52437
SM
99842020-03-16 Simon Marchi <simon.marchi@efficios.com>
9985
9986 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9987 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9988 (pe_import_directory_entry): New struct type.
9989 (is_linked_with_cygwin_dll): New function.
9990 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9991 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9992 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9993
5982a56a
SM
99942020-03-16 Simon Marchi <simon.marchi@efficios.com>
9995
9996 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9997 i386_cygwin_core_osabi_sniffer.
9998
7a1998df
SM
99992020-03-16 Simon Marchi <simon.marchi@efficios.com>
10000
10001 * i386-cygwin-tdep.c: Rename to...
10002 * i386-windows-tdep.c: ... this.
10003 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10004 i386-windows-tdep.c.
10005 * configure.tgt: Likewise.
10006
053205cc
SM
100072020-03-16 Simon Marchi <simon.marchi@efficios.com>
10008
10009 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10010 * osabi.c (gdb_osabi_names): Add "Windows".
10011 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10012 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10013 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10014 i386_cygwin_osabi_sniffer.
10015 (_initialize_i386_cygwin_tdep): Register OS ABI
10016 GDB_OSABI_WINDOWS for i386.
10017 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10018 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10019 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10020 for x86-64.
10021 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10022 when the target matches '*-*-mingw*'.
10023
fe4b2ee6
SM
100242020-03-16 Simon Marchi <simon.marchi@efficios.com>
10025
10026 * defs.h (enum gdb_osabi): Move to...
10027 * osabi.h (enum gdb_osabi): ... here.
10028 * gdbarch.sh: Include osabi.h in gdbarch.h.
10029 * gdbarch.h: Re-generate.
10030
cb9b645d
SM
100312020-03-16 Simon Marchi <simon.marchi@efficios.com>
10032
10033 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10034 function.
10035 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10036
3293bbaf
TT
100372020-03-14 Tom Tromey <tom@tromey.com>
10038
10039 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10040 for C++.
10041 (c_type_print_modifier): Likewise. Add "language" parameter.
10042 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10043 (c_type_print_base_1): Update.
10044 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10045 constants.
10046 * type-stack.c (type_stack::insert): Handle tp_atomic and
10047 tp_restrict.
10048 (type_stack::follow_type_instance_flags): Likewise.
10049 (type_stack::follow_types): Likewise. Merge type-following code.
10050 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10051 (space_identifier, cv_with_space_id)
10052 (const_or_volatile_or_space_identifier_noopt)
10053 (const_or_volatile_or_space_identifier): Remove.
10054 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10055 rules.
10056 (ptr_operator, typebase): Update.
10057 (enum token_flag) <FLAG_C>: New constant.
10058 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10059 "_Atomic".
10060 (lex_one_token): Handle FLAG_C.
10061
154151a6
KR
100622020-03-14 Kamil Rytarowski <n54@gmx.com>
10063
10064 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10065 it to the ptrace call.
10066 * m68k-bsd-nat.c (store_registers): Likewise.
10067
bc107784
KR
100682020-03-14 Kamil Rytarowski <n54@gmx.com>
10069
10070 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10071 gdb_byte *.
10072 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10073 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10074 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10075
01a80117
KR
100762020-03-14 Kamil Rytarowski <n54@gmx.com>
10077
10078 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10079 nbsd_nat_target instead of inf_ptrace_target.
10080 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10081 nbsd_nat_target.
10082
f90280ca
KR
100832020-03-14 Kamil Rytarowski <n54@gmx.com>
10084
10085 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10086 register_t.
10087
6def66f1
KR
100882020-03-14 Kamil Rytarowski <n54@gmx.com>
10089
10090 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10091 it to the ptrace call.
10092 * alpha-bsd-nat.c (store_registers): Likewise.
10093
66eaca97
KR
100942020-03-14 Kamil Rytarowski <n54@gmx.com>
10095
10096 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10097 includes.
10098 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10099 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10100 fill_fpregset): Likewise.
10101
4fed520b
KR
101022020-03-14 Kamil Rytarowski <n54@gmx.com>
10103
10104 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10105 nbsd_nat_target instead of inf_ptrace_target.
10106 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10107 nbsd_nat_target.
10108
2190cf06
KR
101092020-03-14 Kamil Rytarowski <n54@gmx.com>
10110
10111 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10112 register_t.
10113
75c56d3d
KR
101142020-03-14 Kamil Rytarowski <n54@gmx.com>
10115
10116 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10117 it to the ptrace call.
10118 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10119 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10120 * arm-nbsd-nat.c (store_register): Likewise.
10121 * arm-nbsd-nat.c (store_regs): Likewise.
10122 * arm-nbsd-nat.c (store_fp_register): Likewise.
10123 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10124
6018d381
KR
101252020-03-14 Kamil Rytarowski <n54@gmx.com>
10126
10127 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10128 nbsd_nat_target instead of inf_ptrace_target.
10129 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10130 nbsd_nat_target.
10131
013f99f0
KR
101322020-03-14 Kamil Rytarowski <n54@gmx.com>
10133
10134 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10135 it to the ptrace call.
10136 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10137
12753073
KR
101382020-03-14 Kamil Rytarowski <n54@gmx.com>
10139
6227b330
KR
10140 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10141 it to the ptrace call.
10142 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10143
101442020-03-14 Kamil Rytarowski <n54@gmx.com>
10145
10146 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10147 gdb_byte *.
12753073
KR
10148 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10149
d5be5fa4
KR
101502020-03-14 Kamil Rytarowski <n54@gmx.com>
10151
10152 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10153 instead of inf_ptrace_target.
10154 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10155 nbsd_nat_target.
10156
8110f842
KR
101572020-03-14 Kamil Rytarowski <n54@gmx.com>
10158
10159 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10160 register_t.
10161
52feded7
KR
101622020-03-14 Kamil Rytarowski <n54@gmx.com>
10163
10164 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10165 register_t.
10166
25567eee
KR
101672020-03-14 Kamil Rytarowski <n54@gmx.com>
10168
10169 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10170 register_t.
10171
426a9c18
TT
101722020-03-13 Tom Tromey <tom@tromey.com>
10173
10174 * value.h (val_print): Don't declare.
10175 * valprint.h (val_print_array_elements)
10176 (val_print_scalar_formatted, generic_val_print): Don't declare.
10177 * valprint.c (generic_val_print_array): Take a struct value.
10178 (generic_val_print_ptr, generic_val_print_memberptr)
10179 (generic_val_print_bool, generic_val_print_int)
10180 (generic_val_print_char, generic_val_print_complex)
10181 (generic_val_print): Remove.
10182 (generic_value_print): Update.
10183 (do_val_print): Remove unused parameters. Don't call
10184 la_val_print.
10185 (val_print): Remove.
10186 (common_val_print): Update. Don't call value_check_printable.
10187 (val_print_scalar_formatted, val_print_array_elements): Remove.
10188 * rust-lang.c (rust_val_print): Remove.
10189 (rust_language_defn): Update.
10190 * p-valprint.c (pascal_val_print): Remove.
10191 (pascal_value_print_inner): Update.
10192 (pascal_object_print_val_fields, pascal_object_print_val):
10193 Remove.
10194 (pascal_object_print_static_field): Update.
10195 * p-lang.h (pascal_val_print): Don't declare.
10196 * p-lang.c (pascal_language_defn): Update.
10197 * opencl-lang.c (opencl_language_defn): Update.
10198 * objc-lang.c (objc_language_defn): Update.
10199 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10200 * m2-lang.h (m2_val_print): Don't declare.
10201 * m2-lang.c (m2_language_defn): Update.
10202 * language.h (struct language_defn) <la_val_print>: Remove.
10203 * language.c (unk_lang_value_print_inner): Rename. Change
10204 argument types.
10205 (unknown_language_defn, auto_language_defn): Update.
10206 * go-valprint.c (go_val_print): Remove.
10207 * go-lang.h (go_val_print): Don't declare.
10208 * go-lang.c (go_language_defn): Update.
10209 * f-valprint.c (f_val_print): Remove.
10210 * f-lang.h (f_value_print): Don't declare.
10211 * f-lang.c (f_language_defn): Update.
10212 * d-valprint.c (d_val_print): Remove.
10213 * d-lang.h (d_value_print): Don't declare.
10214 * d-lang.c (d_language_defn): Update.
10215 * cp-valprint.c (cp_print_value_fields)
10216 (cp_print_value_fields_rtti, cp_print_value): Remove.
10217 (cp_print_static_field): Update.
10218 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10219 (c_val_print_struct, c_val_print_union, c_val_print_int)
10220 (c_val_print_memberptr, c_val_print): Remove.
10221 * c-lang.h (c_val_print_array, cp_print_value_fields)
10222 (cp_print_value_fields_rtti): Don't declare.
10223 * c-lang.c (c_language_defn, cplus_language_defn)
10224 (asm_language_defn, minimal_language_defn): Update.
10225 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10226 (ada_val_print_enum): Take a struct value.
10227 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10228 (ada_val_print): Remove.
10229 (ada_value_print_1): Update.
10230 (printable_val_type): Remove.
10231 * ada-lang.h (ada_val_print): Don't declare.
10232 * ada-lang.c (ada_language_defn): Update.
10233
42331a1e
TT
102342020-03-13 Tom Tromey <tom@tromey.com>
10235
10236 * valprint.c (do_val_print): Update.
10237 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10238 a struct value.
10239 (value_to_value_object_no_release): Declare.
10240 * python/py-value.c (value_to_value_object_no_release): New
10241 function.
10242 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10243 struct value.
10244 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10245 function.
10246 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10247 a struct value.
10248 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10249 Declare.
10250 (gdbscm_apply_val_pretty_printer): Take a struct value.
10251 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10252 value.
10253 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10254 value.
10255 * extension-priv.h (struct extension_language_ops)
10256 <apply_val_pretty_printer>: Take a struct value.
10257 * cp-valprint.c (cp_print_value): Create a struct value.
10258 (cp_print_value): Update.
10259
3a916a97
TT
102602020-03-13 Tom Tromey <tom@tromey.com>
10261
10262 * ada-valprint.c (print_field_values): Call common_val_print.
10263
b59eac37
TT
102642020-03-13 Tom Tromey <tom@tromey.com>
10265
10266 * ada-valprint.c (val_print_packed_array_elements): Remove
10267 bitoffset and val parameters. Call common_val_print.
10268 (ada_val_print_string): Remove offset, address, and original_value
10269 parameters.
10270 (ada_val_print_array): Update.
10271 (ada_value_print_array): New function.
10272 (ada_value_print_1): Call it.
10273
03371129
TT
102742020-03-13 Tom Tromey <tom@tromey.com>
10275
10276 * ada-valprint.c (ada_value_print): Use common_val_print.
10277
2e088f8b
TT
102782020-03-13 Tom Tromey <tom@tromey.com>
10279
10280 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10281
39ef85a8
TT
102822020-03-13 Tom Tromey <tom@tromey.com>
10283
10284 * ada-valprint.c (ada_value_print_num): New function.
10285 (ada_value_print_1): Use it.
10286
b9fa6e07
TT
102872020-03-13 Tom Tromey <tom@tromey.com>
10288
10289 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10290
416595d6
TT
102912020-03-13 Tom Tromey <tom@tromey.com>
10292
10293 * ada-valprint.c (ada_value_print_ptr): New function.
10294 (ada_value_print_1): Use it.
10295
5b5e15ec
TT
102962020-03-13 Tom Tromey <tom@tromey.com>
10297
10298 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10299 call common_val_print.
10300 (ada_val_print_1): Update.
10301 (ada_value_print_1): New function.
10302 (ada_value_print_inner): Rewrite.
10303
fbf54e75
TT
103042020-03-13 Tom Tromey <tom@tromey.com>
10305
10306 * cp-valprint.c (cp_print_value_fields): Update.
10307 (cp_print_value): New function.
10308
64b653ca
TT
103092020-03-13 Tom Tromey <tom@tromey.com>
10310
10311 * m2-valprint.c (m2_value_print_inner): Use
10312 cp_print_value_fields.
10313 * cp-valprint.c (cp_print_value_fields): New function.
10314 * c-valprint.c (c_value_print_struct): New function.
10315 (c_value_print_inner): Use c_value_print_struct.
10316 * c-lang.h (cp_print_value_fields): Declare.
10317
6999f067
TT
103182020-03-13 Tom Tromey <tom@tromey.com>
10319
10320 * c-valprint.c (c_value_print_array): New function.
10321 (c_value_print_inner): Use it.
10322
ce80b8bd
TT
103232020-03-13 Tom Tromey <tom@tromey.com>
10324
10325 * c-valprint.c (c_value_print_memberptr): New function.
10326 (c_value_print_inner): Use it.
10327
2faac269
TT
103282020-03-13 Tom Tromey <tom@tromey.com>
10329
10330 * c-valprint.c (c_value_print_int): New function.
10331 (c_value_print_inner): Use it.
10332
da3e2c29
TT
103332020-03-13 Tom Tromey <tom@tromey.com>
10334
10335 * c-valprint.c (c_value_print_ptr): New function.
10336 (c_value_print_inner): Use it.
10337
50836231
TT
103382020-03-13 Tom Tromey <tom@tromey.com>
10339
10340 * c-valprint.c (c_value_print_inner): Rewrite.
10341
4f412b6e
TT
103422020-03-13 Tom Tromey <tom@tromey.com>
10343
10344 * valprint.c (generic_value_print_complex): New function.
10345 (generic_value_print): Use it.
10346
f5354008
TT
103472020-03-13 Tom Tromey <tom@tromey.com>
10348
10349 * valprint.c (generic_val_print_float): Don't call
10350 val_print_scalar_formatted.
10351 (generic_val_print, generic_value_print): Update.
10352
3eec3b05
TT
103532020-03-13 Tom Tromey <tom@tromey.com>
10354
10355 * valprint.c (generic_value_print_char): New function
10356 (generic_value_print): Use it.
10357
fdddfccb
TT
103582020-03-13 Tom Tromey <tom@tromey.com>
10359
10360 * valprint.c (generic_value_print_int): New function.
10361 (generic_value_print): Use it.
10362
6dde7521
TT
103632020-03-13 Tom Tromey <tom@tromey.com>
10364
10365 * valprint.c (generic_value_print_bool): New function.
10366 (generic_value_print): Use it.
10367
4112d2e6
TT
103682020-03-13 Tom Tromey <tom@tromey.com>
10369
10370 * valprint.c (generic_val_print_func): Simplify.
10371 (generic_val_print, generic_value_print): Update.
10372
65786af6
TT
103732020-03-13 Tom Tromey <tom@tromey.com>
10374
10375 * valprint.c (generic_val_print_flags): Remove.
10376 (generic_val_print, generic_value_print): Update.
10377 (val_print_type_code_flags): Add original_value parameter.
10378
40f3ce18
TT
103792020-03-13 Tom Tromey <tom@tromey.com>
10380
10381 * valprint.c (generic_val_print): Update.
10382 (generic_value_print): Update.
10383 * valprint.c (generic_val_print_enum): Don't call
10384 val_print_scalar_formatted.
10385
2a5b130b
TT
103862020-03-13 Tom Tromey <tom@tromey.com>
10387
10388 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10389 * valprint.c (generic_value_print_ptr): New function.
10390
abc66ce9
TT
103912020-03-13 Tom Tromey <tom@tromey.com>
10392
10393 * valprint.c (generic_value_print): Rewrite.
10394
07a32858
TT
103952020-03-13 Tom Tromey <tom@tromey.com>
10396
10397 * p-valprint.c (pascal_object_print_value_fields)
10398 (pascal_object_print_value): New functions.
10399
64d64d3a
TT
104002020-03-13 Tom Tromey <tom@tromey.com>
10401
10402 * p-valprint.c (pascal_value_print_inner): Rewrite.
10403
6a95a1f5
TT
104042020-03-13 Tom Tromey <tom@tromey.com>
10405
10406 * f-valprint.c (f_value_print_innner): Rewrite.
10407
59fcdac6
TT
104082020-03-13 Tom Tromey <tom@tromey.com>
10409
10410 * m2-valprint.c (m2_print_unbounded_array): New overload.
10411 (m2_print_unbounded_array): Update.
10412 (m2_print_array_contents): Take a struct value.
10413 (m2_value_print_inner): Rewrite.
10414
d133c3e1
TT
104152020-03-13 Tom Tromey <tom@tromey.com>
10416
10417 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10418 (d_value_print_inner): New function.
10419 * d-lang.h (d_value_print_inner): Declare.
10420 * d-lang.c (d_language_defn): Use d_value_print_inner.
10421
23b0f06b
TT
104222020-03-13 Tom Tromey <tom@tromey.com>
10423
10424 * go-valprint.c (go_value_print_inner): New function.
10425 * go-lang.h (go_value_print_inner): Declare.
10426 * go-lang.c (go_language_defn): Use go_value_print_inner.
10427
5f56f7cb
TT
104282020-03-13 Tom Tromey <tom@tromey.com>
10429
10430 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10431 API.
10432 (rust_val_print): Rewrite.
10433 (rust_value_print_inner): New function, from rust_val_print.
10434 (rust_language_defn): Use rust_value_print_inner.
10435
26792ee0
TT
104362020-03-13 Tom Tromey <tom@tromey.com>
10437
10438 * ada-valprint.c (ada_value_print_inner): New function.
10439 * ada-lang.h (ada_value_print_inner): Declare.
10440 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10441
24051bbe
TT
104422020-03-13 Tom Tromey <tom@tromey.com>
10443
10444 * f-valprint.c (f_value_print_innner): New function.
10445 * f-lang.h (f_value_print_innner): Declare.
10446 * f-lang.c (f_language_defn): Use f_value_print_innner.
10447
c0941be6
TT
104482020-03-13 Tom Tromey <tom@tromey.com>
10449
10450 * p-valprint.c (pascal_value_print_inner): New function.
10451 * p-lang.h (pascal_value_print_inner): Declare.
10452 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10453
62c4663d
TT
104542020-03-13 Tom Tromey <tom@tromey.com>
10455
10456 * m2-valprint.c (m2_value_print_inner): New function.
10457 * m2-lang.h (m2_value_print_inner): Declare.
10458 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10459
62182190
TT
104602020-03-13 Tom Tromey <tom@tromey.com>
10461
10462 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10463 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10464 * c-valprint.c (c_value_print_inner): New function.
10465 * c-lang.h (c_value_print_inner): Declare.
10466 * c-lang.c (c_language_defn, cplus_language_defn)
10467 (asm_language_defn, minimal_language_defn): Use
10468 c_value_print_inner.
10469
1e592a8a
TT
104702020-03-13 Tom Tromey <tom@tromey.com>
10471
10472 * p-valprint.c (pascal_object_print_value_fields): Now static.
10473 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10474
7fe471e9
TT
104752020-03-13 Tom Tromey <tom@tromey.com>
10476
10477 * c-valprint.c (c_val_print_array): Simplify.
10478
d121c6ce
TT
104792020-03-13 Tom Tromey <tom@tromey.com>
10480
10481 * valprint.c (value_print_array_elements): New function.
10482 * valprint.h (value_print_array_elements): Declare.
10483
4dba70ee
TT
104842020-03-13 Tom Tromey <tom@tromey.com>
10485
10486 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10487 * mips-tdep.c (mips_print_register): Use
10488 value_print_scalar_formatted.
10489
4f9ae810
TT
104902020-03-13 Tom Tromey <tom@tromey.com>
10491
10492 * valprint.h (value_print_scalar_formatted): Declare.
10493 * valprint.c (value_print_scalar_formatted): New function.
10494
156bfec9
TT
104952020-03-13 Tom Tromey <tom@tromey.com>
10496
10497 * valprint.h (generic_value_print): Declare.
10498 * valprint.c (generic_value_print): New function.
10499
2b4e573d
TT
105002020-03-13 Tom Tromey <tom@tromey.com>
10501
10502 * valprint.c (do_val_print): Call la_value_print_inner, if
10503 available.
10504 * rust-lang.c (rust_language_defn): Update.
10505 * p-lang.c (pascal_language_defn): Update.
10506 * opencl-lang.c (opencl_language_defn): Update.
10507 * objc-lang.c (objc_language_defn): Update.
10508 * m2-lang.c (m2_language_defn): Update.
10509 * language.h (struct language_defn) <la_value_print_inner>: New
10510 member.
10511 * language.c (unknown_language_defn, auto_language_defn): Update.
10512 * go-lang.c (go_language_defn): Update.
10513 * f-lang.c (f_language_defn): Update.
10514 * d-lang.c (d_language_defn): Update.
10515 * c-lang.c (c_language_defn, cplus_language_defn)
10516 (asm_language_defn, minimal_language_defn): Update.
10517 * ada-lang.c (ada_language_defn): Update.
10518
a1f6a07c
TT
105192020-03-13 Tom Tromey <tom@tromey.com>
10520
10521 * c-valprint.c (c_value_print): Use common_val_print.
10522
410cf315
TT
105232020-03-13 Tom Tromey <tom@tromey.com>
10524
10525 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10526
72a45c93
TT
105272020-03-13 Tom Tromey <tom@tromey.com>
10528
10529 * f-valprint.c (f77_print_array_1, f_val_print): Use
10530 common_val_print.
10531
040f66bd
TT
105322020-03-13 Tom Tromey <tom@tromey.com>
10533
10534 * riscv-tdep.c (riscv_print_one_register_info): Use
10535 common_val_print.
10536
a6e05a6c
TT
105372020-03-13 Tom Tromey <tom@tromey.com>
10538
10539 * mi/mi-main.c (output_register): Use common_val_print.
10540
3444c526
TT
105412020-03-13 Tom Tromey <tom@tromey.com>
10542
10543 * infcmd.c (default_print_one_register_info): Use
10544 common_val_print.
10545
c2a44efe
TT
105462020-03-13 Tom Tromey <tom@tromey.com>
10547
10548 * valprint.h (common_val_print_checked): Declare.
10549 * valprint.c (common_val_print_checked): New function.
10550 * stack.c (print_frame_arg): Use common_val_print_checked.
10551
b0c26e99
TT
105522020-03-13 Tom Tromey <tom@tromey.com>
10553
10554 * valprint.c (do_val_print): New function, from val_print.
10555 (val_print): Use do_val_print.
10556 (common_val_print): Use do_val_print.
10557
ce3acbe9
TT
105582020-03-13 Tom Tromey <tom@tromey.com>
10559
10560 * valprint.c (value_print): Use scoped_value_mark.
10561
96c7f873
TV
105622020-03-13 Tom de Vries <tdevries@suse.de>
10563
10564 PR symtab/25646
10565 * psymtab.c (partial_symtab::partial_symtab): Don't set
10566 globals_offset and statics_offset. Push element onto
10567 current_global_psymbols and current_static_psymbols stacks.
10568 (concat): New function.
10569 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10570 element from current_global_psymbols and current_static_psymbols
10571 stacks. Concat popped elements to global_psymbols and
10572 static_symbols.
10573 (add_psymbol_to_list): Use current_global_psymbols and
10574 current_static_psymbols stacks.
10575 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10576 current_static_psymbols fields.
10577
6ba0a321
CB
105782020-03-12 Christian Biesinger <cbiesinger@google.com>
10579
10580 * corelow.c (sniff_core_bfd): Remove.
10581 (class core_target) <m_core_vec>: Remove.
10582 (core_target::core_target): Update.
10583 (core_file_fns): Remove.
10584 (deprecated_add_core_fns): Remove.
10585 (default_core_sniffer): Remove.
10586 (sniff_core_bfd): Remove.
10587 (default_check_format): Remove.
10588 (gdb_check_format): Remove.
10589 (core_target_open): Update.
10590 (core_target::get_core_register_section): Update.
10591 (get_core_registers_cb): Update.
10592 (core_target::fetch_registers): Update.
10593 * gdbcore.h (struct core_fns): Remove.
10594 (deprecated_add_core_fns): Remove.
10595 (default_core_sniffer): Remove.
10596 (default_check_format): Remove.
10597
227031b2
TT
105982020-03-12 Tom Tromey <tom@tromey.com>
10599
10600 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10601 CORE_ADDR.
10602 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10603
53807e9f
TT
106042020-03-12 Tom Tromey <tom@tromey.com>
10605
10606 * remote.c (remote_target::download_tracepoint)
10607 (remote_target::enable_tracepoint)
10608 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10609 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10610 sprintf_vma.
10611
64f25102
TT
106122020-03-12 Tom Tromey <tom@tromey.com>
10613
10614 * symfile-mem.c: Update CORE_ADDR size assert.
10615
272cd5a3
SM
106162020-03-12 Simon Marchi <simon.marchi@efficios.com>
10617
10618 * selftest.m4: Move to gdbsupport/.
10619 * acinclude.m4: Update path to selftest.m4.
10620
74cd3f9d
SM
106212020-03-12 Simon Marchi <simon.marchi@efficios.com>
10622
10623 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10624 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10625 gdbarch-selfselftests.c and selftest-arch.c.
10626 (SUBDIR_UNITTESTS_OBS): Rename to...
10627 (SELFTESTS_OBS): ... this.
10628 (COMMON_SFILES): Remove disasm-selftests.c and
10629 gdbarch-selftests.c.
10630 * configure.ac: Don't add selftest-arch.{c,o} to
10631 CONFIG_{SRCS,OBS}.
10632 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10633 preprocessor conditions.
10634
db6878ac
SM
106352020-03-12 Simon Marchi <simon.marchi@efficios.com>
10636
10637 * configure.ac: Don't source bfd/development.sh.
10638 * selftest.m4: Modify comment.
10639 * configure: Re-generate.
10640
4d696a5c
SM
106412020-03-12 Simon Marchi <simon.marchi@efficios.com>
10642
10643 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10644 not "true" or "false".
10645 * configure: Re-generate.
10646
8dd8e1c7
CB
106472020-03-12 Christian Biesinger <cbiesinger@google.com>
10648
10649 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10650 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10651 renamed to arm_nbsd_supply_gregset.
10652 (fetch_register): Update to call arm_nbsd_supply_gregset.
10653 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10654 (arm_netbsd_nat_target::fetch_registers): Update.
10655 (fetch_elfcore_registers): Removed.
10656 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10657 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10658 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10659 not require NetBSD system headers.
10660 (arm_nbsd_regset): New struct.
10661 (arm_nbsd_iterate_over_regset_sections): New function.
10662 (arm_netbsd_init_abi_common): Updated to call
10663 set_gdbarch_iterate_over_regset_sections.
10664 * arm-nbsd-tdep.h: New file.
10665
dd69bf7a
KB
106662020-03-11 Kevin Buettner <kevinb@redhat.com>
10667
10668 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10669 recursion.
10670
a0761e34
SM
106712020-03-11 Simon Marchi <simon.marchi@efficios.com>
10672
10673 * configure: Re-generate.
10674
e7a82140
TT
106752020-03-11 Tom Tromey <tromey@adacore.com>
10676
10677 * ada-typeprint.c (print_choices): Fix comment.
10678
dcc050c8
AB
106792020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10680
10681 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10682 previous item in the list, when the list has no items.
10683
1c33af77
TV
106842020-03-11 Tom de Vries <tdevries@suse.de>
10685
10686 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10687 PROP_LOCLIST handling code.
10688
8c95582d
AB
106892020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10690
10691 * buildsym-legacy.c (record_line): Pass extra parameter to
10692 record_line.
10693 * buildsym.c (buildsym_compunit::record_line): Take an extra
10694 parameter, reduce duplication in the line table, and record the
10695 is_stmt flag in the line table.
10696 * buildsym.h (buildsym_compunit::record_line): Add extra
10697 parameter.
10698 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10699 non-statement lines.
10700 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10701 this to the symtab builder.
10702 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10703 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10704 through to dwarf_record_line_1.
10705 * infrun.c (process_event_stop_test): When stepping, don't stop at
10706 a non-statement instruction, and only refresh the step info when
10707 we land in the middle of a line's range. Also add an extra
10708 comment.
10709 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10710 field.
10711 * record-btrace.c (btrace_find_line_range): Only record lines
10712 marked as is-statement.
10713 * stack.c (frame_show_address): Show the frame address if we are
10714 in a non-statement sal.
10715 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10716 (maintenance_print_one_line_table): Print a header for the is_stmt
10717 column, and include is_stmt information in the output.
10718 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10719 preference to non-statements.
10720 (find_pcs_for_symtab_line): Prefer is-statement entries.
10721 (find_line_common): Likewise.
10722 * symtab.h (struct linetable_entry): Add is_stmt field.
10723 (struct symtab_and_line): Likewise.
10724 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10725 arranging the line table.
10726
e4003a34
TV
107272020-03-07 Tom de Vries <tdevries@suse.de>
10728
10729 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10730 DIE.
10731
e8932576
TT
107322020-03-07 Tom Tromey <tom@tromey.com>
10733
10734 * valops.c (value_literal_complex): Remove obsolete comment.
10735 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10736 comment.
10737
29734269
SM
107382020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10739
10740 * infrun.h: Forward-declare thread_info.
10741 (set_step_info): Add thread_info parameter, add doc.
10742 * infrun.c (set_step_info): Add thread_info parameter, move doc
10743 to header.
10744 * infrun.c (process_event_stop_test): Pass thread to
10745 set_step_info call.
10746 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10747 set_step_info.
10748 (prepare_one_step): Add thread_info parameter, pass it to
10749 set_step_frame and prepare_one_step (recursive) call.
10750 (step_1): Pass thread to prepare_one_step call.
10751 (step_command_fsm::should_stop): Pass thread to
10752 prepare_one_step.
10753 (until_next_fsm): Pass thread to set_step_frame call.
10754 (finish_command): Pass thread to set_step_info call.
10755
b7d64b29
HD
107562020-03-06 Hannes Domani <ssbssa@yahoo.de>
10757
10758 * windows-tdep.c (windows_solib_create_inferior_hook):
10759 Check if inferior is running.
10760
09f2921c
TV
107612020-03-06 Tom de Vries <tdevries@suse.de>
10762
10763 * NEWS: Fix "the the".
10764 * ctfread.c: Same.
10765
fd760e79
TV
107662020-03-06 Tom de Vries <tdevries@suse.de>
10767
10768 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10769
20ea4a60
AB
107702020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10771
10772 * .dir-locals.el: Add a comment referencing the other copies of
10773 this file.
10774
0afbabf0
JB
107752020-03-05 John Baldwin <jhb@FreeBSD.org>
10776
10777 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10778 psargs.
10779
842806cb
TBA
107802020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10781
10782 * .gitattributes: New file.
10783
be1e3d3e
TT
107842020-03-04 Tom Tromey <tom@tromey.com>
10785
10786 * symmisc.c (print_symbol_bcache_statistics)
10787 (print_objfile_statistics): Update.
10788 * symfile.c (allocate_symtab): Use intern.
10789 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10790 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10791 macro_cache>: Remove.
10792 <string_cache>: New member.
10793 (struct objfile) <intern>: New methods.
10794 * elfread.c (elf_symtab_read): Use intern.
10795 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10796 (dwarf2_compute_name, dwarf2_physname)
10797 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10798 names.
10799 (guess_partial_die_structure_name): Update.
10800 (partial_die_info::fixup): Intern name.
10801 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10802 name.
10803 (dwarf2_name): Intern name. Update.
10804 * buildsym.c (buildsym_compunit::get_macro_table): Use
10805 string_cache.
10806
4e7625fd
TT
108072020-03-04 Tom Tromey <tom@tromey.com>
10808
10809 * jit.c (bfd_open_from_target_memory): Make "target" const.
10810 * corefile.c (gnutarget): Now const.
10811 * gdbcore.h (gnutarget): Now const.
10812
46f9f931
HD
108132020-03-04 Hannes Domani <ssbssa@yahoo.de>
10814
10815 * NEWS: Mention support for WOW64 processes.
10816 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10817 (amd64_windows_segment_register_p): Remove static.
10818 (_initialize_amd64_windows_nat): Update.
10819 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10820 * i386-windows-nat.c (context_offset): Update.
10821 (i386_mappings): Rename and remove static.
10822 (i386_windows_segment_register_p): Remove static.
10823 (_initialize_i386_windows_nat): Update.
10824 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10825 (STATUS_WX86_SINGLE_STEP): New macro.
10826 (EnumProcessModulesEx): New macro.
10827 (Wow64SuspendThread): New macro.
10828 (Wow64GetThreadContext): New macro.
10829 (Wow64SetThreadContext): New macro.
10830 (Wow64GetThreadSelectorEntry): New macro.
10831 (windows_set_context_register_offsets): Add static.
10832 (windows_set_segment_register_p): Likewise.
10833 (windows_add_thread): Adapt for WOW64 processes.
10834 (windows_fetch_one_register): Likewise.
10835 (windows_nat_target::fetch_registers): Likewise.
10836 (windows_store_one_register): Likewise.
10837 (display_selector): Likewise.
10838 (display_selectors): Likewise.
10839 (handle_exception): Likewise.
10840 (windows_continue): Likewise.
10841 (windows_nat_target::resume): Likewise.
10842 (windows_add_all_dlls): Likewise.
10843 (do_initial_windows_stuff): Likewise.
10844 (windows_nat_target::attach): Likewise.
10845 (windows_get_exec_module_filename): Likewise.
10846 (windows_nat_target::create_inferior): Likewise.
10847 (windows_xfer_siginfo): Likewise.
10848 (_initialize_loadable): Initialize Wow64SuspendThread,
10849 Wow64GetThreadContext, Wow64SetThreadContext,
10850 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10851 * windows-nat.h (windows_set_context_register_offsets):
10852 Remove declaration.
10853 (windows_set_segment_register_p): Likewise.
10854 (i386_windows_segment_register_p): Add declaration.
10855 (amd64_windows_segment_register_p): Likewise.
10856
440cf44e
LM
108572020-03-04 Luis Machado <luis.machado@linaro.org>
10858
10859 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10860 in "info registers" for AArch64/ARM.
10861
10862 The change caused "info registers" to not print GPR's.
10863
10864 gdb/ChangeLog:
10865
10866 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10867
10868 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10869 when reg->group is empty and reggroup is not.
10870
1009d92f
TT
108712020-03-03 Tom Tromey <tromey@adacore.com>
10872
10873 * dwarf2/frame.c (struct dwarf2_frame_cache)
10874 <checked_tailcall_bottom, entry_cfa_sp_offset,
10875 entry_cfa_sp_offset_p>: Remove members.
10876 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10877 (dwarf2_frame_prev_register): Don't call
10878 dwarf2_tailcall_sniffer_first.
10879 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10880 * frame-unwind.c (add_unwinder): New fuction.
10881 (frame_unwind_init): Use it. Add tailcall unwinder.
10882
5e5d66b6
AB
108832020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10884 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10885
10886 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10887 value should be printed as true.
10888
584cf46d
HD
108892020-03-03 Hannes Domani <ssbssa@yahoo.de>
10890
10891 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10892 (windows_init_abi): Set and use windows_so_ops.
10893
7b973adc
SDJ
108942020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10895
10896 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10897 when verifying if dealing with a convenience variable.
10898
bb7b70ab
LM
108992020-03-03 Luis Machado <luis.machado@linaro.org>
10900
10901 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10902
9822cb57
SM
109032020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10904
10905 * infrun.c (gdbarch_supports_displaced_stepping): New.
10906 (use_displaced_stepping): Break up conditions in smaller pieces.
10907 Use gdbarch_supports_displaced_stepping.
10908 (displaced_step_prepare_throw): Use
10909 gdbarch_supports_displaced_stepping.
10910
63e163f2
AB
109112020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10912
10913 * NEWS: Mention new behaviour of the history filename.
10914 * top.c (write_history_p): Add comment.
10915 (show_write_history_p): Add header comment, give a different
10916 message when history writing is on, but the history filename is
10917 empty.
10918 (history_filename): Add comment.
10919 (history_filename_empty): New function.
10920 (show_history_filename): Add header comment, give a different
10921 message when the filename is empty.
10922 (init_history): Compare history_filename against nullptr, and only
10923 read history if the filename is not empty.
10924 (set_history_filename): Add header comment, and only make
10925 non-empty filenames absolute.
10926 (init_main): Make the filename argument to 'set history filename'
10927 optional.
10928
81b86b97
CB
109292020-03-02 Christian Biesinger <cbiesinger@google.com>
10930
10931 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10932 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10933 (fetch_fp_register): Update.
10934 (fetch_fp_regs): Update.
10935 (store_fp_register): Update.
10936 (store_fp_regs): Update.
10937 (arm_netbsd_nat_target::read_description): New function.
10938 (fetch_elfcore_registers): Update.
10939
24ed6739
AB
109402020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10941
10942 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10943 general_thread if the stop reply is missing a thread-id.
10944 (remote_target::process_stop_reply): Use the first non-exited
10945 thread if the target didn't pass a thread-id.
10946 * infrun.c (do_target_wait): Move call to
10947 switch_to_inferior_no_thread to ....
10948 (do_target_wait_1): ... here.
10949
a84bb2a0
JT
109502020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10951
10952 * debuginfod-support.c: Include defs.h first.
10953
658dadf0
TV
109542020-02-28 Tom de Vries <tdevries@suse.de>
10955
10956 * symfile.c (set_initial_language): Use default language for lookup.
10957
4ebe4877
SM
109582020-02-28 Simon Marchi <simon.marchi@efficios.com>
10959
10960 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10961 reader variable, pass `this` to read_cutu_die_from_dwo.
10962
e5da1139
AM
109632020-02-27 Aaron Merey <amerey@redhat.com>
10964
10965 * source.c (open_source_file): Check for nullptr when computing
10966 srcpath.
10967
317f7127
TT
109682020-02-27 Tom Tromey <tromey@adacore.com>
10969
10970 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10971 member.
10972 (dwarf2_add_field): Don't update nfields.
10973 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10974
3104d9ee
AB
109752020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10976
10977 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10978 abs.
10979
b83470bf
TT
109802020-02-26 Tom Tromey <tom@tromey.com>
10981
10982 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10983 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10984 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10985 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10986 per_cu_data.
10987
edfe0a0c
TT
109882020-02-26 Tom Tromey <tom@tromey.com>
10989
10990 * dwarf2/index-write.c (psym_index_map): Change type.
10991 (add_address_entry_worker, write_one_signatured_type)
10992 (recursively_count_psymbols, recursively_write_psymbols)
10993 (class debug_names, psyms_seen_size, write_gdbindex)
10994 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10995
0d79cdc4
AM
109962020-02-26 Aaron Merey <amerey@redhat.com>
10997
10998 * Makefile.in: Handle optional debuginfod support.
10999 * NEWS: Update.
11000 * README: Add --with-debuginfod summary.
11001 * config.in: Regenerate.
11002 * configure: Regenerate.
11003 * configure.ac: Handle optional debuginfod support.
11004 * debuginfod-support.c: debuginfod helper functions.
11005 * debuginfod-support.h: Ditto.
11006 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11007 summary.
11008 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11009 when a dwz file cannot be found.
11010 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11011 debuginfo file cannot be found.
11012 * source.c (open_source_file): Query debuginfod servers when a
11013 source file cannot be found.
11014 * top.c (print_gdb_configuration): Include
11015 --{with,without}-debuginfod in the output.
11016
b65ce565
JG
110172020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11018
11019 * thread.c (thr_try_catch_cmd): Print thread name.
11020
d4c9a4f8
SM
110212020-02-26 Simon Marchi <simon.marchi@efficios.com>
11022
11023 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11024 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11025 dwarf2_fetch_die_type_sect_off): Move to...
11026 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11027 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11028 dwarf2_fetch_die_type_sect_off): ... here.
11029 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11030 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11031 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11032
0dce4280
TV
110332020-02-26 Tom de Vries <tdevries@suse.de>
11034
11035 PR gdb/25603
11036 * symfile.c (set_initial_language): Exit-early if
11037 language_mode == language_mode_manual.
11038
450a1bfc
SM
110392020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11040
11041 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11042 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11043 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11044
9e80cfa1
AB
110452020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11046
11047 * gdbtypes.c (create_array_type_with_stride): Handle negative
11048 array strides.
11049 * valarith.c (value_subscripted_rvalue): Likewise.
11050
09624f1f
LM
110512020-02-25 Luis Machado <luis.machado@linaro.org>
11052
11053 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11054
8cb5117c
SM
110552020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11056
11057 * loc.h (dwarf2_get_die_type): Move to...
11058 * read.h (dwarf2_get_die_type): ... here.
11059 * read.c (dwarf2_get_die_type): Move doc to header.
11060
c325c44e
JB
110612020-02-25 Joel Brobecker <brobecker@adacore.com>
11062
11063 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11064 'gnulib/Makefile.in' to the list.
11065
4ac93832
TT
110662020-02-24 Tom Tromey <tom@tromey.com>
11067
11068 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11069 Remove.
11070 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11071 XOBNEWVEC.
11072
197400e8
TT
110732020-02-24 Tom Tromey <tom@tromey.com>
11074
11075 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11076 New method.
11077 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11078 (dw2_do_instantiate_symtab, dw2_get_file_names)
11079 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11080
76935768
TT
110812020-02-24 Tom Tromey <tom@tromey.com>
11082
11083 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11084 make_scoped_restore.
11085 (dwarf2_psymtab::read_symtab): Don't clear
11086 reading_partial_symbols.
11087
a88ef40d
TV
110882020-02-24 Tom de Vries <tdevries@suse.de>
11089
11090 PR gdb/25592
11091 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11092
c9af6521
TV
110932020-02-24 Tom de Vries <tdevries@suse.de>
11094
11095 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11096 commands layout next/prev/regs.
11097
5707a07a
TT
110982020-02-22 Tom Tromey <tom@tromey.com>
11099
11100 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11101 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11102
3b0fb49e
TT
111032020-02-22 Tom Tromey <tom@tromey.com>
11104
11105 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11106
283be8bf
TT
111072020-02-22 Tom Tromey <tom@tromey.com>
11108
11109 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11110 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11111 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11112 * tui/tui.c (_initialize_tui): Add usage text.
11113
ca793b96
TT
111142020-02-22 Tom Tromey <tom@tromey.com>
11115
11116 * tui/tui-win.c (tui_set_focus_command)
11117 (tui_set_win_height_command): Use error_no_arg.
11118 (_initialize_tui_win): Update help text.
11119 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11120
432b5c40
TT
111212020-02-22 Tom Tromey <tom@tromey.com>
11122
11123 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11124 * tui/tui-disasm.h (struct tui_disasm_window)
11125 <display_start_addr>: Declare.
11126 * tui/tui-source.h (struct tui_source_window)
11127 <display_start_addr>: Declare.
11128 * tui/tui-winsource.h (struct tui_source_window_base)
11129 <show_source_line, display_start_addr>: New methods.
11130 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11131 Rename and move to protected section.
11132 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11133 (tui_source_window_base::do_erase_source_content): Update.
11134 (tui_source_window_base::show_source_line): Now a method.
11135 (tui_source_window_base::show_source_content)
11136 (tui_source_window_base::tui_source_window_base)
11137 (tui_source_window_base::rerender)
11138 (tui_source_window_base::refill)
11139 (tui_source_window_base::do_scroll_horizontal)
11140 (tui_source_window_base::set_is_exec_point_at)
11141 (tui_source_window_base::update_breakpoint_info)
11142 (tui_source_window_base::update_exec_info): Update.
11143 * tui/tui-source.c (tui_source_window::set_contents)
11144 (tui_source_window::showing_source_p)
11145 (tui_source_window::do_scroll_vertical)
11146 (tui_source_window::location_matches_p)
11147 (tui_source_window::line_is_displayed): Update.
11148 (tui_source_window::display_start_addr): New method.
11149 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11150 (tui_disasm_window::do_scroll_vertical)
11151 (tui_disasm_window::location_matches_p): Update.
11152 (tui_disasm_window::display_start_addr): New method.
11153
01b1af32
TT
111542020-02-22 Tom Tromey <tom@tromey.com>
11155
11156 * NEWS: Add entry for gdb.register_window_type.
11157 * tui/tui-layout.h (window_factory): New typedef.
11158 (tui_register_window): Declare.
11159 * tui/tui-layout.c (saved_tui_windows): New global.
11160 (tui_apply_current_layout): Use it.
11161 (tui_register_window): New function.
11162 * python/python.c (do_start_initialization): Call
11163 gdbpy_initialize_tui.
11164 (python_GdbMethods): Add "register_window_type" function.
11165 * python/python-internal.h (gdbpy_register_tui_window)
11166 (gdbpy_initialize_tui): Declare.
11167 * python/py-tui.c: New file.
11168 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11169
fc96d20b
TT
111702020-02-22 Tom Tromey <tom@tromey.com>
11171
11172 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11173
935c78c0
TT
111742020-02-22 Tom Tromey <tom@tromey.com>
11175
11176 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11177 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11178 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11179 (tui_set_win_focus_to): Move from tui-win.c.
11180
0240c8f1
TT
111812020-02-22 Tom Tromey <tom@tromey.com>
11182
11183 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11184 functions.
11185 (known_window_types): New global.
11186 (tui_get_window_by_name): Reimplement.
11187 (initialize_known_windows): New function.
11188 (validate_window_name): Rewrite.
11189 (_initialize_tui_layout): Call initialize_known_windows.
11190
fdb01f0c
TT
111912020-02-22 Tom Tromey <tom@tromey.com>
11192
11193 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11194 Remove constants.
11195 * tui/tui-winsource.h (struct tui_source_window_base)
11196 <tui_source_window_base>: Remove parameter.
11197 * tui/tui-winsource.c
11198 (tui_source_window_base::tui_source_window_base): Remove
11199 parameter.
11200 (tui_source_window_base::refill): Update.
11201 * tui/tui-stack.h (struct tui_locator_window)
11202 <tui_locator_window>: Update.
11203 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11204 Default the constructor.
11205 * tui/tui-regs.h (struct tui_data_item_window)
11206 <tui_data_item_window>: Default the constructor.
11207 (struct tui_data_window) <tui_data_window>: Likewise.
11208 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11209 Default the constructor.
11210 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11211 Default the constructor.
11212 <type>: Remove.
11213 (struct tui_win_info) <tui_win_info>: Default the constructor.
11214 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11215 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11216 Default the constructor.
11217
865a5aec
TT
112182020-02-22 Tom Tromey <tom@tromey.com>
11219
11220 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11221 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11222 * tui/tui-win.c (tui_resize_all): Don't call
11223 tui_delete_invisible_windows.
11224 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11225 done.
11226 (tui_set_layout): Update.
11227 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11228 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11229 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11230
e098d18c
TT
112312020-02-22 Tom Tromey <tom@tromey.com>
11232
11233 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11234 correctly.
11235
eb9c8874
TT
112362020-02-22 Tom Tromey <tom@tromey.com>
11237
11238 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11239
7eed1a8e
TT
112402020-02-22 Tom Tromey <tom@tromey.com>
11241
11242 * tui/tui-winsource.h (struct tui_source_window_iterator)
11243 <inner_iterator>: New etytypedef.
11244 <tui_source_window_iterator>: Take "end" parameter.
11245 <tui_source_window_iterator>: Take iterator.
11246 <operator*, advance>: Update.
11247 <m_iter>: Change type.
11248 <m_end>: New field.
11249 (struct tui_source_windows) <begin, end>: Update.
11250 * tui/tui-layout.c (tui_windows): New global.
11251 (tui_apply_current_layout): Clear tui_windows.
11252 (tui_layout_window::apply): Update tui_windows.
11253 * tui/tui-data.h (tui_windows): Declare.
11254 (all_tui_windows): Now inline function.
11255 (class tui_window_iterator, struct all_tui_windows): Remove.
11256
7c043ba6
TT
112572020-02-22 Tom Tromey <tom@tromey.com>
11258
11259 PR tui/17850:
11260 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11261 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11262 "height" argument.
11263 (class tui_layout_window) <get_sizes>: Likewise.
11264 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11265 argument.
11266 <get_sizes>: Add "height" argument.
11267 <m_vertical>: New field.
11268 * tui/tui-layout.c (tui_layout_split::clone): Update.
11269 (tui_layout_split::get_sizes): Add "height" argument.
11270 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11271 (tui_new_layout_command): Parse "-horizontal".
11272 (_initialize_tui_layout): Update help string.
11273 (tui_layout_split::specification): Add "-horizontal" when needed.
11274 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11275 argument.
11276 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11277 New methods.
11278
6bc56648
TT
112792020-02-22 Tom Tromey <tom@tromey.com>
11280
11281 * tui/tui-layout.h (enum tui_adjust_result): New.
11282 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11283 (class tui_layout_window) <adjust_size>: Return
11284 tui_adjust_result. Rewrite.
11285 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11286 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11287
c22fef7e
TT
112882020-02-22 Tom Tromey <tom@tromey.com>
11289
11290 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11291 parameter and return types.
11292 (class tui_layout_base) <specification>: Add "depth".
11293 (class tui_layout_window) <specification>: Add "depth".
11294 (class tui_layout_split) <specification>: Add "depth".
11295 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11296 and return types.
11297 (tui_new_layout_command): Parse sub-layouts.
11298 (_initialize_tui_layout): Update help string.
11299 (tui_layout_window::specification): Add "depth".
11300 (add_layout_command): Update.
11301
ee325b61
TT
113022020-02-22 Tom Tromey <tom@tromey.com>
11303
11304 * NEWS: Add "tui new-layout" item.
11305 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11306 Add new-layout command to help text.
11307 (validate_window_name): New function.
11308 (tui_new_layout_command): New function.
11309 (_initialize_tui_layout): Register "new-layout".
11310 (tui_layout_window::specification): New method.
11311 (tui_layout_window::specification): New method.
11312 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11313 method.
11314 (class tui_layout_window) <specification>: New method.
11315 (class tui_layout_split) <specification>: New method.
11316
416eb92d
TT
113172020-02-22 Tom Tromey <tom@tromey.com>
11318
11319 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11320 * tui/tui-win.c (window_name_completer): Update comment.
11321 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11322 Declare method.
11323 (class tui_layout_window) <replace_window>: Likewise.
11324 (class tui_layout_split) <replace_window>: Likewise.
11325 (tui_set_layout): Don't declare.
11326 (tui_set_initial_layout): Declare function.
11327 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11328 (asm_regs_layout): New globals.
11329 (tui_current_layout, show_layout): Remove.
11330 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11331 (find_layout, tui_apply_layout): New function.
11332 (layout_completer): Remove.
11333 (tui_next_layout): Reimplement.
11334 (tui_next_layout_command): New function.
11335 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11336 (tui_regs_layout): Reimplement.
11337 (tui_regs_layout_command): New function.
11338 (extract_display_start_addr): Rewrite.
11339 (next_layout, prev_layout): Remove.
11340 (tui_layout_window::replace_window): New method.
11341 (tui_layout_split::replace_window): New method.
11342 (destroy_layout): New function.
11343 (layout_list): New global.
11344 (add_layout_command): New function.
11345 (initialize_layouts): Update.
11346 (tui_layout_command): New function.
11347 (_initialize_tui_layout): Install "layout" commands.
11348 * tui/tui-data.h (enum tui_layout_type): Remove.
11349 (tui_current_layout): Don't declare.
11350
0dbc2fc7
TT
113512020-02-22 Tom Tromey <tom@tromey.com>
11352
11353 * tui/tui-regs.c (tui_reg_layout): Remove.
11354 (tui_reg_command): Use tui_regs_layout.
11355 * tui/tui-layout.h (tui_reg_command): Declare.
11356 * tui/tui-layout.c (tui_reg_command): New function.
11357
5afe342e
TT
113582020-02-22 Tom Tromey <tom@tromey.com>
11359
11360 * tui/tui.c (tui_rl_delete_other_windows): Call
11361 tui_remove_some_windows.
11362 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11363 Declare method.
11364 (class tui_layout_window) <remove_windows>: New method.
11365 (class tui_layout_split) <remove_windows>: Declare.
11366 (tui_remove_some_windows): Declare.
11367 * tui/tui-layout.c (tui_remove_some_windows): New function.
11368 (tui_layout_split::remove_windows): New method.
11369
427326a8
TT
113702020-02-22 Tom Tromey <tom@tromey.com>
11371
11372 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11373 * tui/tui-layout.h (tui_next_layout): Declare.
11374 * tui/tui-layout.c (tui_next_layout): New function.
11375
3fe12b6d
TT
113762020-02-22 Tom Tromey <tom@tromey.com>
11377
11378 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11379 correct coordinates.
11380
59b8b5d2
TT
113812020-02-22 Tom Tromey <tom@tromey.com>
11382
11383 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11384 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11385 DATA_WIN case.
11386
2a3d458b
TT
113872020-02-22 Tom Tromey <tom@tromey.com>
11388
11389 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11390 TUI_DISASM_WIN, not tui_win_list.
11391
3f0cbb04
TT
113922020-02-22 Tom Tromey <tom@tromey.com>
11393
11394 * valprint.c (generic_val_print_enum_1)
11395 (val_print_type_code_flags): Style member names.
11396 * rust-lang.c (val_print_struct, rust_print_enum)
11397 (rust_print_struct_def, rust_internal_print_type): Style member
11398 names.
11399 * p-valprint.c (pascal_object_print_value_fields): Style member
11400 names. Only call fprintf_symbol_filtered for static members.
11401 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11402 * f-valprint.c (f_val_print): Style member names.
11403 * f-typeprint.c (f_type_print_base): Style member names.
11404 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11405 call fprintf_symbol_filtered for static members.
11406 (cp_print_class_member): Style member names.
11407 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11408 member names.
11409 * ada-valprint.c (ada_print_scalar): Style enum names.
11410 (ada_val_print_enum): Likewise.
11411 * ada-typeprint.c (print_enum_type): Style enum names.
11412
d4d947ae
TT
114132020-02-21 Tom Tromey <tom@tromey.com>
11414
11415 * psympriv.h (struct partial_symtab): Update comment.
11416
e94e944b
TT
114172020-02-21 Tom Tromey <tromey@adacore.com>
11418
11419 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11420 type is CORE_ADDR.
11421
1eb73179
TV
114222020-02-21 Tom de Vries <tdevries@suse.de>
11423
11424 PR gdb/25534
11425 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11426 if dependencies[i]->user != NULL.
11427
4f180d53
AT
114282020-02-21 Ali Tamur <tamur@google.com>
11429
11430 * dwarf2/read.c (dwarf2_name): Add null check.
11431
22b6cd70
TT
114322020-02-20 Tom Tromey <tom@tromey.com>
11433
11434 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11435 ">=", in binary search.
11436 (dwarf2_find_containing_comp_unit): New overload.
11437 (run_test): New self-test.
11438 (_initialize_dwarf2_read): Register new test.
11439
bd0cf5a6
NC
114402020-02-20 Nelson Chu <nelson.chu@sifive.com>
11441
11442 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11443 * riscv-tdep.h: Likewise.
11444 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11445 rv32-only CSR.
11446 * features/riscv/64bit-csr.xml: Regenerated.
11447
3f702acd
SDJ
114482020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11449 Tom Tromey <tom@tromey.com>
11450
11451 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11452 of 'fputc_unfiltered'.
11453 (putchar_unfiltered): Call 'fputc_unfiltered'.
11454 (fputc_unfiltered): Call 'fputs_unfiltered'.
11455
d13c7322
AB
114562020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11457
11458 * config.in: Regenerate.
11459 * configure: Regenerate.
11460 * configure.ac: Add --with-python-libdir option.
11461 * main.c: Use WITH_PYTHON_LIBDIR.
11462
869d8950
TT
114632020-02-19 Tom Tromey <tom@tromey.com>
11464
11465 * symtab.c (general_symbol_info::compute_and_set_names): Use
11466 obstack_strndup. Simplify call to symbol_set_demangled_name.
11467
298e9637
SM
114682020-02-19 Simon Marchi <simon.marchi@efficios.com>
11469
11470 * dwarf2/read.c (allocate_signatured_type_table,
11471 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11472 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11473 Remove objfile parameter, update all callers.
11474
08410482
DE
114752020-02-19 Doug Evans <dje@google.com>
11476
11477 PR rust/25535
11478 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11479 rust_enum_variant calculation.
11480
dfdeeca1
TT
114812020-02-19 Tom Tromey <tromey@adacore.com>
11482
11483 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11484
2ef5453b
TT
114852020-02-19 Tom Tromey <tromey@adacore.com>
11486
11487 * ada-lang.c (cache_symbol): Use obstack_strdup.
11488
9f1528a1
AB
114892020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11490
11491 * configure: Regenerate.
11492
d3c22fa8
TT
114932020-02-19 Tom Tromey <tromey@adacore.com>
11494
11495 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11496 NULL check.
11497
bf84f706
MR
114982020-02-19 Maciej W. Rozycki <macro@wdc.com>
11499
11500 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11501
d1c9b20f
AB
115022020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11503
11504 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11505 if GDBSERVER is not defined.
11506 (riscv_tdesc_cache): Likewise, also store const target_desc.
11507 (STATIC_IN_GDB): Define.
11508 (riscv_create_target_description): Update declaration with
11509 STATIC_IN_GDB.
11510 (riscv_lookup_target_description): New function, only define if
11511 GDBSERVER is not defined.
11512 * arch/riscv.h (riscv_create_target_description): Declare only
11513 when GDBSERVER is defined.
11514 (riscv_lookup_target_description): New declaration when GDBSERVER
11515 is not defined.
11516 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11517 (riscv_linux_read_features): ...this, and return
11518 riscv_gdbarch_features instead of target_desc.
11519 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11520 (riscv_linux_read_description): Rename to...
11521 (riscv_linux_read_features): ...this.
11522 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11523 Update to use riscv_gdbarch_features and
11524 riscv_lookup_target_description.
11525 * riscv-tdep.c (riscv_find_default_target_description): Use
11526 riscv_lookup_target_description instead of
11527 riscv_create_target_description.
11528
373d7ac0
SM
115292020-02-18 Simon Marchi <simon.marchi@efficios.com>
11530
11531 * valprint.c (generic_val_print_enum_1): When printing a flag
11532 enum with value 0 and there is no enumerator with value 0, print
11533 just "0" instead of "(unknown: 0x0)".
11534
b29a2df0
SM
115352020-02-18 Simon Marchi <simon.marchi@efficios.com>
11536
11537 * valprint.c (generic_val_print_enum_1): Print unknown part of
11538 flag enum in hex.
11539
6740f0cc
SM
115402020-02-18 Simon Marchi <simon.marchi@efficios.com>
11541
11542 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11543 flag enums to contain duplicate enumerators.
11544 * valprint.c (generic_val_print_enum_1): Update comment.
11545
edd45eb0
SM
115462020-02-18 Simon Marchi <simon.marchi@efficios.com>
11547
11548 * dwarf2/read.c: Include "count-one-bits.h".
11549 (update_enumeration_type_from_children): If an enumerator has
11550 multiple bits set, don't treat the enumeration as a "flag enum".
11551 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11552 of flag enums have 0 or 1 bit set.
11553
6d0cf446
BE
115542020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11555
11556 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11557 conversion.
11558 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11559 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11560 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11561 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11562 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11563
7001c1b7
SM
115642020-02-18 Simon Marchi <simon.marchi@efficios.com>
11565
11566 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11567
fdb61c6c
SM
115682020-02-14 Simon Marchi <simon.marchi@efficios.com>
11569
11570 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11571 displaced_step_closure_up.
11572 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11573 (struct displaced_step_closure_up):
11574 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11575 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11576 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11577 Likewise.
11578 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11579 * gdbarch.c, gdbarch.h: Re-generate.
11580 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11581 displaced_step_closure_up.
11582 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11583 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11584 * infrun.h (displaced_step_closure_up): New type alias.
11585 (struct displaced_step_inferior_state) <step_closure>: Change
11586 type to displaced_step_closure_up.
11587 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11588 displaced_step_closure_up.
11589 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11590
a4a38eb4
TT
115912020-02-14 Tom Tromey <tom@tromey.com>
11592
11593 * minidebug.c (gnu_debug_key): New global.
11594 (find_separate_debug_file_in_section): Use it.
11595
e8217e61
SM
115962020-02-14 Simon Marchi <simon.marchi@efficios.com>
11597
11598 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11599 std::unique_ptr.
11600 * gdbarch.c: Re-generate.
11601 * gdbarch.h: Re-generate.
11602 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11603 change.
11604 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11605 type to std::unique_ptr.
11606 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11607 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11608 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11609 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11610 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11611 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11612 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11613 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11614 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11615
d8d83535
SM
116162020-02-14 Simon Marchi <simon.marchi@efficios.com>
11617
11618 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11619 std::unique_ptr.
11620 (displaced_step_clear): Rename to...
11621 (displaced_step_reset): ... this. Just call displaced->reset ().
11622 (displaced_step_clear_cleanup): Rename to...
11623 (displaced_step_reset_cleanup): ... this.
11624 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11625 (displaced_step_fixup): Likewise.
11626 (resume_1): Likewise.
11627 (handle_inferior_event): Restore child's memory before calling
11628 displaced_step_fixup on the parent.
11629 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11630 to std::unique_ptr.
11631 <step_closure>: Change type to std::unique_ptr.
11632
5f661e03
SM
116332020-02-14 Simon Marchi <simon.marchi@efficios.com>
11634
11635 * arm-tdep.c: Include count-one-bits.h.
11636 (cleanup_block_store_pc): Use count_one_bits.
11637 (cleanup_block_load_pc): Use count_one_bits.
11638 (arm_copy_block_xfer): Use count_one_bits.
11639 (thumb2_copy_block_xfer): Use count_one_bits.
11640 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11641 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11642 (thumb_get_next_pcs_raw): Use count_one_bits.
11643 (arm_get_next_pcs_raw): Use count_one_bits_l.
11644 * arch/arm.c (bitcount): Remove.
11645 * arch/arm.h (bitcount): Remove.
11646
8084e579
TT
116472020-02-14 Tom Tromey <tromey@adacore.com>
11648
11649 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11650 Update.
11651 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11652 * dwarf2/loc.c (call_site_find_chain_1): Return
11653 unique_xmalloc_ptr.
11654 (call_site_find_chain): Likewise.
11655
258bf0ee
RB
116562020-02-14 Richard Biener <rguenther@suse.de>
11657
11658 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11659 on expression with division operators.
11660
f98a8458
AKS
116612020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11662
11663 * MAINTAINERS (Write After Approval): Adding myself.
11664
d1437c0e
TT
116652020-02-12 Tom Tromey <tom@tromey.com>
11666
11667 * event-loop.c (event_data, gdb_event, event_handler_func):
11668 Remove.
11669
3d4560f7
TT
116702020-02-12 Tom Tromey <tom@tromey.com>
11671
11672 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11673 (dwarf2_frame_objfile_data): Add comment.
11674 (find_comp_unit, set_comp_unit): New functions.
11675 (dwarf2_frame_find_fde): Use find_comp_unit.
11676 (dwarf2_build_frame_info): Use set_comp_unit.
11677
21982304
TT
116782020-02-12 Tom Tromey <tom@tromey.com>
11679
11680 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11681 (comp_unit): Don't initialize objfile.
11682 (execute_cfa_program): Add text_offset parameter.
11683 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11684 (dwarf2_frame_cache): Update.
11685 (dwarf2_build_frame_info): Don't set "objfile" member.
11686
4debb237
TT
116872020-02-12 Tom Tromey <tom@tromey.com>
11688
11689 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11690 (decode_frame_entry): Likewise.
11691 (dwarf2_build_frame_info): Update.
11692
0d404d44
TT
116932020-02-12 Tom Tromey <tom@tromey.com>
11694
11695 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11696 (decode_frame_entry_1): Use the comp_unit obstack.
11697
a7a3ae5c
TT
116982020-02-12 Tom Tromey <tom@tromey.com>
11699
11700 * dwarf2/frame.c (struct comp_unit): Add initializers and
11701 constructor.
11702 (dwarf2_frame_objfile_data): Store a comp_unit.
11703 (dwarf2_frame_find_fde): Update.
11704 (dwarf2_build_frame_info): Use "new".
11705
a9d65418
TT
117062020-02-12 Tom Tromey <tom@tromey.com>
11707
11708 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11709 (dwarf2_fde_table): Typedef for std::vector.
11710 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11711 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11712 (decode_frame_entry): Update.
11713 (dwarf2_build_frame_info): Use "new".
11714
7559c217
CB
117152020-02-12 Christian Biesinger <cbiesinger@google.com>
11716
11717 * arm-tdep.c (arm_gdbarch_init): Update.
11718 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11719 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11720 have_neon, is_m>: Change to bool.
11721
aeefc73c
CB
117222020-02-12 Christian Biesinger <cbiesinger@google.com>
11723
11724 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11725
d27b8e5f
TT
117262020-02-12 Tom Tromey <tom@tromey.com>
11727
11728 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11729
cd5900f3
HD
117302020-02-12 Hannes Domani <ssbssa@yahoo.de>
11731
11732 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11733 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11734
f056b22b
TT
117352020-02-11 Tom Tromey <tom@tromey.com>
11736
11737 * psymtab.h: Update comment.
11738
f92ff6b5
TT
117392020-02-11 Tom Tromey <tom@tromey.com>
11740
11741 * gdb_obstack.h (struct auto_obstack): Use
11742 DISABLE_COPY_AND_ASSIGN.
11743
3fd6912b
TT
117442020-02-11 Tom Tromey <tom@tromey.com>
11745
11746 * dwarf2/frame.h (struct objfile): Don't forward declare.
11747
69ed9b74
CB
117482020-02-11 Christian Biesinger <cbiesinger@google.com>
11749
11750 * cris-tdep.c (cris_supply_gregset): Change signature to match
11751 what struct regset expects.
11752 (cris_regset): New struct.
11753 (fetch_core_registers): Remove.
11754 (cris_iterate_over_regset_sections): New function.
11755 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11756 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11757
bda874f6
CB
117582020-02-11 Christian Biesinger <cbiesinger@google.com>
11759
11760 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11761 registers.
11762
754e1564
CB
117632020-02-11 Christian Biesinger <cbiesinger@google.com>
11764
11765 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11766
8ddd8e0e
SM
117672020-02-11 Simon Marchi <simon.marchi@efficios.com>
11768
11769 * configure: Re-generate.
11770
898e7f60
SM
117712020-02-11 Simon Marchi <simon.marchi@efficios.com>
11772
11773 * configure: Re-generate.
11774
58df732b
SM
117752020-02-11 Simon Marchi <simon.marchi@efficios.com>
11776
11777 * acinclude: Update warning.m4 path.
11778 * warning.m4: Move to gdbsupport.
11779
da5bd37e
TT
117802020-02-11 Tom Tromey <tromey@adacore.com>
11781
11782 * remote.c (remote_console_output): Update.
11783 * printcmd.c (printf_command): Update.
11784 * event-loop.c (gdb_wait_for_event): Update.
11785 * linux-nat.c (sigchld_handler): Update.
11786 * remote-sim.c (gdb_os_write_stdout): Update.
11787 (gdb_os_flush_stdout): Update.
11788 (gdb_os_flush_stderr): Update.
11789 (gdb_os_write_stderr): Update.
11790 * exceptions.c (print_exception): Update.
11791 * remote-fileio.c (remote_fileio_func_read): Update.
11792 (remote_fileio_func_write): Update.
11793 * tui/tui.c (tui_enable): Update.
11794 * tui/tui-interp.c (tui_interp::init): Update.
11795 * utils.c (init_page_info): Update.
11796 (putchar_unfiltered, fputc_unfiltered): Update.
11797 (gdb_flush): Update.
11798 (emit_style_escape): Update.
11799 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11800 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11801 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11802 (stderr_file::write): Update.
11803 (stderr_file::puts): Update.
11804 * ui-file.h (ui_file_isatty, ui_file_write)
11805 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11806 (ui_file_puts): Don't declare.
11807
85f0dd3c
TV
118082020-02-10 Tom de Vries <tdevries@suse.de>
11809
11810 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11811 sentinel to char *.
11812
2e927613
TV
118132020-02-09 Tom de Vries <tdevries@suse.de>
11814
11815 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11816 filename if it matches "<artificial>".
11817
6bafc845
HD
118182020-02-09 Hannes Domani <ssbssa@yahoo.de>
11819
11820 * windows-tdep.c (struct enum_value_name): New struct.
11821 (create_enum): New function.
11822 (windows_get_siginfo_type): Create and use enum types.
11823
7928d571
HD
118242020-02-09 Hannes Domani <ssbssa@yahoo.de>
11825
11826 * NEWS: Mention $_siginfo support for Windows.
11827 * windows-nat.c (handle_exception): Set siginfo_er.
11828 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11829 (windows_xfer_siginfo): New function.
11830 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11831 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11832 (init_windows_gdbarch_data): New function.
11833 (get_windows_gdbarch_data): New function.
11834 (windows_get_siginfo_type): New function.
11835 (windows_init_abi): Register windows_get_siginfo_type.
11836 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11837
6751ebae
TT
118382020-02-08 Tom Tromey <tom@tromey.com>
11839
11840 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11841 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11842 <keep>: Declare method.
11843 <m_keep>: Remove member.
11844 <~cutu_reader>: Remove.
11845 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11846 (cutu_reader::cutu_reader): Update.
11847 (cutu_reader::keep): Rename from ~cutu_reader.
11848 (process_psymtab_comp_unit, build_type_psymtabs_1)
11849 (process_skeletonless_type_unit, load_partial_comp_unit)
11850 (load_full_comp_unit, dwarf2_read_addr_index)
11851 (read_signatured_type): Update.
11852
135f5437
TT
118532020-02-08 Tom Tromey <tom@tromey.com>
11854
11855 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11856 "want_partial_unit" parameter.
11857 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11858 Inline check for DW_TAG_partial_unit.
11859 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11860
9f66ff1c
TT
118612020-02-08 Tom Tromey <tom@tromey.com>
11862
11863 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11864 read.c.
11865 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11866 read.c.
11867
c8a7a66f
TT
118682020-02-08 Tom Tromey <tom@tromey.com>
11869
11870 * dwarf2/read.c (read_address): Move to comp-unit.c.
11871 (dwarf2_rnglists_process, dwarf2_ranges_process)
11872 (read_attribute_value, dwarf_decode_lines_1)
11873 (var_decode_location, decode_locdesc): Update.
11874 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11875 read.c. Remove "cu" parameter.
11876 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11877 method.
11878
8266302d
TT
118792020-02-08 Tom Tromey <tom@tromey.com>
11880
11881 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11882 (read_indirect_line_string): Update.
11883 * dwarf2/comp-unit.c (read_offset): Remove.
11884 (read_comp_unit_head): Update.
11885 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11886 method.
11887 (read_offset): Don't declare.
11888
4057dfde
TT
118892020-02-08 Tom Tromey <tom@tromey.com>
11890
11891 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11892 * dwarf2/read.c (struct comp_unit_head): Move to
11893 dwarf2/comp-unit.h.
11894 (enum class rcuh_kind): Move to comp-unit.h.
11895 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11896 (read_comp_unit_head, error_check_comp_unit_head)
11897 (read_and_check_comp_unit_head): Move to comp-unit.c.
11898 (read_offset, dwarf_unit_type_name): Likewise.
11899 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11900 (cutu_reader::cutu_reader, read_call_site_scope)
11901 (find_partial_die, follow_die_offset): Update.
11902 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11903
24aa364d
TT
119042020-02-08 Tom Tromey <tom@tromey.com>
11905
11906 * dwarf2/read.c (read_offset_1): Move to leb.c.
11907 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11908 (dwarf_decode_macro_bytes): Update.
11909 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11910 * dwarf2/leb.h (read_offset): Declare.
11911
2c7d5afc
TT
119122020-02-08 Tom Tromey <tom@tromey.com>
11913
11914 * dwarf2/read.c (dwarf2_section_size): Remove.
11915 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11916 Update.
11917 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11918
4075cb26
TT
119192020-02-08 Tom Tromey <tom@tromey.com>
11920
11921 * dwarf2/read.c (read_initial_length): Move to leb.c.
11922 * dwarf2/leb.h (read_initial_length): Declare.
11923 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11924 handle_nonstd parameter.
11925 * dwarf2/frame.c (read_initial_length): Remove.
11926 (decode_frame_entry_1): Update.
11927
09ba997f
TT
119282020-02-08 Tom Tromey <tom@tromey.com>
11929
11930 * dwarf2/loc.c (dwarf2_find_location_expression)
11931 (dwarf_evaluate_loc_desc::get_tls_address)
11932 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11933 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11934 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11935 (dwarf2_compile_property_to_c)
11936 (dwarf2_loc_desc_get_symbol_read_needs)
11937 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11938 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11939 (loclist_describe_location, loclist_tracepoint_var_ref)
11940 (loclist_generate_c_location): Update.
11941 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11942 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11943 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11944 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11945 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11946 (dwarf2_per_cu_data::addr_size)
11947 (dwarf2_per_cu_data::ref_addr_size)
11948 (dwarf2_per_cu_data::text_offset)
11949 (dwarf2_per_cu_data::addr_type): Now methods.
11950 (per_cu_header_read_in): Make per_cu "const".
11951 (dwarf2_version): Remove.
11952 (dwarf2_per_cu_data::int_type): Now a method.
11953 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11954 (set_die_type, read_array_type, read_subrange_index_type)
11955 (read_tag_string_type, read_subrange_type): Update.
11956 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11957 offset_size, ref_addr_size, text_offset, addr_type, version,
11958 objfile, int_type, addr_sized_int_type>: Declare methods.
11959
96c738c0
TT
119602020-02-08 Tom Tromey <tom@tromey.com>
11961
11962 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11963 Move earlier.
11964
8fdd972c
TT
119652020-02-08 Tom Tromey <tom@tromey.com>
11966
11967 * dwarf2/read.h (dwarf_line_debug): Declare.
11968 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11969 * dwarf2/read.c: Move line_header code to new files.
11970 (dwarf_line_debug): No longer static.
11971 * dwarf2/line-header.c: New file.
11972 * dwarf2/line-header.h: New file.
11973
03075812
TT
119742020-02-08 Tom Tromey <tom@tromey.com>
11975
11976 * dwarf2/read.c (struct line_header) <file_full_name,
11977 file_file_name>: Return unique_xmalloc_ptr.
11978 (line_header::file_file_name): Update.
11979 (line_header::file_full_name): Update.
11980 (dw2_get_file_names_reader): Update.
11981 (macro_start_file): Update.
11982
bb822404
TT
119832020-02-08 Tom Tromey <tom@tromey.com>
11984
11985 * dwarf2/read.c (struct line_header) <file_full_name,
11986 file_file_name>: Declare methods.
11987 (dw2_get_file_names_reader): Update.
11988 (file_file_name): Now a method.
11989 (file_full_name): Likewise.
11990 (macro_start_file): Update.
11991
009b64fc
TT
119922020-02-08 Tom Tromey <tom@tromey.com>
11993
11994 * dwarf2/read.c (dwarf_always_disassemble)
11995 (show_dwarf_always_disassemble): Move to loc.c.
11996 (_initialize_dwarf2_read): Move "always-disassemble" registration
11997 to loc.c.
11998 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11999 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12000 static.
12001 (show_dwarf_always_disassemble): Move from read.c.
12002 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12003
5895093f
TT
120042020-02-08 Tom Tromey <tom@tromey.com>
12005
12006 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12007 (create_quick_file_names_table): Return htab_up.
12008 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12009 Update.
12010 * dwarf2/read.h (struct dwarf2_per_objfile)
12011 <quick_file_names_table>: Now htab_up.
12012
b3b32279
TT
120132020-02-08 Tom Tromey <tom@tromey.com>
12014
12015 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12016
1d33d811
TT
120172020-02-08 Tom Tromey <tom@tromey.com>
12018
12019 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12020 Rewrite.
12021 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12022 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12023 (abbrev_table::abbrev_table): No longer inline.
12024 (ABBREV_HASH_SIZE): Remove.
12025 (abbrev_table::m_abbrevs): Now an htab_up.
12026
86de1d91
TT
120272020-02-08 Tom Tromey <tom@tromey.com>
12028
12029 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12030 (cutu_reader): Update.
12031 (build_type_psymtabs_1): Update.
12032 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12033 (abbrev_table::alloc_abbrev): Update.
12034 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12035 (abbrev_table::read): New static method, renamed from
12036 abbrev_table_read_table.
12037 (abbrev_table::alloc_abbrev)
12038 (abbrev_table::add_abbrev): Now private.
12039 (abbrev_table::abbrev_table): Now private.
12040 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12041
0335378b
TT
120422020-02-08 Tom Tromey <tom@tromey.com>
12043
12044 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12045 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12046 htab_up.
12047
48b490f2
TT
120482020-02-08 Tom Tromey <tom@tromey.com>
12049
12050 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12051 htab_up.
12052 (lookup_dwo_unit_in_dwp): Update.
12053 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12054 on obstack.
12055
bc68fb19
TT
120562020-02-08 Tom Tromey <tom@tromey.com>
12057
12058 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12059 obstack.
12060
d15acc42
TT
120612020-02-08 Tom Tromey <tom@tromey.com>
12062
12063 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12064 line_header_hash.
12065 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12066 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12067 Change type to htab_up.
12068
eaa5fa8b
TT
120692020-02-08 Tom Tromey <tom@tromey.com>
12070
12071 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12072 htab_up. Don't allocate on obstack.
12073 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12074 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12075 Change type to htab_up.
12076
b0b6a987
TT
120772020-02-08 Tom Tromey <tom@tromey.com>
12078
12079 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12080 Change type to htab_up.
12081 * dwarf2/read.c (create_signatured_type_table_from_index)
12082 (create_signatured_type_table_from_debug_names)
12083 (create_all_type_units, add_type_unit)
12084 (lookup_dwo_signatured_type, lookup_signatured_type)
12085 (process_skeletonless_type_unit): Update.
12086 (create_debug_type_hash_table, create_debug_types_hash_table):
12087 Change type of types_htab.
12088 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12089 htab_up. Don't allocate on obstack.
12090 (create_cus_hash_table): Change type of cus_htab parameter.
12091 (struct dwo_file) <cus, tus>: Now htab_up.
12092 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12093 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12094 (queue_and_load_all_dwo_tus): Update.
12095 * dwarf2/index-write.c (write_gdbindex): Update.
12096 (write_debug_names): Update.
12097
39856def
TT
120982020-02-08 Tom Tromey <tom@tromey.com>
12099
12100 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12101 dwarf2/read.c. Remove "next" member. Add constructor ntad
12102 destructor.
12103 (struct dwarf2_per_objfile) <queue>: New member.
12104 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12105 dwarf2/read.h.
12106 (dwarf2_queue, dwarf2_queue_tail): Remove.
12107 (class dwarf2_queue_guard): Add parameter to constructor. Use
12108 DISABLE_COPY_AND_ASSIGN.
12109 <m_per_objfile>: New member.
12110 <~dwarf2_queue_guard>: Rewrite.
12111 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12112 Update.
12113 (~dwarf2_queue_item): New.
12114
3e225074
TT
121152020-02-08 Tom Tromey <tom@tromey.com>
12116
12117 * dwarf2/read.c (struct die_info) <has_children>: New member.
12118 (dw2_get_file_names_reader): Remove has_children.
12119 (dw2_get_file_names): Update.
12120 (read_cutu_die_from_dwo): Remove has_children.
12121 (cutu_reader::init_tu_and_read_dwo_dies)
12122 (cutu_reader::cutu_reader): Update.
12123 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12124 Remove has_children.
12125 (build_type_psymtabs_1, process_skeletonless_type_unit)
12126 (load_partial_comp_unit, load_full_comp_unit): Update.
12127 (create_dwo_cu_reader): Remove has_children.
12128 (create_cus_hash_table, read_die_and_children): Update.
12129 (read_full_die_1,read_full_die): Remove has_children.
12130 (read_signatured_type): Update.
12131 (class cutu_reader) <has_children>: Remove.
12132
82ca8957
TT
121332020-02-08 Tom Tromey <tom@tromey.com>
12134
12135 * dwarf2/expr.c: Rename from dwarf2expr.c.
12136 * dwarf2/expr.h: Rename from dwarf2expr.h.
12137 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12138 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12139 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12140 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12141 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12142 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12143 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12144 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12145 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12146 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12147 * dwarf2/loc.c: Rename from dwarf2loc.c.
12148 * dwarf2/loc.h: Rename from dwarf2loc.h.
12149 * dwarf2/read.c: Rename from dwarf2read.c.
12150 * dwarf2/read.h: Rename from dwarf2read.h.
12151 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12152 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12153 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12154 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12155 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12156 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12157 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12158 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12159 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12160 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12161 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12162 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12163 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12164 Update.
12165 * Makefile.in (COMMON_SFILES): Update.
12166 (HFILES_NO_SRCDIR): Update.
12167
9e35d499
TT
121682020-02-08 Tom Tromey <tom@tromey.com>
12169
12170 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12171 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12172
1eba2311
TT
121732020-02-08 Tom Tromey <tom@tromey.com>
12174
12175 * dwarf2read.h (struct die_info): Don't declare.
12176
e41c2da2
TT
121772020-02-08 Tom Tromey <tom@tromey.com>
12178
12179 * dwarf2read.h (die_info_ptr): Remove typedef.
12180
4fc6c0d5
TT
121812020-02-08 Tom Tromey <tom@tromey.com>
12182
12183 * dwarf2read.c (read_call_site_scope)
12184 (handle_data_member_location, dwarf2_add_member_fn)
12185 (mark_common_block_symbol_computed, read_common_block)
12186 (attr_to_dynamic_prop, partial_die_info::read)
12187 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12188 (dwarf2_symbol_mark_computed, set_die_type): Update.
12189 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12190 method.
12191 (attr_form_is_block): Don't declare.
12192 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12193
cd6c91b4
TT
121942020-02-08 Tom Tromey <tom@tromey.com>
12195
12196 * dwarf2read.c (dwarf2_find_base_address, )
12197 (read_call_site_scope, rust_containing_type)
12198 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12199 (handle_data_member_location, dwarf2_add_member_fn)
12200 (get_alignment, read_structure_type, process_structure_scope)
12201 (mark_common_block_symbol_computed, read_common_block)
12202 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12203 (partial_die_info::read, read_attribute_value, new_symbol)
12204 (lookup_die_type, dwarf2_get_ref_die_offset)
12205 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12206 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12207 (dwarf2_symbol_mark_computed): Update.
12208 * dwarf2/attribute.h (struct attribute) <value_as_address,
12209 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12210 methods.
12211 (value_as_address, attr_form_is_section_offset)
12212 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12213 * dwarf2/attribute.c (attribute::value_as_address)
12214 (attribute::form_is_section_offset, attribute::form_is_constant)
12215 (attribute::form_is_ref): Now methods.
12216
162dce55
TT
122172020-02-08 Tom Tromey <tom@tromey.com>
12218
12219 * dwarf2read.c (struct attribute, DW_STRING)
12220 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12221 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12222 (attr_form_is_block, attr_form_is_section_offset)
12223 (attr_form_is_constant, attr_form_is_ref): Move.
12224 * dwarf2/attribute.h: New file.
12225 * dwarf2/attribute.c: New file, from dwarf2read.c.
12226 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12227
3054dd54
TT
122282020-02-08 Tom Tromey <tom@tromey.com>
12229
12230 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12231 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12232 Move.
12233 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12234 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12235 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12236 abbrev.c.
12237 * dwarf2/abbrev.h: New file.
12238 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12239 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12240
96b79293
TT
122412020-02-08 Tom Tromey <tom@tromey.com>
12242
12243 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12244 (dwarf2_section_size, dwarf2_get_section_info)
12245 (create_signatured_type_table_from_debug_names)
12246 (create_addrmap_from_aranges, read_debug_names_from_section)
12247 (get_gdb_index_contents_from_section, read_comp_unit_head)
12248 (error_check_comp_unit_head, read_abbrev_offset)
12249 (create_debug_type_hash_table, init_cu_die_reader)
12250 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12251 (read_comp_units_from_section, create_cus_hash_table)
12252 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12253 (create_dwp_v2_section, dwarf2_rnglists_process)
12254 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12255 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12256 (read_indirect_string_from_dwz, read_addr_index_1)
12257 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12258 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12259 (fill_in_loclist_baton): Update.
12260 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12261 get_containing_section, get_bfd_owner, get_bfd_section,
12262 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12263 (dwarf2_read_section, get_section_name, get_section_file_name)
12264 (get_containing_section, get_section_bfd_owner)
12265 (get_section_bfd_section, get_section_name, get_section_file_name)
12266 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12267 declare.
12268 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12269 (dwarf2_section_info::get_bfd_owner)
12270 (dwarf2_section_info::get_bfd_section)
12271 (dwarf2_section_info::get_name)
12272 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12273 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12274 (dwarf2_section_info::read): Now methods.
12275 * dwarf-index-write.c (class debug_names): Update.
12276
2c86cff9
TT
122772020-02-08 Tom Tromey <tom@tromey.com>
12278
12279 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12280 Move to dwarf2/section.h.
12281 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12282 (get_section_bfd_section, get_section_name)
12283 (get_section_file_name, get_section_id, get_section_flags)
12284 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12285 dwarf2/section.c.
12286 * dwarf2/section.h: New file.
12287 * dwarf2/section.c: New file, from dwarf2read.c.
12288 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12289
f4382c45
TT
122902020-02-08 Tom Tromey <tom@tromey.com>
12291
12292 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12293 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12294 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12295 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12296 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12297 * dwarf2/leb.h: New file, from dwarf2read.c.
12298 * dwarf2/leb.c: New file, from dwarf2read.c.
12299 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12300 Remove.
12301 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12302 (COMMON_SFILES): Add dwarf2/leb.c.
12303
01840b7a
JB
123042020-02-08 Joel Brobecker <brobecker@adacore.com>
12305
12306 GDB 9.1 released.
12307
dfcb27e4
IB
123082020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12309
12310 PR gdb/25190:
aac66a4c
SM
12311 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12312 * gdb/remote.c (remote_console_output): Update.
12313 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12314 (ui_file_puts): ...this.
12315 * gdb/ui-file.h (ui_file_puts): Add declaration.
12316 * gdb/utils.c (emit_style_escape): Update.
12317 (flush_wrap_buffer): Update.
12318 (fputs_maybe_filtered): Update.
12319 (fputs_unfiltered): Add function.
dfcb27e4 12320
faa17681
IB
123212020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12322
aac66a4c
SM
12323 * gdb/event-loop.c (gdb_wait_for_event): Update.
12324 * gdb/printcmd.c (printf_command): Update.
12325 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12326 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12327 (gdb_os_flush_stderr): Update.
12328 * gdb/remote.c (remote_console_output): Update.
12329 * gdb/ui-file.c (gdb_flush): Rename to...
12330 (ui_file_flush): ...this.
12331 (stderr_file::write): Update.
12332 (stderr_file::puts): Update.
12333 * gdb/ui-file.h (gdb_flush): Rename to...
12334 (ui_file_flush): ...this.
12335 * gdb/utils.c (gdb_flush): Add function.
12336 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12337
5abbbe1d
TT
123382020-02-07 Tom Tromey <tromey@adacore.com>
12339
12340 PR breakpoints/24915:
12341 * source.c (find_and_open_source): Do not check basenames_may_differ.
12342
919adfe8
TT
123432020-02-07 Tom Tromey <tom@tromey.com>
12344
12345 * README: Update gdbserver documentation.
12346 * gdbserver: Move to top level.
12347 * configure.tgt (build_gdbserver): Remove.
12348 * configure.ac: Remove --enable-gdbserver.
12349 * configure: Rebuild.
12350 * Makefile.in (distclean): Don't mention gdbserver.
12351
1d5d29e7
SV
123522020-02-06 Shahab Vahedi <shahab@synopsys.com>
12353
12354 * source-cache.c (source_cache::ensure): Surround
12355 get_plain_source_lines with a try/catch.
12356 (source_cache::get_line_charpos): Get rid of try/catch
12357 and only check for the return value of "ensure".
12358 * tui/tui-source.c (tui_source_window::set_contents):
12359 Simplify "nlines" calculation.
12360
6eb1129c
SV
123612020-02-06 Shahab Vahedi <shahab@synopsys.com>
12362
12363 * MAINTAINERS (Write After Approval): Add myself.
12364
c6a42d11
CB
123652020-02-05 Christian Biesinger <cbiesinger@google.com>
12366
12367 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12368 function call.
12369
c8ecdda6
CB
123702020-02-05 Christian Biesinger <cbiesinger@google.com>
12371
12372 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12373
f6480e70
MR
123742020-02-05 Maciej W. Rozycki <macro@wdc.com>
12375
12376 * nat/riscv-linux-tdesc.h: New file.
12377 * nat/riscv-linux-tdesc.c: New file, taking code from...
12378 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12379 ... here.
12380 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12381 NATDEPFILES.
12382
dcc9fbc6
AB
123832020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12384
12385 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12386 we don't set the fake simulator ptid to the null_ptid.
12387
719546c4
SM
123882020-02-03 Simon Marchi <simon.marchi@efficios.com>
12389
12390 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12391 * gdbthread.h (class thread_info) <resumed>: Likewise.
12392 * infrun.c (resume_1): Likewise.
12393 (proceed): Likewise.
12394 (infrun_thread_stop_requested): Likewise.
12395 (stop_all_threads): Likewise.
12396 (handle_inferior_event): Likewise.
12397 (restart_threads): Likewise.
12398 (finish_step_over): Likewise.
12399 (keep_going_stepped_thread): Likewise.
12400 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12401 (linux_handle_extended_wait): Likewise.
12402 * record-btrace.c (get_thread_current_frame_id): Likewise.
12403 * record-full.c (record_full_wait_1): Likewise.
12404 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12405 * target.c (target_resume): Likewise.
12406 * thread.c (set_running_thread): Likewise.
12407
e409c542
AKS
124082020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12409
12410 * f-valprint.c (f77_print_array_1): Changed datatype of index
12411 variable to LONGEST from int to enable it to contain bound
12412 values correctly.
12413
ee98c0da
MR
124142020-02-03 Maciej W. Rozycki <macro@wdc.com>
12415
12416 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12417 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12418 offsets according to FLEN determined.
12419 (riscv_linux_nat_target::read_description): Determine FLEN
12420 dynamically.
12421 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12422 according to FLEN determined.
12423 (riscv_linux_nat_target::store_registers): Likewise.
12424
aa66aac4
SV
124252020-02-01 Shahab Vahedi <shahab@synopsys.com>
12426
12427 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12428 when reg->group is empty and reggroup is not.
12429
fd9faca8
TT
124302020-01-31 Tom Tromey <tromey@adacore.com>
12431
12432 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12433 Call beneath target's mourn_inferior after unpushing.
12434
42330a68
AB
124352020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12436
12437 PR tui/9765
12438 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12439 have enough lines to fill the screen, still return the lowest
12440 address we found.
12441
7a27a45b
AB
124422020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12443
12444 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12445 '-', '<', and '>' commands.
12446
c47f70e2
PA
124472020-01-29 Pedro Alves <palves@redhat.com>
12448 Sergio Durigan Junior <sergiodj@redhat.com>
12449
12450 * infcmd.c (construct_inferior_arguments): Assert that
12451 'argc' is greater than 0.
12452
5133a315
LM
124532020-01-29 Luis Machado <luis.machado@linaro.org>
12454
12455 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12456 (BRK_INSN_MASK): Define to 0xd4200000.
12457 (aarch64_program_breakpoint_here_p): New function.
12458 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12459 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12460 breakpoint.c.
12461 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12462 breakpoint.h
12463 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12464 call gdbarch_program_breakpoint_here_p.
12465 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12466 default_program_breakpoint_here_p, changed return type to bool and
12467 simplified.
12468 * breakpoint.h (program_breakpoint_here): Moved prototype to
12469 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12470 return type to bool.
12471 * gdbarch.c: Regenerate.
12472 * gdbarch.h: Regenerate.
12473 * gdbarch.sh (program_breakpoint_here_p): New method.
12474 * infrun.c (handle_signal_stop): Call
12475 gdbarch_program_breakpoint_here_p.
12476
168f8c6b
TT
124772020-01-26 Tom Tromey <tom@tromey.com>
12478
12479 * ctfread.c (struct ctf_fp_info): Reindent.
12480 (_initialize_ctfread): Remove.
12481
128a391f
TT
124822020-01-26 Tom Tromey <tom@tromey.com>
12483
12484 * psymtab.c (partial_map_expand_apply)
12485 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12486 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12487 (psym_print_stats, psym_expand_symtabs_for_function)
12488 (psym_map_symbol_filenames, psym_map_matching_symbols)
12489 (psym_expand_symtabs_matching)
12490 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12491 (maintenance_check_psymtabs): Use new methods.
12492 * psympriv.h (struct partial_symtab) <readin_p,
12493 get_compunit_symtab>: New methods.
12494 <readin, compunit_symtab>: Remove members.
12495 (struct standard_psymtab): New.
12496 (struct legacy_psymtab): Derive from standard_psymtab.
12497 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12498 standard_psymtab.
12499 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12500
0494dbec
TT
125012020-01-26 Tom Tromey <tom@tromey.com>
12502
12503 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12504 read_dependencies. Add assert.
12505 * psymtab.c (partial_symtab::read_dependencies): New method.
12506 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12507 method.
12508 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12509 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12510 read_dependencies.
12511 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12512 Add assert.
12513
8566b89b
TT
125142020-01-26 Tom Tromey <tom@tromey.com>
12515
12516 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12517 Call expand_psymtab.
12518 (xcoff_read_symtab): Call expand_psymtab.
12519 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12520 legacy_expand_psymtab.
12521 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12522 method.
12523 (struct legacy_psymtab) <expand_psymtab>: Implement.
12524 <legacy_expand_psymtab>: New member.
12525 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12526 (parse_partial_symbols): Set legacy_expand_psymtab.
12527 (psymtab_to_symtab_1): Change argument order. Call
12528 expand_psymtab.
12529 (new_psymtab): Set legacy_expand_psymtab.
12530 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12531 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12532 expand_psymtab.
12533 (dwarf2_psymtab::expand_psymtab): Rename from
12534 psymtab_to_symtab_1. Call expand_psymtab.
12535 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12536 (dbx_end_psymtab): Likewise.
12537 (dbx_psymtab_to_symtab_1): Change argument order. Call
12538 expand_psymtab.
12539 (dbx_read_symtab): Call expand_psymtab.
12540 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12541 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12542 (ctf_psymtab::read_symtab): Call expand_psymtab.
12543
077cbab2
TT
125442020-01-26 Tom Tromey <tom@tromey.com>
12545
12546 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12547 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12548 messages.
12549 * mdebugread.c (mdebug_read_symtab): Remove prints.
12550 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12551 assert.
12552 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12553
891813be
TT
125542020-01-26 Tom Tromey <tom@tromey.com>
12555
12556 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12557 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12558 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12559 legacy_symtab.
12560 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12561 * psymtab.c (psymtab_to_symtab): Call method.
12562 (dump_psymtab): Update.
12563 * psympriv.h (struct partial_symtab): Add virtual destructor.
12564 <read_symtab>: New method.
12565 (struct legacy_symtab): New.
12566 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12567 (struct pst_map) <pst>: Now a legacy_psymtab.
12568 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12569 (new_psymtab): Use legacy_psymtab.
12570 * dwarf2read.h (struct dwarf2_psymtab): New.
12571 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12572 * dwarf2read.c (dwarf2_create_include_psymtab)
12573 (dwarf2_build_include_psymtabs, create_type_unit_group)
12574 (create_partial_symtab, process_psymtab_comp_unit_reader)
12575 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12576 (set_partial_user): Use dwarf2_psymtab.
12577 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12578 (psymtab_to_symtab_1, process_full_comp_unit)
12579 (process_full_type_unit, dwarf2_ranges_read)
12580 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12581 (dwarf_decode_lines): Use dwarf2_psymtab.
12582 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12583 (add_address_entry_worker, write_one_signatured_type)
12584 (recursively_count_psymbols, recursively_write_psymbols)
12585 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12586 (write_debug_names): Likewise.
12587 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12588 <pst>: Now a legacy_psymtab.
12589 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12590 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12591 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12592 * ctfread.c (struct ctf_psymtab): New.
12593 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12594 ctf_psymtab.
12595 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12596 (create_partial_symtab): Return a ctf_psymtab.
12597 (scan_partial_symbols): Update.
12598
c3693a1d
TT
125992020-01-26 Tom Tromey <tom@tromey.com>
12600
12601 * xcoffread.c (xcoff_start_psymtab): Use new.
12602 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12603 renamed from start_psymtab_common.
12604 * psympriv.h (struct partial_symtab): Add new constructor.
12605 (start_psymtab_common): Don't declare.
12606 * mdebugread.c (parse_partial_symbols): Use new.
12607 * dwarf2read.c (create_partial_symtab): Use new.
12608 * dbxread.c (start_psymtab): Use new.
12609 * ctfread.c (create_partial_symtab): Use new.
12610
32caafd0
TT
126112020-01-26 Tom Tromey <tom@tromey.com>
12612
12613 * xcoffread.c (xcoff_end_psymtab): Use new.
12614 * psymtab.c (start_psymtab_common): Use new.
12615 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12616 Update.
12617 * psympriv.h (struct partial_symtab): Add parameters to
12618 constructor. Don't inline.
12619 (allocate_psymtab): Don't declare.
12620 * mdebugread.c (new_psymtab): Use new.
12621 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12622 * dbxread.c (dbx_end_psymtab): Use new.
12623
abaa2f23
TT
126242020-01-26 Tom Tromey <tom@tromey.com>
12625
12626 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12627 allocate_psymtab. Update documentation.
12628 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12629 allocate_psymtab. Do not use new.
12630 (allocate_psymtab): Use new. Update.
12631
6d94535f
TT
126322020-01-26 Tom Tromey <tom@tromey.com>
12633
12634 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12635 * psymtab.c (psym_print_stats): Update.
12636 * psympriv.h (struct partial_symtab) <readin,
12637 psymtabs_addrmap_supported, anonymous>: Now bool.
12638 * mdebugread.c (psymtab_to_symtab_1): Update.
12639 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12640 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12641 (process_full_comp_unit, process_full_type_unit): Update.
12642 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12643 * ctfread.c (psymtab_to_symtab): Update.
12644
6f17252b
TT
126452020-01-26 Tom Tromey <tom@tromey.com>
12646
12647 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12648 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12649 * psymtab.c (psymtab_storage): Delete psymtabs.
12650 (psymtab_storage::allocate_psymtab): Use new.
12651 (psymtab_storage::discard_psymtab): Use delete.
12652 * psympriv.h (struct partial_symtab): Add constructor and
12653 initializers.
12654
f6f1cebc
TT
126552020-01-26 Tom Tromey <tom@tromey.com>
12656
12657 * machoread.c: Do not include psympriv.h.
12658
e47e48f6
PW
126592020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12660
12661 * NEWS: Mention the new option and the set/show commands.
12662
a2fedca9
PW
126632020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12664
12665 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12666 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12667 (validate_exec_file): New variables, enums, functions.
12668 (exec_file_locate_attach, print_section_info): Style the filenames.
12669 (_initialize_exec): Install show_exec_file_mismatch_command and
12670 set_exec_file_mismatch_command.
12671 * gdbcore.h (validate_exec_file): Declare.
12672 * infcmd.c (attach_command): Call validate_exec_file.
12673 * remote.c ( remote_target::remote_add_inferior): Likewise.
12674
7ffa82e1
AB
126752020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12676
12677 * frame.c (find_frame_sal): Move call to get_next_frame into more
12678 inner scope.
12679 * inline-frame.c (inilne_state) <inline_state>: Update argument
12680 types.
12681 (inilne_state) <skipped_symbol>: Rename to...
12682 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12683 (skip_inline_frames): Build vector of skipped symbols and use this
12684 to reate the inline_state.
12685 (inline_skipped_symbol): Add a comment and some assertions, fetch
12686 skipped symbol from the list.
12687
3d92a3e3
AB
126882020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12689
12690 * buildsym.c (lte_is_less_than): Delete.
12691 (buildsym_compunit::end_symtab_with_blockvector): Create local
12692 lambda function to sort line table entries, and use
12693 std::stable_sort instead of std::sort.
12694 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12695 markers when looking for a previous line.
12696
94a72be7
AB
126972020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12698
12699 * dwarf2read.c (lnp_state_machine::record_line): Include
12700 end_sequence parameter in debug print out. Record the line if we
12701 are at an end_sequence marker even if it's not the start of a
12702 statement.
12703 * symmisc.c (maintenance_print_one_line_table): Print end of
12704 sequence markers with 'END' not '0'.
12705
53af73bf
PA
127062020-01-24 Pedro Alves <palves@redhat.com>
12707
12708 PR gdb/25410
12709 * thread.c (scoped_restore_current_thread::restore): Use
12710 switch_to_inferior_no_thread.
12711 * exec.c: Include "progspace-and-thread.h".
12712 (add_target_sections, remove_target_sections):
12713 scoped_restore_current_pspace_and_thread instead of
12714 scoped_restore_current_thread.
12715 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12716 and aspace to the inferior before calling clone_program_space.
12717 Remove stale comment.
12718
3050c6f4
CB
127192020-01-24 Christian Biesinger <cbiesinger@google.com>
12720
12721 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12722 (arm_netbsd_nat_target::fetch_registers): ...this.
12723 (arm_nbsd_nat_target::store_registers): Rename to...
12724 (arm_netbsd_nat_target::store_registers): ...this.
12725
73685c7e
CB
127262020-01-24 Christian Biesinger <cbiesinger@google.com>
12727
12728 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12729 register_t.
12730
89203d40
CB
127312020-01-24 Christian Biesinger <cbiesinger@google.com>
12732
12733 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12734 Update comment.
12735 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12736 Likewise.
12737 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12738 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12739 the correct replacement (iterate_over_regset_sections).
12740 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12741 Update comment.
12742
1ba1ac88
AB
127432020-01-24 Graham Markall <graham.markall@embecosm.com>
12744
12745 PR gdb/23718
12746 * gdb/python/python.c (execute_gdb_command): Call
12747 async_enable_stdin in catch block.
12748
f3364a6d
AB
127492020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12750
12751 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12752 SWITCH_THRU_ALL_UIS.
12753
733d0a67
AB
127542020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12755
12756 PR tui/9765
12757 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12758 comment, add extra parameter, and update to store previous symbol
12759 when appropriate.
12760 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12761 add extra parameter.
12762 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12763 remove unneeded parameter, add try/catch around gdb_print_insn,
12764 rewrite to add items to asm_lines vector.
12765 (tui_find_backward_disassembly_start_address): New function.
12766 (tui_find_disassembly_address): Updated throughout.
12767 (tui_disasm_window::set_contents): Update for changes to
12768 tui_disassemble.
12769 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12770 number of lines to scroll.
12771
b3b3bada
SM
127722020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12773
12774 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12775 (SECT_OFF_DATA): Likewise.
12776 (SECT_OFF_RODATA): Likewise.
12777 (SECT_OFF_TEXT): Likewise.
12778 (SECT_OFF_BSS): Likewise.
12779 (struct objfile) <text_section_offset, data_section_offset>: New
12780 methods.
12781 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12782 objfile::text_section_offset.
12783 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12784 * coffread.c (coff_symtab_read): Likewise.
12785 (enter_linenos): Likewise.
12786 (process_coff_symbol): Likewise.
12787 * ctfread.c (get_objfile_text_range): Likewise.
12788 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12789 Use objfile::data_section_offset.
12790 * dwarf2-frame.c (execute_cfa_program): Use
12791 objfile::text_section_offset.
12792 (dwarf2_frame_find_fde): Likewise.
12793 * dwarf2read.c (create_addrmap_from_index): Likewise.
12794 (create_addrmap_from_aranges): Likewise.
12795 (dw2_find_pc_sect_compunit_symtab): Likewise.
12796 (process_psymtab_comp_unit_reader): Likewise.
12797 (add_partial_symbol): Likewise.
12798 (add_partial_subprogram): Likewise.
12799 (process_full_comp_unit): Likewise.
12800 (read_file_scope): Likewise.
12801 (read_func_scope): Likewise.
12802 (read_lexical_block_scope): Likewise.
12803 (read_call_site_scope): Likewise.
12804 (dwarf2_rnglists_process): Likewise.
12805 (dwarf2_ranges_process): Likewise.
12806 (dwarf2_ranges_read): Likewise.
12807 (dwarf_decode_lines_1): Likewise.
12808 (new_symbol): Likewise.
12809 (dwarf2_fetch_die_loc_sect_off): Likewise.
12810 (dwarf2_per_cu_text_offset): Likewise.
12811 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12812 * hppa-tdep.c (read_unwind_info): Likewise.
12813 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12814 * psympriv.h (struct partial_symtab): Likewise.
12815 * psymtab.c (find_pc_sect_psymtab): Likewise.
12816 * solib-svr4.c (enable_break): Likewise.
12817 * stap-probe.c (relocate_address): Use
12818 objfile::data_section_offset.
12819 * xcoffread.c (enter_line_range): Use
12820 objfile::text_section_offset.
12821 (read_xcoff_symtab): Likewise.
12822
ab53f382
SM
128232020-01-23 Simon Marchi <simon.marchi@efficios.com>
12824
12825 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12826 declaration to narrower scopes.
12827
e7eee665
SM
128282020-01-23 Simon Marchi <simon.marchi@efficios.com>
12829
12830 * darwin-nat.h (struct darwin_exception_msg, enum
12831 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12832 Move up.
12833 (class darwin_nat_target) <wait_1, check_new_threads,
12834 decode_exception_message, decode_message, stop_inferior,
12835 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12836 * darwin-nat.c (darwin_check_new_threads): Rename to...
12837 (darwin_nat_target::check_new_threads): ... this.
12838 (darwin_suspend_inferior_it): Remove.
12839 (darwin_decode_exception_message): Rename to...
12840 (darwin_nat_target::decode_exception_message): ... this.
12841 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12842 (darwin_decode_message): Rename to...
12843 (darwin_nat_target::decode_message): ... this.
12844 (cancel_breakpoint): Rename to...
12845 (darwin_nat_target::cancel_breakpoint): ... this.
12846 (darwin_wait): Rename to...
12847 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12848 instead of iterate_over_inferiors.
12849 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12850 (darwin_stop_inferior): Rename to...
12851 (darwin_nat_target::stop_inferior): ... this.
12852 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12853 (darwin_init_thread_list): Rename to...
12854 (darwin_nat_target::init_thread_list): ... this.
12855 (darwin_ptrace_him): Rename to...
12856 (darwin_nat_target::ptrace_him): ... this.
12857 (darwin_nat_target::create_inferior): Pass lambda function to
12858 fork_inferior.
12859 (darwin_nat_target::detach): Call stop_inferior instead of
12860 darwin_stop_inferior.
12861 * fork-inferior.h (fork_inferior): Change init_trace_fun
12862 parameter to gdb::function_view.
12863 * fork-inferior.c (fork_inferior): Likewise.
12864
c162ed3e
HD
128652020-01-23 Hannes Domani <ssbssa@yahoo.de>
12866
12867 * i386-cygwin-tdep.c (core_process_module_section): Update.
12868 * windows-nat.c (struct lm_info_windows): Add text_offset.
12869 (windows_xfer_shared_libraries): Update.
12870 * windows-tdep.c (windows_xfer_shared_library):
12871 Add text_offset_cached argument.
12872 * windows-tdep.h (windows_xfer_shared_library): Update.
12873
a1237872
SM
128742020-01-21 Simon Marchi <simon.marchi@efficios.com>
12875
12876 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12877
b3ee6dd9
SM
128782020-01-21 Simon Marchi <simon.marchi@efficios.com>
12879
12880 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12881 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12882 replace with range-based for.
12883 (gdbsim_interrupt_inferior): Remove.
12884 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12885 with a range-based for. Inline code from
12886 gdbsim_interrupt_inferior.
12887
f9fac3c8
SM
128882020-01-21 Simon Marchi <simon.marchi@efficios.com>
12889
12890 * infrun.c (proceed): Fix indentation.
12891
f6474de9
TT
128922020-01-21 Tom Tromey <tromey@adacore.com>
12893
12894 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12895 * python/python.c (python_extension_ops): Update.
12896 (gdbpy_colorize): New function.
12897 * python/lib/gdb/__init__.py (colorize): New function.
12898 * extension.h (ext_lang_colorize): Declare.
12899 * extension.c (ext_lang_colorize): New function.
12900 * extension-priv.h (struct extension_language_ops) <colorize>: New
12901 member.
12902 * cli/cli-style.c (_initialize_cli_style): Update help text.
12903
f0c702d4
LM
129042020-01-21 Luis Machado <luis.machado@linaro.org>
12905
12906 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12907 <cond>: Change type to bool.
12908 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12909 (aarch64_displaced_step_cb): Likewise.
12910 (aarch64_displaced_step_tb): Likewise.
12911
1ab139e5
LM
129122020-01-21 Luis Machado <luis.machado@linaro.org>
12913
12914 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12915 output.
12916
0c271889
LM
129172020-01-21 Luis Machado <luis.machado@linaro.org>
12918
12919 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12920 <pc_adjust>: Adjust the documentation.
12921 (aarch64_displaced_step_fixup): Check if PC really moved before
12922 adjusting it.
12923
4d89c1c7
TT
129242020-01-19 Tom Tromey <tom@tromey.com>
12925
12926 * disasm.c (~gdb_disassembler): New destructor.
12927 (gdb_buffered_insn_length): Call disassemble_free_target.
12928 * disasm.h (class gdb_disassembler): Declare destructor. Use
12929 DISABLE_COPY_AND_ASSIGN.
12930
c0ab21c2
TT
129312020-01-19 Tom Tromey <tom@tromey.com>
12932
12933 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12934 (die_reader_func_ftype): Remove.
12935 (cutu_reader): New class.
12936 (dw2_get_file_names_reader): Remove "data" parameter.
12937 (dw2_get_file_names): Use cutu_reader.
12938 (create_debug_type_hash_table): Update.
12939 (read_cutu_die_from_dwo): Update comment.
12940 (lookup_dwo_unit): Add dwo_name parameter.
12941 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12942 die_reader_func_ftype and data parameters.
12943 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12944 Remove die_reader_func_ftype and data parameters.
12945 (~cutu_reader): New; from init_cutu_and_read_dies.
12946 (cutu_reader::cutu_reader): Rename from
12947 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12948 and data parameters.
12949 (init_cutu_and_read_dies_simple): Remove.
12950 (struct process_psymtab_comp_unit_data): Remove.
12951 (process_psymtab_comp_unit_reader): Remove data parameter; add
12952 want_partial_unit and pretend_language parameters.
12953 (process_psymtab_comp_unit): Use cutu_reader.
12954 (build_type_psymtabs_reader): Remove data parameter.
12955 (build_type_psymtabs_1): Use cutu_reader.
12956 (process_skeletonless_type_unit): Likewise.
12957 (load_partial_comp_unit_reader): Remove.
12958 (load_partial_comp_unit): Use cutu_reader.
12959 (load_full_comp_unit_reader): Remove.
12960 (load_full_comp_unit): Use cutu_reader.
12961 (struct create_dwo_cu_data): Remove.
12962 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12963 dwo_unit parameters.
12964 (create_cus_hash_table): Use cutu_reader.
12965 (struct dwarf2_read_addr_index_data): Remove.
12966 (dwarf2_read_addr_index_reader): Remove.
12967 (dwarf2_read_addr_index): Use cutu_reader.
12968 (read_signatured_type_reader): Remove.
12969 (read_signatured_type): Use cutu_reader.
12970
45bbae5c
TT
129712020-01-19 Tom Tromey <tom@tromey.com>
12972
12973 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12974 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12975 (tui_wrefresh): Declare.
12976 * tui/tui-wingeneral.c (suppress_output): New global.
12977 (tui_suppress_output, ~tui_suppress_output): New constructor and
12978 destructor.
12979 (tui_wrefresh): New function.
12980 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12981 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12982 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12983 method.
12984 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12985 tui_wrefresh.
12986 (tui_data_window::no_refresh): New method.
12987 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12988 (tui_reg_command): Use tui_suppress_output
12989 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12990 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12991 method.
12992 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12993
4f13c1c0
TT
129942020-01-19 Tom Tromey <tom@tromey.com>
12995
12996 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12997 Handle case where symtab is null.
12998
fa47e446
SM
129992020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13000
13001 * linux-fork.c (one_fork_p): Simplify.
13002
26f42329
SM
130032020-01-17 Simon Marchi <simon.marchi@efficios.com>
13004
13005 * top.c (struct qt_args): Remove.
13006 (kill_or_detach): Change return type to void, replace `void *`
13007 parameter with a proper one.
13008 (print_inferior_quit_action): Likewise.
13009 (quit_confirm): Use range-based for loop to iterate over inferiors.
13010 (quit_force): Likewise.
13011
a9ac81b1
SM
130122020-01-17 Simon Marchi <simon.marchi@efficios.com>
13013
13014 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13015 `void *` parameter with proper parameters.
13016 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13017 (print_one_inferior): Change return type to void, replace `void *`
13018 parameter with proper parameters.
13019 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13020 inferiors.
13021 (get_other_inferior): Remove.
13022 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13023 inferiors.
13024
788eca49
SM
130252020-01-17 Simon Marchi <simon.marchi@efficios.com>
13026
13027 * mi/mi-interp.c (report_initial_inferior): Remove.
13028 (mi_interp::init): Use range-based for to iterate over inferiors.
13029
d9bc85b6
SM
130302020-01-17 Simon Marchi <simon.marchi@efficios.com>
13031
13032 * python/py-inferior.c (build_inferior_list): Remove.
13033 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13034
40c94099
CB
130352020-01-16 Christian Biesinger <cbiesinger@google.com>
13036
13037 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13038 (btrace_stitch_trace): Likewise.
13039 * charset.c (intermediate_encoding): Likewise (vaild).
13040 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13041 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13042 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13043
e0cdfe3c
HD
130442020-01-16 Hannes Domani <ssbssa@yahoo.de>
13045
13046 * windows-tdep.c (windows_get_tlb_type):
13047 Add rtl_user_process_parameters type.
13048
790f1718 130492020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13050 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13051
13052 PR build/24805
13053 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13054 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13055 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13056 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13057 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13058 (ps_plog): Redeclare exported functions with default visibility.
13059
3112ed97
NA
130602020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13061
13062 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13063 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13064
8dc3273e
SM
130652020-01-15 Simon Marchi <simon.marchi@efficios.com>
13066
13067 * infcmd.c (post_create_inferior): Use get_thread_regcache
13068 instead of get_current_regcache.
13069
ff47f4f0
TT
130702020-01-14 Tom Tromey <tom@tromey.com>
13071
13072 PR symtab/12535:
13073 * python/python.c (gdbpy_decode_line): Treat empty string the same
13074 as no argument.
13075
975f45b7
TT
130762020-01-14 Tom Tromey <tom@tromey.com>
13077
13078 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13079
25e57356
TT
130802020-01-14 Tom Tromey <tom@tromey.com>
13081
13082 * nat/linux-btrace.c: Don't include <config.h>.
13083 * nat/linux-ptrace.c: Don't include <config.h>.
13084 * nat/x86-linux-dregs.c: Don't include <config.h>.
13085
05ea2a05
TT
130862020-01-14 Tom Tromey <tom@tromey.com>
13087
13088 * configure: Rebuild.
13089 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13090
01027315
TT
130912020-01-14 Tom Tromey <tom@tromey.com>
13092
13093 * nat/x86-linux-dregs.c: Include configh.h.
13094 * nat/linux-ptrace.c: Include configh.h.
13095 * nat/linux-btrace.c: Include configh.h.
13096 * defs.h: Include config.h, bfd.h.
13097 * configure.ac: Don't source common.host.
13098 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13099 * configure: Rebuild.
13100 * acinclude.m4: Update path.
13101 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13102 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13103 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13104 (CLIBS): Add LIBSUPPORT.
13105 (CDEPS): Likewise.
13106 (COMMON_SFILES): Remove gdbsupport files.
13107 (HFILES_NO_SRCDIR): Likewise.
13108 (stamp-version): Update path to create-version.sh.
13109 (ALLDEPFILES): Remove gdbsupport files.
13110
b2ceabe8
TT
131112020-01-14 Tom Tromey <tom@tromey.com>
13112
13113 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13114 USE_WIN32API when needed.
13115 * configure.ac (USE_WIN32API): Don't define.
13116 (WIN32LIBS): Use WIN32APILIBS.
13117 * configure: Rebuild.
13118
25c51f71
TT
131192020-01-14 Tom Tromey <tom@tromey.com>
13120
13121 * configure: Rebuild.
13122 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13123
717c684d
BE
131242020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13125
13126 * skip.c (skip_function_command): Make skip w/o arguments use the
13127 name of the inlined function if pc is inside any inlined function.
13128
7da6a5b9
LM
131292020-01-14 Luis Machado <luis.machado@linaro.org>
13130
13131 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13132 * infrun.c (resume_1): Likewise.
13133 (handle_inferior_event): Remove stale comment.
13134 * linux-nat.c (linux_nat_target::resume): Update comments.
13135 (save_stop_reason): Likewise.
13136 (linux_nat_filter_event): Likewise.
13137 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13138
44e4c775
AB
131392020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13140
13141 * elfread.c (record_minimal_symbol): Set section index to 0 for
13142 non-allocatable sections.
13143
18a8505e
AT
13144
131452020-01-13 Ali Tamur <tamur@google.com>
13146
13147 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13148 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13149 to gdb::optional. Update comments.
13150 (dwo_file): Update comments.
13151 (read_attribute): Update API to take an additional out parameter,
13152 need_reprocess. This is used to mark attributes that need other
13153 attributes (e.g. str_offsets_base) for correct computation which may not
13154 have been read yet.
13155 (read_attribute_reprocess): New function declaration.
13156 (read_addr_index): Likewise.
13157 (read_dwo_str_index): Likewise.
13158 (read_stub_str_index): Likewise.
13159 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13160 (lookup_addr_base): New function definition.
13161 (lookup_ranges_base): Likewise.
13162 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13163 lookup_ranges_base.
13164 (init_cutu_and_read_dies): Update comments.
13165 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13166 unit. This is used to inherit parent's str_offsets_base and addr_base.
13167 Update comments.
13168 (init_cutu_and_read_dies_simple): Reflect API changes.
13169 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13170 (create_cus_hash_table): Change API to take parent compile unit.
13171 Reflect API changes.
13172 (open_and_init_dwo_file): Reflect API changes.
13173 (dwarf2_get_pc_bounds): Update comments.
13174 (dwarf2_record_block_ranges): Likewise.
13175 (read_full_die_1): Change implementation to reprocess attributes that
13176 need str_offsets_base and addr_base.
13177 (partial_die_info::read): Likewise.
13178 (read_attribute_reprocess): New function definition.
13179 (read_attribute_value): Change API to take an additional out parameter,
13180 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13181 when a non-dwo compile unit has index based attributes.
13182 (read_attribute): Reflect API changes.
13183 (read_addr_index_1): Reflect API changes. Update comments.
13184 (dwarf2_read_addr_index_data): Reflect API changes.
13185 (dwarf2_read_addr_index): Likewise.
13186 (read_str_index): Change API and implementation. This becomes a helper
13187 to be used by the new string index related methods. Update error
13188 message and comments.
13189 (read_dwo_str_index): New function definition.
13190 (read_stub_str_index): Likewise.
13191 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13192 * symfile.h (dwarf2_debug_sections): Likewise.
13193 * xcoffread.c (dwarf2_debug_sections): Likewise.
13194
0cac9354
SM
131952020-01-13 Simon Marchi <simon.marchi@efficios.com>
13196
13197 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13198 core_reg_sect type to gdb_byte *.
13199 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13200 * cris-tdep.c (fetch_core_registers): Likewise.
13201 * corelow.c (core_target::get_core_register_section): Change
13202 type of `contents` to gdb::byte_vector.
13203
9a6d629c
AB
132042020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13205
13206 * tui/tui-wingeneral.c (box_win): Position the title in the center
13207 of the border.
13208
d8b2f9e3
SM
132092020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13210
13211 * corelow.c (core_target::get_core_register_section): Use
13212 std::vector instead of alloca.
13213
bb564c58
SM
132142020-01-13 Simon Marchi <simon.marchi@efficios.com>
13215
13216 * warning.m4: Add -Wmissing-declarations to build_warnings.
13217 * configure: Re-generate.
13218
6b366111
SM
132192020-01-13 Simon Marchi <simon.marchi@efficios.com>
13220
13221 * python/python.c (init__gdb_module): Add declaration.
13222
6c265988
SM
132232020-01-13 Simon Marchi <simon.marchi@efficios.com>
13224
13225 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13226 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13227 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13228 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13229 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13230 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13231 * ada-exp.y (_initialize_ada_exp): Add declaration.
13232 * ada-lang.c (_initialize_ada_language): Add declaration.
13233 * ada-tasks.c (_initialize_tasks): Add declaration.
13234 * agent.c (_initialize_agent): Add declaration.
13235 * aix-thread.c (_initialize_aix_thread): Add declaration.
13236 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13237 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13238 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13239 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13240 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13241 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13242 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13243 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13244 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13245 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13246 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13247 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13248 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13249 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13250 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13251 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13252 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13253 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13254 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13255 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13256 * annotate.c (_initialize_annotate): Add declaration.
13257 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13258 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13259 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13260 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13261 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13262 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13263 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13264 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13265 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13266 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13267 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13268 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13269 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13270 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13271 * auto-load.c (_initialize_auto_load): Add declaration.
13272 * auxv.c (_initialize_auxv): Add declaration.
13273 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13274 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13275 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13276 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13277 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13278 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13279 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13280 * breakpoint.c (_initialize_breakpoint): Add declaration.
13281 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13282 * btrace.c (_initialize_btrace): Add declaration.
13283 * charset.c (_initialize_charset): Add declaration.
13284 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13285 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13286 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13287 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13288 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13289 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13290 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13291 * coffread.c (_initialize_coffread): Add declaration.
13292 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13293 * compile/compile.c (_initialize_compile): Add declaration.
13294 * complaints.c (_initialize_complaints): Add declaration.
13295 * completer.c (_initialize_completer): Add declaration.
13296 * copying.c (_initialize_copying): Add declaration.
13297 * corefile.c (_initialize_core): Add declaration.
13298 * corelow.c (_initialize_corelow): Add declaration.
13299 * cp-abi.c (_initialize_cp_abi): Add declaration.
13300 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13301 * cp-support.c (_initialize_cp_support): Add declaration.
13302 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13303 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13304 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13305 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13306 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13307 * ctfread.c (_initialize_ctfread): Add declaration.
13308 * d-lang.c (_initialize_d_language): Add declaration.
13309 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13310 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13311 * dbxread.c (_initialize_dbxread): Add declaration.
13312 * dcache.c (_initialize_dcache): Add declaration.
13313 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13314 * disasm.c (_initialize_disasm): Add declaration.
13315 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13316 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13317 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13318 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13319 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13320 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13321 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13322 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13323 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13324 * elfread.c (_initialize_elfread): Add declaration.
13325 * exec.c (_initialize_exec): Add declaration.
13326 * extension.c (_initialize_extension): Add declaration.
13327 * f-lang.c (_initialize_f_language): Add declaration.
13328 * f-valprint.c (_initialize_f_valprint): Add declaration.
13329 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13330 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13331 * filesystem.c (_initialize_filesystem): Add declaration.
13332 * findcmd.c (_initialize_mem_search): Add declaration.
13333 * findvar.c (_initialize_findvar): Add declaration.
13334 * fork-child.c (_initialize_fork_child): Add declaration.
13335 * frame-base.c (_initialize_frame_base): Add declaration.
13336 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13337 * frame.c (_initialize_frame): Add declaration.
13338 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13339 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13340 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13341 * gcore.c (_initialize_gcore): Add declaration.
13342 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13343 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13344 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13345 * gdbarch.c (_initialize_gdbarch): Add declaration.
13346 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13347 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13348 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13349 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13350 * go-lang.c (_initialize_go_language): Add declaration.
13351 * go32-nat.c (_initialize_go32_nat): Add declaration.
13352 * guile/guile.c (_initialize_guile): Add declaration.
13353 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13354 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13355 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13356 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13357 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13358 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13359 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13360 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13361 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13362 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13363 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13364 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13365 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13366 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13367 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13368 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13369 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13370 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13371 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13372 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13373 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13374 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13375 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13376 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13377 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13378 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13379 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13380 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13381 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13382 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13383 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13384 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13385 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13386 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13387 * infcall.c (_initialize_infcall): Add declaration.
13388 * infcmd.c (_initialize_infcmd): Add declaration.
13389 * inflow.c (_initialize_inflow): Add declaration.
13390 * infrun.c (_initialize_infrun): Add declaration.
13391 * interps.c (_initialize_interpreter): Add declaration.
13392 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13393 * jit.c (_initialize_jit): Add declaration.
13394 * language.c (_initialize_language): Add declaration.
13395 * linux-fork.c (_initialize_linux_fork): Add declaration.
13396 * linux-nat.c (_initialize_linux_nat): Add declaration.
13397 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13398 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13399 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13400 * m2-lang.c (_initialize_m2_language): Add declaration.
13401 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13402 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13403 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13404 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13405 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13406 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13407 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13408 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13409 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13410 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13411 * machoread.c (_initialize_machoread): Add declaration.
13412 * macrocmd.c (_initialize_macrocmd): Add declaration.
13413 * macroscope.c (_initialize_macroscope): Add declaration.
13414 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13415 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13416 * maint.c (_initialize_maint_cmds): Add declaration.
13417 * mdebugread.c (_initialize_mdebugread): Add declaration.
13418 * memattr.c (_initialize_mem): Add declaration.
13419 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13420 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13421 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13422 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13423 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13424 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13425 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13426 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13427 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13428 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13429 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13430 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13431 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13432 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13433 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13434 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13435 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13436 * mipsread.c (_initialize_mipsread): Add declaration.
13437 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13438 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13439 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13440 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13441 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13442 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13443 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13444 * nto-procfs.c (_initialize_procfs): Add declaration.
13445 * objc-lang.c (_initialize_objc_language): Add declaration.
13446 * observable.c (_initialize_observer): Add declaration.
13447 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13448 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13449 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13450 * osabi.c (_initialize_gdb_osabi): Add declaration.
13451 * osdata.c (_initialize_osdata): Add declaration.
13452 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13453 * parse.c (_initialize_parse): Add declaration.
13454 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13455 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13456 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13457 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13458 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13459 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13460 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13461 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13462 * printcmd.c (_initialize_printcmd): Add declaration.
13463 * probe.c (_initialize_probe): Add declaration.
13464 * proc-api.c (_initialize_proc_api): Add declaration.
13465 * proc-events.c (_initialize_proc_events): Add declaration.
13466 * proc-service.c (_initialize_proc_service): Add declaration.
13467 * procfs.c (_initialize_procfs): Add declaration.
13468 * producer.c (_initialize_producer): Add declaration.
13469 * psymtab.c (_initialize_psymtab): Add declaration.
13470 * python/python.c (_initialize_python): Add declaration.
13471 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13472 * record-btrace.c (_initialize_record_btrace): Add declaration.
13473 * record-full.c (_initialize_record_full): Add declaration.
13474 * record.c (_initialize_record): Add declaration.
13475 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13476 * regcache.c (_initialize_regcache): Add declaration.
13477 * reggroups.c (_initialize_reggroup): Add declaration.
13478 * remote-notif.c (_initialize_notif): Add declaration.
13479 * remote-sim.c (_initialize_remote_sim): Add declaration.
13480 * remote.c (_initialize_remote): Add declaration.
13481 * reverse.c (_initialize_reverse): Add declaration.
13482 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13483 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13484 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13485 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13486 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13487 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13488 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13489 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13490 Add declaration.
13491 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13492 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13493 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13494 * rust-exp.y (_initialize_rust_exp): Add declaration.
13495 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13496 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13497 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13498 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13499 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13500 * score-tdep.c (_initialize_score_tdep): Add declaration.
13501 * ser-go32.c (_initialize_ser_dos): Add declaration.
13502 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13503 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13504 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13505 * ser-uds.c (_initialize_ser_socket): Add declaration.
13506 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13507 * serial.c (_initialize_serial): Add declaration.
13508 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13509 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13510 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13511 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13512 * skip.c (_initialize_step_skip): Add declaration.
13513 * sol-thread.c (_initialize_sol_thread): Add declaration.
13514 * solib-aix.c (_initialize_solib_aix): Add declaration.
13515 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13516 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13517 * solib-frv.c (_initialize_frv_solib): Add declaration.
13518 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13519 * solib-target.c (_initialize_solib_target): Add declaration.
13520 * solib.c (_initialize_solib): Add declaration.
13521 * source-cache.c (_initialize_source_cache): Add declaration.
13522 * source.c (_initialize_source): Add declaration.
13523 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13524 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13525 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13526 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13527 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13528 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13529 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13530 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13531 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13532 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13533 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13534 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13535 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13536 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13537 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13538 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13539 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13540 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13541 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13542 * stabsread.c (_initialize_stabsread): Add declaration.
13543 * stack.c (_initialize_stack): Add declaration.
13544 * stap-probe.c (_initialize_stap_probe): Add declaration.
13545 * std-regs.c (_initialize_frame_reg): Add declaration.
13546 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13547 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13548 * symfile.c (_initialize_symfile): Add declaration.
13549 * symmisc.c (_initialize_symmisc): Add declaration.
13550 * symtab.c (_initialize_symtab): Add declaration.
13551 * target.c (_initialize_target): Add declaration.
13552 * target-connection.c (_initialize_target_connection): Add
13553 declaration.
13554 * target-dcache.c (_initialize_target_dcache): Add declaration.
13555 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13556 * thread.c (_initialize_thread): Add declaration.
13557 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13558 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13559 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13560 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13561 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13562 * tracectf.c (_initialize_ctf): Add declaration.
13563 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13564 * tracefile.c (_initialize_tracefile): Add declaration.
13565 * tracepoint.c (_initialize_tracepoint): Add declaration.
13566 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13567 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13568 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13569 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13570 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13571 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13572 * tui/tui.c (_initialize_tui): Add declaration.
13573 * typeprint.c (_initialize_typeprint): Add declaration.
13574 * ui-style.c (_initialize_ui_style): Add declaration.
13575 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13576 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13577 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13578 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13579 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13580 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13581 * unittests/filtered_iterator-selftests.c
13582 (_initialize_filtered_iterator_selftests): Add declaration.
13583 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13584 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13585 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13586 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13587 * unittests/main-thread-selftests.c
13588 (_initialize_main_thread_selftests): Add declaration.
13589 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13590 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13591 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13592 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13593 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13594 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13595 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13596 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13597 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13598 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13599 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13600 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13601 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13602 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13603 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13604 declaration.
13605 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13606 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13607 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13608 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13609 * user-regs.c (_initialize_user_regs): Add declaration.
13610 * utils.c (_initialize_utils): Add declaration.
13611 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13612 * valops.c (_initialize_valops): Add declaration.
13613 * valprint.c (_initialize_valprint): Add declaration.
13614 * value.c (_initialize_values): Add declaration.
13615 * varobj.c (_initialize_varobj): Add declaration.
13616 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13617 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13618 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13619 * windows-nat.c (_initialize_windows_nat): Add declaration.
13620 (_initialize_check_for_gdb_ini): Add declaration.
13621 (_initialize_loadable): Add declaration.
13622 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13623 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13624 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13625 * xcoffread.c (_initialize_xcoffread): Add declaration.
13626 * xml-support.c (_initialize_xml_support): Add declaration.
13627 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13628 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13629 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13630 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13631
e2de1eec
SM
136322020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13633
13634 * regformats/regdat.sh: Generate declaration for init function.
13635
e0037b4c
SM
136362020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13637
13638 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13639 up.
13640 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13641 close_one_inferior>: New methods.
13642 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13643 pass down target to find_inferior_pid.
13644 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13645 Pass down target to find_inferior_ptid.
13646 (gdbsim_target::create_inferior): Pass down target to
13647 add_thread_silent.
13648 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13649 target down to find_inferior_ptid and switch_to_thread.
13650 (gdbsim_target::close): Update to call close_one_inferior.
13651 (struct resume_data): Remove.
13652 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13653 directly, rather than through a void pointer.
13654 (gdbsim_target::resume): Update to call resume_one_inferior.
13655
58920b5b
SM
136562020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13657
13658 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13659
4ec89149
PA
136602020-01-12 Pedro Alves <palves@redhat.com>
13661
13662 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13663 directly for the current inferior instead of
13664 discard_all_inferiors.
13665 (discard_all_inferiors): Delete.
13666
7c392d1d
TT
136672020-01-11 Tom Tromey <tom@tromey.com>
13668
13669 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13670 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13671 deprecated_safe_get_selected_frame.
13672
d9ebdab7
TBA
136732020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13674
13675 * inferior.c (print_inferior): Switch inferior before printing it.
13676
f3c469b9
PA
136772020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13678 Pedro Alves <palves@redhat.com>
13679
13680 * progspace-and-thread.c (switch_to_program_space_and_thread):
13681 Assert there's an inferior for PSPACE. Use
13682 switch_to_inferior_no_thread to switch the inferior too.
13683 * progspace.c (program_space::~program_space): Call
13684 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13685 (program_space::free_all_objfiles): Don't call clear_symtab_users
13686 here.
13687 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13688
65c574f6
PA
136892020-01-10 Pedro Alves <palves@redhat.com>
13690
13691 * NEWS: Mention multi-target debugging, "info connections", and
13692 "add-inferior -no-connection".
13693
2f4fcf00
PA
136942020-01-10 Pedro Alves <palves@redhat.com>
13695
13696 * infrun.c: Include "target-connection.h".
13697 (check_multi_target_resumption): New.
13698 (proceed): Call it.
13699 * target-connection.c (make_target_connection_string): Make
13700 extern.
13701 * target-connection.h (make_target_connection_string): Declare.
13702
121b3efd
PA
137032020-01-10 Pedro Alves <palves@redhat.com>
13704
13705 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13706 * inferior.c (uiout_field_connection): New function.
13707 (print_inferior): Add new "connection-id" column.
13708 (add_inferior_command): Show connection number/string of added
13709 inferior.
13710 * process-stratum-target.h
13711 (process_stratum_target::connection_string): New virtual method.
13712 (process_stratum_target::connection_number): New field.
13713 * remote.c (remote_target::connection_string): New override.
13714 * target-connection.c: New file.
13715 * target-connection.h: New file.
13716 * target.c (decref_target): Remove process_stratum targets from
13717 the connection list.
13718 (target_stack::push): Add process_stratum targets to the
13719 connection list.
13720
4f837581
PA
137212020-01-10 Pedro Alves <palves@redhat.com>
13722
13723 Revert:
13724 2016-04-12 Pedro Alves <palves@redhat.com>
13725 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13726 Remove references to name.
13727 * serial.h (struct serial) <name>: Delete.
13728
f4ec508e
PA
137292020-01-10 Pedro Alves <palves@redhat.com>
13730
13731 * gdbarch-selftests.c (register_to_value_test): Remove "target
13732 already pushed" check.
13733
5b6d1e4f
PA
137342020-01-10 Pedro Alves <palves@redhat.com>
13735 John Baldwin <jhb@FreeBSD.org>
13736
13737 * aarch64-linux-nat.c
13738 (aarch64_linux_nat_target::thread_architecture): Adjust.
13739 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13740 (task_command_1): Likewise.
13741 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13742 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13743 (aix_thread_target::store_registers)
13744 (aix_thread_target::thread_alive): Adjust.
13745 * amd64-fbsd-tdep.c: Include "inferior.h".
13746 (amd64fbsd_get_thread_local_address): Pass down target.
13747 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13748 thread's gdbarch instead of target_gdbarch.
13749 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13750 get_last_target_status.
13751 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13752 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13753 inferiors.
13754 (update_inserted_breakpoint_locations): Skip if inferiors with no
13755 execution.
13756 (update_global_location_list): When handling moribund locations,
13757 find representative inferior for location's pspace, and use thread
13758 count of its process_stratum target.
13759 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13760 * bsd-uthread.c (bsd_uthread_target::wait): Use
13761 as_process_stratum_target and adjust thread_change_ptid and
13762 add_thread calls.
13763 (bsd_uthread_target::update_thread_list): Use
13764 as_process_stratum_target and adjust find_thread_ptid,
13765 thread_change_ptid and add_thread calls.
13766 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13767 find_thread_ptid call.
13768 * corelow.c (add_to_thread_list): Adjust add_thread call.
13769 (core_target_open): Adjust add_thread_silent and thread_count
13770 calls.
13771 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13772 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13773 * event-top.c (async_disconnect): Pop targets from all inferiors.
13774 * exec.c (add_target_sections): Push exec target on all inferiors
13775 sharing the program space.
13776 (remove_target_sections): Remove the exec target from all
13777 inferiors sharing the program space.
13778 (exec_on_vfork): New.
13779 * exec.h (exec_on_vfork): Declare.
13780 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13781 Pass it down.
13782 (fbsd_nat_target::update_thread_list): Adjust.
13783 (fbsd_nat_target::resume): Adjust.
13784 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13785 down.
13786 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13787 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13788 get_thread_arch_regcache call.
13789 * fork-child.c (gdb_startup_inferior): Pass target down to
13790 startup_inferior and set_executing.
13791 * gdbthread.h (struct process_stratum_target): Forward declare.
13792 (add_thread, add_thread_silent, add_thread_with_info)
13793 (in_thread_list): Add process_stratum_target parameter.
13794 (find_thread_ptid(inferior*, ptid_t)): New overload.
13795 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13796 parameter.
13797 (all_threads()): Delete overload.
13798 (all_threads, all_non_exited_threads): Add process_stratum_target
13799 parameter.
13800 (all_threads_safe): Use brace initialization.
13801 (thread_count): Add process_stratum_target parameter.
13802 (set_resumed, set_running, set_stop_requested, set_executing)
13803 (threads_are_executing, finish_thread_state): Add
13804 process_stratum_target parameter.
13805 (switch_to_thread): Use is_current_thread.
13806 * i386-fbsd-tdep.c: Include "inferior.h".
13807 (i386fbsd_get_thread_local_address): Pass down target.
13808 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13809 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13810 have_inferiors check.
13811 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13812 (inf_ptrace_target::attach): Adjust.
13813 * infcall.c (run_inferior_call): Adjust.
13814 * infcmd.c (run_command_1): Pass target to
13815 scoped_finish_thread_state.
13816 (proceed_thread_callback): Skip inferiors with no execution.
13817 (continue_command): Rename 'all_threads' local to avoid hiding
13818 'all_threads' function. Adjust get_last_target_status call.
13819 (prepare_one_step): Adjust set_running call.
13820 (signal_command): Use user_visible_resume_target. Compare thread
13821 pointers instead of inferior_ptid.
13822 (info_program_command): Adjust to pass down target.
13823 (attach_command): Mark target's 'thread_executing' flag.
13824 (stop_current_target_threads_ns): New, factored out from ...
13825 (interrupt_target_1): ... this. Switch inferior before making
13826 target calls.
13827 * inferior-iter.h
13828 (struct all_inferiors_iterator, struct all_inferiors_range)
13829 (struct all_inferiors_safe_range)
13830 (struct all_non_exited_inferiors_range): Filter on
13831 process_stratum_target too. Remove explicit.
13832 * inferior.c (inferior::inferior): Push dummy target on target
13833 stack.
13834 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13835 Add process_stratum_target parameter, and pass it down.
13836 (have_live_inferiors): Adjust.
13837 (switch_to_inferior_and_push_target): New.
13838 (add_inferior_command, clone_inferior_command): Handle
13839 "-no-connection" parameter. Use
13840 switch_to_inferior_and_push_target.
13841 (_initialize_inferior): Mention "-no-connection" option in
13842 the help of "add-inferior" and "clone-inferior" commands.
13843 * inferior.h: Include "process-stratum-target.h".
13844 (interrupt_target_1): Use bool.
13845 (struct inferior) <push_target, unpush_target, target_is_pushed,
13846 find_target_beneath, top_target, process_target, target_at,
13847 m_stack>: New.
13848 (discard_all_inferiors): Delete.
13849 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13850 (all_inferiors, all_non_exited_inferiors): Add
13851 process_stratum_target parameter.
13852 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13853 (target_last_proc_target): New global.
13854 (follow_fork_inferior): Push target on new inferior. Pass target
13855 to add_thread_silent. Call exec_on_vfork. Handle target's
13856 reference count.
13857 (follow_fork): Adjust get_last_target_status call. Also consider
13858 target.
13859 (follow_exec): Push target on new inferior.
13860 (struct execution_control_state) <target>: New field.
13861 (user_visible_resume_target): New.
13862 (do_target_resume): Call target_async.
13863 (resume_1): Set target's threads_executing flag. Consider resume
13864 target.
13865 (commit_resume_all_targets): New.
13866 (proceed): Also consider resume target. Skip threads of inferiors
13867 with no execution. Commit resumtion in all targets.
13868 (start_remote): Pass current inferior to wait_for_inferior.
13869 (infrun_thread_stop_requested): Consider target as well. Pass
13870 thread_info pointer to clear_inline_frame_state instead of ptid.
13871 (infrun_thread_thread_exit): Consider target as well.
13872 (random_pending_event_thread): New inferior parameter. Use it.
13873 (do_target_wait): Rename to ...
13874 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13875 down.
13876 (threads_are_resumed_pending_p, do_target_wait): New.
13877 (prepare_for_detach): Adjust calls.
13878 (wait_for_inferior): New inferior parameter. Handle it. Use
13879 do_target_wait_1 instead of do_target_wait.
13880 (fetch_inferior_event): Adjust. Switch to representative
13881 inferior. Pass target down.
13882 (set_last_target_status): Add process_stratum_target parameter.
13883 Save target in global.
13884 (get_last_target_status): Add process_stratum_target parameter and
13885 handle it.
13886 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13887 (context_switch): Check inferior_ptid == null_ptid before calling
13888 inferior_thread().
13889 (get_inferior_stop_soon): Pass down target.
13890 (wait_one): Rename to ...
13891 (poll_one_curr_target): ... this.
13892 (struct wait_one_event): New.
13893 (wait_one): New.
13894 (stop_all_threads): Adjust.
13895 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13896 event's target.
13897 (switch_back_to_stepped_thread): Also consider target.
13898 (print_stop_event): Update.
13899 (normal_stop): Update. Also consider the resume target.
13900 * infrun.h (wait_for_inferior): Remove declaration.
13901 (user_visible_resume_target): New declaration.
13902 (get_last_target_status, set_last_target_status): New
13903 process_stratum_target parameter.
13904 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13905 process_stratum_target parameter, and use it.
13906 (clear_inline_frame_state (thread_info*)): New.
13907 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13908 process_stratum_target parameter.
13909 (clear_inline_frame_state (thread_info*)): Declare.
13910 * linux-fork.c (delete_checkpoint_command): Pass target down to
13911 find_thread_ptid.
13912 (checkpoint_command): Adjust.
13913 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13914 instead of just tweaking inferior_ptid.
13915 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13916 (exit_lwp): Pass target down to find_thread_ptid.
13917 (attach_proc_task_lwp_callback): Pass target down to
13918 add_thread/set_running/set_executing.
13919 (linux_nat_target::attach): Pass target down to
13920 thread_change_ptid.
13921 (get_detach_signal): Pass target down to find_thread_ptid.
13922 Consider last target status's target.
13923 (linux_resume_one_lwp_throw, resume_lwp)
13924 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13925 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13926 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13927 (linux_nat_target::async_wait_fd): New.
13928 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13929 target down.
13930 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13931 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13932 * linux-thread-db.c (struct thread_db_info::process_target): New
13933 field.
13934 (add_thread_db_info): Save target.
13935 (get_thread_db_info): New process_stratum_target parameter. Also
13936 match target.
13937 (delete_thread_db_info): New process_stratum_target parameter.
13938 Also match target.
13939 (thread_from_lwp): Adjust to pass down target.
13940 (thread_db_notice_clone): Pass down target.
13941 (check_thread_db_callback): Pass down target.
13942 (try_thread_db_load_1): Always push the thread_db target.
13943 (try_thread_db_load, record_thread): Pass target down.
13944 (thread_db_target::detach): Pass target down. Always unpush the
13945 thread_db target.
13946 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13947 target down. Always unpush the thread_db target.
13948 (find_new_threads_callback, thread_db_find_new_threads_2)
13949 (thread_db_target::update_thread_list): Pass target down.
13950 (thread_db_target::pid_to_str): Pass current inferior down.
13951 (thread_db_target::get_thread_local_address): Pass target down.
13952 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13953 target down.
13954 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13955 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13956 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13957 (procfs_init_inferior): Rename to ...
13958 (procfs_target::procfs_init_inferior): ... this and adjust.
13959 (procfs_target::create_inferior, procfs_notice_thread)
13960 (procfs_do_thread_registers): Adjust.
13961 * ppc-fbsd-tdep.c: Include "inferior.h".
13962 (ppcfbsd_get_thread_local_address): Pass down target.
13963 * proc-service.c (ps_xfer_memory): Switch current inferior and
13964 program space as well.
13965 (get_ps_regcache): Pass target down.
13966 * process-stratum-target.c
13967 (process_stratum_target::thread_address_space)
13968 (process_stratum_target::thread_architecture): Pass target down.
13969 * process-stratum-target.h
13970 (process_stratum_target::threads_executing): New field.
13971 (as_process_stratum_target): New.
13972 * ravenscar-thread.c
13973 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13974 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13975 down.
13976 * record-btrace.c (record_btrace_target::info_record): Adjust.
13977 (record_btrace_target::record_method)
13978 (record_btrace_target::record_is_replaying)
13979 (record_btrace_target::fetch_registers)
13980 (get_thread_current_frame_id, record_btrace_target::resume)
13981 (record_btrace_target::wait, record_btrace_target::stop): Pass
13982 target down.
13983 * record-full.c (record_full_wait_1): Switch to event thread.
13984 Pass target down.
13985 * regcache.c (regcache::regcache)
13986 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13987 process_stratum_target parameter and handle it.
13988 (current_thread_target): New global.
13989 (get_thread_regcache): Add process_stratum_target parameter and
13990 handle it. Switch inferior before calling target method.
13991 (get_thread_regcache): Pass target down.
13992 (get_thread_regcache_for_ptid): Pass target down.
13993 (registers_changed_ptid): Add process_stratum_target parameter and
13994 handle it.
13995 (registers_changed_thread, registers_changed): Pass target down.
13996 (test_get_thread_arch_aspace_regcache): New.
13997 (current_regcache_test): Define a couple local test_target_ops
13998 instances and use them for testing.
13999 (readwrite_regcache): Pass process_stratum_target parameter.
14000 (cooked_read_test, cooked_write_test): Pass mock_target down.
14001 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14002 (get_thread_arch_aspace_regcache): Add process_stratum_target
14003 parameter.
14004 (regcache::target): New method.
14005 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14006 (regcache::registers_changed_ptid): Add process_stratum_target
14007 parameter.
14008 (regcache::m_target): New field.
14009 (registers_changed_ptid): Add process_stratum_target parameter.
14010 * remote.c (remote_state::supports_vCont_probed): New field.
14011 (remote_target::async_wait_fd): New method.
14012 (remote_unpush_and_throw): Add remote_target parameter.
14013 (get_current_remote_target): Adjust.
14014 (remote_target::remote_add_inferior): Push target.
14015 (remote_target::remote_add_thread)
14016 (remote_target::remote_notice_new_inferior)
14017 (get_remote_thread_info): Pass target down.
14018 (remote_target::update_thread_list): Skip threads of inferiors
14019 bound to other targets. (remote_target::close): Don't discard
14020 inferiors. (remote_target::add_current_inferior_and_thread)
14021 (remote_target::process_initial_stop_replies)
14022 (remote_target::start_remote)
14023 (remote_target::remote_serial_quit_handler): Pass down target.
14024 (remote_target::remote_unpush_target): New remote_target
14025 parameter. Unpush the target from all inferiors.
14026 (remote_target::remote_unpush_and_throw): New remote_target
14027 parameter. Pass it down.
14028 (remote_target::open_1): Check whether the current inferior has
14029 execution instead of checking whether any inferior is live. Pass
14030 target down.
14031 (remote_target::remote_detach_1): Pass down target. Use
14032 remote_unpush_target.
14033 (extended_remote_target::attach): Pass down target.
14034 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14035 (remote_target::append_resumption): Pass down target.
14036 (remote_target::append_pending_thread_resumptions)
14037 (remote_target::remote_resume_with_hc, remote_target::resume)
14038 (remote_target::commit_resume): Pass down target.
14039 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14040 (remote_target::interrupt_query)
14041 (remote_target::remove_new_fork_children)
14042 (remote_target::check_pending_events_prevent_wildcard_vcont)
14043 (remote_target::remote_parse_stop_reply)
14044 (remote_target::process_stop_reply): Pass down target.
14045 (first_remote_resumed_thread): New remote_target parameter. Pass
14046 it down.
14047 (remote_target::wait_as): Pass down target.
14048 (unpush_and_perror): New remote_target parameter. Pass it down.
14049 (remote_target::readchar, remote_target::remote_serial_write)
14050 (remote_target::getpkt_or_notif_sane_1)
14051 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14052 down target.
14053 (remote_target::mourn_inferior): Pass down target. Use
14054 remote_unpush_target.
14055 (remote_target::core_of_thread)
14056 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14057 (remote_target::pid_to_exec_file)
14058 (remote_target::thread_handle_to_thread_info): Pass down target.
14059 (remote_target::async_wait_fd): New.
14060 * riscv-fbsd-tdep.c: Include "inferior.h".
14061 (riscv_fbsd_get_thread_local_address): Pass down target.
14062 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14063 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14064 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14065 Adjust.
14066 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14067 * solib-svr4.c (enable_break): Pass down target.
14068 * spu-multiarch.c (parse_spufs_run): Pass down target.
14069 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14070 * target-delegates.c: Regenerate.
14071 * target.c (g_target_stack): Delete.
14072 (current_top_target): Return the current inferior's top target.
14073 (target_has_execution_1): Refer to the passed-in inferior's top
14074 target.
14075 (target_supports_terminal_ours): Check whether the initial
14076 inferior was already created.
14077 (decref_target): New.
14078 (target_stack::push): Incref/decref the target.
14079 (push_target, push_target, unpush_target): Adjust.
14080 (target_stack::unpush): Defref target.
14081 (target_is_pushed): Return bool. Adjust to refer to the current
14082 inferior's target stack.
14083 (dispose_inferior): Delete, and inline parts ...
14084 (target_preopen): ... here. Only dispose of the current inferior.
14085 (target_detach): Hold strong target reference while detaching.
14086 Pass target down.
14087 (target_thread_name): Add assertion.
14088 (target_resume): Pass down target.
14089 (target_ops::beneath, find_target_at): Adjust to refer to the
14090 current inferior's target stack.
14091 (get_dummy_target): New.
14092 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14093 has a thread running.
14094 (initialize_targets): Rename to ...
14095 (_initialize_target): ... this.
14096 * target.h: Include "gdbsupport/refcounted-object.h".
14097 (struct target_ops): Inherit refcounted_object.
14098 (target_ops::shortname, target_ops::longname): Make const.
14099 (target_ops::async_wait_fd): New method.
14100 (decref_target): Declare.
14101 (struct target_ops_ref_policy): New.
14102 (target_ops_ref): New typedef.
14103 (get_dummy_target): Declare function.
14104 (target_is_pushed): Return bool.
14105 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14106 (all_matching_threads_iterator::all_matching_threads_iterator):
14107 Handle filter target.
14108 * thread-iter.h (struct all_matching_threads_iterator, struct
14109 all_matching_threads_range, class all_non_exited_threads_range):
14110 Filter by target too. Remove explicit.
14111 * thread.c (threads_executing): Delete.
14112 (inferior_thread): Pass down current inferior.
14113 (clear_thread_inferior_resources): Pass down thread pointer
14114 instead of ptid_t.
14115 (add_thread_silent, add_thread_with_info, add_thread): Add
14116 process_stratum_target parameter. Use it for thread and inferior
14117 searches.
14118 (is_current_thread): New.
14119 (thread_info::deletable): Use it.
14120 (find_thread_ptid, thread_count, in_thread_list)
14121 (thread_change_ptid, set_resumed, set_running): New
14122 process_stratum_target parameter. Pass it down.
14123 (set_executing): New process_stratum_target parameter. Pass it
14124 down. Adjust reference to 'threads_executing'.
14125 (threads_are_executing): New process_stratum_target parameter.
14126 Adjust reference to 'threads_executing'.
14127 (set_stop_requested, finish_thread_state): New
14128 process_stratum_target parameter. Pass it down.
14129 (switch_to_thread): Also match inferior.
14130 (switch_to_thread): New process_stratum_target parameter. Pass it
14131 down.
14132 (update_threads_executing): Reimplement.
14133 * top.c (quit_force): Pop targets from all inferior.
14134 (gdb_init): Don't call initialize_targets.
14135 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14136 Declare.
14137 (windows_add_thread, windows_delete_thread): Adjust.
14138 (get_windows_debug_event): Rename to ...
14139 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14140 * tracefile-tfile.c (tfile_target_open): Pass down target.
14141 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14142 Forward declare.
14143 (switch_to_thread): Add process_stratum_target parameter.
14144 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14145 parameter. Use it.
14146 (mi_on_resume): Pass target down.
14147 * nat/fork-inferior.c (startup_inferior): Add
14148 process_stratum_target parameter. Pass it down.
14149 * nat/fork-inferior.h (startup_inferior): Add
14150 process_stratum_target parameter.
14151 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14152
75c6c844
PA
141532020-01-10 Pedro Alves <palves@redhat.com>
14154
14155 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14156 directly. Instead find the first thread in the thread list and
14157 use switch_to_thread.
14158
78f2c40a
PA
141592020-01-10 Pedro Alves <palves@redhat.com>
14160
14161 * remote.c (remote_target::remote_add_inferior): Don't bind a
14162 process to the current inferior if the current inferior is already
14163 bound to a process.
14164
e7af6c70
TBA
141652020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14166 Pedro Alves <palves@redhat.com>
14167
14168 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14169 If no process is specified, return null_ptid instead of
14170 inferior_ptid.
14171 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14172 TARGET_WAITKIND_SIGNALLED with no pid.
14173
31ba933e
PA
141742020-01-10 Pedro Alves <palves@redhat.com>
14175
14176 * remote.c (first_remote_resumed_thread): New.
14177 (remote_target::wait_as): Use it as default event_ptid instead of
14178 inferior_ptid.
14179
735fc2ca
PA
141802020-01-10 Pedro Alves <palves@redhat.com>
14181
14182 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14183
c17e02e1
PA
141842020-01-10 Pedro Alves <palves@redhat.com>
14185
14186 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14187 not -1.
14188
ab1ddbcf
PA
141892020-01-10 Pedro Alves <palves@redhat.com>
14190
14191 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14192 ptid to get_last_target_status.
14193 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14194 ptid to get_last_target_status.
14195 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14196 get_last_target_status.
14197 (info_program_command): Don't pass a target_waitstatus to
14198 get_last_target_status.
14199 * infrun.c (init_wait_for_inferior): Use
14200 nullify_last_target_wait_ptid.
14201 (get_last_target_status): Handle nullptr arguments.
14202 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14203 (print_stop_event): Don't pass a ptid to get_last_target_status.
14204 (normal_stop): Don't pass a ptid to get_last_target_status.
14205 * infrun.h (get_last_target_status, set_last_target_status): Move
14206 comments here and update.
14207 (nullify_last_target_wait_ptid): Declare.
14208 * linux-fork.c (fork_load_infrun_state): Remove local extern
14209 declaration of nullify_last_target_wait_ptid.
14210 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14211 to get_last_target_status.
14212
f3f8ece4
PA
142132020-01-10 Pedro Alves <palves@redhat.com>
14214
14215 * gdbthread.h (scoped_restore_current_thread)
14216 <dont_restore, restore, m_dont_restore>: Declare.
14217 * thread.c (thread_alive): Add assertion. Return bool.
14218 (switch_to_thread_if_alive): New.
14219 (prune_threads): Switch inferior/thread.
14220 (print_thread_info_1): Switch thread before calling target methods.
14221 (scoped_restore_current_thread::restore): New, factored out from
14222 ...
14223 (scoped_restore_current_thread::~scoped_restore_current_thread):
14224 ... this.
14225 (scoped_restore_current_thread::scoped_restore_current_thread):
14226 Add assertion.
14227 (thread_apply_all_command, thread_select): Use
14228 switch_to_thread_if_alive.
14229 * infrun.c (proceed, restart_threads, handle_signal_stop)
14230 (switch_back_to_stepped_thread): Switch current thread before
14231 calling target methods.
14232
db2d40f7
PA
142332020-01-10 Pedro Alves <palves@redhat.com>
14234
14235 * inferior.c (switch_to_inferior_no_thread): New function,
14236 factored out from ...
14237 (inferior_command): ... here.
14238 * inferior.h (switch_to_inferior_no_thread): Declare.
14239 * mi/mi-main.c (run_one_inferior): Use
14240 switch_to_inferior_no_thread.
14241
bd420a2d
PA
142422020-01-10 Pedro Alves <palves@redhat.com>
14243
14244 * infcmd.c (kill_command): Remove dead code.
14245
ddf5db90
PA
142462020-01-10 Pedro Alves <palves@redhat.com>
14247
14248 * remote.c (remote_target::mourn_inferior): No longer check
14249 whether the target is running.
14250
5018ce90
PA
142512020-01-10 Pedro Alves <palves@redhat.com>
14252
14253 * corelow.c (core_target::has_execution): Change parameter type to
14254 inferior pointer.
14255 * inferior.c (number_of_live_inferiors): Use
14256 inferior::has_execution instead of target_has_execution_1.
14257 * inferior.h (inferior::has_execution): New.
14258 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14259 inferior::has_execution instead of target_has_execution_1.
14260 * process-stratum-target.c
14261 (process_stratum_target::has_execution): Change parameter type to
14262 inferior pointer. Check the inferior's PID instead of
14263 inferior_ptid.
14264 * process-stratum-target.h
14265 (process_stratum_target::has_execution): Change parameter type to
14266 inferior pointer.
14267 * record-full.c (record_full_core_target::has_execution): Change
14268 parameter type to inferior pointer.
14269 * target.c (target_has_execution_1): Change parameter type to
14270 inferior pointer.
14271 (target_has_execution_current): Adjust.
14272 * target.h (target_ops::has_execution): Change parameter type to
14273 inferior pointer.
14274 (target_has_execution_1): Change parameter type to inferior
14275 pointer. Change return type to bool.
14276 * tracefile.h (tracefile_target::has_execution): Change parameter
14277 type to inferior pointer.
14278
74375d18
PA
142792020-01-10 Pedro Alves <palves@redhat.com>
14280
14281 * exceptions.c (print_flush): Remove current_top_target() check.
14282
acdf84a6
PA
142832020-01-10 Pedro Alves <palves@redhat.com>
14284
14285 * remote.c (show_remote_exec_file): Show the current inferior's
14286 exec-file instead of the command variable's value.
14287
ec506636
PA
142882020-01-10 Pedro Alves <palves@redhat.com>
14289
14290 * record-full.c (record_full_resume_ptid): New global.
14291 (record_full_target::resume): Set it.
14292 (record_full_wait_1): Use record_full_resume_ptid instead of
14293 inferior_ptid.
14294
873657b9
PA
142952020-01-10 Pedro Alves <palves@redhat.com>
14296
14297 * gdbthread.h (scoped_restore_current_thread)
14298 <dont_restore, restore, m_dont_restore>: Declare.
14299 * thread.c (thread_alive): Add assertion. Return bool.
14300 (switch_to_thread_if_alive): New.
14301 (prune_threads): Switch inferior/thread.
14302 (print_thread_info_1): Switch thread before calling target methods.
14303 (scoped_restore_current_thread::restore): New, factored out from
14304 ...
14305 (scoped_restore_current_thread::~scoped_restore_current_thread):
14306 ... this.
14307 (scoped_restore_current_thread::scoped_restore_current_thread):
14308 Add assertion.
14309 (thread_apply_all_command, thread_select): Use
14310 switch_to_thread_if_alive.
14311
7f0ae84c
GB
143122020-01-10 George Barrett <bob@bob131.so>
14313
14314 * stap-probe.c (stap_modify_semaphore): Don't check for null
14315 semaphores.
14316 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14317 for null semaphores.
14318
f5a7c406
AB
143192020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14320
14321 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14322 all source windows, and maintain horizontal scroll status while
14323 doing so.
14324
9ae6bf64
TT
143252020-01-09 Tom Tromey <tom@tromey.com>
14326
14327 PR tui/18932:
14328 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14329 update_source_window, not print_source_lines.
14330
b2efe70c
AB
143312020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14332
14333 * tui/tui.c (tui_enable): Register tui hooks after calling
14334 tui_display_main.
14335
5f23a082
CB
143362020-01-09 Christian Biesinger <cbiesinger@google.com>
14337
14338 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14339
3061113b
SM
143402020-01-08 Simon Marchi <simon.marchi@efficios.com>
14341
14342 * thread.c (print_thread_info_1): Fix indentation.
14343
57d75002
CB
143442020-01-09 Christian Biesinger <cbiesinger@google.com>
14345
14346 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14347 unique_xmalloc_ptr outside the if to always free the demangled name.
14348
6a053cb1
TT
143492020-01-08 Tom Tromey <tromey@adacore.com>
14350
14351 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14352 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14353 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14354 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14355 Remove.
14356 (section_offsets): New typedef.
14357 * symtab.c (fixup_section, get_msymbol_address): Update.
14358 * symmisc.c (dump_msymbols): Update.
14359 * symfile.h (relative_addr_info_to_section_offsets)
14360 (symfile_map_offsets_to_segments): Update.
14361 * symfile.c (build_section_addr_info_from_objfile)
14362 (init_objfile_sect_indices): Update.
14363 (struct place_section_arg): Change type of "offsets".
14364 (place_section): Update.
14365 (relative_addr_info_to_section_offsets): Change type of
14366 "section_offsets". Remove "num_sections" parameter.
14367 (default_symfile_offsets, syms_from_objfile_1)
14368 (set_objfile_default_section_offset): Update.
14369 (reread_symbols): No need to preserve section offsets by hand.
14370 (symfile_map_offsets_to_segments): Change type of "offsets".
14371 * stap-probe.c (relocate_address): Update.
14372 * stabsread.h (process_one_symbol): Update.
14373 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14374 (solib_target_relocate_section_addresses): Update.
14375 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14376 Update.
14377 * solib-frv.c (frv_relocate_main_executable): Update.
14378 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14379 * solib-aix.c (solib_aix_get_section_offsets): Change return
14380 type.
14381 (solib_aix_solib_create_inferior_hook): Update.
14382 * remote.c (remote_target::get_offsets): Update.
14383 * psymtab.c (find_pc_sect_psymtab): Update.
14384 * psympriv.h (struct partial_symbol) <address, text_low,
14385 text_high>: Update.
14386 * objfiles.h (obj_section_offset): Update.
14387 (struct objfile) <section_offsets>: Change type.
14388 <num_sections>: Remove.
14389 (objfile_relocate): Update.
14390 * objfiles.c (entry_point_address_query): Update
14391 (relocate_one_symbol): Change type of "section_offsets".
14392 (objfile_relocate1, objfile_relocate1): Change type of
14393 "new_offsets".
14394 (objfile_rebase1): Update.
14395 * mipsread.c (mipscoff_symfile_read): Update.
14396 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14397 parameter.
14398 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14399 (parse_external, psymtab_to_symtab_1): Update.
14400 * machoread.c (macho_symfile_offsets): Update.
14401 * ia64-tdep.c (ia64_find_unwind_table): Update.
14402 * hppa-tdep.c (read_unwind_info): Update.
14403 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14404 * dwarf2read.c (create_addrmap_from_index)
14405 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14406 (process_psymtab_comp_unit_reader, add_partial_symbol)
14407 (add_partial_subprogram, process_full_comp_unit)
14408 (read_file_scope, read_func_scope, read_lexical_block_scope)
14409 (read_call_site_scope, dwarf2_rnglists_process)
14410 (dwarf2_ranges_process, dwarf2_ranges_read)
14411 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14412 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14413 Update.
14414 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14415 Update.
14416 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14417 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14418 (process_one_symbol): Change type of "section_offsets".
14419 * ctfread.c (get_objfile_text_range): Update.
14420 * coffread.c (coff_symtab_read, enter_linenos)
14421 (process_coff_symbol): Update.
14422 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14423 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14424
456e800a
TT
144252020-01-08 Tom Tromey <tromey@adacore.com>
14426
14427 * dwarf2read.c (parse_macro_definition): Use std::string.
14428 (parse_macro_definition): Likewise.
14429
6dfa2fc2
TT
144302020-01-08 Tom Tromey <tromey@adacore.com>
14431
14432 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14433 (ATTR_ALLOC_CHUNK): Remove.
14434
421d1616
TT
144352020-01-08 Tom Tromey <tromey@adacore.com>
14436
14437 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14438
43816ebc
TT
144392020-01-08 Tom Tromey <tromey@adacore.com>
14440
14441 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14442 (dwarf2_compute_name, open_dwo_file): Likewise.
14443 (process_enumeration_scope): Use std::vector.
14444 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14445 (partial_die_info::fixup, dwarf2_start_subfile)
14446 (guess_full_die_structure_name, dwarf2_name): Likewise.
14447 (determine_prefix): Update.
14448 (guess_full_die_structure_name): Make return type const.
14449 (partial_die_full_name): Return unique_xmalloc_ptr.
14450 (DW_FIELD_ALLOC_CHUNK): Remove.
14451
4212d509
TT
144522020-01-07 Tom Tromey <tromey@adacore.com>
14453
14454 PR build/24937:
14455 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14456
06a6207a
JT
144572020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14458
14459 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14460
153d79c4
AB
144612020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14462
14463 * stack.c (print_frame_info): Move disassemble_next_line code
14464 inside source_print block.
14465
66182876
EZ
144662020-01-06 Eli Zaretskii <eliz@gnu.org>
14467
14468 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14469 gdb/signals.h, as we are now using native signal symbols.
14470
cbfa8581
SV
144712020-01-06 Shahab Vahedi <shahab@synopsys.com>
14472
14473 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14474 overflow by an early check of content vs threshold.
aac66a4c 14475 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14476 Likewise.
14477
3f602821
EZ
144782020-01-06 Eli Zaretskii <eliz@gnu.org>
14479
14480 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14481
a08c904d
JT
144822020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14483
14484 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14485 export table if no section contains it's RVA.
14486
89a65580
EZ
144872020-01-06 Eli Zaretskii <eliz@gnu.org>
14488
14489 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14490
8b7fcda2
HD
144912020-01-06 Hannes Domani <ssbssa@yahoo.de>
14492
14493 * source.c (print_source_lines_base): Set last_line_listed.
14494
a61b4f69
SV
144952020-01-06 Shahab Vahedi <shahab@synopsys.com>
14496
14497 * tui/tui-disasm.c: Remove trailing spaces.
14498
559e7e50
EZ
144992020-01-06 Eli Zaretskii <eliz@gnu.org>
14500 Pedro Alves <palves@redhat.com>
14501
14502 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14503 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14504 (windows_gdb_signal_to_target): New function, uses the above
14505 enumeration to convert GDB internal signal codes to equivalent
14506 Windows codes.
14507 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14508 * windows-nat.c: Include "gdb_wait.h".
14509 (get_windows_debug_event): Extract the fatal exception from the
14510 exit status and convert to the equivalent Posix signal number.
14511 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14512 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14513 * gdbsupport/gdb_wait.c: New file, implements
14514 windows_status_to_termsig.
14515 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14516 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14517
f2302a34
AB
145182020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14519
14520 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14521 show_layout.
14522
6a5206eb
LM
145232020-01-05 Luis Machado <luis.machado@linaro.org>
14524
14525 * aarch64-linux-nat.c
14526 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14527 and bfd_mach_aarch64.
14528
6ec1d75e
PW
145292020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14530
14531 * ui-file.c (stdio_file::can_emit_style_escape)
14532 (tee_file::can_emit_style_escape): Ensure style is used also on
14533 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14534 to gdb_stdout.
14535 * main.c (set_gdb_data_directory): Use file style to output the
14536 warning that the given pathname is not a directory.
14537 * top.c (show_history_filename, gdb_safe_append_history)
14538 (show_gdb_datadir): Use file style.
14539
44f81a76
HD
145402020-01-03 Hannes Domani <ssbssa@yahoo.de>
14541
14542 * solib-target.c (struct lm_info_target):
14543 Change offsets to be a unique_xmalloc_ptr.
14544 (solib_target_relocate_section_addresses): Update.
14545
25057eb0
HD
145462020-01-03 Hannes Domani <ssbssa@yahoo.de>
14547
14548 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14549
6e2118f5
BE
145502020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14551
14552 * MAINTAINERS (Write After Approval): Add myself.
14553
8133c7dc
LM
145542020-01-02 Luis Machado <luis.machado@linaro.org>
14555
14556 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14557 Cell BE architecture.
14558 * target.h (struct target_ops) <thread_architecture>: Likewise.
14559
48189bec
HD
145602020-01-01 Hannes Domani <ssbssa@yahoo.de>
14561
14562 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14563
ead1063b
HD
145642020-01-01 Hannes Domani <ssbssa@yahoo.de>
14565
14566 * MAINTAINERS (Write After Approval): Add myself.
14567
e5d78223
JB
145682020-01-01 Joel Brobecker <brobecker@adacore.com>
14569
14570 * gdbarch.sh: Update copyright year range of generated files.
14571
b811d2c2
JB
145722020-01-01 Joel Brobecker <brobecker@adacore.com>
14573
14574 Update copyright year range in all GDB files.
14575
5f4def5c
JB
145762020-01-01 Joel Brobecker <brobecker@adacore.com>
14577
14578 * copyright.py: Convert to Python 3.
14579
51fd4002
JB
145802020-01-01 Joel Brobecker <brobecker@adacore.com>
14581
14582 * copyright.py: Adapt after move of gnulib directory from gdb
14583 directory to toplevel directory.
14584
5fb651f2
JB
145852020-01-01 Joel Brobecker <brobecker@adacore.com>
14586
14587 * copyright.py (main): Exit if run from the wrong directory.
14588
5dd8bf88
JB
145892020-01-01 Joel Brobecker <brobecker@adacore.com>
14590
14591 * top.c (print_gdb_version): Change copyright year to 2020.
14592
9f71dacb 145932020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14594
9f71dacb 14595 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14596
9f71dacb 14597For older changes see ChangeLog-2019.
c906108c
SS
14598\f
14599Local Variables:
14600mode: change-log
14601left-margin: 8
14602fill-column: 74
14603version-control: never
57da7796 14604coding: utf-8
c906108c 14605End: