]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove DW_BLOCK
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9d2246fc
TT
12020-09-29 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (read_call_site_scope)
4 (handle_data_member_location, dwarf2_add_member_fn)
5 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6 (partial_die_info::read, read_attribute_value)
7 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
8 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
9 (dwarf2_symbol_mark_computed): Update.
10 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
11 methods.
12 (DW_BLOCK): Remove.
13 * dwarf2/attribute.c (attribute::form_is_block): Add
14 DW_FORM_data16.
15
c6481205
TT
162020-09-29 Tom Tromey <tom@tromey.com>
17
18 * dwarf2/read.c (read_cutu_die_from_dwo)
19 (read_attribute_reprocess, read_attribute_value, read_attribute)
20 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
21 (dwarf2_fetch_constant_bytes): Update.
22 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
23 <set_string_noncanonical, set_string_canonical>: New methods.
24 <string_is_canonical>: Update comment.
25 <canonical_string_p>: Add assert.
26 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
27 * dwarf2/attribute.c (attribute::form_is_string): New method.
28 (attribute::string): Use it.
29
3b64bf15
TT
302020-09-29 Tom Tromey <tom@tromey.com>
31
32 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
33 (dump_die_shallow): Use canonical_string_p.
34 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
35 method.
36
2c830f54
TT
372020-09-29 Tom Tromey <tom@tromey.com>
38
39 * dwarf2/read.c (partial_die_info::read)
40 (dwarf2_const_value_attr, anonymous_struct_prefix, )
41 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
42 attribute::as_string.
43
6c412691
TT
442020-09-29 Tom Tromey <tom@tromey.com>
45
46 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
47 DW_ADDR.
48 (attribute::string): Don't use DW_STRING.
49 (attribute::get_ref_die_offset): Don't use DW_UNSND.
50 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
51
95f982e5
TT
522020-09-29 Tom Tromey <tom@tromey.com>
53
54 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
55 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
56 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
57 * dwarf2/attribute.h (struct attribute): Rename methods.
58 * dwarf2/attribute.c (attribute::as_address): Rename from
59 value_as_address.
60 (attribute::as_string): Rename from value_as_string.
61
f800b00e
TT
622020-09-29 Tom Tromey <tom@tromey.com>
63
64 * dwarf2/read.c (partial_die_info::read) <case
65 DW_AT_linkage_name>: Use value_as_string.
66 (dwarf2_string_attr): Use value_as_string.
67 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
68 method.
69 * dwarf2/attribute.c (attribute::value_as_string): New method.
70
de38d64a
PA
712020-09-29 Pedro Alves <pedro@palves.net>
72
73 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
74 defined before using '#pragma GCC diagnostic' instead of checking
75 __clang__.
76
9aed480c
TT
772020-09-28 Tom Tromey <tom@tromey.com>
78
79 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
80 (handle_signal_stop): Update.
81 * procfs.c (procfs_target::insert_watchpoint): Update.
82 * target.h (target_have_steppable_watchpoint): Now a function.
83
8a3ecb79
TT
842020-09-28 Tom Tromey <tom@tromey.com>
85
86 * infrun.c (set_schedlock_func): Update.
87 * target.h (target_can_lock_scheduler): Now a function.
88
55f6301a
TT
892020-09-28 Tom Tromey <tom@tromey.com>
90
91 * inferior.h (class inferior) <has_execution>: Update.
92 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
93 * valops.c (find_function_in_inferior)
94 (value_allocate_space_in_inferior): Update.
95 * top.c (kill_or_detach): Update.
96 * target.c (target_preopen, set_target_permissions): Update.
97 (target_has_execution_current): Remove.
98 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
99 Update.
100 * solib.c (update_solib_list, reload_shared_libraries): Update.
101 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
102 * solib-dsbt.c (enable_break): Update.
103 * score-tdep.c (score7_fetch_inst): Update.
104 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
105 Update.
106 * remote.c (remote_target::start_remote)
107 (remote_target::remote_check_symbols, remote_target::open_1)
108 (remote_target::remote_detach_1, remote_target::verify_memory)
109 (remote_target::xfer_partial, remote_target::read_description)
110 (remote_target::get_min_fast_tracepoint_insn_len): Update.
111 * record-full.c (record_full_open_1): Update.
112 * record-btrace.c (record_btrace_target_open): Update.
113 * objc-lang.c (lookup_objc_class, lookup_child_selector)
114 (value_nsstring): Update.
115 * linux-thread-db.c (add_thread_db_info)
116 (thread_db_find_new_threads_silently, check_thread_db_callback)
117 (try_thread_db_load_1, record_thread): Update.
118 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
119 Update.
120 * linux-fork.c (checkpoint_command): Update.
121 * infrun.c (set_non_stop, set_observer_mode)
122 (check_multi_target_resumption, for_each_just_stopped_thread)
123 (maybe_remove_breakpoints, normal_stop)
124 (class infcall_suspend_state): Update.
125 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
126 (info_program_command, attach_command): Update.
127 * infcall.c (call_function_by_hand_dummy): Update.
128 * inf-loop.c (inferior_event_handler): Update.
129 * gcore.c (gcore_command, derive_heap_segment): Update.
130 * exec.c (exec_file_command): Update.
131 * eval.c (evaluate_subexp): Update.
132 * compile/compile.c (compile_to_object): Update.
133 * cli/cli-dump.c (restore_command): Update.
134 * breakpoint.c (update_watchpoint)
135 (update_inserted_breakpoint_locations)
136 (insert_breakpoint_locations, get_bpstat_thread): Update.
137 * target.h (target_has_execution): Remove macro.
138 (target_has_execution_current): Don't declare.
139 (target_has_execution): Rename from target_has_execution_1. Add
140 argument default.
141
05374cfd
TT
1422020-09-28 Tom Tromey <tom@tromey.com>
143
144 * mi/mi-main.c (exec_reverse_continue)
145 (mi_cmd_list_target_features): Update.
146 * infrun.c (set_exec_direction_func): Update.
147 * target.c (default_execution_direction): Update.
148 * reverse.c (exec_reverse_once): Update.
149 * target.h (target_can_execute_reverse): Now a function.
150
9dccd06e
TT
1512020-09-28 Tom Tromey <tom@tromey.com>
152
153 * tui/tui-regs.c (tui_get_register)
154 (tui_data_window::show_registers): Update.
155 * thread.c (scoped_restore_current_thread::restore)
156 (scoped_restore_current_thread::scoped_restore_current_thread):
157 Update.
158 * regcache-dump.c (regcache_print): Update.
159 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
160 Update.
161 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
162 * mep-tdep.c (current_me_module, current_options): Update.
163 * linux-thread-db.c (thread_db_load): Update.
164 * infcmd.c (registers_info, info_vector_command)
165 (info_float_command): Update.
166 * ia64-tdep.c (ia64_frame_prev_register)
167 (ia64_sigtramp_frame_prev_register): Update.
168 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
169 * gcore.c (derive_stack_segment): Update.
170 * frame.c (get_current_frame, has_stack_frames): Update.
171 * findvar.c (language_defn::read_var_value): Update.
172 * arm-tdep.c (arm_pc_is_thumb): Update.
173 * target.c (target_has_registers): Rename from
174 target_has_registers_1.
175 * target.h (target_has_registers): Remove macro.
176 (target_has_registers): Rename from target_has_registers_1.
177
841de120
TT
1782020-09-28 Tom Tromey <tom@tromey.com>
179
180 * windows-tdep.c (tlb_make_value): Update.
181 * tui/tui-regs.c (tui_data_window::show_registers): Update.
182 * thread.c (scoped_restore_current_thread::restore)
183 (scoped_restore_current_thread::scoped_restore_current_thread)
184 (thread_command): Update.
185 * stack.c (backtrace_command_1, frame_apply_level_command)
186 (frame_apply_all_command, frame_apply_command): Update.
187 * infrun.c (siginfo_make_value, restore_infcall_control_state):
188 Update.
189 * gcore.c (derive_stack_segment): Update.
190 * frame.c (get_current_frame, has_stack_frames): Update.
191 * auxv.c (info_auxv_command): Update.
192 * ada-tasks.c (ada_build_task_list): Update.
193 * target.c (target_has_stack): Rename from target_has_stack_1.
194 * target.h (target_has_stack): Remove macro.
195 (target_has_stack): Rename from target_has_stack_1.
196
a739972c
TT
1972020-09-28 Tom Tromey <tom@tromey.com>
198
199 * target.c (target_has_memory): Rename from target_has_memory_1.
200 * tui/tui-regs.c (tui_data_window::show_registers): Update.
201 * thread.c (scoped_restore_current_thread::restore)
202 (scoped_restore_current_thread::scoped_restore_current_thread):
203 Update.
204 * frame.c (get_current_frame, has_stack_frames): Update.
205 * target.h (target_has_memory): Remove macro.
206 (target_has_memory): Rename from target_has_memory_1.
207
5b8a4776
TT
2082020-09-28 Tom Tromey <tom@tromey.com>
209
210 * target.c (target_has_all_memory_1): Remove.
211 * target.h (target_has_all_memory): Remove define.
212 (target_has_all_memory_1): Don't declare.
213
bd356ec6
SM
2142020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
215
216 * ser-base.c: Adjust comments formatting.
217
2c72d5e5
TT
2182020-09-27 Tom Tromey <tom@tromey.com>
219
220 PR tui/25342:
221 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
222
35a98237
TT
2232020-09-27 Tom Tromey <tom@tromey.com>
224
225 PR tui/25342:
226 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
227
9e820dec
TT
2282020-09-27 Tom Tromey <tom@tromey.com>
229
230 * unittests/tui-selftests.c: Update.
231 * tui/tui-winsource.h (struct tui_source_window_base)
232 <extra_margin, show_line_number, refresh_pad>: New methods.
233 <m_max_length, m_pad>: New members.
234 (tui_copy_source_line): Update.
235 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
236 first_col, line_width, ndigits parameters. Add length.
237 (tui_source_window_base::show_source_line): Write to pad. Line
238 number now 0-based.
239 (tui_source_window_base::refresh_pad): New method.
240 (tui_source_window_base::show_source_content): Write to pad. Call
241 refresh_pad.
242 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
243 not refill.
244 (tui_source_window_base::update_exec_info): Call
245 show_line_number.
246 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
247 method.
248 <m_digits>: New member.
249 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
250 and m_max_length.
251 (tui_source_window::show_line_number): New method.
252 * tui/tui-io.h (tui_puts): Fix comment.
253 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
254 m_max_length.
255
c15c15c8
TT
2562020-09-27 Tom Tromey <tom@tromey.com>
257
258 * tui/tui-winsource.c
259 (tui_source_window_base::set_is_exec_point_at): Don't call
260 show_source_line.
261
149830c1
TT
2622020-09-27 Tom Tromey <tom@tromey.com>
263
264 * python/py-tui.c (class tui_py_window) <refresh_window>: New
265 method.
266 <erase>: Update.
267 <cursor_x, cursor_y>: Remove.
268 <m_inner_window>: New member.
269 (tui_py_window::rerender): Create inner window.
270 (tui_py_window::output): Write to inner window.
271
8f9929bb
GR
2722020-09-26 Gareth Rees <grees@undo.io> (tiny change)
273
274 PR python/26586
275 * cli/cli-script.c (execute_control_commands): don't set
276 instream to nullptr here as this breaks the from_tty argument
277 to gdb.execute in Python.
278 (execute_user_command): set instream to nullptr here instead.
279
956bdb59
SM
2802020-09-25 Simon Marchi <simon.marchi@efficios.com>
281
282 * infrun.h (infrun_debug_printf): Fix formatting.
283 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
284
3b93626b
SJ
2852020-09-25 Saagar Jha <saagar@saagarjha.com>
286
287 * compile/compile-object-load.h (struct munmap_list): Add
288 explicitly-defined move constructor.
289
b551a89f
TT
2902020-09-24 Tom Tromey <tromey@adacore.com>
291
292 PR tui/26638:
293 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
294 method.
295 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
296 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
297 (tui_prev_win): Rewrite.
298
99bb393f
HD
2992020-09-23 Hannes Domani <ssbssa@yahoo.de>
300
301 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
302 in WOW64 processes as SIGINT.
303 * nat/windows-nat.h: Make wow64_process a shared variable.
304 * windows-nat.c: Remove static wow64_process variable.
305
20a5fcbd
TT
3062020-09-23 Tom Tromey <tom@tromey.com>
307
308 PR symtab/25470:
309 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
310 offset and bit size.
311 * printcmd.c (print_scalar_formatted): Handle zero-length
312 integer.
313 (print_scalar_formatted): Use bit_size_differs_p.
314 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
315 constant.
316 (union type_specific): <int_stuff>: New member.
317 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
318 methods.
319 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
320 TYPE_SPECIFIC_FIELD.
321 (recursive_dump_type, copy_type_recursive): Update.
322 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
323 DW_AT_data_bit_offset.
324
bac51ab7
TT
3252020-09-23 Tom Tromey <tom@tromey.com>
326
327 * utils.h (class gdb_argv): Add move operators.
328 <append>: New methods.
329 * compile/compile.c (build_argc_argv): Remove.
330 (compile_args_argc): Remove.
331 (compile_args_argv): Change type.
332 (set_compile_args): Simplify.
333 (append_args): Remove.
334 (filter_args): Remove argcp parameter.
335 (get_args): Return gdb_argv. Simplify.
336 (compile_to_object): Update.
337
92677124
TT
3382020-09-23 Tom Tromey <tom@tromey.com>
339
340 * compile/compile-object-run.c (do_module_cleanup)
341 <~do_module_cleanup> :Remove.
342 (do_module_cleanup): Update.
343 * compile/compile-object-load.h (struct munmap_list): Add move
344 assignment operator.
345 <source_file>: Now a std::string.
346 <munmap_list>: Rename. No longer a pointer.
347 * compile/compile-object-load.c (struct setup_sections_data): Add
348 constructor.
349 <setup_one_section>: Declare.
350 <munmap_list>: Move earlier.
351 <m_bfd>: New member.
352 <m_last_size, m_last_section_first, m_last_prot,
353 m_last_max_alignment>: Rename, add initializers where needed.
354 (setup_sections_data::setup_one_section): Rename from
355 setup_sections. Update.
356 (compile_object_load): Update. Don't use bfd_map_over_sections.
357
e616f60a
TT
3582020-09-23 Tom Tromey <tom@tromey.com>
359
360 * compile/compile-object-run.c (struct do_module_cleanup): Add
361 parameters to constructor. Update destructor.
362 <source_file, scope, scope_data, out_value_type, out_value_addr,
363 munmap_list_head, objfile_name_string>: Remove.
364 <module>: New member.
365 (do_module_cleanup): Update.
366 (compile_object_run): Update.
367
e947a848
TT
3682020-09-23 Tom Tromey <tom@tromey.com>
369
370 * compile/compile.c (eval_compile_command): Update.
371 * compile/compile-object-run.h (compile_object_run): Take a
372 compile_module_up.
373 * compile/compile-object-run.c (compile_object_run): Take a
374 compile_module_up.
375 * compile/compile-object-load.h (struct compile_module): Add
376 constructor, destructor.
377 (compile_module_up): New typedef.
378 (compile_object_load): Return compile_object_up.
379 * compile/compile-object-load.c (compile_object_load): Return
380 compile_module_up.
381
0dbf6ee6
TT
3822020-09-23 Tom Tromey <tom@tromey.com>
383
384 * compile/compile-object-run.c (struct do_module_cleanup): Add
385 constructor, destructor.
386 <objfile_name_string>: Don't use struct hack.
387 (do_module_cleanup): Use delete.
388 (compile_object_run): Use new.
389
ebe824f5
TT
3902020-09-23 Tom Tromey <tom@tromey.com>
391
392 * compile/compile-cplus-types.c
393 (compile_cplus_convert_struct_or_union): Use std::vector.
394 (compile_cplus_convert_func): Likewise.
395 * compile/compile-c-types.c (convert_func): Use std::vector.
396
5dd918d9
TT
3972020-09-21 Tom Tromey <tromey@adacore.com>
398
399 * sparc-tdep.c (sparc32_skip_prologue): Use
400 skip_prologue_using_sal.
401
5486c517
TT
4022020-09-19 Tom Tromey <tom@tromey.com>
403
404 * symfile.c (add_section_size_callback): Remove.
405 (load_one_section): Rename from load_section_callback. Change
406 parameters.
407 (generic_load): Use foreach.
408
8a6bb1d1
TT
4092020-09-19 Tom Tromey <tom@tromey.com>
410
411 * exec.c (add_to_section_table): Remove.
412 (build_section_table): Use foreach.
413
08f93a1a
TT
4142020-09-19 Tom Tromey <tom@tromey.com>
415
416 * elfread.c (elf_locate_sections): Change parameters.
417 (elf_symfile_read): Use foreach.
418
03cd72b8
TT
4192020-09-19 Tom Tromey <tom@tromey.com>
420
421 * cli/cli-dump.c (struct callback_data): Remove.
422 (restore_one_section): Rename from restore_section_callback.
423 Change parameters.
424 (restore_binary_file): Change parameters.
425 (restore_command): Use foreach.
426
f4f2b85f
TT
4272020-09-19 Tom Tromey <tom@tromey.com>
428
429 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
430 (gcore_copy_callback): Likewise.
431 (gcore_memory_sections): Use foreach.
432
b35c1d1c
TT
4332020-09-19 Tom Tromey <tom@tromey.com>
434
435 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
436 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
437 parameters.
438 (generic_elf_osabi_sniffer): Use foreach.
439 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
440 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
441
5bb6e9dd
TT
4422020-09-19 Tom Tromey <tom@tromey.com>
443
444 * dwarf2/read.c (locate_dwz_sections): Change parameters.
445 (dwarf2_get_dwz_file): Use foreach.
446 (dwarf2_locate_dwo_sections): Change parameters.
447 (open_and_init_dwo_file): Use foreach.
448 (dwarf2_locate_common_dwp_sections): Change parameters.
449 (open_and_init_dwp_file): Use foreach.
450
ad7277da
TT
4512020-09-19 Tom Tromey <tom@tromey.com>
452
453 * symfile.h: (find_lowest_section): Don't declare.
454 * symfile.c (find_lowest_section): Now static. Change
455 parameters.
456 (struct place_section_arg): Remove.
457 (place_section): Change parameters.
458 (addr_info_make_relative): Use foreach.
459 (symfile_dummy_outputs): Remove.
460 (default_symfile_relocate): Use foreach.
461
cb814f2e
TT
4622020-09-19 Tom Tromey <tom@tromey.com>
463
464 * objfiles.c (add_to_objfile_sections): Rename from
465 add_to_objfile_sections_full.
466 (add_to_objfile_sections): Remove.
467 (build_objfile_section_table): Use foreach.
468
3cabfd26
TT
4692020-09-19 Tom Tromey <tom@tromey.com>
470
471 * stap-probe.c (get_stap_base_address_1): Remove.
472 (get_stap_base_address): Use foreach.
473
1ce51eb5
TT
4742020-09-19 Tom Tromey <tom@tromey.com>
475
476 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
477 parameters.
478 (gdb_bfd_close_or_warn): Use foreach.
479
a190fabb
TT
4802020-09-19 Tom Tromey <tom@tromey.com>
481
482 * corelow.c (add_to_thread_list): Change parameters.
483 (core_target_open): Use foreach.
484
cafb0d81
TT
4852020-09-19 Tom Tromey <tom@tromey.com>
486
487 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
488 existing function.
489
c8d5abea
AB
4902020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
491
492 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
493 for arrays.
494
6d816919
AB
4952020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
496
497 * eval.c: Remove 'f-lang.h' include.
498 (value_f90_subarray): Moved to f-lang.c.
499 (eval_call): Renamed to...
500 (evaluate_subexp_do_call): ...this, is no longer static, header
501 comment moved into header file.
502 (evaluate_funcall): Update call to eval_call.
503 (skip_undetermined_arglist): Moved to f-lang.c.
504 (fortran_value_subarray): Likewise.
505 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
506 moved to evaluate_subexp_f.
507 (calc_f77_array_dims): Moved to f-lang.c
508 * expprint.c (print_subexp_funcall): New function.
509 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
510 moved to print_subexp_f, OP_FUNCALL uses new function.
511 (dump_subexp_body_funcall): New function.
512 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
513 moved to dump_subexp_f, OP_FUNCALL uses new function.
514 * expression.h (evaluate_subexp_do_call): Declare.
515 * f-lang.c (value_f90_subarray): Moved from eval.c.
516 (skip_undetermined_arglist): Likewise.
517 (calc_f77_array_dims): Likewise.
518 (fortran_value_subarray): Likewise.
519 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
520 (operator_length_f): Likewise.
521 (print_subexp_f): Likewise.
522 (dump_subexp_body_f): Likewise.
523 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
524 declaration of this operation to here.
525 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
526 support moved to operator_length_f.
527 * parser-defs.h (dump_subexp_body_funcall): Declare.
528 (print_subexp_funcall): Declare.
529 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
530 fortran-operator.def.
531
8c37706a
AB
5322020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
533
534 * eval.c (fortran_value_subarray): New function, content is taken
535 from...
536 (evaluate_subexp_standard): ...here, in two places. Now arrays
537 and strings both call the new function.
538 (calc_f77_array_dims): Add header comment, handle strings.
539
14f9473c
VC
5402020-09-18 Victor Collod <vcollod@nvidia.com>
541
542 PR gdb/26635
543 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
544 (i386_analyze_prologue): Call i386_skip_endbr.
545
b60cea74
TT
5462020-09-18 Tom Tromey <tromey@adacore.com>
547
548 * windows-nat.c (struct windows_nat_target) <wait>: Update.
549 (windows_nat_target::wait): Update.
550 * target/wait.h (enum target_wait_flag): New. Use
551 DEF_ENUM_FLAGS_TYPE.
552 * target/target.h (target_wait): Change type of options.
553 * target.h (target_options_to_string, default_target_wait):
554 Update.
555 (struct target_ops) <wait>: Change type of options.
556 * target.c (target_wait, default_target_wait, do_option): Change
557 type of "options".
558 (target_options_to_string): Likewise.
559 * target-delegates.c: Rebuild.
560 * target-debug.h (target_debug_print_target_wait_flags): Rename
561 from target_debug_print_options.
562 * sol-thread.c (class sol_thread_target) <wait>: Update.
563 (sol_thread_target::wait): Update.
564 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
565 (rs6000_nat_target::wait): Update.
566 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
567 Update.
568 (remote_target::wait_ns, remote_target::wait_as): Change type of
569 "options".
570 (remote_target::wait): Update.
571 * remote-sim.c (struct gdbsim_target) <wait>: Update.
572 (gdbsim_target::wait): Update.
573 * record-full.c (class record_full_base_target) <wait>: Update.
574 (record_full_wait_1): Change type of "options".
575 (record_full_base_target::wait): Update.
576 * record-btrace.c (class record_btrace_target) <wait>: Update.
577 (record_btrace_target::wait): Update.
578 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
579 Update.
580 (ravenscar_thread_target::wait): Update.
581 * procfs.c (class procfs_target) <wait>: Update.
582 (procfs_target::wait): Update.
583 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
584 * obsd-nat.c (obsd_nat_target::wait): Update.
585 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
586 (nto_procfs_target::wait): Update.
587 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
588 * nbsd-nat.c (nbsd_wait): Change type of "options".
589 (nbsd_nat_target::wait): Update.
590 * linux-thread-db.c (class thread_db_target) <wait>: Update.
591 (thread_db_target::wait): Update.
592 * linux-nat.h (class linux_nat_target) <wait>: Update.
593 * linux-nat.c (linux_nat_target::wait): Update.
594 (linux_nat_wait_1): Update.
595 * infrun.c (do_target_wait_1, do_target_wait): Change type of
596 "options".
597 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
598 * inf-ptrace.c (inf_ptrace_target::wait): Update.
599 * go32-nat.c (struct go32_nat_target) <wait>: Update.
600 (go32_nat_target::wait): Update.
601 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
602 * gnu-nat.c (gnu_nat_target::wait): Update.
603 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
604 * fbsd-nat.c (fbsd_nat_target::wait): Update.
605 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
606 * darwin-nat.c (darwin_nat_target::wait): Update.
607 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
608 (bsd_uthread_target::wait): Update.
609 * aix-thread.c (class aix_thread_target) <wait>: Update.
610 (aix_thread_target::wait): Update.
611
0295dde6
AB
6122020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
613
614 * compile/compile-object-run.c (create_copied_type_recursive): New
615 function.
616 (compile_object_run): Use new function.
617
d3483b43
JT
6182020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
619
620 * NEWS: Mention x86_64 Cygwin core file support.
621
e7d612ad
JT
6222020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
623
624 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
625 (core_process_module_section): Handle NOTE_INFO_MODULE64.
626
aff9d387
JT
6272020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
628
62a5151b
JT
629 * windows-tdep.h: Add prototypes.
630 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
631 (i386_windows_core_pid_to_str): Move and rename ...
632 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
633 (windows_core_pid_to_str): ... and here.
634 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
635
6362020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
637 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
638 (amd64_windows_init_abi_common): ... and register.
639
7d155da3
JT
6402020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
641
642 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
643 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
644
e8ef12b9
PA
6452020-09-18 Pedro Alves <pedro@palves.net>
646
647 PR gdb/26631
648 * thread.c (thread_find_command): Switch inferior before calling
649 target methods.
650
c1e1314d
TT
6512020-09-17 Tom Tromey <tromey@adacore.com>
652
653 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
654 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
655 (tdesc_arch_data_up): New typedef.
656 (tdesc_use_registers, tdesc_data_alloc): Update.
657 (tdesc_data_cleanup): Don't declare.
658 * target-descriptions.c (tdesc_data_alloc): Return a
659 tdesc_arch_data_up.
660 (tdesc_arch_data_deleter::operator()): Rename from
661 tdesc_data_cleanup. Change argument type.
662 (tdesc_use_registers): Change early_data to an rvalue reference.
663 (tdesc_use_registers): Don't use delete.
664 * sparc-tdep.c (sparc32_gdbarch_init): Update.
665 * s390-tdep.c (s390_gdbarch_init): Update.
666 * rx-tdep.c (rx_gdbarch_init): Update.
667 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
668 * riscv-tdep.c (riscv_gdbarch_init): Update.
669 * or1k-tdep.c (or1k_gdbarch_init): Update.
670 * nios2-tdep.c (nios2_gdbarch_init): Update.
671 * nds32-tdep.c (nds32_gdbarch_init): Update.
672 * mips-tdep.c (mips_gdbarch_init): Update.
673 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
674 * m68k-tdep.c (m68k_gdbarch_init): Update.
675 * i386-tdep.c (i386_gdbarch_init): Update.
676 * arm-tdep.c (arm_gdbarch_init): Update.
677 * arc-tdep.c (arc_tdesc_init): Update.
678 (arc_gdbarch_init): Update.
679 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
680
0363df3d
HD
6812020-09-17 Hannes Domani <ssbssa@yahoo.de>
682
683 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
684 for WOW64 processes.
685
280a9412
TT
6862020-09-17 Tom Tromey <tom@tromey.com>
687
688 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
689
6108fd18
TT
6902020-09-17 Tom Tromey <tom@tromey.com>
691
692 * value.c (preserve_values): Update.
693 * python/py-type.c (save_objfile_types): Update.
694 * guile/scm-type.c (save_objfile_types): Update.
695 * gdbtypes.h (create_copied_types_hash): Return htab_up.
696 * gdbtypes.c (create_copied_types_hash): Return htab_up.
697 * compile/compile-object-run.c (compile_object_run): Update.
698
fa9b1164
TT
6992020-09-17 Tom Tromey <tom@tromey.com>
700
701 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
702 Remove.
703 <m_table>: Now htab_up.
704 * typeprint.c (typedef_hash_table::recursively_update)
705 (typedef_hash_table::add_template_parameters)
706 (typedef_hash_table::typedef_hash_table): Update.
707 (typedef_hash_table::~typedef_hash_table): Remove.
708 (typedef_hash_table::typedef_hash_table)
709 (typedef_hash_table::find_global_typedef)
710 (typedef_hash_table::find_typedef): Update.
711
eb53f105
TT
7122020-09-17 Tom Tromey <tom@tromey.com>
713
714 * target-descriptions.c (tdesc_use_registers): Use htab_up.
715
7a8a5d47
TT
7162020-09-17 Tom Tromey <tom@tromey.com>
717
718 * linespec.c (class decode_compound_collector)
719 <~decode_compound_collector>: Remove.
720 <m_unique_syms>: Now htab_up.
721 (decode_compound_collector::operator ()): Update.
722 (class symtab_collector) <~symtab_collector>: Remove.
723 <m_symtab_table>: Now htab_up.
724 (symtab_collector::operator ()): Update.
725
99032cfc
TT
7262020-09-17 Tom Tromey <tom@tromey.com>
727
728 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
729 (filename_seen_cache::clear): Update.
730 (~filename_seen_cache): Remove.
731 (filename_seen_cache::seen): Update.
732 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
733 htab_up.
734 <~filename_seen_cache>: Remove.
735 <traverse>: Update.
736
32580f6d
TT
7372020-09-17 Tom Tromey <tom@tromey.com>
738
739 * completer.c (completion_tracker::discard_completions)
740 (completion_tracker::~completion_tracker)
741 (completion_tracker::maybe_add_completion)
742 (completion_tracker::remove_completion)
743 (completion_tracker::recompute_lowest_common_denominator)
744 (completion_tracker::build_completion_result): Update.
745 * completer.h (class completion_tracker) <have_completions>:
746 Update.
747 <m_entries_hash>: Now htab_up.
748
c1fb9836
TT
7492020-09-17 Tom Tromey <tom@tromey.com>
750
751 * breakpoint.c (ambiguous_names_p): Use htab_up.
752
88f07206
TT
7532020-09-17 Tom Tromey <tom@tromey.com>
754
755 * auto-load.c (struct auto_load_pspace_info)
756 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
757 <loaded_script_files, loaded_script_texts>: Change type to
758 htab_up.
759 (~auto_load_pspace_info) Remove.
760 (init_loaded_scripts_info, maybe_add_script_file)
761 (maybe_add_script_text, auto_load_info_scripts): Update.
762
9519b2ee
TT
7632020-09-17 Tom Tromey <tromey@adacore.com>
764
765 * c-exp.y (name_obstack): Now static.
766
d2cd4113
CC
7672020-09-17 Chungyi Chi <demonic@csie.io>
768
769 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
770
b650a282
SM
7712020-09-16 Simon Marchi <simon.marchi@efficios.com>
772
773 * breakpoint.h (init_catchpoint): Change int parameter to bool.
774 (add_solib_catchpoint): Likewise.
775 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
776 to bool.
777 (add_solib_catchpoint): Change int parameter/variable to bool.
778 (catch_load_or_unload): Likewise.
779 (init_catchpoint): Likewise.
780 (create_fork_vfork_event_catchpoint): Likewise.
781 (catch_fork_command_1): Likewise.
782 (catch_exec_command_1): Likewise.
783
4d0bcfcf
SM
7842020-09-16 Simon Marchi <simon.marchi@efficios.com>
785
786 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
787 Change instance_flags to m_instance_flags.
788
fe830662
TT
7892020-09-16 Tom Tromey <tromey@adacore.com>
790
791 PR gdb/26598:
792 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
793
fe5ddfc3
JB
7942020-09-16 John Baldwin <jhb@FreeBSD.org>
795
796 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
797 PL_FLAG_EXEC.
798 (fbsd_nat_target::insert_exec_catchpoint)
799 (fbsd_nat_target::remove_exec_catchpoint): Always define.
800 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
801 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
802
e911c666
JB
8032020-09-16 John Baldwin <jhb@FreeBSD.org>
804
805 * configure.ac: Remove check for kinfo_getvmmap().
806 * configure, config.in: Regenerate.
807 * fbsd-nat.c (fbsd_read_mapping): Remove
808 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
809 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
810 kinfo_get_vmmap() are always present.
811
1f17d372
JB
8122020-09-16 John Baldwin <jhb@FreeBSD.org>
813
814 * fbsd-nat.c: Always include support for
815 TARGET_OBJECT_SIGNAL_INFO.
816
bcb1da7f
JB
8172020-09-16 John Baldwin <jhb@FreeBSD.org>
818
819 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
820 sysctl and remove procfs fallback.
821
5515f729
JB
8222020-09-16 John Baldwin <jhb@FreeBSD.org>
823
824 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
825 * fbsd-nat.h: Likewise.
826
da1df1db
TBA
8272020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
828
829 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
830 argument.
831
0e25e767
AB
8322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
833
834 * ada-lang.c (ada_language_data): Delete.
835 (ada_language): Remove references to ada_language_data.
836 * c-lang.c (c_language_data): Delete.
837 (c_language): Remove references to c_language_data.
838 (cplus_language_data): Delete.
839 (cplus_language): Remove references to cplus_language_data.
840 (asm_language_data): Delete.
841 (asm_language): Remove references to asm_language_data.
842 (minimal_language_data): Delete.
843 (minimal_language): Remove references to minimal_language_data.
844 * d-lang.c (d_language_data): Delete.
845 (d_language): Remove references to d_language_data.
846 * f-lang.c (f_language_data): Delete.
847 (f_language): Remove references to f_language_data.
848 * go-lang.c (go_language_data): Delete.
849 (go_language): Remove references to go_language_data.
850 * language.c (unknown_language_data): Delete.
851 (unknown_language): Remove references to unknown_language_data.
852 (auto_language_data): Delete.
853 (auto_language): Remove references to auto_language_data.
854 * language.h (language_data): Delete struct.
855 (language_defn): No longer inherit from language_data.
856 * m2-lang.c (m2_language_data): Delete.
857 (m2_language): Remove references to m2_language_data.
858 * objc-lang.c (objc_language_data): Delete.
859 (objc_language): Remove references to objc_language_data.
860 * opencl-lang.c (opencl_language_data): Delete.
861 (opencl_language): Remove references to opencl_language_data.
862 * p-lang.c (pascal_language_data): Delete.
863 (pascal_language): Remove references to pascal_language_data.
864 * rust-lang.c (rust_language_data): Delete.
865 (rust_language): Remove references to rust_language_data.
866
b7c6e27d
AB
8672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
868
869 * ada-lang.c (ada_language_data): Remove la_op_print_tab
870 initializer.
871 (ada_language::opcode_print_table): New member function.
872 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
873 (c_language::opcode_print_table): New member function.
874 (cplus_language_data): Remove la_op_print_tab initializer.
875 (cplus_language::opcode_print_table): New member function.
876 (asm_language_data): Remove la_op_print_tab initializer.
877 (asm_language::opcode_print_table): New member function.
878 (minimal_language_data): Remove la_op_print_tab initializer.
879 (minimal_language::opcode_print_table): New member function.
880 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
881 (d_language::opcode_print_table): New member function.
882 * expprint.c (print_subexp_standard): Update call to
883 opcode_print_table.
884 (op_string): Likewise.
885 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
886 (f_language::opcode_print_table): New member function.
887 * go-lang.c (go_language_data): Remove la_op_print_tab
888 initializer.
889 (go_language::opcode_print_table): New member function.
890 * language.c (unknown_language_data): Remove la_op_print_tab
891 initializer.
892 (unknown_language::opcode_print_table): New member function.
893 (auto_language_data): Remove la_op_print_tab initializer.
894 (auto_language::opcode_print_table): New member function.
895 * language.h (language_data): Remove la_op_print_tab field.
896 (language_defn::opcode_print_table): Declare new member function.
897 * m2-lang.c (m2_language_data): Remove la_op_print_tab
898 initializer.
899 (m2_language::opcode_print_table): New member function.
900 * objc-lang.c (objc_language_data): Remove la_op_print_tab
901 initializer.
902 (objc_language::opcode_print_table): New member function.
903 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
904 initializer.
905 (opencl_language::opcode_print_table): New member function.
906 * p-lang.c (pascal_language_data): Remove la_op_print_tab
907 initializer.
908 (pascal_language::opcode_print_table): New member function.
909 * rust-lang.c (rust_language_data): Remove la_op_print_tab
910 initializer.
911 (rust_language::opcode_print_table): New member function.
912
5aba6ebe
AB
9132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
914
915 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
916 (ada_language::expression_ops): New member function.
917 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
918 (c_language::expression_ops): New member function.
919 (cplus_language_data): Remove la_exp_desc initializer.
920 (cplus_language::expression_ops): New member function.
921 (asm_language_data): Remove la_exp_desc initializer.
922 (asm_language::expression_ops): New member function.
923 (minimal_language_data): Remove la_exp_desc initializer.
924 (minimal_language::expression_ops): New member function.
925 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
926 (d_language::expression_ops): New member function.
927 * eval.c (evaluate_subexp): Update call to expression_ops.
928 * expprint.c (print_subexp): Likewise.
929 (op_name): Likewise.
930 (dump_subexp_body): Likewise.
931 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
932 (f_language::expression_ops): New member function.
933 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
934 (go_language::expression_ops): New member function.
935 * language.c (language_defn::expression_ops): New function.
936 (unknown_language_data): Remove la_exp_desc initializer.
937 (auto_language_data): Likewise.
938 * language.h (language_data): Remove la_exp_desc field.
939 (language_defn::expression_ops): Declare new member function.
940 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
941 (m2_language::expression_ops): New member function.
942 * objc-lang.c (objc_language_data): Remove la_exp_desc
943 initializer.
944 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
945 initializer.
946 (opencl_language::expression_ops): New member function.
947 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
948 * parse.c (operator_length): Update call to expression_ops.
949 (exp_iterate): Likewise.
950 * rust-lang.c (rust_language_data): Remove la_exp_desc
951 initializer.
952 (ruse_language::expression_ops): New member function.
953
b63a3f3f
AB
9542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
955
956 * ada-lang.c (ada_language_data): Remove la_varobj_ops
957 initializer.
958 (ada_language::varobj_ops): New member function.
959 * c-lang.c (c_language_data): Remove la_varobj_ops
960 initializer.
961 (cplus_language_data): Likewise.
962 (cplus_language::varobj_ops): New member function.
963 (asm_language_data): Remove la_varobj_ops initializer.
964 (minimal_language_data): Likewise.
965 * d-lang.c (d_language_data): Likewise.
966 * f-lang.c (f_language_data): Likewise.
967 * go-lang.c (go_language_data): Likewise.
968 * language.c (language_defn::varobj_ops): New function.
969 (unknown_language_data): Remove la_varobj_ops
970 initializer.
971 (auto_language_data): Likewise.
972 * language.h (language_data): Remove la_varobj_ops field.
973 (language_defn::varobj_ops): Declare new member function.
974 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
975 * objc-lang.c (objc_language_data): Likewise.
976 * opencl-lang.c (opencl_language_data): Likewise.
977 * p-lang.c (pascal_language_data): Likewise.
978 * rust-lang.c (rust_language_data): Likewise.
979 * varobj.c (varobj_create): Update call to varobj_ops.
980 * varobj.h (default_varobj_ops): Delete define.
981
1ac14a04
AB
9822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
983
984 * ada-lang.c (ada_language_data): Remove la_macro_expansion
985 initializer.
986 * c-lang.c (c_language_data): Likewise.
987 (c_language::macro_expansion): New member function.
988 (cplus_language_data): Likewise.
989 (cplus_language::macro_expansion): New member function.
990 (asm_language_data): Likewise.
991 (asm_language::macro_expansion): New member function.
992 (minimal_language_data): Likewise.
993 (minimal_language::macro_expansion): New member function.
994 * d-lang.c (d_language_data): Remove la_macro_expansion
995 initializer.
996 * f-lang.c (f_language_data): Likewise.
997 * go-lang.c (go_language_data): Likewise.
998 * language.c (unknown_language_data): Likewise.
999 (auto_language_data): Likewise.
1000 * language.h (language_data): Remove la_macro_expansion field.
1001 (language_defn::macro_expansion): New member function.
1002 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1003 initializer.
1004 * objc-lang.c (objc_language_data): Likewise.
1005 (objc_language::macro_expansion): New member function.
1006 * opencl-lang.c (opencl_language_data): Likewise.
1007 (opencl_language::macro_expansion): New member function.
1008 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1009 initializer.
1010 * rust-lang.c (rust_language_data): Likewise.
1011 * symtab.c (default_collect_symbol_completion_matches_break_on):
1012 Update call to macro_expansion.
1013
3a3440fb
AB
10142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1015
1016 * ada-lang.c (ada_language_data): Remove la_array_ordering
1017 initializer.
1018 * c-lang.c (c_language_data): Likewise.
1019 (cplus_language_data): Likewise.
1020 (asm_language_data): Likewise.
1021 (minimal_language_data): Likewise.
1022 * d-lang.c (d_language_data): Likewise.
1023 * dwarf2/read.c (read_array_order): Update for call to
1024 array_ordering.
1025 * f-lang.c (f_language_data): Remove la_array_ordering
1026 initializer.
1027 (f_language::array_ordering): New member function.
1028 * go-lang.c (go_language_data): Remove la_array_ordering
1029 initializer.
1030 * language.c (unknown_language_data): Likewise.
1031 (auto_language_data): Likewise.
1032 * language.h (language_data): Delete la_array_ordering field.
1033 (language_defn::array_ordering): New member function.
1034 * m2-lang.c (m2_language_data): Remove la_array_ordering
1035 initializer.
1036 * objc-lang.c (objc_language_data): Likewise.
1037 * opencl-lang.c (opencl_language_data): Likewise.
1038 * p-lang.c (pascal_language_data): Likewise.
1039 * rust-lang.c (rust_language_data): Likewise.
1040
0d201fa4
AB
10412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1042
1043 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1044 initializer.
1045 * c-lang.c (c_language_data): Likewise.
1046 (cplus_language_data): Likewise.
1047 (asm_language_data): Likewise.
1048 (minimal_language_data): Likewise.
1049 * d-lang.c (d_language_data): Likewise.
1050 * f-lang.c (f_language_data): Likewise.
1051 (f_language::case_sensitivity): New member function.
1052 * go-lang.c (go_language_data): Remove la_case_sensitivity
1053 initializer.
1054 * language.c (enum case_mode): Moved here from language.h.
1055 (case_mode): Make static.
1056 (show_case_command): Update for case_sensitivity being a method.
1057 (set_case_command): Likewise.
1058 (set_range_case): Likewise.
1059 (unknown_language_data): Remove la_case_sensitivity initializer.
1060 (auto_language_data): Likewise.
1061 * language.h (case_mode): Delete, move enum declaration to
1062 language.c.
1063 (language_data): Delete la_case_sensitivity field.
1064 (language_defn::case_sensitivity): New member function.
1065 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1066 initializer.
1067 * objc-lang.c (objc_language_data): Likewise.
1068 * opencl-lang.c (opencl_language_data): Likewise.
1069 * p-lang.c (pascal_language_data): Likewise.
1070 * rust-lang.c (rust_language_data): Likewise.
1071
efdf6a73
AB
10722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1073
1074 * ada-lang.c (ada_language_data): Remove la_range_check
1075 initializer.
1076 * c-lang.c (c_language_data): Likewise.
1077 (cplus_language_data): Likewise.
1078 (asm_language_data): Likewise.
1079 (minimal_language_data): Likewise.
1080 * d-lang.c (d_language_data): Likewise.
1081 * f-lang.c (f_language_data): Likewise.
1082 (f_language::range_checking_on_by_default): New member function.
1083 * go-lang.c (go_language_data): Remove la_range_check initializer.
1084 * language.c (enum range_mode): Moved here from language.h.
1085 (range_mode): Made static.
1086 (show_range_command): Update to use
1087 range_checking_on_by_default.
1088 (set_range_command): Likewise.
1089 (set_range_case): Likewise.
1090 (unknown_language_data): Remove la_range_check initializer.
1091 (auto_language_data): Likewise.
1092 * language.h (range_mode): Delete. Enum definition moved to
1093 language.c.
1094 (language_data): Remove la_range_check field.
1095 (language_defn::range_checking_on_by_default): New member
1096 function.
1097 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1098 (m2_language::range_checking_on_by_default): New member function.
1099 * objc-lang.c (objc_language_data): Remove la_range_check
1100 initializer.
1101 * opencl-lang.c (opencl_language_data): Likewise.
1102 * p-lang.c (pascal_language_data): Likewise.
1103 (pascal_language::range_checking_on_by_default): New member
1104 function.
1105 * rust-lang.c (rust_language_data): Remove la_range_check
1106 initializer.
1107 (rust_language::range_checking_on_by_default): New member
1108 function.
1109
bf92aec5
AB
11102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1111
1112 * dwarf2/read.c (dwarf2_physname): Remove special case for
1113 language_go.
1114 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1115 member function.
1116
d3355e4d
AB
11172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1118
1119 * ada-lang.c (ada_language_data): Remove
1120 la_store_sym_names_in_linkage_form_p initializer.
1121 (ada_language::store_sym_names_in_linkage_form_p): New member
1122 function.
1123 * c-lang.c (c_language_data): Remove
1124 la_store_sym_names_in_linkage_form_p initializer.
1125 (c_language::store_sym_names_in_linkage_form_p): New member
1126 function.
1127 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1128 initializer.
1129 (asm_language_data): Likewise.
1130 (asm_language::store_sym_names_in_linkage_form_p): New member
1131 function.
1132 (minimal_language_data): Remove
1133 la_store_sym_names_in_linkage_form_p initializer.
1134 (minimal_language::store_sym_names_in_linkage_form_p): New member
1135 function.
1136 * d-lang.c (d_language_data): Remove
1137 la_store_sym_names_in_linkage_form_p initializer.
1138 * dwarf2/read.c (dwarf2_physname): Update call to
1139 store_sym_names_in_linkage_form_p.
1140 * f-lang.c (f_language_data): Remove
1141 la_store_sym_names_in_linkage_form_p initializer.
1142 * go-lang.c (go_language_data): Remove
1143 la_store_sym_names_in_linkage_form_p initializer.
1144 * language.c (unknown_language_data): Remove
1145 la_store_sym_names_in_linkage_form_p initializer.
1146 (unknown_language::store_sym_names_in_linkage_form_p): New member
1147 function.
1148 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1149 initializer.
1150 (auto_language::store_sym_names_in_linkage_form_p): New member
1151 function.
1152 * language.h (language_data): Remove
1153 la_store_sym_names_in_linkage_form_p member variable.
1154 (language_defn::store_sym_names_in_linkage_form_p): New member
1155 function.
1156 * m2-lang.c (m2_language_data): Remove
1157 la_store_sym_names_in_linkage_form_p initializer.
1158 * objc-lang.c (objc_language_data): Likewise.
1159 * opencl-lang.c (opencl_language_data): Likewise.
1160 * p-lang.c (pascal_language_data): Likewise.
1161 * rust-lang.c (rust_language_data): Likewise.
1162
22c12a6c
AB
11632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1164
1165 * ada-lang.c (ada_language_data): Remove string_lower_bound
1166 initializer.
1167 * c-lang.c (c_language_data): Likewise.
1168 (cplus_language_data): Likewise.
1169 (asm_language_data): Likewise.
1170 (minimal_language_data): Likewise.
1171 * d-lang.c (d_language_data): Likewise.
1172 * f-lang.c (f_language_data): Likewise.
1173 * go-lang.c (go_language_data): Likewise.
1174 * language.c (unknown_language_data): Likewise.
1175 (auto_language_data): Likewise.
1176 * language.h (language_data): Remove string_lower_bound field.
1177 (language_defn::string_lower_bound): New member function.
1178 * m2-lang.c (m2_language_data): Remove string_lower_bound
1179 initializer.
1180 (m2_language::string_lower_bound): New member function.
1181 * objc-lang.c (objc_language_data): Remove string_lower_bound
1182 initializer.
1183 * opencl-lang.c (opencl_language_data): Likewise.
1184 * p-lang.c (pascal_language_data): Likewise.
1185 * rust-lang.c (rust_language_data): Likewise.
1186 * valops.c (value_cstring): Update call to string_lower_bound.
1187 (value_string): Likewise.
1188 * value.c (allocate_repeated_value): Likewise.
1189
1c236ddd
AB
11902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1191
1192 * valops.c (value_repeat): Fix incorrect argument name in comment.
1193
67bd3fd5
AB
11942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 * ada-lang.c (ada_language_data): Remove c_style_arrays
1197 initializer.
1198 (ada_language::c_style_arrays_p): New member fuction.
1199 * c-lang.c (c_language_data): Remove c_style_arrays
1200 initializer.
1201 (cplus_language_data): Likewise.
1202 (asm_language_data): Likewise.
1203 (minimal_language_data): Likewise.
1204 * d-lang.c (d_language_data): Likewise.
1205 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1206 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1207 (f_language::c_style_arrays_p): New member function.
1208 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1209 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1210 * language.c (unknown_language_data): Remove c_style_arrays
1211 initializer.
1212 (auto_language_data): Likewise.
1213 * language.h (language_data): Remove c_style_arrays field.
1214 (language_defn::c_style_arrays_p): New member function.
1215 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1216 (m2_language::c_style_arrays_p): New member function.
1217 * objc-lang.c (objc_language_data): Remove c_style_arrays
1218 initializer.
1219 * opencl-lang.c (opencl_language_data): Likewise.
1220 * p-lang.c (pascal_language_data): Likewise.
1221 * rust-lang.c (rust_language_data): Likewise.
1222 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1223 and update local variable to a bool.
1224 * valops.c (value_cast): Update call to c_style_arrays_p.
1225 (value_array): Likewise.
1226 * value.c (coerce_array): Likewise.
1227
85967615
AB
12282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1229
1230 * ada-lang.c (ada_language_data): Remove la_language initializer.
1231 * c-lang.c (c_language_data): Likewise.
1232 (cplus_language_data): Likewise.
1233 (asm_language_data): Likewise.
1234 (minimal_language_data): Likewise.
1235 * d-lang.c (d_language_data): Likewise.
1236 * f-lang.c (f_language_data): Likewise.
1237 * go-lang.c (go_language_data): Likewise.
1238 * language.c (unknown_language_data): Likewise.
1239 (auto_language_data): Likewise.
1240 * language.h (language_data): Remove la_language field.
1241 (language_defn::language_defn): Initialise la_language field.
1242 (language_defn::la_language): New member variable.
1243 * m2-lang.c (m2_language_data): Remove la_language field.
1244 * objc-lang.c (objc_language_data): Likewise.
1245 * opencl-lang.c (opencl_language_data): Likewise.
1246 * p-lang.c (pascal_language_data): Likewise.
1247 * rust-lang.c (rust_language_data): Likewise.
1248
e171d6f1
AB
12492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1250
1251 * ada-lang.c (ada_extensions): Delete, moved into
1252 ada_language::filename_extensions.
1253 (ada_language_data): Remove la_filename_extensions initializer.
1254 (ada_language::filename_extensions): New member function.
1255 * c-lang.c (c_extensions): Delete, moved into
1256 c_language::filename_extensions.
1257 (c_language_data): Remove la_filename_extensions initializer.
1258 (c_language::filename_extensions): New member function.
1259 (cplus_extensions): Delete, moved into
1260 cplus_language::filename_extensions.
1261 (cplus_language_data): Remove la_filename_extensions initializer.
1262 (cplus_language::filename_extensions): New member function.
1263 (asm_extensions): Delete, moved into
1264 asm_language::filename_extensions.
1265 (asm_language_data): Remove la_filename_extensions initializer.
1266 (asm_language::filename_extensions): New member function.
1267 (minimal_language_data): Remove la_filename_extensions
1268 initializer.
1269 * d-lang.c (d_extensions): Delete, moved into
1270 d_language::filename_extensions.
1271 (d_language_data): Remove la_filename_extensions initializer.
1272 (d_language::filename_extensions): New member function.
1273 * f-lang.c (f_extensions): Delete, moved into
1274 f_language::filename_extensions.
1275 (f_language_data): Remove la_filename_extensions initializer.
1276 (f_language::filename_extensions): New member function.
1277 * go-lang.c (go_language_data): Remove la_filename_extensions
1278 initializer.
1279 * language.c (add_set_language_command): Update now that
1280 filename_extensions returns a vector.
1281 (unknown_language_data): Remove la_filename_extensions
1282 initializer.
1283 (auto_language_data): Likewise.
1284 * language.h (language_data): Remove la_filename_extensions field.
1285 (language_defn::filename_extensions): New member function.
1286 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1287 initializer.
1288 * objc-lang.c (objc_extensions): Delete, moved into
1289 objc_language::filename_extensions.
1290 (objc_language_data): Remove la_filename_extensions initializer.
1291 (objc_language::filename_extensions): New member function.
1292 * opencl-lang.c (opencl_language_data): Remove
1293 la_filename_extensions initializer.
1294 * p-lang.c (pascal_extensions): Delete, moved into
1295 pascal_language::filename_extensions.
1296 (pascal_language_data): Remove la_filename_extensions initializer.
1297 (pascal_language::filename_extensions): New member function.
1298 * rust-lang.c (rust_extensions): Delete, moved into
1299 rust_language::filename_extensions.
1300 (rust_language_data): Remove la_filename_extensions initializer.
1301 (rust_language::filename_extensions): New member function.
1302 * symfile.c (add_filename_language): Add new assert.
1303
6f7664a9
AB
13042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1305
1306 * ada-lang.c (ada_language_data): Remove la_name and
1307 la_natural_name initializers.
1308 (ada_language::name): New member function.
1309 (ada_language::natural_name): New member function.
1310 * c-lang.c (c_language_data): Remove la_name and
1311 la_natural_name initializers.
1312 (c_language::name): New member function.
1313 (c_language::natural_name): New member function.
1314 (cplus_language_data): Remove la_name and
1315 la_natural_name initializers.
1316 (cplus_language::name): New member function.
1317 (cplus_language::natural_name): New member function.
1318 (asm_language_data): Remove la_name and
1319 la_natural_name initializers.
1320 (asm_language::name): New member function.
1321 (asm_language::natural_name): New member function.
1322 (minimal_language_data): Remove la_name and
1323 la_natural_name initializers.
1324 (minimal_language::name): New member function.
1325 (minimal_language::natural_name): New member function.
1326 * compile/compile.c (compile_to_object): Update call to
1327 lanugage_defn::name.
1328 * d-lang.c (d_language_data): Remove la_name and
1329 la_natural_name initializers.
1330 (d_language::name): New member function.
1331 (d_language::natural_name): New member function.
1332 * expprint.c (print_subexp_standard): Update call to
1333 language_defn::name.
1334 (dump_raw_expression): Likewise
1335 (dump_prefix_expression): Likewise.
1336 * f-lang.c (f_language_data): Remove la_name and
1337 la_natural_name initializers.
1338 (f_language::name): New member function.
1339 (f_language::natural_name): New member function.
1340 * go-lang.c (go_language_data): Remove la_name and
1341 la_natural_name initializers.
1342 (go_language::name): New member function.
1343 (go_language::natural_name): New member function.
1344 * language.c (show_language_command): Update call to
1345 language_defn::name.
1346 (set_language_command): Likewise.
1347 (language_enum): Likewise.
1348 (language_str): Likewise.
1349 (add_set_language_command): Likewise, use
1350 language_defn::natural_name in the doc string.
1351 (unknown_language_data): Remove la_name and
1352 la_natural_name initializers.
1353 (unknown_language::name): New member function.
1354 (unknown_language::natural_name): New member function.
1355 (auto_language_data): Remove la_name and
1356 la_natural_name initializers.
1357 (auto_language::name): New member function.
1358 (auto_language::natural_name): New member function.
1359 (language_lookup_primitive_type_as_symbol): Update call to
1360 language_defn::name.
1361 * language.h (language_data): Remove la_name and la_natural_name
1362 member variables.
1363 (language_defn::name): New member function.
1364 (language_defn::natural_name): New member function.
1365 * m2-lang.c (m2_language_data): Remove la_name and
1366 la_natural_name initializers.
1367 (m2_language::name): New member function.
1368 (m2_language::natural_name): New member function.
1369 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1370 language_defn::natural_name.
1371 * objc-lang.c (objc_language_data): Remove la_name and
1372 la_natural_name initializers.
1373 (objc_language::name): New member function.
1374 (objc_language::natural_name): New member function.
1375 * opencl-lang.c (opencl_language_data): Remove la_name and
1376 la_natural_name initializers.
1377 (opencl_language::name): New member function.
1378 (opencl_language::natural_name): New member function.
1379 * p-lang.c (pascal_language_data): Remove la_name and
1380 la_natural_name initializers.
1381 (pascal_language::name): New member function.
1382 (pascal_language::natural_name): New member function.
1383 * rust-lang.c (rust_language_data): Remove la_name and
1384 la_natural_name initializers.
1385 (rust_language::name): New member function.
1386 (rust_language::natural_name): New member function.
1387 * symtab.c (lookup_language_this): Update call to
1388 language_defn::name.
1389
5bae7c4e
AB
13902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1391
1392 * ada-lang.c (ada_language_data): Remove la_name_of_this
1393 initializer.
1394 * ax-gdb.c (gen_expr): Update call to name_of_this.
1395 * c-exp.y (classify_name): Likewise.
1396 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1397 (cplus_language_data): Likewise.
1398 (cplus_language::name_of_this): New member function.
1399 (asm_language_data): Remove la_name_of_this initializer.
1400 (minimal_language_data): Likewise.
1401 * d-lang.c (d_language_data): Likewise.
1402 (d_language::name_of_this): New member function.
1403 * expprint.c (print_subexp_standard): Update call to name_of_this.
1404 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1405 * go-lang.c (go_language_data): Likewise.
1406 * language.c (unknown_language_data): Likewise.
1407 (unknown_language::name_of_this): New member function.
1408 (auto_language_data): Remove la_name_of_this initializer.
1409 (auto_language::name_of_this): New member function.
1410 * language.h (language_data): Delete la_name_of_this member
1411 variable.
1412 (language_defn::name_of_this): New member function.
1413 * m2-lang.c (m2_language_data): Remove la_name_of_this
1414 initializer.
1415 * objc-lang.c (objc_language_data): Likewise.
1416 (objc_language::name_of_this): New member function.
1417 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1418 initializer.
1419 * p-lang.c (pascal_language_data): Likewise.
1420 (pascal_language::name_of_this): New member function.
1421 * rust-lang.c (rust_language_data): Remove la_name_of_this
1422 initializer.
1423 * symtab.c (lookup_language_this): Update call to name_of_this.
1424 (lookup_symbol_aux): Likewise.
1425 * valops.c (value_of_this): Likewise.
1426
22e3f3ed
AB
14272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1428
1429 * ada-lang.c (ada_language_data): Remove
1430 la_struct_too_deep_ellipsis initializer.
1431 (ada_language::struct_too_deep_ellipsis): New member function.
1432 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1433 initializer.
1434 (cplus_language_data): Likewise.
1435 (asm_language_data): Likewise.
1436 (minimal_language_data): Likewise.
1437 * cp-valprint.c (cp_print_value): Update call to
1438 struct_too_deep_ellipsis.
1439 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1440 initializer.
1441 * f-lang.c (f_language_data): Likewise.
1442 (f_language::struct_too_deep_ellipsis): New member function.
1443 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1444 initializer.
1445 * language.c (unknown_language_data): Likewise.
1446 (auto_language_data): Likewise.
1447 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1448 member variable.
1449 (language_defn::struct_too_deep_ellipsis): New member function.
1450 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1451 initializer.Q
1452 * objc-lang.c (objc_language_data): Likewise.
1453 * opencl-lang.c (opencl_language_data): Likewise.
1454 * p-lang.c (pascal_language_data): Likewise.
1455 * rust-lang.c (rust_language_data): Likewise.
1456 * valprint.c (val_print_check_max_depth): Update call to
1457 struct_too_deep_ellipsis.
1458
ed29e1c7
FW
14592020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1460
1461 * MAINTAINERS (Write After Approval): Add myself.
1462
12d8f940
TT
14632020-09-15 Tom Tromey <tom@tromey.com>
1464
1465 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1466 Remove.
1467
6b5a7bc7
TT
14682020-09-15 Tom Tromey <tom@tromey.com>
1469
1470 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1471 and TYPE_CODE_METHODPTR cases.
1472 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1473 (c_value_print_inner): Update.
1474 * valprint.c (generic_value_print_memberptr): New function, from
1475 c_value_print_memberptr.
1476 (generic_value_print): Use it. Call cplus_print_method_ptr.
1477
47f0e2ff
TT
14782020-09-15 Tom Tromey <tromey@adacore.com>
1479
1480 * python/python-internal.h (PyInt_FromLong): Remove define.
1481 * python/py-value.c (convert_value_from_python): Use
1482 gdb_py_object_from_longest.
1483 * python/py-type.c (typy_get_code): Use
1484 gdb_py_object_from_longest.
1485 * python/py-symtab.c (salpy_get_line): Use
1486 gdb_py_object_from_longest.
1487 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1488 gdb_py_object_from_longest.
1489 * python/py-record.c (recpy_gap_reason_code): Use
1490 gdb_py_object_from_longest.
1491 * python/py-record-btrace.c (recpy_bt_insn_size)
1492 (recpy_bt_func_level, btpy_list_count): Use
1493 gdb_py_object_from_longest.
1494 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1495 gdb_py_object_from_longest. Fix error handling.
1496 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1497 gdb_py_object_from_longest.
1498 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1499 gdb_py_object_from_longest.
1500 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1501 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1502 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1503
512116ce
TT
15042020-09-15 Tom Tromey <tromey@adacore.com>
1505
1506 * python/python.c (gdbpy_parameter_value): Use
1507 gdb_py_object_from_ulongest.
1508
4ab1029c
TT
15092020-09-15 Tom Tromey <tromey@adacore.com>
1510
1511 * python/py-infevents.c (create_register_changed_event_object):
1512 Use gdb_py_object_from_longest.
1513 * python/py-exitedevent.c (create_exited_event_object): Use
1514 gdb_py_object_from_longest.
1515
062534d4
TT
15162020-09-15 Tom Tromey <tromey@adacore.com>
1517
1518 * python/python.c (gdbpy_parameter_value): Use
1519 gdb_py_object_from_longest.
1520 * python/py-type.c (convert_field, typy_range): Use
1521 gdb_py_object_from_longest.
1522 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1523 gdb_py_object_from_longest.
1524 * python/py-lazy-string.c (stpy_get_length): Use
1525 gdb_py_object_from_longest.
1526 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1527 gdb_py_object_from_longest.
1528 * python/py-infevents.c (create_memory_changed_event_object): Use
1529 gdb_py_object_from_longest.
1530 * python/py-inferior.c (infpy_get_num): Use
1531 gdb_py_object_from_longest.
1532 (infpy_get_pid): Likewise.
1533
d1cab987
TT
15342020-09-15 Tom Tromey <tromey@adacore.com>
1535
1536 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1537 defines.
1538 * python/py-value.c (valpy_long): Use
1539 gdb_py_object_from_ulongest.
1540 * python/py-symtab.c (salpy_get_pc): Use
1541 gdb_py_object_from_ulongest.
1542 (salpy_get_last): Likewise.
1543 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1544 gdb_py_object_from_ulongest.
1545 * python/py-lazy-string.c (stpy_get_address): Use
1546 gdb_py_object_from_ulongest.
1547 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1548 * python/py-arch.c (archpy_disassemble): Use
1549 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1550 error handling.
1551
4bde49dc
TT
15522020-09-15 Tom Tromey <tromey@adacore.com>
1553
1554 * python/python-internal.h (gdb_py_long_from_longest): Remove
1555 defines.
1556 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1557 * python/py-type.c (convert_field, typy_get_sizeof): Use
1558 gdb_py_object_from_longest.
1559 * python/py-record-btrace.c (btpy_list_index): Use
1560 gdb_py_object_from_longest.
1561
37431074
TT
15622020-09-15 Tom Tromey <tromey@adacore.com>
1563
1564 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1565 * python/py-record.c (recpy_element_number): Use
1566 gdb_py_object_from_longest.
1567 (recpy_gap_number): Likewise.
1568
cbe25684
TT
15692020-09-15 Tom Tromey <tromey@adacore.com>
1570
1571 * top.c (ui::ui): Update.
1572 (highest_ui_num): Remove.
1573 * top.h (struct ui) <num>: Remove.
1574
db92ac45
TT
15752020-09-15 Tom Tromey <tromey@adacore.com>
1576
1577 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1578 * ui-style.c (ansi_regex_text): Now array.
1579 * rust-exp.y (number_regex_text): Now array.
1580 * linespec.c (linespec_quote_characters): Now array.
1581 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1582 Now arrays.
1583
d2b31b67
SM
15842020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1585
1586 * debuginfod-support.c (debuginfod_client_deleter): New.
1587 (debuginfod_client_up): New.
1588 (debuginfod_init): Return debuginfod_client_up.
1589 (debuginfod_source_query): Adjust.
1590 (debuginfod_debuginfo_query): Adjust.
1591
3246bd8e
SM
15922020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1593
1594 * debuginfod-support.c (debuginfod_source_query): Use
1595 make_unique_xstrdup.
1596
10242f36
SM
15972020-09-14 Simon Marchi <simon.marchi@efficios.com>
1598
1599 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1600 with `type::instance_flags`.
1601
e1044e6a
MM
16022020-09-14 Michael Mullin <masmullin@gmail.com>
1603
1604 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1605 Remove baton parameter.
1606
04902b09
PA
16072020-09-14 Pedro Alves <pedro@palves.net>
1608
1609 * Makefile.in (SELFTESTS_SRCS): Add
1610 unittests/enum-flags-selftests.c.
1611 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1612 btrace_function_flags instead of enum btrace_function_flag.
1613 * compile/compile-c-types.c (convert_qualified): Use
1614 enum_flags::raw.
1615 * compile/compile-cplus-symbols.c (convert_one_symbol)
1616 (convert_symbol_bmsym):
1617 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1618 (compile_cplus_convert_struct_or_union_methods)
1619 (compile_cplus_instance::convert_qualified_base):
1620 * go-exp.y (parse_string_or_char): Add cast to int.
1621 * unittests/enum-flags-selftests.c: New file.
1622 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1623 type to btrace_thread_flags from btrace_thread_flag.
1624 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1625 local's type to btrace_thread_flags from btrace_thread_flag. Add
1626 cast in DEBUG call.
1627
69896a2c
PA
16282020-09-14 Pedro Alves <pedro@palves.net>
1629
1630 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1631 * gdbtypes.c (address_space_name_to_int): Rename to ...
1632 (address_space_name_to_type_instance_flags): ... this.
1633 (address_space_int_to_name): Rename to ...
1634 (address_space_type_instance_flags_to_name): ... this.
1635 * gdbtypes.h (address_space_name_to_int): Rename to ...
1636 (address_space_name_to_type_instance_flags): ... this.
1637 (address_space_int_to_name): Rename to ...
1638 (address_space_type_instance_flags_to_name): ... this.
1639 * type-stack.c (type_stack::insert): Adjust to rename.
1640 * type-stack.h (type_stack::insert): Likewise.
1641
314ad88d
PA
16422020-09-14 Pedro Alves <pedro@palves.net>
1643 Andrew Burgess <andrew.burgess@embecosm.com>
1644
1645 * avr-tdep.c (avr_address_class_type_flags): Return
1646 type_instance_flags.
1647 (avr_address_class_type_flags_to_name): Take a
1648 type_instance_flags.
1649 (avr_address_class_name_to_type_flags): Return bool and take a
1650 type_instance_flags.
1651 * d-lang.c (build_d_types): Use type::set_instance_flags.
1652 * ft32-tdep.c (ft32_address_class_type_flags): Return
1653 type_instance_flags.
1654 (ft32_address_class_type_flags_to_name): Take a
1655 type_instance_flags.
1656 (ft32_address_class_name_to_type_flags): Return bool and take a
1657 type_instance_flags.
1658 (ft32_gdbarch_init): Use type::set_instance_flags.
1659 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1660 * gdbarch.h, gdbarch.c: Regenerate.
1661 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1662 (address_class_name_to_type_flags): Use type_instance_flags and
1663 bool.
1664 * gdbtypes.c (address_space_name_to_int)
1665 (address_space_int_to_name, make_qualified_type): Use
1666 type_instance_flags.
1667 (make_qualified_type): Use type_instance_flags and
1668 type::set_instance_flags.
1669 (make_type_with_address_space, make_cv_type, make_vector_type)
1670 (check_typedef): Use type_instance_flags.
1671 (recursive_dump_type): Cast type_instance_flags to unsigned for
1672 printing.
1673 (copy_type_recursive): Use type::set_instance_flags.
1674 (gdbtypes_post_init): Use type::set_instance_flags.
1675 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1676 <m_instance_flags>: ... this.
1677 <instance_flags, set_instance_flags>: New methods.
1678 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1679 (SET_TYPE_INSTANCE_FLAGS): New.
1680 (address_space_name_to_int, address_space_int_to_name)
1681 (make_type_with_address_space): Pass flags using
1682 type_instance_flags instead of int.
1683 * stabsread.c (cleanup_undefined_types_noname): Use
1684 type::set_instance_flags.
1685 * s390-tdep.c (s390_address_class_type_flags): Return
1686 type_instance_flags.
1687 (s390_address_class_type_flags_to_name): Take a
1688 type_instance_flags.
1689 (s390_address_class_name_to_type_flags): Return bool and take a
1690 type_instance_flags.
1691 * type-stack.c (type_stack::follow_types): Use
1692 type_instance_flags.
1693 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1694
27087b7f
TT
16952020-09-14 Tom Tromey <tromey@adacore.com>
1696
1697 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1698 * x86-tdep.c (x86_is_thunk_register_name)
1699 (x86_in_indirect_branch_thunk): Update.
1700 * sparc64-tdep.c (sparc64_fpu_register_names)
1701 (sparc64_cp0_register_names, sparc64_register_names)
1702 (sparc64_pseudo_register_names): Now const.
1703 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1704 cp0_registers_num>: Now const.
1705 * sparc-tdep.c (sparc_core_register_names)
1706 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1707 (sparc32_pseudo_register_names): Now const.
1708 (validate_tdesc_registers): Update.
1709 * rust-lang.c (rust_extensions): Now const.
1710 * p-lang.c (p_extensions): Now const.
1711 * objc-lang.c (objc_extensions): Now const.
1712 * nto-tdep.c (nto_thread_state_str): Now const.
1713 * moxie-tdep.c (moxie_register_names): Now const.
1714 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1715 Now const.
1716 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1717 (mips_linux_reg_names): Now const.
1718 (mips_gdbarch_init): Update.
1719 * microblaze-tdep.c (microblaze_register_names): Now const.
1720 * m68k-tdep.c (m68k_register_names): Now const.
1721 * m32r-tdep.c (m32r_register_names): Now const.
1722 * ia64-tdep.c (ia64_register_names): Now const.
1723 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1724 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1725 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1726 ymm_avx512_register_names, pkeys_register_names>: Now const.
1727 * i386-tdep.c (i386_register_names, i386_zmm_names)
1728 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1729 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1730 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1731 * f-lang.c (f_extensions): Now const.
1732 * d-lang.c (d_extensions): Now const.
1733 * csky-tdep.c (csky_register_names): Now const.
1734 * charset.c (default_charset_names, charset_enum): Now const.
1735 (_initialize_charset): Update.
1736 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1737 const.
1738 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1739 (bsd_uthread_solib_loaded): Update.
1740 (bsd_uthread_state): Now const.
1741 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1742 (amd64_ymm_avx512_names, amd64_ymmh_names)
1743 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1744 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1745 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1746 (amd64_dword_names): Now const.
1747 * agent.c (can_use_agent_enum): Now const.
1748 * ada-tasks.c (task_states, long_task_states): Now const.
1749 * ada-lang.c (known_runtime_file_name_patterns)
1750 (known_auxiliary_function_name_patterns, attribute_names)
1751 (standard_exc, ada_extensions): Now const.
1752
89806626
SM
17532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1754
1755 * bcache.h (struct bcache) <bcache>: Remove constructor.
1756 <m_hash_function, m_compare_function>: Remove.
1757 <~bcache>: Make virtual.
1758 <compare>: Remove static method, introduce virtual method.
1759 <default_hash>: Remove.
1760 <hash>: New virtual method.
1761 * bcache.c (bcache::expand_hash_table): Update.
1762 (bcache::insert): Update.
1763 (bcache::hash): New.
1764 (bcache::compare): Update comment and parameter names.
1765 * gdbtypes.c (types_deeply_equal): Update.
1766 * psymtab.h (struct psymbol_bcache): New struct.
1767 (class psymtab_storage) <psymtab_storage>: Make default.
1768 <psymbol_cache>: Change type to psymbol_bcache.
1769 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1770 (psymbol_hash): Change to...
1771 (psymbol_bcache::hash): ... this.
1772 (psymbol_compare): Change to...
1773 (psymbol_bcache::compare): ... this.
1774
677c92fe
SM
17752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1776
1777 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1778 checking for initial lwp.
1779
3eba3a01
TT
17802020-09-14 Tom Tromey <tromey@adacore.com>
1781
1782 * m68k-tdep.c (m68k_extract_return_value): Use
1783 pointer_result_regnum.
1784 (m68k_store_return_value): Likewise.
1785 (m68k_reg_struct_return_p): Handle vectors and arrays.
1786 (m68k_return_value): Handle arrays.
1787 (m68k_svr4_return_value): Fix single-element aggregate handling.
1788 Handle long double. Adjust for embedded ABI.
1789 (m68k_svr4_init_abi): Set pointer_result_regnum.
1790 (m68k_embedded_init_abi): New function.
1791 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1792 (m68k_osabi_sniffer): New function.
1793 (_initialize_m68k_tdep): Register osabi sniffer.
1794 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1795 member.
1796
33f4dd48
SM
17972020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1798
1799 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1800 with gdb::unique_xmalloc_ptr<char>.
1801
8400a90d
SM
18022020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1803
1804 * xml-support.h (xml_fetch_another): Change type to be a
1805 function_view.
1806 (xml_process_xincludes): Remove baton parameter.
1807 (xml_fetch_content_from_file): Change baton parameter to
1808 dirname.
1809 * xml-support.c (struct xinclude_parsing_data)
1810 <xinclude_parsing_data>: Remove baton parameter.
1811 <fetcher_baton>: Remove.
1812 (xinclude_start_include): Adjust.
1813 (xml_process_xincludes): Adjust.
1814 (xml_fetch_content_from_file): Replace baton parameter with
1815 dirname.
1816 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1817 (xml_init_syscalls_info): Use a lambda.
1818 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1819 (file_read_description_xml): Use a lambda.
1820 (fetch_available_features_from_target): Change baton parameter
1821 to target_ops.
1822 (target_read_description_xml): Use a lambda.
1823 (target_fetch_description_xml): Use a lambda.
1824 (string_read_description_xml): Update.
1825
04f5bab2
SM
18262020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1827
1828 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1829 uses with type::endianity_is_not_default.
1830
db558e34
SM
18312020-09-14 Simon Marchi <simon.marchi@efficios.com>
1832
1833 * gdbtypes.h (struct type) <endianity_is_not_default,
1834 set_endianity_is_not_default>: New methods.
1835 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1836 type::endianity_is_not_default, change all write call sites to
1837 use type::set_endianity_is_not_default.
1838
22c4c60c
SM
18392020-09-14 Simon Marchi <simon.marchi@efficios.com>
1840
1841 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1842 uses with type::is_fixed_instance.
1843
9cdd0d12
SM
18442020-09-14 Simon Marchi <simon.marchi@efficios.com>
1845
1846 * gdbtypes.h (struct type) <is_fixed_instance,
1847 set_is_fixed_instance>: New methods.
1848 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1849 write call sites to use type::set_is_fixed_instance.
1850
0becda7a
SM
18512020-09-14 Simon Marchi <simon.marchi@efficios.com>
1852
1853 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1854 uses with type::is_gnu_ifunc.
1855
03cc7249
SM
18562020-09-14 Simon Marchi <simon.marchi@efficios.com>
1857
1858 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1859 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1860 use type::set_is_gnu_ifunc.
1861
3f46044c
SM
18622020-09-14 Simon Marchi <simon.marchi@efficios.com>
1863
1864 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1865 uses with type::stub_is_supported.
1866
9baccff6
SM
18672020-09-14 Simon Marchi <simon.marchi@efficios.com>
1868
1869 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1870 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1871 use type::set_stub_is_supported.
1872
bd63c870
SM
18732020-09-14 Simon Marchi <simon.marchi@efficios.com>
1874
1875 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1876 uses with type::is_vector.
1877
2062087b
SM
18782020-09-14 Simon Marchi <simon.marchi@efficios.com>
1879
1880 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1881 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1882 use type::set_is_vector.
1883
a409645d
SM
18842020-09-14 Simon Marchi <simon.marchi@efficios.com>
1885
1886 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1887 uses with type::has_varargs.
1888
1d6286ed
SM
18892020-09-14 Simon Marchi <simon.marchi@efficios.com>
1890
1891 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1892 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1893 use type::set_has_varargs.
1894
7f9f399b
SM
18952020-09-14 Simon Marchi <simon.marchi@efficios.com>
1896
1897 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1898 uses with type::is_prototyped.
1899
27e69b7a
SM
19002020-09-14 Simon Marchi <simon.marchi@efficios.com>
1901
1902 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1903 New methods.
1904 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1905 call sites to use type::set_is_prototyped.
1906
d2183968
SM
19072020-09-14 Simon Marchi <simon.marchi@efficios.com>
1908
1909 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1910 uses with type::target_is_stub.
1911
8f53807e
SM
19122020-09-14 Simon Marchi <simon.marchi@efficios.com>
1913
1914 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1915 New methods.
1916 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1917 sites to use type::set_target_is_stub.
1918
e46d3488
SM
19192020-09-14 Simon Marchi <simon.marchi@efficios.com>
1920
1921 * gdbtypes.h (TYPE_STUB): Remove, replace all
1922 uses with type::is_stub.
1923
b4b73759
SM
19242020-09-14 Simon Marchi <simon.marchi@efficios.com>
1925
1926 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1927 (TYPE_STUB): Use type::is_stub, change all write call sites to
1928 use type::set_is_stub.
1929
20ce4123
SM
19302020-09-14 Simon Marchi <simon.marchi@efficios.com>
1931
1932 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1933 type::has_no_signedness.
1934
15152a54
SM
19352020-09-14 Simon Marchi <simon.marchi@efficios.com>
1936
1937 * gdbtypes.h (struct type) <has_no_signedness,
1938 set_has_no_signedness>: New methods.
1939 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1940 call sites to use type::set_has_no_signedness.
1941
c6d940a9
SM
19422020-09-14 Simon Marchi <simon.marchi@efficios.com>
1943
1944 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1945 type::is_unsigned.
1946
653223d3
SM
19472020-09-14 Simon Marchi <simon.marchi@efficios.com>
1948
1949 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1950 methods.
1951 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1952 sites to use type::set_is_unsigned.
1953
55ea94da 19542020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 1955 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 1956
e851246a
SM
1957 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1958 pointer and stack frame offset when unwinding.
55ea94da 1959
6791b117
PA
19602020-09-13 Pedro Alves <pedro@palves.net>
1961
1962 * NEWS: Document "-break-insert --qualified".
1963 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1964
77f2120b
PA
19652020-09-13 Pedro Alves <pedro@palves.net>
1966
1967 * linespec.c (classify_mtype, compare_msyms): Delete.
1968 (search_minsyms_for_name): Remove classification logic. Instead
1969 filter out trampoline symbols if we also found an external
1970 function of the same name.
1971
ed6a896c
JB
19722020-09-13 Joel Brobecker <brobecker@adacore.com>
1973
1974 * NEWS: Create a new section for the next release branch.
1975 Rename the section of the current branch, now that it has
1976 been cut.
1977
32aea73e
JB
19782020-09-13 Joel Brobecker <brobecker@adacore.com>
1979
1980 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1981 * version.in: Bump version to 11.0.50.DATE-git.
1982
8087c3fa
JB
19832020-09-12 Joel Brobecker <brobecker@adacore.com>
1984
1985 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1986
2a67f09d
FW
19872020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1988 Felix Willgerodt <Felix.Willgerodt@intel.com>
1989
1990 * gdbarch.sh: Added bfloat16 type.
1991 * gdbarch.c: Regenerated.
1992 * gdbarch.h: Regenerated.
1993 * gdbtypes.c (floatformats_bfloat16): New struct.
1994 (gdbtypes_post_init): Add builtin_bfloat16.
1995 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1996 (floatformats_bfloat16): New struct.
1997 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1998 (i386_ymm_type): Add field "v16_bfloat16"
1999 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2000 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2001 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2002 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2003 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2004 * features/i386/64bit-avx512.c: Regenerated.
2005 * features/i386/64bit-sse.xml: Add bfloat16 type.
2006 * features/i386/64bit-sse.c: Regenerated.
2007
1347d111
FW
20082020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2009
2010 * i386-tdep.c (i386_zmm_type): Fix field names.
2011 (i386_ymm_type): Fix field names.
2012
7a4e8e7d
TBA
20132020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2014
2015 * breakpoint.c: Fix typo in the help message of the
2016 "set breakpoint condition-evaluation" command.
2017
cf4ac4be
KR
20182020-09-10 Kamil Rytarowski <n54@gmx.com>
2019
2020 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2021 * (nbsd_nat_target::pid_to_exec_file)
2022 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2023 (nbsd_nat_target::post_startup_inferior)
2024 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2025 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2026 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2027 * (nbsd_thread_lister): Remove.
2028
f404573e
KR
20292020-09-10 Kamil Rytarowski <n54@gmx.com>
2030
2031 * fork-inferior.c (startup_inferior): Avoid double free.
2032
1ccb2c17
KR
20332020-09-10 Kamil Rytarowski <n54@gmx.com>
2034
2035 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2036 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2037
feedfcc7
KR
20382020-09-10 Kamil Rytarowski <n54@gmx.com>
2039
2040 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2041 * netbsd-nat.c: Include <sys/ptrace.h>.
2042 * (netbsd_nat::enable_proc_events): Add.
2043
c489f8c6
KR
20442020-09-10 Kamil Rytarowski <n54@gmx.com>
2045
2046 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2047 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2048 (netbsd_nat::for_each_thread): Add.
2049 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2050 "gdbsupport/common-debug.h".
2051 * (netbsd_nat::netbsd_thread_lister)
2052 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2053 (netbsd_nat::for_each_thread): Add.
2054
330662f6
KR
20552020-09-10 Kamil Rytarowski <n54@gmx.com>
2056
2057 * netbsd-nat.h: Include <unistd.h>.
2058 * (netbsd_nat::pid_to_exec_file): Add.
2059 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2060 * (netbsd_nat::pid_to_exec_file) Add.
2061
70b67307
KR
20622020-09-10 Kamil Rytarowski <n54@gmx.com>
2063
2064 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2065
99cf6da6
KR
20662020-09-10 Kamil Rytarowski <n54@gmx.com>
2067
2068 * netbsd-nat.h: New file.
2069 * netbsd-nat.c: Likewise.
2070
1b788fb6
TT
20712020-09-09 Tom Tromey <tromey@adacore.com>
2072
2073 * ada-lang.c (remove_extra_symbols): Do not increment when
2074 removing an element
2075
03b0a45f
TT
20762020-09-08 Tom Tromey <tromey@adacore.com>
2077
2078 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2079
3cae4447
TT
20802020-09-08 Tom Tromey <tromey@adacore.com>
2081
2082 PR win32/25302:
2083 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2084 (gdb_bfd_init_data): New function.
2085 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2086
7f08fd51
TBA
20872020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2088
2089 * infrun.c (fetch_inferior_event): Use
2090 `switch_to_target_no_thread` to switch the target.
2091
3e6ff933
TT
20922020-09-06 Tom Tromey <tom@tromey.com>
2093
2094 * symfile.h (dwarf2_free_objfile): Don't declare.
2095
e56798df
AKS
20962020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2097
2098 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2099 to match 16 byte real/complex type generated by Flang compiler.
2100
8f5c6526
TV
21012020-09-03 Tom de Vries <tdevries@suse.de>
2102
2103 PR breakpoint/26546
2104 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2105 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2106
c5065df0
SM
21072020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2108
2109 * maint.c (index_digits): New function.
2110 (struct maint_print_section_data): Remove.
2111 (print_bfd_section_info): Remove print_data parameter, add arg
2112 and index_digits.
2113 (print_objfile_section_info): Likewise.
2114 (print_bfd_section_info_maybe_relocated): Likewise (plus
2115 objfile).
2116 (maintenance_info_sections): Adjust calls.
2117
02c6f3f1
TT
21182020-09-02 Tom Tromey <tromey@adacore.com>
2119
2120 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2121 for null pointers.
2122 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2123
ef5e5b0b
SM
21242020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2125
2126 * bcache.h (struct bcache) <insert>: Change type of `added` to
2127 pointer to bool.
2128 * bcache.c (bcache::insert): Likewise.
2129 * gdbtypes.c (check_types_worklist): Adjust.
2130 * psymtab.c (add_psymbol_to_bcache): Adjust.
2131
973695d6
KB
21322020-08-31 Kevin Buettner <kevinb@redhat.com>
2133
2134 * corelow.c (unordered_set): Include.
2135 (class core_target): Add field 'm_core_unavailable_mappings'.
2136 (core_target::build_file_mappings): Print only one warning
2137 per inaccessible file. Add unavailable/broken mappings
2138 to m_core_unavailable_mappings.
2139 (core_target::xfer_partial): Call...
2140 (core_target::xfer_memory_via_mappings): New method.
2141
264fc0e2
SM
21422020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2143
2144 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2145 type to bool.
2146
2de01bdb
SM
21472020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2148
2149 * dwarf2/read.c (struct field_info): Fix indentation.
2150
f3bd50f1
SM
21512020-08-31 Simon Marchi <simon.marchi@efficios.com>
2152
2153 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2154 ordering in comment.
2155 * frame.c (frame_id_eq): Fix indentation.
2156
22b9b4b0
SL
21572020-08-31 Scott Linder <scott@scottlinder.com>
2158 Simon Marchi <simon.marchi@efficios.com>
2159
2160 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2161 inline frame ids in outer frame.
2162
84154d16
SM
21632020-08-31 Simon Marchi <simon.marchi@efficios.com>
2164
2165 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2166 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2167 (outer_frame_id): Use FID_STACK_OUTER instead of
2168 FID_STACK_INVALID.
2169 (frame_id_p): Don't check for outer_frame_id.
2170
8efaf6b3
SM
21712020-08-31 Simon Marchi <simon.marchi@efficios.com>
2172
2173 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2174 regnum/frame in value. Call allocate_value_lazy.
2175 * frame.c (frame_unwind_register_value): Use
2176 val_print_not_saved.
2177
fe1fe7ea
SM
21782020-08-31 Simon Marchi <simon.marchi@efficios.com>
2179
2180 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2181
f7c7700d
PA
21822020-08-29 Pedro Alves <pedro@palves.net>
2183
2184 * progspace.c (print_program_space): Use all_inferiors. Switch to
2185 the inferior before calling target_pid_to_str.
2186
e0814aae
TT
21872020-08-28 Tom Tromey <tom@tromey.com>
2188
2189 * xcoffread.c (xcoff_end_psymtab): Update comment.
2190 * dbxread.c (dbx_end_psymtab): Update comment.
2191
626d2320
TV
21922020-08-28 Tom de Vries <tdevries@suse.de>
2193
2194 PR breakpoint/26544
2195 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2196 event_location.
2197 (create_breakpoint): Same.
2198 (base_breakpoint_decode_location): Same.
2199 (bkpt_create_sals_from_location): Same.
2200 (bkpt_decode_location): Same.
2201 (bkpt_probe_create_sals_from_location): Same.
2202 (bkpt_probe_decode_location): Same.
2203 (tracepoint_create_sals_from_location): Same.
2204 (tracepoint_decode_location): Same.
2205 (tracepoint_probe_decode_location): Same.
2206 (strace_marker_create_sals_from_location): Same.
2207 (strace_marker_decode_location): Same.
2208 (create_sals_from_location_default): Same.
2209 (decode_location_default): Same.
2210 * breakpoint.h (struct breakpoint_ops): Same.
2211 (create_breakpoint): Same.
2212 * linespec.h (decode_line_full): Same.
2213 * linespec.c (decode_line_full): Same. Throw error if
2214 result.size () == 0.
2215
df631783
PA
22162020-08-27 Pedro Alves <pedro@palves.net>
2217
2218 PR gdb/26524
2219 * breakpoint.c (until_break_fsm) <location_breakpoint,
2220 caller_breakpoint>: Delete fields.
2221 <breakpoints>: New field.
2222 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2223 two individual breakpoints.
2224 (until_break_fsm::should_stop): Loop over breakpoints in the
2225 breakpoint vector.
2226 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2227 vector.
2228 (until_break_command): Handle location expanding into multiple
2229 sals.
2230
b2b38aa4
PA
22312020-08-27 Pedro Alves <pedro@palves.net>
2232
2233 PR gdb/26523
2234 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2235 bp_until breakpoints user-specified locations. Update intro
2236 comment.
2237
b886559f
SM
22382020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2239
2240 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2241 gdb_bfd_sections): New.
2242 * maint.c (print_bfd_section_info): Change param type to
2243 maint_print_section_data.
2244 (print_objfile_section_info): Likewise.
2245 (print_bfd_section_info_maybe_relocated): Likewise.
2246 (maintenance_info_sections): Use gdb_bfd_sections.
2247
4c6e63bf
SV
22482020-08-25 Shahab Vahedi <shahab@synopsys.com>
2249
2250 * MAINTAINERS: Add ARC target and maintainer.
2251
8d7f0635
AK
22522020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2253
2254 * configure.tgt: ARC support for GNU/Linux.
2255 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2256 * arc-linux-tdep.c: New file.
2257 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2258 * arc-tdep.c (arc_write_pc): Use it.
2259
fdd8731b
SV
22602020-08-25 Shahab Vahedi <shahab@synopsys.com>
2261
2262 * arc-tdep.c (arc_check_for_hardware_loop): New.
2263 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2264
22459524
SV
22652020-08-25 Shahab Vahedi <shahab@synopsys.com>
2266
2267 * arc-tdep.h: Include "gdbarch.h".
2268
995d3a19
SV
22692020-08-25 Shahab Vahedi <shahab@synopsys.com>
2270
2271 * arch/arc.h
2272 (arc_gdbarch_features): New class to stir the selection of target XML.
2273 (arc_create_target_description): Use FEATURES to choose XML target.
2274 (arc_lookup_target_description): Use arc_create_target_description
2275 to create _new_ target descriptions or return the already created
2276 ones if the FEATURES is the same.
2277 * arch/arc.c: Implementation of prototypes described above.
2278 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2279 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2280 * arc-tdep.c (*_feature_name): Make feature names consistent.
2281 (arc_register_feature): A new struct to hold information about
2282 registers of a particular target/feature.
2283 (arc_check_tdesc_feature): Check if XML provides registers in
2284 compliance with ARC_REGISTER_FEATURE structs.
2285 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2286 (determine_*_reg_feature_set): Which feature name to look for.
2287 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2288 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2289 to expected ISA enums to be used in arc_gdbarch_features structs.
2290 * features/Makefile (FEATURE_XMLFILES): Add new files.
2291 * gdb/features/arc/v1-aux.c: New file.
2292 * gdb/features/arc/v1-aux.xml: Likewise.
2293 * gdb/features/arc/v1-core.c: Likewise.
2294 * gdb/features/arc/v1-core.xml: Likewise.
2295 * gdb/features/arc/v2-aux.c: Likewise.
2296 * gdb/features/arc/v2-aux.xml: Likewise.
2297 * gdb/features/arc/v2-core.c: Likewise.
2298 * gdb/features/arc/v2-core.xml: Likewise.
2299 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2300
3945d2d7
GM
23012020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2302 Andrew Burgess <andrew.burgess@embecosm.com>
2303
2304 PR m2/26372
fc5d6901 2305 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2306 an assert. Remove single element array indexing pattern as the
2307 MULTI_SUBSCRIPT support will handle this case too.
2308
2677f2d3
SM
23092020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2310
2311 * value.h (valprint_check_validity): Move declaration from
2312 here...
2313 * valprint.h (valprint_check_validity): ... to here.
2314
c426fddb
SM
23152020-08-24 Simon Marchi <simon.marchi@efficios.com>
2316
2317 * debug.h: New file.
2318 * debug.c (debug_prefixed_vprintf): New function.
2319 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2320 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2321
1eb8556f
SM
23222020-08-24 Simon Marchi <simon.marchi@efficios.com>
2323
2324 * infrun.h (infrun_debug_printf_1): New function declaration.
2325 (infrun_debug_printf): New macro.
2326 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2327 throughout.
2328 (infrun_debug_printf): New function.
2329 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2330 (handle_jit_event): Likewise.
2331
b8fff44e
MW
23322020-08-21 Mark Wielaard <mark@klomp.org>
2333
2334 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2335
d19c3068
SM
23362020-08-22 Simon Marchi <simon.marchi@efficios.com>
2337
2338 * frame.c (enum class frame_id_status): New.
2339 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2340 (fprintf_frame): Update.
2341 (compute_frame_id): Set frame id status to "computing" on entry.
2342 Set it back to "not_computed" on failure and to "computed" on
2343 success.
2344 (get_frame_id): Assert the frame id is not being computed.
2345 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2346 (create_new_frame): Likewise.
2347 (frame_cleanup_after_sniffer): Update assert.
2348
b70e516e
SM
23492020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2350
2351 * regcache.c (pid_ptid_regcache_map): New type.
2352 (target_ptid_regcache_map): Remove.
2353 (target_pid_ptid_regcache_map): New type.
2354 (regcaches): Change type to target_pid_ptid_regcache_map.
2355 (get_thread_arch_aspace_regcache): Update.
2356 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2357 case.
2358 (regcaches_size): Update.
2359 (regcache_count): Update.
2360 (registers_changed_ptid_target_pid_test): New.
2361 (_initialize_regcache): Register new test.
2362
cdd9148a
SM
23632020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2364
2365 * regcache.c (regcache_count): New.
2366 (struct regcache_test_data): New.
2367 (regcache_test_data_up): New.
2368 (populate_regcaches_for_test): New.
2369 (regcaches_test): Remove.
2370 (get_thread_arch_aspace_regcache_test): New.
2371 (registers_changed_ptid_all_test): New.
2372 (registers_changed_ptid_target_test): New.
2373 (registers_changed_ptid_target_ptid_test): New.
2374 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2375 (_initialize_regcache): Register new tests.
2376
dd125343
SM
23772020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2378
2379 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2380 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2381 gdbarch and aspace parameter. Use current inferior's aspace.
2382 Validate regcache's arch value.
2383 (regcaches_test): Update.
2384
3ee93972
SM
23852020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2386
2387 * regcache.c (regcaches_test): Call registers_changed.
2388
33bf4c5c
TBA
23892020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2390
2391 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2392
c2fd7fae
AKS
23932020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2394
2395 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2396 to find the end of prologue for flang compiled binaries.
2397 * arm-tdep.c (arm_skip_prologue): Likewise.
2398 * i386-tdep.c (i386_skip_prologue): Likewise.
2399 * producer.c (producer_is_llvm): New function.
2400 (producer_parsing_tests): Added new tests for clang/flang.
2401 * producer.h (producer_is_llvm): New declaration.
2402
9327494e
SM
24032020-08-18 Simon Marchi <simon.marchi@efficios.com>
2404
2405 * linux-nat.c (linux_nat_debug_printf): New function.
2406 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2407
d138725a
AM
24082020-08-18 Aaron Merey <amerey@redhat.com>
2409
2410 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2411 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2412 (CLIBS): Add DEBUGINFOD_LIBS.
2413
f9b11e6b
ST
24142020-08-17 Sergei Trofimovich <siarheit@google.com>
2415
2416 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2417 'gdbarch_num_regs'.
2418
3ae7ab99
TT
24192020-08-17 Tom Tromey <tromey@adacore.com>
2420
2421 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2422 ada_get_decoded_value returns NULL.
2423
b017825f
TT
24242020-08-17 Tom Tromey <tromey@adacore.com>
2425
2426 * python/py-inferior.c (infpy_search_memory): Use
2427 gdb_py_object_from_ulongest.
2428 * python/py-infevents.c (create_inferior_call_event_object)
2429 (create_memory_changed_event_object): Use
2430 gdb_py_object_from_ulongest.
2431 * python/py-linetable.c (ltpy_entry_get_pc): Use
2432 gdb_py_object_from_ulongest.
2433
7635cf79
SM
24342020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2435
2436 * loc.c (class symbol_needs_eval_context): Fix indentation.
2437
f54be24b
SM
24382020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2439
2440 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2441 bool.
2442
53d5a2a5
TV
24432020-08-17 Tom de Vries <tdevries@suse.de>
2444
2445 PR gdb/26393
2446 * gdbtypes.c (dump_dynamic_prop): New function.
2447 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2448
547ce8f0
TV
24492020-08-15 Tom de Vries <tdevries@suse.de>
2450
2451 PR backtrace/26390
2452 * stack.c (print_frame_args): Temporarily set the selected
2453 frame to FRAME while printing the frame's arguments.
2454
6ea815e7
PFC
24552020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2456
2457 PR breakpoints/26385
2458 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2459 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2460
6e562fa3
PFC
24612020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2462
2463 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2464 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2465 and >= to check return value instead of == -1 and != -1.
2466
d369b608
SM
24672020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2468
2469 * utils.h (class gdb_argv) <as_array_view>: New method.
2470 * utils.c (gdb_argv_as_array_view_test): New.
2471 (_initialize_utils): Register selftest.
2472 * maint.c (maintenance_selftest): Use the new method.
2473
b31488a3
KR
24742020-08-13 Kamil Rytarowski <n54@gmx.com>
2475
2476 * target.h (supports_dumpcore, dumpcore): New
2477 function declarations.
2478 * target.c (supports_dumpcore, dumpcore): New
2479 functions.
2480 * target-delegates.c: Rebuild.
2481 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2482 and target_dumpcore ().
2483
002a3166
AM
24842020-08-13 Aaron Merey <amerey@redhat.com>
2485
2486 * debuginfod-support.c: Replace global variables with user_data.
2487
ece5bc8a
SM
24882020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2489
2490 * maint.c (maintenance_selftest): Split args and pass array_view
2491 to run_tests.
2492
6d8a0a5e
LM
24932020-08-12 Luis Machado <luis.machado@linaro.org>
2494
2495 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2496 type's length.
2497 Use %s and pulongest to print the length.
2498
7cf663a9
PA
24992020-08-12 Pedro Alves <palves@redhat.com>
2500
2501 * NEWS: Move "Multi-target debugging support" item to the
2502 "Changes since GDB 9" section.
2503
27c7b875
PA
25042020-08-12 Pedro Alves <palves@redhat.com>
2505
2506 PR gdb/26336
2507 * progspace.c (program_space::remove_objfile): Invalidate the
2508 frame cache.
2509
1796a2a1
TV
25102020-08-11 Tom de Vries <tdevries@suse.de>
2511
2512 * MAINTAINERS: Mark ms1 as deleted.
2513
f8e3fe0d
LM
25142020-08-10 Luis Machado <luis.machado@linaro.org>
2515
2516 PR gdb/26310
2517
2518 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2519 act accordingly.
2520 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2521 movz/str/stur/stp skipping behavior.
2522
cc308722
LM
25232020-08-10 Luis Machado <luis.machado@linaro.org>
2524
2525 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2526 struct user_sve_header instead of struct sve_context.
2527
041d9819
SM
25282020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2529
2530 * read.h (dwarf2_fetch_die_loc_sect_off,
2531 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2532 `void *` parameter with function_view.
2533 * read.c (dwarf2_fetch_die_loc_sect_off,
2534 dwarf2_fetch_die_loc_cu_off): Likewise.
2535 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2536 (per_cu_dwarf_call): Adjust.
2537 (get_frame_address_in_block_wrapper): Remove.
2538 (indirect_synthetic_pointer): Adjust.
2539 (get_ax_pc): Remove.
2540 (dwarf2_compile_expr_to_ax): Adjust.
2541
38f8aa06
TV
25422020-08-08 Tom de Vries <tdevries@suse.de>
2543
2544 PR build/26344
2545 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2546 constructor.
2547 * regcache.c (get_thread_arch_aspace_regcache): Same.
2548
a52b3ae2
TT
25492020-08-07 Tom Tromey <tromey@adacore.com>
2550
2551 * ravenscar-thread.c
2552 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2553 New method.
2554 (ravenscar_thread_target::wait): Check
2555 runtime_initialized.
2556 (ravenscar_thread_target::prepare_to_store)
2557 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2558 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2559 (ravenscar_thread_target::stopped_by_watchpoint)
2560 (ravenscar_thread_target::stopped_data_address)
2561 (ravenscar_thread_target::core_of_thread): Use
2562 scoped_restore_current_thread and
2563 set_base_thread_from_ravenscar_task.
2564
0e29517d
TT
25652020-08-07 Tom Tromey <tromey@adacore.com>
2566
2567 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2568
592f9bd7
TT
25692020-08-07 Tom Tromey <tromey@adacore.com>
2570
2571 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2572 update_inferior_ptid before update_thread_list.
2573 (temporarily_change_regcache_ptid): New class.
2574 (ravenscar_thread_target::fetch_registers)
2575 (ravenscar_thread_target::store_registers)
2576 (ravenscar_thread_target::prepare_to_store): Use base thread when
2577 forwarding operation.
2578
39e2018a
TT
25792020-08-07 Tom Tromey <tromey@adacore.com>
2580
2581 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2582 "is_pid" case.
2583
2080266b
TT
25842020-08-07 Tom Tromey <tromey@adacore.com>
2585
2586 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2587 New methods.
2588 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2589 first.
2590 (ravenscar_thread_target::add_thread): Rename from
2591 ravenscar_add_thread.
2592 (ravenscar_thread_target::update_thread_list): Use a lambda.
2593 (ravenscar_thread_target::xfer_partial): New method.
2594
78c02f21
TT
25952020-08-07 Tom Tromey <tromey@adacore.com>
2596
2597 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2598 gdb::function_view.
2599 (iterate_over_live_ada_tasks): Change type of argument.
2600 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2601 of argument.
2602
d5d833af
TT
26032020-08-07 Tom Tromey <tromey@adacore.com>
2604
2605 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2606 Remove.
2607 (ravenscar_thread_target::extra_thread_info): Remove.
2608 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2609 defer to target beneath for non-Ravenscar threads.
2610
a8ac85bb
TT
26112020-08-07 Tom Tromey <tromey@adacore.com>
2612
2613 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2614 get_base_thread_from_ravenscar_task>: Now methods.
2615 <m_cpu_map>: New member.
2616 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2617 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2618 (ravenscar_thread_target::task_is_currently_active): Update.
2619 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2620 Now a method.
2621 (ravenscar_thread_target::add_active_thread): Put initial thread
2622 into the m_cpu_map.
2623
550ab58d
TT
26242020-08-07 Tom Tromey <tromey@adacore.com>
2625
2626 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2627 event_ptid.
2628
e9546579
TT
26292020-08-07 Tom Tromey <tromey@adacore.com>
2630
2631 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2632 runtime_initialized.
2633
3d4470e5
TT
26342020-08-07 Tom Tromey <tromey@adacore.com>
2635
2636 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2637 add_active_thread.
2638 (ravenscar_thread_target::add_active_thread): Now public.
2639 (ravenscar_inferior_created): Call add_active_thread after pushing
2640 the target.
2641
888bdb2b
SM
26422020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2643
2644 * regcache.c (ptid_regcache_map): New type.
2645 (target_ptid_regcache_map): New type.
2646 (regcaches): Change type to target_ptid_regcache_map.
2647 (get_thread_arch_aspace_regcache): Update to regcaches' new
2648 type.
2649 (regcache_thread_ptid_changed): Likewise.
2650 (registers_changed_ptid): Likewise.
2651 (regcaches_size): Likewise.
2652 (regcaches_test): Update.
2653 (regcache_thread_ptid_changed): Update.
2654 * regcache.h (regcache_up): New type.
2655 * gdbsupport/ptid.h (hash_ptid): New struct.
2656
b161a60d
SM
26572020-08-07 Simon Marchi <simon.marchi@efficios.com>
2658
2659 * observable.h (thread_ptid_changed): Add parameter
2660 `process_stratum_target *`.
2661 * infrun.c (infrun_thread_ptid_changed): Add parameter
2662 `process_stratum_target *` and use it.
2663 (selftests): New namespace.
2664 (infrun_thread_ptid_changed): New function.
2665 (_initialize_infrun): Register selftest.
2666 * regcache.c (regcache_thread_ptid_changed): Add parameter
2667 `process_stratum_target *` and use it.
2668 (regcache_thread_ptid_changed): New function.
2669 (_initialize_regcache): Register selftest.
2670 * thread.c (thread_change_ptid): Pass target to
2671 thread_ptid_changed observable.
2672
d2854d8d
CT
26732020-08-06 Caroline Tice <cmtice@google.com>
2674
fe4c3d43
SM
2675 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2676 (struct dwp_sections): Update field comments. Add loclists and
2677 rnglists fields.
2678 (struct virtual_v2_dwo_sections): Rename struct to
2679 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2680 size & offset fields for loclists and rnglists.
2681 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2682 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2683 skipping dummy type units.
2684 (create_dwp_hash_table): Update the large comment above the function to
2685 discuss Version 5 DWP files as well, with references. Update all the
2686 version checks in the function to check for version 5 as well. Add new
2687 section at the end to create dwp hash table for version 5.
2688 (create_dwp_v2_section): Rename function to
2689 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2690 Add V5 to error message text.
2691 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2692 into calls to create_dwp_v2_or_v5_section.
2693 (create_dwo_unit_in_dwp_v5): New function.
2694 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2695 check for version2; add else clause to handle version 5.
2696 (open_and_init_dwo_file): Add code to check dwarf version & only call
2697 create_debug_types_hash_table (with sections.types) if version is not 5;
2698 else call create_debug_type_hash_table, with sections.info.
2699 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2700 version 5.
2701 (dwarf2_locate_v5_dwp_sections): New function.
2702 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2703 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2704
159ed7d9
SM
27052020-08-06 Simon Marchi <simon.marchi@efficios.com>
2706
2707 * regcache.h (class regcache): Remove friend
2708 registers_changed_ptid.
2709 <regcache_thread_ptid_changed>: Remove.
2710 <regcaches>: Remove.
2711 * regcache.c (regcache::regcaches): Rename to...
2712 (regcaches): ... this. Make static.
2713 (get_thread_arch_aspace_regcache): Update.
2714 (regcache::regcache_thread_ptid_changed): Rename to...
2715 (regcache_thread_ptid_changed): ... this. Update.
2716 (class regcache_access): Remove.
2717 (regcaches_test): Update.
2718 (_initialize_regcache): Update.
2719 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2720 <forward_list>.
2721
174981ae
SM
27222020-08-06 Simon Marchi <simon.marchi@efficios.com>
2723
2724 * regcache.h (class regcache) <current_regcache>: Rename to...
2725 <regcaches>: ... this. Move doc here.
2726 * regcache.c (regcache::current_regcache) Rename to...
2727 (regcache::regcaches): ... this. Move doc to header.
2728 (get_thread_arch_aspace_regcache): Update.
2729 (regcache::regcache_thread_ptid_changed): Update.
2730 (registers_changed_ptid): Update.
2731 (class regcache_access) <current_regcache_size>: Rename to...
2732 <regcaches_size>: ... this.
2733 (current_regcache_test): Rename to...
2734 (regcaches_test): ... this.
2735 (_initialize_regcache): Update.
2736
ed908db6
VC
27372020-08-06 Victor Collod <vcollod@nvidia.com>
2738
2739 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2740
b5582ab7
KB
27412020-08-05 Kevin Buettner <kevinb@redhat.com>
2742
2743 * corelow.c (core_target::build_file_mappings): Don't output
2744 null pathname in warning.
2745
ea946b86
SM
27462020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2747
2748 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2749 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2750 gdb.dwarf2/dw2-single-line-discriminators.exp,
2751 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2752
57d02173
TT
27532020-08-05 Tom Tromey <tromey@adacore.com>
2754
2755 PR rust/26197:
2756 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2757 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2758 Fix off-by-one and type size errors in ordinary case.
2759
5555c86d
TV
27602020-08-05 Tom de Vries <tdevries@suse.de>
2761
2762 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2763 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2764
97916bfe
SM
27652020-08-04 Simon Marchi <simon.marchi@efficios.com>
2766
2767 * frame.h (frame_id_p): Return bool.
2768 (frame_id_artificial_p): Return bool.
2769 (frame_id_eq): Return bool.
2770 (has_stack_frames): Return bool.
2771 (get_selected_frame): Fix typo in comment.
2772 (get_frame_pc_if_available): Return bool.
2773 (get_frame_address_in_block_if_available): Return bool.
2774 (get_frame_func_if_available): Return bool.
2775 (read_frame_register_unsigned): Return bool.
2776 (get_frame_register_bytes): Return bool.
2777 (safe_frame_unwind_memory): Return bool.
2778 (deprecated_frame_register_read): Return bool.
2779 (frame_unwinder_is): Return bool.
2780 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2781 bool.
2782 <this_id::p>: Likewise.
2783 <prev_p>: Likewise.
2784 (frame_stash_add): Return bool.
2785 (get_frame_id): Use bool.
2786 (frame_id_build_special) Use bool.
2787 (frame_id_build_unavailable_stack): Use bool.
2788 (frame_id_build): Use bool.
2789 (frame_id_p): Return bool, use true/false instead of 1/0.
2790 (frame_id_artificial_p): Likewise.
2791 (frame_id_eq): Likewise.
2792 (frame_id_inner): Likewise.
2793 (get_frame_func_if_available): Likewise.
2794 (read_frame_register_unsigned): Likewise.
2795 (deprecated_frame_register_read): Likewise.
2796 (get_frame_register_bytes): Likewise.
2797 (has_stack_frames): Likewise.
2798 (inside_main_func): Likewise.
2799 (inside_entry_func): Likewise.
2800 (get_frame_pc_if_available): Likewise.
2801 (get_frame_address_in_block_if_available): Likewise.
2802 (frame_unwinder_is): Likewise.
2803 (safe_frame_unwind_memory): Likewise.
2804 (frame_unwind_arch): Likewise.
2805
fedfee88
SM
28062020-08-04 Simon Marchi <simon.marchi@efficios.com>
2807
2808 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2809 type to cached_copy_status.
2810 (fprintf_frame): Adjust.
2811 (get_frame_func_if_available): Adjust.
2812 (frame_cleanup_after_sniffer): Adjust.
2813
6cfa9b59
MW
28142020-08-04 Mark Wielaard <mark@klomp.org>
2815
2816 * MAINTAINERS (Write After Approval): Update email address.
2817
66d6346b
SM
28182020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2819
2820 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2821 dynamic_prop::const_val.
2822
8a6d5e35
SM
28232020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2824
2825 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2826 dynamic_prop::kind.
2827
51d6067d
SM
28282020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2829
2830 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2831
b26e2ae7
JM
28322020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2833
2834 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2835
39791af2
JM
28362020-08-04 Weimin Pan <weimin.pan@oracle.com>
2837 Jose E. Marchesi <jose.marchesi@oracle.com>
2838
2839 * configure.tgt: Add entry for bpf-*-*.
2840 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2841 (ALLDEPFILES): Add bpf-tdep.c.
2842 * bpf-tdep.c: New file.
2843 * MAINTAINERS: Add bpf target and maintainer.
2844 * NEWS: Mention the support for the new target.
2845
521894aa
TV
28462020-08-04 Tom de Vries <tdevries@suse.de>
2847
2848 PR symtab/23270
2849 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2850 Error.
2851
5d6356e9
JB
28522020-08-03 John Baldwin <jhb@FreeBSD.org>
2853
2854 * syscalls/freebsd.xml: Regenerate.
2855
0cf82b81
JB
28562020-08-03 John Baldwin <jhb@FreeBSD.org>
2857
2858 * syscalls/update-freebsd.sh: Fix usage and year range.
2859
8f34b746
TV
28602020-08-03 Tom de Vries <tdevries@suse.de>
2861
2862 PR symtab/26333
2863 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2864 DW_LNE_lo_user/DW_LNE_hi_user range.
2865
5e500d33
SM
28662020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2867
2868 PR ada/26318
2869 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2870 kind.
2871
78319c15
TBA
28722020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2873
2874 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2875
4c55e970
TBA
28762020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2877
2878 * breakpoint.c (set_breakpoint_condition): Update the condition
2879 expressions after checking that the input condition string parses
2880 successfully and does not contain junk at the end.
2881
1e620590
TBA
28822020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2883
2884 * breakpoint.c (set_breakpoint_condition): Update the
2885 condition string after parsing the new condition successfully.
2886
c8693053
RO
28872020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2888
2889 * proc-api.c (_STRUCTURED_PROC): Don't define.
2890 * proc-events.c: Likewise.
2891 * proc-flags.c: Likewise.
2892 * proc-why.c: Likewise.
2893 * procfs.c: Likewise.
2894
2895 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2896 * configure, config.in: Regenerate.
2897
5a99adb8
TV
28982020-07-30 Tom de Vries <tdevries@suse.de>
2899
2900 PR build/26320
2901 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2902 m_red/m_green/m_blue in a union.
2903
8ba83e91
TV
29042020-07-29 Tom de Vries <tdevries@suse.de>
2905
2906 PR tdep/26280
2907 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2908
f75a0693
AB
29092020-07-28 Tom Tromey <tromey@adacore.com>
2910
2911 PR symtab/26270:
2912 * symtab.h (find_pc_partial_function_sym): Declare.
2913 * cli/cli-cmds.c (disassemble_command): Use
2914 find_pc_partial_function_sym. Check asm_demangle.
2915 * blockframe.c (cache_pc_function_sym): New global.
2916 (cache_pc_function_name): Remove.
2917 (clear_pc_function_cache): Update.
2918 (find_pc_partial_function_sym): New function, from
2919 find_pc_partial_function.
2920 (find_pc_partial_function): Rewrite using
2921 find_pc_partial_function_sym.
2922
16f3242c
TT
29232020-07-28 Tom Tromey <tromey@adacore.com>
2924
2925 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2926 help. Add usage.
2927
4888741a
TT
29282020-07-28 Tom Tromey <tromey@adacore.com>
2929
2930 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2931 <DW_OP_GNU_variable_value>: Cast to address type.
2932
4d46f402
KR
29332020-07-28 Kamil Rytarowski <n54@gmx.com>
2934
2935 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2936 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2937 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2938 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2939 (nbsd_get_siginfo_type): New.
2940 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2941 (_initialize_nbsd_tdep): New.
2942
d70f978b
L
29432020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2944
2945 PR binutils/26301
2946 * configure: Regenerated.
2947
377170fa
L
29482020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2949
2950 PR binutils/26301
2951 * configure: Regenerated.
2952
43d5901d
AB
29532020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2954
2955 * python/py-frame.c: Remove 'user-regs.h' include.
2956 (frapy_read_register): Rewrite to make use of
2957 gdbpy_parse_register_id.
2958 * python/py-registers.c (gdbpy_parse_register_id): New function,
2959 moved here from python/py-unwind.c. Updated the return type, and
2960 also accepts register descriptor objects.
2961 * python/py-unwind.c: Remove 'user-regs.h' include.
2962 (pyuw_parse_register_id): Moved to python/py-registers.c.
2963 (unwind_infopy_add_saved_register): Update to use
2964 gdbpy_parse_register_id.
2965 (pending_framepy_read_register): Likewise.
2966 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2967
14fa8fb3
AB
29682020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2969
2970 * python/py-registers.c: Add 'user-regs.h' include.
2971 (register_descriptor_iter_find): New function.
2972 (register_descriptor_iterator_object_methods): New static global
2973 methods array.
2974 (register_descriptor_iterator_object_type): Add pointer to methods
2975 array.
2976
ddce1758
JB
29772020-07-27 John Baldwin <jhb@FreeBSD.org>
2978
2979 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2980 for all architectures on FreeBSD 11.3 and later.
2981
a4089f52
TT
29822020-07-27 Tom Tromey <tromey@adacore.com>
2983
2984 * gcore.h (load_corefile): Don't declare.
2985
95420d30
TV
29862020-07-27 Tom de Vries <tdevries@suse.de>
2987
2988 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2989 * config.in: Regenerate.
2990 * configure: Regenerate.
2991
05a6b8c2
EZ
29922020-07-26 Eli Zaretskii <eliz@gnu.org>
2993
2994 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2995 ws2tcpip.h. When checking whether socklen_t type is defined, use
2996 ws2tcpip.h if it is available and sys/socket.h isn't.
2997 * configure: Regenerate.
2998 * config.in: Regenerate.
2999
e79eb02f
AB
30002020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3001
3002 PR fortran/23051
3003 PR fortran/26139
3004 * valops.c (value_ind): Pass address to
3005 readjust_indirect_value_type.
3006 * value.c (readjust_indirect_value_type): Make parameter
3007 non-const, and add extra address parameter. Resolve original type
3008 before using it.
3009 * value.h (readjust_indirect_value_type): Update function
3010 signature and comment.
3011
876518dd
TV
30122020-07-25 Tom de Vries <tdevries@suse.de>
3013
3014 PR symtab/26243
3015 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3016 entries.
3017
f6720b1c
AM
30182020-07-24 Aaron Merey <amerey@redhat.com>
3019
3020 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3021 * configure: Rebuild.
3022
513487e1
KB
30232020-07-23 Kevin Buettner <kevinb@redhat.com>
3024
3025 PR corefiles/26294
3026 * corelow.c (_initialize_corelow): Add period to help text
3027 for "maintenance print core-file-backed-mappings".
3028
e7bc9db8
PA
30292020-07-23 Pedro Alves <pedro@palves.net>
3030
3031 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3032 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3033 meanwhile.
3034 * frame.c (frame_cache_generation, get_frame_cache_generation):
3035 New.
3036 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3037 (get_prev_frame_if_no_cycle): On exception, don't touch
3038 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3039 * frame.h (get_frame_cache_generation): Declare.
3040
90fcc466
TV
30412020-07-23 Tom de Vries <tdevries@suse.de>
3042
3043 PR tui/26282
3044 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3045 New default constructor.
3046
78344df7
AB
30472020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3048
3049 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3050 exclude non-statement entries.
3051
b089853a
KB
30522020-07-22 Kevin Buettner <kevinb@redhat.com>
3053
3054 * NEWS (New commands): Mention new command
3055 "maintenance print core-file-backed-mappings".
3056
09c2f5d4
KB
30572020-07-22 Kevin Buettner <kevinb@redhat.com>
3058
3059 * corelow.c (gdbcmd.h): Include.
3060 (core_target::info_proc_mappings): New method.
3061 (get_current_core_target): New function.
3062 (maintenance_print_core_file_backed_mappings): New function.
3063 (_initialize_corelow): Add core-file-backed-mappings to
3064 "maint print" commands.
3065
9c5ec5c2 30662020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3067
9c5ec5c2
KB
3068 * linux-tdep.c (dump_note_entry_p): New function.
3069 (linux_dump_mapping_p_ftype): New typedef.
3070 (linux_find_memory_regions_full): Add new parameter,
3071 should_dump_mapping_p.
3072 (linux_find_memory_regions): Adjust call to
3073 linux_find_memory_regions_full.
3074 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3075 call to linux_find_memory_regions_full.
3076
db082f59
KB
30772020-07-22 Kevin Buettner <kevinb@redhat.com>
3078
3079 * corelow.c (solist.h, unordered_map): Include.
3080 (class core_target): Add field m_core_file_mappings and
3081 method build_file_mappings.
3082 (core_target::core_target): Call build_file_mappings.
3083 (core_target::~core_target): Free memory associated with
3084 m_core_file_mappings.
3085 (core_target::build_file_mappings): New method.
3086 (core_target::xfer_partial): Use m_core_file_mappings
3087 for memory transfers.
3088 * linux-tdep.c (linux_read_core_file_mappings): New
3089 function.
3090 (linux_core_info_proc_mappings): Rewrite to use
3091 linux_read_core_file_mappings.
3092 (linux_init_abi): Register linux_read_core_file_mappings.
3093
7e183d27
KB
30942020-07-22 Kevin Buettner <kevinb@redhat.com>
3095
3096 * arch-utils.c (default_read_core_file_mappings): New function.
3097 * arch-utils.c (default_read_core_file_mappings): Declare.
3098 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3099 * gdbarch.h, gdbarch.c: Regenerate.
3100
2735d421
KB
31012020-07-22 Kevin Buettner <kevinb@redhat.com>
3102
3103 PR corefiles/25631
3104 * corelow.c (core_target:xfer_partial): Revise
3105 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3106 case after first checking the stratum beneath the core
3107 target.
3108 (has_all_memory): Return true.
3109 * target.c (raw_memory_xfer_partial): Revise comment
3110 regarding use of has_all_memory.
3111
e56cb451
KB
31122020-07-22 Kevin Buettner <kevinb@redhat.com>
3113
3114 * exec.h (section_table_xfer_memory): Revise declaration,
3115 replacing section name parameter with an optional callback
3116 predicate.
3117 * exec.c (section_table_xfer_memory): Likewise.
3118 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3119 of section_table_xfer_memory.
3120
32fa152e
TT
31212020-07-22 Tom Tromey <tromey@adacore.com>
3122
3123 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3124 lookup_symbol_search_name.
3125
a67a1c41
AB
31262020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3127
3128 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3129 redundant local variable.
3130 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3131 reference, not pointer, update code accordingly.
3132
a7b4ff4f
SM
31332020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3134 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3135
3136 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3137 * jit.c (jit_breakpoint_re_set_internal): Use the
3138 `skip_jit_symbol_lookup` field.
3139
2340e834
SM
31402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3141 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3142
3143 * jit.c (jit_read_descriptor): Define the descriptor address once,
3144 use twice.
3145 (jit_breakpoint_deleted): Move the declaration of the loop variable
3146 `iter` into the loop header.
3147 (jit_breakpoint_re_set_internal): Move the declaration of the local
3148 variable `objf_data` to the first point of definition.
3149 (jit_event_handler): Move the declaration of local variables
3150 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3151 Rename `objf` to `jited`.
3152
c1072906
SM
31532020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3154
3155 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3156 Remove.
3157 * jit.c (get_jiter_objfile_data): Update.
3158
c8474dc3
TBA
31592020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3160 Simon Marchi <simon.marchi@polymtl.ca>
3161
3162 * jit.c (struct jit_program_space_data): Remove.
3163 (jit_program_space_key): Remove.
3164 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3165 stuff.
3166 (get_jit_program_space_data): Remove.
3167 (jit_breakpoint_deleted): Iterate on all of the program space's
3168 objfiles.
3169 (jit_inferior_init): Likewise.
3170 (jit_breakpoint_re_set_internal): Likewise. Also change return
3171 type to void.
3172 (jit_breakpoint_re_set): Pass current_program_space to
3173 jit_breakpoint_re_set_internal.
3174
77208eb7
SM
31752020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3176
3177 * jit.h (struct jiter_objfile_data) <cached_code_address,
3178 jit_breakpoint>: Move to here from ...
3179 * jit.c (jit_program_space_data): ... here.
3180 (jiter_objfile_data::~jiter_objfile_data): Update.
3181 (jit_breakpoint_deleted): Update.
3182 (jit_breakpoint_re_set_internal): Update.
3183
8c1c720f
SM
31842020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3185
3186 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3187 checks.
3188 (jit_read_descriptor): Remove NULL check.
3189 (jit_event_handler): Add an assertion.
3190
0e74a041
SM
31912020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3192
3193 * jit.h (struct jit_objfile_data): Split into...
3194 (struct jiter_objfile_data): ... this ...
3195 (struct jited_objfile_data): ... and this.
3196 * objfiles.h (struct objfile) <jit_data>: Remove.
3197 <jiter_data, jited_data>: New fields.
3198 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3199 (jiter_objfile_data::~jiter_objfile_data): ... this.
3200 (get_jit_objfile_data): Rename to ...
3201 (get_jiter_objfile_data): ... this.
3202 (add_objfile_entry): Update.
3203 (jit_read_descriptor): Use get_jiter_objfile_data.
3204 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3205 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3206 (jit_inferior_exit_hook): Use objfile's jited_data field.
3207
238b5c9f
SM
32082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3209
3210 * jit.h: Forward-declare `struct minimal_symbol`.
3211 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3212 constructor, destructor, and an objfile* field.
3213 * jit.c (jit_objfile_data): Remove.
3214 (struct jit_objfile_data): Migrate from here to jit.h.
3215 (jit_objfile_data::~jit_objfile_data): New destructor
3216 implementation with code moved from free_objfile_data.
3217 (free_objfile_data): Delete.
3218 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3219 (jit_find_objf_with_entry_addr): Ditto.
3220 (jit_inferior_exit_hook): Ditto.
3221 (_initialize_jit): Remove the call to
3222 register_objfile_data_with_cleanup.
3223 * objfiles.h (struct objfile) <jit_data>: New field.
3224
fe053b9e
TBA
32252020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3226
3227 * jit.h: Forward-declare `struct objfile`.
3228 (jit_event_handler): Add a second parameter, the JITer objfile.
3229 * jit.c (jit_read_descriptor): Change the signature to take the
3230 JITer objfile as an argument instead of the jit_program_space_data.
3231 (jit_inferior_init): Update the call to jit_read_descriptor.
3232 (jit_event_handler): Use the new JITer objfile argument when calling
3233 jit_read_descriptor.
3234 * breakpoint.c (handle_jit_event): Update the call to
3235 jit_event_handler to pass the JITer objfile.
3236
4cec0c66
JB
32372020-07-21 John Baldwin <jhb@FreeBSD.org>
3238
3239 * gdbarch.c: Regenerate.
3240 * gdbarch.h: Regenerate.
3241 * gdbarch.sh (handle_segmentation_fault): Remove method.
3242 * infrun.c (handle_segmentation_fault): Remove.
3243 (print_signal_received_reason): Remove call to
3244 handle_segmentation_fault.
3245
0e42f66a
JB
32462020-07-21 John Baldwin <jhb@FreeBSD.org>
3247
3248 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3249 Rename to sparc64_linux_report_signal_info and add siggnal
3250 argument.
3251 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3252 instead of sparc64_linux_handle_segmentation_fault.
3253
77bdfeb2
JB
32542020-07-21 John Baldwin <jhb@FreeBSD.org>
3255
3256 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3257 i386_linux_report_signal_info instead of
3258 i386_linux_handle_segmentation_fault.
3259 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3260 to i386_linux_report_signal_info and add siggnal argument.
3261 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3262 of i386_linux_handle_segmentation_fault.
3263 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3264 to i386_linux_report_signal_info and add siggnal argument.
3265
ad97bfc5
JB
32662020-07-21 John Baldwin <jhb@FreeBSD.org>
3267
3268 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3269 hook if present.
3270
272bb05c
JB
32712020-07-21 John Baldwin <jhb@FreeBSD.org>
3272
3273 * gdbarch.c: Regenerate.
3274 * gdbarch.h: Regenerate.
3275 * gdbarch.sh (report_signal_info): New method.
3276 * infrun.c (print_signal_received_reason): Invoke gdbarch
3277 report_signal_info hook if present.
3278
baf8791e
AB
32792020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3280
3281 * python/py-registers.c : Add 'unordered_map' include.
3282 (gdbpy_new_reggroup): Renamed to...
3283 (gdbpy_get_reggroup): ...this. Update to only create register
3284 group descriptors when needed.
3285 (gdbpy_reggroup_iter_next): Update.
3286
f7306dac
AB
32872020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3288
3289 * python/py-registers.c (gdbpy_register_object_data): New static
3290 global.
3291 (gdbpy_register_object_data_init): New function.
3292 (gdbpy_new_register_descriptor): Renamed to...
3293 (gdbpy_get_register_descriptor): ...this, and update to reuse
3294 existing register descriptors where possible.
3295 (gdbpy_register_descriptor_iter_next): Update.
3296 (gdbpy_initialize_registers): Register new gdbarch data.
3297
05c309a8
SM
32982020-07-21 Simon Marchi <simon.marchi@efficios.com>
3299
3300 * linux-nat.c (stopped_pids): Make static.
3301
d1fd641e
SM
33022020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3303
3304 PR ada/26235
3305 * gdbtypes.c (ada_discrete_type_low_bound,
3306 ada_discrete_type_high_bound): Handle undefined bounds.
3307
1de14d77
KR
33082020-07-21 Kamil Rytarowski <n54@gmx.com>
3309
3310 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3311 declaration.
3312 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3313 function.
3314
ed810cc7
JB
33152020-07-20 John Baldwin <jhb@FreeBSD.org>
3316
3317 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3318 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3319 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3320 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3321 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3322 method.
3323
ae5369e7
LC
33242020-07-20 Ludovic Courtès <ludo@gnu.org>
3325
3326 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3327 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3328 which are deprecated in Guile 3.0.
3329 * configure.ac (try_guile_versions): Add "guile-3.0".
3330 * configure (try_guile_versions): Regenerate.
3331 * NEWS: Update entry.
3332
68cf161c
LC
33332020-07-20 Ludovic Courtès <ludo@gnu.org>
3334 Doug Evans <dje@google.com>
3335
3336 PR gdb/21104
3337 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3338 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3339 USING_GUILE_BEFORE_2_2.
3340 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3341 Change type to 'scm_t_port_type *'.
3342 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3343 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3344 parameter and honor it. Update callers.
3345 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3346 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3347 functions.
3348 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3349 USING_GUILE_BEFORE_2_2.
3350 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3351 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3352 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3353 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3354 and 'SCM_PORT_TYPE'.
3355 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3356 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3357 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3358 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3359 [!USING_GUILE_BEFORE_2_2]: New functions.
3360 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3361 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3362 'gdbscm_memory_port_read'.
3363 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3364 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3365 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3366 function.
3367 (ioscm_init_memory_port): Remove.
3368 (ioscm_init_memory_port_stream): New function
3369 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3370 function.
3371 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3372 Return scm_from_uint (0).
3373 (gdbscm_set_memory_port_read_buffer_size_x)
3374 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3375 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3376 Return scm_from_uint (0).
3377 (gdbscm_set_memory_port_write_buffer_size_x)
3378 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3379 * configure.ac (try_guile_versions): Add "guile-2.2".
3380 * configure: Regenerate.
3381 * NEWS: Add entry.
3382
aee91db3
TT
33832020-07-18 Tom Tromey <tom@tromey.com>
3384
3385 * linux-nat.c (linux_multi_process): Remove.
3386 (linux_nat_target::supports_multi_process): Return true.
3387
0e267416
AB
33882020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3389
3390 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3391 (riscv_lookup_target_description): Return pointer out of
3392 unique_ptr.
3393 * target-descriptions.c (allocate_target_description): Add
3394 comment.
3395 (target_desc_deleter::operator()): Likewise.
3396 * target-descriptions.h (struct target_desc_deleter): Moved to
3397 gdbsupport/tdesc.h.
3398 (target_desc_up): Likewise.
3399
f80c8ec4
TT
34002020-07-17 Tom Tromey <tromey@adacore.com>
3401
3402 * linux-nat.c (linux_nat_target::supports_non_stop)
3403 (linux_nat_target::always_non_stop_p): Use "true".
3404 (linux_nat_target::supports_disable_randomization): Use "true" and
3405 "false".
3406
d0ce17d8
CT
34072020-07-16 Caroline Tice <cmtice@google.com>
3408
3409 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3410 (RNGLIST_HEADER_SIZE64): New constant definition.
3411 (struct dwop_section_names): Add rnglists_dwo.
3412 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3413 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3414 (struct dwo_sections): Add rnglists field.
3415 (read_attribut_reprocess): Add tag parameter.
3416 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3417 (cu_debug_rnglists_section): New function (decl & definition).
3418 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3419 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3420 die whose range is being checked; get rnglist section from
3421 cu_debug_rnglists_section, to get from either objfile or dwo file as
3422 appropriate. Add cases for DW_RLE_base_addressx,
3423 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3424 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3425 test inside if-condition and updating complaint message.
3426 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3427 dwarf2_rnglists_process.
3428 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3429 dwarf2_ranges_process.
3430 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3431 need_ranges_base and update comment appropriately. Also pass die tag
3432 to dwarf2_ranges_read.
3433 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3434 need_ranges_base and update comment appropriately. Also pass die tag
3435 to dwarf2_ranges_process.
3436 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3437 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3438 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3439 need_ranges_base and update comment appropriately. Also pass die tag
3440 to read_attribute_reprocess and dwarf2_ranges_read.
3441 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3442 and update function comment appropriately.
3443 (read_loclist_index): Call read_loclists_rnglists_header instead of
3444 read_loclist_header.
3445 (read_rnglist_index): New function.
3446 (read_attribute_reprocess): Add tag parameter. Add code for
3447 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3448 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3449
3dcc261c
AB
34502020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3451
3452 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3453 being resolved.
3454
ccb9eba6
AB
34552020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3456
3457 * arch-utils.c (show_architecture): Update formatting of messages.
3458
cf88be68
SM
34592020-07-12 Simon Marchi <simon.marchi@efficios.com>
3460
3461 * gdbtypes.h (struct type) <bounds>: Handle array and string
3462 types.
3463 * ada-lang.c (assign_aggregate): Use type::bounds on
3464 array/string type.
3465 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3466 * c-varobj.c (c_number_of_children): Likewise.
3467 (c_describe_child): Likewise.
3468 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3469 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3470 (f_type_print_base): Likewise.
3471 * f-valprint.c (f77_array_offset_tbl): Likewise.
3472 (f77_get_upperbound): Likewise.
3473 (f77_print_array_1): Likewise.
3474 * guile/scm-type.c (gdbscm_type_range): Likewise.
3475 * m2-typeprint.c (m2_array): Likewise.
3476 (m2_is_long_set_of_type): Likewise.
3477 * m2-valprint.c (get_long_set_bounds): Likewise.
3478 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3479 * python/py-type.c (typy_range): Likewise.
3480 * rust-lang.c (rust_internal_print_type): Likewise.
3481 * type-stack.c (type_stack::follow_types): Likewise.
3482 * valarith.c (value_subscripted_rvalue): Likewise.
3483 * valops.c (value_cast): Likewise.
3484
509971ae
SM
34852020-07-12 Simon Marchi <simon.marchi@efficios.com>
3486
3487 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3488 callers to use the equivalent accessor methods.
3489
107406b7
SM
34902020-07-12 Simon Marchi <simon.marchi@efficios.com>
3491
3492 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3493 (struct type) <bit_stride>: New method.
3494 (TYPE_BIT_STRIDE): Remove.
3495 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3496
bb789949
SM
34972020-07-12 Simon Marchi <simon.marchi@efficios.com>
3498
3499 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3500 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3501 callers to use the equivalent accessor methods instead.
3502
39498edb
SM
35032020-07-12 Simon Marchi <simon.marchi@efficios.com>
3504
3505 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3506 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3507 callers to use the equivalent accessor methods instead.
3508
3b606f38
SM
35092020-07-12 Simon Marchi <simon.marchi@efficios.com>
3510
3511 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3512 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3513 to use dynamic_prop::kind.
3514
064d9cb9
SM
35152020-07-12 Simon Marchi <simon.marchi@efficios.com>
3516
3517 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3518 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3519 to get the bound property's kind and check against
3520 PROP_UNDEFINED.
3521
5537ddd0
SM
35222020-07-12 Simon Marchi <simon.marchi@efficios.com>
3523
3524 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3525 all callers to use type::range_bounds followed by
3526 dynamic_prop::{low,high}.
3527
8c2e4e06
SM
35282020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3529
3530 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3531 const_val, set_const_val, baton, set_locexpr, set_loclist,
3532 set_addr_offset, variant_parts, set_variant_parts,
3533 original_type, set_original_type>: New methods.
3534 <kind>: Rename to...
3535 <m_kind>: ... this. Update all users to use the new methods
3536 instead.
3537 <data>: Rename to...
3538 <m_data>: ... this. Update all users to use the new methods
3539 instead.
3540
7c6f2712
SM
35412020-07-12 Simon Marchi <simon.marchi@efficios.com>
3542
3543 * gdbtypes.c (get_discrete_bounds): Return failure if
3544 the range type's bounds are not both defined and constant
3545 values.
3546 (get_array_bounds): Update comment. Remove undefined bound check.
3547
599088e3
SM
35482020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3549
3550 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3551 the type::bounds method directly.
3552
c4dfcb36
SM
35532020-07-12 Simon Marchi <simon.marchi@efficios.com>
3554
3555 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3556 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3557 are used to set the range type's bounds to use set_bounds.
3558
0a278aa7
PW
35592020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3560
3561 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3562
cce20f10
PA
35632020-07-10 Pedro Alves <pedro@palves.net>
3564
3565 * gdbthread.h (inferior_ref): Define.
3566 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3567 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3568 * thread.c
3569 (scoped_restore_current_thread::restore):
3570 Adjust to gdb::ref_ptr.
3571 (scoped_restore_current_thread::~scoped_restore_current_thread):
3572 Remove manual decref handling.
3573 (scoped_restore_current_thread::scoped_restore_current_thread):
3574 Adjust to use
3575 inferior_ref::new_reference/thread_info_ref::new_reference.
3576 Incref the thread before calling get_frame_id instead of after.
3577 Let TARGET_CLOSE_ERROR propagate.
3578
6d7aa592
PA
35792020-07-10 Pedro Alves <pedro@palves.net>
3580
3581 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3582 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3583 NOT_AVAILABLE_ERROR.
3584 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3585 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3586
b3e3a4c1
SM
35872020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3588 Pedro Alves <pedro@palves.net>
3589
3590 PR gdb/26199
3591 * infrun.c (threads_are_resumed_pending_p): Delete.
3592 (do_target_wait): Remove threads_are_executing and
3593 threads_are_resumed_pending_p checks from the inferior_matches
3594 lambda. Update comments.
3595
d6cc5d98
PA
35962020-07-10 Pedro Alves <pedro@palves.net>
3597
3598 PR gdb/26199
3599 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3600 executing threads.
3601
7d3badc6
PA
36022020-07-10 Pedro Alves <pedro@palves.net>
3603
3604 PR gdb/26199
3605 * infrun.c (handle_no_resumed): Handle multiple targets.
3606
42bd97a6
PA
36072020-07-10 Pedro Alves <pedro@palves.net>
3608
3609 PR gdb/26199
3610 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3611 target_is_async_p.
3612
43667cc6
PA
36132020-07-10 Pedro Alves <pedro@palves.net>
3614
3615 PR gdb/26199
3616 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3617 threads, not all threads.
3618
96118d11
PA
36192020-07-10 Pedro Alves <pedro@palves.net>
3620
3621 PR gdb/26199
3622 * remote.c (remote_target::open_1): Pass remote target pointer as
3623 data to create_async_event_handler.
3624 (remote_async_inferior_event_handler): Mark async event handler
3625 before returning if the remote target still has either pending
3626 events or unacknowledged notifications.
3627
54904d81
JB
36282020-07-10 John Baldwin <jhb@FreeBSD.org>
3629
3630 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3631 declaration.
3632 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3633 function.
3634
f37e5866
JB
36352020-07-09 John Baldwin <jhb@FreeBSD.org>
3636
3637 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3638 inferior_ptid.
3639
fc238d4a
JB
36402020-07-09 John Baldwin <jhb@FreeBSD.org>
3641
3642 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3643 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3644 AT_FREEBSD_PS_STRINGS.
3645
6e2469ff
HD
36462020-07-08 Hannes Domani <ssbssa@yahoo.de>
3647
3648 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3649 of debugfile path on Windows.
3650
d1076c41
JB
36512020-07-08 John Baldwin <jhb@FreeBSD.org>
3652
3653 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3654 argument to 'data'.
3655
15f3b077
TT
36562020-07-08 Tom Tromey <tromey@adacore.com>
3657
3658 * ada-lang.c (ada_exception_message_1): Use read_memory.
3659
9fc501fd
AB
36602020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3661
3662 PR python/22748
3663 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3664 special handling for inline frames.
3665 * findvar.c (value_of_register_lazy): Skip inline frames when
3666 creating lazy register values.
3667 * frame.c (frame_id_computed_p): Delete definition.
3668 * frame.h (frame_id_computed_p): Delete declaration.
3669
64cb3757
AB
36702020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3671
3672 * NEWS: Mention additions to Python API.
3673 * python/py-arch.c (archpy_register_groups): New function.
3674 (arch_object_methods): Add 'register_groups' method.
3675 * python/py-registers.c (reggroup_iterator_object): New struct.
3676 (reggroup_object): New struct.
3677 (gdbpy_new_reggroup): New function.
3678 (gdbpy_reggroup_to_string): New function.
3679 (gdbpy_reggroup_name): New function.
3680 (gdbpy_reggroup_iter): New function.
3681 (gdbpy_reggroup_iter_next): New function.
3682 (gdbpy_new_reggroup_iterator): New function
3683 (gdbpy_initialize_registers): Register new types.
3684 (reggroup_iterator_object_type): Define new Python type.
3685 (gdbpy_reggroup_getset): New static global.
3686 (reggroup_object_type): Define new Python type.
3687 * python/python-internal.h
3688
0f767f94
AB
36892020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3690
3691 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3692 * python/py-arch.c (archpy_registers): New function.
3693 (arch_object_methods): Add 'registers' method.
3694 * python/py-registers.c: New file.
3695 * python/python-internal.h
3696 (gdbpy_new_register_descriptor_iterator): Declare.
3697 (gdbpy_initialize_registers): Declare.
3698 * python/python.c (do_start_initialization): Call
3699 gdbpy_initialize_registers.
3700 * NEWS: Mention additions to the Python API.
3701
87dbc774
AB
37022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3703
3704 * NEWS: Mention new Python API method.
3705 * python/py-unwind.c (pending_framepy_architecture): New function.
3706 (pending_frame_object_methods): Add architecture method.
3707
3bc98c0c
AB
37082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3709
3710 * gdbarch.c: Regenerate.
3711 * gdbarch.h: Regenerate.
3712 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3713 (gdbarch_data): Use internal_error for the case where
3714 deprecated_set_gdbarch_data was originally needed.
3715 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3716 and use passed in obstack.
3717 (libunwind_frame_set_descr): Should no longer get back NULL from
3718 gdbarch_data.
3719 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3720 type.
3721 * user-regs.c (user_regs_init): Update parameters, and use passed
3722 in obstack.
3723 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3724 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3725
d8cc8af6
TV
37262020-07-06 Tom de Vries <tdevries@suse.de>
3727
3728 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3729 End-Of-Sequence in lte_is_less_than.
3730 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3731 "gdb: Don't reorder line table entries too much when sorting".
3732
947f7597
TV
37332020-07-06 Tom de Vries <tdevries@suse.de>
3734
3735 PR tui/26205
3736 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3737
1e7c1b22
TV
37382020-07-05 Tom de Vries <tdevries@suse.de>
3739
3740 PR build/26187
3741 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3742 std::uncaught_exceptions instead of deprecated
3743 std::uncaught_exception.
3744
a36158ec
SM
37452020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3746
3747 * macroexp.h (macro_stringify): Return
3748 gdb::unique_xmalloc_ptr<char>.
3749 * macroexp.c (macro_stringify): Likewise.
3750 * macrotab.c (fixup_definition): Update.
3751
14d960c8
SM
37522020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3753
3754 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3755 (lex_one_token): Update.
3756 * macroexp.c (struct macro_buffer) <release>: Return
3757 gdb::unique_xmalloc_ptr<char>.
3758 (macro_stringify): Update.
3759 (macro_expand): Update.
3760 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3761 * macroexp.h (macro_expand_next): Likewise.
3762
211d5b1c
SM
37632020-07-02 Simon Marchi <simon.marchi@efficios.com>
3764
3765 * macroexp.h (macro_lookup_ftype): Remove.
3766 (macro_expand, macro_expand_once, macro_expand_next): Remove
3767 lookup function parameters, add scope parameter.
3768 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3769 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3770 * macroscope.h (standard_macro_lookup): Change parameter type
3771 to macro_scope.
3772 * macroscope.c (standard_macro_lookup): Likewise.
3773 * c-exp.y (lex_one_token): Update.
3774 * macrocmd.c (macro_expand_command): Likewise.
3775 (macro_expand_once_command): Likewise.
3776
b1a35af2
SM
37772020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3778
3779 * inf-loop.c (inferior_event_handler): Remove client_data param.
3780 * inf-loop.h (inferior_event_handler): Likewise.
3781 * infcmd.c (step_1): Adjust.
3782 * infrun.c (proceed): Adjust.
3783 (fetch_inferior_event): Remove client_data param.
3784 (infrun_async_inferior_event_handler): Adjust.
3785 * infrun.h (fetch_inferior_event): Remove `void *` param.
3786 * linux-nat.c (handle_target_event): Adjust.
3787 * record-btrace.c (record_btrace_handle_async_inferior_event):
3788 Adjust.
3789 * record-full.c (record_full_async_inferior_event_handler):
3790 Adjust.
3791 * remote.c (remote_async_inferior_event_handler): Adjust.
3792
1cdf9e33
TT
37932020-07-01 Tom Tromey <tom@tromey.com>
3794
3795 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3796 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3797
32c1e210
TT
37982020-07-01 Tom Tromey <tom@tromey.com>
3799
3800 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3801 tui_gen_win_info.
3802 (tui_win_info::make_window): Merge with
3803 tui_gen_win_info::make_window.
3804 (tui_win_info::make_visible): Move from tui_gen_win_info.
3805 * tui/tui-win.c (tui_win_info::max_width): Move from
3806 tui_gen_win_info.
3807 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3808 type.
3809 <window_factory>: Likewise.
3810 * tui/tui-layout.c (tui_win_info::resize): Move from
3811 tui_gen_win_info.
3812 (make_standard_window): Change return type.
3813 (get_locator_window, tui_get_window_by_name): Likewise.
3814 (tui_layout_window::apply): Remove a cast.
3815 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3816 (struct tui_win_info): Merge with tui_gen_win_info.
3817 (struct tui_gen_win_info): Remove.
3818
a30cb6da
TT
38192020-07-01 Tom Tromey <tom@tromey.com>
3820
3821 * tui/tui-stack.h (struct tui_locator_window): Derive from
3822 tui_win_info.
3823 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3824 <can_box>: New method.
3825
1eb2161f
TT
38262020-07-01 Tom Tromey <tom@tromey.com>
3827
3828 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3829
7134f2eb
TT
38302020-07-01 Tom Tromey <tom@tromey.com>
3831
3832 * tui/tui-regs.c (tui_data_window::display_registers_from)
3833 (tui_data_window::display_registers_from)
3834 (tui_data_window::first_data_item_displayed)
3835 (tui_data_window::delete_data_content_windows): Update.
3836 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3837 Remove.
3838 (tui_data_window::check_register_values): Update.
3839 (tui_data_item_window::rerender): Add parameters. Update.
3840 (tui_data_item_window::refresh_window): Remove.
3841 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3842 virtual.
3843 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3844 tui_gen_win_info.
3845 <refresh_window, max_height, min_height>: Remove.
3846 <rerender>: Add parameters.
3847 <x, y, visible>: New members.
3848 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3849 <m_item_width>: New member.
3850
22b7b041
TT
38512020-07-01 Tom Tromey <tom@tromey.com>
3852
3853 * tui/tui-regs.c (tui_data_window::show_register_group)
3854 (tui_data_window::check_register_values): Update.
3855 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3856 from item_no.
3857
c9753adb
TT
38582020-07-01 Tom Tromey <tom@tromey.com>
3859
3860 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3861 useless "if".
3862
9ab26b4a
TT
38632020-07-01 Tom Tromey <tom@tromey.com>
3864
3865 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3866 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3867
e555083f
TT
38682020-07-01 Tom Tromey <tom@tromey.com>
3869
3870 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3871 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3872 (struct tui_line_or_address): Move from tui-data.h.
3873 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3874 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3875 (tui_cmd_window, tui_source_window_base, tui_source_window)
3876 (tui_disasm_window): Don't declare.
3877 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3878 to tui-winsource.h.
3879 (SINGLE_KEY): Move to tui-stack.c.
3880
7a02bab7
TT
38812020-07-01 Tom Tromey <tom@tromey.com>
3882
3883 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3884 std::string.
3885 * tui/tui-regs.c (class tab_expansion_file): New.
3886 (tab_expansion_file::write): New method.
3887 (tui_register_format): Change return type. Use
3888 tab_expansion_file.
3889 (tui_get_register, tui_data_window::display_registers_from)
3890 (tui_data_item_window::rerender): Update.
3891 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3892 * tui/tui-io.c (tui_expand_tabs): Remove.
3893
ea68593b
TT
38942020-07-01 Tom Tromey <tom@tromey.com>
3895
3896 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3897
a8caed5d
FS
38982020-07-01 Fangrui Song <maskray@google.com>
3899
3900 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3901
9cdf9820
AKS
39022020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3903
3904 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3905 forms for DW_AT_associated and DW_AT_allocated attributes,
3906 which is already checked in function attr_to_dynamic_prop.
3907
a1520ad8
TT
39082020-06-30 Tom Tromey <tromey@adacore.com>
3909
3910 * dwarf2/read.c (quirk_rust_enum): Correctly call
3911 alloc_rust_variant for default-less enum.
3912
5ac58899
TT
39132020-06-30 Tom Tromey <tromey@adacore.com>
3914
3915 PR build/26183:
3916 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3917 gdb::to_string.
3918
19b187a9
SM
39192020-06-29 Simon Marchi <simon.marchi@efficios.com>
3920
3921 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3922 * gdbarch.h: Re-generate.
3923
cd4c4c07
TT
39242020-06-28 Tom Tromey <tom@tromey.com>
3925
3926 * command.h (cmd_types): Remove.
3927 (cmd_type): Don't declare.
3928 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3929 typedef.
3930 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3931 * cli/cli-decode.c (cmd_type): Remove.
3932
05779d57
PA
39332020-06-27 Pedro Alves <palves@redhat.com>
3934
3935 * fork-child.c (prefork_hook): Adjust.
3936 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3937 Delete.
3938 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3939 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3940 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3941 Remove declarations.
3942 (struct inferior) <set_tty, tty>: New methods.
3943 (struct inferior) <terminal>: Rename to ...
3944 (struct inferior) <m_terminal>: ... this and make private.
3945 * main.c (captured_main_1): Adjust.
3946 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3947 (mi_cmd_inferior_tty_show): Adjust.
3948 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3949 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3950
1776e3e5
NA
39512020-06-26 Nick Alcock <nick.alcock@oracle.com>
3952
3953 * configure.ac: Add --enable-libctf: handle --disable-static
3954 properly.
3955 * acinclude.m4: sinclude ../config/enable.m4.
3956 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3957 (LIBCTF): Substitute in.
3958 (CTF_DEPS): New, likewise.
3959 (CLIBS): libctf needs symbols from libbfd: move earlier.
3960 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3961 flags.
3962 * ctfread.c: Surround in ENABLE_LIBCTF.
3963 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3964 * configure: Regenerate.
3965 * config.in: Likewise.
3966
58373b80
SM
39672020-06-25 Simon Marchi <simon.marchi@efficios.com>
3968
3969 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3970
277474ee
SM
39712020-06-25 Simon Marchi <simon.marchi@efficios.com>
3972
3973 * inferior.h (struct inferior) <terminal>: Change type to
3974 gdb::unique_xmalloc_ptr<char>.
3975 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3976 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3977 field, adjust to unique pointer.
3978 (get_inferior_io_terminal): Adjust to unique pointer.
3979
6d74da72
AB
39802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3981
3982 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3983 registers, not just the known core set of registers.
3984
2e52d038
AB
39852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3986
3987 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3988 fflags, frm, and fcsr registers.
3989 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3990 restore groups.
3991 (riscv_tdesc_unknown_reg): New function.
3992 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3993 tdesc_use_registers.
3994 * riscv-tdep.h (struct gdbarch_tdep): Add
3995 unknown_csrs_first_regnum, unknown_csrs_count,
3996 duplicate_fflags_regnum, duplicate_frm_regnum, and
3997 duplicate_fcsr_regnum fields.
3998
be64fd07
AB
39992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4000
4001 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4002 callback, use the callback (when not null) to help number unknown
4003 registers.
4004 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4005 (tdesc_use_registers): Add extra parameter to declaration.
4006
3b9fce96
AB
40072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4008
4009 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4010 in the file.
4011 (class riscv_pending_register_alias): Likewise.
4012 (riscv_register_feature::register_info): Change 'required_p' field
4013 to 'required', and change its type. Add 'check' member function.
4014 (riscv_register_feature::register_info::check): Define new member
4015 function.
4016 (riscv_xreg_feature): Change initialisation of 'required' field.
4017 (riscv_freg_feature): Likewise.
4018 (riscv_virtual_feature): Likewise.
4019 (riscv_csr_feature): Likewise.
4020 (riscv_check_tdesc_feature): Take extra parameter, the csr
4021 tdesc_feature, rewrite the function to use the new
4022 riscv_register_feature::register_info::check function.
4023 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4024
865bad26
AB
40252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4026
4027 * features/Makefile: Remove all references to the deleted files
4028 below.
4029 * features/riscv/32bit-csr.c: Deleted.
4030 * features/riscv/32bit-csr.xml: Deleted.
4031 * features/riscv/64bit-csr.c: Deleted.
4032 * features/riscv/64bit-csr.xml: Deleted.
4033 * features/riscv/rebuild-csr-xml.sh: Deleted.
4034
ed69cbc8
AB
40352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4036
4037 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4038 whitespace error for declaration of names member variable.
4039 (struct riscv_register_feature): Add new prefer_first_name member
4040 variable, and fix whitespace error in declaration of registers.
4041 (riscv_xreg_feature): Initialize prefer_first_name field.
4042 (riscv_freg_feature): Likewise.
4043 (riscv_virtual_feature): Likewise.
4044 (riscv_csr_feature): Likewise.
4045 (riscv_register_name): Expand on comments. Remove register name
4046 modifications for CSR and virtual registers.
4047
4445e8f5
AB
40482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4049
4050 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4051 errors.
4052
767a879e
AB
40532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4054
4055 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4056 riscv-opc.h.
4057 (class riscv_pending_register_alias): New class.
4058 (riscv_check_tdesc_feature): Take vector of pending aliases and
4059 populate it as appropriate.
4060 (riscv_setup_register_aliases): Delete.
4061 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4062 to riscv_check_tdesc_feature in all cases. Use the vector to
4063 create the register aliases.
4064
bb6e55f3
RO
40652020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4066
4067 * sol2-tdep.c (sol2_static_transform_name): Remove.
4068 (sol2_init_abi): Don't register it.
4069 * gdbarch.sh (static_transform_name): Remove.
4070 * gdbarch.c, gdbarch.h: Regenerate.
4071
4072 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4073 gdbarch_static_transform_name.
4074 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4075 * stabsread.c (define_symbol) <'X'>: Remove.
4076 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4077 handling.
4078 <'V'>: Likewise.
4079 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4080 <'S'>: Remove call to gdbarch_static_transform_name.
4081
c6d36836
RO
40822020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4083
4084 * procfs.c (procfs_pre_trace): New function.
4085 (procfs_target::create_inferior): Pass it to fork_inferior.
4086
a7e6196b
RO
40872020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4088
4089 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4090 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4091 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4092 sol2-tdep.o, sparc-sol2-tdep.o.
4093 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4094 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4095 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4096 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4097
d412e696
RO
40982020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4099
4100 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4101 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4102 Call sol2_init_abi.
4103 Remove calls to set_gdbarch_skip_solib_resolver,
4104 set_gdbarch_core_pid_to_str.
4105 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4106 (i386_sol2_static_transform_name): Remove.
4107 (i386_sol2_init_abi): Call sol2_init_abi.
4108 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4109 set_gdbarch_static_transform_name,
4110 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4111 Use sol2_sigtramp_p.
4112 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4113 (sol2_sigtramp_p): New function.
4114 (sol2_static_transform_name): New function.
4115 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4116 (sol2_init_abi): New function.
4117 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4118 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4119 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4120 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4121 (sparc_sol2_static_transform_name): Remove.
4122 (sparc32_sol2_init_abi): Call sol2_init_abi.
4123 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4124 set_gdbarch_static_transform_name,
4125 set_gdbarch_skip_solib_resolver,
4126 set_gdbarch_core_pid_to_str.
4127 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4128 (sparc_sol2_static_transform_name): Remove
4129 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4130 call sol2_sigtramp_p.
4131 (sparc64_sol2_init_abi): Call sol2_init_abi.
4132 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4133 set_gdbarch_static_transform_name,
4134 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4135
a8654e7d
PW
41362020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4137
4138 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4139 * exec.c (validate_exec_file): If from_tty, set both
4140 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4141 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4142 and from_tty, unconditionally ask a confirmation.
4143
caa7fd04
AB
41442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4145
4146 * target-descriptions.c (tdesc_architecture_name): Protect against
4147 NULL pointer dereference.
4148 (maint_print_xml_tdesc_cmd): New function.
4149 (_initialize_target_descriptions): Register new 'maint print
4150 xml-tdesc' command and give it the filename completer.
4151 * NEWS: Mention new 'maint print xml-tdesc' command.
4152
fbf42f4e
AB
41532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4154
4155 * target-descriptions.c (class tdesc_compatible_info): New class.
4156 (struct target_desc): Change type of compatible vector.
4157 (tdesc_compatible_p): Update for change in type of
4158 target_desc::compatible.
4159 (tdesc_compatible_info_list): New function.
4160 (tdesc_compatible_info_arch_name): New function.
4161 (tdesc_add_compatible): Update for change in type of
4162 target_desc::compatible.
4163 (print_c_tdesc::visit_pre): Likewise.
4164
20821f4e
AB
41652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4166
4167 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4168 whitespace to underscore.
4169 (maint_print_c_tdesc_cmd): Use fake filename for target
4170 descriptions that came from the target.
4171 (_initialize_target_descriptions): Add filename command completion
4172 for 'maint print c-tdesc'.
4173
1fb5ee62
SM
41742020-06-23 Simon Marchi <simon.marchi@efficios.com>
4175
4176 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4177 lines.
4178
fc3ecb3e
SM
41792020-06-23 Simon Marchi <simon.marchi@efficios.com>
4180
4181 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4182 lines.
4183 (dwarf2_find_location_expression): Likewise.
4184 (call_site_parameter_matches): Likewise.
4185 (dwarf2_compile_expr_to_ax): Likewise.
4186 (disassemble_dwarf_expression): Likewise.
4187 (loclist_describe_location): Likewise.
4188
236ef034
PA
41892020-06-23 Pedro Alves <palves@redhat.com>
4190
4191 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4192 progspace-and-thread.h. Include scoped-mock-context.h instead.
4193 (register_to_value_test): Use scoped_mock_context.
4194 * regcache.c: Include "scoped-mock-context.h".
4195 (cooked_read_test): Don't error out if a target is already pushed.
4196 Use scoped_mock_context. Adjust.
4197 * scoped-mock-context.h: New file.
4198
39e7ecca
AB
41992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4200
4201 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4202 initializer.
4203 (ada_language::is_string_type_p): New member function.
4204 * c-lang.c (c_language_data): Delete la_is_string_type_p
4205 initializer.
4206 (cplus_language_data): Likewise.
4207 (asm_language_data): Likewise.
4208 (minimal_language_data): Likewise.
4209 * d-lang.c (d_language_data): Likewise.
4210 * f-lang.c (f_is_string_type_p): Delete function, implementation
4211 moved to f_language::is_string_type_p.
4212 (f_language_data): Delete la_is_string_type_p initializer.
4213 (f_language::is_string_type_p): New member function,
4214 implementation from f_is_string_type_p.
4215 * go-lang.c (go_is_string_type_p): Delete function, implementation
4216 moved to go_language::is_string_type_p.
4217 (go_language_data): Delete la_is_string_type_p initializer.
4218 (go_language::is_string_type_p): New member function,
4219 implementation from go_is_string_type_p.
4220 * language.c (language_defn::is_string_type_p): Define new member
4221 function.
4222 (default_is_string_type_p): Make static, add comment copied from
4223 header file.
4224 (unknown_language_data): Delete la_is_string_type_p initializer.
4225 (unknown_language::is_string_type_p): New member function.
4226 (auto_language_data): Delete la_is_string_type_p initializer.
4227 (auto_language::is_string_type_p): New member function.
4228 * language.h (language_data): Delete la_is_string_type_p field.
4229 (language_defn::is_string_type_p): Declare new function.
4230 (default_is_string_type_p): Delete desclaration, move comment to
4231 definition.
4232 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4233 moved to m2_language::is_string_type_p.
4234 (m2_language_data): Delete la_is_string_type_p initializer.
4235 (m2_language::is_string_type_p): New member function,
4236 implementation from m2_is_string_type_p.
4237 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4238 initializer.
4239 * opencl-lang.c (opencl_language_data): Likewise.
4240 * p-lang.c (pascal_is_string_type_p): Delete function,
4241 implementation moved to pascal_language::is_string_type_p.
4242 (pascal_language_data): Delete la_is_string_type_p initializer.
4243 (pascal_language::is_string_type_p): New member function,
4244 implementation from pascal_is_string_type_p.
4245 * rust-lang.c (rust_is_string_type_p): Delete function,
4246 implementation moved to rust_language::is_string_type_p.
4247 (rust_language_data): Delete la_is_string_type_p initializer.
4248 (rust_language::is_string_type_p): New member function,
4249 implementation from rust_is_string_type_p.
4250 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4251 is_string_type_p.
4252
4ffc13fb
AB
42532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4254
4255 * ada-lang.c (ada_language_data): Delete la_print_typedef
4256 initializer.
4257 (ada_language::print_typedef): New member function.
4258 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4259 (cplus_language_data): Likewise.
4260 (asm_language_data): Likewise.
4261 (minimal_language_data): Likewise.
4262 * d-lang.c (d_language_data): Likewise.
4263 * f-lang.c (f_language_data): Likewise.
4264 (f_language::print_typedef): New member function.
4265 * go-lang.c (go_language_data): Delete la_print_typedef
4266 initializer.
4267 * language.c (language_defn::print_typedef): Define member
4268 function.
4269 (unknown_language_data): Delete la_print_typedef initializer.
4270 (unknown_language::print_typedef): New member function.
4271 (auto_language_data): Delete la_print_typedef initializer.
4272 (auto_language::print_typedef): New member function.
4273 * language.h (language_data): Delete la_print_typedef field.
4274 (language_defn::print_typedef): Declare new member function.
4275 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4276 (default_print_typedef): Delete declaration.
4277 * m2-lang.c (m2_language_data): Delete la_print_typedef
4278 initializer.
4279 (m2_language::print_typedef): New member function.
4280 * objc-lang.c (objc_language_data): Delete la_print_typedef
4281 initializer.
4282 * opencl-lang.c (opencl_language_data): Likewise.
4283 * p-lang.c (pascal_language_data): Likewise.
4284 (pascal_language::print_typedef): New member function.
4285 * rust-lang.c (rust_print_typedef): Delete function,
4286 implementation moved to rust_language::print_typedef.
4287 (rust_language): Delete la_print_typedef initializer.
4288 (rust_language::print_typedef): New member function,
4289 implementation from rust_print_typedef.
4290 * typeprint.c (default_print_typedef): Delete.
4291
d711ee67
AB
42922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4293
4294 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4295 (ada_language::printstr): New member function.
4296 * c-lang.c (c_language_data): Delete la_printstr initializer.
4297 (cplus_language_data): Likewise.
4298 (asm_language_data): Likewise.
4299 (minimal_language_data): Likewise.
4300 * d-lang.c (d_language_data): Likewise.
4301 * f-lang.c (f_printstr): Rename to f_language::printstr.
4302 (f_language_data): Delete la_printstr initializer.
4303 (f_language::printstr): New member function, implementation from
4304 f_printstr.
4305 * go-lang.c (go_language_data): Delete la_printstr initializer.
4306 * language.c (language_defn::printstr): Define new member
4307 function.
4308 (unk_lang_printstr): Delete.
4309 (unknown_language_data): Delete la_printstr initializer.
4310 (unknown_language::printstr): New member function.
4311 (auto_language_data): Delete la_printstr initializer.
4312 (auto_language::printstr): New member function.
4313 * language.h (language_data): Delete la_printstr field.
4314 (language_defn::printstr): Declare new member function.
4315 (LA_PRINT_STRING): Update call to printstr.
4316 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4317 (m2_language_data): Delete la_printstr initializer.
4318 (m2_language::printstr): New member function, implementation from
4319 m2_printstr.
4320 * objc-lang.c (objc_language_data): Delete la_printstr
4321 initializer.
4322 * opencl-lang.c (opencl_language_data): Likewise.
4323 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4324 (pascal_language_data): Delete la_printstr initializer.
4325 (pascal_language::printstr): New member function, implementation
4326 from pascal_printstr.
4327 * p-lang.h (pascal_printstr): Delete declaration.
4328 * rust-lang.c (rust_printstr): Update header comment.
4329 (rust_language_data): Delete la_printstr initializer.
4330 (rust_language::printstr): New member function.
4331
52b50f2c
AB
43322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4333
4334 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4335 (ada_language::printchar): New member function.
4336 * c-lang.c (c_language_data): Delete la_printchar initializer.
4337 (cplus_language_data): Likewise.
4338 (asm_language_data): Likewise.
4339 (minimal_language_data): Likewise.
4340 * d-lang.c (d_language_data): Likewise.
4341 * f-lang.c (f_printchar): Rename to f_language::printchar.
4342 (f_language_data): Delete la_printchar initializer.
4343 (f_language::printchar): New member function, implementation from
4344 f_printchar.
4345 * go-lang.c (go_language_data): Delete la_printchar initializer.
4346 * language.c (unk_lang_printchar): Delete.
4347 (language_defn::printchar): Define new member function.
4348 (unknown_language_data): Delete la_printchar initializer.
4349 (unknown_language::printchar): New member function.
4350 (auto_language_data): Delete la_printchar initializer.
4351 (auto_language::printchar): New member function.
4352 * language.h (language_data): Delete la_printchar field.
4353 (language_defn::printchar): Declare new member function.
4354 (LA_PRINT_CHAR): Update call to printchar.
4355 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4356 (m2_language::printchar): New member function.
4357 * objc-lang.c (objc_language_data): Delete la_printchar
4358 initializer.
4359 * opencl-lang.c (opencl_language_data): Likewise.
4360 * p-lang.c (pascal_language_data): Delete la_printchar
4361 initializer.
4362 (pascal_language::printchar): New member function.
4363 * rust-lang.c (rust_printchar): Rename to
4364 rust_language::printchar.
4365 (rust_language_data): Delete la_printchar initializer.
4366 (rust_language::printchar): New member function, implementation
4367 from rust_printchar.
4368
ec8cec5b
AB
43692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4370
4371 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4372 (ada_language_data): Delete la_emitchar initializer.
4373 (ada_language::emitchar): New member function, implementation from
4374 emit_char.
4375 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4376 (cplus_language_data): Likewise.
4377 (asm_language_data): Likewise.
4378 (minimal_language_data): Likewise.
4379 * d-lang.c (d_language_data): Likewise.
4380 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4381 (f_language_data): Delete la_emitchar initializer.
4382 (f_language::emitchar): New member function, implementation from
4383 f_emit_char.
4384 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4385 * language.c (unk_lang_emit_char): Delete.
4386 (language_defn::emitchar): New member function definition.
4387 (unknown_language_data): Delete la_emitchar initializer.
4388 (unknown_language::emitchar): New member function.
4389 (auto_language_data): Delete la_emitchar initializer.
4390 (auto_language::emitchar): New member function.
4391 * language.h (language_data): Delete la_emitchar field.
4392 (language_defn::emitchar): New member field declaration.
4393 (LA_EMIT_CHAR): Update call to emitchar.
4394 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4395 (m2_language_data): Delete la_emitchar initializer.
4396 (m2_language::emitchar): New member function, implementation from
4397 m2_emit_char.
4398 * objc-lang.c (objc_language_data): Delete la_emitchar
4399 initializer.
4400 * opencl-lang.c (opencl_language_data): Likewise.
4401 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4402 (pascal_language_data): Delete la_emitchar initializer.
4403 (pascal_language::emitchar): New member function, implementation
4404 from pascal_emit_char.
4405 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4406 (rust_language_data): Delete la_emitchar initializer.
4407 (rust_language::emitchar): New member function, implementation
4408 from rust_emitchar.
4409
1bf9c363
AB
44102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4411
4412 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4413 (ada_language_data): Delete la_post_parser initializer.
4414 (ada_language::post_parser): New member function.
4415 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4416 (cplus_language_data): Likewise.
4417 (asm_language_data): Likewise.
4418 (minimal_language_data): Likewise.
4419 * d-lang.c (d_language_data): Likewise.
4420 * f-lang.c (f_language_data): Likewise.
4421 * go-lang.c (go_language_data): Likewise.
4422 * language.c (unknown_language_data): Likewise.
4423 (auto_language_data): Likewise.
4424 * language.h (language_data): Delete la_post_parser field.
4425 (language_defn::post_parser): New member function.
4426 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4427 * objc-lang.c (objc_language_data): Likewise.
4428 * opencl-lang.c (opencl_language_data): Likewise.
4429 * p-lang.c (pascal_language_data): Likewise.
4430 * parse.c (parse_exp_in_context): Update call to post_parser.
4431 (null_post_parser): Delete definition.
4432 * parser-defs.h (null_post_parser): Delete declaration.
4433 * rust-lang.c (rust_language_data): Delete la_post_parser
4434 initializer.
4435
87afa652
AB
44362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4437
4438 * ada-lang.c (parse): Rename to ada_language::parser.
4439 (ada_language_data): Delete la_parser initializer.
4440 (ada_language::parser): New member function, implementation from
4441 parse.
4442 * c-lang.c (c_language_data): Delete la_parser initializer.
4443 (cplus_language_data): Likewise.
4444 (asm_language_data): Likewise.
4445 (minimal_language_data): Likewise.
4446 * d-lang.c (d_language_data): Likewise.
4447 (d_language::parser): New member function.
4448 * f-lang.c (f_language_data): Delete la_parser initializer.
4449 (f_language::parser): New member function.
4450 * go-lang.c (go_language_data): Delete la_parser initializer.
4451 (go_language::parser): New member function.
4452 * language.c (unk_lang_parser): Delete.
4453 (language_defn::parser): Define new member function.
4454 (unknown_language_data): Delete la_parser initializer.
4455 (unknown_language::parser): New member function.
4456 (auto_language_data): Delete la_parser initializer.
4457 (auto_language::parser): New member function.
4458 * language.h (language_data): Delete la_parser field.
4459 (language_defn::parser): Declare new member function.
4460 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4461 (m2_language::parser): New member function.
4462 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4463 * opencl-lang.c (opencl_language_data): Likewise.
4464 * p-lang.c (pascal_language_data): Likewise.
4465 (pascal_language::parser): New member function.
4466 * parse.c (parse_exp_in_context): Update call to parser.
4467 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4468 (rust_language::parser): New member function.
4469
37825800
AB
44702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4471
4472 * top.c (print_gdb_configuration): Print --with-python-libdir
4473 configuration value.
4474
5b860c93
PW
44752020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4476
4477 * NEWS: Mention change to the alias command.
4478
cf00cd6f
PW
44792020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4480
4481 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4482 (alias_command_completer)
4483 (make_alias_options_def_group): New functions.
4484 (alias_opts, alias_option_defs): New struct and array.
4485 (alias_usage_error): Update usage.
4486 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4487 Use option framework.
4488 (_initialize_cli_cmds): Update alias command help.
4489 Update aliases command help.
4490 (show_user):
4491 Add NULL for new default_args lookup_cmd argument.
4492 (valid_command_p): Rename to validate_aliased_command.
4493 Add NULL for new default_args lookup_cmd argument. Verify that the
4494 aliased_command has no default args.
4495 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4496 (lookup_cmd_1, lookup_cmd): New argument default_args.
4497 (add_alias_cmd):
4498 Add NULL for new default_args lookup_cmd argument.
4499 (print_help_for_command): Show default args under the layout
4500 alias some_alias = some_aliased_cmd some_alias_default_arg.
4501 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4502 xfree default_args in destructor.
4503 * cli/cli-script.c (process_next_line, do_define_command):
4504 Add NULL for new default_args lookup_cmd argument.
4505 * command.h: Declare new default_args argument in lookup_cmd
4506 and lookup_cmd_1.
4507 * completer.c (complete_line_internal_1):
4508 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4509 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4510 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4511 Likewise.
4512 * infcmd.c (_initialize_infcmd): Likewise.
4513 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4514 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4515 * python/py-param.c (add_setshow_generic): Likewise.
4516 * remote.c (_initialize_remote): Likewise.
4517 * top.c (execute_command): Prepend default_args if command has some.
4518 (set_verbose):
4519 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4520 * tracepoint.c (validate_actionline, encode_actions_1):
4521 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4522
bd920864
TBA
45232020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4524
4525 * jit.c (jit_read_descriptor): Use bool as the return type.
4526 (jit_breakpoint_re_set_internal): Use bool as the return type.
4527 Invert the return value logic; return true if the jit breakpoint
4528 has been successfully initialized.
4529 (jit_inferior_init): Update the call to
4530 jit_breakpoint_re_set_internal.
4531
f8098322
PA
45322020-06-22 Pedro Alves <palves@redhat.com>
4533
4534 PR gdb/25939
4535 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4536 Use the current inferior instead. Don't return
4537 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4538 wait again.
4539 * sol-thread.c (sol_thread_target::wait): Don't reference
4540 inferior_ptid.
4541 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4542 (sol_update_thread_list_callback): Use the current inferior's pid
4543 instead of inferior_ptid.
4544
196535a6
RO
45452020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4546
4547 * procfs.c: Cleanup many comments.
4548
4549 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4550 (AFTER_WATCHFLAG): Replace by value.
4551
4552 (MAIN_PROC_NAME_FORMAT): Inline ...
4553 (create_procinfo): ... here.
4554
4555 (procfs_debug_inferior): Remove SYS_exec handling.
4556 (syscall_is_exec): Likewise.
4557 (procfs_set_exec_trap): Likewise.
4558
4559 (syscall_is_lwp_exit): Inline in callers.
4560 (syscall_is_exit): Likewise.
4561 (syscall_is_exec): Likewise.
4562 (syscall_is_lwp_create): Likewise.
4563
4564 (invalidate_cache): Remove #if 0 code.
4565
4566 (make_signal_thread_runnable): Remove.
4567 (procfs_target::resume): Remove #if 0 code.
4568
cf6f3e86
RO
45692020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4570
4571 PR gdb/25939
4572 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4573 call ...
4574 (procfs_target::create_inferior): ... here.
4575
48e9cc84
PW
45762020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4577
4578 * exec.c (validate_exec_file): Ensure the build-id is up to
4579 date by calling reopen_exec_file (that checks file timestamp
4580 to decide to re-read the file).
4581
3922b302
PA
45822020-06-18 Pedro Alves <palves@redhat.com>
4583
4584 PR gdb/25412
4585 * gdbthread.h (delete_thread, delete_thread_silent)
4586 (find_thread_ptid): Update comments.
4587 * thread.c (current_thread_): New global.
4588 (is_current_thread): Move higher, and reimplement.
4589 (inferior_thread): Reimplement.
4590 (set_thread_exited): Use bool. Add assertions.
4591 (add_thread_silent): Simplify thread-reuse handling by always
4592 calling delete_thread.
4593 (delete_thread): Remove intro comment.
4594 (find_thread_ptid): Skip exited threads.
4595 (switch_to_thread_no_regs): Write to current_thread_.
4596 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4597 INFERIOR_PTID. Clear current_thread_.
4598
6dbdab44
PA
45992020-06-18 Pedro Alves <palves@redhat.com>
4600
4601 * aix-thread.c (pd_update): Use switch_to_thread.
4602
2da4b788
PA
46032020-06-18 Pedro Alves <palves@redhat.com>
4604
4605 * ravenscar-thread.c (ravenscar_thread_target): Update.
4606 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4607 (ravenscar_thread_target::add_active_thread): ... this. Don't
4608 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4609 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4610
50838d1b
PA
46112020-06-18 Pedro Alves <palves@redhat.com>
4612
4613 * nat/windows-nat.c (current_windows_thread): Remove.
4614 * nat/windows-nat.h (current_windows_thread): Remove.
4615 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4616 Adjust.
4617 (display_selectors): Adjust to fetch the current
4618 windows_thread_info based on inferior_ptid.
4619 (fake_create_process): No longer write to current_windows_thread.
4620 (windows_nat_target::get_windows_debug_event):
4621 Don't set inferior_ptid or current_windows_thread.
4622 (windows_nat_target::wait): Adjust to not rely on
4623 current_windows_thread.
4624 (do_initial_windows_stuff): Now a method of windows_nat_target.
4625 Switch to the last_ptid thread.
4626 (windows_nat_target::attach): Adjust.
4627 (windows_nat_target::detach): Use switch_to_no_thread instead of
4628 writing to inferior_ptid directly.
4629 (windows_nat_target::create_inferior): Adjust.
4630
31ce04e9
PA
46312020-06-18 Pedro Alves <palves@redhat.com>
4632
4633 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4634
1ee1a363
PA
46352020-06-18 Pedro Alves <palves@redhat.com>
4636
4637 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4638 after creating it, instead of writing to inferior_ptid. Don't
4639 write to inferior_ptid.
4640
6d350754
PA
46412020-06-18 Pedro Alves <palves@redhat.com>
4642
4643 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4644
5d971d48
PA
46452020-06-18 Pedro Alves <palves@redhat.com>
4646
4647 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4648 it, instead of writing to inferior_ptid.
4649
86e57d1b
PA
46502020-06-18 Pedro Alves <palves@redhat.com>
4651
4652 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4653 to inferior_ptid.
4654
f2e1c129
PA
46552020-06-18 Pedro Alves <palves@redhat.com>
4656
4657 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4658 instead of writing to inferior_ptid directly.
4659
60db1b85
PA
46602020-06-18 Pedro Alves <palves@redhat.com>
4661
4662 * corelow.c (core_target::close): Use switch_to_no_thread instead
4663 of writing to inferior_ptid directly.
4664 (add_to_thread_list, core_target_open): Use switch_to_thread
4665 instead of writing to inferior_ptid directly.
4666
fe7d6a8d
PA
46672020-06-18 Pedro Alves <palves@redhat.com>
4668
4669 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4670 inferior_ptid.
4671 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4672 inferior_ptid.
4673 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4674 inferior_ptid directly.
4675 (darwin_nat_target::init_thread_list): Switch to thread, instead
4676 of writing to inferior_ptid.
4677 (darwin_nat_target::attach): Don't write to inferior_ptid.
4678 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4679
975f8708
PA
46802020-06-18 Pedro Alves <palves@redhat.com>
4681
4682 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4683 thread.
4684 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4685 Instead use switch_to_thread.
4686 (gnu_nat_target::detach): Use switch_to_no_thread
4687 instead of writing to inferior_ptid directly. Used passed-in
4688 inferior instead of looking up the inferior by pid.
4689
1a204730
PA
46902020-06-18 Pedro Alves <palves@redhat.com>
4691
4692 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4693 inferior_ptid.
4694
ebe84f23
PA
46952020-06-18 Pedro Alves <palves@redhat.com>
4696
4697 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4698 inferior_ptid.
4699 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4700 thread.
4701 (nto_procfs_target::detach): Avoid referencing
4702 inferior_ptid. Use switch_to_no_thread instead of writing to
4703 inferior_ptid directly.
4704 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4705 instead of writing to inferior_ptid directly.
4706 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4707 to thread.
4708
191f02e5
PA
47092020-06-18 Pedro Alves <palves@redhat.com>
4710
4711 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4712 after creating it, instead of writing to inferior_ptid.
4713 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4714 to inferior_ptid directly.
4715 (gdbsim_target::wait): Don't write to inferior_ptid.
4716
0ac55310
PA
47172020-06-18 Pedro Alves <palves@redhat.com>
4718
4719 * remote.c (remote_target::remote_notice_new_inferior): Use
4720 switch_to_thread instead of writing to inferior_ptid directly.
4721 (remote_target::add_current_inferior_and_thread): Use
4722 switch_to_no_thread instead of writing to inferior_ptid directly.
4723 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4724 and switch_to_thread instead of using set_current_inferior or
4725 writing to inferior_ptid directly.
4726
5233f39b
PA
47272020-06-18 Pedro Alves <palves@redhat.com>
4728
4729 * tracectf.c (ctf_target_open): Switch to added thread instead of
4730 writing to inferior_ptid directly.
4731 (ctf_target::close): Use switch_to_no_thread instead of writing to
4732 inferior_ptid directly.
4733
087e161b
PA
47342020-06-18 Pedro Alves <palves@redhat.com>
4735
4736 * tracefile-tfile.c (tfile_target_open): Don't write to
4737 inferior_ptid directly, instead switch to added thread.
4738 (tfile_target::close): Use switch_to_no_thread instead of writing
4739 to inferior_ptid directly.
4740
7fb43e53
PA
47412020-06-18 Pedro Alves <palves@redhat.com>
4742
4743 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4744 (procfs_target::detach): Use switch_to_no_thread
4745 instead of writing to inferior_ptid directly.
4746 (do_attach): Change return type to void. Switch to the added
4747 thread.
4748 (procfs_target::create_inferior): Switch to the added thread.
4749 (procfs_do_thread_registers): Don't write to inferior_ptid.
4750
18493a00
PA
47512020-06-18 Pedro Alves <palves@redhat.com>
4752
4753 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4754 of writing to inferior_ptid.
4755 (scoped_restore_exited_inferior): Delete.
4756 (handle_vfork_child_exec_or_exit): Simplify using
4757 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4758 instead of writing to inferior_ptid.
4759 (THREAD_STOPPED_BY): Delete.
4760 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4761 (thread_stopped_by_hw_breakpoint): Delete.
4762 (save_waitstatus): Use
4763 scoped_restore_current_thread+switch_to_thread, and call
4764 target_stopped_by_watchpoint instead of
4765 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4766 instead of thread_stopped_by_sw_breakpoint, and
4767 target_stopped_by_hw_breakpoint instead of
4768 thread_stopped_by_hw_breakpoint.
4769 (handle_inferior_event)
4770 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4771 inferior_ptid directly, nor
4772 set_current_inferior/set_current_program_space. Use
4773 switch_to_thread / switch_to_inferior_no_thread instead.
4774
a0776b13
PA
47752020-06-18 Pedro Alves <palves@redhat.com>
4776
4777 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4778 instead of writing to inferior_ptid.
4779
6155c136
PA
47802020-06-18 Pedro Alves <palves@redhat.com>
4781
4782 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4783 added thread.
4784 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4785 to the added thread.
4786 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4787 instead of writing to inferior_ptid.
4788
c5316fc6
PA
47892020-06-18 Pedro Alves <palves@redhat.com>
4790
4791 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4792 (register_to_value_test): Mock a program_space too. Heap-allocate
4793 the address space. Don't write to inferior_ptid. Use
4794 switch_to_thread instead.
4795
8df01799
PA
47962020-06-18 Pedro Alves <palves@redhat.com>
4797
4798 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4799 Delete.
4800 (find_signalled_thread()): New, factored out from
4801 linux_make_corefile_notes and adjusted to handle exited threads.
4802 (linux_make_corefile_notes): Adjust to use the new
4803 find_signalled_thread.
4804
41792d68
PA
48052020-06-18 Pedro Alves <palves@redhat.com>
4806
4807 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4808 of saving/restoring inferior_ptid.
4809
612f258a
TT
48102020-06-17 Tom Tromey <tom@tromey.com>
4811
4812 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4813 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4814 declare.
4815 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4816
efb763a5
SM
48172020-06-15 Simon Marchi <simon.marchi@efficios.com>
4818
4819 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4820 of partial symtabs.
4821
2951f6c0
SM
48222020-06-17 Simon Marchi <simon.marchi@efficios.com>
4823
4824 * regformats/reg-arm.dat: Remove.
4825 * regformats/reg-bfin.dat: Remove.
4826 * regformats/reg-cris.dat: Remove.
4827 * regformats/reg-crisv32.dat: Remove.
4828 * regformats/reg-m32r.dat: Remove.
4829 * regformats/reg-tilegx.dat: Remove.
4830 * regformats/reg-tilegx32.dat: Remove.
4831
7d458ea5
SM
48322020-06-17 Simon Marchi <simon.marchi@efficios.com>
4833
4834 * features/Makefile (WHICH): Remove arm files.
4835 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4836 * regformats/arm/arm-with-neon.dat: Remove.
4837 * regformats/arm/arm-with-vfpv2.dat: Remove.
4838 * regformats/arm/arm-with-vfpv3.dat: Remove.
4839
3af96c0d
SM
48402020-06-17 Simon Marchi <simon.marchi@efficios.com>
4841
4842 * features/Makefile (XMLTOC): Remove rx.xml.
4843
b25e22fd
PA
48442020-06-17 Pedro Alves <palves@redhat.com>
4845
4846 * gdbthread.h (thread_control_state) <trap_expected> Update
4847 comments.
4848
a78a19b1
AB
48492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4850
4851 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4852 ada_language::lookup_symbol_nonlocal.
4853 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4854 (ada_language::lookup_symbol_nonlocal): New member function,
4855 implementation from ada_lookup_symbol_nonlocal.
4856 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4857 initializer.
4858 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4859 initializer.
4860 (cplus_language::lookup_symbol_nonlocal): New member function.
4861 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4862 (minimal_language_data) Likewise.
4863 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4864 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4865 initializer.
4866 (d_language::lookup_symbol_nonlocal): New member function.
4867 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4868 initializer.
4869 (f_language::lookup_symbol_nonlocal): New member function.
4870 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4871 initializer.
4872 * language.c (unknown_language_data): Likewise.
4873 (auto_language_data): Likewise.
4874 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4875 field.
4876 (language_defn::lookup_symbol_nonlocal): New member function.
4877 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4878 initializer.
4879 * objc-lang.c (objc_language_data): Likewise.
4880 * opencl-lang.c (opencl_language_data): Likewise.
4881 * p-lang.c (pascal_language_data): Likewise.
4882 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4883 rust_language::lookup_symbol_nonlocal.
4884 (rust_language_data): Delete la_lookup_symbol_nonlocal
4885 initializer.
4886 (rust_language::lookup_symbol_nonlocal): New member function,
4887 implementation from rust_lookup_symbol_nonlocal.
4888 * symtab.c (lookup_symbol_aux): Update call to
4889 lookup_symbol_nonlocal.
4890 (basic_lookup_symbol_nonlocal): Rename to...
4891 (language_defn::lookup_symbol_nonlocal): ...this, and update
4892 header comment. Remove language_defn parameter, and replace with
4893 uses of `this'.
4894 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4895
ebe2334e
AB
48962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4897
4898 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4899 initializer.
4900 (ada_language::value_print_inner): New member function.
4901 * c-lang.c (c_language_data): Delete la_value_print_inner
4902 initializer.
4903 (cplus_language_data): Likewise.
4904 (asm_language_data): Likewise.
4905 (minimal_language_data): Likewise.
4906 * d-lang.c (d_language_data): Likewise.
4907 (d_language::value_print_inner): New member function.
4908 * f-lang.c (f_language_data): Delete la_value_print_inner
4909 initializer.
4910 (f_language::value_print_inner): New member function.
4911 * f-lang.h (f_value_print_innner): Rename to...
4912 (f_value_print_inner): ...this (note spelling of 'inner').
4913 * f-valprint.c (f_value_print_innner): Rename to...
4914 (f_value_print_inner): ...this (note spelling of 'inner').
4915 * go-lang.c (go_language_data): Delete la_value_print_inner
4916 initializer.
4917 (go_language::value_print_inner): New member function.
4918 * language.c (language_defn::value_print_inner): Define new member
4919 function.
4920 (unk_lang_value_print_inner): Delete.
4921 (unknown_language_data): Delete la_value_print_inner initializer.
4922 (unknown_language::value_print_inner): New member function.
4923 (auto_language_data): Delete la_value_print_inner initializer.
4924 (auto_language::value_print_inner): New member function.
4925 * language.h (language_data): Delete la_value_print_inner field.
4926 (language_defn::value_print_inner): Delcare new member function.
4927 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4928 initializer.
4929 (m2_language::value_print_inner): New member function.
4930 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4931 initializer.
4932 * opencl-lang.c (opencl_language_data): Likewise.
4933 * p-lang.c (pascal_language_data): Likewise.
4934 (pascal_language::value_print_inner): New member function.
4935 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4936 initializer.
4937 (rust_language::value_print_inner): New member function.
4938 * valprint.c (do_val_print): Update call to value_print_inner.
4939
a1d1fa3e
AB
49402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4941
4942 * ada-lang.c (ada_language_data): Delete la_value_print
4943 initializer.
4944 (ada_language::value_print): New member function.
4945 * c-lang.c (c_language_data): Delete la_value_print initializer.
4946 (cplus_language_data): Likewise.
4947 (asm_language_data): Likewise.
4948 (minimal_language_data): Likewise.
4949 * d-lang.c (d_language_data): Likewise.
4950 * f-lang.c (f_language_data): Likewise.
4951 * go-lang.c (go_language_data): Likewise.
4952 * language.c (unk_lang_value_print): Delete.
4953 (language_defn::value_print): Define new member function.
4954 (unknown_language_data): Delete la_value_print initializer.
4955 (unknown_language::value_print): New member function.
4956 (auto_language_data): Delete la_value_print initializer.
4957 (auto_language::value_print): New member function.
4958 * language.h (language_data): Delete la_value_print field.
4959 (language_defn::value_print): Declare new member function.
4960 (LA_VALUE_PRINT): Update call to value_print.
4961 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4962 * objc-lang.c (objc_language_data): Likewise.
4963 * opencl-lang.c (opencl_language_data): Likewise.
4964 * p-lang.c (pascal_language_data): Likewise.
4965 (pascal_language::value_print): New member function.
4966 * rust-lang.c (rust_language_data): Delete la_value_print
4967 initializer.
4968
f16a9f57
AB
49692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4970
4971 * ada-lang.c (ada_watch_location_expression): Rename to
4972 ada_language::watch_location_expression.
4973 (ada_language_data): Delete la_watch_location_expression
4974 initializer.
4975 (ada_language::watch_location_expression): New member function,
4976 implementation from ada_watch_location_expression.
4977 * breakpoint.c (watch_command_1): Update call to
4978 watch_location_expression.
4979 * c-lang.c (c_watch_location_expression): Rename to
4980 language_defn::watch_location_expression.
4981 (c_language_data): Delete la_watch_location_expression
4982 initializer.
4983 (cplus_language_data): Likewise.
4984 (asm_language_data): Likewise.
4985 (minimal_language_data): Likewise.
4986 * c-lang.h (c_watch_location_expression): Delete declaration.
4987 * d-lang.c (d_language_data): Delete la_watch_location_expression
4988 initializer.
4989 * f-lang.c (f_language_data): Likewise.
4990 * go-lang.c (go_language_data): Likewise.
4991 * language.c (language_defn::watch_location_expression): Member
4992 function implementation from c_watch_location_expression.
4993 (unknown_language_data): Delete la_watch_location_expression
4994 initializer.
4995 (auto_language_data): Likewise.
4996 * language.h (language_data): Delete la_watch_location_expression
4997 field.
4998 (language_defn::watch_location_expression): Declare new member
4999 function.
5000 * m2-lang.c (m2_language_data): Delete
5001 la_watch_location_expression initializer.
5002 * objc-lang.c (objc_language_data): Likewise.
5003 * opencl-lang.c (opencl_language_data): Likewise.
5004 * p-lang.c (pascal_language_data): Likewise.
5005 * rust-lang.c (rust_watch_location_expression): Rename to
5006 rust_language::watch_location_expression.
5007 (rust_language_data): Delete la_watch_location_expression
5008 initializer.
5009 (rust_language::watch_location_expression): New member function,
5010 implementation from rust_watch_location_expression.
5011
7e56227d
AB
50122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5013
5014 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5015 ada_language::collect_symbol_completion_matches.
5016 (ada_language_data): Delete la_collect_symbol_completion_matches
5017 initializer.
5018 (ada_language::collect_symbol_completion_matches): New member
5019 function, implementation from
5020 ada_collect_symbol_completion_matches.
5021 * c-lang.c (c_language_data): Delete
5022 la_collect_symbol_completion_matches initializer.
5023 (cplus_language_data): Likewise.
5024 (asm_language_data): Likewise.
5025 (minimal_language_data): Likewise.
5026 * d-lang.c (d_language_data): Likewise.
5027 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5028 f_language::collect_symbol_completion_matches.
5029 (f_language_data): Delete la_collect_symbol_completion_matches
5030 initializer.
5031 (f_language::collect_symbol_completion_matches) New member
5032 function, implementation from f_collect_symbol_completion_matches.
5033 * go-lang.c (go_language_data): Delete
5034 la_collect_symbol_completion_matches initializer.
5035 * language.c (unknown_language_data): Likewise.
5036 (auto_language_data): Likewise.
5037 * language.h (language_data): Delete
5038 la_collect_symbol_completion_matches field.
5039 (language_defn::collect_symbol_completion_matches): New member
5040 function.
5041 * m2-lang.c (m2_language_data): Delete
5042 la_collect_symbol_completion_matches initializer.
5043 * objc-lang.c (objc_language_data): Likewise.
5044 * opencl-lang.c (opencl_language_data): Likewise.
5045 * p-lang.c (pascal_language_data): Likewise.
5046 * rust-lang.c (rust_language_data): Likewise.
5047 * symtab.c (default_collect_symbol_completion_matches): Delete.
5048 (collect_symbol_completion_matches): Update call to
5049 collect_symbol_completion_matches.
5050 (collect_symbol_completion_matches_type): Likewise.
5051 * symtab.h (default_collect_symbol_completion_matches): Delete
5052 declaration.
5053
53fc67f8
AB
50542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5055
5056 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5057 (ada_language_data): Delete la_word_break_characters initializer.
5058 (ada_language::word_break_characters): New member function.
5059 * c-lang.c (c_language_data): Delete la_word_break_characters
5060 initializer.
5061 (cplus_language_data): Likewise.
5062 (asm_language_data): Likewise.
5063 (minimal_language_data): Likewise.
5064 * completer.c: Update global comment.
5065 (advance_to_expression_complete_word_point): Update call to
5066 word_break_characters.
5067 (complete_files_symbols): Likewise.
5068 (complete_line_internal_1): Likewise.
5069 (default_completer_handle_brkchars): Likewise.
5070 (skip_quoted_chars): Likewise.
5071 * d-lang.c (d_language_data): Delete la_word_break_characters
5072 initializer.
5073 * f-lang.c (f_word_break_characters): Delete.
5074 (f_language_data): Delete la_word_break_characters initializer.
5075 (f_language::word_break_characters): New member function.
5076 * go-lang.c (go_language_data): Delete la_word_break_characters
5077 initializer.
5078 * language.c (unknown_language_data): Likewise.
5079 (auto_language_data): Likewise.
5080 * language.h (default_word_break_characters): Move declaration to
5081 earlier in the file.
5082 (language_data): Delete la_word_break_characters field.
5083 (language_defn::word_break_characters): New member function.
5084 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5085 initializer.
5086 * objc-lang.c (objc_language_data): Likewise.
5087 * opencl-lang.c (opencl_language_data): Likewise.
5088 * p-lang.c (pascal_language_data): Likewise.
5089 * rust-lang.c (rust_language_data): Likewise.
5090
c9debfb9
AB
50912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5092
5093 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5094 (ada_language_data): Delete la_get_symbol_name_matcher
5095 initializer.
5096 (language_defn::get_symbol_name_matcher_inner): New member
5097 function.
5098 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5099 initializer.
5100 (cplus_language_data): Likewise.
5101 (cplus_language::get_symbol_name_matcher_inner): New member
5102 function.
5103 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5104 (minimal_language_data): Likewise.
5105 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5106 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5107 initializer.
5108 * dictionary.c (iter_match_first_hashed): Update call to
5109 get_symbol_name_matcher.
5110 (iter_match_next_hashed): Likewise.
5111 (iter_match_next_linear): Likewise.
5112 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5113 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5114 initializer.
5115 (f_language::get_symbol_name_matcher_inner): New member function.
5116 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5117 initializer.
5118 * language.c (default_symbol_name_matcher): Update header comment,
5119 make static.
5120 (language_defn::get_symbol_name_matcher): New definition.
5121 (language_defn::get_symbol_name_matcher_inner): Likewise.
5122 (get_symbol_name_matcher): Delete.
5123 (unknown_language_data): Delete la_get_symbol_name_matcher
5124 initializer.
5125 (auto_language_data): Likewise.
5126 * language.h (language_data): Delete la_get_symbol_name_matcher
5127 field.
5128 (language_defn::get_symbol_name_matcher): New member function.
5129 (language_defn::get_symbol_name_matcher_inner): Likewise.
5130 (default_symbol_name_matcher): Delete declaration.
5131 * linespec.c (find_methods): Update call to
5132 get_symbol_name_matcher.
5133 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5134 initializer.
5135 * minsyms.c (lookup_minimal_symbol): Update call to
5136 get_symbol_name_matcher.
5137 (iterate_over_minimal_symbols): Likewise.
5138 * objc-lang.c (objc_language_data): Delete
5139 la_get_symbol_name_matcher initializer.
5140 * opencl-lang.c (opencl_language_data): Likewise.
5141 * p-lang.c (pascal_language_data): Likewise.
5142 * psymtab.c (psymbol_name_matches): Update call to
5143 get_symbol_name_matcher.
5144 * rust-lang.c (rust_language_data): Delete
5145 la_get_symbol_name_matcher initializer.
5146 * symtab.c (symbol_matches_search_name): Update call to
5147 get_symbol_name_matcher.
5148 (compare_symbol_name): Likewise.
5149
9a49ad8c
AB
51502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5151
5152 * ada-lang.c (ada_language_data): Delete la_compute_program
5153 initializer.
5154 * c-lang.c (c_language_data): Likewise.
5155 (c_language::compute_program): New member function.
5156 (cplus_language_data): Delete la_compute_program initializer.
5157 (cplus_language::compute_program): New member function.
5158 (asm_language_data): Delete la_compute_program initializer.
5159 (minimal_language_data): Likewise.
5160 * c-lang.h (c_compute_program): Update comment.
5161 (cplus_compute_program): Likewise.
5162 * compile/compile-c-support.c (c_compute_program): Likewise.
5163 (cplus_compute_program): Likewise.
5164 * compile/compile.c (compile_to_object): Update call to
5165 la_compute_program.
5166 * d-lang.c (d_language_data): Delete la_compute_program
5167 initializer.
5168 * f-lang.c (f_language_data): Likewise.
5169 * go-lang.c (go_language_data): Likewise.
5170 * language.c (unknown_language_data): Likewise.
5171 (auto_language_data): Likewise.
5172 * language.h (language_data): Delete la_compute_program field.
5173 (language_defn::compute_program): New member function.
5174 * m2-lang.c (m2_language_data): Delete la_compute_program
5175 initializer.
5176 * objc-lang.c (objc_language_data): Likewise.
5177 * opencl-lang.c (opencl_language_data): Likewise.
5178 * p-lang.c (pascal_language_data): Likewise.
5179 * rust-lang.c (rust_language_data): Likewise.
5180
eff93b4d
AB
51812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5182
5183 * ada-lang.c (ada_language_data) Delete
5184 la_class_name_from_physname initializer.
5185 * c-lang.c (c_language_data): Likewise.
5186 (cplus_language_data): Likewise.
5187 (cplus_language::class_name_from_physname): New member function.
5188 (asm_language_data): Delete la_class_name_from_physname
5189 initializer.
5190 (minimal_language_data): Likewise.
5191 * d-lang.c (d_language_data): Likewise.
5192 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5193 method on language_defn class.
5194 (guess_full_die_structure_name): Likewise.
5195 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5196 initializer.
5197 * go-lang.c (go_language_data): Likewise.
5198 * language.c (language_class_name_from_physname): Delete.
5199 (unk_lang_class_name): Delete.
5200 (unknown_language_data): Delete la_class_name_from_physname
5201 initializer.
5202 (auto_language_data): Likewise.
5203 * language.h (language_data): Delete la_class_name_from_physname
5204 field.
5205 (language_defn::class_name_from_physname): New function.
5206 (language_class_name_from_physname): Delete declaration.
5207 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5208 initializer.
5209 * objc-lang.c (objc_language_data): Likewise.
5210 * opencl-lang.c (opencl_language_data): Likewise.
5211 * p-lang.c (pascal_language_data): Likewise.
5212 * rust-lang.c (rust_language_data): Likewise.
5213
de543742
TT
52142020-06-16 Tom Tromey <tom@tromey.com>
5215
5216 * tui/tui-data.h (STATUS_NAME): New macro.
5217 * tui/tui-layout.c (tui_remove_some_windows)
5218 (initialize_known_windows, tui_register_window)
5219 (tui_layout_split::remove_windows, initialize_layouts)
5220 (tui_new_layout_command): Don't use hard-coded window names.
5221
a350efd4
TT
52222020-06-16 Tom Tromey <tom@tromey.com>
5223
5224 PR tui/25348:
5225 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5226 tui_initialize_readline. Only run once. Call rl_initialize.
5227 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5228 tui_initialize_readline.
5229 * tui/tui-io.c (tui_setup_io): Call
5230 tui_ensure_readline_initialized.
5231 * tui/tui-interp.c (tui_interp::init): Update.
5232
39ec0490
TT
52332020-06-16 Tom Tromey <tom@tromey.com>
5234
5235 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5236 Also preserve the status window.
5237
d2d1ea20
TT
52382020-06-16 Tom Tromey <tom@tromey.com>
5239
5240 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5241 where m_window==nullptr.
5242
66920317
TT
52432020-06-15 Tom Tromey <tromey@adacore.com>
5244
5245 * windows-nat.c (windows_nat::handle_output_debug_string):
5246 Update.
5247 (windows_nat::handle_ms_vc_exception): Update.
5248 * target.h (target_read_string): Change API.
5249 * target.c (target_read_string): Change API.
5250 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5251 Update.
5252 * solib-frv.c (frv_current_sos): Update.
5253 * solib-dsbt.c (dsbt_current_sos): Update.
5254 * solib-darwin.c (darwin_current_sos): Update.
5255 * linux-thread-db.c (inferior_has_bug): Update.
5256 * expprint.c (print_subexp_standard): Update.
5257 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5258 (ada_exception_message_1): Update.
5259
a5d871dd
TT
52602020-06-15 Tom Tromey <tromey@adacore.com>
5261
5262 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5263
670e35fa
TT
52642020-06-15 Tom Tromey <tromey@adacore.com>
5265
5266 * valprint.c (read_string): Update comment.
5267 * target.c (MIN): Remove.
5268 (target_read_string): Rewrite.
5269
f5272a3b
TT
52702020-06-15 Tom Tromey <tromey@adacore.com>
5271
5272 * corefile.c (read_memory_string): Remove.
5273 * ada-valprint.c (ada_value_print_ptr): Update.
5274 * ada-lang.h (ada_tag_name): Change return type.
5275 * ada-lang.c (type_from_tag): Update.
5276 (ada_tag_name_from_tsd): Change return type. Use
5277 target_read_string.
5278 (ada_tag_name): Likewise.
5279 * gdbcore.h (read_memory_string): Don't declare.
5280
2c074f49
HD
52812020-06-14 Hannes Domani <ssbssa@yahoo.de>
5282
5283 * symtab.c (rbreak_command): Ignore Windows drive colon.
5284
6a17d503
SM
52852020-06-12 Simon Marchi <simon.marchi@efficios.com>
5286
5287 * NEWS: Mention removed GDBserver host support.
5288
453c733f
NC
52892020-06-12 Nelson Chu <nelson.chu@sifive.com>
5290
5291 * features/riscv/rebuild-csr-xml.sh: Updated.
5292
2b4e6a3f
TT
52932020-06-11 Tom Tromey <tom@tromey.com>
5294
5295 PR gdb/18318:
5296 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5297
4412332f
JG
52982020-06-09 Jonny Grant <jg@jguk.org>
52992020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5300
5301 * main.c (captured_main_1): Don't print new line after help.
5302 (print_gdb_help): add mailing list and IRC channel information
5303 to --help. Add new lines between items in the footer. Remove
5304 quotes around bug url.
5305
2f33032a
KS
53062020-06-11 Keith Seitz <keiths@redhat.com>
5307
5308 PR gdb/21356
5309 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5310 Resolve typedefs for type length calculations.
5311
7ab96794
TV
53122020-06-10 Tom de Vries <tdevries@suse.de>
5313
5314 PR ada/24713
5315 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5316 (write_psymbols): Enable .gdb_index for ada.
5317 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5318 ada.
5319
e5f3ece2
TV
53202020-06-10 Tom de Vries <tdevries@suse.de>
5321
5322 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5323 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5324 namei" instead of "const char *name" argument.
5325 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5326 dw2_symtab_iter_init.
5327
940da03e
SM
53282020-06-08 Simon Marchi <simon.marchi@efficios.com>
5329
5330 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5331 to use type::field and field::type instead.
5332
b6cdac4b
SM
53332020-06-08 Simon Marchi <simon.marchi@efficios.com>
5334
5335 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5336 to use field::type instead.
5337
5d14b6e5
SM
53382020-06-08 Simon Marchi <simon.marchi@efficios.com>
5339
5340 * gdbtypes.h (struct field) <type, set_type>: New methods.
5341 Rename `type` field to...
5342 <m_type>: ... this. Change references throughout to use type or
5343 set_type methods.
5344 (FIELD_TYPE): Use field::type. Change call sites that modify
5345 the field's type to use field::set_type instead.
5346
3d967001
SM
53472020-06-08 Simon Marchi <simon.marchi@efficios.com>
5348
5349 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5350 to use type::index_type instead.
5351
262abc0d
SM
53522020-06-08 Simon Marchi <simon.marchi@efficios.com>
5353
5354 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5355 methods.
5356 (TYPE_INDEX_TYPE): Use type::index_type.
5357 * gdbtypes.c (create_array_type_with_stride): Likewise.
5358
82836c92
TT
53592020-06-07 Tom Tromey <tom@tromey.com>
5360
5361 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5362 parameter.
5363 (generic_value_print): Update.
5364
940dace9
AB
53652020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5366
5367 Revert commit 982a38f60b0.
5368 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5369
982a38f6
AB
53702020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5371
5372 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5373 avoid use after free.
5374
82f06518
TV
53752020-06-05 Tom de Vries <tdevries@suse.de>
5376
5377 * NEWS: Fix typos.
5378
f8c41851
SM
53792020-06-04 Simon Marchi <simon.marchi@efficios.com>
5380
5381 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5382 the per_bfd object.
5383 (dwarf2_read_debug_names): Likewise.
5384 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5385 object when re-using a per_bfd object with an index.
5386
f9b5d5ea
TV
53872020-06-03 Tom de Vries <tdevries@suse.de>
5388
5389 PR symtab/26046
5390 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5391 children for C++.
5392 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5393 DW_TAG_subprogram.
5394
f6eee2d0
AB
53952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5396
5397 * ada-lang.c (ada_language_data): Delete skip_trampoline
5398 initializer.
5399 * c-lang.c (c_language_data): Likewise.
5400 (cplus_language_data): Likewise.
5401 (cplus_language::skip_trampoline): New member function.
5402 (asm_language_data): Delete skip_trampoline initializer.
5403 (minimal_language_data): Likewise.
5404 * d-lang.c (d_language_data): Likewise.
5405 * f-lang.c (f_language_data): Likewise.
5406 * go-lang.c (go_language_data): Likewise.
5407 * language.c (unk_lang_trampoline): Delete function.
5408 (skip_language_trampoline): Update.
5409 (unknown_language_data): Delete skip_trampoline initializer.
5410 (auto_language_data): Likewise.
5411 * language.h (language_data): Delete skip_trampoline field.
5412 (language_defn::skip_trampoline): New function.
5413 * m2-lang.c (m2_language_data): Delete skip_trampoline
5414 initializer.
5415 * objc-lang.c (objc_skip_trampoline): Delete function, move
5416 implementation to objc_language::skip_trampoline.
5417 (objc_language_data): Delete skip_trampoline initializer.
5418 (objc_language::skip_trampoline): New member function with
5419 implementation from objc_skip_trampoline.
5420 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5421 initializer.
5422 * p-lang.c (pascal_language_data): Likewise.
5423 * rust-lang.c (rust_language_data): Likewise.
5424
0a50df5d
AB
54252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5426
5427 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5428 (ada_language::demangle): New member function.
5429 * c-lang.c (c_language_data): Delete la_demangle initializer.
5430 (cplus_language_data): Delete la_demangle initializer.
5431 (cplus_language::demangle): New member function.
5432 (asm_language_data): Delete la_demangle initializer.
5433 (minimal_language_data): Delete la_demangle initializer.
5434 * d-lang.c (d_language_data): Delete la_demangle initializer.
5435 (d_language::demangle): New member function.
5436 * f-lang.c (f_language_data): Delete la_demangle initializer.
5437 (f_language::demangle): New member function.
5438 * go-lang.c (go_language_data): Delete la_demangle initializer.
5439 (go_language::demangle): New member function.
5440 * language.c (language_demangle): Update.
5441 (unk_lang_demangle): Delete.
5442 (unknown_language_data): Delete la_demangle initializer.
5443 (unknown_language::demangle): New member function.
5444 (auto_language_data): Delete la_demangle initializer.
5445 (auto_language::demangle): New member function.
5446 * language.h (language_data): Delete la_demangle field.
5447 (language_defn::demangle): New function.
5448 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5449 * objc-lang.c (objc_language_data): Delete la_demangle
5450 initializer.
5451 (objc_language::demangle): New member function.
5452 * opencl-lang.c (opencl_language_data): Delete la_demangle
5453 initializer.
5454 * p-lang.c (pascal_language_data): Likewise.
5455 * rust-lang.c (rust_language_data): Likewise.
5456 (rust_language::demangle): New member function.
5457
fbfb0a46
AB
54582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5459
5460 * ada-lang.c (ada_language_data): Delete la_print_type
5461 initializer.
5462 (ada_language::print_type): New member function.
5463 * c-lang.c (c_language_data): Delete la_print_type initializer.
5464 (c_language::print_type): New member function.
5465 (cplus_language_data): Delete la_print_type initializer.
5466 (cplus_language::print_type): New member function.
5467 (asm_language_data): Delete la_print_type initializer.
5468 (asm_language::print_type): New member function.
5469 (minimal_language_data): Delete la_print_type initializer.
5470 (minimal_language::print_type): New member function.
5471 * d-lang.c (d_language_data): Delete la_print_type initializer.
5472 (d_language::print_type): New member function.
5473 * f-lang.c (f_language_data): Delete la_print_type initializer.
5474 (f_language::print_type): New member function.
5475 * go-lang.c (go_language_data): Delete la_print_type initializer.
5476 (go_language::print_type): New member function.
5477 * language.c (unk_lang_print_type): Delete.
5478 (unknown_language_data): Delete la_print_type initializer.
5479 (unknown_language::print_type): New member function.
5480 (auto_language_data): Delete la_print_type initializer.
5481 (auto_language::print_type): New member function.
5482 * language.h (language_data): Delete la_print_type field.
5483 (language_defn::print_type): New function.
5484 (LA_PRINT_TYPE): Update.
5485 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5486 (m2_language::print_type): New member function.
5487 * objc-lang.c (objc_language_data): Delete la_print_type
5488 initializer.
5489 (objc_language::print_type): New member function.
5490 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5491 to opencl_language::print_type.
5492 (opencl_language_data): Delete la_print_type initializer.
5493 (opencl_language::print_type): New member function, implementation
5494 from opencl_print_type.
5495 * p-lang.c (pascal_language_data): Delete la_print_type
5496 initializer.
5497 (pascal_language::print_type): New member function.
5498 * rust-lang.c (rust_print_type): Delete, implementation moved to
5499 rust_language::print_type.
5500 (rust_language_data): Delete la_print_type initializer.
5501 (rust_language::print_type): New member function, implementation
5502 from rust_print_type.
5503
6f827019
AB
55042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5505
5506 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5507 implementation moves to...
5508 (ada_language::sniff_from_mangled_name): ...here. Update return
5509 type.
5510 (ada_language_data): Delete la_sniff_from_mangled_name
5511 initializer.
5512 * c-lang.c (c_language_data): Likewise.
5513 (cplus_language_data): Likewise.
5514 (cplus_language::sniff_from_mangled_name): New member function,
5515 implementation taken from gdb_sniff_from_mangled_name.
5516 (asm_language_data): Delete la_sniff_from_mangled_name
5517 initializer.
5518 (minimal_language_data): Likewise.
5519 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5520 implementation moves to cplus_language::sniff_from_mangled_name.
5521 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5522 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5523 moves to...
5524 (d_language::sniff_from_mangled_name): ...here.
5525 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5526 * f-lang.c (f_language_data): Likewise.
5527 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5528 moves to...
5529 (go_language::sniff_from_mangled_name): ...here.
5530 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5531 * language.c (language_sniff_from_mangled_name): Delete.
5532 (unknown_language_data): Delete la_sniff_from_mangled_name
5533 initializer.
5534 (auto_language_data): Likewise.
5535 * language.h (language_data): Delete la_sniff_from_mangled_name
5536 field.
5537 (language_defn::sniff_from_mangled_name): New function.
5538 (language_sniff_from_mangled_name): Delete declaration.
5539 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5540 field.
5541 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5542 implementation moves to...
5543 (objc_language::sniff_from_mangled_name): ...here.
5544 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5545 * opencl-lang.c (opencl_language_data): Likewise.
5546 * p-lang.c (pascal_language_data): Likewise.
5547 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5548 implementation moves to...
5549 (rust_language::sniff_from_mangled_name): ...here.
5550 (rust_language_data): Delete la_sniff_from_mangled_name
5551 initializer.
5552 * symtab.c (symbol_find_demangled_name): Call
5553 sniff_from_mangled_name member function.
5554
fb8006fd
AB
55552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5556
5557 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5558 initializer.
5559 * c-lang.c (c_language_data): Likewise.
5560 (cplus_language_data): Likewise.
5561 (cplus_language::search_name_hash): New member function.
5562 (asm_language_data): Delete la_search_name_hash initializer.
5563 (minimal_language_data): Likewise.
5564 * d-lang.c (d_language_data): Likewise.
5565 * dictionary.c (default_search_name_hash): Rename to...
5566 (language_defn::search_name_hash): ...this.
5567 * f-lang.c (f_language_data): Likewise.
5568 (f_language::search_name_hash): New member function.
5569 * go-lang.c (go_language_data): Delete la_search_name_hash
5570 initializer.
5571 * language.c (unknown_language_data): Likewise.
5572 (auto_language_data): Likewise.
5573 * language.h (struct language_data): Delete la_search_name_hash
5574 field.
5575 (language_defn::search_name_hash): Declare new member function.
5576 (default_search_name_hash): Delete declaration.
5577 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5578 initializer.
5579 * objc-lang.c (objc_language_data): Likewise.
5580 * opencl-lang.c (opencl_language_data): Likewise.
5581 * p-lang.c (pascal_language_data): Likewise.
5582 * rust-lang.c (rust_language_data): Likewise.
5583 * symtab.c (search_name_hash): Update call.
5584
8e25bafe
AB
55852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5586
5587 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5588 initializer.
5589 * c-lang.c (class compile_instance): Declare.
5590 (c_language_data): Delete la_get_compile_instance initializer.
5591 (c_language::get_compile_instance): New member function.
5592 (cplus_language_data): Delete la_get_compile_instance initializer.
5593 (cplus_language::get_compile_instance): New member function.
5594 (asm_language_data): Delete la_get_compile_instance initializer.
5595 (minimal_language_data): Likewise.
5596 * c-lang.h (c_get_compile_context): Update comment.
5597 (cplus_get_compile_context): Update comment.
5598 * compile/compile.c (compile_to_object): Update calls, don't rely
5599 on function pointer being NULL.
5600 * d-lang.c (d_language_data): Delete la_get_compile_instance
5601 initializer.
5602 * f-lang.c (f_language_data): Likewise.
5603 * go-lang.c (go_language_data): Likewise.
5604 * language.c (unknown_language_data): Likewise.
5605 (auto_language_data): Likewise.
5606 * language.h (language_data): Delete la_get_compile_instance field.
5607 (language_defn::get_compile_instance): New member function.
5608 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5609 initializer.
5610 * objc-lang.c (objc_language_data): Likewise.
5611 * opencl-lang.c (opencl_language_data): Likewise.
5612 * p-lang.c (pascal_language_data): Likewise.
5613 * rust-lang.c (rust_language_data): Likewise.
5614
4009ee92
AB
56152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5616
5617 * ada-lang.c (ada_add_all_symbols): Update comment.
5618 (ada_iterate_over_symbols): Delete, move implementation to...
5619 (ada_language::iterate_over_symbols): ...here, a new member
5620 function, rewrite to use range based for loop.
5621 (ada_language_data): Delete la_iterate_over_symbols initializer.
5622 * c-lang.c (c_language_data): Likewise.
5623 (cplus_language_data): Likewise.
5624 (asm_language_data): Likewise.
5625 (minimal_language_data): Likewise.
5626 * d-lang.c (d_language_data): Likewise.
5627 * f-lang.c (f_language_data): Likewise.
5628 * go-lang.c (go_language_data): Likewise.
5629 * language.c (unknown_language_data): Likewise.
5630 (auto_language_data): Likewise.
5631 * language.h (language_data): Delete la_iterate_over_symbols field.
5632 (language_defn::iterate_over_symbols): New member function.
5633 (LA_ITERATE_OVER_SYMBOLS): Update.
5634 * linespec.c (iterate_over_all_matching_symtabs): Update.
5635 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5636 initializer.
5637 * objc-lang.c (objc_language_data): Likewise.
5638 * opencl-lang.c (opencl_language_data): Likewise.
5639 * p-lang.c (pascal_language_data): Likewise.
5640 * rust-lang.c (rust_language_data): Likewise.
5641
54f4ca46
AB
56422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5643
5644 * ada-lang.c (ada_language_data): Delete
5645 la_lookup_transparent_type initializer.
5646 * c-lang.c (c_language_data): Likewise.
5647 (cplus_language_data): Likewise.
5648 (cplus_language::lookup_transparent_type): New member function.
5649 (asm_language_data): Delete la_lookup_transparent_type
5650 initializer.
5651 (minimal_language_data): Likewise.
5652 * d-lang.c (d_language_data): Likewise.
5653 * f-lang.c (f_language_data): Likewise.
5654 * go-lang.c (go_language_data): Likewise.
5655 * language.c (unknown_language_data): Likewise.
5656 (auto_language_data): Likewise.
5657 * language.h (struct language_data): Delete
5658 la_lookup_transparent_type field.
5659 (language_defn::lookup_transparent_type): New member function.
5660 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5661 initializer.
5662 * objc-lang.c (objc_language_data): Likewise.
5663 * opencl-lang.c (opencl_language_data): Likewise.
5664 * p-lang.c (pascal_language_data): Likewise.
5665 * rust-lang.c (rust_language_data): Likewise.
5666 * symtab.c (symbol_matches_domain): Update call.
5667
1fb314aa
AB
56682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5669
5670 * ada-lang.c (ada_language_arch_info): Delete function, move
5671 implementation to...
5672 (ada_language::language_arch_info): ...here, a new member
5673 function.
5674 (ada_language_data): Delete la_language_arch_info.
5675 * c-lang.c (c_language_data): Likewise.
5676 (c_language::language_arch_info): New member function.
5677 (cplus_language_arch_info): Delete function, move
5678 implementation to...
5679 (cplus_language::language_arch_info): ...here, a new member
5680 function.
5681 (cplus_language_data): Delete la_language_arch_info.
5682 (asm_language_data): Likewise.
5683 (asm_language::language_arch_info): New member function.
5684 (minimal_language_data): Delete la_language_arch_info.
5685 (minimal_language::language_arch_info): New member function.
5686 * d-lang.c (d_language_arch_info): Delete function, move
5687 implementation to...
5688 (d_language::language_arch_info): ...here, a new member
5689 function.
5690 (d_language_data): Delete la_language_arch_info.
5691 * f-lang.c (f_language_arch_info): Delete function, move
5692 implementation to...
5693 (f_language::language_arch_info): ...here, a new member
5694 function.
5695 (f_language_data): Delete la_language_arch_info.
5696 * go-lang.c (go_language_arch_info): Delete function, move
5697 implementation to...
5698 (go_language::language_arch_info): ...here, a new member
5699 function.
5700 (go_language_data): Delete la_language_arch_info.
5701 * language.c (unknown_language_data): Likewise.
5702 (unknown_language::language_arch_info): New member function.
5703 (auto_language_data): Delete la_language_arch_info.
5704 (auto_language::language_arch_info): New member function.
5705 (language_gdbarch_post_init): Update call to
5706 la_language_arch_info.
5707 * language.h (language_data): Delete la_language_arch_info
5708 function pointer.
5709 (language_defn::language_arch_info): New function.
5710 * m2-lang.c (m2_language_arch_info): Delete function, move
5711 implementation to...
5712 (m2_language::language_arch_info): ...here, a new member
5713 function.
5714 (m2_language_data): Delete la_language_arch_info.
5715 * objc-lang.c (objc_language_arch_info): Delete function, move
5716 implementation to...
5717 (objc_language::language_arch_info): ...here, a new member
5718 function.
5719 (objc_language_data): Delete la_language_arch_info.
5720 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5721 implementation to...
5722 (opencl_language::language_arch_info): ...here, a new member
5723 function.
5724 (opencl_language_data): Delete la_language_arch_info.
5725 * p-lang.c (pascal_language_arch_info): Delete function, move
5726 implementation to...
5727 (pascal_language::language_arch_info): ...here, a new member
5728 function.
5729 (pascal_language_data): Delete la_language_arch_info.
5730 * rust-lang.c (rust_language_arch_info): Delete function, move
5731 implementation to...
5732 (rust_language::language_arch_info): ...here, a new member
5733 function.
5734 (rust_language_data): Delete la_language_arch_info.
5735
48448202
AB
57362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5737
5738 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5739 initializer.
5740 * c-lang.c (c_language_data): Likewise.
5741 (cplus_language_data): Likewise.
5742 (cplus_language::pass_by_reference_info): New method.
5743 (asm_language_data): Delete la_pass_by_reference initializer.
5744 (minimal_language_data): Likewise.
5745 * cp-abi.c (cp_pass_by_reference): Remove use of
5746 default_pass_by_reference.
5747 * d-lang.c (d_language_data): Likewise.
5748 * f-lang.c (f_language_data): Likewise.
5749 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5750 default_pass_by_reference.
5751 * go-lang.c (go_language_data): Likewise.
5752 * language.c (language_pass_by_reference): Update.
5753 (default_pass_by_reference): Delete.
5754 (unknown_language_data): Delete la_pass_by_reference
5755 initializer.
5756 (auto_language_data): Likewise.
5757 * language.h (struct language_data): Delete la_pass_by_reference
5758 field.
5759 (language_defn::pass_by_reference_info): New member function.
5760 (default_pass_by_reference): Delete declaration.
5761 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5762 initializer.
5763 * objc-lang.c (objc_language_data): Likewise.
5764 * opencl-lang.c (opencl_language_data): Likewise.
5765 * p-lang.c (pascal_language_data): Likewise.
5766 * rust-lang.c (rust_language_data): Likewise.
5767
15e5fd35
AB
57682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5769
5770 * ada-lang.c (ada_read_var_value): Delete function, move
5771 implementation to...
5772 (ada_language::read_var_value): ...here.
5773 (ada_language_data): Delete la_read_var_value initializer.
5774 * c-lang.c (c_language_data): Likewise.
5775 (cplus_language_data): Likewise.
5776 (minimal_language_data): Likewise.
5777 * d-lang.c (d_language_data): Likewise.
5778 * f-lang.c (f_language_data): Likewise.
5779 * findvar.c (default_read_var_value): Rename to...
5780 (language_defn::read_var_value): ...this.
5781 * findvar.c (read_var_value): Update header comment, and change to
5782 call member function instead of function pointer.
5783 * go-lang.c (go_language_data): Likewise.
5784 * language.c (unknown_language_data): Delete la_read_var_value
5785 initializer.
5786 (auto_language_data): Likewise.
5787 * language.h (struct language_data): Delete la_read_var_value
5788 field.
5789 (language_defn::read_var_value): New member function.
5790 (default_read_var_value): Delete declaration.
5791 * m2-lang.c (m2_language_data): Delete la_read_var_value
5792 initializer.
5793 * objc-lang.c (objc_language_data): Likewise.
5794 * opencl-lang.c (opencl_language_data): Likewise.
5795 * p-lang.c (pascal_language_data): Likewise.
5796 * rust-lang.c (rust_language_data): Likewise.
5797 * value.h (default_read_var_value): Delete declaration.
5798
5bd40f2a
AB
57992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5800
5801 * ada-lang.c (ada_print_array_index): Delete function, move
5802 implementation to...
5803 (ada_language::print_array_index): ...here.
5804 (ada_language_data): Delete la_print_array_index initializer.
5805 * c-lang.c (c_language_data): Likewise.
5806 (cplus_language_data): Likewise.
5807 (minimal_language_data): Likewise.
5808 * d-lang.c (d_language_data): Likewise.
5809 * f-lang.c (f_language_data): Likewise.
5810 * go-lang.c (go_language_data): Likewise.
5811 * language.c (default_print_array_index): Delete function, move
5812 implementation to...
5813 (language_defn::print_array_index): ...here.
5814 (unknown_language_data): Delete la_print_array_index initializer.
5815 (auto_language_data): Likewise.
5816 * language.h (struct language_data): Delete la_print_array_index
5817 field.
5818 (language_defn::print_array_index): New member function.
5819 (LA_PRINT_ARRAY_INDEX): Update.
5820 (default_print_array_index): Delete declaration.
5821 * m2-lang.c (m2_language_data): Delete la_print_array_index
5822 initializer.
5823 * objc-lang.c (objc_language_data): Likewise.
5824 * opencl-lang.c (opencl_language_data): Likewise.
5825 * p-lang.c (pascal_language_data): Likewise.
5826 * rust-lang.c (rust_language_data): Likewise.
5827
0874fd07
AB
58282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5829
5830 * gdb/ada-lang.c (ada_language_defn): Convert to...
5831 (ada_language_data): ...this.
5832 (class ada_language): New class.
5833 (ada_language_defn): New static global.
5834 * gdb/c-lang.c (c_language_defn): Convert to...
5835 (c_language_data): ...this.
5836 (class c_language): New class.
5837 (c_language_defn): New static global.
5838 (cplus_language_defn): Convert to...
5839 (cplus_language_data): ...this.
5840 (class cplus_language): New class.
5841 (cplus_language_defn): New static global.
5842 (asm_language_defn): Convert to...
5843 (asm_language_data): ...this.
5844 (class asm_language): New class.
5845 (asm_language_defn): New static global.
5846 (minimal_language_defn): Convert to...
5847 (minimal_language_data): ...this.
5848 (class minimal_language): New class.
5849 (minimal_language_defn): New static global.
5850 * gdb/d-lang.c (d_language_defn): Convert to...
5851 (d_language_data): ...this.
5852 (class d_language): New class.
5853 (d_language_defn): New static global.
5854 * gdb/f-lang.c (f_language_defn): Convert to...
5855 (f_language_data): ...this.
5856 (class f_language): New class.
5857 (f_language_defn): New static global.
5858 * gdb/go-lang.c (go_language_defn): Convert to...
5859 (go_language_data): ...this.
5860 (class go_language): New class.
5861 (go_language_defn): New static global.
5862 * gdb/language.c (unknown_language_defn): Remove declaration.
5863 (current_language): Initialize to nullptr, real initialization is
5864 moved to _initialize_language.
5865 (languages): Delete global.
5866 (language_defn::languages): Define.
5867 (set_language_command): Use language_defn::languages.
5868 (set_language): Likewise.
5869 (range_error): Likewise.
5870 (language_enum): Likewise.
5871 (language_def): Likewise.
5872 (add_set_language_command): Use language_def::languages for the
5873 language list, and language_def to lookup language pointers.
5874 (skip_language_trampoline): Use language_defn::languages.
5875 (unknown_language_defn): Convert to...
5876 (unknown_language_data): ...this.
5877 (class unknown_language): New class.
5878 (unknown_language_defn): New static global.
5879 (auto_language_defn): Convert to...
5880 (auto_language_data): ...this.
5881 (class auto_language): New class.
5882 (auto_language_defn): New static global.
5883 (language_gdbarch_post_init): Use language_defn::languages.
5884 (_initialize_language): Initialize current_language.
5885 * gdb/language.h (struct language_defn): Rename to...
5886 (struct language_data): ...this.
5887 (struct language_defn): New.
5888 (auto_language_defn): Delete.
5889 (unknown_language_defn): Delete.
5890 (minimal_language_defn): Delete.
5891 (ada_language_defn): Delete.
5892 (asm_language_defn): Delete.
5893 (c_language_defn): Delete.
5894 (cplus_language_defn): Delete.
5895 (d_language_defn): Delete.
5896 (f_language_defn): Delete.
5897 (go_language_defn): Delete.
5898 (m2_language_defn): Delete.
5899 (objc_language_defn): Delete.
5900 (opencl_language_defn): Delete.
5901 (pascal_language_defn): Delete.
5902 (rust_language_defn): Delete.
5903 * gdb/m2-lang.c (m2_language_defn): Convert to...
5904 (m2_language_data): ...this.
5905 (class m2_language): New class.
5906 (m2_language_defn): New static global.
5907 * gdb/objc-lang.c (objc_language_defn): Convert to...
5908 (objc_language_data): ...this.
5909 (class objc_language): New class.
5910 (objc_language_defn): New static global.
5911 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5912 (opencl_language_data): ...this.
5913 (class opencl_language): New class.
5914 (opencl_language_defn): New static global.
5915 * gdb/p-lang.c (pascal_language_defn): Convert to...
5916 (pascal_language_data): ...this.
5917 (class pascal_language): New class.
5918 (pascal_language_defn): New static global.
5919 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5920 language pointer, update comment format.
5921 * gdb/rust-lang.c (rust_language_defn): Convert to...
5922 (rust_language_data): ...this.
5923 (class rust_language): New class.
5924 (rust_language_defn): New static global.
5925
1313c56e
AB
59262020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5927
5928 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5929 member variable.
5930 <m_stmt_at_address>: New member variable.
5931 (lnp_state_machine::record_line): Don't record some lines, update
5932 tracking of is_stmt at the same address.
5933 (lnp_state_machine::lnp_state_machine): Initialise new member
5934 variables.
5935
b7ed9f3d
ST
59362020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5937
5938 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5939 "-include gnu-nat-mig.h".
5940 * gnu-nat-mig.h: New file.
5941 * gnu-nat.c: Include "gnu-nat-mig.h".
5942 (exc_server, msg_reply_server, notify_server,
5943 process_reply_server): Remove declarations.
5944
14a8ad62
ST
59452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5946
5947 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5948 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5949 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5950 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5951 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5952 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5953 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5954 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5955 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5956 to gnu_nat_target class.
5957 * gnu-nat.c: Likewise.
5958 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5959 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5960 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5961 object.
5962 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5963 instead of `gnu_target'.
5964
0af5e106
ST
59652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5966
5967 * i386-gnu-tdep.c: Include "gdbcore.h"
5968 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5969 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5970 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5971 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5972 i386_gnu_sigcontext_addr): New functions
5973 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5974 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5975 tdep.
5976
078f2fc9
ST
59772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5978
5979 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5980 before fork_inferior call. Avoid calling it if target_is_pushed returns
5981 true.
5982
53dff92c
ST
59832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5984
5985 * gnu-nat.h (gnu_target): New variable declaration.
5986 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5987 gnu_target.
5988 * gnu-nat.c (gnu_target): New variable.
5989 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5990 add_thread_silent, and add_thread calls.
5991 (gnu_nat_target::create_inferior): Pass gnu_target to
5992 add_thread_silent, thread_change_ptid call.
5993 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5994 call.
5995
5a8b8627
ST
59962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5997
5998 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5999 (gnu_nat_target::find_memory_regions): Remove unused
6000 `old_address' variable.
6001
366f550a
ST
60022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6003
6004 * gnu-nat.c: Include "gdbarch.h".
6005
f14871bf
ST
60062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6007
6008 * reply_mig_hack.awk (Error return): Cast function through
6009 void *, to bypass compiler function call check.
6010
c6887cfb
ST
60112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6012
6013 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6014 $(srcdir)/reply_mig_hack.awk.
6015
6930bffe
ST
60162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6017
6018 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6019
112c22ed
JG
60202020-05-30 Jonny Grant <jg@jguk.org>
6021
6022 * configure.ac (ACX_BUGURL): change bug URL to https.
6023
f68f85b5
PA
60242020-05-30 Pedro Alves <palves@redhat.com>
6025
6026 * cp-support.c (replace_typedefs_template): New.
6027 (replace_typedefs_qualified_name): Handle
6028 DEMANGLE_COMPONENT_TEMPLATE.
6029
976ca316
SM
60302020-05-29 Simon Marchi <simon.marchi@efficios.com>
6031
6032 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6033 dwarf2/index-cache.h, dwarf2/index-write.c,
6034 dwarf2/index-write.h, dwarf2/line-header.c,
6035 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6036 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6037 variables and fields from `dwarf2_per_objfile` to just
6038 `per_objfile` throughout.
6039
989ade05
SM
60402020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6041
6042 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6043 <push_dwarf_reg_entry_value>: Add comment.
6044
c47bae85
KB
60452020-05-28 Kevin Buettner <kevinb@redhat.com>
6046 Keith Seitz <keiths@redhat.com>
6047
6048 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6049 instead of PyEval_ReleaseLock.
6050 (class gdbpy_gil): Move to earlier in file.
6051 (finalize_python): Set gdb_python_initialized.
6052 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6053 when not initialized.
6054
44486dcf
SM
60552020-05-28 Simon Marchi <simon.marchi@efficios.com>
6056
6057 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6058 <push_dwarf_reg_entry_value>: Remove assert. Override
6059 per_objfile with caller_per_objfile.
6060
f030440d
TV
60612020-05-28 Tom de Vries <tdevries@suse.de>
6062
6063 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6064 PR gold/15646 workaround to symbol kind "type".
6065
f0fbb768
TT
60662020-05-27 Tom Tromey <tromey@adacore.com>
6067
6068 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6069
af0b2a3e
TT
60702020-05-27 Tom Tromey <tromey@adacore.com>
6071
6072 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6073 Use htab_find_with_hash.
6074 <add_abbrev>: Remove "abbrev_number" parameter.
6075 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6076 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6077 (hash_abbrev): Add comment.
6078 (abbrev_table::lookup_abbrev): Move to header file.
6079 (abbrev_table::read): Update.
6080
7d00ffec
TT
60812020-05-27 Tom Tromey <tromey@adacore.com>
6082
6083 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6084 method.
6085 <canonical_name>: New member.
6086 <raw_name>: Rename from "name".
6087 (partial_die_info): Initialize canonical_name.
6088 (scan_partial_symbols): Check raw_name.
6089 (partial_die_parent_scope, partial_die_full_name)
6090 (add_partial_symbol, add_partial_subprogram)
6091 (add_partial_enumeration, load_partial_dies): Use "name" method.
6092 (partial_die_info::name): New method.
6093 (partial_die_info::read, guess_partial_die_structure_name)
6094 (partial_die_info::fixup): Update.
6095
697bba18
TT
60962020-05-27 Tom Tromey <tromey@adacore.com>
6097
6098 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6099 <get_ref_die_offset>: Inline.
6100 <get_ref_die_offset_complaint>: New method.
6101 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6102 (attribute::get_ref_die_offset_complaint): Rename from
6103 get_ref_die_offset. Just issue complaint.
6104
c17ace43
HD
61052020-05-27 Hannes Domani <ssbssa@yahoo.de>
6106
6107 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6108
96445f0b
HD
61092020-05-27 Hannes Domani <ssbssa@yahoo.de>
6110
6111 * exec.c (exec_file_attach): Use errno value of first openp failure.
6112
ac637ec3
HD
61132020-05-27 Hannes Domani <ssbssa@yahoo.de>
6114
6115 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6116 Don't close thread handle.
6117
17ee85fc
TT
61182020-05-27 Tom Tromey <tom@tromey.com>
6119 Simon Marchi <simon.marchi@efficios.com>
6120
6121 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6122 shared_ptr.
6123 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6124 member.
6125 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6126 dwarf2_per_bfd_objfile_data_key>: New globals.
6127 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6128 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6129 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6130 shared.
6131 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6132 short-circuit when sharing.
6133 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6134 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6135
39b16f87
SM
61362020-05-27 Simon Marchi <simon.marchi@efficios.com>
6137
6138 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6139 to...
6140 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6141 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6142
fcf23d5b
SM
61432020-05-27 Simon Marchi <simon.marchi@efficios.com>
6144
6145 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6146 build_name_components, find_name_components_bounds>:
6147 Add per_objfile parameter.
6148 (struct mapped_index) <symbol_name_at>: Likewise.
6149 (struct mapped_debug_names): Remove constructor.
6150 <dwarf2_per_objfile>: Remove field.
6151 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6152 (mapped_index_base::find_name_components_bounds,
6153 mapped_index_base::build_name_components,
6154 dw2_expand_symtabs_matching_symbol): Likewise.
6155 (class mock_mapped_index) <symbol_name_at>: Likewise.
6156 (check_match): Likewise.
6157 (check_find_bounds_finds): Likewise.
6158 (test_mapped_index_find_name_component_bounds): Update.
6159 (CHECK_MATCH): Update.
6160 (dw2_expand_symtabs_matching): Update.
6161 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6162 per_objfile parameter.
6163 <find_vec_in_debug_names>: Likewise.
6164 <m_per_objfile>: New field.
6165 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6166 parameter.
6167 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6168 (dw2_debug_names_iterator::next): Update.
6169 (dw2_debug_names_lookup_symbol): Update.
6170 (dw2_debug_names_expand_symtabs_for_function): Update.
6171 (dw2_debug_names_map_matching_symbols): Update.
6172 (dw2_debug_names_expand_symtabs_matching): Update.
6173 (dwarf2_read_debug_names): Update.
6174
7188ed02
SM
61752020-05-27 Simon Marchi <simon.marchi@efficios.com>
6176
6177 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6178 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6179 move to dwarf2_per_objfile.
6180 <read_in_chain>: Remove.
6181 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6182 remove_all_cus, age_comp_units>: New methods.
6183 <m_dwarf2_cus>: New member.
6184 (struct dwarf2_per_cu_data) <cu>: Remove.
6185 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6186 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6187 moved to methods of dwarf2_per_objfile.
6188 (dwarf2_clear_marks): Remove.
6189 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6190 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6191 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6192 (dwarf2_per_objfile::remove_all_cus): New.
6193 (class free_cached_comp_units) <~free_cached_comp_units>:
6194 Update.
6195 (load_cu): Update.
6196 (dw2_do_instantiate_symtab): Adjust.
6197 (fill_in_sig_entry_from_dwo_entry): Adjust.
6198 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6199 (cutu_reader::cutu_reader): Likewise.
6200 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6201 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6202 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6203 and dwarf2_per_objfile::age_comp_units.
6204 (load_partial_comp_unit): Update.
6205 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6206 (process_queue): Likewise.
6207 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6208 backlink.
6209 (dwarf2_read_addr_index): Likewise.
6210 (follow_die_offset): Likewise.
6211 (dwarf2_fetch_die_loc_sect_off): Likewise.
6212 (dwarf2_fetch_constant_bytes): Likewise.
6213 (dwarf2_fetch_die_type_sect_off): Likewise.
6214 (follow_die_sig_1): Likewise.
6215 (load_full_type_unit): Likewise.
6216 (read_signatured_type): Likewise.
6217 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6218 (dwarf2_cu::~dwarf2_cu): Remove.
6219 (dwarf2_per_objfile::get_cu): New.
6220 (dwarf2_per_objfile::set_cu): New.
6221 (age_cached_comp_units): Rename to...
6222 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6223 to std::unordered_map.
6224 (free_one_cached_comp_unit): Rename to...
6225 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6226 to std::unordered_map.
6227 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6228 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6229 a dwarf2_per_objfile in data.
6230 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6231 (dwarf2_clear_marks): Remove.
6232
2e671100
SM
62332020-05-27 Simon Marchi <simon.marchi@efficios.com>
6234
6235 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6236 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6237 (init_tu_and_read_dwo_dies): Likewise.
6238 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6239 (cutu_reader::cutu_reader): Likewise.
6240 (load_partial_comp_unit): Likewise.
6241 (process_psymtab_comp_unit): Update.
6242 (build_type_psymtabs_1): Update.
6243 (process_skeletonless_type_unit): Update.
6244 (load_full_comp_unit): Update.
6245 (find_partial_die): Update.
6246 (dwarf2_read_addr_index): Update.
6247 (read_signatured_type): Update.
6248
2e6a9f79
SM
62492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6250
6251 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6252 m_header_read_in>: New fields.
6253 <get_header>: New method.
6254 * dwarf2/read.c (per_cu_header_read_in): Remove.
6255 (dwarf2_per_cu_data::get_header): New.
6256 (dwarf2_per_cu_data::addr_size): Update.
6257 (dwarf2_per_cu_data::offset_size): Update.
6258 (dwarf2_per_cu_data::ref_addr_size): Update.
6259
1b555f17
SM
62602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6261
6262 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6263 (dw2_do_instantiate_symtab): Update.
6264 (queue_and_load_all_dwo_tus): Change parameter from
6265 dwarf2_per_cu_data to dwarf2_cu.
6266 (dwarf2_fetch_die_loc_sect_off): Update.
6267 (dwarf2_fetch_constant_bytes): Update.
6268 (dwarf2_fetch_die_type_sect_off): Update.
6269
8fc0b21d
SM
62702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6271
6272 * dwarf2/read.c (process_full_comp_unit,
6273 process_full_type_unit): Remove per_cu, per_objfile paramters.
6274 Add dwarf2_cu parameter.
6275 (process_queue): Update.
6276
168c9250
SM
62772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6278
6279 * dwarf2/read.c (create_cu_from_index_list): Replace
6280 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6281 (create_cus_from_index_list): Likewise.
6282 (create_cus_from_index): Likewise.
6283 (create_signatured_type_table_from_index): Likewise.
6284 (create_cus_from_debug_names_list): Likewise.
6285 (create_cus_from_debug_names): Likewise.
6286 (dwarf2_read_gdb_index): Update.
6287 (dwarf2_read_debug_names): Update.
6288
e286671b
TT
62892020-05-27 Tom Tromey <tom@tromey.com>
6290 Simon Marchi <simon.marchi@efficios.com>
6291
6292 * dwarf2/read.h (struct dwarf2_per_objfile)
6293 <get_type_for_signatured_type, set_type_for_signatured_type>:
6294 New methods.
6295 <m_type_map>: New member.
6296 (struct signatured_type) <type>: Remove.
6297 * dwarf2/read.c
6298 (dwarf2_per_objfile::get_type_for_signatured_type,
6299 dwarf2_per_objfile::set_type_for_signatured_type): New.
6300 (get_signatured_type): Use new methods.
6301
8adb8487
TT
63022020-05-27 Tom Tromey <tom@tromey.com>
6303 Simon Marchi <simon.marchi@efficios.com>
6304
6305 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6306 (struct dwarf2_per_objfile) <type_units>: New member.
6307 <get_type_unit_group_unshareable>: New method.
6308 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6309 num_symtabs, symtabs>: Remove; move to
6310 type_unit_group_unshareable.
6311 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6312 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6313 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6314
127bbf4b
SM
63152020-05-27 Simon Marchi <simon.marchi@efficios.com>
6316
6317 * dwarf2/read.h (struct dwarf2_per_cu_data):
6318 <dwarf2_per_objfile>: Remove.
6319 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6320 dwarf2_per_objfile.
6321 (create_signatured_type_table_from_index): Likewise.
6322 (create_signatured_type_table_from_debug_names): Likewise.
6323 (create_debug_type_hash_table): Likewise.
6324 (fill_in_sig_entry_from_dwo_entry): Likewise.
6325 (create_type_unit_group): Likewise.
6326 (read_comp_units_from_section): Likewise.
6327 (create_cus_hash_table): Likewise.
6328
f6e649dd
SM
63292020-05-27 Simon Marchi <simon.marchi@efficios.com>
6330
6331 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6332 dwarf2_per_cu_data::dwarf2_per_objfile.
6333 (compute_compunit_symtab_includes): Likewise.
6334 (dwarf2_cu::start_symtab): Likewise.
6335
aa66c379
SM
63362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6337
6338 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6339 parameter.
6340 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6341 (read_namespace_alias): Update.
6342 (lookup_die_type): Update.
6343 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6344 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6345 Update.
6346 (disassemble_dwarf_expression): Update.
6347
120ce1b5
SM
63482020-05-27 Simon Marchi <simon.marchi@efficios.com>
6349
6350 * dwarf2/read.h (struct dwarf2_queue_item): Add
6351 dwarf2_per_objfile parameter, assign new parameter.
6352 <per_objfile>: New field.
6353 * dwarf2/read.c (free_one_cached_comp_unit): Add
6354 dwarf2_per_objfile parameter.
6355 (queue_comp_unit): Likewise.
6356 (dw2_do_instantiate_symtab): Update.
6357 (process_psymtab_comp_unit): Update.
6358 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6359 (process_imported_unit_die): Update.
6360 (queue_and_load_dwo_tu): Update.
6361 (follow_die_offset): Update.
6362 (follow_die_sig_1): Update.
6363
9f47c707
SM
63642020-05-27 Simon Marchi <simon.marchi@efficios.com>
6365
6366 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6367 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6368 (read_call_site_scope): Assign per_objfile.
6369 (dwarf2_per_cu_data::objfile): Remove.
6370 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6371 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6372 dwarf2_per_objfile parameter.
6373 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6374 dwarf2_per_objfile parameter.
6375 (dwarf_expr_reg_to_entry_parameter): Add output
6376 dwarf2_per_objfile parameter.
6377 (locexpr_get_frame_base): Update.
6378 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6379 <push_dwarf_reg_entry_value>: Update.
6380 <call_site_to_target_addr>: Update.
6381 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6382 parameter.
6383 (value_of_dwarf_reg_entry): Update.
6384 (rw_pieced_value): Update.
6385 (indirect_synthetic_pointer): Update.
6386 (dwarf2_evaluate_property): Update.
6387 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6388 parameter.
6389 (locexpr_read_variable): Update.
6390 (locexpr_get_symbol_read_needs): Update.
6391 (loclist_read_variable): Update.
6392
14095eb3
SM
63932020-05-27 Simon Marchi <simon.marchi@efficios.com>
6394
6395 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6396 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6397 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6398 parameter.
6399 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6400 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6401 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6402 parameter.
6403 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6404 sect_variable_value): Add dwarf2_per_objfile parameter.
6405 (class dwarf_evaluate_loc_desc) <dwarf_call,
6406 dwarf_variable_value>: Update.
6407 (fetch_const_value_from_synthetic_pointer): Add
6408 dwarf2_per_objfile parameter.
6409 (fetch_const_value_from_synthetic_pointer): Update.
6410 (coerced_pieced_ref): Update.
6411 (class symbol_needs_eval_context) <dwarf_call,
6412 dwarf_variable_value>: Update.
6413 (dwarf2_compile_expr_to_ax): Update.
6414
3c3cd3d4
SM
64152020-05-27 Simon Marchi <simon.marchi@efficios.com>
6416
6417 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6418 parameter.
6419 (dwarf2_evaluate_loc_desc_full): Update.
6420
82ca3f51
SM
64212020-05-27 Simon Marchi <simon.marchi@efficios.com>
6422
6423 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6424 parameter.
6425 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6426 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6427 dwarf2_per_objfile parameter.
6428 (decode_debug_loc_dwo_addresses): Likewise.
6429 (dwarf2_find_location_expression): Update.
6430 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6431 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6432 parameter.
6433 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6434 parameter.
6435 (locexpr_describe_location_1): Likewise.
6436 (locexpr_describe_location): Update.
6437
4b167ea1
SM
64382020-05-27 Simon Marchi <simon.marchi@efficios.com>
6439
6440 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6441 Remove.
6442 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6443 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6444 (dwarf2_compile_property_to_c): Update.
6445 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6446 use text offset from objfile.
6447 (locexpr_tracepoint_var_ref): Update.
6448 (locexpr_generate_c_location): Update.
6449 (loclist_describe_location): Update.
6450 (loclist_tracepoint_var_ref): Update.
6451 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6452 dwarf2_per_objfile parameter.
6453 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6454 use text offset from objfile.
6455 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6456
89b07335
SM
64572020-05-27 Simon Marchi <simon.marchi@efficios.com>
6458
6459 * dwarf2/expr.h (struct dwarf_expr_context)
6460 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6461 <offset>: Remove.
6462 <per_objfile>: New member.
6463 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6464 dwarf2_per_objfile parameter. Don't set offset, set
6465 per_objfile.
6466 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6467 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6468 a dwarf2_per_objfile object instead of an offset.
6469 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6470 constructor.
6471 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6472 to dwarf2_expr_executor constructor. Don't set offset.
6473 (dwarf2_fetch_cfa_info): Update.
6474 (struct dwarf2_frame_cache) <text_offset>: Remove.
6475 <per_objfile>: New field.
6476 (dwarf2_frame_cache): Update.
6477 (dwarf2_frame_prev_register): Update.
6478 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6479 <dwarf_evaluate_loc_desc>: Add constructor.
6480 (dwarf2_evaluate_loc_desc_full): Update.
6481 (dwarf2_locexpr_baton_eval): Update.
6482 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6483 Add constructor.
6484 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6485
293e7e51
SM
64862020-05-27 Simon Marchi <simon.marchi@efficios.com>
6487
6488 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6489 addr_sized_int_type>: Move to dwarf2_cu.
6490 <int_type>: Move to dwarf2_per_objfile.
6491 (struct dwarf2_per_objfile) <int_type>: Move here.
6492 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6493 addr_sized_int_type>: Move here.
6494 (read_func_scope): Update.
6495 (read_array_type): Update.
6496 (read_tag_string_type): Update.
6497 (attr_to_dynamic_prop): Update.
6498 (dwarf2_per_cu_data::int_type): Rename to...
6499 (dwarf2_per_objfile::int_type): ... this.
6500 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6501 (dwarf2_cu::addr_sized_int_type): ... this.
6502 (read_subrange_type): Update.
6503 (dwarf2_per_cu_data::addr_type): Rename to...
6504 (dwarf2_cu::addr_type): ... this.
6505 (set_die_type): Update.
6506
64874a40
SM
65072020-05-27 Simon Marchi <simon.marchi@efficios.com>
6508
6509 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6510 data through per_cu->cu.
6511
4ab09049
SM
65122020-05-27 Simon Marchi <simon.marchi@efficios.com>
6513
6514 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6515 dwarf2_per_cu_data parameter fo dwarf2_cu.
6516 (lookup_dwo_type_unit): Likewise.
6517 (read_cutu_die_from_dwo): Likewise.
6518 (lookup_dwo_unit): Likewise.
6519 (open_and_init_dwo_file): Likewise.
6520 (lookup_dwo_cutu): Likewise.
6521 (lookup_dwo_comp_unit): Likewise.
6522 (lookup_dwo_type_unit): Likewise.
6523 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6524 (cutu_reader::cutu_reader): Update.
6525
47b14e86
SM
65262020-05-27 Simon Marchi <simon.marchi@efficios.com>
6527
6528 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6529 parameter.
6530 (process_full_type_unit): Likewise.
6531 (process_queue): Update.
6532
43182c09
SM
65332020-05-27 Simon Marchi <simon.marchi@efficios.com>
6534
6535 * dwarf2/read.c (recursively_compute_inclusions): Add
6536 dwarf2_per_objfile parameter.
6537 (compute_compunit_symtab_includes): Likewise.
6538 (process_cu_includes): Update.
6539
7aa104c4
SM
65402020-05-27 Simon Marchi <simon.marchi@efficios.com>
6541
6542 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6543 parameter.
6544 (create_type_unit_group): Update.
6545 (process_psymtab_comp_unit_reader): Update.
6546 (build_type_psymtabs_reader): Update.
6547
e3beb21d
SM
65482020-05-27 Simon Marchi <simon.marchi@efficios.com>
6549
6550 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6551 object through m_this_cu->cu.
6552
d460f660
SM
65532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6554
6555 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6556 the info parameter.
6557 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6558
ab432490
SM
65592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6560
6561 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6562 per_objfile parameter.
6563 (load_full_type_unit): Add per_objfile parameter.
6564 (read_signatured_type): Likewise.
6565 (load_full_comp_unit): Likewise.
6566 (load_cu): Likewise.
6567 (dw2_do_instantiate_symtab): Likewise.
6568 (dw2_get_file_names): Likewise.
6569 (dw2_map_symtabs_matching_filename): Update.
6570 (dw_expand_symtabs_matching_file_matcher): Update.
6571 (dw2_map_symbol_filenames): Update.
6572 (process_psymtab_comp_unit): Add per_objfile parameter.
6573 (build_type_psymtabs_1): Update.
6574 (process_skeletonless_type_unit): Update.
6575 (dwarf2_build_psymtabs_hard): Update.
6576 (load_partial_comp_unit): Add per_objfile parameter.
6577 (scan_partial_symbols): Update.
6578 (load_full_comp_unit): Add per_objfile parameter.
6579 (process_imported_unit_die): Update.
6580 (create_cus_hash_table): Update.
6581 (find_partial_die): Update.
6582 (dwarf2_read_addr_index): Update.
6583 (follow_die_offset): Update.
6584 (dwarf2_fetch_die_loc_sect_off): Update.
6585 (dwarf2_fetch_constant_bytes): Update.
6586 (dwarf2_fetch_die_type_sect_off): Update.
6587 (follow_die_sig_1): Update.
6588 (load_full_type_unit): Add per_objfile parameter.
6589 (read_signatured_type): Likewise.
6590
313bad1b
SM
65912020-05-27 Simon Marchi <simon.marchi@efficios.com>
6592
6593 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6594 of objfile_name.
6595
c3699833
SM
65962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6597
6598 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6599 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6600 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6601 field.
6602 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6603 (create_cus_from_index): Update.
6604 (dwarf2_read_gdb_index): Update.
6605 (create_cus_from_debug_names): Update.
6606 (dwarf2_read_debug_names): Update.
6607 (get_abbrev_section_for_cu): Update.
6608 (create_all_comp_units): Update.
6609 (read_attribute_value): Update.
6610 (get_debug_line_section): Update.
6611 * dwarf2/index-cache.c (index_cache::store): Update.
6612 * dwarf2/index-write.c (save_gdb_index_command): Update.
6613 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6614
1859c670
SM
66152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6616
6617 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6618 member.
6619 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6620 dwarf2_per_cu_data::per_bfd.
6621 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6622 (create_type_unit_group): Likewise.
6623 (queue_comp_unit): Remove reference to
6624 per_cu->dwarf2_per_objfile.
6625 (maybe_queue_comp_unit): Likewise.
6626 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6627 (create_cus_hash_table): Assign new field.
6628
5e22e966
SM
66292020-05-27 Simon Marchi <simon.marchi@efficios.com>
6630
6631 * dwarf2/read.c: Replace
6632 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6633 dwarf2_cu->per_objfile throughout.
6634
97a1449a
SM
66352020-05-27 Simon Marchi <simon.marchi@efficios.com>
6636
6637 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6638 parameter, don't use per_cu->dwarf2_per_objfile.
6639 (dw2_instantiate_symtab): Likewise.
6640 (dw2_find_last_source_symtab): Update.
6641 (dw2_map_expand_apply): Update.
6642 (dw2_lookup_symbol): Update.
6643 (dw2_expand_symtabs_for_function): Update.
6644 (dw2_expand_all_symtabs): Update.
6645 (dw2_expand_symtabs_with_fullname): Update.
6646 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6647 don't use per_cu->dwarf2_per_objfile.
6648 (dw2_expand_marked_cus): Update.
6649 (dw2_find_pc_sect_compunit_symtab): Update.
6650 (dw2_debug_names_lookup_symbol): Update.
6651 (dw2_debug_names_expand_symtabs_for_function): Update.
6652 (dw2_debug_names_map_matching_symbols): Update.
6653 (dwarf2_psymtab::expand_psymtab): Update.
6654
9e021579
SM
66552020-05-27 Simon Marchi <simon.marchi@efficios.com>
6656
6657 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6658 <per_objfile>: New member.
6659 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6660 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6661 call to dwarf2_cu.
6662 (cutu_reader::cutu_reader): Update.
6663 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6664
ae090bdb
SM
66652020-05-27 Simon Marchi <simon.marchi@efficios.com>
6666
6667 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6668 struct dwarf2_per_objfile.
6669 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6670 dwarf2_per_bfd.
6671 * dwarf2/read.c (set_die_type): Update.
6672 (get_die_type_at_offset): Update.
6673
af758d11
SM
66742020-05-27 Tom Tromey <tom@tromey.com>
6675 Simon Marchi <simon.marchi@efficios.com>
6676
6677 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6678 method.
6679 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6680 get_symtab, set_symtab>: New methods.
6681 <m_symtabs>: New field.
6682 (struct dwarf2_psymtab): Derive from partial_symtab.
6683 <readin_p, get_compunit_symtab>: Declare methods.
6684 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6685 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6686 New methods.
6687 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6688 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6689 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6690 (dw2_symtab_iter_next, dw2_print_stats)
6691 (dw2_expand_symtabs_with_fullname)
6692 (dw2_expand_symtabs_matching_one)
6693 (dw_expand_symtabs_matching_file_matcher)
6694 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6695 (dw2_debug_names_iterator::next)
6696 (dw2_debug_names_map_matching_symbols)
6697 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6698 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6699 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6700 New methods.
6701 (get_compunit_symtab, process_full_comp_unit)
6702 (process_full_type_unit): Update.
6703 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6704
5989a64e
SM
67052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6706
6707 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6708 then introduce a new dwarf2_per_objfile type.
6709 <read_line_string>: Move to the new dwarf2_per_objfile type.
6710 <objfile>: Likewise.
6711 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6712 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6713 dwarf2_per_objfile->per_bfd.
6714 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6715 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6716 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6717 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6718 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6719 (dwarf2_per_objfile::locate_sections): Rename to...
6720 (dwarf2_per_bfd::locate_sections): ... this.
6721 (dwarf2_per_objfile::get_cutu): Rename to...
6722 (dwarf2_per_bfd::get_cutu): ... this.
6723 (dwarf2_per_objfile::get_cu): Rename to...
6724 (dwarf2_per_bfd::get_cu): ... this.
6725 (dwarf2_per_objfile::get_tu): Rename to...
6726 (dwarf2_per_bfd::get_tu): ... this.
6727 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6728 (dwarf2_per_bfd::allocate_per_cu): ... this.
6729 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6730 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6731 (get_gdb_index_contents_ftype): Change parameter from
6732 dwarf2_per_objfile to dwarf2_per_bfd.
6733 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6734 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6735
a50264ba
TT
67362020-05-27 Tom Tromey <tom@tromey.com>
6737 Simon Marchi <simon.marchi@efficios.com>
6738
6739 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6740 (allocate_piece_closure): Set "per_objfile" member.
6741 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6742 (locexpr_describe_location, loclist_describe_location): Use new
6743 member.
6744 * dwarf2/read.c (read_call_site_scope)
6745 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6746 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6747 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6748 handle_data_member_location): Set per_objfile member.
6749 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6750 member.
6751 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6752
d3473f0c
TT
67532020-05-27 Tom Tromey <tom@tromey.com>
6754
6755 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6756 allocate_signatured_type>: Declare new methods.
6757 <m_num_psymtabs>: New member.
6758 (struct dwarf2_per_cu_data) <index>: New member.
6759 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6760 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6761 (create_cu_from_index_list): Use allocate_per_cu.
6762 (create_signatured_type_table_from_index)
6763 (create_signatured_type_table_from_debug_names)
6764 (create_debug_type_hash_table, add_type_unit)
6765 (read_comp_units_from_section): Use allocate_signatured_type.
6766
5717c425
TT
67672020-05-27 Tom Tromey <tom@tromey.com>
6768
6769 * psymtab.c (partial_map_expand_apply)
6770 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6771 (psym_lookup_global_symbol_language)
6772 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6773 (psym_print_stats, psym_expand_symtabs_for_function)
6774 (psym_map_symbol_filenames, psym_map_matching_symbols)
6775 (psym_expand_symtabs_matching)
6776 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6777 (maintenance_check_psymtabs): Update.
6778 * psympriv.h (struct partial_symtab) <readin_p,
6779 get_compunit_symtab>: Add objfile parameter.
6780 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6781 Likewise.
6782 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6783 get_compunit_symtab>: Likewise.
6784 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6785
45940949
TT
67862020-05-27 Tom Tromey <tom@tromey.com>
6787
6788 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6789 member.
6790 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6791 (create_cu_from_index_list)
6792 (create_signatured_type_table_from_index)
6793 (create_signatured_type_table_from_debug_names)
6794 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6795 (dwarf2_create_include_psymtab)
6796 (create_debug_type_hash_table, add_type_unit)
6797 (create_type_unit_group, read_comp_units_from_section)
6798 (dwarf2_compute_name, create_cus_hash_table)
6799 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6800 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6801 obstack.
6802 (dw2_get_real_path): Likewise. Change argument to
6803 dwarf2_per_objfile.
6804
f8c6d152
LM
68052020-05-27 Luis Machado <luis.machado@linaro.org>
6806
6807 PR tdep/26000
6808 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6809 for ldrd (immediate).
6810
e98d2e6d
PW
68112020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6812
6813 * command.h: Add comment giving the name of class_tui.
6814 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6815 create the fake command for the help for class_tui.
6816
53a47a3e
TT
68172020-05-26 Tom Tromey <tromey@adacore.com>
6818
6819 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6820 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6821 (val_atr): New function.
6822 (value_val_atr): Use it.
6823 * ada-valprint.c (print_optional_low_bound): Change low bound
6824 handling for enums.
6825 (val_print_packed_array_elements): Don't call discrete_position.
6826 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6827 discrete_position for enum types.
6828 * language.c (default_print_array_index): Change type.
6829 * language.h (struct language_defn) <la_print_array_index>: Add
6830 index_type parameter, change type of index_value.
6831 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6832 (default_print_array_index): Update.
6833 * valprint.c (maybe_print_array_index): Don't call
6834 value_from_longest. Update.
6835 (value_print_array_elements): Don't call discrete_position.
6836
0bc2354b
TT
68372020-05-26 Tom Tromey <tromey@adacore.com>
6838
6839 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6840 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6841
1218a4bf
CDA
68422020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6843
6844 PR gdb/13519
6845 * avr-tdep.c (avr_integer_to_address): Return data or code
6846 address accordingly to the second 'type' argument of the
6847 function.
6848
92651b1d
MW
68492020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6850
6851 * infcmd.c, inferior.h: (construct_inferior_arguments):
6852 Moved function from here to gdbsupport/common-inferior.{h,cc}
6853
0a4f5f8c
TT
68542020-05-23 Tom Tromey <tom@tromey.com>
6855
6856 Revert commit eca1f90c:
6857 * NEWS: Remove entry for completion styling.
6858 * completer.c (_rl_completion_prefix_display_length): Move
6859 declaration later.
6860 (gdb_fnprint): Revert.
6861 (gdb_display_match_list_1): Likewise.
6862 * cli/cli-style.c (completion_prefix_style)
6863 (completion_difference_style, completion_suffix_style): Remove.
6864 (_initialize_cli_style): Revert.
6865 * cli/cli-style.h (completion_prefix_style)
6866 (completion_difference_style, completion_suffix_style): Don't
6867 declare.
6868
e08bd6c5
PA
68692020-05-24 Pedro Alves <palves@redhat.com>
6870
6871 * symtab.c (completion_list_add_name): Return boolean indication
6872 of whether the symbol matched.
6873 (completion_list_add_symbol): Don't try to remove C++ aliases if
6874 the symbol didn't match in the first place.
6875 * symtab.h (completion_list_add_name): Return bool.
6876
ceacbf6e
SM
68772020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6878
6879 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6880 type::field.
6881
26f16254
JB
68822020-05-23 Joel Brobecker <brobecker@adacore.com>
6883
6884 GDB 9.2 released.
6885
eca1f90c
TT
68862020-05-23 Tom Tromey <tom@tromey.com>
6887
6888 * NEWS: Add entry for completion styling.
6889 * completer.c (_rl_completion_prefix_display_length): Move
6890 declaration earlier.
6891 (gdb_fnprint): Use completion_style.
6892 (gdb_display_match_list_1): Likewise.
6893 * cli/cli-style.c (completion_prefix_style)
6894 (completion_difference_style, completion_suffix_style): New
6895 globals.
6896 (_initialize_cli_style): Register new globals.
6897 * cli/cli-style.h (completion_prefix_style)
6898 (completion_difference_style, completion_suffix_style): Declare.
6899
51e2cfa2
PA
69002020-05-23 Pedro Alves <palves@redhat.com>
6901
6902 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6903 (parse_escape): Use ISDIGIT instead of isdigit.
6904 (puts_debug): Use gdb_isprint instead of isprint.
6905 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6906 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6907 ISSPACE instead of isspace.
6908 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6909 instead of isspace.
6910 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6911 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6912 instead of isxdigit and ISDIGIT instead of isdigit.
6913
80fc5e77
SM
69142020-05-22 Simon Marchi <simon.marchi@efficios.com>
6915
6916 * gdbtypes.h (struct type) <field>: New method.
6917 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6918 or type::field.
6919
3cabb6b0
SM
69202020-05-22 Simon Marchi <simon.marchi@efficios.com>
6921
6922 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6923 (TYPE_FIELDS): Use type::fields. Change all call sites that
6924 modify the propery to use type::set_fields instead.
6925
1f704f76
SM
69262020-05-22 Simon Marchi <simon.marchi@efficios.com>
6927
6928 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6929 type::num_fields instead.
6930
5e33d5f4
SM
69312020-05-22 Simon Marchi <simon.marchi@efficios.com>
6932
6933 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6934 methods.
6935 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6936 that modify the number of fields to use type::set_num_fields
6937 instead.
6938
9392ebb3
TT
69392020-05-22 Tom Tromey <tromey@adacore.com>
6940
6941 * compile/compile-object-load.h (munmap_list_free): Don't
6942 declare.
6943
7c13f4e8
AB
69442020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6945
6946 * annotate.c (annotate_source_line): Update return type, add call
6947 to update current symtab and line.
6948 * annotate.h (annotate_source_line): Update return type, and
6949 extend header comment.
6950 * source.c (info_line_command): Check annotation_level before
6951 calling annotate_source_line.
6952 * stack.c (print_frame_info): If calling annotate_source_line
6953 returns true, then don't print any other source line information.
6954
aa370940
SM
69552020-05-21 Simon Marchi <simon.marchi@efficios.com>
6956
6957 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6958
84d53fa9
SM
69592020-05-21 Simon Marchi <simon.marchi@efficios.com>
6960
6961 * coffread.c (patch_type): Remove NULL check before xfree.
6962 * corefile.c (set_gnutarget): Likewise.
6963 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6964 * exec.c (build_section_table): Likewise.
6965 * remote.c (remote_target::pass_signals): Likewise.
6966 * utils.c (n_spaces): Likewise.
6967 * cli/cli-script.c (document_command): Likewise.
6968 * i386-windows-tdep.c (core_process_module_section): Likewise.
6969 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6970
9d428aae
SM
69712020-05-20 Simon Marchi <simon.marchi@efficios.com>
6972
6973 * symfile.c (reread_symbols): Clear objfile's section_offsets
6974 vector and section indices, re-compute them by calling
6975 sym_offsets.
6976
250106a7
TT
69772020-05-20 Tom Tromey <tromey@adacore.com>
6978
6979 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6980 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6981
9a0bacfb
TV
69822020-05-20 Tom de Vries <tdevries@suse.de>
6983
6984 PR symtab/25833
6985 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6986
7b958a48
AM
69872020-05-20 Alan Modra <amodra@gmail.com>
6988
6989 PR 25993
6990 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6991 bfd_set_filename.
6992 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6993 passed to bfd_set_filename.
6994 * symfile-mem.c (add_vsyscall_page): Likewise for string
6995 passed to symbol_file_add_from_memory.
6996 (symbol_file_add_from_memory): Make name param a const char* and
6997 don't strdup.
6998
c7e97679
AM
69992020-05-20 Alan Modra <amodra@gmail.com>
7000
7001 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7002 rather than accessing bfd->filename directly.
7003 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7004 and use bfd_section_name.
7005 * dwarf2/frame.c (decode_frame_entry): Likewise.
7006 * exec.c (exec_set_section_address): Likewise.
7007 * solib-aix.c (solib_aix_bfd_open): Likewise.
7008 * stap-probe.c (get_stap_base_address): Likewise.
7009 * symfile.c (reread_symbols): Likewise.
7010
563c591b
TT
70112020-05-19 Tom Tromey <tromey@adacore.com>
7012
7013 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7014
f408d82c
SM
70152020-05-19 Simon Marchi <simon.marchi@efficios.com>
7016
7017 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7018
98c59b52
PA
70192020-05-19 Pedro Alves <palves@redhat.com>
7020
7021 * NEWS (set exec-file-mismatch): Adjust entry.
7022 * exec.c: Include "build-id.h".
7023 (validate_exec_file): Try to match build IDs instead of filenames.
7024 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7025 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7026 and pass down 'warn_if_slow'.
7027 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7028 gdb_bfd_open_closure to pass it down.
7029 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7030
4111f652
PA
70312020-05-19 Pedro Alves <palves@redhat.com>
7032
7033 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7034 * target.c (target_fileio_open_1): Rename to target_fileio_open
7035 and make extern. Use bool.
7036 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7037 (target_fileio_read_alloc_1): Adjust.
7038 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7039 (target_fileio_open_warn_if_slow): Delete declaration.
7040
ad80db5b
PA
70412020-05-19 Pedro Alves <palves@redhat.com>
7042
7043 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7044 Adjust all callers.
7045
1d6ce4d3
YS
70462020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7047
7048 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7049 whether disp is negative.
7050
9005fbbb
SM
70512020-05-19 Simon Marchi <simon.marchi@efficios.com>
7052
7053 * symfile.h (struct symfile_segment_data)
7054 <~symfile_segment_data>: Remove.
7055 <segment_info>: Change to std::vector.
7056 * symfile.c (default_symfile_segments): Update.
7057 * elfread.c (elf_symfile_segments): Update.
7058
68b888ff
SM
70592020-05-19 Simon Marchi <simon.marchi@efficios.com>
7060
7061 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7062 <segments>: New.
7063 <segment_bases, segment_sizes>: Remove.
7064 * symfile.c (default_symfile_segments): Update.
7065 * elfread.c (elf_symfile_segments): Update.
7066 * remote.c (remote_target::get_offsets): Update.
7067 * solib-target.c (solib_target_relocate_section_addresses):
7068 Update.
7069
62982abd
SM
70702020-05-19 Simon Marchi <simon.marchi@efficios.com>
7071
7072 * symfile.h (struct symfile_segment_data): Initialize fields.
7073 <~symfile_segment_data>: Add.
7074 (symfile_segment_data_up): New.
7075 (struct sym_fns) <sym_segments>: Return a
7076 symfile_segment_data_up.
7077 (default_symfile_segments): Return a symfile_segment_data_up.
7078 (free_symfile_segment_data): Remove.
7079 (get_symfile_segment_data): Return a symfile_segment_data_up.
7080 * symfile.c (default_symfile_segments): Likewise.
7081 (get_symfile_segment_data): Likewise.
7082 (free_symfile_segment_data): Remove.
7083 (symfile_find_segment_sections): Update.
7084 * elfread.c (elf_symfile_segments): Return a
7085 symfile_segment_data_up.
7086 * remote.c (remote_target::get_offsets): Update.
7087 * solib-target.c (solib_target_relocate_section_addresses):
7088 Update.
7089 * symfile-debug.c (debug_sym_segments): Return a
7090 symfile_segment_data_up.
7091
7f204339
RO
70922020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7093
e52a0f1b
RO
7094 PR build/25981
7095 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7096 Hardcode register numbers.
7097
7f204339
RO
7098 PR build/25981
7099 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7100 procfs_find_LDT_entry): Remove.
7101 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7102 procfs_find_LDT_entry): Remove.
7103 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7104 Remove.
7105
7f32a4d5
PA
71062020-05-17 Pedro Alves <palves@redhat.com>
7107 Andrew Burgess <andrew.burgess@embecosm.com>
7108 Keno Fischer <keno@juliacomputing.com>
7109
7110 PR gdb/25741
7111 * breakpoint.c (build_target_condition_list): Update comments.
7112 (build_target_command_list): Update comments and skip matching
7113 locations.
7114 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7115 a separate function. Simplify "set breakpoint auto-hw off"
7116 handling.
7117 (insert_breakpoints): Update comment.
7118 (tracepoint_locations_match): New parameter. For breakpoints,
7119 compare location types too, if the caller wants to.
7120 (handle_automatic_hardware_breakpoints): New functions.
7121 (bp_location_is_less_than): Also sort by location type and
7122 hardware breakpoint length.
7123 (update_global_location_list): Handle "set breakpoint auto-hw on"
7124 here.
7125 (update_breakpoint_locations): Ask breakpoint_locations_match to
7126 ignore location types.
7127
7d93a1e0
SM
71282020-05-16 Simon Marchi <simon.marchi@efficios.com>
7129
7130 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7131 type::name instead.
7132
d0e39ea2
SM
71332020-05-16 Simon Marchi <simon.marchi@efficios.com>
7134
7135 * gdbtypes.h (struct type) <name, set_name>: New methods.
7136 (TYPE_CODE): Use type::name. Change all call sites used to set
7137 the name to use type::set_name instead.
7138
2dab0c7b
TT
71392020-05-16 Tom Tromey <tom@tromey.com>
7140
7141 * top.c (quit_force): Update.
7142 * infrun.c (handle_no_resumed): Update.
7143 * top.h (all_uis): New function.
7144 (ALL_UIS): Remove.
7145
59f7bd8d
SM
71462020-05-16 Simon Marchi <simon.marchi@efficios.com>
7147
7148 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7149
9bf058f0
PA
71502020-05-16 Pedro Alves <palves@redhat.com>
7151
7152 * ia64-linux-nat.c
7153 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7154 Declare method.
7155 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7156
8f86ae1a
SM
71572020-05-15 Simon Marchi <simon.marchi@efficios.com>
7158
7159 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7160 (sparc64_adi_info): Likewise.
7161
d6bc0792
TT
71622020-05-15 Tom Tromey <tom@tromey.com>
7163
7164 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7165 block_objfile.
7166 (lookup_objfile_from_block): Remove.
7167 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7168 (lookup_global_symbol): Use block_objfile.
7169 * symtab.h (lookup_objfile_from_block): Don't declare.
7170 * printcmd.c (clear_dangling_display_expressions): Use
7171 block_objfile.
7172 * parse.c (operator_check_standard): Use block_objfile.
7173
8c14c3a3
TT
71742020-05-15 Tom Tromey <tom@tromey.com>
7175
7176 * language.c (language_alloc_type_symbol): Set
7177 SYMBOL_SECTION.
7178 * symtab.c (initialize_objfile_symbol): Remove.
7179 (allocate_symbol): Remove.
7180 (allocate_template_symbol): Remove.
7181 * dwarf2/read.c (fixup_go_packaging): Use "new".
7182 (new_symbol): Use "new".
7183 (read_variable): Don't call initialize_objfile_symbol. Use
7184 "new".
7185 (read_func_scope): Use "new".
7186 * xcoffread.c (process_xcoff_symbol): Don't call
7187 initialize_objfile_symbol.
7188 (SYMBOL_DUP): Remove.
7189 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7190 "new".
7191 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7192 (allocate_template_symbol): Don't declare.
7193 (struct symbol): Add copy constructor. Change defaults.
7194 * jit.c (finalize_symtab): Use "new".
7195 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7196 Use "new".
7197 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7198 (common_block_end): Use "new".
7199 * mdebugread.c (parse_symbol): Use "new".
7200 (new_symbol): Likewise.
7201
5b4a1a8d
PW
72022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7203
7204 * NEWS: Mention changes to help and apropos.
7205
57b4f16e
PW
72062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7207
7208 * command.h (enum command_class): Improve comments, document
7209 that class_alias is for user-defined aliases, give the class
7210 name for each class, remove unused class_xdb.
7211 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7212 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7213 by a precise class.
7214 * infcmd.c (_initialize_infcmd): Likewise.
7215 * reverse.c (_initialize_reverse): Likewise.
7216 * stack.c (_initialize_stack): Likewise.
7217 * symfile.c (_initialize_symfile): Likewise.
7218 * tracepoint.c (_initialize_tracepoint): Likewise.
7219
7c05caf7
PW
72202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7221
7222 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7223 when their aliased command is traversed.
7224 (help_cmd): Add fput_command_names_styled call to
7225 output command name and aliases when command has an alias.
7226
3b3aaacb
PW
72272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7228
7229 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7230 * cli/cli-decode.c (help_cmd_list): Declare as static,
7231 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7232 a command together with the command.
7233 (fput_command_name_styled, fput_command_names_styled): New functions.
7234 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7235 fput_command_name_styled.
7236 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7237 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7238
7aa1b46f
PW
72392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7240
7241 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7242 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7243 * command.h (cmd_show_list): Likewise.
7244 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7245 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7246
89bcba74
PW
72472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7248
7249 * unittests/command-def-selftests.c (traverse_command_structure):
7250 Verify all commands of a list have the same prefix command and
7251 that only the top cmdlist commands have a null prefix.
7252
3f4d92eb
PW
72532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7254
7255 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7256 as prefix, not one of its aliases.
7257 (set_cmd_prefix): Remove.
7258 (do_add_cmd): Centralize the setting of the prefix of a command, when
7259 command is defined after its full chain of prefix commands.
7260 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7261 (add_setshow_cmd_full): Likewise.
7262 (update_prefix_field_of_prefixed_commands): New function.
7263 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7264 update_prefix_field_of_prefixed_commands.
7265 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7266 addresses of remote_set_cmdlist and remote_show_cmdlist given
7267 as argument, not the address of an argument.
7268 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7269 * gdb/remote.c (_initialize_remote): Likewise.
7270
0605465f
PW
72712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7272
7273 * cli/cli-cmds.c (alias_command): Check for an existing alias
7274 using lookup_cmd_composition, as valid_command_p is too strict
7275 and forbids aliases that are the prefix of an existing alias
7276 or command.
7277 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7278 command is properly recognised as a valid command.
7279
58e6ac70
PW
72802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7281
7282 * unittests/help-doc-selftests.c: Rename to
7283 unittests/command-def-selftests.c
7284 * unittests/command-def-selftests.c (help_doc_tests): Update some
7285 comments.
7286 (command_structure_tests, traverse_command_structure): New namespace
7287 and function.
7288 (command_structure_invariants_tests): New function.
7289 (_initialize_command_def_selftests) Renamed from
7290 _initialize_help_doc_selftests, register command_structure_invariants
7291 selftest.
7292
a7b9ceb8
PW
72932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7294
7295 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7296 an alias of 'show'.
7297
b2188a06
JB
72982020-05-15 Joel Brobecker <brobecker@adacore.com>
7299
7300 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7301 ada_is_fixed_point_type. Update all callers.
7302 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7303 all callers.
7304 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7305 Update all callers.
7306 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7307 print_fixed_point_type. Update all callers.
7308 * ada-valprint.c (ada_value_print_num): Replace call to
7309 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7310
a51951c2
KB
73112020-05-14 Kevin Buettner <kevinb@redhat.com>
7312
7313 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7314 processors.
7315 (cpu_supports_bts): Add CV_AMD case.
7316
29d6859f
LM
73172020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7318 Simon Marchi <simon.marchi@efficios.com>
7319
7320 * infrun.c (stop_all_threads): Collect multiple wait events at
7321 each pass.
7322
78134374
SM
73232020-05-14 Simon Marchi <simon.marchi@efficios.com>
7324
7325 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7326 type::code instead.
7327
67607e24
SM
73282020-05-14 Simon Marchi <simon.marchi@efficios.com>
7329
7330 * gdbtypes.h (struct type) <code, set_code>: New methods.
7331 (TYPE_CODE): Use type::code. Change all call sites used to set
7332 the code to use type::set_code instead.
7333
a05575d3
TBA
73342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7335 Tom de Vries <tdevries@suse.de>
7336 Pedro Alves <palves@redhat.com>
7337
7338 PR threads/25478
7339 * infrun.c (stop_all_threads): Do NOT ignore
7340 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7341 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7342 received.
7343 (handle_no_resumed): Remove code handling a live inferior with no
7344 threads.
7345 * remote.c (has_single_non_exited_thread): New.
7346 (remote_target::update_thread_list): Do not delete a thread if is
7347 the last thread of the process.
7348 * thread.c (thread_select): Call delete_exited_threads instead of
7349 prune_threads.
7350
6ad82919
TBA
73512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7352
7353 * infrun.c (stop_all_threads): Enable/disable thread events of all
7354 targets. Move a debug message denoting the end of the function
7355 into the SCOPED_EXIT block.
7356
d890404b
TBA
73572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7358
7359 * process-stratum-target.h: Include <set>.
7360 (all_non_exited_process_targets, switch_to_target_no_thread): New
7361 function declarations.
7362 * process-stratum-target.c (all_non_exited_process_targets)
7363 (switch_to_target_no_thread): New function implementations.
7364
293b3ebc
TBA
73652020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7366
7367 * infrun.c (handle_inferior_event): Extract out a piece of code
7368 into...
7369 (mark_non_executing_threads): ...this new function.
7370
7ca9b62a
TBA
73712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7372
7373 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7374 use.
7375
fc75c28b
TBA
73762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7377
7378 * regcache.c (regcache_read_pc_protected): New function
7379 implementation that returns 0 if the PC cannot read via
7380 'regcache_read_pc'.
7381 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7382 instead of 'regcache_read_pc'.
7383 (keep_going_pass_signal): Ditto.
7384
a89febbd
TT
73852020-05-13 Tom Tromey <tromey@adacore.com>
7386
7387 * ada-lang.c (align_value): Remove.
7388 (ada_template_to_fixed_record_type_1): Use align_up.
7389
f7e23710
TBA
73902020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7391
7392 * async-event.c: Update the copyright year.
7393 * async-event.h: Update the copyright year.
7394
02ff80c2
SM
73952020-05-12 Simon Marchi <simon.marchi@efficios.com>
7396
7397 * objfiles.h (is_addr_in_objfile,
7398 shared_objfile_contains_address_p): Return bool.
7399 * objfile.c (is_addr_in_objfile,
7400 shared_objfile_contains_address_p): Return bool.
7401
4fd6c7e8
TT
74022020-05-11 Tom Tromey <tromey@adacore.com>
7403
7404 * cli/cli-cmds.c (info_command): Restore.
7405 (_initialize_cli_cmds): Use add_prefix_command for "info".
7406 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7407
5eb68a39
TT
74082020-05-11 Tom Tromey <tromey@adacore.com>
7409
7410 * ada-lang.c (ada_value_primitive_field): Now public.
7411 * ada-lang.h (ada_value_primitive_field): Declare.
7412 * ada-valprint.c (print_field_values): Use
7413 ada_value_primitive_field for wrapper fields.
7414
7666722f
TV
74152020-05-11 Tom de Vries <tdevries@suse.de>
7416
7417 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7418 MODULE_DOMAIN.
7419
3ee6bb11
TV
74202020-05-11 Tom de Vries <tdevries@suse.de>
7421
7422 PR symtab/25941
7423 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7424 with length 0, if not gdb-produced.
7425 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7426
43434996
TV
74272020-05-09 Tom de Vries <tdevries@suse.de>
7428
7429 PR gdb/25955
7430 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7431 calculation.
7432
2f78cffc
TT
74332020-05-09 Tom Tromey <tom@tromey.com>
7434
7435 * top.c (server_command): Now bool.
7436 * top.h (server_command): Now bool.
7437
4f7bc5ed
TT
74382020-05-08 Tom Tromey <tromey@adacore.com>
7439
7440 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7441 already being processed.
7442
8be4b118
TT
74432020-05-08 Tom Tromey <tom@tromey.com>
7444
7445 * printcmd.c (struct display) <next>: Remove.
7446 <display>: New constructor.
7447 <exp_string>: Now a std::string.
7448 <enabled_p>: Now a bool.
7449 (display_number): Move definition earlier.
7450 (displays): Rename from display_chain. Now a std::vector.
7451 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7452 (display_command): Update.
7453 (do_one_display, disable_display)
7454 (enable_disable_display_command, do_enable_disable_display):
7455 Update.
7456 (free_display): Remove.
7457 (clear_displays): Rewrite.
7458 (delete_display): Update.
7459 (map_display_numbers): Use function_view. Remove "data"
7460 parameter. Update.
7461 (do_delete_display): Remove.
7462 (undisplay_command): Update.
7463 (do_one_display, do_displays, disable_display)
7464 (info_display_command): Update.
7465 (do_enable_disable_display): Remove.
7466 (enable_disable_display_command)
7467 (clear_dangling_display_expressions): Update.
7468
94c93c35
TT
74692020-05-08 Tom Tromey <tom@tromey.com>
7470
7471 * symtab.c (set_symbol_cache_size)
7472 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7473 (maintenance_print_symbol_cache_statistics): Update.
7474 * symmisc.c (print_symbol_bcache_statistics)
7475 (print_objfile_statistics, maintenance_print_objfiles)
7476 (maintenance_info_symtabs, maintenance_check_symtabs)
7477 (maintenance_expand_symtabs, maintenance_info_line_tables):
7478 Update.
7479 * symfile-debug.c (set_debug_symfile): Update.
7480 * source.c (forget_cached_source_info): Update.
7481 * python/python.c (gdbpy_progspaces): Update.
7482 * psymtab.c (maintenance_info_psymtabs): Update.
7483 * probe.c (parse_probes): Update.
7484 * linespec.c (iterate_over_all_matching_symtabs)
7485 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7486 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7487 * exec.c (exec_target::close): Update.
7488 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7489 * breakpoint.c (print_one_breakpoint_location)
7490 (create_longjmp_master_breakpoint)
7491 (create_std_terminate_master_breakpoint): Update.
7492 * progspace.c (program_spaces): Now a std::vector.
7493 (maybe_new_address_space): Update.
7494 (add_program_space): Remove.
7495 (program_space::program_space): Update.
7496 (remove_program_space): Update.
7497 (number_of_program_spaces): Remove.
7498 (print_program_space, update_address_spaces): Update.
7499 * progspace.h (program_spaces): Change type.
7500 (ALL_PSPACES): Remove.
7501 (number_of_program_spaces): Don't declare.
7502 (struct program_space) <next>: Remove.
7503
a1fd1ac9
TT
75042020-05-08 Tom Tromey <tom@tromey.com>
7505
7506 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7507 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7508 (enable_break): Update.
7509 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7510 (frv_fdpic_find_canonical_descriptor): Update.
7511 (frv_fetch_objfile_link_map): Update.
7512 * progspace.c (program_space::free_all_objfiles): Update.
7513 (program_space::solibs): New method.
7514 * progspace.h (struct program_space) <solibs>: New method.
7515 * solist.h (master_so_list): Don't declare.
7516 (ALL_SO_LIBS): Remove.
7517 * solib.h (so_list_head): Remove.
7518 (update_solib_list): Update comment.
7519 * solib.c (master_so_list): Remove.
7520 (solib_used, update_solib_list, solib_add)
7521 (info_sharedlibrary_command, clear_solib)
7522 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7523
38eae084
TT
75242020-05-08 Tom Tromey <tom@tromey.com>
7525
7526 * extension.c (extension_languages): Now a std::array.
7527 (ALL_EXTENSION_LANGUAGES): Remove.
7528 (get_ext_lang_defn, get_ext_lang_of_file)
7529 (eval_ext_lang_from_control_command): Update.
7530 (finish_ext_lang_initialization)
7531 (auto_load_ext_lang_scripts_for_objfile)
7532 (ext_lang_type_printers::ext_lang_type_printers)
7533 (apply_ext_lang_type_printers)
7534 (ext_lang_type_printers::~ext_lang_type_printers)
7535 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7536 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7537 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7538 (get_matching_xmethod_workers, ext_lang_colorize)
7539 (ext_lang_before_prompt): Update.
7540 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7541
596dc4ad
TT
75422020-05-08 Tom Tromey <tom@tromey.com>
7543
7544 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7545 overload.
7546 <swap_string, m_string>: Remove.
7547 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7548 Update.
7549 * stabsread.c (define_symbol, read_type): Update.
7550 * linespec.c (find_linespec_symbols): Update.
7551 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7552 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7553 * dbxread.c (read_dbx_symtab): Update.
7554 * cp-support.h (cp_canonicalize_string_full)
7555 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7556 Return unique_xmalloc_ptr.
7557 * cp-support.c (inspect_type): Update.
7558 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7559 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7560 Likewise.
7561 * c-typeprint.c (print_name_maybe_canonical): Update.
7562 * break-catch-throw.c (check_status_exception_catchpoint):
7563 Update.
7564
bf4cb9be
TV
75652020-05-08 Tom de Vries <tdevries@suse.de>
7566
7567 * infrun.c (follow_fork): Copy current_line and current_symtab to
7568 child thread.
7569
a1b68f28
SM
75702020-05-07 Simon Marchi <simon.marchi@efficios.com>
7571
7572 * async-event.c (struct async_signal_handler, struct
7573 async_event_handler): Reformat, remove typedef.
7574
98d48915
SM
75752020-05-07 Simon Marchi <simon.marchi@efficios.com>
7576
7577 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7578 access thistype->main_type->dyn_prop_list directly.
7579
7aa91313
SM
75802020-05-07 Simon Marchi <simon.marchi@efficios.com>
7581
7582 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7583 (remove_dyn_prop): Remove. Update all users to use
7584 type::remove_dyn_prop.
7585 * gdbtypes.c (remove_dyn_prop): Rename to...
7586 (type::remove_dyn_prop): ... this.
7587
5c54719c
SM
75882020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7589
7590 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7591 (add_dyn_prop): Remove. Update all users to use
7592 type::add_dyn_prop.
7593 * gdbtypes.c (add_dyn_prop): Rename to...
7594 (type::add_dyn_prop): ... this.
7595
24e99c6c
SM
75962020-05-07 Simon Marchi <simon.marchi@efficios.com>
7597
7598 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7599 (get_dyn_prop): Remove. Update all users to use
7600 type::dyn_prop.
7601 * gdbtypes.c (get_dyn_prop): Rename to...
7602 (type::dyn_prop): ... this.
7603
0d4bf016
SM
76042020-05-06 Simon Marchi <simon.marchi@efficios.com>
7605
7606 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7607
ac4a4f1c
SM
76082020-05-06 Simon Marchi <simon.marchi@efficios.com>
7609
7610 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7611 instruction, skip it if it's there.
7612
a3bbacc1
SM
76132020-05-05 Simon Marchi <simon.marchi@efficios.com>
7614
7615 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7616
c3236f84
SM
76172020-05-04 Simon Marchi <simon.marchi@efficios.com>
7618
7619 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7620 * gdbtypes.c (recursive_dump_type): Remove use of
7621 TYPE_INCOMPLETE.
7622
3b6acaee
TT
76232020-05-03 Tom Tromey <tom@tromey.com>
7624
7625 * breakpoint.c (catch_command, tcatch_command): Remove.
7626 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7627 add_show_prefix_cmd.
7628 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7629 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7630 Remove.
7631 (add_internal_problem_command): Use add_basic_prefix_cmd,
7632 add_show_prefix_cmd.
7633 * mips-tdep.c (set_mipsfpu_command): Remove.
7634 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7635 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7636 (_initialize_index_cache): Use add_basic_prefix_cmd.
7637 * memattr.c (dummy_cmd): Remove.
7638 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7639 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7640 (_initialize_tui_win): Use add_basic_prefix_cmd,
7641 add_show_prefix_cmd.
7642 * cli/cli-logging.c (set_logging_command): Remove.
7643 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7644 add_show_prefix_cmd.
7645 (show_logging_command): Remove.
7646 * target.c (target_command): Remove.
7647 (add_target): Use add_basic_prefix_cmd.
7648
a51119cd
HD
76492020-05-02 Hannes Domani <ssbssa@yahoo.de>
7650
7651 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7652
652fc23a 76532020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7654
652fc23a
PW
7655 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7656 info_command.
7657
117539e6
KR
76582020-04-30 Kamil Rytarowski <n54@gmx.com>
7659
7660 * nbsd-nat.c (nbsd_enable_proc_events)
7661 (nbsd_nat_target::post_startup_inferior): Add.
7662 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7663 (nbsd_nat_target::update_thread_list): Rewrite.
7664 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7665 "PTRACE_LWP_CREATE".
7666 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7667
102e38eb 76682020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7669
102e38eb
PW
7670 * stack.c (_initialize_stack): Remove duplicated creation
7671 of "frame" command and "f" alias.
7672
ee9d1e5f
HD
76732020-04-30 Hannes Domani <ssbssa@yahoo.de>
7674
7675 PR gdb/18706
7676 * gdbtypes.c (check_typedef): Calculate size of array of
7677 stubbed type.
7678
627c7fb8
HD
76792020-04-30 Hannes Domani <ssbssa@yahoo.de>
7680
7681 PR gdb/15559
7682 * i386-tdep.c (i386_push_dummy_call): Call
7683 i386_thiscall_push_dummy_call.
7684 (i386_thiscall_push_dummy_call): New function.
7685 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7686 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7687 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7688
ffc2844e
SM
76892020-04-29 Simon Marchi <simon.marchi@efficios.com>
7690
7691 * gdbarch.sh (do_read): Add shellcheck disable directive for
7692 warning SC2162.
7693
1207375d
SM
76942020-04-29 Simon Marchi <simon.marchi@efficios.com>
7695
7696 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7697 "referenced but not assigned" warning.
7698
9fdb2916
SM
76992020-04-29 Simon Marchi <simon.marchi@efficios.com>
7700
7701 * gdbarch.sh: Remove code that sets fallbackdefault.
7702
759cea5e
SM
77032020-04-29 Simon Marchi <simon.marchi@efficios.com>
7704
7705 * gdbarch.sh: Use shell operators && and || instead of
7706 -a and -o.
7707
cb02ab24
SM
77082020-04-29 Simon Marchi <simon.marchi@efficios.com>
7709
7710 * gdbarch.sh: Use $(...) instead of `...`.
7711
a6fc5ffc
SM
77122020-04-29 Simon Marchi <simon.marchi@efficios.com>
7713
7714 * gdbarch.sh: Use double quotes around variables.
7715
8d113d13
SM
77162020-04-29 Simon Marchi <simon.marchi@efficios.com>
7717
7718 * gdbarch.sh: Use %s with printf, instead of variables in the
7719 format string.
7720
ed6acedd
TT
77212020-04-29 Tom Tromey <tromey@adacore.com>
7722
7723 PR ada/25875:
7724 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7725 type fields here.
7726 (read_enumeration_type): Call
7727 update_enumeration_type_from_children later. Update comments.
7728 (process_enumeration_scope): Don't create type fields.
7729
b68b1b58
KR
77302020-04-29 Kamil Rytarowski <n54@gmx.com>
7731
7732 * nbsd-tdep.c: Include "xml-syscall.h".
7733 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7734
f94b2e03
KR
77352020-04-29 Kamil Rytarowski <n54@gmx.com>
7736
7737 * nbsd-nat.c: Include "sys/wait.h".
7738 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7739 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7740 (nbsd_nat_target::remove_exec_catchpoint)
7741 (nbsd_nat_target::set_syscall_catchpoint): Add.
7742 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7743 (nbsd_nat_target::insert_exec_catchpoint)
7744 (nbsd_nat_target::remove_exec_catchpoint)
7745 (nbsd_nat_target::set_syscall_catchpoint): Add.
7746 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7747 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7748 `nbsd_get_syscall_number'.
7749
fc49bc72
TT
77502020-04-29 Tom Tromey <tom@tromey.com>
7751
7752 * stack.c (print_block_frame_labels): Remove.
7753
d642b692
HD
77542020-04-29 Hannes Domani <ssbssa@yahoo.de>
7755
7756 PR gdb/17320
7757 * ada-valprint.c (val_print_packed_array_elements): Move array
7758 end bracket to new line.
7759 (ada_val_print_string): Remove extra spaces before first array
7760 element.
7761 * c-valprint.c (c_value_print_array): Likewise.
7762 * m2-valprint.c (m2_print_array_contents): Likewise.
7763 (m2_value_print_inner): Likewise.
7764 * p-valprint.c (pascal_value_print_inner): Likewise.
7765 * valprint.c (generic_val_print_array): Likewise.
7766 (value_print_array_elements): Move first array element and array
7767 end bracket to new line.
7768
ea90f227
TV
77692020-04-29 Tom de Vries <tdevries@suse.de>
7770
7771 PR symtab/25889
7772 * linespec.c (find_method): Fix ix calculation.
7773
4498ef4f
KR
77742020-04-28 Kamil Rytarowski <n54@gmx.com>
7775
7776 * syscalls/update-netbsd.sh: New file.
7777 * syscalls/netbsd.xml: Regenerate.
7778 * data-directory/Makefile.in: Register `netbsd.xml' in
7779 `SYSCALLS_FILES'.
7780
a55e30b5
SM
77812020-04-28 Simon Marchi <simon.marchi@efficios.com>
7782
7783 * syscalls/update-freebsd.sh: Add double quotes.
7784
2b2fbab8
TT
77852020-04-28 Tom Tromey <tom@tromey.com>
7786
7787 * NEWS: Update.
7788 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7789 (cmdpy_init): Allow class_tui.
7790
a65189c9
TV
77912020-04-28 Mark Williams <mark@myosotissp.com>
7792
7793 PR gdb/24480
7794 * dwarf2read.c: Add missing assingments to list_in_scope when
7795 start_symtab was already called.
7796
1b95cdb7
SM
77972020-04-28 Simon Marchi <simon.marchi@efficios.com>
7798
7799 PR gdb/25881
7800 * dwarf2/read.c (offset_map_type): Use
7801 gdb:hash_enum<sect_offset> as hash function.
7802
15cd93d0
TV
78032020-04-28 Tom de Vries <tdevries@suse.de>
7804
7805 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7806 with DW_AT_signature.
7807
1eb39914
SM
78082020-04-27 Simon Marchi <simon.marchi@efficios.com>
7809
7810 * configure.ac: Remove check for fs_base/gs_base in
7811 user_regs_struct.
7812 * configure: Re-generate.
7813 * config.in: Re-generate.
7814 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7815 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7816 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7817
991a3e2e
LM
78182020-04-27 Luis Machado <luis.machado@linaro.org>
7819
7820 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7821 problematic inline frame unwinding situation.
7822 * frame.c (frame_id_computed_p): New function.
7823 * frame.h (frame_id_computed_p): New prototype.
7824
361ba0e8
TT
78252020-04-26 Tom Tromey <tom@tromey.com>
7826
7827 * command.h (enum command_class) <class_pseudo>: Remove.
7828
bc3609fd
PW
78292020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7830
7831 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7832 and whitespace.
7833
b9771db7
KR
78342020-04-25 Kamil Rytarowski <n54@gmx.com>
7835
ec16513e
SM
7836 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7837 `PT_GET_PROCESS_STATE' block.
b9771db7 7838
7151c1af
TT
78392020-04-24 Tom Tromey <tom@tromey.com>
7840
7841 * symtab.h (symbol_get_demangled_name): Don't declare.
7842 * symtab.c (symbol_get_demangled_name): Remove.
7843 (general_symbol_info::natural_name)
7844 (general_symbol_info::demangled_name): Update.
7845
906bb4c5
TT
78462020-04-24 Tom Tromey <tom@tromey.com>
7847
7848 PR rust/25025:
7849 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7850
bcfe6157
TT
78512020-04-24 Tom Tromey <tom@tromey.com>
7852
7853 PR symtab/12707:
7854 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7855 exists.
7856 (new_symbol): Likewise.
7857 * compile/compile-object-load.c (get_out_value_type): Use
7858 symbol_matches_search_name.
7859
f049a313
TT
78602020-04-24 Tom Tromey <tom@tromey.com>
7861
7862 * dwarf2/read.c (add_partial_symbol): Do not call
7863 compute_and_set_names.
7864
76e288d1
TT
78652020-04-24 Tom Tromey <tom@tromey.com>
7866
7867 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7868 overload.
7869
2467f4f6
TT
78702020-04-24 Tom Tromey <tom@tromey.com>
7871
7872 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7873 (add_psymbol_to_list): New overload. Make old overload call new
7874 one.
7875 * psympriv.h (add_psymbol_to_list): New overload.
7876
e61108c9
TT
78772020-04-24 Tom Tromey <tom@tromey.com>
7878
7879 * dwarf2/read.c (partial_die_info::read) <case
7880 DW_AT_linkage_name>: Use value_as_string.
7881 (dwarf2_string_attr): Use value_as_string.
7882 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7883 method.
7884 * dwarf2/attribute.c (attribute::value_as_string): New method.
7885
8c87a452
TT
78862020-04-24 Tom Tromey <tom@tromey.com>
7887
7888 * symtab.c (general_symbol_info::natural_name)
7889 (general_symbol_info::demangled_name): Check for language_rust.
7890
787de330
TT
78912020-04-24 Tom Tromey <tom@tromey.com>
7892
7893 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7894 (dwarf2_physname): ... from here.
7895 (partial_die_info::read): Add Rust "{" hack.
7896
ff985671
TT
78972020-04-24 Tom Tromey <tom@tromey.com>
7898
7899 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7900 method.
7901 (symbol_set_demangled_name): Don't declare.
7902 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7903 symbol_set_demangled_name.
7904 (general_symbol_info::set_language)
7905 (general_symbol_info::compute_and_set_names): Update.
7906 * minsyms.c (minimal_symbol_reader::install): Update.
7907 * dwarf2/read.c (new_symbol): Update.
7908
1acda803
TT
79092020-04-24 Tom Tromey <tromey@adacore.com>
7910
7911 PR python/23662:
7912 * python/py-type.c (convert_field): Handle
7913 FIELD_LOC_KIND_DWARF_BLOCK.
7914 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7915 (typy_get_dynamic): Nw function.
7916 (type_object_getset): Add "dynamic".
7917 * NEWS: Add entry.
7918
d656f129
TT
79192020-04-24 Tom Tromey <tromey@adacore.com>
7920
7921 * ada-typeprint.c (print_choices, print_variant_part)
7922 (print_record_field_types_dynamic): New functions.
7923 (print_record_field_types): Use print_record_field_types_dynamic.
7924
7d79de9a
TT
79252020-04-24 Tom Tromey <tromey@adacore.com>
7926
7927 * dwarf2/read.c (handle_data_member_location): New overload.
7928 (dwarf2_add_field): Use it.
7929 (decode_locdesc): Add "computed" parameter. Update comment.
7930 * gdbtypes.c (is_dynamic_type_internal): Also look for
7931 FIELD_LOC_KIND_DWARF_BLOCK.
7932 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7933 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7934 virtual base classes.
7935 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7936 FIELD_LOC_KIND_DWARF_BLOCK.
7937
f8e89861
TT
79382020-04-24 Tom Tromey <tromey@adacore.com>
7939
7940 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7941 * gdbtypes.c (is_dynamic_type_internal): Check
7942 TYPE_HAS_DYNAMIC_LENGTH.
7943 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7944 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7945 New macros.
7946 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7947 constant.
7948
9c6a1327
TT
79492020-04-24 Tom Tromey <tromey@adacore.com>
7950
7951 * dwarf2/read.c (struct variant_field): Rewrite.
7952 (struct variant_part_builder): New.
7953 (struct nextfield): Remove "variant" field. Add "offset".
7954 (struct field_info): Add "current_variant_part" and
7955 "variant_parts".
7956 (alloc_discriminant_info): Remove.
7957 (alloc_rust_variant): New function.
7958 (quirk_rust_enum): Update.
7959 (dwarf2_add_field): Set "offset" member. Don't handle
7960 DW_TAG_variant_part.
7961 (offset_map_type): New typedef.
7962 (convert_variant_range, create_one_variant)
7963 (create_one_variant_part, create_variant_parts)
7964 (add_variant_property): New functions.
7965 (dwarf2_attach_fields_to_type): Call add_variant_property.
7966 (read_structure_type): Don't handle DW_TAG_variant_part.
7967 (handle_variant_part, handle_variant): New functions.
7968 (handle_struct_member_die): Use them.
7969 (process_structure_scope): Don't handle variant parts.
7970 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7971 (struct discriminant_info): Remove.
7972 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7973 (struct main_type) <flag_discriminated_union>: Remove.
7974 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7975 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7976 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7977 Update.
7978 * valops.c (value_union_variant): Remove.
7979 * value.h (value_union_variant): Don't declare.
7980
b249d2c2
TT
79812020-04-24 Tom Tromey <tromey@adacore.com>
7982
7983 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7984 (ada_value_primitive_packed_val): Update.
7985 * ada-valprint.c (ada_value_print_1): Update.
7986 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7987 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7988 just an address. Use evaluate_for_locexpr_baton.
7989 (dwarf2_evaluate_property): Update.
7990 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7991 array_view.
7992 * findvar.c (default_read_var_value): Update.
7993 * gdbtypes.c (compute_variant_fields_inner)
7994 (resolve_dynamic_type_internal): Update.
7995 (resolve_dynamic_type): Change type of valaddr parameter.
7996 * gdbtypes.h (resolve_dynamic_type): Update.
7997 * valarith.c (value_subscripted_rvalue): Update.
7998 * value.c (value_from_contents_and_address): Update.
7999
61122aa9
TT
80002020-04-24 Tom Tromey <tromey@adacore.com>
8001
8002 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8003 "push_initial_value" parameter.
8004 (dwarf2_evaluate_property): Likewise.
8005 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8006
ef83a141
TT
80072020-04-24 Tom Tromey <tromey@adacore.com>
8008
8009 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8010 (variant::matches, compute_variant_fields_recurse)
8011 (compute_variant_fields_inner, compute_variant_fields): New
8012 functions.
8013 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8014 Use resolved_type after type is made.
8015 (operator==): Add new cases.
8016 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8017 (struct discriminant_range, struct variant, struct variant_part):
8018 New.
8019 (union dynamic_prop_data) <variant_parts, original_type>: New
8020 members.
8021 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8022 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8023 constants.
8024 * value.c (unpack_bits_as_long): Now public.
8025 * value.h (unpack_bits_as_long): Declare.
8026
675127ec
TT
80272020-04-24 Tom Tromey <tromey@adacore.com>
8028
8029 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8030 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8031
9852ceef
HD
80322020-04-24 Hannes Domani <ssbssa@yahoo.de>
8033
8034 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8035
7632c6ce
KR
80362020-04-24 Kamil Rytarowski <n54@gmx.com>
8037
8038 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8039 (remove_fork_catchpoint, post_startup_inferior)
8040 (post_attach): Move...
8041 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8042 (remove_fork_catchpoint, post_startup_inferior)
8043 (post_attach): ...here.
8044 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8045 (remove_fork_catchpoint, post_startup_inferior)
8046 (post_attach): Move...
8047 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8048 (remove_fork_catchpoint, post_startup_inferior)
8049 (post_attach): ...here.
8050
7be2bb4f
TT
80512020-04-24 Tom Tromey <tromey@adacore.com>
8052
8053 * nat/windows-nat.h (struct windows_thread_info)
8054 <pc_adjusted>: New member.
8055 * windows-nat.c (windows_fetch_one_register): Check
8056 pc_adjusted.
8057 (windows_nat_target::get_windows_debug_event)
8058 (windows_nat_target::wait): Set pc_adjusted.
8059
f80cb3b4
TV
80602020-04-24 Tom de Vries <tdevries@suse.de>
8061
8062 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8063 Run gdb-add-index inside temp dir.
8064
29514b87
TT
80652020-04-23 Tom Tromey <tromey@adacore.com>
8066
8067 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8068 in loop.
8069
5939967b
LM
80702020-04-23 Luis Machado <luis.machado@linaro.org>
8071
8072 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8073 get_frame_register instead of gdbarch_unwind_pc.
8074
70bc38f5
TV
80752020-04-23 Tom de Vries <tdevries@suse.de>
8076
8077 * symtab.c (lookup_global_symbol): Prefer def over decl.
8078
de82891c
TV
80792020-04-23 Tom de Vries <tdevries@suse.de>
8080
8081 PR symtab/25807
8082 * block.c (best_symbol, better_symbol): Promote to external.
8083 * block.h (best_symbol, better_symbol): Declare.
8084 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8085 decl.
8086
ecc6c606
TT
80872020-04-23 Tom Tromey <tromey@adacore.com>
8088
8089 PR ada/25837:
8090 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8091 "const char *", not a "const std::string &".
8092 <name_and_matcher::operator==>: Update.
8093 * unittests/lookup_name_info-selftests.c: Change type of
8094 "result".
8095
740480b8
TT
80962020-04-23 Tom Tromey <tom@tromey.com>
8097
8098 * inferior.h (iterate_over_inferiors): Don't declare.
8099 * inferior.c (iterate_over_inferiors): Remove.
8100 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8101 Remove.
8102 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8103 use iterate_over_inferiors.
8104 (darwin_resume_inferior_it)
8105 (struct resume_inferior_threads_param)
8106 (darwin_resume_inferior_threads_it): Remove.
8107 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8108
ae3ab1f0
TV
81092020-04-23 Tom de Vries <tdevries@suse.de>
8110
8111 * blockframe.c (find_pc_partial_function): Use
8112 find_pc_sect_compunit_symtab rather than
8113 objfile->sf->qf->find_pc_sect_compunit_symtab.
8114
317d2668
TV
81152020-04-22 Tom de Vries <tdevries@suse.de>
8116
8117 PR symtab/25764
8118 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8119 in psymtabs.
8120
eea9e357
TV
81212020-04-22 Tom de Vries <tdevries@suse.de>
8122
8123 PR symtab/25801
8124 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8125 symtabs.
8126
3d5afab3
TV
81272020-04-22 Tom de Vries <tdevries@suse.de>
8128
8129 PR symtab/25700
8130 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8131 CU if already created.
8132
d43b7a2d
TBA
81332020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8134
8135 * infrun.c (displaced_step_fixup): Switch to the event_thread
8136 before calling displaced_step_restore, not after.
8137
d89edf9b
MM
81382020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8139
8140 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8141 its inferior is not recorded by us.
8142 (record_btrace_target_open): Replace call to
8143 all_non_exited_threads () with call to current_inferior
8144 ()->non_exited_threads ().
8145 (record_btrace_target::stop_recording): Likewise.
8146 (record_btrace_target::close): Likewise.
8147 (record_btrace_target::wait): Likewise.
8148 (record_btrace_target::record_stop_replaying): Likewise.
8149
5897fd49
MM
81502020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8151
8152 * btrace.c (btrace_enable): Throw an error on double enables and
8153 when enabling recording fails.
8154 (btrace_disable): Throw an error if the thread is not recorded.
8155
1a476b6d
MM
81562020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8157
8158 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8159 request if we do not have a thread_info.
8160
4778a5f8
TV
81612020-04-21 Tom de Vries <tdevries@suse.de>
8162
8163 PR gdb/25471
8164 * thread.c
8165 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8166 exception in get_frame_id.
8167
0fa7617d
TT
81682020-04-20 Tom Tromey <tromey@adacore.com>
8169
8170 * python/python.c (struct gdbpy_event): Mark move constructor as
8171 noexcept.
8172 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8173 constructor as noexcept.
8174 * completer.h (struct completion_result): Mark move constructor as
8175 noexcept.
8176 * completer.c (completion_result::completion_result): Use
8177 initialization style. Don't call reset_match_list.
8178
ad23bda0
MS
81792020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8180
8181 * MAINTAINERS (Write After Approval): Add myself.
8182
45e1f031
TT
81832020-04-18 Tom Tromey <tom@tromey.com>
8184
8185 * windows-tdep.c (init_w32_command_list)
8186 (w32_prefix_command_valid): Restore.
8187 (_initialize_windows_tdep): Call init_w32_command_list.
8188
08feed99
TT
81892020-04-18 Tom Tromey <tom@tromey.com>
8190
8191 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8192 * value.c (value_fn_field): Update.
8193 * valops.c (find_function_in_inferior)
8194 (value_allocate_space_in_inferior): Update.
8195 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8196 Update.
8197 * tui/tui-source.c (tui_source_window::set_contents): Update.
8198 * symtab.c (lookup_global_or_static_symbol)
8199 (find_function_start_sal_1, skip_prologue_sal)
8200 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8201 * symmisc.c (dump_msymbols, dump_symtab_1)
8202 (maintenance_print_one_line_table): Update.
8203 * symfile.c (init_entry_point_info, section_is_mapped)
8204 (list_overlays_command, simple_read_overlay_table)
8205 (simple_overlay_update_1): Update.
8206 * stap-probe.c (handle_stap_probe): Update.
8207 * stabsread.c (dbx_init_float_type, define_symbol)
8208 (read_one_struct_field, read_enum_type, read_range_type): Update.
8209 * source.c (info_line_command): Update.
8210 * python/python.c (gdbpy_source_objfile_script)
8211 (gdbpy_execute_objfile_script): Update.
8212 * python/py-type.c (save_objfile_types): Update.
8213 * python/py-objfile.c (py_free_objfile): Update.
8214 * python/py-inferior.c (python_new_objfile): Update.
8215 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8216 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8217 (maintenance_check_psymtabs): Update.
8218 * printcmd.c (info_address_command): Update.
8219 * objfiles.h (struct objfile) <arch>: New method, from
8220 get_objfile_arch.
8221 (get_objfile_arch): Don't declare.
8222 * objfiles.c (get_objfile_arch): Remove.
8223 (filter_overlapping_sections): Update.
8224 * minsyms.c (msymbol_is_function): Update.
8225 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8226 (output_nondebug_symbol): Update.
8227 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8228 (mdebug_expand_psymtab): Update.
8229 * machoread.c (macho_add_oso_symfile): Update.
8230 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8231 Update.
8232 * linux-fork.c (checkpoint_command): Update.
8233 * linespec.c (convert_linespec_to_sals): Update.
8234 * jit.c (finalize_symtab): Update.
8235 * infrun.c (insert_exception_resume_from_probe): Update.
8236 * ia64-tdep.c (ia64_find_unwind_table): Update.
8237 * hppa-tdep.c (internalize_unwinds): Update.
8238 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8239 Update.
8240 * gcore.c (call_target_sbrk): Update.
8241 * elfread.c (record_minimal_symbol, elf_symtab_read)
8242 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8243 (elf_gnu_ifunc_resolve_by_got): Update.
8244 * dwarf2/read.c (create_addrmap_from_index)
8245 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8246 (read_debug_names_from_section)
8247 (process_psymtab_comp_unit_reader, add_partial_symbol)
8248 (add_partial_subprogram, process_full_comp_unit)
8249 (read_file_scope, read_func_scope, read_lexical_block_scope)
8250 (read_call_site_scope, dwarf2_ranges_read)
8251 (dwarf2_record_block_ranges, dwarf2_add_field)
8252 (mark_common_block_symbol_computed, read_tag_pointer_type)
8253 (read_tag_string_type, dwarf2_init_float_type)
8254 (dwarf2_init_complex_target_type, read_base_type)
8255 (partial_die_info::read, partial_die_info::read)
8256 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8257 (dwarf2_fetch_die_loc_sect_off): Update.
8258 * dwarf2/loc.c (dwarf2_find_location_expression)
8259 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8260 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8261 (dwarf2_loc_desc_get_symbol_read_needs)
8262 (locexpr_describe_location_piece, locexpr_describe_location_1)
8263 (loclist_describe_location): Update.
8264 * dwarf2/index-write.c (write_debug_names): Update.
8265 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8266 * dtrace-probe.c (dtrace_process_dof): Update.
8267 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8268 (process_one_symbol): Update.
8269 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8270 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8271 (coff_read_enum_type): Update.
8272 * cli/cli-cmds.c (edit_command, list_command): Update.
8273 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8274 * breakpoint.c (create_overlay_event_breakpoint)
8275 (create_longjmp_master_breakpoint)
8276 (create_std_terminate_master_breakpoint)
8277 (create_exception_master_breakpoint, get_sal_arch): Update.
8278 * block.c (block_gdbarch): Update.
8279 * annotate.c (annotate_source_line): Update.
8280
0743fc83
TT
82812020-04-17 Tom Tromey <tromey@adacore.com>
8282
8283 * auto-load.c (show_auto_load_cmd): Remove.
8284 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8285 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8286 (maintenance_print_arc_command): Remove.
8287 * tui/tui-win.c (tui_command): Remove.
8288 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8289 * tui/tui-layout.c (tui_layout_command): Remove.
8290 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8291 * python/python.c (user_set_python, user_show_python): Remove.
8292 (_initialize_python): Use add_basic_prefix_cmd,
8293 add_show_prefix_cmd.
8294 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8295 (install_gdb_commands): Use add_basic_prefix_cmd,
8296 add_show_prefix_cmd.
8297 (info_guile_command): Remove.
8298 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8299 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8300 add_show_prefix_cmd.
8301 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8302 Remove do_set and do_show parameters.
8303 * cli/cli-style.c (set_style, show_style): Remove.
8304 (_initialize_cli_style): Use add_basic_prefix_cmd,
8305 add_show_prefix_cmd.
8306 (cli_style_option::add_setshow_commands): Remove do_set and
8307 do_show parameters.
8308 (cli_style_option::add_setshow_commands): Use
8309 add_basic_prefix_cmd, add_show_prefix_cmd.
8310 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8311 (set_style_name): Remove.
8312 * cli/cli-dump.c (dump_command, append_command): Remove.
8313 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8314 (tekhex_dump_command, binary_dump_command)
8315 (binary_append_command): Remove.
8316 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8317 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8318 (init_w32_command_list): Remove; move into ...
8319 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8320 * valprint.c (set_print, show_print, set_print_raw)
8321 (show_print_raw): Remove.
8322 (_initialize_valprint): Use add_basic_prefix_cmd,
8323 add_show_prefix_cmd.
8324 * typeprint.c (set_print_type, show_print_type): Remove.
8325 (_initialize_typeprint): Use add_basic_prefix_cmd,
8326 add_show_prefix_cmd.
8327 * record.c (set_record_command, show_record_command): Remove.
8328 (_initialize_record): Use add_basic_prefix_cmd,
8329 add_show_prefix_cmd.
8330 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8331 add_show_prefix_cmd.
8332 (info_command, show_command, set_debug, show_debug): Remove.
8333 * top.h (set_history, show_history): Don't declare.
8334 * top.c (set_history, show_history): Remove.
8335 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8336 (unset_tdesc_cmd): Remove.
8337 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8338 add_show_prefix_cmd.
8339 * symtab.c (info_module_command): Remove.
8340 (_initialize_symtab): Use add_basic_prefix_cmd.
8341 * symfile.c (overlay_command): Remove.
8342 (_initialize_symfile): Use add_basic_prefix_cmd.
8343 * sparc64-tdep.c (info_adi_command): Remove.
8344 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8345 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8346 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8347 add_show_prefix_cmd.
8348 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8349 (_initialize_serial): Use add_basic_prefix_cmd,
8350 add_show_prefix_cmd.
8351 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8352 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8353 add_show_prefix_cmd.
8354 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8355 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8356 add_show_prefix_cmd.
8357 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8358 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8359 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8360 add_show_prefix_cmd.
8361 * remote.c (remote_command, set_remote_cmd): Remove.
8362 (_initialize_remote): Use add_basic_prefix_cmd.
8363 * record-full.c (set_record_full_command)
8364 (show_record_full_command): Remove.
8365 (_initialize_record_full): Use add_basic_prefix_cmd,
8366 add_show_prefix_cmd.
8367 * record-btrace.c (cmd_set_record_btrace)
8368 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8369 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8370 (cmd_show_record_btrace_pt): Remove.
8371 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8372 add_show_prefix_cmd.
8373 * ravenscar-thread.c (set_ravenscar_command)
8374 (show_ravenscar_command): Remove.
8375 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8376 add_show_prefix_cmd.
8377 * mips-tdep.c (show_mips_command, set_mips_command)
8378 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8379 add_show_prefix_cmd.
8380 * maint.c (maintenance_command, maintenance_info_command)
8381 (maintenance_check_command, maintenance_print_command)
8382 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8383 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8384 add_show_prefix_cmd.
8385 (show_per_command_cmd): Remove.
8386 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8387 Remove.
8388 (maintenance_show_test_settings_cmd): Remove.
8389 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8390 add_show_prefix_cmd.
8391 * maint-test-options.c (maintenance_test_options_command):
8392 Remove.
8393 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8394 * macrocmd.c (macro_command): Remove
8395 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8396 * language.c (set_check, show_check): Remove.
8397 (_initialize_language): Use add_basic_prefix_cmd,
8398 add_show_prefix_cmd.
8399 * infcmd.c (unset_command): Remove.
8400 (_initialize_infcmd): Use add_basic_prefix_cmd.
8401 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8402 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8403 add_show_prefix_cmd.
8404 * go32-nat.c (go32_info_dos_command): Remove.
8405 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8406 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8407 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8408 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8409 (_initialize_frame): Use add_basic_prefix_cmd,
8410 add_show_prefix_cmd.
8411 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8412 (_initialize_dcache): Use add_basic_prefix_cmd,
8413 add_show_prefix_cmd.
8414 * cp-support.c (maint_cplus_command): Remove.
8415 (_initialize_cp_support): Use add_basic_prefix_cmd.
8416 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8417 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8418 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8419 add_basic_prefix_cmd, add_show_prefix_cmd.
8420 * breakpoint.c (save_command): Remove.
8421 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8422 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8423 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8424 add_show_prefix_cmd.
8425 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8426 (set_ada_command, show_ada_command): Remove.
8427 (_initialize_ada_language): Use add_basic_prefix_cmd,
8428 add_show_prefix_cmd.
8429 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8430
3557f442
KR
84312020-04-16 Kamil Rytarowski <n54@gmx.com>
8432
8433 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8434 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8435
16197208
SM
84362020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8437
8438 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8439 warning messages.
8440
00ac85d3
SM
84412020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8442
8443 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8444 import table is not at beginning of .idata section.
8445
381ce63f
PA
84462020-04-16 Pedro Alves <palves@redhat.com>
8447
8448 * inferior.c (delete_inferior): Use delete operator directly
8449 instead of delete_program_space.
8450 * progspace.c (add_program_space): New, factored out from
8451 program_space::program_space.
8452 (remove_program_space): New, factored out from
8453 delete_program_space.
8454 (program_space::program_space): Remove intro comment. Rewrite.
8455 (program_space::~program_space): Remove intro comment. Call
8456 remove_program_space.
8457 (delete_program_space): Delete.
8458 * progspace.h (program_space::program_space): Make explicit. Move
8459 intro comment here, adjusted.
8460 (program_space::~program_space): Move intro comment here,
8461 adjusted.
8462 (delete_program_space): Remove.
8463
a010605f
TT
84642020-04-16 Tom Tromey <tromey@adacore.com>
8465
8466 * windows-nat.c (windows_nat::handle_access_violation): New
8467 function.
8468 * nat/windows-nat.h (handle_access_violation): Declare.
8469 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8470 windows-nat.c. Call handle_access_violation.
8471
efba5c23
TV
84722020-04-16 Tom de Vries <tdevries@suse.de>
8473
8474 PR symtab/25791
8475 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8476 CUs without psymtab.
8477
97ed802d
KB
84782020-04-16 Kevin Buettner <kevinb@redhat.com>
8479
8480 * python/python.c (do_start_initialization): Don't call
8481 PyEval_InitThreads for Python 3.9 and beyond.
8482
c7d64809
KR
84832020-04-15 Kamil Rytarowski <n54@gmx.com>
8484
8485 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8486 thread functions.
8487 (obsd_nat_target::wait): Likewise.
8488
ce127a96
TT
84892020-04-15 Tom Tromey <tromey@adacore.com>
8490
8491 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8492 (DEBUG_EXCEPT): Use debug_printf.
8493
99f1bc6a
AB
84942020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8495
8496 * completer.c (class completion_tracker::completion_hash_entry)
8497 <hash_name>: New member function.
8498 (completion_tracker::discard_completions): New callback to hash a
8499 completion_hash_entry, pass this to htab_create_alloc.
8500
a0e9b532
JT
85012016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8502
8503 * windows-nat.c (windows_make_so): Warn rather than stopping with
8504 an error if realpath() fails.
8505
06ca5dd4
KR
85062020-04-14 Kamil Rytarowski <n54@gmx.com>
8507
8508 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8509 (nbsd_nat_target::info_proc): Add do_status.
8510
194d088f
TV
85112020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8512 Tom de Vries <tdevries@suse.de>
8513
8514 PR symtab/25718
8515 * psympriv.h (struct partial_symtab::read_symtab)
8516 (struct partial_symtab::expand_psymtab)
8517 (struct partial_symtab::read_dependencies): Update comments.
8518 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8519 read_symtab for includer.
8520 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8521 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8522 (struct dwarf2_include_psymtab::m_readin): Remove.
8523 (struct dwarf2_include_psymtab::includer): New member function.
8524 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8525
c1a66c06
TV
85262020-04-14 Tom de Vries <tdevries@suse.de>
8527
8528 PR symtab/25720
8529 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8530 with NULL symbol_matcher and lookup_name.
8531 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8532 and lookup_name.
8533 * dwarf2/read.c (dw2_expand_symtabs_matching)
8534 (dw2_debug_names_expand_symtabs_matching): Same.
8535 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8536 Make lookup_name a pointer. Update comment.
8537 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8538 lookup_name being a pointer.
8539 * symfile.c (expand_symtabs_matching): Same.
8540 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8541 * linespec.c (iterate_over_all_matching_symtabs): Same.
8542
400b5eca
TT
85432020-04-13 Tom Tromey <tom@tromey.com>
8544
8545 * run-on-main-thread.c: Update include.
8546 * unittests/main-thread-selftests.c: Update include.
8547 * tui/tui-win.c: Update include.
8548 * tui/tui-io.c: Update include.
8549 * tui/tui-interp.c: Update include.
8550 * tui/tui-hooks.c: Update include.
8551 * top.h: Update include.
8552 * top.c: Update include.
8553 * ser-base.c: Update include.
8554 * remote.c: Update include.
8555 * remote-notif.c: Update include.
8556 * remote-fileio.c: Update include.
8557 * record-full.c: Update include.
8558 * record-btrace.c: Update include.
8559 * python/python.c: Update include.
8560 * posix-hdep.c: Update include.
8561 * mingw-hdep.c: Update include.
8562 * mi/mi-main.c: Update include.
8563 * mi/mi-interp.c: Update include.
8564 * main.c: Update include.
8565 * linux-nat.c: Update include.
8566 * interps.c: Update include.
8567 * infrun.c: Update include.
8568 * inf-loop.c: Update include.
8569 * event-top.c: Update include.
8570 * event-loop.c: Move to ../gdbsupport/.
8571 * event-loop.h: Move to ../gdbsupport/.
8572 * async-event.h: Update include.
8573 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8574
93b54c8e
TT
85752020-04-13 Tom Tromey <tom@tromey.com>
8576
8577 * tui/tui-win.c: Include async-event.h.
8578 * remote.c: Include async-event.h.
8579 * remote-notif.c: Include async-event.h.
8580 * record-full.c: Include async-event.h.
8581 * record-btrace.c: Include async-event.h.
8582 * infrun.c: Include async-event.h.
8583 * event-top.c: Include async-event.h.
8584 * event-loop.h: Move some declarations to async-event.h.
8585 * event-loop.c: Don't include ser-event.h or top.h. Move some
8586 code to async-event.c.
8587 * async-event.h: New file.
8588 * async-event.c: New file.
8589 * Makefile.in (COMMON_SFILES): Add async-event.c.
8590 (HFILES_NO_SRCDIR): Add async-event.h.
8591
c1cd3163
TT
85922020-04-13 Tom Tromey <tom@tromey.com>
8593
8594 * utils.c (flush_streams): New function.
8595 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8596
29f2bf4f
TT
85972020-04-13 Tom Tromey <tom@tromey.com>
8598
8599 * event-loop.c (handle_file_event): Use warning, not
8600 printf_unfiltered.
8601
98029d02
TT
86022020-04-13 Tom Tromey <tom@tromey.com>
8603
8604 * event-loop.c: Include <chrono>.
8605
06cc9596
TT
86062020-04-13 Tom Tromey <tom@tromey.com>
8607
8608 * gdb_select.h: Move to ../gdbsupport/.
8609 * event-loop.c: Update include path.
8610 * top.c: Update include path.
8611 * ser-base.c: Update include path.
8612 * ui-file.c: Update include path.
8613 * ser-tcp.c: Update include path.
8614 * guile/scm-ports.c: Update include path.
8615 * posix-hdep.c: Update include path.
8616 * ser-unix.c: Update include path.
8617 * gdb_usleep.c: Update include path.
8618 * mingw-hdep.c: Update include path.
8619 * inflow.c: Update include path.
8620 * infrun.c: Update include path.
8621 * event-top.c: Update include path.
8622
8ae8e197
TT
86232020-04-13 Tom Tromey <tom@tromey.com>
8624
8625 * configure: Rebuild.
8626 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8627
58cf28e8
TT
86282020-04-13 Tom Tromey <tom@tromey.com>
8629
8630 * event-loop.h (start_event_loop): Don't declare.
8631 * event-loop.c (start_event_loop): Move...
8632 * main.c (start_event_loop): ...here. Now static.
8633
b7f999ae
SDJ
86342020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8635
8636 * MAINTAINERS: Update my email address.
8637
1085dfd4
KR
86382020-04-12 Kamil Rytarowski <n54@gmx.com>
8639
8640 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8641 IP_ALL.
8642
49d1d1f5
KR
86432020-04-12 Kamil Rytarowski <n54@gmx.com>
8644
8645 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8646 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8647
b4848d2a
KR
86482020-04-12 Kamil Rytarowski <n54@gmx.com>
8649
8650 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8651 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8652
51c133d5
KR
86532020-04-12 Kamil Rytarowski <n54@gmx.com>
8654
8655 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8656
54b8cbd0
KR
86572020-04-11 Kamil Rytarowski <n54@gmx.com>
8658
8659 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8660 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8661 (nbsd_nat_target::info_proc): New functions.
8662 * nbsd-nat.c (kinfo_get_vmmap): New function.
8663 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8664 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8665 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8666 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8667 functions.
8668 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8669 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8670 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8671 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8672 (KINFO_VME_FLAG_GROWS_DOWN): New.
8673
cf83625d
AS
86742020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8675
8676 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8677 bit shift.
8678
0c4311ab
TT
86792020-04-10 Tom Tromey <tromey@adacore.com>
8680
8681 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8682
3e65b3e9
TT
86832020-04-10 Tom Tromey <tromey@adacore.com>
8684
8685 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8686 separate debug files.
8687
13302e95
HD
86882020-04-10 Hannes Domani <ssbssa@yahoo.de>
8689
8690 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8691 Move to...
8692 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8693 ... here.
8694 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8695 Check for STATUS_WX86_BREAKPOINT.
8696 (windows_nat_target::wait): Same.
8697
bdfc1e8a
TV
86982020-04-10 Tom de Vries <tdevries@suse.de>
8699
8700 PR cli/25808
8701 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8702
f4460aec
SM
87032020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8704
8705 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8706 (Write After Approval): Remove Tom de Vries.
8707
a25198bb
BE
87082020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8709
8710 revert partially:
8711 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8712
aac66a4c
SM
8713 * buildsym.c (record_line): Fix undefined behavior and preserve
8714 lines at eof.
a25198bb 8715
206c98a6
KR
87162020-04-09 Kamil Rytarowski <n54@gmx.com>
8717
8718 * auxv.h (svr4_auxv_parse): New.
8719 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8720 and generic_auxv_parse.
8721 (svr4_auxv_parse): Add.
8722 * obsd-tdep.c: Include "auxv.h".
8723 (obsd_auxv_parse): Remove.
8724 (obsd_init_abi): Remove comment.
8725 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8726 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8727 * nbsd-tdep.c: Include "auxv.h".
8728 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8729
71fbdbaf
TT
87302020-04-08 Tom Tromey <tromey@adacore.com>
8731
8732 * nat/windows-nat.h (last_wait_event): Don't declare.
8733 (wait_for_debug_event): Update comment.
8734 * nat/windows-nat.c (last_wait_event): Now static.
8735
2c1d95e8
TT
87362020-04-08 Tom Tromey <tromey@adacore.com>
8737
8738 * windows-nat.c (wait_for_debug_event): Move to
8739 nat/windows-nat.c.
8740 * nat/windows-nat.h (wait_for_debug_event): Declare.
8741 * nat/windows-nat.c (wait_for_debug_event): Move from
8742 windows-nat.c. No longer static.
8743
d2977bc4
TT
87442020-04-08 Tom Tromey <tromey@adacore.com>
8745
8746 * windows-nat.c (get_windows_debug_event): Use
8747 fetch_pending_stop.
8748 * nat/windows-nat.h (fetch_pending_stop): Declare.
8749 * nat/windows-nat.c (fetch_pending_stop): New function.
8750
e758e19c
TT
87512020-04-08 Tom Tromey <tromey@adacore.com>
8752
8753 * windows-nat.c (windows_continue): Use matching_pending_stop and
8754 continue_last_debug_event.
8755 * nat/windows-nat.h (matching_pending_stop)
8756 (continue_last_debug_event): Declare.
8757 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8758 (matching_pending_stop, continue_last_debug_event): New
8759 functions.
8760
8d30e395
TT
87612020-04-08 Tom Tromey <tromey@adacore.com>
8762
8763 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8764 (handle_exception_result): Move to nat/windows-nat.h.
8765 (DEBUG_EXCEPTION_SIMPLE): Remove.
8766 (windows_nat::handle_ms_vc_exception): New function.
8767 (handle_exception): Move to nat/windows-nat.c.
8768 (get_windows_debug_event): Update.
8769 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8770 nat/windows-nat.c.
8771 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8772 (handle_exception_result): Move from windows-nat.c.
8773 (handle_exception): Declare.
8774 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8775 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8776 windows-nat.c.
8777
29de418d
TT
87782020-04-08 Tom Tromey <tromey@adacore.com>
8779
8780 * windows-nat.c (exception_count, event_count): Remove.
8781 (handle_exception, get_windows_debug_event)
8782 (do_initial_windows_stuff): Update.
8783
a816ba18
TT
87842020-04-08 Tom Tromey <tromey@adacore.com>
8785
8786 * windows-nat.c (windows_nat::handle_load_dll)
8787 (windows_nat::handle_unload_dll): Rename. No longer static.
8788 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8789 Declare.
8790
a00caa12
TT
87912020-04-08 Tom Tromey <tromey@adacore.com>
8792
8793 * complaints.h (stop_whining): Declare at top-level.
8794 (complaint): Don't declare stop_whining.
8795
d41b524f
TT
87962020-04-08 Tom Tromey <tromey@adacore.com>
8797
8798 * windows-nat.c (windows_nat::handle_output_debug_string):
8799 Rename. No longer static.
8800 * nat/windows-nat.h (handle_output_debug_string): Declare.
8801
3c76026d
TT
88022020-04-08 Tom Tromey <tromey@adacore.com>
8803
8804 * windows-nat.c (current_process_handle, current_process_id)
8805 (main_thread_id, last_sig, current_event, last_wait_event)
8806 (current_windows_thread, desired_stop_thread_id, pending_stops)
8807 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8808 (display_selectors, fake_create_process)
8809 (get_windows_debug_event): Update.
8810 * nat/windows-nat.h (current_process_handle, current_process_id)
8811 (main_thread_id, last_sig, current_event, last_wait_event)
8812 (current_windows_thread, desired_stop_thread_id, pending_stops)
8813 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8814 * nat/windows-nat.c (current_process_handle, current_process_id)
8815 (main_thread_id, last_sig, current_event, last_wait_event)
8816 (current_windows_thread, desired_stop_thread_id, pending_stops)
8817 (siginfo_er): New globals. Move from windows-nat.c.
8818
9d8679cc
TT
88192020-04-08 Tom Tromey <tromey@adacore.com>
8820
8821 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8822 (handle_load_dll): Update.
8823 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8824
28688adf
TT
88252020-04-08 Tom Tromey <tromey@adacore.com>
8826
8827 * windows-nat.c (enum thread_disposition_type): Move to
8828 nat/windows-nat.h.
8829 (windows_nat::thread_rec): Rename from thread_rec. No longer
8830 static.
8831 (windows_add_thread, windows_nat_target::fetch_registers)
8832 (windows_nat_target::store_registers, handle_exception)
8833 (windows_nat_target::resume, get_windows_debug_event)
8834 (windows_nat_target::get_tib_address)
8835 (windows_nat_target::thread_name)
8836 (windows_nat_target::thread_alive): Update.
8837 * nat/windows-nat.h (enum thread_disposition_type): Move from
8838 windows-nat.c.
8839 (thread_rec): Declare.
8840
4834dad0
TT
88412020-04-08 Tom Tromey <tromey@adacore.com>
8842
8843 * windows-nat.c: Add "using namespace".
8844 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8845 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8846
65bafd5b
TT
88472020-04-08 Tom Tromey <tromey@adacore.com>
8848
8849 * nat/windows-nat.h (struct windows_thread_info): Declare
8850 destructor.
8851 * nat/windows-nat.c (~windows_thread_info): New.
8852
0a4afda3
TT
88532020-04-08 Tom Tromey <tromey@adacore.com>
8854
8855 PR gdb/22992
8856 * windows-nat.c (current_event): Update comment.
8857 (last_wait_event, desired_stop_thread_id): New globals.
8858 (struct pending_stop): New.
8859 (pending_stops): New global.
8860 (windows_nat_target) <stopped_by_sw_breakpoint>
8861 <supports_stopped_by_sw_breakpoint>: New methods.
8862 (windows_fetch_one_register): Add assertions. Adjust PC.
8863 (windows_continue): Handle pending stops. Suspend other threads
8864 when stepping. Use last_wait_event
8865 (wait_for_debug_event): New function.
8866 (get_windows_debug_event): Use wait_for_debug_event. Handle
8867 pending stops. Queue spurious stops.
8868 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8869 (windows_nat_target::kill): Use wait_for_debug_event.
8870 * nat/windows-nat.h (struct windows_thread_info)
8871 <stopped_at_software_breakpoint>: New field.
8872 * nat/windows-nat.c (windows_thread_info::resume): Clear
8873 stopped_at_software_breakpoint.
8874
8e61ebec
TT
88752020-04-08 Tom Tromey <tromey@adacore.com>
8876
8877 * windows-nat.c (enum thread_disposition_type): New.
8878 (thread_rec): Replace "get_context" parameter with "disposition";
8879 change type.
8880 (windows_add_thread, windows_nat_target::fetch_registers)
8881 (windows_nat_target::store_registers, handle_exception)
8882 (windows_nat_target::resume, get_windows_debug_event)
8883 (windows_nat_target::get_tib_address)
8884 (windows_nat_target::thread_name)
8885 (windows_nat_target::thread_alive): Update.
8886
98a03287
TT
88872020-04-08 Tom Tromey <tromey@adacore.com>
8888
8889 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8890 (windows_continue): Use windows_continue::resume.
8891 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8892 resume>: Declare new methods.
8893 * nat/windows-nat.c: New file.
8894 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8895
7c7411bc
TT
88962020-04-08 Tom Tromey <tromey@adacore.com>
8897
8898 * windows-nat.c (windows_add_thread, windows_delete_thread)
8899 (windows_nat_target::fetch_registers)
8900 (windows_nat_target::store_registers, fake_create_process)
8901 (windows_nat_target::resume, windows_nat_target::resume)
8902 (get_windows_debug_event, windows_nat_target::wait)
8903 (windows_nat_target::pid_to_str)
8904 (windows_nat_target::get_tib_address)
8905 (windows_nat_target::get_ada_task_ptid)
8906 (windows_nat_target::thread_name)
8907 (windows_nat_target::thread_alive): Use lwp, not tid.
8908
2950fdf7
TT
89092020-04-08 Tom Tromey <tromey@adacore.com>
8910
8911 * windows-nat.c (handle_exception)
8912 (windows_nat_target::thread_name): Update.
8913 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8914 <name>: Now unique_xmalloc_ptr.
8915
62fe396b
TT
89162020-04-08 Tom Tromey <tromey@adacore.com>
8917
8918 * windows-nat.c (thread_rec)
8919 (windows_nat_target::fetch_registers): Update.
8920 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8921 Update comment.
8922 <debug_registers_changed, reload_context>: Now bool.
8923
e9534bd2
TT
89242020-04-08 Tom Tromey <tromey@adacore.com>
8925
8926 * windows-nat.c (windows_add_thread): Use new.
8927 (windows_init_thread_list, windows_delete_thread): Use delete.
8928 (get_windows_debug_event): Update.
8929 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8930 destructor, and initializers.
8931
ae1f8880
TT
89322020-04-08 Tom Tromey <tromey@adacore.com>
8933
8934 * windows-nat.c (struct windows_thread_info): Remove.
8935 * nat/windows-nat.h: New file.
8936
55a1e039
TT
89372020-04-08 Tom Tromey <tromey@adacore.com>
8938
8939 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8940 (thread_rec, windows_add_thread, windows_delete_thread)
8941 (windows_continue): Update.
8942
93366324
TT
89432020-04-08 Tom Tromey <tromey@adacore.com>
8944
8945 * windows-nat.c (struct windows_thread_info): Remove typedef.
8946 (thread_head): Remove.
8947 (thread_list): New global.
8948 (thread_rec, windows_add_thread, windows_init_thread_list)
8949 (windows_delete_thread, windows_continue): Update.
8950
0f2265e2
SM
89512020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8952
8953 * windows-tdep.h (windows_init_abi): Add comment.
8954 (cygwin_init_abi): New declaration.
8955 * windows-tdep.c: Split signal enumeration in two, one for
8956 Windows and one for Cygwin.
8957 (windows_gdb_signal_to_target): Only deal with signal of the
8958 Windows OS ABI.
8959 (cygwin_gdb_signal_to_target): New function.
8960 (windows_init_abi): Rename to windows_init_abi_common, don't set
8961 gdb_signal_to_target gdbarch method. Add new new function with
8962 this name.
8963 (cygwin_init_abi): New function.
8964 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8965 comment. Don't call windows_init_abi.
8966 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8967 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8968 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8969 i386_windows_init_abi_common, don't call windows_init_abi. Add
8970 a new function of this name.
8971 (i386_cygwin_init_abi): New function.
8972 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8973 OS ABI Cygwin.
8974
3810f182
SM
89752020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8976
8977 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8978 parameter.c.
8979 (dwarf2_read_gdb_index): Update.
8980
063f8e80
KR
89812020-04-07 Kamil Rytarowski <n54@gmx.com>
8982
8983 * nbsd-tdep.c: Include "objfiles.h".
8984 (nbsd_skip_solib_resolver): New.
8985 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8986
85a9510c 89872020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8988
8989 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8990 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8991 with DW_LLE_base_addressx are being emitted in DWARFv5.
8992 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8993 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8994 unsigned integer.
8995
9fc3eaae 89962020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8997
8998 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8999 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9000 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9001 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9002 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9003 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9004 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9005
9006
41144253 90072020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9008
9009 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9010 (read_loclist_index): New function definition.
9011 (lookup_loclist_base): New function definition.
9012 (read_loclist_header): New function definition.
9013 (dwarf2_cu): Add loclist_base and loclist_header field.
9014 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9015 (read_full_die_1): Read the value of DW_AT_loclists_base.
9016 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9017 (read_attribute_value): Handle DW_FORM_loclistx.
9018 (skip_one_die): Handle DW_FORM_loclistx.
9019 (loclist_header): New structure declaration.
9020 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9021
9f4e76a4
SM
90222020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9023
9024 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9025 constructor. Remove `addr` parameter from other constructor and
9026 add `per_cu` parameter.
9027 * dwarf2/read.c (create_partial_symtab): Update.
9028
25c11aca
TV
90292020-04-07 Tom de Vries <tdevries@suse.de>
9030
9031 PR symtab/25796
9032 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9033 (partial_die_info::fixup): Inherit has_const_value.
9034
5707e24b
TV
90352020-04-07 Tom de Vries <tdevries@suse.de>
9036
9037 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9038 symbols without address.
9039
05f00e22
KR
90402020-04-06 Kamil Rytarowski <n54@gmx.com>
9041
9042 * nbsd-nat.h (struct thread_info): Add forward declaration.
9043 (nbsd_nat_target::thread_alive): Add.
9044 (nbsd_nat_target::thread_name): Likewise.
9045 (nbsd_nat_target::update_thread_list): Likewise.
9046 (update_thread_list::post_attach): Likewise.
9047 (post_attach::pid_to_str): Likewise.
9048 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9049 (nbsd_thread_lister): Add.
9050 (nbsd_nat_target::thread_alive): Likewise.
9051 (nbsd_nat_target::thread_name): Likewise.
9052 (nbsd_add_threads): Likewise.
9053 (update_thread_list::post_attach): Likewise.
9054 (nbsd_nat_target::update_thread_list): Likewise.
9055 (post_attach::pid_to_str): Likewise.
9056
6ee448cc
TT
90572020-04-06 Tom Tromey <tromey@adacore.com>
9058
9059 * ada-valprint.c (print_variant_part): Extract the variant field.
9060 (print_field_values): Use the field as the outer value when
9061 recursing.
9062
dea34e8c
TT
90632020-04-06 Tom Tromey <tromey@adacore.com>
9064
9065 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9066 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9067 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9068 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9069 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9070
93689ce9
TT
90712020-04-06 Tom Tromey <tromey@adacore.com>
9072
9073 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9074 TYPE_CODE_ERROR.
9075
79743962
KR
90762020-04-06 Kamil Rytarowski <n54@gmx.com>
9077
9078 * nbsd-tdep.c: Include "gdbarch.h".
9079 Define enum with NetBSD signal numbers.
9080 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9081 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9082 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9083 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9084 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9085 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9086 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9087 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9088 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9089 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9090 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9091 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9092
9e7c9a03
HD
90932020-04-03 Hannes Domani <ssbssa@yahoo.de>
9094
9095 PR gdb/25325
9096 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9097
d9e49b61
TT
90982020-04-03 Tom Tromey <tromey@adacore.com>
9099
9100 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9101 Read constant block.
9102
e0fc5c3f
SM
91032020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9104
9105 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9106 (gdb_bfd_get_full_section_contents): New declaration.
9107 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9108 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9109 gdb_bfd_get_full_section_contents.
9110
e2ff18a0
SM
91112020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9112
9113 * exec.c (build_section_table): Replace internal_error with
9114 gdb_assert.
9115 (section_table_xfer_memory_partial): Likewise.
9116 * mdebugread.c (parse_partial_symbols): Likewise.
9117 * psymtab.c (lookup_partial_symbol): Likewise.
9118 * utils.c (wrap_here): Likewise.
9119
0830d301
TT
91202020-04-02 Tom Tromey <tromey@adacore.com>
9121
9122 * f-lang.c (build_fortran_types): Use arch_type to initialize
9123 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9124
e7da7f8f
TT
91252020-04-02 Tom Tromey <tromey@adacore.com>
9126
9127 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9128 of attributes.
9129
c90d28ac
AB
91302020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9131 Bernd Edlinger <bernd.edlinger@hotmail.de>
9132 Tom Tromey <tromey@adacore.com>
9133
9134 * buildsym.c (buildsym_compunit::record_line): Remove
9135 deduplication code.
9136
1aa98955
TV
91372020-04-02 Tom de Vries <tdevries@suse.de>
9138
9139 PR ada/24671
9140 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9141
d3214198
TV
91422020-04-02 Tom de Vries <tdevries@suse.de>
9143
9144 * dwarf2/read.c (dwarf2_gdb_index_functions,
9145 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9146 NULL.
9147 * psymtab.c (psym_lookup_global_symbol_language): New function.
9148 (psym_functions): Init psym_lookup_global_symbol_language with
9149 psym_lookup_global_symbol_language.
9150 * symfile-debug.c (debug_sym_quick_functions): Init
9151 lookup_global_symbol_language with NULL.
9152 * symfile.c (set_initial_language): Remove fixme comment.
9153 * symfile.h (struct quick_symbol_functions): Add
9154 lookup_global_symbol_language.
9155 * symtab.c (find_quick_global_symbol_language): New function.
9156 (find_main_name): Use find_quick_global_symbol_language.
9157
2836752f
SM
91582020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9159
9160 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9161
64dc2d4b
BE
91622020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9163
9164 * buildsym.c (record_line): Fix undefined behavior and preserve
9165 lines at eof.
9166
bbe3dc41
BE
91672020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9168
9169 * buildsym.c (record_line): Fix the resizing condition.
9170
6b4a335b
TT
91712020-04-01 Tom Tromey <tom@tromey.com>
9172
9173 * value.h (value_literal_complex): Add comment.
9174 * valops.c (value_literal_complex): Refer to value.h.
9175
3638a098
TT
91762020-04-01 Tom Tromey <tom@tromey.com>
9177
9178 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9179 (scalar_type): New rule, from typebase.
9180 (typebase): Use scalar_type. Recognize complex types.
9181 (field_name): Handle FLOAT_KEYWORD.
9182 (ident_tokens): Add _Complex and __complex__.
9183
c34e8714
TT
91842020-04-01 Tom Tromey <tom@tromey.com>
9185
9186 PR exp/25299:
9187 * valarith.c (promotion_type, complex_binop): New functions.
9188 (scalar_binop): Handle complex numbers. Use promotion_type.
9189 (value_pos, value_neg, value_complement): Handle complex numbers.
9190
fa649bb7
TT
91912020-04-01 Tom Tromey <tom@tromey.com>
9192
9193 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9194 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9195 (parse_number): Handle complex numbers.
9196
981c08ce
TT
91972020-04-01 Tom Tromey <tom@tromey.com>
9198
9199 * c-valprint.c (c_decorations): Change complex suffix to "i".
9200
4c99290d
TT
92012020-04-01 Tom Tromey <tom@tromey.com>
9202
9203 * valprint.c (generic_value_print_complex): Use accessors.
9204 * value.h (value_real_part, value_imaginary_part): Declare.
9205 * valops.c (value_real_part, value_imaginary_part): New
9206 functions.
9207 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9208
5b930b45
TT
92092020-04-01 Tom Tromey <tom@tromey.com>
9210
9211 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9212 (read_range_type): Update.
9213 * mdebugread.c (basic_type): Update.
9214 * go-lang.c (build_go_types): Use init_complex_type.
9215 * gdbtypes.h (struct main_type) <complex_type>: New member.
9216 (init_complex_type): Update.
9217 (arch_complex_type): Don't declare.
9218 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9219 Make name if none given. Use alloc_type_copy. Look for cached
9220 complex type.
9221 (arch_complex_type): Remove.
9222 (gdbtypes_post_init): Use init_complex_type.
9223 * f-lang.c (build_fortran_types): Use init_complex_type.
9224 * dwarf2/read.c (read_base_type): Update.
9225 * d-lang.c (build_d_types): Use init_complex_type.
9226 * ctfread.c (read_base_type): Update.
9227
53cccef1
TBA
92282020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9229
9230 * infrun.c (stop_all_threads): Update assertion, plus when
9231 stopping threads, take into account that we might be trying
9232 to stop an all-stop target.
9233 (stop_waiting): Call 'stop_all_threads' if there exists a
9234 non-stop target.
9235
a0714d30
TBA
92362020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9237
9238 * target.h (exists_non_stop_target): New function declaration.
9239 * target.c (exists_non_stop_target): New function.
9240
60e22c1e
HD
92412020-04-01 Hannes Domani <ssbssa@yahoo.de>
9242
9243 PR gdb/24789
9244 * eval.c (is_integral_or_integral_reference): New function.
9245 (evaluate_subexp_standard): Allow integer references in
9246 pointer arithmetic.
9247
e139a727
TBA
92482020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9249
9250 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9251 check for no ptid in the stop reply when the target is non-stop.
9252
e0802d59
TT
92532020-04-01 Tom Tromey <tromey@adacore.com>
9254
9255 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9256 "name" parameter to rvalue reference. Initialize m_name_holder.
9257 <lookup_name_info>: New overloads.
9258 <name>: Return gdb::string_view.
9259 <c_str>: New method.
9260 <make_ignore_params>: Update.
9261 <search_name_hash>: Update.
9262 <language_lookup_name>: Return const char *.
9263 <m_name>: Change type.
9264 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9265 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9266 (lookup_name_info::match_any): Update.
9267 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9268 Update.
9269 * minsyms.c (linkage_name_str): Update.
9270 * language.c (default_symbol_name_matcher): Update.
9271 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9272 Update.
9273 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9274 (ada_lookup_name_info::ada_lookup_name_info): Update.
9275 (literal_symbol_name_matcher): Update.
9276
8c072cb6
TT
92772020-04-01 Tom Tromey <tromey@adacore.com>
9278
9279 * psymtab.c (psymtab_search_name): Remove function.
9280 (psym_lookup_symbol): Create search name and lookup name here.
9281 (lookup_partial_symbol): Remove "name" parameter; add
9282 lookup_name.
9283 (psym_expand_symtabs_for_function): Update.
9284
6f29a534
TT
92852020-03-31 Joel Jones <joelkevinjones@gmail.com>
9286
9287 PR tui/25597:
9288 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9289
af62665e
TT
92902020-03-31 Tom Tromey <tromey@adacore.com>
9291
9292 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9293 memcpy.
9294
d1a89da5
NC
92952020-03-30 Nelson Chu <nelson.chu@sifive.com>
9296
9297 * features/riscv/32bit-csr.xml: Regenerated.
9298 * features/riscv/64bit-csr.xml: Regenerated.
9299
d8af9068
TT
93002020-03-30 Tom Tromey <tromey@adacore.com>
9301
9302 * ada-valprint.c (print_variant_part): Update.
9303 * ada-lang.h (ada_which_variant_applies): Update.
9304 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9305 outer_valaddr parameters; replace with "outer" value parameter.
9306 (to_fixed_variant_branch_type): Update.
9307
227c0bf4
PFC
93082020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9309
9310 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9311 <list>. Remove inclusion of observable.h.
9312 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9313 (struct arch_lwp_info): New struct.
9314 (class ppc_linux_dreg_interface): New class.
9315 (struct ppc_linux_process_info): New struct.
9316 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9317 <low_new_clone, low_forget_process, low_prepare_to_resume>
9318 <copy_thread_dreg_state, mark_thread_stale>
9319 <mark_debug_registers_changed, register_hw_breakpoint>
9320 <clear_hw_breakpoint, register_wp, clear_wp>
9321 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9322 <num_memory_accesses, get_trigger_type>
9323 <create_watchpoint_request, hwdebug_point_cmp>
9324 <init_arch_lwp_info, get_arch_lwp_info>
9325 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9326 methods.
9327 <struct ptid_hash>: New inner struct.
9328 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9329 members.
9330 (saved_dabr_value, hwdebug_info, max_slots_number)
9331 (struct hw_break_tuple, struct thread_points, ppc_threads)
9332 (have_ptrace_hwdebug_interface)
9333 (hwdebug_find_thread_points_by_tid)
9334 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9335 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9336 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9337 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9338 use m_dreg_interface.
9339 (hwdebug_point_cmp): Change to...
9340 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9341 reference arguments instead of pointers.
9342 (ppc_linux_nat_target::ranged_break_num_registers): Use
9343 m_dreg_interface.
9344 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9345 m_dreg_interface. Call register_hw_breakpoint.
9346 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9347 m_dreg_interface. Call clear_hw_breakpoint.
9348 (get_trigger_type): Change to...
9349 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9350 comment.
9351 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9352 use m_dreg_interface. Call register_hw_breakpoint.
9353 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9354 use m_dreg_interface. Call clear_hw_breakpoint.
9355 (can_use_watchpoint_cond_accel): Change to...
9356 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9357 method. Update comment, use m_dreg_interface and
9358 m_process_info.
9359 (calculate_dvc): Change to...
9360 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9361 m_dreg_interface.
9362 (num_memory_accesses): Change to...
9363 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9364 (check_condition): Change to...
9365 (ppc_linux_nat_target::check_condition): ...this method.
9366 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9367 comment, use m_dreg_interface.
9368 (create_watchpoint_request): Change to...
9369 (ppc_linux_nat_target::create_watchpoint_request): ...this
9370 method. Use m_dreg_interface.
9371 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9372 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9373 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9374 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9375 (ppc_linux_nat_target::low_forget_process)
9376 (ppc_linux_nat_target::low_new_fork)
9377 (ppc_linux_nat_target::low_new_clone)
9378 (ppc_linux_nat_target::low_delete_thread)
9379 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9380 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9381 only call mark_thread_stale.
9382 (ppc_linux_thread_exit): Remove.
9383 (ppc_linux_nat_target::stopped_data_address): Change to...
9384 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9385 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9386 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9387 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9388 comment. Call low_stopped_data_address.
9389 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9390 m_dreg_interface.
9391 (ppc_linux_nat_target::masked_watch_num_registers): Use
9392 m_dreg_interface.
9393 (ppc_linux_nat_target::copy_thread_dreg_state)
9394 (ppc_linux_nat_target::mark_thread_stale)
9395 (ppc_linux_nat_target::mark_debug_registers_changed)
9396 (ppc_linux_nat_target::register_hw_breakpoint)
9397 (ppc_linux_nat_target::clear_hw_breakpoint)
9398 (ppc_linux_nat_target::register_wp)
9399 (ppc_linux_nat_target::clear_wp)
9400 (ppc_linux_nat_target::init_arch_lwp_info)
9401 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9402 (_initialize_ppc_linux_nat): Remove observer callback.
9403
4db10d8f
PFC
94042020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9405
9406 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9407 (ppc_linux_nat_target::auxv_parse)
9408 (ppc_linux_nat_target::read_description)
9409 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9410 Move up.
9411
1310c1b0
PFC
94122020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9413
9414 * linux-nat.h (low_new_clone): New method.
9415 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9416
69b037c3
SM
94172020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9418
9419 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9420 (dbx_expand_psymtab): ... this.
9421 (start_psymtab): Update.
9422 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9423 (mdebug_expand_psymtab): ... this.
9424 (parse_partial_symbols): Update.
9425 (new_psymtab): Update.
9426 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9427 (xcoff_expand_psymtab): ... this.
9428 (xcoff_start_psymtab): Update.
9429
48993951
SM
94302020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9431
9432 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9433 <expand_dependencies>: ... this.
9434 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9435 (partial_symtab::expand_dependencies): ... this.
9436 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9437 Update.
9438 (dwarf2_psymtab::expand_psymtab): Update.
9439 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9440 * mdebugread.c (psymtab_to_symtab_1): Update.
9441 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9442
3ad83046
SM
94432020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9444
9445 * psympriv.h (discard_psymtab): Remove.
9446 * dbxread.c (dbx_end_psymtab): Update.
9447 * xcoffread.c (xcoff_end_psymtab): Update.
9448
4d1b9ab6
TT
94492020-03-28 Tom Tromey <tom@tromey.com>
9450
9451 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9452 comment.
9453
f1749218
TT
94542020-03-28 Tom Tromey <tom@tromey.com>
9455
9456 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9457
ebea7626
HD
94582020-03-27 Hannes Domani <ssbssa@yahoo.de>
9459
9460 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9461
a879b4d5
JB
94622020-03-26 John Baldwin <jhb@FreeBSD.org>
9463
9464 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9465
0826b30a
TT
94662020-03-26 Tom Tromey <tom@tromey.com>
9467
9468 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9469 (mark_common_block_symbol_computed, read_tag_string_type)
9470 (attr_to_dynamic_prop, read_subrange_type): Update.
9471 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9472 to be methods on struct attribute.
9473 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9474 (read_call_site_scope, partial_die_info::read)
9475 (partial_die_info::read, lookup_die_type, follow_die_ref):
9476 Update.
9477 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9478 from dwarf2_get_ref_die_offset.
9479 (attribute::constant_value): New method, from
9480 dwarf2_get_attr_constant_value.
9481 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9482 Declare method.
9483 <constant_value>: New method.
9484
2b2558bf
TT
94852020-03-26 Tom Tromey <tom@tromey.com>
9486
9487 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9488 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9489 (dwarf_type_encoding_name): Move to stringify.c.
9490 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9491 * dwarf2/stringify.c: New file.
9492 * dwarf2/stringify.h: New file.
9493
eeb64781
TT
94942020-03-26 Tom Tromey <tom@tromey.com>
9495
9496 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9497 Rewrite.
9498
a39fdb41
TT
94992020-03-26 Tom Tromey <tom@tromey.com>
9500
9501 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9502 methods.
9503 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9504 (lookup_ranges_base): Likewise.
9505 (read_cutu_die_from_dwo, read_full_die_1): Update.
9506
436c571c
TT
95072020-03-26 Tom Tromey <tom@tromey.com>
9508
9509 * dwarf2/read.c (read_import_statement, read_file_scope)
9510 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9511 (read_lexical_block_scope, read_call_site_scope)
9512 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9513 (handle_struct_member_die, process_structure_scope)
9514 (update_enumeration_type_from_children)
9515 (process_enumeration_scope, read_array_type, read_common_block)
9516 (read_namespace, read_module, read_subroutine_type): Update.
9517 (sibling_die): Remove.
9518
052c8bb8
TT
95192020-03-26 Tom Tromey <tom@tromey.com>
9520
9521 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9522 (build_type_psymtabs_reader, read_structure_type)
9523 (read_enumeration_type, read_full_die_1): Update.
9524 (dwarf2_attr_no_follow): Move to die.h.
9525 * dwarf2/die.h (struct die_info) <attr>: New method.
9526
2b24b6e4
TT
95272020-03-26 Tom Tromey <tom@tromey.com>
9528
9529 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9530 <base_address>: Now an optional.
9531 (dwarf2_find_base_address, dwarf2_rnglists_process)
9532 (dwarf2_ranges_process, fill_in_loclist_baton)
9533 (dwarf2_symbol_mark_computed): Update.
9534
c2d50fd0
TT
95352020-03-26 Tom Tromey <tom@tromey.com>
9536
9537 * dwarf2/read.c (struct die_info): Move to die.h.
9538 * dwarf2/die.h: New file.
9539
0df7ad3a
TT
95402020-03-26 Tom Tromey <tom@tromey.com>
9541
9542 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9543 * dwarf2/read.c
9544 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9545 Move to line-header.c.
9546 (read_checked_initial_length_and_offset, read_formatted_entries):
9547 Likewise.
9548 (dwarf_decode_line_header): Split into two.
9549 * dwarf2/line-header.c
9550 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9551 Move from read.c.
9552 (read_checked_initial_length_and_offset, read_formatted_entries):
9553 Likewise.
9554 (dwarf_decode_line_header): New function, split from read.c.
9555
86c0bb4c
TT
95562020-03-26 Tom Tromey <tom@tromey.com>
9557
9558 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9559 Declare method.
9560 * dwarf2/read.c (read_attribute_value): Update.
9561 (dwarf2_per_objfile::read_line_string): Rename from
9562 read_indirect_line_string.
9563 (read_formatted_entries): Update.
9564
2ef46c2f
TT
95652020-03-26 Tom Tromey <tom@tromey.com>
9566
9567 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9568 variable.
9569
4f9c1eda
TT
95702020-03-26 Tom Tromey <tom@tromey.com>
9571
9572 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9573 const.
9574 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9575 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9576 parameter const.
9577
5a0e026f
TT
95782020-03-26 Tom Tromey <tom@tromey.com>
9579
9580 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9581 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9582 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9583 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9584
8844c11b
TT
95852020-03-26 Tom Tromey <tom@tromey.com>
9586
9587 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9588 file_names_size, file_full_name, file_file_name>: Use const.
9589 <file_name_at, file_names>: Add const overload.
9590 * dwarf2/line-header.c (line_header::file_file_name)
9591 (line_header::file_full_name): Update.
9592
c90ec28a
TT
95932020-03-26 Tom Tromey <tom@tromey.com>
9594
9595 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9596 (macro_start_file, consume_improper_spaces)
9597 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9598 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9599 (dwarf_decode_macros): Move to macro.c.
9600 * dwarf2/macro.c: New file.
9601 * dwarf2/macro.h: New file.
9602 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9603
4f44ae6c
TT
96042020-03-26 Tom Tromey <tom@tromey.com>
9605
9606 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9607 method.
9608 * dwarf2/section.c: New method. From
9609 read_indirect_string_at_offset_from.
9610 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9611 (read_indirect_string_at_offset_from): Move to section.c.
9612 (read_indirect_string_at_offset): Rewrite.
9613 (read_indirect_line_string_at_offset): Remove.
9614 (read_indirect_string, read_indirect_line_string)
9615 (dwarf_decode_macro_bytes): Update.
9616
a0194fa8
TT
96172020-03-26 Tom Tromey <tom@tromey.com>
9618
9619 * dwarf2/section.h (struct dwarf2_section_info)
9620 <overload_complaint>: Declare.
9621 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9622 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9623 Rename from dwarf2_section_buffer_overflow_complaint.
9624 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9625 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9626
3d27bbdb
TT
96272020-03-26 Tom Tromey <tom@tromey.com>
9628
9629 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9630 Declare.
9631 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9632 Move from read.c.
9633 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9634 to section.c.
9635
9eac9650
TT
96362020-03-26 Tom Tromey <tom@tromey.com>
9637
9638 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9639
bf80d710
TT
96402020-03-26 Tom Tromey <tom@tromey.com>
9641
9642 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9643 "builder".
9644 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9645 parameter.
9646 (dwarf_decode_macros): Update.
9647
0314b390
TT
96482020-03-26 Tom Tromey <tom@tromey.com>
9649
9650 * dwarf2/read.c (read_attribute_value): Update.
9651 (read_indirect_string_from_dwz): Move to dwz.c; change into
9652 method.
9653 (dwarf_decode_macro_bytes): Update.
9654 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9655 * dwarf2/dwz.c: New file.
9656 * Makefile.in (COMMON_SFILES): Add dwz.c.
9657
9fda78b6
TT
96582020-03-26 Tom Tromey <tom@tromey.com>
9659
9660 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9661 * dwarf2/read.c: Add include.
9662 * dwarf2/index-write.c: Add include.
9663 * dwarf2/index-cache.c: Add include.
9664 * dwarf2/dwz.h: New file.
9665
33aa3c10
TT
96662020-03-25 Tom Tromey <tom@tromey.com>
9667
9668 * compile/compile-object-load.c (get_out_value_type): Mention
9669 correct symbol name in error message.
9670
d503b685
HD
96712020-03-25 Hannes Domani <ssbssa@yahoo.de>
9672
9673 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9674
7b1eff95
TV
96752020-03-25 Tom de Vries <tdevries@suse.de>
9676
9677 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9678 * symmisc.c (dump_symtab_1): Print user and includes fields.
9679 (maintenance_info_symtabs): Same.
9680
dd895392
AB
96812020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9682
9683 PR gdb/25534
9684 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9685 (riscv_regcache_cooked_write): New function.
9686 (riscv_push_dummy_call): Use new function.
9687 (riscv_return_value): Likewise.
9688
5ab2fbf1
SM
96892020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9690
9691 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9692 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9693 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9694 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9695 * infrun.c (follow_fork): Likewise.
9696 (follow_fork_inferior): Likewise.
9697 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9698 * linux-nat.h (class linux_nat_target): Likewise.
9699 * remote.c (class remote_target) <follow_fork>: Likewise.
9700 (remote_target::follow_fork): Likewise.
9701 * target-delegates.c: Re-generate.
9702 * target.c (default_follow_fork): Likewise.
9703 (target_follow_fork): Likewise.
9704 * target.h (struct target_ops) <follow_fork>: Likewise.
9705 (target_follow_fork): Likewise.
9706
a64fafb5
TV
97072020-03-24 Tom de Vries <tdevries@suse.de>
9708
9709 * psymtab.c (maintenance_info_psymtabs): Print user field.
9710
fe26d3a3
TT
97112020-03-20 Tom Tromey <tromey@adacore.com>
9712
9713 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9714 const.
9715 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9716 const.
9717
c884cc46
SM
97182020-03-20 Simon Marchi <simon.marchi@efficios.com>
9719
9720 * ptrace.m4: Don't check for ptrace declaration.
9721 * config.in: Re-generate.
9722 * configure: Re-generate.
9723 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9724 not defined.
9725
1ff700c2
KR
97262020-03-20 Kamil Rytarowski <n54@gmx.com>
9727
9728 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9729 `PTRACE_TYPE_RET'.
9730 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9731 * sparc-nat.c (gdb_ptrace): Likewise.
9732 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9733
f7d4f0b1
TT
97342020-03-20 Tom Tromey <tromey@adacore.com>
9735
9736 * c-exp.y (lex_one_token): Fix assert.
9737
f67210ff
TT
97382020-03-20 Tom Tromey <tromey@adacore.com>
9739
9740 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9741 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9742 strncpy call.
9743
1773be9e
TT
97442020-03-20 Tom Tromey <tromey@adacore.com>
9745
9746 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9747
70304be9
TT
97482020-03-20 Tom Tromey <tromey@adacore.com>
9749
9750 * ada-valprint.c (print_variant_part): Remove parameters; switch
9751 to value-based API.
9752 (print_field_values): Likewise.
9753 (ada_val_print_struct_union): Likewise.
9754 (ada_value_print_1): Update.
9755
9faa006d
KR
97562020-03-20 Kamil Rytarowski <n54@gmx.com>
9757
9758 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9759 nbsd_nat_target instead of inf_ptrace_target.
9760 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9761 nbsd_nat_target.
9762
4a90f062
KR
97632020-03-20 Kamil Rytarowski <n54@gmx.com>
9764
9765 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9766 it to the ptrace call.
9767 * (store_registers): Likewise.
9768
97692020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9770
9771 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9772 it to the ptrace call.
9773 * (store_registers): Likewise.
9774
2d07da27
LM
97752020-03-19 Luis Machado <luis.machado@linaro.org>
9776
9777 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9778 valid, fetch vg value from ptrace.
9779
f09db380
KR
97802020-03-19 Kamil Rytarowski <n54@gmx.com>
9781 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9782 * inf-ptrace.c: Likewise.
9783 * (gdb_ptrace): Add.
9784 * (inf_ptrace_target::resume): Update.
9785 * (inf_ptrace_target::xfer_partial): Likewise.
9786 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9787 * (inf_ptrace_peek_poke): Update.
9788
fcc7376e
KR
97892020-03-19 Kamil Rytarowski <n54@gmx.com>
9790
9791 * x86-bsd-nat.c (gdb_ptrace): New.
9792 * (x86bsd_dr_set): Add new argument `ptid'.
9793 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9794 x86bsd_dr_set_addr): Update.
9795
cada5fc9
AB
97962020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9797
9798 * remote.c (remote_target::process_stop_reply): Handle events for
9799 all threads differently.
9800
19a2740f
AB
98012020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9802
9803 * completer.c (completion_tracker::remove_completion): Define new
9804 function.
9805 * completer.h (completion_tracker::remove_completion): Declare new
9806 function.
9807 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9808 when adding a C++ function symbol.
9809
724fd9ba
AB
98102020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9811
9812 * completer.c (completion_tracker::completion_hash_entry): Define
9813 new class.
9814 (advance_to_filename_complete_word_point): Call
9815 recompute_lowest_common_denominator.
9816 (completion_tracker::completion_tracker): Call discard_completions
9817 to setup the hash table.
9818 (completion_tracker::discard_completions): Allow for being called
9819 from the constructor, pass new equal function, and element deleter
9820 when constructing the hash table. Initialise new class member
9821 variables.
9822 (completion_tracker::maybe_add_completion): Remove use of
9823 m_entries_vec, and store more information into m_entries_hash.
9824 (completion_tracker::recompute_lcd_visitor): New function, most
9825 content taken from...
9826 (completion_tracker::recompute_lowest_common_denominator):
9827 ...here, this now just visits each item in the hash calling the
9828 above visitor.
9829 (completion_tracker::build_completion_result): Remove use of
9830 m_entries_vec, call recompute_lowest_common_denominator.
9831 * completer.h (completion_tracker::have_completions): Remove use
9832 of m_entries_vec.
9833 (completion_tracker::completion_hash_entry): Declare new class.
9834 (completion_tracker::recompute_lowest_common_denominator): Change
9835 function signature.
9836 (completion_tracker::recompute_lcd_visitor): Declare new function.
9837 (completion_tracker::m_entries_vec): Delete.
9838 (completion_tracker::m_entries_hash): Initialize to NULL.
9839 (completion_tracker::m_lowest_common_denominator_valid): New
9840 member variable.
9841 (completion_tracker::m_lowest_common_denominator_max_length): New
9842 member variable.
9843
5a82b8a1
KR
98442020-03-17 Kamil Rytarowski <n54@gmx.com>
9845
9846 * regformats/regdef.h: Put reg in gdb namespace.
9847
fb516a69
KR
98482020-03-17 Kamil Rytarowski <n54@gmx.com>
9849
9850 * i386-bsd-nat.c (gdb_ptrace): New.
9851 * (i386bsd_fetch_inferior_registers,
9852 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9853 * (i386bsd_fetch_inferior_registers,
9854 i386bsd_store_inferior_registers) Use gdb_ptrace.
9855
1c0aa1fb
KR
98562020-03-17 Kamil Rytarowski <n54@gmx.com>
9857
9858 * amd64-bsd-nat.c (gdb_ptrace): New.
9859 * (amd64bsd_fetch_inferior_registers,
9860 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9861 * (amd64bsd_fetch_inferior_registers,
9862 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9863
5ccd2fb7
KR
98642020-03-17 Kamil Rytarowski <n54@gmx.com>
9865
9866 * user-regs.c (user_reg::read): Rename to...
9867 (user_reg::xread): ...this.
9868 * (append_user_reg): Rename argument `read' to `xread'.
9869 * (user_reg_add_builtin): Likewise.
9870 * (user_reg_add): Likewise.
9871 * (value_of_user_reg): Likewise.
9872
2108a63a
KR
98732020-03-17 Kamil Rytarowski <n54@gmx.com>
9874
9875 * sparc-nat.c (gdb_ptrace): New.
9876 * sparc-nat.c (sparc_fetch_inferior_registers)
9877 (sparc_store_inferior_registers) Remove obsolete comment.
9878 * sparc-nat.c (sparc_fetch_inferior_registers)
9879 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9880 * sparc-nat.c (sparc_fetch_inferior_registers)
9881 (sparc_store_inferior_registers) Use gdb_ptrace.
9882
a225c9a8
KR
98832020-03-17 Kamil Rytarowski <n54@gmx.com>
9884
9885 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9886 it to the ptrace call.
9887 * sh-nbsd-nat.c (store_registers): Likewise.
9888
98097623
KR
98892020-03-17 Kamil Rytarowski <n54@gmx.com>
9890
9891 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9892 nbsd_nat_target instead of inf_ptrace_target.
9893 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9894 nbsd_nat_target.
9895
9e38d619
KR
98962020-03-17 Kamil Rytarowski <n54@gmx.com>
9897
9898 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9899
a2ecbe9f
KR
99002020-03-17 Kamil Rytarowski <n54@gmx.com>
9901
9902 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9903 <sys/sysctl.h>.
9904 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9905
58990295
TV
99062020-03-17 Tom de Vries <tdevries@suse.de>
9907
9908 PR gdb/23710
9909 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9910 fields.
9911 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9912 fields.
9913 (process_imported_unit_die): Skip import of c++ CUs.
9914
771dd3a8
TT
99152020-03-16 Tom Tromey <tom@tromey.com>
9916
9917 * p-valprint.c (pascal_object_print_value): Initialize
9918 base_value.
9919
817a7585
AK
99202020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9921 Shahab Vahedi <shahab@synopsys.com>
9922
9923 * Makefile.in: Add arch/arc.o
9924 * configure.tgt: Likewise.
9925 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9926 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9927 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9928 * arc-tdep.h (arc_read_description): Add proto type.
9929 * arch/arc.c: New file.
9930 * arch/arc.h: Likewise.
9931 * features/Makefile: Replace old target descriptions with new.
9932 * features/arc-arcompact.c: Remove.
9933 * features/arc-arcompact.xml: Likewise.
9934 * features/arc-v2.c: Likewise
9935 * features/arc-v2.xml: Likewise
9936 * features/arc/aux-arcompact.xml: New file.
9937 * features/arc/aux-v2.xml: Likewise.
9938 * features/arc/core-arcompact.xml: Likewise.
9939 * features/arc/core-v2.xml: Likewise.
9940 * features/arc/aux-arcompact.c: Generate.
9941 * features/arc/aux-v2.c: Likewise.
9942 * features/arc/core-arcompact.c: Likewise.
9943 * features/arc/core-v2.c: Likewise.
9944 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9945
67430cd0
TT
99462020-03-16 Tom Tromey <tromey@adacore.com>
9947
9948 PR gdb/25663:
9949 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9950 putting value into bcache.
9951
30efb6c7
SM
99522020-03-16 Simon Marchi <simon.marchi@efficios.com>
9953
9954 PR gdb/21500
9955 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9956 to...
9957 (amd64_windows_init_abi_common): ... this. Don't set size of
9958 long type.
9959 (amd64_windows_init_abi): New function.
9960 (amd64_cygwin_init_abi): New function.
9961 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9962 the Cygwin OS ABI.
9963 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9964 comment.
9965
8db52437
SM
99662020-03-16 Simon Marchi <simon.marchi@efficios.com>
9967
9968 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9969 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9970 (pe_import_directory_entry): New struct type.
9971 (is_linked_with_cygwin_dll): New function.
9972 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9973 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9974 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9975
5982a56a
SM
99762020-03-16 Simon Marchi <simon.marchi@efficios.com>
9977
9978 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9979 i386_cygwin_core_osabi_sniffer.
9980
7a1998df
SM
99812020-03-16 Simon Marchi <simon.marchi@efficios.com>
9982
9983 * i386-cygwin-tdep.c: Rename to...
9984 * i386-windows-tdep.c: ... this.
9985 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9986 i386-windows-tdep.c.
9987 * configure.tgt: Likewise.
9988
053205cc
SM
99892020-03-16 Simon Marchi <simon.marchi@efficios.com>
9990
9991 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9992 * osabi.c (gdb_osabi_names): Add "Windows".
9993 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9994 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9995 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9996 i386_cygwin_osabi_sniffer.
9997 (_initialize_i386_cygwin_tdep): Register OS ABI
9998 GDB_OSABI_WINDOWS for i386.
9999 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10000 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10001 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10002 for x86-64.
10003 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10004 when the target matches '*-*-mingw*'.
10005
fe4b2ee6
SM
100062020-03-16 Simon Marchi <simon.marchi@efficios.com>
10007
10008 * defs.h (enum gdb_osabi): Move to...
10009 * osabi.h (enum gdb_osabi): ... here.
10010 * gdbarch.sh: Include osabi.h in gdbarch.h.
10011 * gdbarch.h: Re-generate.
10012
cb9b645d
SM
100132020-03-16 Simon Marchi <simon.marchi@efficios.com>
10014
10015 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10016 function.
10017 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10018
3293bbaf
TT
100192020-03-14 Tom Tromey <tom@tromey.com>
10020
10021 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10022 for C++.
10023 (c_type_print_modifier): Likewise. Add "language" parameter.
10024 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10025 (c_type_print_base_1): Update.
10026 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10027 constants.
10028 * type-stack.c (type_stack::insert): Handle tp_atomic and
10029 tp_restrict.
10030 (type_stack::follow_type_instance_flags): Likewise.
10031 (type_stack::follow_types): Likewise. Merge type-following code.
10032 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10033 (space_identifier, cv_with_space_id)
10034 (const_or_volatile_or_space_identifier_noopt)
10035 (const_or_volatile_or_space_identifier): Remove.
10036 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10037 rules.
10038 (ptr_operator, typebase): Update.
10039 (enum token_flag) <FLAG_C>: New constant.
10040 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10041 "_Atomic".
10042 (lex_one_token): Handle FLAG_C.
10043
154151a6
KR
100442020-03-14 Kamil Rytarowski <n54@gmx.com>
10045
10046 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10047 it to the ptrace call.
10048 * m68k-bsd-nat.c (store_registers): Likewise.
10049
bc107784
KR
100502020-03-14 Kamil Rytarowski <n54@gmx.com>
10051
10052 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10053 gdb_byte *.
10054 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10055 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10056 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10057
01a80117
KR
100582020-03-14 Kamil Rytarowski <n54@gmx.com>
10059
10060 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10061 nbsd_nat_target instead of inf_ptrace_target.
10062 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10063 nbsd_nat_target.
10064
f90280ca
KR
100652020-03-14 Kamil Rytarowski <n54@gmx.com>
10066
10067 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10068 register_t.
10069
6def66f1
KR
100702020-03-14 Kamil Rytarowski <n54@gmx.com>
10071
10072 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10073 it to the ptrace call.
10074 * alpha-bsd-nat.c (store_registers): Likewise.
10075
66eaca97
KR
100762020-03-14 Kamil Rytarowski <n54@gmx.com>
10077
10078 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10079 includes.
10080 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10081 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10082 fill_fpregset): Likewise.
10083
4fed520b
KR
100842020-03-14 Kamil Rytarowski <n54@gmx.com>
10085
10086 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10087 nbsd_nat_target instead of inf_ptrace_target.
10088 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10089 nbsd_nat_target.
10090
2190cf06
KR
100912020-03-14 Kamil Rytarowski <n54@gmx.com>
10092
10093 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10094 register_t.
10095
75c56d3d
KR
100962020-03-14 Kamil Rytarowski <n54@gmx.com>
10097
10098 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10099 it to the ptrace call.
10100 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10101 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10102 * arm-nbsd-nat.c (store_register): Likewise.
10103 * arm-nbsd-nat.c (store_regs): Likewise.
10104 * arm-nbsd-nat.c (store_fp_register): Likewise.
10105 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10106
6018d381
KR
101072020-03-14 Kamil Rytarowski <n54@gmx.com>
10108
10109 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10110 nbsd_nat_target instead of inf_ptrace_target.
10111 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10112 nbsd_nat_target.
10113
013f99f0
KR
101142020-03-14 Kamil Rytarowski <n54@gmx.com>
10115
10116 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10117 it to the ptrace call.
10118 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10119
12753073
KR
101202020-03-14 Kamil Rytarowski <n54@gmx.com>
10121
6227b330
KR
10122 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10123 it to the ptrace call.
10124 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10125
101262020-03-14 Kamil Rytarowski <n54@gmx.com>
10127
10128 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10129 gdb_byte *.
12753073
KR
10130 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10131
d5be5fa4
KR
101322020-03-14 Kamil Rytarowski <n54@gmx.com>
10133
10134 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10135 instead of inf_ptrace_target.
10136 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10137 nbsd_nat_target.
10138
8110f842
KR
101392020-03-14 Kamil Rytarowski <n54@gmx.com>
10140
10141 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10142 register_t.
10143
52feded7
KR
101442020-03-14 Kamil Rytarowski <n54@gmx.com>
10145
10146 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10147 register_t.
10148
25567eee
KR
101492020-03-14 Kamil Rytarowski <n54@gmx.com>
10150
10151 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10152 register_t.
10153
426a9c18
TT
101542020-03-13 Tom Tromey <tom@tromey.com>
10155
10156 * value.h (val_print): Don't declare.
10157 * valprint.h (val_print_array_elements)
10158 (val_print_scalar_formatted, generic_val_print): Don't declare.
10159 * valprint.c (generic_val_print_array): Take a struct value.
10160 (generic_val_print_ptr, generic_val_print_memberptr)
10161 (generic_val_print_bool, generic_val_print_int)
10162 (generic_val_print_char, generic_val_print_complex)
10163 (generic_val_print): Remove.
10164 (generic_value_print): Update.
10165 (do_val_print): Remove unused parameters. Don't call
10166 la_val_print.
10167 (val_print): Remove.
10168 (common_val_print): Update. Don't call value_check_printable.
10169 (val_print_scalar_formatted, val_print_array_elements): Remove.
10170 * rust-lang.c (rust_val_print): Remove.
10171 (rust_language_defn): Update.
10172 * p-valprint.c (pascal_val_print): Remove.
10173 (pascal_value_print_inner): Update.
10174 (pascal_object_print_val_fields, pascal_object_print_val):
10175 Remove.
10176 (pascal_object_print_static_field): Update.
10177 * p-lang.h (pascal_val_print): Don't declare.
10178 * p-lang.c (pascal_language_defn): Update.
10179 * opencl-lang.c (opencl_language_defn): Update.
10180 * objc-lang.c (objc_language_defn): Update.
10181 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10182 * m2-lang.h (m2_val_print): Don't declare.
10183 * m2-lang.c (m2_language_defn): Update.
10184 * language.h (struct language_defn) <la_val_print>: Remove.
10185 * language.c (unk_lang_value_print_inner): Rename. Change
10186 argument types.
10187 (unknown_language_defn, auto_language_defn): Update.
10188 * go-valprint.c (go_val_print): Remove.
10189 * go-lang.h (go_val_print): Don't declare.
10190 * go-lang.c (go_language_defn): Update.
10191 * f-valprint.c (f_val_print): Remove.
10192 * f-lang.h (f_value_print): Don't declare.
10193 * f-lang.c (f_language_defn): Update.
10194 * d-valprint.c (d_val_print): Remove.
10195 * d-lang.h (d_value_print): Don't declare.
10196 * d-lang.c (d_language_defn): Update.
10197 * cp-valprint.c (cp_print_value_fields)
10198 (cp_print_value_fields_rtti, cp_print_value): Remove.
10199 (cp_print_static_field): Update.
10200 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10201 (c_val_print_struct, c_val_print_union, c_val_print_int)
10202 (c_val_print_memberptr, c_val_print): Remove.
10203 * c-lang.h (c_val_print_array, cp_print_value_fields)
10204 (cp_print_value_fields_rtti): Don't declare.
10205 * c-lang.c (c_language_defn, cplus_language_defn)
10206 (asm_language_defn, minimal_language_defn): Update.
10207 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10208 (ada_val_print_enum): Take a struct value.
10209 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10210 (ada_val_print): Remove.
10211 (ada_value_print_1): Update.
10212 (printable_val_type): Remove.
10213 * ada-lang.h (ada_val_print): Don't declare.
10214 * ada-lang.c (ada_language_defn): Update.
10215
42331a1e
TT
102162020-03-13 Tom Tromey <tom@tromey.com>
10217
10218 * valprint.c (do_val_print): Update.
10219 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10220 a struct value.
10221 (value_to_value_object_no_release): Declare.
10222 * python/py-value.c (value_to_value_object_no_release): New
10223 function.
10224 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10225 struct value.
10226 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10227 function.
10228 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10229 a struct value.
10230 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10231 Declare.
10232 (gdbscm_apply_val_pretty_printer): Take a struct value.
10233 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10234 value.
10235 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10236 value.
10237 * extension-priv.h (struct extension_language_ops)
10238 <apply_val_pretty_printer>: Take a struct value.
10239 * cp-valprint.c (cp_print_value): Create a struct value.
10240 (cp_print_value): Update.
10241
3a916a97
TT
102422020-03-13 Tom Tromey <tom@tromey.com>
10243
10244 * ada-valprint.c (print_field_values): Call common_val_print.
10245
b59eac37
TT
102462020-03-13 Tom Tromey <tom@tromey.com>
10247
10248 * ada-valprint.c (val_print_packed_array_elements): Remove
10249 bitoffset and val parameters. Call common_val_print.
10250 (ada_val_print_string): Remove offset, address, and original_value
10251 parameters.
10252 (ada_val_print_array): Update.
10253 (ada_value_print_array): New function.
10254 (ada_value_print_1): Call it.
10255
03371129
TT
102562020-03-13 Tom Tromey <tom@tromey.com>
10257
10258 * ada-valprint.c (ada_value_print): Use common_val_print.
10259
2e088f8b
TT
102602020-03-13 Tom Tromey <tom@tromey.com>
10261
10262 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10263
39ef85a8
TT
102642020-03-13 Tom Tromey <tom@tromey.com>
10265
10266 * ada-valprint.c (ada_value_print_num): New function.
10267 (ada_value_print_1): Use it.
10268
b9fa6e07
TT
102692020-03-13 Tom Tromey <tom@tromey.com>
10270
10271 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10272
416595d6
TT
102732020-03-13 Tom Tromey <tom@tromey.com>
10274
10275 * ada-valprint.c (ada_value_print_ptr): New function.
10276 (ada_value_print_1): Use it.
10277
5b5e15ec
TT
102782020-03-13 Tom Tromey <tom@tromey.com>
10279
10280 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10281 call common_val_print.
10282 (ada_val_print_1): Update.
10283 (ada_value_print_1): New function.
10284 (ada_value_print_inner): Rewrite.
10285
fbf54e75
TT
102862020-03-13 Tom Tromey <tom@tromey.com>
10287
10288 * cp-valprint.c (cp_print_value_fields): Update.
10289 (cp_print_value): New function.
10290
64b653ca
TT
102912020-03-13 Tom Tromey <tom@tromey.com>
10292
10293 * m2-valprint.c (m2_value_print_inner): Use
10294 cp_print_value_fields.
10295 * cp-valprint.c (cp_print_value_fields): New function.
10296 * c-valprint.c (c_value_print_struct): New function.
10297 (c_value_print_inner): Use c_value_print_struct.
10298 * c-lang.h (cp_print_value_fields): Declare.
10299
6999f067
TT
103002020-03-13 Tom Tromey <tom@tromey.com>
10301
10302 * c-valprint.c (c_value_print_array): New function.
10303 (c_value_print_inner): Use it.
10304
ce80b8bd
TT
103052020-03-13 Tom Tromey <tom@tromey.com>
10306
10307 * c-valprint.c (c_value_print_memberptr): New function.
10308 (c_value_print_inner): Use it.
10309
2faac269
TT
103102020-03-13 Tom Tromey <tom@tromey.com>
10311
10312 * c-valprint.c (c_value_print_int): New function.
10313 (c_value_print_inner): Use it.
10314
da3e2c29
TT
103152020-03-13 Tom Tromey <tom@tromey.com>
10316
10317 * c-valprint.c (c_value_print_ptr): New function.
10318 (c_value_print_inner): Use it.
10319
50836231
TT
103202020-03-13 Tom Tromey <tom@tromey.com>
10321
10322 * c-valprint.c (c_value_print_inner): Rewrite.
10323
4f412b6e
TT
103242020-03-13 Tom Tromey <tom@tromey.com>
10325
10326 * valprint.c (generic_value_print_complex): New function.
10327 (generic_value_print): Use it.
10328
f5354008
TT
103292020-03-13 Tom Tromey <tom@tromey.com>
10330
10331 * valprint.c (generic_val_print_float): Don't call
10332 val_print_scalar_formatted.
10333 (generic_val_print, generic_value_print): Update.
10334
3eec3b05
TT
103352020-03-13 Tom Tromey <tom@tromey.com>
10336
10337 * valprint.c (generic_value_print_char): New function
10338 (generic_value_print): Use it.
10339
fdddfccb
TT
103402020-03-13 Tom Tromey <tom@tromey.com>
10341
10342 * valprint.c (generic_value_print_int): New function.
10343 (generic_value_print): Use it.
10344
6dde7521
TT
103452020-03-13 Tom Tromey <tom@tromey.com>
10346
10347 * valprint.c (generic_value_print_bool): New function.
10348 (generic_value_print): Use it.
10349
4112d2e6
TT
103502020-03-13 Tom Tromey <tom@tromey.com>
10351
10352 * valprint.c (generic_val_print_func): Simplify.
10353 (generic_val_print, generic_value_print): Update.
10354
65786af6
TT
103552020-03-13 Tom Tromey <tom@tromey.com>
10356
10357 * valprint.c (generic_val_print_flags): Remove.
10358 (generic_val_print, generic_value_print): Update.
10359 (val_print_type_code_flags): Add original_value parameter.
10360
40f3ce18
TT
103612020-03-13 Tom Tromey <tom@tromey.com>
10362
10363 * valprint.c (generic_val_print): Update.
10364 (generic_value_print): Update.
10365 * valprint.c (generic_val_print_enum): Don't call
10366 val_print_scalar_formatted.
10367
2a5b130b
TT
103682020-03-13 Tom Tromey <tom@tromey.com>
10369
10370 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10371 * valprint.c (generic_value_print_ptr): New function.
10372
abc66ce9
TT
103732020-03-13 Tom Tromey <tom@tromey.com>
10374
10375 * valprint.c (generic_value_print): Rewrite.
10376
07a32858
TT
103772020-03-13 Tom Tromey <tom@tromey.com>
10378
10379 * p-valprint.c (pascal_object_print_value_fields)
10380 (pascal_object_print_value): New functions.
10381
64d64d3a
TT
103822020-03-13 Tom Tromey <tom@tromey.com>
10383
10384 * p-valprint.c (pascal_value_print_inner): Rewrite.
10385
6a95a1f5
TT
103862020-03-13 Tom Tromey <tom@tromey.com>
10387
10388 * f-valprint.c (f_value_print_innner): Rewrite.
10389
59fcdac6
TT
103902020-03-13 Tom Tromey <tom@tromey.com>
10391
10392 * m2-valprint.c (m2_print_unbounded_array): New overload.
10393 (m2_print_unbounded_array): Update.
10394 (m2_print_array_contents): Take a struct value.
10395 (m2_value_print_inner): Rewrite.
10396
d133c3e1
TT
103972020-03-13 Tom Tromey <tom@tromey.com>
10398
10399 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10400 (d_value_print_inner): New function.
10401 * d-lang.h (d_value_print_inner): Declare.
10402 * d-lang.c (d_language_defn): Use d_value_print_inner.
10403
23b0f06b
TT
104042020-03-13 Tom Tromey <tom@tromey.com>
10405
10406 * go-valprint.c (go_value_print_inner): New function.
10407 * go-lang.h (go_value_print_inner): Declare.
10408 * go-lang.c (go_language_defn): Use go_value_print_inner.
10409
5f56f7cb
TT
104102020-03-13 Tom Tromey <tom@tromey.com>
10411
10412 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10413 API.
10414 (rust_val_print): Rewrite.
10415 (rust_value_print_inner): New function, from rust_val_print.
10416 (rust_language_defn): Use rust_value_print_inner.
10417
26792ee0
TT
104182020-03-13 Tom Tromey <tom@tromey.com>
10419
10420 * ada-valprint.c (ada_value_print_inner): New function.
10421 * ada-lang.h (ada_value_print_inner): Declare.
10422 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10423
24051bbe
TT
104242020-03-13 Tom Tromey <tom@tromey.com>
10425
10426 * f-valprint.c (f_value_print_innner): New function.
10427 * f-lang.h (f_value_print_innner): Declare.
10428 * f-lang.c (f_language_defn): Use f_value_print_innner.
10429
c0941be6
TT
104302020-03-13 Tom Tromey <tom@tromey.com>
10431
10432 * p-valprint.c (pascal_value_print_inner): New function.
10433 * p-lang.h (pascal_value_print_inner): Declare.
10434 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10435
62c4663d
TT
104362020-03-13 Tom Tromey <tom@tromey.com>
10437
10438 * m2-valprint.c (m2_value_print_inner): New function.
10439 * m2-lang.h (m2_value_print_inner): Declare.
10440 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10441
62182190
TT
104422020-03-13 Tom Tromey <tom@tromey.com>
10443
10444 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10445 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10446 * c-valprint.c (c_value_print_inner): New function.
10447 * c-lang.h (c_value_print_inner): Declare.
10448 * c-lang.c (c_language_defn, cplus_language_defn)
10449 (asm_language_defn, minimal_language_defn): Use
10450 c_value_print_inner.
10451
1e592a8a
TT
104522020-03-13 Tom Tromey <tom@tromey.com>
10453
10454 * p-valprint.c (pascal_object_print_value_fields): Now static.
10455 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10456
7fe471e9
TT
104572020-03-13 Tom Tromey <tom@tromey.com>
10458
10459 * c-valprint.c (c_val_print_array): Simplify.
10460
d121c6ce
TT
104612020-03-13 Tom Tromey <tom@tromey.com>
10462
10463 * valprint.c (value_print_array_elements): New function.
10464 * valprint.h (value_print_array_elements): Declare.
10465
4dba70ee
TT
104662020-03-13 Tom Tromey <tom@tromey.com>
10467
10468 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10469 * mips-tdep.c (mips_print_register): Use
10470 value_print_scalar_formatted.
10471
4f9ae810
TT
104722020-03-13 Tom Tromey <tom@tromey.com>
10473
10474 * valprint.h (value_print_scalar_formatted): Declare.
10475 * valprint.c (value_print_scalar_formatted): New function.
10476
156bfec9
TT
104772020-03-13 Tom Tromey <tom@tromey.com>
10478
10479 * valprint.h (generic_value_print): Declare.
10480 * valprint.c (generic_value_print): New function.
10481
2b4e573d
TT
104822020-03-13 Tom Tromey <tom@tromey.com>
10483
10484 * valprint.c (do_val_print): Call la_value_print_inner, if
10485 available.
10486 * rust-lang.c (rust_language_defn): Update.
10487 * p-lang.c (pascal_language_defn): Update.
10488 * opencl-lang.c (opencl_language_defn): Update.
10489 * objc-lang.c (objc_language_defn): Update.
10490 * m2-lang.c (m2_language_defn): Update.
10491 * language.h (struct language_defn) <la_value_print_inner>: New
10492 member.
10493 * language.c (unknown_language_defn, auto_language_defn): Update.
10494 * go-lang.c (go_language_defn): Update.
10495 * f-lang.c (f_language_defn): Update.
10496 * d-lang.c (d_language_defn): Update.
10497 * c-lang.c (c_language_defn, cplus_language_defn)
10498 (asm_language_defn, minimal_language_defn): Update.
10499 * ada-lang.c (ada_language_defn): Update.
10500
a1f6a07c
TT
105012020-03-13 Tom Tromey <tom@tromey.com>
10502
10503 * c-valprint.c (c_value_print): Use common_val_print.
10504
410cf315
TT
105052020-03-13 Tom Tromey <tom@tromey.com>
10506
10507 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10508
72a45c93
TT
105092020-03-13 Tom Tromey <tom@tromey.com>
10510
10511 * f-valprint.c (f77_print_array_1, f_val_print): Use
10512 common_val_print.
10513
040f66bd
TT
105142020-03-13 Tom Tromey <tom@tromey.com>
10515
10516 * riscv-tdep.c (riscv_print_one_register_info): Use
10517 common_val_print.
10518
a6e05a6c
TT
105192020-03-13 Tom Tromey <tom@tromey.com>
10520
10521 * mi/mi-main.c (output_register): Use common_val_print.
10522
3444c526
TT
105232020-03-13 Tom Tromey <tom@tromey.com>
10524
10525 * infcmd.c (default_print_one_register_info): Use
10526 common_val_print.
10527
c2a44efe
TT
105282020-03-13 Tom Tromey <tom@tromey.com>
10529
10530 * valprint.h (common_val_print_checked): Declare.
10531 * valprint.c (common_val_print_checked): New function.
10532 * stack.c (print_frame_arg): Use common_val_print_checked.
10533
b0c26e99
TT
105342020-03-13 Tom Tromey <tom@tromey.com>
10535
10536 * valprint.c (do_val_print): New function, from val_print.
10537 (val_print): Use do_val_print.
10538 (common_val_print): Use do_val_print.
10539
ce3acbe9
TT
105402020-03-13 Tom Tromey <tom@tromey.com>
10541
10542 * valprint.c (value_print): Use scoped_value_mark.
10543
96c7f873
TV
105442020-03-13 Tom de Vries <tdevries@suse.de>
10545
10546 PR symtab/25646
10547 * psymtab.c (partial_symtab::partial_symtab): Don't set
10548 globals_offset and statics_offset. Push element onto
10549 current_global_psymbols and current_static_psymbols stacks.
10550 (concat): New function.
10551 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10552 element from current_global_psymbols and current_static_psymbols
10553 stacks. Concat popped elements to global_psymbols and
10554 static_symbols.
10555 (add_psymbol_to_list): Use current_global_psymbols and
10556 current_static_psymbols stacks.
10557 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10558 current_static_psymbols fields.
10559
6ba0a321
CB
105602020-03-12 Christian Biesinger <cbiesinger@google.com>
10561
10562 * corelow.c (sniff_core_bfd): Remove.
10563 (class core_target) <m_core_vec>: Remove.
10564 (core_target::core_target): Update.
10565 (core_file_fns): Remove.
10566 (deprecated_add_core_fns): Remove.
10567 (default_core_sniffer): Remove.
10568 (sniff_core_bfd): Remove.
10569 (default_check_format): Remove.
10570 (gdb_check_format): Remove.
10571 (core_target_open): Update.
10572 (core_target::get_core_register_section): Update.
10573 (get_core_registers_cb): Update.
10574 (core_target::fetch_registers): Update.
10575 * gdbcore.h (struct core_fns): Remove.
10576 (deprecated_add_core_fns): Remove.
10577 (default_core_sniffer): Remove.
10578 (default_check_format): Remove.
10579
227031b2
TT
105802020-03-12 Tom Tromey <tom@tromey.com>
10581
10582 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10583 CORE_ADDR.
10584 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10585
53807e9f
TT
105862020-03-12 Tom Tromey <tom@tromey.com>
10587
10588 * remote.c (remote_target::download_tracepoint)
10589 (remote_target::enable_tracepoint)
10590 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10591 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10592 sprintf_vma.
10593
64f25102
TT
105942020-03-12 Tom Tromey <tom@tromey.com>
10595
10596 * symfile-mem.c: Update CORE_ADDR size assert.
10597
272cd5a3
SM
105982020-03-12 Simon Marchi <simon.marchi@efficios.com>
10599
10600 * selftest.m4: Move to gdbsupport/.
10601 * acinclude.m4: Update path to selftest.m4.
10602
74cd3f9d
SM
106032020-03-12 Simon Marchi <simon.marchi@efficios.com>
10604
10605 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10606 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10607 gdbarch-selfselftests.c and selftest-arch.c.
10608 (SUBDIR_UNITTESTS_OBS): Rename to...
10609 (SELFTESTS_OBS): ... this.
10610 (COMMON_SFILES): Remove disasm-selftests.c and
10611 gdbarch-selftests.c.
10612 * configure.ac: Don't add selftest-arch.{c,o} to
10613 CONFIG_{SRCS,OBS}.
10614 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10615 preprocessor conditions.
10616
db6878ac
SM
106172020-03-12 Simon Marchi <simon.marchi@efficios.com>
10618
10619 * configure.ac: Don't source bfd/development.sh.
10620 * selftest.m4: Modify comment.
10621 * configure: Re-generate.
10622
4d696a5c
SM
106232020-03-12 Simon Marchi <simon.marchi@efficios.com>
10624
10625 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10626 not "true" or "false".
10627 * configure: Re-generate.
10628
8dd8e1c7
CB
106292020-03-12 Christian Biesinger <cbiesinger@google.com>
10630
10631 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10632 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10633 renamed to arm_nbsd_supply_gregset.
10634 (fetch_register): Update to call arm_nbsd_supply_gregset.
10635 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10636 (arm_netbsd_nat_target::fetch_registers): Update.
10637 (fetch_elfcore_registers): Removed.
10638 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10639 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10640 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10641 not require NetBSD system headers.
10642 (arm_nbsd_regset): New struct.
10643 (arm_nbsd_iterate_over_regset_sections): New function.
10644 (arm_netbsd_init_abi_common): Updated to call
10645 set_gdbarch_iterate_over_regset_sections.
10646 * arm-nbsd-tdep.h: New file.
10647
dd69bf7a
KB
106482020-03-11 Kevin Buettner <kevinb@redhat.com>
10649
10650 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10651 recursion.
10652
a0761e34
SM
106532020-03-11 Simon Marchi <simon.marchi@efficios.com>
10654
10655 * configure: Re-generate.
10656
e7a82140
TT
106572020-03-11 Tom Tromey <tromey@adacore.com>
10658
10659 * ada-typeprint.c (print_choices): Fix comment.
10660
dcc050c8
AB
106612020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10662
10663 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10664 previous item in the list, when the list has no items.
10665
1c33af77
TV
106662020-03-11 Tom de Vries <tdevries@suse.de>
10667
10668 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10669 PROP_LOCLIST handling code.
10670
8c95582d
AB
106712020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10672
10673 * buildsym-legacy.c (record_line): Pass extra parameter to
10674 record_line.
10675 * buildsym.c (buildsym_compunit::record_line): Take an extra
10676 parameter, reduce duplication in the line table, and record the
10677 is_stmt flag in the line table.
10678 * buildsym.h (buildsym_compunit::record_line): Add extra
10679 parameter.
10680 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10681 non-statement lines.
10682 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10683 this to the symtab builder.
10684 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10685 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10686 through to dwarf_record_line_1.
10687 * infrun.c (process_event_stop_test): When stepping, don't stop at
10688 a non-statement instruction, and only refresh the step info when
10689 we land in the middle of a line's range. Also add an extra
10690 comment.
10691 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10692 field.
10693 * record-btrace.c (btrace_find_line_range): Only record lines
10694 marked as is-statement.
10695 * stack.c (frame_show_address): Show the frame address if we are
10696 in a non-statement sal.
10697 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10698 (maintenance_print_one_line_table): Print a header for the is_stmt
10699 column, and include is_stmt information in the output.
10700 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10701 preference to non-statements.
10702 (find_pcs_for_symtab_line): Prefer is-statement entries.
10703 (find_line_common): Likewise.
10704 * symtab.h (struct linetable_entry): Add is_stmt field.
10705 (struct symtab_and_line): Likewise.
10706 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10707 arranging the line table.
10708
e4003a34
TV
107092020-03-07 Tom de Vries <tdevries@suse.de>
10710
10711 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10712 DIE.
10713
e8932576
TT
107142020-03-07 Tom Tromey <tom@tromey.com>
10715
10716 * valops.c (value_literal_complex): Remove obsolete comment.
10717 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10718 comment.
10719
29734269
SM
107202020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10721
10722 * infrun.h: Forward-declare thread_info.
10723 (set_step_info): Add thread_info parameter, add doc.
10724 * infrun.c (set_step_info): Add thread_info parameter, move doc
10725 to header.
10726 * infrun.c (process_event_stop_test): Pass thread to
10727 set_step_info call.
10728 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10729 set_step_info.
10730 (prepare_one_step): Add thread_info parameter, pass it to
10731 set_step_frame and prepare_one_step (recursive) call.
10732 (step_1): Pass thread to prepare_one_step call.
10733 (step_command_fsm::should_stop): Pass thread to
10734 prepare_one_step.
10735 (until_next_fsm): Pass thread to set_step_frame call.
10736 (finish_command): Pass thread to set_step_info call.
10737
b7d64b29
HD
107382020-03-06 Hannes Domani <ssbssa@yahoo.de>
10739
10740 * windows-tdep.c (windows_solib_create_inferior_hook):
10741 Check if inferior is running.
10742
09f2921c
TV
107432020-03-06 Tom de Vries <tdevries@suse.de>
10744
10745 * NEWS: Fix "the the".
10746 * ctfread.c: Same.
10747
fd760e79
TV
107482020-03-06 Tom de Vries <tdevries@suse.de>
10749
10750 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10751
20ea4a60
AB
107522020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10753
10754 * .dir-locals.el: Add a comment referencing the other copies of
10755 this file.
10756
0afbabf0
JB
107572020-03-05 John Baldwin <jhb@FreeBSD.org>
10758
10759 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10760 psargs.
10761
842806cb
TBA
107622020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10763
10764 * .gitattributes: New file.
10765
be1e3d3e
TT
107662020-03-04 Tom Tromey <tom@tromey.com>
10767
10768 * symmisc.c (print_symbol_bcache_statistics)
10769 (print_objfile_statistics): Update.
10770 * symfile.c (allocate_symtab): Use intern.
10771 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10772 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10773 macro_cache>: Remove.
10774 <string_cache>: New member.
10775 (struct objfile) <intern>: New methods.
10776 * elfread.c (elf_symtab_read): Use intern.
10777 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10778 (dwarf2_compute_name, dwarf2_physname)
10779 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10780 names.
10781 (guess_partial_die_structure_name): Update.
10782 (partial_die_info::fixup): Intern name.
10783 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10784 name.
10785 (dwarf2_name): Intern name. Update.
10786 * buildsym.c (buildsym_compunit::get_macro_table): Use
10787 string_cache.
10788
4e7625fd
TT
107892020-03-04 Tom Tromey <tom@tromey.com>
10790
10791 * jit.c (bfd_open_from_target_memory): Make "target" const.
10792 * corefile.c (gnutarget): Now const.
10793 * gdbcore.h (gnutarget): Now const.
10794
46f9f931
HD
107952020-03-04 Hannes Domani <ssbssa@yahoo.de>
10796
10797 * NEWS: Mention support for WOW64 processes.
10798 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10799 (amd64_windows_segment_register_p): Remove static.
10800 (_initialize_amd64_windows_nat): Update.
10801 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10802 * i386-windows-nat.c (context_offset): Update.
10803 (i386_mappings): Rename and remove static.
10804 (i386_windows_segment_register_p): Remove static.
10805 (_initialize_i386_windows_nat): Update.
10806 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10807 (STATUS_WX86_SINGLE_STEP): New macro.
10808 (EnumProcessModulesEx): New macro.
10809 (Wow64SuspendThread): New macro.
10810 (Wow64GetThreadContext): New macro.
10811 (Wow64SetThreadContext): New macro.
10812 (Wow64GetThreadSelectorEntry): New macro.
10813 (windows_set_context_register_offsets): Add static.
10814 (windows_set_segment_register_p): Likewise.
10815 (windows_add_thread): Adapt for WOW64 processes.
10816 (windows_fetch_one_register): Likewise.
10817 (windows_nat_target::fetch_registers): Likewise.
10818 (windows_store_one_register): Likewise.
10819 (display_selector): Likewise.
10820 (display_selectors): Likewise.
10821 (handle_exception): Likewise.
10822 (windows_continue): Likewise.
10823 (windows_nat_target::resume): Likewise.
10824 (windows_add_all_dlls): Likewise.
10825 (do_initial_windows_stuff): Likewise.
10826 (windows_nat_target::attach): Likewise.
10827 (windows_get_exec_module_filename): Likewise.
10828 (windows_nat_target::create_inferior): Likewise.
10829 (windows_xfer_siginfo): Likewise.
10830 (_initialize_loadable): Initialize Wow64SuspendThread,
10831 Wow64GetThreadContext, Wow64SetThreadContext,
10832 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10833 * windows-nat.h (windows_set_context_register_offsets):
10834 Remove declaration.
10835 (windows_set_segment_register_p): Likewise.
10836 (i386_windows_segment_register_p): Add declaration.
10837 (amd64_windows_segment_register_p): Likewise.
10838
440cf44e
LM
108392020-03-04 Luis Machado <luis.machado@linaro.org>
10840
10841 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10842 in "info registers" for AArch64/ARM.
10843
10844 The change caused "info registers" to not print GPR's.
10845
10846 gdb/ChangeLog:
10847
10848 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10849
10850 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10851 when reg->group is empty and reggroup is not.
10852
1009d92f
TT
108532020-03-03 Tom Tromey <tromey@adacore.com>
10854
10855 * dwarf2/frame.c (struct dwarf2_frame_cache)
10856 <checked_tailcall_bottom, entry_cfa_sp_offset,
10857 entry_cfa_sp_offset_p>: Remove members.
10858 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10859 (dwarf2_frame_prev_register): Don't call
10860 dwarf2_tailcall_sniffer_first.
10861 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10862 * frame-unwind.c (add_unwinder): New fuction.
10863 (frame_unwind_init): Use it. Add tailcall unwinder.
10864
5e5d66b6
AB
108652020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10866 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10867
10868 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10869 value should be printed as true.
10870
584cf46d
HD
108712020-03-03 Hannes Domani <ssbssa@yahoo.de>
10872
10873 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10874 (windows_init_abi): Set and use windows_so_ops.
10875
7b973adc
SDJ
108762020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10877
10878 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10879 when verifying if dealing with a convenience variable.
10880
bb7b70ab
LM
108812020-03-03 Luis Machado <luis.machado@linaro.org>
10882
10883 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10884
9822cb57
SM
108852020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10886
10887 * infrun.c (gdbarch_supports_displaced_stepping): New.
10888 (use_displaced_stepping): Break up conditions in smaller pieces.
10889 Use gdbarch_supports_displaced_stepping.
10890 (displaced_step_prepare_throw): Use
10891 gdbarch_supports_displaced_stepping.
10892
63e163f2
AB
108932020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10894
10895 * NEWS: Mention new behaviour of the history filename.
10896 * top.c (write_history_p): Add comment.
10897 (show_write_history_p): Add header comment, give a different
10898 message when history writing is on, but the history filename is
10899 empty.
10900 (history_filename): Add comment.
10901 (history_filename_empty): New function.
10902 (show_history_filename): Add header comment, give a different
10903 message when the filename is empty.
10904 (init_history): Compare history_filename against nullptr, and only
10905 read history if the filename is not empty.
10906 (set_history_filename): Add header comment, and only make
10907 non-empty filenames absolute.
10908 (init_main): Make the filename argument to 'set history filename'
10909 optional.
10910
81b86b97
CB
109112020-03-02 Christian Biesinger <cbiesinger@google.com>
10912
10913 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10914 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10915 (fetch_fp_register): Update.
10916 (fetch_fp_regs): Update.
10917 (store_fp_register): Update.
10918 (store_fp_regs): Update.
10919 (arm_netbsd_nat_target::read_description): New function.
10920 (fetch_elfcore_registers): Update.
10921
24ed6739
AB
109222020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10923
10924 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10925 general_thread if the stop reply is missing a thread-id.
10926 (remote_target::process_stop_reply): Use the first non-exited
10927 thread if the target didn't pass a thread-id.
10928 * infrun.c (do_target_wait): Move call to
10929 switch_to_inferior_no_thread to ....
10930 (do_target_wait_1): ... here.
10931
a84bb2a0
JT
109322020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10933
10934 * debuginfod-support.c: Include defs.h first.
10935
658dadf0
TV
109362020-02-28 Tom de Vries <tdevries@suse.de>
10937
10938 * symfile.c (set_initial_language): Use default language for lookup.
10939
4ebe4877
SM
109402020-02-28 Simon Marchi <simon.marchi@efficios.com>
10941
10942 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10943 reader variable, pass `this` to read_cutu_die_from_dwo.
10944
e5da1139
AM
109452020-02-27 Aaron Merey <amerey@redhat.com>
10946
10947 * source.c (open_source_file): Check for nullptr when computing
10948 srcpath.
10949
317f7127
TT
109502020-02-27 Tom Tromey <tromey@adacore.com>
10951
10952 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10953 member.
10954 (dwarf2_add_field): Don't update nfields.
10955 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10956
3104d9ee
AB
109572020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10958
10959 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10960 abs.
10961
b83470bf
TT
109622020-02-26 Tom Tromey <tom@tromey.com>
10963
10964 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10965 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10966 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10967 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10968 per_cu_data.
10969
edfe0a0c
TT
109702020-02-26 Tom Tromey <tom@tromey.com>
10971
10972 * dwarf2/index-write.c (psym_index_map): Change type.
10973 (add_address_entry_worker, write_one_signatured_type)
10974 (recursively_count_psymbols, recursively_write_psymbols)
10975 (class debug_names, psyms_seen_size, write_gdbindex)
10976 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10977
0d79cdc4
AM
109782020-02-26 Aaron Merey <amerey@redhat.com>
10979
10980 * Makefile.in: Handle optional debuginfod support.
10981 * NEWS: Update.
10982 * README: Add --with-debuginfod summary.
10983 * config.in: Regenerate.
10984 * configure: Regenerate.
10985 * configure.ac: Handle optional debuginfod support.
10986 * debuginfod-support.c: debuginfod helper functions.
10987 * debuginfod-support.h: Ditto.
10988 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10989 summary.
10990 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10991 when a dwz file cannot be found.
10992 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10993 debuginfo file cannot be found.
10994 * source.c (open_source_file): Query debuginfod servers when a
10995 source file cannot be found.
10996 * top.c (print_gdb_configuration): Include
10997 --{with,without}-debuginfod in the output.
10998
b65ce565
JG
109992020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11000
11001 * thread.c (thr_try_catch_cmd): Print thread name.
11002
d4c9a4f8
SM
110032020-02-26 Simon Marchi <simon.marchi@efficios.com>
11004
11005 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11006 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11007 dwarf2_fetch_die_type_sect_off): Move to...
11008 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11009 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11010 dwarf2_fetch_die_type_sect_off): ... here.
11011 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11012 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11013 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11014
0dce4280
TV
110152020-02-26 Tom de Vries <tdevries@suse.de>
11016
11017 PR gdb/25603
11018 * symfile.c (set_initial_language): Exit-early if
11019 language_mode == language_mode_manual.
11020
450a1bfc
SM
110212020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11022
11023 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11024 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11025 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11026
9e80cfa1
AB
110272020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11028
11029 * gdbtypes.c (create_array_type_with_stride): Handle negative
11030 array strides.
11031 * valarith.c (value_subscripted_rvalue): Likewise.
11032
09624f1f
LM
110332020-02-25 Luis Machado <luis.machado@linaro.org>
11034
11035 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11036
8cb5117c
SM
110372020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11038
11039 * loc.h (dwarf2_get_die_type): Move to...
11040 * read.h (dwarf2_get_die_type): ... here.
11041 * read.c (dwarf2_get_die_type): Move doc to header.
11042
c325c44e
JB
110432020-02-25 Joel Brobecker <brobecker@adacore.com>
11044
11045 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11046 'gnulib/Makefile.in' to the list.
11047
4ac93832
TT
110482020-02-24 Tom Tromey <tom@tromey.com>
11049
11050 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11051 Remove.
11052 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11053 XOBNEWVEC.
11054
197400e8
TT
110552020-02-24 Tom Tromey <tom@tromey.com>
11056
11057 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11058 New method.
11059 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11060 (dw2_do_instantiate_symtab, dw2_get_file_names)
11061 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11062
76935768
TT
110632020-02-24 Tom Tromey <tom@tromey.com>
11064
11065 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11066 make_scoped_restore.
11067 (dwarf2_psymtab::read_symtab): Don't clear
11068 reading_partial_symbols.
11069
a88ef40d
TV
110702020-02-24 Tom de Vries <tdevries@suse.de>
11071
11072 PR gdb/25592
11073 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11074
c9af6521
TV
110752020-02-24 Tom de Vries <tdevries@suse.de>
11076
11077 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11078 commands layout next/prev/regs.
11079
5707a07a
TT
110802020-02-22 Tom Tromey <tom@tromey.com>
11081
11082 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11083 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11084
3b0fb49e
TT
110852020-02-22 Tom Tromey <tom@tromey.com>
11086
11087 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11088
283be8bf
TT
110892020-02-22 Tom Tromey <tom@tromey.com>
11090
11091 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11092 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11093 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11094 * tui/tui.c (_initialize_tui): Add usage text.
11095
ca793b96
TT
110962020-02-22 Tom Tromey <tom@tromey.com>
11097
11098 * tui/tui-win.c (tui_set_focus_command)
11099 (tui_set_win_height_command): Use error_no_arg.
11100 (_initialize_tui_win): Update help text.
11101 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11102
432b5c40
TT
111032020-02-22 Tom Tromey <tom@tromey.com>
11104
11105 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11106 * tui/tui-disasm.h (struct tui_disasm_window)
11107 <display_start_addr>: Declare.
11108 * tui/tui-source.h (struct tui_source_window)
11109 <display_start_addr>: Declare.
11110 * tui/tui-winsource.h (struct tui_source_window_base)
11111 <show_source_line, display_start_addr>: New methods.
11112 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11113 Rename and move to protected section.
11114 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11115 (tui_source_window_base::do_erase_source_content): Update.
11116 (tui_source_window_base::show_source_line): Now a method.
11117 (tui_source_window_base::show_source_content)
11118 (tui_source_window_base::tui_source_window_base)
11119 (tui_source_window_base::rerender)
11120 (tui_source_window_base::refill)
11121 (tui_source_window_base::do_scroll_horizontal)
11122 (tui_source_window_base::set_is_exec_point_at)
11123 (tui_source_window_base::update_breakpoint_info)
11124 (tui_source_window_base::update_exec_info): Update.
11125 * tui/tui-source.c (tui_source_window::set_contents)
11126 (tui_source_window::showing_source_p)
11127 (tui_source_window::do_scroll_vertical)
11128 (tui_source_window::location_matches_p)
11129 (tui_source_window::line_is_displayed): Update.
11130 (tui_source_window::display_start_addr): New method.
11131 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11132 (tui_disasm_window::do_scroll_vertical)
11133 (tui_disasm_window::location_matches_p): Update.
11134 (tui_disasm_window::display_start_addr): New method.
11135
01b1af32
TT
111362020-02-22 Tom Tromey <tom@tromey.com>
11137
11138 * NEWS: Add entry for gdb.register_window_type.
11139 * tui/tui-layout.h (window_factory): New typedef.
11140 (tui_register_window): Declare.
11141 * tui/tui-layout.c (saved_tui_windows): New global.
11142 (tui_apply_current_layout): Use it.
11143 (tui_register_window): New function.
11144 * python/python.c (do_start_initialization): Call
11145 gdbpy_initialize_tui.
11146 (python_GdbMethods): Add "register_window_type" function.
11147 * python/python-internal.h (gdbpy_register_tui_window)
11148 (gdbpy_initialize_tui): Declare.
11149 * python/py-tui.c: New file.
11150 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11151
fc96d20b
TT
111522020-02-22 Tom Tromey <tom@tromey.com>
11153
11154 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11155
935c78c0
TT
111562020-02-22 Tom Tromey <tom@tromey.com>
11157
11158 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11159 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11160 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11161 (tui_set_win_focus_to): Move from tui-win.c.
11162
0240c8f1
TT
111632020-02-22 Tom Tromey <tom@tromey.com>
11164
11165 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11166 functions.
11167 (known_window_types): New global.
11168 (tui_get_window_by_name): Reimplement.
11169 (initialize_known_windows): New function.
11170 (validate_window_name): Rewrite.
11171 (_initialize_tui_layout): Call initialize_known_windows.
11172
fdb01f0c
TT
111732020-02-22 Tom Tromey <tom@tromey.com>
11174
11175 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11176 Remove constants.
11177 * tui/tui-winsource.h (struct tui_source_window_base)
11178 <tui_source_window_base>: Remove parameter.
11179 * tui/tui-winsource.c
11180 (tui_source_window_base::tui_source_window_base): Remove
11181 parameter.
11182 (tui_source_window_base::refill): Update.
11183 * tui/tui-stack.h (struct tui_locator_window)
11184 <tui_locator_window>: Update.
11185 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11186 Default the constructor.
11187 * tui/tui-regs.h (struct tui_data_item_window)
11188 <tui_data_item_window>: Default the constructor.
11189 (struct tui_data_window) <tui_data_window>: Likewise.
11190 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11191 Default the constructor.
11192 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11193 Default the constructor.
11194 <type>: Remove.
11195 (struct tui_win_info) <tui_win_info>: Default the constructor.
11196 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11197 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11198 Default the constructor.
11199
865a5aec
TT
112002020-02-22 Tom Tromey <tom@tromey.com>
11201
11202 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11203 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11204 * tui/tui-win.c (tui_resize_all): Don't call
11205 tui_delete_invisible_windows.
11206 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11207 done.
11208 (tui_set_layout): Update.
11209 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11210 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11211 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11212
e098d18c
TT
112132020-02-22 Tom Tromey <tom@tromey.com>
11214
11215 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11216 correctly.
11217
eb9c8874
TT
112182020-02-22 Tom Tromey <tom@tromey.com>
11219
11220 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11221
7eed1a8e
TT
112222020-02-22 Tom Tromey <tom@tromey.com>
11223
11224 * tui/tui-winsource.h (struct tui_source_window_iterator)
11225 <inner_iterator>: New etytypedef.
11226 <tui_source_window_iterator>: Take "end" parameter.
11227 <tui_source_window_iterator>: Take iterator.
11228 <operator*, advance>: Update.
11229 <m_iter>: Change type.
11230 <m_end>: New field.
11231 (struct tui_source_windows) <begin, end>: Update.
11232 * tui/tui-layout.c (tui_windows): New global.
11233 (tui_apply_current_layout): Clear tui_windows.
11234 (tui_layout_window::apply): Update tui_windows.
11235 * tui/tui-data.h (tui_windows): Declare.
11236 (all_tui_windows): Now inline function.
11237 (class tui_window_iterator, struct all_tui_windows): Remove.
11238
7c043ba6
TT
112392020-02-22 Tom Tromey <tom@tromey.com>
11240
11241 PR tui/17850:
11242 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11243 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11244 "height" argument.
11245 (class tui_layout_window) <get_sizes>: Likewise.
11246 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11247 argument.
11248 <get_sizes>: Add "height" argument.
11249 <m_vertical>: New field.
11250 * tui/tui-layout.c (tui_layout_split::clone): Update.
11251 (tui_layout_split::get_sizes): Add "height" argument.
11252 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11253 (tui_new_layout_command): Parse "-horizontal".
11254 (_initialize_tui_layout): Update help string.
11255 (tui_layout_split::specification): Add "-horizontal" when needed.
11256 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11257 argument.
11258 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11259 New methods.
11260
6bc56648
TT
112612020-02-22 Tom Tromey <tom@tromey.com>
11262
11263 * tui/tui-layout.h (enum tui_adjust_result): New.
11264 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11265 (class tui_layout_window) <adjust_size>: Return
11266 tui_adjust_result. Rewrite.
11267 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11268 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11269
c22fef7e
TT
112702020-02-22 Tom Tromey <tom@tromey.com>
11271
11272 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11273 parameter and return types.
11274 (class tui_layout_base) <specification>: Add "depth".
11275 (class tui_layout_window) <specification>: Add "depth".
11276 (class tui_layout_split) <specification>: Add "depth".
11277 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11278 and return types.
11279 (tui_new_layout_command): Parse sub-layouts.
11280 (_initialize_tui_layout): Update help string.
11281 (tui_layout_window::specification): Add "depth".
11282 (add_layout_command): Update.
11283
ee325b61
TT
112842020-02-22 Tom Tromey <tom@tromey.com>
11285
11286 * NEWS: Add "tui new-layout" item.
11287 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11288 Add new-layout command to help text.
11289 (validate_window_name): New function.
11290 (tui_new_layout_command): New function.
11291 (_initialize_tui_layout): Register "new-layout".
11292 (tui_layout_window::specification): New method.
11293 (tui_layout_window::specification): New method.
11294 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11295 method.
11296 (class tui_layout_window) <specification>: New method.
11297 (class tui_layout_split) <specification>: New method.
11298
416eb92d
TT
112992020-02-22 Tom Tromey <tom@tromey.com>
11300
11301 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11302 * tui/tui-win.c (window_name_completer): Update comment.
11303 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11304 Declare method.
11305 (class tui_layout_window) <replace_window>: Likewise.
11306 (class tui_layout_split) <replace_window>: Likewise.
11307 (tui_set_layout): Don't declare.
11308 (tui_set_initial_layout): Declare function.
11309 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11310 (asm_regs_layout): New globals.
11311 (tui_current_layout, show_layout): Remove.
11312 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11313 (find_layout, tui_apply_layout): New function.
11314 (layout_completer): Remove.
11315 (tui_next_layout): Reimplement.
11316 (tui_next_layout_command): New function.
11317 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11318 (tui_regs_layout): Reimplement.
11319 (tui_regs_layout_command): New function.
11320 (extract_display_start_addr): Rewrite.
11321 (next_layout, prev_layout): Remove.
11322 (tui_layout_window::replace_window): New method.
11323 (tui_layout_split::replace_window): New method.
11324 (destroy_layout): New function.
11325 (layout_list): New global.
11326 (add_layout_command): New function.
11327 (initialize_layouts): Update.
11328 (tui_layout_command): New function.
11329 (_initialize_tui_layout): Install "layout" commands.
11330 * tui/tui-data.h (enum tui_layout_type): Remove.
11331 (tui_current_layout): Don't declare.
11332
0dbc2fc7
TT
113332020-02-22 Tom Tromey <tom@tromey.com>
11334
11335 * tui/tui-regs.c (tui_reg_layout): Remove.
11336 (tui_reg_command): Use tui_regs_layout.
11337 * tui/tui-layout.h (tui_reg_command): Declare.
11338 * tui/tui-layout.c (tui_reg_command): New function.
11339
5afe342e
TT
113402020-02-22 Tom Tromey <tom@tromey.com>
11341
11342 * tui/tui.c (tui_rl_delete_other_windows): Call
11343 tui_remove_some_windows.
11344 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11345 Declare method.
11346 (class tui_layout_window) <remove_windows>: New method.
11347 (class tui_layout_split) <remove_windows>: Declare.
11348 (tui_remove_some_windows): Declare.
11349 * tui/tui-layout.c (tui_remove_some_windows): New function.
11350 (tui_layout_split::remove_windows): New method.
11351
427326a8
TT
113522020-02-22 Tom Tromey <tom@tromey.com>
11353
11354 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11355 * tui/tui-layout.h (tui_next_layout): Declare.
11356 * tui/tui-layout.c (tui_next_layout): New function.
11357
3fe12b6d
TT
113582020-02-22 Tom Tromey <tom@tromey.com>
11359
11360 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11361 correct coordinates.
11362
59b8b5d2
TT
113632020-02-22 Tom Tromey <tom@tromey.com>
11364
11365 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11366 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11367 DATA_WIN case.
11368
2a3d458b
TT
113692020-02-22 Tom Tromey <tom@tromey.com>
11370
11371 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11372 TUI_DISASM_WIN, not tui_win_list.
11373
3f0cbb04
TT
113742020-02-22 Tom Tromey <tom@tromey.com>
11375
11376 * valprint.c (generic_val_print_enum_1)
11377 (val_print_type_code_flags): Style member names.
11378 * rust-lang.c (val_print_struct, rust_print_enum)
11379 (rust_print_struct_def, rust_internal_print_type): Style member
11380 names.
11381 * p-valprint.c (pascal_object_print_value_fields): Style member
11382 names. Only call fprintf_symbol_filtered for static members.
11383 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11384 * f-valprint.c (f_val_print): Style member names.
11385 * f-typeprint.c (f_type_print_base): Style member names.
11386 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11387 call fprintf_symbol_filtered for static members.
11388 (cp_print_class_member): Style member names.
11389 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11390 member names.
11391 * ada-valprint.c (ada_print_scalar): Style enum names.
11392 (ada_val_print_enum): Likewise.
11393 * ada-typeprint.c (print_enum_type): Style enum names.
11394
d4d947ae
TT
113952020-02-21 Tom Tromey <tom@tromey.com>
11396
11397 * psympriv.h (struct partial_symtab): Update comment.
11398
e94e944b
TT
113992020-02-21 Tom Tromey <tromey@adacore.com>
11400
11401 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11402 type is CORE_ADDR.
11403
1eb73179
TV
114042020-02-21 Tom de Vries <tdevries@suse.de>
11405
11406 PR gdb/25534
11407 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11408 if dependencies[i]->user != NULL.
11409
4f180d53
AT
114102020-02-21 Ali Tamur <tamur@google.com>
11411
11412 * dwarf2/read.c (dwarf2_name): Add null check.
11413
22b6cd70
TT
114142020-02-20 Tom Tromey <tom@tromey.com>
11415
11416 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11417 ">=", in binary search.
11418 (dwarf2_find_containing_comp_unit): New overload.
11419 (run_test): New self-test.
11420 (_initialize_dwarf2_read): Register new test.
11421
bd0cf5a6
NC
114222020-02-20 Nelson Chu <nelson.chu@sifive.com>
11423
11424 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11425 * riscv-tdep.h: Likewise.
11426 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11427 rv32-only CSR.
11428 * features/riscv/64bit-csr.xml: Regenerated.
11429
3f702acd
SDJ
114302020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11431 Tom Tromey <tom@tromey.com>
11432
11433 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11434 of 'fputc_unfiltered'.
11435 (putchar_unfiltered): Call 'fputc_unfiltered'.
11436 (fputc_unfiltered): Call 'fputs_unfiltered'.
11437
d13c7322
AB
114382020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11439
11440 * config.in: Regenerate.
11441 * configure: Regenerate.
11442 * configure.ac: Add --with-python-libdir option.
11443 * main.c: Use WITH_PYTHON_LIBDIR.
11444
869d8950
TT
114452020-02-19 Tom Tromey <tom@tromey.com>
11446
11447 * symtab.c (general_symbol_info::compute_and_set_names): Use
11448 obstack_strndup. Simplify call to symbol_set_demangled_name.
11449
298e9637
SM
114502020-02-19 Simon Marchi <simon.marchi@efficios.com>
11451
11452 * dwarf2/read.c (allocate_signatured_type_table,
11453 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11454 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11455 Remove objfile parameter, update all callers.
11456
08410482
DE
114572020-02-19 Doug Evans <dje@google.com>
11458
11459 PR rust/25535
11460 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11461 rust_enum_variant calculation.
11462
dfdeeca1
TT
114632020-02-19 Tom Tromey <tromey@adacore.com>
11464
11465 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11466
2ef5453b
TT
114672020-02-19 Tom Tromey <tromey@adacore.com>
11468
11469 * ada-lang.c (cache_symbol): Use obstack_strdup.
11470
9f1528a1
AB
114712020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11472
11473 * configure: Regenerate.
11474
d3c22fa8
TT
114752020-02-19 Tom Tromey <tromey@adacore.com>
11476
11477 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11478 NULL check.
11479
bf84f706
MR
114802020-02-19 Maciej W. Rozycki <macro@wdc.com>
11481
11482 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11483
d1c9b20f
AB
114842020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11485
11486 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11487 if GDBSERVER is not defined.
11488 (riscv_tdesc_cache): Likewise, also store const target_desc.
11489 (STATIC_IN_GDB): Define.
11490 (riscv_create_target_description): Update declaration with
11491 STATIC_IN_GDB.
11492 (riscv_lookup_target_description): New function, only define if
11493 GDBSERVER is not defined.
11494 * arch/riscv.h (riscv_create_target_description): Declare only
11495 when GDBSERVER is defined.
11496 (riscv_lookup_target_description): New declaration when GDBSERVER
11497 is not defined.
11498 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11499 (riscv_linux_read_features): ...this, and return
11500 riscv_gdbarch_features instead of target_desc.
11501 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11502 (riscv_linux_read_description): Rename to...
11503 (riscv_linux_read_features): ...this.
11504 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11505 Update to use riscv_gdbarch_features and
11506 riscv_lookup_target_description.
11507 * riscv-tdep.c (riscv_find_default_target_description): Use
11508 riscv_lookup_target_description instead of
11509 riscv_create_target_description.
11510
373d7ac0
SM
115112020-02-18 Simon Marchi <simon.marchi@efficios.com>
11512
11513 * valprint.c (generic_val_print_enum_1): When printing a flag
11514 enum with value 0 and there is no enumerator with value 0, print
11515 just "0" instead of "(unknown: 0x0)".
11516
b29a2df0
SM
115172020-02-18 Simon Marchi <simon.marchi@efficios.com>
11518
11519 * valprint.c (generic_val_print_enum_1): Print unknown part of
11520 flag enum in hex.
11521
6740f0cc
SM
115222020-02-18 Simon Marchi <simon.marchi@efficios.com>
11523
11524 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11525 flag enums to contain duplicate enumerators.
11526 * valprint.c (generic_val_print_enum_1): Update comment.
11527
edd45eb0
SM
115282020-02-18 Simon Marchi <simon.marchi@efficios.com>
11529
11530 * dwarf2/read.c: Include "count-one-bits.h".
11531 (update_enumeration_type_from_children): If an enumerator has
11532 multiple bits set, don't treat the enumeration as a "flag enum".
11533 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11534 of flag enums have 0 or 1 bit set.
11535
6d0cf446
BE
115362020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11537
11538 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11539 conversion.
11540 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11541 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11542 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11543 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11544 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11545
7001c1b7
SM
115462020-02-18 Simon Marchi <simon.marchi@efficios.com>
11547
11548 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11549
fdb61c6c
SM
115502020-02-14 Simon Marchi <simon.marchi@efficios.com>
11551
11552 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11553 displaced_step_closure_up.
11554 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11555 (struct displaced_step_closure_up):
11556 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11557 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11558 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11559 Likewise.
11560 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11561 * gdbarch.c, gdbarch.h: Re-generate.
11562 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11563 displaced_step_closure_up.
11564 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11565 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11566 * infrun.h (displaced_step_closure_up): New type alias.
11567 (struct displaced_step_inferior_state) <step_closure>: Change
11568 type to displaced_step_closure_up.
11569 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11570 displaced_step_closure_up.
11571 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11572
a4a38eb4
TT
115732020-02-14 Tom Tromey <tom@tromey.com>
11574
11575 * minidebug.c (gnu_debug_key): New global.
11576 (find_separate_debug_file_in_section): Use it.
11577
e8217e61
SM
115782020-02-14 Simon Marchi <simon.marchi@efficios.com>
11579
11580 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11581 std::unique_ptr.
11582 * gdbarch.c: Re-generate.
11583 * gdbarch.h: Re-generate.
11584 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11585 change.
11586 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11587 type to std::unique_ptr.
11588 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11589 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11590 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11591 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11592 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11593 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11594 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11595 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11596 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11597
d8d83535
SM
115982020-02-14 Simon Marchi <simon.marchi@efficios.com>
11599
11600 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11601 std::unique_ptr.
11602 (displaced_step_clear): Rename to...
11603 (displaced_step_reset): ... this. Just call displaced->reset ().
11604 (displaced_step_clear_cleanup): Rename to...
11605 (displaced_step_reset_cleanup): ... this.
11606 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11607 (displaced_step_fixup): Likewise.
11608 (resume_1): Likewise.
11609 (handle_inferior_event): Restore child's memory before calling
11610 displaced_step_fixup on the parent.
11611 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11612 to std::unique_ptr.
11613 <step_closure>: Change type to std::unique_ptr.
11614
5f661e03
SM
116152020-02-14 Simon Marchi <simon.marchi@efficios.com>
11616
11617 * arm-tdep.c: Include count-one-bits.h.
11618 (cleanup_block_store_pc): Use count_one_bits.
11619 (cleanup_block_load_pc): Use count_one_bits.
11620 (arm_copy_block_xfer): Use count_one_bits.
11621 (thumb2_copy_block_xfer): Use count_one_bits.
11622 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11623 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11624 (thumb_get_next_pcs_raw): Use count_one_bits.
11625 (arm_get_next_pcs_raw): Use count_one_bits_l.
11626 * arch/arm.c (bitcount): Remove.
11627 * arch/arm.h (bitcount): Remove.
11628
8084e579
TT
116292020-02-14 Tom Tromey <tromey@adacore.com>
11630
11631 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11632 Update.
11633 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11634 * dwarf2/loc.c (call_site_find_chain_1): Return
11635 unique_xmalloc_ptr.
11636 (call_site_find_chain): Likewise.
11637
258bf0ee
RB
116382020-02-14 Richard Biener <rguenther@suse.de>
11639
11640 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11641 on expression with division operators.
11642
f98a8458
AKS
116432020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11644
11645 * MAINTAINERS (Write After Approval): Adding myself.
11646
d1437c0e
TT
116472020-02-12 Tom Tromey <tom@tromey.com>
11648
11649 * event-loop.c (event_data, gdb_event, event_handler_func):
11650 Remove.
11651
3d4560f7
TT
116522020-02-12 Tom Tromey <tom@tromey.com>
11653
11654 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11655 (dwarf2_frame_objfile_data): Add comment.
11656 (find_comp_unit, set_comp_unit): New functions.
11657 (dwarf2_frame_find_fde): Use find_comp_unit.
11658 (dwarf2_build_frame_info): Use set_comp_unit.
11659
21982304
TT
116602020-02-12 Tom Tromey <tom@tromey.com>
11661
11662 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11663 (comp_unit): Don't initialize objfile.
11664 (execute_cfa_program): Add text_offset parameter.
11665 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11666 (dwarf2_frame_cache): Update.
11667 (dwarf2_build_frame_info): Don't set "objfile" member.
11668
4debb237
TT
116692020-02-12 Tom Tromey <tom@tromey.com>
11670
11671 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11672 (decode_frame_entry): Likewise.
11673 (dwarf2_build_frame_info): Update.
11674
0d404d44
TT
116752020-02-12 Tom Tromey <tom@tromey.com>
11676
11677 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11678 (decode_frame_entry_1): Use the comp_unit obstack.
11679
a7a3ae5c
TT
116802020-02-12 Tom Tromey <tom@tromey.com>
11681
11682 * dwarf2/frame.c (struct comp_unit): Add initializers and
11683 constructor.
11684 (dwarf2_frame_objfile_data): Store a comp_unit.
11685 (dwarf2_frame_find_fde): Update.
11686 (dwarf2_build_frame_info): Use "new".
11687
a9d65418
TT
116882020-02-12 Tom Tromey <tom@tromey.com>
11689
11690 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11691 (dwarf2_fde_table): Typedef for std::vector.
11692 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11693 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11694 (decode_frame_entry): Update.
11695 (dwarf2_build_frame_info): Use "new".
11696
7559c217
CB
116972020-02-12 Christian Biesinger <cbiesinger@google.com>
11698
11699 * arm-tdep.c (arm_gdbarch_init): Update.
11700 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11701 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11702 have_neon, is_m>: Change to bool.
11703
aeefc73c
CB
117042020-02-12 Christian Biesinger <cbiesinger@google.com>
11705
11706 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11707
d27b8e5f
TT
117082020-02-12 Tom Tromey <tom@tromey.com>
11709
11710 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11711
cd5900f3
HD
117122020-02-12 Hannes Domani <ssbssa@yahoo.de>
11713
11714 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11715 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11716
f056b22b
TT
117172020-02-11 Tom Tromey <tom@tromey.com>
11718
11719 * psymtab.h: Update comment.
11720
f92ff6b5
TT
117212020-02-11 Tom Tromey <tom@tromey.com>
11722
11723 * gdb_obstack.h (struct auto_obstack): Use
11724 DISABLE_COPY_AND_ASSIGN.
11725
3fd6912b
TT
117262020-02-11 Tom Tromey <tom@tromey.com>
11727
11728 * dwarf2/frame.h (struct objfile): Don't forward declare.
11729
69ed9b74
CB
117302020-02-11 Christian Biesinger <cbiesinger@google.com>
11731
11732 * cris-tdep.c (cris_supply_gregset): Change signature to match
11733 what struct regset expects.
11734 (cris_regset): New struct.
11735 (fetch_core_registers): Remove.
11736 (cris_iterate_over_regset_sections): New function.
11737 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11738 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11739
bda874f6
CB
117402020-02-11 Christian Biesinger <cbiesinger@google.com>
11741
11742 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11743 registers.
11744
754e1564
CB
117452020-02-11 Christian Biesinger <cbiesinger@google.com>
11746
11747 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11748
8ddd8e0e
SM
117492020-02-11 Simon Marchi <simon.marchi@efficios.com>
11750
11751 * configure: Re-generate.
11752
898e7f60
SM
117532020-02-11 Simon Marchi <simon.marchi@efficios.com>
11754
11755 * configure: Re-generate.
11756
58df732b
SM
117572020-02-11 Simon Marchi <simon.marchi@efficios.com>
11758
11759 * acinclude: Update warning.m4 path.
11760 * warning.m4: Move to gdbsupport.
11761
da5bd37e
TT
117622020-02-11 Tom Tromey <tromey@adacore.com>
11763
11764 * remote.c (remote_console_output): Update.
11765 * printcmd.c (printf_command): Update.
11766 * event-loop.c (gdb_wait_for_event): Update.
11767 * linux-nat.c (sigchld_handler): Update.
11768 * remote-sim.c (gdb_os_write_stdout): Update.
11769 (gdb_os_flush_stdout): Update.
11770 (gdb_os_flush_stderr): Update.
11771 (gdb_os_write_stderr): Update.
11772 * exceptions.c (print_exception): Update.
11773 * remote-fileio.c (remote_fileio_func_read): Update.
11774 (remote_fileio_func_write): Update.
11775 * tui/tui.c (tui_enable): Update.
11776 * tui/tui-interp.c (tui_interp::init): Update.
11777 * utils.c (init_page_info): Update.
11778 (putchar_unfiltered, fputc_unfiltered): Update.
11779 (gdb_flush): Update.
11780 (emit_style_escape): Update.
11781 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11782 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11783 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11784 (stderr_file::write): Update.
11785 (stderr_file::puts): Update.
11786 * ui-file.h (ui_file_isatty, ui_file_write)
11787 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11788 (ui_file_puts): Don't declare.
11789
85f0dd3c
TV
117902020-02-10 Tom de Vries <tdevries@suse.de>
11791
11792 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11793 sentinel to char *.
11794
2e927613
TV
117952020-02-09 Tom de Vries <tdevries@suse.de>
11796
11797 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11798 filename if it matches "<artificial>".
11799
6bafc845
HD
118002020-02-09 Hannes Domani <ssbssa@yahoo.de>
11801
11802 * windows-tdep.c (struct enum_value_name): New struct.
11803 (create_enum): New function.
11804 (windows_get_siginfo_type): Create and use enum types.
11805
7928d571
HD
118062020-02-09 Hannes Domani <ssbssa@yahoo.de>
11807
11808 * NEWS: Mention $_siginfo support for Windows.
11809 * windows-nat.c (handle_exception): Set siginfo_er.
11810 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11811 (windows_xfer_siginfo): New function.
11812 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11813 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11814 (init_windows_gdbarch_data): New function.
11815 (get_windows_gdbarch_data): New function.
11816 (windows_get_siginfo_type): New function.
11817 (windows_init_abi): Register windows_get_siginfo_type.
11818 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11819
6751ebae
TT
118202020-02-08 Tom Tromey <tom@tromey.com>
11821
11822 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11823 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11824 <keep>: Declare method.
11825 <m_keep>: Remove member.
11826 <~cutu_reader>: Remove.
11827 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11828 (cutu_reader::cutu_reader): Update.
11829 (cutu_reader::keep): Rename from ~cutu_reader.
11830 (process_psymtab_comp_unit, build_type_psymtabs_1)
11831 (process_skeletonless_type_unit, load_partial_comp_unit)
11832 (load_full_comp_unit, dwarf2_read_addr_index)
11833 (read_signatured_type): Update.
11834
135f5437
TT
118352020-02-08 Tom Tromey <tom@tromey.com>
11836
11837 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11838 "want_partial_unit" parameter.
11839 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11840 Inline check for DW_TAG_partial_unit.
11841 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11842
9f66ff1c
TT
118432020-02-08 Tom Tromey <tom@tromey.com>
11844
11845 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11846 read.c.
11847 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11848 read.c.
11849
c8a7a66f
TT
118502020-02-08 Tom Tromey <tom@tromey.com>
11851
11852 * dwarf2/read.c (read_address): Move to comp-unit.c.
11853 (dwarf2_rnglists_process, dwarf2_ranges_process)
11854 (read_attribute_value, dwarf_decode_lines_1)
11855 (var_decode_location, decode_locdesc): Update.
11856 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11857 read.c. Remove "cu" parameter.
11858 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11859 method.
11860
8266302d
TT
118612020-02-08 Tom Tromey <tom@tromey.com>
11862
11863 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11864 (read_indirect_line_string): Update.
11865 * dwarf2/comp-unit.c (read_offset): Remove.
11866 (read_comp_unit_head): Update.
11867 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11868 method.
11869 (read_offset): Don't declare.
11870
4057dfde
TT
118712020-02-08 Tom Tromey <tom@tromey.com>
11872
11873 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11874 * dwarf2/read.c (struct comp_unit_head): Move to
11875 dwarf2/comp-unit.h.
11876 (enum class rcuh_kind): Move to comp-unit.h.
11877 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11878 (read_comp_unit_head, error_check_comp_unit_head)
11879 (read_and_check_comp_unit_head): Move to comp-unit.c.
11880 (read_offset, dwarf_unit_type_name): Likewise.
11881 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11882 (cutu_reader::cutu_reader, read_call_site_scope)
11883 (find_partial_die, follow_die_offset): Update.
11884 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11885
24aa364d
TT
118862020-02-08 Tom Tromey <tom@tromey.com>
11887
11888 * dwarf2/read.c (read_offset_1): Move to leb.c.
11889 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11890 (dwarf_decode_macro_bytes): Update.
11891 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11892 * dwarf2/leb.h (read_offset): Declare.
11893
2c7d5afc
TT
118942020-02-08 Tom Tromey <tom@tromey.com>
11895
11896 * dwarf2/read.c (dwarf2_section_size): Remove.
11897 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11898 Update.
11899 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11900
4075cb26
TT
119012020-02-08 Tom Tromey <tom@tromey.com>
11902
11903 * dwarf2/read.c (read_initial_length): Move to leb.c.
11904 * dwarf2/leb.h (read_initial_length): Declare.
11905 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11906 handle_nonstd parameter.
11907 * dwarf2/frame.c (read_initial_length): Remove.
11908 (decode_frame_entry_1): Update.
11909
09ba997f
TT
119102020-02-08 Tom Tromey <tom@tromey.com>
11911
11912 * dwarf2/loc.c (dwarf2_find_location_expression)
11913 (dwarf_evaluate_loc_desc::get_tls_address)
11914 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11915 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11916 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11917 (dwarf2_compile_property_to_c)
11918 (dwarf2_loc_desc_get_symbol_read_needs)
11919 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11920 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11921 (loclist_describe_location, loclist_tracepoint_var_ref)
11922 (loclist_generate_c_location): Update.
11923 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11924 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11925 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11926 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11927 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11928 (dwarf2_per_cu_data::addr_size)
11929 (dwarf2_per_cu_data::ref_addr_size)
11930 (dwarf2_per_cu_data::text_offset)
11931 (dwarf2_per_cu_data::addr_type): Now methods.
11932 (per_cu_header_read_in): Make per_cu "const".
11933 (dwarf2_version): Remove.
11934 (dwarf2_per_cu_data::int_type): Now a method.
11935 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11936 (set_die_type, read_array_type, read_subrange_index_type)
11937 (read_tag_string_type, read_subrange_type): Update.
11938 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11939 offset_size, ref_addr_size, text_offset, addr_type, version,
11940 objfile, int_type, addr_sized_int_type>: Declare methods.
11941
96c738c0
TT
119422020-02-08 Tom Tromey <tom@tromey.com>
11943
11944 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11945 Move earlier.
11946
8fdd972c
TT
119472020-02-08 Tom Tromey <tom@tromey.com>
11948
11949 * dwarf2/read.h (dwarf_line_debug): Declare.
11950 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11951 * dwarf2/read.c: Move line_header code to new files.
11952 (dwarf_line_debug): No longer static.
11953 * dwarf2/line-header.c: New file.
11954 * dwarf2/line-header.h: New file.
11955
03075812
TT
119562020-02-08 Tom Tromey <tom@tromey.com>
11957
11958 * dwarf2/read.c (struct line_header) <file_full_name,
11959 file_file_name>: Return unique_xmalloc_ptr.
11960 (line_header::file_file_name): Update.
11961 (line_header::file_full_name): Update.
11962 (dw2_get_file_names_reader): Update.
11963 (macro_start_file): Update.
11964
bb822404
TT
119652020-02-08 Tom Tromey <tom@tromey.com>
11966
11967 * dwarf2/read.c (struct line_header) <file_full_name,
11968 file_file_name>: Declare methods.
11969 (dw2_get_file_names_reader): Update.
11970 (file_file_name): Now a method.
11971 (file_full_name): Likewise.
11972 (macro_start_file): Update.
11973
009b64fc
TT
119742020-02-08 Tom Tromey <tom@tromey.com>
11975
11976 * dwarf2/read.c (dwarf_always_disassemble)
11977 (show_dwarf_always_disassemble): Move to loc.c.
11978 (_initialize_dwarf2_read): Move "always-disassemble" registration
11979 to loc.c.
11980 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11981 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11982 static.
11983 (show_dwarf_always_disassemble): Move from read.c.
11984 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11985
5895093f
TT
119862020-02-08 Tom Tromey <tom@tromey.com>
11987
11988 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11989 (create_quick_file_names_table): Return htab_up.
11990 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11991 Update.
11992 * dwarf2/read.h (struct dwarf2_per_objfile)
11993 <quick_file_names_table>: Now htab_up.
11994
b3b32279
TT
119952020-02-08 Tom Tromey <tom@tromey.com>
11996
11997 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11998
1d33d811
TT
119992020-02-08 Tom Tromey <tom@tromey.com>
12000
12001 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12002 Rewrite.
12003 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12004 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12005 (abbrev_table::abbrev_table): No longer inline.
12006 (ABBREV_HASH_SIZE): Remove.
12007 (abbrev_table::m_abbrevs): Now an htab_up.
12008
86de1d91
TT
120092020-02-08 Tom Tromey <tom@tromey.com>
12010
12011 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12012 (cutu_reader): Update.
12013 (build_type_psymtabs_1): Update.
12014 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12015 (abbrev_table::alloc_abbrev): Update.
12016 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12017 (abbrev_table::read): New static method, renamed from
12018 abbrev_table_read_table.
12019 (abbrev_table::alloc_abbrev)
12020 (abbrev_table::add_abbrev): Now private.
12021 (abbrev_table::abbrev_table): Now private.
12022 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12023
0335378b
TT
120242020-02-08 Tom Tromey <tom@tromey.com>
12025
12026 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12027 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12028 htab_up.
12029
48b490f2
TT
120302020-02-08 Tom Tromey <tom@tromey.com>
12031
12032 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12033 htab_up.
12034 (lookup_dwo_unit_in_dwp): Update.
12035 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12036 on obstack.
12037
bc68fb19
TT
120382020-02-08 Tom Tromey <tom@tromey.com>
12039
12040 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12041 obstack.
12042
d15acc42
TT
120432020-02-08 Tom Tromey <tom@tromey.com>
12044
12045 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12046 line_header_hash.
12047 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12048 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12049 Change type to htab_up.
12050
eaa5fa8b
TT
120512020-02-08 Tom Tromey <tom@tromey.com>
12052
12053 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12054 htab_up. Don't allocate on obstack.
12055 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12056 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12057 Change type to htab_up.
12058
b0b6a987
TT
120592020-02-08 Tom Tromey <tom@tromey.com>
12060
12061 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12062 Change type to htab_up.
12063 * dwarf2/read.c (create_signatured_type_table_from_index)
12064 (create_signatured_type_table_from_debug_names)
12065 (create_all_type_units, add_type_unit)
12066 (lookup_dwo_signatured_type, lookup_signatured_type)
12067 (process_skeletonless_type_unit): Update.
12068 (create_debug_type_hash_table, create_debug_types_hash_table):
12069 Change type of types_htab.
12070 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12071 htab_up. Don't allocate on obstack.
12072 (create_cus_hash_table): Change type of cus_htab parameter.
12073 (struct dwo_file) <cus, tus>: Now htab_up.
12074 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12075 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12076 (queue_and_load_all_dwo_tus): Update.
12077 * dwarf2/index-write.c (write_gdbindex): Update.
12078 (write_debug_names): Update.
12079
39856def
TT
120802020-02-08 Tom Tromey <tom@tromey.com>
12081
12082 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12083 dwarf2/read.c. Remove "next" member. Add constructor ntad
12084 destructor.
12085 (struct dwarf2_per_objfile) <queue>: New member.
12086 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12087 dwarf2/read.h.
12088 (dwarf2_queue, dwarf2_queue_tail): Remove.
12089 (class dwarf2_queue_guard): Add parameter to constructor. Use
12090 DISABLE_COPY_AND_ASSIGN.
12091 <m_per_objfile>: New member.
12092 <~dwarf2_queue_guard>: Rewrite.
12093 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12094 Update.
12095 (~dwarf2_queue_item): New.
12096
3e225074
TT
120972020-02-08 Tom Tromey <tom@tromey.com>
12098
12099 * dwarf2/read.c (struct die_info) <has_children>: New member.
12100 (dw2_get_file_names_reader): Remove has_children.
12101 (dw2_get_file_names): Update.
12102 (read_cutu_die_from_dwo): Remove has_children.
12103 (cutu_reader::init_tu_and_read_dwo_dies)
12104 (cutu_reader::cutu_reader): Update.
12105 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12106 Remove has_children.
12107 (build_type_psymtabs_1, process_skeletonless_type_unit)
12108 (load_partial_comp_unit, load_full_comp_unit): Update.
12109 (create_dwo_cu_reader): Remove has_children.
12110 (create_cus_hash_table, read_die_and_children): Update.
12111 (read_full_die_1,read_full_die): Remove has_children.
12112 (read_signatured_type): Update.
12113 (class cutu_reader) <has_children>: Remove.
12114
82ca8957
TT
121152020-02-08 Tom Tromey <tom@tromey.com>
12116
12117 * dwarf2/expr.c: Rename from dwarf2expr.c.
12118 * dwarf2/expr.h: Rename from dwarf2expr.h.
12119 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12120 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12121 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12122 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12123 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12124 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12125 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12126 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12127 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12128 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12129 * dwarf2/loc.c: Rename from dwarf2loc.c.
12130 * dwarf2/loc.h: Rename from dwarf2loc.h.
12131 * dwarf2/read.c: Rename from dwarf2read.c.
12132 * dwarf2/read.h: Rename from dwarf2read.h.
12133 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12134 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12135 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12136 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12137 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12138 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12139 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12140 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12141 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12142 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12143 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12144 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12145 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12146 Update.
12147 * Makefile.in (COMMON_SFILES): Update.
12148 (HFILES_NO_SRCDIR): Update.
12149
9e35d499
TT
121502020-02-08 Tom Tromey <tom@tromey.com>
12151
12152 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12153 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12154
1eba2311
TT
121552020-02-08 Tom Tromey <tom@tromey.com>
12156
12157 * dwarf2read.h (struct die_info): Don't declare.
12158
e41c2da2
TT
121592020-02-08 Tom Tromey <tom@tromey.com>
12160
12161 * dwarf2read.h (die_info_ptr): Remove typedef.
12162
4fc6c0d5
TT
121632020-02-08 Tom Tromey <tom@tromey.com>
12164
12165 * dwarf2read.c (read_call_site_scope)
12166 (handle_data_member_location, dwarf2_add_member_fn)
12167 (mark_common_block_symbol_computed, read_common_block)
12168 (attr_to_dynamic_prop, partial_die_info::read)
12169 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12170 (dwarf2_symbol_mark_computed, set_die_type): Update.
12171 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12172 method.
12173 (attr_form_is_block): Don't declare.
12174 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12175
cd6c91b4
TT
121762020-02-08 Tom Tromey <tom@tromey.com>
12177
12178 * dwarf2read.c (dwarf2_find_base_address, )
12179 (read_call_site_scope, rust_containing_type)
12180 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12181 (handle_data_member_location, dwarf2_add_member_fn)
12182 (get_alignment, read_structure_type, process_structure_scope)
12183 (mark_common_block_symbol_computed, read_common_block)
12184 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12185 (partial_die_info::read, read_attribute_value, new_symbol)
12186 (lookup_die_type, dwarf2_get_ref_die_offset)
12187 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12188 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12189 (dwarf2_symbol_mark_computed): Update.
12190 * dwarf2/attribute.h (struct attribute) <value_as_address,
12191 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12192 methods.
12193 (value_as_address, attr_form_is_section_offset)
12194 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12195 * dwarf2/attribute.c (attribute::value_as_address)
12196 (attribute::form_is_section_offset, attribute::form_is_constant)
12197 (attribute::form_is_ref): Now methods.
12198
162dce55
TT
121992020-02-08 Tom Tromey <tom@tromey.com>
12200
12201 * dwarf2read.c (struct attribute, DW_STRING)
12202 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12203 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12204 (attr_form_is_block, attr_form_is_section_offset)
12205 (attr_form_is_constant, attr_form_is_ref): Move.
12206 * dwarf2/attribute.h: New file.
12207 * dwarf2/attribute.c: New file, from dwarf2read.c.
12208 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12209
3054dd54
TT
122102020-02-08 Tom Tromey <tom@tromey.com>
12211
12212 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12213 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12214 Move.
12215 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12216 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12217 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12218 abbrev.c.
12219 * dwarf2/abbrev.h: New file.
12220 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12221 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12222
96b79293
TT
122232020-02-08 Tom Tromey <tom@tromey.com>
12224
12225 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12226 (dwarf2_section_size, dwarf2_get_section_info)
12227 (create_signatured_type_table_from_debug_names)
12228 (create_addrmap_from_aranges, read_debug_names_from_section)
12229 (get_gdb_index_contents_from_section, read_comp_unit_head)
12230 (error_check_comp_unit_head, read_abbrev_offset)
12231 (create_debug_type_hash_table, init_cu_die_reader)
12232 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12233 (read_comp_units_from_section, create_cus_hash_table)
12234 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12235 (create_dwp_v2_section, dwarf2_rnglists_process)
12236 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12237 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12238 (read_indirect_string_from_dwz, read_addr_index_1)
12239 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12240 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12241 (fill_in_loclist_baton): Update.
12242 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12243 get_containing_section, get_bfd_owner, get_bfd_section,
12244 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12245 (dwarf2_read_section, get_section_name, get_section_file_name)
12246 (get_containing_section, get_section_bfd_owner)
12247 (get_section_bfd_section, get_section_name, get_section_file_name)
12248 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12249 declare.
12250 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12251 (dwarf2_section_info::get_bfd_owner)
12252 (dwarf2_section_info::get_bfd_section)
12253 (dwarf2_section_info::get_name)
12254 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12255 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12256 (dwarf2_section_info::read): Now methods.
12257 * dwarf-index-write.c (class debug_names): Update.
12258
2c86cff9
TT
122592020-02-08 Tom Tromey <tom@tromey.com>
12260
12261 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12262 Move to dwarf2/section.h.
12263 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12264 (get_section_bfd_section, get_section_name)
12265 (get_section_file_name, get_section_id, get_section_flags)
12266 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12267 dwarf2/section.c.
12268 * dwarf2/section.h: New file.
12269 * dwarf2/section.c: New file, from dwarf2read.c.
12270 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12271
f4382c45
TT
122722020-02-08 Tom Tromey <tom@tromey.com>
12273
12274 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12275 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12276 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12277 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12278 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12279 * dwarf2/leb.h: New file, from dwarf2read.c.
12280 * dwarf2/leb.c: New file, from dwarf2read.c.
12281 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12282 Remove.
12283 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12284 (COMMON_SFILES): Add dwarf2/leb.c.
12285
01840b7a
JB
122862020-02-08 Joel Brobecker <brobecker@adacore.com>
12287
12288 GDB 9.1 released.
12289
dfcb27e4
IB
122902020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12291
12292 PR gdb/25190:
aac66a4c
SM
12293 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12294 * gdb/remote.c (remote_console_output): Update.
12295 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12296 (ui_file_puts): ...this.
12297 * gdb/ui-file.h (ui_file_puts): Add declaration.
12298 * gdb/utils.c (emit_style_escape): Update.
12299 (flush_wrap_buffer): Update.
12300 (fputs_maybe_filtered): Update.
12301 (fputs_unfiltered): Add function.
dfcb27e4 12302
faa17681
IB
123032020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12304
aac66a4c
SM
12305 * gdb/event-loop.c (gdb_wait_for_event): Update.
12306 * gdb/printcmd.c (printf_command): Update.
12307 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12308 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12309 (gdb_os_flush_stderr): Update.
12310 * gdb/remote.c (remote_console_output): Update.
12311 * gdb/ui-file.c (gdb_flush): Rename to...
12312 (ui_file_flush): ...this.
12313 (stderr_file::write): Update.
12314 (stderr_file::puts): Update.
12315 * gdb/ui-file.h (gdb_flush): Rename to...
12316 (ui_file_flush): ...this.
12317 * gdb/utils.c (gdb_flush): Add function.
12318 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12319
5abbbe1d
TT
123202020-02-07 Tom Tromey <tromey@adacore.com>
12321
12322 PR breakpoints/24915:
12323 * source.c (find_and_open_source): Do not check basenames_may_differ.
12324
919adfe8
TT
123252020-02-07 Tom Tromey <tom@tromey.com>
12326
12327 * README: Update gdbserver documentation.
12328 * gdbserver: Move to top level.
12329 * configure.tgt (build_gdbserver): Remove.
12330 * configure.ac: Remove --enable-gdbserver.
12331 * configure: Rebuild.
12332 * Makefile.in (distclean): Don't mention gdbserver.
12333
1d5d29e7
SV
123342020-02-06 Shahab Vahedi <shahab@synopsys.com>
12335
12336 * source-cache.c (source_cache::ensure): Surround
12337 get_plain_source_lines with a try/catch.
12338 (source_cache::get_line_charpos): Get rid of try/catch
12339 and only check for the return value of "ensure".
12340 * tui/tui-source.c (tui_source_window::set_contents):
12341 Simplify "nlines" calculation.
12342
6eb1129c
SV
123432020-02-06 Shahab Vahedi <shahab@synopsys.com>
12344
12345 * MAINTAINERS (Write After Approval): Add myself.
12346
c6a42d11
CB
123472020-02-05 Christian Biesinger <cbiesinger@google.com>
12348
12349 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12350 function call.
12351
c8ecdda6
CB
123522020-02-05 Christian Biesinger <cbiesinger@google.com>
12353
12354 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12355
f6480e70
MR
123562020-02-05 Maciej W. Rozycki <macro@wdc.com>
12357
12358 * nat/riscv-linux-tdesc.h: New file.
12359 * nat/riscv-linux-tdesc.c: New file, taking code from...
12360 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12361 ... here.
12362 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12363 NATDEPFILES.
12364
dcc9fbc6
AB
123652020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12366
12367 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12368 we don't set the fake simulator ptid to the null_ptid.
12369
719546c4
SM
123702020-02-03 Simon Marchi <simon.marchi@efficios.com>
12371
12372 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12373 * gdbthread.h (class thread_info) <resumed>: Likewise.
12374 * infrun.c (resume_1): Likewise.
12375 (proceed): Likewise.
12376 (infrun_thread_stop_requested): Likewise.
12377 (stop_all_threads): Likewise.
12378 (handle_inferior_event): Likewise.
12379 (restart_threads): Likewise.
12380 (finish_step_over): Likewise.
12381 (keep_going_stepped_thread): Likewise.
12382 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12383 (linux_handle_extended_wait): Likewise.
12384 * record-btrace.c (get_thread_current_frame_id): Likewise.
12385 * record-full.c (record_full_wait_1): Likewise.
12386 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12387 * target.c (target_resume): Likewise.
12388 * thread.c (set_running_thread): Likewise.
12389
e409c542
AKS
123902020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12391
12392 * f-valprint.c (f77_print_array_1): Changed datatype of index
12393 variable to LONGEST from int to enable it to contain bound
12394 values correctly.
12395
ee98c0da
MR
123962020-02-03 Maciej W. Rozycki <macro@wdc.com>
12397
12398 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12399 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12400 offsets according to FLEN determined.
12401 (riscv_linux_nat_target::read_description): Determine FLEN
12402 dynamically.
12403 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12404 according to FLEN determined.
12405 (riscv_linux_nat_target::store_registers): Likewise.
12406
aa66aac4
SV
124072020-02-01 Shahab Vahedi <shahab@synopsys.com>
12408
12409 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12410 when reg->group is empty and reggroup is not.
12411
fd9faca8
TT
124122020-01-31 Tom Tromey <tromey@adacore.com>
12413
12414 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12415 Call beneath target's mourn_inferior after unpushing.
12416
42330a68
AB
124172020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12418
12419 PR tui/9765
12420 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12421 have enough lines to fill the screen, still return the lowest
12422 address we found.
12423
7a27a45b
AB
124242020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12425
12426 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12427 '-', '<', and '>' commands.
12428
c47f70e2
PA
124292020-01-29 Pedro Alves <palves@redhat.com>
12430 Sergio Durigan Junior <sergiodj@redhat.com>
12431
12432 * infcmd.c (construct_inferior_arguments): Assert that
12433 'argc' is greater than 0.
12434
5133a315
LM
124352020-01-29 Luis Machado <luis.machado@linaro.org>
12436
12437 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12438 (BRK_INSN_MASK): Define to 0xd4200000.
12439 (aarch64_program_breakpoint_here_p): New function.
12440 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12441 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12442 breakpoint.c.
12443 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12444 breakpoint.h
12445 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12446 call gdbarch_program_breakpoint_here_p.
12447 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12448 default_program_breakpoint_here_p, changed return type to bool and
12449 simplified.
12450 * breakpoint.h (program_breakpoint_here): Moved prototype to
12451 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12452 return type to bool.
12453 * gdbarch.c: Regenerate.
12454 * gdbarch.h: Regenerate.
12455 * gdbarch.sh (program_breakpoint_here_p): New method.
12456 * infrun.c (handle_signal_stop): Call
12457 gdbarch_program_breakpoint_here_p.
12458
168f8c6b
TT
124592020-01-26 Tom Tromey <tom@tromey.com>
12460
12461 * ctfread.c (struct ctf_fp_info): Reindent.
12462 (_initialize_ctfread): Remove.
12463
128a391f
TT
124642020-01-26 Tom Tromey <tom@tromey.com>
12465
12466 * psymtab.c (partial_map_expand_apply)
12467 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12468 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12469 (psym_print_stats, psym_expand_symtabs_for_function)
12470 (psym_map_symbol_filenames, psym_map_matching_symbols)
12471 (psym_expand_symtabs_matching)
12472 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12473 (maintenance_check_psymtabs): Use new methods.
12474 * psympriv.h (struct partial_symtab) <readin_p,
12475 get_compunit_symtab>: New methods.
12476 <readin, compunit_symtab>: Remove members.
12477 (struct standard_psymtab): New.
12478 (struct legacy_psymtab): Derive from standard_psymtab.
12479 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12480 standard_psymtab.
12481 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12482
0494dbec
TT
124832020-01-26 Tom Tromey <tom@tromey.com>
12484
12485 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12486 read_dependencies. Add assert.
12487 * psymtab.c (partial_symtab::read_dependencies): New method.
12488 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12489 method.
12490 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12491 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12492 read_dependencies.
12493 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12494 Add assert.
12495
8566b89b
TT
124962020-01-26 Tom Tromey <tom@tromey.com>
12497
12498 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12499 Call expand_psymtab.
12500 (xcoff_read_symtab): Call expand_psymtab.
12501 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12502 legacy_expand_psymtab.
12503 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12504 method.
12505 (struct legacy_psymtab) <expand_psymtab>: Implement.
12506 <legacy_expand_psymtab>: New member.
12507 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12508 (parse_partial_symbols): Set legacy_expand_psymtab.
12509 (psymtab_to_symtab_1): Change argument order. Call
12510 expand_psymtab.
12511 (new_psymtab): Set legacy_expand_psymtab.
12512 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12513 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12514 expand_psymtab.
12515 (dwarf2_psymtab::expand_psymtab): Rename from
12516 psymtab_to_symtab_1. Call expand_psymtab.
12517 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12518 (dbx_end_psymtab): Likewise.
12519 (dbx_psymtab_to_symtab_1): Change argument order. Call
12520 expand_psymtab.
12521 (dbx_read_symtab): Call expand_psymtab.
12522 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12523 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12524 (ctf_psymtab::read_symtab): Call expand_psymtab.
12525
077cbab2
TT
125262020-01-26 Tom Tromey <tom@tromey.com>
12527
12528 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12529 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12530 messages.
12531 * mdebugread.c (mdebug_read_symtab): Remove prints.
12532 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12533 assert.
12534 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12535
891813be
TT
125362020-01-26 Tom Tromey <tom@tromey.com>
12537
12538 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12539 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12540 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12541 legacy_symtab.
12542 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12543 * psymtab.c (psymtab_to_symtab): Call method.
12544 (dump_psymtab): Update.
12545 * psympriv.h (struct partial_symtab): Add virtual destructor.
12546 <read_symtab>: New method.
12547 (struct legacy_symtab): New.
12548 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12549 (struct pst_map) <pst>: Now a legacy_psymtab.
12550 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12551 (new_psymtab): Use legacy_psymtab.
12552 * dwarf2read.h (struct dwarf2_psymtab): New.
12553 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12554 * dwarf2read.c (dwarf2_create_include_psymtab)
12555 (dwarf2_build_include_psymtabs, create_type_unit_group)
12556 (create_partial_symtab, process_psymtab_comp_unit_reader)
12557 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12558 (set_partial_user): Use dwarf2_psymtab.
12559 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12560 (psymtab_to_symtab_1, process_full_comp_unit)
12561 (process_full_type_unit, dwarf2_ranges_read)
12562 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12563 (dwarf_decode_lines): Use dwarf2_psymtab.
12564 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12565 (add_address_entry_worker, write_one_signatured_type)
12566 (recursively_count_psymbols, recursively_write_psymbols)
12567 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12568 (write_debug_names): Likewise.
12569 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12570 <pst>: Now a legacy_psymtab.
12571 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12572 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12573 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12574 * ctfread.c (struct ctf_psymtab): New.
12575 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12576 ctf_psymtab.
12577 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12578 (create_partial_symtab): Return a ctf_psymtab.
12579 (scan_partial_symbols): Update.
12580
c3693a1d
TT
125812020-01-26 Tom Tromey <tom@tromey.com>
12582
12583 * xcoffread.c (xcoff_start_psymtab): Use new.
12584 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12585 renamed from start_psymtab_common.
12586 * psympriv.h (struct partial_symtab): Add new constructor.
12587 (start_psymtab_common): Don't declare.
12588 * mdebugread.c (parse_partial_symbols): Use new.
12589 * dwarf2read.c (create_partial_symtab): Use new.
12590 * dbxread.c (start_psymtab): Use new.
12591 * ctfread.c (create_partial_symtab): Use new.
12592
32caafd0
TT
125932020-01-26 Tom Tromey <tom@tromey.com>
12594
12595 * xcoffread.c (xcoff_end_psymtab): Use new.
12596 * psymtab.c (start_psymtab_common): Use new.
12597 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12598 Update.
12599 * psympriv.h (struct partial_symtab): Add parameters to
12600 constructor. Don't inline.
12601 (allocate_psymtab): Don't declare.
12602 * mdebugread.c (new_psymtab): Use new.
12603 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12604 * dbxread.c (dbx_end_psymtab): Use new.
12605
abaa2f23
TT
126062020-01-26 Tom Tromey <tom@tromey.com>
12607
12608 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12609 allocate_psymtab. Update documentation.
12610 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12611 allocate_psymtab. Do not use new.
12612 (allocate_psymtab): Use new. Update.
12613
6d94535f
TT
126142020-01-26 Tom Tromey <tom@tromey.com>
12615
12616 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12617 * psymtab.c (psym_print_stats): Update.
12618 * psympriv.h (struct partial_symtab) <readin,
12619 psymtabs_addrmap_supported, anonymous>: Now bool.
12620 * mdebugread.c (psymtab_to_symtab_1): Update.
12621 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12622 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12623 (process_full_comp_unit, process_full_type_unit): Update.
12624 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12625 * ctfread.c (psymtab_to_symtab): Update.
12626
6f17252b
TT
126272020-01-26 Tom Tromey <tom@tromey.com>
12628
12629 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12630 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12631 * psymtab.c (psymtab_storage): Delete psymtabs.
12632 (psymtab_storage::allocate_psymtab): Use new.
12633 (psymtab_storage::discard_psymtab): Use delete.
12634 * psympriv.h (struct partial_symtab): Add constructor and
12635 initializers.
12636
f6f1cebc
TT
126372020-01-26 Tom Tromey <tom@tromey.com>
12638
12639 * machoread.c: Do not include psympriv.h.
12640
e47e48f6
PW
126412020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12642
12643 * NEWS: Mention the new option and the set/show commands.
12644
a2fedca9
PW
126452020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12646
12647 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12648 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12649 (validate_exec_file): New variables, enums, functions.
12650 (exec_file_locate_attach, print_section_info): Style the filenames.
12651 (_initialize_exec): Install show_exec_file_mismatch_command and
12652 set_exec_file_mismatch_command.
12653 * gdbcore.h (validate_exec_file): Declare.
12654 * infcmd.c (attach_command): Call validate_exec_file.
12655 * remote.c ( remote_target::remote_add_inferior): Likewise.
12656
7ffa82e1
AB
126572020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12658
12659 * frame.c (find_frame_sal): Move call to get_next_frame into more
12660 inner scope.
12661 * inline-frame.c (inilne_state) <inline_state>: Update argument
12662 types.
12663 (inilne_state) <skipped_symbol>: Rename to...
12664 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12665 (skip_inline_frames): Build vector of skipped symbols and use this
12666 to reate the inline_state.
12667 (inline_skipped_symbol): Add a comment and some assertions, fetch
12668 skipped symbol from the list.
12669
3d92a3e3
AB
126702020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12671
12672 * buildsym.c (lte_is_less_than): Delete.
12673 (buildsym_compunit::end_symtab_with_blockvector): Create local
12674 lambda function to sort line table entries, and use
12675 std::stable_sort instead of std::sort.
12676 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12677 markers when looking for a previous line.
12678
94a72be7
AB
126792020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12680
12681 * dwarf2read.c (lnp_state_machine::record_line): Include
12682 end_sequence parameter in debug print out. Record the line if we
12683 are at an end_sequence marker even if it's not the start of a
12684 statement.
12685 * symmisc.c (maintenance_print_one_line_table): Print end of
12686 sequence markers with 'END' not '0'.
12687
53af73bf
PA
126882020-01-24 Pedro Alves <palves@redhat.com>
12689
12690 PR gdb/25410
12691 * thread.c (scoped_restore_current_thread::restore): Use
12692 switch_to_inferior_no_thread.
12693 * exec.c: Include "progspace-and-thread.h".
12694 (add_target_sections, remove_target_sections):
12695 scoped_restore_current_pspace_and_thread instead of
12696 scoped_restore_current_thread.
12697 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12698 and aspace to the inferior before calling clone_program_space.
12699 Remove stale comment.
12700
3050c6f4
CB
127012020-01-24 Christian Biesinger <cbiesinger@google.com>
12702
12703 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12704 (arm_netbsd_nat_target::fetch_registers): ...this.
12705 (arm_nbsd_nat_target::store_registers): Rename to...
12706 (arm_netbsd_nat_target::store_registers): ...this.
12707
73685c7e
CB
127082020-01-24 Christian Biesinger <cbiesinger@google.com>
12709
12710 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12711 register_t.
12712
89203d40
CB
127132020-01-24 Christian Biesinger <cbiesinger@google.com>
12714
12715 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12716 Update comment.
12717 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12718 Likewise.
12719 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12720 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12721 the correct replacement (iterate_over_regset_sections).
12722 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12723 Update comment.
12724
1ba1ac88
AB
127252020-01-24 Graham Markall <graham.markall@embecosm.com>
12726
12727 PR gdb/23718
12728 * gdb/python/python.c (execute_gdb_command): Call
12729 async_enable_stdin in catch block.
12730
f3364a6d
AB
127312020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12732
12733 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12734 SWITCH_THRU_ALL_UIS.
12735
733d0a67
AB
127362020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12737
12738 PR tui/9765
12739 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12740 comment, add extra parameter, and update to store previous symbol
12741 when appropriate.
12742 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12743 add extra parameter.
12744 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12745 remove unneeded parameter, add try/catch around gdb_print_insn,
12746 rewrite to add items to asm_lines vector.
12747 (tui_find_backward_disassembly_start_address): New function.
12748 (tui_find_disassembly_address): Updated throughout.
12749 (tui_disasm_window::set_contents): Update for changes to
12750 tui_disassemble.
12751 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12752 number of lines to scroll.
12753
b3b3bada
SM
127542020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12755
12756 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12757 (SECT_OFF_DATA): Likewise.
12758 (SECT_OFF_RODATA): Likewise.
12759 (SECT_OFF_TEXT): Likewise.
12760 (SECT_OFF_BSS): Likewise.
12761 (struct objfile) <text_section_offset, data_section_offset>: New
12762 methods.
12763 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12764 objfile::text_section_offset.
12765 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12766 * coffread.c (coff_symtab_read): Likewise.
12767 (enter_linenos): Likewise.
12768 (process_coff_symbol): Likewise.
12769 * ctfread.c (get_objfile_text_range): Likewise.
12770 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12771 Use objfile::data_section_offset.
12772 * dwarf2-frame.c (execute_cfa_program): Use
12773 objfile::text_section_offset.
12774 (dwarf2_frame_find_fde): Likewise.
12775 * dwarf2read.c (create_addrmap_from_index): Likewise.
12776 (create_addrmap_from_aranges): Likewise.
12777 (dw2_find_pc_sect_compunit_symtab): Likewise.
12778 (process_psymtab_comp_unit_reader): Likewise.
12779 (add_partial_symbol): Likewise.
12780 (add_partial_subprogram): Likewise.
12781 (process_full_comp_unit): Likewise.
12782 (read_file_scope): Likewise.
12783 (read_func_scope): Likewise.
12784 (read_lexical_block_scope): Likewise.
12785 (read_call_site_scope): Likewise.
12786 (dwarf2_rnglists_process): Likewise.
12787 (dwarf2_ranges_process): Likewise.
12788 (dwarf2_ranges_read): Likewise.
12789 (dwarf_decode_lines_1): Likewise.
12790 (new_symbol): Likewise.
12791 (dwarf2_fetch_die_loc_sect_off): Likewise.
12792 (dwarf2_per_cu_text_offset): Likewise.
12793 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12794 * hppa-tdep.c (read_unwind_info): Likewise.
12795 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12796 * psympriv.h (struct partial_symtab): Likewise.
12797 * psymtab.c (find_pc_sect_psymtab): Likewise.
12798 * solib-svr4.c (enable_break): Likewise.
12799 * stap-probe.c (relocate_address): Use
12800 objfile::data_section_offset.
12801 * xcoffread.c (enter_line_range): Use
12802 objfile::text_section_offset.
12803 (read_xcoff_symtab): Likewise.
12804
ab53f382
SM
128052020-01-23 Simon Marchi <simon.marchi@efficios.com>
12806
12807 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12808 declaration to narrower scopes.
12809
e7eee665
SM
128102020-01-23 Simon Marchi <simon.marchi@efficios.com>
12811
12812 * darwin-nat.h (struct darwin_exception_msg, enum
12813 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12814 Move up.
12815 (class darwin_nat_target) <wait_1, check_new_threads,
12816 decode_exception_message, decode_message, stop_inferior,
12817 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12818 * darwin-nat.c (darwin_check_new_threads): Rename to...
12819 (darwin_nat_target::check_new_threads): ... this.
12820 (darwin_suspend_inferior_it): Remove.
12821 (darwin_decode_exception_message): Rename to...
12822 (darwin_nat_target::decode_exception_message): ... this.
12823 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12824 (darwin_decode_message): Rename to...
12825 (darwin_nat_target::decode_message): ... this.
12826 (cancel_breakpoint): Rename to...
12827 (darwin_nat_target::cancel_breakpoint): ... this.
12828 (darwin_wait): Rename to...
12829 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12830 instead of iterate_over_inferiors.
12831 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12832 (darwin_stop_inferior): Rename to...
12833 (darwin_nat_target::stop_inferior): ... this.
12834 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12835 (darwin_init_thread_list): Rename to...
12836 (darwin_nat_target::init_thread_list): ... this.
12837 (darwin_ptrace_him): Rename to...
12838 (darwin_nat_target::ptrace_him): ... this.
12839 (darwin_nat_target::create_inferior): Pass lambda function to
12840 fork_inferior.
12841 (darwin_nat_target::detach): Call stop_inferior instead of
12842 darwin_stop_inferior.
12843 * fork-inferior.h (fork_inferior): Change init_trace_fun
12844 parameter to gdb::function_view.
12845 * fork-inferior.c (fork_inferior): Likewise.
12846
c162ed3e
HD
128472020-01-23 Hannes Domani <ssbssa@yahoo.de>
12848
12849 * i386-cygwin-tdep.c (core_process_module_section): Update.
12850 * windows-nat.c (struct lm_info_windows): Add text_offset.
12851 (windows_xfer_shared_libraries): Update.
12852 * windows-tdep.c (windows_xfer_shared_library):
12853 Add text_offset_cached argument.
12854 * windows-tdep.h (windows_xfer_shared_library): Update.
12855
a1237872
SM
128562020-01-21 Simon Marchi <simon.marchi@efficios.com>
12857
12858 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12859
b3ee6dd9
SM
128602020-01-21 Simon Marchi <simon.marchi@efficios.com>
12861
12862 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12863 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12864 replace with range-based for.
12865 (gdbsim_interrupt_inferior): Remove.
12866 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12867 with a range-based for. Inline code from
12868 gdbsim_interrupt_inferior.
12869
f9fac3c8
SM
128702020-01-21 Simon Marchi <simon.marchi@efficios.com>
12871
12872 * infrun.c (proceed): Fix indentation.
12873
f6474de9
TT
128742020-01-21 Tom Tromey <tromey@adacore.com>
12875
12876 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12877 * python/python.c (python_extension_ops): Update.
12878 (gdbpy_colorize): New function.
12879 * python/lib/gdb/__init__.py (colorize): New function.
12880 * extension.h (ext_lang_colorize): Declare.
12881 * extension.c (ext_lang_colorize): New function.
12882 * extension-priv.h (struct extension_language_ops) <colorize>: New
12883 member.
12884 * cli/cli-style.c (_initialize_cli_style): Update help text.
12885
f0c702d4
LM
128862020-01-21 Luis Machado <luis.machado@linaro.org>
12887
12888 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12889 <cond>: Change type to bool.
12890 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12891 (aarch64_displaced_step_cb): Likewise.
12892 (aarch64_displaced_step_tb): Likewise.
12893
1ab139e5
LM
128942020-01-21 Luis Machado <luis.machado@linaro.org>
12895
12896 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12897 output.
12898
0c271889
LM
128992020-01-21 Luis Machado <luis.machado@linaro.org>
12900
12901 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12902 <pc_adjust>: Adjust the documentation.
12903 (aarch64_displaced_step_fixup): Check if PC really moved before
12904 adjusting it.
12905
4d89c1c7
TT
129062020-01-19 Tom Tromey <tom@tromey.com>
12907
12908 * disasm.c (~gdb_disassembler): New destructor.
12909 (gdb_buffered_insn_length): Call disassemble_free_target.
12910 * disasm.h (class gdb_disassembler): Declare destructor. Use
12911 DISABLE_COPY_AND_ASSIGN.
12912
c0ab21c2
TT
129132020-01-19 Tom Tromey <tom@tromey.com>
12914
12915 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12916 (die_reader_func_ftype): Remove.
12917 (cutu_reader): New class.
12918 (dw2_get_file_names_reader): Remove "data" parameter.
12919 (dw2_get_file_names): Use cutu_reader.
12920 (create_debug_type_hash_table): Update.
12921 (read_cutu_die_from_dwo): Update comment.
12922 (lookup_dwo_unit): Add dwo_name parameter.
12923 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12924 die_reader_func_ftype and data parameters.
12925 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12926 Remove die_reader_func_ftype and data parameters.
12927 (~cutu_reader): New; from init_cutu_and_read_dies.
12928 (cutu_reader::cutu_reader): Rename from
12929 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12930 and data parameters.
12931 (init_cutu_and_read_dies_simple): Remove.
12932 (struct process_psymtab_comp_unit_data): Remove.
12933 (process_psymtab_comp_unit_reader): Remove data parameter; add
12934 want_partial_unit and pretend_language parameters.
12935 (process_psymtab_comp_unit): Use cutu_reader.
12936 (build_type_psymtabs_reader): Remove data parameter.
12937 (build_type_psymtabs_1): Use cutu_reader.
12938 (process_skeletonless_type_unit): Likewise.
12939 (load_partial_comp_unit_reader): Remove.
12940 (load_partial_comp_unit): Use cutu_reader.
12941 (load_full_comp_unit_reader): Remove.
12942 (load_full_comp_unit): Use cutu_reader.
12943 (struct create_dwo_cu_data): Remove.
12944 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12945 dwo_unit parameters.
12946 (create_cus_hash_table): Use cutu_reader.
12947 (struct dwarf2_read_addr_index_data): Remove.
12948 (dwarf2_read_addr_index_reader): Remove.
12949 (dwarf2_read_addr_index): Use cutu_reader.
12950 (read_signatured_type_reader): Remove.
12951 (read_signatured_type): Use cutu_reader.
12952
45bbae5c
TT
129532020-01-19 Tom Tromey <tom@tromey.com>
12954
12955 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12956 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12957 (tui_wrefresh): Declare.
12958 * tui/tui-wingeneral.c (suppress_output): New global.
12959 (tui_suppress_output, ~tui_suppress_output): New constructor and
12960 destructor.
12961 (tui_wrefresh): New function.
12962 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12963 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12964 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12965 method.
12966 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12967 tui_wrefresh.
12968 (tui_data_window::no_refresh): New method.
12969 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12970 (tui_reg_command): Use tui_suppress_output
12971 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12972 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12973 method.
12974 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12975
4f13c1c0
TT
129762020-01-19 Tom Tromey <tom@tromey.com>
12977
12978 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12979 Handle case where symtab is null.
12980
fa47e446
SM
129812020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12982
12983 * linux-fork.c (one_fork_p): Simplify.
12984
26f42329
SM
129852020-01-17 Simon Marchi <simon.marchi@efficios.com>
12986
12987 * top.c (struct qt_args): Remove.
12988 (kill_or_detach): Change return type to void, replace `void *`
12989 parameter with a proper one.
12990 (print_inferior_quit_action): Likewise.
12991 (quit_confirm): Use range-based for loop to iterate over inferiors.
12992 (quit_force): Likewise.
12993
a9ac81b1
SM
129942020-01-17 Simon Marchi <simon.marchi@efficios.com>
12995
12996 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12997 `void *` parameter with proper parameters.
12998 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12999 (print_one_inferior): Change return type to void, replace `void *`
13000 parameter with proper parameters.
13001 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13002 inferiors.
13003 (get_other_inferior): Remove.
13004 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13005 inferiors.
13006
788eca49
SM
130072020-01-17 Simon Marchi <simon.marchi@efficios.com>
13008
13009 * mi/mi-interp.c (report_initial_inferior): Remove.
13010 (mi_interp::init): Use range-based for to iterate over inferiors.
13011
d9bc85b6
SM
130122020-01-17 Simon Marchi <simon.marchi@efficios.com>
13013
13014 * python/py-inferior.c (build_inferior_list): Remove.
13015 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13016
40c94099
CB
130172020-01-16 Christian Biesinger <cbiesinger@google.com>
13018
13019 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13020 (btrace_stitch_trace): Likewise.
13021 * charset.c (intermediate_encoding): Likewise (vaild).
13022 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13023 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13024 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13025
e0cdfe3c
HD
130262020-01-16 Hannes Domani <ssbssa@yahoo.de>
13027
13028 * windows-tdep.c (windows_get_tlb_type):
13029 Add rtl_user_process_parameters type.
13030
790f1718 130312020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13032 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13033
13034 PR build/24805
13035 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13036 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13037 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13038 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13039 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13040 (ps_plog): Redeclare exported functions with default visibility.
13041
3112ed97
NA
130422020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13043
13044 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13045 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13046
8dc3273e
SM
130472020-01-15 Simon Marchi <simon.marchi@efficios.com>
13048
13049 * infcmd.c (post_create_inferior): Use get_thread_regcache
13050 instead of get_current_regcache.
13051
ff47f4f0
TT
130522020-01-14 Tom Tromey <tom@tromey.com>
13053
13054 PR symtab/12535:
13055 * python/python.c (gdbpy_decode_line): Treat empty string the same
13056 as no argument.
13057
975f45b7
TT
130582020-01-14 Tom Tromey <tom@tromey.com>
13059
13060 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13061
25e57356
TT
130622020-01-14 Tom Tromey <tom@tromey.com>
13063
13064 * nat/linux-btrace.c: Don't include <config.h>.
13065 * nat/linux-ptrace.c: Don't include <config.h>.
13066 * nat/x86-linux-dregs.c: Don't include <config.h>.
13067
05ea2a05
TT
130682020-01-14 Tom Tromey <tom@tromey.com>
13069
13070 * configure: Rebuild.
13071 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13072
01027315
TT
130732020-01-14 Tom Tromey <tom@tromey.com>
13074
13075 * nat/x86-linux-dregs.c: Include configh.h.
13076 * nat/linux-ptrace.c: Include configh.h.
13077 * nat/linux-btrace.c: Include configh.h.
13078 * defs.h: Include config.h, bfd.h.
13079 * configure.ac: Don't source common.host.
13080 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13081 * configure: Rebuild.
13082 * acinclude.m4: Update path.
13083 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13084 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13085 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13086 (CLIBS): Add LIBSUPPORT.
13087 (CDEPS): Likewise.
13088 (COMMON_SFILES): Remove gdbsupport files.
13089 (HFILES_NO_SRCDIR): Likewise.
13090 (stamp-version): Update path to create-version.sh.
13091 (ALLDEPFILES): Remove gdbsupport files.
13092
b2ceabe8
TT
130932020-01-14 Tom Tromey <tom@tromey.com>
13094
13095 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13096 USE_WIN32API when needed.
13097 * configure.ac (USE_WIN32API): Don't define.
13098 (WIN32LIBS): Use WIN32APILIBS.
13099 * configure: Rebuild.
13100
25c51f71
TT
131012020-01-14 Tom Tromey <tom@tromey.com>
13102
13103 * configure: Rebuild.
13104 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13105
717c684d
BE
131062020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13107
13108 * skip.c (skip_function_command): Make skip w/o arguments use the
13109 name of the inlined function if pc is inside any inlined function.
13110
7da6a5b9
LM
131112020-01-14 Luis Machado <luis.machado@linaro.org>
13112
13113 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13114 * infrun.c (resume_1): Likewise.
13115 (handle_inferior_event): Remove stale comment.
13116 * linux-nat.c (linux_nat_target::resume): Update comments.
13117 (save_stop_reason): Likewise.
13118 (linux_nat_filter_event): Likewise.
13119 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13120
44e4c775
AB
131212020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13122
13123 * elfread.c (record_minimal_symbol): Set section index to 0 for
13124 non-allocatable sections.
13125
18a8505e
AT
13126
131272020-01-13 Ali Tamur <tamur@google.com>
13128
13129 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13130 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13131 to gdb::optional. Update comments.
13132 (dwo_file): Update comments.
13133 (read_attribute): Update API to take an additional out parameter,
13134 need_reprocess. This is used to mark attributes that need other
13135 attributes (e.g. str_offsets_base) for correct computation which may not
13136 have been read yet.
13137 (read_attribute_reprocess): New function declaration.
13138 (read_addr_index): Likewise.
13139 (read_dwo_str_index): Likewise.
13140 (read_stub_str_index): Likewise.
13141 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13142 (lookup_addr_base): New function definition.
13143 (lookup_ranges_base): Likewise.
13144 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13145 lookup_ranges_base.
13146 (init_cutu_and_read_dies): Update comments.
13147 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13148 unit. This is used to inherit parent's str_offsets_base and addr_base.
13149 Update comments.
13150 (init_cutu_and_read_dies_simple): Reflect API changes.
13151 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13152 (create_cus_hash_table): Change API to take parent compile unit.
13153 Reflect API changes.
13154 (open_and_init_dwo_file): Reflect API changes.
13155 (dwarf2_get_pc_bounds): Update comments.
13156 (dwarf2_record_block_ranges): Likewise.
13157 (read_full_die_1): Change implementation to reprocess attributes that
13158 need str_offsets_base and addr_base.
13159 (partial_die_info::read): Likewise.
13160 (read_attribute_reprocess): New function definition.
13161 (read_attribute_value): Change API to take an additional out parameter,
13162 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13163 when a non-dwo compile unit has index based attributes.
13164 (read_attribute): Reflect API changes.
13165 (read_addr_index_1): Reflect API changes. Update comments.
13166 (dwarf2_read_addr_index_data): Reflect API changes.
13167 (dwarf2_read_addr_index): Likewise.
13168 (read_str_index): Change API and implementation. This becomes a helper
13169 to be used by the new string index related methods. Update error
13170 message and comments.
13171 (read_dwo_str_index): New function definition.
13172 (read_stub_str_index): Likewise.
13173 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13174 * symfile.h (dwarf2_debug_sections): Likewise.
13175 * xcoffread.c (dwarf2_debug_sections): Likewise.
13176
0cac9354
SM
131772020-01-13 Simon Marchi <simon.marchi@efficios.com>
13178
13179 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13180 core_reg_sect type to gdb_byte *.
13181 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13182 * cris-tdep.c (fetch_core_registers): Likewise.
13183 * corelow.c (core_target::get_core_register_section): Change
13184 type of `contents` to gdb::byte_vector.
13185
9a6d629c
AB
131862020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13187
13188 * tui/tui-wingeneral.c (box_win): Position the title in the center
13189 of the border.
13190
d8b2f9e3
SM
131912020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13192
13193 * corelow.c (core_target::get_core_register_section): Use
13194 std::vector instead of alloca.
13195
bb564c58
SM
131962020-01-13 Simon Marchi <simon.marchi@efficios.com>
13197
13198 * warning.m4: Add -Wmissing-declarations to build_warnings.
13199 * configure: Re-generate.
13200
6b366111
SM
132012020-01-13 Simon Marchi <simon.marchi@efficios.com>
13202
13203 * python/python.c (init__gdb_module): Add declaration.
13204
6c265988
SM
132052020-01-13 Simon Marchi <simon.marchi@efficios.com>
13206
13207 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13208 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13209 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13210 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13211 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13212 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13213 * ada-exp.y (_initialize_ada_exp): Add declaration.
13214 * ada-lang.c (_initialize_ada_language): Add declaration.
13215 * ada-tasks.c (_initialize_tasks): Add declaration.
13216 * agent.c (_initialize_agent): Add declaration.
13217 * aix-thread.c (_initialize_aix_thread): Add declaration.
13218 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13219 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13220 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13221 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13222 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13223 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13224 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13225 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13226 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13227 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13228 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13229 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13230 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13231 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13232 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13233 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13234 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13235 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13236 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13237 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13238 * annotate.c (_initialize_annotate): Add declaration.
13239 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13240 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13241 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13242 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13243 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13244 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13245 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13246 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13247 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13248 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13249 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13250 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13251 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13252 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13253 * auto-load.c (_initialize_auto_load): Add declaration.
13254 * auxv.c (_initialize_auxv): Add declaration.
13255 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13256 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13257 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13258 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13259 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13260 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13261 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13262 * breakpoint.c (_initialize_breakpoint): Add declaration.
13263 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13264 * btrace.c (_initialize_btrace): Add declaration.
13265 * charset.c (_initialize_charset): Add declaration.
13266 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13267 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13268 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13269 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13270 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13271 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13272 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13273 * coffread.c (_initialize_coffread): Add declaration.
13274 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13275 * compile/compile.c (_initialize_compile): Add declaration.
13276 * complaints.c (_initialize_complaints): Add declaration.
13277 * completer.c (_initialize_completer): Add declaration.
13278 * copying.c (_initialize_copying): Add declaration.
13279 * corefile.c (_initialize_core): Add declaration.
13280 * corelow.c (_initialize_corelow): Add declaration.
13281 * cp-abi.c (_initialize_cp_abi): Add declaration.
13282 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13283 * cp-support.c (_initialize_cp_support): Add declaration.
13284 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13285 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13286 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13287 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13288 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13289 * ctfread.c (_initialize_ctfread): Add declaration.
13290 * d-lang.c (_initialize_d_language): Add declaration.
13291 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13292 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13293 * dbxread.c (_initialize_dbxread): Add declaration.
13294 * dcache.c (_initialize_dcache): Add declaration.
13295 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13296 * disasm.c (_initialize_disasm): Add declaration.
13297 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13298 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13299 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13300 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13301 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13302 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13303 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13304 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13305 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13306 * elfread.c (_initialize_elfread): Add declaration.
13307 * exec.c (_initialize_exec): Add declaration.
13308 * extension.c (_initialize_extension): Add declaration.
13309 * f-lang.c (_initialize_f_language): Add declaration.
13310 * f-valprint.c (_initialize_f_valprint): Add declaration.
13311 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13312 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13313 * filesystem.c (_initialize_filesystem): Add declaration.
13314 * findcmd.c (_initialize_mem_search): Add declaration.
13315 * findvar.c (_initialize_findvar): Add declaration.
13316 * fork-child.c (_initialize_fork_child): Add declaration.
13317 * frame-base.c (_initialize_frame_base): Add declaration.
13318 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13319 * frame.c (_initialize_frame): Add declaration.
13320 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13321 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13322 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13323 * gcore.c (_initialize_gcore): Add declaration.
13324 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13325 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13326 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13327 * gdbarch.c (_initialize_gdbarch): Add declaration.
13328 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13329 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13330 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13331 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13332 * go-lang.c (_initialize_go_language): Add declaration.
13333 * go32-nat.c (_initialize_go32_nat): Add declaration.
13334 * guile/guile.c (_initialize_guile): Add declaration.
13335 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13336 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13337 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13338 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13339 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13340 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13341 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13342 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13343 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13344 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13345 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13346 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13347 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13348 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13349 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13350 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13351 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13352 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13353 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13354 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13355 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13356 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13357 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13358 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13359 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13360 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13361 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13362 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13363 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13364 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13365 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13366 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13367 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13368 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13369 * infcall.c (_initialize_infcall): Add declaration.
13370 * infcmd.c (_initialize_infcmd): Add declaration.
13371 * inflow.c (_initialize_inflow): Add declaration.
13372 * infrun.c (_initialize_infrun): Add declaration.
13373 * interps.c (_initialize_interpreter): Add declaration.
13374 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13375 * jit.c (_initialize_jit): Add declaration.
13376 * language.c (_initialize_language): Add declaration.
13377 * linux-fork.c (_initialize_linux_fork): Add declaration.
13378 * linux-nat.c (_initialize_linux_nat): Add declaration.
13379 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13380 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13381 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13382 * m2-lang.c (_initialize_m2_language): Add declaration.
13383 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13384 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13385 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13386 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13387 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13388 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13389 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13390 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13391 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13392 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13393 * machoread.c (_initialize_machoread): Add declaration.
13394 * macrocmd.c (_initialize_macrocmd): Add declaration.
13395 * macroscope.c (_initialize_macroscope): Add declaration.
13396 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13397 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13398 * maint.c (_initialize_maint_cmds): Add declaration.
13399 * mdebugread.c (_initialize_mdebugread): Add declaration.
13400 * memattr.c (_initialize_mem): Add declaration.
13401 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13402 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13403 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13404 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13405 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13406 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13407 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13408 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13409 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13410 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13411 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13412 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13413 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13414 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13415 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13416 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13417 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13418 * mipsread.c (_initialize_mipsread): Add declaration.
13419 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13420 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13421 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13422 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13423 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13424 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13425 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13426 * nto-procfs.c (_initialize_procfs): Add declaration.
13427 * objc-lang.c (_initialize_objc_language): Add declaration.
13428 * observable.c (_initialize_observer): Add declaration.
13429 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13430 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13431 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13432 * osabi.c (_initialize_gdb_osabi): Add declaration.
13433 * osdata.c (_initialize_osdata): Add declaration.
13434 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13435 * parse.c (_initialize_parse): Add declaration.
13436 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13437 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13438 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13439 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13440 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13441 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13442 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13443 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13444 * printcmd.c (_initialize_printcmd): Add declaration.
13445 * probe.c (_initialize_probe): Add declaration.
13446 * proc-api.c (_initialize_proc_api): Add declaration.
13447 * proc-events.c (_initialize_proc_events): Add declaration.
13448 * proc-service.c (_initialize_proc_service): Add declaration.
13449 * procfs.c (_initialize_procfs): Add declaration.
13450 * producer.c (_initialize_producer): Add declaration.
13451 * psymtab.c (_initialize_psymtab): Add declaration.
13452 * python/python.c (_initialize_python): Add declaration.
13453 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13454 * record-btrace.c (_initialize_record_btrace): Add declaration.
13455 * record-full.c (_initialize_record_full): Add declaration.
13456 * record.c (_initialize_record): Add declaration.
13457 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13458 * regcache.c (_initialize_regcache): Add declaration.
13459 * reggroups.c (_initialize_reggroup): Add declaration.
13460 * remote-notif.c (_initialize_notif): Add declaration.
13461 * remote-sim.c (_initialize_remote_sim): Add declaration.
13462 * remote.c (_initialize_remote): Add declaration.
13463 * reverse.c (_initialize_reverse): Add declaration.
13464 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13465 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13466 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13467 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13468 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13469 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13470 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13471 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13472 Add declaration.
13473 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13474 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13475 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13476 * rust-exp.y (_initialize_rust_exp): Add declaration.
13477 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13478 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13479 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13480 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13481 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13482 * score-tdep.c (_initialize_score_tdep): Add declaration.
13483 * ser-go32.c (_initialize_ser_dos): Add declaration.
13484 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13485 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13486 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13487 * ser-uds.c (_initialize_ser_socket): Add declaration.
13488 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13489 * serial.c (_initialize_serial): Add declaration.
13490 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13491 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13492 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13493 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13494 * skip.c (_initialize_step_skip): Add declaration.
13495 * sol-thread.c (_initialize_sol_thread): Add declaration.
13496 * solib-aix.c (_initialize_solib_aix): Add declaration.
13497 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13498 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13499 * solib-frv.c (_initialize_frv_solib): Add declaration.
13500 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13501 * solib-target.c (_initialize_solib_target): Add declaration.
13502 * solib.c (_initialize_solib): Add declaration.
13503 * source-cache.c (_initialize_source_cache): Add declaration.
13504 * source.c (_initialize_source): Add declaration.
13505 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13506 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13507 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13508 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13509 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13510 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13511 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13512 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13513 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13514 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13515 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13516 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13517 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13518 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13519 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13520 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13521 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13522 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13523 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13524 * stabsread.c (_initialize_stabsread): Add declaration.
13525 * stack.c (_initialize_stack): Add declaration.
13526 * stap-probe.c (_initialize_stap_probe): Add declaration.
13527 * std-regs.c (_initialize_frame_reg): Add declaration.
13528 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13529 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13530 * symfile.c (_initialize_symfile): Add declaration.
13531 * symmisc.c (_initialize_symmisc): Add declaration.
13532 * symtab.c (_initialize_symtab): Add declaration.
13533 * target.c (_initialize_target): Add declaration.
13534 * target-connection.c (_initialize_target_connection): Add
13535 declaration.
13536 * target-dcache.c (_initialize_target_dcache): Add declaration.
13537 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13538 * thread.c (_initialize_thread): Add declaration.
13539 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13540 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13541 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13542 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13543 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13544 * tracectf.c (_initialize_ctf): Add declaration.
13545 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13546 * tracefile.c (_initialize_tracefile): Add declaration.
13547 * tracepoint.c (_initialize_tracepoint): Add declaration.
13548 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13549 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13550 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13551 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13552 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13553 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13554 * tui/tui.c (_initialize_tui): Add declaration.
13555 * typeprint.c (_initialize_typeprint): Add declaration.
13556 * ui-style.c (_initialize_ui_style): Add declaration.
13557 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13558 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13559 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13560 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13561 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13562 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13563 * unittests/filtered_iterator-selftests.c
13564 (_initialize_filtered_iterator_selftests): Add declaration.
13565 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13566 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13567 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13568 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13569 * unittests/main-thread-selftests.c
13570 (_initialize_main_thread_selftests): Add declaration.
13571 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13572 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13573 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13574 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13575 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13576 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13577 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13578 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13579 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13580 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13581 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13582 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13583 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13584 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13585 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13586 declaration.
13587 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13588 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13589 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13590 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13591 * user-regs.c (_initialize_user_regs): Add declaration.
13592 * utils.c (_initialize_utils): Add declaration.
13593 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13594 * valops.c (_initialize_valops): Add declaration.
13595 * valprint.c (_initialize_valprint): Add declaration.
13596 * value.c (_initialize_values): Add declaration.
13597 * varobj.c (_initialize_varobj): Add declaration.
13598 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13599 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13600 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13601 * windows-nat.c (_initialize_windows_nat): Add declaration.
13602 (_initialize_check_for_gdb_ini): Add declaration.
13603 (_initialize_loadable): Add declaration.
13604 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13605 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13606 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13607 * xcoffread.c (_initialize_xcoffread): Add declaration.
13608 * xml-support.c (_initialize_xml_support): Add declaration.
13609 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13610 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13611 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13612 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13613
e2de1eec
SM
136142020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13615
13616 * regformats/regdat.sh: Generate declaration for init function.
13617
e0037b4c
SM
136182020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13619
13620 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13621 up.
13622 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13623 close_one_inferior>: New methods.
13624 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13625 pass down target to find_inferior_pid.
13626 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13627 Pass down target to find_inferior_ptid.
13628 (gdbsim_target::create_inferior): Pass down target to
13629 add_thread_silent.
13630 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13631 target down to find_inferior_ptid and switch_to_thread.
13632 (gdbsim_target::close): Update to call close_one_inferior.
13633 (struct resume_data): Remove.
13634 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13635 directly, rather than through a void pointer.
13636 (gdbsim_target::resume): Update to call resume_one_inferior.
13637
58920b5b
SM
136382020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13639
13640 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13641
4ec89149
PA
136422020-01-12 Pedro Alves <palves@redhat.com>
13643
13644 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13645 directly for the current inferior instead of
13646 discard_all_inferiors.
13647 (discard_all_inferiors): Delete.
13648
7c392d1d
TT
136492020-01-11 Tom Tromey <tom@tromey.com>
13650
13651 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13652 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13653 deprecated_safe_get_selected_frame.
13654
d9ebdab7
TBA
136552020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13656
13657 * inferior.c (print_inferior): Switch inferior before printing it.
13658
f3c469b9
PA
136592020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13660 Pedro Alves <palves@redhat.com>
13661
13662 * progspace-and-thread.c (switch_to_program_space_and_thread):
13663 Assert there's an inferior for PSPACE. Use
13664 switch_to_inferior_no_thread to switch the inferior too.
13665 * progspace.c (program_space::~program_space): Call
13666 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13667 (program_space::free_all_objfiles): Don't call clear_symtab_users
13668 here.
13669 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13670
65c574f6
PA
136712020-01-10 Pedro Alves <palves@redhat.com>
13672
13673 * NEWS: Mention multi-target debugging, "info connections", and
13674 "add-inferior -no-connection".
13675
2f4fcf00
PA
136762020-01-10 Pedro Alves <palves@redhat.com>
13677
13678 * infrun.c: Include "target-connection.h".
13679 (check_multi_target_resumption): New.
13680 (proceed): Call it.
13681 * target-connection.c (make_target_connection_string): Make
13682 extern.
13683 * target-connection.h (make_target_connection_string): Declare.
13684
121b3efd
PA
136852020-01-10 Pedro Alves <palves@redhat.com>
13686
13687 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13688 * inferior.c (uiout_field_connection): New function.
13689 (print_inferior): Add new "connection-id" column.
13690 (add_inferior_command): Show connection number/string of added
13691 inferior.
13692 * process-stratum-target.h
13693 (process_stratum_target::connection_string): New virtual method.
13694 (process_stratum_target::connection_number): New field.
13695 * remote.c (remote_target::connection_string): New override.
13696 * target-connection.c: New file.
13697 * target-connection.h: New file.
13698 * target.c (decref_target): Remove process_stratum targets from
13699 the connection list.
13700 (target_stack::push): Add process_stratum targets to the
13701 connection list.
13702
4f837581
PA
137032020-01-10 Pedro Alves <palves@redhat.com>
13704
13705 Revert:
13706 2016-04-12 Pedro Alves <palves@redhat.com>
13707 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13708 Remove references to name.
13709 * serial.h (struct serial) <name>: Delete.
13710
f4ec508e
PA
137112020-01-10 Pedro Alves <palves@redhat.com>
13712
13713 * gdbarch-selftests.c (register_to_value_test): Remove "target
13714 already pushed" check.
13715
5b6d1e4f
PA
137162020-01-10 Pedro Alves <palves@redhat.com>
13717 John Baldwin <jhb@FreeBSD.org>
13718
13719 * aarch64-linux-nat.c
13720 (aarch64_linux_nat_target::thread_architecture): Adjust.
13721 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13722 (task_command_1): Likewise.
13723 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13724 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13725 (aix_thread_target::store_registers)
13726 (aix_thread_target::thread_alive): Adjust.
13727 * amd64-fbsd-tdep.c: Include "inferior.h".
13728 (amd64fbsd_get_thread_local_address): Pass down target.
13729 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13730 thread's gdbarch instead of target_gdbarch.
13731 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13732 get_last_target_status.
13733 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13734 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13735 inferiors.
13736 (update_inserted_breakpoint_locations): Skip if inferiors with no
13737 execution.
13738 (update_global_location_list): When handling moribund locations,
13739 find representative inferior for location's pspace, and use thread
13740 count of its process_stratum target.
13741 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13742 * bsd-uthread.c (bsd_uthread_target::wait): Use
13743 as_process_stratum_target and adjust thread_change_ptid and
13744 add_thread calls.
13745 (bsd_uthread_target::update_thread_list): Use
13746 as_process_stratum_target and adjust find_thread_ptid,
13747 thread_change_ptid and add_thread calls.
13748 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13749 find_thread_ptid call.
13750 * corelow.c (add_to_thread_list): Adjust add_thread call.
13751 (core_target_open): Adjust add_thread_silent and thread_count
13752 calls.
13753 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13754 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13755 * event-top.c (async_disconnect): Pop targets from all inferiors.
13756 * exec.c (add_target_sections): Push exec target on all inferiors
13757 sharing the program space.
13758 (remove_target_sections): Remove the exec target from all
13759 inferiors sharing the program space.
13760 (exec_on_vfork): New.
13761 * exec.h (exec_on_vfork): Declare.
13762 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13763 Pass it down.
13764 (fbsd_nat_target::update_thread_list): Adjust.
13765 (fbsd_nat_target::resume): Adjust.
13766 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13767 down.
13768 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13769 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13770 get_thread_arch_regcache call.
13771 * fork-child.c (gdb_startup_inferior): Pass target down to
13772 startup_inferior and set_executing.
13773 * gdbthread.h (struct process_stratum_target): Forward declare.
13774 (add_thread, add_thread_silent, add_thread_with_info)
13775 (in_thread_list): Add process_stratum_target parameter.
13776 (find_thread_ptid(inferior*, ptid_t)): New overload.
13777 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13778 parameter.
13779 (all_threads()): Delete overload.
13780 (all_threads, all_non_exited_threads): Add process_stratum_target
13781 parameter.
13782 (all_threads_safe): Use brace initialization.
13783 (thread_count): Add process_stratum_target parameter.
13784 (set_resumed, set_running, set_stop_requested, set_executing)
13785 (threads_are_executing, finish_thread_state): Add
13786 process_stratum_target parameter.
13787 (switch_to_thread): Use is_current_thread.
13788 * i386-fbsd-tdep.c: Include "inferior.h".
13789 (i386fbsd_get_thread_local_address): Pass down target.
13790 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13791 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13792 have_inferiors check.
13793 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13794 (inf_ptrace_target::attach): Adjust.
13795 * infcall.c (run_inferior_call): Adjust.
13796 * infcmd.c (run_command_1): Pass target to
13797 scoped_finish_thread_state.
13798 (proceed_thread_callback): Skip inferiors with no execution.
13799 (continue_command): Rename 'all_threads' local to avoid hiding
13800 'all_threads' function. Adjust get_last_target_status call.
13801 (prepare_one_step): Adjust set_running call.
13802 (signal_command): Use user_visible_resume_target. Compare thread
13803 pointers instead of inferior_ptid.
13804 (info_program_command): Adjust to pass down target.
13805 (attach_command): Mark target's 'thread_executing' flag.
13806 (stop_current_target_threads_ns): New, factored out from ...
13807 (interrupt_target_1): ... this. Switch inferior before making
13808 target calls.
13809 * inferior-iter.h
13810 (struct all_inferiors_iterator, struct all_inferiors_range)
13811 (struct all_inferiors_safe_range)
13812 (struct all_non_exited_inferiors_range): Filter on
13813 process_stratum_target too. Remove explicit.
13814 * inferior.c (inferior::inferior): Push dummy target on target
13815 stack.
13816 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13817 Add process_stratum_target parameter, and pass it down.
13818 (have_live_inferiors): Adjust.
13819 (switch_to_inferior_and_push_target): New.
13820 (add_inferior_command, clone_inferior_command): Handle
13821 "-no-connection" parameter. Use
13822 switch_to_inferior_and_push_target.
13823 (_initialize_inferior): Mention "-no-connection" option in
13824 the help of "add-inferior" and "clone-inferior" commands.
13825 * inferior.h: Include "process-stratum-target.h".
13826 (interrupt_target_1): Use bool.
13827 (struct inferior) <push_target, unpush_target, target_is_pushed,
13828 find_target_beneath, top_target, process_target, target_at,
13829 m_stack>: New.
13830 (discard_all_inferiors): Delete.
13831 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13832 (all_inferiors, all_non_exited_inferiors): Add
13833 process_stratum_target parameter.
13834 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13835 (target_last_proc_target): New global.
13836 (follow_fork_inferior): Push target on new inferior. Pass target
13837 to add_thread_silent. Call exec_on_vfork. Handle target's
13838 reference count.
13839 (follow_fork): Adjust get_last_target_status call. Also consider
13840 target.
13841 (follow_exec): Push target on new inferior.
13842 (struct execution_control_state) <target>: New field.
13843 (user_visible_resume_target): New.
13844 (do_target_resume): Call target_async.
13845 (resume_1): Set target's threads_executing flag. Consider resume
13846 target.
13847 (commit_resume_all_targets): New.
13848 (proceed): Also consider resume target. Skip threads of inferiors
13849 with no execution. Commit resumtion in all targets.
13850 (start_remote): Pass current inferior to wait_for_inferior.
13851 (infrun_thread_stop_requested): Consider target as well. Pass
13852 thread_info pointer to clear_inline_frame_state instead of ptid.
13853 (infrun_thread_thread_exit): Consider target as well.
13854 (random_pending_event_thread): New inferior parameter. Use it.
13855 (do_target_wait): Rename to ...
13856 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13857 down.
13858 (threads_are_resumed_pending_p, do_target_wait): New.
13859 (prepare_for_detach): Adjust calls.
13860 (wait_for_inferior): New inferior parameter. Handle it. Use
13861 do_target_wait_1 instead of do_target_wait.
13862 (fetch_inferior_event): Adjust. Switch to representative
13863 inferior. Pass target down.
13864 (set_last_target_status): Add process_stratum_target parameter.
13865 Save target in global.
13866 (get_last_target_status): Add process_stratum_target parameter and
13867 handle it.
13868 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13869 (context_switch): Check inferior_ptid == null_ptid before calling
13870 inferior_thread().
13871 (get_inferior_stop_soon): Pass down target.
13872 (wait_one): Rename to ...
13873 (poll_one_curr_target): ... this.
13874 (struct wait_one_event): New.
13875 (wait_one): New.
13876 (stop_all_threads): Adjust.
13877 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13878 event's target.
13879 (switch_back_to_stepped_thread): Also consider target.
13880 (print_stop_event): Update.
13881 (normal_stop): Update. Also consider the resume target.
13882 * infrun.h (wait_for_inferior): Remove declaration.
13883 (user_visible_resume_target): New declaration.
13884 (get_last_target_status, set_last_target_status): New
13885 process_stratum_target parameter.
13886 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13887 process_stratum_target parameter, and use it.
13888 (clear_inline_frame_state (thread_info*)): New.
13889 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13890 process_stratum_target parameter.
13891 (clear_inline_frame_state (thread_info*)): Declare.
13892 * linux-fork.c (delete_checkpoint_command): Pass target down to
13893 find_thread_ptid.
13894 (checkpoint_command): Adjust.
13895 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13896 instead of just tweaking inferior_ptid.
13897 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13898 (exit_lwp): Pass target down to find_thread_ptid.
13899 (attach_proc_task_lwp_callback): Pass target down to
13900 add_thread/set_running/set_executing.
13901 (linux_nat_target::attach): Pass target down to
13902 thread_change_ptid.
13903 (get_detach_signal): Pass target down to find_thread_ptid.
13904 Consider last target status's target.
13905 (linux_resume_one_lwp_throw, resume_lwp)
13906 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13907 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13908 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13909 (linux_nat_target::async_wait_fd): New.
13910 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13911 target down.
13912 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13913 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13914 * linux-thread-db.c (struct thread_db_info::process_target): New
13915 field.
13916 (add_thread_db_info): Save target.
13917 (get_thread_db_info): New process_stratum_target parameter. Also
13918 match target.
13919 (delete_thread_db_info): New process_stratum_target parameter.
13920 Also match target.
13921 (thread_from_lwp): Adjust to pass down target.
13922 (thread_db_notice_clone): Pass down target.
13923 (check_thread_db_callback): Pass down target.
13924 (try_thread_db_load_1): Always push the thread_db target.
13925 (try_thread_db_load, record_thread): Pass target down.
13926 (thread_db_target::detach): Pass target down. Always unpush the
13927 thread_db target.
13928 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13929 target down. Always unpush the thread_db target.
13930 (find_new_threads_callback, thread_db_find_new_threads_2)
13931 (thread_db_target::update_thread_list): Pass target down.
13932 (thread_db_target::pid_to_str): Pass current inferior down.
13933 (thread_db_target::get_thread_local_address): Pass target down.
13934 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13935 target down.
13936 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13937 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13938 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13939 (procfs_init_inferior): Rename to ...
13940 (procfs_target::procfs_init_inferior): ... this and adjust.
13941 (procfs_target::create_inferior, procfs_notice_thread)
13942 (procfs_do_thread_registers): Adjust.
13943 * ppc-fbsd-tdep.c: Include "inferior.h".
13944 (ppcfbsd_get_thread_local_address): Pass down target.
13945 * proc-service.c (ps_xfer_memory): Switch current inferior and
13946 program space as well.
13947 (get_ps_regcache): Pass target down.
13948 * process-stratum-target.c
13949 (process_stratum_target::thread_address_space)
13950 (process_stratum_target::thread_architecture): Pass target down.
13951 * process-stratum-target.h
13952 (process_stratum_target::threads_executing): New field.
13953 (as_process_stratum_target): New.
13954 * ravenscar-thread.c
13955 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13956 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13957 down.
13958 * record-btrace.c (record_btrace_target::info_record): Adjust.
13959 (record_btrace_target::record_method)
13960 (record_btrace_target::record_is_replaying)
13961 (record_btrace_target::fetch_registers)
13962 (get_thread_current_frame_id, record_btrace_target::resume)
13963 (record_btrace_target::wait, record_btrace_target::stop): Pass
13964 target down.
13965 * record-full.c (record_full_wait_1): Switch to event thread.
13966 Pass target down.
13967 * regcache.c (regcache::regcache)
13968 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13969 process_stratum_target parameter and handle it.
13970 (current_thread_target): New global.
13971 (get_thread_regcache): Add process_stratum_target parameter and
13972 handle it. Switch inferior before calling target method.
13973 (get_thread_regcache): Pass target down.
13974 (get_thread_regcache_for_ptid): Pass target down.
13975 (registers_changed_ptid): Add process_stratum_target parameter and
13976 handle it.
13977 (registers_changed_thread, registers_changed): Pass target down.
13978 (test_get_thread_arch_aspace_regcache): New.
13979 (current_regcache_test): Define a couple local test_target_ops
13980 instances and use them for testing.
13981 (readwrite_regcache): Pass process_stratum_target parameter.
13982 (cooked_read_test, cooked_write_test): Pass mock_target down.
13983 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13984 (get_thread_arch_aspace_regcache): Add process_stratum_target
13985 parameter.
13986 (regcache::target): New method.
13987 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13988 (regcache::registers_changed_ptid): Add process_stratum_target
13989 parameter.
13990 (regcache::m_target): New field.
13991 (registers_changed_ptid): Add process_stratum_target parameter.
13992 * remote.c (remote_state::supports_vCont_probed): New field.
13993 (remote_target::async_wait_fd): New method.
13994 (remote_unpush_and_throw): Add remote_target parameter.
13995 (get_current_remote_target): Adjust.
13996 (remote_target::remote_add_inferior): Push target.
13997 (remote_target::remote_add_thread)
13998 (remote_target::remote_notice_new_inferior)
13999 (get_remote_thread_info): Pass target down.
14000 (remote_target::update_thread_list): Skip threads of inferiors
14001 bound to other targets. (remote_target::close): Don't discard
14002 inferiors. (remote_target::add_current_inferior_and_thread)
14003 (remote_target::process_initial_stop_replies)
14004 (remote_target::start_remote)
14005 (remote_target::remote_serial_quit_handler): Pass down target.
14006 (remote_target::remote_unpush_target): New remote_target
14007 parameter. Unpush the target from all inferiors.
14008 (remote_target::remote_unpush_and_throw): New remote_target
14009 parameter. Pass it down.
14010 (remote_target::open_1): Check whether the current inferior has
14011 execution instead of checking whether any inferior is live. Pass
14012 target down.
14013 (remote_target::remote_detach_1): Pass down target. Use
14014 remote_unpush_target.
14015 (extended_remote_target::attach): Pass down target.
14016 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14017 (remote_target::append_resumption): Pass down target.
14018 (remote_target::append_pending_thread_resumptions)
14019 (remote_target::remote_resume_with_hc, remote_target::resume)
14020 (remote_target::commit_resume): Pass down target.
14021 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14022 (remote_target::interrupt_query)
14023 (remote_target::remove_new_fork_children)
14024 (remote_target::check_pending_events_prevent_wildcard_vcont)
14025 (remote_target::remote_parse_stop_reply)
14026 (remote_target::process_stop_reply): Pass down target.
14027 (first_remote_resumed_thread): New remote_target parameter. Pass
14028 it down.
14029 (remote_target::wait_as): Pass down target.
14030 (unpush_and_perror): New remote_target parameter. Pass it down.
14031 (remote_target::readchar, remote_target::remote_serial_write)
14032 (remote_target::getpkt_or_notif_sane_1)
14033 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14034 down target.
14035 (remote_target::mourn_inferior): Pass down target. Use
14036 remote_unpush_target.
14037 (remote_target::core_of_thread)
14038 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14039 (remote_target::pid_to_exec_file)
14040 (remote_target::thread_handle_to_thread_info): Pass down target.
14041 (remote_target::async_wait_fd): New.
14042 * riscv-fbsd-tdep.c: Include "inferior.h".
14043 (riscv_fbsd_get_thread_local_address): Pass down target.
14044 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14045 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14046 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14047 Adjust.
14048 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14049 * solib-svr4.c (enable_break): Pass down target.
14050 * spu-multiarch.c (parse_spufs_run): Pass down target.
14051 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14052 * target-delegates.c: Regenerate.
14053 * target.c (g_target_stack): Delete.
14054 (current_top_target): Return the current inferior's top target.
14055 (target_has_execution_1): Refer to the passed-in inferior's top
14056 target.
14057 (target_supports_terminal_ours): Check whether the initial
14058 inferior was already created.
14059 (decref_target): New.
14060 (target_stack::push): Incref/decref the target.
14061 (push_target, push_target, unpush_target): Adjust.
14062 (target_stack::unpush): Defref target.
14063 (target_is_pushed): Return bool. Adjust to refer to the current
14064 inferior's target stack.
14065 (dispose_inferior): Delete, and inline parts ...
14066 (target_preopen): ... here. Only dispose of the current inferior.
14067 (target_detach): Hold strong target reference while detaching.
14068 Pass target down.
14069 (target_thread_name): Add assertion.
14070 (target_resume): Pass down target.
14071 (target_ops::beneath, find_target_at): Adjust to refer to the
14072 current inferior's target stack.
14073 (get_dummy_target): New.
14074 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14075 has a thread running.
14076 (initialize_targets): Rename to ...
14077 (_initialize_target): ... this.
14078 * target.h: Include "gdbsupport/refcounted-object.h".
14079 (struct target_ops): Inherit refcounted_object.
14080 (target_ops::shortname, target_ops::longname): Make const.
14081 (target_ops::async_wait_fd): New method.
14082 (decref_target): Declare.
14083 (struct target_ops_ref_policy): New.
14084 (target_ops_ref): New typedef.
14085 (get_dummy_target): Declare function.
14086 (target_is_pushed): Return bool.
14087 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14088 (all_matching_threads_iterator::all_matching_threads_iterator):
14089 Handle filter target.
14090 * thread-iter.h (struct all_matching_threads_iterator, struct
14091 all_matching_threads_range, class all_non_exited_threads_range):
14092 Filter by target too. Remove explicit.
14093 * thread.c (threads_executing): Delete.
14094 (inferior_thread): Pass down current inferior.
14095 (clear_thread_inferior_resources): Pass down thread pointer
14096 instead of ptid_t.
14097 (add_thread_silent, add_thread_with_info, add_thread): Add
14098 process_stratum_target parameter. Use it for thread and inferior
14099 searches.
14100 (is_current_thread): New.
14101 (thread_info::deletable): Use it.
14102 (find_thread_ptid, thread_count, in_thread_list)
14103 (thread_change_ptid, set_resumed, set_running): New
14104 process_stratum_target parameter. Pass it down.
14105 (set_executing): New process_stratum_target parameter. Pass it
14106 down. Adjust reference to 'threads_executing'.
14107 (threads_are_executing): New process_stratum_target parameter.
14108 Adjust reference to 'threads_executing'.
14109 (set_stop_requested, finish_thread_state): New
14110 process_stratum_target parameter. Pass it down.
14111 (switch_to_thread): Also match inferior.
14112 (switch_to_thread): New process_stratum_target parameter. Pass it
14113 down.
14114 (update_threads_executing): Reimplement.
14115 * top.c (quit_force): Pop targets from all inferior.
14116 (gdb_init): Don't call initialize_targets.
14117 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14118 Declare.
14119 (windows_add_thread, windows_delete_thread): Adjust.
14120 (get_windows_debug_event): Rename to ...
14121 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14122 * tracefile-tfile.c (tfile_target_open): Pass down target.
14123 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14124 Forward declare.
14125 (switch_to_thread): Add process_stratum_target parameter.
14126 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14127 parameter. Use it.
14128 (mi_on_resume): Pass target down.
14129 * nat/fork-inferior.c (startup_inferior): Add
14130 process_stratum_target parameter. Pass it down.
14131 * nat/fork-inferior.h (startup_inferior): Add
14132 process_stratum_target parameter.
14133 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14134
75c6c844
PA
141352020-01-10 Pedro Alves <palves@redhat.com>
14136
14137 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14138 directly. Instead find the first thread in the thread list and
14139 use switch_to_thread.
14140
78f2c40a
PA
141412020-01-10 Pedro Alves <palves@redhat.com>
14142
14143 * remote.c (remote_target::remote_add_inferior): Don't bind a
14144 process to the current inferior if the current inferior is already
14145 bound to a process.
14146
e7af6c70
TBA
141472020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14148 Pedro Alves <palves@redhat.com>
14149
14150 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14151 If no process is specified, return null_ptid instead of
14152 inferior_ptid.
14153 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14154 TARGET_WAITKIND_SIGNALLED with no pid.
14155
31ba933e
PA
141562020-01-10 Pedro Alves <palves@redhat.com>
14157
14158 * remote.c (first_remote_resumed_thread): New.
14159 (remote_target::wait_as): Use it as default event_ptid instead of
14160 inferior_ptid.
14161
735fc2ca
PA
141622020-01-10 Pedro Alves <palves@redhat.com>
14163
14164 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14165
c17e02e1
PA
141662020-01-10 Pedro Alves <palves@redhat.com>
14167
14168 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14169 not -1.
14170
ab1ddbcf
PA
141712020-01-10 Pedro Alves <palves@redhat.com>
14172
14173 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14174 ptid to get_last_target_status.
14175 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14176 ptid to get_last_target_status.
14177 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14178 get_last_target_status.
14179 (info_program_command): Don't pass a target_waitstatus to
14180 get_last_target_status.
14181 * infrun.c (init_wait_for_inferior): Use
14182 nullify_last_target_wait_ptid.
14183 (get_last_target_status): Handle nullptr arguments.
14184 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14185 (print_stop_event): Don't pass a ptid to get_last_target_status.
14186 (normal_stop): Don't pass a ptid to get_last_target_status.
14187 * infrun.h (get_last_target_status, set_last_target_status): Move
14188 comments here and update.
14189 (nullify_last_target_wait_ptid): Declare.
14190 * linux-fork.c (fork_load_infrun_state): Remove local extern
14191 declaration of nullify_last_target_wait_ptid.
14192 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14193 to get_last_target_status.
14194
f3f8ece4
PA
141952020-01-10 Pedro Alves <palves@redhat.com>
14196
14197 * gdbthread.h (scoped_restore_current_thread)
14198 <dont_restore, restore, m_dont_restore>: Declare.
14199 * thread.c (thread_alive): Add assertion. Return bool.
14200 (switch_to_thread_if_alive): New.
14201 (prune_threads): Switch inferior/thread.
14202 (print_thread_info_1): Switch thread before calling target methods.
14203 (scoped_restore_current_thread::restore): New, factored out from
14204 ...
14205 (scoped_restore_current_thread::~scoped_restore_current_thread):
14206 ... this.
14207 (scoped_restore_current_thread::scoped_restore_current_thread):
14208 Add assertion.
14209 (thread_apply_all_command, thread_select): Use
14210 switch_to_thread_if_alive.
14211 * infrun.c (proceed, restart_threads, handle_signal_stop)
14212 (switch_back_to_stepped_thread): Switch current thread before
14213 calling target methods.
14214
db2d40f7
PA
142152020-01-10 Pedro Alves <palves@redhat.com>
14216
14217 * inferior.c (switch_to_inferior_no_thread): New function,
14218 factored out from ...
14219 (inferior_command): ... here.
14220 * inferior.h (switch_to_inferior_no_thread): Declare.
14221 * mi/mi-main.c (run_one_inferior): Use
14222 switch_to_inferior_no_thread.
14223
bd420a2d
PA
142242020-01-10 Pedro Alves <palves@redhat.com>
14225
14226 * infcmd.c (kill_command): Remove dead code.
14227
ddf5db90
PA
142282020-01-10 Pedro Alves <palves@redhat.com>
14229
14230 * remote.c (remote_target::mourn_inferior): No longer check
14231 whether the target is running.
14232
5018ce90
PA
142332020-01-10 Pedro Alves <palves@redhat.com>
14234
14235 * corelow.c (core_target::has_execution): Change parameter type to
14236 inferior pointer.
14237 * inferior.c (number_of_live_inferiors): Use
14238 inferior::has_execution instead of target_has_execution_1.
14239 * inferior.h (inferior::has_execution): New.
14240 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14241 inferior::has_execution instead of target_has_execution_1.
14242 * process-stratum-target.c
14243 (process_stratum_target::has_execution): Change parameter type to
14244 inferior pointer. Check the inferior's PID instead of
14245 inferior_ptid.
14246 * process-stratum-target.h
14247 (process_stratum_target::has_execution): Change parameter type to
14248 inferior pointer.
14249 * record-full.c (record_full_core_target::has_execution): Change
14250 parameter type to inferior pointer.
14251 * target.c (target_has_execution_1): Change parameter type to
14252 inferior pointer.
14253 (target_has_execution_current): Adjust.
14254 * target.h (target_ops::has_execution): Change parameter type to
14255 inferior pointer.
14256 (target_has_execution_1): Change parameter type to inferior
14257 pointer. Change return type to bool.
14258 * tracefile.h (tracefile_target::has_execution): Change parameter
14259 type to inferior pointer.
14260
74375d18
PA
142612020-01-10 Pedro Alves <palves@redhat.com>
14262
14263 * exceptions.c (print_flush): Remove current_top_target() check.
14264
acdf84a6
PA
142652020-01-10 Pedro Alves <palves@redhat.com>
14266
14267 * remote.c (show_remote_exec_file): Show the current inferior's
14268 exec-file instead of the command variable's value.
14269
ec506636
PA
142702020-01-10 Pedro Alves <palves@redhat.com>
14271
14272 * record-full.c (record_full_resume_ptid): New global.
14273 (record_full_target::resume): Set it.
14274 (record_full_wait_1): Use record_full_resume_ptid instead of
14275 inferior_ptid.
14276
873657b9
PA
142772020-01-10 Pedro Alves <palves@redhat.com>
14278
14279 * gdbthread.h (scoped_restore_current_thread)
14280 <dont_restore, restore, m_dont_restore>: Declare.
14281 * thread.c (thread_alive): Add assertion. Return bool.
14282 (switch_to_thread_if_alive): New.
14283 (prune_threads): Switch inferior/thread.
14284 (print_thread_info_1): Switch thread before calling target methods.
14285 (scoped_restore_current_thread::restore): New, factored out from
14286 ...
14287 (scoped_restore_current_thread::~scoped_restore_current_thread):
14288 ... this.
14289 (scoped_restore_current_thread::scoped_restore_current_thread):
14290 Add assertion.
14291 (thread_apply_all_command, thread_select): Use
14292 switch_to_thread_if_alive.
14293
7f0ae84c
GB
142942020-01-10 George Barrett <bob@bob131.so>
14295
14296 * stap-probe.c (stap_modify_semaphore): Don't check for null
14297 semaphores.
14298 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14299 for null semaphores.
14300
f5a7c406
AB
143012020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14302
14303 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14304 all source windows, and maintain horizontal scroll status while
14305 doing so.
14306
9ae6bf64
TT
143072020-01-09 Tom Tromey <tom@tromey.com>
14308
14309 PR tui/18932:
14310 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14311 update_source_window, not print_source_lines.
14312
b2efe70c
AB
143132020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14314
14315 * tui/tui.c (tui_enable): Register tui hooks after calling
14316 tui_display_main.
14317
5f23a082
CB
143182020-01-09 Christian Biesinger <cbiesinger@google.com>
14319
14320 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14321
3061113b
SM
143222020-01-08 Simon Marchi <simon.marchi@efficios.com>
14323
14324 * thread.c (print_thread_info_1): Fix indentation.
14325
57d75002
CB
143262020-01-09 Christian Biesinger <cbiesinger@google.com>
14327
14328 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14329 unique_xmalloc_ptr outside the if to always free the demangled name.
14330
6a053cb1
TT
143312020-01-08 Tom Tromey <tromey@adacore.com>
14332
14333 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14334 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14335 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14336 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14337 Remove.
14338 (section_offsets): New typedef.
14339 * symtab.c (fixup_section, get_msymbol_address): Update.
14340 * symmisc.c (dump_msymbols): Update.
14341 * symfile.h (relative_addr_info_to_section_offsets)
14342 (symfile_map_offsets_to_segments): Update.
14343 * symfile.c (build_section_addr_info_from_objfile)
14344 (init_objfile_sect_indices): Update.
14345 (struct place_section_arg): Change type of "offsets".
14346 (place_section): Update.
14347 (relative_addr_info_to_section_offsets): Change type of
14348 "section_offsets". Remove "num_sections" parameter.
14349 (default_symfile_offsets, syms_from_objfile_1)
14350 (set_objfile_default_section_offset): Update.
14351 (reread_symbols): No need to preserve section offsets by hand.
14352 (symfile_map_offsets_to_segments): Change type of "offsets".
14353 * stap-probe.c (relocate_address): Update.
14354 * stabsread.h (process_one_symbol): Update.
14355 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14356 (solib_target_relocate_section_addresses): Update.
14357 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14358 Update.
14359 * solib-frv.c (frv_relocate_main_executable): Update.
14360 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14361 * solib-aix.c (solib_aix_get_section_offsets): Change return
14362 type.
14363 (solib_aix_solib_create_inferior_hook): Update.
14364 * remote.c (remote_target::get_offsets): Update.
14365 * psymtab.c (find_pc_sect_psymtab): Update.
14366 * psympriv.h (struct partial_symbol) <address, text_low,
14367 text_high>: Update.
14368 * objfiles.h (obj_section_offset): Update.
14369 (struct objfile) <section_offsets>: Change type.
14370 <num_sections>: Remove.
14371 (objfile_relocate): Update.
14372 * objfiles.c (entry_point_address_query): Update
14373 (relocate_one_symbol): Change type of "section_offsets".
14374 (objfile_relocate1, objfile_relocate1): Change type of
14375 "new_offsets".
14376 (objfile_rebase1): Update.
14377 * mipsread.c (mipscoff_symfile_read): Update.
14378 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14379 parameter.
14380 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14381 (parse_external, psymtab_to_symtab_1): Update.
14382 * machoread.c (macho_symfile_offsets): Update.
14383 * ia64-tdep.c (ia64_find_unwind_table): Update.
14384 * hppa-tdep.c (read_unwind_info): Update.
14385 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14386 * dwarf2read.c (create_addrmap_from_index)
14387 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14388 (process_psymtab_comp_unit_reader, add_partial_symbol)
14389 (add_partial_subprogram, process_full_comp_unit)
14390 (read_file_scope, read_func_scope, read_lexical_block_scope)
14391 (read_call_site_scope, dwarf2_rnglists_process)
14392 (dwarf2_ranges_process, dwarf2_ranges_read)
14393 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14394 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14395 Update.
14396 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14397 Update.
14398 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14399 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14400 (process_one_symbol): Change type of "section_offsets".
14401 * ctfread.c (get_objfile_text_range): Update.
14402 * coffread.c (coff_symtab_read, enter_linenos)
14403 (process_coff_symbol): Update.
14404 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14405 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14406
456e800a
TT
144072020-01-08 Tom Tromey <tromey@adacore.com>
14408
14409 * dwarf2read.c (parse_macro_definition): Use std::string.
14410 (parse_macro_definition): Likewise.
14411
6dfa2fc2
TT
144122020-01-08 Tom Tromey <tromey@adacore.com>
14413
14414 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14415 (ATTR_ALLOC_CHUNK): Remove.
14416
421d1616
TT
144172020-01-08 Tom Tromey <tromey@adacore.com>
14418
14419 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14420
43816ebc
TT
144212020-01-08 Tom Tromey <tromey@adacore.com>
14422
14423 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14424 (dwarf2_compute_name, open_dwo_file): Likewise.
14425 (process_enumeration_scope): Use std::vector.
14426 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14427 (partial_die_info::fixup, dwarf2_start_subfile)
14428 (guess_full_die_structure_name, dwarf2_name): Likewise.
14429 (determine_prefix): Update.
14430 (guess_full_die_structure_name): Make return type const.
14431 (partial_die_full_name): Return unique_xmalloc_ptr.
14432 (DW_FIELD_ALLOC_CHUNK): Remove.
14433
4212d509
TT
144342020-01-07 Tom Tromey <tromey@adacore.com>
14435
14436 PR build/24937:
14437 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14438
06a6207a
JT
144392020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14440
14441 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14442
153d79c4
AB
144432020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14444
14445 * stack.c (print_frame_info): Move disassemble_next_line code
14446 inside source_print block.
14447
66182876
EZ
144482020-01-06 Eli Zaretskii <eliz@gnu.org>
14449
14450 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14451 gdb/signals.h, as we are now using native signal symbols.
14452
cbfa8581
SV
144532020-01-06 Shahab Vahedi <shahab@synopsys.com>
14454
14455 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14456 overflow by an early check of content vs threshold.
aac66a4c 14457 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14458 Likewise.
14459
3f602821
EZ
144602020-01-06 Eli Zaretskii <eliz@gnu.org>
14461
14462 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14463
a08c904d
JT
144642020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14465
14466 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14467 export table if no section contains it's RVA.
14468
89a65580
EZ
144692020-01-06 Eli Zaretskii <eliz@gnu.org>
14470
14471 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14472
8b7fcda2
HD
144732020-01-06 Hannes Domani <ssbssa@yahoo.de>
14474
14475 * source.c (print_source_lines_base): Set last_line_listed.
14476
a61b4f69
SV
144772020-01-06 Shahab Vahedi <shahab@synopsys.com>
14478
14479 * tui/tui-disasm.c: Remove trailing spaces.
14480
559e7e50
EZ
144812020-01-06 Eli Zaretskii <eliz@gnu.org>
14482 Pedro Alves <palves@redhat.com>
14483
14484 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14485 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14486 (windows_gdb_signal_to_target): New function, uses the above
14487 enumeration to convert GDB internal signal codes to equivalent
14488 Windows codes.
14489 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14490 * windows-nat.c: Include "gdb_wait.h".
14491 (get_windows_debug_event): Extract the fatal exception from the
14492 exit status and convert to the equivalent Posix signal number.
14493 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14494 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14495 * gdbsupport/gdb_wait.c: New file, implements
14496 windows_status_to_termsig.
14497 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14498 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14499
f2302a34
AB
145002020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14501
14502 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14503 show_layout.
14504
6a5206eb
LM
145052020-01-05 Luis Machado <luis.machado@linaro.org>
14506
14507 * aarch64-linux-nat.c
14508 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14509 and bfd_mach_aarch64.
14510
6ec1d75e
PW
145112020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14512
14513 * ui-file.c (stdio_file::can_emit_style_escape)
14514 (tee_file::can_emit_style_escape): Ensure style is used also on
14515 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14516 to gdb_stdout.
14517 * main.c (set_gdb_data_directory): Use file style to output the
14518 warning that the given pathname is not a directory.
14519 * top.c (show_history_filename, gdb_safe_append_history)
14520 (show_gdb_datadir): Use file style.
14521
44f81a76
HD
145222020-01-03 Hannes Domani <ssbssa@yahoo.de>
14523
14524 * solib-target.c (struct lm_info_target):
14525 Change offsets to be a unique_xmalloc_ptr.
14526 (solib_target_relocate_section_addresses): Update.
14527
25057eb0
HD
145282020-01-03 Hannes Domani <ssbssa@yahoo.de>
14529
14530 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14531
6e2118f5
BE
145322020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14533
14534 * MAINTAINERS (Write After Approval): Add myself.
14535
8133c7dc
LM
145362020-01-02 Luis Machado <luis.machado@linaro.org>
14537
14538 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14539 Cell BE architecture.
14540 * target.h (struct target_ops) <thread_architecture>: Likewise.
14541
48189bec
HD
145422020-01-01 Hannes Domani <ssbssa@yahoo.de>
14543
14544 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14545
ead1063b
HD
145462020-01-01 Hannes Domani <ssbssa@yahoo.de>
14547
14548 * MAINTAINERS (Write After Approval): Add myself.
14549
e5d78223
JB
145502020-01-01 Joel Brobecker <brobecker@adacore.com>
14551
14552 * gdbarch.sh: Update copyright year range of generated files.
14553
b811d2c2
JB
145542020-01-01 Joel Brobecker <brobecker@adacore.com>
14555
14556 Update copyright year range in all GDB files.
14557
5f4def5c
JB
145582020-01-01 Joel Brobecker <brobecker@adacore.com>
14559
14560 * copyright.py: Convert to Python 3.
14561
51fd4002
JB
145622020-01-01 Joel Brobecker <brobecker@adacore.com>
14563
14564 * copyright.py: Adapt after move of gnulib directory from gdb
14565 directory to toplevel directory.
14566
5fb651f2
JB
145672020-01-01 Joel Brobecker <brobecker@adacore.com>
14568
14569 * copyright.py (main): Exit if run from the wrong directory.
14570
5dd8bf88
JB
145712020-01-01 Joel Brobecker <brobecker@adacore.com>
14572
14573 * top.c (print_gdb_version): Change copyright year to 2020.
14574
9f71dacb 145752020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14576
9f71dacb 14577 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14578
9f71dacb 14579For older changes see ChangeLog-2019.
c906108c
SS
14580\f
14581Local Variables:
14582mode: change-log
14583left-margin: 8
14584fill-column: 74
14585version-control: never
57da7796 14586coding: utf-8
c906108c 14587End: