]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Add attribute::value_as_string method
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f800b00e
TT
12020-09-29 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (partial_die_info::read) <case
4 DW_AT_linkage_name>: Use value_as_string.
5 (dwarf2_string_attr): Use value_as_string.
6 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7 method.
8 * dwarf2/attribute.c (attribute::value_as_string): New method.
9
de38d64a
PA
102020-09-29 Pedro Alves <pedro@palves.net>
11
12 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
13 defined before using '#pragma GCC diagnostic' instead of checking
14 __clang__.
15
9aed480c
TT
162020-09-28 Tom Tromey <tom@tromey.com>
17
18 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
19 (handle_signal_stop): Update.
20 * procfs.c (procfs_target::insert_watchpoint): Update.
21 * target.h (target_have_steppable_watchpoint): Now a function.
22
8a3ecb79
TT
232020-09-28 Tom Tromey <tom@tromey.com>
24
25 * infrun.c (set_schedlock_func): Update.
26 * target.h (target_can_lock_scheduler): Now a function.
27
55f6301a
TT
282020-09-28 Tom Tromey <tom@tromey.com>
29
30 * inferior.h (class inferior) <has_execution>: Update.
31 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
32 * valops.c (find_function_in_inferior)
33 (value_allocate_space_in_inferior): Update.
34 * top.c (kill_or_detach): Update.
35 * target.c (target_preopen, set_target_permissions): Update.
36 (target_has_execution_current): Remove.
37 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
38 Update.
39 * solib.c (update_solib_list, reload_shared_libraries): Update.
40 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
41 * solib-dsbt.c (enable_break): Update.
42 * score-tdep.c (score7_fetch_inst): Update.
43 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
44 Update.
45 * remote.c (remote_target::start_remote)
46 (remote_target::remote_check_symbols, remote_target::open_1)
47 (remote_target::remote_detach_1, remote_target::verify_memory)
48 (remote_target::xfer_partial, remote_target::read_description)
49 (remote_target::get_min_fast_tracepoint_insn_len): Update.
50 * record-full.c (record_full_open_1): Update.
51 * record-btrace.c (record_btrace_target_open): Update.
52 * objc-lang.c (lookup_objc_class, lookup_child_selector)
53 (value_nsstring): Update.
54 * linux-thread-db.c (add_thread_db_info)
55 (thread_db_find_new_threads_silently, check_thread_db_callback)
56 (try_thread_db_load_1, record_thread): Update.
57 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
58 Update.
59 * linux-fork.c (checkpoint_command): Update.
60 * infrun.c (set_non_stop, set_observer_mode)
61 (check_multi_target_resumption, for_each_just_stopped_thread)
62 (maybe_remove_breakpoints, normal_stop)
63 (class infcall_suspend_state): Update.
64 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
65 (info_program_command, attach_command): Update.
66 * infcall.c (call_function_by_hand_dummy): Update.
67 * inf-loop.c (inferior_event_handler): Update.
68 * gcore.c (gcore_command, derive_heap_segment): Update.
69 * exec.c (exec_file_command): Update.
70 * eval.c (evaluate_subexp): Update.
71 * compile/compile.c (compile_to_object): Update.
72 * cli/cli-dump.c (restore_command): Update.
73 * breakpoint.c (update_watchpoint)
74 (update_inserted_breakpoint_locations)
75 (insert_breakpoint_locations, get_bpstat_thread): Update.
76 * target.h (target_has_execution): Remove macro.
77 (target_has_execution_current): Don't declare.
78 (target_has_execution): Rename from target_has_execution_1. Add
79 argument default.
80
05374cfd
TT
812020-09-28 Tom Tromey <tom@tromey.com>
82
83 * mi/mi-main.c (exec_reverse_continue)
84 (mi_cmd_list_target_features): Update.
85 * infrun.c (set_exec_direction_func): Update.
86 * target.c (default_execution_direction): Update.
87 * reverse.c (exec_reverse_once): Update.
88 * target.h (target_can_execute_reverse): Now a function.
89
9dccd06e
TT
902020-09-28 Tom Tromey <tom@tromey.com>
91
92 * tui/tui-regs.c (tui_get_register)
93 (tui_data_window::show_registers): Update.
94 * thread.c (scoped_restore_current_thread::restore)
95 (scoped_restore_current_thread::scoped_restore_current_thread):
96 Update.
97 * regcache-dump.c (regcache_print): Update.
98 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
99 Update.
100 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
101 * mep-tdep.c (current_me_module, current_options): Update.
102 * linux-thread-db.c (thread_db_load): Update.
103 * infcmd.c (registers_info, info_vector_command)
104 (info_float_command): Update.
105 * ia64-tdep.c (ia64_frame_prev_register)
106 (ia64_sigtramp_frame_prev_register): Update.
107 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
108 * gcore.c (derive_stack_segment): Update.
109 * frame.c (get_current_frame, has_stack_frames): Update.
110 * findvar.c (language_defn::read_var_value): Update.
111 * arm-tdep.c (arm_pc_is_thumb): Update.
112 * target.c (target_has_registers): Rename from
113 target_has_registers_1.
114 * target.h (target_has_registers): Remove macro.
115 (target_has_registers): Rename from target_has_registers_1.
116
841de120
TT
1172020-09-28 Tom Tromey <tom@tromey.com>
118
119 * windows-tdep.c (tlb_make_value): Update.
120 * tui/tui-regs.c (tui_data_window::show_registers): Update.
121 * thread.c (scoped_restore_current_thread::restore)
122 (scoped_restore_current_thread::scoped_restore_current_thread)
123 (thread_command): Update.
124 * stack.c (backtrace_command_1, frame_apply_level_command)
125 (frame_apply_all_command, frame_apply_command): Update.
126 * infrun.c (siginfo_make_value, restore_infcall_control_state):
127 Update.
128 * gcore.c (derive_stack_segment): Update.
129 * frame.c (get_current_frame, has_stack_frames): Update.
130 * auxv.c (info_auxv_command): Update.
131 * ada-tasks.c (ada_build_task_list): Update.
132 * target.c (target_has_stack): Rename from target_has_stack_1.
133 * target.h (target_has_stack): Remove macro.
134 (target_has_stack): Rename from target_has_stack_1.
135
a739972c
TT
1362020-09-28 Tom Tromey <tom@tromey.com>
137
138 * target.c (target_has_memory): Rename from target_has_memory_1.
139 * tui/tui-regs.c (tui_data_window::show_registers): Update.
140 * thread.c (scoped_restore_current_thread::restore)
141 (scoped_restore_current_thread::scoped_restore_current_thread):
142 Update.
143 * frame.c (get_current_frame, has_stack_frames): Update.
144 * target.h (target_has_memory): Remove macro.
145 (target_has_memory): Rename from target_has_memory_1.
146
5b8a4776
TT
1472020-09-28 Tom Tromey <tom@tromey.com>
148
149 * target.c (target_has_all_memory_1): Remove.
150 * target.h (target_has_all_memory): Remove define.
151 (target_has_all_memory_1): Don't declare.
152
bd356ec6
SM
1532020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
154
155 * ser-base.c: Adjust comments formatting.
156
2c72d5e5
TT
1572020-09-27 Tom Tromey <tom@tromey.com>
158
159 PR tui/25342:
160 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
161
35a98237
TT
1622020-09-27 Tom Tromey <tom@tromey.com>
163
164 PR tui/25342:
165 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
166
9e820dec
TT
1672020-09-27 Tom Tromey <tom@tromey.com>
168
169 * unittests/tui-selftests.c: Update.
170 * tui/tui-winsource.h (struct tui_source_window_base)
171 <extra_margin, show_line_number, refresh_pad>: New methods.
172 <m_max_length, m_pad>: New members.
173 (tui_copy_source_line): Update.
174 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
175 first_col, line_width, ndigits parameters. Add length.
176 (tui_source_window_base::show_source_line): Write to pad. Line
177 number now 0-based.
178 (tui_source_window_base::refresh_pad): New method.
179 (tui_source_window_base::show_source_content): Write to pad. Call
180 refresh_pad.
181 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
182 not refill.
183 (tui_source_window_base::update_exec_info): Call
184 show_line_number.
185 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
186 method.
187 <m_digits>: New member.
188 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
189 and m_max_length.
190 (tui_source_window::show_line_number): New method.
191 * tui/tui-io.h (tui_puts): Fix comment.
192 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
193 m_max_length.
194
c15c15c8
TT
1952020-09-27 Tom Tromey <tom@tromey.com>
196
197 * tui/tui-winsource.c
198 (tui_source_window_base::set_is_exec_point_at): Don't call
199 show_source_line.
200
149830c1
TT
2012020-09-27 Tom Tromey <tom@tromey.com>
202
203 * python/py-tui.c (class tui_py_window) <refresh_window>: New
204 method.
205 <erase>: Update.
206 <cursor_x, cursor_y>: Remove.
207 <m_inner_window>: New member.
208 (tui_py_window::rerender): Create inner window.
209 (tui_py_window::output): Write to inner window.
210
8f9929bb
GR
2112020-09-26 Gareth Rees <grees@undo.io> (tiny change)
212
213 PR python/26586
214 * cli/cli-script.c (execute_control_commands): don't set
215 instream to nullptr here as this breaks the from_tty argument
216 to gdb.execute in Python.
217 (execute_user_command): set instream to nullptr here instead.
218
956bdb59
SM
2192020-09-25 Simon Marchi <simon.marchi@efficios.com>
220
221 * infrun.h (infrun_debug_printf): Fix formatting.
222 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
223
3b93626b
SJ
2242020-09-25 Saagar Jha <saagar@saagarjha.com>
225
226 * compile/compile-object-load.h (struct munmap_list): Add
227 explicitly-defined move constructor.
228
b551a89f
TT
2292020-09-24 Tom Tromey <tromey@adacore.com>
230
231 PR tui/26638:
232 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
233 method.
234 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
235 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
236 (tui_prev_win): Rewrite.
237
99bb393f
HD
2382020-09-23 Hannes Domani <ssbssa@yahoo.de>
239
240 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
241 in WOW64 processes as SIGINT.
242 * nat/windows-nat.h: Make wow64_process a shared variable.
243 * windows-nat.c: Remove static wow64_process variable.
244
20a5fcbd
TT
2452020-09-23 Tom Tromey <tom@tromey.com>
246
247 PR symtab/25470:
248 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
249 offset and bit size.
250 * printcmd.c (print_scalar_formatted): Handle zero-length
251 integer.
252 (print_scalar_formatted): Use bit_size_differs_p.
253 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
254 constant.
255 (union type_specific): <int_stuff>: New member.
256 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
257 methods.
258 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
259 TYPE_SPECIFIC_FIELD.
260 (recursive_dump_type, copy_type_recursive): Update.
261 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
262 DW_AT_data_bit_offset.
263
bac51ab7
TT
2642020-09-23 Tom Tromey <tom@tromey.com>
265
266 * utils.h (class gdb_argv): Add move operators.
267 <append>: New methods.
268 * compile/compile.c (build_argc_argv): Remove.
269 (compile_args_argc): Remove.
270 (compile_args_argv): Change type.
271 (set_compile_args): Simplify.
272 (append_args): Remove.
273 (filter_args): Remove argcp parameter.
274 (get_args): Return gdb_argv. Simplify.
275 (compile_to_object): Update.
276
92677124
TT
2772020-09-23 Tom Tromey <tom@tromey.com>
278
279 * compile/compile-object-run.c (do_module_cleanup)
280 <~do_module_cleanup> :Remove.
281 (do_module_cleanup): Update.
282 * compile/compile-object-load.h (struct munmap_list): Add move
283 assignment operator.
284 <source_file>: Now a std::string.
285 <munmap_list>: Rename. No longer a pointer.
286 * compile/compile-object-load.c (struct setup_sections_data): Add
287 constructor.
288 <setup_one_section>: Declare.
289 <munmap_list>: Move earlier.
290 <m_bfd>: New member.
291 <m_last_size, m_last_section_first, m_last_prot,
292 m_last_max_alignment>: Rename, add initializers where needed.
293 (setup_sections_data::setup_one_section): Rename from
294 setup_sections. Update.
295 (compile_object_load): Update. Don't use bfd_map_over_sections.
296
e616f60a
TT
2972020-09-23 Tom Tromey <tom@tromey.com>
298
299 * compile/compile-object-run.c (struct do_module_cleanup): Add
300 parameters to constructor. Update destructor.
301 <source_file, scope, scope_data, out_value_type, out_value_addr,
302 munmap_list_head, objfile_name_string>: Remove.
303 <module>: New member.
304 (do_module_cleanup): Update.
305 (compile_object_run): Update.
306
e947a848
TT
3072020-09-23 Tom Tromey <tom@tromey.com>
308
309 * compile/compile.c (eval_compile_command): Update.
310 * compile/compile-object-run.h (compile_object_run): Take a
311 compile_module_up.
312 * compile/compile-object-run.c (compile_object_run): Take a
313 compile_module_up.
314 * compile/compile-object-load.h (struct compile_module): Add
315 constructor, destructor.
316 (compile_module_up): New typedef.
317 (compile_object_load): Return compile_object_up.
318 * compile/compile-object-load.c (compile_object_load): Return
319 compile_module_up.
320
0dbf6ee6
TT
3212020-09-23 Tom Tromey <tom@tromey.com>
322
323 * compile/compile-object-run.c (struct do_module_cleanup): Add
324 constructor, destructor.
325 <objfile_name_string>: Don't use struct hack.
326 (do_module_cleanup): Use delete.
327 (compile_object_run): Use new.
328
ebe824f5
TT
3292020-09-23 Tom Tromey <tom@tromey.com>
330
331 * compile/compile-cplus-types.c
332 (compile_cplus_convert_struct_or_union): Use std::vector.
333 (compile_cplus_convert_func): Likewise.
334 * compile/compile-c-types.c (convert_func): Use std::vector.
335
5dd918d9
TT
3362020-09-21 Tom Tromey <tromey@adacore.com>
337
338 * sparc-tdep.c (sparc32_skip_prologue): Use
339 skip_prologue_using_sal.
340
5486c517
TT
3412020-09-19 Tom Tromey <tom@tromey.com>
342
343 * symfile.c (add_section_size_callback): Remove.
344 (load_one_section): Rename from load_section_callback. Change
345 parameters.
346 (generic_load): Use foreach.
347
8a6bb1d1
TT
3482020-09-19 Tom Tromey <tom@tromey.com>
349
350 * exec.c (add_to_section_table): Remove.
351 (build_section_table): Use foreach.
352
08f93a1a
TT
3532020-09-19 Tom Tromey <tom@tromey.com>
354
355 * elfread.c (elf_locate_sections): Change parameters.
356 (elf_symfile_read): Use foreach.
357
03cd72b8
TT
3582020-09-19 Tom Tromey <tom@tromey.com>
359
360 * cli/cli-dump.c (struct callback_data): Remove.
361 (restore_one_section): Rename from restore_section_callback.
362 Change parameters.
363 (restore_binary_file): Change parameters.
364 (restore_command): Use foreach.
365
f4f2b85f
TT
3662020-09-19 Tom Tromey <tom@tromey.com>
367
368 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
369 (gcore_copy_callback): Likewise.
370 (gcore_memory_sections): Use foreach.
371
b35c1d1c
TT
3722020-09-19 Tom Tromey <tom@tromey.com>
373
374 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
375 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
376 parameters.
377 (generic_elf_osabi_sniffer): Use foreach.
378 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
379 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
380
5bb6e9dd
TT
3812020-09-19 Tom Tromey <tom@tromey.com>
382
383 * dwarf2/read.c (locate_dwz_sections): Change parameters.
384 (dwarf2_get_dwz_file): Use foreach.
385 (dwarf2_locate_dwo_sections): Change parameters.
386 (open_and_init_dwo_file): Use foreach.
387 (dwarf2_locate_common_dwp_sections): Change parameters.
388 (open_and_init_dwp_file): Use foreach.
389
ad7277da
TT
3902020-09-19 Tom Tromey <tom@tromey.com>
391
392 * symfile.h: (find_lowest_section): Don't declare.
393 * symfile.c (find_lowest_section): Now static. Change
394 parameters.
395 (struct place_section_arg): Remove.
396 (place_section): Change parameters.
397 (addr_info_make_relative): Use foreach.
398 (symfile_dummy_outputs): Remove.
399 (default_symfile_relocate): Use foreach.
400
cb814f2e
TT
4012020-09-19 Tom Tromey <tom@tromey.com>
402
403 * objfiles.c (add_to_objfile_sections): Rename from
404 add_to_objfile_sections_full.
405 (add_to_objfile_sections): Remove.
406 (build_objfile_section_table): Use foreach.
407
3cabfd26
TT
4082020-09-19 Tom Tromey <tom@tromey.com>
409
410 * stap-probe.c (get_stap_base_address_1): Remove.
411 (get_stap_base_address): Use foreach.
412
1ce51eb5
TT
4132020-09-19 Tom Tromey <tom@tromey.com>
414
415 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
416 parameters.
417 (gdb_bfd_close_or_warn): Use foreach.
418
a190fabb
TT
4192020-09-19 Tom Tromey <tom@tromey.com>
420
421 * corelow.c (add_to_thread_list): Change parameters.
422 (core_target_open): Use foreach.
423
cafb0d81
TT
4242020-09-19 Tom Tromey <tom@tromey.com>
425
426 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
427 existing function.
428
c8d5abea
AB
4292020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
430
431 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
432 for arrays.
433
6d816919
AB
4342020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
435
436 * eval.c: Remove 'f-lang.h' include.
437 (value_f90_subarray): Moved to f-lang.c.
438 (eval_call): Renamed to...
439 (evaluate_subexp_do_call): ...this, is no longer static, header
440 comment moved into header file.
441 (evaluate_funcall): Update call to eval_call.
442 (skip_undetermined_arglist): Moved to f-lang.c.
443 (fortran_value_subarray): Likewise.
444 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
445 moved to evaluate_subexp_f.
446 (calc_f77_array_dims): Moved to f-lang.c
447 * expprint.c (print_subexp_funcall): New function.
448 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
449 moved to print_subexp_f, OP_FUNCALL uses new function.
450 (dump_subexp_body_funcall): New function.
451 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
452 moved to dump_subexp_f, OP_FUNCALL uses new function.
453 * expression.h (evaluate_subexp_do_call): Declare.
454 * f-lang.c (value_f90_subarray): Moved from eval.c.
455 (skip_undetermined_arglist): Likewise.
456 (calc_f77_array_dims): Likewise.
457 (fortran_value_subarray): Likewise.
458 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
459 (operator_length_f): Likewise.
460 (print_subexp_f): Likewise.
461 (dump_subexp_body_f): Likewise.
462 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
463 declaration of this operation to here.
464 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
465 support moved to operator_length_f.
466 * parser-defs.h (dump_subexp_body_funcall): Declare.
467 (print_subexp_funcall): Declare.
468 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
469 fortran-operator.def.
470
8c37706a
AB
4712020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
472
473 * eval.c (fortran_value_subarray): New function, content is taken
474 from...
475 (evaluate_subexp_standard): ...here, in two places. Now arrays
476 and strings both call the new function.
477 (calc_f77_array_dims): Add header comment, handle strings.
478
14f9473c
VC
4792020-09-18 Victor Collod <vcollod@nvidia.com>
480
481 PR gdb/26635
482 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
483 (i386_analyze_prologue): Call i386_skip_endbr.
484
b60cea74
TT
4852020-09-18 Tom Tromey <tromey@adacore.com>
486
487 * windows-nat.c (struct windows_nat_target) <wait>: Update.
488 (windows_nat_target::wait): Update.
489 * target/wait.h (enum target_wait_flag): New. Use
490 DEF_ENUM_FLAGS_TYPE.
491 * target/target.h (target_wait): Change type of options.
492 * target.h (target_options_to_string, default_target_wait):
493 Update.
494 (struct target_ops) <wait>: Change type of options.
495 * target.c (target_wait, default_target_wait, do_option): Change
496 type of "options".
497 (target_options_to_string): Likewise.
498 * target-delegates.c: Rebuild.
499 * target-debug.h (target_debug_print_target_wait_flags): Rename
500 from target_debug_print_options.
501 * sol-thread.c (class sol_thread_target) <wait>: Update.
502 (sol_thread_target::wait): Update.
503 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
504 (rs6000_nat_target::wait): Update.
505 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
506 Update.
507 (remote_target::wait_ns, remote_target::wait_as): Change type of
508 "options".
509 (remote_target::wait): Update.
510 * remote-sim.c (struct gdbsim_target) <wait>: Update.
511 (gdbsim_target::wait): Update.
512 * record-full.c (class record_full_base_target) <wait>: Update.
513 (record_full_wait_1): Change type of "options".
514 (record_full_base_target::wait): Update.
515 * record-btrace.c (class record_btrace_target) <wait>: Update.
516 (record_btrace_target::wait): Update.
517 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
518 Update.
519 (ravenscar_thread_target::wait): Update.
520 * procfs.c (class procfs_target) <wait>: Update.
521 (procfs_target::wait): Update.
522 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
523 * obsd-nat.c (obsd_nat_target::wait): Update.
524 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
525 (nto_procfs_target::wait): Update.
526 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
527 * nbsd-nat.c (nbsd_wait): Change type of "options".
528 (nbsd_nat_target::wait): Update.
529 * linux-thread-db.c (class thread_db_target) <wait>: Update.
530 (thread_db_target::wait): Update.
531 * linux-nat.h (class linux_nat_target) <wait>: Update.
532 * linux-nat.c (linux_nat_target::wait): Update.
533 (linux_nat_wait_1): Update.
534 * infrun.c (do_target_wait_1, do_target_wait): Change type of
535 "options".
536 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
537 * inf-ptrace.c (inf_ptrace_target::wait): Update.
538 * go32-nat.c (struct go32_nat_target) <wait>: Update.
539 (go32_nat_target::wait): Update.
540 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
541 * gnu-nat.c (gnu_nat_target::wait): Update.
542 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
543 * fbsd-nat.c (fbsd_nat_target::wait): Update.
544 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
545 * darwin-nat.c (darwin_nat_target::wait): Update.
546 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
547 (bsd_uthread_target::wait): Update.
548 * aix-thread.c (class aix_thread_target) <wait>: Update.
549 (aix_thread_target::wait): Update.
550
0295dde6
AB
5512020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
552
553 * compile/compile-object-run.c (create_copied_type_recursive): New
554 function.
555 (compile_object_run): Use new function.
556
d3483b43
JT
5572020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
558
559 * NEWS: Mention x86_64 Cygwin core file support.
560
e7d612ad
JT
5612020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
562
563 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
564 (core_process_module_section): Handle NOTE_INFO_MODULE64.
565
aff9d387
JT
5662020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
567
62a5151b
JT
568 * windows-tdep.h: Add prototypes.
569 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
570 (i386_windows_core_pid_to_str): Move and rename ...
571 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
572 (windows_core_pid_to_str): ... and here.
573 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
574
5752020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
576 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
577 (amd64_windows_init_abi_common): ... and register.
578
7d155da3
JT
5792020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
580
581 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
582 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
583
e8ef12b9
PA
5842020-09-18 Pedro Alves <pedro@palves.net>
585
586 PR gdb/26631
587 * thread.c (thread_find_command): Switch inferior before calling
588 target methods.
589
c1e1314d
TT
5902020-09-17 Tom Tromey <tromey@adacore.com>
591
592 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
593 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
594 (tdesc_arch_data_up): New typedef.
595 (tdesc_use_registers, tdesc_data_alloc): Update.
596 (tdesc_data_cleanup): Don't declare.
597 * target-descriptions.c (tdesc_data_alloc): Return a
598 tdesc_arch_data_up.
599 (tdesc_arch_data_deleter::operator()): Rename from
600 tdesc_data_cleanup. Change argument type.
601 (tdesc_use_registers): Change early_data to an rvalue reference.
602 (tdesc_use_registers): Don't use delete.
603 * sparc-tdep.c (sparc32_gdbarch_init): Update.
604 * s390-tdep.c (s390_gdbarch_init): Update.
605 * rx-tdep.c (rx_gdbarch_init): Update.
606 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
607 * riscv-tdep.c (riscv_gdbarch_init): Update.
608 * or1k-tdep.c (or1k_gdbarch_init): Update.
609 * nios2-tdep.c (nios2_gdbarch_init): Update.
610 * nds32-tdep.c (nds32_gdbarch_init): Update.
611 * mips-tdep.c (mips_gdbarch_init): Update.
612 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
613 * m68k-tdep.c (m68k_gdbarch_init): Update.
614 * i386-tdep.c (i386_gdbarch_init): Update.
615 * arm-tdep.c (arm_gdbarch_init): Update.
616 * arc-tdep.c (arc_tdesc_init): Update.
617 (arc_gdbarch_init): Update.
618 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
619
0363df3d
HD
6202020-09-17 Hannes Domani <ssbssa@yahoo.de>
621
622 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
623 for WOW64 processes.
624
280a9412
TT
6252020-09-17 Tom Tromey <tom@tromey.com>
626
627 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
628
6108fd18
TT
6292020-09-17 Tom Tromey <tom@tromey.com>
630
631 * value.c (preserve_values): Update.
632 * python/py-type.c (save_objfile_types): Update.
633 * guile/scm-type.c (save_objfile_types): Update.
634 * gdbtypes.h (create_copied_types_hash): Return htab_up.
635 * gdbtypes.c (create_copied_types_hash): Return htab_up.
636 * compile/compile-object-run.c (compile_object_run): Update.
637
fa9b1164
TT
6382020-09-17 Tom Tromey <tom@tromey.com>
639
640 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
641 Remove.
642 <m_table>: Now htab_up.
643 * typeprint.c (typedef_hash_table::recursively_update)
644 (typedef_hash_table::add_template_parameters)
645 (typedef_hash_table::typedef_hash_table): Update.
646 (typedef_hash_table::~typedef_hash_table): Remove.
647 (typedef_hash_table::typedef_hash_table)
648 (typedef_hash_table::find_global_typedef)
649 (typedef_hash_table::find_typedef): Update.
650
eb53f105
TT
6512020-09-17 Tom Tromey <tom@tromey.com>
652
653 * target-descriptions.c (tdesc_use_registers): Use htab_up.
654
7a8a5d47
TT
6552020-09-17 Tom Tromey <tom@tromey.com>
656
657 * linespec.c (class decode_compound_collector)
658 <~decode_compound_collector>: Remove.
659 <m_unique_syms>: Now htab_up.
660 (decode_compound_collector::operator ()): Update.
661 (class symtab_collector) <~symtab_collector>: Remove.
662 <m_symtab_table>: Now htab_up.
663 (symtab_collector::operator ()): Update.
664
99032cfc
TT
6652020-09-17 Tom Tromey <tom@tromey.com>
666
667 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
668 (filename_seen_cache::clear): Update.
669 (~filename_seen_cache): Remove.
670 (filename_seen_cache::seen): Update.
671 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
672 htab_up.
673 <~filename_seen_cache>: Remove.
674 <traverse>: Update.
675
32580f6d
TT
6762020-09-17 Tom Tromey <tom@tromey.com>
677
678 * completer.c (completion_tracker::discard_completions)
679 (completion_tracker::~completion_tracker)
680 (completion_tracker::maybe_add_completion)
681 (completion_tracker::remove_completion)
682 (completion_tracker::recompute_lowest_common_denominator)
683 (completion_tracker::build_completion_result): Update.
684 * completer.h (class completion_tracker) <have_completions>:
685 Update.
686 <m_entries_hash>: Now htab_up.
687
c1fb9836
TT
6882020-09-17 Tom Tromey <tom@tromey.com>
689
690 * breakpoint.c (ambiguous_names_p): Use htab_up.
691
88f07206
TT
6922020-09-17 Tom Tromey <tom@tromey.com>
693
694 * auto-load.c (struct auto_load_pspace_info)
695 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
696 <loaded_script_files, loaded_script_texts>: Change type to
697 htab_up.
698 (~auto_load_pspace_info) Remove.
699 (init_loaded_scripts_info, maybe_add_script_file)
700 (maybe_add_script_text, auto_load_info_scripts): Update.
701
9519b2ee
TT
7022020-09-17 Tom Tromey <tromey@adacore.com>
703
704 * c-exp.y (name_obstack): Now static.
705
d2cd4113
CC
7062020-09-17 Chungyi Chi <demonic@csie.io>
707
708 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
709
b650a282
SM
7102020-09-16 Simon Marchi <simon.marchi@efficios.com>
711
712 * breakpoint.h (init_catchpoint): Change int parameter to bool.
713 (add_solib_catchpoint): Likewise.
714 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
715 to bool.
716 (add_solib_catchpoint): Change int parameter/variable to bool.
717 (catch_load_or_unload): Likewise.
718 (init_catchpoint): Likewise.
719 (create_fork_vfork_event_catchpoint): Likewise.
720 (catch_fork_command_1): Likewise.
721 (catch_exec_command_1): Likewise.
722
4d0bcfcf
SM
7232020-09-16 Simon Marchi <simon.marchi@efficios.com>
724
725 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
726 Change instance_flags to m_instance_flags.
727
fe830662
TT
7282020-09-16 Tom Tromey <tromey@adacore.com>
729
730 PR gdb/26598:
731 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
732
fe5ddfc3
JB
7332020-09-16 John Baldwin <jhb@FreeBSD.org>
734
735 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
736 PL_FLAG_EXEC.
737 (fbsd_nat_target::insert_exec_catchpoint)
738 (fbsd_nat_target::remove_exec_catchpoint): Always define.
739 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
740 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
741
e911c666
JB
7422020-09-16 John Baldwin <jhb@FreeBSD.org>
743
744 * configure.ac: Remove check for kinfo_getvmmap().
745 * configure, config.in: Regenerate.
746 * fbsd-nat.c (fbsd_read_mapping): Remove
747 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
748 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
749 kinfo_get_vmmap() are always present.
750
1f17d372
JB
7512020-09-16 John Baldwin <jhb@FreeBSD.org>
752
753 * fbsd-nat.c: Always include support for
754 TARGET_OBJECT_SIGNAL_INFO.
755
bcb1da7f
JB
7562020-09-16 John Baldwin <jhb@FreeBSD.org>
757
758 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
759 sysctl and remove procfs fallback.
760
5515f729
JB
7612020-09-16 John Baldwin <jhb@FreeBSD.org>
762
763 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
764 * fbsd-nat.h: Likewise.
765
da1df1db
TBA
7662020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
767
768 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
769 argument.
770
0e25e767
AB
7712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
772
773 * ada-lang.c (ada_language_data): Delete.
774 (ada_language): Remove references to ada_language_data.
775 * c-lang.c (c_language_data): Delete.
776 (c_language): Remove references to c_language_data.
777 (cplus_language_data): Delete.
778 (cplus_language): Remove references to cplus_language_data.
779 (asm_language_data): Delete.
780 (asm_language): Remove references to asm_language_data.
781 (minimal_language_data): Delete.
782 (minimal_language): Remove references to minimal_language_data.
783 * d-lang.c (d_language_data): Delete.
784 (d_language): Remove references to d_language_data.
785 * f-lang.c (f_language_data): Delete.
786 (f_language): Remove references to f_language_data.
787 * go-lang.c (go_language_data): Delete.
788 (go_language): Remove references to go_language_data.
789 * language.c (unknown_language_data): Delete.
790 (unknown_language): Remove references to unknown_language_data.
791 (auto_language_data): Delete.
792 (auto_language): Remove references to auto_language_data.
793 * language.h (language_data): Delete struct.
794 (language_defn): No longer inherit from language_data.
795 * m2-lang.c (m2_language_data): Delete.
796 (m2_language): Remove references to m2_language_data.
797 * objc-lang.c (objc_language_data): Delete.
798 (objc_language): Remove references to objc_language_data.
799 * opencl-lang.c (opencl_language_data): Delete.
800 (opencl_language): Remove references to opencl_language_data.
801 * p-lang.c (pascal_language_data): Delete.
802 (pascal_language): Remove references to pascal_language_data.
803 * rust-lang.c (rust_language_data): Delete.
804 (rust_language): Remove references to rust_language_data.
805
b7c6e27d
AB
8062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
807
808 * ada-lang.c (ada_language_data): Remove la_op_print_tab
809 initializer.
810 (ada_language::opcode_print_table): New member function.
811 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
812 (c_language::opcode_print_table): New member function.
813 (cplus_language_data): Remove la_op_print_tab initializer.
814 (cplus_language::opcode_print_table): New member function.
815 (asm_language_data): Remove la_op_print_tab initializer.
816 (asm_language::opcode_print_table): New member function.
817 (minimal_language_data): Remove la_op_print_tab initializer.
818 (minimal_language::opcode_print_table): New member function.
819 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
820 (d_language::opcode_print_table): New member function.
821 * expprint.c (print_subexp_standard): Update call to
822 opcode_print_table.
823 (op_string): Likewise.
824 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
825 (f_language::opcode_print_table): New member function.
826 * go-lang.c (go_language_data): Remove la_op_print_tab
827 initializer.
828 (go_language::opcode_print_table): New member function.
829 * language.c (unknown_language_data): Remove la_op_print_tab
830 initializer.
831 (unknown_language::opcode_print_table): New member function.
832 (auto_language_data): Remove la_op_print_tab initializer.
833 (auto_language::opcode_print_table): New member function.
834 * language.h (language_data): Remove la_op_print_tab field.
835 (language_defn::opcode_print_table): Declare new member function.
836 * m2-lang.c (m2_language_data): Remove la_op_print_tab
837 initializer.
838 (m2_language::opcode_print_table): New member function.
839 * objc-lang.c (objc_language_data): Remove la_op_print_tab
840 initializer.
841 (objc_language::opcode_print_table): New member function.
842 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
843 initializer.
844 (opencl_language::opcode_print_table): New member function.
845 * p-lang.c (pascal_language_data): Remove la_op_print_tab
846 initializer.
847 (pascal_language::opcode_print_table): New member function.
848 * rust-lang.c (rust_language_data): Remove la_op_print_tab
849 initializer.
850 (rust_language::opcode_print_table): New member function.
851
5aba6ebe
AB
8522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
853
854 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
855 (ada_language::expression_ops): New member function.
856 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
857 (c_language::expression_ops): New member function.
858 (cplus_language_data): Remove la_exp_desc initializer.
859 (cplus_language::expression_ops): New member function.
860 (asm_language_data): Remove la_exp_desc initializer.
861 (asm_language::expression_ops): New member function.
862 (minimal_language_data): Remove la_exp_desc initializer.
863 (minimal_language::expression_ops): New member function.
864 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
865 (d_language::expression_ops): New member function.
866 * eval.c (evaluate_subexp): Update call to expression_ops.
867 * expprint.c (print_subexp): Likewise.
868 (op_name): Likewise.
869 (dump_subexp_body): Likewise.
870 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
871 (f_language::expression_ops): New member function.
872 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
873 (go_language::expression_ops): New member function.
874 * language.c (language_defn::expression_ops): New function.
875 (unknown_language_data): Remove la_exp_desc initializer.
876 (auto_language_data): Likewise.
877 * language.h (language_data): Remove la_exp_desc field.
878 (language_defn::expression_ops): Declare new member function.
879 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
880 (m2_language::expression_ops): New member function.
881 * objc-lang.c (objc_language_data): Remove la_exp_desc
882 initializer.
883 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
884 initializer.
885 (opencl_language::expression_ops): New member function.
886 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
887 * parse.c (operator_length): Update call to expression_ops.
888 (exp_iterate): Likewise.
889 * rust-lang.c (rust_language_data): Remove la_exp_desc
890 initializer.
891 (ruse_language::expression_ops): New member function.
892
b63a3f3f
AB
8932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
894
895 * ada-lang.c (ada_language_data): Remove la_varobj_ops
896 initializer.
897 (ada_language::varobj_ops): New member function.
898 * c-lang.c (c_language_data): Remove la_varobj_ops
899 initializer.
900 (cplus_language_data): Likewise.
901 (cplus_language::varobj_ops): New member function.
902 (asm_language_data): Remove la_varobj_ops initializer.
903 (minimal_language_data): Likewise.
904 * d-lang.c (d_language_data): Likewise.
905 * f-lang.c (f_language_data): Likewise.
906 * go-lang.c (go_language_data): Likewise.
907 * language.c (language_defn::varobj_ops): New function.
908 (unknown_language_data): Remove la_varobj_ops
909 initializer.
910 (auto_language_data): Likewise.
911 * language.h (language_data): Remove la_varobj_ops field.
912 (language_defn::varobj_ops): Declare new member function.
913 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
914 * objc-lang.c (objc_language_data): Likewise.
915 * opencl-lang.c (opencl_language_data): Likewise.
916 * p-lang.c (pascal_language_data): Likewise.
917 * rust-lang.c (rust_language_data): Likewise.
918 * varobj.c (varobj_create): Update call to varobj_ops.
919 * varobj.h (default_varobj_ops): Delete define.
920
1ac14a04
AB
9212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
922
923 * ada-lang.c (ada_language_data): Remove la_macro_expansion
924 initializer.
925 * c-lang.c (c_language_data): Likewise.
926 (c_language::macro_expansion): New member function.
927 (cplus_language_data): Likewise.
928 (cplus_language::macro_expansion): New member function.
929 (asm_language_data): Likewise.
930 (asm_language::macro_expansion): New member function.
931 (minimal_language_data): Likewise.
932 (minimal_language::macro_expansion): New member function.
933 * d-lang.c (d_language_data): Remove la_macro_expansion
934 initializer.
935 * f-lang.c (f_language_data): Likewise.
936 * go-lang.c (go_language_data): Likewise.
937 * language.c (unknown_language_data): Likewise.
938 (auto_language_data): Likewise.
939 * language.h (language_data): Remove la_macro_expansion field.
940 (language_defn::macro_expansion): New member function.
941 * m2-lang.c (m2_language_data): Remove la_macro_expansion
942 initializer.
943 * objc-lang.c (objc_language_data): Likewise.
944 (objc_language::macro_expansion): New member function.
945 * opencl-lang.c (opencl_language_data): Likewise.
946 (opencl_language::macro_expansion): New member function.
947 * p-lang.c (pascal_language_data): Remove la_macro_expansion
948 initializer.
949 * rust-lang.c (rust_language_data): Likewise.
950 * symtab.c (default_collect_symbol_completion_matches_break_on):
951 Update call to macro_expansion.
952
3a3440fb
AB
9532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
954
955 * ada-lang.c (ada_language_data): Remove la_array_ordering
956 initializer.
957 * c-lang.c (c_language_data): Likewise.
958 (cplus_language_data): Likewise.
959 (asm_language_data): Likewise.
960 (minimal_language_data): Likewise.
961 * d-lang.c (d_language_data): Likewise.
962 * dwarf2/read.c (read_array_order): Update for call to
963 array_ordering.
964 * f-lang.c (f_language_data): Remove la_array_ordering
965 initializer.
966 (f_language::array_ordering): New member function.
967 * go-lang.c (go_language_data): Remove la_array_ordering
968 initializer.
969 * language.c (unknown_language_data): Likewise.
970 (auto_language_data): Likewise.
971 * language.h (language_data): Delete la_array_ordering field.
972 (language_defn::array_ordering): New member function.
973 * m2-lang.c (m2_language_data): Remove la_array_ordering
974 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
0d201fa4
AB
9802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
981
982 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
983 initializer.
984 * c-lang.c (c_language_data): Likewise.
985 (cplus_language_data): Likewise.
986 (asm_language_data): Likewise.
987 (minimal_language_data): Likewise.
988 * d-lang.c (d_language_data): Likewise.
989 * f-lang.c (f_language_data): Likewise.
990 (f_language::case_sensitivity): New member function.
991 * go-lang.c (go_language_data): Remove la_case_sensitivity
992 initializer.
993 * language.c (enum case_mode): Moved here from language.h.
994 (case_mode): Make static.
995 (show_case_command): Update for case_sensitivity being a method.
996 (set_case_command): Likewise.
997 (set_range_case): Likewise.
998 (unknown_language_data): Remove la_case_sensitivity initializer.
999 (auto_language_data): Likewise.
1000 * language.h (case_mode): Delete, move enum declaration to
1001 language.c.
1002 (language_data): Delete la_case_sensitivity field.
1003 (language_defn::case_sensitivity): New member function.
1004 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1005 initializer.
1006 * objc-lang.c (objc_language_data): Likewise.
1007 * opencl-lang.c (opencl_language_data): Likewise.
1008 * p-lang.c (pascal_language_data): Likewise.
1009 * rust-lang.c (rust_language_data): Likewise.
1010
efdf6a73
AB
10112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1012
1013 * ada-lang.c (ada_language_data): Remove la_range_check
1014 initializer.
1015 * c-lang.c (c_language_data): Likewise.
1016 (cplus_language_data): Likewise.
1017 (asm_language_data): Likewise.
1018 (minimal_language_data): Likewise.
1019 * d-lang.c (d_language_data): Likewise.
1020 * f-lang.c (f_language_data): Likewise.
1021 (f_language::range_checking_on_by_default): New member function.
1022 * go-lang.c (go_language_data): Remove la_range_check initializer.
1023 * language.c (enum range_mode): Moved here from language.h.
1024 (range_mode): Made static.
1025 (show_range_command): Update to use
1026 range_checking_on_by_default.
1027 (set_range_command): Likewise.
1028 (set_range_case): Likewise.
1029 (unknown_language_data): Remove la_range_check initializer.
1030 (auto_language_data): Likewise.
1031 * language.h (range_mode): Delete. Enum definition moved to
1032 language.c.
1033 (language_data): Remove la_range_check field.
1034 (language_defn::range_checking_on_by_default): New member
1035 function.
1036 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1037 (m2_language::range_checking_on_by_default): New member function.
1038 * objc-lang.c (objc_language_data): Remove la_range_check
1039 initializer.
1040 * opencl-lang.c (opencl_language_data): Likewise.
1041 * p-lang.c (pascal_language_data): Likewise.
1042 (pascal_language::range_checking_on_by_default): New member
1043 function.
1044 * rust-lang.c (rust_language_data): Remove la_range_check
1045 initializer.
1046 (rust_language::range_checking_on_by_default): New member
1047 function.
1048
bf92aec5
AB
10492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1050
1051 * dwarf2/read.c (dwarf2_physname): Remove special case for
1052 language_go.
1053 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1054 member function.
1055
d3355e4d
AB
10562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1057
1058 * ada-lang.c (ada_language_data): Remove
1059 la_store_sym_names_in_linkage_form_p initializer.
1060 (ada_language::store_sym_names_in_linkage_form_p): New member
1061 function.
1062 * c-lang.c (c_language_data): Remove
1063 la_store_sym_names_in_linkage_form_p initializer.
1064 (c_language::store_sym_names_in_linkage_form_p): New member
1065 function.
1066 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1067 initializer.
1068 (asm_language_data): Likewise.
1069 (asm_language::store_sym_names_in_linkage_form_p): New member
1070 function.
1071 (minimal_language_data): Remove
1072 la_store_sym_names_in_linkage_form_p initializer.
1073 (minimal_language::store_sym_names_in_linkage_form_p): New member
1074 function.
1075 * d-lang.c (d_language_data): Remove
1076 la_store_sym_names_in_linkage_form_p initializer.
1077 * dwarf2/read.c (dwarf2_physname): Update call to
1078 store_sym_names_in_linkage_form_p.
1079 * f-lang.c (f_language_data): Remove
1080 la_store_sym_names_in_linkage_form_p initializer.
1081 * go-lang.c (go_language_data): Remove
1082 la_store_sym_names_in_linkage_form_p initializer.
1083 * language.c (unknown_language_data): Remove
1084 la_store_sym_names_in_linkage_form_p initializer.
1085 (unknown_language::store_sym_names_in_linkage_form_p): New member
1086 function.
1087 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1088 initializer.
1089 (auto_language::store_sym_names_in_linkage_form_p): New member
1090 function.
1091 * language.h (language_data): Remove
1092 la_store_sym_names_in_linkage_form_p member variable.
1093 (language_defn::store_sym_names_in_linkage_form_p): New member
1094 function.
1095 * m2-lang.c (m2_language_data): Remove
1096 la_store_sym_names_in_linkage_form_p initializer.
1097 * objc-lang.c (objc_language_data): Likewise.
1098 * opencl-lang.c (opencl_language_data): Likewise.
1099 * p-lang.c (pascal_language_data): Likewise.
1100 * rust-lang.c (rust_language_data): Likewise.
1101
22c12a6c
AB
11022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1103
1104 * ada-lang.c (ada_language_data): Remove string_lower_bound
1105 initializer.
1106 * c-lang.c (c_language_data): Likewise.
1107 (cplus_language_data): Likewise.
1108 (asm_language_data): Likewise.
1109 (minimal_language_data): Likewise.
1110 * d-lang.c (d_language_data): Likewise.
1111 * f-lang.c (f_language_data): Likewise.
1112 * go-lang.c (go_language_data): Likewise.
1113 * language.c (unknown_language_data): Likewise.
1114 (auto_language_data): Likewise.
1115 * language.h (language_data): Remove string_lower_bound field.
1116 (language_defn::string_lower_bound): New member function.
1117 * m2-lang.c (m2_language_data): Remove string_lower_bound
1118 initializer.
1119 (m2_language::string_lower_bound): New member function.
1120 * objc-lang.c (objc_language_data): Remove string_lower_bound
1121 initializer.
1122 * opencl-lang.c (opencl_language_data): Likewise.
1123 * p-lang.c (pascal_language_data): Likewise.
1124 * rust-lang.c (rust_language_data): Likewise.
1125 * valops.c (value_cstring): Update call to string_lower_bound.
1126 (value_string): Likewise.
1127 * value.c (allocate_repeated_value): Likewise.
1128
1c236ddd
AB
11292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1130
1131 * valops.c (value_repeat): Fix incorrect argument name in comment.
1132
67bd3fd5
AB
11332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1134
1135 * ada-lang.c (ada_language_data): Remove c_style_arrays
1136 initializer.
1137 (ada_language::c_style_arrays_p): New member fuction.
1138 * c-lang.c (c_language_data): Remove c_style_arrays
1139 initializer.
1140 (cplus_language_data): Likewise.
1141 (asm_language_data): Likewise.
1142 (minimal_language_data): Likewise.
1143 * d-lang.c (d_language_data): Likewise.
1144 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1145 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1146 (f_language::c_style_arrays_p): New member function.
1147 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1148 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1149 * language.c (unknown_language_data): Remove c_style_arrays
1150 initializer.
1151 (auto_language_data): Likewise.
1152 * language.h (language_data): Remove c_style_arrays field.
1153 (language_defn::c_style_arrays_p): New member function.
1154 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1155 (m2_language::c_style_arrays_p): New member function.
1156 * objc-lang.c (objc_language_data): Remove c_style_arrays
1157 initializer.
1158 * opencl-lang.c (opencl_language_data): Likewise.
1159 * p-lang.c (pascal_language_data): Likewise.
1160 * rust-lang.c (rust_language_data): Likewise.
1161 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1162 and update local variable to a bool.
1163 * valops.c (value_cast): Update call to c_style_arrays_p.
1164 (value_array): Likewise.
1165 * value.c (coerce_array): Likewise.
1166
85967615
AB
11672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1168
1169 * ada-lang.c (ada_language_data): Remove la_language initializer.
1170 * c-lang.c (c_language_data): Likewise.
1171 (cplus_language_data): Likewise.
1172 (asm_language_data): Likewise.
1173 (minimal_language_data): Likewise.
1174 * d-lang.c (d_language_data): Likewise.
1175 * f-lang.c (f_language_data): Likewise.
1176 * go-lang.c (go_language_data): Likewise.
1177 * language.c (unknown_language_data): Likewise.
1178 (auto_language_data): Likewise.
1179 * language.h (language_data): Remove la_language field.
1180 (language_defn::language_defn): Initialise la_language field.
1181 (language_defn::la_language): New member variable.
1182 * m2-lang.c (m2_language_data): Remove la_language field.
1183 * objc-lang.c (objc_language_data): Likewise.
1184 * opencl-lang.c (opencl_language_data): Likewise.
1185 * p-lang.c (pascal_language_data): Likewise.
1186 * rust-lang.c (rust_language_data): Likewise.
1187
e171d6f1
AB
11882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1189
1190 * ada-lang.c (ada_extensions): Delete, moved into
1191 ada_language::filename_extensions.
1192 (ada_language_data): Remove la_filename_extensions initializer.
1193 (ada_language::filename_extensions): New member function.
1194 * c-lang.c (c_extensions): Delete, moved into
1195 c_language::filename_extensions.
1196 (c_language_data): Remove la_filename_extensions initializer.
1197 (c_language::filename_extensions): New member function.
1198 (cplus_extensions): Delete, moved into
1199 cplus_language::filename_extensions.
1200 (cplus_language_data): Remove la_filename_extensions initializer.
1201 (cplus_language::filename_extensions): New member function.
1202 (asm_extensions): Delete, moved into
1203 asm_language::filename_extensions.
1204 (asm_language_data): Remove la_filename_extensions initializer.
1205 (asm_language::filename_extensions): New member function.
1206 (minimal_language_data): Remove la_filename_extensions
1207 initializer.
1208 * d-lang.c (d_extensions): Delete, moved into
1209 d_language::filename_extensions.
1210 (d_language_data): Remove la_filename_extensions initializer.
1211 (d_language::filename_extensions): New member function.
1212 * f-lang.c (f_extensions): Delete, moved into
1213 f_language::filename_extensions.
1214 (f_language_data): Remove la_filename_extensions initializer.
1215 (f_language::filename_extensions): New member function.
1216 * go-lang.c (go_language_data): Remove la_filename_extensions
1217 initializer.
1218 * language.c (add_set_language_command): Update now that
1219 filename_extensions returns a vector.
1220 (unknown_language_data): Remove la_filename_extensions
1221 initializer.
1222 (auto_language_data): Likewise.
1223 * language.h (language_data): Remove la_filename_extensions field.
1224 (language_defn::filename_extensions): New member function.
1225 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1226 initializer.
1227 * objc-lang.c (objc_extensions): Delete, moved into
1228 objc_language::filename_extensions.
1229 (objc_language_data): Remove la_filename_extensions initializer.
1230 (objc_language::filename_extensions): New member function.
1231 * opencl-lang.c (opencl_language_data): Remove
1232 la_filename_extensions initializer.
1233 * p-lang.c (pascal_extensions): Delete, moved into
1234 pascal_language::filename_extensions.
1235 (pascal_language_data): Remove la_filename_extensions initializer.
1236 (pascal_language::filename_extensions): New member function.
1237 * rust-lang.c (rust_extensions): Delete, moved into
1238 rust_language::filename_extensions.
1239 (rust_language_data): Remove la_filename_extensions initializer.
1240 (rust_language::filename_extensions): New member function.
1241 * symfile.c (add_filename_language): Add new assert.
1242
6f7664a9
AB
12432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * ada-lang.c (ada_language_data): Remove la_name and
1246 la_natural_name initializers.
1247 (ada_language::name): New member function.
1248 (ada_language::natural_name): New member function.
1249 * c-lang.c (c_language_data): Remove la_name and
1250 la_natural_name initializers.
1251 (c_language::name): New member function.
1252 (c_language::natural_name): New member function.
1253 (cplus_language_data): Remove la_name and
1254 la_natural_name initializers.
1255 (cplus_language::name): New member function.
1256 (cplus_language::natural_name): New member function.
1257 (asm_language_data): Remove la_name and
1258 la_natural_name initializers.
1259 (asm_language::name): New member function.
1260 (asm_language::natural_name): New member function.
1261 (minimal_language_data): Remove la_name and
1262 la_natural_name initializers.
1263 (minimal_language::name): New member function.
1264 (minimal_language::natural_name): New member function.
1265 * compile/compile.c (compile_to_object): Update call to
1266 lanugage_defn::name.
1267 * d-lang.c (d_language_data): Remove la_name and
1268 la_natural_name initializers.
1269 (d_language::name): New member function.
1270 (d_language::natural_name): New member function.
1271 * expprint.c (print_subexp_standard): Update call to
1272 language_defn::name.
1273 (dump_raw_expression): Likewise
1274 (dump_prefix_expression): Likewise.
1275 * f-lang.c (f_language_data): Remove la_name and
1276 la_natural_name initializers.
1277 (f_language::name): New member function.
1278 (f_language::natural_name): New member function.
1279 * go-lang.c (go_language_data): Remove la_name and
1280 la_natural_name initializers.
1281 (go_language::name): New member function.
1282 (go_language::natural_name): New member function.
1283 * language.c (show_language_command): Update call to
1284 language_defn::name.
1285 (set_language_command): Likewise.
1286 (language_enum): Likewise.
1287 (language_str): Likewise.
1288 (add_set_language_command): Likewise, use
1289 language_defn::natural_name in the doc string.
1290 (unknown_language_data): Remove la_name and
1291 la_natural_name initializers.
1292 (unknown_language::name): New member function.
1293 (unknown_language::natural_name): New member function.
1294 (auto_language_data): Remove la_name and
1295 la_natural_name initializers.
1296 (auto_language::name): New member function.
1297 (auto_language::natural_name): New member function.
1298 (language_lookup_primitive_type_as_symbol): Update call to
1299 language_defn::name.
1300 * language.h (language_data): Remove la_name and la_natural_name
1301 member variables.
1302 (language_defn::name): New member function.
1303 (language_defn::natural_name): New member function.
1304 * m2-lang.c (m2_language_data): Remove la_name and
1305 la_natural_name initializers.
1306 (m2_language::name): New member function.
1307 (m2_language::natural_name): New member function.
1308 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1309 language_defn::natural_name.
1310 * objc-lang.c (objc_language_data): Remove la_name and
1311 la_natural_name initializers.
1312 (objc_language::name): New member function.
1313 (objc_language::natural_name): New member function.
1314 * opencl-lang.c (opencl_language_data): Remove la_name and
1315 la_natural_name initializers.
1316 (opencl_language::name): New member function.
1317 (opencl_language::natural_name): New member function.
1318 * p-lang.c (pascal_language_data): Remove la_name and
1319 la_natural_name initializers.
1320 (pascal_language::name): New member function.
1321 (pascal_language::natural_name): New member function.
1322 * rust-lang.c (rust_language_data): Remove la_name and
1323 la_natural_name initializers.
1324 (rust_language::name): New member function.
1325 (rust_language::natural_name): New member function.
1326 * symtab.c (lookup_language_this): Update call to
1327 language_defn::name.
1328
5bae7c4e
AB
13292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1330
1331 * ada-lang.c (ada_language_data): Remove la_name_of_this
1332 initializer.
1333 * ax-gdb.c (gen_expr): Update call to name_of_this.
1334 * c-exp.y (classify_name): Likewise.
1335 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1336 (cplus_language_data): Likewise.
1337 (cplus_language::name_of_this): New member function.
1338 (asm_language_data): Remove la_name_of_this initializer.
1339 (minimal_language_data): Likewise.
1340 * d-lang.c (d_language_data): Likewise.
1341 (d_language::name_of_this): New member function.
1342 * expprint.c (print_subexp_standard): Update call to name_of_this.
1343 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1344 * go-lang.c (go_language_data): Likewise.
1345 * language.c (unknown_language_data): Likewise.
1346 (unknown_language::name_of_this): New member function.
1347 (auto_language_data): Remove la_name_of_this initializer.
1348 (auto_language::name_of_this): New member function.
1349 * language.h (language_data): Delete la_name_of_this member
1350 variable.
1351 (language_defn::name_of_this): New member function.
1352 * m2-lang.c (m2_language_data): Remove la_name_of_this
1353 initializer.
1354 * objc-lang.c (objc_language_data): Likewise.
1355 (objc_language::name_of_this): New member function.
1356 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1357 initializer.
1358 * p-lang.c (pascal_language_data): Likewise.
1359 (pascal_language::name_of_this): New member function.
1360 * rust-lang.c (rust_language_data): Remove la_name_of_this
1361 initializer.
1362 * symtab.c (lookup_language_this): Update call to name_of_this.
1363 (lookup_symbol_aux): Likewise.
1364 * valops.c (value_of_this): Likewise.
1365
22e3f3ed
AB
13662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1367
1368 * ada-lang.c (ada_language_data): Remove
1369 la_struct_too_deep_ellipsis initializer.
1370 (ada_language::struct_too_deep_ellipsis): New member function.
1371 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1372 initializer.
1373 (cplus_language_data): Likewise.
1374 (asm_language_data): Likewise.
1375 (minimal_language_data): Likewise.
1376 * cp-valprint.c (cp_print_value): Update call to
1377 struct_too_deep_ellipsis.
1378 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1379 initializer.
1380 * f-lang.c (f_language_data): Likewise.
1381 (f_language::struct_too_deep_ellipsis): New member function.
1382 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1383 initializer.
1384 * language.c (unknown_language_data): Likewise.
1385 (auto_language_data): Likewise.
1386 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1387 member variable.
1388 (language_defn::struct_too_deep_ellipsis): New member function.
1389 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1390 initializer.Q
1391 * objc-lang.c (objc_language_data): Likewise.
1392 * opencl-lang.c (opencl_language_data): Likewise.
1393 * p-lang.c (pascal_language_data): Likewise.
1394 * rust-lang.c (rust_language_data): Likewise.
1395 * valprint.c (val_print_check_max_depth): Update call to
1396 struct_too_deep_ellipsis.
1397
ed29e1c7
FW
13982020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1399
1400 * MAINTAINERS (Write After Approval): Add myself.
1401
12d8f940
TT
14022020-09-15 Tom Tromey <tom@tromey.com>
1403
1404 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1405 Remove.
1406
6b5a7bc7
TT
14072020-09-15 Tom Tromey <tom@tromey.com>
1408
1409 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1410 and TYPE_CODE_METHODPTR cases.
1411 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1412 (c_value_print_inner): Update.
1413 * valprint.c (generic_value_print_memberptr): New function, from
1414 c_value_print_memberptr.
1415 (generic_value_print): Use it. Call cplus_print_method_ptr.
1416
47f0e2ff
TT
14172020-09-15 Tom Tromey <tromey@adacore.com>
1418
1419 * python/python-internal.h (PyInt_FromLong): Remove define.
1420 * python/py-value.c (convert_value_from_python): Use
1421 gdb_py_object_from_longest.
1422 * python/py-type.c (typy_get_code): Use
1423 gdb_py_object_from_longest.
1424 * python/py-symtab.c (salpy_get_line): Use
1425 gdb_py_object_from_longest.
1426 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1427 gdb_py_object_from_longest.
1428 * python/py-record.c (recpy_gap_reason_code): Use
1429 gdb_py_object_from_longest.
1430 * python/py-record-btrace.c (recpy_bt_insn_size)
1431 (recpy_bt_func_level, btpy_list_count): Use
1432 gdb_py_object_from_longest.
1433 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1434 gdb_py_object_from_longest. Fix error handling.
1435 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1436 gdb_py_object_from_longest.
1437 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1438 gdb_py_object_from_longest.
1439 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1440 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1441 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1442
512116ce
TT
14432020-09-15 Tom Tromey <tromey@adacore.com>
1444
1445 * python/python.c (gdbpy_parameter_value): Use
1446 gdb_py_object_from_ulongest.
1447
4ab1029c
TT
14482020-09-15 Tom Tromey <tromey@adacore.com>
1449
1450 * python/py-infevents.c (create_register_changed_event_object):
1451 Use gdb_py_object_from_longest.
1452 * python/py-exitedevent.c (create_exited_event_object): Use
1453 gdb_py_object_from_longest.
1454
062534d4
TT
14552020-09-15 Tom Tromey <tromey@adacore.com>
1456
1457 * python/python.c (gdbpy_parameter_value): Use
1458 gdb_py_object_from_longest.
1459 * python/py-type.c (convert_field, typy_range): Use
1460 gdb_py_object_from_longest.
1461 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1462 gdb_py_object_from_longest.
1463 * python/py-lazy-string.c (stpy_get_length): Use
1464 gdb_py_object_from_longest.
1465 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1466 gdb_py_object_from_longest.
1467 * python/py-infevents.c (create_memory_changed_event_object): Use
1468 gdb_py_object_from_longest.
1469 * python/py-inferior.c (infpy_get_num): Use
1470 gdb_py_object_from_longest.
1471 (infpy_get_pid): Likewise.
1472
d1cab987
TT
14732020-09-15 Tom Tromey <tromey@adacore.com>
1474
1475 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1476 defines.
1477 * python/py-value.c (valpy_long): Use
1478 gdb_py_object_from_ulongest.
1479 * python/py-symtab.c (salpy_get_pc): Use
1480 gdb_py_object_from_ulongest.
1481 (salpy_get_last): Likewise.
1482 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1483 gdb_py_object_from_ulongest.
1484 * python/py-lazy-string.c (stpy_get_address): Use
1485 gdb_py_object_from_ulongest.
1486 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1487 * python/py-arch.c (archpy_disassemble): Use
1488 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1489 error handling.
1490
4bde49dc
TT
14912020-09-15 Tom Tromey <tromey@adacore.com>
1492
1493 * python/python-internal.h (gdb_py_long_from_longest): Remove
1494 defines.
1495 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1496 * python/py-type.c (convert_field, typy_get_sizeof): Use
1497 gdb_py_object_from_longest.
1498 * python/py-record-btrace.c (btpy_list_index): Use
1499 gdb_py_object_from_longest.
1500
37431074
TT
15012020-09-15 Tom Tromey <tromey@adacore.com>
1502
1503 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1504 * python/py-record.c (recpy_element_number): Use
1505 gdb_py_object_from_longest.
1506 (recpy_gap_number): Likewise.
1507
cbe25684
TT
15082020-09-15 Tom Tromey <tromey@adacore.com>
1509
1510 * top.c (ui::ui): Update.
1511 (highest_ui_num): Remove.
1512 * top.h (struct ui) <num>: Remove.
1513
db92ac45
TT
15142020-09-15 Tom Tromey <tromey@adacore.com>
1515
1516 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1517 * ui-style.c (ansi_regex_text): Now array.
1518 * rust-exp.y (number_regex_text): Now array.
1519 * linespec.c (linespec_quote_characters): Now array.
1520 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1521 Now arrays.
1522
d2b31b67
SM
15232020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1524
1525 * debuginfod-support.c (debuginfod_client_deleter): New.
1526 (debuginfod_client_up): New.
1527 (debuginfod_init): Return debuginfod_client_up.
1528 (debuginfod_source_query): Adjust.
1529 (debuginfod_debuginfo_query): Adjust.
1530
3246bd8e
SM
15312020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1532
1533 * debuginfod-support.c (debuginfod_source_query): Use
1534 make_unique_xstrdup.
1535
10242f36
SM
15362020-09-14 Simon Marchi <simon.marchi@efficios.com>
1537
1538 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1539 with `type::instance_flags`.
1540
e1044e6a
MM
15412020-09-14 Michael Mullin <masmullin@gmail.com>
1542
1543 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1544 Remove baton parameter.
1545
04902b09
PA
15462020-09-14 Pedro Alves <pedro@palves.net>
1547
1548 * Makefile.in (SELFTESTS_SRCS): Add
1549 unittests/enum-flags-selftests.c.
1550 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1551 btrace_function_flags instead of enum btrace_function_flag.
1552 * compile/compile-c-types.c (convert_qualified): Use
1553 enum_flags::raw.
1554 * compile/compile-cplus-symbols.c (convert_one_symbol)
1555 (convert_symbol_bmsym):
1556 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1557 (compile_cplus_convert_struct_or_union_methods)
1558 (compile_cplus_instance::convert_qualified_base):
1559 * go-exp.y (parse_string_or_char): Add cast to int.
1560 * unittests/enum-flags-selftests.c: New file.
1561 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1562 type to btrace_thread_flags from btrace_thread_flag.
1563 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1564 local's type to btrace_thread_flags from btrace_thread_flag. Add
1565 cast in DEBUG call.
1566
69896a2c
PA
15672020-09-14 Pedro Alves <pedro@palves.net>
1568
1569 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1570 * gdbtypes.c (address_space_name_to_int): Rename to ...
1571 (address_space_name_to_type_instance_flags): ... this.
1572 (address_space_int_to_name): Rename to ...
1573 (address_space_type_instance_flags_to_name): ... this.
1574 * gdbtypes.h (address_space_name_to_int): Rename to ...
1575 (address_space_name_to_type_instance_flags): ... this.
1576 (address_space_int_to_name): Rename to ...
1577 (address_space_type_instance_flags_to_name): ... this.
1578 * type-stack.c (type_stack::insert): Adjust to rename.
1579 * type-stack.h (type_stack::insert): Likewise.
1580
314ad88d
PA
15812020-09-14 Pedro Alves <pedro@palves.net>
1582 Andrew Burgess <andrew.burgess@embecosm.com>
1583
1584 * avr-tdep.c (avr_address_class_type_flags): Return
1585 type_instance_flags.
1586 (avr_address_class_type_flags_to_name): Take a
1587 type_instance_flags.
1588 (avr_address_class_name_to_type_flags): Return bool and take a
1589 type_instance_flags.
1590 * d-lang.c (build_d_types): Use type::set_instance_flags.
1591 * ft32-tdep.c (ft32_address_class_type_flags): Return
1592 type_instance_flags.
1593 (ft32_address_class_type_flags_to_name): Take a
1594 type_instance_flags.
1595 (ft32_address_class_name_to_type_flags): Return bool and take a
1596 type_instance_flags.
1597 (ft32_gdbarch_init): Use type::set_instance_flags.
1598 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1599 * gdbarch.h, gdbarch.c: Regenerate.
1600 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1601 (address_class_name_to_type_flags): Use type_instance_flags and
1602 bool.
1603 * gdbtypes.c (address_space_name_to_int)
1604 (address_space_int_to_name, make_qualified_type): Use
1605 type_instance_flags.
1606 (make_qualified_type): Use type_instance_flags and
1607 type::set_instance_flags.
1608 (make_type_with_address_space, make_cv_type, make_vector_type)
1609 (check_typedef): Use type_instance_flags.
1610 (recursive_dump_type): Cast type_instance_flags to unsigned for
1611 printing.
1612 (copy_type_recursive): Use type::set_instance_flags.
1613 (gdbtypes_post_init): Use type::set_instance_flags.
1614 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1615 <m_instance_flags>: ... this.
1616 <instance_flags, set_instance_flags>: New methods.
1617 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1618 (SET_TYPE_INSTANCE_FLAGS): New.
1619 (address_space_name_to_int, address_space_int_to_name)
1620 (make_type_with_address_space): Pass flags using
1621 type_instance_flags instead of int.
1622 * stabsread.c (cleanup_undefined_types_noname): Use
1623 type::set_instance_flags.
1624 * s390-tdep.c (s390_address_class_type_flags): Return
1625 type_instance_flags.
1626 (s390_address_class_type_flags_to_name): Take a
1627 type_instance_flags.
1628 (s390_address_class_name_to_type_flags): Return bool and take a
1629 type_instance_flags.
1630 * type-stack.c (type_stack::follow_types): Use
1631 type_instance_flags.
1632 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1633
27087b7f
TT
16342020-09-14 Tom Tromey <tromey@adacore.com>
1635
1636 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1637 * x86-tdep.c (x86_is_thunk_register_name)
1638 (x86_in_indirect_branch_thunk): Update.
1639 * sparc64-tdep.c (sparc64_fpu_register_names)
1640 (sparc64_cp0_register_names, sparc64_register_names)
1641 (sparc64_pseudo_register_names): Now const.
1642 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1643 cp0_registers_num>: Now const.
1644 * sparc-tdep.c (sparc_core_register_names)
1645 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1646 (sparc32_pseudo_register_names): Now const.
1647 (validate_tdesc_registers): Update.
1648 * rust-lang.c (rust_extensions): Now const.
1649 * p-lang.c (p_extensions): Now const.
1650 * objc-lang.c (objc_extensions): Now const.
1651 * nto-tdep.c (nto_thread_state_str): Now const.
1652 * moxie-tdep.c (moxie_register_names): Now const.
1653 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1654 Now const.
1655 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1656 (mips_linux_reg_names): Now const.
1657 (mips_gdbarch_init): Update.
1658 * microblaze-tdep.c (microblaze_register_names): Now const.
1659 * m68k-tdep.c (m68k_register_names): Now const.
1660 * m32r-tdep.c (m32r_register_names): Now const.
1661 * ia64-tdep.c (ia64_register_names): Now const.
1662 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1663 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1664 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1665 ymm_avx512_register_names, pkeys_register_names>: Now const.
1666 * i386-tdep.c (i386_register_names, i386_zmm_names)
1667 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1668 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1669 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1670 * f-lang.c (f_extensions): Now const.
1671 * d-lang.c (d_extensions): Now const.
1672 * csky-tdep.c (csky_register_names): Now const.
1673 * charset.c (default_charset_names, charset_enum): Now const.
1674 (_initialize_charset): Update.
1675 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1676 const.
1677 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1678 (bsd_uthread_solib_loaded): Update.
1679 (bsd_uthread_state): Now const.
1680 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1681 (amd64_ymm_avx512_names, amd64_ymmh_names)
1682 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1683 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1684 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1685 (amd64_dword_names): Now const.
1686 * agent.c (can_use_agent_enum): Now const.
1687 * ada-tasks.c (task_states, long_task_states): Now const.
1688 * ada-lang.c (known_runtime_file_name_patterns)
1689 (known_auxiliary_function_name_patterns, attribute_names)
1690 (standard_exc, ada_extensions): Now const.
1691
89806626
SM
16922020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1693
1694 * bcache.h (struct bcache) <bcache>: Remove constructor.
1695 <m_hash_function, m_compare_function>: Remove.
1696 <~bcache>: Make virtual.
1697 <compare>: Remove static method, introduce virtual method.
1698 <default_hash>: Remove.
1699 <hash>: New virtual method.
1700 * bcache.c (bcache::expand_hash_table): Update.
1701 (bcache::insert): Update.
1702 (bcache::hash): New.
1703 (bcache::compare): Update comment and parameter names.
1704 * gdbtypes.c (types_deeply_equal): Update.
1705 * psymtab.h (struct psymbol_bcache): New struct.
1706 (class psymtab_storage) <psymtab_storage>: Make default.
1707 <psymbol_cache>: Change type to psymbol_bcache.
1708 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1709 (psymbol_hash): Change to...
1710 (psymbol_bcache::hash): ... this.
1711 (psymbol_compare): Change to...
1712 (psymbol_bcache::compare): ... this.
1713
677c92fe
SM
17142020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1715
1716 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1717 checking for initial lwp.
1718
3eba3a01
TT
17192020-09-14 Tom Tromey <tromey@adacore.com>
1720
1721 * m68k-tdep.c (m68k_extract_return_value): Use
1722 pointer_result_regnum.
1723 (m68k_store_return_value): Likewise.
1724 (m68k_reg_struct_return_p): Handle vectors and arrays.
1725 (m68k_return_value): Handle arrays.
1726 (m68k_svr4_return_value): Fix single-element aggregate handling.
1727 Handle long double. Adjust for embedded ABI.
1728 (m68k_svr4_init_abi): Set pointer_result_regnum.
1729 (m68k_embedded_init_abi): New function.
1730 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1731 (m68k_osabi_sniffer): New function.
1732 (_initialize_m68k_tdep): Register osabi sniffer.
1733 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1734 member.
1735
33f4dd48
SM
17362020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1737
1738 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1739 with gdb::unique_xmalloc_ptr<char>.
1740
8400a90d
SM
17412020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1742
1743 * xml-support.h (xml_fetch_another): Change type to be a
1744 function_view.
1745 (xml_process_xincludes): Remove baton parameter.
1746 (xml_fetch_content_from_file): Change baton parameter to
1747 dirname.
1748 * xml-support.c (struct xinclude_parsing_data)
1749 <xinclude_parsing_data>: Remove baton parameter.
1750 <fetcher_baton>: Remove.
1751 (xinclude_start_include): Adjust.
1752 (xml_process_xincludes): Adjust.
1753 (xml_fetch_content_from_file): Replace baton parameter with
1754 dirname.
1755 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1756 (xml_init_syscalls_info): Use a lambda.
1757 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1758 (file_read_description_xml): Use a lambda.
1759 (fetch_available_features_from_target): Change baton parameter
1760 to target_ops.
1761 (target_read_description_xml): Use a lambda.
1762 (target_fetch_description_xml): Use a lambda.
1763 (string_read_description_xml): Update.
1764
04f5bab2
SM
17652020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1766
1767 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1768 uses with type::endianity_is_not_default.
1769
db558e34
SM
17702020-09-14 Simon Marchi <simon.marchi@efficios.com>
1771
1772 * gdbtypes.h (struct type) <endianity_is_not_default,
1773 set_endianity_is_not_default>: New methods.
1774 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1775 type::endianity_is_not_default, change all write call sites to
1776 use type::set_endianity_is_not_default.
1777
22c4c60c
SM
17782020-09-14 Simon Marchi <simon.marchi@efficios.com>
1779
1780 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1781 uses with type::is_fixed_instance.
1782
9cdd0d12
SM
17832020-09-14 Simon Marchi <simon.marchi@efficios.com>
1784
1785 * gdbtypes.h (struct type) <is_fixed_instance,
1786 set_is_fixed_instance>: New methods.
1787 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1788 write call sites to use type::set_is_fixed_instance.
1789
0becda7a
SM
17902020-09-14 Simon Marchi <simon.marchi@efficios.com>
1791
1792 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1793 uses with type::is_gnu_ifunc.
1794
03cc7249
SM
17952020-09-14 Simon Marchi <simon.marchi@efficios.com>
1796
1797 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1798 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1799 use type::set_is_gnu_ifunc.
1800
3f46044c
SM
18012020-09-14 Simon Marchi <simon.marchi@efficios.com>
1802
1803 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1804 uses with type::stub_is_supported.
1805
9baccff6
SM
18062020-09-14 Simon Marchi <simon.marchi@efficios.com>
1807
1808 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1809 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1810 use type::set_stub_is_supported.
1811
bd63c870
SM
18122020-09-14 Simon Marchi <simon.marchi@efficios.com>
1813
1814 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1815 uses with type::is_vector.
1816
2062087b
SM
18172020-09-14 Simon Marchi <simon.marchi@efficios.com>
1818
1819 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1820 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1821 use type::set_is_vector.
1822
a409645d
SM
18232020-09-14 Simon Marchi <simon.marchi@efficios.com>
1824
1825 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1826 uses with type::has_varargs.
1827
1d6286ed
SM
18282020-09-14 Simon Marchi <simon.marchi@efficios.com>
1829
1830 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1831 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1832 use type::set_has_varargs.
1833
7f9f399b
SM
18342020-09-14 Simon Marchi <simon.marchi@efficios.com>
1835
1836 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1837 uses with type::is_prototyped.
1838
27e69b7a
SM
18392020-09-14 Simon Marchi <simon.marchi@efficios.com>
1840
1841 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1842 New methods.
1843 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1844 call sites to use type::set_is_prototyped.
1845
d2183968
SM
18462020-09-14 Simon Marchi <simon.marchi@efficios.com>
1847
1848 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1849 uses with type::target_is_stub.
1850
8f53807e
SM
18512020-09-14 Simon Marchi <simon.marchi@efficios.com>
1852
1853 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1854 New methods.
1855 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1856 sites to use type::set_target_is_stub.
1857
e46d3488
SM
18582020-09-14 Simon Marchi <simon.marchi@efficios.com>
1859
1860 * gdbtypes.h (TYPE_STUB): Remove, replace all
1861 uses with type::is_stub.
1862
b4b73759
SM
18632020-09-14 Simon Marchi <simon.marchi@efficios.com>
1864
1865 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1866 (TYPE_STUB): Use type::is_stub, change all write call sites to
1867 use type::set_is_stub.
1868
20ce4123
SM
18692020-09-14 Simon Marchi <simon.marchi@efficios.com>
1870
1871 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1872 type::has_no_signedness.
1873
15152a54
SM
18742020-09-14 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * gdbtypes.h (struct type) <has_no_signedness,
1877 set_has_no_signedness>: New methods.
1878 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1879 call sites to use type::set_has_no_signedness.
1880
c6d940a9
SM
18812020-09-14 Simon Marchi <simon.marchi@efficios.com>
1882
1883 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1884 type::is_unsigned.
1885
653223d3
SM
18862020-09-14 Simon Marchi <simon.marchi@efficios.com>
1887
1888 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1889 methods.
1890 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1891 sites to use type::set_is_unsigned.
1892
55ea94da 18932020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 1894 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 1895
e851246a
SM
1896 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1897 pointer and stack frame offset when unwinding.
55ea94da 1898
6791b117
PA
18992020-09-13 Pedro Alves <pedro@palves.net>
1900
1901 * NEWS: Document "-break-insert --qualified".
1902 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1903
77f2120b
PA
19042020-09-13 Pedro Alves <pedro@palves.net>
1905
1906 * linespec.c (classify_mtype, compare_msyms): Delete.
1907 (search_minsyms_for_name): Remove classification logic. Instead
1908 filter out trampoline symbols if we also found an external
1909 function of the same name.
1910
ed6a896c
JB
19112020-09-13 Joel Brobecker <brobecker@adacore.com>
1912
1913 * NEWS: Create a new section for the next release branch.
1914 Rename the section of the current branch, now that it has
1915 been cut.
1916
32aea73e
JB
19172020-09-13 Joel Brobecker <brobecker@adacore.com>
1918
1919 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1920 * version.in: Bump version to 11.0.50.DATE-git.
1921
8087c3fa
JB
19222020-09-12 Joel Brobecker <brobecker@adacore.com>
1923
1924 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1925
2a67f09d
FW
19262020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1927 Felix Willgerodt <Felix.Willgerodt@intel.com>
1928
1929 * gdbarch.sh: Added bfloat16 type.
1930 * gdbarch.c: Regenerated.
1931 * gdbarch.h: Regenerated.
1932 * gdbtypes.c (floatformats_bfloat16): New struct.
1933 (gdbtypes_post_init): Add builtin_bfloat16.
1934 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1935 (floatformats_bfloat16): New struct.
1936 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1937 (i386_ymm_type): Add field "v16_bfloat16"
1938 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1939 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1940 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1941 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1942 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1943 * features/i386/64bit-avx512.c: Regenerated.
1944 * features/i386/64bit-sse.xml: Add bfloat16 type.
1945 * features/i386/64bit-sse.c: Regenerated.
1946
1347d111
FW
19472020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1948
1949 * i386-tdep.c (i386_zmm_type): Fix field names.
1950 (i386_ymm_type): Fix field names.
1951
7a4e8e7d
TBA
19522020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1953
1954 * breakpoint.c: Fix typo in the help message of the
1955 "set breakpoint condition-evaluation" command.
1956
cf4ac4be
KR
19572020-09-10 Kamil Rytarowski <n54@gmx.com>
1958
1959 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1960 * (nbsd_nat_target::pid_to_exec_file)
1961 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1962 (nbsd_nat_target::post_startup_inferior)
1963 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1964 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1965 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1966 * (nbsd_thread_lister): Remove.
1967
f404573e
KR
19682020-09-10 Kamil Rytarowski <n54@gmx.com>
1969
1970 * fork-inferior.c (startup_inferior): Avoid double free.
1971
1ccb2c17
KR
19722020-09-10 Kamil Rytarowski <n54@gmx.com>
1973
1974 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1975 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1976
feedfcc7
KR
19772020-09-10 Kamil Rytarowski <n54@gmx.com>
1978
1979 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1980 * netbsd-nat.c: Include <sys/ptrace.h>.
1981 * (netbsd_nat::enable_proc_events): Add.
1982
c489f8c6
KR
19832020-09-10 Kamil Rytarowski <n54@gmx.com>
1984
1985 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1986 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1987 (netbsd_nat::for_each_thread): Add.
1988 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1989 "gdbsupport/common-debug.h".
1990 * (netbsd_nat::netbsd_thread_lister)
1991 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1992 (netbsd_nat::for_each_thread): Add.
1993
330662f6
KR
19942020-09-10 Kamil Rytarowski <n54@gmx.com>
1995
1996 * netbsd-nat.h: Include <unistd.h>.
1997 * (netbsd_nat::pid_to_exec_file): Add.
1998 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1999 * (netbsd_nat::pid_to_exec_file) Add.
2000
70b67307
KR
20012020-09-10 Kamil Rytarowski <n54@gmx.com>
2002
2003 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2004
99cf6da6
KR
20052020-09-10 Kamil Rytarowski <n54@gmx.com>
2006
2007 * netbsd-nat.h: New file.
2008 * netbsd-nat.c: Likewise.
2009
1b788fb6
TT
20102020-09-09 Tom Tromey <tromey@adacore.com>
2011
2012 * ada-lang.c (remove_extra_symbols): Do not increment when
2013 removing an element
2014
03b0a45f
TT
20152020-09-08 Tom Tromey <tromey@adacore.com>
2016
2017 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2018
3cae4447
TT
20192020-09-08 Tom Tromey <tromey@adacore.com>
2020
2021 PR win32/25302:
2022 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2023 (gdb_bfd_init_data): New function.
2024 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2025
7f08fd51
TBA
20262020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2027
2028 * infrun.c (fetch_inferior_event): Use
2029 `switch_to_target_no_thread` to switch the target.
2030
3e6ff933
TT
20312020-09-06 Tom Tromey <tom@tromey.com>
2032
2033 * symfile.h (dwarf2_free_objfile): Don't declare.
2034
e56798df
AKS
20352020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2036
2037 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2038 to match 16 byte real/complex type generated by Flang compiler.
2039
8f5c6526
TV
20402020-09-03 Tom de Vries <tdevries@suse.de>
2041
2042 PR breakpoint/26546
2043 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2044 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2045
c5065df0
SM
20462020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2047
2048 * maint.c (index_digits): New function.
2049 (struct maint_print_section_data): Remove.
2050 (print_bfd_section_info): Remove print_data parameter, add arg
2051 and index_digits.
2052 (print_objfile_section_info): Likewise.
2053 (print_bfd_section_info_maybe_relocated): Likewise (plus
2054 objfile).
2055 (maintenance_info_sections): Adjust calls.
2056
02c6f3f1
TT
20572020-09-02 Tom Tromey <tromey@adacore.com>
2058
2059 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2060 for null pointers.
2061 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2062
ef5e5b0b
SM
20632020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2064
2065 * bcache.h (struct bcache) <insert>: Change type of `added` to
2066 pointer to bool.
2067 * bcache.c (bcache::insert): Likewise.
2068 * gdbtypes.c (check_types_worklist): Adjust.
2069 * psymtab.c (add_psymbol_to_bcache): Adjust.
2070
973695d6
KB
20712020-08-31 Kevin Buettner <kevinb@redhat.com>
2072
2073 * corelow.c (unordered_set): Include.
2074 (class core_target): Add field 'm_core_unavailable_mappings'.
2075 (core_target::build_file_mappings): Print only one warning
2076 per inaccessible file. Add unavailable/broken mappings
2077 to m_core_unavailable_mappings.
2078 (core_target::xfer_partial): Call...
2079 (core_target::xfer_memory_via_mappings): New method.
2080
264fc0e2
SM
20812020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2082
2083 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2084 type to bool.
2085
2de01bdb
SM
20862020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2087
2088 * dwarf2/read.c (struct field_info): Fix indentation.
2089
f3bd50f1
SM
20902020-08-31 Simon Marchi <simon.marchi@efficios.com>
2091
2092 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2093 ordering in comment.
2094 * frame.c (frame_id_eq): Fix indentation.
2095
22b9b4b0
SL
20962020-08-31 Scott Linder <scott@scottlinder.com>
2097 Simon Marchi <simon.marchi@efficios.com>
2098
2099 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2100 inline frame ids in outer frame.
2101
84154d16
SM
21022020-08-31 Simon Marchi <simon.marchi@efficios.com>
2103
2104 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2105 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2106 (outer_frame_id): Use FID_STACK_OUTER instead of
2107 FID_STACK_INVALID.
2108 (frame_id_p): Don't check for outer_frame_id.
2109
8efaf6b3
SM
21102020-08-31 Simon Marchi <simon.marchi@efficios.com>
2111
2112 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2113 regnum/frame in value. Call allocate_value_lazy.
2114 * frame.c (frame_unwind_register_value): Use
2115 val_print_not_saved.
2116
fe1fe7ea
SM
21172020-08-31 Simon Marchi <simon.marchi@efficios.com>
2118
2119 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2120
f7c7700d
PA
21212020-08-29 Pedro Alves <pedro@palves.net>
2122
2123 * progspace.c (print_program_space): Use all_inferiors. Switch to
2124 the inferior before calling target_pid_to_str.
2125
e0814aae
TT
21262020-08-28 Tom Tromey <tom@tromey.com>
2127
2128 * xcoffread.c (xcoff_end_psymtab): Update comment.
2129 * dbxread.c (dbx_end_psymtab): Update comment.
2130
626d2320
TV
21312020-08-28 Tom de Vries <tdevries@suse.de>
2132
2133 PR breakpoint/26544
2134 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2135 event_location.
2136 (create_breakpoint): Same.
2137 (base_breakpoint_decode_location): Same.
2138 (bkpt_create_sals_from_location): Same.
2139 (bkpt_decode_location): Same.
2140 (bkpt_probe_create_sals_from_location): Same.
2141 (bkpt_probe_decode_location): Same.
2142 (tracepoint_create_sals_from_location): Same.
2143 (tracepoint_decode_location): Same.
2144 (tracepoint_probe_decode_location): Same.
2145 (strace_marker_create_sals_from_location): Same.
2146 (strace_marker_decode_location): Same.
2147 (create_sals_from_location_default): Same.
2148 (decode_location_default): Same.
2149 * breakpoint.h (struct breakpoint_ops): Same.
2150 (create_breakpoint): Same.
2151 * linespec.h (decode_line_full): Same.
2152 * linespec.c (decode_line_full): Same. Throw error if
2153 result.size () == 0.
2154
df631783
PA
21552020-08-27 Pedro Alves <pedro@palves.net>
2156
2157 PR gdb/26524
2158 * breakpoint.c (until_break_fsm) <location_breakpoint,
2159 caller_breakpoint>: Delete fields.
2160 <breakpoints>: New field.
2161 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2162 two individual breakpoints.
2163 (until_break_fsm::should_stop): Loop over breakpoints in the
2164 breakpoint vector.
2165 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2166 vector.
2167 (until_break_command): Handle location expanding into multiple
2168 sals.
2169
b2b38aa4
PA
21702020-08-27 Pedro Alves <pedro@palves.net>
2171
2172 PR gdb/26523
2173 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2174 bp_until breakpoints user-specified locations. Update intro
2175 comment.
2176
b886559f
SM
21772020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2178
2179 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2180 gdb_bfd_sections): New.
2181 * maint.c (print_bfd_section_info): Change param type to
2182 maint_print_section_data.
2183 (print_objfile_section_info): Likewise.
2184 (print_bfd_section_info_maybe_relocated): Likewise.
2185 (maintenance_info_sections): Use gdb_bfd_sections.
2186
4c6e63bf
SV
21872020-08-25 Shahab Vahedi <shahab@synopsys.com>
2188
2189 * MAINTAINERS: Add ARC target and maintainer.
2190
8d7f0635
AK
21912020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2192
2193 * configure.tgt: ARC support for GNU/Linux.
2194 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2195 * arc-linux-tdep.c: New file.
2196 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2197 * arc-tdep.c (arc_write_pc): Use it.
2198
fdd8731b
SV
21992020-08-25 Shahab Vahedi <shahab@synopsys.com>
2200
2201 * arc-tdep.c (arc_check_for_hardware_loop): New.
2202 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2203
22459524
SV
22042020-08-25 Shahab Vahedi <shahab@synopsys.com>
2205
2206 * arc-tdep.h: Include "gdbarch.h".
2207
995d3a19
SV
22082020-08-25 Shahab Vahedi <shahab@synopsys.com>
2209
2210 * arch/arc.h
2211 (arc_gdbarch_features): New class to stir the selection of target XML.
2212 (arc_create_target_description): Use FEATURES to choose XML target.
2213 (arc_lookup_target_description): Use arc_create_target_description
2214 to create _new_ target descriptions or return the already created
2215 ones if the FEATURES is the same.
2216 * arch/arc.c: Implementation of prototypes described above.
2217 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2218 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2219 * arc-tdep.c (*_feature_name): Make feature names consistent.
2220 (arc_register_feature): A new struct to hold information about
2221 registers of a particular target/feature.
2222 (arc_check_tdesc_feature): Check if XML provides registers in
2223 compliance with ARC_REGISTER_FEATURE structs.
2224 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2225 (determine_*_reg_feature_set): Which feature name to look for.
2226 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2227 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2228 to expected ISA enums to be used in arc_gdbarch_features structs.
2229 * features/Makefile (FEATURE_XMLFILES): Add new files.
2230 * gdb/features/arc/v1-aux.c: New file.
2231 * gdb/features/arc/v1-aux.xml: Likewise.
2232 * gdb/features/arc/v1-core.c: Likewise.
2233 * gdb/features/arc/v1-core.xml: Likewise.
2234 * gdb/features/arc/v2-aux.c: Likewise.
2235 * gdb/features/arc/v2-aux.xml: Likewise.
2236 * gdb/features/arc/v2-core.c: Likewise.
2237 * gdb/features/arc/v2-core.xml: Likewise.
2238 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2239
3945d2d7
GM
22402020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2241 Andrew Burgess <andrew.burgess@embecosm.com>
2242
2243 PR m2/26372
fc5d6901 2244 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2245 an assert. Remove single element array indexing pattern as the
2246 MULTI_SUBSCRIPT support will handle this case too.
2247
2677f2d3
SM
22482020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2249
2250 * value.h (valprint_check_validity): Move declaration from
2251 here...
2252 * valprint.h (valprint_check_validity): ... to here.
2253
c426fddb
SM
22542020-08-24 Simon Marchi <simon.marchi@efficios.com>
2255
2256 * debug.h: New file.
2257 * debug.c (debug_prefixed_vprintf): New function.
2258 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2259 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2260
1eb8556f
SM
22612020-08-24 Simon Marchi <simon.marchi@efficios.com>
2262
2263 * infrun.h (infrun_debug_printf_1): New function declaration.
2264 (infrun_debug_printf): New macro.
2265 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2266 throughout.
2267 (infrun_debug_printf): New function.
2268 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2269 (handle_jit_event): Likewise.
2270
b8fff44e
MW
22712020-08-21 Mark Wielaard <mark@klomp.org>
2272
2273 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2274
d19c3068
SM
22752020-08-22 Simon Marchi <simon.marchi@efficios.com>
2276
2277 * frame.c (enum class frame_id_status): New.
2278 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2279 (fprintf_frame): Update.
2280 (compute_frame_id): Set frame id status to "computing" on entry.
2281 Set it back to "not_computed" on failure and to "computed" on
2282 success.
2283 (get_frame_id): Assert the frame id is not being computed.
2284 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2285 (create_new_frame): Likewise.
2286 (frame_cleanup_after_sniffer): Update assert.
2287
b70e516e
SM
22882020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2289
2290 * regcache.c (pid_ptid_regcache_map): New type.
2291 (target_ptid_regcache_map): Remove.
2292 (target_pid_ptid_regcache_map): New type.
2293 (regcaches): Change type to target_pid_ptid_regcache_map.
2294 (get_thread_arch_aspace_regcache): Update.
2295 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2296 case.
2297 (regcaches_size): Update.
2298 (regcache_count): Update.
2299 (registers_changed_ptid_target_pid_test): New.
2300 (_initialize_regcache): Register new test.
2301
cdd9148a
SM
23022020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2303
2304 * regcache.c (regcache_count): New.
2305 (struct regcache_test_data): New.
2306 (regcache_test_data_up): New.
2307 (populate_regcaches_for_test): New.
2308 (regcaches_test): Remove.
2309 (get_thread_arch_aspace_regcache_test): New.
2310 (registers_changed_ptid_all_test): New.
2311 (registers_changed_ptid_target_test): New.
2312 (registers_changed_ptid_target_ptid_test): New.
2313 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2314 (_initialize_regcache): Register new tests.
2315
dd125343
SM
23162020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2317
2318 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2319 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2320 gdbarch and aspace parameter. Use current inferior's aspace.
2321 Validate regcache's arch value.
2322 (regcaches_test): Update.
2323
3ee93972
SM
23242020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2325
2326 * regcache.c (regcaches_test): Call registers_changed.
2327
33bf4c5c
TBA
23282020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2329
2330 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2331
c2fd7fae
AKS
23322020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2333
2334 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2335 to find the end of prologue for flang compiled binaries.
2336 * arm-tdep.c (arm_skip_prologue): Likewise.
2337 * i386-tdep.c (i386_skip_prologue): Likewise.
2338 * producer.c (producer_is_llvm): New function.
2339 (producer_parsing_tests): Added new tests for clang/flang.
2340 * producer.h (producer_is_llvm): New declaration.
2341
9327494e
SM
23422020-08-18 Simon Marchi <simon.marchi@efficios.com>
2343
2344 * linux-nat.c (linux_nat_debug_printf): New function.
2345 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2346
d138725a
AM
23472020-08-18 Aaron Merey <amerey@redhat.com>
2348
2349 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2350 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2351 (CLIBS): Add DEBUGINFOD_LIBS.
2352
f9b11e6b
ST
23532020-08-17 Sergei Trofimovich <siarheit@google.com>
2354
2355 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2356 'gdbarch_num_regs'.
2357
3ae7ab99
TT
23582020-08-17 Tom Tromey <tromey@adacore.com>
2359
2360 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2361 ada_get_decoded_value returns NULL.
2362
b017825f
TT
23632020-08-17 Tom Tromey <tromey@adacore.com>
2364
2365 * python/py-inferior.c (infpy_search_memory): Use
2366 gdb_py_object_from_ulongest.
2367 * python/py-infevents.c (create_inferior_call_event_object)
2368 (create_memory_changed_event_object): Use
2369 gdb_py_object_from_ulongest.
2370 * python/py-linetable.c (ltpy_entry_get_pc): Use
2371 gdb_py_object_from_ulongest.
2372
7635cf79
SM
23732020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2374
2375 * loc.c (class symbol_needs_eval_context): Fix indentation.
2376
f54be24b
SM
23772020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2378
2379 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2380 bool.
2381
53d5a2a5
TV
23822020-08-17 Tom de Vries <tdevries@suse.de>
2383
2384 PR gdb/26393
2385 * gdbtypes.c (dump_dynamic_prop): New function.
2386 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2387
547ce8f0
TV
23882020-08-15 Tom de Vries <tdevries@suse.de>
2389
2390 PR backtrace/26390
2391 * stack.c (print_frame_args): Temporarily set the selected
2392 frame to FRAME while printing the frame's arguments.
2393
6ea815e7
PFC
23942020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2395
2396 PR breakpoints/26385
2397 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2398 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2399
6e562fa3
PFC
24002020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2401
2402 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2403 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2404 and >= to check return value instead of == -1 and != -1.
2405
d369b608
SM
24062020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2407
2408 * utils.h (class gdb_argv) <as_array_view>: New method.
2409 * utils.c (gdb_argv_as_array_view_test): New.
2410 (_initialize_utils): Register selftest.
2411 * maint.c (maintenance_selftest): Use the new method.
2412
b31488a3
KR
24132020-08-13 Kamil Rytarowski <n54@gmx.com>
2414
2415 * target.h (supports_dumpcore, dumpcore): New
2416 function declarations.
2417 * target.c (supports_dumpcore, dumpcore): New
2418 functions.
2419 * target-delegates.c: Rebuild.
2420 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2421 and target_dumpcore ().
2422
002a3166
AM
24232020-08-13 Aaron Merey <amerey@redhat.com>
2424
2425 * debuginfod-support.c: Replace global variables with user_data.
2426
ece5bc8a
SM
24272020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2428
2429 * maint.c (maintenance_selftest): Split args and pass array_view
2430 to run_tests.
2431
6d8a0a5e
LM
24322020-08-12 Luis Machado <luis.machado@linaro.org>
2433
2434 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2435 type's length.
2436 Use %s and pulongest to print the length.
2437
7cf663a9
PA
24382020-08-12 Pedro Alves <palves@redhat.com>
2439
2440 * NEWS: Move "Multi-target debugging support" item to the
2441 "Changes since GDB 9" section.
2442
27c7b875
PA
24432020-08-12 Pedro Alves <palves@redhat.com>
2444
2445 PR gdb/26336
2446 * progspace.c (program_space::remove_objfile): Invalidate the
2447 frame cache.
2448
1796a2a1
TV
24492020-08-11 Tom de Vries <tdevries@suse.de>
2450
2451 * MAINTAINERS: Mark ms1 as deleted.
2452
f8e3fe0d
LM
24532020-08-10 Luis Machado <luis.machado@linaro.org>
2454
2455 PR gdb/26310
2456
2457 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2458 act accordingly.
2459 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2460 movz/str/stur/stp skipping behavior.
2461
cc308722
LM
24622020-08-10 Luis Machado <luis.machado@linaro.org>
2463
2464 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2465 struct user_sve_header instead of struct sve_context.
2466
041d9819
SM
24672020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2468
2469 * read.h (dwarf2_fetch_die_loc_sect_off,
2470 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2471 `void *` parameter with function_view.
2472 * read.c (dwarf2_fetch_die_loc_sect_off,
2473 dwarf2_fetch_die_loc_cu_off): Likewise.
2474 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2475 (per_cu_dwarf_call): Adjust.
2476 (get_frame_address_in_block_wrapper): Remove.
2477 (indirect_synthetic_pointer): Adjust.
2478 (get_ax_pc): Remove.
2479 (dwarf2_compile_expr_to_ax): Adjust.
2480
38f8aa06
TV
24812020-08-08 Tom de Vries <tdevries@suse.de>
2482
2483 PR build/26344
2484 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2485 constructor.
2486 * regcache.c (get_thread_arch_aspace_regcache): Same.
2487
a52b3ae2
TT
24882020-08-07 Tom Tromey <tromey@adacore.com>
2489
2490 * ravenscar-thread.c
2491 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2492 New method.
2493 (ravenscar_thread_target::wait): Check
2494 runtime_initialized.
2495 (ravenscar_thread_target::prepare_to_store)
2496 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2497 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2498 (ravenscar_thread_target::stopped_by_watchpoint)
2499 (ravenscar_thread_target::stopped_data_address)
2500 (ravenscar_thread_target::core_of_thread): Use
2501 scoped_restore_current_thread and
2502 set_base_thread_from_ravenscar_task.
2503
0e29517d
TT
25042020-08-07 Tom Tromey <tromey@adacore.com>
2505
2506 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2507
592f9bd7
TT
25082020-08-07 Tom Tromey <tromey@adacore.com>
2509
2510 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2511 update_inferior_ptid before update_thread_list.
2512 (temporarily_change_regcache_ptid): New class.
2513 (ravenscar_thread_target::fetch_registers)
2514 (ravenscar_thread_target::store_registers)
2515 (ravenscar_thread_target::prepare_to_store): Use base thread when
2516 forwarding operation.
2517
39e2018a
TT
25182020-08-07 Tom Tromey <tromey@adacore.com>
2519
2520 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2521 "is_pid" case.
2522
2080266b
TT
25232020-08-07 Tom Tromey <tromey@adacore.com>
2524
2525 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2526 New methods.
2527 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2528 first.
2529 (ravenscar_thread_target::add_thread): Rename from
2530 ravenscar_add_thread.
2531 (ravenscar_thread_target::update_thread_list): Use a lambda.
2532 (ravenscar_thread_target::xfer_partial): New method.
2533
78c02f21
TT
25342020-08-07 Tom Tromey <tromey@adacore.com>
2535
2536 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2537 gdb::function_view.
2538 (iterate_over_live_ada_tasks): Change type of argument.
2539 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2540 of argument.
2541
d5d833af
TT
25422020-08-07 Tom Tromey <tromey@adacore.com>
2543
2544 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2545 Remove.
2546 (ravenscar_thread_target::extra_thread_info): Remove.
2547 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2548 defer to target beneath for non-Ravenscar threads.
2549
a8ac85bb
TT
25502020-08-07 Tom Tromey <tromey@adacore.com>
2551
2552 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2553 get_base_thread_from_ravenscar_task>: Now methods.
2554 <m_cpu_map>: New member.
2555 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2556 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2557 (ravenscar_thread_target::task_is_currently_active): Update.
2558 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2559 Now a method.
2560 (ravenscar_thread_target::add_active_thread): Put initial thread
2561 into the m_cpu_map.
2562
550ab58d
TT
25632020-08-07 Tom Tromey <tromey@adacore.com>
2564
2565 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2566 event_ptid.
2567
e9546579
TT
25682020-08-07 Tom Tromey <tromey@adacore.com>
2569
2570 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2571 runtime_initialized.
2572
3d4470e5
TT
25732020-08-07 Tom Tromey <tromey@adacore.com>
2574
2575 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2576 add_active_thread.
2577 (ravenscar_thread_target::add_active_thread): Now public.
2578 (ravenscar_inferior_created): Call add_active_thread after pushing
2579 the target.
2580
888bdb2b
SM
25812020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2582
2583 * regcache.c (ptid_regcache_map): New type.
2584 (target_ptid_regcache_map): New type.
2585 (regcaches): Change type to target_ptid_regcache_map.
2586 (get_thread_arch_aspace_regcache): Update to regcaches' new
2587 type.
2588 (regcache_thread_ptid_changed): Likewise.
2589 (registers_changed_ptid): Likewise.
2590 (regcaches_size): Likewise.
2591 (regcaches_test): Update.
2592 (regcache_thread_ptid_changed): Update.
2593 * regcache.h (regcache_up): New type.
2594 * gdbsupport/ptid.h (hash_ptid): New struct.
2595
b161a60d
SM
25962020-08-07 Simon Marchi <simon.marchi@efficios.com>
2597
2598 * observable.h (thread_ptid_changed): Add parameter
2599 `process_stratum_target *`.
2600 * infrun.c (infrun_thread_ptid_changed): Add parameter
2601 `process_stratum_target *` and use it.
2602 (selftests): New namespace.
2603 (infrun_thread_ptid_changed): New function.
2604 (_initialize_infrun): Register selftest.
2605 * regcache.c (regcache_thread_ptid_changed): Add parameter
2606 `process_stratum_target *` and use it.
2607 (regcache_thread_ptid_changed): New function.
2608 (_initialize_regcache): Register selftest.
2609 * thread.c (thread_change_ptid): Pass target to
2610 thread_ptid_changed observable.
2611
d2854d8d
CT
26122020-08-06 Caroline Tice <cmtice@google.com>
2613
fe4c3d43
SM
2614 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2615 (struct dwp_sections): Update field comments. Add loclists and
2616 rnglists fields.
2617 (struct virtual_v2_dwo_sections): Rename struct to
2618 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2619 size & offset fields for loclists and rnglists.
2620 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2621 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2622 skipping dummy type units.
2623 (create_dwp_hash_table): Update the large comment above the function to
2624 discuss Version 5 DWP files as well, with references. Update all the
2625 version checks in the function to check for version 5 as well. Add new
2626 section at the end to create dwp hash table for version 5.
2627 (create_dwp_v2_section): Rename function to
2628 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2629 Add V5 to error message text.
2630 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2631 into calls to create_dwp_v2_or_v5_section.
2632 (create_dwo_unit_in_dwp_v5): New function.
2633 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2634 check for version2; add else clause to handle version 5.
2635 (open_and_init_dwo_file): Add code to check dwarf version & only call
2636 create_debug_types_hash_table (with sections.types) if version is not 5;
2637 else call create_debug_type_hash_table, with sections.info.
2638 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2639 version 5.
2640 (dwarf2_locate_v5_dwp_sections): New function.
2641 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2642 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2643
159ed7d9
SM
26442020-08-06 Simon Marchi <simon.marchi@efficios.com>
2645
2646 * regcache.h (class regcache): Remove friend
2647 registers_changed_ptid.
2648 <regcache_thread_ptid_changed>: Remove.
2649 <regcaches>: Remove.
2650 * regcache.c (regcache::regcaches): Rename to...
2651 (regcaches): ... this. Make static.
2652 (get_thread_arch_aspace_regcache): Update.
2653 (regcache::regcache_thread_ptid_changed): Rename to...
2654 (regcache_thread_ptid_changed): ... this. Update.
2655 (class regcache_access): Remove.
2656 (regcaches_test): Update.
2657 (_initialize_regcache): Update.
2658 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2659 <forward_list>.
2660
174981ae
SM
26612020-08-06 Simon Marchi <simon.marchi@efficios.com>
2662
2663 * regcache.h (class regcache) <current_regcache>: Rename to...
2664 <regcaches>: ... this. Move doc here.
2665 * regcache.c (regcache::current_regcache) Rename to...
2666 (regcache::regcaches): ... this. Move doc to header.
2667 (get_thread_arch_aspace_regcache): Update.
2668 (regcache::regcache_thread_ptid_changed): Update.
2669 (registers_changed_ptid): Update.
2670 (class regcache_access) <current_regcache_size>: Rename to...
2671 <regcaches_size>: ... this.
2672 (current_regcache_test): Rename to...
2673 (regcaches_test): ... this.
2674 (_initialize_regcache): Update.
2675
ed908db6
VC
26762020-08-06 Victor Collod <vcollod@nvidia.com>
2677
2678 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2679
b5582ab7
KB
26802020-08-05 Kevin Buettner <kevinb@redhat.com>
2681
2682 * corelow.c (core_target::build_file_mappings): Don't output
2683 null pathname in warning.
2684
ea946b86
SM
26852020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2686
2687 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2688 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2689 gdb.dwarf2/dw2-single-line-discriminators.exp,
2690 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2691
57d02173
TT
26922020-08-05 Tom Tromey <tromey@adacore.com>
2693
2694 PR rust/26197:
2695 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2696 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2697 Fix off-by-one and type size errors in ordinary case.
2698
5555c86d
TV
26992020-08-05 Tom de Vries <tdevries@suse.de>
2700
2701 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2702 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2703
97916bfe
SM
27042020-08-04 Simon Marchi <simon.marchi@efficios.com>
2705
2706 * frame.h (frame_id_p): Return bool.
2707 (frame_id_artificial_p): Return bool.
2708 (frame_id_eq): Return bool.
2709 (has_stack_frames): Return bool.
2710 (get_selected_frame): Fix typo in comment.
2711 (get_frame_pc_if_available): Return bool.
2712 (get_frame_address_in_block_if_available): Return bool.
2713 (get_frame_func_if_available): Return bool.
2714 (read_frame_register_unsigned): Return bool.
2715 (get_frame_register_bytes): Return bool.
2716 (safe_frame_unwind_memory): Return bool.
2717 (deprecated_frame_register_read): Return bool.
2718 (frame_unwinder_is): Return bool.
2719 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2720 bool.
2721 <this_id::p>: Likewise.
2722 <prev_p>: Likewise.
2723 (frame_stash_add): Return bool.
2724 (get_frame_id): Use bool.
2725 (frame_id_build_special) Use bool.
2726 (frame_id_build_unavailable_stack): Use bool.
2727 (frame_id_build): Use bool.
2728 (frame_id_p): Return bool, use true/false instead of 1/0.
2729 (frame_id_artificial_p): Likewise.
2730 (frame_id_eq): Likewise.
2731 (frame_id_inner): Likewise.
2732 (get_frame_func_if_available): Likewise.
2733 (read_frame_register_unsigned): Likewise.
2734 (deprecated_frame_register_read): Likewise.
2735 (get_frame_register_bytes): Likewise.
2736 (has_stack_frames): Likewise.
2737 (inside_main_func): Likewise.
2738 (inside_entry_func): Likewise.
2739 (get_frame_pc_if_available): Likewise.
2740 (get_frame_address_in_block_if_available): Likewise.
2741 (frame_unwinder_is): Likewise.
2742 (safe_frame_unwind_memory): Likewise.
2743 (frame_unwind_arch): Likewise.
2744
fedfee88
SM
27452020-08-04 Simon Marchi <simon.marchi@efficios.com>
2746
2747 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2748 type to cached_copy_status.
2749 (fprintf_frame): Adjust.
2750 (get_frame_func_if_available): Adjust.
2751 (frame_cleanup_after_sniffer): Adjust.
2752
6cfa9b59
MW
27532020-08-04 Mark Wielaard <mark@klomp.org>
2754
2755 * MAINTAINERS (Write After Approval): Update email address.
2756
66d6346b
SM
27572020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2758
2759 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2760 dynamic_prop::const_val.
2761
8a6d5e35
SM
27622020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2763
2764 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2765 dynamic_prop::kind.
2766
51d6067d
SM
27672020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2768
2769 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2770
b26e2ae7
JM
27712020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2772
2773 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2774
39791af2
JM
27752020-08-04 Weimin Pan <weimin.pan@oracle.com>
2776 Jose E. Marchesi <jose.marchesi@oracle.com>
2777
2778 * configure.tgt: Add entry for bpf-*-*.
2779 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2780 (ALLDEPFILES): Add bpf-tdep.c.
2781 * bpf-tdep.c: New file.
2782 * MAINTAINERS: Add bpf target and maintainer.
2783 * NEWS: Mention the support for the new target.
2784
521894aa
TV
27852020-08-04 Tom de Vries <tdevries@suse.de>
2786
2787 PR symtab/23270
2788 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2789 Error.
2790
5d6356e9
JB
27912020-08-03 John Baldwin <jhb@FreeBSD.org>
2792
2793 * syscalls/freebsd.xml: Regenerate.
2794
0cf82b81
JB
27952020-08-03 John Baldwin <jhb@FreeBSD.org>
2796
2797 * syscalls/update-freebsd.sh: Fix usage and year range.
2798
8f34b746
TV
27992020-08-03 Tom de Vries <tdevries@suse.de>
2800
2801 PR symtab/26333
2802 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2803 DW_LNE_lo_user/DW_LNE_hi_user range.
2804
5e500d33
SM
28052020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2806
2807 PR ada/26318
2808 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2809 kind.
2810
78319c15
TBA
28112020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2812
2813 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2814
4c55e970
TBA
28152020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2816
2817 * breakpoint.c (set_breakpoint_condition): Update the condition
2818 expressions after checking that the input condition string parses
2819 successfully and does not contain junk at the end.
2820
1e620590
TBA
28212020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2822
2823 * breakpoint.c (set_breakpoint_condition): Update the
2824 condition string after parsing the new condition successfully.
2825
c8693053
RO
28262020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2827
2828 * proc-api.c (_STRUCTURED_PROC): Don't define.
2829 * proc-events.c: Likewise.
2830 * proc-flags.c: Likewise.
2831 * proc-why.c: Likewise.
2832 * procfs.c: Likewise.
2833
2834 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2835 * configure, config.in: Regenerate.
2836
5a99adb8
TV
28372020-07-30 Tom de Vries <tdevries@suse.de>
2838
2839 PR build/26320
2840 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2841 m_red/m_green/m_blue in a union.
2842
8ba83e91
TV
28432020-07-29 Tom de Vries <tdevries@suse.de>
2844
2845 PR tdep/26280
2846 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2847
f75a0693
AB
28482020-07-28 Tom Tromey <tromey@adacore.com>
2849
2850 PR symtab/26270:
2851 * symtab.h (find_pc_partial_function_sym): Declare.
2852 * cli/cli-cmds.c (disassemble_command): Use
2853 find_pc_partial_function_sym. Check asm_demangle.
2854 * blockframe.c (cache_pc_function_sym): New global.
2855 (cache_pc_function_name): Remove.
2856 (clear_pc_function_cache): Update.
2857 (find_pc_partial_function_sym): New function, from
2858 find_pc_partial_function.
2859 (find_pc_partial_function): Rewrite using
2860 find_pc_partial_function_sym.
2861
16f3242c
TT
28622020-07-28 Tom Tromey <tromey@adacore.com>
2863
2864 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2865 help. Add usage.
2866
4888741a
TT
28672020-07-28 Tom Tromey <tromey@adacore.com>
2868
2869 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2870 <DW_OP_GNU_variable_value>: Cast to address type.
2871
4d46f402
KR
28722020-07-28 Kamil Rytarowski <n54@gmx.com>
2873
2874 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2875 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2876 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2877 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2878 (nbsd_get_siginfo_type): New.
2879 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2880 (_initialize_nbsd_tdep): New.
2881
d70f978b
L
28822020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2883
2884 PR binutils/26301
2885 * configure: Regenerated.
2886
377170fa
L
28872020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2888
2889 PR binutils/26301
2890 * configure: Regenerated.
2891
43d5901d
AB
28922020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2893
2894 * python/py-frame.c: Remove 'user-regs.h' include.
2895 (frapy_read_register): Rewrite to make use of
2896 gdbpy_parse_register_id.
2897 * python/py-registers.c (gdbpy_parse_register_id): New function,
2898 moved here from python/py-unwind.c. Updated the return type, and
2899 also accepts register descriptor objects.
2900 * python/py-unwind.c: Remove 'user-regs.h' include.
2901 (pyuw_parse_register_id): Moved to python/py-registers.c.
2902 (unwind_infopy_add_saved_register): Update to use
2903 gdbpy_parse_register_id.
2904 (pending_framepy_read_register): Likewise.
2905 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2906
14fa8fb3
AB
29072020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2908
2909 * python/py-registers.c: Add 'user-regs.h' include.
2910 (register_descriptor_iter_find): New function.
2911 (register_descriptor_iterator_object_methods): New static global
2912 methods array.
2913 (register_descriptor_iterator_object_type): Add pointer to methods
2914 array.
2915
ddce1758
JB
29162020-07-27 John Baldwin <jhb@FreeBSD.org>
2917
2918 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2919 for all architectures on FreeBSD 11.3 and later.
2920
a4089f52
TT
29212020-07-27 Tom Tromey <tromey@adacore.com>
2922
2923 * gcore.h (load_corefile): Don't declare.
2924
95420d30
TV
29252020-07-27 Tom de Vries <tdevries@suse.de>
2926
2927 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2928 * config.in: Regenerate.
2929 * configure: Regenerate.
2930
05a6b8c2
EZ
29312020-07-26 Eli Zaretskii <eliz@gnu.org>
2932
2933 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2934 ws2tcpip.h. When checking whether socklen_t type is defined, use
2935 ws2tcpip.h if it is available and sys/socket.h isn't.
2936 * configure: Regenerate.
2937 * config.in: Regenerate.
2938
e79eb02f
AB
29392020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2940
2941 PR fortran/23051
2942 PR fortran/26139
2943 * valops.c (value_ind): Pass address to
2944 readjust_indirect_value_type.
2945 * value.c (readjust_indirect_value_type): Make parameter
2946 non-const, and add extra address parameter. Resolve original type
2947 before using it.
2948 * value.h (readjust_indirect_value_type): Update function
2949 signature and comment.
2950
876518dd
TV
29512020-07-25 Tom de Vries <tdevries@suse.de>
2952
2953 PR symtab/26243
2954 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2955 entries.
2956
f6720b1c
AM
29572020-07-24 Aaron Merey <amerey@redhat.com>
2958
2959 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2960 * configure: Rebuild.
2961
513487e1
KB
29622020-07-23 Kevin Buettner <kevinb@redhat.com>
2963
2964 PR corefiles/26294
2965 * corelow.c (_initialize_corelow): Add period to help text
2966 for "maintenance print core-file-backed-mappings".
2967
e7bc9db8
PA
29682020-07-23 Pedro Alves <pedro@palves.net>
2969
2970 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2971 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2972 meanwhile.
2973 * frame.c (frame_cache_generation, get_frame_cache_generation):
2974 New.
2975 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2976 (get_prev_frame_if_no_cycle): On exception, don't touch
2977 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2978 * frame.h (get_frame_cache_generation): Declare.
2979
90fcc466
TV
29802020-07-23 Tom de Vries <tdevries@suse.de>
2981
2982 PR tui/26282
2983 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2984 New default constructor.
2985
78344df7
AB
29862020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2987
2988 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2989 exclude non-statement entries.
2990
b089853a
KB
29912020-07-22 Kevin Buettner <kevinb@redhat.com>
2992
2993 * NEWS (New commands): Mention new command
2994 "maintenance print core-file-backed-mappings".
2995
09c2f5d4
KB
29962020-07-22 Kevin Buettner <kevinb@redhat.com>
2997
2998 * corelow.c (gdbcmd.h): Include.
2999 (core_target::info_proc_mappings): New method.
3000 (get_current_core_target): New function.
3001 (maintenance_print_core_file_backed_mappings): New function.
3002 (_initialize_corelow): Add core-file-backed-mappings to
3003 "maint print" commands.
3004
9c5ec5c2 30052020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3006
9c5ec5c2
KB
3007 * linux-tdep.c (dump_note_entry_p): New function.
3008 (linux_dump_mapping_p_ftype): New typedef.
3009 (linux_find_memory_regions_full): Add new parameter,
3010 should_dump_mapping_p.
3011 (linux_find_memory_regions): Adjust call to
3012 linux_find_memory_regions_full.
3013 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3014 call to linux_find_memory_regions_full.
3015
db082f59
KB
30162020-07-22 Kevin Buettner <kevinb@redhat.com>
3017
3018 * corelow.c (solist.h, unordered_map): Include.
3019 (class core_target): Add field m_core_file_mappings and
3020 method build_file_mappings.
3021 (core_target::core_target): Call build_file_mappings.
3022 (core_target::~core_target): Free memory associated with
3023 m_core_file_mappings.
3024 (core_target::build_file_mappings): New method.
3025 (core_target::xfer_partial): Use m_core_file_mappings
3026 for memory transfers.
3027 * linux-tdep.c (linux_read_core_file_mappings): New
3028 function.
3029 (linux_core_info_proc_mappings): Rewrite to use
3030 linux_read_core_file_mappings.
3031 (linux_init_abi): Register linux_read_core_file_mappings.
3032
7e183d27
KB
30332020-07-22 Kevin Buettner <kevinb@redhat.com>
3034
3035 * arch-utils.c (default_read_core_file_mappings): New function.
3036 * arch-utils.c (default_read_core_file_mappings): Declare.
3037 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3038 * gdbarch.h, gdbarch.c: Regenerate.
3039
2735d421
KB
30402020-07-22 Kevin Buettner <kevinb@redhat.com>
3041
3042 PR corefiles/25631
3043 * corelow.c (core_target:xfer_partial): Revise
3044 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3045 case after first checking the stratum beneath the core
3046 target.
3047 (has_all_memory): Return true.
3048 * target.c (raw_memory_xfer_partial): Revise comment
3049 regarding use of has_all_memory.
3050
e56cb451
KB
30512020-07-22 Kevin Buettner <kevinb@redhat.com>
3052
3053 * exec.h (section_table_xfer_memory): Revise declaration,
3054 replacing section name parameter with an optional callback
3055 predicate.
3056 * exec.c (section_table_xfer_memory): Likewise.
3057 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3058 of section_table_xfer_memory.
3059
32fa152e
TT
30602020-07-22 Tom Tromey <tromey@adacore.com>
3061
3062 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3063 lookup_symbol_search_name.
3064
a67a1c41
AB
30652020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3066
3067 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3068 redundant local variable.
3069 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3070 reference, not pointer, update code accordingly.
3071
a7b4ff4f
SM
30722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3073 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3074
3075 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3076 * jit.c (jit_breakpoint_re_set_internal): Use the
3077 `skip_jit_symbol_lookup` field.
3078
2340e834
SM
30792020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3080 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3081
3082 * jit.c (jit_read_descriptor): Define the descriptor address once,
3083 use twice.
3084 (jit_breakpoint_deleted): Move the declaration of the loop variable
3085 `iter` into the loop header.
3086 (jit_breakpoint_re_set_internal): Move the declaration of the local
3087 variable `objf_data` to the first point of definition.
3088 (jit_event_handler): Move the declaration of local variables
3089 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3090 Rename `objf` to `jited`.
3091
c1072906
SM
30922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3093
3094 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3095 Remove.
3096 * jit.c (get_jiter_objfile_data): Update.
3097
c8474dc3
TBA
30982020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3099 Simon Marchi <simon.marchi@polymtl.ca>
3100
3101 * jit.c (struct jit_program_space_data): Remove.
3102 (jit_program_space_key): Remove.
3103 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3104 stuff.
3105 (get_jit_program_space_data): Remove.
3106 (jit_breakpoint_deleted): Iterate on all of the program space's
3107 objfiles.
3108 (jit_inferior_init): Likewise.
3109 (jit_breakpoint_re_set_internal): Likewise. Also change return
3110 type to void.
3111 (jit_breakpoint_re_set): Pass current_program_space to
3112 jit_breakpoint_re_set_internal.
3113
77208eb7
SM
31142020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3115
3116 * jit.h (struct jiter_objfile_data) <cached_code_address,
3117 jit_breakpoint>: Move to here from ...
3118 * jit.c (jit_program_space_data): ... here.
3119 (jiter_objfile_data::~jiter_objfile_data): Update.
3120 (jit_breakpoint_deleted): Update.
3121 (jit_breakpoint_re_set_internal): Update.
3122
8c1c720f
SM
31232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3124
3125 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3126 checks.
3127 (jit_read_descriptor): Remove NULL check.
3128 (jit_event_handler): Add an assertion.
3129
0e74a041
SM
31302020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3131
3132 * jit.h (struct jit_objfile_data): Split into...
3133 (struct jiter_objfile_data): ... this ...
3134 (struct jited_objfile_data): ... and this.
3135 * objfiles.h (struct objfile) <jit_data>: Remove.
3136 <jiter_data, jited_data>: New fields.
3137 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3138 (jiter_objfile_data::~jiter_objfile_data): ... this.
3139 (get_jit_objfile_data): Rename to ...
3140 (get_jiter_objfile_data): ... this.
3141 (add_objfile_entry): Update.
3142 (jit_read_descriptor): Use get_jiter_objfile_data.
3143 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3144 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3145 (jit_inferior_exit_hook): Use objfile's jited_data field.
3146
238b5c9f
SM
31472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3148
3149 * jit.h: Forward-declare `struct minimal_symbol`.
3150 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3151 constructor, destructor, and an objfile* field.
3152 * jit.c (jit_objfile_data): Remove.
3153 (struct jit_objfile_data): Migrate from here to jit.h.
3154 (jit_objfile_data::~jit_objfile_data): New destructor
3155 implementation with code moved from free_objfile_data.
3156 (free_objfile_data): Delete.
3157 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3158 (jit_find_objf_with_entry_addr): Ditto.
3159 (jit_inferior_exit_hook): Ditto.
3160 (_initialize_jit): Remove the call to
3161 register_objfile_data_with_cleanup.
3162 * objfiles.h (struct objfile) <jit_data>: New field.
3163
fe053b9e
TBA
31642020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3165
3166 * jit.h: Forward-declare `struct objfile`.
3167 (jit_event_handler): Add a second parameter, the JITer objfile.
3168 * jit.c (jit_read_descriptor): Change the signature to take the
3169 JITer objfile as an argument instead of the jit_program_space_data.
3170 (jit_inferior_init): Update the call to jit_read_descriptor.
3171 (jit_event_handler): Use the new JITer objfile argument when calling
3172 jit_read_descriptor.
3173 * breakpoint.c (handle_jit_event): Update the call to
3174 jit_event_handler to pass the JITer objfile.
3175
4cec0c66
JB
31762020-07-21 John Baldwin <jhb@FreeBSD.org>
3177
3178 * gdbarch.c: Regenerate.
3179 * gdbarch.h: Regenerate.
3180 * gdbarch.sh (handle_segmentation_fault): Remove method.
3181 * infrun.c (handle_segmentation_fault): Remove.
3182 (print_signal_received_reason): Remove call to
3183 handle_segmentation_fault.
3184
0e42f66a
JB
31852020-07-21 John Baldwin <jhb@FreeBSD.org>
3186
3187 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3188 Rename to sparc64_linux_report_signal_info and add siggnal
3189 argument.
3190 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3191 instead of sparc64_linux_handle_segmentation_fault.
3192
77bdfeb2
JB
31932020-07-21 John Baldwin <jhb@FreeBSD.org>
3194
3195 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3196 i386_linux_report_signal_info instead of
3197 i386_linux_handle_segmentation_fault.
3198 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3199 to i386_linux_report_signal_info and add siggnal argument.
3200 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3201 of i386_linux_handle_segmentation_fault.
3202 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3203 to i386_linux_report_signal_info and add siggnal argument.
3204
ad97bfc5
JB
32052020-07-21 John Baldwin <jhb@FreeBSD.org>
3206
3207 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3208 hook if present.
3209
272bb05c
JB
32102020-07-21 John Baldwin <jhb@FreeBSD.org>
3211
3212 * gdbarch.c: Regenerate.
3213 * gdbarch.h: Regenerate.
3214 * gdbarch.sh (report_signal_info): New method.
3215 * infrun.c (print_signal_received_reason): Invoke gdbarch
3216 report_signal_info hook if present.
3217
baf8791e
AB
32182020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3219
3220 * python/py-registers.c : Add 'unordered_map' include.
3221 (gdbpy_new_reggroup): Renamed to...
3222 (gdbpy_get_reggroup): ...this. Update to only create register
3223 group descriptors when needed.
3224 (gdbpy_reggroup_iter_next): Update.
3225
f7306dac
AB
32262020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3227
3228 * python/py-registers.c (gdbpy_register_object_data): New static
3229 global.
3230 (gdbpy_register_object_data_init): New function.
3231 (gdbpy_new_register_descriptor): Renamed to...
3232 (gdbpy_get_register_descriptor): ...this, and update to reuse
3233 existing register descriptors where possible.
3234 (gdbpy_register_descriptor_iter_next): Update.
3235 (gdbpy_initialize_registers): Register new gdbarch data.
3236
05c309a8
SM
32372020-07-21 Simon Marchi <simon.marchi@efficios.com>
3238
3239 * linux-nat.c (stopped_pids): Make static.
3240
d1fd641e
SM
32412020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3242
3243 PR ada/26235
3244 * gdbtypes.c (ada_discrete_type_low_bound,
3245 ada_discrete_type_high_bound): Handle undefined bounds.
3246
1de14d77
KR
32472020-07-21 Kamil Rytarowski <n54@gmx.com>
3248
3249 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3250 declaration.
3251 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3252 function.
3253
ed810cc7
JB
32542020-07-20 John Baldwin <jhb@FreeBSD.org>
3255
3256 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3257 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3258 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3259 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3260 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3261 method.
3262
ae5369e7
LC
32632020-07-20 Ludovic Courtès <ludo@gnu.org>
3264
3265 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3266 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3267 which are deprecated in Guile 3.0.
3268 * configure.ac (try_guile_versions): Add "guile-3.0".
3269 * configure (try_guile_versions): Regenerate.
3270 * NEWS: Update entry.
3271
68cf161c
LC
32722020-07-20 Ludovic Courtès <ludo@gnu.org>
3273 Doug Evans <dje@google.com>
3274
3275 PR gdb/21104
3276 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3277 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3278 USING_GUILE_BEFORE_2_2.
3279 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3280 Change type to 'scm_t_port_type *'.
3281 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3282 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3283 parameter and honor it. Update callers.
3284 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3285 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3286 functions.
3287 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3288 USING_GUILE_BEFORE_2_2.
3289 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3290 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3291 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3292 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3293 and 'SCM_PORT_TYPE'.
3294 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3295 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3296 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3297 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3298 [!USING_GUILE_BEFORE_2_2]: New functions.
3299 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3300 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3301 'gdbscm_memory_port_read'.
3302 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3303 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3304 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3305 function.
3306 (ioscm_init_memory_port): Remove.
3307 (ioscm_init_memory_port_stream): New function
3308 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3309 function.
3310 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3311 Return scm_from_uint (0).
3312 (gdbscm_set_memory_port_read_buffer_size_x)
3313 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3314 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3315 Return scm_from_uint (0).
3316 (gdbscm_set_memory_port_write_buffer_size_x)
3317 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3318 * configure.ac (try_guile_versions): Add "guile-2.2".
3319 * configure: Regenerate.
3320 * NEWS: Add entry.
3321
aee91db3
TT
33222020-07-18 Tom Tromey <tom@tromey.com>
3323
3324 * linux-nat.c (linux_multi_process): Remove.
3325 (linux_nat_target::supports_multi_process): Return true.
3326
0e267416
AB
33272020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3328
3329 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3330 (riscv_lookup_target_description): Return pointer out of
3331 unique_ptr.
3332 * target-descriptions.c (allocate_target_description): Add
3333 comment.
3334 (target_desc_deleter::operator()): Likewise.
3335 * target-descriptions.h (struct target_desc_deleter): Moved to
3336 gdbsupport/tdesc.h.
3337 (target_desc_up): Likewise.
3338
f80c8ec4
TT
33392020-07-17 Tom Tromey <tromey@adacore.com>
3340
3341 * linux-nat.c (linux_nat_target::supports_non_stop)
3342 (linux_nat_target::always_non_stop_p): Use "true".
3343 (linux_nat_target::supports_disable_randomization): Use "true" and
3344 "false".
3345
d0ce17d8
CT
33462020-07-16 Caroline Tice <cmtice@google.com>
3347
3348 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3349 (RNGLIST_HEADER_SIZE64): New constant definition.
3350 (struct dwop_section_names): Add rnglists_dwo.
3351 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3352 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3353 (struct dwo_sections): Add rnglists field.
3354 (read_attribut_reprocess): Add tag parameter.
3355 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3356 (cu_debug_rnglists_section): New function (decl & definition).
3357 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3358 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3359 die whose range is being checked; get rnglist section from
3360 cu_debug_rnglists_section, to get from either objfile or dwo file as
3361 appropriate. Add cases for DW_RLE_base_addressx,
3362 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3363 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3364 test inside if-condition and updating complaint message.
3365 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3366 dwarf2_rnglists_process.
3367 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3368 dwarf2_ranges_process.
3369 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3370 need_ranges_base and update comment appropriately. Also pass die tag
3371 to dwarf2_ranges_read.
3372 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3373 need_ranges_base and update comment appropriately. Also pass die tag
3374 to dwarf2_ranges_process.
3375 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3376 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3377 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3378 need_ranges_base and update comment appropriately. Also pass die tag
3379 to read_attribute_reprocess and dwarf2_ranges_read.
3380 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3381 and update function comment appropriately.
3382 (read_loclist_index): Call read_loclists_rnglists_header instead of
3383 read_loclist_header.
3384 (read_rnglist_index): New function.
3385 (read_attribute_reprocess): Add tag parameter. Add code for
3386 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3387 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3388
3dcc261c
AB
33892020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3390
3391 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3392 being resolved.
3393
ccb9eba6
AB
33942020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3395
3396 * arch-utils.c (show_architecture): Update formatting of messages.
3397
cf88be68
SM
33982020-07-12 Simon Marchi <simon.marchi@efficios.com>
3399
3400 * gdbtypes.h (struct type) <bounds>: Handle array and string
3401 types.
3402 * ada-lang.c (assign_aggregate): Use type::bounds on
3403 array/string type.
3404 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3405 * c-varobj.c (c_number_of_children): Likewise.
3406 (c_describe_child): Likewise.
3407 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3408 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3409 (f_type_print_base): Likewise.
3410 * f-valprint.c (f77_array_offset_tbl): Likewise.
3411 (f77_get_upperbound): Likewise.
3412 (f77_print_array_1): Likewise.
3413 * guile/scm-type.c (gdbscm_type_range): Likewise.
3414 * m2-typeprint.c (m2_array): Likewise.
3415 (m2_is_long_set_of_type): Likewise.
3416 * m2-valprint.c (get_long_set_bounds): Likewise.
3417 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3418 * python/py-type.c (typy_range): Likewise.
3419 * rust-lang.c (rust_internal_print_type): Likewise.
3420 * type-stack.c (type_stack::follow_types): Likewise.
3421 * valarith.c (value_subscripted_rvalue): Likewise.
3422 * valops.c (value_cast): Likewise.
3423
509971ae
SM
34242020-07-12 Simon Marchi <simon.marchi@efficios.com>
3425
3426 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3427 callers to use the equivalent accessor methods.
3428
107406b7
SM
34292020-07-12 Simon Marchi <simon.marchi@efficios.com>
3430
3431 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3432 (struct type) <bit_stride>: New method.
3433 (TYPE_BIT_STRIDE): Remove.
3434 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3435
bb789949
SM
34362020-07-12 Simon Marchi <simon.marchi@efficios.com>
3437
3438 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3439 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3440 callers to use the equivalent accessor methods instead.
3441
39498edb
SM
34422020-07-12 Simon Marchi <simon.marchi@efficios.com>
3443
3444 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3445 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3446 callers to use the equivalent accessor methods instead.
3447
3b606f38
SM
34482020-07-12 Simon Marchi <simon.marchi@efficios.com>
3449
3450 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3451 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3452 to use dynamic_prop::kind.
3453
064d9cb9
SM
34542020-07-12 Simon Marchi <simon.marchi@efficios.com>
3455
3456 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3457 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3458 to get the bound property's kind and check against
3459 PROP_UNDEFINED.
3460
5537ddd0
SM
34612020-07-12 Simon Marchi <simon.marchi@efficios.com>
3462
3463 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3464 all callers to use type::range_bounds followed by
3465 dynamic_prop::{low,high}.
3466
8c2e4e06
SM
34672020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3468
3469 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3470 const_val, set_const_val, baton, set_locexpr, set_loclist,
3471 set_addr_offset, variant_parts, set_variant_parts,
3472 original_type, set_original_type>: New methods.
3473 <kind>: Rename to...
3474 <m_kind>: ... this. Update all users to use the new methods
3475 instead.
3476 <data>: Rename to...
3477 <m_data>: ... this. Update all users to use the new methods
3478 instead.
3479
7c6f2712
SM
34802020-07-12 Simon Marchi <simon.marchi@efficios.com>
3481
3482 * gdbtypes.c (get_discrete_bounds): Return failure if
3483 the range type's bounds are not both defined and constant
3484 values.
3485 (get_array_bounds): Update comment. Remove undefined bound check.
3486
599088e3
SM
34872020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3488
3489 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3490 the type::bounds method directly.
3491
c4dfcb36
SM
34922020-07-12 Simon Marchi <simon.marchi@efficios.com>
3493
3494 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3495 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3496 are used to set the range type's bounds to use set_bounds.
3497
0a278aa7
PW
34982020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3499
3500 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3501
cce20f10
PA
35022020-07-10 Pedro Alves <pedro@palves.net>
3503
3504 * gdbthread.h (inferior_ref): Define.
3505 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3506 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3507 * thread.c
3508 (scoped_restore_current_thread::restore):
3509 Adjust to gdb::ref_ptr.
3510 (scoped_restore_current_thread::~scoped_restore_current_thread):
3511 Remove manual decref handling.
3512 (scoped_restore_current_thread::scoped_restore_current_thread):
3513 Adjust to use
3514 inferior_ref::new_reference/thread_info_ref::new_reference.
3515 Incref the thread before calling get_frame_id instead of after.
3516 Let TARGET_CLOSE_ERROR propagate.
3517
6d7aa592
PA
35182020-07-10 Pedro Alves <pedro@palves.net>
3519
3520 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3521 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3522 NOT_AVAILABLE_ERROR.
3523 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3524 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3525
b3e3a4c1
SM
35262020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3527 Pedro Alves <pedro@palves.net>
3528
3529 PR gdb/26199
3530 * infrun.c (threads_are_resumed_pending_p): Delete.
3531 (do_target_wait): Remove threads_are_executing and
3532 threads_are_resumed_pending_p checks from the inferior_matches
3533 lambda. Update comments.
3534
d6cc5d98
PA
35352020-07-10 Pedro Alves <pedro@palves.net>
3536
3537 PR gdb/26199
3538 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3539 executing threads.
3540
7d3badc6
PA
35412020-07-10 Pedro Alves <pedro@palves.net>
3542
3543 PR gdb/26199
3544 * infrun.c (handle_no_resumed): Handle multiple targets.
3545
42bd97a6
PA
35462020-07-10 Pedro Alves <pedro@palves.net>
3547
3548 PR gdb/26199
3549 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3550 target_is_async_p.
3551
43667cc6
PA
35522020-07-10 Pedro Alves <pedro@palves.net>
3553
3554 PR gdb/26199
3555 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3556 threads, not all threads.
3557
96118d11
PA
35582020-07-10 Pedro Alves <pedro@palves.net>
3559
3560 PR gdb/26199
3561 * remote.c (remote_target::open_1): Pass remote target pointer as
3562 data to create_async_event_handler.
3563 (remote_async_inferior_event_handler): Mark async event handler
3564 before returning if the remote target still has either pending
3565 events or unacknowledged notifications.
3566
54904d81
JB
35672020-07-10 John Baldwin <jhb@FreeBSD.org>
3568
3569 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3570 declaration.
3571 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3572 function.
3573
f37e5866
JB
35742020-07-09 John Baldwin <jhb@FreeBSD.org>
3575
3576 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3577 inferior_ptid.
3578
fc238d4a
JB
35792020-07-09 John Baldwin <jhb@FreeBSD.org>
3580
3581 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3582 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3583 AT_FREEBSD_PS_STRINGS.
3584
6e2469ff
HD
35852020-07-08 Hannes Domani <ssbssa@yahoo.de>
3586
3587 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3588 of debugfile path on Windows.
3589
d1076c41
JB
35902020-07-08 John Baldwin <jhb@FreeBSD.org>
3591
3592 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3593 argument to 'data'.
3594
15f3b077
TT
35952020-07-08 Tom Tromey <tromey@adacore.com>
3596
3597 * ada-lang.c (ada_exception_message_1): Use read_memory.
3598
9fc501fd
AB
35992020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3600
3601 PR python/22748
3602 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3603 special handling for inline frames.
3604 * findvar.c (value_of_register_lazy): Skip inline frames when
3605 creating lazy register values.
3606 * frame.c (frame_id_computed_p): Delete definition.
3607 * frame.h (frame_id_computed_p): Delete declaration.
3608
64cb3757
AB
36092020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3610
3611 * NEWS: Mention additions to Python API.
3612 * python/py-arch.c (archpy_register_groups): New function.
3613 (arch_object_methods): Add 'register_groups' method.
3614 * python/py-registers.c (reggroup_iterator_object): New struct.
3615 (reggroup_object): New struct.
3616 (gdbpy_new_reggroup): New function.
3617 (gdbpy_reggroup_to_string): New function.
3618 (gdbpy_reggroup_name): New function.
3619 (gdbpy_reggroup_iter): New function.
3620 (gdbpy_reggroup_iter_next): New function.
3621 (gdbpy_new_reggroup_iterator): New function
3622 (gdbpy_initialize_registers): Register new types.
3623 (reggroup_iterator_object_type): Define new Python type.
3624 (gdbpy_reggroup_getset): New static global.
3625 (reggroup_object_type): Define new Python type.
3626 * python/python-internal.h
3627
0f767f94
AB
36282020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3629
3630 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3631 * python/py-arch.c (archpy_registers): New function.
3632 (arch_object_methods): Add 'registers' method.
3633 * python/py-registers.c: New file.
3634 * python/python-internal.h
3635 (gdbpy_new_register_descriptor_iterator): Declare.
3636 (gdbpy_initialize_registers): Declare.
3637 * python/python.c (do_start_initialization): Call
3638 gdbpy_initialize_registers.
3639 * NEWS: Mention additions to the Python API.
3640
87dbc774
AB
36412020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3642
3643 * NEWS: Mention new Python API method.
3644 * python/py-unwind.c (pending_framepy_architecture): New function.
3645 (pending_frame_object_methods): Add architecture method.
3646
3bc98c0c
AB
36472020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3648
3649 * gdbarch.c: Regenerate.
3650 * gdbarch.h: Regenerate.
3651 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3652 (gdbarch_data): Use internal_error for the case where
3653 deprecated_set_gdbarch_data was originally needed.
3654 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3655 and use passed in obstack.
3656 (libunwind_frame_set_descr): Should no longer get back NULL from
3657 gdbarch_data.
3658 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3659 type.
3660 * user-regs.c (user_regs_init): Update parameters, and use passed
3661 in obstack.
3662 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3663 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3664
d8cc8af6
TV
36652020-07-06 Tom de Vries <tdevries@suse.de>
3666
3667 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3668 End-Of-Sequence in lte_is_less_than.
3669 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3670 "gdb: Don't reorder line table entries too much when sorting".
3671
947f7597
TV
36722020-07-06 Tom de Vries <tdevries@suse.de>
3673
3674 PR tui/26205
3675 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3676
1e7c1b22
TV
36772020-07-05 Tom de Vries <tdevries@suse.de>
3678
3679 PR build/26187
3680 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3681 std::uncaught_exceptions instead of deprecated
3682 std::uncaught_exception.
3683
a36158ec
SM
36842020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3685
3686 * macroexp.h (macro_stringify): Return
3687 gdb::unique_xmalloc_ptr<char>.
3688 * macroexp.c (macro_stringify): Likewise.
3689 * macrotab.c (fixup_definition): Update.
3690
14d960c8
SM
36912020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3692
3693 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3694 (lex_one_token): Update.
3695 * macroexp.c (struct macro_buffer) <release>: Return
3696 gdb::unique_xmalloc_ptr<char>.
3697 (macro_stringify): Update.
3698 (macro_expand): Update.
3699 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3700 * macroexp.h (macro_expand_next): Likewise.
3701
211d5b1c
SM
37022020-07-02 Simon Marchi <simon.marchi@efficios.com>
3703
3704 * macroexp.h (macro_lookup_ftype): Remove.
3705 (macro_expand, macro_expand_once, macro_expand_next): Remove
3706 lookup function parameters, add scope parameter.
3707 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3708 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3709 * macroscope.h (standard_macro_lookup): Change parameter type
3710 to macro_scope.
3711 * macroscope.c (standard_macro_lookup): Likewise.
3712 * c-exp.y (lex_one_token): Update.
3713 * macrocmd.c (macro_expand_command): Likewise.
3714 (macro_expand_once_command): Likewise.
3715
b1a35af2
SM
37162020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3717
3718 * inf-loop.c (inferior_event_handler): Remove client_data param.
3719 * inf-loop.h (inferior_event_handler): Likewise.
3720 * infcmd.c (step_1): Adjust.
3721 * infrun.c (proceed): Adjust.
3722 (fetch_inferior_event): Remove client_data param.
3723 (infrun_async_inferior_event_handler): Adjust.
3724 * infrun.h (fetch_inferior_event): Remove `void *` param.
3725 * linux-nat.c (handle_target_event): Adjust.
3726 * record-btrace.c (record_btrace_handle_async_inferior_event):
3727 Adjust.
3728 * record-full.c (record_full_async_inferior_event_handler):
3729 Adjust.
3730 * remote.c (remote_async_inferior_event_handler): Adjust.
3731
1cdf9e33
TT
37322020-07-01 Tom Tromey <tom@tromey.com>
3733
3734 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3735 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3736
32c1e210
TT
37372020-07-01 Tom Tromey <tom@tromey.com>
3738
3739 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3740 tui_gen_win_info.
3741 (tui_win_info::make_window): Merge with
3742 tui_gen_win_info::make_window.
3743 (tui_win_info::make_visible): Move from tui_gen_win_info.
3744 * tui/tui-win.c (tui_win_info::max_width): Move from
3745 tui_gen_win_info.
3746 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3747 type.
3748 <window_factory>: Likewise.
3749 * tui/tui-layout.c (tui_win_info::resize): Move from
3750 tui_gen_win_info.
3751 (make_standard_window): Change return type.
3752 (get_locator_window, tui_get_window_by_name): Likewise.
3753 (tui_layout_window::apply): Remove a cast.
3754 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3755 (struct tui_win_info): Merge with tui_gen_win_info.
3756 (struct tui_gen_win_info): Remove.
3757
a30cb6da
TT
37582020-07-01 Tom Tromey <tom@tromey.com>
3759
3760 * tui/tui-stack.h (struct tui_locator_window): Derive from
3761 tui_win_info.
3762 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3763 <can_box>: New method.
3764
1eb2161f
TT
37652020-07-01 Tom Tromey <tom@tromey.com>
3766
3767 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3768
7134f2eb
TT
37692020-07-01 Tom Tromey <tom@tromey.com>
3770
3771 * tui/tui-regs.c (tui_data_window::display_registers_from)
3772 (tui_data_window::display_registers_from)
3773 (tui_data_window::first_data_item_displayed)
3774 (tui_data_window::delete_data_content_windows): Update.
3775 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3776 Remove.
3777 (tui_data_window::check_register_values): Update.
3778 (tui_data_item_window::rerender): Add parameters. Update.
3779 (tui_data_item_window::refresh_window): Remove.
3780 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3781 virtual.
3782 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3783 tui_gen_win_info.
3784 <refresh_window, max_height, min_height>: Remove.
3785 <rerender>: Add parameters.
3786 <x, y, visible>: New members.
3787 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3788 <m_item_width>: New member.
3789
22b7b041
TT
37902020-07-01 Tom Tromey <tom@tromey.com>
3791
3792 * tui/tui-regs.c (tui_data_window::show_register_group)
3793 (tui_data_window::check_register_values): Update.
3794 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3795 from item_no.
3796
c9753adb
TT
37972020-07-01 Tom Tromey <tom@tromey.com>
3798
3799 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3800 useless "if".
3801
9ab26b4a
TT
38022020-07-01 Tom Tromey <tom@tromey.com>
3803
3804 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3805 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3806
e555083f
TT
38072020-07-01 Tom Tromey <tom@tromey.com>
3808
3809 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3810 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3811 (struct tui_line_or_address): Move from tui-data.h.
3812 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3813 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3814 (tui_cmd_window, tui_source_window_base, tui_source_window)
3815 (tui_disasm_window): Don't declare.
3816 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3817 to tui-winsource.h.
3818 (SINGLE_KEY): Move to tui-stack.c.
3819
7a02bab7
TT
38202020-07-01 Tom Tromey <tom@tromey.com>
3821
3822 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3823 std::string.
3824 * tui/tui-regs.c (class tab_expansion_file): New.
3825 (tab_expansion_file::write): New method.
3826 (tui_register_format): Change return type. Use
3827 tab_expansion_file.
3828 (tui_get_register, tui_data_window::display_registers_from)
3829 (tui_data_item_window::rerender): Update.
3830 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3831 * tui/tui-io.c (tui_expand_tabs): Remove.
3832
ea68593b
TT
38332020-07-01 Tom Tromey <tom@tromey.com>
3834
3835 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3836
a8caed5d
FS
38372020-07-01 Fangrui Song <maskray@google.com>
3838
3839 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3840
9cdf9820
AKS
38412020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3842
3843 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3844 forms for DW_AT_associated and DW_AT_allocated attributes,
3845 which is already checked in function attr_to_dynamic_prop.
3846
a1520ad8
TT
38472020-06-30 Tom Tromey <tromey@adacore.com>
3848
3849 * dwarf2/read.c (quirk_rust_enum): Correctly call
3850 alloc_rust_variant for default-less enum.
3851
5ac58899
TT
38522020-06-30 Tom Tromey <tromey@adacore.com>
3853
3854 PR build/26183:
3855 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3856 gdb::to_string.
3857
19b187a9
SM
38582020-06-29 Simon Marchi <simon.marchi@efficios.com>
3859
3860 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3861 * gdbarch.h: Re-generate.
3862
cd4c4c07
TT
38632020-06-28 Tom Tromey <tom@tromey.com>
3864
3865 * command.h (cmd_types): Remove.
3866 (cmd_type): Don't declare.
3867 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3868 typedef.
3869 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3870 * cli/cli-decode.c (cmd_type): Remove.
3871
05779d57
PA
38722020-06-27 Pedro Alves <palves@redhat.com>
3873
3874 * fork-child.c (prefork_hook): Adjust.
3875 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3876 Delete.
3877 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3878 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3879 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3880 Remove declarations.
3881 (struct inferior) <set_tty, tty>: New methods.
3882 (struct inferior) <terminal>: Rename to ...
3883 (struct inferior) <m_terminal>: ... this and make private.
3884 * main.c (captured_main_1): Adjust.
3885 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3886 (mi_cmd_inferior_tty_show): Adjust.
3887 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3888 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3889
1776e3e5
NA
38902020-06-26 Nick Alcock <nick.alcock@oracle.com>
3891
3892 * configure.ac: Add --enable-libctf: handle --disable-static
3893 properly.
3894 * acinclude.m4: sinclude ../config/enable.m4.
3895 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3896 (LIBCTF): Substitute in.
3897 (CTF_DEPS): New, likewise.
3898 (CLIBS): libctf needs symbols from libbfd: move earlier.
3899 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3900 flags.
3901 * ctfread.c: Surround in ENABLE_LIBCTF.
3902 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3903 * configure: Regenerate.
3904 * config.in: Likewise.
3905
58373b80
SM
39062020-06-25 Simon Marchi <simon.marchi@efficios.com>
3907
3908 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3909
277474ee
SM
39102020-06-25 Simon Marchi <simon.marchi@efficios.com>
3911
3912 * inferior.h (struct inferior) <terminal>: Change type to
3913 gdb::unique_xmalloc_ptr<char>.
3914 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3915 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3916 field, adjust to unique pointer.
3917 (get_inferior_io_terminal): Adjust to unique pointer.
3918
6d74da72
AB
39192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3920
3921 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3922 registers, not just the known core set of registers.
3923
2e52d038
AB
39242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3925
3926 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3927 fflags, frm, and fcsr registers.
3928 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3929 restore groups.
3930 (riscv_tdesc_unknown_reg): New function.
3931 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3932 tdesc_use_registers.
3933 * riscv-tdep.h (struct gdbarch_tdep): Add
3934 unknown_csrs_first_regnum, unknown_csrs_count,
3935 duplicate_fflags_regnum, duplicate_frm_regnum, and
3936 duplicate_fcsr_regnum fields.
3937
be64fd07
AB
39382020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3939
3940 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3941 callback, use the callback (when not null) to help number unknown
3942 registers.
3943 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3944 (tdesc_use_registers): Add extra parameter to declaration.
3945
3b9fce96
AB
39462020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3947
3948 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3949 in the file.
3950 (class riscv_pending_register_alias): Likewise.
3951 (riscv_register_feature::register_info): Change 'required_p' field
3952 to 'required', and change its type. Add 'check' member function.
3953 (riscv_register_feature::register_info::check): Define new member
3954 function.
3955 (riscv_xreg_feature): Change initialisation of 'required' field.
3956 (riscv_freg_feature): Likewise.
3957 (riscv_virtual_feature): Likewise.
3958 (riscv_csr_feature): Likewise.
3959 (riscv_check_tdesc_feature): Take extra parameter, the csr
3960 tdesc_feature, rewrite the function to use the new
3961 riscv_register_feature::register_info::check function.
3962 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3963
865bad26
AB
39642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3965
3966 * features/Makefile: Remove all references to the deleted files
3967 below.
3968 * features/riscv/32bit-csr.c: Deleted.
3969 * features/riscv/32bit-csr.xml: Deleted.
3970 * features/riscv/64bit-csr.c: Deleted.
3971 * features/riscv/64bit-csr.xml: Deleted.
3972 * features/riscv/rebuild-csr-xml.sh: Deleted.
3973
ed69cbc8
AB
39742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3975
3976 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3977 whitespace error for declaration of names member variable.
3978 (struct riscv_register_feature): Add new prefer_first_name member
3979 variable, and fix whitespace error in declaration of registers.
3980 (riscv_xreg_feature): Initialize prefer_first_name field.
3981 (riscv_freg_feature): Likewise.
3982 (riscv_virtual_feature): Likewise.
3983 (riscv_csr_feature): Likewise.
3984 (riscv_register_name): Expand on comments. Remove register name
3985 modifications for CSR and virtual registers.
3986
4445e8f5
AB
39872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3988
3989 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3990 errors.
3991
767a879e
AB
39922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3993
3994 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3995 riscv-opc.h.
3996 (class riscv_pending_register_alias): New class.
3997 (riscv_check_tdesc_feature): Take vector of pending aliases and
3998 populate it as appropriate.
3999 (riscv_setup_register_aliases): Delete.
4000 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4001 to riscv_check_tdesc_feature in all cases. Use the vector to
4002 create the register aliases.
4003
bb6e55f3
RO
40042020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4005
4006 * sol2-tdep.c (sol2_static_transform_name): Remove.
4007 (sol2_init_abi): Don't register it.
4008 * gdbarch.sh (static_transform_name): Remove.
4009 * gdbarch.c, gdbarch.h: Regenerate.
4010
4011 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4012 gdbarch_static_transform_name.
4013 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4014 * stabsread.c (define_symbol) <'X'>: Remove.
4015 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4016 handling.
4017 <'V'>: Likewise.
4018 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4019 <'S'>: Remove call to gdbarch_static_transform_name.
4020
c6d36836
RO
40212020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4022
4023 * procfs.c (procfs_pre_trace): New function.
4024 (procfs_target::create_inferior): Pass it to fork_inferior.
4025
a7e6196b
RO
40262020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4027
4028 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4029 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4030 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4031 sol2-tdep.o, sparc-sol2-tdep.o.
4032 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4033 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4034 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4035 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4036
d412e696
RO
40372020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4038
4039 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4040 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4041 Call sol2_init_abi.
4042 Remove calls to set_gdbarch_skip_solib_resolver,
4043 set_gdbarch_core_pid_to_str.
4044 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4045 (i386_sol2_static_transform_name): Remove.
4046 (i386_sol2_init_abi): Call sol2_init_abi.
4047 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4048 set_gdbarch_static_transform_name,
4049 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4050 Use sol2_sigtramp_p.
4051 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4052 (sol2_sigtramp_p): New function.
4053 (sol2_static_transform_name): New function.
4054 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4055 (sol2_init_abi): New function.
4056 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4057 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4058 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4059 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4060 (sparc_sol2_static_transform_name): Remove.
4061 (sparc32_sol2_init_abi): Call sol2_init_abi.
4062 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4063 set_gdbarch_static_transform_name,
4064 set_gdbarch_skip_solib_resolver,
4065 set_gdbarch_core_pid_to_str.
4066 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4067 (sparc_sol2_static_transform_name): Remove
4068 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4069 call sol2_sigtramp_p.
4070 (sparc64_sol2_init_abi): Call sol2_init_abi.
4071 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4072 set_gdbarch_static_transform_name,
4073 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4074
a8654e7d
PW
40752020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4076
4077 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4078 * exec.c (validate_exec_file): If from_tty, set both
4079 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4080 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4081 and from_tty, unconditionally ask a confirmation.
4082
caa7fd04
AB
40832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4084
4085 * target-descriptions.c (tdesc_architecture_name): Protect against
4086 NULL pointer dereference.
4087 (maint_print_xml_tdesc_cmd): New function.
4088 (_initialize_target_descriptions): Register new 'maint print
4089 xml-tdesc' command and give it the filename completer.
4090 * NEWS: Mention new 'maint print xml-tdesc' command.
4091
fbf42f4e
AB
40922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4093
4094 * target-descriptions.c (class tdesc_compatible_info): New class.
4095 (struct target_desc): Change type of compatible vector.
4096 (tdesc_compatible_p): Update for change in type of
4097 target_desc::compatible.
4098 (tdesc_compatible_info_list): New function.
4099 (tdesc_compatible_info_arch_name): New function.
4100 (tdesc_add_compatible): Update for change in type of
4101 target_desc::compatible.
4102 (print_c_tdesc::visit_pre): Likewise.
4103
20821f4e
AB
41042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4105
4106 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4107 whitespace to underscore.
4108 (maint_print_c_tdesc_cmd): Use fake filename for target
4109 descriptions that came from the target.
4110 (_initialize_target_descriptions): Add filename command completion
4111 for 'maint print c-tdesc'.
4112
1fb5ee62
SM
41132020-06-23 Simon Marchi <simon.marchi@efficios.com>
4114
4115 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4116 lines.
4117
fc3ecb3e
SM
41182020-06-23 Simon Marchi <simon.marchi@efficios.com>
4119
4120 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4121 lines.
4122 (dwarf2_find_location_expression): Likewise.
4123 (call_site_parameter_matches): Likewise.
4124 (dwarf2_compile_expr_to_ax): Likewise.
4125 (disassemble_dwarf_expression): Likewise.
4126 (loclist_describe_location): Likewise.
4127
236ef034
PA
41282020-06-23 Pedro Alves <palves@redhat.com>
4129
4130 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4131 progspace-and-thread.h. Include scoped-mock-context.h instead.
4132 (register_to_value_test): Use scoped_mock_context.
4133 * regcache.c: Include "scoped-mock-context.h".
4134 (cooked_read_test): Don't error out if a target is already pushed.
4135 Use scoped_mock_context. Adjust.
4136 * scoped-mock-context.h: New file.
4137
39e7ecca
AB
41382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4139
4140 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4141 initializer.
4142 (ada_language::is_string_type_p): New member function.
4143 * c-lang.c (c_language_data): Delete la_is_string_type_p
4144 initializer.
4145 (cplus_language_data): Likewise.
4146 (asm_language_data): Likewise.
4147 (minimal_language_data): Likewise.
4148 * d-lang.c (d_language_data): Likewise.
4149 * f-lang.c (f_is_string_type_p): Delete function, implementation
4150 moved to f_language::is_string_type_p.
4151 (f_language_data): Delete la_is_string_type_p initializer.
4152 (f_language::is_string_type_p): New member function,
4153 implementation from f_is_string_type_p.
4154 * go-lang.c (go_is_string_type_p): Delete function, implementation
4155 moved to go_language::is_string_type_p.
4156 (go_language_data): Delete la_is_string_type_p initializer.
4157 (go_language::is_string_type_p): New member function,
4158 implementation from go_is_string_type_p.
4159 * language.c (language_defn::is_string_type_p): Define new member
4160 function.
4161 (default_is_string_type_p): Make static, add comment copied from
4162 header file.
4163 (unknown_language_data): Delete la_is_string_type_p initializer.
4164 (unknown_language::is_string_type_p): New member function.
4165 (auto_language_data): Delete la_is_string_type_p initializer.
4166 (auto_language::is_string_type_p): New member function.
4167 * language.h (language_data): Delete la_is_string_type_p field.
4168 (language_defn::is_string_type_p): Declare new function.
4169 (default_is_string_type_p): Delete desclaration, move comment to
4170 definition.
4171 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4172 moved to m2_language::is_string_type_p.
4173 (m2_language_data): Delete la_is_string_type_p initializer.
4174 (m2_language::is_string_type_p): New member function,
4175 implementation from m2_is_string_type_p.
4176 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4177 initializer.
4178 * opencl-lang.c (opencl_language_data): Likewise.
4179 * p-lang.c (pascal_is_string_type_p): Delete function,
4180 implementation moved to pascal_language::is_string_type_p.
4181 (pascal_language_data): Delete la_is_string_type_p initializer.
4182 (pascal_language::is_string_type_p): New member function,
4183 implementation from pascal_is_string_type_p.
4184 * rust-lang.c (rust_is_string_type_p): Delete function,
4185 implementation moved to rust_language::is_string_type_p.
4186 (rust_language_data): Delete la_is_string_type_p initializer.
4187 (rust_language::is_string_type_p): New member function,
4188 implementation from rust_is_string_type_p.
4189 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4190 is_string_type_p.
4191
4ffc13fb
AB
41922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4193
4194 * ada-lang.c (ada_language_data): Delete la_print_typedef
4195 initializer.
4196 (ada_language::print_typedef): New member function.
4197 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4198 (cplus_language_data): Likewise.
4199 (asm_language_data): Likewise.
4200 (minimal_language_data): Likewise.
4201 * d-lang.c (d_language_data): Likewise.
4202 * f-lang.c (f_language_data): Likewise.
4203 (f_language::print_typedef): New member function.
4204 * go-lang.c (go_language_data): Delete la_print_typedef
4205 initializer.
4206 * language.c (language_defn::print_typedef): Define member
4207 function.
4208 (unknown_language_data): Delete la_print_typedef initializer.
4209 (unknown_language::print_typedef): New member function.
4210 (auto_language_data): Delete la_print_typedef initializer.
4211 (auto_language::print_typedef): New member function.
4212 * language.h (language_data): Delete la_print_typedef field.
4213 (language_defn::print_typedef): Declare new member function.
4214 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4215 (default_print_typedef): Delete declaration.
4216 * m2-lang.c (m2_language_data): Delete la_print_typedef
4217 initializer.
4218 (m2_language::print_typedef): New member function.
4219 * objc-lang.c (objc_language_data): Delete la_print_typedef
4220 initializer.
4221 * opencl-lang.c (opencl_language_data): Likewise.
4222 * p-lang.c (pascal_language_data): Likewise.
4223 (pascal_language::print_typedef): New member function.
4224 * rust-lang.c (rust_print_typedef): Delete function,
4225 implementation moved to rust_language::print_typedef.
4226 (rust_language): Delete la_print_typedef initializer.
4227 (rust_language::print_typedef): New member function,
4228 implementation from rust_print_typedef.
4229 * typeprint.c (default_print_typedef): Delete.
4230
d711ee67
AB
42312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4232
4233 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4234 (ada_language::printstr): New member function.
4235 * c-lang.c (c_language_data): Delete la_printstr initializer.
4236 (cplus_language_data): Likewise.
4237 (asm_language_data): Likewise.
4238 (minimal_language_data): Likewise.
4239 * d-lang.c (d_language_data): Likewise.
4240 * f-lang.c (f_printstr): Rename to f_language::printstr.
4241 (f_language_data): Delete la_printstr initializer.
4242 (f_language::printstr): New member function, implementation from
4243 f_printstr.
4244 * go-lang.c (go_language_data): Delete la_printstr initializer.
4245 * language.c (language_defn::printstr): Define new member
4246 function.
4247 (unk_lang_printstr): Delete.
4248 (unknown_language_data): Delete la_printstr initializer.
4249 (unknown_language::printstr): New member function.
4250 (auto_language_data): Delete la_printstr initializer.
4251 (auto_language::printstr): New member function.
4252 * language.h (language_data): Delete la_printstr field.
4253 (language_defn::printstr): Declare new member function.
4254 (LA_PRINT_STRING): Update call to printstr.
4255 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4256 (m2_language_data): Delete la_printstr initializer.
4257 (m2_language::printstr): New member function, implementation from
4258 m2_printstr.
4259 * objc-lang.c (objc_language_data): Delete la_printstr
4260 initializer.
4261 * opencl-lang.c (opencl_language_data): Likewise.
4262 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4263 (pascal_language_data): Delete la_printstr initializer.
4264 (pascal_language::printstr): New member function, implementation
4265 from pascal_printstr.
4266 * p-lang.h (pascal_printstr): Delete declaration.
4267 * rust-lang.c (rust_printstr): Update header comment.
4268 (rust_language_data): Delete la_printstr initializer.
4269 (rust_language::printstr): New member function.
4270
52b50f2c
AB
42712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4272
4273 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4274 (ada_language::printchar): New member function.
4275 * c-lang.c (c_language_data): Delete la_printchar initializer.
4276 (cplus_language_data): Likewise.
4277 (asm_language_data): Likewise.
4278 (minimal_language_data): Likewise.
4279 * d-lang.c (d_language_data): Likewise.
4280 * f-lang.c (f_printchar): Rename to f_language::printchar.
4281 (f_language_data): Delete la_printchar initializer.
4282 (f_language::printchar): New member function, implementation from
4283 f_printchar.
4284 * go-lang.c (go_language_data): Delete la_printchar initializer.
4285 * language.c (unk_lang_printchar): Delete.
4286 (language_defn::printchar): Define new member function.
4287 (unknown_language_data): Delete la_printchar initializer.
4288 (unknown_language::printchar): New member function.
4289 (auto_language_data): Delete la_printchar initializer.
4290 (auto_language::printchar): New member function.
4291 * language.h (language_data): Delete la_printchar field.
4292 (language_defn::printchar): Declare new member function.
4293 (LA_PRINT_CHAR): Update call to printchar.
4294 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4295 (m2_language::printchar): New member function.
4296 * objc-lang.c (objc_language_data): Delete la_printchar
4297 initializer.
4298 * opencl-lang.c (opencl_language_data): Likewise.
4299 * p-lang.c (pascal_language_data): Delete la_printchar
4300 initializer.
4301 (pascal_language::printchar): New member function.
4302 * rust-lang.c (rust_printchar): Rename to
4303 rust_language::printchar.
4304 (rust_language_data): Delete la_printchar initializer.
4305 (rust_language::printchar): New member function, implementation
4306 from rust_printchar.
4307
ec8cec5b
AB
43082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4309
4310 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4311 (ada_language_data): Delete la_emitchar initializer.
4312 (ada_language::emitchar): New member function, implementation from
4313 emit_char.
4314 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4315 (cplus_language_data): Likewise.
4316 (asm_language_data): Likewise.
4317 (minimal_language_data): Likewise.
4318 * d-lang.c (d_language_data): Likewise.
4319 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4320 (f_language_data): Delete la_emitchar initializer.
4321 (f_language::emitchar): New member function, implementation from
4322 f_emit_char.
4323 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4324 * language.c (unk_lang_emit_char): Delete.
4325 (language_defn::emitchar): New member function definition.
4326 (unknown_language_data): Delete la_emitchar initializer.
4327 (unknown_language::emitchar): New member function.
4328 (auto_language_data): Delete la_emitchar initializer.
4329 (auto_language::emitchar): New member function.
4330 * language.h (language_data): Delete la_emitchar field.
4331 (language_defn::emitchar): New member field declaration.
4332 (LA_EMIT_CHAR): Update call to emitchar.
4333 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4334 (m2_language_data): Delete la_emitchar initializer.
4335 (m2_language::emitchar): New member function, implementation from
4336 m2_emit_char.
4337 * objc-lang.c (objc_language_data): Delete la_emitchar
4338 initializer.
4339 * opencl-lang.c (opencl_language_data): Likewise.
4340 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4341 (pascal_language_data): Delete la_emitchar initializer.
4342 (pascal_language::emitchar): New member function, implementation
4343 from pascal_emit_char.
4344 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4345 (rust_language_data): Delete la_emitchar initializer.
4346 (rust_language::emitchar): New member function, implementation
4347 from rust_emitchar.
4348
1bf9c363
AB
43492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4350
4351 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4352 (ada_language_data): Delete la_post_parser initializer.
4353 (ada_language::post_parser): New member function.
4354 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4355 (cplus_language_data): Likewise.
4356 (asm_language_data): Likewise.
4357 (minimal_language_data): Likewise.
4358 * d-lang.c (d_language_data): Likewise.
4359 * f-lang.c (f_language_data): Likewise.
4360 * go-lang.c (go_language_data): Likewise.
4361 * language.c (unknown_language_data): Likewise.
4362 (auto_language_data): Likewise.
4363 * language.h (language_data): Delete la_post_parser field.
4364 (language_defn::post_parser): New member function.
4365 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4366 * objc-lang.c (objc_language_data): Likewise.
4367 * opencl-lang.c (opencl_language_data): Likewise.
4368 * p-lang.c (pascal_language_data): Likewise.
4369 * parse.c (parse_exp_in_context): Update call to post_parser.
4370 (null_post_parser): Delete definition.
4371 * parser-defs.h (null_post_parser): Delete declaration.
4372 * rust-lang.c (rust_language_data): Delete la_post_parser
4373 initializer.
4374
87afa652
AB
43752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4376
4377 * ada-lang.c (parse): Rename to ada_language::parser.
4378 (ada_language_data): Delete la_parser initializer.
4379 (ada_language::parser): New member function, implementation from
4380 parse.
4381 * c-lang.c (c_language_data): Delete la_parser initializer.
4382 (cplus_language_data): Likewise.
4383 (asm_language_data): Likewise.
4384 (minimal_language_data): Likewise.
4385 * d-lang.c (d_language_data): Likewise.
4386 (d_language::parser): New member function.
4387 * f-lang.c (f_language_data): Delete la_parser initializer.
4388 (f_language::parser): New member function.
4389 * go-lang.c (go_language_data): Delete la_parser initializer.
4390 (go_language::parser): New member function.
4391 * language.c (unk_lang_parser): Delete.
4392 (language_defn::parser): Define new member function.
4393 (unknown_language_data): Delete la_parser initializer.
4394 (unknown_language::parser): New member function.
4395 (auto_language_data): Delete la_parser initializer.
4396 (auto_language::parser): New member function.
4397 * language.h (language_data): Delete la_parser field.
4398 (language_defn::parser): Declare new member function.
4399 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4400 (m2_language::parser): New member function.
4401 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4402 * opencl-lang.c (opencl_language_data): Likewise.
4403 * p-lang.c (pascal_language_data): Likewise.
4404 (pascal_language::parser): New member function.
4405 * parse.c (parse_exp_in_context): Update call to parser.
4406 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4407 (rust_language::parser): New member function.
4408
37825800
AB
44092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4410
4411 * top.c (print_gdb_configuration): Print --with-python-libdir
4412 configuration value.
4413
5b860c93
PW
44142020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4415
4416 * NEWS: Mention change to the alias command.
4417
cf00cd6f
PW
44182020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4419
4420 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4421 (alias_command_completer)
4422 (make_alias_options_def_group): New functions.
4423 (alias_opts, alias_option_defs): New struct and array.
4424 (alias_usage_error): Update usage.
4425 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4426 Use option framework.
4427 (_initialize_cli_cmds): Update alias command help.
4428 Update aliases command help.
4429 (show_user):
4430 Add NULL for new default_args lookup_cmd argument.
4431 (valid_command_p): Rename to validate_aliased_command.
4432 Add NULL for new default_args lookup_cmd argument. Verify that the
4433 aliased_command has no default args.
4434 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4435 (lookup_cmd_1, lookup_cmd): New argument default_args.
4436 (add_alias_cmd):
4437 Add NULL for new default_args lookup_cmd argument.
4438 (print_help_for_command): Show default args under the layout
4439 alias some_alias = some_aliased_cmd some_alias_default_arg.
4440 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4441 xfree default_args in destructor.
4442 * cli/cli-script.c (process_next_line, do_define_command):
4443 Add NULL for new default_args lookup_cmd argument.
4444 * command.h: Declare new default_args argument in lookup_cmd
4445 and lookup_cmd_1.
4446 * completer.c (complete_line_internal_1):
4447 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4448 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4449 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4450 Likewise.
4451 * infcmd.c (_initialize_infcmd): Likewise.
4452 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4453 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4454 * python/py-param.c (add_setshow_generic): Likewise.
4455 * remote.c (_initialize_remote): Likewise.
4456 * top.c (execute_command): Prepend default_args if command has some.
4457 (set_verbose):
4458 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4459 * tracepoint.c (validate_actionline, encode_actions_1):
4460 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4461
bd920864
TBA
44622020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4463
4464 * jit.c (jit_read_descriptor): Use bool as the return type.
4465 (jit_breakpoint_re_set_internal): Use bool as the return type.
4466 Invert the return value logic; return true if the jit breakpoint
4467 has been successfully initialized.
4468 (jit_inferior_init): Update the call to
4469 jit_breakpoint_re_set_internal.
4470
f8098322
PA
44712020-06-22 Pedro Alves <palves@redhat.com>
4472
4473 PR gdb/25939
4474 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4475 Use the current inferior instead. Don't return
4476 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4477 wait again.
4478 * sol-thread.c (sol_thread_target::wait): Don't reference
4479 inferior_ptid.
4480 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4481 (sol_update_thread_list_callback): Use the current inferior's pid
4482 instead of inferior_ptid.
4483
196535a6
RO
44842020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4485
4486 * procfs.c: Cleanup many comments.
4487
4488 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4489 (AFTER_WATCHFLAG): Replace by value.
4490
4491 (MAIN_PROC_NAME_FORMAT): Inline ...
4492 (create_procinfo): ... here.
4493
4494 (procfs_debug_inferior): Remove SYS_exec handling.
4495 (syscall_is_exec): Likewise.
4496 (procfs_set_exec_trap): Likewise.
4497
4498 (syscall_is_lwp_exit): Inline in callers.
4499 (syscall_is_exit): Likewise.
4500 (syscall_is_exec): Likewise.
4501 (syscall_is_lwp_create): Likewise.
4502
4503 (invalidate_cache): Remove #if 0 code.
4504
4505 (make_signal_thread_runnable): Remove.
4506 (procfs_target::resume): Remove #if 0 code.
4507
cf6f3e86
RO
45082020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4509
4510 PR gdb/25939
4511 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4512 call ...
4513 (procfs_target::create_inferior): ... here.
4514
48e9cc84
PW
45152020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4516
4517 * exec.c (validate_exec_file): Ensure the build-id is up to
4518 date by calling reopen_exec_file (that checks file timestamp
4519 to decide to re-read the file).
4520
3922b302
PA
45212020-06-18 Pedro Alves <palves@redhat.com>
4522
4523 PR gdb/25412
4524 * gdbthread.h (delete_thread, delete_thread_silent)
4525 (find_thread_ptid): Update comments.
4526 * thread.c (current_thread_): New global.
4527 (is_current_thread): Move higher, and reimplement.
4528 (inferior_thread): Reimplement.
4529 (set_thread_exited): Use bool. Add assertions.
4530 (add_thread_silent): Simplify thread-reuse handling by always
4531 calling delete_thread.
4532 (delete_thread): Remove intro comment.
4533 (find_thread_ptid): Skip exited threads.
4534 (switch_to_thread_no_regs): Write to current_thread_.
4535 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4536 INFERIOR_PTID. Clear current_thread_.
4537
6dbdab44
PA
45382020-06-18 Pedro Alves <palves@redhat.com>
4539
4540 * aix-thread.c (pd_update): Use switch_to_thread.
4541
2da4b788
PA
45422020-06-18 Pedro Alves <palves@redhat.com>
4543
4544 * ravenscar-thread.c (ravenscar_thread_target): Update.
4545 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4546 (ravenscar_thread_target::add_active_thread): ... this. Don't
4547 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4548 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4549
50838d1b
PA
45502020-06-18 Pedro Alves <palves@redhat.com>
4551
4552 * nat/windows-nat.c (current_windows_thread): Remove.
4553 * nat/windows-nat.h (current_windows_thread): Remove.
4554 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4555 Adjust.
4556 (display_selectors): Adjust to fetch the current
4557 windows_thread_info based on inferior_ptid.
4558 (fake_create_process): No longer write to current_windows_thread.
4559 (windows_nat_target::get_windows_debug_event):
4560 Don't set inferior_ptid or current_windows_thread.
4561 (windows_nat_target::wait): Adjust to not rely on
4562 current_windows_thread.
4563 (do_initial_windows_stuff): Now a method of windows_nat_target.
4564 Switch to the last_ptid thread.
4565 (windows_nat_target::attach): Adjust.
4566 (windows_nat_target::detach): Use switch_to_no_thread instead of
4567 writing to inferior_ptid directly.
4568 (windows_nat_target::create_inferior): Adjust.
4569
31ce04e9
PA
45702020-06-18 Pedro Alves <palves@redhat.com>
4571
4572 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4573
1ee1a363
PA
45742020-06-18 Pedro Alves <palves@redhat.com>
4575
4576 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4577 after creating it, instead of writing to inferior_ptid. Don't
4578 write to inferior_ptid.
4579
6d350754
PA
45802020-06-18 Pedro Alves <palves@redhat.com>
4581
4582 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4583
5d971d48
PA
45842020-06-18 Pedro Alves <palves@redhat.com>
4585
4586 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4587 it, instead of writing to inferior_ptid.
4588
86e57d1b
PA
45892020-06-18 Pedro Alves <palves@redhat.com>
4590
4591 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4592 to inferior_ptid.
4593
f2e1c129
PA
45942020-06-18 Pedro Alves <palves@redhat.com>
4595
4596 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4597 instead of writing to inferior_ptid directly.
4598
60db1b85
PA
45992020-06-18 Pedro Alves <palves@redhat.com>
4600
4601 * corelow.c (core_target::close): Use switch_to_no_thread instead
4602 of writing to inferior_ptid directly.
4603 (add_to_thread_list, core_target_open): Use switch_to_thread
4604 instead of writing to inferior_ptid directly.
4605
fe7d6a8d
PA
46062020-06-18 Pedro Alves <palves@redhat.com>
4607
4608 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4609 inferior_ptid.
4610 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4611 inferior_ptid.
4612 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4613 inferior_ptid directly.
4614 (darwin_nat_target::init_thread_list): Switch to thread, instead
4615 of writing to inferior_ptid.
4616 (darwin_nat_target::attach): Don't write to inferior_ptid.
4617 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4618
975f8708
PA
46192020-06-18 Pedro Alves <palves@redhat.com>
4620
4621 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4622 thread.
4623 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4624 Instead use switch_to_thread.
4625 (gnu_nat_target::detach): Use switch_to_no_thread
4626 instead of writing to inferior_ptid directly. Used passed-in
4627 inferior instead of looking up the inferior by pid.
4628
1a204730
PA
46292020-06-18 Pedro Alves <palves@redhat.com>
4630
4631 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4632 inferior_ptid.
4633
ebe84f23
PA
46342020-06-18 Pedro Alves <palves@redhat.com>
4635
4636 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4637 inferior_ptid.
4638 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4639 thread.
4640 (nto_procfs_target::detach): Avoid referencing
4641 inferior_ptid. Use switch_to_no_thread instead of writing to
4642 inferior_ptid directly.
4643 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4644 instead of writing to inferior_ptid directly.
4645 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4646 to thread.
4647
191f02e5
PA
46482020-06-18 Pedro Alves <palves@redhat.com>
4649
4650 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4651 after creating it, instead of writing to inferior_ptid.
4652 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4653 to inferior_ptid directly.
4654 (gdbsim_target::wait): Don't write to inferior_ptid.
4655
0ac55310
PA
46562020-06-18 Pedro Alves <palves@redhat.com>
4657
4658 * remote.c (remote_target::remote_notice_new_inferior): Use
4659 switch_to_thread instead of writing to inferior_ptid directly.
4660 (remote_target::add_current_inferior_and_thread): Use
4661 switch_to_no_thread instead of writing to inferior_ptid directly.
4662 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4663 and switch_to_thread instead of using set_current_inferior or
4664 writing to inferior_ptid directly.
4665
5233f39b
PA
46662020-06-18 Pedro Alves <palves@redhat.com>
4667
4668 * tracectf.c (ctf_target_open): Switch to added thread instead of
4669 writing to inferior_ptid directly.
4670 (ctf_target::close): Use switch_to_no_thread instead of writing to
4671 inferior_ptid directly.
4672
087e161b
PA
46732020-06-18 Pedro Alves <palves@redhat.com>
4674
4675 * tracefile-tfile.c (tfile_target_open): Don't write to
4676 inferior_ptid directly, instead switch to added thread.
4677 (tfile_target::close): Use switch_to_no_thread instead of writing
4678 to inferior_ptid directly.
4679
7fb43e53
PA
46802020-06-18 Pedro Alves <palves@redhat.com>
4681
4682 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4683 (procfs_target::detach): Use switch_to_no_thread
4684 instead of writing to inferior_ptid directly.
4685 (do_attach): Change return type to void. Switch to the added
4686 thread.
4687 (procfs_target::create_inferior): Switch to the added thread.
4688 (procfs_do_thread_registers): Don't write to inferior_ptid.
4689
18493a00
PA
46902020-06-18 Pedro Alves <palves@redhat.com>
4691
4692 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4693 of writing to inferior_ptid.
4694 (scoped_restore_exited_inferior): Delete.
4695 (handle_vfork_child_exec_or_exit): Simplify using
4696 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4697 instead of writing to inferior_ptid.
4698 (THREAD_STOPPED_BY): Delete.
4699 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4700 (thread_stopped_by_hw_breakpoint): Delete.
4701 (save_waitstatus): Use
4702 scoped_restore_current_thread+switch_to_thread, and call
4703 target_stopped_by_watchpoint instead of
4704 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4705 instead of thread_stopped_by_sw_breakpoint, and
4706 target_stopped_by_hw_breakpoint instead of
4707 thread_stopped_by_hw_breakpoint.
4708 (handle_inferior_event)
4709 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4710 inferior_ptid directly, nor
4711 set_current_inferior/set_current_program_space. Use
4712 switch_to_thread / switch_to_inferior_no_thread instead.
4713
a0776b13
PA
47142020-06-18 Pedro Alves <palves@redhat.com>
4715
4716 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4717 instead of writing to inferior_ptid.
4718
6155c136
PA
47192020-06-18 Pedro Alves <palves@redhat.com>
4720
4721 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4722 added thread.
4723 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4724 to the added thread.
4725 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4726 instead of writing to inferior_ptid.
4727
c5316fc6
PA
47282020-06-18 Pedro Alves <palves@redhat.com>
4729
4730 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4731 (register_to_value_test): Mock a program_space too. Heap-allocate
4732 the address space. Don't write to inferior_ptid. Use
4733 switch_to_thread instead.
4734
8df01799
PA
47352020-06-18 Pedro Alves <palves@redhat.com>
4736
4737 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4738 Delete.
4739 (find_signalled_thread()): New, factored out from
4740 linux_make_corefile_notes and adjusted to handle exited threads.
4741 (linux_make_corefile_notes): Adjust to use the new
4742 find_signalled_thread.
4743
41792d68
PA
47442020-06-18 Pedro Alves <palves@redhat.com>
4745
4746 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4747 of saving/restoring inferior_ptid.
4748
612f258a
TT
47492020-06-17 Tom Tromey <tom@tromey.com>
4750
4751 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4752 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4753 declare.
4754 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4755
efb763a5
SM
47562020-06-15 Simon Marchi <simon.marchi@efficios.com>
4757
4758 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4759 of partial symtabs.
4760
2951f6c0
SM
47612020-06-17 Simon Marchi <simon.marchi@efficios.com>
4762
4763 * regformats/reg-arm.dat: Remove.
4764 * regformats/reg-bfin.dat: Remove.
4765 * regformats/reg-cris.dat: Remove.
4766 * regformats/reg-crisv32.dat: Remove.
4767 * regformats/reg-m32r.dat: Remove.
4768 * regformats/reg-tilegx.dat: Remove.
4769 * regformats/reg-tilegx32.dat: Remove.
4770
7d458ea5
SM
47712020-06-17 Simon Marchi <simon.marchi@efficios.com>
4772
4773 * features/Makefile (WHICH): Remove arm files.
4774 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4775 * regformats/arm/arm-with-neon.dat: Remove.
4776 * regformats/arm/arm-with-vfpv2.dat: Remove.
4777 * regformats/arm/arm-with-vfpv3.dat: Remove.
4778
3af96c0d
SM
47792020-06-17 Simon Marchi <simon.marchi@efficios.com>
4780
4781 * features/Makefile (XMLTOC): Remove rx.xml.
4782
b25e22fd
PA
47832020-06-17 Pedro Alves <palves@redhat.com>
4784
4785 * gdbthread.h (thread_control_state) <trap_expected> Update
4786 comments.
4787
a78a19b1
AB
47882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4789
4790 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4791 ada_language::lookup_symbol_nonlocal.
4792 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4793 (ada_language::lookup_symbol_nonlocal): New member function,
4794 implementation from ada_lookup_symbol_nonlocal.
4795 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4796 initializer.
4797 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4798 initializer.
4799 (cplus_language::lookup_symbol_nonlocal): New member function.
4800 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4801 (minimal_language_data) Likewise.
4802 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4803 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4804 initializer.
4805 (d_language::lookup_symbol_nonlocal): New member function.
4806 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4807 initializer.
4808 (f_language::lookup_symbol_nonlocal): New member function.
4809 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4810 initializer.
4811 * language.c (unknown_language_data): Likewise.
4812 (auto_language_data): Likewise.
4813 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4814 field.
4815 (language_defn::lookup_symbol_nonlocal): New member function.
4816 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4817 initializer.
4818 * objc-lang.c (objc_language_data): Likewise.
4819 * opencl-lang.c (opencl_language_data): Likewise.
4820 * p-lang.c (pascal_language_data): Likewise.
4821 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4822 rust_language::lookup_symbol_nonlocal.
4823 (rust_language_data): Delete la_lookup_symbol_nonlocal
4824 initializer.
4825 (rust_language::lookup_symbol_nonlocal): New member function,
4826 implementation from rust_lookup_symbol_nonlocal.
4827 * symtab.c (lookup_symbol_aux): Update call to
4828 lookup_symbol_nonlocal.
4829 (basic_lookup_symbol_nonlocal): Rename to...
4830 (language_defn::lookup_symbol_nonlocal): ...this, and update
4831 header comment. Remove language_defn parameter, and replace with
4832 uses of `this'.
4833 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4834
ebe2334e
AB
48352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4836
4837 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4838 initializer.
4839 (ada_language::value_print_inner): New member function.
4840 * c-lang.c (c_language_data): Delete la_value_print_inner
4841 initializer.
4842 (cplus_language_data): Likewise.
4843 (asm_language_data): Likewise.
4844 (minimal_language_data): Likewise.
4845 * d-lang.c (d_language_data): Likewise.
4846 (d_language::value_print_inner): New member function.
4847 * f-lang.c (f_language_data): Delete la_value_print_inner
4848 initializer.
4849 (f_language::value_print_inner): New member function.
4850 * f-lang.h (f_value_print_innner): Rename to...
4851 (f_value_print_inner): ...this (note spelling of 'inner').
4852 * f-valprint.c (f_value_print_innner): Rename to...
4853 (f_value_print_inner): ...this (note spelling of 'inner').
4854 * go-lang.c (go_language_data): Delete la_value_print_inner
4855 initializer.
4856 (go_language::value_print_inner): New member function.
4857 * language.c (language_defn::value_print_inner): Define new member
4858 function.
4859 (unk_lang_value_print_inner): Delete.
4860 (unknown_language_data): Delete la_value_print_inner initializer.
4861 (unknown_language::value_print_inner): New member function.
4862 (auto_language_data): Delete la_value_print_inner initializer.
4863 (auto_language::value_print_inner): New member function.
4864 * language.h (language_data): Delete la_value_print_inner field.
4865 (language_defn::value_print_inner): Delcare new member function.
4866 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4867 initializer.
4868 (m2_language::value_print_inner): New member function.
4869 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4870 initializer.
4871 * opencl-lang.c (opencl_language_data): Likewise.
4872 * p-lang.c (pascal_language_data): Likewise.
4873 (pascal_language::value_print_inner): New member function.
4874 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4875 initializer.
4876 (rust_language::value_print_inner): New member function.
4877 * valprint.c (do_val_print): Update call to value_print_inner.
4878
a1d1fa3e
AB
48792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4880
4881 * ada-lang.c (ada_language_data): Delete la_value_print
4882 initializer.
4883 (ada_language::value_print): New member function.
4884 * c-lang.c (c_language_data): Delete la_value_print initializer.
4885 (cplus_language_data): Likewise.
4886 (asm_language_data): Likewise.
4887 (minimal_language_data): Likewise.
4888 * d-lang.c (d_language_data): Likewise.
4889 * f-lang.c (f_language_data): Likewise.
4890 * go-lang.c (go_language_data): Likewise.
4891 * language.c (unk_lang_value_print): Delete.
4892 (language_defn::value_print): Define new member function.
4893 (unknown_language_data): Delete la_value_print initializer.
4894 (unknown_language::value_print): New member function.
4895 (auto_language_data): Delete la_value_print initializer.
4896 (auto_language::value_print): New member function.
4897 * language.h (language_data): Delete la_value_print field.
4898 (language_defn::value_print): Declare new member function.
4899 (LA_VALUE_PRINT): Update call to value_print.
4900 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4901 * objc-lang.c (objc_language_data): Likewise.
4902 * opencl-lang.c (opencl_language_data): Likewise.
4903 * p-lang.c (pascal_language_data): Likewise.
4904 (pascal_language::value_print): New member function.
4905 * rust-lang.c (rust_language_data): Delete la_value_print
4906 initializer.
4907
f16a9f57
AB
49082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4909
4910 * ada-lang.c (ada_watch_location_expression): Rename to
4911 ada_language::watch_location_expression.
4912 (ada_language_data): Delete la_watch_location_expression
4913 initializer.
4914 (ada_language::watch_location_expression): New member function,
4915 implementation from ada_watch_location_expression.
4916 * breakpoint.c (watch_command_1): Update call to
4917 watch_location_expression.
4918 * c-lang.c (c_watch_location_expression): Rename to
4919 language_defn::watch_location_expression.
4920 (c_language_data): Delete la_watch_location_expression
4921 initializer.
4922 (cplus_language_data): Likewise.
4923 (asm_language_data): Likewise.
4924 (minimal_language_data): Likewise.
4925 * c-lang.h (c_watch_location_expression): Delete declaration.
4926 * d-lang.c (d_language_data): Delete la_watch_location_expression
4927 initializer.
4928 * f-lang.c (f_language_data): Likewise.
4929 * go-lang.c (go_language_data): Likewise.
4930 * language.c (language_defn::watch_location_expression): Member
4931 function implementation from c_watch_location_expression.
4932 (unknown_language_data): Delete la_watch_location_expression
4933 initializer.
4934 (auto_language_data): Likewise.
4935 * language.h (language_data): Delete la_watch_location_expression
4936 field.
4937 (language_defn::watch_location_expression): Declare new member
4938 function.
4939 * m2-lang.c (m2_language_data): Delete
4940 la_watch_location_expression initializer.
4941 * objc-lang.c (objc_language_data): Likewise.
4942 * opencl-lang.c (opencl_language_data): Likewise.
4943 * p-lang.c (pascal_language_data): Likewise.
4944 * rust-lang.c (rust_watch_location_expression): Rename to
4945 rust_language::watch_location_expression.
4946 (rust_language_data): Delete la_watch_location_expression
4947 initializer.
4948 (rust_language::watch_location_expression): New member function,
4949 implementation from rust_watch_location_expression.
4950
7e56227d
AB
49512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4952
4953 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4954 ada_language::collect_symbol_completion_matches.
4955 (ada_language_data): Delete la_collect_symbol_completion_matches
4956 initializer.
4957 (ada_language::collect_symbol_completion_matches): New member
4958 function, implementation from
4959 ada_collect_symbol_completion_matches.
4960 * c-lang.c (c_language_data): Delete
4961 la_collect_symbol_completion_matches initializer.
4962 (cplus_language_data): Likewise.
4963 (asm_language_data): Likewise.
4964 (minimal_language_data): Likewise.
4965 * d-lang.c (d_language_data): Likewise.
4966 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4967 f_language::collect_symbol_completion_matches.
4968 (f_language_data): Delete la_collect_symbol_completion_matches
4969 initializer.
4970 (f_language::collect_symbol_completion_matches) New member
4971 function, implementation from f_collect_symbol_completion_matches.
4972 * go-lang.c (go_language_data): Delete
4973 la_collect_symbol_completion_matches initializer.
4974 * language.c (unknown_language_data): Likewise.
4975 (auto_language_data): Likewise.
4976 * language.h (language_data): Delete
4977 la_collect_symbol_completion_matches field.
4978 (language_defn::collect_symbol_completion_matches): New member
4979 function.
4980 * m2-lang.c (m2_language_data): Delete
4981 la_collect_symbol_completion_matches initializer.
4982 * objc-lang.c (objc_language_data): Likewise.
4983 * opencl-lang.c (opencl_language_data): Likewise.
4984 * p-lang.c (pascal_language_data): Likewise.
4985 * rust-lang.c (rust_language_data): Likewise.
4986 * symtab.c (default_collect_symbol_completion_matches): Delete.
4987 (collect_symbol_completion_matches): Update call to
4988 collect_symbol_completion_matches.
4989 (collect_symbol_completion_matches_type): Likewise.
4990 * symtab.h (default_collect_symbol_completion_matches): Delete
4991 declaration.
4992
53fc67f8
AB
49932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4994
4995 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4996 (ada_language_data): Delete la_word_break_characters initializer.
4997 (ada_language::word_break_characters): New member function.
4998 * c-lang.c (c_language_data): Delete la_word_break_characters
4999 initializer.
5000 (cplus_language_data): Likewise.
5001 (asm_language_data): Likewise.
5002 (minimal_language_data): Likewise.
5003 * completer.c: Update global comment.
5004 (advance_to_expression_complete_word_point): Update call to
5005 word_break_characters.
5006 (complete_files_symbols): Likewise.
5007 (complete_line_internal_1): Likewise.
5008 (default_completer_handle_brkchars): Likewise.
5009 (skip_quoted_chars): Likewise.
5010 * d-lang.c (d_language_data): Delete la_word_break_characters
5011 initializer.
5012 * f-lang.c (f_word_break_characters): Delete.
5013 (f_language_data): Delete la_word_break_characters initializer.
5014 (f_language::word_break_characters): New member function.
5015 * go-lang.c (go_language_data): Delete la_word_break_characters
5016 initializer.
5017 * language.c (unknown_language_data): Likewise.
5018 (auto_language_data): Likewise.
5019 * language.h (default_word_break_characters): Move declaration to
5020 earlier in the file.
5021 (language_data): Delete la_word_break_characters field.
5022 (language_defn::word_break_characters): New member function.
5023 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5024 initializer.
5025 * objc-lang.c (objc_language_data): Likewise.
5026 * opencl-lang.c (opencl_language_data): Likewise.
5027 * p-lang.c (pascal_language_data): Likewise.
5028 * rust-lang.c (rust_language_data): Likewise.
5029
c9debfb9
AB
50302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5031
5032 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5033 (ada_language_data): Delete la_get_symbol_name_matcher
5034 initializer.
5035 (language_defn::get_symbol_name_matcher_inner): New member
5036 function.
5037 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5038 initializer.
5039 (cplus_language_data): Likewise.
5040 (cplus_language::get_symbol_name_matcher_inner): New member
5041 function.
5042 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5043 (minimal_language_data): Likewise.
5044 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5045 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5046 initializer.
5047 * dictionary.c (iter_match_first_hashed): Update call to
5048 get_symbol_name_matcher.
5049 (iter_match_next_hashed): Likewise.
5050 (iter_match_next_linear): Likewise.
5051 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5052 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5053 initializer.
5054 (f_language::get_symbol_name_matcher_inner): New member function.
5055 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5056 initializer.
5057 * language.c (default_symbol_name_matcher): Update header comment,
5058 make static.
5059 (language_defn::get_symbol_name_matcher): New definition.
5060 (language_defn::get_symbol_name_matcher_inner): Likewise.
5061 (get_symbol_name_matcher): Delete.
5062 (unknown_language_data): Delete la_get_symbol_name_matcher
5063 initializer.
5064 (auto_language_data): Likewise.
5065 * language.h (language_data): Delete la_get_symbol_name_matcher
5066 field.
5067 (language_defn::get_symbol_name_matcher): New member function.
5068 (language_defn::get_symbol_name_matcher_inner): Likewise.
5069 (default_symbol_name_matcher): Delete declaration.
5070 * linespec.c (find_methods): Update call to
5071 get_symbol_name_matcher.
5072 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5073 initializer.
5074 * minsyms.c (lookup_minimal_symbol): Update call to
5075 get_symbol_name_matcher.
5076 (iterate_over_minimal_symbols): Likewise.
5077 * objc-lang.c (objc_language_data): Delete
5078 la_get_symbol_name_matcher initializer.
5079 * opencl-lang.c (opencl_language_data): Likewise.
5080 * p-lang.c (pascal_language_data): Likewise.
5081 * psymtab.c (psymbol_name_matches): Update call to
5082 get_symbol_name_matcher.
5083 * rust-lang.c (rust_language_data): Delete
5084 la_get_symbol_name_matcher initializer.
5085 * symtab.c (symbol_matches_search_name): Update call to
5086 get_symbol_name_matcher.
5087 (compare_symbol_name): Likewise.
5088
9a49ad8c
AB
50892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5090
5091 * ada-lang.c (ada_language_data): Delete la_compute_program
5092 initializer.
5093 * c-lang.c (c_language_data): Likewise.
5094 (c_language::compute_program): New member function.
5095 (cplus_language_data): Delete la_compute_program initializer.
5096 (cplus_language::compute_program): New member function.
5097 (asm_language_data): Delete la_compute_program initializer.
5098 (minimal_language_data): Likewise.
5099 * c-lang.h (c_compute_program): Update comment.
5100 (cplus_compute_program): Likewise.
5101 * compile/compile-c-support.c (c_compute_program): Likewise.
5102 (cplus_compute_program): Likewise.
5103 * compile/compile.c (compile_to_object): Update call to
5104 la_compute_program.
5105 * d-lang.c (d_language_data): Delete la_compute_program
5106 initializer.
5107 * f-lang.c (f_language_data): Likewise.
5108 * go-lang.c (go_language_data): Likewise.
5109 * language.c (unknown_language_data): Likewise.
5110 (auto_language_data): Likewise.
5111 * language.h (language_data): Delete la_compute_program field.
5112 (language_defn::compute_program): New member function.
5113 * m2-lang.c (m2_language_data): Delete la_compute_program
5114 initializer.
5115 * objc-lang.c (objc_language_data): Likewise.
5116 * opencl-lang.c (opencl_language_data): Likewise.
5117 * p-lang.c (pascal_language_data): Likewise.
5118 * rust-lang.c (rust_language_data): Likewise.
5119
eff93b4d
AB
51202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5121
5122 * ada-lang.c (ada_language_data) Delete
5123 la_class_name_from_physname initializer.
5124 * c-lang.c (c_language_data): Likewise.
5125 (cplus_language_data): Likewise.
5126 (cplus_language::class_name_from_physname): New member function.
5127 (asm_language_data): Delete la_class_name_from_physname
5128 initializer.
5129 (minimal_language_data): Likewise.
5130 * d-lang.c (d_language_data): Likewise.
5131 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5132 method on language_defn class.
5133 (guess_full_die_structure_name): Likewise.
5134 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5135 initializer.
5136 * go-lang.c (go_language_data): Likewise.
5137 * language.c (language_class_name_from_physname): Delete.
5138 (unk_lang_class_name): Delete.
5139 (unknown_language_data): Delete la_class_name_from_physname
5140 initializer.
5141 (auto_language_data): Likewise.
5142 * language.h (language_data): Delete la_class_name_from_physname
5143 field.
5144 (language_defn::class_name_from_physname): New function.
5145 (language_class_name_from_physname): Delete declaration.
5146 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5147 initializer.
5148 * objc-lang.c (objc_language_data): Likewise.
5149 * opencl-lang.c (opencl_language_data): Likewise.
5150 * p-lang.c (pascal_language_data): Likewise.
5151 * rust-lang.c (rust_language_data): Likewise.
5152
de543742
TT
51532020-06-16 Tom Tromey <tom@tromey.com>
5154
5155 * tui/tui-data.h (STATUS_NAME): New macro.
5156 * tui/tui-layout.c (tui_remove_some_windows)
5157 (initialize_known_windows, tui_register_window)
5158 (tui_layout_split::remove_windows, initialize_layouts)
5159 (tui_new_layout_command): Don't use hard-coded window names.
5160
a350efd4
TT
51612020-06-16 Tom Tromey <tom@tromey.com>
5162
5163 PR tui/25348:
5164 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5165 tui_initialize_readline. Only run once. Call rl_initialize.
5166 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5167 tui_initialize_readline.
5168 * tui/tui-io.c (tui_setup_io): Call
5169 tui_ensure_readline_initialized.
5170 * tui/tui-interp.c (tui_interp::init): Update.
5171
39ec0490
TT
51722020-06-16 Tom Tromey <tom@tromey.com>
5173
5174 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5175 Also preserve the status window.
5176
d2d1ea20
TT
51772020-06-16 Tom Tromey <tom@tromey.com>
5178
5179 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5180 where m_window==nullptr.
5181
66920317
TT
51822020-06-15 Tom Tromey <tromey@adacore.com>
5183
5184 * windows-nat.c (windows_nat::handle_output_debug_string):
5185 Update.
5186 (windows_nat::handle_ms_vc_exception): Update.
5187 * target.h (target_read_string): Change API.
5188 * target.c (target_read_string): Change API.
5189 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5190 Update.
5191 * solib-frv.c (frv_current_sos): Update.
5192 * solib-dsbt.c (dsbt_current_sos): Update.
5193 * solib-darwin.c (darwin_current_sos): Update.
5194 * linux-thread-db.c (inferior_has_bug): Update.
5195 * expprint.c (print_subexp_standard): Update.
5196 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5197 (ada_exception_message_1): Update.
5198
a5d871dd
TT
51992020-06-15 Tom Tromey <tromey@adacore.com>
5200
5201 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5202
670e35fa
TT
52032020-06-15 Tom Tromey <tromey@adacore.com>
5204
5205 * valprint.c (read_string): Update comment.
5206 * target.c (MIN): Remove.
5207 (target_read_string): Rewrite.
5208
f5272a3b
TT
52092020-06-15 Tom Tromey <tromey@adacore.com>
5210
5211 * corefile.c (read_memory_string): Remove.
5212 * ada-valprint.c (ada_value_print_ptr): Update.
5213 * ada-lang.h (ada_tag_name): Change return type.
5214 * ada-lang.c (type_from_tag): Update.
5215 (ada_tag_name_from_tsd): Change return type. Use
5216 target_read_string.
5217 (ada_tag_name): Likewise.
5218 * gdbcore.h (read_memory_string): Don't declare.
5219
2c074f49
HD
52202020-06-14 Hannes Domani <ssbssa@yahoo.de>
5221
5222 * symtab.c (rbreak_command): Ignore Windows drive colon.
5223
6a17d503
SM
52242020-06-12 Simon Marchi <simon.marchi@efficios.com>
5225
5226 * NEWS: Mention removed GDBserver host support.
5227
453c733f
NC
52282020-06-12 Nelson Chu <nelson.chu@sifive.com>
5229
5230 * features/riscv/rebuild-csr-xml.sh: Updated.
5231
2b4e6a3f
TT
52322020-06-11 Tom Tromey <tom@tromey.com>
5233
5234 PR gdb/18318:
5235 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5236
4412332f
JG
52372020-06-09 Jonny Grant <jg@jguk.org>
52382020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5239
5240 * main.c (captured_main_1): Don't print new line after help.
5241 (print_gdb_help): add mailing list and IRC channel information
5242 to --help. Add new lines between items in the footer. Remove
5243 quotes around bug url.
5244
2f33032a
KS
52452020-06-11 Keith Seitz <keiths@redhat.com>
5246
5247 PR gdb/21356
5248 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5249 Resolve typedefs for type length calculations.
5250
7ab96794
TV
52512020-06-10 Tom de Vries <tdevries@suse.de>
5252
5253 PR ada/24713
5254 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5255 (write_psymbols): Enable .gdb_index for ada.
5256 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5257 ada.
5258
e5f3ece2
TV
52592020-06-10 Tom de Vries <tdevries@suse.de>
5260
5261 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5262 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5263 namei" instead of "const char *name" argument.
5264 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5265 dw2_symtab_iter_init.
5266
940da03e
SM
52672020-06-08 Simon Marchi <simon.marchi@efficios.com>
5268
5269 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5270 to use type::field and field::type instead.
5271
b6cdac4b
SM
52722020-06-08 Simon Marchi <simon.marchi@efficios.com>
5273
5274 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5275 to use field::type instead.
5276
5d14b6e5
SM
52772020-06-08 Simon Marchi <simon.marchi@efficios.com>
5278
5279 * gdbtypes.h (struct field) <type, set_type>: New methods.
5280 Rename `type` field to...
5281 <m_type>: ... this. Change references throughout to use type or
5282 set_type methods.
5283 (FIELD_TYPE): Use field::type. Change call sites that modify
5284 the field's type to use field::set_type instead.
5285
3d967001
SM
52862020-06-08 Simon Marchi <simon.marchi@efficios.com>
5287
5288 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5289 to use type::index_type instead.
5290
262abc0d
SM
52912020-06-08 Simon Marchi <simon.marchi@efficios.com>
5292
5293 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5294 methods.
5295 (TYPE_INDEX_TYPE): Use type::index_type.
5296 * gdbtypes.c (create_array_type_with_stride): Likewise.
5297
82836c92
TT
52982020-06-07 Tom Tromey <tom@tromey.com>
5299
5300 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5301 parameter.
5302 (generic_value_print): Update.
5303
940dace9
AB
53042020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5305
5306 Revert commit 982a38f60b0.
5307 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5308
982a38f6
AB
53092020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5310
5311 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5312 avoid use after free.
5313
82f06518
TV
53142020-06-05 Tom de Vries <tdevries@suse.de>
5315
5316 * NEWS: Fix typos.
5317
f8c41851
SM
53182020-06-04 Simon Marchi <simon.marchi@efficios.com>
5319
5320 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5321 the per_bfd object.
5322 (dwarf2_read_debug_names): Likewise.
5323 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5324 object when re-using a per_bfd object with an index.
5325
f9b5d5ea
TV
53262020-06-03 Tom de Vries <tdevries@suse.de>
5327
5328 PR symtab/26046
5329 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5330 children for C++.
5331 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5332 DW_TAG_subprogram.
5333
f6eee2d0
AB
53342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5335
5336 * ada-lang.c (ada_language_data): Delete skip_trampoline
5337 initializer.
5338 * c-lang.c (c_language_data): Likewise.
5339 (cplus_language_data): Likewise.
5340 (cplus_language::skip_trampoline): New member function.
5341 (asm_language_data): Delete skip_trampoline initializer.
5342 (minimal_language_data): Likewise.
5343 * d-lang.c (d_language_data): Likewise.
5344 * f-lang.c (f_language_data): Likewise.
5345 * go-lang.c (go_language_data): Likewise.
5346 * language.c (unk_lang_trampoline): Delete function.
5347 (skip_language_trampoline): Update.
5348 (unknown_language_data): Delete skip_trampoline initializer.
5349 (auto_language_data): Likewise.
5350 * language.h (language_data): Delete skip_trampoline field.
5351 (language_defn::skip_trampoline): New function.
5352 * m2-lang.c (m2_language_data): Delete skip_trampoline
5353 initializer.
5354 * objc-lang.c (objc_skip_trampoline): Delete function, move
5355 implementation to objc_language::skip_trampoline.
5356 (objc_language_data): Delete skip_trampoline initializer.
5357 (objc_language::skip_trampoline): New member function with
5358 implementation from objc_skip_trampoline.
5359 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5360 initializer.
5361 * p-lang.c (pascal_language_data): Likewise.
5362 * rust-lang.c (rust_language_data): Likewise.
5363
0a50df5d
AB
53642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5365
5366 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5367 (ada_language::demangle): New member function.
5368 * c-lang.c (c_language_data): Delete la_demangle initializer.
5369 (cplus_language_data): Delete la_demangle initializer.
5370 (cplus_language::demangle): New member function.
5371 (asm_language_data): Delete la_demangle initializer.
5372 (minimal_language_data): Delete la_demangle initializer.
5373 * d-lang.c (d_language_data): Delete la_demangle initializer.
5374 (d_language::demangle): New member function.
5375 * f-lang.c (f_language_data): Delete la_demangle initializer.
5376 (f_language::demangle): New member function.
5377 * go-lang.c (go_language_data): Delete la_demangle initializer.
5378 (go_language::demangle): New member function.
5379 * language.c (language_demangle): Update.
5380 (unk_lang_demangle): Delete.
5381 (unknown_language_data): Delete la_demangle initializer.
5382 (unknown_language::demangle): New member function.
5383 (auto_language_data): Delete la_demangle initializer.
5384 (auto_language::demangle): New member function.
5385 * language.h (language_data): Delete la_demangle field.
5386 (language_defn::demangle): New function.
5387 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5388 * objc-lang.c (objc_language_data): Delete la_demangle
5389 initializer.
5390 (objc_language::demangle): New member function.
5391 * opencl-lang.c (opencl_language_data): Delete la_demangle
5392 initializer.
5393 * p-lang.c (pascal_language_data): Likewise.
5394 * rust-lang.c (rust_language_data): Likewise.
5395 (rust_language::demangle): New member function.
5396
fbfb0a46
AB
53972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5398
5399 * ada-lang.c (ada_language_data): Delete la_print_type
5400 initializer.
5401 (ada_language::print_type): New member function.
5402 * c-lang.c (c_language_data): Delete la_print_type initializer.
5403 (c_language::print_type): New member function.
5404 (cplus_language_data): Delete la_print_type initializer.
5405 (cplus_language::print_type): New member function.
5406 (asm_language_data): Delete la_print_type initializer.
5407 (asm_language::print_type): New member function.
5408 (minimal_language_data): Delete la_print_type initializer.
5409 (minimal_language::print_type): New member function.
5410 * d-lang.c (d_language_data): Delete la_print_type initializer.
5411 (d_language::print_type): New member function.
5412 * f-lang.c (f_language_data): Delete la_print_type initializer.
5413 (f_language::print_type): New member function.
5414 * go-lang.c (go_language_data): Delete la_print_type initializer.
5415 (go_language::print_type): New member function.
5416 * language.c (unk_lang_print_type): Delete.
5417 (unknown_language_data): Delete la_print_type initializer.
5418 (unknown_language::print_type): New member function.
5419 (auto_language_data): Delete la_print_type initializer.
5420 (auto_language::print_type): New member function.
5421 * language.h (language_data): Delete la_print_type field.
5422 (language_defn::print_type): New function.
5423 (LA_PRINT_TYPE): Update.
5424 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5425 (m2_language::print_type): New member function.
5426 * objc-lang.c (objc_language_data): Delete la_print_type
5427 initializer.
5428 (objc_language::print_type): New member function.
5429 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5430 to opencl_language::print_type.
5431 (opencl_language_data): Delete la_print_type initializer.
5432 (opencl_language::print_type): New member function, implementation
5433 from opencl_print_type.
5434 * p-lang.c (pascal_language_data): Delete la_print_type
5435 initializer.
5436 (pascal_language::print_type): New member function.
5437 * rust-lang.c (rust_print_type): Delete, implementation moved to
5438 rust_language::print_type.
5439 (rust_language_data): Delete la_print_type initializer.
5440 (rust_language::print_type): New member function, implementation
5441 from rust_print_type.
5442
6f827019
AB
54432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5444
5445 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5446 implementation moves to...
5447 (ada_language::sniff_from_mangled_name): ...here. Update return
5448 type.
5449 (ada_language_data): Delete la_sniff_from_mangled_name
5450 initializer.
5451 * c-lang.c (c_language_data): Likewise.
5452 (cplus_language_data): Likewise.
5453 (cplus_language::sniff_from_mangled_name): New member function,
5454 implementation taken from gdb_sniff_from_mangled_name.
5455 (asm_language_data): Delete la_sniff_from_mangled_name
5456 initializer.
5457 (minimal_language_data): Likewise.
5458 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5459 implementation moves to cplus_language::sniff_from_mangled_name.
5460 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5461 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5462 moves to...
5463 (d_language::sniff_from_mangled_name): ...here.
5464 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5465 * f-lang.c (f_language_data): Likewise.
5466 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5467 moves to...
5468 (go_language::sniff_from_mangled_name): ...here.
5469 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5470 * language.c (language_sniff_from_mangled_name): Delete.
5471 (unknown_language_data): Delete la_sniff_from_mangled_name
5472 initializer.
5473 (auto_language_data): Likewise.
5474 * language.h (language_data): Delete la_sniff_from_mangled_name
5475 field.
5476 (language_defn::sniff_from_mangled_name): New function.
5477 (language_sniff_from_mangled_name): Delete declaration.
5478 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5479 field.
5480 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5481 implementation moves to...
5482 (objc_language::sniff_from_mangled_name): ...here.
5483 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5484 * opencl-lang.c (opencl_language_data): Likewise.
5485 * p-lang.c (pascal_language_data): Likewise.
5486 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5487 implementation moves to...
5488 (rust_language::sniff_from_mangled_name): ...here.
5489 (rust_language_data): Delete la_sniff_from_mangled_name
5490 initializer.
5491 * symtab.c (symbol_find_demangled_name): Call
5492 sniff_from_mangled_name member function.
5493
fb8006fd
AB
54942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5495
5496 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5497 initializer.
5498 * c-lang.c (c_language_data): Likewise.
5499 (cplus_language_data): Likewise.
5500 (cplus_language::search_name_hash): New member function.
5501 (asm_language_data): Delete la_search_name_hash initializer.
5502 (minimal_language_data): Likewise.
5503 * d-lang.c (d_language_data): Likewise.
5504 * dictionary.c (default_search_name_hash): Rename to...
5505 (language_defn::search_name_hash): ...this.
5506 * f-lang.c (f_language_data): Likewise.
5507 (f_language::search_name_hash): New member function.
5508 * go-lang.c (go_language_data): Delete la_search_name_hash
5509 initializer.
5510 * language.c (unknown_language_data): Likewise.
5511 (auto_language_data): Likewise.
5512 * language.h (struct language_data): Delete la_search_name_hash
5513 field.
5514 (language_defn::search_name_hash): Declare new member function.
5515 (default_search_name_hash): Delete declaration.
5516 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5517 initializer.
5518 * objc-lang.c (objc_language_data): Likewise.
5519 * opencl-lang.c (opencl_language_data): Likewise.
5520 * p-lang.c (pascal_language_data): Likewise.
5521 * rust-lang.c (rust_language_data): Likewise.
5522 * symtab.c (search_name_hash): Update call.
5523
8e25bafe
AB
55242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5525
5526 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5527 initializer.
5528 * c-lang.c (class compile_instance): Declare.
5529 (c_language_data): Delete la_get_compile_instance initializer.
5530 (c_language::get_compile_instance): New member function.
5531 (cplus_language_data): Delete la_get_compile_instance initializer.
5532 (cplus_language::get_compile_instance): New member function.
5533 (asm_language_data): Delete la_get_compile_instance initializer.
5534 (minimal_language_data): Likewise.
5535 * c-lang.h (c_get_compile_context): Update comment.
5536 (cplus_get_compile_context): Update comment.
5537 * compile/compile.c (compile_to_object): Update calls, don't rely
5538 on function pointer being NULL.
5539 * d-lang.c (d_language_data): Delete la_get_compile_instance
5540 initializer.
5541 * f-lang.c (f_language_data): Likewise.
5542 * go-lang.c (go_language_data): Likewise.
5543 * language.c (unknown_language_data): Likewise.
5544 (auto_language_data): Likewise.
5545 * language.h (language_data): Delete la_get_compile_instance field.
5546 (language_defn::get_compile_instance): New member function.
5547 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5548 initializer.
5549 * objc-lang.c (objc_language_data): Likewise.
5550 * opencl-lang.c (opencl_language_data): Likewise.
5551 * p-lang.c (pascal_language_data): Likewise.
5552 * rust-lang.c (rust_language_data): Likewise.
5553
4009ee92
AB
55542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5555
5556 * ada-lang.c (ada_add_all_symbols): Update comment.
5557 (ada_iterate_over_symbols): Delete, move implementation to...
5558 (ada_language::iterate_over_symbols): ...here, a new member
5559 function, rewrite to use range based for loop.
5560 (ada_language_data): Delete la_iterate_over_symbols initializer.
5561 * c-lang.c (c_language_data): Likewise.
5562 (cplus_language_data): Likewise.
5563 (asm_language_data): Likewise.
5564 (minimal_language_data): Likewise.
5565 * d-lang.c (d_language_data): Likewise.
5566 * f-lang.c (f_language_data): Likewise.
5567 * go-lang.c (go_language_data): Likewise.
5568 * language.c (unknown_language_data): Likewise.
5569 (auto_language_data): Likewise.
5570 * language.h (language_data): Delete la_iterate_over_symbols field.
5571 (language_defn::iterate_over_symbols): New member function.
5572 (LA_ITERATE_OVER_SYMBOLS): Update.
5573 * linespec.c (iterate_over_all_matching_symtabs): Update.
5574 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5575 initializer.
5576 * objc-lang.c (objc_language_data): Likewise.
5577 * opencl-lang.c (opencl_language_data): Likewise.
5578 * p-lang.c (pascal_language_data): Likewise.
5579 * rust-lang.c (rust_language_data): Likewise.
5580
54f4ca46
AB
55812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5582
5583 * ada-lang.c (ada_language_data): Delete
5584 la_lookup_transparent_type initializer.
5585 * c-lang.c (c_language_data): Likewise.
5586 (cplus_language_data): Likewise.
5587 (cplus_language::lookup_transparent_type): New member function.
5588 (asm_language_data): Delete la_lookup_transparent_type
5589 initializer.
5590 (minimal_language_data): Likewise.
5591 * d-lang.c (d_language_data): Likewise.
5592 * f-lang.c (f_language_data): Likewise.
5593 * go-lang.c (go_language_data): Likewise.
5594 * language.c (unknown_language_data): Likewise.
5595 (auto_language_data): Likewise.
5596 * language.h (struct language_data): Delete
5597 la_lookup_transparent_type field.
5598 (language_defn::lookup_transparent_type): New member function.
5599 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5600 initializer.
5601 * objc-lang.c (objc_language_data): Likewise.
5602 * opencl-lang.c (opencl_language_data): Likewise.
5603 * p-lang.c (pascal_language_data): Likewise.
5604 * rust-lang.c (rust_language_data): Likewise.
5605 * symtab.c (symbol_matches_domain): Update call.
5606
1fb314aa
AB
56072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5608
5609 * ada-lang.c (ada_language_arch_info): Delete function, move
5610 implementation to...
5611 (ada_language::language_arch_info): ...here, a new member
5612 function.
5613 (ada_language_data): Delete la_language_arch_info.
5614 * c-lang.c (c_language_data): Likewise.
5615 (c_language::language_arch_info): New member function.
5616 (cplus_language_arch_info): Delete function, move
5617 implementation to...
5618 (cplus_language::language_arch_info): ...here, a new member
5619 function.
5620 (cplus_language_data): Delete la_language_arch_info.
5621 (asm_language_data): Likewise.
5622 (asm_language::language_arch_info): New member function.
5623 (minimal_language_data): Delete la_language_arch_info.
5624 (minimal_language::language_arch_info): New member function.
5625 * d-lang.c (d_language_arch_info): Delete function, move
5626 implementation to...
5627 (d_language::language_arch_info): ...here, a new member
5628 function.
5629 (d_language_data): Delete la_language_arch_info.
5630 * f-lang.c (f_language_arch_info): Delete function, move
5631 implementation to...
5632 (f_language::language_arch_info): ...here, a new member
5633 function.
5634 (f_language_data): Delete la_language_arch_info.
5635 * go-lang.c (go_language_arch_info): Delete function, move
5636 implementation to...
5637 (go_language::language_arch_info): ...here, a new member
5638 function.
5639 (go_language_data): Delete la_language_arch_info.
5640 * language.c (unknown_language_data): Likewise.
5641 (unknown_language::language_arch_info): New member function.
5642 (auto_language_data): Delete la_language_arch_info.
5643 (auto_language::language_arch_info): New member function.
5644 (language_gdbarch_post_init): Update call to
5645 la_language_arch_info.
5646 * language.h (language_data): Delete la_language_arch_info
5647 function pointer.
5648 (language_defn::language_arch_info): New function.
5649 * m2-lang.c (m2_language_arch_info): Delete function, move
5650 implementation to...
5651 (m2_language::language_arch_info): ...here, a new member
5652 function.
5653 (m2_language_data): Delete la_language_arch_info.
5654 * objc-lang.c (objc_language_arch_info): Delete function, move
5655 implementation to...
5656 (objc_language::language_arch_info): ...here, a new member
5657 function.
5658 (objc_language_data): Delete la_language_arch_info.
5659 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5660 implementation to...
5661 (opencl_language::language_arch_info): ...here, a new member
5662 function.
5663 (opencl_language_data): Delete la_language_arch_info.
5664 * p-lang.c (pascal_language_arch_info): Delete function, move
5665 implementation to...
5666 (pascal_language::language_arch_info): ...here, a new member
5667 function.
5668 (pascal_language_data): Delete la_language_arch_info.
5669 * rust-lang.c (rust_language_arch_info): Delete function, move
5670 implementation to...
5671 (rust_language::language_arch_info): ...here, a new member
5672 function.
5673 (rust_language_data): Delete la_language_arch_info.
5674
48448202
AB
56752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5676
5677 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5678 initializer.
5679 * c-lang.c (c_language_data): Likewise.
5680 (cplus_language_data): Likewise.
5681 (cplus_language::pass_by_reference_info): New method.
5682 (asm_language_data): Delete la_pass_by_reference initializer.
5683 (minimal_language_data): Likewise.
5684 * cp-abi.c (cp_pass_by_reference): Remove use of
5685 default_pass_by_reference.
5686 * d-lang.c (d_language_data): Likewise.
5687 * f-lang.c (f_language_data): Likewise.
5688 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5689 default_pass_by_reference.
5690 * go-lang.c (go_language_data): Likewise.
5691 * language.c (language_pass_by_reference): Update.
5692 (default_pass_by_reference): Delete.
5693 (unknown_language_data): Delete la_pass_by_reference
5694 initializer.
5695 (auto_language_data): Likewise.
5696 * language.h (struct language_data): Delete la_pass_by_reference
5697 field.
5698 (language_defn::pass_by_reference_info): New member function.
5699 (default_pass_by_reference): Delete declaration.
5700 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5701 initializer.
5702 * objc-lang.c (objc_language_data): Likewise.
5703 * opencl-lang.c (opencl_language_data): Likewise.
5704 * p-lang.c (pascal_language_data): Likewise.
5705 * rust-lang.c (rust_language_data): Likewise.
5706
15e5fd35
AB
57072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5708
5709 * ada-lang.c (ada_read_var_value): Delete function, move
5710 implementation to...
5711 (ada_language::read_var_value): ...here.
5712 (ada_language_data): Delete la_read_var_value initializer.
5713 * c-lang.c (c_language_data): Likewise.
5714 (cplus_language_data): Likewise.
5715 (minimal_language_data): Likewise.
5716 * d-lang.c (d_language_data): Likewise.
5717 * f-lang.c (f_language_data): Likewise.
5718 * findvar.c (default_read_var_value): Rename to...
5719 (language_defn::read_var_value): ...this.
5720 * findvar.c (read_var_value): Update header comment, and change to
5721 call member function instead of function pointer.
5722 * go-lang.c (go_language_data): Likewise.
5723 * language.c (unknown_language_data): Delete la_read_var_value
5724 initializer.
5725 (auto_language_data): Likewise.
5726 * language.h (struct language_data): Delete la_read_var_value
5727 field.
5728 (language_defn::read_var_value): New member function.
5729 (default_read_var_value): Delete declaration.
5730 * m2-lang.c (m2_language_data): Delete la_read_var_value
5731 initializer.
5732 * objc-lang.c (objc_language_data): Likewise.
5733 * opencl-lang.c (opencl_language_data): Likewise.
5734 * p-lang.c (pascal_language_data): Likewise.
5735 * rust-lang.c (rust_language_data): Likewise.
5736 * value.h (default_read_var_value): Delete declaration.
5737
5bd40f2a
AB
57382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5739
5740 * ada-lang.c (ada_print_array_index): Delete function, move
5741 implementation to...
5742 (ada_language::print_array_index): ...here.
5743 (ada_language_data): Delete la_print_array_index initializer.
5744 * c-lang.c (c_language_data): Likewise.
5745 (cplus_language_data): Likewise.
5746 (minimal_language_data): Likewise.
5747 * d-lang.c (d_language_data): Likewise.
5748 * f-lang.c (f_language_data): Likewise.
5749 * go-lang.c (go_language_data): Likewise.
5750 * language.c (default_print_array_index): Delete function, move
5751 implementation to...
5752 (language_defn::print_array_index): ...here.
5753 (unknown_language_data): Delete la_print_array_index initializer.
5754 (auto_language_data): Likewise.
5755 * language.h (struct language_data): Delete la_print_array_index
5756 field.
5757 (language_defn::print_array_index): New member function.
5758 (LA_PRINT_ARRAY_INDEX): Update.
5759 (default_print_array_index): Delete declaration.
5760 * m2-lang.c (m2_language_data): Delete la_print_array_index
5761 initializer.
5762 * objc-lang.c (objc_language_data): Likewise.
5763 * opencl-lang.c (opencl_language_data): Likewise.
5764 * p-lang.c (pascal_language_data): Likewise.
5765 * rust-lang.c (rust_language_data): Likewise.
5766
0874fd07
AB
57672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5768
5769 * gdb/ada-lang.c (ada_language_defn): Convert to...
5770 (ada_language_data): ...this.
5771 (class ada_language): New class.
5772 (ada_language_defn): New static global.
5773 * gdb/c-lang.c (c_language_defn): Convert to...
5774 (c_language_data): ...this.
5775 (class c_language): New class.
5776 (c_language_defn): New static global.
5777 (cplus_language_defn): Convert to...
5778 (cplus_language_data): ...this.
5779 (class cplus_language): New class.
5780 (cplus_language_defn): New static global.
5781 (asm_language_defn): Convert to...
5782 (asm_language_data): ...this.
5783 (class asm_language): New class.
5784 (asm_language_defn): New static global.
5785 (minimal_language_defn): Convert to...
5786 (minimal_language_data): ...this.
5787 (class minimal_language): New class.
5788 (minimal_language_defn): New static global.
5789 * gdb/d-lang.c (d_language_defn): Convert to...
5790 (d_language_data): ...this.
5791 (class d_language): New class.
5792 (d_language_defn): New static global.
5793 * gdb/f-lang.c (f_language_defn): Convert to...
5794 (f_language_data): ...this.
5795 (class f_language): New class.
5796 (f_language_defn): New static global.
5797 * gdb/go-lang.c (go_language_defn): Convert to...
5798 (go_language_data): ...this.
5799 (class go_language): New class.
5800 (go_language_defn): New static global.
5801 * gdb/language.c (unknown_language_defn): Remove declaration.
5802 (current_language): Initialize to nullptr, real initialization is
5803 moved to _initialize_language.
5804 (languages): Delete global.
5805 (language_defn::languages): Define.
5806 (set_language_command): Use language_defn::languages.
5807 (set_language): Likewise.
5808 (range_error): Likewise.
5809 (language_enum): Likewise.
5810 (language_def): Likewise.
5811 (add_set_language_command): Use language_def::languages for the
5812 language list, and language_def to lookup language pointers.
5813 (skip_language_trampoline): Use language_defn::languages.
5814 (unknown_language_defn): Convert to...
5815 (unknown_language_data): ...this.
5816 (class unknown_language): New class.
5817 (unknown_language_defn): New static global.
5818 (auto_language_defn): Convert to...
5819 (auto_language_data): ...this.
5820 (class auto_language): New class.
5821 (auto_language_defn): New static global.
5822 (language_gdbarch_post_init): Use language_defn::languages.
5823 (_initialize_language): Initialize current_language.
5824 * gdb/language.h (struct language_defn): Rename to...
5825 (struct language_data): ...this.
5826 (struct language_defn): New.
5827 (auto_language_defn): Delete.
5828 (unknown_language_defn): Delete.
5829 (minimal_language_defn): Delete.
5830 (ada_language_defn): Delete.
5831 (asm_language_defn): Delete.
5832 (c_language_defn): Delete.
5833 (cplus_language_defn): Delete.
5834 (d_language_defn): Delete.
5835 (f_language_defn): Delete.
5836 (go_language_defn): Delete.
5837 (m2_language_defn): Delete.
5838 (objc_language_defn): Delete.
5839 (opencl_language_defn): Delete.
5840 (pascal_language_defn): Delete.
5841 (rust_language_defn): Delete.
5842 * gdb/m2-lang.c (m2_language_defn): Convert to...
5843 (m2_language_data): ...this.
5844 (class m2_language): New class.
5845 (m2_language_defn): New static global.
5846 * gdb/objc-lang.c (objc_language_defn): Convert to...
5847 (objc_language_data): ...this.
5848 (class objc_language): New class.
5849 (objc_language_defn): New static global.
5850 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5851 (opencl_language_data): ...this.
5852 (class opencl_language): New class.
5853 (opencl_language_defn): New static global.
5854 * gdb/p-lang.c (pascal_language_defn): Convert to...
5855 (pascal_language_data): ...this.
5856 (class pascal_language): New class.
5857 (pascal_language_defn): New static global.
5858 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5859 language pointer, update comment format.
5860 * gdb/rust-lang.c (rust_language_defn): Convert to...
5861 (rust_language_data): ...this.
5862 (class rust_language): New class.
5863 (rust_language_defn): New static global.
5864
1313c56e
AB
58652020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5866
5867 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5868 member variable.
5869 <m_stmt_at_address>: New member variable.
5870 (lnp_state_machine::record_line): Don't record some lines, update
5871 tracking of is_stmt at the same address.
5872 (lnp_state_machine::lnp_state_machine): Initialise new member
5873 variables.
5874
b7ed9f3d
ST
58752020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5876
5877 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5878 "-include gnu-nat-mig.h".
5879 * gnu-nat-mig.h: New file.
5880 * gnu-nat.c: Include "gnu-nat-mig.h".
5881 (exc_server, msg_reply_server, notify_server,
5882 process_reply_server): Remove declarations.
5883
14a8ad62
ST
58842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5885
5886 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5887 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5888 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5889 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5890 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5891 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5892 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5893 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5894 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5895 to gnu_nat_target class.
5896 * gnu-nat.c: Likewise.
5897 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5898 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5899 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5900 object.
5901 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5902 instead of `gnu_target'.
5903
0af5e106
ST
59042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5905
5906 * i386-gnu-tdep.c: Include "gdbcore.h"
5907 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5908 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5909 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5910 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5911 i386_gnu_sigcontext_addr): New functions
5912 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5913 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5914 tdep.
5915
078f2fc9
ST
59162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5917
5918 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5919 before fork_inferior call. Avoid calling it if target_is_pushed returns
5920 true.
5921
53dff92c
ST
59222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5923
5924 * gnu-nat.h (gnu_target): New variable declaration.
5925 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5926 gnu_target.
5927 * gnu-nat.c (gnu_target): New variable.
5928 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5929 add_thread_silent, and add_thread calls.
5930 (gnu_nat_target::create_inferior): Pass gnu_target to
5931 add_thread_silent, thread_change_ptid call.
5932 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5933 call.
5934
5a8b8627
ST
59352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5936
5937 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5938 (gnu_nat_target::find_memory_regions): Remove unused
5939 `old_address' variable.
5940
366f550a
ST
59412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5942
5943 * gnu-nat.c: Include "gdbarch.h".
5944
f14871bf
ST
59452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5946
5947 * reply_mig_hack.awk (Error return): Cast function through
5948 void *, to bypass compiler function call check.
5949
c6887cfb
ST
59502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5951
5952 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5953 $(srcdir)/reply_mig_hack.awk.
5954
6930bffe
ST
59552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5956
5957 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5958
112c22ed
JG
59592020-05-30 Jonny Grant <jg@jguk.org>
5960
5961 * configure.ac (ACX_BUGURL): change bug URL to https.
5962
f68f85b5
PA
59632020-05-30 Pedro Alves <palves@redhat.com>
5964
5965 * cp-support.c (replace_typedefs_template): New.
5966 (replace_typedefs_qualified_name): Handle
5967 DEMANGLE_COMPONENT_TEMPLATE.
5968
976ca316
SM
59692020-05-29 Simon Marchi <simon.marchi@efficios.com>
5970
5971 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5972 dwarf2/index-cache.h, dwarf2/index-write.c,
5973 dwarf2/index-write.h, dwarf2/line-header.c,
5974 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5975 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5976 variables and fields from `dwarf2_per_objfile` to just
5977 `per_objfile` throughout.
5978
989ade05
SM
59792020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5980
5981 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5982 <push_dwarf_reg_entry_value>: Add comment.
5983
c47bae85
KB
59842020-05-28 Kevin Buettner <kevinb@redhat.com>
5985 Keith Seitz <keiths@redhat.com>
5986
5987 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5988 instead of PyEval_ReleaseLock.
5989 (class gdbpy_gil): Move to earlier in file.
5990 (finalize_python): Set gdb_python_initialized.
5991 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5992 when not initialized.
5993
44486dcf
SM
59942020-05-28 Simon Marchi <simon.marchi@efficios.com>
5995
5996 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5997 <push_dwarf_reg_entry_value>: Remove assert. Override
5998 per_objfile with caller_per_objfile.
5999
f030440d
TV
60002020-05-28 Tom de Vries <tdevries@suse.de>
6001
6002 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6003 PR gold/15646 workaround to symbol kind "type".
6004
f0fbb768
TT
60052020-05-27 Tom Tromey <tromey@adacore.com>
6006
6007 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6008
af0b2a3e
TT
60092020-05-27 Tom Tromey <tromey@adacore.com>
6010
6011 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6012 Use htab_find_with_hash.
6013 <add_abbrev>: Remove "abbrev_number" parameter.
6014 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6015 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6016 (hash_abbrev): Add comment.
6017 (abbrev_table::lookup_abbrev): Move to header file.
6018 (abbrev_table::read): Update.
6019
7d00ffec
TT
60202020-05-27 Tom Tromey <tromey@adacore.com>
6021
6022 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6023 method.
6024 <canonical_name>: New member.
6025 <raw_name>: Rename from "name".
6026 (partial_die_info): Initialize canonical_name.
6027 (scan_partial_symbols): Check raw_name.
6028 (partial_die_parent_scope, partial_die_full_name)
6029 (add_partial_symbol, add_partial_subprogram)
6030 (add_partial_enumeration, load_partial_dies): Use "name" method.
6031 (partial_die_info::name): New method.
6032 (partial_die_info::read, guess_partial_die_structure_name)
6033 (partial_die_info::fixup): Update.
6034
697bba18
TT
60352020-05-27 Tom Tromey <tromey@adacore.com>
6036
6037 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6038 <get_ref_die_offset>: Inline.
6039 <get_ref_die_offset_complaint>: New method.
6040 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6041 (attribute::get_ref_die_offset_complaint): Rename from
6042 get_ref_die_offset. Just issue complaint.
6043
c17ace43
HD
60442020-05-27 Hannes Domani <ssbssa@yahoo.de>
6045
6046 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6047
96445f0b
HD
60482020-05-27 Hannes Domani <ssbssa@yahoo.de>
6049
6050 * exec.c (exec_file_attach): Use errno value of first openp failure.
6051
ac637ec3
HD
60522020-05-27 Hannes Domani <ssbssa@yahoo.de>
6053
6054 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6055 Don't close thread handle.
6056
17ee85fc
TT
60572020-05-27 Tom Tromey <tom@tromey.com>
6058 Simon Marchi <simon.marchi@efficios.com>
6059
6060 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6061 shared_ptr.
6062 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6063 member.
6064 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6065 dwarf2_per_bfd_objfile_data_key>: New globals.
6066 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6067 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6068 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6069 shared.
6070 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6071 short-circuit when sharing.
6072 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6073 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6074
39b16f87
SM
60752020-05-27 Simon Marchi <simon.marchi@efficios.com>
6076
6077 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6078 to...
6079 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6080 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6081
fcf23d5b
SM
60822020-05-27 Simon Marchi <simon.marchi@efficios.com>
6083
6084 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6085 build_name_components, find_name_components_bounds>:
6086 Add per_objfile parameter.
6087 (struct mapped_index) <symbol_name_at>: Likewise.
6088 (struct mapped_debug_names): Remove constructor.
6089 <dwarf2_per_objfile>: Remove field.
6090 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6091 (mapped_index_base::find_name_components_bounds,
6092 mapped_index_base::build_name_components,
6093 dw2_expand_symtabs_matching_symbol): Likewise.
6094 (class mock_mapped_index) <symbol_name_at>: Likewise.
6095 (check_match): Likewise.
6096 (check_find_bounds_finds): Likewise.
6097 (test_mapped_index_find_name_component_bounds): Update.
6098 (CHECK_MATCH): Update.
6099 (dw2_expand_symtabs_matching): Update.
6100 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6101 per_objfile parameter.
6102 <find_vec_in_debug_names>: Likewise.
6103 <m_per_objfile>: New field.
6104 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6105 parameter.
6106 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6107 (dw2_debug_names_iterator::next): Update.
6108 (dw2_debug_names_lookup_symbol): Update.
6109 (dw2_debug_names_expand_symtabs_for_function): Update.
6110 (dw2_debug_names_map_matching_symbols): Update.
6111 (dw2_debug_names_expand_symtabs_matching): Update.
6112 (dwarf2_read_debug_names): Update.
6113
7188ed02
SM
61142020-05-27 Simon Marchi <simon.marchi@efficios.com>
6115
6116 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6117 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6118 move to dwarf2_per_objfile.
6119 <read_in_chain>: Remove.
6120 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6121 remove_all_cus, age_comp_units>: New methods.
6122 <m_dwarf2_cus>: New member.
6123 (struct dwarf2_per_cu_data) <cu>: Remove.
6124 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6125 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6126 moved to methods of dwarf2_per_objfile.
6127 (dwarf2_clear_marks): Remove.
6128 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6129 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6130 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6131 (dwarf2_per_objfile::remove_all_cus): New.
6132 (class free_cached_comp_units) <~free_cached_comp_units>:
6133 Update.
6134 (load_cu): Update.
6135 (dw2_do_instantiate_symtab): Adjust.
6136 (fill_in_sig_entry_from_dwo_entry): Adjust.
6137 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6138 (cutu_reader::cutu_reader): Likewise.
6139 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6140 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6141 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6142 and dwarf2_per_objfile::age_comp_units.
6143 (load_partial_comp_unit): Update.
6144 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6145 (process_queue): Likewise.
6146 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6147 backlink.
6148 (dwarf2_read_addr_index): Likewise.
6149 (follow_die_offset): Likewise.
6150 (dwarf2_fetch_die_loc_sect_off): Likewise.
6151 (dwarf2_fetch_constant_bytes): Likewise.
6152 (dwarf2_fetch_die_type_sect_off): Likewise.
6153 (follow_die_sig_1): Likewise.
6154 (load_full_type_unit): Likewise.
6155 (read_signatured_type): Likewise.
6156 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6157 (dwarf2_cu::~dwarf2_cu): Remove.
6158 (dwarf2_per_objfile::get_cu): New.
6159 (dwarf2_per_objfile::set_cu): New.
6160 (age_cached_comp_units): Rename to...
6161 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6162 to std::unordered_map.
6163 (free_one_cached_comp_unit): Rename to...
6164 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6165 to std::unordered_map.
6166 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6167 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6168 a dwarf2_per_objfile in data.
6169 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6170 (dwarf2_clear_marks): Remove.
6171
2e671100
SM
61722020-05-27 Simon Marchi <simon.marchi@efficios.com>
6173
6174 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6175 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6176 (init_tu_and_read_dwo_dies): Likewise.
6177 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6178 (cutu_reader::cutu_reader): Likewise.
6179 (load_partial_comp_unit): Likewise.
6180 (process_psymtab_comp_unit): Update.
6181 (build_type_psymtabs_1): Update.
6182 (process_skeletonless_type_unit): Update.
6183 (load_full_comp_unit): Update.
6184 (find_partial_die): Update.
6185 (dwarf2_read_addr_index): Update.
6186 (read_signatured_type): Update.
6187
2e6a9f79
SM
61882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6189
6190 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6191 m_header_read_in>: New fields.
6192 <get_header>: New method.
6193 * dwarf2/read.c (per_cu_header_read_in): Remove.
6194 (dwarf2_per_cu_data::get_header): New.
6195 (dwarf2_per_cu_data::addr_size): Update.
6196 (dwarf2_per_cu_data::offset_size): Update.
6197 (dwarf2_per_cu_data::ref_addr_size): Update.
6198
1b555f17
SM
61992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6200
6201 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6202 (dw2_do_instantiate_symtab): Update.
6203 (queue_and_load_all_dwo_tus): Change parameter from
6204 dwarf2_per_cu_data to dwarf2_cu.
6205 (dwarf2_fetch_die_loc_sect_off): Update.
6206 (dwarf2_fetch_constant_bytes): Update.
6207 (dwarf2_fetch_die_type_sect_off): Update.
6208
8fc0b21d
SM
62092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6210
6211 * dwarf2/read.c (process_full_comp_unit,
6212 process_full_type_unit): Remove per_cu, per_objfile paramters.
6213 Add dwarf2_cu parameter.
6214 (process_queue): Update.
6215
168c9250
SM
62162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6217
6218 * dwarf2/read.c (create_cu_from_index_list): Replace
6219 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6220 (create_cus_from_index_list): Likewise.
6221 (create_cus_from_index): Likewise.
6222 (create_signatured_type_table_from_index): Likewise.
6223 (create_cus_from_debug_names_list): Likewise.
6224 (create_cus_from_debug_names): Likewise.
6225 (dwarf2_read_gdb_index): Update.
6226 (dwarf2_read_debug_names): Update.
6227
e286671b
TT
62282020-05-27 Tom Tromey <tom@tromey.com>
6229 Simon Marchi <simon.marchi@efficios.com>
6230
6231 * dwarf2/read.h (struct dwarf2_per_objfile)
6232 <get_type_for_signatured_type, set_type_for_signatured_type>:
6233 New methods.
6234 <m_type_map>: New member.
6235 (struct signatured_type) <type>: Remove.
6236 * dwarf2/read.c
6237 (dwarf2_per_objfile::get_type_for_signatured_type,
6238 dwarf2_per_objfile::set_type_for_signatured_type): New.
6239 (get_signatured_type): Use new methods.
6240
8adb8487
TT
62412020-05-27 Tom Tromey <tom@tromey.com>
6242 Simon Marchi <simon.marchi@efficios.com>
6243
6244 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6245 (struct dwarf2_per_objfile) <type_units>: New member.
6246 <get_type_unit_group_unshareable>: New method.
6247 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6248 num_symtabs, symtabs>: Remove; move to
6249 type_unit_group_unshareable.
6250 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6251 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6252 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6253
127bbf4b
SM
62542020-05-27 Simon Marchi <simon.marchi@efficios.com>
6255
6256 * dwarf2/read.h (struct dwarf2_per_cu_data):
6257 <dwarf2_per_objfile>: Remove.
6258 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6259 dwarf2_per_objfile.
6260 (create_signatured_type_table_from_index): Likewise.
6261 (create_signatured_type_table_from_debug_names): Likewise.
6262 (create_debug_type_hash_table): Likewise.
6263 (fill_in_sig_entry_from_dwo_entry): Likewise.
6264 (create_type_unit_group): Likewise.
6265 (read_comp_units_from_section): Likewise.
6266 (create_cus_hash_table): Likewise.
6267
f6e649dd
SM
62682020-05-27 Simon Marchi <simon.marchi@efficios.com>
6269
6270 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6271 dwarf2_per_cu_data::dwarf2_per_objfile.
6272 (compute_compunit_symtab_includes): Likewise.
6273 (dwarf2_cu::start_symtab): Likewise.
6274
aa66c379
SM
62752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6276
6277 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6278 parameter.
6279 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6280 (read_namespace_alias): Update.
6281 (lookup_die_type): Update.
6282 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6283 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6284 Update.
6285 (disassemble_dwarf_expression): Update.
6286
120ce1b5
SM
62872020-05-27 Simon Marchi <simon.marchi@efficios.com>
6288
6289 * dwarf2/read.h (struct dwarf2_queue_item): Add
6290 dwarf2_per_objfile parameter, assign new parameter.
6291 <per_objfile>: New field.
6292 * dwarf2/read.c (free_one_cached_comp_unit): Add
6293 dwarf2_per_objfile parameter.
6294 (queue_comp_unit): Likewise.
6295 (dw2_do_instantiate_symtab): Update.
6296 (process_psymtab_comp_unit): Update.
6297 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6298 (process_imported_unit_die): Update.
6299 (queue_and_load_dwo_tu): Update.
6300 (follow_die_offset): Update.
6301 (follow_die_sig_1): Update.
6302
9f47c707
SM
63032020-05-27 Simon Marchi <simon.marchi@efficios.com>
6304
6305 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6306 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6307 (read_call_site_scope): Assign per_objfile.
6308 (dwarf2_per_cu_data::objfile): Remove.
6309 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6310 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6311 dwarf2_per_objfile parameter.
6312 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6313 dwarf2_per_objfile parameter.
6314 (dwarf_expr_reg_to_entry_parameter): Add output
6315 dwarf2_per_objfile parameter.
6316 (locexpr_get_frame_base): Update.
6317 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6318 <push_dwarf_reg_entry_value>: Update.
6319 <call_site_to_target_addr>: Update.
6320 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6321 parameter.
6322 (value_of_dwarf_reg_entry): Update.
6323 (rw_pieced_value): Update.
6324 (indirect_synthetic_pointer): Update.
6325 (dwarf2_evaluate_property): Update.
6326 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6327 parameter.
6328 (locexpr_read_variable): Update.
6329 (locexpr_get_symbol_read_needs): Update.
6330 (loclist_read_variable): Update.
6331
14095eb3
SM
63322020-05-27 Simon Marchi <simon.marchi@efficios.com>
6333
6334 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6335 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6336 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6337 parameter.
6338 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6339 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6340 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6341 parameter.
6342 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6343 sect_variable_value): Add dwarf2_per_objfile parameter.
6344 (class dwarf_evaluate_loc_desc) <dwarf_call,
6345 dwarf_variable_value>: Update.
6346 (fetch_const_value_from_synthetic_pointer): Add
6347 dwarf2_per_objfile parameter.
6348 (fetch_const_value_from_synthetic_pointer): Update.
6349 (coerced_pieced_ref): Update.
6350 (class symbol_needs_eval_context) <dwarf_call,
6351 dwarf_variable_value>: Update.
6352 (dwarf2_compile_expr_to_ax): Update.
6353
3c3cd3d4
SM
63542020-05-27 Simon Marchi <simon.marchi@efficios.com>
6355
6356 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6357 parameter.
6358 (dwarf2_evaluate_loc_desc_full): Update.
6359
82ca3f51
SM
63602020-05-27 Simon Marchi <simon.marchi@efficios.com>
6361
6362 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6363 parameter.
6364 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6365 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6366 dwarf2_per_objfile parameter.
6367 (decode_debug_loc_dwo_addresses): Likewise.
6368 (dwarf2_find_location_expression): Update.
6369 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6370 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6371 parameter.
6372 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6373 parameter.
6374 (locexpr_describe_location_1): Likewise.
6375 (locexpr_describe_location): Update.
6376
4b167ea1
SM
63772020-05-27 Simon Marchi <simon.marchi@efficios.com>
6378
6379 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6380 Remove.
6381 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6382 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6383 (dwarf2_compile_property_to_c): Update.
6384 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6385 use text offset from objfile.
6386 (locexpr_tracepoint_var_ref): Update.
6387 (locexpr_generate_c_location): Update.
6388 (loclist_describe_location): Update.
6389 (loclist_tracepoint_var_ref): Update.
6390 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6391 dwarf2_per_objfile parameter.
6392 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6393 use text offset from objfile.
6394 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6395
89b07335
SM
63962020-05-27 Simon Marchi <simon.marchi@efficios.com>
6397
6398 * dwarf2/expr.h (struct dwarf_expr_context)
6399 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6400 <offset>: Remove.
6401 <per_objfile>: New member.
6402 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6403 dwarf2_per_objfile parameter. Don't set offset, set
6404 per_objfile.
6405 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6406 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6407 a dwarf2_per_objfile object instead of an offset.
6408 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6409 constructor.
6410 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6411 to dwarf2_expr_executor constructor. Don't set offset.
6412 (dwarf2_fetch_cfa_info): Update.
6413 (struct dwarf2_frame_cache) <text_offset>: Remove.
6414 <per_objfile>: New field.
6415 (dwarf2_frame_cache): Update.
6416 (dwarf2_frame_prev_register): Update.
6417 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6418 <dwarf_evaluate_loc_desc>: Add constructor.
6419 (dwarf2_evaluate_loc_desc_full): Update.
6420 (dwarf2_locexpr_baton_eval): Update.
6421 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6422 Add constructor.
6423 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6424
293e7e51
SM
64252020-05-27 Simon Marchi <simon.marchi@efficios.com>
6426
6427 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6428 addr_sized_int_type>: Move to dwarf2_cu.
6429 <int_type>: Move to dwarf2_per_objfile.
6430 (struct dwarf2_per_objfile) <int_type>: Move here.
6431 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6432 addr_sized_int_type>: Move here.
6433 (read_func_scope): Update.
6434 (read_array_type): Update.
6435 (read_tag_string_type): Update.
6436 (attr_to_dynamic_prop): Update.
6437 (dwarf2_per_cu_data::int_type): Rename to...
6438 (dwarf2_per_objfile::int_type): ... this.
6439 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6440 (dwarf2_cu::addr_sized_int_type): ... this.
6441 (read_subrange_type): Update.
6442 (dwarf2_per_cu_data::addr_type): Rename to...
6443 (dwarf2_cu::addr_type): ... this.
6444 (set_die_type): Update.
6445
64874a40
SM
64462020-05-27 Simon Marchi <simon.marchi@efficios.com>
6447
6448 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6449 data through per_cu->cu.
6450
4ab09049
SM
64512020-05-27 Simon Marchi <simon.marchi@efficios.com>
6452
6453 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6454 dwarf2_per_cu_data parameter fo dwarf2_cu.
6455 (lookup_dwo_type_unit): Likewise.
6456 (read_cutu_die_from_dwo): Likewise.
6457 (lookup_dwo_unit): Likewise.
6458 (open_and_init_dwo_file): Likewise.
6459 (lookup_dwo_cutu): Likewise.
6460 (lookup_dwo_comp_unit): Likewise.
6461 (lookup_dwo_type_unit): Likewise.
6462 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6463 (cutu_reader::cutu_reader): Update.
6464
47b14e86
SM
64652020-05-27 Simon Marchi <simon.marchi@efficios.com>
6466
6467 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6468 parameter.
6469 (process_full_type_unit): Likewise.
6470 (process_queue): Update.
6471
43182c09
SM
64722020-05-27 Simon Marchi <simon.marchi@efficios.com>
6473
6474 * dwarf2/read.c (recursively_compute_inclusions): Add
6475 dwarf2_per_objfile parameter.
6476 (compute_compunit_symtab_includes): Likewise.
6477 (process_cu_includes): Update.
6478
7aa104c4
SM
64792020-05-27 Simon Marchi <simon.marchi@efficios.com>
6480
6481 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6482 parameter.
6483 (create_type_unit_group): Update.
6484 (process_psymtab_comp_unit_reader): Update.
6485 (build_type_psymtabs_reader): Update.
6486
e3beb21d
SM
64872020-05-27 Simon Marchi <simon.marchi@efficios.com>
6488
6489 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6490 object through m_this_cu->cu.
6491
d460f660
SM
64922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6493
6494 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6495 the info parameter.
6496 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6497
ab432490
SM
64982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6499
6500 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6501 per_objfile parameter.
6502 (load_full_type_unit): Add per_objfile parameter.
6503 (read_signatured_type): Likewise.
6504 (load_full_comp_unit): Likewise.
6505 (load_cu): Likewise.
6506 (dw2_do_instantiate_symtab): Likewise.
6507 (dw2_get_file_names): Likewise.
6508 (dw2_map_symtabs_matching_filename): Update.
6509 (dw_expand_symtabs_matching_file_matcher): Update.
6510 (dw2_map_symbol_filenames): Update.
6511 (process_psymtab_comp_unit): Add per_objfile parameter.
6512 (build_type_psymtabs_1): Update.
6513 (process_skeletonless_type_unit): Update.
6514 (dwarf2_build_psymtabs_hard): Update.
6515 (load_partial_comp_unit): Add per_objfile parameter.
6516 (scan_partial_symbols): Update.
6517 (load_full_comp_unit): Add per_objfile parameter.
6518 (process_imported_unit_die): Update.
6519 (create_cus_hash_table): Update.
6520 (find_partial_die): Update.
6521 (dwarf2_read_addr_index): Update.
6522 (follow_die_offset): Update.
6523 (dwarf2_fetch_die_loc_sect_off): Update.
6524 (dwarf2_fetch_constant_bytes): Update.
6525 (dwarf2_fetch_die_type_sect_off): Update.
6526 (follow_die_sig_1): Update.
6527 (load_full_type_unit): Add per_objfile parameter.
6528 (read_signatured_type): Likewise.
6529
313bad1b
SM
65302020-05-27 Simon Marchi <simon.marchi@efficios.com>
6531
6532 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6533 of objfile_name.
6534
c3699833
SM
65352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6536
6537 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6538 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6539 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6540 field.
6541 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6542 (create_cus_from_index): Update.
6543 (dwarf2_read_gdb_index): Update.
6544 (create_cus_from_debug_names): Update.
6545 (dwarf2_read_debug_names): Update.
6546 (get_abbrev_section_for_cu): Update.
6547 (create_all_comp_units): Update.
6548 (read_attribute_value): Update.
6549 (get_debug_line_section): Update.
6550 * dwarf2/index-cache.c (index_cache::store): Update.
6551 * dwarf2/index-write.c (save_gdb_index_command): Update.
6552 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6553
1859c670
SM
65542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6555
6556 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6557 member.
6558 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6559 dwarf2_per_cu_data::per_bfd.
6560 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6561 (create_type_unit_group): Likewise.
6562 (queue_comp_unit): Remove reference to
6563 per_cu->dwarf2_per_objfile.
6564 (maybe_queue_comp_unit): Likewise.
6565 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6566 (create_cus_hash_table): Assign new field.
6567
5e22e966
SM
65682020-05-27 Simon Marchi <simon.marchi@efficios.com>
6569
6570 * dwarf2/read.c: Replace
6571 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6572 dwarf2_cu->per_objfile throughout.
6573
97a1449a
SM
65742020-05-27 Simon Marchi <simon.marchi@efficios.com>
6575
6576 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6577 parameter, don't use per_cu->dwarf2_per_objfile.
6578 (dw2_instantiate_symtab): Likewise.
6579 (dw2_find_last_source_symtab): Update.
6580 (dw2_map_expand_apply): Update.
6581 (dw2_lookup_symbol): Update.
6582 (dw2_expand_symtabs_for_function): Update.
6583 (dw2_expand_all_symtabs): Update.
6584 (dw2_expand_symtabs_with_fullname): Update.
6585 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6586 don't use per_cu->dwarf2_per_objfile.
6587 (dw2_expand_marked_cus): Update.
6588 (dw2_find_pc_sect_compunit_symtab): Update.
6589 (dw2_debug_names_lookup_symbol): Update.
6590 (dw2_debug_names_expand_symtabs_for_function): Update.
6591 (dw2_debug_names_map_matching_symbols): Update.
6592 (dwarf2_psymtab::expand_psymtab): Update.
6593
9e021579
SM
65942020-05-27 Simon Marchi <simon.marchi@efficios.com>
6595
6596 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6597 <per_objfile>: New member.
6598 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6599 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6600 call to dwarf2_cu.
6601 (cutu_reader::cutu_reader): Update.
6602 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6603
ae090bdb
SM
66042020-05-27 Simon Marchi <simon.marchi@efficios.com>
6605
6606 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6607 struct dwarf2_per_objfile.
6608 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6609 dwarf2_per_bfd.
6610 * dwarf2/read.c (set_die_type): Update.
6611 (get_die_type_at_offset): Update.
6612
af758d11
SM
66132020-05-27 Tom Tromey <tom@tromey.com>
6614 Simon Marchi <simon.marchi@efficios.com>
6615
6616 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6617 method.
6618 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6619 get_symtab, set_symtab>: New methods.
6620 <m_symtabs>: New field.
6621 (struct dwarf2_psymtab): Derive from partial_symtab.
6622 <readin_p, get_compunit_symtab>: Declare methods.
6623 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6624 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6625 New methods.
6626 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6627 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6628 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6629 (dw2_symtab_iter_next, dw2_print_stats)
6630 (dw2_expand_symtabs_with_fullname)
6631 (dw2_expand_symtabs_matching_one)
6632 (dw_expand_symtabs_matching_file_matcher)
6633 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6634 (dw2_debug_names_iterator::next)
6635 (dw2_debug_names_map_matching_symbols)
6636 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6637 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6638 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6639 New methods.
6640 (get_compunit_symtab, process_full_comp_unit)
6641 (process_full_type_unit): Update.
6642 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6643
5989a64e
SM
66442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6645
6646 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6647 then introduce a new dwarf2_per_objfile type.
6648 <read_line_string>: Move to the new dwarf2_per_objfile type.
6649 <objfile>: Likewise.
6650 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6651 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6652 dwarf2_per_objfile->per_bfd.
6653 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6654 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6655 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6656 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6657 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6658 (dwarf2_per_objfile::locate_sections): Rename to...
6659 (dwarf2_per_bfd::locate_sections): ... this.
6660 (dwarf2_per_objfile::get_cutu): Rename to...
6661 (dwarf2_per_bfd::get_cutu): ... this.
6662 (dwarf2_per_objfile::get_cu): Rename to...
6663 (dwarf2_per_bfd::get_cu): ... this.
6664 (dwarf2_per_objfile::get_tu): Rename to...
6665 (dwarf2_per_bfd::get_tu): ... this.
6666 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6667 (dwarf2_per_bfd::allocate_per_cu): ... this.
6668 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6669 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6670 (get_gdb_index_contents_ftype): Change parameter from
6671 dwarf2_per_objfile to dwarf2_per_bfd.
6672 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6673 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6674
a50264ba
TT
66752020-05-27 Tom Tromey <tom@tromey.com>
6676 Simon Marchi <simon.marchi@efficios.com>
6677
6678 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6679 (allocate_piece_closure): Set "per_objfile" member.
6680 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6681 (locexpr_describe_location, loclist_describe_location): Use new
6682 member.
6683 * dwarf2/read.c (read_call_site_scope)
6684 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6685 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6686 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6687 handle_data_member_location): Set per_objfile member.
6688 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6689 member.
6690 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6691
d3473f0c
TT
66922020-05-27 Tom Tromey <tom@tromey.com>
6693
6694 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6695 allocate_signatured_type>: Declare new methods.
6696 <m_num_psymtabs>: New member.
6697 (struct dwarf2_per_cu_data) <index>: New member.
6698 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6699 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6700 (create_cu_from_index_list): Use allocate_per_cu.
6701 (create_signatured_type_table_from_index)
6702 (create_signatured_type_table_from_debug_names)
6703 (create_debug_type_hash_table, add_type_unit)
6704 (read_comp_units_from_section): Use allocate_signatured_type.
6705
5717c425
TT
67062020-05-27 Tom Tromey <tom@tromey.com>
6707
6708 * psymtab.c (partial_map_expand_apply)
6709 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6710 (psym_lookup_global_symbol_language)
6711 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6712 (psym_print_stats, psym_expand_symtabs_for_function)
6713 (psym_map_symbol_filenames, psym_map_matching_symbols)
6714 (psym_expand_symtabs_matching)
6715 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6716 (maintenance_check_psymtabs): Update.
6717 * psympriv.h (struct partial_symtab) <readin_p,
6718 get_compunit_symtab>: Add objfile parameter.
6719 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6720 Likewise.
6721 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6722 get_compunit_symtab>: Likewise.
6723 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6724
45940949
TT
67252020-05-27 Tom Tromey <tom@tromey.com>
6726
6727 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6728 member.
6729 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6730 (create_cu_from_index_list)
6731 (create_signatured_type_table_from_index)
6732 (create_signatured_type_table_from_debug_names)
6733 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6734 (dwarf2_create_include_psymtab)
6735 (create_debug_type_hash_table, add_type_unit)
6736 (create_type_unit_group, read_comp_units_from_section)
6737 (dwarf2_compute_name, create_cus_hash_table)
6738 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6739 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6740 obstack.
6741 (dw2_get_real_path): Likewise. Change argument to
6742 dwarf2_per_objfile.
6743
f8c6d152
LM
67442020-05-27 Luis Machado <luis.machado@linaro.org>
6745
6746 PR tdep/26000
6747 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6748 for ldrd (immediate).
6749
e98d2e6d
PW
67502020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6751
6752 * command.h: Add comment giving the name of class_tui.
6753 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6754 create the fake command for the help for class_tui.
6755
53a47a3e
TT
67562020-05-26 Tom Tromey <tromey@adacore.com>
6757
6758 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6759 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6760 (val_atr): New function.
6761 (value_val_atr): Use it.
6762 * ada-valprint.c (print_optional_low_bound): Change low bound
6763 handling for enums.
6764 (val_print_packed_array_elements): Don't call discrete_position.
6765 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6766 discrete_position for enum types.
6767 * language.c (default_print_array_index): Change type.
6768 * language.h (struct language_defn) <la_print_array_index>: Add
6769 index_type parameter, change type of index_value.
6770 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6771 (default_print_array_index): Update.
6772 * valprint.c (maybe_print_array_index): Don't call
6773 value_from_longest. Update.
6774 (value_print_array_elements): Don't call discrete_position.
6775
0bc2354b
TT
67762020-05-26 Tom Tromey <tromey@adacore.com>
6777
6778 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6779 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6780
1218a4bf
CDA
67812020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6782
6783 PR gdb/13519
6784 * avr-tdep.c (avr_integer_to_address): Return data or code
6785 address accordingly to the second 'type' argument of the
6786 function.
6787
92651b1d
MW
67882020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6789
6790 * infcmd.c, inferior.h: (construct_inferior_arguments):
6791 Moved function from here to gdbsupport/common-inferior.{h,cc}
6792
0a4f5f8c
TT
67932020-05-23 Tom Tromey <tom@tromey.com>
6794
6795 Revert commit eca1f90c:
6796 * NEWS: Remove entry for completion styling.
6797 * completer.c (_rl_completion_prefix_display_length): Move
6798 declaration later.
6799 (gdb_fnprint): Revert.
6800 (gdb_display_match_list_1): Likewise.
6801 * cli/cli-style.c (completion_prefix_style)
6802 (completion_difference_style, completion_suffix_style): Remove.
6803 (_initialize_cli_style): Revert.
6804 * cli/cli-style.h (completion_prefix_style)
6805 (completion_difference_style, completion_suffix_style): Don't
6806 declare.
6807
e08bd6c5
PA
68082020-05-24 Pedro Alves <palves@redhat.com>
6809
6810 * symtab.c (completion_list_add_name): Return boolean indication
6811 of whether the symbol matched.
6812 (completion_list_add_symbol): Don't try to remove C++ aliases if
6813 the symbol didn't match in the first place.
6814 * symtab.h (completion_list_add_name): Return bool.
6815
ceacbf6e
SM
68162020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6817
6818 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6819 type::field.
6820
26f16254
JB
68212020-05-23 Joel Brobecker <brobecker@adacore.com>
6822
6823 GDB 9.2 released.
6824
eca1f90c
TT
68252020-05-23 Tom Tromey <tom@tromey.com>
6826
6827 * NEWS: Add entry for completion styling.
6828 * completer.c (_rl_completion_prefix_display_length): Move
6829 declaration earlier.
6830 (gdb_fnprint): Use completion_style.
6831 (gdb_display_match_list_1): Likewise.
6832 * cli/cli-style.c (completion_prefix_style)
6833 (completion_difference_style, completion_suffix_style): New
6834 globals.
6835 (_initialize_cli_style): Register new globals.
6836 * cli/cli-style.h (completion_prefix_style)
6837 (completion_difference_style, completion_suffix_style): Declare.
6838
51e2cfa2
PA
68392020-05-23 Pedro Alves <palves@redhat.com>
6840
6841 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6842 (parse_escape): Use ISDIGIT instead of isdigit.
6843 (puts_debug): Use gdb_isprint instead of isprint.
6844 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6845 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6846 ISSPACE instead of isspace.
6847 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6848 instead of isspace.
6849 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6850 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6851 instead of isxdigit and ISDIGIT instead of isdigit.
6852
80fc5e77
SM
68532020-05-22 Simon Marchi <simon.marchi@efficios.com>
6854
6855 * gdbtypes.h (struct type) <field>: New method.
6856 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6857 or type::field.
6858
3cabb6b0
SM
68592020-05-22 Simon Marchi <simon.marchi@efficios.com>
6860
6861 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6862 (TYPE_FIELDS): Use type::fields. Change all call sites that
6863 modify the propery to use type::set_fields instead.
6864
1f704f76
SM
68652020-05-22 Simon Marchi <simon.marchi@efficios.com>
6866
6867 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6868 type::num_fields instead.
6869
5e33d5f4
SM
68702020-05-22 Simon Marchi <simon.marchi@efficios.com>
6871
6872 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6873 methods.
6874 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6875 that modify the number of fields to use type::set_num_fields
6876 instead.
6877
9392ebb3
TT
68782020-05-22 Tom Tromey <tromey@adacore.com>
6879
6880 * compile/compile-object-load.h (munmap_list_free): Don't
6881 declare.
6882
7c13f4e8
AB
68832020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6884
6885 * annotate.c (annotate_source_line): Update return type, add call
6886 to update current symtab and line.
6887 * annotate.h (annotate_source_line): Update return type, and
6888 extend header comment.
6889 * source.c (info_line_command): Check annotation_level before
6890 calling annotate_source_line.
6891 * stack.c (print_frame_info): If calling annotate_source_line
6892 returns true, then don't print any other source line information.
6893
aa370940
SM
68942020-05-21 Simon Marchi <simon.marchi@efficios.com>
6895
6896 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6897
84d53fa9
SM
68982020-05-21 Simon Marchi <simon.marchi@efficios.com>
6899
6900 * coffread.c (patch_type): Remove NULL check before xfree.
6901 * corefile.c (set_gnutarget): Likewise.
6902 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6903 * exec.c (build_section_table): Likewise.
6904 * remote.c (remote_target::pass_signals): Likewise.
6905 * utils.c (n_spaces): Likewise.
6906 * cli/cli-script.c (document_command): Likewise.
6907 * i386-windows-tdep.c (core_process_module_section): Likewise.
6908 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6909
9d428aae
SM
69102020-05-20 Simon Marchi <simon.marchi@efficios.com>
6911
6912 * symfile.c (reread_symbols): Clear objfile's section_offsets
6913 vector and section indices, re-compute them by calling
6914 sym_offsets.
6915
250106a7
TT
69162020-05-20 Tom Tromey <tromey@adacore.com>
6917
6918 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6919 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6920
9a0bacfb
TV
69212020-05-20 Tom de Vries <tdevries@suse.de>
6922
6923 PR symtab/25833
6924 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6925
7b958a48
AM
69262020-05-20 Alan Modra <amodra@gmail.com>
6927
6928 PR 25993
6929 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6930 bfd_set_filename.
6931 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6932 passed to bfd_set_filename.
6933 * symfile-mem.c (add_vsyscall_page): Likewise for string
6934 passed to symbol_file_add_from_memory.
6935 (symbol_file_add_from_memory): Make name param a const char* and
6936 don't strdup.
6937
c7e97679
AM
69382020-05-20 Alan Modra <amodra@gmail.com>
6939
6940 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6941 rather than accessing bfd->filename directly.
6942 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6943 and use bfd_section_name.
6944 * dwarf2/frame.c (decode_frame_entry): Likewise.
6945 * exec.c (exec_set_section_address): Likewise.
6946 * solib-aix.c (solib_aix_bfd_open): Likewise.
6947 * stap-probe.c (get_stap_base_address): Likewise.
6948 * symfile.c (reread_symbols): Likewise.
6949
563c591b
TT
69502020-05-19 Tom Tromey <tromey@adacore.com>
6951
6952 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6953
f408d82c
SM
69542020-05-19 Simon Marchi <simon.marchi@efficios.com>
6955
6956 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6957
98c59b52
PA
69582020-05-19 Pedro Alves <palves@redhat.com>
6959
6960 * NEWS (set exec-file-mismatch): Adjust entry.
6961 * exec.c: Include "build-id.h".
6962 (validate_exec_file): Try to match build IDs instead of filenames.
6963 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6964 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6965 and pass down 'warn_if_slow'.
6966 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6967 gdb_bfd_open_closure to pass it down.
6968 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6969
4111f652
PA
69702020-05-19 Pedro Alves <palves@redhat.com>
6971
6972 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6973 * target.c (target_fileio_open_1): Rename to target_fileio_open
6974 and make extern. Use bool.
6975 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6976 (target_fileio_read_alloc_1): Adjust.
6977 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6978 (target_fileio_open_warn_if_slow): Delete declaration.
6979
ad80db5b
PA
69802020-05-19 Pedro Alves <palves@redhat.com>
6981
6982 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6983 Adjust all callers.
6984
1d6ce4d3
YS
69852020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6986
6987 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6988 whether disp is negative.
6989
9005fbbb
SM
69902020-05-19 Simon Marchi <simon.marchi@efficios.com>
6991
6992 * symfile.h (struct symfile_segment_data)
6993 <~symfile_segment_data>: Remove.
6994 <segment_info>: Change to std::vector.
6995 * symfile.c (default_symfile_segments): Update.
6996 * elfread.c (elf_symfile_segments): Update.
6997
68b888ff
SM
69982020-05-19 Simon Marchi <simon.marchi@efficios.com>
6999
7000 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7001 <segments>: New.
7002 <segment_bases, segment_sizes>: Remove.
7003 * symfile.c (default_symfile_segments): Update.
7004 * elfread.c (elf_symfile_segments): Update.
7005 * remote.c (remote_target::get_offsets): Update.
7006 * solib-target.c (solib_target_relocate_section_addresses):
7007 Update.
7008
62982abd
SM
70092020-05-19 Simon Marchi <simon.marchi@efficios.com>
7010
7011 * symfile.h (struct symfile_segment_data): Initialize fields.
7012 <~symfile_segment_data>: Add.
7013 (symfile_segment_data_up): New.
7014 (struct sym_fns) <sym_segments>: Return a
7015 symfile_segment_data_up.
7016 (default_symfile_segments): Return a symfile_segment_data_up.
7017 (free_symfile_segment_data): Remove.
7018 (get_symfile_segment_data): Return a symfile_segment_data_up.
7019 * symfile.c (default_symfile_segments): Likewise.
7020 (get_symfile_segment_data): Likewise.
7021 (free_symfile_segment_data): Remove.
7022 (symfile_find_segment_sections): Update.
7023 * elfread.c (elf_symfile_segments): Return a
7024 symfile_segment_data_up.
7025 * remote.c (remote_target::get_offsets): Update.
7026 * solib-target.c (solib_target_relocate_section_addresses):
7027 Update.
7028 * symfile-debug.c (debug_sym_segments): Return a
7029 symfile_segment_data_up.
7030
7f204339
RO
70312020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7032
e52a0f1b
RO
7033 PR build/25981
7034 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7035 Hardcode register numbers.
7036
7f204339
RO
7037 PR build/25981
7038 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7039 procfs_find_LDT_entry): Remove.
7040 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7041 procfs_find_LDT_entry): Remove.
7042 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7043 Remove.
7044
7f32a4d5
PA
70452020-05-17 Pedro Alves <palves@redhat.com>
7046 Andrew Burgess <andrew.burgess@embecosm.com>
7047 Keno Fischer <keno@juliacomputing.com>
7048
7049 PR gdb/25741
7050 * breakpoint.c (build_target_condition_list): Update comments.
7051 (build_target_command_list): Update comments and skip matching
7052 locations.
7053 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7054 a separate function. Simplify "set breakpoint auto-hw off"
7055 handling.
7056 (insert_breakpoints): Update comment.
7057 (tracepoint_locations_match): New parameter. For breakpoints,
7058 compare location types too, if the caller wants to.
7059 (handle_automatic_hardware_breakpoints): New functions.
7060 (bp_location_is_less_than): Also sort by location type and
7061 hardware breakpoint length.
7062 (update_global_location_list): Handle "set breakpoint auto-hw on"
7063 here.
7064 (update_breakpoint_locations): Ask breakpoint_locations_match to
7065 ignore location types.
7066
7d93a1e0
SM
70672020-05-16 Simon Marchi <simon.marchi@efficios.com>
7068
7069 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7070 type::name instead.
7071
d0e39ea2
SM
70722020-05-16 Simon Marchi <simon.marchi@efficios.com>
7073
7074 * gdbtypes.h (struct type) <name, set_name>: New methods.
7075 (TYPE_CODE): Use type::name. Change all call sites used to set
7076 the name to use type::set_name instead.
7077
2dab0c7b
TT
70782020-05-16 Tom Tromey <tom@tromey.com>
7079
7080 * top.c (quit_force): Update.
7081 * infrun.c (handle_no_resumed): Update.
7082 * top.h (all_uis): New function.
7083 (ALL_UIS): Remove.
7084
59f7bd8d
SM
70852020-05-16 Simon Marchi <simon.marchi@efficios.com>
7086
7087 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7088
9bf058f0
PA
70892020-05-16 Pedro Alves <palves@redhat.com>
7090
7091 * ia64-linux-nat.c
7092 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7093 Declare method.
7094 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7095
8f86ae1a
SM
70962020-05-15 Simon Marchi <simon.marchi@efficios.com>
7097
7098 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7099 (sparc64_adi_info): Likewise.
7100
d6bc0792
TT
71012020-05-15 Tom Tromey <tom@tromey.com>
7102
7103 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7104 block_objfile.
7105 (lookup_objfile_from_block): Remove.
7106 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7107 (lookup_global_symbol): Use block_objfile.
7108 * symtab.h (lookup_objfile_from_block): Don't declare.
7109 * printcmd.c (clear_dangling_display_expressions): Use
7110 block_objfile.
7111 * parse.c (operator_check_standard): Use block_objfile.
7112
8c14c3a3
TT
71132020-05-15 Tom Tromey <tom@tromey.com>
7114
7115 * language.c (language_alloc_type_symbol): Set
7116 SYMBOL_SECTION.
7117 * symtab.c (initialize_objfile_symbol): Remove.
7118 (allocate_symbol): Remove.
7119 (allocate_template_symbol): Remove.
7120 * dwarf2/read.c (fixup_go_packaging): Use "new".
7121 (new_symbol): Use "new".
7122 (read_variable): Don't call initialize_objfile_symbol. Use
7123 "new".
7124 (read_func_scope): Use "new".
7125 * xcoffread.c (process_xcoff_symbol): Don't call
7126 initialize_objfile_symbol.
7127 (SYMBOL_DUP): Remove.
7128 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7129 "new".
7130 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7131 (allocate_template_symbol): Don't declare.
7132 (struct symbol): Add copy constructor. Change defaults.
7133 * jit.c (finalize_symtab): Use "new".
7134 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7135 Use "new".
7136 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7137 (common_block_end): Use "new".
7138 * mdebugread.c (parse_symbol): Use "new".
7139 (new_symbol): Likewise.
7140
5b4a1a8d
PW
71412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7142
7143 * NEWS: Mention changes to help and apropos.
7144
57b4f16e
PW
71452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7146
7147 * command.h (enum command_class): Improve comments, document
7148 that class_alias is for user-defined aliases, give the class
7149 name for each class, remove unused class_xdb.
7150 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7151 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7152 by a precise class.
7153 * infcmd.c (_initialize_infcmd): Likewise.
7154 * reverse.c (_initialize_reverse): Likewise.
7155 * stack.c (_initialize_stack): Likewise.
7156 * symfile.c (_initialize_symfile): Likewise.
7157 * tracepoint.c (_initialize_tracepoint): Likewise.
7158
7c05caf7
PW
71592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7160
7161 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7162 when their aliased command is traversed.
7163 (help_cmd): Add fput_command_names_styled call to
7164 output command name and aliases when command has an alias.
7165
3b3aaacb
PW
71662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7167
7168 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7169 * cli/cli-decode.c (help_cmd_list): Declare as static,
7170 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7171 a command together with the command.
7172 (fput_command_name_styled, fput_command_names_styled): New functions.
7173 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7174 fput_command_name_styled.
7175 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7176 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7177
7aa1b46f
PW
71782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7179
7180 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7181 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7182 * command.h (cmd_show_list): Likewise.
7183 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7184 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7185
89bcba74
PW
71862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7187
7188 * unittests/command-def-selftests.c (traverse_command_structure):
7189 Verify all commands of a list have the same prefix command and
7190 that only the top cmdlist commands have a null prefix.
7191
3f4d92eb
PW
71922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7193
7194 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7195 as prefix, not one of its aliases.
7196 (set_cmd_prefix): Remove.
7197 (do_add_cmd): Centralize the setting of the prefix of a command, when
7198 command is defined after its full chain of prefix commands.
7199 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7200 (add_setshow_cmd_full): Likewise.
7201 (update_prefix_field_of_prefixed_commands): New function.
7202 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7203 update_prefix_field_of_prefixed_commands.
7204 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7205 addresses of remote_set_cmdlist and remote_show_cmdlist given
7206 as argument, not the address of an argument.
7207 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7208 * gdb/remote.c (_initialize_remote): Likewise.
7209
0605465f
PW
72102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7211
7212 * cli/cli-cmds.c (alias_command): Check for an existing alias
7213 using lookup_cmd_composition, as valid_command_p is too strict
7214 and forbids aliases that are the prefix of an existing alias
7215 or command.
7216 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7217 command is properly recognised as a valid command.
7218
58e6ac70
PW
72192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7220
7221 * unittests/help-doc-selftests.c: Rename to
7222 unittests/command-def-selftests.c
7223 * unittests/command-def-selftests.c (help_doc_tests): Update some
7224 comments.
7225 (command_structure_tests, traverse_command_structure): New namespace
7226 and function.
7227 (command_structure_invariants_tests): New function.
7228 (_initialize_command_def_selftests) Renamed from
7229 _initialize_help_doc_selftests, register command_structure_invariants
7230 selftest.
7231
a7b9ceb8
PW
72322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7233
7234 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7235 an alias of 'show'.
7236
b2188a06
JB
72372020-05-15 Joel Brobecker <brobecker@adacore.com>
7238
7239 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7240 ada_is_fixed_point_type. Update all callers.
7241 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7242 all callers.
7243 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7244 Update all callers.
7245 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7246 print_fixed_point_type. Update all callers.
7247 * ada-valprint.c (ada_value_print_num): Replace call to
7248 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7249
a51951c2
KB
72502020-05-14 Kevin Buettner <kevinb@redhat.com>
7251
7252 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7253 processors.
7254 (cpu_supports_bts): Add CV_AMD case.
7255
29d6859f
LM
72562020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7257 Simon Marchi <simon.marchi@efficios.com>
7258
7259 * infrun.c (stop_all_threads): Collect multiple wait events at
7260 each pass.
7261
78134374
SM
72622020-05-14 Simon Marchi <simon.marchi@efficios.com>
7263
7264 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7265 type::code instead.
7266
67607e24
SM
72672020-05-14 Simon Marchi <simon.marchi@efficios.com>
7268
7269 * gdbtypes.h (struct type) <code, set_code>: New methods.
7270 (TYPE_CODE): Use type::code. Change all call sites used to set
7271 the code to use type::set_code instead.
7272
a05575d3
TBA
72732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7274 Tom de Vries <tdevries@suse.de>
7275 Pedro Alves <palves@redhat.com>
7276
7277 PR threads/25478
7278 * infrun.c (stop_all_threads): Do NOT ignore
7279 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7280 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7281 received.
7282 (handle_no_resumed): Remove code handling a live inferior with no
7283 threads.
7284 * remote.c (has_single_non_exited_thread): New.
7285 (remote_target::update_thread_list): Do not delete a thread if is
7286 the last thread of the process.
7287 * thread.c (thread_select): Call delete_exited_threads instead of
7288 prune_threads.
7289
6ad82919
TBA
72902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7291
7292 * infrun.c (stop_all_threads): Enable/disable thread events of all
7293 targets. Move a debug message denoting the end of the function
7294 into the SCOPED_EXIT block.
7295
d890404b
TBA
72962020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7297
7298 * process-stratum-target.h: Include <set>.
7299 (all_non_exited_process_targets, switch_to_target_no_thread): New
7300 function declarations.
7301 * process-stratum-target.c (all_non_exited_process_targets)
7302 (switch_to_target_no_thread): New function implementations.
7303
293b3ebc
TBA
73042020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7305
7306 * infrun.c (handle_inferior_event): Extract out a piece of code
7307 into...
7308 (mark_non_executing_threads): ...this new function.
7309
7ca9b62a
TBA
73102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7311
7312 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7313 use.
7314
fc75c28b
TBA
73152020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7316
7317 * regcache.c (regcache_read_pc_protected): New function
7318 implementation that returns 0 if the PC cannot read via
7319 'regcache_read_pc'.
7320 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7321 instead of 'regcache_read_pc'.
7322 (keep_going_pass_signal): Ditto.
7323
a89febbd
TT
73242020-05-13 Tom Tromey <tromey@adacore.com>
7325
7326 * ada-lang.c (align_value): Remove.
7327 (ada_template_to_fixed_record_type_1): Use align_up.
7328
f7e23710
TBA
73292020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7330
7331 * async-event.c: Update the copyright year.
7332 * async-event.h: Update the copyright year.
7333
02ff80c2
SM
73342020-05-12 Simon Marchi <simon.marchi@efficios.com>
7335
7336 * objfiles.h (is_addr_in_objfile,
7337 shared_objfile_contains_address_p): Return bool.
7338 * objfile.c (is_addr_in_objfile,
7339 shared_objfile_contains_address_p): Return bool.
7340
4fd6c7e8
TT
73412020-05-11 Tom Tromey <tromey@adacore.com>
7342
7343 * cli/cli-cmds.c (info_command): Restore.
7344 (_initialize_cli_cmds): Use add_prefix_command for "info".
7345 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7346
5eb68a39
TT
73472020-05-11 Tom Tromey <tromey@adacore.com>
7348
7349 * ada-lang.c (ada_value_primitive_field): Now public.
7350 * ada-lang.h (ada_value_primitive_field): Declare.
7351 * ada-valprint.c (print_field_values): Use
7352 ada_value_primitive_field for wrapper fields.
7353
7666722f
TV
73542020-05-11 Tom de Vries <tdevries@suse.de>
7355
7356 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7357 MODULE_DOMAIN.
7358
3ee6bb11
TV
73592020-05-11 Tom de Vries <tdevries@suse.de>
7360
7361 PR symtab/25941
7362 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7363 with length 0, if not gdb-produced.
7364 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7365
43434996
TV
73662020-05-09 Tom de Vries <tdevries@suse.de>
7367
7368 PR gdb/25955
7369 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7370 calculation.
7371
2f78cffc
TT
73722020-05-09 Tom Tromey <tom@tromey.com>
7373
7374 * top.c (server_command): Now bool.
7375 * top.h (server_command): Now bool.
7376
4f7bc5ed
TT
73772020-05-08 Tom Tromey <tromey@adacore.com>
7378
7379 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7380 already being processed.
7381
8be4b118
TT
73822020-05-08 Tom Tromey <tom@tromey.com>
7383
7384 * printcmd.c (struct display) <next>: Remove.
7385 <display>: New constructor.
7386 <exp_string>: Now a std::string.
7387 <enabled_p>: Now a bool.
7388 (display_number): Move definition earlier.
7389 (displays): Rename from display_chain. Now a std::vector.
7390 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7391 (display_command): Update.
7392 (do_one_display, disable_display)
7393 (enable_disable_display_command, do_enable_disable_display):
7394 Update.
7395 (free_display): Remove.
7396 (clear_displays): Rewrite.
7397 (delete_display): Update.
7398 (map_display_numbers): Use function_view. Remove "data"
7399 parameter. Update.
7400 (do_delete_display): Remove.
7401 (undisplay_command): Update.
7402 (do_one_display, do_displays, disable_display)
7403 (info_display_command): Update.
7404 (do_enable_disable_display): Remove.
7405 (enable_disable_display_command)
7406 (clear_dangling_display_expressions): Update.
7407
94c93c35
TT
74082020-05-08 Tom Tromey <tom@tromey.com>
7409
7410 * symtab.c (set_symbol_cache_size)
7411 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7412 (maintenance_print_symbol_cache_statistics): Update.
7413 * symmisc.c (print_symbol_bcache_statistics)
7414 (print_objfile_statistics, maintenance_print_objfiles)
7415 (maintenance_info_symtabs, maintenance_check_symtabs)
7416 (maintenance_expand_symtabs, maintenance_info_line_tables):
7417 Update.
7418 * symfile-debug.c (set_debug_symfile): Update.
7419 * source.c (forget_cached_source_info): Update.
7420 * python/python.c (gdbpy_progspaces): Update.
7421 * psymtab.c (maintenance_info_psymtabs): Update.
7422 * probe.c (parse_probes): Update.
7423 * linespec.c (iterate_over_all_matching_symtabs)
7424 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7425 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7426 * exec.c (exec_target::close): Update.
7427 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7428 * breakpoint.c (print_one_breakpoint_location)
7429 (create_longjmp_master_breakpoint)
7430 (create_std_terminate_master_breakpoint): Update.
7431 * progspace.c (program_spaces): Now a std::vector.
7432 (maybe_new_address_space): Update.
7433 (add_program_space): Remove.
7434 (program_space::program_space): Update.
7435 (remove_program_space): Update.
7436 (number_of_program_spaces): Remove.
7437 (print_program_space, update_address_spaces): Update.
7438 * progspace.h (program_spaces): Change type.
7439 (ALL_PSPACES): Remove.
7440 (number_of_program_spaces): Don't declare.
7441 (struct program_space) <next>: Remove.
7442
a1fd1ac9
TT
74432020-05-08 Tom Tromey <tom@tromey.com>
7444
7445 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7446 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7447 (enable_break): Update.
7448 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7449 (frv_fdpic_find_canonical_descriptor): Update.
7450 (frv_fetch_objfile_link_map): Update.
7451 * progspace.c (program_space::free_all_objfiles): Update.
7452 (program_space::solibs): New method.
7453 * progspace.h (struct program_space) <solibs>: New method.
7454 * solist.h (master_so_list): Don't declare.
7455 (ALL_SO_LIBS): Remove.
7456 * solib.h (so_list_head): Remove.
7457 (update_solib_list): Update comment.
7458 * solib.c (master_so_list): Remove.
7459 (solib_used, update_solib_list, solib_add)
7460 (info_sharedlibrary_command, clear_solib)
7461 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7462
38eae084
TT
74632020-05-08 Tom Tromey <tom@tromey.com>
7464
7465 * extension.c (extension_languages): Now a std::array.
7466 (ALL_EXTENSION_LANGUAGES): Remove.
7467 (get_ext_lang_defn, get_ext_lang_of_file)
7468 (eval_ext_lang_from_control_command): Update.
7469 (finish_ext_lang_initialization)
7470 (auto_load_ext_lang_scripts_for_objfile)
7471 (ext_lang_type_printers::ext_lang_type_printers)
7472 (apply_ext_lang_type_printers)
7473 (ext_lang_type_printers::~ext_lang_type_printers)
7474 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7475 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7476 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7477 (get_matching_xmethod_workers, ext_lang_colorize)
7478 (ext_lang_before_prompt): Update.
7479 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7480
596dc4ad
TT
74812020-05-08 Tom Tromey <tom@tromey.com>
7482
7483 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7484 overload.
7485 <swap_string, m_string>: Remove.
7486 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7487 Update.
7488 * stabsread.c (define_symbol, read_type): Update.
7489 * linespec.c (find_linespec_symbols): Update.
7490 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7491 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7492 * dbxread.c (read_dbx_symtab): Update.
7493 * cp-support.h (cp_canonicalize_string_full)
7494 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7495 Return unique_xmalloc_ptr.
7496 * cp-support.c (inspect_type): Update.
7497 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7498 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7499 Likewise.
7500 * c-typeprint.c (print_name_maybe_canonical): Update.
7501 * break-catch-throw.c (check_status_exception_catchpoint):
7502 Update.
7503
bf4cb9be
TV
75042020-05-08 Tom de Vries <tdevries@suse.de>
7505
7506 * infrun.c (follow_fork): Copy current_line and current_symtab to
7507 child thread.
7508
a1b68f28
SM
75092020-05-07 Simon Marchi <simon.marchi@efficios.com>
7510
7511 * async-event.c (struct async_signal_handler, struct
7512 async_event_handler): Reformat, remove typedef.
7513
98d48915
SM
75142020-05-07 Simon Marchi <simon.marchi@efficios.com>
7515
7516 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7517 access thistype->main_type->dyn_prop_list directly.
7518
7aa91313
SM
75192020-05-07 Simon Marchi <simon.marchi@efficios.com>
7520
7521 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7522 (remove_dyn_prop): Remove. Update all users to use
7523 type::remove_dyn_prop.
7524 * gdbtypes.c (remove_dyn_prop): Rename to...
7525 (type::remove_dyn_prop): ... this.
7526
5c54719c
SM
75272020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7528
7529 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7530 (add_dyn_prop): Remove. Update all users to use
7531 type::add_dyn_prop.
7532 * gdbtypes.c (add_dyn_prop): Rename to...
7533 (type::add_dyn_prop): ... this.
7534
24e99c6c
SM
75352020-05-07 Simon Marchi <simon.marchi@efficios.com>
7536
7537 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7538 (get_dyn_prop): Remove. Update all users to use
7539 type::dyn_prop.
7540 * gdbtypes.c (get_dyn_prop): Rename to...
7541 (type::dyn_prop): ... this.
7542
0d4bf016
SM
75432020-05-06 Simon Marchi <simon.marchi@efficios.com>
7544
7545 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7546
ac4a4f1c
SM
75472020-05-06 Simon Marchi <simon.marchi@efficios.com>
7548
7549 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7550 instruction, skip it if it's there.
7551
a3bbacc1
SM
75522020-05-05 Simon Marchi <simon.marchi@efficios.com>
7553
7554 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7555
c3236f84
SM
75562020-05-04 Simon Marchi <simon.marchi@efficios.com>
7557
7558 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7559 * gdbtypes.c (recursive_dump_type): Remove use of
7560 TYPE_INCOMPLETE.
7561
3b6acaee
TT
75622020-05-03 Tom Tromey <tom@tromey.com>
7563
7564 * breakpoint.c (catch_command, tcatch_command): Remove.
7565 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7566 add_show_prefix_cmd.
7567 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7568 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7569 Remove.
7570 (add_internal_problem_command): Use add_basic_prefix_cmd,
7571 add_show_prefix_cmd.
7572 * mips-tdep.c (set_mipsfpu_command): Remove.
7573 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7574 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7575 (_initialize_index_cache): Use add_basic_prefix_cmd.
7576 * memattr.c (dummy_cmd): Remove.
7577 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7578 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7579 (_initialize_tui_win): Use add_basic_prefix_cmd,
7580 add_show_prefix_cmd.
7581 * cli/cli-logging.c (set_logging_command): Remove.
7582 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7583 add_show_prefix_cmd.
7584 (show_logging_command): Remove.
7585 * target.c (target_command): Remove.
7586 (add_target): Use add_basic_prefix_cmd.
7587
a51119cd
HD
75882020-05-02 Hannes Domani <ssbssa@yahoo.de>
7589
7590 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7591
652fc23a 75922020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7593
652fc23a
PW
7594 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7595 info_command.
7596
117539e6
KR
75972020-04-30 Kamil Rytarowski <n54@gmx.com>
7598
7599 * nbsd-nat.c (nbsd_enable_proc_events)
7600 (nbsd_nat_target::post_startup_inferior): Add.
7601 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7602 (nbsd_nat_target::update_thread_list): Rewrite.
7603 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7604 "PTRACE_LWP_CREATE".
7605 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7606
102e38eb 76072020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7608
102e38eb
PW
7609 * stack.c (_initialize_stack): Remove duplicated creation
7610 of "frame" command and "f" alias.
7611
ee9d1e5f
HD
76122020-04-30 Hannes Domani <ssbssa@yahoo.de>
7613
7614 PR gdb/18706
7615 * gdbtypes.c (check_typedef): Calculate size of array of
7616 stubbed type.
7617
627c7fb8
HD
76182020-04-30 Hannes Domani <ssbssa@yahoo.de>
7619
7620 PR gdb/15559
7621 * i386-tdep.c (i386_push_dummy_call): Call
7622 i386_thiscall_push_dummy_call.
7623 (i386_thiscall_push_dummy_call): New function.
7624 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7625 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7626 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7627
ffc2844e
SM
76282020-04-29 Simon Marchi <simon.marchi@efficios.com>
7629
7630 * gdbarch.sh (do_read): Add shellcheck disable directive for
7631 warning SC2162.
7632
1207375d
SM
76332020-04-29 Simon Marchi <simon.marchi@efficios.com>
7634
7635 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7636 "referenced but not assigned" warning.
7637
9fdb2916
SM
76382020-04-29 Simon Marchi <simon.marchi@efficios.com>
7639
7640 * gdbarch.sh: Remove code that sets fallbackdefault.
7641
759cea5e
SM
76422020-04-29 Simon Marchi <simon.marchi@efficios.com>
7643
7644 * gdbarch.sh: Use shell operators && and || instead of
7645 -a and -o.
7646
cb02ab24
SM
76472020-04-29 Simon Marchi <simon.marchi@efficios.com>
7648
7649 * gdbarch.sh: Use $(...) instead of `...`.
7650
a6fc5ffc
SM
76512020-04-29 Simon Marchi <simon.marchi@efficios.com>
7652
7653 * gdbarch.sh: Use double quotes around variables.
7654
8d113d13
SM
76552020-04-29 Simon Marchi <simon.marchi@efficios.com>
7656
7657 * gdbarch.sh: Use %s with printf, instead of variables in the
7658 format string.
7659
ed6acedd
TT
76602020-04-29 Tom Tromey <tromey@adacore.com>
7661
7662 PR ada/25875:
7663 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7664 type fields here.
7665 (read_enumeration_type): Call
7666 update_enumeration_type_from_children later. Update comments.
7667 (process_enumeration_scope): Don't create type fields.
7668
b68b1b58
KR
76692020-04-29 Kamil Rytarowski <n54@gmx.com>
7670
7671 * nbsd-tdep.c: Include "xml-syscall.h".
7672 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7673
f94b2e03
KR
76742020-04-29 Kamil Rytarowski <n54@gmx.com>
7675
7676 * nbsd-nat.c: Include "sys/wait.h".
7677 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7678 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7679 (nbsd_nat_target::remove_exec_catchpoint)
7680 (nbsd_nat_target::set_syscall_catchpoint): Add.
7681 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7682 (nbsd_nat_target::insert_exec_catchpoint)
7683 (nbsd_nat_target::remove_exec_catchpoint)
7684 (nbsd_nat_target::set_syscall_catchpoint): Add.
7685 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7686 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7687 `nbsd_get_syscall_number'.
7688
fc49bc72
TT
76892020-04-29 Tom Tromey <tom@tromey.com>
7690
7691 * stack.c (print_block_frame_labels): Remove.
7692
d642b692
HD
76932020-04-29 Hannes Domani <ssbssa@yahoo.de>
7694
7695 PR gdb/17320
7696 * ada-valprint.c (val_print_packed_array_elements): Move array
7697 end bracket to new line.
7698 (ada_val_print_string): Remove extra spaces before first array
7699 element.
7700 * c-valprint.c (c_value_print_array): Likewise.
7701 * m2-valprint.c (m2_print_array_contents): Likewise.
7702 (m2_value_print_inner): Likewise.
7703 * p-valprint.c (pascal_value_print_inner): Likewise.
7704 * valprint.c (generic_val_print_array): Likewise.
7705 (value_print_array_elements): Move first array element and array
7706 end bracket to new line.
7707
ea90f227
TV
77082020-04-29 Tom de Vries <tdevries@suse.de>
7709
7710 PR symtab/25889
7711 * linespec.c (find_method): Fix ix calculation.
7712
4498ef4f
KR
77132020-04-28 Kamil Rytarowski <n54@gmx.com>
7714
7715 * syscalls/update-netbsd.sh: New file.
7716 * syscalls/netbsd.xml: Regenerate.
7717 * data-directory/Makefile.in: Register `netbsd.xml' in
7718 `SYSCALLS_FILES'.
7719
a55e30b5
SM
77202020-04-28 Simon Marchi <simon.marchi@efficios.com>
7721
7722 * syscalls/update-freebsd.sh: Add double quotes.
7723
2b2fbab8
TT
77242020-04-28 Tom Tromey <tom@tromey.com>
7725
7726 * NEWS: Update.
7727 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7728 (cmdpy_init): Allow class_tui.
7729
a65189c9
TV
77302020-04-28 Mark Williams <mark@myosotissp.com>
7731
7732 PR gdb/24480
7733 * dwarf2read.c: Add missing assingments to list_in_scope when
7734 start_symtab was already called.
7735
1b95cdb7
SM
77362020-04-28 Simon Marchi <simon.marchi@efficios.com>
7737
7738 PR gdb/25881
7739 * dwarf2/read.c (offset_map_type): Use
7740 gdb:hash_enum<sect_offset> as hash function.
7741
15cd93d0
TV
77422020-04-28 Tom de Vries <tdevries@suse.de>
7743
7744 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7745 with DW_AT_signature.
7746
1eb39914
SM
77472020-04-27 Simon Marchi <simon.marchi@efficios.com>
7748
7749 * configure.ac: Remove check for fs_base/gs_base in
7750 user_regs_struct.
7751 * configure: Re-generate.
7752 * config.in: Re-generate.
7753 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7754 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7755 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7756
991a3e2e
LM
77572020-04-27 Luis Machado <luis.machado@linaro.org>
7758
7759 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7760 problematic inline frame unwinding situation.
7761 * frame.c (frame_id_computed_p): New function.
7762 * frame.h (frame_id_computed_p): New prototype.
7763
361ba0e8
TT
77642020-04-26 Tom Tromey <tom@tromey.com>
7765
7766 * command.h (enum command_class) <class_pseudo>: Remove.
7767
bc3609fd
PW
77682020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7769
7770 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7771 and whitespace.
7772
b9771db7
KR
77732020-04-25 Kamil Rytarowski <n54@gmx.com>
7774
ec16513e
SM
7775 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7776 `PT_GET_PROCESS_STATE' block.
b9771db7 7777
7151c1af
TT
77782020-04-24 Tom Tromey <tom@tromey.com>
7779
7780 * symtab.h (symbol_get_demangled_name): Don't declare.
7781 * symtab.c (symbol_get_demangled_name): Remove.
7782 (general_symbol_info::natural_name)
7783 (general_symbol_info::demangled_name): Update.
7784
906bb4c5
TT
77852020-04-24 Tom Tromey <tom@tromey.com>
7786
7787 PR rust/25025:
7788 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7789
bcfe6157
TT
77902020-04-24 Tom Tromey <tom@tromey.com>
7791
7792 PR symtab/12707:
7793 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7794 exists.
7795 (new_symbol): Likewise.
7796 * compile/compile-object-load.c (get_out_value_type): Use
7797 symbol_matches_search_name.
7798
f049a313
TT
77992020-04-24 Tom Tromey <tom@tromey.com>
7800
7801 * dwarf2/read.c (add_partial_symbol): Do not call
7802 compute_and_set_names.
7803
76e288d1
TT
78042020-04-24 Tom Tromey <tom@tromey.com>
7805
7806 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7807 overload.
7808
2467f4f6
TT
78092020-04-24 Tom Tromey <tom@tromey.com>
7810
7811 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7812 (add_psymbol_to_list): New overload. Make old overload call new
7813 one.
7814 * psympriv.h (add_psymbol_to_list): New overload.
7815
e61108c9
TT
78162020-04-24 Tom Tromey <tom@tromey.com>
7817
7818 * dwarf2/read.c (partial_die_info::read) <case
7819 DW_AT_linkage_name>: Use value_as_string.
7820 (dwarf2_string_attr): Use value_as_string.
7821 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7822 method.
7823 * dwarf2/attribute.c (attribute::value_as_string): New method.
7824
8c87a452
TT
78252020-04-24 Tom Tromey <tom@tromey.com>
7826
7827 * symtab.c (general_symbol_info::natural_name)
7828 (general_symbol_info::demangled_name): Check for language_rust.
7829
787de330
TT
78302020-04-24 Tom Tromey <tom@tromey.com>
7831
7832 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7833 (dwarf2_physname): ... from here.
7834 (partial_die_info::read): Add Rust "{" hack.
7835
ff985671
TT
78362020-04-24 Tom Tromey <tom@tromey.com>
7837
7838 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7839 method.
7840 (symbol_set_demangled_name): Don't declare.
7841 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7842 symbol_set_demangled_name.
7843 (general_symbol_info::set_language)
7844 (general_symbol_info::compute_and_set_names): Update.
7845 * minsyms.c (minimal_symbol_reader::install): Update.
7846 * dwarf2/read.c (new_symbol): Update.
7847
1acda803
TT
78482020-04-24 Tom Tromey <tromey@adacore.com>
7849
7850 PR python/23662:
7851 * python/py-type.c (convert_field): Handle
7852 FIELD_LOC_KIND_DWARF_BLOCK.
7853 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7854 (typy_get_dynamic): Nw function.
7855 (type_object_getset): Add "dynamic".
7856 * NEWS: Add entry.
7857
d656f129
TT
78582020-04-24 Tom Tromey <tromey@adacore.com>
7859
7860 * ada-typeprint.c (print_choices, print_variant_part)
7861 (print_record_field_types_dynamic): New functions.
7862 (print_record_field_types): Use print_record_field_types_dynamic.
7863
7d79de9a
TT
78642020-04-24 Tom Tromey <tromey@adacore.com>
7865
7866 * dwarf2/read.c (handle_data_member_location): New overload.
7867 (dwarf2_add_field): Use it.
7868 (decode_locdesc): Add "computed" parameter. Update comment.
7869 * gdbtypes.c (is_dynamic_type_internal): Also look for
7870 FIELD_LOC_KIND_DWARF_BLOCK.
7871 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7872 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7873 virtual base classes.
7874 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7875 FIELD_LOC_KIND_DWARF_BLOCK.
7876
f8e89861
TT
78772020-04-24 Tom Tromey <tromey@adacore.com>
7878
7879 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7880 * gdbtypes.c (is_dynamic_type_internal): Check
7881 TYPE_HAS_DYNAMIC_LENGTH.
7882 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7883 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7884 New macros.
7885 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7886 constant.
7887
9c6a1327
TT
78882020-04-24 Tom Tromey <tromey@adacore.com>
7889
7890 * dwarf2/read.c (struct variant_field): Rewrite.
7891 (struct variant_part_builder): New.
7892 (struct nextfield): Remove "variant" field. Add "offset".
7893 (struct field_info): Add "current_variant_part" and
7894 "variant_parts".
7895 (alloc_discriminant_info): Remove.
7896 (alloc_rust_variant): New function.
7897 (quirk_rust_enum): Update.
7898 (dwarf2_add_field): Set "offset" member. Don't handle
7899 DW_TAG_variant_part.
7900 (offset_map_type): New typedef.
7901 (convert_variant_range, create_one_variant)
7902 (create_one_variant_part, create_variant_parts)
7903 (add_variant_property): New functions.
7904 (dwarf2_attach_fields_to_type): Call add_variant_property.
7905 (read_structure_type): Don't handle DW_TAG_variant_part.
7906 (handle_variant_part, handle_variant): New functions.
7907 (handle_struct_member_die): Use them.
7908 (process_structure_scope): Don't handle variant parts.
7909 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7910 (struct discriminant_info): Remove.
7911 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7912 (struct main_type) <flag_discriminated_union>: Remove.
7913 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7914 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7915 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7916 Update.
7917 * valops.c (value_union_variant): Remove.
7918 * value.h (value_union_variant): Don't declare.
7919
b249d2c2
TT
79202020-04-24 Tom Tromey <tromey@adacore.com>
7921
7922 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7923 (ada_value_primitive_packed_val): Update.
7924 * ada-valprint.c (ada_value_print_1): Update.
7925 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7926 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7927 just an address. Use evaluate_for_locexpr_baton.
7928 (dwarf2_evaluate_property): Update.
7929 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7930 array_view.
7931 * findvar.c (default_read_var_value): Update.
7932 * gdbtypes.c (compute_variant_fields_inner)
7933 (resolve_dynamic_type_internal): Update.
7934 (resolve_dynamic_type): Change type of valaddr parameter.
7935 * gdbtypes.h (resolve_dynamic_type): Update.
7936 * valarith.c (value_subscripted_rvalue): Update.
7937 * value.c (value_from_contents_and_address): Update.
7938
61122aa9
TT
79392020-04-24 Tom Tromey <tromey@adacore.com>
7940
7941 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7942 "push_initial_value" parameter.
7943 (dwarf2_evaluate_property): Likewise.
7944 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7945
ef83a141
TT
79462020-04-24 Tom Tromey <tromey@adacore.com>
7947
7948 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7949 (variant::matches, compute_variant_fields_recurse)
7950 (compute_variant_fields_inner, compute_variant_fields): New
7951 functions.
7952 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7953 Use resolved_type after type is made.
7954 (operator==): Add new cases.
7955 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7956 (struct discriminant_range, struct variant, struct variant_part):
7957 New.
7958 (union dynamic_prop_data) <variant_parts, original_type>: New
7959 members.
7960 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7961 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7962 constants.
7963 * value.c (unpack_bits_as_long): Now public.
7964 * value.h (unpack_bits_as_long): Declare.
7965
675127ec
TT
79662020-04-24 Tom Tromey <tromey@adacore.com>
7967
7968 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7969 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7970
9852ceef
HD
79712020-04-24 Hannes Domani <ssbssa@yahoo.de>
7972
7973 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7974
7632c6ce
KR
79752020-04-24 Kamil Rytarowski <n54@gmx.com>
7976
7977 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7978 (remove_fork_catchpoint, post_startup_inferior)
7979 (post_attach): Move...
7980 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7981 (remove_fork_catchpoint, post_startup_inferior)
7982 (post_attach): ...here.
7983 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7984 (remove_fork_catchpoint, post_startup_inferior)
7985 (post_attach): Move...
7986 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7987 (remove_fork_catchpoint, post_startup_inferior)
7988 (post_attach): ...here.
7989
7be2bb4f
TT
79902020-04-24 Tom Tromey <tromey@adacore.com>
7991
7992 * nat/windows-nat.h (struct windows_thread_info)
7993 <pc_adjusted>: New member.
7994 * windows-nat.c (windows_fetch_one_register): Check
7995 pc_adjusted.
7996 (windows_nat_target::get_windows_debug_event)
7997 (windows_nat_target::wait): Set pc_adjusted.
7998
f80cb3b4
TV
79992020-04-24 Tom de Vries <tdevries@suse.de>
8000
8001 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8002 Run gdb-add-index inside temp dir.
8003
29514b87
TT
80042020-04-23 Tom Tromey <tromey@adacore.com>
8005
8006 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8007 in loop.
8008
5939967b
LM
80092020-04-23 Luis Machado <luis.machado@linaro.org>
8010
8011 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8012 get_frame_register instead of gdbarch_unwind_pc.
8013
70bc38f5
TV
80142020-04-23 Tom de Vries <tdevries@suse.de>
8015
8016 * symtab.c (lookup_global_symbol): Prefer def over decl.
8017
de82891c
TV
80182020-04-23 Tom de Vries <tdevries@suse.de>
8019
8020 PR symtab/25807
8021 * block.c (best_symbol, better_symbol): Promote to external.
8022 * block.h (best_symbol, better_symbol): Declare.
8023 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8024 decl.
8025
ecc6c606
TT
80262020-04-23 Tom Tromey <tromey@adacore.com>
8027
8028 PR ada/25837:
8029 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8030 "const char *", not a "const std::string &".
8031 <name_and_matcher::operator==>: Update.
8032 * unittests/lookup_name_info-selftests.c: Change type of
8033 "result".
8034
740480b8
TT
80352020-04-23 Tom Tromey <tom@tromey.com>
8036
8037 * inferior.h (iterate_over_inferiors): Don't declare.
8038 * inferior.c (iterate_over_inferiors): Remove.
8039 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8040 Remove.
8041 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8042 use iterate_over_inferiors.
8043 (darwin_resume_inferior_it)
8044 (struct resume_inferior_threads_param)
8045 (darwin_resume_inferior_threads_it): Remove.
8046 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8047
ae3ab1f0
TV
80482020-04-23 Tom de Vries <tdevries@suse.de>
8049
8050 * blockframe.c (find_pc_partial_function): Use
8051 find_pc_sect_compunit_symtab rather than
8052 objfile->sf->qf->find_pc_sect_compunit_symtab.
8053
317d2668
TV
80542020-04-22 Tom de Vries <tdevries@suse.de>
8055
8056 PR symtab/25764
8057 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8058 in psymtabs.
8059
eea9e357
TV
80602020-04-22 Tom de Vries <tdevries@suse.de>
8061
8062 PR symtab/25801
8063 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8064 symtabs.
8065
3d5afab3
TV
80662020-04-22 Tom de Vries <tdevries@suse.de>
8067
8068 PR symtab/25700
8069 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8070 CU if already created.
8071
d43b7a2d
TBA
80722020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8073
8074 * infrun.c (displaced_step_fixup): Switch to the event_thread
8075 before calling displaced_step_restore, not after.
8076
d89edf9b
MM
80772020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8078
8079 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8080 its inferior is not recorded by us.
8081 (record_btrace_target_open): Replace call to
8082 all_non_exited_threads () with call to current_inferior
8083 ()->non_exited_threads ().
8084 (record_btrace_target::stop_recording): Likewise.
8085 (record_btrace_target::close): Likewise.
8086 (record_btrace_target::wait): Likewise.
8087 (record_btrace_target::record_stop_replaying): Likewise.
8088
5897fd49
MM
80892020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8090
8091 * btrace.c (btrace_enable): Throw an error on double enables and
8092 when enabling recording fails.
8093 (btrace_disable): Throw an error if the thread is not recorded.
8094
1a476b6d
MM
80952020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8096
8097 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8098 request if we do not have a thread_info.
8099
4778a5f8
TV
81002020-04-21 Tom de Vries <tdevries@suse.de>
8101
8102 PR gdb/25471
8103 * thread.c
8104 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8105 exception in get_frame_id.
8106
0fa7617d
TT
81072020-04-20 Tom Tromey <tromey@adacore.com>
8108
8109 * python/python.c (struct gdbpy_event): Mark move constructor as
8110 noexcept.
8111 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8112 constructor as noexcept.
8113 * completer.h (struct completion_result): Mark move constructor as
8114 noexcept.
8115 * completer.c (completion_result::completion_result): Use
8116 initialization style. Don't call reset_match_list.
8117
ad23bda0
MS
81182020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8119
8120 * MAINTAINERS (Write After Approval): Add myself.
8121
45e1f031
TT
81222020-04-18 Tom Tromey <tom@tromey.com>
8123
8124 * windows-tdep.c (init_w32_command_list)
8125 (w32_prefix_command_valid): Restore.
8126 (_initialize_windows_tdep): Call init_w32_command_list.
8127
08feed99
TT
81282020-04-18 Tom Tromey <tom@tromey.com>
8129
8130 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8131 * value.c (value_fn_field): Update.
8132 * valops.c (find_function_in_inferior)
8133 (value_allocate_space_in_inferior): Update.
8134 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8135 Update.
8136 * tui/tui-source.c (tui_source_window::set_contents): Update.
8137 * symtab.c (lookup_global_or_static_symbol)
8138 (find_function_start_sal_1, skip_prologue_sal)
8139 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8140 * symmisc.c (dump_msymbols, dump_symtab_1)
8141 (maintenance_print_one_line_table): Update.
8142 * symfile.c (init_entry_point_info, section_is_mapped)
8143 (list_overlays_command, simple_read_overlay_table)
8144 (simple_overlay_update_1): Update.
8145 * stap-probe.c (handle_stap_probe): Update.
8146 * stabsread.c (dbx_init_float_type, define_symbol)
8147 (read_one_struct_field, read_enum_type, read_range_type): Update.
8148 * source.c (info_line_command): Update.
8149 * python/python.c (gdbpy_source_objfile_script)
8150 (gdbpy_execute_objfile_script): Update.
8151 * python/py-type.c (save_objfile_types): Update.
8152 * python/py-objfile.c (py_free_objfile): Update.
8153 * python/py-inferior.c (python_new_objfile): Update.
8154 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8155 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8156 (maintenance_check_psymtabs): Update.
8157 * printcmd.c (info_address_command): Update.
8158 * objfiles.h (struct objfile) <arch>: New method, from
8159 get_objfile_arch.
8160 (get_objfile_arch): Don't declare.
8161 * objfiles.c (get_objfile_arch): Remove.
8162 (filter_overlapping_sections): Update.
8163 * minsyms.c (msymbol_is_function): Update.
8164 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8165 (output_nondebug_symbol): Update.
8166 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8167 (mdebug_expand_psymtab): Update.
8168 * machoread.c (macho_add_oso_symfile): Update.
8169 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8170 Update.
8171 * linux-fork.c (checkpoint_command): Update.
8172 * linespec.c (convert_linespec_to_sals): Update.
8173 * jit.c (finalize_symtab): Update.
8174 * infrun.c (insert_exception_resume_from_probe): Update.
8175 * ia64-tdep.c (ia64_find_unwind_table): Update.
8176 * hppa-tdep.c (internalize_unwinds): Update.
8177 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8178 Update.
8179 * gcore.c (call_target_sbrk): Update.
8180 * elfread.c (record_minimal_symbol, elf_symtab_read)
8181 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8182 (elf_gnu_ifunc_resolve_by_got): Update.
8183 * dwarf2/read.c (create_addrmap_from_index)
8184 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8185 (read_debug_names_from_section)
8186 (process_psymtab_comp_unit_reader, add_partial_symbol)
8187 (add_partial_subprogram, process_full_comp_unit)
8188 (read_file_scope, read_func_scope, read_lexical_block_scope)
8189 (read_call_site_scope, dwarf2_ranges_read)
8190 (dwarf2_record_block_ranges, dwarf2_add_field)
8191 (mark_common_block_symbol_computed, read_tag_pointer_type)
8192 (read_tag_string_type, dwarf2_init_float_type)
8193 (dwarf2_init_complex_target_type, read_base_type)
8194 (partial_die_info::read, partial_die_info::read)
8195 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8196 (dwarf2_fetch_die_loc_sect_off): Update.
8197 * dwarf2/loc.c (dwarf2_find_location_expression)
8198 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8199 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8200 (dwarf2_loc_desc_get_symbol_read_needs)
8201 (locexpr_describe_location_piece, locexpr_describe_location_1)
8202 (loclist_describe_location): Update.
8203 * dwarf2/index-write.c (write_debug_names): Update.
8204 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8205 * dtrace-probe.c (dtrace_process_dof): Update.
8206 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8207 (process_one_symbol): Update.
8208 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8209 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8210 (coff_read_enum_type): Update.
8211 * cli/cli-cmds.c (edit_command, list_command): Update.
8212 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8213 * breakpoint.c (create_overlay_event_breakpoint)
8214 (create_longjmp_master_breakpoint)
8215 (create_std_terminate_master_breakpoint)
8216 (create_exception_master_breakpoint, get_sal_arch): Update.
8217 * block.c (block_gdbarch): Update.
8218 * annotate.c (annotate_source_line): Update.
8219
0743fc83
TT
82202020-04-17 Tom Tromey <tromey@adacore.com>
8221
8222 * auto-load.c (show_auto_load_cmd): Remove.
8223 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8224 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8225 (maintenance_print_arc_command): Remove.
8226 * tui/tui-win.c (tui_command): Remove.
8227 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8228 * tui/tui-layout.c (tui_layout_command): Remove.
8229 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8230 * python/python.c (user_set_python, user_show_python): Remove.
8231 (_initialize_python): Use add_basic_prefix_cmd,
8232 add_show_prefix_cmd.
8233 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8234 (install_gdb_commands): Use add_basic_prefix_cmd,
8235 add_show_prefix_cmd.
8236 (info_guile_command): Remove.
8237 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8238 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8239 add_show_prefix_cmd.
8240 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8241 Remove do_set and do_show parameters.
8242 * cli/cli-style.c (set_style, show_style): Remove.
8243 (_initialize_cli_style): Use add_basic_prefix_cmd,
8244 add_show_prefix_cmd.
8245 (cli_style_option::add_setshow_commands): Remove do_set and
8246 do_show parameters.
8247 (cli_style_option::add_setshow_commands): Use
8248 add_basic_prefix_cmd, add_show_prefix_cmd.
8249 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8250 (set_style_name): Remove.
8251 * cli/cli-dump.c (dump_command, append_command): Remove.
8252 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8253 (tekhex_dump_command, binary_dump_command)
8254 (binary_append_command): Remove.
8255 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8256 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8257 (init_w32_command_list): Remove; move into ...
8258 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8259 * valprint.c (set_print, show_print, set_print_raw)
8260 (show_print_raw): Remove.
8261 (_initialize_valprint): Use add_basic_prefix_cmd,
8262 add_show_prefix_cmd.
8263 * typeprint.c (set_print_type, show_print_type): Remove.
8264 (_initialize_typeprint): Use add_basic_prefix_cmd,
8265 add_show_prefix_cmd.
8266 * record.c (set_record_command, show_record_command): Remove.
8267 (_initialize_record): Use add_basic_prefix_cmd,
8268 add_show_prefix_cmd.
8269 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8270 add_show_prefix_cmd.
8271 (info_command, show_command, set_debug, show_debug): Remove.
8272 * top.h (set_history, show_history): Don't declare.
8273 * top.c (set_history, show_history): Remove.
8274 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8275 (unset_tdesc_cmd): Remove.
8276 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8277 add_show_prefix_cmd.
8278 * symtab.c (info_module_command): Remove.
8279 (_initialize_symtab): Use add_basic_prefix_cmd.
8280 * symfile.c (overlay_command): Remove.
8281 (_initialize_symfile): Use add_basic_prefix_cmd.
8282 * sparc64-tdep.c (info_adi_command): Remove.
8283 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8284 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8285 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8286 add_show_prefix_cmd.
8287 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8288 (_initialize_serial): Use add_basic_prefix_cmd,
8289 add_show_prefix_cmd.
8290 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8291 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8292 add_show_prefix_cmd.
8293 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8294 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8295 add_show_prefix_cmd.
8296 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8297 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8298 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8299 add_show_prefix_cmd.
8300 * remote.c (remote_command, set_remote_cmd): Remove.
8301 (_initialize_remote): Use add_basic_prefix_cmd.
8302 * record-full.c (set_record_full_command)
8303 (show_record_full_command): Remove.
8304 (_initialize_record_full): Use add_basic_prefix_cmd,
8305 add_show_prefix_cmd.
8306 * record-btrace.c (cmd_set_record_btrace)
8307 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8308 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8309 (cmd_show_record_btrace_pt): Remove.
8310 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8311 add_show_prefix_cmd.
8312 * ravenscar-thread.c (set_ravenscar_command)
8313 (show_ravenscar_command): Remove.
8314 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8315 add_show_prefix_cmd.
8316 * mips-tdep.c (show_mips_command, set_mips_command)
8317 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8318 add_show_prefix_cmd.
8319 * maint.c (maintenance_command, maintenance_info_command)
8320 (maintenance_check_command, maintenance_print_command)
8321 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8322 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8323 add_show_prefix_cmd.
8324 (show_per_command_cmd): Remove.
8325 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8326 Remove.
8327 (maintenance_show_test_settings_cmd): Remove.
8328 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8329 add_show_prefix_cmd.
8330 * maint-test-options.c (maintenance_test_options_command):
8331 Remove.
8332 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8333 * macrocmd.c (macro_command): Remove
8334 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8335 * language.c (set_check, show_check): Remove.
8336 (_initialize_language): Use add_basic_prefix_cmd,
8337 add_show_prefix_cmd.
8338 * infcmd.c (unset_command): Remove.
8339 (_initialize_infcmd): Use add_basic_prefix_cmd.
8340 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8341 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8342 add_show_prefix_cmd.
8343 * go32-nat.c (go32_info_dos_command): Remove.
8344 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8345 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8346 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8347 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8348 (_initialize_frame): Use add_basic_prefix_cmd,
8349 add_show_prefix_cmd.
8350 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8351 (_initialize_dcache): Use add_basic_prefix_cmd,
8352 add_show_prefix_cmd.
8353 * cp-support.c (maint_cplus_command): Remove.
8354 (_initialize_cp_support): Use add_basic_prefix_cmd.
8355 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8356 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8357 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8358 add_basic_prefix_cmd, add_show_prefix_cmd.
8359 * breakpoint.c (save_command): Remove.
8360 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8361 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8362 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8363 add_show_prefix_cmd.
8364 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8365 (set_ada_command, show_ada_command): Remove.
8366 (_initialize_ada_language): Use add_basic_prefix_cmd,
8367 add_show_prefix_cmd.
8368 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8369
3557f442
KR
83702020-04-16 Kamil Rytarowski <n54@gmx.com>
8371
8372 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8373 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8374
16197208
SM
83752020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8376
8377 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8378 warning messages.
8379
00ac85d3
SM
83802020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8381
8382 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8383 import table is not at beginning of .idata section.
8384
381ce63f
PA
83852020-04-16 Pedro Alves <palves@redhat.com>
8386
8387 * inferior.c (delete_inferior): Use delete operator directly
8388 instead of delete_program_space.
8389 * progspace.c (add_program_space): New, factored out from
8390 program_space::program_space.
8391 (remove_program_space): New, factored out from
8392 delete_program_space.
8393 (program_space::program_space): Remove intro comment. Rewrite.
8394 (program_space::~program_space): Remove intro comment. Call
8395 remove_program_space.
8396 (delete_program_space): Delete.
8397 * progspace.h (program_space::program_space): Make explicit. Move
8398 intro comment here, adjusted.
8399 (program_space::~program_space): Move intro comment here,
8400 adjusted.
8401 (delete_program_space): Remove.
8402
a010605f
TT
84032020-04-16 Tom Tromey <tromey@adacore.com>
8404
8405 * windows-nat.c (windows_nat::handle_access_violation): New
8406 function.
8407 * nat/windows-nat.h (handle_access_violation): Declare.
8408 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8409 windows-nat.c. Call handle_access_violation.
8410
efba5c23
TV
84112020-04-16 Tom de Vries <tdevries@suse.de>
8412
8413 PR symtab/25791
8414 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8415 CUs without psymtab.
8416
97ed802d
KB
84172020-04-16 Kevin Buettner <kevinb@redhat.com>
8418
8419 * python/python.c (do_start_initialization): Don't call
8420 PyEval_InitThreads for Python 3.9 and beyond.
8421
c7d64809
KR
84222020-04-15 Kamil Rytarowski <n54@gmx.com>
8423
8424 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8425 thread functions.
8426 (obsd_nat_target::wait): Likewise.
8427
ce127a96
TT
84282020-04-15 Tom Tromey <tromey@adacore.com>
8429
8430 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8431 (DEBUG_EXCEPT): Use debug_printf.
8432
99f1bc6a
AB
84332020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8434
8435 * completer.c (class completion_tracker::completion_hash_entry)
8436 <hash_name>: New member function.
8437 (completion_tracker::discard_completions): New callback to hash a
8438 completion_hash_entry, pass this to htab_create_alloc.
8439
a0e9b532
JT
84402016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8441
8442 * windows-nat.c (windows_make_so): Warn rather than stopping with
8443 an error if realpath() fails.
8444
06ca5dd4
KR
84452020-04-14 Kamil Rytarowski <n54@gmx.com>
8446
8447 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8448 (nbsd_nat_target::info_proc): Add do_status.
8449
194d088f
TV
84502020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8451 Tom de Vries <tdevries@suse.de>
8452
8453 PR symtab/25718
8454 * psympriv.h (struct partial_symtab::read_symtab)
8455 (struct partial_symtab::expand_psymtab)
8456 (struct partial_symtab::read_dependencies): Update comments.
8457 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8458 read_symtab for includer.
8459 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8460 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8461 (struct dwarf2_include_psymtab::m_readin): Remove.
8462 (struct dwarf2_include_psymtab::includer): New member function.
8463 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8464
c1a66c06
TV
84652020-04-14 Tom de Vries <tdevries@suse.de>
8466
8467 PR symtab/25720
8468 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8469 with NULL symbol_matcher and lookup_name.
8470 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8471 and lookup_name.
8472 * dwarf2/read.c (dw2_expand_symtabs_matching)
8473 (dw2_debug_names_expand_symtabs_matching): Same.
8474 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8475 Make lookup_name a pointer. Update comment.
8476 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8477 lookup_name being a pointer.
8478 * symfile.c (expand_symtabs_matching): Same.
8479 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8480 * linespec.c (iterate_over_all_matching_symtabs): Same.
8481
400b5eca
TT
84822020-04-13 Tom Tromey <tom@tromey.com>
8483
8484 * run-on-main-thread.c: Update include.
8485 * unittests/main-thread-selftests.c: Update include.
8486 * tui/tui-win.c: Update include.
8487 * tui/tui-io.c: Update include.
8488 * tui/tui-interp.c: Update include.
8489 * tui/tui-hooks.c: Update include.
8490 * top.h: Update include.
8491 * top.c: Update include.
8492 * ser-base.c: Update include.
8493 * remote.c: Update include.
8494 * remote-notif.c: Update include.
8495 * remote-fileio.c: Update include.
8496 * record-full.c: Update include.
8497 * record-btrace.c: Update include.
8498 * python/python.c: Update include.
8499 * posix-hdep.c: Update include.
8500 * mingw-hdep.c: Update include.
8501 * mi/mi-main.c: Update include.
8502 * mi/mi-interp.c: Update include.
8503 * main.c: Update include.
8504 * linux-nat.c: Update include.
8505 * interps.c: Update include.
8506 * infrun.c: Update include.
8507 * inf-loop.c: Update include.
8508 * event-top.c: Update include.
8509 * event-loop.c: Move to ../gdbsupport/.
8510 * event-loop.h: Move to ../gdbsupport/.
8511 * async-event.h: Update include.
8512 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8513
93b54c8e
TT
85142020-04-13 Tom Tromey <tom@tromey.com>
8515
8516 * tui/tui-win.c: Include async-event.h.
8517 * remote.c: Include async-event.h.
8518 * remote-notif.c: Include async-event.h.
8519 * record-full.c: Include async-event.h.
8520 * record-btrace.c: Include async-event.h.
8521 * infrun.c: Include async-event.h.
8522 * event-top.c: Include async-event.h.
8523 * event-loop.h: Move some declarations to async-event.h.
8524 * event-loop.c: Don't include ser-event.h or top.h. Move some
8525 code to async-event.c.
8526 * async-event.h: New file.
8527 * async-event.c: New file.
8528 * Makefile.in (COMMON_SFILES): Add async-event.c.
8529 (HFILES_NO_SRCDIR): Add async-event.h.
8530
c1cd3163
TT
85312020-04-13 Tom Tromey <tom@tromey.com>
8532
8533 * utils.c (flush_streams): New function.
8534 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8535
29f2bf4f
TT
85362020-04-13 Tom Tromey <tom@tromey.com>
8537
8538 * event-loop.c (handle_file_event): Use warning, not
8539 printf_unfiltered.
8540
98029d02
TT
85412020-04-13 Tom Tromey <tom@tromey.com>
8542
8543 * event-loop.c: Include <chrono>.
8544
06cc9596
TT
85452020-04-13 Tom Tromey <tom@tromey.com>
8546
8547 * gdb_select.h: Move to ../gdbsupport/.
8548 * event-loop.c: Update include path.
8549 * top.c: Update include path.
8550 * ser-base.c: Update include path.
8551 * ui-file.c: Update include path.
8552 * ser-tcp.c: Update include path.
8553 * guile/scm-ports.c: Update include path.
8554 * posix-hdep.c: Update include path.
8555 * ser-unix.c: Update include path.
8556 * gdb_usleep.c: Update include path.
8557 * mingw-hdep.c: Update include path.
8558 * inflow.c: Update include path.
8559 * infrun.c: Update include path.
8560 * event-top.c: Update include path.
8561
8ae8e197
TT
85622020-04-13 Tom Tromey <tom@tromey.com>
8563
8564 * configure: Rebuild.
8565 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8566
58cf28e8
TT
85672020-04-13 Tom Tromey <tom@tromey.com>
8568
8569 * event-loop.h (start_event_loop): Don't declare.
8570 * event-loop.c (start_event_loop): Move...
8571 * main.c (start_event_loop): ...here. Now static.
8572
b7f999ae
SDJ
85732020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8574
8575 * MAINTAINERS: Update my email address.
8576
1085dfd4
KR
85772020-04-12 Kamil Rytarowski <n54@gmx.com>
8578
8579 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8580 IP_ALL.
8581
49d1d1f5
KR
85822020-04-12 Kamil Rytarowski <n54@gmx.com>
8583
8584 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8585 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8586
b4848d2a
KR
85872020-04-12 Kamil Rytarowski <n54@gmx.com>
8588
8589 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8590 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8591
51c133d5
KR
85922020-04-12 Kamil Rytarowski <n54@gmx.com>
8593
8594 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8595
54b8cbd0
KR
85962020-04-11 Kamil Rytarowski <n54@gmx.com>
8597
8598 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8599 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8600 (nbsd_nat_target::info_proc): New functions.
8601 * nbsd-nat.c (kinfo_get_vmmap): New function.
8602 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8603 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8604 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8605 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8606 functions.
8607 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8608 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8609 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8610 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8611 (KINFO_VME_FLAG_GROWS_DOWN): New.
8612
cf83625d
AS
86132020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8614
8615 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8616 bit shift.
8617
0c4311ab
TT
86182020-04-10 Tom Tromey <tromey@adacore.com>
8619
8620 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8621
3e65b3e9
TT
86222020-04-10 Tom Tromey <tromey@adacore.com>
8623
8624 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8625 separate debug files.
8626
13302e95
HD
86272020-04-10 Hannes Domani <ssbssa@yahoo.de>
8628
8629 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8630 Move to...
8631 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8632 ... here.
8633 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8634 Check for STATUS_WX86_BREAKPOINT.
8635 (windows_nat_target::wait): Same.
8636
bdfc1e8a
TV
86372020-04-10 Tom de Vries <tdevries@suse.de>
8638
8639 PR cli/25808
8640 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8641
f4460aec
SM
86422020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8643
8644 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8645 (Write After Approval): Remove Tom de Vries.
8646
a25198bb
BE
86472020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8648
8649 revert partially:
8650 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8651
aac66a4c
SM
8652 * buildsym.c (record_line): Fix undefined behavior and preserve
8653 lines at eof.
a25198bb 8654
206c98a6
KR
86552020-04-09 Kamil Rytarowski <n54@gmx.com>
8656
8657 * auxv.h (svr4_auxv_parse): New.
8658 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8659 and generic_auxv_parse.
8660 (svr4_auxv_parse): Add.
8661 * obsd-tdep.c: Include "auxv.h".
8662 (obsd_auxv_parse): Remove.
8663 (obsd_init_abi): Remove comment.
8664 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8665 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8666 * nbsd-tdep.c: Include "auxv.h".
8667 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8668
71fbdbaf
TT
86692020-04-08 Tom Tromey <tromey@adacore.com>
8670
8671 * nat/windows-nat.h (last_wait_event): Don't declare.
8672 (wait_for_debug_event): Update comment.
8673 * nat/windows-nat.c (last_wait_event): Now static.
8674
2c1d95e8
TT
86752020-04-08 Tom Tromey <tromey@adacore.com>
8676
8677 * windows-nat.c (wait_for_debug_event): Move to
8678 nat/windows-nat.c.
8679 * nat/windows-nat.h (wait_for_debug_event): Declare.
8680 * nat/windows-nat.c (wait_for_debug_event): Move from
8681 windows-nat.c. No longer static.
8682
d2977bc4
TT
86832020-04-08 Tom Tromey <tromey@adacore.com>
8684
8685 * windows-nat.c (get_windows_debug_event): Use
8686 fetch_pending_stop.
8687 * nat/windows-nat.h (fetch_pending_stop): Declare.
8688 * nat/windows-nat.c (fetch_pending_stop): New function.
8689
e758e19c
TT
86902020-04-08 Tom Tromey <tromey@adacore.com>
8691
8692 * windows-nat.c (windows_continue): Use matching_pending_stop and
8693 continue_last_debug_event.
8694 * nat/windows-nat.h (matching_pending_stop)
8695 (continue_last_debug_event): Declare.
8696 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8697 (matching_pending_stop, continue_last_debug_event): New
8698 functions.
8699
8d30e395
TT
87002020-04-08 Tom Tromey <tromey@adacore.com>
8701
8702 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8703 (handle_exception_result): Move to nat/windows-nat.h.
8704 (DEBUG_EXCEPTION_SIMPLE): Remove.
8705 (windows_nat::handle_ms_vc_exception): New function.
8706 (handle_exception): Move to nat/windows-nat.c.
8707 (get_windows_debug_event): Update.
8708 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8709 nat/windows-nat.c.
8710 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8711 (handle_exception_result): Move from windows-nat.c.
8712 (handle_exception): Declare.
8713 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8714 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8715 windows-nat.c.
8716
29de418d
TT
87172020-04-08 Tom Tromey <tromey@adacore.com>
8718
8719 * windows-nat.c (exception_count, event_count): Remove.
8720 (handle_exception, get_windows_debug_event)
8721 (do_initial_windows_stuff): Update.
8722
a816ba18
TT
87232020-04-08 Tom Tromey <tromey@adacore.com>
8724
8725 * windows-nat.c (windows_nat::handle_load_dll)
8726 (windows_nat::handle_unload_dll): Rename. No longer static.
8727 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8728 Declare.
8729
a00caa12
TT
87302020-04-08 Tom Tromey <tromey@adacore.com>
8731
8732 * complaints.h (stop_whining): Declare at top-level.
8733 (complaint): Don't declare stop_whining.
8734
d41b524f
TT
87352020-04-08 Tom Tromey <tromey@adacore.com>
8736
8737 * windows-nat.c (windows_nat::handle_output_debug_string):
8738 Rename. No longer static.
8739 * nat/windows-nat.h (handle_output_debug_string): Declare.
8740
3c76026d
TT
87412020-04-08 Tom Tromey <tromey@adacore.com>
8742
8743 * windows-nat.c (current_process_handle, current_process_id)
8744 (main_thread_id, last_sig, current_event, last_wait_event)
8745 (current_windows_thread, desired_stop_thread_id, pending_stops)
8746 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8747 (display_selectors, fake_create_process)
8748 (get_windows_debug_event): Update.
8749 * nat/windows-nat.h (current_process_handle, current_process_id)
8750 (main_thread_id, last_sig, current_event, last_wait_event)
8751 (current_windows_thread, desired_stop_thread_id, pending_stops)
8752 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8753 * nat/windows-nat.c (current_process_handle, current_process_id)
8754 (main_thread_id, last_sig, current_event, last_wait_event)
8755 (current_windows_thread, desired_stop_thread_id, pending_stops)
8756 (siginfo_er): New globals. Move from windows-nat.c.
8757
9d8679cc
TT
87582020-04-08 Tom Tromey <tromey@adacore.com>
8759
8760 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8761 (handle_load_dll): Update.
8762 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8763
28688adf
TT
87642020-04-08 Tom Tromey <tromey@adacore.com>
8765
8766 * windows-nat.c (enum thread_disposition_type): Move to
8767 nat/windows-nat.h.
8768 (windows_nat::thread_rec): Rename from thread_rec. No longer
8769 static.
8770 (windows_add_thread, windows_nat_target::fetch_registers)
8771 (windows_nat_target::store_registers, handle_exception)
8772 (windows_nat_target::resume, get_windows_debug_event)
8773 (windows_nat_target::get_tib_address)
8774 (windows_nat_target::thread_name)
8775 (windows_nat_target::thread_alive): Update.
8776 * nat/windows-nat.h (enum thread_disposition_type): Move from
8777 windows-nat.c.
8778 (thread_rec): Declare.
8779
4834dad0
TT
87802020-04-08 Tom Tromey <tromey@adacore.com>
8781
8782 * windows-nat.c: Add "using namespace".
8783 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8784 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8785
65bafd5b
TT
87862020-04-08 Tom Tromey <tromey@adacore.com>
8787
8788 * nat/windows-nat.h (struct windows_thread_info): Declare
8789 destructor.
8790 * nat/windows-nat.c (~windows_thread_info): New.
8791
0a4afda3
TT
87922020-04-08 Tom Tromey <tromey@adacore.com>
8793
8794 PR gdb/22992
8795 * windows-nat.c (current_event): Update comment.
8796 (last_wait_event, desired_stop_thread_id): New globals.
8797 (struct pending_stop): New.
8798 (pending_stops): New global.
8799 (windows_nat_target) <stopped_by_sw_breakpoint>
8800 <supports_stopped_by_sw_breakpoint>: New methods.
8801 (windows_fetch_one_register): Add assertions. Adjust PC.
8802 (windows_continue): Handle pending stops. Suspend other threads
8803 when stepping. Use last_wait_event
8804 (wait_for_debug_event): New function.
8805 (get_windows_debug_event): Use wait_for_debug_event. Handle
8806 pending stops. Queue spurious stops.
8807 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8808 (windows_nat_target::kill): Use wait_for_debug_event.
8809 * nat/windows-nat.h (struct windows_thread_info)
8810 <stopped_at_software_breakpoint>: New field.
8811 * nat/windows-nat.c (windows_thread_info::resume): Clear
8812 stopped_at_software_breakpoint.
8813
8e61ebec
TT
88142020-04-08 Tom Tromey <tromey@adacore.com>
8815
8816 * windows-nat.c (enum thread_disposition_type): New.
8817 (thread_rec): Replace "get_context" parameter with "disposition";
8818 change type.
8819 (windows_add_thread, windows_nat_target::fetch_registers)
8820 (windows_nat_target::store_registers, handle_exception)
8821 (windows_nat_target::resume, get_windows_debug_event)
8822 (windows_nat_target::get_tib_address)
8823 (windows_nat_target::thread_name)
8824 (windows_nat_target::thread_alive): Update.
8825
98a03287
TT
88262020-04-08 Tom Tromey <tromey@adacore.com>
8827
8828 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8829 (windows_continue): Use windows_continue::resume.
8830 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8831 resume>: Declare new methods.
8832 * nat/windows-nat.c: New file.
8833 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8834
7c7411bc
TT
88352020-04-08 Tom Tromey <tromey@adacore.com>
8836
8837 * windows-nat.c (windows_add_thread, windows_delete_thread)
8838 (windows_nat_target::fetch_registers)
8839 (windows_nat_target::store_registers, fake_create_process)
8840 (windows_nat_target::resume, windows_nat_target::resume)
8841 (get_windows_debug_event, windows_nat_target::wait)
8842 (windows_nat_target::pid_to_str)
8843 (windows_nat_target::get_tib_address)
8844 (windows_nat_target::get_ada_task_ptid)
8845 (windows_nat_target::thread_name)
8846 (windows_nat_target::thread_alive): Use lwp, not tid.
8847
2950fdf7
TT
88482020-04-08 Tom Tromey <tromey@adacore.com>
8849
8850 * windows-nat.c (handle_exception)
8851 (windows_nat_target::thread_name): Update.
8852 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8853 <name>: Now unique_xmalloc_ptr.
8854
62fe396b
TT
88552020-04-08 Tom Tromey <tromey@adacore.com>
8856
8857 * windows-nat.c (thread_rec)
8858 (windows_nat_target::fetch_registers): Update.
8859 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8860 Update comment.
8861 <debug_registers_changed, reload_context>: Now bool.
8862
e9534bd2
TT
88632020-04-08 Tom Tromey <tromey@adacore.com>
8864
8865 * windows-nat.c (windows_add_thread): Use new.
8866 (windows_init_thread_list, windows_delete_thread): Use delete.
8867 (get_windows_debug_event): Update.
8868 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8869 destructor, and initializers.
8870
ae1f8880
TT
88712020-04-08 Tom Tromey <tromey@adacore.com>
8872
8873 * windows-nat.c (struct windows_thread_info): Remove.
8874 * nat/windows-nat.h: New file.
8875
55a1e039
TT
88762020-04-08 Tom Tromey <tromey@adacore.com>
8877
8878 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8879 (thread_rec, windows_add_thread, windows_delete_thread)
8880 (windows_continue): Update.
8881
93366324
TT
88822020-04-08 Tom Tromey <tromey@adacore.com>
8883
8884 * windows-nat.c (struct windows_thread_info): Remove typedef.
8885 (thread_head): Remove.
8886 (thread_list): New global.
8887 (thread_rec, windows_add_thread, windows_init_thread_list)
8888 (windows_delete_thread, windows_continue): Update.
8889
0f2265e2
SM
88902020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8891
8892 * windows-tdep.h (windows_init_abi): Add comment.
8893 (cygwin_init_abi): New declaration.
8894 * windows-tdep.c: Split signal enumeration in two, one for
8895 Windows and one for Cygwin.
8896 (windows_gdb_signal_to_target): Only deal with signal of the
8897 Windows OS ABI.
8898 (cygwin_gdb_signal_to_target): New function.
8899 (windows_init_abi): Rename to windows_init_abi_common, don't set
8900 gdb_signal_to_target gdbarch method. Add new new function with
8901 this name.
8902 (cygwin_init_abi): New function.
8903 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8904 comment. Don't call windows_init_abi.
8905 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8906 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8907 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8908 i386_windows_init_abi_common, don't call windows_init_abi. Add
8909 a new function of this name.
8910 (i386_cygwin_init_abi): New function.
8911 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8912 OS ABI Cygwin.
8913
3810f182
SM
89142020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8915
8916 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8917 parameter.c.
8918 (dwarf2_read_gdb_index): Update.
8919
063f8e80
KR
89202020-04-07 Kamil Rytarowski <n54@gmx.com>
8921
8922 * nbsd-tdep.c: Include "objfiles.h".
8923 (nbsd_skip_solib_resolver): New.
8924 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8925
85a9510c 89262020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8927
8928 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8929 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8930 with DW_LLE_base_addressx are being emitted in DWARFv5.
8931 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8932 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8933 unsigned integer.
8934
9fc3eaae 89352020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8936
8937 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8938 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8939 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8940 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8941 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8942 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8943 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8944
8945
41144253 89462020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8947
8948 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8949 (read_loclist_index): New function definition.
8950 (lookup_loclist_base): New function definition.
8951 (read_loclist_header): New function definition.
8952 (dwarf2_cu): Add loclist_base and loclist_header field.
8953 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8954 (read_full_die_1): Read the value of DW_AT_loclists_base.
8955 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8956 (read_attribute_value): Handle DW_FORM_loclistx.
8957 (skip_one_die): Handle DW_FORM_loclistx.
8958 (loclist_header): New structure declaration.
8959 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8960
9f4e76a4
SM
89612020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8962
8963 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8964 constructor. Remove `addr` parameter from other constructor and
8965 add `per_cu` parameter.
8966 * dwarf2/read.c (create_partial_symtab): Update.
8967
25c11aca
TV
89682020-04-07 Tom de Vries <tdevries@suse.de>
8969
8970 PR symtab/25796
8971 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8972 (partial_die_info::fixup): Inherit has_const_value.
8973
5707e24b
TV
89742020-04-07 Tom de Vries <tdevries@suse.de>
8975
8976 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8977 symbols without address.
8978
05f00e22
KR
89792020-04-06 Kamil Rytarowski <n54@gmx.com>
8980
8981 * nbsd-nat.h (struct thread_info): Add forward declaration.
8982 (nbsd_nat_target::thread_alive): Add.
8983 (nbsd_nat_target::thread_name): Likewise.
8984 (nbsd_nat_target::update_thread_list): Likewise.
8985 (update_thread_list::post_attach): Likewise.
8986 (post_attach::pid_to_str): Likewise.
8987 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8988 (nbsd_thread_lister): Add.
8989 (nbsd_nat_target::thread_alive): Likewise.
8990 (nbsd_nat_target::thread_name): Likewise.
8991 (nbsd_add_threads): Likewise.
8992 (update_thread_list::post_attach): Likewise.
8993 (nbsd_nat_target::update_thread_list): Likewise.
8994 (post_attach::pid_to_str): Likewise.
8995
6ee448cc
TT
89962020-04-06 Tom Tromey <tromey@adacore.com>
8997
8998 * ada-valprint.c (print_variant_part): Extract the variant field.
8999 (print_field_values): Use the field as the outer value when
9000 recursing.
9001
dea34e8c
TT
90022020-04-06 Tom Tromey <tromey@adacore.com>
9003
9004 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9005 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9006 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9007 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9008 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9009
93689ce9
TT
90102020-04-06 Tom Tromey <tromey@adacore.com>
9011
9012 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9013 TYPE_CODE_ERROR.
9014
79743962
KR
90152020-04-06 Kamil Rytarowski <n54@gmx.com>
9016
9017 * nbsd-tdep.c: Include "gdbarch.h".
9018 Define enum with NetBSD signal numbers.
9019 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9020 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9021 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9022 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9023 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9024 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9025 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9026 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9027 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9028 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9029 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9030 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9031
9e7c9a03
HD
90322020-04-03 Hannes Domani <ssbssa@yahoo.de>
9033
9034 PR gdb/25325
9035 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9036
d9e49b61
TT
90372020-04-03 Tom Tromey <tromey@adacore.com>
9038
9039 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9040 Read constant block.
9041
e0fc5c3f
SM
90422020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9043
9044 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9045 (gdb_bfd_get_full_section_contents): New declaration.
9046 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9047 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9048 gdb_bfd_get_full_section_contents.
9049
e2ff18a0
SM
90502020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9051
9052 * exec.c (build_section_table): Replace internal_error with
9053 gdb_assert.
9054 (section_table_xfer_memory_partial): Likewise.
9055 * mdebugread.c (parse_partial_symbols): Likewise.
9056 * psymtab.c (lookup_partial_symbol): Likewise.
9057 * utils.c (wrap_here): Likewise.
9058
0830d301
TT
90592020-04-02 Tom Tromey <tromey@adacore.com>
9060
9061 * f-lang.c (build_fortran_types): Use arch_type to initialize
9062 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9063
e7da7f8f
TT
90642020-04-02 Tom Tromey <tromey@adacore.com>
9065
9066 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9067 of attributes.
9068
c90d28ac
AB
90692020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9070 Bernd Edlinger <bernd.edlinger@hotmail.de>
9071 Tom Tromey <tromey@adacore.com>
9072
9073 * buildsym.c (buildsym_compunit::record_line): Remove
9074 deduplication code.
9075
1aa98955
TV
90762020-04-02 Tom de Vries <tdevries@suse.de>
9077
9078 PR ada/24671
9079 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9080
d3214198
TV
90812020-04-02 Tom de Vries <tdevries@suse.de>
9082
9083 * dwarf2/read.c (dwarf2_gdb_index_functions,
9084 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9085 NULL.
9086 * psymtab.c (psym_lookup_global_symbol_language): New function.
9087 (psym_functions): Init psym_lookup_global_symbol_language with
9088 psym_lookup_global_symbol_language.
9089 * symfile-debug.c (debug_sym_quick_functions): Init
9090 lookup_global_symbol_language with NULL.
9091 * symfile.c (set_initial_language): Remove fixme comment.
9092 * symfile.h (struct quick_symbol_functions): Add
9093 lookup_global_symbol_language.
9094 * symtab.c (find_quick_global_symbol_language): New function.
9095 (find_main_name): Use find_quick_global_symbol_language.
9096
2836752f
SM
90972020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9098
9099 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9100
64dc2d4b
BE
91012020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9102
9103 * buildsym.c (record_line): Fix undefined behavior and preserve
9104 lines at eof.
9105
bbe3dc41
BE
91062020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9107
9108 * buildsym.c (record_line): Fix the resizing condition.
9109
6b4a335b
TT
91102020-04-01 Tom Tromey <tom@tromey.com>
9111
9112 * value.h (value_literal_complex): Add comment.
9113 * valops.c (value_literal_complex): Refer to value.h.
9114
3638a098
TT
91152020-04-01 Tom Tromey <tom@tromey.com>
9116
9117 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9118 (scalar_type): New rule, from typebase.
9119 (typebase): Use scalar_type. Recognize complex types.
9120 (field_name): Handle FLOAT_KEYWORD.
9121 (ident_tokens): Add _Complex and __complex__.
9122
c34e8714
TT
91232020-04-01 Tom Tromey <tom@tromey.com>
9124
9125 PR exp/25299:
9126 * valarith.c (promotion_type, complex_binop): New functions.
9127 (scalar_binop): Handle complex numbers. Use promotion_type.
9128 (value_pos, value_neg, value_complement): Handle complex numbers.
9129
fa649bb7
TT
91302020-04-01 Tom Tromey <tom@tromey.com>
9131
9132 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9133 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9134 (parse_number): Handle complex numbers.
9135
981c08ce
TT
91362020-04-01 Tom Tromey <tom@tromey.com>
9137
9138 * c-valprint.c (c_decorations): Change complex suffix to "i".
9139
4c99290d
TT
91402020-04-01 Tom Tromey <tom@tromey.com>
9141
9142 * valprint.c (generic_value_print_complex): Use accessors.
9143 * value.h (value_real_part, value_imaginary_part): Declare.
9144 * valops.c (value_real_part, value_imaginary_part): New
9145 functions.
9146 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9147
5b930b45
TT
91482020-04-01 Tom Tromey <tom@tromey.com>
9149
9150 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9151 (read_range_type): Update.
9152 * mdebugread.c (basic_type): Update.
9153 * go-lang.c (build_go_types): Use init_complex_type.
9154 * gdbtypes.h (struct main_type) <complex_type>: New member.
9155 (init_complex_type): Update.
9156 (arch_complex_type): Don't declare.
9157 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9158 Make name if none given. Use alloc_type_copy. Look for cached
9159 complex type.
9160 (arch_complex_type): Remove.
9161 (gdbtypes_post_init): Use init_complex_type.
9162 * f-lang.c (build_fortran_types): Use init_complex_type.
9163 * dwarf2/read.c (read_base_type): Update.
9164 * d-lang.c (build_d_types): Use init_complex_type.
9165 * ctfread.c (read_base_type): Update.
9166
53cccef1
TBA
91672020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9168
9169 * infrun.c (stop_all_threads): Update assertion, plus when
9170 stopping threads, take into account that we might be trying
9171 to stop an all-stop target.
9172 (stop_waiting): Call 'stop_all_threads' if there exists a
9173 non-stop target.
9174
a0714d30
TBA
91752020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9176
9177 * target.h (exists_non_stop_target): New function declaration.
9178 * target.c (exists_non_stop_target): New function.
9179
60e22c1e
HD
91802020-04-01 Hannes Domani <ssbssa@yahoo.de>
9181
9182 PR gdb/24789
9183 * eval.c (is_integral_or_integral_reference): New function.
9184 (evaluate_subexp_standard): Allow integer references in
9185 pointer arithmetic.
9186
e139a727
TBA
91872020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9188
9189 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9190 check for no ptid in the stop reply when the target is non-stop.
9191
e0802d59
TT
91922020-04-01 Tom Tromey <tromey@adacore.com>
9193
9194 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9195 "name" parameter to rvalue reference. Initialize m_name_holder.
9196 <lookup_name_info>: New overloads.
9197 <name>: Return gdb::string_view.
9198 <c_str>: New method.
9199 <make_ignore_params>: Update.
9200 <search_name_hash>: Update.
9201 <language_lookup_name>: Return const char *.
9202 <m_name>: Change type.
9203 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9204 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9205 (lookup_name_info::match_any): Update.
9206 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9207 Update.
9208 * minsyms.c (linkage_name_str): Update.
9209 * language.c (default_symbol_name_matcher): Update.
9210 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9211 Update.
9212 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9213 (ada_lookup_name_info::ada_lookup_name_info): Update.
9214 (literal_symbol_name_matcher): Update.
9215
8c072cb6
TT
92162020-04-01 Tom Tromey <tromey@adacore.com>
9217
9218 * psymtab.c (psymtab_search_name): Remove function.
9219 (psym_lookup_symbol): Create search name and lookup name here.
9220 (lookup_partial_symbol): Remove "name" parameter; add
9221 lookup_name.
9222 (psym_expand_symtabs_for_function): Update.
9223
6f29a534
TT
92242020-03-31 Joel Jones <joelkevinjones@gmail.com>
9225
9226 PR tui/25597:
9227 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9228
af62665e
TT
92292020-03-31 Tom Tromey <tromey@adacore.com>
9230
9231 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9232 memcpy.
9233
d1a89da5
NC
92342020-03-30 Nelson Chu <nelson.chu@sifive.com>
9235
9236 * features/riscv/32bit-csr.xml: Regenerated.
9237 * features/riscv/64bit-csr.xml: Regenerated.
9238
d8af9068
TT
92392020-03-30 Tom Tromey <tromey@adacore.com>
9240
9241 * ada-valprint.c (print_variant_part): Update.
9242 * ada-lang.h (ada_which_variant_applies): Update.
9243 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9244 outer_valaddr parameters; replace with "outer" value parameter.
9245 (to_fixed_variant_branch_type): Update.
9246
227c0bf4
PFC
92472020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9248
9249 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9250 <list>. Remove inclusion of observable.h.
9251 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9252 (struct arch_lwp_info): New struct.
9253 (class ppc_linux_dreg_interface): New class.
9254 (struct ppc_linux_process_info): New struct.
9255 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9256 <low_new_clone, low_forget_process, low_prepare_to_resume>
9257 <copy_thread_dreg_state, mark_thread_stale>
9258 <mark_debug_registers_changed, register_hw_breakpoint>
9259 <clear_hw_breakpoint, register_wp, clear_wp>
9260 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9261 <num_memory_accesses, get_trigger_type>
9262 <create_watchpoint_request, hwdebug_point_cmp>
9263 <init_arch_lwp_info, get_arch_lwp_info>
9264 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9265 methods.
9266 <struct ptid_hash>: New inner struct.
9267 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9268 members.
9269 (saved_dabr_value, hwdebug_info, max_slots_number)
9270 (struct hw_break_tuple, struct thread_points, ppc_threads)
9271 (have_ptrace_hwdebug_interface)
9272 (hwdebug_find_thread_points_by_tid)
9273 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9274 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9275 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9276 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9277 use m_dreg_interface.
9278 (hwdebug_point_cmp): Change to...
9279 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9280 reference arguments instead of pointers.
9281 (ppc_linux_nat_target::ranged_break_num_registers): Use
9282 m_dreg_interface.
9283 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9284 m_dreg_interface. Call register_hw_breakpoint.
9285 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9286 m_dreg_interface. Call clear_hw_breakpoint.
9287 (get_trigger_type): Change to...
9288 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9289 comment.
9290 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9291 use m_dreg_interface. Call register_hw_breakpoint.
9292 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9293 use m_dreg_interface. Call clear_hw_breakpoint.
9294 (can_use_watchpoint_cond_accel): Change to...
9295 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9296 method. Update comment, use m_dreg_interface and
9297 m_process_info.
9298 (calculate_dvc): Change to...
9299 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9300 m_dreg_interface.
9301 (num_memory_accesses): Change to...
9302 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9303 (check_condition): Change to...
9304 (ppc_linux_nat_target::check_condition): ...this method.
9305 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9306 comment, use m_dreg_interface.
9307 (create_watchpoint_request): Change to...
9308 (ppc_linux_nat_target::create_watchpoint_request): ...this
9309 method. Use m_dreg_interface.
9310 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9311 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9312 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9313 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9314 (ppc_linux_nat_target::low_forget_process)
9315 (ppc_linux_nat_target::low_new_fork)
9316 (ppc_linux_nat_target::low_new_clone)
9317 (ppc_linux_nat_target::low_delete_thread)
9318 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9319 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9320 only call mark_thread_stale.
9321 (ppc_linux_thread_exit): Remove.
9322 (ppc_linux_nat_target::stopped_data_address): Change to...
9323 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9324 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9325 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9326 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9327 comment. Call low_stopped_data_address.
9328 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9329 m_dreg_interface.
9330 (ppc_linux_nat_target::masked_watch_num_registers): Use
9331 m_dreg_interface.
9332 (ppc_linux_nat_target::copy_thread_dreg_state)
9333 (ppc_linux_nat_target::mark_thread_stale)
9334 (ppc_linux_nat_target::mark_debug_registers_changed)
9335 (ppc_linux_nat_target::register_hw_breakpoint)
9336 (ppc_linux_nat_target::clear_hw_breakpoint)
9337 (ppc_linux_nat_target::register_wp)
9338 (ppc_linux_nat_target::clear_wp)
9339 (ppc_linux_nat_target::init_arch_lwp_info)
9340 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9341 (_initialize_ppc_linux_nat): Remove observer callback.
9342
4db10d8f
PFC
93432020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9344
9345 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9346 (ppc_linux_nat_target::auxv_parse)
9347 (ppc_linux_nat_target::read_description)
9348 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9349 Move up.
9350
1310c1b0
PFC
93512020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9352
9353 * linux-nat.h (low_new_clone): New method.
9354 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9355
69b037c3
SM
93562020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9357
9358 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9359 (dbx_expand_psymtab): ... this.
9360 (start_psymtab): Update.
9361 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9362 (mdebug_expand_psymtab): ... this.
9363 (parse_partial_symbols): Update.
9364 (new_psymtab): Update.
9365 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9366 (xcoff_expand_psymtab): ... this.
9367 (xcoff_start_psymtab): Update.
9368
48993951
SM
93692020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9370
9371 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9372 <expand_dependencies>: ... this.
9373 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9374 (partial_symtab::expand_dependencies): ... this.
9375 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9376 Update.
9377 (dwarf2_psymtab::expand_psymtab): Update.
9378 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9379 * mdebugread.c (psymtab_to_symtab_1): Update.
9380 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9381
3ad83046
SM
93822020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9383
9384 * psympriv.h (discard_psymtab): Remove.
9385 * dbxread.c (dbx_end_psymtab): Update.
9386 * xcoffread.c (xcoff_end_psymtab): Update.
9387
4d1b9ab6
TT
93882020-03-28 Tom Tromey <tom@tromey.com>
9389
9390 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9391 comment.
9392
f1749218
TT
93932020-03-28 Tom Tromey <tom@tromey.com>
9394
9395 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9396
ebea7626
HD
93972020-03-27 Hannes Domani <ssbssa@yahoo.de>
9398
9399 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9400
a879b4d5
JB
94012020-03-26 John Baldwin <jhb@FreeBSD.org>
9402
9403 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9404
0826b30a
TT
94052020-03-26 Tom Tromey <tom@tromey.com>
9406
9407 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9408 (mark_common_block_symbol_computed, read_tag_string_type)
9409 (attr_to_dynamic_prop, read_subrange_type): Update.
9410 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9411 to be methods on struct attribute.
9412 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9413 (read_call_site_scope, partial_die_info::read)
9414 (partial_die_info::read, lookup_die_type, follow_die_ref):
9415 Update.
9416 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9417 from dwarf2_get_ref_die_offset.
9418 (attribute::constant_value): New method, from
9419 dwarf2_get_attr_constant_value.
9420 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9421 Declare method.
9422 <constant_value>: New method.
9423
2b2558bf
TT
94242020-03-26 Tom Tromey <tom@tromey.com>
9425
9426 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9427 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9428 (dwarf_type_encoding_name): Move to stringify.c.
9429 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9430 * dwarf2/stringify.c: New file.
9431 * dwarf2/stringify.h: New file.
9432
eeb64781
TT
94332020-03-26 Tom Tromey <tom@tromey.com>
9434
9435 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9436 Rewrite.
9437
a39fdb41
TT
94382020-03-26 Tom Tromey <tom@tromey.com>
9439
9440 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9441 methods.
9442 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9443 (lookup_ranges_base): Likewise.
9444 (read_cutu_die_from_dwo, read_full_die_1): Update.
9445
436c571c
TT
94462020-03-26 Tom Tromey <tom@tromey.com>
9447
9448 * dwarf2/read.c (read_import_statement, read_file_scope)
9449 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9450 (read_lexical_block_scope, read_call_site_scope)
9451 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9452 (handle_struct_member_die, process_structure_scope)
9453 (update_enumeration_type_from_children)
9454 (process_enumeration_scope, read_array_type, read_common_block)
9455 (read_namespace, read_module, read_subroutine_type): Update.
9456 (sibling_die): Remove.
9457
052c8bb8
TT
94582020-03-26 Tom Tromey <tom@tromey.com>
9459
9460 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9461 (build_type_psymtabs_reader, read_structure_type)
9462 (read_enumeration_type, read_full_die_1): Update.
9463 (dwarf2_attr_no_follow): Move to die.h.
9464 * dwarf2/die.h (struct die_info) <attr>: New method.
9465
2b24b6e4
TT
94662020-03-26 Tom Tromey <tom@tromey.com>
9467
9468 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9469 <base_address>: Now an optional.
9470 (dwarf2_find_base_address, dwarf2_rnglists_process)
9471 (dwarf2_ranges_process, fill_in_loclist_baton)
9472 (dwarf2_symbol_mark_computed): Update.
9473
c2d50fd0
TT
94742020-03-26 Tom Tromey <tom@tromey.com>
9475
9476 * dwarf2/read.c (struct die_info): Move to die.h.
9477 * dwarf2/die.h: New file.
9478
0df7ad3a
TT
94792020-03-26 Tom Tromey <tom@tromey.com>
9480
9481 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9482 * dwarf2/read.c
9483 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9484 Move to line-header.c.
9485 (read_checked_initial_length_and_offset, read_formatted_entries):
9486 Likewise.
9487 (dwarf_decode_line_header): Split into two.
9488 * dwarf2/line-header.c
9489 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9490 Move from read.c.
9491 (read_checked_initial_length_and_offset, read_formatted_entries):
9492 Likewise.
9493 (dwarf_decode_line_header): New function, split from read.c.
9494
86c0bb4c
TT
94952020-03-26 Tom Tromey <tom@tromey.com>
9496
9497 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9498 Declare method.
9499 * dwarf2/read.c (read_attribute_value): Update.
9500 (dwarf2_per_objfile::read_line_string): Rename from
9501 read_indirect_line_string.
9502 (read_formatted_entries): Update.
9503
2ef46c2f
TT
95042020-03-26 Tom Tromey <tom@tromey.com>
9505
9506 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9507 variable.
9508
4f9c1eda
TT
95092020-03-26 Tom Tromey <tom@tromey.com>
9510
9511 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9512 const.
9513 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9514 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9515 parameter const.
9516
5a0e026f
TT
95172020-03-26 Tom Tromey <tom@tromey.com>
9518
9519 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9520 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9521 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9522 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9523
8844c11b
TT
95242020-03-26 Tom Tromey <tom@tromey.com>
9525
9526 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9527 file_names_size, file_full_name, file_file_name>: Use const.
9528 <file_name_at, file_names>: Add const overload.
9529 * dwarf2/line-header.c (line_header::file_file_name)
9530 (line_header::file_full_name): Update.
9531
c90ec28a
TT
95322020-03-26 Tom Tromey <tom@tromey.com>
9533
9534 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9535 (macro_start_file, consume_improper_spaces)
9536 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9537 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9538 (dwarf_decode_macros): Move to macro.c.
9539 * dwarf2/macro.c: New file.
9540 * dwarf2/macro.h: New file.
9541 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9542
4f44ae6c
TT
95432020-03-26 Tom Tromey <tom@tromey.com>
9544
9545 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9546 method.
9547 * dwarf2/section.c: New method. From
9548 read_indirect_string_at_offset_from.
9549 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9550 (read_indirect_string_at_offset_from): Move to section.c.
9551 (read_indirect_string_at_offset): Rewrite.
9552 (read_indirect_line_string_at_offset): Remove.
9553 (read_indirect_string, read_indirect_line_string)
9554 (dwarf_decode_macro_bytes): Update.
9555
a0194fa8
TT
95562020-03-26 Tom Tromey <tom@tromey.com>
9557
9558 * dwarf2/section.h (struct dwarf2_section_info)
9559 <overload_complaint>: Declare.
9560 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9561 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9562 Rename from dwarf2_section_buffer_overflow_complaint.
9563 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9564 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9565
3d27bbdb
TT
95662020-03-26 Tom Tromey <tom@tromey.com>
9567
9568 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9569 Declare.
9570 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9571 Move from read.c.
9572 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9573 to section.c.
9574
9eac9650
TT
95752020-03-26 Tom Tromey <tom@tromey.com>
9576
9577 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9578
bf80d710
TT
95792020-03-26 Tom Tromey <tom@tromey.com>
9580
9581 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9582 "builder".
9583 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9584 parameter.
9585 (dwarf_decode_macros): Update.
9586
0314b390
TT
95872020-03-26 Tom Tromey <tom@tromey.com>
9588
9589 * dwarf2/read.c (read_attribute_value): Update.
9590 (read_indirect_string_from_dwz): Move to dwz.c; change into
9591 method.
9592 (dwarf_decode_macro_bytes): Update.
9593 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9594 * dwarf2/dwz.c: New file.
9595 * Makefile.in (COMMON_SFILES): Add dwz.c.
9596
9fda78b6
TT
95972020-03-26 Tom Tromey <tom@tromey.com>
9598
9599 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9600 * dwarf2/read.c: Add include.
9601 * dwarf2/index-write.c: Add include.
9602 * dwarf2/index-cache.c: Add include.
9603 * dwarf2/dwz.h: New file.
9604
33aa3c10
TT
96052020-03-25 Tom Tromey <tom@tromey.com>
9606
9607 * compile/compile-object-load.c (get_out_value_type): Mention
9608 correct symbol name in error message.
9609
d503b685
HD
96102020-03-25 Hannes Domani <ssbssa@yahoo.de>
9611
9612 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9613
7b1eff95
TV
96142020-03-25 Tom de Vries <tdevries@suse.de>
9615
9616 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9617 * symmisc.c (dump_symtab_1): Print user and includes fields.
9618 (maintenance_info_symtabs): Same.
9619
dd895392
AB
96202020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9621
9622 PR gdb/25534
9623 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9624 (riscv_regcache_cooked_write): New function.
9625 (riscv_push_dummy_call): Use new function.
9626 (riscv_return_value): Likewise.
9627
5ab2fbf1
SM
96282020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9629
9630 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9631 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9632 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9633 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9634 * infrun.c (follow_fork): Likewise.
9635 (follow_fork_inferior): Likewise.
9636 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9637 * linux-nat.h (class linux_nat_target): Likewise.
9638 * remote.c (class remote_target) <follow_fork>: Likewise.
9639 (remote_target::follow_fork): Likewise.
9640 * target-delegates.c: Re-generate.
9641 * target.c (default_follow_fork): Likewise.
9642 (target_follow_fork): Likewise.
9643 * target.h (struct target_ops) <follow_fork>: Likewise.
9644 (target_follow_fork): Likewise.
9645
a64fafb5
TV
96462020-03-24 Tom de Vries <tdevries@suse.de>
9647
9648 * psymtab.c (maintenance_info_psymtabs): Print user field.
9649
fe26d3a3
TT
96502020-03-20 Tom Tromey <tromey@adacore.com>
9651
9652 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9653 const.
9654 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9655 const.
9656
c884cc46
SM
96572020-03-20 Simon Marchi <simon.marchi@efficios.com>
9658
9659 * ptrace.m4: Don't check for ptrace declaration.
9660 * config.in: Re-generate.
9661 * configure: Re-generate.
9662 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9663 not defined.
9664
1ff700c2
KR
96652020-03-20 Kamil Rytarowski <n54@gmx.com>
9666
9667 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9668 `PTRACE_TYPE_RET'.
9669 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9670 * sparc-nat.c (gdb_ptrace): Likewise.
9671 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9672
f7d4f0b1
TT
96732020-03-20 Tom Tromey <tromey@adacore.com>
9674
9675 * c-exp.y (lex_one_token): Fix assert.
9676
f67210ff
TT
96772020-03-20 Tom Tromey <tromey@adacore.com>
9678
9679 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9680 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9681 strncpy call.
9682
1773be9e
TT
96832020-03-20 Tom Tromey <tromey@adacore.com>
9684
9685 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9686
70304be9
TT
96872020-03-20 Tom Tromey <tromey@adacore.com>
9688
9689 * ada-valprint.c (print_variant_part): Remove parameters; switch
9690 to value-based API.
9691 (print_field_values): Likewise.
9692 (ada_val_print_struct_union): Likewise.
9693 (ada_value_print_1): Update.
9694
9faa006d
KR
96952020-03-20 Kamil Rytarowski <n54@gmx.com>
9696
9697 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9698 nbsd_nat_target instead of inf_ptrace_target.
9699 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9700 nbsd_nat_target.
9701
4a90f062
KR
97022020-03-20 Kamil Rytarowski <n54@gmx.com>
9703
9704 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9705 it to the ptrace call.
9706 * (store_registers): Likewise.
9707
97082020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9709
9710 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9711 it to the ptrace call.
9712 * (store_registers): Likewise.
9713
2d07da27
LM
97142020-03-19 Luis Machado <luis.machado@linaro.org>
9715
9716 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9717 valid, fetch vg value from ptrace.
9718
f09db380
KR
97192020-03-19 Kamil Rytarowski <n54@gmx.com>
9720 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9721 * inf-ptrace.c: Likewise.
9722 * (gdb_ptrace): Add.
9723 * (inf_ptrace_target::resume): Update.
9724 * (inf_ptrace_target::xfer_partial): Likewise.
9725 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9726 * (inf_ptrace_peek_poke): Update.
9727
fcc7376e
KR
97282020-03-19 Kamil Rytarowski <n54@gmx.com>
9729
9730 * x86-bsd-nat.c (gdb_ptrace): New.
9731 * (x86bsd_dr_set): Add new argument `ptid'.
9732 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9733 x86bsd_dr_set_addr): Update.
9734
cada5fc9
AB
97352020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9736
9737 * remote.c (remote_target::process_stop_reply): Handle events for
9738 all threads differently.
9739
19a2740f
AB
97402020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9741
9742 * completer.c (completion_tracker::remove_completion): Define new
9743 function.
9744 * completer.h (completion_tracker::remove_completion): Declare new
9745 function.
9746 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9747 when adding a C++ function symbol.
9748
724fd9ba
AB
97492020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9750
9751 * completer.c (completion_tracker::completion_hash_entry): Define
9752 new class.
9753 (advance_to_filename_complete_word_point): Call
9754 recompute_lowest_common_denominator.
9755 (completion_tracker::completion_tracker): Call discard_completions
9756 to setup the hash table.
9757 (completion_tracker::discard_completions): Allow for being called
9758 from the constructor, pass new equal function, and element deleter
9759 when constructing the hash table. Initialise new class member
9760 variables.
9761 (completion_tracker::maybe_add_completion): Remove use of
9762 m_entries_vec, and store more information into m_entries_hash.
9763 (completion_tracker::recompute_lcd_visitor): New function, most
9764 content taken from...
9765 (completion_tracker::recompute_lowest_common_denominator):
9766 ...here, this now just visits each item in the hash calling the
9767 above visitor.
9768 (completion_tracker::build_completion_result): Remove use of
9769 m_entries_vec, call recompute_lowest_common_denominator.
9770 * completer.h (completion_tracker::have_completions): Remove use
9771 of m_entries_vec.
9772 (completion_tracker::completion_hash_entry): Declare new class.
9773 (completion_tracker::recompute_lowest_common_denominator): Change
9774 function signature.
9775 (completion_tracker::recompute_lcd_visitor): Declare new function.
9776 (completion_tracker::m_entries_vec): Delete.
9777 (completion_tracker::m_entries_hash): Initialize to NULL.
9778 (completion_tracker::m_lowest_common_denominator_valid): New
9779 member variable.
9780 (completion_tracker::m_lowest_common_denominator_max_length): New
9781 member variable.
9782
5a82b8a1
KR
97832020-03-17 Kamil Rytarowski <n54@gmx.com>
9784
9785 * regformats/regdef.h: Put reg in gdb namespace.
9786
fb516a69
KR
97872020-03-17 Kamil Rytarowski <n54@gmx.com>
9788
9789 * i386-bsd-nat.c (gdb_ptrace): New.
9790 * (i386bsd_fetch_inferior_registers,
9791 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9792 * (i386bsd_fetch_inferior_registers,
9793 i386bsd_store_inferior_registers) Use gdb_ptrace.
9794
1c0aa1fb
KR
97952020-03-17 Kamil Rytarowski <n54@gmx.com>
9796
9797 * amd64-bsd-nat.c (gdb_ptrace): New.
9798 * (amd64bsd_fetch_inferior_registers,
9799 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9800 * (amd64bsd_fetch_inferior_registers,
9801 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9802
5ccd2fb7
KR
98032020-03-17 Kamil Rytarowski <n54@gmx.com>
9804
9805 * user-regs.c (user_reg::read): Rename to...
9806 (user_reg::xread): ...this.
9807 * (append_user_reg): Rename argument `read' to `xread'.
9808 * (user_reg_add_builtin): Likewise.
9809 * (user_reg_add): Likewise.
9810 * (value_of_user_reg): Likewise.
9811
2108a63a
KR
98122020-03-17 Kamil Rytarowski <n54@gmx.com>
9813
9814 * sparc-nat.c (gdb_ptrace): New.
9815 * sparc-nat.c (sparc_fetch_inferior_registers)
9816 (sparc_store_inferior_registers) Remove obsolete comment.
9817 * sparc-nat.c (sparc_fetch_inferior_registers)
9818 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9819 * sparc-nat.c (sparc_fetch_inferior_registers)
9820 (sparc_store_inferior_registers) Use gdb_ptrace.
9821
a225c9a8
KR
98222020-03-17 Kamil Rytarowski <n54@gmx.com>
9823
9824 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9825 it to the ptrace call.
9826 * sh-nbsd-nat.c (store_registers): Likewise.
9827
98097623
KR
98282020-03-17 Kamil Rytarowski <n54@gmx.com>
9829
9830 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9831 nbsd_nat_target instead of inf_ptrace_target.
9832 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9833 nbsd_nat_target.
9834
9e38d619
KR
98352020-03-17 Kamil Rytarowski <n54@gmx.com>
9836
9837 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9838
a2ecbe9f
KR
98392020-03-17 Kamil Rytarowski <n54@gmx.com>
9840
9841 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9842 <sys/sysctl.h>.
9843 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9844
58990295
TV
98452020-03-17 Tom de Vries <tdevries@suse.de>
9846
9847 PR gdb/23710
9848 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9849 fields.
9850 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9851 fields.
9852 (process_imported_unit_die): Skip import of c++ CUs.
9853
771dd3a8
TT
98542020-03-16 Tom Tromey <tom@tromey.com>
9855
9856 * p-valprint.c (pascal_object_print_value): Initialize
9857 base_value.
9858
817a7585
AK
98592020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9860 Shahab Vahedi <shahab@synopsys.com>
9861
9862 * Makefile.in: Add arch/arc.o
9863 * configure.tgt: Likewise.
9864 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9865 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9866 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9867 * arc-tdep.h (arc_read_description): Add proto type.
9868 * arch/arc.c: New file.
9869 * arch/arc.h: Likewise.
9870 * features/Makefile: Replace old target descriptions with new.
9871 * features/arc-arcompact.c: Remove.
9872 * features/arc-arcompact.xml: Likewise.
9873 * features/arc-v2.c: Likewise
9874 * features/arc-v2.xml: Likewise
9875 * features/arc/aux-arcompact.xml: New file.
9876 * features/arc/aux-v2.xml: Likewise.
9877 * features/arc/core-arcompact.xml: Likewise.
9878 * features/arc/core-v2.xml: Likewise.
9879 * features/arc/aux-arcompact.c: Generate.
9880 * features/arc/aux-v2.c: Likewise.
9881 * features/arc/core-arcompact.c: Likewise.
9882 * features/arc/core-v2.c: Likewise.
9883 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9884
67430cd0
TT
98852020-03-16 Tom Tromey <tromey@adacore.com>
9886
9887 PR gdb/25663:
9888 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9889 putting value into bcache.
9890
30efb6c7
SM
98912020-03-16 Simon Marchi <simon.marchi@efficios.com>
9892
9893 PR gdb/21500
9894 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9895 to...
9896 (amd64_windows_init_abi_common): ... this. Don't set size of
9897 long type.
9898 (amd64_windows_init_abi): New function.
9899 (amd64_cygwin_init_abi): New function.
9900 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9901 the Cygwin OS ABI.
9902 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9903 comment.
9904
8db52437
SM
99052020-03-16 Simon Marchi <simon.marchi@efficios.com>
9906
9907 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9908 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9909 (pe_import_directory_entry): New struct type.
9910 (is_linked_with_cygwin_dll): New function.
9911 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9912 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9913 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9914
5982a56a
SM
99152020-03-16 Simon Marchi <simon.marchi@efficios.com>
9916
9917 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9918 i386_cygwin_core_osabi_sniffer.
9919
7a1998df
SM
99202020-03-16 Simon Marchi <simon.marchi@efficios.com>
9921
9922 * i386-cygwin-tdep.c: Rename to...
9923 * i386-windows-tdep.c: ... this.
9924 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9925 i386-windows-tdep.c.
9926 * configure.tgt: Likewise.
9927
053205cc
SM
99282020-03-16 Simon Marchi <simon.marchi@efficios.com>
9929
9930 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9931 * osabi.c (gdb_osabi_names): Add "Windows".
9932 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9933 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9934 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9935 i386_cygwin_osabi_sniffer.
9936 (_initialize_i386_cygwin_tdep): Register OS ABI
9937 GDB_OSABI_WINDOWS for i386.
9938 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9939 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9940 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9941 for x86-64.
9942 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9943 when the target matches '*-*-mingw*'.
9944
fe4b2ee6
SM
99452020-03-16 Simon Marchi <simon.marchi@efficios.com>
9946
9947 * defs.h (enum gdb_osabi): Move to...
9948 * osabi.h (enum gdb_osabi): ... here.
9949 * gdbarch.sh: Include osabi.h in gdbarch.h.
9950 * gdbarch.h: Re-generate.
9951
cb9b645d
SM
99522020-03-16 Simon Marchi <simon.marchi@efficios.com>
9953
9954 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9955 function.
9956 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9957
3293bbaf
TT
99582020-03-14 Tom Tromey <tom@tromey.com>
9959
9960 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9961 for C++.
9962 (c_type_print_modifier): Likewise. Add "language" parameter.
9963 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9964 (c_type_print_base_1): Update.
9965 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9966 constants.
9967 * type-stack.c (type_stack::insert): Handle tp_atomic and
9968 tp_restrict.
9969 (type_stack::follow_type_instance_flags): Likewise.
9970 (type_stack::follow_types): Likewise. Merge type-following code.
9971 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9972 (space_identifier, cv_with_space_id)
9973 (const_or_volatile_or_space_identifier_noopt)
9974 (const_or_volatile_or_space_identifier): Remove.
9975 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9976 rules.
9977 (ptr_operator, typebase): Update.
9978 (enum token_flag) <FLAG_C>: New constant.
9979 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9980 "_Atomic".
9981 (lex_one_token): Handle FLAG_C.
9982
154151a6
KR
99832020-03-14 Kamil Rytarowski <n54@gmx.com>
9984
9985 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9986 it to the ptrace call.
9987 * m68k-bsd-nat.c (store_registers): Likewise.
9988
bc107784
KR
99892020-03-14 Kamil Rytarowski <n54@gmx.com>
9990
9991 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9992 gdb_byte *.
9993 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9994 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9995 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9996
01a80117
KR
99972020-03-14 Kamil Rytarowski <n54@gmx.com>
9998
9999 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10000 nbsd_nat_target instead of inf_ptrace_target.
10001 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10002 nbsd_nat_target.
10003
f90280ca
KR
100042020-03-14 Kamil Rytarowski <n54@gmx.com>
10005
10006 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10007 register_t.
10008
6def66f1
KR
100092020-03-14 Kamil Rytarowski <n54@gmx.com>
10010
10011 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10012 it to the ptrace call.
10013 * alpha-bsd-nat.c (store_registers): Likewise.
10014
66eaca97
KR
100152020-03-14 Kamil Rytarowski <n54@gmx.com>
10016
10017 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10018 includes.
10019 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10020 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10021 fill_fpregset): Likewise.
10022
4fed520b
KR
100232020-03-14 Kamil Rytarowski <n54@gmx.com>
10024
10025 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10026 nbsd_nat_target instead of inf_ptrace_target.
10027 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10028 nbsd_nat_target.
10029
2190cf06
KR
100302020-03-14 Kamil Rytarowski <n54@gmx.com>
10031
10032 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10033 register_t.
10034
75c56d3d
KR
100352020-03-14 Kamil Rytarowski <n54@gmx.com>
10036
10037 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10038 it to the ptrace call.
10039 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10040 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10041 * arm-nbsd-nat.c (store_register): Likewise.
10042 * arm-nbsd-nat.c (store_regs): Likewise.
10043 * arm-nbsd-nat.c (store_fp_register): Likewise.
10044 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10045
6018d381
KR
100462020-03-14 Kamil Rytarowski <n54@gmx.com>
10047
10048 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10049 nbsd_nat_target instead of inf_ptrace_target.
10050 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10051 nbsd_nat_target.
10052
013f99f0
KR
100532020-03-14 Kamil Rytarowski <n54@gmx.com>
10054
10055 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10056 it to the ptrace call.
10057 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10058
12753073
KR
100592020-03-14 Kamil Rytarowski <n54@gmx.com>
10060
6227b330
KR
10061 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10062 it to the ptrace call.
10063 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10064
100652020-03-14 Kamil Rytarowski <n54@gmx.com>
10066
10067 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10068 gdb_byte *.
12753073
KR
10069 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10070
d5be5fa4
KR
100712020-03-14 Kamil Rytarowski <n54@gmx.com>
10072
10073 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10074 instead of inf_ptrace_target.
10075 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10076 nbsd_nat_target.
10077
8110f842
KR
100782020-03-14 Kamil Rytarowski <n54@gmx.com>
10079
10080 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10081 register_t.
10082
52feded7
KR
100832020-03-14 Kamil Rytarowski <n54@gmx.com>
10084
10085 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10086 register_t.
10087
25567eee
KR
100882020-03-14 Kamil Rytarowski <n54@gmx.com>
10089
10090 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10091 register_t.
10092
426a9c18
TT
100932020-03-13 Tom Tromey <tom@tromey.com>
10094
10095 * value.h (val_print): Don't declare.
10096 * valprint.h (val_print_array_elements)
10097 (val_print_scalar_formatted, generic_val_print): Don't declare.
10098 * valprint.c (generic_val_print_array): Take a struct value.
10099 (generic_val_print_ptr, generic_val_print_memberptr)
10100 (generic_val_print_bool, generic_val_print_int)
10101 (generic_val_print_char, generic_val_print_complex)
10102 (generic_val_print): Remove.
10103 (generic_value_print): Update.
10104 (do_val_print): Remove unused parameters. Don't call
10105 la_val_print.
10106 (val_print): Remove.
10107 (common_val_print): Update. Don't call value_check_printable.
10108 (val_print_scalar_formatted, val_print_array_elements): Remove.
10109 * rust-lang.c (rust_val_print): Remove.
10110 (rust_language_defn): Update.
10111 * p-valprint.c (pascal_val_print): Remove.
10112 (pascal_value_print_inner): Update.
10113 (pascal_object_print_val_fields, pascal_object_print_val):
10114 Remove.
10115 (pascal_object_print_static_field): Update.
10116 * p-lang.h (pascal_val_print): Don't declare.
10117 * p-lang.c (pascal_language_defn): Update.
10118 * opencl-lang.c (opencl_language_defn): Update.
10119 * objc-lang.c (objc_language_defn): Update.
10120 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10121 * m2-lang.h (m2_val_print): Don't declare.
10122 * m2-lang.c (m2_language_defn): Update.
10123 * language.h (struct language_defn) <la_val_print>: Remove.
10124 * language.c (unk_lang_value_print_inner): Rename. Change
10125 argument types.
10126 (unknown_language_defn, auto_language_defn): Update.
10127 * go-valprint.c (go_val_print): Remove.
10128 * go-lang.h (go_val_print): Don't declare.
10129 * go-lang.c (go_language_defn): Update.
10130 * f-valprint.c (f_val_print): Remove.
10131 * f-lang.h (f_value_print): Don't declare.
10132 * f-lang.c (f_language_defn): Update.
10133 * d-valprint.c (d_val_print): Remove.
10134 * d-lang.h (d_value_print): Don't declare.
10135 * d-lang.c (d_language_defn): Update.
10136 * cp-valprint.c (cp_print_value_fields)
10137 (cp_print_value_fields_rtti, cp_print_value): Remove.
10138 (cp_print_static_field): Update.
10139 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10140 (c_val_print_struct, c_val_print_union, c_val_print_int)
10141 (c_val_print_memberptr, c_val_print): Remove.
10142 * c-lang.h (c_val_print_array, cp_print_value_fields)
10143 (cp_print_value_fields_rtti): Don't declare.
10144 * c-lang.c (c_language_defn, cplus_language_defn)
10145 (asm_language_defn, minimal_language_defn): Update.
10146 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10147 (ada_val_print_enum): Take a struct value.
10148 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10149 (ada_val_print): Remove.
10150 (ada_value_print_1): Update.
10151 (printable_val_type): Remove.
10152 * ada-lang.h (ada_val_print): Don't declare.
10153 * ada-lang.c (ada_language_defn): Update.
10154
42331a1e
TT
101552020-03-13 Tom Tromey <tom@tromey.com>
10156
10157 * valprint.c (do_val_print): Update.
10158 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10159 a struct value.
10160 (value_to_value_object_no_release): Declare.
10161 * python/py-value.c (value_to_value_object_no_release): New
10162 function.
10163 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10164 struct value.
10165 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10166 function.
10167 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10168 a struct value.
10169 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10170 Declare.
10171 (gdbscm_apply_val_pretty_printer): Take a struct value.
10172 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10173 value.
10174 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10175 value.
10176 * extension-priv.h (struct extension_language_ops)
10177 <apply_val_pretty_printer>: Take a struct value.
10178 * cp-valprint.c (cp_print_value): Create a struct value.
10179 (cp_print_value): Update.
10180
3a916a97
TT
101812020-03-13 Tom Tromey <tom@tromey.com>
10182
10183 * ada-valprint.c (print_field_values): Call common_val_print.
10184
b59eac37
TT
101852020-03-13 Tom Tromey <tom@tromey.com>
10186
10187 * ada-valprint.c (val_print_packed_array_elements): Remove
10188 bitoffset and val parameters. Call common_val_print.
10189 (ada_val_print_string): Remove offset, address, and original_value
10190 parameters.
10191 (ada_val_print_array): Update.
10192 (ada_value_print_array): New function.
10193 (ada_value_print_1): Call it.
10194
03371129
TT
101952020-03-13 Tom Tromey <tom@tromey.com>
10196
10197 * ada-valprint.c (ada_value_print): Use common_val_print.
10198
2e088f8b
TT
101992020-03-13 Tom Tromey <tom@tromey.com>
10200
10201 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10202
39ef85a8
TT
102032020-03-13 Tom Tromey <tom@tromey.com>
10204
10205 * ada-valprint.c (ada_value_print_num): New function.
10206 (ada_value_print_1): Use it.
10207
b9fa6e07
TT
102082020-03-13 Tom Tromey <tom@tromey.com>
10209
10210 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10211
416595d6
TT
102122020-03-13 Tom Tromey <tom@tromey.com>
10213
10214 * ada-valprint.c (ada_value_print_ptr): New function.
10215 (ada_value_print_1): Use it.
10216
5b5e15ec
TT
102172020-03-13 Tom Tromey <tom@tromey.com>
10218
10219 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10220 call common_val_print.
10221 (ada_val_print_1): Update.
10222 (ada_value_print_1): New function.
10223 (ada_value_print_inner): Rewrite.
10224
fbf54e75
TT
102252020-03-13 Tom Tromey <tom@tromey.com>
10226
10227 * cp-valprint.c (cp_print_value_fields): Update.
10228 (cp_print_value): New function.
10229
64b653ca
TT
102302020-03-13 Tom Tromey <tom@tromey.com>
10231
10232 * m2-valprint.c (m2_value_print_inner): Use
10233 cp_print_value_fields.
10234 * cp-valprint.c (cp_print_value_fields): New function.
10235 * c-valprint.c (c_value_print_struct): New function.
10236 (c_value_print_inner): Use c_value_print_struct.
10237 * c-lang.h (cp_print_value_fields): Declare.
10238
6999f067
TT
102392020-03-13 Tom Tromey <tom@tromey.com>
10240
10241 * c-valprint.c (c_value_print_array): New function.
10242 (c_value_print_inner): Use it.
10243
ce80b8bd
TT
102442020-03-13 Tom Tromey <tom@tromey.com>
10245
10246 * c-valprint.c (c_value_print_memberptr): New function.
10247 (c_value_print_inner): Use it.
10248
2faac269
TT
102492020-03-13 Tom Tromey <tom@tromey.com>
10250
10251 * c-valprint.c (c_value_print_int): New function.
10252 (c_value_print_inner): Use it.
10253
da3e2c29
TT
102542020-03-13 Tom Tromey <tom@tromey.com>
10255
10256 * c-valprint.c (c_value_print_ptr): New function.
10257 (c_value_print_inner): Use it.
10258
50836231
TT
102592020-03-13 Tom Tromey <tom@tromey.com>
10260
10261 * c-valprint.c (c_value_print_inner): Rewrite.
10262
4f412b6e
TT
102632020-03-13 Tom Tromey <tom@tromey.com>
10264
10265 * valprint.c (generic_value_print_complex): New function.
10266 (generic_value_print): Use it.
10267
f5354008
TT
102682020-03-13 Tom Tromey <tom@tromey.com>
10269
10270 * valprint.c (generic_val_print_float): Don't call
10271 val_print_scalar_formatted.
10272 (generic_val_print, generic_value_print): Update.
10273
3eec3b05
TT
102742020-03-13 Tom Tromey <tom@tromey.com>
10275
10276 * valprint.c (generic_value_print_char): New function
10277 (generic_value_print): Use it.
10278
fdddfccb
TT
102792020-03-13 Tom Tromey <tom@tromey.com>
10280
10281 * valprint.c (generic_value_print_int): New function.
10282 (generic_value_print): Use it.
10283
6dde7521
TT
102842020-03-13 Tom Tromey <tom@tromey.com>
10285
10286 * valprint.c (generic_value_print_bool): New function.
10287 (generic_value_print): Use it.
10288
4112d2e6
TT
102892020-03-13 Tom Tromey <tom@tromey.com>
10290
10291 * valprint.c (generic_val_print_func): Simplify.
10292 (generic_val_print, generic_value_print): Update.
10293
65786af6
TT
102942020-03-13 Tom Tromey <tom@tromey.com>
10295
10296 * valprint.c (generic_val_print_flags): Remove.
10297 (generic_val_print, generic_value_print): Update.
10298 (val_print_type_code_flags): Add original_value parameter.
10299
40f3ce18
TT
103002020-03-13 Tom Tromey <tom@tromey.com>
10301
10302 * valprint.c (generic_val_print): Update.
10303 (generic_value_print): Update.
10304 * valprint.c (generic_val_print_enum): Don't call
10305 val_print_scalar_formatted.
10306
2a5b130b
TT
103072020-03-13 Tom Tromey <tom@tromey.com>
10308
10309 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10310 * valprint.c (generic_value_print_ptr): New function.
10311
abc66ce9
TT
103122020-03-13 Tom Tromey <tom@tromey.com>
10313
10314 * valprint.c (generic_value_print): Rewrite.
10315
07a32858
TT
103162020-03-13 Tom Tromey <tom@tromey.com>
10317
10318 * p-valprint.c (pascal_object_print_value_fields)
10319 (pascal_object_print_value): New functions.
10320
64d64d3a
TT
103212020-03-13 Tom Tromey <tom@tromey.com>
10322
10323 * p-valprint.c (pascal_value_print_inner): Rewrite.
10324
6a95a1f5
TT
103252020-03-13 Tom Tromey <tom@tromey.com>
10326
10327 * f-valprint.c (f_value_print_innner): Rewrite.
10328
59fcdac6
TT
103292020-03-13 Tom Tromey <tom@tromey.com>
10330
10331 * m2-valprint.c (m2_print_unbounded_array): New overload.
10332 (m2_print_unbounded_array): Update.
10333 (m2_print_array_contents): Take a struct value.
10334 (m2_value_print_inner): Rewrite.
10335
d133c3e1
TT
103362020-03-13 Tom Tromey <tom@tromey.com>
10337
10338 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10339 (d_value_print_inner): New function.
10340 * d-lang.h (d_value_print_inner): Declare.
10341 * d-lang.c (d_language_defn): Use d_value_print_inner.
10342
23b0f06b
TT
103432020-03-13 Tom Tromey <tom@tromey.com>
10344
10345 * go-valprint.c (go_value_print_inner): New function.
10346 * go-lang.h (go_value_print_inner): Declare.
10347 * go-lang.c (go_language_defn): Use go_value_print_inner.
10348
5f56f7cb
TT
103492020-03-13 Tom Tromey <tom@tromey.com>
10350
10351 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10352 API.
10353 (rust_val_print): Rewrite.
10354 (rust_value_print_inner): New function, from rust_val_print.
10355 (rust_language_defn): Use rust_value_print_inner.
10356
26792ee0
TT
103572020-03-13 Tom Tromey <tom@tromey.com>
10358
10359 * ada-valprint.c (ada_value_print_inner): New function.
10360 * ada-lang.h (ada_value_print_inner): Declare.
10361 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10362
24051bbe
TT
103632020-03-13 Tom Tromey <tom@tromey.com>
10364
10365 * f-valprint.c (f_value_print_innner): New function.
10366 * f-lang.h (f_value_print_innner): Declare.
10367 * f-lang.c (f_language_defn): Use f_value_print_innner.
10368
c0941be6
TT
103692020-03-13 Tom Tromey <tom@tromey.com>
10370
10371 * p-valprint.c (pascal_value_print_inner): New function.
10372 * p-lang.h (pascal_value_print_inner): Declare.
10373 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10374
62c4663d
TT
103752020-03-13 Tom Tromey <tom@tromey.com>
10376
10377 * m2-valprint.c (m2_value_print_inner): New function.
10378 * m2-lang.h (m2_value_print_inner): Declare.
10379 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10380
62182190
TT
103812020-03-13 Tom Tromey <tom@tromey.com>
10382
10383 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10384 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10385 * c-valprint.c (c_value_print_inner): New function.
10386 * c-lang.h (c_value_print_inner): Declare.
10387 * c-lang.c (c_language_defn, cplus_language_defn)
10388 (asm_language_defn, minimal_language_defn): Use
10389 c_value_print_inner.
10390
1e592a8a
TT
103912020-03-13 Tom Tromey <tom@tromey.com>
10392
10393 * p-valprint.c (pascal_object_print_value_fields): Now static.
10394 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10395
7fe471e9
TT
103962020-03-13 Tom Tromey <tom@tromey.com>
10397
10398 * c-valprint.c (c_val_print_array): Simplify.
10399
d121c6ce
TT
104002020-03-13 Tom Tromey <tom@tromey.com>
10401
10402 * valprint.c (value_print_array_elements): New function.
10403 * valprint.h (value_print_array_elements): Declare.
10404
4dba70ee
TT
104052020-03-13 Tom Tromey <tom@tromey.com>
10406
10407 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10408 * mips-tdep.c (mips_print_register): Use
10409 value_print_scalar_formatted.
10410
4f9ae810
TT
104112020-03-13 Tom Tromey <tom@tromey.com>
10412
10413 * valprint.h (value_print_scalar_formatted): Declare.
10414 * valprint.c (value_print_scalar_formatted): New function.
10415
156bfec9
TT
104162020-03-13 Tom Tromey <tom@tromey.com>
10417
10418 * valprint.h (generic_value_print): Declare.
10419 * valprint.c (generic_value_print): New function.
10420
2b4e573d
TT
104212020-03-13 Tom Tromey <tom@tromey.com>
10422
10423 * valprint.c (do_val_print): Call la_value_print_inner, if
10424 available.
10425 * rust-lang.c (rust_language_defn): Update.
10426 * p-lang.c (pascal_language_defn): Update.
10427 * opencl-lang.c (opencl_language_defn): Update.
10428 * objc-lang.c (objc_language_defn): Update.
10429 * m2-lang.c (m2_language_defn): Update.
10430 * language.h (struct language_defn) <la_value_print_inner>: New
10431 member.
10432 * language.c (unknown_language_defn, auto_language_defn): Update.
10433 * go-lang.c (go_language_defn): Update.
10434 * f-lang.c (f_language_defn): Update.
10435 * d-lang.c (d_language_defn): Update.
10436 * c-lang.c (c_language_defn, cplus_language_defn)
10437 (asm_language_defn, minimal_language_defn): Update.
10438 * ada-lang.c (ada_language_defn): Update.
10439
a1f6a07c
TT
104402020-03-13 Tom Tromey <tom@tromey.com>
10441
10442 * c-valprint.c (c_value_print): Use common_val_print.
10443
410cf315
TT
104442020-03-13 Tom Tromey <tom@tromey.com>
10445
10446 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10447
72a45c93
TT
104482020-03-13 Tom Tromey <tom@tromey.com>
10449
10450 * f-valprint.c (f77_print_array_1, f_val_print): Use
10451 common_val_print.
10452
040f66bd
TT
104532020-03-13 Tom Tromey <tom@tromey.com>
10454
10455 * riscv-tdep.c (riscv_print_one_register_info): Use
10456 common_val_print.
10457
a6e05a6c
TT
104582020-03-13 Tom Tromey <tom@tromey.com>
10459
10460 * mi/mi-main.c (output_register): Use common_val_print.
10461
3444c526
TT
104622020-03-13 Tom Tromey <tom@tromey.com>
10463
10464 * infcmd.c (default_print_one_register_info): Use
10465 common_val_print.
10466
c2a44efe
TT
104672020-03-13 Tom Tromey <tom@tromey.com>
10468
10469 * valprint.h (common_val_print_checked): Declare.
10470 * valprint.c (common_val_print_checked): New function.
10471 * stack.c (print_frame_arg): Use common_val_print_checked.
10472
b0c26e99
TT
104732020-03-13 Tom Tromey <tom@tromey.com>
10474
10475 * valprint.c (do_val_print): New function, from val_print.
10476 (val_print): Use do_val_print.
10477 (common_val_print): Use do_val_print.
10478
ce3acbe9
TT
104792020-03-13 Tom Tromey <tom@tromey.com>
10480
10481 * valprint.c (value_print): Use scoped_value_mark.
10482
96c7f873
TV
104832020-03-13 Tom de Vries <tdevries@suse.de>
10484
10485 PR symtab/25646
10486 * psymtab.c (partial_symtab::partial_symtab): Don't set
10487 globals_offset and statics_offset. Push element onto
10488 current_global_psymbols and current_static_psymbols stacks.
10489 (concat): New function.
10490 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10491 element from current_global_psymbols and current_static_psymbols
10492 stacks. Concat popped elements to global_psymbols and
10493 static_symbols.
10494 (add_psymbol_to_list): Use current_global_psymbols and
10495 current_static_psymbols stacks.
10496 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10497 current_static_psymbols fields.
10498
6ba0a321
CB
104992020-03-12 Christian Biesinger <cbiesinger@google.com>
10500
10501 * corelow.c (sniff_core_bfd): Remove.
10502 (class core_target) <m_core_vec>: Remove.
10503 (core_target::core_target): Update.
10504 (core_file_fns): Remove.
10505 (deprecated_add_core_fns): Remove.
10506 (default_core_sniffer): Remove.
10507 (sniff_core_bfd): Remove.
10508 (default_check_format): Remove.
10509 (gdb_check_format): Remove.
10510 (core_target_open): Update.
10511 (core_target::get_core_register_section): Update.
10512 (get_core_registers_cb): Update.
10513 (core_target::fetch_registers): Update.
10514 * gdbcore.h (struct core_fns): Remove.
10515 (deprecated_add_core_fns): Remove.
10516 (default_core_sniffer): Remove.
10517 (default_check_format): Remove.
10518
227031b2
TT
105192020-03-12 Tom Tromey <tom@tromey.com>
10520
10521 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10522 CORE_ADDR.
10523 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10524
53807e9f
TT
105252020-03-12 Tom Tromey <tom@tromey.com>
10526
10527 * remote.c (remote_target::download_tracepoint)
10528 (remote_target::enable_tracepoint)
10529 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10530 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10531 sprintf_vma.
10532
64f25102
TT
105332020-03-12 Tom Tromey <tom@tromey.com>
10534
10535 * symfile-mem.c: Update CORE_ADDR size assert.
10536
272cd5a3
SM
105372020-03-12 Simon Marchi <simon.marchi@efficios.com>
10538
10539 * selftest.m4: Move to gdbsupport/.
10540 * acinclude.m4: Update path to selftest.m4.
10541
74cd3f9d
SM
105422020-03-12 Simon Marchi <simon.marchi@efficios.com>
10543
10544 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10545 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10546 gdbarch-selfselftests.c and selftest-arch.c.
10547 (SUBDIR_UNITTESTS_OBS): Rename to...
10548 (SELFTESTS_OBS): ... this.
10549 (COMMON_SFILES): Remove disasm-selftests.c and
10550 gdbarch-selftests.c.
10551 * configure.ac: Don't add selftest-arch.{c,o} to
10552 CONFIG_{SRCS,OBS}.
10553 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10554 preprocessor conditions.
10555
db6878ac
SM
105562020-03-12 Simon Marchi <simon.marchi@efficios.com>
10557
10558 * configure.ac: Don't source bfd/development.sh.
10559 * selftest.m4: Modify comment.
10560 * configure: Re-generate.
10561
4d696a5c
SM
105622020-03-12 Simon Marchi <simon.marchi@efficios.com>
10563
10564 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10565 not "true" or "false".
10566 * configure: Re-generate.
10567
8dd8e1c7
CB
105682020-03-12 Christian Biesinger <cbiesinger@google.com>
10569
10570 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10571 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10572 renamed to arm_nbsd_supply_gregset.
10573 (fetch_register): Update to call arm_nbsd_supply_gregset.
10574 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10575 (arm_netbsd_nat_target::fetch_registers): Update.
10576 (fetch_elfcore_registers): Removed.
10577 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10578 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10579 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10580 not require NetBSD system headers.
10581 (arm_nbsd_regset): New struct.
10582 (arm_nbsd_iterate_over_regset_sections): New function.
10583 (arm_netbsd_init_abi_common): Updated to call
10584 set_gdbarch_iterate_over_regset_sections.
10585 * arm-nbsd-tdep.h: New file.
10586
dd69bf7a
KB
105872020-03-11 Kevin Buettner <kevinb@redhat.com>
10588
10589 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10590 recursion.
10591
a0761e34
SM
105922020-03-11 Simon Marchi <simon.marchi@efficios.com>
10593
10594 * configure: Re-generate.
10595
e7a82140
TT
105962020-03-11 Tom Tromey <tromey@adacore.com>
10597
10598 * ada-typeprint.c (print_choices): Fix comment.
10599
dcc050c8
AB
106002020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10601
10602 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10603 previous item in the list, when the list has no items.
10604
1c33af77
TV
106052020-03-11 Tom de Vries <tdevries@suse.de>
10606
10607 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10608 PROP_LOCLIST handling code.
10609
8c95582d
AB
106102020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10611
10612 * buildsym-legacy.c (record_line): Pass extra parameter to
10613 record_line.
10614 * buildsym.c (buildsym_compunit::record_line): Take an extra
10615 parameter, reduce duplication in the line table, and record the
10616 is_stmt flag in the line table.
10617 * buildsym.h (buildsym_compunit::record_line): Add extra
10618 parameter.
10619 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10620 non-statement lines.
10621 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10622 this to the symtab builder.
10623 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10624 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10625 through to dwarf_record_line_1.
10626 * infrun.c (process_event_stop_test): When stepping, don't stop at
10627 a non-statement instruction, and only refresh the step info when
10628 we land in the middle of a line's range. Also add an extra
10629 comment.
10630 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10631 field.
10632 * record-btrace.c (btrace_find_line_range): Only record lines
10633 marked as is-statement.
10634 * stack.c (frame_show_address): Show the frame address if we are
10635 in a non-statement sal.
10636 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10637 (maintenance_print_one_line_table): Print a header for the is_stmt
10638 column, and include is_stmt information in the output.
10639 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10640 preference to non-statements.
10641 (find_pcs_for_symtab_line): Prefer is-statement entries.
10642 (find_line_common): Likewise.
10643 * symtab.h (struct linetable_entry): Add is_stmt field.
10644 (struct symtab_and_line): Likewise.
10645 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10646 arranging the line table.
10647
e4003a34
TV
106482020-03-07 Tom de Vries <tdevries@suse.de>
10649
10650 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10651 DIE.
10652
e8932576
TT
106532020-03-07 Tom Tromey <tom@tromey.com>
10654
10655 * valops.c (value_literal_complex): Remove obsolete comment.
10656 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10657 comment.
10658
29734269
SM
106592020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10660
10661 * infrun.h: Forward-declare thread_info.
10662 (set_step_info): Add thread_info parameter, add doc.
10663 * infrun.c (set_step_info): Add thread_info parameter, move doc
10664 to header.
10665 * infrun.c (process_event_stop_test): Pass thread to
10666 set_step_info call.
10667 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10668 set_step_info.
10669 (prepare_one_step): Add thread_info parameter, pass it to
10670 set_step_frame and prepare_one_step (recursive) call.
10671 (step_1): Pass thread to prepare_one_step call.
10672 (step_command_fsm::should_stop): Pass thread to
10673 prepare_one_step.
10674 (until_next_fsm): Pass thread to set_step_frame call.
10675 (finish_command): Pass thread to set_step_info call.
10676
b7d64b29
HD
106772020-03-06 Hannes Domani <ssbssa@yahoo.de>
10678
10679 * windows-tdep.c (windows_solib_create_inferior_hook):
10680 Check if inferior is running.
10681
09f2921c
TV
106822020-03-06 Tom de Vries <tdevries@suse.de>
10683
10684 * NEWS: Fix "the the".
10685 * ctfread.c: Same.
10686
fd760e79
TV
106872020-03-06 Tom de Vries <tdevries@suse.de>
10688
10689 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10690
20ea4a60
AB
106912020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10692
10693 * .dir-locals.el: Add a comment referencing the other copies of
10694 this file.
10695
0afbabf0
JB
106962020-03-05 John Baldwin <jhb@FreeBSD.org>
10697
10698 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10699 psargs.
10700
842806cb
TBA
107012020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10702
10703 * .gitattributes: New file.
10704
be1e3d3e
TT
107052020-03-04 Tom Tromey <tom@tromey.com>
10706
10707 * symmisc.c (print_symbol_bcache_statistics)
10708 (print_objfile_statistics): Update.
10709 * symfile.c (allocate_symtab): Use intern.
10710 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10711 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10712 macro_cache>: Remove.
10713 <string_cache>: New member.
10714 (struct objfile) <intern>: New methods.
10715 * elfread.c (elf_symtab_read): Use intern.
10716 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10717 (dwarf2_compute_name, dwarf2_physname)
10718 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10719 names.
10720 (guess_partial_die_structure_name): Update.
10721 (partial_die_info::fixup): Intern name.
10722 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10723 name.
10724 (dwarf2_name): Intern name. Update.
10725 * buildsym.c (buildsym_compunit::get_macro_table): Use
10726 string_cache.
10727
4e7625fd
TT
107282020-03-04 Tom Tromey <tom@tromey.com>
10729
10730 * jit.c (bfd_open_from_target_memory): Make "target" const.
10731 * corefile.c (gnutarget): Now const.
10732 * gdbcore.h (gnutarget): Now const.
10733
46f9f931
HD
107342020-03-04 Hannes Domani <ssbssa@yahoo.de>
10735
10736 * NEWS: Mention support for WOW64 processes.
10737 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10738 (amd64_windows_segment_register_p): Remove static.
10739 (_initialize_amd64_windows_nat): Update.
10740 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10741 * i386-windows-nat.c (context_offset): Update.
10742 (i386_mappings): Rename and remove static.
10743 (i386_windows_segment_register_p): Remove static.
10744 (_initialize_i386_windows_nat): Update.
10745 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10746 (STATUS_WX86_SINGLE_STEP): New macro.
10747 (EnumProcessModulesEx): New macro.
10748 (Wow64SuspendThread): New macro.
10749 (Wow64GetThreadContext): New macro.
10750 (Wow64SetThreadContext): New macro.
10751 (Wow64GetThreadSelectorEntry): New macro.
10752 (windows_set_context_register_offsets): Add static.
10753 (windows_set_segment_register_p): Likewise.
10754 (windows_add_thread): Adapt for WOW64 processes.
10755 (windows_fetch_one_register): Likewise.
10756 (windows_nat_target::fetch_registers): Likewise.
10757 (windows_store_one_register): Likewise.
10758 (display_selector): Likewise.
10759 (display_selectors): Likewise.
10760 (handle_exception): Likewise.
10761 (windows_continue): Likewise.
10762 (windows_nat_target::resume): Likewise.
10763 (windows_add_all_dlls): Likewise.
10764 (do_initial_windows_stuff): Likewise.
10765 (windows_nat_target::attach): Likewise.
10766 (windows_get_exec_module_filename): Likewise.
10767 (windows_nat_target::create_inferior): Likewise.
10768 (windows_xfer_siginfo): Likewise.
10769 (_initialize_loadable): Initialize Wow64SuspendThread,
10770 Wow64GetThreadContext, Wow64SetThreadContext,
10771 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10772 * windows-nat.h (windows_set_context_register_offsets):
10773 Remove declaration.
10774 (windows_set_segment_register_p): Likewise.
10775 (i386_windows_segment_register_p): Add declaration.
10776 (amd64_windows_segment_register_p): Likewise.
10777
440cf44e
LM
107782020-03-04 Luis Machado <luis.machado@linaro.org>
10779
10780 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10781 in "info registers" for AArch64/ARM.
10782
10783 The change caused "info registers" to not print GPR's.
10784
10785 gdb/ChangeLog:
10786
10787 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10788
10789 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10790 when reg->group is empty and reggroup is not.
10791
1009d92f
TT
107922020-03-03 Tom Tromey <tromey@adacore.com>
10793
10794 * dwarf2/frame.c (struct dwarf2_frame_cache)
10795 <checked_tailcall_bottom, entry_cfa_sp_offset,
10796 entry_cfa_sp_offset_p>: Remove members.
10797 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10798 (dwarf2_frame_prev_register): Don't call
10799 dwarf2_tailcall_sniffer_first.
10800 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10801 * frame-unwind.c (add_unwinder): New fuction.
10802 (frame_unwind_init): Use it. Add tailcall unwinder.
10803
5e5d66b6
AB
108042020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10805 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10806
10807 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10808 value should be printed as true.
10809
584cf46d
HD
108102020-03-03 Hannes Domani <ssbssa@yahoo.de>
10811
10812 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10813 (windows_init_abi): Set and use windows_so_ops.
10814
7b973adc
SDJ
108152020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10816
10817 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10818 when verifying if dealing with a convenience variable.
10819
bb7b70ab
LM
108202020-03-03 Luis Machado <luis.machado@linaro.org>
10821
10822 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10823
9822cb57
SM
108242020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10825
10826 * infrun.c (gdbarch_supports_displaced_stepping): New.
10827 (use_displaced_stepping): Break up conditions in smaller pieces.
10828 Use gdbarch_supports_displaced_stepping.
10829 (displaced_step_prepare_throw): Use
10830 gdbarch_supports_displaced_stepping.
10831
63e163f2
AB
108322020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10833
10834 * NEWS: Mention new behaviour of the history filename.
10835 * top.c (write_history_p): Add comment.
10836 (show_write_history_p): Add header comment, give a different
10837 message when history writing is on, but the history filename is
10838 empty.
10839 (history_filename): Add comment.
10840 (history_filename_empty): New function.
10841 (show_history_filename): Add header comment, give a different
10842 message when the filename is empty.
10843 (init_history): Compare history_filename against nullptr, and only
10844 read history if the filename is not empty.
10845 (set_history_filename): Add header comment, and only make
10846 non-empty filenames absolute.
10847 (init_main): Make the filename argument to 'set history filename'
10848 optional.
10849
81b86b97
CB
108502020-03-02 Christian Biesinger <cbiesinger@google.com>
10851
10852 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10853 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10854 (fetch_fp_register): Update.
10855 (fetch_fp_regs): Update.
10856 (store_fp_register): Update.
10857 (store_fp_regs): Update.
10858 (arm_netbsd_nat_target::read_description): New function.
10859 (fetch_elfcore_registers): Update.
10860
24ed6739
AB
108612020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10862
10863 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10864 general_thread if the stop reply is missing a thread-id.
10865 (remote_target::process_stop_reply): Use the first non-exited
10866 thread if the target didn't pass a thread-id.
10867 * infrun.c (do_target_wait): Move call to
10868 switch_to_inferior_no_thread to ....
10869 (do_target_wait_1): ... here.
10870
a84bb2a0
JT
108712020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10872
10873 * debuginfod-support.c: Include defs.h first.
10874
658dadf0
TV
108752020-02-28 Tom de Vries <tdevries@suse.de>
10876
10877 * symfile.c (set_initial_language): Use default language for lookup.
10878
4ebe4877
SM
108792020-02-28 Simon Marchi <simon.marchi@efficios.com>
10880
10881 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10882 reader variable, pass `this` to read_cutu_die_from_dwo.
10883
e5da1139
AM
108842020-02-27 Aaron Merey <amerey@redhat.com>
10885
10886 * source.c (open_source_file): Check for nullptr when computing
10887 srcpath.
10888
317f7127
TT
108892020-02-27 Tom Tromey <tromey@adacore.com>
10890
10891 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10892 member.
10893 (dwarf2_add_field): Don't update nfields.
10894 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10895
3104d9ee
AB
108962020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10897
10898 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10899 abs.
10900
b83470bf
TT
109012020-02-26 Tom Tromey <tom@tromey.com>
10902
10903 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10904 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10905 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10906 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10907 per_cu_data.
10908
edfe0a0c
TT
109092020-02-26 Tom Tromey <tom@tromey.com>
10910
10911 * dwarf2/index-write.c (psym_index_map): Change type.
10912 (add_address_entry_worker, write_one_signatured_type)
10913 (recursively_count_psymbols, recursively_write_psymbols)
10914 (class debug_names, psyms_seen_size, write_gdbindex)
10915 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10916
0d79cdc4
AM
109172020-02-26 Aaron Merey <amerey@redhat.com>
10918
10919 * Makefile.in: Handle optional debuginfod support.
10920 * NEWS: Update.
10921 * README: Add --with-debuginfod summary.
10922 * config.in: Regenerate.
10923 * configure: Regenerate.
10924 * configure.ac: Handle optional debuginfod support.
10925 * debuginfod-support.c: debuginfod helper functions.
10926 * debuginfod-support.h: Ditto.
10927 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10928 summary.
10929 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10930 when a dwz file cannot be found.
10931 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10932 debuginfo file cannot be found.
10933 * source.c (open_source_file): Query debuginfod servers when a
10934 source file cannot be found.
10935 * top.c (print_gdb_configuration): Include
10936 --{with,without}-debuginfod in the output.
10937
b65ce565
JG
109382020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10939
10940 * thread.c (thr_try_catch_cmd): Print thread name.
10941
d4c9a4f8
SM
109422020-02-26 Simon Marchi <simon.marchi@efficios.com>
10943
10944 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10945 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10946 dwarf2_fetch_die_type_sect_off): Move to...
10947 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10948 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10949 dwarf2_fetch_die_type_sect_off): ... here.
10950 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10951 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10952 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10953
0dce4280
TV
109542020-02-26 Tom de Vries <tdevries@suse.de>
10955
10956 PR gdb/25603
10957 * symfile.c (set_initial_language): Exit-early if
10958 language_mode == language_mode_manual.
10959
450a1bfc
SM
109602020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10961
10962 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10963 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10964 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10965
9e80cfa1
AB
109662020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10967
10968 * gdbtypes.c (create_array_type_with_stride): Handle negative
10969 array strides.
10970 * valarith.c (value_subscripted_rvalue): Likewise.
10971
09624f1f
LM
109722020-02-25 Luis Machado <luis.machado@linaro.org>
10973
10974 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10975
8cb5117c
SM
109762020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10977
10978 * loc.h (dwarf2_get_die_type): Move to...
10979 * read.h (dwarf2_get_die_type): ... here.
10980 * read.c (dwarf2_get_die_type): Move doc to header.
10981
c325c44e
JB
109822020-02-25 Joel Brobecker <brobecker@adacore.com>
10983
10984 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10985 'gnulib/Makefile.in' to the list.
10986
4ac93832
TT
109872020-02-24 Tom Tromey <tom@tromey.com>
10988
10989 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10990 Remove.
10991 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10992 XOBNEWVEC.
10993
197400e8
TT
109942020-02-24 Tom Tromey <tom@tromey.com>
10995
10996 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10997 New method.
10998 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10999 (dw2_do_instantiate_symtab, dw2_get_file_names)
11000 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11001
76935768
TT
110022020-02-24 Tom Tromey <tom@tromey.com>
11003
11004 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11005 make_scoped_restore.
11006 (dwarf2_psymtab::read_symtab): Don't clear
11007 reading_partial_symbols.
11008
a88ef40d
TV
110092020-02-24 Tom de Vries <tdevries@suse.de>
11010
11011 PR gdb/25592
11012 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11013
c9af6521
TV
110142020-02-24 Tom de Vries <tdevries@suse.de>
11015
11016 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11017 commands layout next/prev/regs.
11018
5707a07a
TT
110192020-02-22 Tom Tromey <tom@tromey.com>
11020
11021 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11022 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11023
3b0fb49e
TT
110242020-02-22 Tom Tromey <tom@tromey.com>
11025
11026 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11027
283be8bf
TT
110282020-02-22 Tom Tromey <tom@tromey.com>
11029
11030 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11031 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11032 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11033 * tui/tui.c (_initialize_tui): Add usage text.
11034
ca793b96
TT
110352020-02-22 Tom Tromey <tom@tromey.com>
11036
11037 * tui/tui-win.c (tui_set_focus_command)
11038 (tui_set_win_height_command): Use error_no_arg.
11039 (_initialize_tui_win): Update help text.
11040 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11041
432b5c40
TT
110422020-02-22 Tom Tromey <tom@tromey.com>
11043
11044 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11045 * tui/tui-disasm.h (struct tui_disasm_window)
11046 <display_start_addr>: Declare.
11047 * tui/tui-source.h (struct tui_source_window)
11048 <display_start_addr>: Declare.
11049 * tui/tui-winsource.h (struct tui_source_window_base)
11050 <show_source_line, display_start_addr>: New methods.
11051 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11052 Rename and move to protected section.
11053 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11054 (tui_source_window_base::do_erase_source_content): Update.
11055 (tui_source_window_base::show_source_line): Now a method.
11056 (tui_source_window_base::show_source_content)
11057 (tui_source_window_base::tui_source_window_base)
11058 (tui_source_window_base::rerender)
11059 (tui_source_window_base::refill)
11060 (tui_source_window_base::do_scroll_horizontal)
11061 (tui_source_window_base::set_is_exec_point_at)
11062 (tui_source_window_base::update_breakpoint_info)
11063 (tui_source_window_base::update_exec_info): Update.
11064 * tui/tui-source.c (tui_source_window::set_contents)
11065 (tui_source_window::showing_source_p)
11066 (tui_source_window::do_scroll_vertical)
11067 (tui_source_window::location_matches_p)
11068 (tui_source_window::line_is_displayed): Update.
11069 (tui_source_window::display_start_addr): New method.
11070 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11071 (tui_disasm_window::do_scroll_vertical)
11072 (tui_disasm_window::location_matches_p): Update.
11073 (tui_disasm_window::display_start_addr): New method.
11074
01b1af32
TT
110752020-02-22 Tom Tromey <tom@tromey.com>
11076
11077 * NEWS: Add entry for gdb.register_window_type.
11078 * tui/tui-layout.h (window_factory): New typedef.
11079 (tui_register_window): Declare.
11080 * tui/tui-layout.c (saved_tui_windows): New global.
11081 (tui_apply_current_layout): Use it.
11082 (tui_register_window): New function.
11083 * python/python.c (do_start_initialization): Call
11084 gdbpy_initialize_tui.
11085 (python_GdbMethods): Add "register_window_type" function.
11086 * python/python-internal.h (gdbpy_register_tui_window)
11087 (gdbpy_initialize_tui): Declare.
11088 * python/py-tui.c: New file.
11089 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11090
fc96d20b
TT
110912020-02-22 Tom Tromey <tom@tromey.com>
11092
11093 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11094
935c78c0
TT
110952020-02-22 Tom Tromey <tom@tromey.com>
11096
11097 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11098 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11099 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11100 (tui_set_win_focus_to): Move from tui-win.c.
11101
0240c8f1
TT
111022020-02-22 Tom Tromey <tom@tromey.com>
11103
11104 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11105 functions.
11106 (known_window_types): New global.
11107 (tui_get_window_by_name): Reimplement.
11108 (initialize_known_windows): New function.
11109 (validate_window_name): Rewrite.
11110 (_initialize_tui_layout): Call initialize_known_windows.
11111
fdb01f0c
TT
111122020-02-22 Tom Tromey <tom@tromey.com>
11113
11114 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11115 Remove constants.
11116 * tui/tui-winsource.h (struct tui_source_window_base)
11117 <tui_source_window_base>: Remove parameter.
11118 * tui/tui-winsource.c
11119 (tui_source_window_base::tui_source_window_base): Remove
11120 parameter.
11121 (tui_source_window_base::refill): Update.
11122 * tui/tui-stack.h (struct tui_locator_window)
11123 <tui_locator_window>: Update.
11124 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11125 Default the constructor.
11126 * tui/tui-regs.h (struct tui_data_item_window)
11127 <tui_data_item_window>: Default the constructor.
11128 (struct tui_data_window) <tui_data_window>: Likewise.
11129 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11130 Default the constructor.
11131 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11132 Default the constructor.
11133 <type>: Remove.
11134 (struct tui_win_info) <tui_win_info>: Default the constructor.
11135 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11136 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11137 Default the constructor.
11138
865a5aec
TT
111392020-02-22 Tom Tromey <tom@tromey.com>
11140
11141 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11142 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11143 * tui/tui-win.c (tui_resize_all): Don't call
11144 tui_delete_invisible_windows.
11145 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11146 done.
11147 (tui_set_layout): Update.
11148 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11149 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11150 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11151
e098d18c
TT
111522020-02-22 Tom Tromey <tom@tromey.com>
11153
11154 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11155 correctly.
11156
eb9c8874
TT
111572020-02-22 Tom Tromey <tom@tromey.com>
11158
11159 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11160
7eed1a8e
TT
111612020-02-22 Tom Tromey <tom@tromey.com>
11162
11163 * tui/tui-winsource.h (struct tui_source_window_iterator)
11164 <inner_iterator>: New etytypedef.
11165 <tui_source_window_iterator>: Take "end" parameter.
11166 <tui_source_window_iterator>: Take iterator.
11167 <operator*, advance>: Update.
11168 <m_iter>: Change type.
11169 <m_end>: New field.
11170 (struct tui_source_windows) <begin, end>: Update.
11171 * tui/tui-layout.c (tui_windows): New global.
11172 (tui_apply_current_layout): Clear tui_windows.
11173 (tui_layout_window::apply): Update tui_windows.
11174 * tui/tui-data.h (tui_windows): Declare.
11175 (all_tui_windows): Now inline function.
11176 (class tui_window_iterator, struct all_tui_windows): Remove.
11177
7c043ba6
TT
111782020-02-22 Tom Tromey <tom@tromey.com>
11179
11180 PR tui/17850:
11181 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11182 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11183 "height" argument.
11184 (class tui_layout_window) <get_sizes>: Likewise.
11185 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11186 argument.
11187 <get_sizes>: Add "height" argument.
11188 <m_vertical>: New field.
11189 * tui/tui-layout.c (tui_layout_split::clone): Update.
11190 (tui_layout_split::get_sizes): Add "height" argument.
11191 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11192 (tui_new_layout_command): Parse "-horizontal".
11193 (_initialize_tui_layout): Update help string.
11194 (tui_layout_split::specification): Add "-horizontal" when needed.
11195 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11196 argument.
11197 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11198 New methods.
11199
6bc56648
TT
112002020-02-22 Tom Tromey <tom@tromey.com>
11201
11202 * tui/tui-layout.h (enum tui_adjust_result): New.
11203 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11204 (class tui_layout_window) <adjust_size>: Return
11205 tui_adjust_result. Rewrite.
11206 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11207 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11208
c22fef7e
TT
112092020-02-22 Tom Tromey <tom@tromey.com>
11210
11211 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11212 parameter and return types.
11213 (class tui_layout_base) <specification>: Add "depth".
11214 (class tui_layout_window) <specification>: Add "depth".
11215 (class tui_layout_split) <specification>: Add "depth".
11216 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11217 and return types.
11218 (tui_new_layout_command): Parse sub-layouts.
11219 (_initialize_tui_layout): Update help string.
11220 (tui_layout_window::specification): Add "depth".
11221 (add_layout_command): Update.
11222
ee325b61
TT
112232020-02-22 Tom Tromey <tom@tromey.com>
11224
11225 * NEWS: Add "tui new-layout" item.
11226 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11227 Add new-layout command to help text.
11228 (validate_window_name): New function.
11229 (tui_new_layout_command): New function.
11230 (_initialize_tui_layout): Register "new-layout".
11231 (tui_layout_window::specification): New method.
11232 (tui_layout_window::specification): New method.
11233 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11234 method.
11235 (class tui_layout_window) <specification>: New method.
11236 (class tui_layout_split) <specification>: New method.
11237
416eb92d
TT
112382020-02-22 Tom Tromey <tom@tromey.com>
11239
11240 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11241 * tui/tui-win.c (window_name_completer): Update comment.
11242 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11243 Declare method.
11244 (class tui_layout_window) <replace_window>: Likewise.
11245 (class tui_layout_split) <replace_window>: Likewise.
11246 (tui_set_layout): Don't declare.
11247 (tui_set_initial_layout): Declare function.
11248 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11249 (asm_regs_layout): New globals.
11250 (tui_current_layout, show_layout): Remove.
11251 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11252 (find_layout, tui_apply_layout): New function.
11253 (layout_completer): Remove.
11254 (tui_next_layout): Reimplement.
11255 (tui_next_layout_command): New function.
11256 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11257 (tui_regs_layout): Reimplement.
11258 (tui_regs_layout_command): New function.
11259 (extract_display_start_addr): Rewrite.
11260 (next_layout, prev_layout): Remove.
11261 (tui_layout_window::replace_window): New method.
11262 (tui_layout_split::replace_window): New method.
11263 (destroy_layout): New function.
11264 (layout_list): New global.
11265 (add_layout_command): New function.
11266 (initialize_layouts): Update.
11267 (tui_layout_command): New function.
11268 (_initialize_tui_layout): Install "layout" commands.
11269 * tui/tui-data.h (enum tui_layout_type): Remove.
11270 (tui_current_layout): Don't declare.
11271
0dbc2fc7
TT
112722020-02-22 Tom Tromey <tom@tromey.com>
11273
11274 * tui/tui-regs.c (tui_reg_layout): Remove.
11275 (tui_reg_command): Use tui_regs_layout.
11276 * tui/tui-layout.h (tui_reg_command): Declare.
11277 * tui/tui-layout.c (tui_reg_command): New function.
11278
5afe342e
TT
112792020-02-22 Tom Tromey <tom@tromey.com>
11280
11281 * tui/tui.c (tui_rl_delete_other_windows): Call
11282 tui_remove_some_windows.
11283 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11284 Declare method.
11285 (class tui_layout_window) <remove_windows>: New method.
11286 (class tui_layout_split) <remove_windows>: Declare.
11287 (tui_remove_some_windows): Declare.
11288 * tui/tui-layout.c (tui_remove_some_windows): New function.
11289 (tui_layout_split::remove_windows): New method.
11290
427326a8
TT
112912020-02-22 Tom Tromey <tom@tromey.com>
11292
11293 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11294 * tui/tui-layout.h (tui_next_layout): Declare.
11295 * tui/tui-layout.c (tui_next_layout): New function.
11296
3fe12b6d
TT
112972020-02-22 Tom Tromey <tom@tromey.com>
11298
11299 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11300 correct coordinates.
11301
59b8b5d2
TT
113022020-02-22 Tom Tromey <tom@tromey.com>
11303
11304 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11305 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11306 DATA_WIN case.
11307
2a3d458b
TT
113082020-02-22 Tom Tromey <tom@tromey.com>
11309
11310 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11311 TUI_DISASM_WIN, not tui_win_list.
11312
3f0cbb04
TT
113132020-02-22 Tom Tromey <tom@tromey.com>
11314
11315 * valprint.c (generic_val_print_enum_1)
11316 (val_print_type_code_flags): Style member names.
11317 * rust-lang.c (val_print_struct, rust_print_enum)
11318 (rust_print_struct_def, rust_internal_print_type): Style member
11319 names.
11320 * p-valprint.c (pascal_object_print_value_fields): Style member
11321 names. Only call fprintf_symbol_filtered for static members.
11322 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11323 * f-valprint.c (f_val_print): Style member names.
11324 * f-typeprint.c (f_type_print_base): Style member names.
11325 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11326 call fprintf_symbol_filtered for static members.
11327 (cp_print_class_member): Style member names.
11328 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11329 member names.
11330 * ada-valprint.c (ada_print_scalar): Style enum names.
11331 (ada_val_print_enum): Likewise.
11332 * ada-typeprint.c (print_enum_type): Style enum names.
11333
d4d947ae
TT
113342020-02-21 Tom Tromey <tom@tromey.com>
11335
11336 * psympriv.h (struct partial_symtab): Update comment.
11337
e94e944b
TT
113382020-02-21 Tom Tromey <tromey@adacore.com>
11339
11340 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11341 type is CORE_ADDR.
11342
1eb73179
TV
113432020-02-21 Tom de Vries <tdevries@suse.de>
11344
11345 PR gdb/25534
11346 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11347 if dependencies[i]->user != NULL.
11348
4f180d53
AT
113492020-02-21 Ali Tamur <tamur@google.com>
11350
11351 * dwarf2/read.c (dwarf2_name): Add null check.
11352
22b6cd70
TT
113532020-02-20 Tom Tromey <tom@tromey.com>
11354
11355 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11356 ">=", in binary search.
11357 (dwarf2_find_containing_comp_unit): New overload.
11358 (run_test): New self-test.
11359 (_initialize_dwarf2_read): Register new test.
11360
bd0cf5a6
NC
113612020-02-20 Nelson Chu <nelson.chu@sifive.com>
11362
11363 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11364 * riscv-tdep.h: Likewise.
11365 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11366 rv32-only CSR.
11367 * features/riscv/64bit-csr.xml: Regenerated.
11368
3f702acd
SDJ
113692020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11370 Tom Tromey <tom@tromey.com>
11371
11372 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11373 of 'fputc_unfiltered'.
11374 (putchar_unfiltered): Call 'fputc_unfiltered'.
11375 (fputc_unfiltered): Call 'fputs_unfiltered'.
11376
d13c7322
AB
113772020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11378
11379 * config.in: Regenerate.
11380 * configure: Regenerate.
11381 * configure.ac: Add --with-python-libdir option.
11382 * main.c: Use WITH_PYTHON_LIBDIR.
11383
869d8950
TT
113842020-02-19 Tom Tromey <tom@tromey.com>
11385
11386 * symtab.c (general_symbol_info::compute_and_set_names): Use
11387 obstack_strndup. Simplify call to symbol_set_demangled_name.
11388
298e9637
SM
113892020-02-19 Simon Marchi <simon.marchi@efficios.com>
11390
11391 * dwarf2/read.c (allocate_signatured_type_table,
11392 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11393 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11394 Remove objfile parameter, update all callers.
11395
08410482
DE
113962020-02-19 Doug Evans <dje@google.com>
11397
11398 PR rust/25535
11399 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11400 rust_enum_variant calculation.
11401
dfdeeca1
TT
114022020-02-19 Tom Tromey <tromey@adacore.com>
11403
11404 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11405
2ef5453b
TT
114062020-02-19 Tom Tromey <tromey@adacore.com>
11407
11408 * ada-lang.c (cache_symbol): Use obstack_strdup.
11409
9f1528a1
AB
114102020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11411
11412 * configure: Regenerate.
11413
d3c22fa8
TT
114142020-02-19 Tom Tromey <tromey@adacore.com>
11415
11416 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11417 NULL check.
11418
bf84f706
MR
114192020-02-19 Maciej W. Rozycki <macro@wdc.com>
11420
11421 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11422
d1c9b20f
AB
114232020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11424
11425 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11426 if GDBSERVER is not defined.
11427 (riscv_tdesc_cache): Likewise, also store const target_desc.
11428 (STATIC_IN_GDB): Define.
11429 (riscv_create_target_description): Update declaration with
11430 STATIC_IN_GDB.
11431 (riscv_lookup_target_description): New function, only define if
11432 GDBSERVER is not defined.
11433 * arch/riscv.h (riscv_create_target_description): Declare only
11434 when GDBSERVER is defined.
11435 (riscv_lookup_target_description): New declaration when GDBSERVER
11436 is not defined.
11437 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11438 (riscv_linux_read_features): ...this, and return
11439 riscv_gdbarch_features instead of target_desc.
11440 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11441 (riscv_linux_read_description): Rename to...
11442 (riscv_linux_read_features): ...this.
11443 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11444 Update to use riscv_gdbarch_features and
11445 riscv_lookup_target_description.
11446 * riscv-tdep.c (riscv_find_default_target_description): Use
11447 riscv_lookup_target_description instead of
11448 riscv_create_target_description.
11449
373d7ac0
SM
114502020-02-18 Simon Marchi <simon.marchi@efficios.com>
11451
11452 * valprint.c (generic_val_print_enum_1): When printing a flag
11453 enum with value 0 and there is no enumerator with value 0, print
11454 just "0" instead of "(unknown: 0x0)".
11455
b29a2df0
SM
114562020-02-18 Simon Marchi <simon.marchi@efficios.com>
11457
11458 * valprint.c (generic_val_print_enum_1): Print unknown part of
11459 flag enum in hex.
11460
6740f0cc
SM
114612020-02-18 Simon Marchi <simon.marchi@efficios.com>
11462
11463 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11464 flag enums to contain duplicate enumerators.
11465 * valprint.c (generic_val_print_enum_1): Update comment.
11466
edd45eb0
SM
114672020-02-18 Simon Marchi <simon.marchi@efficios.com>
11468
11469 * dwarf2/read.c: Include "count-one-bits.h".
11470 (update_enumeration_type_from_children): If an enumerator has
11471 multiple bits set, don't treat the enumeration as a "flag enum".
11472 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11473 of flag enums have 0 or 1 bit set.
11474
6d0cf446
BE
114752020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11476
11477 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11478 conversion.
11479 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11480 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11481 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11482 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11483 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11484
7001c1b7
SM
114852020-02-18 Simon Marchi <simon.marchi@efficios.com>
11486
11487 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11488
fdb61c6c
SM
114892020-02-14 Simon Marchi <simon.marchi@efficios.com>
11490
11491 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11492 displaced_step_closure_up.
11493 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11494 (struct displaced_step_closure_up):
11495 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11496 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11497 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11498 Likewise.
11499 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11500 * gdbarch.c, gdbarch.h: Re-generate.
11501 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11502 displaced_step_closure_up.
11503 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11504 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11505 * infrun.h (displaced_step_closure_up): New type alias.
11506 (struct displaced_step_inferior_state) <step_closure>: Change
11507 type to displaced_step_closure_up.
11508 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11509 displaced_step_closure_up.
11510 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11511
a4a38eb4
TT
115122020-02-14 Tom Tromey <tom@tromey.com>
11513
11514 * minidebug.c (gnu_debug_key): New global.
11515 (find_separate_debug_file_in_section): Use it.
11516
e8217e61
SM
115172020-02-14 Simon Marchi <simon.marchi@efficios.com>
11518
11519 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11520 std::unique_ptr.
11521 * gdbarch.c: Re-generate.
11522 * gdbarch.h: Re-generate.
11523 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11524 change.
11525 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11526 type to std::unique_ptr.
11527 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11528 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11529 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11530 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11531 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11532 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11533 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11534 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11535 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11536
d8d83535
SM
115372020-02-14 Simon Marchi <simon.marchi@efficios.com>
11538
11539 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11540 std::unique_ptr.
11541 (displaced_step_clear): Rename to...
11542 (displaced_step_reset): ... this. Just call displaced->reset ().
11543 (displaced_step_clear_cleanup): Rename to...
11544 (displaced_step_reset_cleanup): ... this.
11545 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11546 (displaced_step_fixup): Likewise.
11547 (resume_1): Likewise.
11548 (handle_inferior_event): Restore child's memory before calling
11549 displaced_step_fixup on the parent.
11550 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11551 to std::unique_ptr.
11552 <step_closure>: Change type to std::unique_ptr.
11553
5f661e03
SM
115542020-02-14 Simon Marchi <simon.marchi@efficios.com>
11555
11556 * arm-tdep.c: Include count-one-bits.h.
11557 (cleanup_block_store_pc): Use count_one_bits.
11558 (cleanup_block_load_pc): Use count_one_bits.
11559 (arm_copy_block_xfer): Use count_one_bits.
11560 (thumb2_copy_block_xfer): Use count_one_bits.
11561 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11562 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11563 (thumb_get_next_pcs_raw): Use count_one_bits.
11564 (arm_get_next_pcs_raw): Use count_one_bits_l.
11565 * arch/arm.c (bitcount): Remove.
11566 * arch/arm.h (bitcount): Remove.
11567
8084e579
TT
115682020-02-14 Tom Tromey <tromey@adacore.com>
11569
11570 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11571 Update.
11572 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11573 * dwarf2/loc.c (call_site_find_chain_1): Return
11574 unique_xmalloc_ptr.
11575 (call_site_find_chain): Likewise.
11576
258bf0ee
RB
115772020-02-14 Richard Biener <rguenther@suse.de>
11578
11579 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11580 on expression with division operators.
11581
f98a8458
AKS
115822020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11583
11584 * MAINTAINERS (Write After Approval): Adding myself.
11585
d1437c0e
TT
115862020-02-12 Tom Tromey <tom@tromey.com>
11587
11588 * event-loop.c (event_data, gdb_event, event_handler_func):
11589 Remove.
11590
3d4560f7
TT
115912020-02-12 Tom Tromey <tom@tromey.com>
11592
11593 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11594 (dwarf2_frame_objfile_data): Add comment.
11595 (find_comp_unit, set_comp_unit): New functions.
11596 (dwarf2_frame_find_fde): Use find_comp_unit.
11597 (dwarf2_build_frame_info): Use set_comp_unit.
11598
21982304
TT
115992020-02-12 Tom Tromey <tom@tromey.com>
11600
11601 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11602 (comp_unit): Don't initialize objfile.
11603 (execute_cfa_program): Add text_offset parameter.
11604 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11605 (dwarf2_frame_cache): Update.
11606 (dwarf2_build_frame_info): Don't set "objfile" member.
11607
4debb237
TT
116082020-02-12 Tom Tromey <tom@tromey.com>
11609
11610 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11611 (decode_frame_entry): Likewise.
11612 (dwarf2_build_frame_info): Update.
11613
0d404d44
TT
116142020-02-12 Tom Tromey <tom@tromey.com>
11615
11616 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11617 (decode_frame_entry_1): Use the comp_unit obstack.
11618
a7a3ae5c
TT
116192020-02-12 Tom Tromey <tom@tromey.com>
11620
11621 * dwarf2/frame.c (struct comp_unit): Add initializers and
11622 constructor.
11623 (dwarf2_frame_objfile_data): Store a comp_unit.
11624 (dwarf2_frame_find_fde): Update.
11625 (dwarf2_build_frame_info): Use "new".
11626
a9d65418
TT
116272020-02-12 Tom Tromey <tom@tromey.com>
11628
11629 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11630 (dwarf2_fde_table): Typedef for std::vector.
11631 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11632 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11633 (decode_frame_entry): Update.
11634 (dwarf2_build_frame_info): Use "new".
11635
7559c217
CB
116362020-02-12 Christian Biesinger <cbiesinger@google.com>
11637
11638 * arm-tdep.c (arm_gdbarch_init): Update.
11639 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11640 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11641 have_neon, is_m>: Change to bool.
11642
aeefc73c
CB
116432020-02-12 Christian Biesinger <cbiesinger@google.com>
11644
11645 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11646
d27b8e5f
TT
116472020-02-12 Tom Tromey <tom@tromey.com>
11648
11649 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11650
cd5900f3
HD
116512020-02-12 Hannes Domani <ssbssa@yahoo.de>
11652
11653 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11654 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11655
f056b22b
TT
116562020-02-11 Tom Tromey <tom@tromey.com>
11657
11658 * psymtab.h: Update comment.
11659
f92ff6b5
TT
116602020-02-11 Tom Tromey <tom@tromey.com>
11661
11662 * gdb_obstack.h (struct auto_obstack): Use
11663 DISABLE_COPY_AND_ASSIGN.
11664
3fd6912b
TT
116652020-02-11 Tom Tromey <tom@tromey.com>
11666
11667 * dwarf2/frame.h (struct objfile): Don't forward declare.
11668
69ed9b74
CB
116692020-02-11 Christian Biesinger <cbiesinger@google.com>
11670
11671 * cris-tdep.c (cris_supply_gregset): Change signature to match
11672 what struct regset expects.
11673 (cris_regset): New struct.
11674 (fetch_core_registers): Remove.
11675 (cris_iterate_over_regset_sections): New function.
11676 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11677 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11678
bda874f6
CB
116792020-02-11 Christian Biesinger <cbiesinger@google.com>
11680
11681 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11682 registers.
11683
754e1564
CB
116842020-02-11 Christian Biesinger <cbiesinger@google.com>
11685
11686 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11687
8ddd8e0e
SM
116882020-02-11 Simon Marchi <simon.marchi@efficios.com>
11689
11690 * configure: Re-generate.
11691
898e7f60
SM
116922020-02-11 Simon Marchi <simon.marchi@efficios.com>
11693
11694 * configure: Re-generate.
11695
58df732b
SM
116962020-02-11 Simon Marchi <simon.marchi@efficios.com>
11697
11698 * acinclude: Update warning.m4 path.
11699 * warning.m4: Move to gdbsupport.
11700
da5bd37e
TT
117012020-02-11 Tom Tromey <tromey@adacore.com>
11702
11703 * remote.c (remote_console_output): Update.
11704 * printcmd.c (printf_command): Update.
11705 * event-loop.c (gdb_wait_for_event): Update.
11706 * linux-nat.c (sigchld_handler): Update.
11707 * remote-sim.c (gdb_os_write_stdout): Update.
11708 (gdb_os_flush_stdout): Update.
11709 (gdb_os_flush_stderr): Update.
11710 (gdb_os_write_stderr): Update.
11711 * exceptions.c (print_exception): Update.
11712 * remote-fileio.c (remote_fileio_func_read): Update.
11713 (remote_fileio_func_write): Update.
11714 * tui/tui.c (tui_enable): Update.
11715 * tui/tui-interp.c (tui_interp::init): Update.
11716 * utils.c (init_page_info): Update.
11717 (putchar_unfiltered, fputc_unfiltered): Update.
11718 (gdb_flush): Update.
11719 (emit_style_escape): Update.
11720 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11721 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11722 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11723 (stderr_file::write): Update.
11724 (stderr_file::puts): Update.
11725 * ui-file.h (ui_file_isatty, ui_file_write)
11726 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11727 (ui_file_puts): Don't declare.
11728
85f0dd3c
TV
117292020-02-10 Tom de Vries <tdevries@suse.de>
11730
11731 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11732 sentinel to char *.
11733
2e927613
TV
117342020-02-09 Tom de Vries <tdevries@suse.de>
11735
11736 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11737 filename if it matches "<artificial>".
11738
6bafc845
HD
117392020-02-09 Hannes Domani <ssbssa@yahoo.de>
11740
11741 * windows-tdep.c (struct enum_value_name): New struct.
11742 (create_enum): New function.
11743 (windows_get_siginfo_type): Create and use enum types.
11744
7928d571
HD
117452020-02-09 Hannes Domani <ssbssa@yahoo.de>
11746
11747 * NEWS: Mention $_siginfo support for Windows.
11748 * windows-nat.c (handle_exception): Set siginfo_er.
11749 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11750 (windows_xfer_siginfo): New function.
11751 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11752 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11753 (init_windows_gdbarch_data): New function.
11754 (get_windows_gdbarch_data): New function.
11755 (windows_get_siginfo_type): New function.
11756 (windows_init_abi): Register windows_get_siginfo_type.
11757 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11758
6751ebae
TT
117592020-02-08 Tom Tromey <tom@tromey.com>
11760
11761 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11762 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11763 <keep>: Declare method.
11764 <m_keep>: Remove member.
11765 <~cutu_reader>: Remove.
11766 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11767 (cutu_reader::cutu_reader): Update.
11768 (cutu_reader::keep): Rename from ~cutu_reader.
11769 (process_psymtab_comp_unit, build_type_psymtabs_1)
11770 (process_skeletonless_type_unit, load_partial_comp_unit)
11771 (load_full_comp_unit, dwarf2_read_addr_index)
11772 (read_signatured_type): Update.
11773
135f5437
TT
117742020-02-08 Tom Tromey <tom@tromey.com>
11775
11776 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11777 "want_partial_unit" parameter.
11778 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11779 Inline check for DW_TAG_partial_unit.
11780 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11781
9f66ff1c
TT
117822020-02-08 Tom Tromey <tom@tromey.com>
11783
11784 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11785 read.c.
11786 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11787 read.c.
11788
c8a7a66f
TT
117892020-02-08 Tom Tromey <tom@tromey.com>
11790
11791 * dwarf2/read.c (read_address): Move to comp-unit.c.
11792 (dwarf2_rnglists_process, dwarf2_ranges_process)
11793 (read_attribute_value, dwarf_decode_lines_1)
11794 (var_decode_location, decode_locdesc): Update.
11795 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11796 read.c. Remove "cu" parameter.
11797 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11798 method.
11799
8266302d
TT
118002020-02-08 Tom Tromey <tom@tromey.com>
11801
11802 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11803 (read_indirect_line_string): Update.
11804 * dwarf2/comp-unit.c (read_offset): Remove.
11805 (read_comp_unit_head): Update.
11806 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11807 method.
11808 (read_offset): Don't declare.
11809
4057dfde
TT
118102020-02-08 Tom Tromey <tom@tromey.com>
11811
11812 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11813 * dwarf2/read.c (struct comp_unit_head): Move to
11814 dwarf2/comp-unit.h.
11815 (enum class rcuh_kind): Move to comp-unit.h.
11816 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11817 (read_comp_unit_head, error_check_comp_unit_head)
11818 (read_and_check_comp_unit_head): Move to comp-unit.c.
11819 (read_offset, dwarf_unit_type_name): Likewise.
11820 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11821 (cutu_reader::cutu_reader, read_call_site_scope)
11822 (find_partial_die, follow_die_offset): Update.
11823 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11824
24aa364d
TT
118252020-02-08 Tom Tromey <tom@tromey.com>
11826
11827 * dwarf2/read.c (read_offset_1): Move to leb.c.
11828 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11829 (dwarf_decode_macro_bytes): Update.
11830 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11831 * dwarf2/leb.h (read_offset): Declare.
11832
2c7d5afc
TT
118332020-02-08 Tom Tromey <tom@tromey.com>
11834
11835 * dwarf2/read.c (dwarf2_section_size): Remove.
11836 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11837 Update.
11838 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11839
4075cb26
TT
118402020-02-08 Tom Tromey <tom@tromey.com>
11841
11842 * dwarf2/read.c (read_initial_length): Move to leb.c.
11843 * dwarf2/leb.h (read_initial_length): Declare.
11844 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11845 handle_nonstd parameter.
11846 * dwarf2/frame.c (read_initial_length): Remove.
11847 (decode_frame_entry_1): Update.
11848
09ba997f
TT
118492020-02-08 Tom Tromey <tom@tromey.com>
11850
11851 * dwarf2/loc.c (dwarf2_find_location_expression)
11852 (dwarf_evaluate_loc_desc::get_tls_address)
11853 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11854 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11855 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11856 (dwarf2_compile_property_to_c)
11857 (dwarf2_loc_desc_get_symbol_read_needs)
11858 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11859 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11860 (loclist_describe_location, loclist_tracepoint_var_ref)
11861 (loclist_generate_c_location): Update.
11862 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11863 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11864 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11865 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11866 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11867 (dwarf2_per_cu_data::addr_size)
11868 (dwarf2_per_cu_data::ref_addr_size)
11869 (dwarf2_per_cu_data::text_offset)
11870 (dwarf2_per_cu_data::addr_type): Now methods.
11871 (per_cu_header_read_in): Make per_cu "const".
11872 (dwarf2_version): Remove.
11873 (dwarf2_per_cu_data::int_type): Now a method.
11874 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11875 (set_die_type, read_array_type, read_subrange_index_type)
11876 (read_tag_string_type, read_subrange_type): Update.
11877 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11878 offset_size, ref_addr_size, text_offset, addr_type, version,
11879 objfile, int_type, addr_sized_int_type>: Declare methods.
11880
96c738c0
TT
118812020-02-08 Tom Tromey <tom@tromey.com>
11882
11883 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11884 Move earlier.
11885
8fdd972c
TT
118862020-02-08 Tom Tromey <tom@tromey.com>
11887
11888 * dwarf2/read.h (dwarf_line_debug): Declare.
11889 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11890 * dwarf2/read.c: Move line_header code to new files.
11891 (dwarf_line_debug): No longer static.
11892 * dwarf2/line-header.c: New file.
11893 * dwarf2/line-header.h: New file.
11894
03075812
TT
118952020-02-08 Tom Tromey <tom@tromey.com>
11896
11897 * dwarf2/read.c (struct line_header) <file_full_name,
11898 file_file_name>: Return unique_xmalloc_ptr.
11899 (line_header::file_file_name): Update.
11900 (line_header::file_full_name): Update.
11901 (dw2_get_file_names_reader): Update.
11902 (macro_start_file): Update.
11903
bb822404
TT
119042020-02-08 Tom Tromey <tom@tromey.com>
11905
11906 * dwarf2/read.c (struct line_header) <file_full_name,
11907 file_file_name>: Declare methods.
11908 (dw2_get_file_names_reader): Update.
11909 (file_file_name): Now a method.
11910 (file_full_name): Likewise.
11911 (macro_start_file): Update.
11912
009b64fc
TT
119132020-02-08 Tom Tromey <tom@tromey.com>
11914
11915 * dwarf2/read.c (dwarf_always_disassemble)
11916 (show_dwarf_always_disassemble): Move to loc.c.
11917 (_initialize_dwarf2_read): Move "always-disassemble" registration
11918 to loc.c.
11919 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11920 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11921 static.
11922 (show_dwarf_always_disassemble): Move from read.c.
11923 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11924
5895093f
TT
119252020-02-08 Tom Tromey <tom@tromey.com>
11926
11927 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11928 (create_quick_file_names_table): Return htab_up.
11929 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11930 Update.
11931 * dwarf2/read.h (struct dwarf2_per_objfile)
11932 <quick_file_names_table>: Now htab_up.
11933
b3b32279
TT
119342020-02-08 Tom Tromey <tom@tromey.com>
11935
11936 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11937
1d33d811
TT
119382020-02-08 Tom Tromey <tom@tromey.com>
11939
11940 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11941 Rewrite.
11942 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11943 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11944 (abbrev_table::abbrev_table): No longer inline.
11945 (ABBREV_HASH_SIZE): Remove.
11946 (abbrev_table::m_abbrevs): Now an htab_up.
11947
86de1d91
TT
119482020-02-08 Tom Tromey <tom@tromey.com>
11949
11950 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11951 (cutu_reader): Update.
11952 (build_type_psymtabs_1): Update.
11953 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11954 (abbrev_table::alloc_abbrev): Update.
11955 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11956 (abbrev_table::read): New static method, renamed from
11957 abbrev_table_read_table.
11958 (abbrev_table::alloc_abbrev)
11959 (abbrev_table::add_abbrev): Now private.
11960 (abbrev_table::abbrev_table): Now private.
11961 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11962
0335378b
TT
119632020-02-08 Tom Tromey <tom@tromey.com>
11964
11965 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11966 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11967 htab_up.
11968
48b490f2
TT
119692020-02-08 Tom Tromey <tom@tromey.com>
11970
11971 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11972 htab_up.
11973 (lookup_dwo_unit_in_dwp): Update.
11974 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11975 on obstack.
11976
bc68fb19
TT
119772020-02-08 Tom Tromey <tom@tromey.com>
11978
11979 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11980 obstack.
11981
d15acc42
TT
119822020-02-08 Tom Tromey <tom@tromey.com>
11983
11984 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11985 line_header_hash.
11986 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11987 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11988 Change type to htab_up.
11989
eaa5fa8b
TT
119902020-02-08 Tom Tromey <tom@tromey.com>
11991
11992 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11993 htab_up. Don't allocate on obstack.
11994 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11995 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11996 Change type to htab_up.
11997
b0b6a987
TT
119982020-02-08 Tom Tromey <tom@tromey.com>
11999
12000 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12001 Change type to htab_up.
12002 * dwarf2/read.c (create_signatured_type_table_from_index)
12003 (create_signatured_type_table_from_debug_names)
12004 (create_all_type_units, add_type_unit)
12005 (lookup_dwo_signatured_type, lookup_signatured_type)
12006 (process_skeletonless_type_unit): Update.
12007 (create_debug_type_hash_table, create_debug_types_hash_table):
12008 Change type of types_htab.
12009 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12010 htab_up. Don't allocate on obstack.
12011 (create_cus_hash_table): Change type of cus_htab parameter.
12012 (struct dwo_file) <cus, tus>: Now htab_up.
12013 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12014 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12015 (queue_and_load_all_dwo_tus): Update.
12016 * dwarf2/index-write.c (write_gdbindex): Update.
12017 (write_debug_names): Update.
12018
39856def
TT
120192020-02-08 Tom Tromey <tom@tromey.com>
12020
12021 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12022 dwarf2/read.c. Remove "next" member. Add constructor ntad
12023 destructor.
12024 (struct dwarf2_per_objfile) <queue>: New member.
12025 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12026 dwarf2/read.h.
12027 (dwarf2_queue, dwarf2_queue_tail): Remove.
12028 (class dwarf2_queue_guard): Add parameter to constructor. Use
12029 DISABLE_COPY_AND_ASSIGN.
12030 <m_per_objfile>: New member.
12031 <~dwarf2_queue_guard>: Rewrite.
12032 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12033 Update.
12034 (~dwarf2_queue_item): New.
12035
3e225074
TT
120362020-02-08 Tom Tromey <tom@tromey.com>
12037
12038 * dwarf2/read.c (struct die_info) <has_children>: New member.
12039 (dw2_get_file_names_reader): Remove has_children.
12040 (dw2_get_file_names): Update.
12041 (read_cutu_die_from_dwo): Remove has_children.
12042 (cutu_reader::init_tu_and_read_dwo_dies)
12043 (cutu_reader::cutu_reader): Update.
12044 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12045 Remove has_children.
12046 (build_type_psymtabs_1, process_skeletonless_type_unit)
12047 (load_partial_comp_unit, load_full_comp_unit): Update.
12048 (create_dwo_cu_reader): Remove has_children.
12049 (create_cus_hash_table, read_die_and_children): Update.
12050 (read_full_die_1,read_full_die): Remove has_children.
12051 (read_signatured_type): Update.
12052 (class cutu_reader) <has_children>: Remove.
12053
82ca8957
TT
120542020-02-08 Tom Tromey <tom@tromey.com>
12055
12056 * dwarf2/expr.c: Rename from dwarf2expr.c.
12057 * dwarf2/expr.h: Rename from dwarf2expr.h.
12058 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12059 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12060 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12061 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12062 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12063 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12064 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12065 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12066 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12067 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12068 * dwarf2/loc.c: Rename from dwarf2loc.c.
12069 * dwarf2/loc.h: Rename from dwarf2loc.h.
12070 * dwarf2/read.c: Rename from dwarf2read.c.
12071 * dwarf2/read.h: Rename from dwarf2read.h.
12072 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12073 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12074 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12075 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12076 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12077 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12078 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12079 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12080 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12081 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12082 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12083 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12084 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12085 Update.
12086 * Makefile.in (COMMON_SFILES): Update.
12087 (HFILES_NO_SRCDIR): Update.
12088
9e35d499
TT
120892020-02-08 Tom Tromey <tom@tromey.com>
12090
12091 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12092 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12093
1eba2311
TT
120942020-02-08 Tom Tromey <tom@tromey.com>
12095
12096 * dwarf2read.h (struct die_info): Don't declare.
12097
e41c2da2
TT
120982020-02-08 Tom Tromey <tom@tromey.com>
12099
12100 * dwarf2read.h (die_info_ptr): Remove typedef.
12101
4fc6c0d5
TT
121022020-02-08 Tom Tromey <tom@tromey.com>
12103
12104 * dwarf2read.c (read_call_site_scope)
12105 (handle_data_member_location, dwarf2_add_member_fn)
12106 (mark_common_block_symbol_computed, read_common_block)
12107 (attr_to_dynamic_prop, partial_die_info::read)
12108 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12109 (dwarf2_symbol_mark_computed, set_die_type): Update.
12110 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12111 method.
12112 (attr_form_is_block): Don't declare.
12113 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12114
cd6c91b4
TT
121152020-02-08 Tom Tromey <tom@tromey.com>
12116
12117 * dwarf2read.c (dwarf2_find_base_address, )
12118 (read_call_site_scope, rust_containing_type)
12119 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12120 (handle_data_member_location, dwarf2_add_member_fn)
12121 (get_alignment, read_structure_type, process_structure_scope)
12122 (mark_common_block_symbol_computed, read_common_block)
12123 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12124 (partial_die_info::read, read_attribute_value, new_symbol)
12125 (lookup_die_type, dwarf2_get_ref_die_offset)
12126 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12127 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12128 (dwarf2_symbol_mark_computed): Update.
12129 * dwarf2/attribute.h (struct attribute) <value_as_address,
12130 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12131 methods.
12132 (value_as_address, attr_form_is_section_offset)
12133 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12134 * dwarf2/attribute.c (attribute::value_as_address)
12135 (attribute::form_is_section_offset, attribute::form_is_constant)
12136 (attribute::form_is_ref): Now methods.
12137
162dce55
TT
121382020-02-08 Tom Tromey <tom@tromey.com>
12139
12140 * dwarf2read.c (struct attribute, DW_STRING)
12141 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12142 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12143 (attr_form_is_block, attr_form_is_section_offset)
12144 (attr_form_is_constant, attr_form_is_ref): Move.
12145 * dwarf2/attribute.h: New file.
12146 * dwarf2/attribute.c: New file, from dwarf2read.c.
12147 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12148
3054dd54
TT
121492020-02-08 Tom Tromey <tom@tromey.com>
12150
12151 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12152 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12153 Move.
12154 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12155 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12156 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12157 abbrev.c.
12158 * dwarf2/abbrev.h: New file.
12159 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12160 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12161
96b79293
TT
121622020-02-08 Tom Tromey <tom@tromey.com>
12163
12164 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12165 (dwarf2_section_size, dwarf2_get_section_info)
12166 (create_signatured_type_table_from_debug_names)
12167 (create_addrmap_from_aranges, read_debug_names_from_section)
12168 (get_gdb_index_contents_from_section, read_comp_unit_head)
12169 (error_check_comp_unit_head, read_abbrev_offset)
12170 (create_debug_type_hash_table, init_cu_die_reader)
12171 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12172 (read_comp_units_from_section, create_cus_hash_table)
12173 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12174 (create_dwp_v2_section, dwarf2_rnglists_process)
12175 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12176 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12177 (read_indirect_string_from_dwz, read_addr_index_1)
12178 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12179 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12180 (fill_in_loclist_baton): Update.
12181 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12182 get_containing_section, get_bfd_owner, get_bfd_section,
12183 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12184 (dwarf2_read_section, get_section_name, get_section_file_name)
12185 (get_containing_section, get_section_bfd_owner)
12186 (get_section_bfd_section, get_section_name, get_section_file_name)
12187 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12188 declare.
12189 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12190 (dwarf2_section_info::get_bfd_owner)
12191 (dwarf2_section_info::get_bfd_section)
12192 (dwarf2_section_info::get_name)
12193 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12194 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12195 (dwarf2_section_info::read): Now methods.
12196 * dwarf-index-write.c (class debug_names): Update.
12197
2c86cff9
TT
121982020-02-08 Tom Tromey <tom@tromey.com>
12199
12200 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12201 Move to dwarf2/section.h.
12202 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12203 (get_section_bfd_section, get_section_name)
12204 (get_section_file_name, get_section_id, get_section_flags)
12205 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12206 dwarf2/section.c.
12207 * dwarf2/section.h: New file.
12208 * dwarf2/section.c: New file, from dwarf2read.c.
12209 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12210
f4382c45
TT
122112020-02-08 Tom Tromey <tom@tromey.com>
12212
12213 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12214 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12215 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12216 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12217 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12218 * dwarf2/leb.h: New file, from dwarf2read.c.
12219 * dwarf2/leb.c: New file, from dwarf2read.c.
12220 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12221 Remove.
12222 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12223 (COMMON_SFILES): Add dwarf2/leb.c.
12224
01840b7a
JB
122252020-02-08 Joel Brobecker <brobecker@adacore.com>
12226
12227 GDB 9.1 released.
12228
dfcb27e4
IB
122292020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12230
12231 PR gdb/25190:
aac66a4c
SM
12232 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12233 * gdb/remote.c (remote_console_output): Update.
12234 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12235 (ui_file_puts): ...this.
12236 * gdb/ui-file.h (ui_file_puts): Add declaration.
12237 * gdb/utils.c (emit_style_escape): Update.
12238 (flush_wrap_buffer): Update.
12239 (fputs_maybe_filtered): Update.
12240 (fputs_unfiltered): Add function.
dfcb27e4 12241
faa17681
IB
122422020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12243
aac66a4c
SM
12244 * gdb/event-loop.c (gdb_wait_for_event): Update.
12245 * gdb/printcmd.c (printf_command): Update.
12246 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12247 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12248 (gdb_os_flush_stderr): Update.
12249 * gdb/remote.c (remote_console_output): Update.
12250 * gdb/ui-file.c (gdb_flush): Rename to...
12251 (ui_file_flush): ...this.
12252 (stderr_file::write): Update.
12253 (stderr_file::puts): Update.
12254 * gdb/ui-file.h (gdb_flush): Rename to...
12255 (ui_file_flush): ...this.
12256 * gdb/utils.c (gdb_flush): Add function.
12257 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12258
5abbbe1d
TT
122592020-02-07 Tom Tromey <tromey@adacore.com>
12260
12261 PR breakpoints/24915:
12262 * source.c (find_and_open_source): Do not check basenames_may_differ.
12263
919adfe8
TT
122642020-02-07 Tom Tromey <tom@tromey.com>
12265
12266 * README: Update gdbserver documentation.
12267 * gdbserver: Move to top level.
12268 * configure.tgt (build_gdbserver): Remove.
12269 * configure.ac: Remove --enable-gdbserver.
12270 * configure: Rebuild.
12271 * Makefile.in (distclean): Don't mention gdbserver.
12272
1d5d29e7
SV
122732020-02-06 Shahab Vahedi <shahab@synopsys.com>
12274
12275 * source-cache.c (source_cache::ensure): Surround
12276 get_plain_source_lines with a try/catch.
12277 (source_cache::get_line_charpos): Get rid of try/catch
12278 and only check for the return value of "ensure".
12279 * tui/tui-source.c (tui_source_window::set_contents):
12280 Simplify "nlines" calculation.
12281
6eb1129c
SV
122822020-02-06 Shahab Vahedi <shahab@synopsys.com>
12283
12284 * MAINTAINERS (Write After Approval): Add myself.
12285
c6a42d11
CB
122862020-02-05 Christian Biesinger <cbiesinger@google.com>
12287
12288 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12289 function call.
12290
c8ecdda6
CB
122912020-02-05 Christian Biesinger <cbiesinger@google.com>
12292
12293 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12294
f6480e70
MR
122952020-02-05 Maciej W. Rozycki <macro@wdc.com>
12296
12297 * nat/riscv-linux-tdesc.h: New file.
12298 * nat/riscv-linux-tdesc.c: New file, taking code from...
12299 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12300 ... here.
12301 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12302 NATDEPFILES.
12303
dcc9fbc6
AB
123042020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12305
12306 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12307 we don't set the fake simulator ptid to the null_ptid.
12308
719546c4
SM
123092020-02-03 Simon Marchi <simon.marchi@efficios.com>
12310
12311 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12312 * gdbthread.h (class thread_info) <resumed>: Likewise.
12313 * infrun.c (resume_1): Likewise.
12314 (proceed): Likewise.
12315 (infrun_thread_stop_requested): Likewise.
12316 (stop_all_threads): Likewise.
12317 (handle_inferior_event): Likewise.
12318 (restart_threads): Likewise.
12319 (finish_step_over): Likewise.
12320 (keep_going_stepped_thread): Likewise.
12321 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12322 (linux_handle_extended_wait): Likewise.
12323 * record-btrace.c (get_thread_current_frame_id): Likewise.
12324 * record-full.c (record_full_wait_1): Likewise.
12325 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12326 * target.c (target_resume): Likewise.
12327 * thread.c (set_running_thread): Likewise.
12328
e409c542
AKS
123292020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12330
12331 * f-valprint.c (f77_print_array_1): Changed datatype of index
12332 variable to LONGEST from int to enable it to contain bound
12333 values correctly.
12334
ee98c0da
MR
123352020-02-03 Maciej W. Rozycki <macro@wdc.com>
12336
12337 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12338 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12339 offsets according to FLEN determined.
12340 (riscv_linux_nat_target::read_description): Determine FLEN
12341 dynamically.
12342 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12343 according to FLEN determined.
12344 (riscv_linux_nat_target::store_registers): Likewise.
12345
aa66aac4
SV
123462020-02-01 Shahab Vahedi <shahab@synopsys.com>
12347
12348 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12349 when reg->group is empty and reggroup is not.
12350
fd9faca8
TT
123512020-01-31 Tom Tromey <tromey@adacore.com>
12352
12353 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12354 Call beneath target's mourn_inferior after unpushing.
12355
42330a68
AB
123562020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12357
12358 PR tui/9765
12359 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12360 have enough lines to fill the screen, still return the lowest
12361 address we found.
12362
7a27a45b
AB
123632020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12364
12365 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12366 '-', '<', and '>' commands.
12367
c47f70e2
PA
123682020-01-29 Pedro Alves <palves@redhat.com>
12369 Sergio Durigan Junior <sergiodj@redhat.com>
12370
12371 * infcmd.c (construct_inferior_arguments): Assert that
12372 'argc' is greater than 0.
12373
5133a315
LM
123742020-01-29 Luis Machado <luis.machado@linaro.org>
12375
12376 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12377 (BRK_INSN_MASK): Define to 0xd4200000.
12378 (aarch64_program_breakpoint_here_p): New function.
12379 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12380 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12381 breakpoint.c.
12382 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12383 breakpoint.h
12384 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12385 call gdbarch_program_breakpoint_here_p.
12386 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12387 default_program_breakpoint_here_p, changed return type to bool and
12388 simplified.
12389 * breakpoint.h (program_breakpoint_here): Moved prototype to
12390 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12391 return type to bool.
12392 * gdbarch.c: Regenerate.
12393 * gdbarch.h: Regenerate.
12394 * gdbarch.sh (program_breakpoint_here_p): New method.
12395 * infrun.c (handle_signal_stop): Call
12396 gdbarch_program_breakpoint_here_p.
12397
168f8c6b
TT
123982020-01-26 Tom Tromey <tom@tromey.com>
12399
12400 * ctfread.c (struct ctf_fp_info): Reindent.
12401 (_initialize_ctfread): Remove.
12402
128a391f
TT
124032020-01-26 Tom Tromey <tom@tromey.com>
12404
12405 * psymtab.c (partial_map_expand_apply)
12406 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12407 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12408 (psym_print_stats, psym_expand_symtabs_for_function)
12409 (psym_map_symbol_filenames, psym_map_matching_symbols)
12410 (psym_expand_symtabs_matching)
12411 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12412 (maintenance_check_psymtabs): Use new methods.
12413 * psympriv.h (struct partial_symtab) <readin_p,
12414 get_compunit_symtab>: New methods.
12415 <readin, compunit_symtab>: Remove members.
12416 (struct standard_psymtab): New.
12417 (struct legacy_psymtab): Derive from standard_psymtab.
12418 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12419 standard_psymtab.
12420 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12421
0494dbec
TT
124222020-01-26 Tom Tromey <tom@tromey.com>
12423
12424 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12425 read_dependencies. Add assert.
12426 * psymtab.c (partial_symtab::read_dependencies): New method.
12427 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12428 method.
12429 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12430 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12431 read_dependencies.
12432 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12433 Add assert.
12434
8566b89b
TT
124352020-01-26 Tom Tromey <tom@tromey.com>
12436
12437 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12438 Call expand_psymtab.
12439 (xcoff_read_symtab): Call expand_psymtab.
12440 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12441 legacy_expand_psymtab.
12442 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12443 method.
12444 (struct legacy_psymtab) <expand_psymtab>: Implement.
12445 <legacy_expand_psymtab>: New member.
12446 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12447 (parse_partial_symbols): Set legacy_expand_psymtab.
12448 (psymtab_to_symtab_1): Change argument order. Call
12449 expand_psymtab.
12450 (new_psymtab): Set legacy_expand_psymtab.
12451 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12452 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12453 expand_psymtab.
12454 (dwarf2_psymtab::expand_psymtab): Rename from
12455 psymtab_to_symtab_1. Call expand_psymtab.
12456 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12457 (dbx_end_psymtab): Likewise.
12458 (dbx_psymtab_to_symtab_1): Change argument order. Call
12459 expand_psymtab.
12460 (dbx_read_symtab): Call expand_psymtab.
12461 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12462 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12463 (ctf_psymtab::read_symtab): Call expand_psymtab.
12464
077cbab2
TT
124652020-01-26 Tom Tromey <tom@tromey.com>
12466
12467 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12468 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12469 messages.
12470 * mdebugread.c (mdebug_read_symtab): Remove prints.
12471 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12472 assert.
12473 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12474
891813be
TT
124752020-01-26 Tom Tromey <tom@tromey.com>
12476
12477 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12478 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12479 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12480 legacy_symtab.
12481 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12482 * psymtab.c (psymtab_to_symtab): Call method.
12483 (dump_psymtab): Update.
12484 * psympriv.h (struct partial_symtab): Add virtual destructor.
12485 <read_symtab>: New method.
12486 (struct legacy_symtab): New.
12487 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12488 (struct pst_map) <pst>: Now a legacy_psymtab.
12489 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12490 (new_psymtab): Use legacy_psymtab.
12491 * dwarf2read.h (struct dwarf2_psymtab): New.
12492 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12493 * dwarf2read.c (dwarf2_create_include_psymtab)
12494 (dwarf2_build_include_psymtabs, create_type_unit_group)
12495 (create_partial_symtab, process_psymtab_comp_unit_reader)
12496 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12497 (set_partial_user): Use dwarf2_psymtab.
12498 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12499 (psymtab_to_symtab_1, process_full_comp_unit)
12500 (process_full_type_unit, dwarf2_ranges_read)
12501 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12502 (dwarf_decode_lines): Use dwarf2_psymtab.
12503 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12504 (add_address_entry_worker, write_one_signatured_type)
12505 (recursively_count_psymbols, recursively_write_psymbols)
12506 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12507 (write_debug_names): Likewise.
12508 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12509 <pst>: Now a legacy_psymtab.
12510 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12511 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12512 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12513 * ctfread.c (struct ctf_psymtab): New.
12514 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12515 ctf_psymtab.
12516 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12517 (create_partial_symtab): Return a ctf_psymtab.
12518 (scan_partial_symbols): Update.
12519
c3693a1d
TT
125202020-01-26 Tom Tromey <tom@tromey.com>
12521
12522 * xcoffread.c (xcoff_start_psymtab): Use new.
12523 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12524 renamed from start_psymtab_common.
12525 * psympriv.h (struct partial_symtab): Add new constructor.
12526 (start_psymtab_common): Don't declare.
12527 * mdebugread.c (parse_partial_symbols): Use new.
12528 * dwarf2read.c (create_partial_symtab): Use new.
12529 * dbxread.c (start_psymtab): Use new.
12530 * ctfread.c (create_partial_symtab): Use new.
12531
32caafd0
TT
125322020-01-26 Tom Tromey <tom@tromey.com>
12533
12534 * xcoffread.c (xcoff_end_psymtab): Use new.
12535 * psymtab.c (start_psymtab_common): Use new.
12536 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12537 Update.
12538 * psympriv.h (struct partial_symtab): Add parameters to
12539 constructor. Don't inline.
12540 (allocate_psymtab): Don't declare.
12541 * mdebugread.c (new_psymtab): Use new.
12542 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12543 * dbxread.c (dbx_end_psymtab): Use new.
12544
abaa2f23
TT
125452020-01-26 Tom Tromey <tom@tromey.com>
12546
12547 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12548 allocate_psymtab. Update documentation.
12549 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12550 allocate_psymtab. Do not use new.
12551 (allocate_psymtab): Use new. Update.
12552
6d94535f
TT
125532020-01-26 Tom Tromey <tom@tromey.com>
12554
12555 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12556 * psymtab.c (psym_print_stats): Update.
12557 * psympriv.h (struct partial_symtab) <readin,
12558 psymtabs_addrmap_supported, anonymous>: Now bool.
12559 * mdebugread.c (psymtab_to_symtab_1): Update.
12560 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12561 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12562 (process_full_comp_unit, process_full_type_unit): Update.
12563 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12564 * ctfread.c (psymtab_to_symtab): Update.
12565
6f17252b
TT
125662020-01-26 Tom Tromey <tom@tromey.com>
12567
12568 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12569 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12570 * psymtab.c (psymtab_storage): Delete psymtabs.
12571 (psymtab_storage::allocate_psymtab): Use new.
12572 (psymtab_storage::discard_psymtab): Use delete.
12573 * psympriv.h (struct partial_symtab): Add constructor and
12574 initializers.
12575
f6f1cebc
TT
125762020-01-26 Tom Tromey <tom@tromey.com>
12577
12578 * machoread.c: Do not include psympriv.h.
12579
e47e48f6
PW
125802020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12581
12582 * NEWS: Mention the new option and the set/show commands.
12583
a2fedca9
PW
125842020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12585
12586 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12587 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12588 (validate_exec_file): New variables, enums, functions.
12589 (exec_file_locate_attach, print_section_info): Style the filenames.
12590 (_initialize_exec): Install show_exec_file_mismatch_command and
12591 set_exec_file_mismatch_command.
12592 * gdbcore.h (validate_exec_file): Declare.
12593 * infcmd.c (attach_command): Call validate_exec_file.
12594 * remote.c ( remote_target::remote_add_inferior): Likewise.
12595
7ffa82e1
AB
125962020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12597
12598 * frame.c (find_frame_sal): Move call to get_next_frame into more
12599 inner scope.
12600 * inline-frame.c (inilne_state) <inline_state>: Update argument
12601 types.
12602 (inilne_state) <skipped_symbol>: Rename to...
12603 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12604 (skip_inline_frames): Build vector of skipped symbols and use this
12605 to reate the inline_state.
12606 (inline_skipped_symbol): Add a comment and some assertions, fetch
12607 skipped symbol from the list.
12608
3d92a3e3
AB
126092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12610
12611 * buildsym.c (lte_is_less_than): Delete.
12612 (buildsym_compunit::end_symtab_with_blockvector): Create local
12613 lambda function to sort line table entries, and use
12614 std::stable_sort instead of std::sort.
12615 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12616 markers when looking for a previous line.
12617
94a72be7
AB
126182020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12619
12620 * dwarf2read.c (lnp_state_machine::record_line): Include
12621 end_sequence parameter in debug print out. Record the line if we
12622 are at an end_sequence marker even if it's not the start of a
12623 statement.
12624 * symmisc.c (maintenance_print_one_line_table): Print end of
12625 sequence markers with 'END' not '0'.
12626
53af73bf
PA
126272020-01-24 Pedro Alves <palves@redhat.com>
12628
12629 PR gdb/25410
12630 * thread.c (scoped_restore_current_thread::restore): Use
12631 switch_to_inferior_no_thread.
12632 * exec.c: Include "progspace-and-thread.h".
12633 (add_target_sections, remove_target_sections):
12634 scoped_restore_current_pspace_and_thread instead of
12635 scoped_restore_current_thread.
12636 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12637 and aspace to the inferior before calling clone_program_space.
12638 Remove stale comment.
12639
3050c6f4
CB
126402020-01-24 Christian Biesinger <cbiesinger@google.com>
12641
12642 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12643 (arm_netbsd_nat_target::fetch_registers): ...this.
12644 (arm_nbsd_nat_target::store_registers): Rename to...
12645 (arm_netbsd_nat_target::store_registers): ...this.
12646
73685c7e
CB
126472020-01-24 Christian Biesinger <cbiesinger@google.com>
12648
12649 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12650 register_t.
12651
89203d40
CB
126522020-01-24 Christian Biesinger <cbiesinger@google.com>
12653
12654 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12655 Update comment.
12656 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12657 Likewise.
12658 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12659 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12660 the correct replacement (iterate_over_regset_sections).
12661 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12662 Update comment.
12663
1ba1ac88
AB
126642020-01-24 Graham Markall <graham.markall@embecosm.com>
12665
12666 PR gdb/23718
12667 * gdb/python/python.c (execute_gdb_command): Call
12668 async_enable_stdin in catch block.
12669
f3364a6d
AB
126702020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12671
12672 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12673 SWITCH_THRU_ALL_UIS.
12674
733d0a67
AB
126752020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12676
12677 PR tui/9765
12678 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12679 comment, add extra parameter, and update to store previous symbol
12680 when appropriate.
12681 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12682 add extra parameter.
12683 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12684 remove unneeded parameter, add try/catch around gdb_print_insn,
12685 rewrite to add items to asm_lines vector.
12686 (tui_find_backward_disassembly_start_address): New function.
12687 (tui_find_disassembly_address): Updated throughout.
12688 (tui_disasm_window::set_contents): Update for changes to
12689 tui_disassemble.
12690 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12691 number of lines to scroll.
12692
b3b3bada
SM
126932020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12694
12695 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12696 (SECT_OFF_DATA): Likewise.
12697 (SECT_OFF_RODATA): Likewise.
12698 (SECT_OFF_TEXT): Likewise.
12699 (SECT_OFF_BSS): Likewise.
12700 (struct objfile) <text_section_offset, data_section_offset>: New
12701 methods.
12702 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12703 objfile::text_section_offset.
12704 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12705 * coffread.c (coff_symtab_read): Likewise.
12706 (enter_linenos): Likewise.
12707 (process_coff_symbol): Likewise.
12708 * ctfread.c (get_objfile_text_range): Likewise.
12709 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12710 Use objfile::data_section_offset.
12711 * dwarf2-frame.c (execute_cfa_program): Use
12712 objfile::text_section_offset.
12713 (dwarf2_frame_find_fde): Likewise.
12714 * dwarf2read.c (create_addrmap_from_index): Likewise.
12715 (create_addrmap_from_aranges): Likewise.
12716 (dw2_find_pc_sect_compunit_symtab): Likewise.
12717 (process_psymtab_comp_unit_reader): Likewise.
12718 (add_partial_symbol): Likewise.
12719 (add_partial_subprogram): Likewise.
12720 (process_full_comp_unit): Likewise.
12721 (read_file_scope): Likewise.
12722 (read_func_scope): Likewise.
12723 (read_lexical_block_scope): Likewise.
12724 (read_call_site_scope): Likewise.
12725 (dwarf2_rnglists_process): Likewise.
12726 (dwarf2_ranges_process): Likewise.
12727 (dwarf2_ranges_read): Likewise.
12728 (dwarf_decode_lines_1): Likewise.
12729 (new_symbol): Likewise.
12730 (dwarf2_fetch_die_loc_sect_off): Likewise.
12731 (dwarf2_per_cu_text_offset): Likewise.
12732 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12733 * hppa-tdep.c (read_unwind_info): Likewise.
12734 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12735 * psympriv.h (struct partial_symtab): Likewise.
12736 * psymtab.c (find_pc_sect_psymtab): Likewise.
12737 * solib-svr4.c (enable_break): Likewise.
12738 * stap-probe.c (relocate_address): Use
12739 objfile::data_section_offset.
12740 * xcoffread.c (enter_line_range): Use
12741 objfile::text_section_offset.
12742 (read_xcoff_symtab): Likewise.
12743
ab53f382
SM
127442020-01-23 Simon Marchi <simon.marchi@efficios.com>
12745
12746 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12747 declaration to narrower scopes.
12748
e7eee665
SM
127492020-01-23 Simon Marchi <simon.marchi@efficios.com>
12750
12751 * darwin-nat.h (struct darwin_exception_msg, enum
12752 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12753 Move up.
12754 (class darwin_nat_target) <wait_1, check_new_threads,
12755 decode_exception_message, decode_message, stop_inferior,
12756 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12757 * darwin-nat.c (darwin_check_new_threads): Rename to...
12758 (darwin_nat_target::check_new_threads): ... this.
12759 (darwin_suspend_inferior_it): Remove.
12760 (darwin_decode_exception_message): Rename to...
12761 (darwin_nat_target::decode_exception_message): ... this.
12762 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12763 (darwin_decode_message): Rename to...
12764 (darwin_nat_target::decode_message): ... this.
12765 (cancel_breakpoint): Rename to...
12766 (darwin_nat_target::cancel_breakpoint): ... this.
12767 (darwin_wait): Rename to...
12768 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12769 instead of iterate_over_inferiors.
12770 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12771 (darwin_stop_inferior): Rename to...
12772 (darwin_nat_target::stop_inferior): ... this.
12773 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12774 (darwin_init_thread_list): Rename to...
12775 (darwin_nat_target::init_thread_list): ... this.
12776 (darwin_ptrace_him): Rename to...
12777 (darwin_nat_target::ptrace_him): ... this.
12778 (darwin_nat_target::create_inferior): Pass lambda function to
12779 fork_inferior.
12780 (darwin_nat_target::detach): Call stop_inferior instead of
12781 darwin_stop_inferior.
12782 * fork-inferior.h (fork_inferior): Change init_trace_fun
12783 parameter to gdb::function_view.
12784 * fork-inferior.c (fork_inferior): Likewise.
12785
c162ed3e
HD
127862020-01-23 Hannes Domani <ssbssa@yahoo.de>
12787
12788 * i386-cygwin-tdep.c (core_process_module_section): Update.
12789 * windows-nat.c (struct lm_info_windows): Add text_offset.
12790 (windows_xfer_shared_libraries): Update.
12791 * windows-tdep.c (windows_xfer_shared_library):
12792 Add text_offset_cached argument.
12793 * windows-tdep.h (windows_xfer_shared_library): Update.
12794
a1237872
SM
127952020-01-21 Simon Marchi <simon.marchi@efficios.com>
12796
12797 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12798
b3ee6dd9
SM
127992020-01-21 Simon Marchi <simon.marchi@efficios.com>
12800
12801 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12802 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12803 replace with range-based for.
12804 (gdbsim_interrupt_inferior): Remove.
12805 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12806 with a range-based for. Inline code from
12807 gdbsim_interrupt_inferior.
12808
f9fac3c8
SM
128092020-01-21 Simon Marchi <simon.marchi@efficios.com>
12810
12811 * infrun.c (proceed): Fix indentation.
12812
f6474de9
TT
128132020-01-21 Tom Tromey <tromey@adacore.com>
12814
12815 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12816 * python/python.c (python_extension_ops): Update.
12817 (gdbpy_colorize): New function.
12818 * python/lib/gdb/__init__.py (colorize): New function.
12819 * extension.h (ext_lang_colorize): Declare.
12820 * extension.c (ext_lang_colorize): New function.
12821 * extension-priv.h (struct extension_language_ops) <colorize>: New
12822 member.
12823 * cli/cli-style.c (_initialize_cli_style): Update help text.
12824
f0c702d4
LM
128252020-01-21 Luis Machado <luis.machado@linaro.org>
12826
12827 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12828 <cond>: Change type to bool.
12829 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12830 (aarch64_displaced_step_cb): Likewise.
12831 (aarch64_displaced_step_tb): Likewise.
12832
1ab139e5
LM
128332020-01-21 Luis Machado <luis.machado@linaro.org>
12834
12835 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12836 output.
12837
0c271889
LM
128382020-01-21 Luis Machado <luis.machado@linaro.org>
12839
12840 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12841 <pc_adjust>: Adjust the documentation.
12842 (aarch64_displaced_step_fixup): Check if PC really moved before
12843 adjusting it.
12844
4d89c1c7
TT
128452020-01-19 Tom Tromey <tom@tromey.com>
12846
12847 * disasm.c (~gdb_disassembler): New destructor.
12848 (gdb_buffered_insn_length): Call disassemble_free_target.
12849 * disasm.h (class gdb_disassembler): Declare destructor. Use
12850 DISABLE_COPY_AND_ASSIGN.
12851
c0ab21c2
TT
128522020-01-19 Tom Tromey <tom@tromey.com>
12853
12854 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12855 (die_reader_func_ftype): Remove.
12856 (cutu_reader): New class.
12857 (dw2_get_file_names_reader): Remove "data" parameter.
12858 (dw2_get_file_names): Use cutu_reader.
12859 (create_debug_type_hash_table): Update.
12860 (read_cutu_die_from_dwo): Update comment.
12861 (lookup_dwo_unit): Add dwo_name parameter.
12862 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12863 die_reader_func_ftype and data parameters.
12864 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12865 Remove die_reader_func_ftype and data parameters.
12866 (~cutu_reader): New; from init_cutu_and_read_dies.
12867 (cutu_reader::cutu_reader): Rename from
12868 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12869 and data parameters.
12870 (init_cutu_and_read_dies_simple): Remove.
12871 (struct process_psymtab_comp_unit_data): Remove.
12872 (process_psymtab_comp_unit_reader): Remove data parameter; add
12873 want_partial_unit and pretend_language parameters.
12874 (process_psymtab_comp_unit): Use cutu_reader.
12875 (build_type_psymtabs_reader): Remove data parameter.
12876 (build_type_psymtabs_1): Use cutu_reader.
12877 (process_skeletonless_type_unit): Likewise.
12878 (load_partial_comp_unit_reader): Remove.
12879 (load_partial_comp_unit): Use cutu_reader.
12880 (load_full_comp_unit_reader): Remove.
12881 (load_full_comp_unit): Use cutu_reader.
12882 (struct create_dwo_cu_data): Remove.
12883 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12884 dwo_unit parameters.
12885 (create_cus_hash_table): Use cutu_reader.
12886 (struct dwarf2_read_addr_index_data): Remove.
12887 (dwarf2_read_addr_index_reader): Remove.
12888 (dwarf2_read_addr_index): Use cutu_reader.
12889 (read_signatured_type_reader): Remove.
12890 (read_signatured_type): Use cutu_reader.
12891
45bbae5c
TT
128922020-01-19 Tom Tromey <tom@tromey.com>
12893
12894 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12895 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12896 (tui_wrefresh): Declare.
12897 * tui/tui-wingeneral.c (suppress_output): New global.
12898 (tui_suppress_output, ~tui_suppress_output): New constructor and
12899 destructor.
12900 (tui_wrefresh): New function.
12901 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12902 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12903 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12904 method.
12905 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12906 tui_wrefresh.
12907 (tui_data_window::no_refresh): New method.
12908 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12909 (tui_reg_command): Use tui_suppress_output
12910 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12911 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12912 method.
12913 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12914
4f13c1c0
TT
129152020-01-19 Tom Tromey <tom@tromey.com>
12916
12917 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12918 Handle case where symtab is null.
12919
fa47e446
SM
129202020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12921
12922 * linux-fork.c (one_fork_p): Simplify.
12923
26f42329
SM
129242020-01-17 Simon Marchi <simon.marchi@efficios.com>
12925
12926 * top.c (struct qt_args): Remove.
12927 (kill_or_detach): Change return type to void, replace `void *`
12928 parameter with a proper one.
12929 (print_inferior_quit_action): Likewise.
12930 (quit_confirm): Use range-based for loop to iterate over inferiors.
12931 (quit_force): Likewise.
12932
a9ac81b1
SM
129332020-01-17 Simon Marchi <simon.marchi@efficios.com>
12934
12935 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12936 `void *` parameter with proper parameters.
12937 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12938 (print_one_inferior): Change return type to void, replace `void *`
12939 parameter with proper parameters.
12940 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12941 inferiors.
12942 (get_other_inferior): Remove.
12943 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12944 inferiors.
12945
788eca49
SM
129462020-01-17 Simon Marchi <simon.marchi@efficios.com>
12947
12948 * mi/mi-interp.c (report_initial_inferior): Remove.
12949 (mi_interp::init): Use range-based for to iterate over inferiors.
12950
d9bc85b6
SM
129512020-01-17 Simon Marchi <simon.marchi@efficios.com>
12952
12953 * python/py-inferior.c (build_inferior_list): Remove.
12954 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12955
40c94099
CB
129562020-01-16 Christian Biesinger <cbiesinger@google.com>
12957
12958 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12959 (btrace_stitch_trace): Likewise.
12960 * charset.c (intermediate_encoding): Likewise (vaild).
12961 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12962 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12963 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12964
e0cdfe3c
HD
129652020-01-16 Hannes Domani <ssbssa@yahoo.de>
12966
12967 * windows-tdep.c (windows_get_tlb_type):
12968 Add rtl_user_process_parameters type.
12969
790f1718 129702020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12971 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12972
12973 PR build/24805
12974 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12975 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12976 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12977 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12978 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12979 (ps_plog): Redeclare exported functions with default visibility.
12980
3112ed97
NA
129812020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12982
12983 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12984 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12985
8dc3273e
SM
129862020-01-15 Simon Marchi <simon.marchi@efficios.com>
12987
12988 * infcmd.c (post_create_inferior): Use get_thread_regcache
12989 instead of get_current_regcache.
12990
ff47f4f0
TT
129912020-01-14 Tom Tromey <tom@tromey.com>
12992
12993 PR symtab/12535:
12994 * python/python.c (gdbpy_decode_line): Treat empty string the same
12995 as no argument.
12996
975f45b7
TT
129972020-01-14 Tom Tromey <tom@tromey.com>
12998
12999 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13000
25e57356
TT
130012020-01-14 Tom Tromey <tom@tromey.com>
13002
13003 * nat/linux-btrace.c: Don't include <config.h>.
13004 * nat/linux-ptrace.c: Don't include <config.h>.
13005 * nat/x86-linux-dregs.c: Don't include <config.h>.
13006
05ea2a05
TT
130072020-01-14 Tom Tromey <tom@tromey.com>
13008
13009 * configure: Rebuild.
13010 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13011
01027315
TT
130122020-01-14 Tom Tromey <tom@tromey.com>
13013
13014 * nat/x86-linux-dregs.c: Include configh.h.
13015 * nat/linux-ptrace.c: Include configh.h.
13016 * nat/linux-btrace.c: Include configh.h.
13017 * defs.h: Include config.h, bfd.h.
13018 * configure.ac: Don't source common.host.
13019 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13020 * configure: Rebuild.
13021 * acinclude.m4: Update path.
13022 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13023 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13024 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13025 (CLIBS): Add LIBSUPPORT.
13026 (CDEPS): Likewise.
13027 (COMMON_SFILES): Remove gdbsupport files.
13028 (HFILES_NO_SRCDIR): Likewise.
13029 (stamp-version): Update path to create-version.sh.
13030 (ALLDEPFILES): Remove gdbsupport files.
13031
b2ceabe8
TT
130322020-01-14 Tom Tromey <tom@tromey.com>
13033
13034 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13035 USE_WIN32API when needed.
13036 * configure.ac (USE_WIN32API): Don't define.
13037 (WIN32LIBS): Use WIN32APILIBS.
13038 * configure: Rebuild.
13039
25c51f71
TT
130402020-01-14 Tom Tromey <tom@tromey.com>
13041
13042 * configure: Rebuild.
13043 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13044
717c684d
BE
130452020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13046
13047 * skip.c (skip_function_command): Make skip w/o arguments use the
13048 name of the inlined function if pc is inside any inlined function.
13049
7da6a5b9
LM
130502020-01-14 Luis Machado <luis.machado@linaro.org>
13051
13052 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13053 * infrun.c (resume_1): Likewise.
13054 (handle_inferior_event): Remove stale comment.
13055 * linux-nat.c (linux_nat_target::resume): Update comments.
13056 (save_stop_reason): Likewise.
13057 (linux_nat_filter_event): Likewise.
13058 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13059
44e4c775
AB
130602020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13061
13062 * elfread.c (record_minimal_symbol): Set section index to 0 for
13063 non-allocatable sections.
13064
18a8505e
AT
13065
130662020-01-13 Ali Tamur <tamur@google.com>
13067
13068 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13069 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13070 to gdb::optional. Update comments.
13071 (dwo_file): Update comments.
13072 (read_attribute): Update API to take an additional out parameter,
13073 need_reprocess. This is used to mark attributes that need other
13074 attributes (e.g. str_offsets_base) for correct computation which may not
13075 have been read yet.
13076 (read_attribute_reprocess): New function declaration.
13077 (read_addr_index): Likewise.
13078 (read_dwo_str_index): Likewise.
13079 (read_stub_str_index): Likewise.
13080 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13081 (lookup_addr_base): New function definition.
13082 (lookup_ranges_base): Likewise.
13083 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13084 lookup_ranges_base.
13085 (init_cutu_and_read_dies): Update comments.
13086 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13087 unit. This is used to inherit parent's str_offsets_base and addr_base.
13088 Update comments.
13089 (init_cutu_and_read_dies_simple): Reflect API changes.
13090 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13091 (create_cus_hash_table): Change API to take parent compile unit.
13092 Reflect API changes.
13093 (open_and_init_dwo_file): Reflect API changes.
13094 (dwarf2_get_pc_bounds): Update comments.
13095 (dwarf2_record_block_ranges): Likewise.
13096 (read_full_die_1): Change implementation to reprocess attributes that
13097 need str_offsets_base and addr_base.
13098 (partial_die_info::read): Likewise.
13099 (read_attribute_reprocess): New function definition.
13100 (read_attribute_value): Change API to take an additional out parameter,
13101 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13102 when a non-dwo compile unit has index based attributes.
13103 (read_attribute): Reflect API changes.
13104 (read_addr_index_1): Reflect API changes. Update comments.
13105 (dwarf2_read_addr_index_data): Reflect API changes.
13106 (dwarf2_read_addr_index): Likewise.
13107 (read_str_index): Change API and implementation. This becomes a helper
13108 to be used by the new string index related methods. Update error
13109 message and comments.
13110 (read_dwo_str_index): New function definition.
13111 (read_stub_str_index): Likewise.
13112 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13113 * symfile.h (dwarf2_debug_sections): Likewise.
13114 * xcoffread.c (dwarf2_debug_sections): Likewise.
13115
0cac9354
SM
131162020-01-13 Simon Marchi <simon.marchi@efficios.com>
13117
13118 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13119 core_reg_sect type to gdb_byte *.
13120 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13121 * cris-tdep.c (fetch_core_registers): Likewise.
13122 * corelow.c (core_target::get_core_register_section): Change
13123 type of `contents` to gdb::byte_vector.
13124
9a6d629c
AB
131252020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13126
13127 * tui/tui-wingeneral.c (box_win): Position the title in the center
13128 of the border.
13129
d8b2f9e3
SM
131302020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13131
13132 * corelow.c (core_target::get_core_register_section): Use
13133 std::vector instead of alloca.
13134
bb564c58
SM
131352020-01-13 Simon Marchi <simon.marchi@efficios.com>
13136
13137 * warning.m4: Add -Wmissing-declarations to build_warnings.
13138 * configure: Re-generate.
13139
6b366111
SM
131402020-01-13 Simon Marchi <simon.marchi@efficios.com>
13141
13142 * python/python.c (init__gdb_module): Add declaration.
13143
6c265988
SM
131442020-01-13 Simon Marchi <simon.marchi@efficios.com>
13145
13146 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13147 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13148 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13149 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13150 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13151 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13152 * ada-exp.y (_initialize_ada_exp): Add declaration.
13153 * ada-lang.c (_initialize_ada_language): Add declaration.
13154 * ada-tasks.c (_initialize_tasks): Add declaration.
13155 * agent.c (_initialize_agent): Add declaration.
13156 * aix-thread.c (_initialize_aix_thread): Add declaration.
13157 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13158 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13159 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13160 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13161 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13162 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13163 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13164 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13165 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13166 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13167 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13168 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13169 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13170 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13171 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13172 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13173 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13174 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13175 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13176 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13177 * annotate.c (_initialize_annotate): Add declaration.
13178 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13179 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13180 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13181 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13182 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13183 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13184 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13185 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13186 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13187 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13188 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13189 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13190 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13191 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13192 * auto-load.c (_initialize_auto_load): Add declaration.
13193 * auxv.c (_initialize_auxv): Add declaration.
13194 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13195 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13196 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13197 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13198 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13199 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13200 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13201 * breakpoint.c (_initialize_breakpoint): Add declaration.
13202 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13203 * btrace.c (_initialize_btrace): Add declaration.
13204 * charset.c (_initialize_charset): Add declaration.
13205 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13206 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13207 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13208 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13209 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13210 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13211 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13212 * coffread.c (_initialize_coffread): Add declaration.
13213 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13214 * compile/compile.c (_initialize_compile): Add declaration.
13215 * complaints.c (_initialize_complaints): Add declaration.
13216 * completer.c (_initialize_completer): Add declaration.
13217 * copying.c (_initialize_copying): Add declaration.
13218 * corefile.c (_initialize_core): Add declaration.
13219 * corelow.c (_initialize_corelow): Add declaration.
13220 * cp-abi.c (_initialize_cp_abi): Add declaration.
13221 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13222 * cp-support.c (_initialize_cp_support): Add declaration.
13223 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13224 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13225 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13226 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13227 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13228 * ctfread.c (_initialize_ctfread): Add declaration.
13229 * d-lang.c (_initialize_d_language): Add declaration.
13230 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13231 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13232 * dbxread.c (_initialize_dbxread): Add declaration.
13233 * dcache.c (_initialize_dcache): Add declaration.
13234 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13235 * disasm.c (_initialize_disasm): Add declaration.
13236 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13237 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13238 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13239 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13240 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13241 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13242 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13243 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13244 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13245 * elfread.c (_initialize_elfread): Add declaration.
13246 * exec.c (_initialize_exec): Add declaration.
13247 * extension.c (_initialize_extension): Add declaration.
13248 * f-lang.c (_initialize_f_language): Add declaration.
13249 * f-valprint.c (_initialize_f_valprint): Add declaration.
13250 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13251 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13252 * filesystem.c (_initialize_filesystem): Add declaration.
13253 * findcmd.c (_initialize_mem_search): Add declaration.
13254 * findvar.c (_initialize_findvar): Add declaration.
13255 * fork-child.c (_initialize_fork_child): Add declaration.
13256 * frame-base.c (_initialize_frame_base): Add declaration.
13257 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13258 * frame.c (_initialize_frame): Add declaration.
13259 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13260 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13261 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13262 * gcore.c (_initialize_gcore): Add declaration.
13263 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13264 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13265 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13266 * gdbarch.c (_initialize_gdbarch): Add declaration.
13267 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13268 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13269 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13270 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13271 * go-lang.c (_initialize_go_language): Add declaration.
13272 * go32-nat.c (_initialize_go32_nat): Add declaration.
13273 * guile/guile.c (_initialize_guile): Add declaration.
13274 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13275 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13276 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13277 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13278 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13279 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13280 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13281 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13282 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13283 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13284 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13285 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13286 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13287 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13288 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13289 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13290 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13291 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13292 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13293 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13294 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13295 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13296 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13297 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13298 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13299 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13300 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13301 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13302 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13303 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13304 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13305 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13306 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13307 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13308 * infcall.c (_initialize_infcall): Add declaration.
13309 * infcmd.c (_initialize_infcmd): Add declaration.
13310 * inflow.c (_initialize_inflow): Add declaration.
13311 * infrun.c (_initialize_infrun): Add declaration.
13312 * interps.c (_initialize_interpreter): Add declaration.
13313 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13314 * jit.c (_initialize_jit): Add declaration.
13315 * language.c (_initialize_language): Add declaration.
13316 * linux-fork.c (_initialize_linux_fork): Add declaration.
13317 * linux-nat.c (_initialize_linux_nat): Add declaration.
13318 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13319 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13320 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13321 * m2-lang.c (_initialize_m2_language): Add declaration.
13322 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13323 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13324 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13325 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13326 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13327 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13328 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13329 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13330 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13331 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13332 * machoread.c (_initialize_machoread): Add declaration.
13333 * macrocmd.c (_initialize_macrocmd): Add declaration.
13334 * macroscope.c (_initialize_macroscope): Add declaration.
13335 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13336 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13337 * maint.c (_initialize_maint_cmds): Add declaration.
13338 * mdebugread.c (_initialize_mdebugread): Add declaration.
13339 * memattr.c (_initialize_mem): Add declaration.
13340 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13341 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13342 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13343 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13344 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13345 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13346 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13347 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13348 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13349 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13350 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13351 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13352 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13353 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13354 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13355 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13356 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13357 * mipsread.c (_initialize_mipsread): Add declaration.
13358 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13359 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13360 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13361 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13362 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13363 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13364 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13365 * nto-procfs.c (_initialize_procfs): Add declaration.
13366 * objc-lang.c (_initialize_objc_language): Add declaration.
13367 * observable.c (_initialize_observer): Add declaration.
13368 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13369 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13370 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13371 * osabi.c (_initialize_gdb_osabi): Add declaration.
13372 * osdata.c (_initialize_osdata): Add declaration.
13373 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13374 * parse.c (_initialize_parse): Add declaration.
13375 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13376 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13377 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13378 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13379 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13380 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13381 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13382 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13383 * printcmd.c (_initialize_printcmd): Add declaration.
13384 * probe.c (_initialize_probe): Add declaration.
13385 * proc-api.c (_initialize_proc_api): Add declaration.
13386 * proc-events.c (_initialize_proc_events): Add declaration.
13387 * proc-service.c (_initialize_proc_service): Add declaration.
13388 * procfs.c (_initialize_procfs): Add declaration.
13389 * producer.c (_initialize_producer): Add declaration.
13390 * psymtab.c (_initialize_psymtab): Add declaration.
13391 * python/python.c (_initialize_python): Add declaration.
13392 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13393 * record-btrace.c (_initialize_record_btrace): Add declaration.
13394 * record-full.c (_initialize_record_full): Add declaration.
13395 * record.c (_initialize_record): Add declaration.
13396 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13397 * regcache.c (_initialize_regcache): Add declaration.
13398 * reggroups.c (_initialize_reggroup): Add declaration.
13399 * remote-notif.c (_initialize_notif): Add declaration.
13400 * remote-sim.c (_initialize_remote_sim): Add declaration.
13401 * remote.c (_initialize_remote): Add declaration.
13402 * reverse.c (_initialize_reverse): Add declaration.
13403 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13404 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13405 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13406 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13407 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13408 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13409 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13410 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13411 Add declaration.
13412 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13413 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13414 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13415 * rust-exp.y (_initialize_rust_exp): Add declaration.
13416 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13417 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13418 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13419 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13420 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13421 * score-tdep.c (_initialize_score_tdep): Add declaration.
13422 * ser-go32.c (_initialize_ser_dos): Add declaration.
13423 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13424 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13425 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13426 * ser-uds.c (_initialize_ser_socket): Add declaration.
13427 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13428 * serial.c (_initialize_serial): Add declaration.
13429 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13430 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13431 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13432 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13433 * skip.c (_initialize_step_skip): Add declaration.
13434 * sol-thread.c (_initialize_sol_thread): Add declaration.
13435 * solib-aix.c (_initialize_solib_aix): Add declaration.
13436 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13437 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13438 * solib-frv.c (_initialize_frv_solib): Add declaration.
13439 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13440 * solib-target.c (_initialize_solib_target): Add declaration.
13441 * solib.c (_initialize_solib): Add declaration.
13442 * source-cache.c (_initialize_source_cache): Add declaration.
13443 * source.c (_initialize_source): Add declaration.
13444 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13445 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13446 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13447 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13448 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13449 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13450 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13451 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13452 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13453 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13454 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13455 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13456 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13457 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13458 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13459 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13460 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13461 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13462 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13463 * stabsread.c (_initialize_stabsread): Add declaration.
13464 * stack.c (_initialize_stack): Add declaration.
13465 * stap-probe.c (_initialize_stap_probe): Add declaration.
13466 * std-regs.c (_initialize_frame_reg): Add declaration.
13467 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13468 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13469 * symfile.c (_initialize_symfile): Add declaration.
13470 * symmisc.c (_initialize_symmisc): Add declaration.
13471 * symtab.c (_initialize_symtab): Add declaration.
13472 * target.c (_initialize_target): Add declaration.
13473 * target-connection.c (_initialize_target_connection): Add
13474 declaration.
13475 * target-dcache.c (_initialize_target_dcache): Add declaration.
13476 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13477 * thread.c (_initialize_thread): Add declaration.
13478 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13479 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13480 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13481 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13482 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13483 * tracectf.c (_initialize_ctf): Add declaration.
13484 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13485 * tracefile.c (_initialize_tracefile): Add declaration.
13486 * tracepoint.c (_initialize_tracepoint): Add declaration.
13487 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13488 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13489 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13490 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13491 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13492 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13493 * tui/tui.c (_initialize_tui): Add declaration.
13494 * typeprint.c (_initialize_typeprint): Add declaration.
13495 * ui-style.c (_initialize_ui_style): Add declaration.
13496 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13497 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13498 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13499 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13500 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13501 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13502 * unittests/filtered_iterator-selftests.c
13503 (_initialize_filtered_iterator_selftests): Add declaration.
13504 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13505 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13506 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13507 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13508 * unittests/main-thread-selftests.c
13509 (_initialize_main_thread_selftests): Add declaration.
13510 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13511 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13512 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13513 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13514 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13515 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13516 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13517 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13518 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13519 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13520 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13521 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13522 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13523 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13524 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13525 declaration.
13526 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13527 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13528 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13529 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13530 * user-regs.c (_initialize_user_regs): Add declaration.
13531 * utils.c (_initialize_utils): Add declaration.
13532 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13533 * valops.c (_initialize_valops): Add declaration.
13534 * valprint.c (_initialize_valprint): Add declaration.
13535 * value.c (_initialize_values): Add declaration.
13536 * varobj.c (_initialize_varobj): Add declaration.
13537 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13538 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13539 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13540 * windows-nat.c (_initialize_windows_nat): Add declaration.
13541 (_initialize_check_for_gdb_ini): Add declaration.
13542 (_initialize_loadable): Add declaration.
13543 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13544 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13545 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13546 * xcoffread.c (_initialize_xcoffread): Add declaration.
13547 * xml-support.c (_initialize_xml_support): Add declaration.
13548 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13549 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13550 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13551 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13552
e2de1eec
SM
135532020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13554
13555 * regformats/regdat.sh: Generate declaration for init function.
13556
e0037b4c
SM
135572020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13558
13559 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13560 up.
13561 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13562 close_one_inferior>: New methods.
13563 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13564 pass down target to find_inferior_pid.
13565 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13566 Pass down target to find_inferior_ptid.
13567 (gdbsim_target::create_inferior): Pass down target to
13568 add_thread_silent.
13569 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13570 target down to find_inferior_ptid and switch_to_thread.
13571 (gdbsim_target::close): Update to call close_one_inferior.
13572 (struct resume_data): Remove.
13573 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13574 directly, rather than through a void pointer.
13575 (gdbsim_target::resume): Update to call resume_one_inferior.
13576
58920b5b
SM
135772020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13578
13579 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13580
4ec89149
PA
135812020-01-12 Pedro Alves <palves@redhat.com>
13582
13583 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13584 directly for the current inferior instead of
13585 discard_all_inferiors.
13586 (discard_all_inferiors): Delete.
13587
7c392d1d
TT
135882020-01-11 Tom Tromey <tom@tromey.com>
13589
13590 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13591 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13592 deprecated_safe_get_selected_frame.
13593
d9ebdab7
TBA
135942020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13595
13596 * inferior.c (print_inferior): Switch inferior before printing it.
13597
f3c469b9
PA
135982020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13599 Pedro Alves <palves@redhat.com>
13600
13601 * progspace-and-thread.c (switch_to_program_space_and_thread):
13602 Assert there's an inferior for PSPACE. Use
13603 switch_to_inferior_no_thread to switch the inferior too.
13604 * progspace.c (program_space::~program_space): Call
13605 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13606 (program_space::free_all_objfiles): Don't call clear_symtab_users
13607 here.
13608 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13609
65c574f6
PA
136102020-01-10 Pedro Alves <palves@redhat.com>
13611
13612 * NEWS: Mention multi-target debugging, "info connections", and
13613 "add-inferior -no-connection".
13614
2f4fcf00
PA
136152020-01-10 Pedro Alves <palves@redhat.com>
13616
13617 * infrun.c: Include "target-connection.h".
13618 (check_multi_target_resumption): New.
13619 (proceed): Call it.
13620 * target-connection.c (make_target_connection_string): Make
13621 extern.
13622 * target-connection.h (make_target_connection_string): Declare.
13623
121b3efd
PA
136242020-01-10 Pedro Alves <palves@redhat.com>
13625
13626 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13627 * inferior.c (uiout_field_connection): New function.
13628 (print_inferior): Add new "connection-id" column.
13629 (add_inferior_command): Show connection number/string of added
13630 inferior.
13631 * process-stratum-target.h
13632 (process_stratum_target::connection_string): New virtual method.
13633 (process_stratum_target::connection_number): New field.
13634 * remote.c (remote_target::connection_string): New override.
13635 * target-connection.c: New file.
13636 * target-connection.h: New file.
13637 * target.c (decref_target): Remove process_stratum targets from
13638 the connection list.
13639 (target_stack::push): Add process_stratum targets to the
13640 connection list.
13641
4f837581
PA
136422020-01-10 Pedro Alves <palves@redhat.com>
13643
13644 Revert:
13645 2016-04-12 Pedro Alves <palves@redhat.com>
13646 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13647 Remove references to name.
13648 * serial.h (struct serial) <name>: Delete.
13649
f4ec508e
PA
136502020-01-10 Pedro Alves <palves@redhat.com>
13651
13652 * gdbarch-selftests.c (register_to_value_test): Remove "target
13653 already pushed" check.
13654
5b6d1e4f
PA
136552020-01-10 Pedro Alves <palves@redhat.com>
13656 John Baldwin <jhb@FreeBSD.org>
13657
13658 * aarch64-linux-nat.c
13659 (aarch64_linux_nat_target::thread_architecture): Adjust.
13660 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13661 (task_command_1): Likewise.
13662 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13663 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13664 (aix_thread_target::store_registers)
13665 (aix_thread_target::thread_alive): Adjust.
13666 * amd64-fbsd-tdep.c: Include "inferior.h".
13667 (amd64fbsd_get_thread_local_address): Pass down target.
13668 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13669 thread's gdbarch instead of target_gdbarch.
13670 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13671 get_last_target_status.
13672 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13673 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13674 inferiors.
13675 (update_inserted_breakpoint_locations): Skip if inferiors with no
13676 execution.
13677 (update_global_location_list): When handling moribund locations,
13678 find representative inferior for location's pspace, and use thread
13679 count of its process_stratum target.
13680 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13681 * bsd-uthread.c (bsd_uthread_target::wait): Use
13682 as_process_stratum_target and adjust thread_change_ptid and
13683 add_thread calls.
13684 (bsd_uthread_target::update_thread_list): Use
13685 as_process_stratum_target and adjust find_thread_ptid,
13686 thread_change_ptid and add_thread calls.
13687 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13688 find_thread_ptid call.
13689 * corelow.c (add_to_thread_list): Adjust add_thread call.
13690 (core_target_open): Adjust add_thread_silent and thread_count
13691 calls.
13692 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13693 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13694 * event-top.c (async_disconnect): Pop targets from all inferiors.
13695 * exec.c (add_target_sections): Push exec target on all inferiors
13696 sharing the program space.
13697 (remove_target_sections): Remove the exec target from all
13698 inferiors sharing the program space.
13699 (exec_on_vfork): New.
13700 * exec.h (exec_on_vfork): Declare.
13701 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13702 Pass it down.
13703 (fbsd_nat_target::update_thread_list): Adjust.
13704 (fbsd_nat_target::resume): Adjust.
13705 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13706 down.
13707 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13708 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13709 get_thread_arch_regcache call.
13710 * fork-child.c (gdb_startup_inferior): Pass target down to
13711 startup_inferior and set_executing.
13712 * gdbthread.h (struct process_stratum_target): Forward declare.
13713 (add_thread, add_thread_silent, add_thread_with_info)
13714 (in_thread_list): Add process_stratum_target parameter.
13715 (find_thread_ptid(inferior*, ptid_t)): New overload.
13716 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13717 parameter.
13718 (all_threads()): Delete overload.
13719 (all_threads, all_non_exited_threads): Add process_stratum_target
13720 parameter.
13721 (all_threads_safe): Use brace initialization.
13722 (thread_count): Add process_stratum_target parameter.
13723 (set_resumed, set_running, set_stop_requested, set_executing)
13724 (threads_are_executing, finish_thread_state): Add
13725 process_stratum_target parameter.
13726 (switch_to_thread): Use is_current_thread.
13727 * i386-fbsd-tdep.c: Include "inferior.h".
13728 (i386fbsd_get_thread_local_address): Pass down target.
13729 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13730 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13731 have_inferiors check.
13732 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13733 (inf_ptrace_target::attach): Adjust.
13734 * infcall.c (run_inferior_call): Adjust.
13735 * infcmd.c (run_command_1): Pass target to
13736 scoped_finish_thread_state.
13737 (proceed_thread_callback): Skip inferiors with no execution.
13738 (continue_command): Rename 'all_threads' local to avoid hiding
13739 'all_threads' function. Adjust get_last_target_status call.
13740 (prepare_one_step): Adjust set_running call.
13741 (signal_command): Use user_visible_resume_target. Compare thread
13742 pointers instead of inferior_ptid.
13743 (info_program_command): Adjust to pass down target.
13744 (attach_command): Mark target's 'thread_executing' flag.
13745 (stop_current_target_threads_ns): New, factored out from ...
13746 (interrupt_target_1): ... this. Switch inferior before making
13747 target calls.
13748 * inferior-iter.h
13749 (struct all_inferiors_iterator, struct all_inferiors_range)
13750 (struct all_inferiors_safe_range)
13751 (struct all_non_exited_inferiors_range): Filter on
13752 process_stratum_target too. Remove explicit.
13753 * inferior.c (inferior::inferior): Push dummy target on target
13754 stack.
13755 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13756 Add process_stratum_target parameter, and pass it down.
13757 (have_live_inferiors): Adjust.
13758 (switch_to_inferior_and_push_target): New.
13759 (add_inferior_command, clone_inferior_command): Handle
13760 "-no-connection" parameter. Use
13761 switch_to_inferior_and_push_target.
13762 (_initialize_inferior): Mention "-no-connection" option in
13763 the help of "add-inferior" and "clone-inferior" commands.
13764 * inferior.h: Include "process-stratum-target.h".
13765 (interrupt_target_1): Use bool.
13766 (struct inferior) <push_target, unpush_target, target_is_pushed,
13767 find_target_beneath, top_target, process_target, target_at,
13768 m_stack>: New.
13769 (discard_all_inferiors): Delete.
13770 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13771 (all_inferiors, all_non_exited_inferiors): Add
13772 process_stratum_target parameter.
13773 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13774 (target_last_proc_target): New global.
13775 (follow_fork_inferior): Push target on new inferior. Pass target
13776 to add_thread_silent. Call exec_on_vfork. Handle target's
13777 reference count.
13778 (follow_fork): Adjust get_last_target_status call. Also consider
13779 target.
13780 (follow_exec): Push target on new inferior.
13781 (struct execution_control_state) <target>: New field.
13782 (user_visible_resume_target): New.
13783 (do_target_resume): Call target_async.
13784 (resume_1): Set target's threads_executing flag. Consider resume
13785 target.
13786 (commit_resume_all_targets): New.
13787 (proceed): Also consider resume target. Skip threads of inferiors
13788 with no execution. Commit resumtion in all targets.
13789 (start_remote): Pass current inferior to wait_for_inferior.
13790 (infrun_thread_stop_requested): Consider target as well. Pass
13791 thread_info pointer to clear_inline_frame_state instead of ptid.
13792 (infrun_thread_thread_exit): Consider target as well.
13793 (random_pending_event_thread): New inferior parameter. Use it.
13794 (do_target_wait): Rename to ...
13795 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13796 down.
13797 (threads_are_resumed_pending_p, do_target_wait): New.
13798 (prepare_for_detach): Adjust calls.
13799 (wait_for_inferior): New inferior parameter. Handle it. Use
13800 do_target_wait_1 instead of do_target_wait.
13801 (fetch_inferior_event): Adjust. Switch to representative
13802 inferior. Pass target down.
13803 (set_last_target_status): Add process_stratum_target parameter.
13804 Save target in global.
13805 (get_last_target_status): Add process_stratum_target parameter and
13806 handle it.
13807 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13808 (context_switch): Check inferior_ptid == null_ptid before calling
13809 inferior_thread().
13810 (get_inferior_stop_soon): Pass down target.
13811 (wait_one): Rename to ...
13812 (poll_one_curr_target): ... this.
13813 (struct wait_one_event): New.
13814 (wait_one): New.
13815 (stop_all_threads): Adjust.
13816 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13817 event's target.
13818 (switch_back_to_stepped_thread): Also consider target.
13819 (print_stop_event): Update.
13820 (normal_stop): Update. Also consider the resume target.
13821 * infrun.h (wait_for_inferior): Remove declaration.
13822 (user_visible_resume_target): New declaration.
13823 (get_last_target_status, set_last_target_status): New
13824 process_stratum_target parameter.
13825 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13826 process_stratum_target parameter, and use it.
13827 (clear_inline_frame_state (thread_info*)): New.
13828 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13829 process_stratum_target parameter.
13830 (clear_inline_frame_state (thread_info*)): Declare.
13831 * linux-fork.c (delete_checkpoint_command): Pass target down to
13832 find_thread_ptid.
13833 (checkpoint_command): Adjust.
13834 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13835 instead of just tweaking inferior_ptid.
13836 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13837 (exit_lwp): Pass target down to find_thread_ptid.
13838 (attach_proc_task_lwp_callback): Pass target down to
13839 add_thread/set_running/set_executing.
13840 (linux_nat_target::attach): Pass target down to
13841 thread_change_ptid.
13842 (get_detach_signal): Pass target down to find_thread_ptid.
13843 Consider last target status's target.
13844 (linux_resume_one_lwp_throw, resume_lwp)
13845 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13846 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13847 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13848 (linux_nat_target::async_wait_fd): New.
13849 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13850 target down.
13851 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13852 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13853 * linux-thread-db.c (struct thread_db_info::process_target): New
13854 field.
13855 (add_thread_db_info): Save target.
13856 (get_thread_db_info): New process_stratum_target parameter. Also
13857 match target.
13858 (delete_thread_db_info): New process_stratum_target parameter.
13859 Also match target.
13860 (thread_from_lwp): Adjust to pass down target.
13861 (thread_db_notice_clone): Pass down target.
13862 (check_thread_db_callback): Pass down target.
13863 (try_thread_db_load_1): Always push the thread_db target.
13864 (try_thread_db_load, record_thread): Pass target down.
13865 (thread_db_target::detach): Pass target down. Always unpush the
13866 thread_db target.
13867 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13868 target down. Always unpush the thread_db target.
13869 (find_new_threads_callback, thread_db_find_new_threads_2)
13870 (thread_db_target::update_thread_list): Pass target down.
13871 (thread_db_target::pid_to_str): Pass current inferior down.
13872 (thread_db_target::get_thread_local_address): Pass target down.
13873 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13874 target down.
13875 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13876 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13877 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13878 (procfs_init_inferior): Rename to ...
13879 (procfs_target::procfs_init_inferior): ... this and adjust.
13880 (procfs_target::create_inferior, procfs_notice_thread)
13881 (procfs_do_thread_registers): Adjust.
13882 * ppc-fbsd-tdep.c: Include "inferior.h".
13883 (ppcfbsd_get_thread_local_address): Pass down target.
13884 * proc-service.c (ps_xfer_memory): Switch current inferior and
13885 program space as well.
13886 (get_ps_regcache): Pass target down.
13887 * process-stratum-target.c
13888 (process_stratum_target::thread_address_space)
13889 (process_stratum_target::thread_architecture): Pass target down.
13890 * process-stratum-target.h
13891 (process_stratum_target::threads_executing): New field.
13892 (as_process_stratum_target): New.
13893 * ravenscar-thread.c
13894 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13895 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13896 down.
13897 * record-btrace.c (record_btrace_target::info_record): Adjust.
13898 (record_btrace_target::record_method)
13899 (record_btrace_target::record_is_replaying)
13900 (record_btrace_target::fetch_registers)
13901 (get_thread_current_frame_id, record_btrace_target::resume)
13902 (record_btrace_target::wait, record_btrace_target::stop): Pass
13903 target down.
13904 * record-full.c (record_full_wait_1): Switch to event thread.
13905 Pass target down.
13906 * regcache.c (regcache::regcache)
13907 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13908 process_stratum_target parameter and handle it.
13909 (current_thread_target): New global.
13910 (get_thread_regcache): Add process_stratum_target parameter and
13911 handle it. Switch inferior before calling target method.
13912 (get_thread_regcache): Pass target down.
13913 (get_thread_regcache_for_ptid): Pass target down.
13914 (registers_changed_ptid): Add process_stratum_target parameter and
13915 handle it.
13916 (registers_changed_thread, registers_changed): Pass target down.
13917 (test_get_thread_arch_aspace_regcache): New.
13918 (current_regcache_test): Define a couple local test_target_ops
13919 instances and use them for testing.
13920 (readwrite_regcache): Pass process_stratum_target parameter.
13921 (cooked_read_test, cooked_write_test): Pass mock_target down.
13922 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13923 (get_thread_arch_aspace_regcache): Add process_stratum_target
13924 parameter.
13925 (regcache::target): New method.
13926 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13927 (regcache::registers_changed_ptid): Add process_stratum_target
13928 parameter.
13929 (regcache::m_target): New field.
13930 (registers_changed_ptid): Add process_stratum_target parameter.
13931 * remote.c (remote_state::supports_vCont_probed): New field.
13932 (remote_target::async_wait_fd): New method.
13933 (remote_unpush_and_throw): Add remote_target parameter.
13934 (get_current_remote_target): Adjust.
13935 (remote_target::remote_add_inferior): Push target.
13936 (remote_target::remote_add_thread)
13937 (remote_target::remote_notice_new_inferior)
13938 (get_remote_thread_info): Pass target down.
13939 (remote_target::update_thread_list): Skip threads of inferiors
13940 bound to other targets. (remote_target::close): Don't discard
13941 inferiors. (remote_target::add_current_inferior_and_thread)
13942 (remote_target::process_initial_stop_replies)
13943 (remote_target::start_remote)
13944 (remote_target::remote_serial_quit_handler): Pass down target.
13945 (remote_target::remote_unpush_target): New remote_target
13946 parameter. Unpush the target from all inferiors.
13947 (remote_target::remote_unpush_and_throw): New remote_target
13948 parameter. Pass it down.
13949 (remote_target::open_1): Check whether the current inferior has
13950 execution instead of checking whether any inferior is live. Pass
13951 target down.
13952 (remote_target::remote_detach_1): Pass down target. Use
13953 remote_unpush_target.
13954 (extended_remote_target::attach): Pass down target.
13955 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13956 (remote_target::append_resumption): Pass down target.
13957 (remote_target::append_pending_thread_resumptions)
13958 (remote_target::remote_resume_with_hc, remote_target::resume)
13959 (remote_target::commit_resume): Pass down target.
13960 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13961 (remote_target::interrupt_query)
13962 (remote_target::remove_new_fork_children)
13963 (remote_target::check_pending_events_prevent_wildcard_vcont)
13964 (remote_target::remote_parse_stop_reply)
13965 (remote_target::process_stop_reply): Pass down target.
13966 (first_remote_resumed_thread): New remote_target parameter. Pass
13967 it down.
13968 (remote_target::wait_as): Pass down target.
13969 (unpush_and_perror): New remote_target parameter. Pass it down.
13970 (remote_target::readchar, remote_target::remote_serial_write)
13971 (remote_target::getpkt_or_notif_sane_1)
13972 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13973 down target.
13974 (remote_target::mourn_inferior): Pass down target. Use
13975 remote_unpush_target.
13976 (remote_target::core_of_thread)
13977 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13978 (remote_target::pid_to_exec_file)
13979 (remote_target::thread_handle_to_thread_info): Pass down target.
13980 (remote_target::async_wait_fd): New.
13981 * riscv-fbsd-tdep.c: Include "inferior.h".
13982 (riscv_fbsd_get_thread_local_address): Pass down target.
13983 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13984 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13985 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13986 Adjust.
13987 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13988 * solib-svr4.c (enable_break): Pass down target.
13989 * spu-multiarch.c (parse_spufs_run): Pass down target.
13990 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13991 * target-delegates.c: Regenerate.
13992 * target.c (g_target_stack): Delete.
13993 (current_top_target): Return the current inferior's top target.
13994 (target_has_execution_1): Refer to the passed-in inferior's top
13995 target.
13996 (target_supports_terminal_ours): Check whether the initial
13997 inferior was already created.
13998 (decref_target): New.
13999 (target_stack::push): Incref/decref the target.
14000 (push_target, push_target, unpush_target): Adjust.
14001 (target_stack::unpush): Defref target.
14002 (target_is_pushed): Return bool. Adjust to refer to the current
14003 inferior's target stack.
14004 (dispose_inferior): Delete, and inline parts ...
14005 (target_preopen): ... here. Only dispose of the current inferior.
14006 (target_detach): Hold strong target reference while detaching.
14007 Pass target down.
14008 (target_thread_name): Add assertion.
14009 (target_resume): Pass down target.
14010 (target_ops::beneath, find_target_at): Adjust to refer to the
14011 current inferior's target stack.
14012 (get_dummy_target): New.
14013 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14014 has a thread running.
14015 (initialize_targets): Rename to ...
14016 (_initialize_target): ... this.
14017 * target.h: Include "gdbsupport/refcounted-object.h".
14018 (struct target_ops): Inherit refcounted_object.
14019 (target_ops::shortname, target_ops::longname): Make const.
14020 (target_ops::async_wait_fd): New method.
14021 (decref_target): Declare.
14022 (struct target_ops_ref_policy): New.
14023 (target_ops_ref): New typedef.
14024 (get_dummy_target): Declare function.
14025 (target_is_pushed): Return bool.
14026 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14027 (all_matching_threads_iterator::all_matching_threads_iterator):
14028 Handle filter target.
14029 * thread-iter.h (struct all_matching_threads_iterator, struct
14030 all_matching_threads_range, class all_non_exited_threads_range):
14031 Filter by target too. Remove explicit.
14032 * thread.c (threads_executing): Delete.
14033 (inferior_thread): Pass down current inferior.
14034 (clear_thread_inferior_resources): Pass down thread pointer
14035 instead of ptid_t.
14036 (add_thread_silent, add_thread_with_info, add_thread): Add
14037 process_stratum_target parameter. Use it for thread and inferior
14038 searches.
14039 (is_current_thread): New.
14040 (thread_info::deletable): Use it.
14041 (find_thread_ptid, thread_count, in_thread_list)
14042 (thread_change_ptid, set_resumed, set_running): New
14043 process_stratum_target parameter. Pass it down.
14044 (set_executing): New process_stratum_target parameter. Pass it
14045 down. Adjust reference to 'threads_executing'.
14046 (threads_are_executing): New process_stratum_target parameter.
14047 Adjust reference to 'threads_executing'.
14048 (set_stop_requested, finish_thread_state): New
14049 process_stratum_target parameter. Pass it down.
14050 (switch_to_thread): Also match inferior.
14051 (switch_to_thread): New process_stratum_target parameter. Pass it
14052 down.
14053 (update_threads_executing): Reimplement.
14054 * top.c (quit_force): Pop targets from all inferior.
14055 (gdb_init): Don't call initialize_targets.
14056 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14057 Declare.
14058 (windows_add_thread, windows_delete_thread): Adjust.
14059 (get_windows_debug_event): Rename to ...
14060 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14061 * tracefile-tfile.c (tfile_target_open): Pass down target.
14062 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14063 Forward declare.
14064 (switch_to_thread): Add process_stratum_target parameter.
14065 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14066 parameter. Use it.
14067 (mi_on_resume): Pass target down.
14068 * nat/fork-inferior.c (startup_inferior): Add
14069 process_stratum_target parameter. Pass it down.
14070 * nat/fork-inferior.h (startup_inferior): Add
14071 process_stratum_target parameter.
14072 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14073
75c6c844
PA
140742020-01-10 Pedro Alves <palves@redhat.com>
14075
14076 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14077 directly. Instead find the first thread in the thread list and
14078 use switch_to_thread.
14079
78f2c40a
PA
140802020-01-10 Pedro Alves <palves@redhat.com>
14081
14082 * remote.c (remote_target::remote_add_inferior): Don't bind a
14083 process to the current inferior if the current inferior is already
14084 bound to a process.
14085
e7af6c70
TBA
140862020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14087 Pedro Alves <palves@redhat.com>
14088
14089 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14090 If no process is specified, return null_ptid instead of
14091 inferior_ptid.
14092 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14093 TARGET_WAITKIND_SIGNALLED with no pid.
14094
31ba933e
PA
140952020-01-10 Pedro Alves <palves@redhat.com>
14096
14097 * remote.c (first_remote_resumed_thread): New.
14098 (remote_target::wait_as): Use it as default event_ptid instead of
14099 inferior_ptid.
14100
735fc2ca
PA
141012020-01-10 Pedro Alves <palves@redhat.com>
14102
14103 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14104
c17e02e1
PA
141052020-01-10 Pedro Alves <palves@redhat.com>
14106
14107 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14108 not -1.
14109
ab1ddbcf
PA
141102020-01-10 Pedro Alves <palves@redhat.com>
14111
14112 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14113 ptid to get_last_target_status.
14114 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14115 ptid to get_last_target_status.
14116 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14117 get_last_target_status.
14118 (info_program_command): Don't pass a target_waitstatus to
14119 get_last_target_status.
14120 * infrun.c (init_wait_for_inferior): Use
14121 nullify_last_target_wait_ptid.
14122 (get_last_target_status): Handle nullptr arguments.
14123 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14124 (print_stop_event): Don't pass a ptid to get_last_target_status.
14125 (normal_stop): Don't pass a ptid to get_last_target_status.
14126 * infrun.h (get_last_target_status, set_last_target_status): Move
14127 comments here and update.
14128 (nullify_last_target_wait_ptid): Declare.
14129 * linux-fork.c (fork_load_infrun_state): Remove local extern
14130 declaration of nullify_last_target_wait_ptid.
14131 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14132 to get_last_target_status.
14133
f3f8ece4
PA
141342020-01-10 Pedro Alves <palves@redhat.com>
14135
14136 * gdbthread.h (scoped_restore_current_thread)
14137 <dont_restore, restore, m_dont_restore>: Declare.
14138 * thread.c (thread_alive): Add assertion. Return bool.
14139 (switch_to_thread_if_alive): New.
14140 (prune_threads): Switch inferior/thread.
14141 (print_thread_info_1): Switch thread before calling target methods.
14142 (scoped_restore_current_thread::restore): New, factored out from
14143 ...
14144 (scoped_restore_current_thread::~scoped_restore_current_thread):
14145 ... this.
14146 (scoped_restore_current_thread::scoped_restore_current_thread):
14147 Add assertion.
14148 (thread_apply_all_command, thread_select): Use
14149 switch_to_thread_if_alive.
14150 * infrun.c (proceed, restart_threads, handle_signal_stop)
14151 (switch_back_to_stepped_thread): Switch current thread before
14152 calling target methods.
14153
db2d40f7
PA
141542020-01-10 Pedro Alves <palves@redhat.com>
14155
14156 * inferior.c (switch_to_inferior_no_thread): New function,
14157 factored out from ...
14158 (inferior_command): ... here.
14159 * inferior.h (switch_to_inferior_no_thread): Declare.
14160 * mi/mi-main.c (run_one_inferior): Use
14161 switch_to_inferior_no_thread.
14162
bd420a2d
PA
141632020-01-10 Pedro Alves <palves@redhat.com>
14164
14165 * infcmd.c (kill_command): Remove dead code.
14166
ddf5db90
PA
141672020-01-10 Pedro Alves <palves@redhat.com>
14168
14169 * remote.c (remote_target::mourn_inferior): No longer check
14170 whether the target is running.
14171
5018ce90
PA
141722020-01-10 Pedro Alves <palves@redhat.com>
14173
14174 * corelow.c (core_target::has_execution): Change parameter type to
14175 inferior pointer.
14176 * inferior.c (number_of_live_inferiors): Use
14177 inferior::has_execution instead of target_has_execution_1.
14178 * inferior.h (inferior::has_execution): New.
14179 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14180 inferior::has_execution instead of target_has_execution_1.
14181 * process-stratum-target.c
14182 (process_stratum_target::has_execution): Change parameter type to
14183 inferior pointer. Check the inferior's PID instead of
14184 inferior_ptid.
14185 * process-stratum-target.h
14186 (process_stratum_target::has_execution): Change parameter type to
14187 inferior pointer.
14188 * record-full.c (record_full_core_target::has_execution): Change
14189 parameter type to inferior pointer.
14190 * target.c (target_has_execution_1): Change parameter type to
14191 inferior pointer.
14192 (target_has_execution_current): Adjust.
14193 * target.h (target_ops::has_execution): Change parameter type to
14194 inferior pointer.
14195 (target_has_execution_1): Change parameter type to inferior
14196 pointer. Change return type to bool.
14197 * tracefile.h (tracefile_target::has_execution): Change parameter
14198 type to inferior pointer.
14199
74375d18
PA
142002020-01-10 Pedro Alves <palves@redhat.com>
14201
14202 * exceptions.c (print_flush): Remove current_top_target() check.
14203
acdf84a6
PA
142042020-01-10 Pedro Alves <palves@redhat.com>
14205
14206 * remote.c (show_remote_exec_file): Show the current inferior's
14207 exec-file instead of the command variable's value.
14208
ec506636
PA
142092020-01-10 Pedro Alves <palves@redhat.com>
14210
14211 * record-full.c (record_full_resume_ptid): New global.
14212 (record_full_target::resume): Set it.
14213 (record_full_wait_1): Use record_full_resume_ptid instead of
14214 inferior_ptid.
14215
873657b9
PA
142162020-01-10 Pedro Alves <palves@redhat.com>
14217
14218 * gdbthread.h (scoped_restore_current_thread)
14219 <dont_restore, restore, m_dont_restore>: Declare.
14220 * thread.c (thread_alive): Add assertion. Return bool.
14221 (switch_to_thread_if_alive): New.
14222 (prune_threads): Switch inferior/thread.
14223 (print_thread_info_1): Switch thread before calling target methods.
14224 (scoped_restore_current_thread::restore): New, factored out from
14225 ...
14226 (scoped_restore_current_thread::~scoped_restore_current_thread):
14227 ... this.
14228 (scoped_restore_current_thread::scoped_restore_current_thread):
14229 Add assertion.
14230 (thread_apply_all_command, thread_select): Use
14231 switch_to_thread_if_alive.
14232
7f0ae84c
GB
142332020-01-10 George Barrett <bob@bob131.so>
14234
14235 * stap-probe.c (stap_modify_semaphore): Don't check for null
14236 semaphores.
14237 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14238 for null semaphores.
14239
f5a7c406
AB
142402020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14241
14242 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14243 all source windows, and maintain horizontal scroll status while
14244 doing so.
14245
9ae6bf64
TT
142462020-01-09 Tom Tromey <tom@tromey.com>
14247
14248 PR tui/18932:
14249 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14250 update_source_window, not print_source_lines.
14251
b2efe70c
AB
142522020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14253
14254 * tui/tui.c (tui_enable): Register tui hooks after calling
14255 tui_display_main.
14256
5f23a082
CB
142572020-01-09 Christian Biesinger <cbiesinger@google.com>
14258
14259 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14260
3061113b
SM
142612020-01-08 Simon Marchi <simon.marchi@efficios.com>
14262
14263 * thread.c (print_thread_info_1): Fix indentation.
14264
57d75002
CB
142652020-01-09 Christian Biesinger <cbiesinger@google.com>
14266
14267 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14268 unique_xmalloc_ptr outside the if to always free the demangled name.
14269
6a053cb1
TT
142702020-01-08 Tom Tromey <tromey@adacore.com>
14271
14272 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14273 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14274 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14275 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14276 Remove.
14277 (section_offsets): New typedef.
14278 * symtab.c (fixup_section, get_msymbol_address): Update.
14279 * symmisc.c (dump_msymbols): Update.
14280 * symfile.h (relative_addr_info_to_section_offsets)
14281 (symfile_map_offsets_to_segments): Update.
14282 * symfile.c (build_section_addr_info_from_objfile)
14283 (init_objfile_sect_indices): Update.
14284 (struct place_section_arg): Change type of "offsets".
14285 (place_section): Update.
14286 (relative_addr_info_to_section_offsets): Change type of
14287 "section_offsets". Remove "num_sections" parameter.
14288 (default_symfile_offsets, syms_from_objfile_1)
14289 (set_objfile_default_section_offset): Update.
14290 (reread_symbols): No need to preserve section offsets by hand.
14291 (symfile_map_offsets_to_segments): Change type of "offsets".
14292 * stap-probe.c (relocate_address): Update.
14293 * stabsread.h (process_one_symbol): Update.
14294 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14295 (solib_target_relocate_section_addresses): Update.
14296 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14297 Update.
14298 * solib-frv.c (frv_relocate_main_executable): Update.
14299 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14300 * solib-aix.c (solib_aix_get_section_offsets): Change return
14301 type.
14302 (solib_aix_solib_create_inferior_hook): Update.
14303 * remote.c (remote_target::get_offsets): Update.
14304 * psymtab.c (find_pc_sect_psymtab): Update.
14305 * psympriv.h (struct partial_symbol) <address, text_low,
14306 text_high>: Update.
14307 * objfiles.h (obj_section_offset): Update.
14308 (struct objfile) <section_offsets>: Change type.
14309 <num_sections>: Remove.
14310 (objfile_relocate): Update.
14311 * objfiles.c (entry_point_address_query): Update
14312 (relocate_one_symbol): Change type of "section_offsets".
14313 (objfile_relocate1, objfile_relocate1): Change type of
14314 "new_offsets".
14315 (objfile_rebase1): Update.
14316 * mipsread.c (mipscoff_symfile_read): Update.
14317 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14318 parameter.
14319 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14320 (parse_external, psymtab_to_symtab_1): Update.
14321 * machoread.c (macho_symfile_offsets): Update.
14322 * ia64-tdep.c (ia64_find_unwind_table): Update.
14323 * hppa-tdep.c (read_unwind_info): Update.
14324 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14325 * dwarf2read.c (create_addrmap_from_index)
14326 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14327 (process_psymtab_comp_unit_reader, add_partial_symbol)
14328 (add_partial_subprogram, process_full_comp_unit)
14329 (read_file_scope, read_func_scope, read_lexical_block_scope)
14330 (read_call_site_scope, dwarf2_rnglists_process)
14331 (dwarf2_ranges_process, dwarf2_ranges_read)
14332 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14333 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14334 Update.
14335 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14336 Update.
14337 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14338 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14339 (process_one_symbol): Change type of "section_offsets".
14340 * ctfread.c (get_objfile_text_range): Update.
14341 * coffread.c (coff_symtab_read, enter_linenos)
14342 (process_coff_symbol): Update.
14343 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14344 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14345
456e800a
TT
143462020-01-08 Tom Tromey <tromey@adacore.com>
14347
14348 * dwarf2read.c (parse_macro_definition): Use std::string.
14349 (parse_macro_definition): Likewise.
14350
6dfa2fc2
TT
143512020-01-08 Tom Tromey <tromey@adacore.com>
14352
14353 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14354 (ATTR_ALLOC_CHUNK): Remove.
14355
421d1616
TT
143562020-01-08 Tom Tromey <tromey@adacore.com>
14357
14358 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14359
43816ebc
TT
143602020-01-08 Tom Tromey <tromey@adacore.com>
14361
14362 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14363 (dwarf2_compute_name, open_dwo_file): Likewise.
14364 (process_enumeration_scope): Use std::vector.
14365 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14366 (partial_die_info::fixup, dwarf2_start_subfile)
14367 (guess_full_die_structure_name, dwarf2_name): Likewise.
14368 (determine_prefix): Update.
14369 (guess_full_die_structure_name): Make return type const.
14370 (partial_die_full_name): Return unique_xmalloc_ptr.
14371 (DW_FIELD_ALLOC_CHUNK): Remove.
14372
4212d509
TT
143732020-01-07 Tom Tromey <tromey@adacore.com>
14374
14375 PR build/24937:
14376 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14377
06a6207a
JT
143782020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14379
14380 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14381
153d79c4
AB
143822020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14383
14384 * stack.c (print_frame_info): Move disassemble_next_line code
14385 inside source_print block.
14386
66182876
EZ
143872020-01-06 Eli Zaretskii <eliz@gnu.org>
14388
14389 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14390 gdb/signals.h, as we are now using native signal symbols.
14391
cbfa8581
SV
143922020-01-06 Shahab Vahedi <shahab@synopsys.com>
14393
14394 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14395 overflow by an early check of content vs threshold.
aac66a4c 14396 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14397 Likewise.
14398
3f602821
EZ
143992020-01-06 Eli Zaretskii <eliz@gnu.org>
14400
14401 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14402
a08c904d
JT
144032020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14404
14405 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14406 export table if no section contains it's RVA.
14407
89a65580
EZ
144082020-01-06 Eli Zaretskii <eliz@gnu.org>
14409
14410 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14411
8b7fcda2
HD
144122020-01-06 Hannes Domani <ssbssa@yahoo.de>
14413
14414 * source.c (print_source_lines_base): Set last_line_listed.
14415
a61b4f69
SV
144162020-01-06 Shahab Vahedi <shahab@synopsys.com>
14417
14418 * tui/tui-disasm.c: Remove trailing spaces.
14419
559e7e50
EZ
144202020-01-06 Eli Zaretskii <eliz@gnu.org>
14421 Pedro Alves <palves@redhat.com>
14422
14423 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14424 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14425 (windows_gdb_signal_to_target): New function, uses the above
14426 enumeration to convert GDB internal signal codes to equivalent
14427 Windows codes.
14428 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14429 * windows-nat.c: Include "gdb_wait.h".
14430 (get_windows_debug_event): Extract the fatal exception from the
14431 exit status and convert to the equivalent Posix signal number.
14432 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14433 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14434 * gdbsupport/gdb_wait.c: New file, implements
14435 windows_status_to_termsig.
14436 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14437 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14438
f2302a34
AB
144392020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14440
14441 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14442 show_layout.
14443
6a5206eb
LM
144442020-01-05 Luis Machado <luis.machado@linaro.org>
14445
14446 * aarch64-linux-nat.c
14447 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14448 and bfd_mach_aarch64.
14449
6ec1d75e
PW
144502020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14451
14452 * ui-file.c (stdio_file::can_emit_style_escape)
14453 (tee_file::can_emit_style_escape): Ensure style is used also on
14454 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14455 to gdb_stdout.
14456 * main.c (set_gdb_data_directory): Use file style to output the
14457 warning that the given pathname is not a directory.
14458 * top.c (show_history_filename, gdb_safe_append_history)
14459 (show_gdb_datadir): Use file style.
14460
44f81a76
HD
144612020-01-03 Hannes Domani <ssbssa@yahoo.de>
14462
14463 * solib-target.c (struct lm_info_target):
14464 Change offsets to be a unique_xmalloc_ptr.
14465 (solib_target_relocate_section_addresses): Update.
14466
25057eb0
HD
144672020-01-03 Hannes Domani <ssbssa@yahoo.de>
14468
14469 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14470
6e2118f5
BE
144712020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14472
14473 * MAINTAINERS (Write After Approval): Add myself.
14474
8133c7dc
LM
144752020-01-02 Luis Machado <luis.machado@linaro.org>
14476
14477 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14478 Cell BE architecture.
14479 * target.h (struct target_ops) <thread_architecture>: Likewise.
14480
48189bec
HD
144812020-01-01 Hannes Domani <ssbssa@yahoo.de>
14482
14483 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14484
ead1063b
HD
144852020-01-01 Hannes Domani <ssbssa@yahoo.de>
14486
14487 * MAINTAINERS (Write After Approval): Add myself.
14488
e5d78223
JB
144892020-01-01 Joel Brobecker <brobecker@adacore.com>
14490
14491 * gdbarch.sh: Update copyright year range of generated files.
14492
b811d2c2
JB
144932020-01-01 Joel Brobecker <brobecker@adacore.com>
14494
14495 Update copyright year range in all GDB files.
14496
5f4def5c
JB
144972020-01-01 Joel Brobecker <brobecker@adacore.com>
14498
14499 * copyright.py: Convert to Python 3.
14500
51fd4002
JB
145012020-01-01 Joel Brobecker <brobecker@adacore.com>
14502
14503 * copyright.py: Adapt after move of gnulib directory from gdb
14504 directory to toplevel directory.
14505
5fb651f2
JB
145062020-01-01 Joel Brobecker <brobecker@adacore.com>
14507
14508 * copyright.py (main): Exit if run from the wrong directory.
14509
5dd8bf88
JB
145102020-01-01 Joel Brobecker <brobecker@adacore.com>
14511
14512 * top.c (print_gdb_version): Change copyright year to 2020.
14513
9f71dacb 145142020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14515
9f71dacb 14516 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14517
9f71dacb 14518For older changes see ChangeLog-2019.
c906108c
SS
14519\f
14520Local Variables:
14521mode: change-log
14522left-margin: 8
14523fill-column: 74
14524version-control: never
57da7796 14525coding: utf-8
c906108c 14526End: