Turn target_have_steppable_watchpoint into function
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9aed480c
TT
12020-09-28 Tom Tromey <tom@tromey.com>
2
3 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
4 (handle_signal_stop): Update.
5 * procfs.c (procfs_target::insert_watchpoint): Update.
6 * target.h (target_have_steppable_watchpoint): Now a function.
7
8a3ecb79
TT
82020-09-28 Tom Tromey <tom@tromey.com>
9
10 * infrun.c (set_schedlock_func): Update.
11 * target.h (target_can_lock_scheduler): Now a function.
12
55f6301a
TT
132020-09-28 Tom Tromey <tom@tromey.com>
14
15 * inferior.h (class inferior) <has_execution>: Update.
16 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
17 * valops.c (find_function_in_inferior)
18 (value_allocate_space_in_inferior): Update.
19 * top.c (kill_or_detach): Update.
20 * target.c (target_preopen, set_target_permissions): Update.
21 (target_has_execution_current): Remove.
22 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
23 Update.
24 * solib.c (update_solib_list, reload_shared_libraries): Update.
25 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
26 * solib-dsbt.c (enable_break): Update.
27 * score-tdep.c (score7_fetch_inst): Update.
28 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
29 Update.
30 * remote.c (remote_target::start_remote)
31 (remote_target::remote_check_symbols, remote_target::open_1)
32 (remote_target::remote_detach_1, remote_target::verify_memory)
33 (remote_target::xfer_partial, remote_target::read_description)
34 (remote_target::get_min_fast_tracepoint_insn_len): Update.
35 * record-full.c (record_full_open_1): Update.
36 * record-btrace.c (record_btrace_target_open): Update.
37 * objc-lang.c (lookup_objc_class, lookup_child_selector)
38 (value_nsstring): Update.
39 * linux-thread-db.c (add_thread_db_info)
40 (thread_db_find_new_threads_silently, check_thread_db_callback)
41 (try_thread_db_load_1, record_thread): Update.
42 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
43 Update.
44 * linux-fork.c (checkpoint_command): Update.
45 * infrun.c (set_non_stop, set_observer_mode)
46 (check_multi_target_resumption, for_each_just_stopped_thread)
47 (maybe_remove_breakpoints, normal_stop)
48 (class infcall_suspend_state): Update.
49 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
50 (info_program_command, attach_command): Update.
51 * infcall.c (call_function_by_hand_dummy): Update.
52 * inf-loop.c (inferior_event_handler): Update.
53 * gcore.c (gcore_command, derive_heap_segment): Update.
54 * exec.c (exec_file_command): Update.
55 * eval.c (evaluate_subexp): Update.
56 * compile/compile.c (compile_to_object): Update.
57 * cli/cli-dump.c (restore_command): Update.
58 * breakpoint.c (update_watchpoint)
59 (update_inserted_breakpoint_locations)
60 (insert_breakpoint_locations, get_bpstat_thread): Update.
61 * target.h (target_has_execution): Remove macro.
62 (target_has_execution_current): Don't declare.
63 (target_has_execution): Rename from target_has_execution_1. Add
64 argument default.
65
05374cfd
TT
662020-09-28 Tom Tromey <tom@tromey.com>
67
68 * mi/mi-main.c (exec_reverse_continue)
69 (mi_cmd_list_target_features): Update.
70 * infrun.c (set_exec_direction_func): Update.
71 * target.c (default_execution_direction): Update.
72 * reverse.c (exec_reverse_once): Update.
73 * target.h (target_can_execute_reverse): Now a function.
74
9dccd06e
TT
752020-09-28 Tom Tromey <tom@tromey.com>
76
77 * tui/tui-regs.c (tui_get_register)
78 (tui_data_window::show_registers): Update.
79 * thread.c (scoped_restore_current_thread::restore)
80 (scoped_restore_current_thread::scoped_restore_current_thread):
81 Update.
82 * regcache-dump.c (regcache_print): Update.
83 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
84 Update.
85 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
86 * mep-tdep.c (current_me_module, current_options): Update.
87 * linux-thread-db.c (thread_db_load): Update.
88 * infcmd.c (registers_info, info_vector_command)
89 (info_float_command): Update.
90 * ia64-tdep.c (ia64_frame_prev_register)
91 (ia64_sigtramp_frame_prev_register): Update.
92 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
93 * gcore.c (derive_stack_segment): Update.
94 * frame.c (get_current_frame, has_stack_frames): Update.
95 * findvar.c (language_defn::read_var_value): Update.
96 * arm-tdep.c (arm_pc_is_thumb): Update.
97 * target.c (target_has_registers): Rename from
98 target_has_registers_1.
99 * target.h (target_has_registers): Remove macro.
100 (target_has_registers): Rename from target_has_registers_1.
101
841de120
TT
1022020-09-28 Tom Tromey <tom@tromey.com>
103
104 * windows-tdep.c (tlb_make_value): Update.
105 * tui/tui-regs.c (tui_data_window::show_registers): Update.
106 * thread.c (scoped_restore_current_thread::restore)
107 (scoped_restore_current_thread::scoped_restore_current_thread)
108 (thread_command): Update.
109 * stack.c (backtrace_command_1, frame_apply_level_command)
110 (frame_apply_all_command, frame_apply_command): Update.
111 * infrun.c (siginfo_make_value, restore_infcall_control_state):
112 Update.
113 * gcore.c (derive_stack_segment): Update.
114 * frame.c (get_current_frame, has_stack_frames): Update.
115 * auxv.c (info_auxv_command): Update.
116 * ada-tasks.c (ada_build_task_list): Update.
117 * target.c (target_has_stack): Rename from target_has_stack_1.
118 * target.h (target_has_stack): Remove macro.
119 (target_has_stack): Rename from target_has_stack_1.
120
a739972c
TT
1212020-09-28 Tom Tromey <tom@tromey.com>
122
123 * target.c (target_has_memory): Rename from target_has_memory_1.
124 * tui/tui-regs.c (tui_data_window::show_registers): Update.
125 * thread.c (scoped_restore_current_thread::restore)
126 (scoped_restore_current_thread::scoped_restore_current_thread):
127 Update.
128 * frame.c (get_current_frame, has_stack_frames): Update.
129 * target.h (target_has_memory): Remove macro.
130 (target_has_memory): Rename from target_has_memory_1.
131
5b8a4776
TT
1322020-09-28 Tom Tromey <tom@tromey.com>
133
134 * target.c (target_has_all_memory_1): Remove.
135 * target.h (target_has_all_memory): Remove define.
136 (target_has_all_memory_1): Don't declare.
137
bd356ec6
SM
1382020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
139
140 * ser-base.c: Adjust comments formatting.
141
2c72d5e5
TT
1422020-09-27 Tom Tromey <tom@tromey.com>
143
144 PR tui/25342:
145 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
146
35a98237
TT
1472020-09-27 Tom Tromey <tom@tromey.com>
148
149 PR tui/25342:
150 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
151
9e820dec
TT
1522020-09-27 Tom Tromey <tom@tromey.com>
153
154 * unittests/tui-selftests.c: Update.
155 * tui/tui-winsource.h (struct tui_source_window_base)
156 <extra_margin, show_line_number, refresh_pad>: New methods.
157 <m_max_length, m_pad>: New members.
158 (tui_copy_source_line): Update.
159 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
160 first_col, line_width, ndigits parameters. Add length.
161 (tui_source_window_base::show_source_line): Write to pad. Line
162 number now 0-based.
163 (tui_source_window_base::refresh_pad): New method.
164 (tui_source_window_base::show_source_content): Write to pad. Call
165 refresh_pad.
166 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
167 not refill.
168 (tui_source_window_base::update_exec_info): Call
169 show_line_number.
170 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
171 method.
172 <m_digits>: New member.
173 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
174 and m_max_length.
175 (tui_source_window::show_line_number): New method.
176 * tui/tui-io.h (tui_puts): Fix comment.
177 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
178 m_max_length.
179
c15c15c8
TT
1802020-09-27 Tom Tromey <tom@tromey.com>
181
182 * tui/tui-winsource.c
183 (tui_source_window_base::set_is_exec_point_at): Don't call
184 show_source_line.
185
149830c1
TT
1862020-09-27 Tom Tromey <tom@tromey.com>
187
188 * python/py-tui.c (class tui_py_window) <refresh_window>: New
189 method.
190 <erase>: Update.
191 <cursor_x, cursor_y>: Remove.
192 <m_inner_window>: New member.
193 (tui_py_window::rerender): Create inner window.
194 (tui_py_window::output): Write to inner window.
195
8f9929bb
GR
1962020-09-26 Gareth Rees <grees@undo.io> (tiny change)
197
198 PR python/26586
199 * cli/cli-script.c (execute_control_commands): don't set
200 instream to nullptr here as this breaks the from_tty argument
201 to gdb.execute in Python.
202 (execute_user_command): set instream to nullptr here instead.
203
956bdb59
SM
2042020-09-25 Simon Marchi <simon.marchi@efficios.com>
205
206 * infrun.h (infrun_debug_printf): Fix formatting.
207 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
208
3b93626b
SJ
2092020-09-25 Saagar Jha <saagar@saagarjha.com>
210
211 * compile/compile-object-load.h (struct munmap_list): Add
212 explicitly-defined move constructor.
213
b551a89f
TT
2142020-09-24 Tom Tromey <tromey@adacore.com>
215
216 PR tui/26638:
217 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
218 method.
219 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
220 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
221 (tui_prev_win): Rewrite.
222
99bb393f
HD
2232020-09-23 Hannes Domani <ssbssa@yahoo.de>
224
225 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
226 in WOW64 processes as SIGINT.
227 * nat/windows-nat.h: Make wow64_process a shared variable.
228 * windows-nat.c: Remove static wow64_process variable.
229
20a5fcbd
TT
2302020-09-23 Tom Tromey <tom@tromey.com>
231
232 PR symtab/25470:
233 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
234 offset and bit size.
235 * printcmd.c (print_scalar_formatted): Handle zero-length
236 integer.
237 (print_scalar_formatted): Use bit_size_differs_p.
238 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
239 constant.
240 (union type_specific): <int_stuff>: New member.
241 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
242 methods.
243 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
244 TYPE_SPECIFIC_FIELD.
245 (recursive_dump_type, copy_type_recursive): Update.
246 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
247 DW_AT_data_bit_offset.
248
bac51ab7
TT
2492020-09-23 Tom Tromey <tom@tromey.com>
250
251 * utils.h (class gdb_argv): Add move operators.
252 <append>: New methods.
253 * compile/compile.c (build_argc_argv): Remove.
254 (compile_args_argc): Remove.
255 (compile_args_argv): Change type.
256 (set_compile_args): Simplify.
257 (append_args): Remove.
258 (filter_args): Remove argcp parameter.
259 (get_args): Return gdb_argv. Simplify.
260 (compile_to_object): Update.
261
92677124
TT
2622020-09-23 Tom Tromey <tom@tromey.com>
263
264 * compile/compile-object-run.c (do_module_cleanup)
265 <~do_module_cleanup> :Remove.
266 (do_module_cleanup): Update.
267 * compile/compile-object-load.h (struct munmap_list): Add move
268 assignment operator.
269 <source_file>: Now a std::string.
270 <munmap_list>: Rename. No longer a pointer.
271 * compile/compile-object-load.c (struct setup_sections_data): Add
272 constructor.
273 <setup_one_section>: Declare.
274 <munmap_list>: Move earlier.
275 <m_bfd>: New member.
276 <m_last_size, m_last_section_first, m_last_prot,
277 m_last_max_alignment>: Rename, add initializers where needed.
278 (setup_sections_data::setup_one_section): Rename from
279 setup_sections. Update.
280 (compile_object_load): Update. Don't use bfd_map_over_sections.
281
e616f60a
TT
2822020-09-23 Tom Tromey <tom@tromey.com>
283
284 * compile/compile-object-run.c (struct do_module_cleanup): Add
285 parameters to constructor. Update destructor.
286 <source_file, scope, scope_data, out_value_type, out_value_addr,
287 munmap_list_head, objfile_name_string>: Remove.
288 <module>: New member.
289 (do_module_cleanup): Update.
290 (compile_object_run): Update.
291
e947a848
TT
2922020-09-23 Tom Tromey <tom@tromey.com>
293
294 * compile/compile.c (eval_compile_command): Update.
295 * compile/compile-object-run.h (compile_object_run): Take a
296 compile_module_up.
297 * compile/compile-object-run.c (compile_object_run): Take a
298 compile_module_up.
299 * compile/compile-object-load.h (struct compile_module): Add
300 constructor, destructor.
301 (compile_module_up): New typedef.
302 (compile_object_load): Return compile_object_up.
303 * compile/compile-object-load.c (compile_object_load): Return
304 compile_module_up.
305
0dbf6ee6
TT
3062020-09-23 Tom Tromey <tom@tromey.com>
307
308 * compile/compile-object-run.c (struct do_module_cleanup): Add
309 constructor, destructor.
310 <objfile_name_string>: Don't use struct hack.
311 (do_module_cleanup): Use delete.
312 (compile_object_run): Use new.
313
ebe824f5
TT
3142020-09-23 Tom Tromey <tom@tromey.com>
315
316 * compile/compile-cplus-types.c
317 (compile_cplus_convert_struct_or_union): Use std::vector.
318 (compile_cplus_convert_func): Likewise.
319 * compile/compile-c-types.c (convert_func): Use std::vector.
320
5dd918d9
TT
3212020-09-21 Tom Tromey <tromey@adacore.com>
322
323 * sparc-tdep.c (sparc32_skip_prologue): Use
324 skip_prologue_using_sal.
325
5486c517
TT
3262020-09-19 Tom Tromey <tom@tromey.com>
327
328 * symfile.c (add_section_size_callback): Remove.
329 (load_one_section): Rename from load_section_callback. Change
330 parameters.
331 (generic_load): Use foreach.
332
8a6bb1d1
TT
3332020-09-19 Tom Tromey <tom@tromey.com>
334
335 * exec.c (add_to_section_table): Remove.
336 (build_section_table): Use foreach.
337
08f93a1a
TT
3382020-09-19 Tom Tromey <tom@tromey.com>
339
340 * elfread.c (elf_locate_sections): Change parameters.
341 (elf_symfile_read): Use foreach.
342
03cd72b8
TT
3432020-09-19 Tom Tromey <tom@tromey.com>
344
345 * cli/cli-dump.c (struct callback_data): Remove.
346 (restore_one_section): Rename from restore_section_callback.
347 Change parameters.
348 (restore_binary_file): Change parameters.
349 (restore_command): Use foreach.
350
f4f2b85f
TT
3512020-09-19 Tom Tromey <tom@tromey.com>
352
353 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
354 (gcore_copy_callback): Likewise.
355 (gcore_memory_sections): Use foreach.
356
b35c1d1c
TT
3572020-09-19 Tom Tromey <tom@tromey.com>
358
359 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
360 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
361 parameters.
362 (generic_elf_osabi_sniffer): Use foreach.
363 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
364 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
365
5bb6e9dd
TT
3662020-09-19 Tom Tromey <tom@tromey.com>
367
368 * dwarf2/read.c (locate_dwz_sections): Change parameters.
369 (dwarf2_get_dwz_file): Use foreach.
370 (dwarf2_locate_dwo_sections): Change parameters.
371 (open_and_init_dwo_file): Use foreach.
372 (dwarf2_locate_common_dwp_sections): Change parameters.
373 (open_and_init_dwp_file): Use foreach.
374
ad7277da
TT
3752020-09-19 Tom Tromey <tom@tromey.com>
376
377 * symfile.h: (find_lowest_section): Don't declare.
378 * symfile.c (find_lowest_section): Now static. Change
379 parameters.
380 (struct place_section_arg): Remove.
381 (place_section): Change parameters.
382 (addr_info_make_relative): Use foreach.
383 (symfile_dummy_outputs): Remove.
384 (default_symfile_relocate): Use foreach.
385
cb814f2e
TT
3862020-09-19 Tom Tromey <tom@tromey.com>
387
388 * objfiles.c (add_to_objfile_sections): Rename from
389 add_to_objfile_sections_full.
390 (add_to_objfile_sections): Remove.
391 (build_objfile_section_table): Use foreach.
392
3cabfd26
TT
3932020-09-19 Tom Tromey <tom@tromey.com>
394
395 * stap-probe.c (get_stap_base_address_1): Remove.
396 (get_stap_base_address): Use foreach.
397
1ce51eb5
TT
3982020-09-19 Tom Tromey <tom@tromey.com>
399
400 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
401 parameters.
402 (gdb_bfd_close_or_warn): Use foreach.
403
a190fabb
TT
4042020-09-19 Tom Tromey <tom@tromey.com>
405
406 * corelow.c (add_to_thread_list): Change parameters.
407 (core_target_open): Use foreach.
408
cafb0d81
TT
4092020-09-19 Tom Tromey <tom@tromey.com>
410
411 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
412 existing function.
413
c8d5abea
AB
4142020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
415
416 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
417 for arrays.
418
6d816919
AB
4192020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
420
421 * eval.c: Remove 'f-lang.h' include.
422 (value_f90_subarray): Moved to f-lang.c.
423 (eval_call): Renamed to...
424 (evaluate_subexp_do_call): ...this, is no longer static, header
425 comment moved into header file.
426 (evaluate_funcall): Update call to eval_call.
427 (skip_undetermined_arglist): Moved to f-lang.c.
428 (fortran_value_subarray): Likewise.
429 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
430 moved to evaluate_subexp_f.
431 (calc_f77_array_dims): Moved to f-lang.c
432 * expprint.c (print_subexp_funcall): New function.
433 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
434 moved to print_subexp_f, OP_FUNCALL uses new function.
435 (dump_subexp_body_funcall): New function.
436 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
437 moved to dump_subexp_f, OP_FUNCALL uses new function.
438 * expression.h (evaluate_subexp_do_call): Declare.
439 * f-lang.c (value_f90_subarray): Moved from eval.c.
440 (skip_undetermined_arglist): Likewise.
441 (calc_f77_array_dims): Likewise.
442 (fortran_value_subarray): Likewise.
443 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
444 (operator_length_f): Likewise.
445 (print_subexp_f): Likewise.
446 (dump_subexp_body_f): Likewise.
447 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
448 declaration of this operation to here.
449 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
450 support moved to operator_length_f.
451 * parser-defs.h (dump_subexp_body_funcall): Declare.
452 (print_subexp_funcall): Declare.
453 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
454 fortran-operator.def.
455
8c37706a
AB
4562020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
457
458 * eval.c (fortran_value_subarray): New function, content is taken
459 from...
460 (evaluate_subexp_standard): ...here, in two places. Now arrays
461 and strings both call the new function.
462 (calc_f77_array_dims): Add header comment, handle strings.
463
14f9473c
VC
4642020-09-18 Victor Collod <vcollod@nvidia.com>
465
466 PR gdb/26635
467 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
468 (i386_analyze_prologue): Call i386_skip_endbr.
469
b60cea74
TT
4702020-09-18 Tom Tromey <tromey@adacore.com>
471
472 * windows-nat.c (struct windows_nat_target) <wait>: Update.
473 (windows_nat_target::wait): Update.
474 * target/wait.h (enum target_wait_flag): New. Use
475 DEF_ENUM_FLAGS_TYPE.
476 * target/target.h (target_wait): Change type of options.
477 * target.h (target_options_to_string, default_target_wait):
478 Update.
479 (struct target_ops) <wait>: Change type of options.
480 * target.c (target_wait, default_target_wait, do_option): Change
481 type of "options".
482 (target_options_to_string): Likewise.
483 * target-delegates.c: Rebuild.
484 * target-debug.h (target_debug_print_target_wait_flags): Rename
485 from target_debug_print_options.
486 * sol-thread.c (class sol_thread_target) <wait>: Update.
487 (sol_thread_target::wait): Update.
488 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
489 (rs6000_nat_target::wait): Update.
490 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
491 Update.
492 (remote_target::wait_ns, remote_target::wait_as): Change type of
493 "options".
494 (remote_target::wait): Update.
495 * remote-sim.c (struct gdbsim_target) <wait>: Update.
496 (gdbsim_target::wait): Update.
497 * record-full.c (class record_full_base_target) <wait>: Update.
498 (record_full_wait_1): Change type of "options".
499 (record_full_base_target::wait): Update.
500 * record-btrace.c (class record_btrace_target) <wait>: Update.
501 (record_btrace_target::wait): Update.
502 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
503 Update.
504 (ravenscar_thread_target::wait): Update.
505 * procfs.c (class procfs_target) <wait>: Update.
506 (procfs_target::wait): Update.
507 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
508 * obsd-nat.c (obsd_nat_target::wait): Update.
509 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
510 (nto_procfs_target::wait): Update.
511 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
512 * nbsd-nat.c (nbsd_wait): Change type of "options".
513 (nbsd_nat_target::wait): Update.
514 * linux-thread-db.c (class thread_db_target) <wait>: Update.
515 (thread_db_target::wait): Update.
516 * linux-nat.h (class linux_nat_target) <wait>: Update.
517 * linux-nat.c (linux_nat_target::wait): Update.
518 (linux_nat_wait_1): Update.
519 * infrun.c (do_target_wait_1, do_target_wait): Change type of
520 "options".
521 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
522 * inf-ptrace.c (inf_ptrace_target::wait): Update.
523 * go32-nat.c (struct go32_nat_target) <wait>: Update.
524 (go32_nat_target::wait): Update.
525 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
526 * gnu-nat.c (gnu_nat_target::wait): Update.
527 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
528 * fbsd-nat.c (fbsd_nat_target::wait): Update.
529 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
530 * darwin-nat.c (darwin_nat_target::wait): Update.
531 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
532 (bsd_uthread_target::wait): Update.
533 * aix-thread.c (class aix_thread_target) <wait>: Update.
534 (aix_thread_target::wait): Update.
535
0295dde6
AB
5362020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
537
538 * compile/compile-object-run.c (create_copied_type_recursive): New
539 function.
540 (compile_object_run): Use new function.
541
d3483b43
JT
5422020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
543
544 * NEWS: Mention x86_64 Cygwin core file support.
545
e7d612ad
JT
5462020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
547
548 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
549 (core_process_module_section): Handle NOTE_INFO_MODULE64.
550
aff9d387
JT
5512020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
552
62a5151b
JT
553 * windows-tdep.h: Add prototypes.
554 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
555 (i386_windows_core_pid_to_str): Move and rename ...
556 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
557 (windows_core_pid_to_str): ... and here.
558 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
559
5602020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
561 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
562 (amd64_windows_init_abi_common): ... and register.
563
7d155da3
JT
5642020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
565
566 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
567 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
568
e8ef12b9
PA
5692020-09-18 Pedro Alves <pedro@palves.net>
570
571 PR gdb/26631
572 * thread.c (thread_find_command): Switch inferior before calling
573 target methods.
574
c1e1314d
TT
5752020-09-17 Tom Tromey <tromey@adacore.com>
576
577 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
578 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
579 (tdesc_arch_data_up): New typedef.
580 (tdesc_use_registers, tdesc_data_alloc): Update.
581 (tdesc_data_cleanup): Don't declare.
582 * target-descriptions.c (tdesc_data_alloc): Return a
583 tdesc_arch_data_up.
584 (tdesc_arch_data_deleter::operator()): Rename from
585 tdesc_data_cleanup. Change argument type.
586 (tdesc_use_registers): Change early_data to an rvalue reference.
587 (tdesc_use_registers): Don't use delete.
588 * sparc-tdep.c (sparc32_gdbarch_init): Update.
589 * s390-tdep.c (s390_gdbarch_init): Update.
590 * rx-tdep.c (rx_gdbarch_init): Update.
591 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
592 * riscv-tdep.c (riscv_gdbarch_init): Update.
593 * or1k-tdep.c (or1k_gdbarch_init): Update.
594 * nios2-tdep.c (nios2_gdbarch_init): Update.
595 * nds32-tdep.c (nds32_gdbarch_init): Update.
596 * mips-tdep.c (mips_gdbarch_init): Update.
597 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
598 * m68k-tdep.c (m68k_gdbarch_init): Update.
599 * i386-tdep.c (i386_gdbarch_init): Update.
600 * arm-tdep.c (arm_gdbarch_init): Update.
601 * arc-tdep.c (arc_tdesc_init): Update.
602 (arc_gdbarch_init): Update.
603 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
604
0363df3d
HD
6052020-09-17 Hannes Domani <ssbssa@yahoo.de>
606
607 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
608 for WOW64 processes.
609
280a9412
TT
6102020-09-17 Tom Tromey <tom@tromey.com>
611
612 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
613
6108fd18
TT
6142020-09-17 Tom Tromey <tom@tromey.com>
615
616 * value.c (preserve_values): Update.
617 * python/py-type.c (save_objfile_types): Update.
618 * guile/scm-type.c (save_objfile_types): Update.
619 * gdbtypes.h (create_copied_types_hash): Return htab_up.
620 * gdbtypes.c (create_copied_types_hash): Return htab_up.
621 * compile/compile-object-run.c (compile_object_run): Update.
622
fa9b1164
TT
6232020-09-17 Tom Tromey <tom@tromey.com>
624
625 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
626 Remove.
627 <m_table>: Now htab_up.
628 * typeprint.c (typedef_hash_table::recursively_update)
629 (typedef_hash_table::add_template_parameters)
630 (typedef_hash_table::typedef_hash_table): Update.
631 (typedef_hash_table::~typedef_hash_table): Remove.
632 (typedef_hash_table::typedef_hash_table)
633 (typedef_hash_table::find_global_typedef)
634 (typedef_hash_table::find_typedef): Update.
635
eb53f105
TT
6362020-09-17 Tom Tromey <tom@tromey.com>
637
638 * target-descriptions.c (tdesc_use_registers): Use htab_up.
639
7a8a5d47
TT
6402020-09-17 Tom Tromey <tom@tromey.com>
641
642 * linespec.c (class decode_compound_collector)
643 <~decode_compound_collector>: Remove.
644 <m_unique_syms>: Now htab_up.
645 (decode_compound_collector::operator ()): Update.
646 (class symtab_collector) <~symtab_collector>: Remove.
647 <m_symtab_table>: Now htab_up.
648 (symtab_collector::operator ()): Update.
649
99032cfc
TT
6502020-09-17 Tom Tromey <tom@tromey.com>
651
652 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
653 (filename_seen_cache::clear): Update.
654 (~filename_seen_cache): Remove.
655 (filename_seen_cache::seen): Update.
656 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
657 htab_up.
658 <~filename_seen_cache>: Remove.
659 <traverse>: Update.
660
32580f6d
TT
6612020-09-17 Tom Tromey <tom@tromey.com>
662
663 * completer.c (completion_tracker::discard_completions)
664 (completion_tracker::~completion_tracker)
665 (completion_tracker::maybe_add_completion)
666 (completion_tracker::remove_completion)
667 (completion_tracker::recompute_lowest_common_denominator)
668 (completion_tracker::build_completion_result): Update.
669 * completer.h (class completion_tracker) <have_completions>:
670 Update.
671 <m_entries_hash>: Now htab_up.
672
c1fb9836
TT
6732020-09-17 Tom Tromey <tom@tromey.com>
674
675 * breakpoint.c (ambiguous_names_p): Use htab_up.
676
88f07206
TT
6772020-09-17 Tom Tromey <tom@tromey.com>
678
679 * auto-load.c (struct auto_load_pspace_info)
680 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
681 <loaded_script_files, loaded_script_texts>: Change type to
682 htab_up.
683 (~auto_load_pspace_info) Remove.
684 (init_loaded_scripts_info, maybe_add_script_file)
685 (maybe_add_script_text, auto_load_info_scripts): Update.
686
9519b2ee
TT
6872020-09-17 Tom Tromey <tromey@adacore.com>
688
689 * c-exp.y (name_obstack): Now static.
690
d2cd4113
CC
6912020-09-17 Chungyi Chi <demonic@csie.io>
692
693 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
694
b650a282
SM
6952020-09-16 Simon Marchi <simon.marchi@efficios.com>
696
697 * breakpoint.h (init_catchpoint): Change int parameter to bool.
698 (add_solib_catchpoint): Likewise.
699 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
700 to bool.
701 (add_solib_catchpoint): Change int parameter/variable to bool.
702 (catch_load_or_unload): Likewise.
703 (init_catchpoint): Likewise.
704 (create_fork_vfork_event_catchpoint): Likewise.
705 (catch_fork_command_1): Likewise.
706 (catch_exec_command_1): Likewise.
707
4d0bcfcf
SM
7082020-09-16 Simon Marchi <simon.marchi@efficios.com>
709
710 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
711 Change instance_flags to m_instance_flags.
712
fe830662
TT
7132020-09-16 Tom Tromey <tromey@adacore.com>
714
715 PR gdb/26598:
716 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
717
fe5ddfc3
JB
7182020-09-16 John Baldwin <jhb@FreeBSD.org>
719
720 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
721 PL_FLAG_EXEC.
722 (fbsd_nat_target::insert_exec_catchpoint)
723 (fbsd_nat_target::remove_exec_catchpoint): Always define.
724 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
725 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
726
e911c666
JB
7272020-09-16 John Baldwin <jhb@FreeBSD.org>
728
729 * configure.ac: Remove check for kinfo_getvmmap().
730 * configure, config.in: Regenerate.
731 * fbsd-nat.c (fbsd_read_mapping): Remove
732 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
733 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
734 kinfo_get_vmmap() are always present.
735
1f17d372
JB
7362020-09-16 John Baldwin <jhb@FreeBSD.org>
737
738 * fbsd-nat.c: Always include support for
739 TARGET_OBJECT_SIGNAL_INFO.
740
bcb1da7f
JB
7412020-09-16 John Baldwin <jhb@FreeBSD.org>
742
743 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
744 sysctl and remove procfs fallback.
745
5515f729
JB
7462020-09-16 John Baldwin <jhb@FreeBSD.org>
747
748 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
749 * fbsd-nat.h: Likewise.
750
da1df1db
TBA
7512020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
752
753 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
754 argument.
755
0e25e767
AB
7562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
757
758 * ada-lang.c (ada_language_data): Delete.
759 (ada_language): Remove references to ada_language_data.
760 * c-lang.c (c_language_data): Delete.
761 (c_language): Remove references to c_language_data.
762 (cplus_language_data): Delete.
763 (cplus_language): Remove references to cplus_language_data.
764 (asm_language_data): Delete.
765 (asm_language): Remove references to asm_language_data.
766 (minimal_language_data): Delete.
767 (minimal_language): Remove references to minimal_language_data.
768 * d-lang.c (d_language_data): Delete.
769 (d_language): Remove references to d_language_data.
770 * f-lang.c (f_language_data): Delete.
771 (f_language): Remove references to f_language_data.
772 * go-lang.c (go_language_data): Delete.
773 (go_language): Remove references to go_language_data.
774 * language.c (unknown_language_data): Delete.
775 (unknown_language): Remove references to unknown_language_data.
776 (auto_language_data): Delete.
777 (auto_language): Remove references to auto_language_data.
778 * language.h (language_data): Delete struct.
779 (language_defn): No longer inherit from language_data.
780 * m2-lang.c (m2_language_data): Delete.
781 (m2_language): Remove references to m2_language_data.
782 * objc-lang.c (objc_language_data): Delete.
783 (objc_language): Remove references to objc_language_data.
784 * opencl-lang.c (opencl_language_data): Delete.
785 (opencl_language): Remove references to opencl_language_data.
786 * p-lang.c (pascal_language_data): Delete.
787 (pascal_language): Remove references to pascal_language_data.
788 * rust-lang.c (rust_language_data): Delete.
789 (rust_language): Remove references to rust_language_data.
790
b7c6e27d
AB
7912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
792
793 * ada-lang.c (ada_language_data): Remove la_op_print_tab
794 initializer.
795 (ada_language::opcode_print_table): New member function.
796 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
797 (c_language::opcode_print_table): New member function.
798 (cplus_language_data): Remove la_op_print_tab initializer.
799 (cplus_language::opcode_print_table): New member function.
800 (asm_language_data): Remove la_op_print_tab initializer.
801 (asm_language::opcode_print_table): New member function.
802 (minimal_language_data): Remove la_op_print_tab initializer.
803 (minimal_language::opcode_print_table): New member function.
804 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
805 (d_language::opcode_print_table): New member function.
806 * expprint.c (print_subexp_standard): Update call to
807 opcode_print_table.
808 (op_string): Likewise.
809 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
810 (f_language::opcode_print_table): New member function.
811 * go-lang.c (go_language_data): Remove la_op_print_tab
812 initializer.
813 (go_language::opcode_print_table): New member function.
814 * language.c (unknown_language_data): Remove la_op_print_tab
815 initializer.
816 (unknown_language::opcode_print_table): New member function.
817 (auto_language_data): Remove la_op_print_tab initializer.
818 (auto_language::opcode_print_table): New member function.
819 * language.h (language_data): Remove la_op_print_tab field.
820 (language_defn::opcode_print_table): Declare new member function.
821 * m2-lang.c (m2_language_data): Remove la_op_print_tab
822 initializer.
823 (m2_language::opcode_print_table): New member function.
824 * objc-lang.c (objc_language_data): Remove la_op_print_tab
825 initializer.
826 (objc_language::opcode_print_table): New member function.
827 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
828 initializer.
829 (opencl_language::opcode_print_table): New member function.
830 * p-lang.c (pascal_language_data): Remove la_op_print_tab
831 initializer.
832 (pascal_language::opcode_print_table): New member function.
833 * rust-lang.c (rust_language_data): Remove la_op_print_tab
834 initializer.
835 (rust_language::opcode_print_table): New member function.
836
5aba6ebe
AB
8372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
838
839 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
840 (ada_language::expression_ops): New member function.
841 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
842 (c_language::expression_ops): New member function.
843 (cplus_language_data): Remove la_exp_desc initializer.
844 (cplus_language::expression_ops): New member function.
845 (asm_language_data): Remove la_exp_desc initializer.
846 (asm_language::expression_ops): New member function.
847 (minimal_language_data): Remove la_exp_desc initializer.
848 (minimal_language::expression_ops): New member function.
849 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
850 (d_language::expression_ops): New member function.
851 * eval.c (evaluate_subexp): Update call to expression_ops.
852 * expprint.c (print_subexp): Likewise.
853 (op_name): Likewise.
854 (dump_subexp_body): Likewise.
855 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
856 (f_language::expression_ops): New member function.
857 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
858 (go_language::expression_ops): New member function.
859 * language.c (language_defn::expression_ops): New function.
860 (unknown_language_data): Remove la_exp_desc initializer.
861 (auto_language_data): Likewise.
862 * language.h (language_data): Remove la_exp_desc field.
863 (language_defn::expression_ops): Declare new member function.
864 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
865 (m2_language::expression_ops): New member function.
866 * objc-lang.c (objc_language_data): Remove la_exp_desc
867 initializer.
868 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
869 initializer.
870 (opencl_language::expression_ops): New member function.
871 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
872 * parse.c (operator_length): Update call to expression_ops.
873 (exp_iterate): Likewise.
874 * rust-lang.c (rust_language_data): Remove la_exp_desc
875 initializer.
876 (ruse_language::expression_ops): New member function.
877
b63a3f3f
AB
8782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
879
880 * ada-lang.c (ada_language_data): Remove la_varobj_ops
881 initializer.
882 (ada_language::varobj_ops): New member function.
883 * c-lang.c (c_language_data): Remove la_varobj_ops
884 initializer.
885 (cplus_language_data): Likewise.
886 (cplus_language::varobj_ops): New member function.
887 (asm_language_data): Remove la_varobj_ops initializer.
888 (minimal_language_data): Likewise.
889 * d-lang.c (d_language_data): Likewise.
890 * f-lang.c (f_language_data): Likewise.
891 * go-lang.c (go_language_data): Likewise.
892 * language.c (language_defn::varobj_ops): New function.
893 (unknown_language_data): Remove la_varobj_ops
894 initializer.
895 (auto_language_data): Likewise.
896 * language.h (language_data): Remove la_varobj_ops field.
897 (language_defn::varobj_ops): Declare new member function.
898 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
899 * objc-lang.c (objc_language_data): Likewise.
900 * opencl-lang.c (opencl_language_data): Likewise.
901 * p-lang.c (pascal_language_data): Likewise.
902 * rust-lang.c (rust_language_data): Likewise.
903 * varobj.c (varobj_create): Update call to varobj_ops.
904 * varobj.h (default_varobj_ops): Delete define.
905
1ac14a04
AB
9062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
907
908 * ada-lang.c (ada_language_data): Remove la_macro_expansion
909 initializer.
910 * c-lang.c (c_language_data): Likewise.
911 (c_language::macro_expansion): New member function.
912 (cplus_language_data): Likewise.
913 (cplus_language::macro_expansion): New member function.
914 (asm_language_data): Likewise.
915 (asm_language::macro_expansion): New member function.
916 (minimal_language_data): Likewise.
917 (minimal_language::macro_expansion): New member function.
918 * d-lang.c (d_language_data): Remove la_macro_expansion
919 initializer.
920 * f-lang.c (f_language_data): Likewise.
921 * go-lang.c (go_language_data): Likewise.
922 * language.c (unknown_language_data): Likewise.
923 (auto_language_data): Likewise.
924 * language.h (language_data): Remove la_macro_expansion field.
925 (language_defn::macro_expansion): New member function.
926 * m2-lang.c (m2_language_data): Remove la_macro_expansion
927 initializer.
928 * objc-lang.c (objc_language_data): Likewise.
929 (objc_language::macro_expansion): New member function.
930 * opencl-lang.c (opencl_language_data): Likewise.
931 (opencl_language::macro_expansion): New member function.
932 * p-lang.c (pascal_language_data): Remove la_macro_expansion
933 initializer.
934 * rust-lang.c (rust_language_data): Likewise.
935 * symtab.c (default_collect_symbol_completion_matches_break_on):
936 Update call to macro_expansion.
937
3a3440fb
AB
9382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
939
940 * ada-lang.c (ada_language_data): Remove la_array_ordering
941 initializer.
942 * c-lang.c (c_language_data): Likewise.
943 (cplus_language_data): Likewise.
944 (asm_language_data): Likewise.
945 (minimal_language_data): Likewise.
946 * d-lang.c (d_language_data): Likewise.
947 * dwarf2/read.c (read_array_order): Update for call to
948 array_ordering.
949 * f-lang.c (f_language_data): Remove la_array_ordering
950 initializer.
951 (f_language::array_ordering): New member function.
952 * go-lang.c (go_language_data): Remove la_array_ordering
953 initializer.
954 * language.c (unknown_language_data): Likewise.
955 (auto_language_data): Likewise.
956 * language.h (language_data): Delete la_array_ordering field.
957 (language_defn::array_ordering): New member function.
958 * m2-lang.c (m2_language_data): Remove la_array_ordering
959 initializer.
960 * objc-lang.c (objc_language_data): Likewise.
961 * opencl-lang.c (opencl_language_data): Likewise.
962 * p-lang.c (pascal_language_data): Likewise.
963 * rust-lang.c (rust_language_data): Likewise.
964
0d201fa4
AB
9652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
966
967 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
968 initializer.
969 * c-lang.c (c_language_data): Likewise.
970 (cplus_language_data): Likewise.
971 (asm_language_data): Likewise.
972 (minimal_language_data): Likewise.
973 * d-lang.c (d_language_data): Likewise.
974 * f-lang.c (f_language_data): Likewise.
975 (f_language::case_sensitivity): New member function.
976 * go-lang.c (go_language_data): Remove la_case_sensitivity
977 initializer.
978 * language.c (enum case_mode): Moved here from language.h.
979 (case_mode): Make static.
980 (show_case_command): Update for case_sensitivity being a method.
981 (set_case_command): Likewise.
982 (set_range_case): Likewise.
983 (unknown_language_data): Remove la_case_sensitivity initializer.
984 (auto_language_data): Likewise.
985 * language.h (case_mode): Delete, move enum declaration to
986 language.c.
987 (language_data): Delete la_case_sensitivity field.
988 (language_defn::case_sensitivity): New member function.
989 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
990 initializer.
991 * objc-lang.c (objc_language_data): Likewise.
992 * opencl-lang.c (opencl_language_data): Likewise.
993 * p-lang.c (pascal_language_data): Likewise.
994 * rust-lang.c (rust_language_data): Likewise.
995
efdf6a73
AB
9962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
997
998 * ada-lang.c (ada_language_data): Remove la_range_check
999 initializer.
1000 * c-lang.c (c_language_data): Likewise.
1001 (cplus_language_data): Likewise.
1002 (asm_language_data): Likewise.
1003 (minimal_language_data): Likewise.
1004 * d-lang.c (d_language_data): Likewise.
1005 * f-lang.c (f_language_data): Likewise.
1006 (f_language::range_checking_on_by_default): New member function.
1007 * go-lang.c (go_language_data): Remove la_range_check initializer.
1008 * language.c (enum range_mode): Moved here from language.h.
1009 (range_mode): Made static.
1010 (show_range_command): Update to use
1011 range_checking_on_by_default.
1012 (set_range_command): Likewise.
1013 (set_range_case): Likewise.
1014 (unknown_language_data): Remove la_range_check initializer.
1015 (auto_language_data): Likewise.
1016 * language.h (range_mode): Delete. Enum definition moved to
1017 language.c.
1018 (language_data): Remove la_range_check field.
1019 (language_defn::range_checking_on_by_default): New member
1020 function.
1021 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1022 (m2_language::range_checking_on_by_default): New member function.
1023 * objc-lang.c (objc_language_data): Remove la_range_check
1024 initializer.
1025 * opencl-lang.c (opencl_language_data): Likewise.
1026 * p-lang.c (pascal_language_data): Likewise.
1027 (pascal_language::range_checking_on_by_default): New member
1028 function.
1029 * rust-lang.c (rust_language_data): Remove la_range_check
1030 initializer.
1031 (rust_language::range_checking_on_by_default): New member
1032 function.
1033
bf92aec5
AB
10342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1035
1036 * dwarf2/read.c (dwarf2_physname): Remove special case for
1037 language_go.
1038 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1039 member function.
1040
d3355e4d
AB
10412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1042
1043 * ada-lang.c (ada_language_data): Remove
1044 la_store_sym_names_in_linkage_form_p initializer.
1045 (ada_language::store_sym_names_in_linkage_form_p): New member
1046 function.
1047 * c-lang.c (c_language_data): Remove
1048 la_store_sym_names_in_linkage_form_p initializer.
1049 (c_language::store_sym_names_in_linkage_form_p): New member
1050 function.
1051 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1052 initializer.
1053 (asm_language_data): Likewise.
1054 (asm_language::store_sym_names_in_linkage_form_p): New member
1055 function.
1056 (minimal_language_data): Remove
1057 la_store_sym_names_in_linkage_form_p initializer.
1058 (minimal_language::store_sym_names_in_linkage_form_p): New member
1059 function.
1060 * d-lang.c (d_language_data): Remove
1061 la_store_sym_names_in_linkage_form_p initializer.
1062 * dwarf2/read.c (dwarf2_physname): Update call to
1063 store_sym_names_in_linkage_form_p.
1064 * f-lang.c (f_language_data): Remove
1065 la_store_sym_names_in_linkage_form_p initializer.
1066 * go-lang.c (go_language_data): Remove
1067 la_store_sym_names_in_linkage_form_p initializer.
1068 * language.c (unknown_language_data): Remove
1069 la_store_sym_names_in_linkage_form_p initializer.
1070 (unknown_language::store_sym_names_in_linkage_form_p): New member
1071 function.
1072 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1073 initializer.
1074 (auto_language::store_sym_names_in_linkage_form_p): New member
1075 function.
1076 * language.h (language_data): Remove
1077 la_store_sym_names_in_linkage_form_p member variable.
1078 (language_defn::store_sym_names_in_linkage_form_p): New member
1079 function.
1080 * m2-lang.c (m2_language_data): Remove
1081 la_store_sym_names_in_linkage_form_p initializer.
1082 * objc-lang.c (objc_language_data): Likewise.
1083 * opencl-lang.c (opencl_language_data): Likewise.
1084 * p-lang.c (pascal_language_data): Likewise.
1085 * rust-lang.c (rust_language_data): Likewise.
1086
22c12a6c
AB
10872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1088
1089 * ada-lang.c (ada_language_data): Remove string_lower_bound
1090 initializer.
1091 * c-lang.c (c_language_data): Likewise.
1092 (cplus_language_data): Likewise.
1093 (asm_language_data): Likewise.
1094 (minimal_language_data): Likewise.
1095 * d-lang.c (d_language_data): Likewise.
1096 * f-lang.c (f_language_data): Likewise.
1097 * go-lang.c (go_language_data): Likewise.
1098 * language.c (unknown_language_data): Likewise.
1099 (auto_language_data): Likewise.
1100 * language.h (language_data): Remove string_lower_bound field.
1101 (language_defn::string_lower_bound): New member function.
1102 * m2-lang.c (m2_language_data): Remove string_lower_bound
1103 initializer.
1104 (m2_language::string_lower_bound): New member function.
1105 * objc-lang.c (objc_language_data): Remove string_lower_bound
1106 initializer.
1107 * opencl-lang.c (opencl_language_data): Likewise.
1108 * p-lang.c (pascal_language_data): Likewise.
1109 * rust-lang.c (rust_language_data): Likewise.
1110 * valops.c (value_cstring): Update call to string_lower_bound.
1111 (value_string): Likewise.
1112 * value.c (allocate_repeated_value): Likewise.
1113
1c236ddd
AB
11142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1115
1116 * valops.c (value_repeat): Fix incorrect argument name in comment.
1117
67bd3fd5
AB
11182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1119
1120 * ada-lang.c (ada_language_data): Remove c_style_arrays
1121 initializer.
1122 (ada_language::c_style_arrays_p): New member fuction.
1123 * c-lang.c (c_language_data): Remove c_style_arrays
1124 initializer.
1125 (cplus_language_data): Likewise.
1126 (asm_language_data): Likewise.
1127 (minimal_language_data): Likewise.
1128 * d-lang.c (d_language_data): Likewise.
1129 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1130 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1131 (f_language::c_style_arrays_p): New member function.
1132 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1133 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1134 * language.c (unknown_language_data): Remove c_style_arrays
1135 initializer.
1136 (auto_language_data): Likewise.
1137 * language.h (language_data): Remove c_style_arrays field.
1138 (language_defn::c_style_arrays_p): New member function.
1139 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1140 (m2_language::c_style_arrays_p): New member function.
1141 * objc-lang.c (objc_language_data): Remove c_style_arrays
1142 initializer.
1143 * opencl-lang.c (opencl_language_data): Likewise.
1144 * p-lang.c (pascal_language_data): Likewise.
1145 * rust-lang.c (rust_language_data): Likewise.
1146 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1147 and update local variable to a bool.
1148 * valops.c (value_cast): Update call to c_style_arrays_p.
1149 (value_array): Likewise.
1150 * value.c (coerce_array): Likewise.
1151
85967615
AB
11522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1153
1154 * ada-lang.c (ada_language_data): Remove la_language initializer.
1155 * c-lang.c (c_language_data): Likewise.
1156 (cplus_language_data): Likewise.
1157 (asm_language_data): Likewise.
1158 (minimal_language_data): Likewise.
1159 * d-lang.c (d_language_data): Likewise.
1160 * f-lang.c (f_language_data): Likewise.
1161 * go-lang.c (go_language_data): Likewise.
1162 * language.c (unknown_language_data): Likewise.
1163 (auto_language_data): Likewise.
1164 * language.h (language_data): Remove la_language field.
1165 (language_defn::language_defn): Initialise la_language field.
1166 (language_defn::la_language): New member variable.
1167 * m2-lang.c (m2_language_data): Remove la_language field.
1168 * objc-lang.c (objc_language_data): Likewise.
1169 * opencl-lang.c (opencl_language_data): Likewise.
1170 * p-lang.c (pascal_language_data): Likewise.
1171 * rust-lang.c (rust_language_data): Likewise.
1172
e171d6f1
AB
11732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1174
1175 * ada-lang.c (ada_extensions): Delete, moved into
1176 ada_language::filename_extensions.
1177 (ada_language_data): Remove la_filename_extensions initializer.
1178 (ada_language::filename_extensions): New member function.
1179 * c-lang.c (c_extensions): Delete, moved into
1180 c_language::filename_extensions.
1181 (c_language_data): Remove la_filename_extensions initializer.
1182 (c_language::filename_extensions): New member function.
1183 (cplus_extensions): Delete, moved into
1184 cplus_language::filename_extensions.
1185 (cplus_language_data): Remove la_filename_extensions initializer.
1186 (cplus_language::filename_extensions): New member function.
1187 (asm_extensions): Delete, moved into
1188 asm_language::filename_extensions.
1189 (asm_language_data): Remove la_filename_extensions initializer.
1190 (asm_language::filename_extensions): New member function.
1191 (minimal_language_data): Remove la_filename_extensions
1192 initializer.
1193 * d-lang.c (d_extensions): Delete, moved into
1194 d_language::filename_extensions.
1195 (d_language_data): Remove la_filename_extensions initializer.
1196 (d_language::filename_extensions): New member function.
1197 * f-lang.c (f_extensions): Delete, moved into
1198 f_language::filename_extensions.
1199 (f_language_data): Remove la_filename_extensions initializer.
1200 (f_language::filename_extensions): New member function.
1201 * go-lang.c (go_language_data): Remove la_filename_extensions
1202 initializer.
1203 * language.c (add_set_language_command): Update now that
1204 filename_extensions returns a vector.
1205 (unknown_language_data): Remove la_filename_extensions
1206 initializer.
1207 (auto_language_data): Likewise.
1208 * language.h (language_data): Remove la_filename_extensions field.
1209 (language_defn::filename_extensions): New member function.
1210 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1211 initializer.
1212 * objc-lang.c (objc_extensions): Delete, moved into
1213 objc_language::filename_extensions.
1214 (objc_language_data): Remove la_filename_extensions initializer.
1215 (objc_language::filename_extensions): New member function.
1216 * opencl-lang.c (opencl_language_data): Remove
1217 la_filename_extensions initializer.
1218 * p-lang.c (pascal_extensions): Delete, moved into
1219 pascal_language::filename_extensions.
1220 (pascal_language_data): Remove la_filename_extensions initializer.
1221 (pascal_language::filename_extensions): New member function.
1222 * rust-lang.c (rust_extensions): Delete, moved into
1223 rust_language::filename_extensions.
1224 (rust_language_data): Remove la_filename_extensions initializer.
1225 (rust_language::filename_extensions): New member function.
1226 * symfile.c (add_filename_language): Add new assert.
1227
6f7664a9
AB
12282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1229
1230 * ada-lang.c (ada_language_data): Remove la_name and
1231 la_natural_name initializers.
1232 (ada_language::name): New member function.
1233 (ada_language::natural_name): New member function.
1234 * c-lang.c (c_language_data): Remove la_name and
1235 la_natural_name initializers.
1236 (c_language::name): New member function.
1237 (c_language::natural_name): New member function.
1238 (cplus_language_data): Remove la_name and
1239 la_natural_name initializers.
1240 (cplus_language::name): New member function.
1241 (cplus_language::natural_name): New member function.
1242 (asm_language_data): Remove la_name and
1243 la_natural_name initializers.
1244 (asm_language::name): New member function.
1245 (asm_language::natural_name): New member function.
1246 (minimal_language_data): Remove la_name and
1247 la_natural_name initializers.
1248 (minimal_language::name): New member function.
1249 (minimal_language::natural_name): New member function.
1250 * compile/compile.c (compile_to_object): Update call to
1251 lanugage_defn::name.
1252 * d-lang.c (d_language_data): Remove la_name and
1253 la_natural_name initializers.
1254 (d_language::name): New member function.
1255 (d_language::natural_name): New member function.
1256 * expprint.c (print_subexp_standard): Update call to
1257 language_defn::name.
1258 (dump_raw_expression): Likewise
1259 (dump_prefix_expression): Likewise.
1260 * f-lang.c (f_language_data): Remove la_name and
1261 la_natural_name initializers.
1262 (f_language::name): New member function.
1263 (f_language::natural_name): New member function.
1264 * go-lang.c (go_language_data): Remove la_name and
1265 la_natural_name initializers.
1266 (go_language::name): New member function.
1267 (go_language::natural_name): New member function.
1268 * language.c (show_language_command): Update call to
1269 language_defn::name.
1270 (set_language_command): Likewise.
1271 (language_enum): Likewise.
1272 (language_str): Likewise.
1273 (add_set_language_command): Likewise, use
1274 language_defn::natural_name in the doc string.
1275 (unknown_language_data): Remove la_name and
1276 la_natural_name initializers.
1277 (unknown_language::name): New member function.
1278 (unknown_language::natural_name): New member function.
1279 (auto_language_data): Remove la_name and
1280 la_natural_name initializers.
1281 (auto_language::name): New member function.
1282 (auto_language::natural_name): New member function.
1283 (language_lookup_primitive_type_as_symbol): Update call to
1284 language_defn::name.
1285 * language.h (language_data): Remove la_name and la_natural_name
1286 member variables.
1287 (language_defn::name): New member function.
1288 (language_defn::natural_name): New member function.
1289 * m2-lang.c (m2_language_data): Remove la_name and
1290 la_natural_name initializers.
1291 (m2_language::name): New member function.
1292 (m2_language::natural_name): New member function.
1293 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1294 language_defn::natural_name.
1295 * objc-lang.c (objc_language_data): Remove la_name and
1296 la_natural_name initializers.
1297 (objc_language::name): New member function.
1298 (objc_language::natural_name): New member function.
1299 * opencl-lang.c (opencl_language_data): Remove la_name and
1300 la_natural_name initializers.
1301 (opencl_language::name): New member function.
1302 (opencl_language::natural_name): New member function.
1303 * p-lang.c (pascal_language_data): Remove la_name and
1304 la_natural_name initializers.
1305 (pascal_language::name): New member function.
1306 (pascal_language::natural_name): New member function.
1307 * rust-lang.c (rust_language_data): Remove la_name and
1308 la_natural_name initializers.
1309 (rust_language::name): New member function.
1310 (rust_language::natural_name): New member function.
1311 * symtab.c (lookup_language_this): Update call to
1312 language_defn::name.
1313
5bae7c4e
AB
13142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1315
1316 * ada-lang.c (ada_language_data): Remove la_name_of_this
1317 initializer.
1318 * ax-gdb.c (gen_expr): Update call to name_of_this.
1319 * c-exp.y (classify_name): Likewise.
1320 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1321 (cplus_language_data): Likewise.
1322 (cplus_language::name_of_this): New member function.
1323 (asm_language_data): Remove la_name_of_this initializer.
1324 (minimal_language_data): Likewise.
1325 * d-lang.c (d_language_data): Likewise.
1326 (d_language::name_of_this): New member function.
1327 * expprint.c (print_subexp_standard): Update call to name_of_this.
1328 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1329 * go-lang.c (go_language_data): Likewise.
1330 * language.c (unknown_language_data): Likewise.
1331 (unknown_language::name_of_this): New member function.
1332 (auto_language_data): Remove la_name_of_this initializer.
1333 (auto_language::name_of_this): New member function.
1334 * language.h (language_data): Delete la_name_of_this member
1335 variable.
1336 (language_defn::name_of_this): New member function.
1337 * m2-lang.c (m2_language_data): Remove la_name_of_this
1338 initializer.
1339 * objc-lang.c (objc_language_data): Likewise.
1340 (objc_language::name_of_this): New member function.
1341 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1342 initializer.
1343 * p-lang.c (pascal_language_data): Likewise.
1344 (pascal_language::name_of_this): New member function.
1345 * rust-lang.c (rust_language_data): Remove la_name_of_this
1346 initializer.
1347 * symtab.c (lookup_language_this): Update call to name_of_this.
1348 (lookup_symbol_aux): Likewise.
1349 * valops.c (value_of_this): Likewise.
1350
22e3f3ed
AB
13512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1352
1353 * ada-lang.c (ada_language_data): Remove
1354 la_struct_too_deep_ellipsis initializer.
1355 (ada_language::struct_too_deep_ellipsis): New member function.
1356 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1357 initializer.
1358 (cplus_language_data): Likewise.
1359 (asm_language_data): Likewise.
1360 (minimal_language_data): Likewise.
1361 * cp-valprint.c (cp_print_value): Update call to
1362 struct_too_deep_ellipsis.
1363 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1364 initializer.
1365 * f-lang.c (f_language_data): Likewise.
1366 (f_language::struct_too_deep_ellipsis): New member function.
1367 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1368 initializer.
1369 * language.c (unknown_language_data): Likewise.
1370 (auto_language_data): Likewise.
1371 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1372 member variable.
1373 (language_defn::struct_too_deep_ellipsis): New member function.
1374 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1375 initializer.Q
1376 * objc-lang.c (objc_language_data): Likewise.
1377 * opencl-lang.c (opencl_language_data): Likewise.
1378 * p-lang.c (pascal_language_data): Likewise.
1379 * rust-lang.c (rust_language_data): Likewise.
1380 * valprint.c (val_print_check_max_depth): Update call to
1381 struct_too_deep_ellipsis.
1382
ed29e1c7
FW
13832020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1384
1385 * MAINTAINERS (Write After Approval): Add myself.
1386
12d8f940
TT
13872020-09-15 Tom Tromey <tom@tromey.com>
1388
1389 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1390 Remove.
1391
6b5a7bc7
TT
13922020-09-15 Tom Tromey <tom@tromey.com>
1393
1394 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1395 and TYPE_CODE_METHODPTR cases.
1396 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1397 (c_value_print_inner): Update.
1398 * valprint.c (generic_value_print_memberptr): New function, from
1399 c_value_print_memberptr.
1400 (generic_value_print): Use it. Call cplus_print_method_ptr.
1401
47f0e2ff
TT
14022020-09-15 Tom Tromey <tromey@adacore.com>
1403
1404 * python/python-internal.h (PyInt_FromLong): Remove define.
1405 * python/py-value.c (convert_value_from_python): Use
1406 gdb_py_object_from_longest.
1407 * python/py-type.c (typy_get_code): Use
1408 gdb_py_object_from_longest.
1409 * python/py-symtab.c (salpy_get_line): Use
1410 gdb_py_object_from_longest.
1411 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1412 gdb_py_object_from_longest.
1413 * python/py-record.c (recpy_gap_reason_code): Use
1414 gdb_py_object_from_longest.
1415 * python/py-record-btrace.c (recpy_bt_insn_size)
1416 (recpy_bt_func_level, btpy_list_count): Use
1417 gdb_py_object_from_longest.
1418 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1419 gdb_py_object_from_longest. Fix error handling.
1420 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1421 gdb_py_object_from_longest.
1422 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1423 gdb_py_object_from_longest.
1424 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1425 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1426 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1427
512116ce
TT
14282020-09-15 Tom Tromey <tromey@adacore.com>
1429
1430 * python/python.c (gdbpy_parameter_value): Use
1431 gdb_py_object_from_ulongest.
1432
4ab1029c
TT
14332020-09-15 Tom Tromey <tromey@adacore.com>
1434
1435 * python/py-infevents.c (create_register_changed_event_object):
1436 Use gdb_py_object_from_longest.
1437 * python/py-exitedevent.c (create_exited_event_object): Use
1438 gdb_py_object_from_longest.
1439
062534d4
TT
14402020-09-15 Tom Tromey <tromey@adacore.com>
1441
1442 * python/python.c (gdbpy_parameter_value): Use
1443 gdb_py_object_from_longest.
1444 * python/py-type.c (convert_field, typy_range): Use
1445 gdb_py_object_from_longest.
1446 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1447 gdb_py_object_from_longest.
1448 * python/py-lazy-string.c (stpy_get_length): Use
1449 gdb_py_object_from_longest.
1450 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1451 gdb_py_object_from_longest.
1452 * python/py-infevents.c (create_memory_changed_event_object): Use
1453 gdb_py_object_from_longest.
1454 * python/py-inferior.c (infpy_get_num): Use
1455 gdb_py_object_from_longest.
1456 (infpy_get_pid): Likewise.
1457
d1cab987
TT
14582020-09-15 Tom Tromey <tromey@adacore.com>
1459
1460 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1461 defines.
1462 * python/py-value.c (valpy_long): Use
1463 gdb_py_object_from_ulongest.
1464 * python/py-symtab.c (salpy_get_pc): Use
1465 gdb_py_object_from_ulongest.
1466 (salpy_get_last): Likewise.
1467 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1468 gdb_py_object_from_ulongest.
1469 * python/py-lazy-string.c (stpy_get_address): Use
1470 gdb_py_object_from_ulongest.
1471 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1472 * python/py-arch.c (archpy_disassemble): Use
1473 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1474 error handling.
1475
4bde49dc
TT
14762020-09-15 Tom Tromey <tromey@adacore.com>
1477
1478 * python/python-internal.h (gdb_py_long_from_longest): Remove
1479 defines.
1480 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1481 * python/py-type.c (convert_field, typy_get_sizeof): Use
1482 gdb_py_object_from_longest.
1483 * python/py-record-btrace.c (btpy_list_index): Use
1484 gdb_py_object_from_longest.
1485
37431074
TT
14862020-09-15 Tom Tromey <tromey@adacore.com>
1487
1488 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1489 * python/py-record.c (recpy_element_number): Use
1490 gdb_py_object_from_longest.
1491 (recpy_gap_number): Likewise.
1492
cbe25684
TT
14932020-09-15 Tom Tromey <tromey@adacore.com>
1494
1495 * top.c (ui::ui): Update.
1496 (highest_ui_num): Remove.
1497 * top.h (struct ui) <num>: Remove.
1498
db92ac45
TT
14992020-09-15 Tom Tromey <tromey@adacore.com>
1500
1501 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1502 * ui-style.c (ansi_regex_text): Now array.
1503 * rust-exp.y (number_regex_text): Now array.
1504 * linespec.c (linespec_quote_characters): Now array.
1505 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1506 Now arrays.
1507
d2b31b67
SM
15082020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1509
1510 * debuginfod-support.c (debuginfod_client_deleter): New.
1511 (debuginfod_client_up): New.
1512 (debuginfod_init): Return debuginfod_client_up.
1513 (debuginfod_source_query): Adjust.
1514 (debuginfod_debuginfo_query): Adjust.
1515
3246bd8e
SM
15162020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1517
1518 * debuginfod-support.c (debuginfod_source_query): Use
1519 make_unique_xstrdup.
1520
10242f36
SM
15212020-09-14 Simon Marchi <simon.marchi@efficios.com>
1522
1523 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1524 with `type::instance_flags`.
1525
e1044e6a
MM
15262020-09-14 Michael Mullin <masmullin@gmail.com>
1527
1528 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1529 Remove baton parameter.
1530
04902b09
PA
15312020-09-14 Pedro Alves <pedro@palves.net>
1532
1533 * Makefile.in (SELFTESTS_SRCS): Add
1534 unittests/enum-flags-selftests.c.
1535 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1536 btrace_function_flags instead of enum btrace_function_flag.
1537 * compile/compile-c-types.c (convert_qualified): Use
1538 enum_flags::raw.
1539 * compile/compile-cplus-symbols.c (convert_one_symbol)
1540 (convert_symbol_bmsym):
1541 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1542 (compile_cplus_convert_struct_or_union_methods)
1543 (compile_cplus_instance::convert_qualified_base):
1544 * go-exp.y (parse_string_or_char): Add cast to int.
1545 * unittests/enum-flags-selftests.c: New file.
1546 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1547 type to btrace_thread_flags from btrace_thread_flag.
1548 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1549 local's type to btrace_thread_flags from btrace_thread_flag. Add
1550 cast in DEBUG call.
1551
69896a2c
PA
15522020-09-14 Pedro Alves <pedro@palves.net>
1553
1554 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1555 * gdbtypes.c (address_space_name_to_int): Rename to ...
1556 (address_space_name_to_type_instance_flags): ... this.
1557 (address_space_int_to_name): Rename to ...
1558 (address_space_type_instance_flags_to_name): ... this.
1559 * gdbtypes.h (address_space_name_to_int): Rename to ...
1560 (address_space_name_to_type_instance_flags): ... this.
1561 (address_space_int_to_name): Rename to ...
1562 (address_space_type_instance_flags_to_name): ... this.
1563 * type-stack.c (type_stack::insert): Adjust to rename.
1564 * type-stack.h (type_stack::insert): Likewise.
1565
314ad88d
PA
15662020-09-14 Pedro Alves <pedro@palves.net>
1567 Andrew Burgess <andrew.burgess@embecosm.com>
1568
1569 * avr-tdep.c (avr_address_class_type_flags): Return
1570 type_instance_flags.
1571 (avr_address_class_type_flags_to_name): Take a
1572 type_instance_flags.
1573 (avr_address_class_name_to_type_flags): Return bool and take a
1574 type_instance_flags.
1575 * d-lang.c (build_d_types): Use type::set_instance_flags.
1576 * ft32-tdep.c (ft32_address_class_type_flags): Return
1577 type_instance_flags.
1578 (ft32_address_class_type_flags_to_name): Take a
1579 type_instance_flags.
1580 (ft32_address_class_name_to_type_flags): Return bool and take a
1581 type_instance_flags.
1582 (ft32_gdbarch_init): Use type::set_instance_flags.
1583 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1584 * gdbarch.h, gdbarch.c: Regenerate.
1585 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1586 (address_class_name_to_type_flags): Use type_instance_flags and
1587 bool.
1588 * gdbtypes.c (address_space_name_to_int)
1589 (address_space_int_to_name, make_qualified_type): Use
1590 type_instance_flags.
1591 (make_qualified_type): Use type_instance_flags and
1592 type::set_instance_flags.
1593 (make_type_with_address_space, make_cv_type, make_vector_type)
1594 (check_typedef): Use type_instance_flags.
1595 (recursive_dump_type): Cast type_instance_flags to unsigned for
1596 printing.
1597 (copy_type_recursive): Use type::set_instance_flags.
1598 (gdbtypes_post_init): Use type::set_instance_flags.
1599 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1600 <m_instance_flags>: ... this.
1601 <instance_flags, set_instance_flags>: New methods.
1602 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1603 (SET_TYPE_INSTANCE_FLAGS): New.
1604 (address_space_name_to_int, address_space_int_to_name)
1605 (make_type_with_address_space): Pass flags using
1606 type_instance_flags instead of int.
1607 * stabsread.c (cleanup_undefined_types_noname): Use
1608 type::set_instance_flags.
1609 * s390-tdep.c (s390_address_class_type_flags): Return
1610 type_instance_flags.
1611 (s390_address_class_type_flags_to_name): Take a
1612 type_instance_flags.
1613 (s390_address_class_name_to_type_flags): Return bool and take a
1614 type_instance_flags.
1615 * type-stack.c (type_stack::follow_types): Use
1616 type_instance_flags.
1617 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1618
27087b7f
TT
16192020-09-14 Tom Tromey <tromey@adacore.com>
1620
1621 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1622 * x86-tdep.c (x86_is_thunk_register_name)
1623 (x86_in_indirect_branch_thunk): Update.
1624 * sparc64-tdep.c (sparc64_fpu_register_names)
1625 (sparc64_cp0_register_names, sparc64_register_names)
1626 (sparc64_pseudo_register_names): Now const.
1627 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1628 cp0_registers_num>: Now const.
1629 * sparc-tdep.c (sparc_core_register_names)
1630 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1631 (sparc32_pseudo_register_names): Now const.
1632 (validate_tdesc_registers): Update.
1633 * rust-lang.c (rust_extensions): Now const.
1634 * p-lang.c (p_extensions): Now const.
1635 * objc-lang.c (objc_extensions): Now const.
1636 * nto-tdep.c (nto_thread_state_str): Now const.
1637 * moxie-tdep.c (moxie_register_names): Now const.
1638 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1639 Now const.
1640 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1641 (mips_linux_reg_names): Now const.
1642 (mips_gdbarch_init): Update.
1643 * microblaze-tdep.c (microblaze_register_names): Now const.
1644 * m68k-tdep.c (m68k_register_names): Now const.
1645 * m32r-tdep.c (m32r_register_names): Now const.
1646 * ia64-tdep.c (ia64_register_names): Now const.
1647 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1648 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1649 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1650 ymm_avx512_register_names, pkeys_register_names>: Now const.
1651 * i386-tdep.c (i386_register_names, i386_zmm_names)
1652 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1653 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1654 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1655 * f-lang.c (f_extensions): Now const.
1656 * d-lang.c (d_extensions): Now const.
1657 * csky-tdep.c (csky_register_names): Now const.
1658 * charset.c (default_charset_names, charset_enum): Now const.
1659 (_initialize_charset): Update.
1660 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1661 const.
1662 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1663 (bsd_uthread_solib_loaded): Update.
1664 (bsd_uthread_state): Now const.
1665 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1666 (amd64_ymm_avx512_names, amd64_ymmh_names)
1667 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1668 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1669 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1670 (amd64_dword_names): Now const.
1671 * agent.c (can_use_agent_enum): Now const.
1672 * ada-tasks.c (task_states, long_task_states): Now const.
1673 * ada-lang.c (known_runtime_file_name_patterns)
1674 (known_auxiliary_function_name_patterns, attribute_names)
1675 (standard_exc, ada_extensions): Now const.
1676
89806626
SM
16772020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1678
1679 * bcache.h (struct bcache) <bcache>: Remove constructor.
1680 <m_hash_function, m_compare_function>: Remove.
1681 <~bcache>: Make virtual.
1682 <compare>: Remove static method, introduce virtual method.
1683 <default_hash>: Remove.
1684 <hash>: New virtual method.
1685 * bcache.c (bcache::expand_hash_table): Update.
1686 (bcache::insert): Update.
1687 (bcache::hash): New.
1688 (bcache::compare): Update comment and parameter names.
1689 * gdbtypes.c (types_deeply_equal): Update.
1690 * psymtab.h (struct psymbol_bcache): New struct.
1691 (class psymtab_storage) <psymtab_storage>: Make default.
1692 <psymbol_cache>: Change type to psymbol_bcache.
1693 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1694 (psymbol_hash): Change to...
1695 (psymbol_bcache::hash): ... this.
1696 (psymbol_compare): Change to...
1697 (psymbol_bcache::compare): ... this.
1698
677c92fe
SM
16992020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1700
1701 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1702 checking for initial lwp.
1703
3eba3a01
TT
17042020-09-14 Tom Tromey <tromey@adacore.com>
1705
1706 * m68k-tdep.c (m68k_extract_return_value): Use
1707 pointer_result_regnum.
1708 (m68k_store_return_value): Likewise.
1709 (m68k_reg_struct_return_p): Handle vectors and arrays.
1710 (m68k_return_value): Handle arrays.
1711 (m68k_svr4_return_value): Fix single-element aggregate handling.
1712 Handle long double. Adjust for embedded ABI.
1713 (m68k_svr4_init_abi): Set pointer_result_regnum.
1714 (m68k_embedded_init_abi): New function.
1715 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1716 (m68k_osabi_sniffer): New function.
1717 (_initialize_m68k_tdep): Register osabi sniffer.
1718 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1719 member.
1720
33f4dd48
SM
17212020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1722
1723 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1724 with gdb::unique_xmalloc_ptr<char>.
1725
8400a90d
SM
17262020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1727
1728 * xml-support.h (xml_fetch_another): Change type to be a
1729 function_view.
1730 (xml_process_xincludes): Remove baton parameter.
1731 (xml_fetch_content_from_file): Change baton parameter to
1732 dirname.
1733 * xml-support.c (struct xinclude_parsing_data)
1734 <xinclude_parsing_data>: Remove baton parameter.
1735 <fetcher_baton>: Remove.
1736 (xinclude_start_include): Adjust.
1737 (xml_process_xincludes): Adjust.
1738 (xml_fetch_content_from_file): Replace baton parameter with
1739 dirname.
1740 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1741 (xml_init_syscalls_info): Use a lambda.
1742 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1743 (file_read_description_xml): Use a lambda.
1744 (fetch_available_features_from_target): Change baton parameter
1745 to target_ops.
1746 (target_read_description_xml): Use a lambda.
1747 (target_fetch_description_xml): Use a lambda.
1748 (string_read_description_xml): Update.
1749
04f5bab2
SM
17502020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1751
1752 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1753 uses with type::endianity_is_not_default.
1754
db558e34
SM
17552020-09-14 Simon Marchi <simon.marchi@efficios.com>
1756
1757 * gdbtypes.h (struct type) <endianity_is_not_default,
1758 set_endianity_is_not_default>: New methods.
1759 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1760 type::endianity_is_not_default, change all write call sites to
1761 use type::set_endianity_is_not_default.
1762
22c4c60c
SM
17632020-09-14 Simon Marchi <simon.marchi@efficios.com>
1764
1765 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1766 uses with type::is_fixed_instance.
1767
9cdd0d12
SM
17682020-09-14 Simon Marchi <simon.marchi@efficios.com>
1769
1770 * gdbtypes.h (struct type) <is_fixed_instance,
1771 set_is_fixed_instance>: New methods.
1772 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1773 write call sites to use type::set_is_fixed_instance.
1774
0becda7a
SM
17752020-09-14 Simon Marchi <simon.marchi@efficios.com>
1776
1777 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1778 uses with type::is_gnu_ifunc.
1779
03cc7249
SM
17802020-09-14 Simon Marchi <simon.marchi@efficios.com>
1781
1782 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1783 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1784 use type::set_is_gnu_ifunc.
1785
3f46044c
SM
17862020-09-14 Simon Marchi <simon.marchi@efficios.com>
1787
1788 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1789 uses with type::stub_is_supported.
1790
9baccff6
SM
17912020-09-14 Simon Marchi <simon.marchi@efficios.com>
1792
1793 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1794 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1795 use type::set_stub_is_supported.
1796
bd63c870
SM
17972020-09-14 Simon Marchi <simon.marchi@efficios.com>
1798
1799 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1800 uses with type::is_vector.
1801
2062087b
SM
18022020-09-14 Simon Marchi <simon.marchi@efficios.com>
1803
1804 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1805 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1806 use type::set_is_vector.
1807
a409645d
SM
18082020-09-14 Simon Marchi <simon.marchi@efficios.com>
1809
1810 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1811 uses with type::has_varargs.
1812
1d6286ed
SM
18132020-09-14 Simon Marchi <simon.marchi@efficios.com>
1814
1815 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1816 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1817 use type::set_has_varargs.
1818
7f9f399b
SM
18192020-09-14 Simon Marchi <simon.marchi@efficios.com>
1820
1821 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1822 uses with type::is_prototyped.
1823
27e69b7a
SM
18242020-09-14 Simon Marchi <simon.marchi@efficios.com>
1825
1826 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1827 New methods.
1828 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1829 call sites to use type::set_is_prototyped.
1830
d2183968
SM
18312020-09-14 Simon Marchi <simon.marchi@efficios.com>
1832
1833 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1834 uses with type::target_is_stub.
1835
8f53807e
SM
18362020-09-14 Simon Marchi <simon.marchi@efficios.com>
1837
1838 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1839 New methods.
1840 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1841 sites to use type::set_target_is_stub.
1842
e46d3488
SM
18432020-09-14 Simon Marchi <simon.marchi@efficios.com>
1844
1845 * gdbtypes.h (TYPE_STUB): Remove, replace all
1846 uses with type::is_stub.
1847
b4b73759
SM
18482020-09-14 Simon Marchi <simon.marchi@efficios.com>
1849
1850 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1851 (TYPE_STUB): Use type::is_stub, change all write call sites to
1852 use type::set_is_stub.
1853
20ce4123
SM
18542020-09-14 Simon Marchi <simon.marchi@efficios.com>
1855
1856 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1857 type::has_no_signedness.
1858
15152a54
SM
18592020-09-14 Simon Marchi <simon.marchi@efficios.com>
1860
1861 * gdbtypes.h (struct type) <has_no_signedness,
1862 set_has_no_signedness>: New methods.
1863 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1864 call sites to use type::set_has_no_signedness.
1865
c6d940a9
SM
18662020-09-14 Simon Marchi <simon.marchi@efficios.com>
1867
1868 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1869 type::is_unsigned.
1870
653223d3
SM
18712020-09-14 Simon Marchi <simon.marchi@efficios.com>
1872
1873 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1874 methods.
1875 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1876 sites to use type::set_is_unsigned.
1877
55ea94da 18782020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 1879 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 1880
e851246a
SM
1881 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1882 pointer and stack frame offset when unwinding.
55ea94da 1883
6791b117
PA
18842020-09-13 Pedro Alves <pedro@palves.net>
1885
1886 * NEWS: Document "-break-insert --qualified".
1887 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1888
77f2120b
PA
18892020-09-13 Pedro Alves <pedro@palves.net>
1890
1891 * linespec.c (classify_mtype, compare_msyms): Delete.
1892 (search_minsyms_for_name): Remove classification logic. Instead
1893 filter out trampoline symbols if we also found an external
1894 function of the same name.
1895
ed6a896c
JB
18962020-09-13 Joel Brobecker <brobecker@adacore.com>
1897
1898 * NEWS: Create a new section for the next release branch.
1899 Rename the section of the current branch, now that it has
1900 been cut.
1901
32aea73e
JB
19022020-09-13 Joel Brobecker <brobecker@adacore.com>
1903
1904 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1905 * version.in: Bump version to 11.0.50.DATE-git.
1906
8087c3fa
JB
19072020-09-12 Joel Brobecker <brobecker@adacore.com>
1908
1909 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1910
2a67f09d
FW
19112020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1912 Felix Willgerodt <Felix.Willgerodt@intel.com>
1913
1914 * gdbarch.sh: Added bfloat16 type.
1915 * gdbarch.c: Regenerated.
1916 * gdbarch.h: Regenerated.
1917 * gdbtypes.c (floatformats_bfloat16): New struct.
1918 (gdbtypes_post_init): Add builtin_bfloat16.
1919 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1920 (floatformats_bfloat16): New struct.
1921 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1922 (i386_ymm_type): Add field "v16_bfloat16"
1923 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1924 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1925 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1926 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1927 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1928 * features/i386/64bit-avx512.c: Regenerated.
1929 * features/i386/64bit-sse.xml: Add bfloat16 type.
1930 * features/i386/64bit-sse.c: Regenerated.
1931
1347d111
FW
19322020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1933
1934 * i386-tdep.c (i386_zmm_type): Fix field names.
1935 (i386_ymm_type): Fix field names.
1936
7a4e8e7d
TBA
19372020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1938
1939 * breakpoint.c: Fix typo in the help message of the
1940 "set breakpoint condition-evaluation" command.
1941
cf4ac4be
KR
19422020-09-10 Kamil Rytarowski <n54@gmx.com>
1943
1944 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1945 * (nbsd_nat_target::pid_to_exec_file)
1946 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1947 (nbsd_nat_target::post_startup_inferior)
1948 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1949 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1950 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1951 * (nbsd_thread_lister): Remove.
1952
f404573e
KR
19532020-09-10 Kamil Rytarowski <n54@gmx.com>
1954
1955 * fork-inferior.c (startup_inferior): Avoid double free.
1956
1ccb2c17
KR
19572020-09-10 Kamil Rytarowski <n54@gmx.com>
1958
1959 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1960 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1961
feedfcc7
KR
19622020-09-10 Kamil Rytarowski <n54@gmx.com>
1963
1964 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1965 * netbsd-nat.c: Include <sys/ptrace.h>.
1966 * (netbsd_nat::enable_proc_events): Add.
1967
c489f8c6
KR
19682020-09-10 Kamil Rytarowski <n54@gmx.com>
1969
1970 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1971 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1972 (netbsd_nat::for_each_thread): Add.
1973 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1974 "gdbsupport/common-debug.h".
1975 * (netbsd_nat::netbsd_thread_lister)
1976 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1977 (netbsd_nat::for_each_thread): Add.
1978
330662f6
KR
19792020-09-10 Kamil Rytarowski <n54@gmx.com>
1980
1981 * netbsd-nat.h: Include <unistd.h>.
1982 * (netbsd_nat::pid_to_exec_file): Add.
1983 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1984 * (netbsd_nat::pid_to_exec_file) Add.
1985
70b67307
KR
19862020-09-10 Kamil Rytarowski <n54@gmx.com>
1987
1988 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1989
99cf6da6
KR
19902020-09-10 Kamil Rytarowski <n54@gmx.com>
1991
1992 * netbsd-nat.h: New file.
1993 * netbsd-nat.c: Likewise.
1994
1b788fb6
TT
19952020-09-09 Tom Tromey <tromey@adacore.com>
1996
1997 * ada-lang.c (remove_extra_symbols): Do not increment when
1998 removing an element
1999
03b0a45f
TT
20002020-09-08 Tom Tromey <tromey@adacore.com>
2001
2002 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2003
3cae4447
TT
20042020-09-08 Tom Tromey <tromey@adacore.com>
2005
2006 PR win32/25302:
2007 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2008 (gdb_bfd_init_data): New function.
2009 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2010
7f08fd51
TBA
20112020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2012
2013 * infrun.c (fetch_inferior_event): Use
2014 `switch_to_target_no_thread` to switch the target.
2015
3e6ff933
TT
20162020-09-06 Tom Tromey <tom@tromey.com>
2017
2018 * symfile.h (dwarf2_free_objfile): Don't declare.
2019
e56798df
AKS
20202020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2021
2022 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2023 to match 16 byte real/complex type generated by Flang compiler.
2024
8f5c6526
TV
20252020-09-03 Tom de Vries <tdevries@suse.de>
2026
2027 PR breakpoint/26546
2028 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2029 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2030
c5065df0
SM
20312020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2032
2033 * maint.c (index_digits): New function.
2034 (struct maint_print_section_data): Remove.
2035 (print_bfd_section_info): Remove print_data parameter, add arg
2036 and index_digits.
2037 (print_objfile_section_info): Likewise.
2038 (print_bfd_section_info_maybe_relocated): Likewise (plus
2039 objfile).
2040 (maintenance_info_sections): Adjust calls.
2041
02c6f3f1
TT
20422020-09-02 Tom Tromey <tromey@adacore.com>
2043
2044 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2045 for null pointers.
2046 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2047
ef5e5b0b
SM
20482020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2049
2050 * bcache.h (struct bcache) <insert>: Change type of `added` to
2051 pointer to bool.
2052 * bcache.c (bcache::insert): Likewise.
2053 * gdbtypes.c (check_types_worklist): Adjust.
2054 * psymtab.c (add_psymbol_to_bcache): Adjust.
2055
973695d6
KB
20562020-08-31 Kevin Buettner <kevinb@redhat.com>
2057
2058 * corelow.c (unordered_set): Include.
2059 (class core_target): Add field 'm_core_unavailable_mappings'.
2060 (core_target::build_file_mappings): Print only one warning
2061 per inaccessible file. Add unavailable/broken mappings
2062 to m_core_unavailable_mappings.
2063 (core_target::xfer_partial): Call...
2064 (core_target::xfer_memory_via_mappings): New method.
2065
264fc0e2
SM
20662020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2067
2068 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2069 type to bool.
2070
2de01bdb
SM
20712020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2072
2073 * dwarf2/read.c (struct field_info): Fix indentation.
2074
f3bd50f1
SM
20752020-08-31 Simon Marchi <simon.marchi@efficios.com>
2076
2077 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2078 ordering in comment.
2079 * frame.c (frame_id_eq): Fix indentation.
2080
22b9b4b0
SL
20812020-08-31 Scott Linder <scott@scottlinder.com>
2082 Simon Marchi <simon.marchi@efficios.com>
2083
2084 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2085 inline frame ids in outer frame.
2086
84154d16
SM
20872020-08-31 Simon Marchi <simon.marchi@efficios.com>
2088
2089 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2090 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2091 (outer_frame_id): Use FID_STACK_OUTER instead of
2092 FID_STACK_INVALID.
2093 (frame_id_p): Don't check for outer_frame_id.
2094
8efaf6b3
SM
20952020-08-31 Simon Marchi <simon.marchi@efficios.com>
2096
2097 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2098 regnum/frame in value. Call allocate_value_lazy.
2099 * frame.c (frame_unwind_register_value): Use
2100 val_print_not_saved.
2101
fe1fe7ea
SM
21022020-08-31 Simon Marchi <simon.marchi@efficios.com>
2103
2104 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2105
f7c7700d
PA
21062020-08-29 Pedro Alves <pedro@palves.net>
2107
2108 * progspace.c (print_program_space): Use all_inferiors. Switch to
2109 the inferior before calling target_pid_to_str.
2110
e0814aae
TT
21112020-08-28 Tom Tromey <tom@tromey.com>
2112
2113 * xcoffread.c (xcoff_end_psymtab): Update comment.
2114 * dbxread.c (dbx_end_psymtab): Update comment.
2115
626d2320
TV
21162020-08-28 Tom de Vries <tdevries@suse.de>
2117
2118 PR breakpoint/26544
2119 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2120 event_location.
2121 (create_breakpoint): Same.
2122 (base_breakpoint_decode_location): Same.
2123 (bkpt_create_sals_from_location): Same.
2124 (bkpt_decode_location): Same.
2125 (bkpt_probe_create_sals_from_location): Same.
2126 (bkpt_probe_decode_location): Same.
2127 (tracepoint_create_sals_from_location): Same.
2128 (tracepoint_decode_location): Same.
2129 (tracepoint_probe_decode_location): Same.
2130 (strace_marker_create_sals_from_location): Same.
2131 (strace_marker_decode_location): Same.
2132 (create_sals_from_location_default): Same.
2133 (decode_location_default): Same.
2134 * breakpoint.h (struct breakpoint_ops): Same.
2135 (create_breakpoint): Same.
2136 * linespec.h (decode_line_full): Same.
2137 * linespec.c (decode_line_full): Same. Throw error if
2138 result.size () == 0.
2139
df631783
PA
21402020-08-27 Pedro Alves <pedro@palves.net>
2141
2142 PR gdb/26524
2143 * breakpoint.c (until_break_fsm) <location_breakpoint,
2144 caller_breakpoint>: Delete fields.
2145 <breakpoints>: New field.
2146 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2147 two individual breakpoints.
2148 (until_break_fsm::should_stop): Loop over breakpoints in the
2149 breakpoint vector.
2150 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2151 vector.
2152 (until_break_command): Handle location expanding into multiple
2153 sals.
2154
b2b38aa4
PA
21552020-08-27 Pedro Alves <pedro@palves.net>
2156
2157 PR gdb/26523
2158 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2159 bp_until breakpoints user-specified locations. Update intro
2160 comment.
2161
b886559f
SM
21622020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2163
2164 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2165 gdb_bfd_sections): New.
2166 * maint.c (print_bfd_section_info): Change param type to
2167 maint_print_section_data.
2168 (print_objfile_section_info): Likewise.
2169 (print_bfd_section_info_maybe_relocated): Likewise.
2170 (maintenance_info_sections): Use gdb_bfd_sections.
2171
4c6e63bf
SV
21722020-08-25 Shahab Vahedi <shahab@synopsys.com>
2173
2174 * MAINTAINERS: Add ARC target and maintainer.
2175
8d7f0635
AK
21762020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2177
2178 * configure.tgt: ARC support for GNU/Linux.
2179 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2180 * arc-linux-tdep.c: New file.
2181 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2182 * arc-tdep.c (arc_write_pc): Use it.
2183
fdd8731b
SV
21842020-08-25 Shahab Vahedi <shahab@synopsys.com>
2185
2186 * arc-tdep.c (arc_check_for_hardware_loop): New.
2187 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2188
22459524
SV
21892020-08-25 Shahab Vahedi <shahab@synopsys.com>
2190
2191 * arc-tdep.h: Include "gdbarch.h".
2192
995d3a19
SV
21932020-08-25 Shahab Vahedi <shahab@synopsys.com>
2194
2195 * arch/arc.h
2196 (arc_gdbarch_features): New class to stir the selection of target XML.
2197 (arc_create_target_description): Use FEATURES to choose XML target.
2198 (arc_lookup_target_description): Use arc_create_target_description
2199 to create _new_ target descriptions or return the already created
2200 ones if the FEATURES is the same.
2201 * arch/arc.c: Implementation of prototypes described above.
2202 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2203 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2204 * arc-tdep.c (*_feature_name): Make feature names consistent.
2205 (arc_register_feature): A new struct to hold information about
2206 registers of a particular target/feature.
2207 (arc_check_tdesc_feature): Check if XML provides registers in
2208 compliance with ARC_REGISTER_FEATURE structs.
2209 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2210 (determine_*_reg_feature_set): Which feature name to look for.
2211 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2212 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2213 to expected ISA enums to be used in arc_gdbarch_features structs.
2214 * features/Makefile (FEATURE_XMLFILES): Add new files.
2215 * gdb/features/arc/v1-aux.c: New file.
2216 * gdb/features/arc/v1-aux.xml: Likewise.
2217 * gdb/features/arc/v1-core.c: Likewise.
2218 * gdb/features/arc/v1-core.xml: Likewise.
2219 * gdb/features/arc/v2-aux.c: Likewise.
2220 * gdb/features/arc/v2-aux.xml: Likewise.
2221 * gdb/features/arc/v2-core.c: Likewise.
2222 * gdb/features/arc/v2-core.xml: Likewise.
2223 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2224
3945d2d7
GM
22252020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2226 Andrew Burgess <andrew.burgess@embecosm.com>
2227
2228 PR m2/26372
fc5d6901 2229 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2230 an assert. Remove single element array indexing pattern as the
2231 MULTI_SUBSCRIPT support will handle this case too.
2232
2677f2d3
SM
22332020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2234
2235 * value.h (valprint_check_validity): Move declaration from
2236 here...
2237 * valprint.h (valprint_check_validity): ... to here.
2238
c426fddb
SM
22392020-08-24 Simon Marchi <simon.marchi@efficios.com>
2240
2241 * debug.h: New file.
2242 * debug.c (debug_prefixed_vprintf): New function.
2243 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2244 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2245
1eb8556f
SM
22462020-08-24 Simon Marchi <simon.marchi@efficios.com>
2247
2248 * infrun.h (infrun_debug_printf_1): New function declaration.
2249 (infrun_debug_printf): New macro.
2250 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2251 throughout.
2252 (infrun_debug_printf): New function.
2253 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2254 (handle_jit_event): Likewise.
2255
b8fff44e
MW
22562020-08-21 Mark Wielaard <mark@klomp.org>
2257
2258 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2259
d19c3068
SM
22602020-08-22 Simon Marchi <simon.marchi@efficios.com>
2261
2262 * frame.c (enum class frame_id_status): New.
2263 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2264 (fprintf_frame): Update.
2265 (compute_frame_id): Set frame id status to "computing" on entry.
2266 Set it back to "not_computed" on failure and to "computed" on
2267 success.
2268 (get_frame_id): Assert the frame id is not being computed.
2269 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2270 (create_new_frame): Likewise.
2271 (frame_cleanup_after_sniffer): Update assert.
2272
b70e516e
SM
22732020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2274
2275 * regcache.c (pid_ptid_regcache_map): New type.
2276 (target_ptid_regcache_map): Remove.
2277 (target_pid_ptid_regcache_map): New type.
2278 (regcaches): Change type to target_pid_ptid_regcache_map.
2279 (get_thread_arch_aspace_regcache): Update.
2280 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2281 case.
2282 (regcaches_size): Update.
2283 (regcache_count): Update.
2284 (registers_changed_ptid_target_pid_test): New.
2285 (_initialize_regcache): Register new test.
2286
cdd9148a
SM
22872020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2288
2289 * regcache.c (regcache_count): New.
2290 (struct regcache_test_data): New.
2291 (regcache_test_data_up): New.
2292 (populate_regcaches_for_test): New.
2293 (regcaches_test): Remove.
2294 (get_thread_arch_aspace_regcache_test): New.
2295 (registers_changed_ptid_all_test): New.
2296 (registers_changed_ptid_target_test): New.
2297 (registers_changed_ptid_target_ptid_test): New.
2298 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2299 (_initialize_regcache): Register new tests.
2300
dd125343
SM
23012020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2302
2303 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2304 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2305 gdbarch and aspace parameter. Use current inferior's aspace.
2306 Validate regcache's arch value.
2307 (regcaches_test): Update.
2308
3ee93972
SM
23092020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2310
2311 * regcache.c (regcaches_test): Call registers_changed.
2312
33bf4c5c
TBA
23132020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2314
2315 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2316
c2fd7fae
AKS
23172020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2318
2319 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2320 to find the end of prologue for flang compiled binaries.
2321 * arm-tdep.c (arm_skip_prologue): Likewise.
2322 * i386-tdep.c (i386_skip_prologue): Likewise.
2323 * producer.c (producer_is_llvm): New function.
2324 (producer_parsing_tests): Added new tests for clang/flang.
2325 * producer.h (producer_is_llvm): New declaration.
2326
9327494e
SM
23272020-08-18 Simon Marchi <simon.marchi@efficios.com>
2328
2329 * linux-nat.c (linux_nat_debug_printf): New function.
2330 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2331
d138725a
AM
23322020-08-18 Aaron Merey <amerey@redhat.com>
2333
2334 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2335 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2336 (CLIBS): Add DEBUGINFOD_LIBS.
2337
f9b11e6b
ST
23382020-08-17 Sergei Trofimovich <siarheit@google.com>
2339
2340 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2341 'gdbarch_num_regs'.
2342
3ae7ab99
TT
23432020-08-17 Tom Tromey <tromey@adacore.com>
2344
2345 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2346 ada_get_decoded_value returns NULL.
2347
b017825f
TT
23482020-08-17 Tom Tromey <tromey@adacore.com>
2349
2350 * python/py-inferior.c (infpy_search_memory): Use
2351 gdb_py_object_from_ulongest.
2352 * python/py-infevents.c (create_inferior_call_event_object)
2353 (create_memory_changed_event_object): Use
2354 gdb_py_object_from_ulongest.
2355 * python/py-linetable.c (ltpy_entry_get_pc): Use
2356 gdb_py_object_from_ulongest.
2357
7635cf79
SM
23582020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2359
2360 * loc.c (class symbol_needs_eval_context): Fix indentation.
2361
f54be24b
SM
23622020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2363
2364 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2365 bool.
2366
53d5a2a5
TV
23672020-08-17 Tom de Vries <tdevries@suse.de>
2368
2369 PR gdb/26393
2370 * gdbtypes.c (dump_dynamic_prop): New function.
2371 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2372
547ce8f0
TV
23732020-08-15 Tom de Vries <tdevries@suse.de>
2374
2375 PR backtrace/26390
2376 * stack.c (print_frame_args): Temporarily set the selected
2377 frame to FRAME while printing the frame's arguments.
2378
6ea815e7
PFC
23792020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2380
2381 PR breakpoints/26385
2382 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2383 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2384
6e562fa3
PFC
23852020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2386
2387 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2388 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2389 and >= to check return value instead of == -1 and != -1.
2390
d369b608
SM
23912020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2392
2393 * utils.h (class gdb_argv) <as_array_view>: New method.
2394 * utils.c (gdb_argv_as_array_view_test): New.
2395 (_initialize_utils): Register selftest.
2396 * maint.c (maintenance_selftest): Use the new method.
2397
b31488a3
KR
23982020-08-13 Kamil Rytarowski <n54@gmx.com>
2399
2400 * target.h (supports_dumpcore, dumpcore): New
2401 function declarations.
2402 * target.c (supports_dumpcore, dumpcore): New
2403 functions.
2404 * target-delegates.c: Rebuild.
2405 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2406 and target_dumpcore ().
2407
002a3166
AM
24082020-08-13 Aaron Merey <amerey@redhat.com>
2409
2410 * debuginfod-support.c: Replace global variables with user_data.
2411
ece5bc8a
SM
24122020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2413
2414 * maint.c (maintenance_selftest): Split args and pass array_view
2415 to run_tests.
2416
6d8a0a5e
LM
24172020-08-12 Luis Machado <luis.machado@linaro.org>
2418
2419 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2420 type's length.
2421 Use %s and pulongest to print the length.
2422
7cf663a9
PA
24232020-08-12 Pedro Alves <palves@redhat.com>
2424
2425 * NEWS: Move "Multi-target debugging support" item to the
2426 "Changes since GDB 9" section.
2427
27c7b875
PA
24282020-08-12 Pedro Alves <palves@redhat.com>
2429
2430 PR gdb/26336
2431 * progspace.c (program_space::remove_objfile): Invalidate the
2432 frame cache.
2433
1796a2a1
TV
24342020-08-11 Tom de Vries <tdevries@suse.de>
2435
2436 * MAINTAINERS: Mark ms1 as deleted.
2437
f8e3fe0d
LM
24382020-08-10 Luis Machado <luis.machado@linaro.org>
2439
2440 PR gdb/26310
2441
2442 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2443 act accordingly.
2444 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2445 movz/str/stur/stp skipping behavior.
2446
cc308722
LM
24472020-08-10 Luis Machado <luis.machado@linaro.org>
2448
2449 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2450 struct user_sve_header instead of struct sve_context.
2451
041d9819
SM
24522020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2453
2454 * read.h (dwarf2_fetch_die_loc_sect_off,
2455 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2456 `void *` parameter with function_view.
2457 * read.c (dwarf2_fetch_die_loc_sect_off,
2458 dwarf2_fetch_die_loc_cu_off): Likewise.
2459 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2460 (per_cu_dwarf_call): Adjust.
2461 (get_frame_address_in_block_wrapper): Remove.
2462 (indirect_synthetic_pointer): Adjust.
2463 (get_ax_pc): Remove.
2464 (dwarf2_compile_expr_to_ax): Adjust.
2465
38f8aa06
TV
24662020-08-08 Tom de Vries <tdevries@suse.de>
2467
2468 PR build/26344
2469 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2470 constructor.
2471 * regcache.c (get_thread_arch_aspace_regcache): Same.
2472
a52b3ae2
TT
24732020-08-07 Tom Tromey <tromey@adacore.com>
2474
2475 * ravenscar-thread.c
2476 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2477 New method.
2478 (ravenscar_thread_target::wait): Check
2479 runtime_initialized.
2480 (ravenscar_thread_target::prepare_to_store)
2481 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2482 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2483 (ravenscar_thread_target::stopped_by_watchpoint)
2484 (ravenscar_thread_target::stopped_data_address)
2485 (ravenscar_thread_target::core_of_thread): Use
2486 scoped_restore_current_thread and
2487 set_base_thread_from_ravenscar_task.
2488
0e29517d
TT
24892020-08-07 Tom Tromey <tromey@adacore.com>
2490
2491 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2492
592f9bd7
TT
24932020-08-07 Tom Tromey <tromey@adacore.com>
2494
2495 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2496 update_inferior_ptid before update_thread_list.
2497 (temporarily_change_regcache_ptid): New class.
2498 (ravenscar_thread_target::fetch_registers)
2499 (ravenscar_thread_target::store_registers)
2500 (ravenscar_thread_target::prepare_to_store): Use base thread when
2501 forwarding operation.
2502
39e2018a
TT
25032020-08-07 Tom Tromey <tromey@adacore.com>
2504
2505 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2506 "is_pid" case.
2507
2080266b
TT
25082020-08-07 Tom Tromey <tromey@adacore.com>
2509
2510 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2511 New methods.
2512 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2513 first.
2514 (ravenscar_thread_target::add_thread): Rename from
2515 ravenscar_add_thread.
2516 (ravenscar_thread_target::update_thread_list): Use a lambda.
2517 (ravenscar_thread_target::xfer_partial): New method.
2518
78c02f21
TT
25192020-08-07 Tom Tromey <tromey@adacore.com>
2520
2521 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2522 gdb::function_view.
2523 (iterate_over_live_ada_tasks): Change type of argument.
2524 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2525 of argument.
2526
d5d833af
TT
25272020-08-07 Tom Tromey <tromey@adacore.com>
2528
2529 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2530 Remove.
2531 (ravenscar_thread_target::extra_thread_info): Remove.
2532 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2533 defer to target beneath for non-Ravenscar threads.
2534
a8ac85bb
TT
25352020-08-07 Tom Tromey <tromey@adacore.com>
2536
2537 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2538 get_base_thread_from_ravenscar_task>: Now methods.
2539 <m_cpu_map>: New member.
2540 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2541 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2542 (ravenscar_thread_target::task_is_currently_active): Update.
2543 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2544 Now a method.
2545 (ravenscar_thread_target::add_active_thread): Put initial thread
2546 into the m_cpu_map.
2547
550ab58d
TT
25482020-08-07 Tom Tromey <tromey@adacore.com>
2549
2550 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2551 event_ptid.
2552
e9546579
TT
25532020-08-07 Tom Tromey <tromey@adacore.com>
2554
2555 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2556 runtime_initialized.
2557
3d4470e5
TT
25582020-08-07 Tom Tromey <tromey@adacore.com>
2559
2560 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2561 add_active_thread.
2562 (ravenscar_thread_target::add_active_thread): Now public.
2563 (ravenscar_inferior_created): Call add_active_thread after pushing
2564 the target.
2565
888bdb2b
SM
25662020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2567
2568 * regcache.c (ptid_regcache_map): New type.
2569 (target_ptid_regcache_map): New type.
2570 (regcaches): Change type to target_ptid_regcache_map.
2571 (get_thread_arch_aspace_regcache): Update to regcaches' new
2572 type.
2573 (regcache_thread_ptid_changed): Likewise.
2574 (registers_changed_ptid): Likewise.
2575 (regcaches_size): Likewise.
2576 (regcaches_test): Update.
2577 (regcache_thread_ptid_changed): Update.
2578 * regcache.h (regcache_up): New type.
2579 * gdbsupport/ptid.h (hash_ptid): New struct.
2580
b161a60d
SM
25812020-08-07 Simon Marchi <simon.marchi@efficios.com>
2582
2583 * observable.h (thread_ptid_changed): Add parameter
2584 `process_stratum_target *`.
2585 * infrun.c (infrun_thread_ptid_changed): Add parameter
2586 `process_stratum_target *` and use it.
2587 (selftests): New namespace.
2588 (infrun_thread_ptid_changed): New function.
2589 (_initialize_infrun): Register selftest.
2590 * regcache.c (regcache_thread_ptid_changed): Add parameter
2591 `process_stratum_target *` and use it.
2592 (regcache_thread_ptid_changed): New function.
2593 (_initialize_regcache): Register selftest.
2594 * thread.c (thread_change_ptid): Pass target to
2595 thread_ptid_changed observable.
2596
d2854d8d
CT
25972020-08-06 Caroline Tice <cmtice@google.com>
2598
fe4c3d43
SM
2599 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2600 (struct dwp_sections): Update field comments. Add loclists and
2601 rnglists fields.
2602 (struct virtual_v2_dwo_sections): Rename struct to
2603 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2604 size & offset fields for loclists and rnglists.
2605 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2606 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2607 skipping dummy type units.
2608 (create_dwp_hash_table): Update the large comment above the function to
2609 discuss Version 5 DWP files as well, with references. Update all the
2610 version checks in the function to check for version 5 as well. Add new
2611 section at the end to create dwp hash table for version 5.
2612 (create_dwp_v2_section): Rename function to
2613 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2614 Add V5 to error message text.
2615 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2616 into calls to create_dwp_v2_or_v5_section.
2617 (create_dwo_unit_in_dwp_v5): New function.
2618 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2619 check for version2; add else clause to handle version 5.
2620 (open_and_init_dwo_file): Add code to check dwarf version & only call
2621 create_debug_types_hash_table (with sections.types) if version is not 5;
2622 else call create_debug_type_hash_table, with sections.info.
2623 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2624 version 5.
2625 (dwarf2_locate_v5_dwp_sections): New function.
2626 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2627 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2628
159ed7d9
SM
26292020-08-06 Simon Marchi <simon.marchi@efficios.com>
2630
2631 * regcache.h (class regcache): Remove friend
2632 registers_changed_ptid.
2633 <regcache_thread_ptid_changed>: Remove.
2634 <regcaches>: Remove.
2635 * regcache.c (regcache::regcaches): Rename to...
2636 (regcaches): ... this. Make static.
2637 (get_thread_arch_aspace_regcache): Update.
2638 (regcache::regcache_thread_ptid_changed): Rename to...
2639 (regcache_thread_ptid_changed): ... this. Update.
2640 (class regcache_access): Remove.
2641 (regcaches_test): Update.
2642 (_initialize_regcache): Update.
2643 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2644 <forward_list>.
2645
174981ae
SM
26462020-08-06 Simon Marchi <simon.marchi@efficios.com>
2647
2648 * regcache.h (class regcache) <current_regcache>: Rename to...
2649 <regcaches>: ... this. Move doc here.
2650 * regcache.c (regcache::current_regcache) Rename to...
2651 (regcache::regcaches): ... this. Move doc to header.
2652 (get_thread_arch_aspace_regcache): Update.
2653 (regcache::regcache_thread_ptid_changed): Update.
2654 (registers_changed_ptid): Update.
2655 (class regcache_access) <current_regcache_size>: Rename to...
2656 <regcaches_size>: ... this.
2657 (current_regcache_test): Rename to...
2658 (regcaches_test): ... this.
2659 (_initialize_regcache): Update.
2660
ed908db6
VC
26612020-08-06 Victor Collod <vcollod@nvidia.com>
2662
2663 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2664
b5582ab7
KB
26652020-08-05 Kevin Buettner <kevinb@redhat.com>
2666
2667 * corelow.c (core_target::build_file_mappings): Don't output
2668 null pathname in warning.
2669
ea946b86
SM
26702020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2671
2672 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2673 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2674 gdb.dwarf2/dw2-single-line-discriminators.exp,
2675 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2676
57d02173
TT
26772020-08-05 Tom Tromey <tromey@adacore.com>
2678
2679 PR rust/26197:
2680 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2681 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2682 Fix off-by-one and type size errors in ordinary case.
2683
5555c86d
TV
26842020-08-05 Tom de Vries <tdevries@suse.de>
2685
2686 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2687 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2688
97916bfe
SM
26892020-08-04 Simon Marchi <simon.marchi@efficios.com>
2690
2691 * frame.h (frame_id_p): Return bool.
2692 (frame_id_artificial_p): Return bool.
2693 (frame_id_eq): Return bool.
2694 (has_stack_frames): Return bool.
2695 (get_selected_frame): Fix typo in comment.
2696 (get_frame_pc_if_available): Return bool.
2697 (get_frame_address_in_block_if_available): Return bool.
2698 (get_frame_func_if_available): Return bool.
2699 (read_frame_register_unsigned): Return bool.
2700 (get_frame_register_bytes): Return bool.
2701 (safe_frame_unwind_memory): Return bool.
2702 (deprecated_frame_register_read): Return bool.
2703 (frame_unwinder_is): Return bool.
2704 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2705 bool.
2706 <this_id::p>: Likewise.
2707 <prev_p>: Likewise.
2708 (frame_stash_add): Return bool.
2709 (get_frame_id): Use bool.
2710 (frame_id_build_special) Use bool.
2711 (frame_id_build_unavailable_stack): Use bool.
2712 (frame_id_build): Use bool.
2713 (frame_id_p): Return bool, use true/false instead of 1/0.
2714 (frame_id_artificial_p): Likewise.
2715 (frame_id_eq): Likewise.
2716 (frame_id_inner): Likewise.
2717 (get_frame_func_if_available): Likewise.
2718 (read_frame_register_unsigned): Likewise.
2719 (deprecated_frame_register_read): Likewise.
2720 (get_frame_register_bytes): Likewise.
2721 (has_stack_frames): Likewise.
2722 (inside_main_func): Likewise.
2723 (inside_entry_func): Likewise.
2724 (get_frame_pc_if_available): Likewise.
2725 (get_frame_address_in_block_if_available): Likewise.
2726 (frame_unwinder_is): Likewise.
2727 (safe_frame_unwind_memory): Likewise.
2728 (frame_unwind_arch): Likewise.
2729
fedfee88
SM
27302020-08-04 Simon Marchi <simon.marchi@efficios.com>
2731
2732 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2733 type to cached_copy_status.
2734 (fprintf_frame): Adjust.
2735 (get_frame_func_if_available): Adjust.
2736 (frame_cleanup_after_sniffer): Adjust.
2737
6cfa9b59
MW
27382020-08-04 Mark Wielaard <mark@klomp.org>
2739
2740 * MAINTAINERS (Write After Approval): Update email address.
2741
66d6346b
SM
27422020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2743
2744 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2745 dynamic_prop::const_val.
2746
8a6d5e35
SM
27472020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2748
2749 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2750 dynamic_prop::kind.
2751
51d6067d
SM
27522020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2753
2754 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2755
b26e2ae7
JM
27562020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2757
2758 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2759
39791af2
JM
27602020-08-04 Weimin Pan <weimin.pan@oracle.com>
2761 Jose E. Marchesi <jose.marchesi@oracle.com>
2762
2763 * configure.tgt: Add entry for bpf-*-*.
2764 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2765 (ALLDEPFILES): Add bpf-tdep.c.
2766 * bpf-tdep.c: New file.
2767 * MAINTAINERS: Add bpf target and maintainer.
2768 * NEWS: Mention the support for the new target.
2769
521894aa
TV
27702020-08-04 Tom de Vries <tdevries@suse.de>
2771
2772 PR symtab/23270
2773 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2774 Error.
2775
5d6356e9
JB
27762020-08-03 John Baldwin <jhb@FreeBSD.org>
2777
2778 * syscalls/freebsd.xml: Regenerate.
2779
0cf82b81
JB
27802020-08-03 John Baldwin <jhb@FreeBSD.org>
2781
2782 * syscalls/update-freebsd.sh: Fix usage and year range.
2783
8f34b746
TV
27842020-08-03 Tom de Vries <tdevries@suse.de>
2785
2786 PR symtab/26333
2787 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2788 DW_LNE_lo_user/DW_LNE_hi_user range.
2789
5e500d33
SM
27902020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2791
2792 PR ada/26318
2793 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2794 kind.
2795
78319c15
TBA
27962020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2797
2798 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2799
4c55e970
TBA
28002020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2801
2802 * breakpoint.c (set_breakpoint_condition): Update the condition
2803 expressions after checking that the input condition string parses
2804 successfully and does not contain junk at the end.
2805
1e620590
TBA
28062020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2807
2808 * breakpoint.c (set_breakpoint_condition): Update the
2809 condition string after parsing the new condition successfully.
2810
c8693053
RO
28112020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2812
2813 * proc-api.c (_STRUCTURED_PROC): Don't define.
2814 * proc-events.c: Likewise.
2815 * proc-flags.c: Likewise.
2816 * proc-why.c: Likewise.
2817 * procfs.c: Likewise.
2818
2819 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2820 * configure, config.in: Regenerate.
2821
5a99adb8
TV
28222020-07-30 Tom de Vries <tdevries@suse.de>
2823
2824 PR build/26320
2825 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2826 m_red/m_green/m_blue in a union.
2827
8ba83e91
TV
28282020-07-29 Tom de Vries <tdevries@suse.de>
2829
2830 PR tdep/26280
2831 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2832
f75a0693
AB
28332020-07-28 Tom Tromey <tromey@adacore.com>
2834
2835 PR symtab/26270:
2836 * symtab.h (find_pc_partial_function_sym): Declare.
2837 * cli/cli-cmds.c (disassemble_command): Use
2838 find_pc_partial_function_sym. Check asm_demangle.
2839 * blockframe.c (cache_pc_function_sym): New global.
2840 (cache_pc_function_name): Remove.
2841 (clear_pc_function_cache): Update.
2842 (find_pc_partial_function_sym): New function, from
2843 find_pc_partial_function.
2844 (find_pc_partial_function): Rewrite using
2845 find_pc_partial_function_sym.
2846
16f3242c
TT
28472020-07-28 Tom Tromey <tromey@adacore.com>
2848
2849 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2850 help. Add usage.
2851
4888741a
TT
28522020-07-28 Tom Tromey <tromey@adacore.com>
2853
2854 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2855 <DW_OP_GNU_variable_value>: Cast to address type.
2856
4d46f402
KR
28572020-07-28 Kamil Rytarowski <n54@gmx.com>
2858
2859 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2860 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2861 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2862 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2863 (nbsd_get_siginfo_type): New.
2864 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2865 (_initialize_nbsd_tdep): New.
2866
d70f978b
L
28672020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2868
2869 PR binutils/26301
2870 * configure: Regenerated.
2871
377170fa
L
28722020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2873
2874 PR binutils/26301
2875 * configure: Regenerated.
2876
43d5901d
AB
28772020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2878
2879 * python/py-frame.c: Remove 'user-regs.h' include.
2880 (frapy_read_register): Rewrite to make use of
2881 gdbpy_parse_register_id.
2882 * python/py-registers.c (gdbpy_parse_register_id): New function,
2883 moved here from python/py-unwind.c. Updated the return type, and
2884 also accepts register descriptor objects.
2885 * python/py-unwind.c: Remove 'user-regs.h' include.
2886 (pyuw_parse_register_id): Moved to python/py-registers.c.
2887 (unwind_infopy_add_saved_register): Update to use
2888 gdbpy_parse_register_id.
2889 (pending_framepy_read_register): Likewise.
2890 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2891
14fa8fb3
AB
28922020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2893
2894 * python/py-registers.c: Add 'user-regs.h' include.
2895 (register_descriptor_iter_find): New function.
2896 (register_descriptor_iterator_object_methods): New static global
2897 methods array.
2898 (register_descriptor_iterator_object_type): Add pointer to methods
2899 array.
2900
ddce1758
JB
29012020-07-27 John Baldwin <jhb@FreeBSD.org>
2902
2903 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2904 for all architectures on FreeBSD 11.3 and later.
2905
a4089f52
TT
29062020-07-27 Tom Tromey <tromey@adacore.com>
2907
2908 * gcore.h (load_corefile): Don't declare.
2909
95420d30
TV
29102020-07-27 Tom de Vries <tdevries@suse.de>
2911
2912 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2913 * config.in: Regenerate.
2914 * configure: Regenerate.
2915
05a6b8c2
EZ
29162020-07-26 Eli Zaretskii <eliz@gnu.org>
2917
2918 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2919 ws2tcpip.h. When checking whether socklen_t type is defined, use
2920 ws2tcpip.h if it is available and sys/socket.h isn't.
2921 * configure: Regenerate.
2922 * config.in: Regenerate.
2923
e79eb02f
AB
29242020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2925
2926 PR fortran/23051
2927 PR fortran/26139
2928 * valops.c (value_ind): Pass address to
2929 readjust_indirect_value_type.
2930 * value.c (readjust_indirect_value_type): Make parameter
2931 non-const, and add extra address parameter. Resolve original type
2932 before using it.
2933 * value.h (readjust_indirect_value_type): Update function
2934 signature and comment.
2935
876518dd
TV
29362020-07-25 Tom de Vries <tdevries@suse.de>
2937
2938 PR symtab/26243
2939 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2940 entries.
2941
f6720b1c
AM
29422020-07-24 Aaron Merey <amerey@redhat.com>
2943
2944 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2945 * configure: Rebuild.
2946
513487e1
KB
29472020-07-23 Kevin Buettner <kevinb@redhat.com>
2948
2949 PR corefiles/26294
2950 * corelow.c (_initialize_corelow): Add period to help text
2951 for "maintenance print core-file-backed-mappings".
2952
e7bc9db8
PA
29532020-07-23 Pedro Alves <pedro@palves.net>
2954
2955 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2956 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2957 meanwhile.
2958 * frame.c (frame_cache_generation, get_frame_cache_generation):
2959 New.
2960 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2961 (get_prev_frame_if_no_cycle): On exception, don't touch
2962 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2963 * frame.h (get_frame_cache_generation): Declare.
2964
90fcc466
TV
29652020-07-23 Tom de Vries <tdevries@suse.de>
2966
2967 PR tui/26282
2968 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2969 New default constructor.
2970
78344df7
AB
29712020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2972
2973 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2974 exclude non-statement entries.
2975
b089853a
KB
29762020-07-22 Kevin Buettner <kevinb@redhat.com>
2977
2978 * NEWS (New commands): Mention new command
2979 "maintenance print core-file-backed-mappings".
2980
09c2f5d4
KB
29812020-07-22 Kevin Buettner <kevinb@redhat.com>
2982
2983 * corelow.c (gdbcmd.h): Include.
2984 (core_target::info_proc_mappings): New method.
2985 (get_current_core_target): New function.
2986 (maintenance_print_core_file_backed_mappings): New function.
2987 (_initialize_corelow): Add core-file-backed-mappings to
2988 "maint print" commands.
2989
9c5ec5c2 29902020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2991
9c5ec5c2
KB
2992 * linux-tdep.c (dump_note_entry_p): New function.
2993 (linux_dump_mapping_p_ftype): New typedef.
2994 (linux_find_memory_regions_full): Add new parameter,
2995 should_dump_mapping_p.
2996 (linux_find_memory_regions): Adjust call to
2997 linux_find_memory_regions_full.
2998 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2999 call to linux_find_memory_regions_full.
3000
db082f59
KB
30012020-07-22 Kevin Buettner <kevinb@redhat.com>
3002
3003 * corelow.c (solist.h, unordered_map): Include.
3004 (class core_target): Add field m_core_file_mappings and
3005 method build_file_mappings.
3006 (core_target::core_target): Call build_file_mappings.
3007 (core_target::~core_target): Free memory associated with
3008 m_core_file_mappings.
3009 (core_target::build_file_mappings): New method.
3010 (core_target::xfer_partial): Use m_core_file_mappings
3011 for memory transfers.
3012 * linux-tdep.c (linux_read_core_file_mappings): New
3013 function.
3014 (linux_core_info_proc_mappings): Rewrite to use
3015 linux_read_core_file_mappings.
3016 (linux_init_abi): Register linux_read_core_file_mappings.
3017
7e183d27
KB
30182020-07-22 Kevin Buettner <kevinb@redhat.com>
3019
3020 * arch-utils.c (default_read_core_file_mappings): New function.
3021 * arch-utils.c (default_read_core_file_mappings): Declare.
3022 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3023 * gdbarch.h, gdbarch.c: Regenerate.
3024
2735d421
KB
30252020-07-22 Kevin Buettner <kevinb@redhat.com>
3026
3027 PR corefiles/25631
3028 * corelow.c (core_target:xfer_partial): Revise
3029 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3030 case after first checking the stratum beneath the core
3031 target.
3032 (has_all_memory): Return true.
3033 * target.c (raw_memory_xfer_partial): Revise comment
3034 regarding use of has_all_memory.
3035
e56cb451
KB
30362020-07-22 Kevin Buettner <kevinb@redhat.com>
3037
3038 * exec.h (section_table_xfer_memory): Revise declaration,
3039 replacing section name parameter with an optional callback
3040 predicate.
3041 * exec.c (section_table_xfer_memory): Likewise.
3042 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3043 of section_table_xfer_memory.
3044
32fa152e
TT
30452020-07-22 Tom Tromey <tromey@adacore.com>
3046
3047 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3048 lookup_symbol_search_name.
3049
a67a1c41
AB
30502020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3051
3052 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3053 redundant local variable.
3054 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3055 reference, not pointer, update code accordingly.
3056
a7b4ff4f
SM
30572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3058 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3059
3060 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3061 * jit.c (jit_breakpoint_re_set_internal): Use the
3062 `skip_jit_symbol_lookup` field.
3063
2340e834
SM
30642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3065 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3066
3067 * jit.c (jit_read_descriptor): Define the descriptor address once,
3068 use twice.
3069 (jit_breakpoint_deleted): Move the declaration of the loop variable
3070 `iter` into the loop header.
3071 (jit_breakpoint_re_set_internal): Move the declaration of the local
3072 variable `objf_data` to the first point of definition.
3073 (jit_event_handler): Move the declaration of local variables
3074 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3075 Rename `objf` to `jited`.
3076
c1072906
SM
30772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3078
3079 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3080 Remove.
3081 * jit.c (get_jiter_objfile_data): Update.
3082
c8474dc3
TBA
30832020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3084 Simon Marchi <simon.marchi@polymtl.ca>
3085
3086 * jit.c (struct jit_program_space_data): Remove.
3087 (jit_program_space_key): Remove.
3088 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3089 stuff.
3090 (get_jit_program_space_data): Remove.
3091 (jit_breakpoint_deleted): Iterate on all of the program space's
3092 objfiles.
3093 (jit_inferior_init): Likewise.
3094 (jit_breakpoint_re_set_internal): Likewise. Also change return
3095 type to void.
3096 (jit_breakpoint_re_set): Pass current_program_space to
3097 jit_breakpoint_re_set_internal.
3098
77208eb7
SM
30992020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3100
3101 * jit.h (struct jiter_objfile_data) <cached_code_address,
3102 jit_breakpoint>: Move to here from ...
3103 * jit.c (jit_program_space_data): ... here.
3104 (jiter_objfile_data::~jiter_objfile_data): Update.
3105 (jit_breakpoint_deleted): Update.
3106 (jit_breakpoint_re_set_internal): Update.
3107
8c1c720f
SM
31082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3109
3110 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3111 checks.
3112 (jit_read_descriptor): Remove NULL check.
3113 (jit_event_handler): Add an assertion.
3114
0e74a041
SM
31152020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3116
3117 * jit.h (struct jit_objfile_data): Split into...
3118 (struct jiter_objfile_data): ... this ...
3119 (struct jited_objfile_data): ... and this.
3120 * objfiles.h (struct objfile) <jit_data>: Remove.
3121 <jiter_data, jited_data>: New fields.
3122 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3123 (jiter_objfile_data::~jiter_objfile_data): ... this.
3124 (get_jit_objfile_data): Rename to ...
3125 (get_jiter_objfile_data): ... this.
3126 (add_objfile_entry): Update.
3127 (jit_read_descriptor): Use get_jiter_objfile_data.
3128 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3129 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3130 (jit_inferior_exit_hook): Use objfile's jited_data field.
3131
238b5c9f
SM
31322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3133
3134 * jit.h: Forward-declare `struct minimal_symbol`.
3135 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3136 constructor, destructor, and an objfile* field.
3137 * jit.c (jit_objfile_data): Remove.
3138 (struct jit_objfile_data): Migrate from here to jit.h.
3139 (jit_objfile_data::~jit_objfile_data): New destructor
3140 implementation with code moved from free_objfile_data.
3141 (free_objfile_data): Delete.
3142 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3143 (jit_find_objf_with_entry_addr): Ditto.
3144 (jit_inferior_exit_hook): Ditto.
3145 (_initialize_jit): Remove the call to
3146 register_objfile_data_with_cleanup.
3147 * objfiles.h (struct objfile) <jit_data>: New field.
3148
fe053b9e
TBA
31492020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3150
3151 * jit.h: Forward-declare `struct objfile`.
3152 (jit_event_handler): Add a second parameter, the JITer objfile.
3153 * jit.c (jit_read_descriptor): Change the signature to take the
3154 JITer objfile as an argument instead of the jit_program_space_data.
3155 (jit_inferior_init): Update the call to jit_read_descriptor.
3156 (jit_event_handler): Use the new JITer objfile argument when calling
3157 jit_read_descriptor.
3158 * breakpoint.c (handle_jit_event): Update the call to
3159 jit_event_handler to pass the JITer objfile.
3160
4cec0c66
JB
31612020-07-21 John Baldwin <jhb@FreeBSD.org>
3162
3163 * gdbarch.c: Regenerate.
3164 * gdbarch.h: Regenerate.
3165 * gdbarch.sh (handle_segmentation_fault): Remove method.
3166 * infrun.c (handle_segmentation_fault): Remove.
3167 (print_signal_received_reason): Remove call to
3168 handle_segmentation_fault.
3169
0e42f66a
JB
31702020-07-21 John Baldwin <jhb@FreeBSD.org>
3171
3172 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3173 Rename to sparc64_linux_report_signal_info and add siggnal
3174 argument.
3175 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3176 instead of sparc64_linux_handle_segmentation_fault.
3177
77bdfeb2
JB
31782020-07-21 John Baldwin <jhb@FreeBSD.org>
3179
3180 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3181 i386_linux_report_signal_info instead of
3182 i386_linux_handle_segmentation_fault.
3183 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3184 to i386_linux_report_signal_info and add siggnal argument.
3185 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3186 of i386_linux_handle_segmentation_fault.
3187 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3188 to i386_linux_report_signal_info and add siggnal argument.
3189
ad97bfc5
JB
31902020-07-21 John Baldwin <jhb@FreeBSD.org>
3191
3192 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3193 hook if present.
3194
272bb05c
JB
31952020-07-21 John Baldwin <jhb@FreeBSD.org>
3196
3197 * gdbarch.c: Regenerate.
3198 * gdbarch.h: Regenerate.
3199 * gdbarch.sh (report_signal_info): New method.
3200 * infrun.c (print_signal_received_reason): Invoke gdbarch
3201 report_signal_info hook if present.
3202
baf8791e
AB
32032020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3204
3205 * python/py-registers.c : Add 'unordered_map' include.
3206 (gdbpy_new_reggroup): Renamed to...
3207 (gdbpy_get_reggroup): ...this. Update to only create register
3208 group descriptors when needed.
3209 (gdbpy_reggroup_iter_next): Update.
3210
f7306dac
AB
32112020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3212
3213 * python/py-registers.c (gdbpy_register_object_data): New static
3214 global.
3215 (gdbpy_register_object_data_init): New function.
3216 (gdbpy_new_register_descriptor): Renamed to...
3217 (gdbpy_get_register_descriptor): ...this, and update to reuse
3218 existing register descriptors where possible.
3219 (gdbpy_register_descriptor_iter_next): Update.
3220 (gdbpy_initialize_registers): Register new gdbarch data.
3221
05c309a8
SM
32222020-07-21 Simon Marchi <simon.marchi@efficios.com>
3223
3224 * linux-nat.c (stopped_pids): Make static.
3225
d1fd641e
SM
32262020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3227
3228 PR ada/26235
3229 * gdbtypes.c (ada_discrete_type_low_bound,
3230 ada_discrete_type_high_bound): Handle undefined bounds.
3231
1de14d77
KR
32322020-07-21 Kamil Rytarowski <n54@gmx.com>
3233
3234 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3235 declaration.
3236 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3237 function.
3238
ed810cc7
JB
32392020-07-20 John Baldwin <jhb@FreeBSD.org>
3240
3241 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3242 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3243 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3244 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3245 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3246 method.
3247
ae5369e7
LC
32482020-07-20 Ludovic Courtès <ludo@gnu.org>
3249
3250 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3251 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3252 which are deprecated in Guile 3.0.
3253 * configure.ac (try_guile_versions): Add "guile-3.0".
3254 * configure (try_guile_versions): Regenerate.
3255 * NEWS: Update entry.
3256
68cf161c
LC
32572020-07-20 Ludovic Courtès <ludo@gnu.org>
3258 Doug Evans <dje@google.com>
3259
3260 PR gdb/21104
3261 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3262 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3263 USING_GUILE_BEFORE_2_2.
3264 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3265 Change type to 'scm_t_port_type *'.
3266 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3267 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3268 parameter and honor it. Update callers.
3269 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3270 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3271 functions.
3272 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3273 USING_GUILE_BEFORE_2_2.
3274 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3275 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3276 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3277 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3278 and 'SCM_PORT_TYPE'.
3279 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3280 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3281 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3282 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3283 [!USING_GUILE_BEFORE_2_2]: New functions.
3284 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3285 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3286 'gdbscm_memory_port_read'.
3287 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3288 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3289 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3290 function.
3291 (ioscm_init_memory_port): Remove.
3292 (ioscm_init_memory_port_stream): New function
3293 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3294 function.
3295 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3296 Return scm_from_uint (0).
3297 (gdbscm_set_memory_port_read_buffer_size_x)
3298 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3299 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3300 Return scm_from_uint (0).
3301 (gdbscm_set_memory_port_write_buffer_size_x)
3302 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3303 * configure.ac (try_guile_versions): Add "guile-2.2".
3304 * configure: Regenerate.
3305 * NEWS: Add entry.
3306
aee91db3
TT
33072020-07-18 Tom Tromey <tom@tromey.com>
3308
3309 * linux-nat.c (linux_multi_process): Remove.
3310 (linux_nat_target::supports_multi_process): Return true.
3311
0e267416
AB
33122020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3313
3314 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3315 (riscv_lookup_target_description): Return pointer out of
3316 unique_ptr.
3317 * target-descriptions.c (allocate_target_description): Add
3318 comment.
3319 (target_desc_deleter::operator()): Likewise.
3320 * target-descriptions.h (struct target_desc_deleter): Moved to
3321 gdbsupport/tdesc.h.
3322 (target_desc_up): Likewise.
3323
f80c8ec4
TT
33242020-07-17 Tom Tromey <tromey@adacore.com>
3325
3326 * linux-nat.c (linux_nat_target::supports_non_stop)
3327 (linux_nat_target::always_non_stop_p): Use "true".
3328 (linux_nat_target::supports_disable_randomization): Use "true" and
3329 "false".
3330
d0ce17d8
CT
33312020-07-16 Caroline Tice <cmtice@google.com>
3332
3333 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3334 (RNGLIST_HEADER_SIZE64): New constant definition.
3335 (struct dwop_section_names): Add rnglists_dwo.
3336 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3337 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3338 (struct dwo_sections): Add rnglists field.
3339 (read_attribut_reprocess): Add tag parameter.
3340 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3341 (cu_debug_rnglists_section): New function (decl & definition).
3342 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3343 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3344 die whose range is being checked; get rnglist section from
3345 cu_debug_rnglists_section, to get from either objfile or dwo file as
3346 appropriate. Add cases for DW_RLE_base_addressx,
3347 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3348 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3349 test inside if-condition and updating complaint message.
3350 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3351 dwarf2_rnglists_process.
3352 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3353 dwarf2_ranges_process.
3354 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3355 need_ranges_base and update comment appropriately. Also pass die tag
3356 to dwarf2_ranges_read.
3357 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3358 need_ranges_base and update comment appropriately. Also pass die tag
3359 to dwarf2_ranges_process.
3360 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3361 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3362 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3363 need_ranges_base and update comment appropriately. Also pass die tag
3364 to read_attribute_reprocess and dwarf2_ranges_read.
3365 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3366 and update function comment appropriately.
3367 (read_loclist_index): Call read_loclists_rnglists_header instead of
3368 read_loclist_header.
3369 (read_rnglist_index): New function.
3370 (read_attribute_reprocess): Add tag parameter. Add code for
3371 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3372 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3373
3dcc261c
AB
33742020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3375
3376 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3377 being resolved.
3378
ccb9eba6
AB
33792020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3380
3381 * arch-utils.c (show_architecture): Update formatting of messages.
3382
cf88be68
SM
33832020-07-12 Simon Marchi <simon.marchi@efficios.com>
3384
3385 * gdbtypes.h (struct type) <bounds>: Handle array and string
3386 types.
3387 * ada-lang.c (assign_aggregate): Use type::bounds on
3388 array/string type.
3389 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3390 * c-varobj.c (c_number_of_children): Likewise.
3391 (c_describe_child): Likewise.
3392 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3393 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3394 (f_type_print_base): Likewise.
3395 * f-valprint.c (f77_array_offset_tbl): Likewise.
3396 (f77_get_upperbound): Likewise.
3397 (f77_print_array_1): Likewise.
3398 * guile/scm-type.c (gdbscm_type_range): Likewise.
3399 * m2-typeprint.c (m2_array): Likewise.
3400 (m2_is_long_set_of_type): Likewise.
3401 * m2-valprint.c (get_long_set_bounds): Likewise.
3402 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3403 * python/py-type.c (typy_range): Likewise.
3404 * rust-lang.c (rust_internal_print_type): Likewise.
3405 * type-stack.c (type_stack::follow_types): Likewise.
3406 * valarith.c (value_subscripted_rvalue): Likewise.
3407 * valops.c (value_cast): Likewise.
3408
509971ae
SM
34092020-07-12 Simon Marchi <simon.marchi@efficios.com>
3410
3411 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3412 callers to use the equivalent accessor methods.
3413
107406b7
SM
34142020-07-12 Simon Marchi <simon.marchi@efficios.com>
3415
3416 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3417 (struct type) <bit_stride>: New method.
3418 (TYPE_BIT_STRIDE): Remove.
3419 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3420
bb789949
SM
34212020-07-12 Simon Marchi <simon.marchi@efficios.com>
3422
3423 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3424 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3425 callers to use the equivalent accessor methods instead.
3426
39498edb
SM
34272020-07-12 Simon Marchi <simon.marchi@efficios.com>
3428
3429 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3430 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3431 callers to use the equivalent accessor methods instead.
3432
3b606f38
SM
34332020-07-12 Simon Marchi <simon.marchi@efficios.com>
3434
3435 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3436 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3437 to use dynamic_prop::kind.
3438
064d9cb9
SM
34392020-07-12 Simon Marchi <simon.marchi@efficios.com>
3440
3441 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3442 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3443 to get the bound property's kind and check against
3444 PROP_UNDEFINED.
3445
5537ddd0
SM
34462020-07-12 Simon Marchi <simon.marchi@efficios.com>
3447
3448 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3449 all callers to use type::range_bounds followed by
3450 dynamic_prop::{low,high}.
3451
8c2e4e06
SM
34522020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3453
3454 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3455 const_val, set_const_val, baton, set_locexpr, set_loclist,
3456 set_addr_offset, variant_parts, set_variant_parts,
3457 original_type, set_original_type>: New methods.
3458 <kind>: Rename to...
3459 <m_kind>: ... this. Update all users to use the new methods
3460 instead.
3461 <data>: Rename to...
3462 <m_data>: ... this. Update all users to use the new methods
3463 instead.
3464
7c6f2712
SM
34652020-07-12 Simon Marchi <simon.marchi@efficios.com>
3466
3467 * gdbtypes.c (get_discrete_bounds): Return failure if
3468 the range type's bounds are not both defined and constant
3469 values.
3470 (get_array_bounds): Update comment. Remove undefined bound check.
3471
599088e3
SM
34722020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3473
3474 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3475 the type::bounds method directly.
3476
c4dfcb36
SM
34772020-07-12 Simon Marchi <simon.marchi@efficios.com>
3478
3479 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3480 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3481 are used to set the range type's bounds to use set_bounds.
3482
0a278aa7
PW
34832020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3484
3485 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3486
cce20f10
PA
34872020-07-10 Pedro Alves <pedro@palves.net>
3488
3489 * gdbthread.h (inferior_ref): Define.
3490 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3491 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3492 * thread.c
3493 (scoped_restore_current_thread::restore):
3494 Adjust to gdb::ref_ptr.
3495 (scoped_restore_current_thread::~scoped_restore_current_thread):
3496 Remove manual decref handling.
3497 (scoped_restore_current_thread::scoped_restore_current_thread):
3498 Adjust to use
3499 inferior_ref::new_reference/thread_info_ref::new_reference.
3500 Incref the thread before calling get_frame_id instead of after.
3501 Let TARGET_CLOSE_ERROR propagate.
3502
6d7aa592
PA
35032020-07-10 Pedro Alves <pedro@palves.net>
3504
3505 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3506 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3507 NOT_AVAILABLE_ERROR.
3508 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3509 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3510
b3e3a4c1
SM
35112020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3512 Pedro Alves <pedro@palves.net>
3513
3514 PR gdb/26199
3515 * infrun.c (threads_are_resumed_pending_p): Delete.
3516 (do_target_wait): Remove threads_are_executing and
3517 threads_are_resumed_pending_p checks from the inferior_matches
3518 lambda. Update comments.
3519
d6cc5d98
PA
35202020-07-10 Pedro Alves <pedro@palves.net>
3521
3522 PR gdb/26199
3523 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3524 executing threads.
3525
7d3badc6
PA
35262020-07-10 Pedro Alves <pedro@palves.net>
3527
3528 PR gdb/26199
3529 * infrun.c (handle_no_resumed): Handle multiple targets.
3530
42bd97a6
PA
35312020-07-10 Pedro Alves <pedro@palves.net>
3532
3533 PR gdb/26199
3534 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3535 target_is_async_p.
3536
43667cc6
PA
35372020-07-10 Pedro Alves <pedro@palves.net>
3538
3539 PR gdb/26199
3540 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3541 threads, not all threads.
3542
96118d11
PA
35432020-07-10 Pedro Alves <pedro@palves.net>
3544
3545 PR gdb/26199
3546 * remote.c (remote_target::open_1): Pass remote target pointer as
3547 data to create_async_event_handler.
3548 (remote_async_inferior_event_handler): Mark async event handler
3549 before returning if the remote target still has either pending
3550 events or unacknowledged notifications.
3551
54904d81
JB
35522020-07-10 John Baldwin <jhb@FreeBSD.org>
3553
3554 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3555 declaration.
3556 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3557 function.
3558
f37e5866
JB
35592020-07-09 John Baldwin <jhb@FreeBSD.org>
3560
3561 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3562 inferior_ptid.
3563
fc238d4a
JB
35642020-07-09 John Baldwin <jhb@FreeBSD.org>
3565
3566 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3567 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3568 AT_FREEBSD_PS_STRINGS.
3569
6e2469ff
HD
35702020-07-08 Hannes Domani <ssbssa@yahoo.de>
3571
3572 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3573 of debugfile path on Windows.
3574
d1076c41
JB
35752020-07-08 John Baldwin <jhb@FreeBSD.org>
3576
3577 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3578 argument to 'data'.
3579
15f3b077
TT
35802020-07-08 Tom Tromey <tromey@adacore.com>
3581
3582 * ada-lang.c (ada_exception_message_1): Use read_memory.
3583
9fc501fd
AB
35842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3585
3586 PR python/22748
3587 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3588 special handling for inline frames.
3589 * findvar.c (value_of_register_lazy): Skip inline frames when
3590 creating lazy register values.
3591 * frame.c (frame_id_computed_p): Delete definition.
3592 * frame.h (frame_id_computed_p): Delete declaration.
3593
64cb3757
AB
35942020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3595
3596 * NEWS: Mention additions to Python API.
3597 * python/py-arch.c (archpy_register_groups): New function.
3598 (arch_object_methods): Add 'register_groups' method.
3599 * python/py-registers.c (reggroup_iterator_object): New struct.
3600 (reggroup_object): New struct.
3601 (gdbpy_new_reggroup): New function.
3602 (gdbpy_reggroup_to_string): New function.
3603 (gdbpy_reggroup_name): New function.
3604 (gdbpy_reggroup_iter): New function.
3605 (gdbpy_reggroup_iter_next): New function.
3606 (gdbpy_new_reggroup_iterator): New function
3607 (gdbpy_initialize_registers): Register new types.
3608 (reggroup_iterator_object_type): Define new Python type.
3609 (gdbpy_reggroup_getset): New static global.
3610 (reggroup_object_type): Define new Python type.
3611 * python/python-internal.h
3612
0f767f94
AB
36132020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3614
3615 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3616 * python/py-arch.c (archpy_registers): New function.
3617 (arch_object_methods): Add 'registers' method.
3618 * python/py-registers.c: New file.
3619 * python/python-internal.h
3620 (gdbpy_new_register_descriptor_iterator): Declare.
3621 (gdbpy_initialize_registers): Declare.
3622 * python/python.c (do_start_initialization): Call
3623 gdbpy_initialize_registers.
3624 * NEWS: Mention additions to the Python API.
3625
87dbc774
AB
36262020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3627
3628 * NEWS: Mention new Python API method.
3629 * python/py-unwind.c (pending_framepy_architecture): New function.
3630 (pending_frame_object_methods): Add architecture method.
3631
3bc98c0c
AB
36322020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3633
3634 * gdbarch.c: Regenerate.
3635 * gdbarch.h: Regenerate.
3636 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3637 (gdbarch_data): Use internal_error for the case where
3638 deprecated_set_gdbarch_data was originally needed.
3639 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3640 and use passed in obstack.
3641 (libunwind_frame_set_descr): Should no longer get back NULL from
3642 gdbarch_data.
3643 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3644 type.
3645 * user-regs.c (user_regs_init): Update parameters, and use passed
3646 in obstack.
3647 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3648 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3649
d8cc8af6
TV
36502020-07-06 Tom de Vries <tdevries@suse.de>
3651
3652 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3653 End-Of-Sequence in lte_is_less_than.
3654 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3655 "gdb: Don't reorder line table entries too much when sorting".
3656
947f7597
TV
36572020-07-06 Tom de Vries <tdevries@suse.de>
3658
3659 PR tui/26205
3660 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3661
1e7c1b22
TV
36622020-07-05 Tom de Vries <tdevries@suse.de>
3663
3664 PR build/26187
3665 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3666 std::uncaught_exceptions instead of deprecated
3667 std::uncaught_exception.
3668
a36158ec
SM
36692020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3670
3671 * macroexp.h (macro_stringify): Return
3672 gdb::unique_xmalloc_ptr<char>.
3673 * macroexp.c (macro_stringify): Likewise.
3674 * macrotab.c (fixup_definition): Update.
3675
14d960c8
SM
36762020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3677
3678 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3679 (lex_one_token): Update.
3680 * macroexp.c (struct macro_buffer) <release>: Return
3681 gdb::unique_xmalloc_ptr<char>.
3682 (macro_stringify): Update.
3683 (macro_expand): Update.
3684 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3685 * macroexp.h (macro_expand_next): Likewise.
3686
211d5b1c
SM
36872020-07-02 Simon Marchi <simon.marchi@efficios.com>
3688
3689 * macroexp.h (macro_lookup_ftype): Remove.
3690 (macro_expand, macro_expand_once, macro_expand_next): Remove
3691 lookup function parameters, add scope parameter.
3692 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3693 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3694 * macroscope.h (standard_macro_lookup): Change parameter type
3695 to macro_scope.
3696 * macroscope.c (standard_macro_lookup): Likewise.
3697 * c-exp.y (lex_one_token): Update.
3698 * macrocmd.c (macro_expand_command): Likewise.
3699 (macro_expand_once_command): Likewise.
3700
b1a35af2
SM
37012020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3702
3703 * inf-loop.c (inferior_event_handler): Remove client_data param.
3704 * inf-loop.h (inferior_event_handler): Likewise.
3705 * infcmd.c (step_1): Adjust.
3706 * infrun.c (proceed): Adjust.
3707 (fetch_inferior_event): Remove client_data param.
3708 (infrun_async_inferior_event_handler): Adjust.
3709 * infrun.h (fetch_inferior_event): Remove `void *` param.
3710 * linux-nat.c (handle_target_event): Adjust.
3711 * record-btrace.c (record_btrace_handle_async_inferior_event):
3712 Adjust.
3713 * record-full.c (record_full_async_inferior_event_handler):
3714 Adjust.
3715 * remote.c (remote_async_inferior_event_handler): Adjust.
3716
1cdf9e33
TT
37172020-07-01 Tom Tromey <tom@tromey.com>
3718
3719 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3720 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3721
32c1e210
TT
37222020-07-01 Tom Tromey <tom@tromey.com>
3723
3724 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3725 tui_gen_win_info.
3726 (tui_win_info::make_window): Merge with
3727 tui_gen_win_info::make_window.
3728 (tui_win_info::make_visible): Move from tui_gen_win_info.
3729 * tui/tui-win.c (tui_win_info::max_width): Move from
3730 tui_gen_win_info.
3731 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3732 type.
3733 <window_factory>: Likewise.
3734 * tui/tui-layout.c (tui_win_info::resize): Move from
3735 tui_gen_win_info.
3736 (make_standard_window): Change return type.
3737 (get_locator_window, tui_get_window_by_name): Likewise.
3738 (tui_layout_window::apply): Remove a cast.
3739 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3740 (struct tui_win_info): Merge with tui_gen_win_info.
3741 (struct tui_gen_win_info): Remove.
3742
a30cb6da
TT
37432020-07-01 Tom Tromey <tom@tromey.com>
3744
3745 * tui/tui-stack.h (struct tui_locator_window): Derive from
3746 tui_win_info.
3747 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3748 <can_box>: New method.
3749
1eb2161f
TT
37502020-07-01 Tom Tromey <tom@tromey.com>
3751
3752 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3753
7134f2eb
TT
37542020-07-01 Tom Tromey <tom@tromey.com>
3755
3756 * tui/tui-regs.c (tui_data_window::display_registers_from)
3757 (tui_data_window::display_registers_from)
3758 (tui_data_window::first_data_item_displayed)
3759 (tui_data_window::delete_data_content_windows): Update.
3760 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3761 Remove.
3762 (tui_data_window::check_register_values): Update.
3763 (tui_data_item_window::rerender): Add parameters. Update.
3764 (tui_data_item_window::refresh_window): Remove.
3765 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3766 virtual.
3767 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3768 tui_gen_win_info.
3769 <refresh_window, max_height, min_height>: Remove.
3770 <rerender>: Add parameters.
3771 <x, y, visible>: New members.
3772 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3773 <m_item_width>: New member.
3774
22b7b041
TT
37752020-07-01 Tom Tromey <tom@tromey.com>
3776
3777 * tui/tui-regs.c (tui_data_window::show_register_group)
3778 (tui_data_window::check_register_values): Update.
3779 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3780 from item_no.
3781
c9753adb
TT
37822020-07-01 Tom Tromey <tom@tromey.com>
3783
3784 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3785 useless "if".
3786
9ab26b4a
TT
37872020-07-01 Tom Tromey <tom@tromey.com>
3788
3789 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3790 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3791
e555083f
TT
37922020-07-01 Tom Tromey <tom@tromey.com>
3793
3794 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3795 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3796 (struct tui_line_or_address): Move from tui-data.h.
3797 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3798 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3799 (tui_cmd_window, tui_source_window_base, tui_source_window)
3800 (tui_disasm_window): Don't declare.
3801 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3802 to tui-winsource.h.
3803 (SINGLE_KEY): Move to tui-stack.c.
3804
7a02bab7
TT
38052020-07-01 Tom Tromey <tom@tromey.com>
3806
3807 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3808 std::string.
3809 * tui/tui-regs.c (class tab_expansion_file): New.
3810 (tab_expansion_file::write): New method.
3811 (tui_register_format): Change return type. Use
3812 tab_expansion_file.
3813 (tui_get_register, tui_data_window::display_registers_from)
3814 (tui_data_item_window::rerender): Update.
3815 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3816 * tui/tui-io.c (tui_expand_tabs): Remove.
3817
ea68593b
TT
38182020-07-01 Tom Tromey <tom@tromey.com>
3819
3820 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3821
a8caed5d
FS
38222020-07-01 Fangrui Song <maskray@google.com>
3823
3824 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3825
9cdf9820
AKS
38262020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3827
3828 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3829 forms for DW_AT_associated and DW_AT_allocated attributes,
3830 which is already checked in function attr_to_dynamic_prop.
3831
a1520ad8
TT
38322020-06-30 Tom Tromey <tromey@adacore.com>
3833
3834 * dwarf2/read.c (quirk_rust_enum): Correctly call
3835 alloc_rust_variant for default-less enum.
3836
5ac58899
TT
38372020-06-30 Tom Tromey <tromey@adacore.com>
3838
3839 PR build/26183:
3840 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3841 gdb::to_string.
3842
19b187a9
SM
38432020-06-29 Simon Marchi <simon.marchi@efficios.com>
3844
3845 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3846 * gdbarch.h: Re-generate.
3847
cd4c4c07
TT
38482020-06-28 Tom Tromey <tom@tromey.com>
3849
3850 * command.h (cmd_types): Remove.
3851 (cmd_type): Don't declare.
3852 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3853 typedef.
3854 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3855 * cli/cli-decode.c (cmd_type): Remove.
3856
05779d57
PA
38572020-06-27 Pedro Alves <palves@redhat.com>
3858
3859 * fork-child.c (prefork_hook): Adjust.
3860 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3861 Delete.
3862 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3863 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3864 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3865 Remove declarations.
3866 (struct inferior) <set_tty, tty>: New methods.
3867 (struct inferior) <terminal>: Rename to ...
3868 (struct inferior) <m_terminal>: ... this and make private.
3869 * main.c (captured_main_1): Adjust.
3870 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3871 (mi_cmd_inferior_tty_show): Adjust.
3872 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3873 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3874
1776e3e5
NA
38752020-06-26 Nick Alcock <nick.alcock@oracle.com>
3876
3877 * configure.ac: Add --enable-libctf: handle --disable-static
3878 properly.
3879 * acinclude.m4: sinclude ../config/enable.m4.
3880 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3881 (LIBCTF): Substitute in.
3882 (CTF_DEPS): New, likewise.
3883 (CLIBS): libctf needs symbols from libbfd: move earlier.
3884 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3885 flags.
3886 * ctfread.c: Surround in ENABLE_LIBCTF.
3887 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3888 * configure: Regenerate.
3889 * config.in: Likewise.
3890
58373b80
SM
38912020-06-25 Simon Marchi <simon.marchi@efficios.com>
3892
3893 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3894
277474ee
SM
38952020-06-25 Simon Marchi <simon.marchi@efficios.com>
3896
3897 * inferior.h (struct inferior) <terminal>: Change type to
3898 gdb::unique_xmalloc_ptr<char>.
3899 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3900 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3901 field, adjust to unique pointer.
3902 (get_inferior_io_terminal): Adjust to unique pointer.
3903
6d74da72
AB
39042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3905
3906 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3907 registers, not just the known core set of registers.
3908
2e52d038
AB
39092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3910
3911 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3912 fflags, frm, and fcsr registers.
3913 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3914 restore groups.
3915 (riscv_tdesc_unknown_reg): New function.
3916 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3917 tdesc_use_registers.
3918 * riscv-tdep.h (struct gdbarch_tdep): Add
3919 unknown_csrs_first_regnum, unknown_csrs_count,
3920 duplicate_fflags_regnum, duplicate_frm_regnum, and
3921 duplicate_fcsr_regnum fields.
3922
be64fd07
AB
39232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3924
3925 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3926 callback, use the callback (when not null) to help number unknown
3927 registers.
3928 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3929 (tdesc_use_registers): Add extra parameter to declaration.
3930
3b9fce96
AB
39312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3932
3933 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3934 in the file.
3935 (class riscv_pending_register_alias): Likewise.
3936 (riscv_register_feature::register_info): Change 'required_p' field
3937 to 'required', and change its type. Add 'check' member function.
3938 (riscv_register_feature::register_info::check): Define new member
3939 function.
3940 (riscv_xreg_feature): Change initialisation of 'required' field.
3941 (riscv_freg_feature): Likewise.
3942 (riscv_virtual_feature): Likewise.
3943 (riscv_csr_feature): Likewise.
3944 (riscv_check_tdesc_feature): Take extra parameter, the csr
3945 tdesc_feature, rewrite the function to use the new
3946 riscv_register_feature::register_info::check function.
3947 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3948
865bad26
AB
39492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3950
3951 * features/Makefile: Remove all references to the deleted files
3952 below.
3953 * features/riscv/32bit-csr.c: Deleted.
3954 * features/riscv/32bit-csr.xml: Deleted.
3955 * features/riscv/64bit-csr.c: Deleted.
3956 * features/riscv/64bit-csr.xml: Deleted.
3957 * features/riscv/rebuild-csr-xml.sh: Deleted.
3958
ed69cbc8
AB
39592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3960
3961 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3962 whitespace error for declaration of names member variable.
3963 (struct riscv_register_feature): Add new prefer_first_name member
3964 variable, and fix whitespace error in declaration of registers.
3965 (riscv_xreg_feature): Initialize prefer_first_name field.
3966 (riscv_freg_feature): Likewise.
3967 (riscv_virtual_feature): Likewise.
3968 (riscv_csr_feature): Likewise.
3969 (riscv_register_name): Expand on comments. Remove register name
3970 modifications for CSR and virtual registers.
3971
4445e8f5
AB
39722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3973
3974 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3975 errors.
3976
767a879e
AB
39772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3978
3979 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3980 riscv-opc.h.
3981 (class riscv_pending_register_alias): New class.
3982 (riscv_check_tdesc_feature): Take vector of pending aliases and
3983 populate it as appropriate.
3984 (riscv_setup_register_aliases): Delete.
3985 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3986 to riscv_check_tdesc_feature in all cases. Use the vector to
3987 create the register aliases.
3988
bb6e55f3
RO
39892020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3990
3991 * sol2-tdep.c (sol2_static_transform_name): Remove.
3992 (sol2_init_abi): Don't register it.
3993 * gdbarch.sh (static_transform_name): Remove.
3994 * gdbarch.c, gdbarch.h: Regenerate.
3995
3996 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3997 gdbarch_static_transform_name.
3998 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3999 * stabsread.c (define_symbol) <'X'>: Remove.
4000 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4001 handling.
4002 <'V'>: Likewise.
4003 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4004 <'S'>: Remove call to gdbarch_static_transform_name.
4005
c6d36836
RO
40062020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4007
4008 * procfs.c (procfs_pre_trace): New function.
4009 (procfs_target::create_inferior): Pass it to fork_inferior.
4010
a7e6196b
RO
40112020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4012
4013 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4014 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4015 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4016 sol2-tdep.o, sparc-sol2-tdep.o.
4017 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4018 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4019 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4020 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4021
d412e696
RO
40222020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4023
4024 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4025 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4026 Call sol2_init_abi.
4027 Remove calls to set_gdbarch_skip_solib_resolver,
4028 set_gdbarch_core_pid_to_str.
4029 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4030 (i386_sol2_static_transform_name): Remove.
4031 (i386_sol2_init_abi): Call sol2_init_abi.
4032 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4033 set_gdbarch_static_transform_name,
4034 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4035 Use sol2_sigtramp_p.
4036 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4037 (sol2_sigtramp_p): New function.
4038 (sol2_static_transform_name): New function.
4039 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4040 (sol2_init_abi): New function.
4041 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4042 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4043 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4044 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4045 (sparc_sol2_static_transform_name): Remove.
4046 (sparc32_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,
4050 set_gdbarch_core_pid_to_str.
4051 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4052 (sparc_sol2_static_transform_name): Remove
4053 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4054 call sol2_sigtramp_p.
4055 (sparc64_sol2_init_abi): Call sol2_init_abi.
4056 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4057 set_gdbarch_static_transform_name,
4058 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4059
a8654e7d
PW
40602020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4061
4062 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4063 * exec.c (validate_exec_file): If from_tty, set both
4064 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4065 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4066 and from_tty, unconditionally ask a confirmation.
4067
caa7fd04
AB
40682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4069
4070 * target-descriptions.c (tdesc_architecture_name): Protect against
4071 NULL pointer dereference.
4072 (maint_print_xml_tdesc_cmd): New function.
4073 (_initialize_target_descriptions): Register new 'maint print
4074 xml-tdesc' command and give it the filename completer.
4075 * NEWS: Mention new 'maint print xml-tdesc' command.
4076
fbf42f4e
AB
40772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4078
4079 * target-descriptions.c (class tdesc_compatible_info): New class.
4080 (struct target_desc): Change type of compatible vector.
4081 (tdesc_compatible_p): Update for change in type of
4082 target_desc::compatible.
4083 (tdesc_compatible_info_list): New function.
4084 (tdesc_compatible_info_arch_name): New function.
4085 (tdesc_add_compatible): Update for change in type of
4086 target_desc::compatible.
4087 (print_c_tdesc::visit_pre): Likewise.
4088
20821f4e
AB
40892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4090
4091 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4092 whitespace to underscore.
4093 (maint_print_c_tdesc_cmd): Use fake filename for target
4094 descriptions that came from the target.
4095 (_initialize_target_descriptions): Add filename command completion
4096 for 'maint print c-tdesc'.
4097
1fb5ee62
SM
40982020-06-23 Simon Marchi <simon.marchi@efficios.com>
4099
4100 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4101 lines.
4102
fc3ecb3e
SM
41032020-06-23 Simon Marchi <simon.marchi@efficios.com>
4104
4105 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4106 lines.
4107 (dwarf2_find_location_expression): Likewise.
4108 (call_site_parameter_matches): Likewise.
4109 (dwarf2_compile_expr_to_ax): Likewise.
4110 (disassemble_dwarf_expression): Likewise.
4111 (loclist_describe_location): Likewise.
4112
236ef034
PA
41132020-06-23 Pedro Alves <palves@redhat.com>
4114
4115 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4116 progspace-and-thread.h. Include scoped-mock-context.h instead.
4117 (register_to_value_test): Use scoped_mock_context.
4118 * regcache.c: Include "scoped-mock-context.h".
4119 (cooked_read_test): Don't error out if a target is already pushed.
4120 Use scoped_mock_context. Adjust.
4121 * scoped-mock-context.h: New file.
4122
39e7ecca
AB
41232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4124
4125 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4126 initializer.
4127 (ada_language::is_string_type_p): New member function.
4128 * c-lang.c (c_language_data): Delete la_is_string_type_p
4129 initializer.
4130 (cplus_language_data): Likewise.
4131 (asm_language_data): Likewise.
4132 (minimal_language_data): Likewise.
4133 * d-lang.c (d_language_data): Likewise.
4134 * f-lang.c (f_is_string_type_p): Delete function, implementation
4135 moved to f_language::is_string_type_p.
4136 (f_language_data): Delete la_is_string_type_p initializer.
4137 (f_language::is_string_type_p): New member function,
4138 implementation from f_is_string_type_p.
4139 * go-lang.c (go_is_string_type_p): Delete function, implementation
4140 moved to go_language::is_string_type_p.
4141 (go_language_data): Delete la_is_string_type_p initializer.
4142 (go_language::is_string_type_p): New member function,
4143 implementation from go_is_string_type_p.
4144 * language.c (language_defn::is_string_type_p): Define new member
4145 function.
4146 (default_is_string_type_p): Make static, add comment copied from
4147 header file.
4148 (unknown_language_data): Delete la_is_string_type_p initializer.
4149 (unknown_language::is_string_type_p): New member function.
4150 (auto_language_data): Delete la_is_string_type_p initializer.
4151 (auto_language::is_string_type_p): New member function.
4152 * language.h (language_data): Delete la_is_string_type_p field.
4153 (language_defn::is_string_type_p): Declare new function.
4154 (default_is_string_type_p): Delete desclaration, move comment to
4155 definition.
4156 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4157 moved to m2_language::is_string_type_p.
4158 (m2_language_data): Delete la_is_string_type_p initializer.
4159 (m2_language::is_string_type_p): New member function,
4160 implementation from m2_is_string_type_p.
4161 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4162 initializer.
4163 * opencl-lang.c (opencl_language_data): Likewise.
4164 * p-lang.c (pascal_is_string_type_p): Delete function,
4165 implementation moved to pascal_language::is_string_type_p.
4166 (pascal_language_data): Delete la_is_string_type_p initializer.
4167 (pascal_language::is_string_type_p): New member function,
4168 implementation from pascal_is_string_type_p.
4169 * rust-lang.c (rust_is_string_type_p): Delete function,
4170 implementation moved to rust_language::is_string_type_p.
4171 (rust_language_data): Delete la_is_string_type_p initializer.
4172 (rust_language::is_string_type_p): New member function,
4173 implementation from rust_is_string_type_p.
4174 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4175 is_string_type_p.
4176
4ffc13fb
AB
41772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4178
4179 * ada-lang.c (ada_language_data): Delete la_print_typedef
4180 initializer.
4181 (ada_language::print_typedef): New member function.
4182 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4183 (cplus_language_data): Likewise.
4184 (asm_language_data): Likewise.
4185 (minimal_language_data): Likewise.
4186 * d-lang.c (d_language_data): Likewise.
4187 * f-lang.c (f_language_data): Likewise.
4188 (f_language::print_typedef): New member function.
4189 * go-lang.c (go_language_data): Delete la_print_typedef
4190 initializer.
4191 * language.c (language_defn::print_typedef): Define member
4192 function.
4193 (unknown_language_data): Delete la_print_typedef initializer.
4194 (unknown_language::print_typedef): New member function.
4195 (auto_language_data): Delete la_print_typedef initializer.
4196 (auto_language::print_typedef): New member function.
4197 * language.h (language_data): Delete la_print_typedef field.
4198 (language_defn::print_typedef): Declare new member function.
4199 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4200 (default_print_typedef): Delete declaration.
4201 * m2-lang.c (m2_language_data): Delete la_print_typedef
4202 initializer.
4203 (m2_language::print_typedef): New member function.
4204 * objc-lang.c (objc_language_data): Delete la_print_typedef
4205 initializer.
4206 * opencl-lang.c (opencl_language_data): Likewise.
4207 * p-lang.c (pascal_language_data): Likewise.
4208 (pascal_language::print_typedef): New member function.
4209 * rust-lang.c (rust_print_typedef): Delete function,
4210 implementation moved to rust_language::print_typedef.
4211 (rust_language): Delete la_print_typedef initializer.
4212 (rust_language::print_typedef): New member function,
4213 implementation from rust_print_typedef.
4214 * typeprint.c (default_print_typedef): Delete.
4215
d711ee67
AB
42162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4217
4218 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4219 (ada_language::printstr): New member function.
4220 * c-lang.c (c_language_data): Delete la_printstr initializer.
4221 (cplus_language_data): Likewise.
4222 (asm_language_data): Likewise.
4223 (minimal_language_data): Likewise.
4224 * d-lang.c (d_language_data): Likewise.
4225 * f-lang.c (f_printstr): Rename to f_language::printstr.
4226 (f_language_data): Delete la_printstr initializer.
4227 (f_language::printstr): New member function, implementation from
4228 f_printstr.
4229 * go-lang.c (go_language_data): Delete la_printstr initializer.
4230 * language.c (language_defn::printstr): Define new member
4231 function.
4232 (unk_lang_printstr): Delete.
4233 (unknown_language_data): Delete la_printstr initializer.
4234 (unknown_language::printstr): New member function.
4235 (auto_language_data): Delete la_printstr initializer.
4236 (auto_language::printstr): New member function.
4237 * language.h (language_data): Delete la_printstr field.
4238 (language_defn::printstr): Declare new member function.
4239 (LA_PRINT_STRING): Update call to printstr.
4240 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4241 (m2_language_data): Delete la_printstr initializer.
4242 (m2_language::printstr): New member function, implementation from
4243 m2_printstr.
4244 * objc-lang.c (objc_language_data): Delete la_printstr
4245 initializer.
4246 * opencl-lang.c (opencl_language_data): Likewise.
4247 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4248 (pascal_language_data): Delete la_printstr initializer.
4249 (pascal_language::printstr): New member function, implementation
4250 from pascal_printstr.
4251 * p-lang.h (pascal_printstr): Delete declaration.
4252 * rust-lang.c (rust_printstr): Update header comment.
4253 (rust_language_data): Delete la_printstr initializer.
4254 (rust_language::printstr): New member function.
4255
52b50f2c
AB
42562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4257
4258 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4259 (ada_language::printchar): New member function.
4260 * c-lang.c (c_language_data): Delete la_printchar initializer.
4261 (cplus_language_data): Likewise.
4262 (asm_language_data): Likewise.
4263 (minimal_language_data): Likewise.
4264 * d-lang.c (d_language_data): Likewise.
4265 * f-lang.c (f_printchar): Rename to f_language::printchar.
4266 (f_language_data): Delete la_printchar initializer.
4267 (f_language::printchar): New member function, implementation from
4268 f_printchar.
4269 * go-lang.c (go_language_data): Delete la_printchar initializer.
4270 * language.c (unk_lang_printchar): Delete.
4271 (language_defn::printchar): Define new member function.
4272 (unknown_language_data): Delete la_printchar initializer.
4273 (unknown_language::printchar): New member function.
4274 (auto_language_data): Delete la_printchar initializer.
4275 (auto_language::printchar): New member function.
4276 * language.h (language_data): Delete la_printchar field.
4277 (language_defn::printchar): Declare new member function.
4278 (LA_PRINT_CHAR): Update call to printchar.
4279 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4280 (m2_language::printchar): New member function.
4281 * objc-lang.c (objc_language_data): Delete la_printchar
4282 initializer.
4283 * opencl-lang.c (opencl_language_data): Likewise.
4284 * p-lang.c (pascal_language_data): Delete la_printchar
4285 initializer.
4286 (pascal_language::printchar): New member function.
4287 * rust-lang.c (rust_printchar): Rename to
4288 rust_language::printchar.
4289 (rust_language_data): Delete la_printchar initializer.
4290 (rust_language::printchar): New member function, implementation
4291 from rust_printchar.
4292
ec8cec5b
AB
42932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4294
4295 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4296 (ada_language_data): Delete la_emitchar initializer.
4297 (ada_language::emitchar): New member function, implementation from
4298 emit_char.
4299 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4300 (cplus_language_data): Likewise.
4301 (asm_language_data): Likewise.
4302 (minimal_language_data): Likewise.
4303 * d-lang.c (d_language_data): Likewise.
4304 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4305 (f_language_data): Delete la_emitchar initializer.
4306 (f_language::emitchar): New member function, implementation from
4307 f_emit_char.
4308 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4309 * language.c (unk_lang_emit_char): Delete.
4310 (language_defn::emitchar): New member function definition.
4311 (unknown_language_data): Delete la_emitchar initializer.
4312 (unknown_language::emitchar): New member function.
4313 (auto_language_data): Delete la_emitchar initializer.
4314 (auto_language::emitchar): New member function.
4315 * language.h (language_data): Delete la_emitchar field.
4316 (language_defn::emitchar): New member field declaration.
4317 (LA_EMIT_CHAR): Update call to emitchar.
4318 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4319 (m2_language_data): Delete la_emitchar initializer.
4320 (m2_language::emitchar): New member function, implementation from
4321 m2_emit_char.
4322 * objc-lang.c (objc_language_data): Delete la_emitchar
4323 initializer.
4324 * opencl-lang.c (opencl_language_data): Likewise.
4325 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4326 (pascal_language_data): Delete la_emitchar initializer.
4327 (pascal_language::emitchar): New member function, implementation
4328 from pascal_emit_char.
4329 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4330 (rust_language_data): Delete la_emitchar initializer.
4331 (rust_language::emitchar): New member function, implementation
4332 from rust_emitchar.
4333
1bf9c363
AB
43342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4335
4336 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4337 (ada_language_data): Delete la_post_parser initializer.
4338 (ada_language::post_parser): New member function.
4339 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4340 (cplus_language_data): Likewise.
4341 (asm_language_data): Likewise.
4342 (minimal_language_data): Likewise.
4343 * d-lang.c (d_language_data): Likewise.
4344 * f-lang.c (f_language_data): Likewise.
4345 * go-lang.c (go_language_data): Likewise.
4346 * language.c (unknown_language_data): Likewise.
4347 (auto_language_data): Likewise.
4348 * language.h (language_data): Delete la_post_parser field.
4349 (language_defn::post_parser): New member function.
4350 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4351 * objc-lang.c (objc_language_data): Likewise.
4352 * opencl-lang.c (opencl_language_data): Likewise.
4353 * p-lang.c (pascal_language_data): Likewise.
4354 * parse.c (parse_exp_in_context): Update call to post_parser.
4355 (null_post_parser): Delete definition.
4356 * parser-defs.h (null_post_parser): Delete declaration.
4357 * rust-lang.c (rust_language_data): Delete la_post_parser
4358 initializer.
4359
87afa652
AB
43602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4361
4362 * ada-lang.c (parse): Rename to ada_language::parser.
4363 (ada_language_data): Delete la_parser initializer.
4364 (ada_language::parser): New member function, implementation from
4365 parse.
4366 * c-lang.c (c_language_data): Delete la_parser initializer.
4367 (cplus_language_data): Likewise.
4368 (asm_language_data): Likewise.
4369 (minimal_language_data): Likewise.
4370 * d-lang.c (d_language_data): Likewise.
4371 (d_language::parser): New member function.
4372 * f-lang.c (f_language_data): Delete la_parser initializer.
4373 (f_language::parser): New member function.
4374 * go-lang.c (go_language_data): Delete la_parser initializer.
4375 (go_language::parser): New member function.
4376 * language.c (unk_lang_parser): Delete.
4377 (language_defn::parser): Define new member function.
4378 (unknown_language_data): Delete la_parser initializer.
4379 (unknown_language::parser): New member function.
4380 (auto_language_data): Delete la_parser initializer.
4381 (auto_language::parser): New member function.
4382 * language.h (language_data): Delete la_parser field.
4383 (language_defn::parser): Declare new member function.
4384 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4385 (m2_language::parser): New member function.
4386 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4387 * opencl-lang.c (opencl_language_data): Likewise.
4388 * p-lang.c (pascal_language_data): Likewise.
4389 (pascal_language::parser): New member function.
4390 * parse.c (parse_exp_in_context): Update call to parser.
4391 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4392 (rust_language::parser): New member function.
4393
37825800
AB
43942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4395
4396 * top.c (print_gdb_configuration): Print --with-python-libdir
4397 configuration value.
4398
5b860c93
PW
43992020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4400
4401 * NEWS: Mention change to the alias command.
4402
cf00cd6f
PW
44032020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4404
4405 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4406 (alias_command_completer)
4407 (make_alias_options_def_group): New functions.
4408 (alias_opts, alias_option_defs): New struct and array.
4409 (alias_usage_error): Update usage.
4410 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4411 Use option framework.
4412 (_initialize_cli_cmds): Update alias command help.
4413 Update aliases command help.
4414 (show_user):
4415 Add NULL for new default_args lookup_cmd argument.
4416 (valid_command_p): Rename to validate_aliased_command.
4417 Add NULL for new default_args lookup_cmd argument. Verify that the
4418 aliased_command has no default args.
4419 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4420 (lookup_cmd_1, lookup_cmd): New argument default_args.
4421 (add_alias_cmd):
4422 Add NULL for new default_args lookup_cmd argument.
4423 (print_help_for_command): Show default args under the layout
4424 alias some_alias = some_aliased_cmd some_alias_default_arg.
4425 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4426 xfree default_args in destructor.
4427 * cli/cli-script.c (process_next_line, do_define_command):
4428 Add NULL for new default_args lookup_cmd argument.
4429 * command.h: Declare new default_args argument in lookup_cmd
4430 and lookup_cmd_1.
4431 * completer.c (complete_line_internal_1):
4432 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4433 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4434 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4435 Likewise.
4436 * infcmd.c (_initialize_infcmd): Likewise.
4437 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4438 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4439 * python/py-param.c (add_setshow_generic): Likewise.
4440 * remote.c (_initialize_remote): Likewise.
4441 * top.c (execute_command): Prepend default_args if command has some.
4442 (set_verbose):
4443 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4444 * tracepoint.c (validate_actionline, encode_actions_1):
4445 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4446
bd920864
TBA
44472020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4448
4449 * jit.c (jit_read_descriptor): Use bool as the return type.
4450 (jit_breakpoint_re_set_internal): Use bool as the return type.
4451 Invert the return value logic; return true if the jit breakpoint
4452 has been successfully initialized.
4453 (jit_inferior_init): Update the call to
4454 jit_breakpoint_re_set_internal.
4455
f8098322
PA
44562020-06-22 Pedro Alves <palves@redhat.com>
4457
4458 PR gdb/25939
4459 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4460 Use the current inferior instead. Don't return
4461 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4462 wait again.
4463 * sol-thread.c (sol_thread_target::wait): Don't reference
4464 inferior_ptid.
4465 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4466 (sol_update_thread_list_callback): Use the current inferior's pid
4467 instead of inferior_ptid.
4468
196535a6
RO
44692020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4470
4471 * procfs.c: Cleanup many comments.
4472
4473 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4474 (AFTER_WATCHFLAG): Replace by value.
4475
4476 (MAIN_PROC_NAME_FORMAT): Inline ...
4477 (create_procinfo): ... here.
4478
4479 (procfs_debug_inferior): Remove SYS_exec handling.
4480 (syscall_is_exec): Likewise.
4481 (procfs_set_exec_trap): Likewise.
4482
4483 (syscall_is_lwp_exit): Inline in callers.
4484 (syscall_is_exit): Likewise.
4485 (syscall_is_exec): Likewise.
4486 (syscall_is_lwp_create): Likewise.
4487
4488 (invalidate_cache): Remove #if 0 code.
4489
4490 (make_signal_thread_runnable): Remove.
4491 (procfs_target::resume): Remove #if 0 code.
4492
cf6f3e86
RO
44932020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4494
4495 PR gdb/25939
4496 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4497 call ...
4498 (procfs_target::create_inferior): ... here.
4499
48e9cc84
PW
45002020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4501
4502 * exec.c (validate_exec_file): Ensure the build-id is up to
4503 date by calling reopen_exec_file (that checks file timestamp
4504 to decide to re-read the file).
4505
3922b302
PA
45062020-06-18 Pedro Alves <palves@redhat.com>
4507
4508 PR gdb/25412
4509 * gdbthread.h (delete_thread, delete_thread_silent)
4510 (find_thread_ptid): Update comments.
4511 * thread.c (current_thread_): New global.
4512 (is_current_thread): Move higher, and reimplement.
4513 (inferior_thread): Reimplement.
4514 (set_thread_exited): Use bool. Add assertions.
4515 (add_thread_silent): Simplify thread-reuse handling by always
4516 calling delete_thread.
4517 (delete_thread): Remove intro comment.
4518 (find_thread_ptid): Skip exited threads.
4519 (switch_to_thread_no_regs): Write to current_thread_.
4520 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4521 INFERIOR_PTID. Clear current_thread_.
4522
6dbdab44
PA
45232020-06-18 Pedro Alves <palves@redhat.com>
4524
4525 * aix-thread.c (pd_update): Use switch_to_thread.
4526
2da4b788
PA
45272020-06-18 Pedro Alves <palves@redhat.com>
4528
4529 * ravenscar-thread.c (ravenscar_thread_target): Update.
4530 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4531 (ravenscar_thread_target::add_active_thread): ... this. Don't
4532 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4533 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4534
50838d1b
PA
45352020-06-18 Pedro Alves <palves@redhat.com>
4536
4537 * nat/windows-nat.c (current_windows_thread): Remove.
4538 * nat/windows-nat.h (current_windows_thread): Remove.
4539 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4540 Adjust.
4541 (display_selectors): Adjust to fetch the current
4542 windows_thread_info based on inferior_ptid.
4543 (fake_create_process): No longer write to current_windows_thread.
4544 (windows_nat_target::get_windows_debug_event):
4545 Don't set inferior_ptid or current_windows_thread.
4546 (windows_nat_target::wait): Adjust to not rely on
4547 current_windows_thread.
4548 (do_initial_windows_stuff): Now a method of windows_nat_target.
4549 Switch to the last_ptid thread.
4550 (windows_nat_target::attach): Adjust.
4551 (windows_nat_target::detach): Use switch_to_no_thread instead of
4552 writing to inferior_ptid directly.
4553 (windows_nat_target::create_inferior): Adjust.
4554
31ce04e9
PA
45552020-06-18 Pedro Alves <palves@redhat.com>
4556
4557 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4558
1ee1a363
PA
45592020-06-18 Pedro Alves <palves@redhat.com>
4560
4561 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4562 after creating it, instead of writing to inferior_ptid. Don't
4563 write to inferior_ptid.
4564
6d350754
PA
45652020-06-18 Pedro Alves <palves@redhat.com>
4566
4567 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4568
5d971d48
PA
45692020-06-18 Pedro Alves <palves@redhat.com>
4570
4571 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4572 it, instead of writing to inferior_ptid.
4573
86e57d1b
PA
45742020-06-18 Pedro Alves <palves@redhat.com>
4575
4576 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4577 to inferior_ptid.
4578
f2e1c129
PA
45792020-06-18 Pedro Alves <palves@redhat.com>
4580
4581 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4582 instead of writing to inferior_ptid directly.
4583
60db1b85
PA
45842020-06-18 Pedro Alves <palves@redhat.com>
4585
4586 * corelow.c (core_target::close): Use switch_to_no_thread instead
4587 of writing to inferior_ptid directly.
4588 (add_to_thread_list, core_target_open): Use switch_to_thread
4589 instead of writing to inferior_ptid directly.
4590
fe7d6a8d
PA
45912020-06-18 Pedro Alves <palves@redhat.com>
4592
4593 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4594 inferior_ptid.
4595 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4596 inferior_ptid.
4597 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4598 inferior_ptid directly.
4599 (darwin_nat_target::init_thread_list): Switch to thread, instead
4600 of writing to inferior_ptid.
4601 (darwin_nat_target::attach): Don't write to inferior_ptid.
4602 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4603
975f8708
PA
46042020-06-18 Pedro Alves <palves@redhat.com>
4605
4606 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4607 thread.
4608 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4609 Instead use switch_to_thread.
4610 (gnu_nat_target::detach): Use switch_to_no_thread
4611 instead of writing to inferior_ptid directly. Used passed-in
4612 inferior instead of looking up the inferior by pid.
4613
1a204730
PA
46142020-06-18 Pedro Alves <palves@redhat.com>
4615
4616 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4617 inferior_ptid.
4618
ebe84f23
PA
46192020-06-18 Pedro Alves <palves@redhat.com>
4620
4621 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4622 inferior_ptid.
4623 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4624 thread.
4625 (nto_procfs_target::detach): Avoid referencing
4626 inferior_ptid. Use switch_to_no_thread instead of writing to
4627 inferior_ptid directly.
4628 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4629 instead of writing to inferior_ptid directly.
4630 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4631 to thread.
4632
191f02e5
PA
46332020-06-18 Pedro Alves <palves@redhat.com>
4634
4635 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4636 after creating it, instead of writing to inferior_ptid.
4637 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4638 to inferior_ptid directly.
4639 (gdbsim_target::wait): Don't write to inferior_ptid.
4640
0ac55310
PA
46412020-06-18 Pedro Alves <palves@redhat.com>
4642
4643 * remote.c (remote_target::remote_notice_new_inferior): Use
4644 switch_to_thread instead of writing to inferior_ptid directly.
4645 (remote_target::add_current_inferior_and_thread): Use
4646 switch_to_no_thread instead of writing to inferior_ptid directly.
4647 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4648 and switch_to_thread instead of using set_current_inferior or
4649 writing to inferior_ptid directly.
4650
5233f39b
PA
46512020-06-18 Pedro Alves <palves@redhat.com>
4652
4653 * tracectf.c (ctf_target_open): Switch to added thread instead of
4654 writing to inferior_ptid directly.
4655 (ctf_target::close): Use switch_to_no_thread instead of writing to
4656 inferior_ptid directly.
4657
087e161b
PA
46582020-06-18 Pedro Alves <palves@redhat.com>
4659
4660 * tracefile-tfile.c (tfile_target_open): Don't write to
4661 inferior_ptid directly, instead switch to added thread.
4662 (tfile_target::close): Use switch_to_no_thread instead of writing
4663 to inferior_ptid directly.
4664
7fb43e53
PA
46652020-06-18 Pedro Alves <palves@redhat.com>
4666
4667 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4668 (procfs_target::detach): Use switch_to_no_thread
4669 instead of writing to inferior_ptid directly.
4670 (do_attach): Change return type to void. Switch to the added
4671 thread.
4672 (procfs_target::create_inferior): Switch to the added thread.
4673 (procfs_do_thread_registers): Don't write to inferior_ptid.
4674
18493a00
PA
46752020-06-18 Pedro Alves <palves@redhat.com>
4676
4677 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4678 of writing to inferior_ptid.
4679 (scoped_restore_exited_inferior): Delete.
4680 (handle_vfork_child_exec_or_exit): Simplify using
4681 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4682 instead of writing to inferior_ptid.
4683 (THREAD_STOPPED_BY): Delete.
4684 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4685 (thread_stopped_by_hw_breakpoint): Delete.
4686 (save_waitstatus): Use
4687 scoped_restore_current_thread+switch_to_thread, and call
4688 target_stopped_by_watchpoint instead of
4689 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4690 instead of thread_stopped_by_sw_breakpoint, and
4691 target_stopped_by_hw_breakpoint instead of
4692 thread_stopped_by_hw_breakpoint.
4693 (handle_inferior_event)
4694 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4695 inferior_ptid directly, nor
4696 set_current_inferior/set_current_program_space. Use
4697 switch_to_thread / switch_to_inferior_no_thread instead.
4698
a0776b13
PA
46992020-06-18 Pedro Alves <palves@redhat.com>
4700
4701 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4702 instead of writing to inferior_ptid.
4703
6155c136
PA
47042020-06-18 Pedro Alves <palves@redhat.com>
4705
4706 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4707 added thread.
4708 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4709 to the added thread.
4710 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4711 instead of writing to inferior_ptid.
4712
c5316fc6
PA
47132020-06-18 Pedro Alves <palves@redhat.com>
4714
4715 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4716 (register_to_value_test): Mock a program_space too. Heap-allocate
4717 the address space. Don't write to inferior_ptid. Use
4718 switch_to_thread instead.
4719
8df01799
PA
47202020-06-18 Pedro Alves <palves@redhat.com>
4721
4722 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4723 Delete.
4724 (find_signalled_thread()): New, factored out from
4725 linux_make_corefile_notes and adjusted to handle exited threads.
4726 (linux_make_corefile_notes): Adjust to use the new
4727 find_signalled_thread.
4728
41792d68
PA
47292020-06-18 Pedro Alves <palves@redhat.com>
4730
4731 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4732 of saving/restoring inferior_ptid.
4733
612f258a
TT
47342020-06-17 Tom Tromey <tom@tromey.com>
4735
4736 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4737 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4738 declare.
4739 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4740
efb763a5
SM
47412020-06-15 Simon Marchi <simon.marchi@efficios.com>
4742
4743 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4744 of partial symtabs.
4745
2951f6c0
SM
47462020-06-17 Simon Marchi <simon.marchi@efficios.com>
4747
4748 * regformats/reg-arm.dat: Remove.
4749 * regformats/reg-bfin.dat: Remove.
4750 * regformats/reg-cris.dat: Remove.
4751 * regformats/reg-crisv32.dat: Remove.
4752 * regformats/reg-m32r.dat: Remove.
4753 * regformats/reg-tilegx.dat: Remove.
4754 * regformats/reg-tilegx32.dat: Remove.
4755
7d458ea5
SM
47562020-06-17 Simon Marchi <simon.marchi@efficios.com>
4757
4758 * features/Makefile (WHICH): Remove arm files.
4759 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4760 * regformats/arm/arm-with-neon.dat: Remove.
4761 * regformats/arm/arm-with-vfpv2.dat: Remove.
4762 * regformats/arm/arm-with-vfpv3.dat: Remove.
4763
3af96c0d
SM
47642020-06-17 Simon Marchi <simon.marchi@efficios.com>
4765
4766 * features/Makefile (XMLTOC): Remove rx.xml.
4767
b25e22fd
PA
47682020-06-17 Pedro Alves <palves@redhat.com>
4769
4770 * gdbthread.h (thread_control_state) <trap_expected> Update
4771 comments.
4772
a78a19b1
AB
47732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4774
4775 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4776 ada_language::lookup_symbol_nonlocal.
4777 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4778 (ada_language::lookup_symbol_nonlocal): New member function,
4779 implementation from ada_lookup_symbol_nonlocal.
4780 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4781 initializer.
4782 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4783 initializer.
4784 (cplus_language::lookup_symbol_nonlocal): New member function.
4785 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4786 (minimal_language_data) Likewise.
4787 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4788 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4789 initializer.
4790 (d_language::lookup_symbol_nonlocal): New member function.
4791 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4792 initializer.
4793 (f_language::lookup_symbol_nonlocal): New member function.
4794 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4795 initializer.
4796 * language.c (unknown_language_data): Likewise.
4797 (auto_language_data): Likewise.
4798 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4799 field.
4800 (language_defn::lookup_symbol_nonlocal): New member function.
4801 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4802 initializer.
4803 * objc-lang.c (objc_language_data): Likewise.
4804 * opencl-lang.c (opencl_language_data): Likewise.
4805 * p-lang.c (pascal_language_data): Likewise.
4806 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4807 rust_language::lookup_symbol_nonlocal.
4808 (rust_language_data): Delete la_lookup_symbol_nonlocal
4809 initializer.
4810 (rust_language::lookup_symbol_nonlocal): New member function,
4811 implementation from rust_lookup_symbol_nonlocal.
4812 * symtab.c (lookup_symbol_aux): Update call to
4813 lookup_symbol_nonlocal.
4814 (basic_lookup_symbol_nonlocal): Rename to...
4815 (language_defn::lookup_symbol_nonlocal): ...this, and update
4816 header comment. Remove language_defn parameter, and replace with
4817 uses of `this'.
4818 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4819
ebe2334e
AB
48202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4821
4822 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4823 initializer.
4824 (ada_language::value_print_inner): New member function.
4825 * c-lang.c (c_language_data): Delete la_value_print_inner
4826 initializer.
4827 (cplus_language_data): Likewise.
4828 (asm_language_data): Likewise.
4829 (minimal_language_data): Likewise.
4830 * d-lang.c (d_language_data): Likewise.
4831 (d_language::value_print_inner): New member function.
4832 * f-lang.c (f_language_data): Delete la_value_print_inner
4833 initializer.
4834 (f_language::value_print_inner): New member function.
4835 * f-lang.h (f_value_print_innner): Rename to...
4836 (f_value_print_inner): ...this (note spelling of 'inner').
4837 * f-valprint.c (f_value_print_innner): Rename to...
4838 (f_value_print_inner): ...this (note spelling of 'inner').
4839 * go-lang.c (go_language_data): Delete la_value_print_inner
4840 initializer.
4841 (go_language::value_print_inner): New member function.
4842 * language.c (language_defn::value_print_inner): Define new member
4843 function.
4844 (unk_lang_value_print_inner): Delete.
4845 (unknown_language_data): Delete la_value_print_inner initializer.
4846 (unknown_language::value_print_inner): New member function.
4847 (auto_language_data): Delete la_value_print_inner initializer.
4848 (auto_language::value_print_inner): New member function.
4849 * language.h (language_data): Delete la_value_print_inner field.
4850 (language_defn::value_print_inner): Delcare new member function.
4851 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4852 initializer.
4853 (m2_language::value_print_inner): New member function.
4854 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4855 initializer.
4856 * opencl-lang.c (opencl_language_data): Likewise.
4857 * p-lang.c (pascal_language_data): Likewise.
4858 (pascal_language::value_print_inner): New member function.
4859 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4860 initializer.
4861 (rust_language::value_print_inner): New member function.
4862 * valprint.c (do_val_print): Update call to value_print_inner.
4863
a1d1fa3e
AB
48642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4865
4866 * ada-lang.c (ada_language_data): Delete la_value_print
4867 initializer.
4868 (ada_language::value_print): New member function.
4869 * c-lang.c (c_language_data): Delete la_value_print initializer.
4870 (cplus_language_data): Likewise.
4871 (asm_language_data): Likewise.
4872 (minimal_language_data): Likewise.
4873 * d-lang.c (d_language_data): Likewise.
4874 * f-lang.c (f_language_data): Likewise.
4875 * go-lang.c (go_language_data): Likewise.
4876 * language.c (unk_lang_value_print): Delete.
4877 (language_defn::value_print): Define new member function.
4878 (unknown_language_data): Delete la_value_print initializer.
4879 (unknown_language::value_print): New member function.
4880 (auto_language_data): Delete la_value_print initializer.
4881 (auto_language::value_print): New member function.
4882 * language.h (language_data): Delete la_value_print field.
4883 (language_defn::value_print): Declare new member function.
4884 (LA_VALUE_PRINT): Update call to value_print.
4885 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4886 * objc-lang.c (objc_language_data): Likewise.
4887 * opencl-lang.c (opencl_language_data): Likewise.
4888 * p-lang.c (pascal_language_data): Likewise.
4889 (pascal_language::value_print): New member function.
4890 * rust-lang.c (rust_language_data): Delete la_value_print
4891 initializer.
4892
f16a9f57
AB
48932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4894
4895 * ada-lang.c (ada_watch_location_expression): Rename to
4896 ada_language::watch_location_expression.
4897 (ada_language_data): Delete la_watch_location_expression
4898 initializer.
4899 (ada_language::watch_location_expression): New member function,
4900 implementation from ada_watch_location_expression.
4901 * breakpoint.c (watch_command_1): Update call to
4902 watch_location_expression.
4903 * c-lang.c (c_watch_location_expression): Rename to
4904 language_defn::watch_location_expression.
4905 (c_language_data): Delete la_watch_location_expression
4906 initializer.
4907 (cplus_language_data): Likewise.
4908 (asm_language_data): Likewise.
4909 (minimal_language_data): Likewise.
4910 * c-lang.h (c_watch_location_expression): Delete declaration.
4911 * d-lang.c (d_language_data): Delete la_watch_location_expression
4912 initializer.
4913 * f-lang.c (f_language_data): Likewise.
4914 * go-lang.c (go_language_data): Likewise.
4915 * language.c (language_defn::watch_location_expression): Member
4916 function implementation from c_watch_location_expression.
4917 (unknown_language_data): Delete la_watch_location_expression
4918 initializer.
4919 (auto_language_data): Likewise.
4920 * language.h (language_data): Delete la_watch_location_expression
4921 field.
4922 (language_defn::watch_location_expression): Declare new member
4923 function.
4924 * m2-lang.c (m2_language_data): Delete
4925 la_watch_location_expression initializer.
4926 * objc-lang.c (objc_language_data): Likewise.
4927 * opencl-lang.c (opencl_language_data): Likewise.
4928 * p-lang.c (pascal_language_data): Likewise.
4929 * rust-lang.c (rust_watch_location_expression): Rename to
4930 rust_language::watch_location_expression.
4931 (rust_language_data): Delete la_watch_location_expression
4932 initializer.
4933 (rust_language::watch_location_expression): New member function,
4934 implementation from rust_watch_location_expression.
4935
7e56227d
AB
49362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4937
4938 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4939 ada_language::collect_symbol_completion_matches.
4940 (ada_language_data): Delete la_collect_symbol_completion_matches
4941 initializer.
4942 (ada_language::collect_symbol_completion_matches): New member
4943 function, implementation from
4944 ada_collect_symbol_completion_matches.
4945 * c-lang.c (c_language_data): Delete
4946 la_collect_symbol_completion_matches initializer.
4947 (cplus_language_data): Likewise.
4948 (asm_language_data): Likewise.
4949 (minimal_language_data): Likewise.
4950 * d-lang.c (d_language_data): Likewise.
4951 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4952 f_language::collect_symbol_completion_matches.
4953 (f_language_data): Delete la_collect_symbol_completion_matches
4954 initializer.
4955 (f_language::collect_symbol_completion_matches) New member
4956 function, implementation from f_collect_symbol_completion_matches.
4957 * go-lang.c (go_language_data): Delete
4958 la_collect_symbol_completion_matches initializer.
4959 * language.c (unknown_language_data): Likewise.
4960 (auto_language_data): Likewise.
4961 * language.h (language_data): Delete
4962 la_collect_symbol_completion_matches field.
4963 (language_defn::collect_symbol_completion_matches): New member
4964 function.
4965 * m2-lang.c (m2_language_data): Delete
4966 la_collect_symbol_completion_matches initializer.
4967 * objc-lang.c (objc_language_data): Likewise.
4968 * opencl-lang.c (opencl_language_data): Likewise.
4969 * p-lang.c (pascal_language_data): Likewise.
4970 * rust-lang.c (rust_language_data): Likewise.
4971 * symtab.c (default_collect_symbol_completion_matches): Delete.
4972 (collect_symbol_completion_matches): Update call to
4973 collect_symbol_completion_matches.
4974 (collect_symbol_completion_matches_type): Likewise.
4975 * symtab.h (default_collect_symbol_completion_matches): Delete
4976 declaration.
4977
53fc67f8
AB
49782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4979
4980 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4981 (ada_language_data): Delete la_word_break_characters initializer.
4982 (ada_language::word_break_characters): New member function.
4983 * c-lang.c (c_language_data): Delete la_word_break_characters
4984 initializer.
4985 (cplus_language_data): Likewise.
4986 (asm_language_data): Likewise.
4987 (minimal_language_data): Likewise.
4988 * completer.c: Update global comment.
4989 (advance_to_expression_complete_word_point): Update call to
4990 word_break_characters.
4991 (complete_files_symbols): Likewise.
4992 (complete_line_internal_1): Likewise.
4993 (default_completer_handle_brkchars): Likewise.
4994 (skip_quoted_chars): Likewise.
4995 * d-lang.c (d_language_data): Delete la_word_break_characters
4996 initializer.
4997 * f-lang.c (f_word_break_characters): Delete.
4998 (f_language_data): Delete la_word_break_characters initializer.
4999 (f_language::word_break_characters): New member function.
5000 * go-lang.c (go_language_data): Delete la_word_break_characters
5001 initializer.
5002 * language.c (unknown_language_data): Likewise.
5003 (auto_language_data): Likewise.
5004 * language.h (default_word_break_characters): Move declaration to
5005 earlier in the file.
5006 (language_data): Delete la_word_break_characters field.
5007 (language_defn::word_break_characters): New member function.
5008 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5009 initializer.
5010 * objc-lang.c (objc_language_data): Likewise.
5011 * opencl-lang.c (opencl_language_data): Likewise.
5012 * p-lang.c (pascal_language_data): Likewise.
5013 * rust-lang.c (rust_language_data): Likewise.
5014
c9debfb9
AB
50152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5016
5017 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5018 (ada_language_data): Delete la_get_symbol_name_matcher
5019 initializer.
5020 (language_defn::get_symbol_name_matcher_inner): New member
5021 function.
5022 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5023 initializer.
5024 (cplus_language_data): Likewise.
5025 (cplus_language::get_symbol_name_matcher_inner): New member
5026 function.
5027 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5028 (minimal_language_data): Likewise.
5029 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5030 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5031 initializer.
5032 * dictionary.c (iter_match_first_hashed): Update call to
5033 get_symbol_name_matcher.
5034 (iter_match_next_hashed): Likewise.
5035 (iter_match_next_linear): Likewise.
5036 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5037 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5038 initializer.
5039 (f_language::get_symbol_name_matcher_inner): New member function.
5040 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5041 initializer.
5042 * language.c (default_symbol_name_matcher): Update header comment,
5043 make static.
5044 (language_defn::get_symbol_name_matcher): New definition.
5045 (language_defn::get_symbol_name_matcher_inner): Likewise.
5046 (get_symbol_name_matcher): Delete.
5047 (unknown_language_data): Delete la_get_symbol_name_matcher
5048 initializer.
5049 (auto_language_data): Likewise.
5050 * language.h (language_data): Delete la_get_symbol_name_matcher
5051 field.
5052 (language_defn::get_symbol_name_matcher): New member function.
5053 (language_defn::get_symbol_name_matcher_inner): Likewise.
5054 (default_symbol_name_matcher): Delete declaration.
5055 * linespec.c (find_methods): Update call to
5056 get_symbol_name_matcher.
5057 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5058 initializer.
5059 * minsyms.c (lookup_minimal_symbol): Update call to
5060 get_symbol_name_matcher.
5061 (iterate_over_minimal_symbols): Likewise.
5062 * objc-lang.c (objc_language_data): Delete
5063 la_get_symbol_name_matcher initializer.
5064 * opencl-lang.c (opencl_language_data): Likewise.
5065 * p-lang.c (pascal_language_data): Likewise.
5066 * psymtab.c (psymbol_name_matches): Update call to
5067 get_symbol_name_matcher.
5068 * rust-lang.c (rust_language_data): Delete
5069 la_get_symbol_name_matcher initializer.
5070 * symtab.c (symbol_matches_search_name): Update call to
5071 get_symbol_name_matcher.
5072 (compare_symbol_name): Likewise.
5073
9a49ad8c
AB
50742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5075
5076 * ada-lang.c (ada_language_data): Delete la_compute_program
5077 initializer.
5078 * c-lang.c (c_language_data): Likewise.
5079 (c_language::compute_program): New member function.
5080 (cplus_language_data): Delete la_compute_program initializer.
5081 (cplus_language::compute_program): New member function.
5082 (asm_language_data): Delete la_compute_program initializer.
5083 (minimal_language_data): Likewise.
5084 * c-lang.h (c_compute_program): Update comment.
5085 (cplus_compute_program): Likewise.
5086 * compile/compile-c-support.c (c_compute_program): Likewise.
5087 (cplus_compute_program): Likewise.
5088 * compile/compile.c (compile_to_object): Update call to
5089 la_compute_program.
5090 * d-lang.c (d_language_data): Delete la_compute_program
5091 initializer.
5092 * f-lang.c (f_language_data): Likewise.
5093 * go-lang.c (go_language_data): Likewise.
5094 * language.c (unknown_language_data): Likewise.
5095 (auto_language_data): Likewise.
5096 * language.h (language_data): Delete la_compute_program field.
5097 (language_defn::compute_program): New member function.
5098 * m2-lang.c (m2_language_data): Delete la_compute_program
5099 initializer.
5100 * objc-lang.c (objc_language_data): Likewise.
5101 * opencl-lang.c (opencl_language_data): Likewise.
5102 * p-lang.c (pascal_language_data): Likewise.
5103 * rust-lang.c (rust_language_data): Likewise.
5104
eff93b4d
AB
51052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5106
5107 * ada-lang.c (ada_language_data) Delete
5108 la_class_name_from_physname initializer.
5109 * c-lang.c (c_language_data): Likewise.
5110 (cplus_language_data): Likewise.
5111 (cplus_language::class_name_from_physname): New member function.
5112 (asm_language_data): Delete la_class_name_from_physname
5113 initializer.
5114 (minimal_language_data): Likewise.
5115 * d-lang.c (d_language_data): Likewise.
5116 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5117 method on language_defn class.
5118 (guess_full_die_structure_name): Likewise.
5119 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5120 initializer.
5121 * go-lang.c (go_language_data): Likewise.
5122 * language.c (language_class_name_from_physname): Delete.
5123 (unk_lang_class_name): Delete.
5124 (unknown_language_data): Delete la_class_name_from_physname
5125 initializer.
5126 (auto_language_data): Likewise.
5127 * language.h (language_data): Delete la_class_name_from_physname
5128 field.
5129 (language_defn::class_name_from_physname): New function.
5130 (language_class_name_from_physname): Delete declaration.
5131 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5132 initializer.
5133 * objc-lang.c (objc_language_data): Likewise.
5134 * opencl-lang.c (opencl_language_data): Likewise.
5135 * p-lang.c (pascal_language_data): Likewise.
5136 * rust-lang.c (rust_language_data): Likewise.
5137
de543742
TT
51382020-06-16 Tom Tromey <tom@tromey.com>
5139
5140 * tui/tui-data.h (STATUS_NAME): New macro.
5141 * tui/tui-layout.c (tui_remove_some_windows)
5142 (initialize_known_windows, tui_register_window)
5143 (tui_layout_split::remove_windows, initialize_layouts)
5144 (tui_new_layout_command): Don't use hard-coded window names.
5145
a350efd4
TT
51462020-06-16 Tom Tromey <tom@tromey.com>
5147
5148 PR tui/25348:
5149 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5150 tui_initialize_readline. Only run once. Call rl_initialize.
5151 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5152 tui_initialize_readline.
5153 * tui/tui-io.c (tui_setup_io): Call
5154 tui_ensure_readline_initialized.
5155 * tui/tui-interp.c (tui_interp::init): Update.
5156
39ec0490
TT
51572020-06-16 Tom Tromey <tom@tromey.com>
5158
5159 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5160 Also preserve the status window.
5161
d2d1ea20
TT
51622020-06-16 Tom Tromey <tom@tromey.com>
5163
5164 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5165 where m_window==nullptr.
5166
66920317
TT
51672020-06-15 Tom Tromey <tromey@adacore.com>
5168
5169 * windows-nat.c (windows_nat::handle_output_debug_string):
5170 Update.
5171 (windows_nat::handle_ms_vc_exception): Update.
5172 * target.h (target_read_string): Change API.
5173 * target.c (target_read_string): Change API.
5174 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5175 Update.
5176 * solib-frv.c (frv_current_sos): Update.
5177 * solib-dsbt.c (dsbt_current_sos): Update.
5178 * solib-darwin.c (darwin_current_sos): Update.
5179 * linux-thread-db.c (inferior_has_bug): Update.
5180 * expprint.c (print_subexp_standard): Update.
5181 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5182 (ada_exception_message_1): Update.
5183
a5d871dd
TT
51842020-06-15 Tom Tromey <tromey@adacore.com>
5185
5186 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5187
670e35fa
TT
51882020-06-15 Tom Tromey <tromey@adacore.com>
5189
5190 * valprint.c (read_string): Update comment.
5191 * target.c (MIN): Remove.
5192 (target_read_string): Rewrite.
5193
f5272a3b
TT
51942020-06-15 Tom Tromey <tromey@adacore.com>
5195
5196 * corefile.c (read_memory_string): Remove.
5197 * ada-valprint.c (ada_value_print_ptr): Update.
5198 * ada-lang.h (ada_tag_name): Change return type.
5199 * ada-lang.c (type_from_tag): Update.
5200 (ada_tag_name_from_tsd): Change return type. Use
5201 target_read_string.
5202 (ada_tag_name): Likewise.
5203 * gdbcore.h (read_memory_string): Don't declare.
5204
2c074f49
HD
52052020-06-14 Hannes Domani <ssbssa@yahoo.de>
5206
5207 * symtab.c (rbreak_command): Ignore Windows drive colon.
5208
6a17d503
SM
52092020-06-12 Simon Marchi <simon.marchi@efficios.com>
5210
5211 * NEWS: Mention removed GDBserver host support.
5212
453c733f
NC
52132020-06-12 Nelson Chu <nelson.chu@sifive.com>
5214
5215 * features/riscv/rebuild-csr-xml.sh: Updated.
5216
2b4e6a3f
TT
52172020-06-11 Tom Tromey <tom@tromey.com>
5218
5219 PR gdb/18318:
5220 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5221
4412332f
JG
52222020-06-09 Jonny Grant <jg@jguk.org>
52232020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5224
5225 * main.c (captured_main_1): Don't print new line after help.
5226 (print_gdb_help): add mailing list and IRC channel information
5227 to --help. Add new lines between items in the footer. Remove
5228 quotes around bug url.
5229
2f33032a
KS
52302020-06-11 Keith Seitz <keiths@redhat.com>
5231
5232 PR gdb/21356
5233 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5234 Resolve typedefs for type length calculations.
5235
7ab96794
TV
52362020-06-10 Tom de Vries <tdevries@suse.de>
5237
5238 PR ada/24713
5239 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5240 (write_psymbols): Enable .gdb_index for ada.
5241 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5242 ada.
5243
e5f3ece2
TV
52442020-06-10 Tom de Vries <tdevries@suse.de>
5245
5246 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5247 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5248 namei" instead of "const char *name" argument.
5249 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5250 dw2_symtab_iter_init.
5251
940da03e
SM
52522020-06-08 Simon Marchi <simon.marchi@efficios.com>
5253
5254 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5255 to use type::field and field::type instead.
5256
b6cdac4b
SM
52572020-06-08 Simon Marchi <simon.marchi@efficios.com>
5258
5259 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5260 to use field::type instead.
5261
5d14b6e5
SM
52622020-06-08 Simon Marchi <simon.marchi@efficios.com>
5263
5264 * gdbtypes.h (struct field) <type, set_type>: New methods.
5265 Rename `type` field to...
5266 <m_type>: ... this. Change references throughout to use type or
5267 set_type methods.
5268 (FIELD_TYPE): Use field::type. Change call sites that modify
5269 the field's type to use field::set_type instead.
5270
3d967001
SM
52712020-06-08 Simon Marchi <simon.marchi@efficios.com>
5272
5273 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5274 to use type::index_type instead.
5275
262abc0d
SM
52762020-06-08 Simon Marchi <simon.marchi@efficios.com>
5277
5278 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5279 methods.
5280 (TYPE_INDEX_TYPE): Use type::index_type.
5281 * gdbtypes.c (create_array_type_with_stride): Likewise.
5282
82836c92
TT
52832020-06-07 Tom Tromey <tom@tromey.com>
5284
5285 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5286 parameter.
5287 (generic_value_print): Update.
5288
940dace9
AB
52892020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5290
5291 Revert commit 982a38f60b0.
5292 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5293
982a38f6
AB
52942020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5295
5296 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5297 avoid use after free.
5298
82f06518
TV
52992020-06-05 Tom de Vries <tdevries@suse.de>
5300
5301 * NEWS: Fix typos.
5302
f8c41851
SM
53032020-06-04 Simon Marchi <simon.marchi@efficios.com>
5304
5305 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5306 the per_bfd object.
5307 (dwarf2_read_debug_names): Likewise.
5308 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5309 object when re-using a per_bfd object with an index.
5310
f9b5d5ea
TV
53112020-06-03 Tom de Vries <tdevries@suse.de>
5312
5313 PR symtab/26046
5314 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5315 children for C++.
5316 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5317 DW_TAG_subprogram.
5318
f6eee2d0
AB
53192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5320
5321 * ada-lang.c (ada_language_data): Delete skip_trampoline
5322 initializer.
5323 * c-lang.c (c_language_data): Likewise.
5324 (cplus_language_data): Likewise.
5325 (cplus_language::skip_trampoline): New member function.
5326 (asm_language_data): Delete skip_trampoline initializer.
5327 (minimal_language_data): Likewise.
5328 * d-lang.c (d_language_data): Likewise.
5329 * f-lang.c (f_language_data): Likewise.
5330 * go-lang.c (go_language_data): Likewise.
5331 * language.c (unk_lang_trampoline): Delete function.
5332 (skip_language_trampoline): Update.
5333 (unknown_language_data): Delete skip_trampoline initializer.
5334 (auto_language_data): Likewise.
5335 * language.h (language_data): Delete skip_trampoline field.
5336 (language_defn::skip_trampoline): New function.
5337 * m2-lang.c (m2_language_data): Delete skip_trampoline
5338 initializer.
5339 * objc-lang.c (objc_skip_trampoline): Delete function, move
5340 implementation to objc_language::skip_trampoline.
5341 (objc_language_data): Delete skip_trampoline initializer.
5342 (objc_language::skip_trampoline): New member function with
5343 implementation from objc_skip_trampoline.
5344 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5345 initializer.
5346 * p-lang.c (pascal_language_data): Likewise.
5347 * rust-lang.c (rust_language_data): Likewise.
5348
0a50df5d
AB
53492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5350
5351 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5352 (ada_language::demangle): New member function.
5353 * c-lang.c (c_language_data): Delete la_demangle initializer.
5354 (cplus_language_data): Delete la_demangle initializer.
5355 (cplus_language::demangle): New member function.
5356 (asm_language_data): Delete la_demangle initializer.
5357 (minimal_language_data): Delete la_demangle initializer.
5358 * d-lang.c (d_language_data): Delete la_demangle initializer.
5359 (d_language::demangle): New member function.
5360 * f-lang.c (f_language_data): Delete la_demangle initializer.
5361 (f_language::demangle): New member function.
5362 * go-lang.c (go_language_data): Delete la_demangle initializer.
5363 (go_language::demangle): New member function.
5364 * language.c (language_demangle): Update.
5365 (unk_lang_demangle): Delete.
5366 (unknown_language_data): Delete la_demangle initializer.
5367 (unknown_language::demangle): New member function.
5368 (auto_language_data): Delete la_demangle initializer.
5369 (auto_language::demangle): New member function.
5370 * language.h (language_data): Delete la_demangle field.
5371 (language_defn::demangle): New function.
5372 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5373 * objc-lang.c (objc_language_data): Delete la_demangle
5374 initializer.
5375 (objc_language::demangle): New member function.
5376 * opencl-lang.c (opencl_language_data): Delete la_demangle
5377 initializer.
5378 * p-lang.c (pascal_language_data): Likewise.
5379 * rust-lang.c (rust_language_data): Likewise.
5380 (rust_language::demangle): New member function.
5381
fbfb0a46
AB
53822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5383
5384 * ada-lang.c (ada_language_data): Delete la_print_type
5385 initializer.
5386 (ada_language::print_type): New member function.
5387 * c-lang.c (c_language_data): Delete la_print_type initializer.
5388 (c_language::print_type): New member function.
5389 (cplus_language_data): Delete la_print_type initializer.
5390 (cplus_language::print_type): New member function.
5391 (asm_language_data): Delete la_print_type initializer.
5392 (asm_language::print_type): New member function.
5393 (minimal_language_data): Delete la_print_type initializer.
5394 (minimal_language::print_type): New member function.
5395 * d-lang.c (d_language_data): Delete la_print_type initializer.
5396 (d_language::print_type): New member function.
5397 * f-lang.c (f_language_data): Delete la_print_type initializer.
5398 (f_language::print_type): New member function.
5399 * go-lang.c (go_language_data): Delete la_print_type initializer.
5400 (go_language::print_type): New member function.
5401 * language.c (unk_lang_print_type): Delete.
5402 (unknown_language_data): Delete la_print_type initializer.
5403 (unknown_language::print_type): New member function.
5404 (auto_language_data): Delete la_print_type initializer.
5405 (auto_language::print_type): New member function.
5406 * language.h (language_data): Delete la_print_type field.
5407 (language_defn::print_type): New function.
5408 (LA_PRINT_TYPE): Update.
5409 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5410 (m2_language::print_type): New member function.
5411 * objc-lang.c (objc_language_data): Delete la_print_type
5412 initializer.
5413 (objc_language::print_type): New member function.
5414 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5415 to opencl_language::print_type.
5416 (opencl_language_data): Delete la_print_type initializer.
5417 (opencl_language::print_type): New member function, implementation
5418 from opencl_print_type.
5419 * p-lang.c (pascal_language_data): Delete la_print_type
5420 initializer.
5421 (pascal_language::print_type): New member function.
5422 * rust-lang.c (rust_print_type): Delete, implementation moved to
5423 rust_language::print_type.
5424 (rust_language_data): Delete la_print_type initializer.
5425 (rust_language::print_type): New member function, implementation
5426 from rust_print_type.
5427
6f827019
AB
54282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5429
5430 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5431 implementation moves to...
5432 (ada_language::sniff_from_mangled_name): ...here. Update return
5433 type.
5434 (ada_language_data): Delete la_sniff_from_mangled_name
5435 initializer.
5436 * c-lang.c (c_language_data): Likewise.
5437 (cplus_language_data): Likewise.
5438 (cplus_language::sniff_from_mangled_name): New member function,
5439 implementation taken from gdb_sniff_from_mangled_name.
5440 (asm_language_data): Delete la_sniff_from_mangled_name
5441 initializer.
5442 (minimal_language_data): Likewise.
5443 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5444 implementation moves to cplus_language::sniff_from_mangled_name.
5445 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5446 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5447 moves to...
5448 (d_language::sniff_from_mangled_name): ...here.
5449 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5450 * f-lang.c (f_language_data): Likewise.
5451 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5452 moves to...
5453 (go_language::sniff_from_mangled_name): ...here.
5454 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5455 * language.c (language_sniff_from_mangled_name): Delete.
5456 (unknown_language_data): Delete la_sniff_from_mangled_name
5457 initializer.
5458 (auto_language_data): Likewise.
5459 * language.h (language_data): Delete la_sniff_from_mangled_name
5460 field.
5461 (language_defn::sniff_from_mangled_name): New function.
5462 (language_sniff_from_mangled_name): Delete declaration.
5463 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5464 field.
5465 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5466 implementation moves to...
5467 (objc_language::sniff_from_mangled_name): ...here.
5468 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5469 * opencl-lang.c (opencl_language_data): Likewise.
5470 * p-lang.c (pascal_language_data): Likewise.
5471 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5472 implementation moves to...
5473 (rust_language::sniff_from_mangled_name): ...here.
5474 (rust_language_data): Delete la_sniff_from_mangled_name
5475 initializer.
5476 * symtab.c (symbol_find_demangled_name): Call
5477 sniff_from_mangled_name member function.
5478
fb8006fd
AB
54792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5480
5481 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5482 initializer.
5483 * c-lang.c (c_language_data): Likewise.
5484 (cplus_language_data): Likewise.
5485 (cplus_language::search_name_hash): New member function.
5486 (asm_language_data): Delete la_search_name_hash initializer.
5487 (minimal_language_data): Likewise.
5488 * d-lang.c (d_language_data): Likewise.
5489 * dictionary.c (default_search_name_hash): Rename to...
5490 (language_defn::search_name_hash): ...this.
5491 * f-lang.c (f_language_data): Likewise.
5492 (f_language::search_name_hash): New member function.
5493 * go-lang.c (go_language_data): Delete la_search_name_hash
5494 initializer.
5495 * language.c (unknown_language_data): Likewise.
5496 (auto_language_data): Likewise.
5497 * language.h (struct language_data): Delete la_search_name_hash
5498 field.
5499 (language_defn::search_name_hash): Declare new member function.
5500 (default_search_name_hash): Delete declaration.
5501 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5502 initializer.
5503 * objc-lang.c (objc_language_data): Likewise.
5504 * opencl-lang.c (opencl_language_data): Likewise.
5505 * p-lang.c (pascal_language_data): Likewise.
5506 * rust-lang.c (rust_language_data): Likewise.
5507 * symtab.c (search_name_hash): Update call.
5508
8e25bafe
AB
55092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5510
5511 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5512 initializer.
5513 * c-lang.c (class compile_instance): Declare.
5514 (c_language_data): Delete la_get_compile_instance initializer.
5515 (c_language::get_compile_instance): New member function.
5516 (cplus_language_data): Delete la_get_compile_instance initializer.
5517 (cplus_language::get_compile_instance): New member function.
5518 (asm_language_data): Delete la_get_compile_instance initializer.
5519 (minimal_language_data): Likewise.
5520 * c-lang.h (c_get_compile_context): Update comment.
5521 (cplus_get_compile_context): Update comment.
5522 * compile/compile.c (compile_to_object): Update calls, don't rely
5523 on function pointer being NULL.
5524 * d-lang.c (d_language_data): Delete la_get_compile_instance
5525 initializer.
5526 * f-lang.c (f_language_data): Likewise.
5527 * go-lang.c (go_language_data): Likewise.
5528 * language.c (unknown_language_data): Likewise.
5529 (auto_language_data): Likewise.
5530 * language.h (language_data): Delete la_get_compile_instance field.
5531 (language_defn::get_compile_instance): New member function.
5532 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5533 initializer.
5534 * objc-lang.c (objc_language_data): Likewise.
5535 * opencl-lang.c (opencl_language_data): Likewise.
5536 * p-lang.c (pascal_language_data): Likewise.
5537 * rust-lang.c (rust_language_data): Likewise.
5538
4009ee92
AB
55392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5540
5541 * ada-lang.c (ada_add_all_symbols): Update comment.
5542 (ada_iterate_over_symbols): Delete, move implementation to...
5543 (ada_language::iterate_over_symbols): ...here, a new member
5544 function, rewrite to use range based for loop.
5545 (ada_language_data): Delete la_iterate_over_symbols initializer.
5546 * c-lang.c (c_language_data): Likewise.
5547 (cplus_language_data): Likewise.
5548 (asm_language_data): Likewise.
5549 (minimal_language_data): Likewise.
5550 * d-lang.c (d_language_data): Likewise.
5551 * f-lang.c (f_language_data): Likewise.
5552 * go-lang.c (go_language_data): Likewise.
5553 * language.c (unknown_language_data): Likewise.
5554 (auto_language_data): Likewise.
5555 * language.h (language_data): Delete la_iterate_over_symbols field.
5556 (language_defn::iterate_over_symbols): New member function.
5557 (LA_ITERATE_OVER_SYMBOLS): Update.
5558 * linespec.c (iterate_over_all_matching_symtabs): Update.
5559 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5560 initializer.
5561 * objc-lang.c (objc_language_data): Likewise.
5562 * opencl-lang.c (opencl_language_data): Likewise.
5563 * p-lang.c (pascal_language_data): Likewise.
5564 * rust-lang.c (rust_language_data): Likewise.
5565
54f4ca46
AB
55662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5567
5568 * ada-lang.c (ada_language_data): Delete
5569 la_lookup_transparent_type initializer.
5570 * c-lang.c (c_language_data): Likewise.
5571 (cplus_language_data): Likewise.
5572 (cplus_language::lookup_transparent_type): New member function.
5573 (asm_language_data): Delete la_lookup_transparent_type
5574 initializer.
5575 (minimal_language_data): Likewise.
5576 * d-lang.c (d_language_data): Likewise.
5577 * f-lang.c (f_language_data): Likewise.
5578 * go-lang.c (go_language_data): Likewise.
5579 * language.c (unknown_language_data): Likewise.
5580 (auto_language_data): Likewise.
5581 * language.h (struct language_data): Delete
5582 la_lookup_transparent_type field.
5583 (language_defn::lookup_transparent_type): New member function.
5584 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5585 initializer.
5586 * objc-lang.c (objc_language_data): Likewise.
5587 * opencl-lang.c (opencl_language_data): Likewise.
5588 * p-lang.c (pascal_language_data): Likewise.
5589 * rust-lang.c (rust_language_data): Likewise.
5590 * symtab.c (symbol_matches_domain): Update call.
5591
1fb314aa
AB
55922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5593
5594 * ada-lang.c (ada_language_arch_info): Delete function, move
5595 implementation to...
5596 (ada_language::language_arch_info): ...here, a new member
5597 function.
5598 (ada_language_data): Delete la_language_arch_info.
5599 * c-lang.c (c_language_data): Likewise.
5600 (c_language::language_arch_info): New member function.
5601 (cplus_language_arch_info): Delete function, move
5602 implementation to...
5603 (cplus_language::language_arch_info): ...here, a new member
5604 function.
5605 (cplus_language_data): Delete la_language_arch_info.
5606 (asm_language_data): Likewise.
5607 (asm_language::language_arch_info): New member function.
5608 (minimal_language_data): Delete la_language_arch_info.
5609 (minimal_language::language_arch_info): New member function.
5610 * d-lang.c (d_language_arch_info): Delete function, move
5611 implementation to...
5612 (d_language::language_arch_info): ...here, a new member
5613 function.
5614 (d_language_data): Delete la_language_arch_info.
5615 * f-lang.c (f_language_arch_info): Delete function, move
5616 implementation to...
5617 (f_language::language_arch_info): ...here, a new member
5618 function.
5619 (f_language_data): Delete la_language_arch_info.
5620 * go-lang.c (go_language_arch_info): Delete function, move
5621 implementation to...
5622 (go_language::language_arch_info): ...here, a new member
5623 function.
5624 (go_language_data): Delete la_language_arch_info.
5625 * language.c (unknown_language_data): Likewise.
5626 (unknown_language::language_arch_info): New member function.
5627 (auto_language_data): Delete la_language_arch_info.
5628 (auto_language::language_arch_info): New member function.
5629 (language_gdbarch_post_init): Update call to
5630 la_language_arch_info.
5631 * language.h (language_data): Delete la_language_arch_info
5632 function pointer.
5633 (language_defn::language_arch_info): New function.
5634 * m2-lang.c (m2_language_arch_info): Delete function, move
5635 implementation to...
5636 (m2_language::language_arch_info): ...here, a new member
5637 function.
5638 (m2_language_data): Delete la_language_arch_info.
5639 * objc-lang.c (objc_language_arch_info): Delete function, move
5640 implementation to...
5641 (objc_language::language_arch_info): ...here, a new member
5642 function.
5643 (objc_language_data): Delete la_language_arch_info.
5644 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5645 implementation to...
5646 (opencl_language::language_arch_info): ...here, a new member
5647 function.
5648 (opencl_language_data): Delete la_language_arch_info.
5649 * p-lang.c (pascal_language_arch_info): Delete function, move
5650 implementation to...
5651 (pascal_language::language_arch_info): ...here, a new member
5652 function.
5653 (pascal_language_data): Delete la_language_arch_info.
5654 * rust-lang.c (rust_language_arch_info): Delete function, move
5655 implementation to...
5656 (rust_language::language_arch_info): ...here, a new member
5657 function.
5658 (rust_language_data): Delete la_language_arch_info.
5659
48448202
AB
56602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5661
5662 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5663 initializer.
5664 * c-lang.c (c_language_data): Likewise.
5665 (cplus_language_data): Likewise.
5666 (cplus_language::pass_by_reference_info): New method.
5667 (asm_language_data): Delete la_pass_by_reference initializer.
5668 (minimal_language_data): Likewise.
5669 * cp-abi.c (cp_pass_by_reference): Remove use of
5670 default_pass_by_reference.
5671 * d-lang.c (d_language_data): Likewise.
5672 * f-lang.c (f_language_data): Likewise.
5673 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5674 default_pass_by_reference.
5675 * go-lang.c (go_language_data): Likewise.
5676 * language.c (language_pass_by_reference): Update.
5677 (default_pass_by_reference): Delete.
5678 (unknown_language_data): Delete la_pass_by_reference
5679 initializer.
5680 (auto_language_data): Likewise.
5681 * language.h (struct language_data): Delete la_pass_by_reference
5682 field.
5683 (language_defn::pass_by_reference_info): New member function.
5684 (default_pass_by_reference): Delete declaration.
5685 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5686 initializer.
5687 * objc-lang.c (objc_language_data): Likewise.
5688 * opencl-lang.c (opencl_language_data): Likewise.
5689 * p-lang.c (pascal_language_data): Likewise.
5690 * rust-lang.c (rust_language_data): Likewise.
5691
15e5fd35
AB
56922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5693
5694 * ada-lang.c (ada_read_var_value): Delete function, move
5695 implementation to...
5696 (ada_language::read_var_value): ...here.
5697 (ada_language_data): Delete la_read_var_value initializer.
5698 * c-lang.c (c_language_data): Likewise.
5699 (cplus_language_data): Likewise.
5700 (minimal_language_data): Likewise.
5701 * d-lang.c (d_language_data): Likewise.
5702 * f-lang.c (f_language_data): Likewise.
5703 * findvar.c (default_read_var_value): Rename to...
5704 (language_defn::read_var_value): ...this.
5705 * findvar.c (read_var_value): Update header comment, and change to
5706 call member function instead of function pointer.
5707 * go-lang.c (go_language_data): Likewise.
5708 * language.c (unknown_language_data): Delete la_read_var_value
5709 initializer.
5710 (auto_language_data): Likewise.
5711 * language.h (struct language_data): Delete la_read_var_value
5712 field.
5713 (language_defn::read_var_value): New member function.
5714 (default_read_var_value): Delete declaration.
5715 * m2-lang.c (m2_language_data): Delete la_read_var_value
5716 initializer.
5717 * objc-lang.c (objc_language_data): Likewise.
5718 * opencl-lang.c (opencl_language_data): Likewise.
5719 * p-lang.c (pascal_language_data): Likewise.
5720 * rust-lang.c (rust_language_data): Likewise.
5721 * value.h (default_read_var_value): Delete declaration.
5722
5bd40f2a
AB
57232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5724
5725 * ada-lang.c (ada_print_array_index): Delete function, move
5726 implementation to...
5727 (ada_language::print_array_index): ...here.
5728 (ada_language_data): Delete la_print_array_index initializer.
5729 * c-lang.c (c_language_data): Likewise.
5730 (cplus_language_data): Likewise.
5731 (minimal_language_data): Likewise.
5732 * d-lang.c (d_language_data): Likewise.
5733 * f-lang.c (f_language_data): Likewise.
5734 * go-lang.c (go_language_data): Likewise.
5735 * language.c (default_print_array_index): Delete function, move
5736 implementation to...
5737 (language_defn::print_array_index): ...here.
5738 (unknown_language_data): Delete la_print_array_index initializer.
5739 (auto_language_data): Likewise.
5740 * language.h (struct language_data): Delete la_print_array_index
5741 field.
5742 (language_defn::print_array_index): New member function.
5743 (LA_PRINT_ARRAY_INDEX): Update.
5744 (default_print_array_index): Delete declaration.
5745 * m2-lang.c (m2_language_data): Delete la_print_array_index
5746 initializer.
5747 * objc-lang.c (objc_language_data): Likewise.
5748 * opencl-lang.c (opencl_language_data): Likewise.
5749 * p-lang.c (pascal_language_data): Likewise.
5750 * rust-lang.c (rust_language_data): Likewise.
5751
0874fd07
AB
57522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5753
5754 * gdb/ada-lang.c (ada_language_defn): Convert to...
5755 (ada_language_data): ...this.
5756 (class ada_language): New class.
5757 (ada_language_defn): New static global.
5758 * gdb/c-lang.c (c_language_defn): Convert to...
5759 (c_language_data): ...this.
5760 (class c_language): New class.
5761 (c_language_defn): New static global.
5762 (cplus_language_defn): Convert to...
5763 (cplus_language_data): ...this.
5764 (class cplus_language): New class.
5765 (cplus_language_defn): New static global.
5766 (asm_language_defn): Convert to...
5767 (asm_language_data): ...this.
5768 (class asm_language): New class.
5769 (asm_language_defn): New static global.
5770 (minimal_language_defn): Convert to...
5771 (minimal_language_data): ...this.
5772 (class minimal_language): New class.
5773 (minimal_language_defn): New static global.
5774 * gdb/d-lang.c (d_language_defn): Convert to...
5775 (d_language_data): ...this.
5776 (class d_language): New class.
5777 (d_language_defn): New static global.
5778 * gdb/f-lang.c (f_language_defn): Convert to...
5779 (f_language_data): ...this.
5780 (class f_language): New class.
5781 (f_language_defn): New static global.
5782 * gdb/go-lang.c (go_language_defn): Convert to...
5783 (go_language_data): ...this.
5784 (class go_language): New class.
5785 (go_language_defn): New static global.
5786 * gdb/language.c (unknown_language_defn): Remove declaration.
5787 (current_language): Initialize to nullptr, real initialization is
5788 moved to _initialize_language.
5789 (languages): Delete global.
5790 (language_defn::languages): Define.
5791 (set_language_command): Use language_defn::languages.
5792 (set_language): Likewise.
5793 (range_error): Likewise.
5794 (language_enum): Likewise.
5795 (language_def): Likewise.
5796 (add_set_language_command): Use language_def::languages for the
5797 language list, and language_def to lookup language pointers.
5798 (skip_language_trampoline): Use language_defn::languages.
5799 (unknown_language_defn): Convert to...
5800 (unknown_language_data): ...this.
5801 (class unknown_language): New class.
5802 (unknown_language_defn): New static global.
5803 (auto_language_defn): Convert to...
5804 (auto_language_data): ...this.
5805 (class auto_language): New class.
5806 (auto_language_defn): New static global.
5807 (language_gdbarch_post_init): Use language_defn::languages.
5808 (_initialize_language): Initialize current_language.
5809 * gdb/language.h (struct language_defn): Rename to...
5810 (struct language_data): ...this.
5811 (struct language_defn): New.
5812 (auto_language_defn): Delete.
5813 (unknown_language_defn): Delete.
5814 (minimal_language_defn): Delete.
5815 (ada_language_defn): Delete.
5816 (asm_language_defn): Delete.
5817 (c_language_defn): Delete.
5818 (cplus_language_defn): Delete.
5819 (d_language_defn): Delete.
5820 (f_language_defn): Delete.
5821 (go_language_defn): Delete.
5822 (m2_language_defn): Delete.
5823 (objc_language_defn): Delete.
5824 (opencl_language_defn): Delete.
5825 (pascal_language_defn): Delete.
5826 (rust_language_defn): Delete.
5827 * gdb/m2-lang.c (m2_language_defn): Convert to...
5828 (m2_language_data): ...this.
5829 (class m2_language): New class.
5830 (m2_language_defn): New static global.
5831 * gdb/objc-lang.c (objc_language_defn): Convert to...
5832 (objc_language_data): ...this.
5833 (class objc_language): New class.
5834 (objc_language_defn): New static global.
5835 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5836 (opencl_language_data): ...this.
5837 (class opencl_language): New class.
5838 (opencl_language_defn): New static global.
5839 * gdb/p-lang.c (pascal_language_defn): Convert to...
5840 (pascal_language_data): ...this.
5841 (class pascal_language): New class.
5842 (pascal_language_defn): New static global.
5843 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5844 language pointer, update comment format.
5845 * gdb/rust-lang.c (rust_language_defn): Convert to...
5846 (rust_language_data): ...this.
5847 (class rust_language): New class.
5848 (rust_language_defn): New static global.
5849
1313c56e
AB
58502020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5851
5852 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5853 member variable.
5854 <m_stmt_at_address>: New member variable.
5855 (lnp_state_machine::record_line): Don't record some lines, update
5856 tracking of is_stmt at the same address.
5857 (lnp_state_machine::lnp_state_machine): Initialise new member
5858 variables.
5859
b7ed9f3d
ST
58602020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5861
5862 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5863 "-include gnu-nat-mig.h".
5864 * gnu-nat-mig.h: New file.
5865 * gnu-nat.c: Include "gnu-nat-mig.h".
5866 (exc_server, msg_reply_server, notify_server,
5867 process_reply_server): Remove declarations.
5868
14a8ad62
ST
58692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5870
5871 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5872 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5873 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5874 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5875 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5876 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5877 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5878 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5879 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5880 to gnu_nat_target class.
5881 * gnu-nat.c: Likewise.
5882 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5883 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5884 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5885 object.
5886 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5887 instead of `gnu_target'.
5888
0af5e106
ST
58892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5890
5891 * i386-gnu-tdep.c: Include "gdbcore.h"
5892 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5893 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5894 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5895 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5896 i386_gnu_sigcontext_addr): New functions
5897 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5898 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5899 tdep.
5900
078f2fc9
ST
59012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5902
5903 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5904 before fork_inferior call. Avoid calling it if target_is_pushed returns
5905 true.
5906
53dff92c
ST
59072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5908
5909 * gnu-nat.h (gnu_target): New variable declaration.
5910 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5911 gnu_target.
5912 * gnu-nat.c (gnu_target): New variable.
5913 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5914 add_thread_silent, and add_thread calls.
5915 (gnu_nat_target::create_inferior): Pass gnu_target to
5916 add_thread_silent, thread_change_ptid call.
5917 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5918 call.
5919
5a8b8627
ST
59202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5921
5922 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5923 (gnu_nat_target::find_memory_regions): Remove unused
5924 `old_address' variable.
5925
366f550a
ST
59262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5927
5928 * gnu-nat.c: Include "gdbarch.h".
5929
f14871bf
ST
59302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5931
5932 * reply_mig_hack.awk (Error return): Cast function through
5933 void *, to bypass compiler function call check.
5934
c6887cfb
ST
59352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5936
5937 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5938 $(srcdir)/reply_mig_hack.awk.
5939
6930bffe
ST
59402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5941
5942 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5943
112c22ed
JG
59442020-05-30 Jonny Grant <jg@jguk.org>
5945
5946 * configure.ac (ACX_BUGURL): change bug URL to https.
5947
f68f85b5
PA
59482020-05-30 Pedro Alves <palves@redhat.com>
5949
5950 * cp-support.c (replace_typedefs_template): New.
5951 (replace_typedefs_qualified_name): Handle
5952 DEMANGLE_COMPONENT_TEMPLATE.
5953
976ca316
SM
59542020-05-29 Simon Marchi <simon.marchi@efficios.com>
5955
5956 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5957 dwarf2/index-cache.h, dwarf2/index-write.c,
5958 dwarf2/index-write.h, dwarf2/line-header.c,
5959 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5960 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5961 variables and fields from `dwarf2_per_objfile` to just
5962 `per_objfile` throughout.
5963
989ade05
SM
59642020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5965
5966 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5967 <push_dwarf_reg_entry_value>: Add comment.
5968
c47bae85
KB
59692020-05-28 Kevin Buettner <kevinb@redhat.com>
5970 Keith Seitz <keiths@redhat.com>
5971
5972 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5973 instead of PyEval_ReleaseLock.
5974 (class gdbpy_gil): Move to earlier in file.
5975 (finalize_python): Set gdb_python_initialized.
5976 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5977 when not initialized.
5978
44486dcf
SM
59792020-05-28 Simon Marchi <simon.marchi@efficios.com>
5980
5981 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5982 <push_dwarf_reg_entry_value>: Remove assert. Override
5983 per_objfile with caller_per_objfile.
5984
f030440d
TV
59852020-05-28 Tom de Vries <tdevries@suse.de>
5986
5987 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5988 PR gold/15646 workaround to symbol kind "type".
5989
f0fbb768
TT
59902020-05-27 Tom Tromey <tromey@adacore.com>
5991
5992 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5993
af0b2a3e
TT
59942020-05-27 Tom Tromey <tromey@adacore.com>
5995
5996 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5997 Use htab_find_with_hash.
5998 <add_abbrev>: Remove "abbrev_number" parameter.
5999 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6000 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6001 (hash_abbrev): Add comment.
6002 (abbrev_table::lookup_abbrev): Move to header file.
6003 (abbrev_table::read): Update.
6004
7d00ffec
TT
60052020-05-27 Tom Tromey <tromey@adacore.com>
6006
6007 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6008 method.
6009 <canonical_name>: New member.
6010 <raw_name>: Rename from "name".
6011 (partial_die_info): Initialize canonical_name.
6012 (scan_partial_symbols): Check raw_name.
6013 (partial_die_parent_scope, partial_die_full_name)
6014 (add_partial_symbol, add_partial_subprogram)
6015 (add_partial_enumeration, load_partial_dies): Use "name" method.
6016 (partial_die_info::name): New method.
6017 (partial_die_info::read, guess_partial_die_structure_name)
6018 (partial_die_info::fixup): Update.
6019
697bba18
TT
60202020-05-27 Tom Tromey <tromey@adacore.com>
6021
6022 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6023 <get_ref_die_offset>: Inline.
6024 <get_ref_die_offset_complaint>: New method.
6025 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6026 (attribute::get_ref_die_offset_complaint): Rename from
6027 get_ref_die_offset. Just issue complaint.
6028
c17ace43
HD
60292020-05-27 Hannes Domani <ssbssa@yahoo.de>
6030
6031 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6032
96445f0b
HD
60332020-05-27 Hannes Domani <ssbssa@yahoo.de>
6034
6035 * exec.c (exec_file_attach): Use errno value of first openp failure.
6036
ac637ec3
HD
60372020-05-27 Hannes Domani <ssbssa@yahoo.de>
6038
6039 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6040 Don't close thread handle.
6041
17ee85fc
TT
60422020-05-27 Tom Tromey <tom@tromey.com>
6043 Simon Marchi <simon.marchi@efficios.com>
6044
6045 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6046 shared_ptr.
6047 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6048 member.
6049 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6050 dwarf2_per_bfd_objfile_data_key>: New globals.
6051 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6052 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6053 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6054 shared.
6055 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6056 short-circuit when sharing.
6057 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6058 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6059
39b16f87
SM
60602020-05-27 Simon Marchi <simon.marchi@efficios.com>
6061
6062 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6063 to...
6064 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6065 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6066
fcf23d5b
SM
60672020-05-27 Simon Marchi <simon.marchi@efficios.com>
6068
6069 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6070 build_name_components, find_name_components_bounds>:
6071 Add per_objfile parameter.
6072 (struct mapped_index) <symbol_name_at>: Likewise.
6073 (struct mapped_debug_names): Remove constructor.
6074 <dwarf2_per_objfile>: Remove field.
6075 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6076 (mapped_index_base::find_name_components_bounds,
6077 mapped_index_base::build_name_components,
6078 dw2_expand_symtabs_matching_symbol): Likewise.
6079 (class mock_mapped_index) <symbol_name_at>: Likewise.
6080 (check_match): Likewise.
6081 (check_find_bounds_finds): Likewise.
6082 (test_mapped_index_find_name_component_bounds): Update.
6083 (CHECK_MATCH): Update.
6084 (dw2_expand_symtabs_matching): Update.
6085 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6086 per_objfile parameter.
6087 <find_vec_in_debug_names>: Likewise.
6088 <m_per_objfile>: New field.
6089 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6090 parameter.
6091 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6092 (dw2_debug_names_iterator::next): Update.
6093 (dw2_debug_names_lookup_symbol): Update.
6094 (dw2_debug_names_expand_symtabs_for_function): Update.
6095 (dw2_debug_names_map_matching_symbols): Update.
6096 (dw2_debug_names_expand_symtabs_matching): Update.
6097 (dwarf2_read_debug_names): Update.
6098
7188ed02
SM
60992020-05-27 Simon Marchi <simon.marchi@efficios.com>
6100
6101 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6102 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6103 move to dwarf2_per_objfile.
6104 <read_in_chain>: Remove.
6105 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6106 remove_all_cus, age_comp_units>: New methods.
6107 <m_dwarf2_cus>: New member.
6108 (struct dwarf2_per_cu_data) <cu>: Remove.
6109 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6110 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6111 moved to methods of dwarf2_per_objfile.
6112 (dwarf2_clear_marks): Remove.
6113 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6114 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6115 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6116 (dwarf2_per_objfile::remove_all_cus): New.
6117 (class free_cached_comp_units) <~free_cached_comp_units>:
6118 Update.
6119 (load_cu): Update.
6120 (dw2_do_instantiate_symtab): Adjust.
6121 (fill_in_sig_entry_from_dwo_entry): Adjust.
6122 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6123 (cutu_reader::cutu_reader): Likewise.
6124 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6125 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6126 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6127 and dwarf2_per_objfile::age_comp_units.
6128 (load_partial_comp_unit): Update.
6129 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6130 (process_queue): Likewise.
6131 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6132 backlink.
6133 (dwarf2_read_addr_index): Likewise.
6134 (follow_die_offset): Likewise.
6135 (dwarf2_fetch_die_loc_sect_off): Likewise.
6136 (dwarf2_fetch_constant_bytes): Likewise.
6137 (dwarf2_fetch_die_type_sect_off): Likewise.
6138 (follow_die_sig_1): Likewise.
6139 (load_full_type_unit): Likewise.
6140 (read_signatured_type): Likewise.
6141 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6142 (dwarf2_cu::~dwarf2_cu): Remove.
6143 (dwarf2_per_objfile::get_cu): New.
6144 (dwarf2_per_objfile::set_cu): New.
6145 (age_cached_comp_units): Rename to...
6146 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6147 to std::unordered_map.
6148 (free_one_cached_comp_unit): Rename to...
6149 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6150 to std::unordered_map.
6151 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6152 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6153 a dwarf2_per_objfile in data.
6154 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6155 (dwarf2_clear_marks): Remove.
6156
2e671100
SM
61572020-05-27 Simon Marchi <simon.marchi@efficios.com>
6158
6159 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6160 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6161 (init_tu_and_read_dwo_dies): Likewise.
6162 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6163 (cutu_reader::cutu_reader): Likewise.
6164 (load_partial_comp_unit): Likewise.
6165 (process_psymtab_comp_unit): Update.
6166 (build_type_psymtabs_1): Update.
6167 (process_skeletonless_type_unit): Update.
6168 (load_full_comp_unit): Update.
6169 (find_partial_die): Update.
6170 (dwarf2_read_addr_index): Update.
6171 (read_signatured_type): Update.
6172
2e6a9f79
SM
61732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6174
6175 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6176 m_header_read_in>: New fields.
6177 <get_header>: New method.
6178 * dwarf2/read.c (per_cu_header_read_in): Remove.
6179 (dwarf2_per_cu_data::get_header): New.
6180 (dwarf2_per_cu_data::addr_size): Update.
6181 (dwarf2_per_cu_data::offset_size): Update.
6182 (dwarf2_per_cu_data::ref_addr_size): Update.
6183
1b555f17
SM
61842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6185
6186 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6187 (dw2_do_instantiate_symtab): Update.
6188 (queue_and_load_all_dwo_tus): Change parameter from
6189 dwarf2_per_cu_data to dwarf2_cu.
6190 (dwarf2_fetch_die_loc_sect_off): Update.
6191 (dwarf2_fetch_constant_bytes): Update.
6192 (dwarf2_fetch_die_type_sect_off): Update.
6193
8fc0b21d
SM
61942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6195
6196 * dwarf2/read.c (process_full_comp_unit,
6197 process_full_type_unit): Remove per_cu, per_objfile paramters.
6198 Add dwarf2_cu parameter.
6199 (process_queue): Update.
6200
168c9250
SM
62012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6202
6203 * dwarf2/read.c (create_cu_from_index_list): Replace
6204 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6205 (create_cus_from_index_list): Likewise.
6206 (create_cus_from_index): Likewise.
6207 (create_signatured_type_table_from_index): Likewise.
6208 (create_cus_from_debug_names_list): Likewise.
6209 (create_cus_from_debug_names): Likewise.
6210 (dwarf2_read_gdb_index): Update.
6211 (dwarf2_read_debug_names): Update.
6212
e286671b
TT
62132020-05-27 Tom Tromey <tom@tromey.com>
6214 Simon Marchi <simon.marchi@efficios.com>
6215
6216 * dwarf2/read.h (struct dwarf2_per_objfile)
6217 <get_type_for_signatured_type, set_type_for_signatured_type>:
6218 New methods.
6219 <m_type_map>: New member.
6220 (struct signatured_type) <type>: Remove.
6221 * dwarf2/read.c
6222 (dwarf2_per_objfile::get_type_for_signatured_type,
6223 dwarf2_per_objfile::set_type_for_signatured_type): New.
6224 (get_signatured_type): Use new methods.
6225
8adb8487
TT
62262020-05-27 Tom Tromey <tom@tromey.com>
6227 Simon Marchi <simon.marchi@efficios.com>
6228
6229 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6230 (struct dwarf2_per_objfile) <type_units>: New member.
6231 <get_type_unit_group_unshareable>: New method.
6232 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6233 num_symtabs, symtabs>: Remove; move to
6234 type_unit_group_unshareable.
6235 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6236 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6237 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6238
127bbf4b
SM
62392020-05-27 Simon Marchi <simon.marchi@efficios.com>
6240
6241 * dwarf2/read.h (struct dwarf2_per_cu_data):
6242 <dwarf2_per_objfile>: Remove.
6243 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6244 dwarf2_per_objfile.
6245 (create_signatured_type_table_from_index): Likewise.
6246 (create_signatured_type_table_from_debug_names): Likewise.
6247 (create_debug_type_hash_table): Likewise.
6248 (fill_in_sig_entry_from_dwo_entry): Likewise.
6249 (create_type_unit_group): Likewise.
6250 (read_comp_units_from_section): Likewise.
6251 (create_cus_hash_table): Likewise.
6252
f6e649dd
SM
62532020-05-27 Simon Marchi <simon.marchi@efficios.com>
6254
6255 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6256 dwarf2_per_cu_data::dwarf2_per_objfile.
6257 (compute_compunit_symtab_includes): Likewise.
6258 (dwarf2_cu::start_symtab): Likewise.
6259
aa66c379
SM
62602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6261
6262 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6263 parameter.
6264 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6265 (read_namespace_alias): Update.
6266 (lookup_die_type): Update.
6267 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6268 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6269 Update.
6270 (disassemble_dwarf_expression): Update.
6271
120ce1b5
SM
62722020-05-27 Simon Marchi <simon.marchi@efficios.com>
6273
6274 * dwarf2/read.h (struct dwarf2_queue_item): Add
6275 dwarf2_per_objfile parameter, assign new parameter.
6276 <per_objfile>: New field.
6277 * dwarf2/read.c (free_one_cached_comp_unit): Add
6278 dwarf2_per_objfile parameter.
6279 (queue_comp_unit): Likewise.
6280 (dw2_do_instantiate_symtab): Update.
6281 (process_psymtab_comp_unit): Update.
6282 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6283 (process_imported_unit_die): Update.
6284 (queue_and_load_dwo_tu): Update.
6285 (follow_die_offset): Update.
6286 (follow_die_sig_1): Update.
6287
9f47c707
SM
62882020-05-27 Simon Marchi <simon.marchi@efficios.com>
6289
6290 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6291 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6292 (read_call_site_scope): Assign per_objfile.
6293 (dwarf2_per_cu_data::objfile): Remove.
6294 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6295 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6296 dwarf2_per_objfile parameter.
6297 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6298 dwarf2_per_objfile parameter.
6299 (dwarf_expr_reg_to_entry_parameter): Add output
6300 dwarf2_per_objfile parameter.
6301 (locexpr_get_frame_base): Update.
6302 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6303 <push_dwarf_reg_entry_value>: Update.
6304 <call_site_to_target_addr>: Update.
6305 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6306 parameter.
6307 (value_of_dwarf_reg_entry): Update.
6308 (rw_pieced_value): Update.
6309 (indirect_synthetic_pointer): Update.
6310 (dwarf2_evaluate_property): Update.
6311 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6312 parameter.
6313 (locexpr_read_variable): Update.
6314 (locexpr_get_symbol_read_needs): Update.
6315 (loclist_read_variable): Update.
6316
14095eb3
SM
63172020-05-27 Simon Marchi <simon.marchi@efficios.com>
6318
6319 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6320 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6321 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6322 parameter.
6323 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6324 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6325 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6326 parameter.
6327 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6328 sect_variable_value): Add dwarf2_per_objfile parameter.
6329 (class dwarf_evaluate_loc_desc) <dwarf_call,
6330 dwarf_variable_value>: Update.
6331 (fetch_const_value_from_synthetic_pointer): Add
6332 dwarf2_per_objfile parameter.
6333 (fetch_const_value_from_synthetic_pointer): Update.
6334 (coerced_pieced_ref): Update.
6335 (class symbol_needs_eval_context) <dwarf_call,
6336 dwarf_variable_value>: Update.
6337 (dwarf2_compile_expr_to_ax): Update.
6338
3c3cd3d4
SM
63392020-05-27 Simon Marchi <simon.marchi@efficios.com>
6340
6341 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6342 parameter.
6343 (dwarf2_evaluate_loc_desc_full): Update.
6344
82ca3f51
SM
63452020-05-27 Simon Marchi <simon.marchi@efficios.com>
6346
6347 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6348 parameter.
6349 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6350 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6351 dwarf2_per_objfile parameter.
6352 (decode_debug_loc_dwo_addresses): Likewise.
6353 (dwarf2_find_location_expression): Update.
6354 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6355 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6356 parameter.
6357 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6358 parameter.
6359 (locexpr_describe_location_1): Likewise.
6360 (locexpr_describe_location): Update.
6361
4b167ea1
SM
63622020-05-27 Simon Marchi <simon.marchi@efficios.com>
6363
6364 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6365 Remove.
6366 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6367 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6368 (dwarf2_compile_property_to_c): Update.
6369 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6370 use text offset from objfile.
6371 (locexpr_tracepoint_var_ref): Update.
6372 (locexpr_generate_c_location): Update.
6373 (loclist_describe_location): Update.
6374 (loclist_tracepoint_var_ref): Update.
6375 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6376 dwarf2_per_objfile parameter.
6377 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6378 use text offset from objfile.
6379 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6380
89b07335
SM
63812020-05-27 Simon Marchi <simon.marchi@efficios.com>
6382
6383 * dwarf2/expr.h (struct dwarf_expr_context)
6384 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6385 <offset>: Remove.
6386 <per_objfile>: New member.
6387 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6388 dwarf2_per_objfile parameter. Don't set offset, set
6389 per_objfile.
6390 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6391 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6392 a dwarf2_per_objfile object instead of an offset.
6393 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6394 constructor.
6395 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6396 to dwarf2_expr_executor constructor. Don't set offset.
6397 (dwarf2_fetch_cfa_info): Update.
6398 (struct dwarf2_frame_cache) <text_offset>: Remove.
6399 <per_objfile>: New field.
6400 (dwarf2_frame_cache): Update.
6401 (dwarf2_frame_prev_register): Update.
6402 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6403 <dwarf_evaluate_loc_desc>: Add constructor.
6404 (dwarf2_evaluate_loc_desc_full): Update.
6405 (dwarf2_locexpr_baton_eval): Update.
6406 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6407 Add constructor.
6408 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6409
293e7e51
SM
64102020-05-27 Simon Marchi <simon.marchi@efficios.com>
6411
6412 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6413 addr_sized_int_type>: Move to dwarf2_cu.
6414 <int_type>: Move to dwarf2_per_objfile.
6415 (struct dwarf2_per_objfile) <int_type>: Move here.
6416 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6417 addr_sized_int_type>: Move here.
6418 (read_func_scope): Update.
6419 (read_array_type): Update.
6420 (read_tag_string_type): Update.
6421 (attr_to_dynamic_prop): Update.
6422 (dwarf2_per_cu_data::int_type): Rename to...
6423 (dwarf2_per_objfile::int_type): ... this.
6424 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6425 (dwarf2_cu::addr_sized_int_type): ... this.
6426 (read_subrange_type): Update.
6427 (dwarf2_per_cu_data::addr_type): Rename to...
6428 (dwarf2_cu::addr_type): ... this.
6429 (set_die_type): Update.
6430
64874a40
SM
64312020-05-27 Simon Marchi <simon.marchi@efficios.com>
6432
6433 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6434 data through per_cu->cu.
6435
4ab09049
SM
64362020-05-27 Simon Marchi <simon.marchi@efficios.com>
6437
6438 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6439 dwarf2_per_cu_data parameter fo dwarf2_cu.
6440 (lookup_dwo_type_unit): Likewise.
6441 (read_cutu_die_from_dwo): Likewise.
6442 (lookup_dwo_unit): Likewise.
6443 (open_and_init_dwo_file): Likewise.
6444 (lookup_dwo_cutu): Likewise.
6445 (lookup_dwo_comp_unit): Likewise.
6446 (lookup_dwo_type_unit): Likewise.
6447 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6448 (cutu_reader::cutu_reader): Update.
6449
47b14e86
SM
64502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6451
6452 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6453 parameter.
6454 (process_full_type_unit): Likewise.
6455 (process_queue): Update.
6456
43182c09
SM
64572020-05-27 Simon Marchi <simon.marchi@efficios.com>
6458
6459 * dwarf2/read.c (recursively_compute_inclusions): Add
6460 dwarf2_per_objfile parameter.
6461 (compute_compunit_symtab_includes): Likewise.
6462 (process_cu_includes): Update.
6463
7aa104c4
SM
64642020-05-27 Simon Marchi <simon.marchi@efficios.com>
6465
6466 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6467 parameter.
6468 (create_type_unit_group): Update.
6469 (process_psymtab_comp_unit_reader): Update.
6470 (build_type_psymtabs_reader): Update.
6471
e3beb21d
SM
64722020-05-27 Simon Marchi <simon.marchi@efficios.com>
6473
6474 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6475 object through m_this_cu->cu.
6476
d460f660
SM
64772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6478
6479 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6480 the info parameter.
6481 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6482
ab432490
SM
64832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6484
6485 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6486 per_objfile parameter.
6487 (load_full_type_unit): Add per_objfile parameter.
6488 (read_signatured_type): Likewise.
6489 (load_full_comp_unit): Likewise.
6490 (load_cu): Likewise.
6491 (dw2_do_instantiate_symtab): Likewise.
6492 (dw2_get_file_names): Likewise.
6493 (dw2_map_symtabs_matching_filename): Update.
6494 (dw_expand_symtabs_matching_file_matcher): Update.
6495 (dw2_map_symbol_filenames): Update.
6496 (process_psymtab_comp_unit): Add per_objfile parameter.
6497 (build_type_psymtabs_1): Update.
6498 (process_skeletonless_type_unit): Update.
6499 (dwarf2_build_psymtabs_hard): Update.
6500 (load_partial_comp_unit): Add per_objfile parameter.
6501 (scan_partial_symbols): Update.
6502 (load_full_comp_unit): Add per_objfile parameter.
6503 (process_imported_unit_die): Update.
6504 (create_cus_hash_table): Update.
6505 (find_partial_die): Update.
6506 (dwarf2_read_addr_index): Update.
6507 (follow_die_offset): Update.
6508 (dwarf2_fetch_die_loc_sect_off): Update.
6509 (dwarf2_fetch_constant_bytes): Update.
6510 (dwarf2_fetch_die_type_sect_off): Update.
6511 (follow_die_sig_1): Update.
6512 (load_full_type_unit): Add per_objfile parameter.
6513 (read_signatured_type): Likewise.
6514
313bad1b
SM
65152020-05-27 Simon Marchi <simon.marchi@efficios.com>
6516
6517 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6518 of objfile_name.
6519
c3699833
SM
65202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6521
6522 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6523 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6524 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6525 field.
6526 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6527 (create_cus_from_index): Update.
6528 (dwarf2_read_gdb_index): Update.
6529 (create_cus_from_debug_names): Update.
6530 (dwarf2_read_debug_names): Update.
6531 (get_abbrev_section_for_cu): Update.
6532 (create_all_comp_units): Update.
6533 (read_attribute_value): Update.
6534 (get_debug_line_section): Update.
6535 * dwarf2/index-cache.c (index_cache::store): Update.
6536 * dwarf2/index-write.c (save_gdb_index_command): Update.
6537 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6538
1859c670
SM
65392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6540
6541 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6542 member.
6543 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6544 dwarf2_per_cu_data::per_bfd.
6545 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6546 (create_type_unit_group): Likewise.
6547 (queue_comp_unit): Remove reference to
6548 per_cu->dwarf2_per_objfile.
6549 (maybe_queue_comp_unit): Likewise.
6550 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6551 (create_cus_hash_table): Assign new field.
6552
5e22e966
SM
65532020-05-27 Simon Marchi <simon.marchi@efficios.com>
6554
6555 * dwarf2/read.c: Replace
6556 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6557 dwarf2_cu->per_objfile throughout.
6558
97a1449a
SM
65592020-05-27 Simon Marchi <simon.marchi@efficios.com>
6560
6561 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6562 parameter, don't use per_cu->dwarf2_per_objfile.
6563 (dw2_instantiate_symtab): Likewise.
6564 (dw2_find_last_source_symtab): Update.
6565 (dw2_map_expand_apply): Update.
6566 (dw2_lookup_symbol): Update.
6567 (dw2_expand_symtabs_for_function): Update.
6568 (dw2_expand_all_symtabs): Update.
6569 (dw2_expand_symtabs_with_fullname): Update.
6570 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6571 don't use per_cu->dwarf2_per_objfile.
6572 (dw2_expand_marked_cus): Update.
6573 (dw2_find_pc_sect_compunit_symtab): Update.
6574 (dw2_debug_names_lookup_symbol): Update.
6575 (dw2_debug_names_expand_symtabs_for_function): Update.
6576 (dw2_debug_names_map_matching_symbols): Update.
6577 (dwarf2_psymtab::expand_psymtab): Update.
6578
9e021579
SM
65792020-05-27 Simon Marchi <simon.marchi@efficios.com>
6580
6581 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6582 <per_objfile>: New member.
6583 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6584 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6585 call to dwarf2_cu.
6586 (cutu_reader::cutu_reader): Update.
6587 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6588
ae090bdb
SM
65892020-05-27 Simon Marchi <simon.marchi@efficios.com>
6590
6591 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6592 struct dwarf2_per_objfile.
6593 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6594 dwarf2_per_bfd.
6595 * dwarf2/read.c (set_die_type): Update.
6596 (get_die_type_at_offset): Update.
6597
af758d11
SM
65982020-05-27 Tom Tromey <tom@tromey.com>
6599 Simon Marchi <simon.marchi@efficios.com>
6600
6601 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6602 method.
6603 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6604 get_symtab, set_symtab>: New methods.
6605 <m_symtabs>: New field.
6606 (struct dwarf2_psymtab): Derive from partial_symtab.
6607 <readin_p, get_compunit_symtab>: Declare methods.
6608 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6609 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6610 New methods.
6611 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6612 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6613 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6614 (dw2_symtab_iter_next, dw2_print_stats)
6615 (dw2_expand_symtabs_with_fullname)
6616 (dw2_expand_symtabs_matching_one)
6617 (dw_expand_symtabs_matching_file_matcher)
6618 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6619 (dw2_debug_names_iterator::next)
6620 (dw2_debug_names_map_matching_symbols)
6621 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6622 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6623 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6624 New methods.
6625 (get_compunit_symtab, process_full_comp_unit)
6626 (process_full_type_unit): Update.
6627 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6628
5989a64e
SM
66292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6630
6631 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6632 then introduce a new dwarf2_per_objfile type.
6633 <read_line_string>: Move to the new dwarf2_per_objfile type.
6634 <objfile>: Likewise.
6635 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6636 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6637 dwarf2_per_objfile->per_bfd.
6638 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6639 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6640 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6641 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6642 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6643 (dwarf2_per_objfile::locate_sections): Rename to...
6644 (dwarf2_per_bfd::locate_sections): ... this.
6645 (dwarf2_per_objfile::get_cutu): Rename to...
6646 (dwarf2_per_bfd::get_cutu): ... this.
6647 (dwarf2_per_objfile::get_cu): Rename to...
6648 (dwarf2_per_bfd::get_cu): ... this.
6649 (dwarf2_per_objfile::get_tu): Rename to...
6650 (dwarf2_per_bfd::get_tu): ... this.
6651 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6652 (dwarf2_per_bfd::allocate_per_cu): ... this.
6653 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6654 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6655 (get_gdb_index_contents_ftype): Change parameter from
6656 dwarf2_per_objfile to dwarf2_per_bfd.
6657 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6658 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6659
a50264ba
TT
66602020-05-27 Tom Tromey <tom@tromey.com>
6661 Simon Marchi <simon.marchi@efficios.com>
6662
6663 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6664 (allocate_piece_closure): Set "per_objfile" member.
6665 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6666 (locexpr_describe_location, loclist_describe_location): Use new
6667 member.
6668 * dwarf2/read.c (read_call_site_scope)
6669 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6670 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6671 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6672 handle_data_member_location): Set per_objfile member.
6673 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6674 member.
6675 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6676
d3473f0c
TT
66772020-05-27 Tom Tromey <tom@tromey.com>
6678
6679 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6680 allocate_signatured_type>: Declare new methods.
6681 <m_num_psymtabs>: New member.
6682 (struct dwarf2_per_cu_data) <index>: New member.
6683 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6684 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6685 (create_cu_from_index_list): Use allocate_per_cu.
6686 (create_signatured_type_table_from_index)
6687 (create_signatured_type_table_from_debug_names)
6688 (create_debug_type_hash_table, add_type_unit)
6689 (read_comp_units_from_section): Use allocate_signatured_type.
6690
5717c425
TT
66912020-05-27 Tom Tromey <tom@tromey.com>
6692
6693 * psymtab.c (partial_map_expand_apply)
6694 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6695 (psym_lookup_global_symbol_language)
6696 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6697 (psym_print_stats, psym_expand_symtabs_for_function)
6698 (psym_map_symbol_filenames, psym_map_matching_symbols)
6699 (psym_expand_symtabs_matching)
6700 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6701 (maintenance_check_psymtabs): Update.
6702 * psympriv.h (struct partial_symtab) <readin_p,
6703 get_compunit_symtab>: Add objfile parameter.
6704 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6705 Likewise.
6706 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6707 get_compunit_symtab>: Likewise.
6708 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6709
45940949
TT
67102020-05-27 Tom Tromey <tom@tromey.com>
6711
6712 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6713 member.
6714 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6715 (create_cu_from_index_list)
6716 (create_signatured_type_table_from_index)
6717 (create_signatured_type_table_from_debug_names)
6718 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6719 (dwarf2_create_include_psymtab)
6720 (create_debug_type_hash_table, add_type_unit)
6721 (create_type_unit_group, read_comp_units_from_section)
6722 (dwarf2_compute_name, create_cus_hash_table)
6723 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6724 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6725 obstack.
6726 (dw2_get_real_path): Likewise. Change argument to
6727 dwarf2_per_objfile.
6728
f8c6d152
LM
67292020-05-27 Luis Machado <luis.machado@linaro.org>
6730
6731 PR tdep/26000
6732 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6733 for ldrd (immediate).
6734
e98d2e6d
PW
67352020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6736
6737 * command.h: Add comment giving the name of class_tui.
6738 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6739 create the fake command for the help for class_tui.
6740
53a47a3e
TT
67412020-05-26 Tom Tromey <tromey@adacore.com>
6742
6743 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6744 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6745 (val_atr): New function.
6746 (value_val_atr): Use it.
6747 * ada-valprint.c (print_optional_low_bound): Change low bound
6748 handling for enums.
6749 (val_print_packed_array_elements): Don't call discrete_position.
6750 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6751 discrete_position for enum types.
6752 * language.c (default_print_array_index): Change type.
6753 * language.h (struct language_defn) <la_print_array_index>: Add
6754 index_type parameter, change type of index_value.
6755 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6756 (default_print_array_index): Update.
6757 * valprint.c (maybe_print_array_index): Don't call
6758 value_from_longest. Update.
6759 (value_print_array_elements): Don't call discrete_position.
6760
0bc2354b
TT
67612020-05-26 Tom Tromey <tromey@adacore.com>
6762
6763 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6764 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6765
1218a4bf
CDA
67662020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6767
6768 PR gdb/13519
6769 * avr-tdep.c (avr_integer_to_address): Return data or code
6770 address accordingly to the second 'type' argument of the
6771 function.
6772
92651b1d
MW
67732020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6774
6775 * infcmd.c, inferior.h: (construct_inferior_arguments):
6776 Moved function from here to gdbsupport/common-inferior.{h,cc}
6777
0a4f5f8c
TT
67782020-05-23 Tom Tromey <tom@tromey.com>
6779
6780 Revert commit eca1f90c:
6781 * NEWS: Remove entry for completion styling.
6782 * completer.c (_rl_completion_prefix_display_length): Move
6783 declaration later.
6784 (gdb_fnprint): Revert.
6785 (gdb_display_match_list_1): Likewise.
6786 * cli/cli-style.c (completion_prefix_style)
6787 (completion_difference_style, completion_suffix_style): Remove.
6788 (_initialize_cli_style): Revert.
6789 * cli/cli-style.h (completion_prefix_style)
6790 (completion_difference_style, completion_suffix_style): Don't
6791 declare.
6792
e08bd6c5
PA
67932020-05-24 Pedro Alves <palves@redhat.com>
6794
6795 * symtab.c (completion_list_add_name): Return boolean indication
6796 of whether the symbol matched.
6797 (completion_list_add_symbol): Don't try to remove C++ aliases if
6798 the symbol didn't match in the first place.
6799 * symtab.h (completion_list_add_name): Return bool.
6800
ceacbf6e
SM
68012020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6802
6803 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6804 type::field.
6805
26f16254
JB
68062020-05-23 Joel Brobecker <brobecker@adacore.com>
6807
6808 GDB 9.2 released.
6809
eca1f90c
TT
68102020-05-23 Tom Tromey <tom@tromey.com>
6811
6812 * NEWS: Add entry for completion styling.
6813 * completer.c (_rl_completion_prefix_display_length): Move
6814 declaration earlier.
6815 (gdb_fnprint): Use completion_style.
6816 (gdb_display_match_list_1): Likewise.
6817 * cli/cli-style.c (completion_prefix_style)
6818 (completion_difference_style, completion_suffix_style): New
6819 globals.
6820 (_initialize_cli_style): Register new globals.
6821 * cli/cli-style.h (completion_prefix_style)
6822 (completion_difference_style, completion_suffix_style): Declare.
6823
51e2cfa2
PA
68242020-05-23 Pedro Alves <palves@redhat.com>
6825
6826 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6827 (parse_escape): Use ISDIGIT instead of isdigit.
6828 (puts_debug): Use gdb_isprint instead of isprint.
6829 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6830 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6831 ISSPACE instead of isspace.
6832 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6833 instead of isspace.
6834 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6835 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6836 instead of isxdigit and ISDIGIT instead of isdigit.
6837
80fc5e77
SM
68382020-05-22 Simon Marchi <simon.marchi@efficios.com>
6839
6840 * gdbtypes.h (struct type) <field>: New method.
6841 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6842 or type::field.
6843
3cabb6b0
SM
68442020-05-22 Simon Marchi <simon.marchi@efficios.com>
6845
6846 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6847 (TYPE_FIELDS): Use type::fields. Change all call sites that
6848 modify the propery to use type::set_fields instead.
6849
1f704f76
SM
68502020-05-22 Simon Marchi <simon.marchi@efficios.com>
6851
6852 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6853 type::num_fields instead.
6854
5e33d5f4
SM
68552020-05-22 Simon Marchi <simon.marchi@efficios.com>
6856
6857 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6858 methods.
6859 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6860 that modify the number of fields to use type::set_num_fields
6861 instead.
6862
9392ebb3
TT
68632020-05-22 Tom Tromey <tromey@adacore.com>
6864
6865 * compile/compile-object-load.h (munmap_list_free): Don't
6866 declare.
6867
7c13f4e8
AB
68682020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6869
6870 * annotate.c (annotate_source_line): Update return type, add call
6871 to update current symtab and line.
6872 * annotate.h (annotate_source_line): Update return type, and
6873 extend header comment.
6874 * source.c (info_line_command): Check annotation_level before
6875 calling annotate_source_line.
6876 * stack.c (print_frame_info): If calling annotate_source_line
6877 returns true, then don't print any other source line information.
6878
aa370940
SM
68792020-05-21 Simon Marchi <simon.marchi@efficios.com>
6880
6881 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6882
84d53fa9
SM
68832020-05-21 Simon Marchi <simon.marchi@efficios.com>
6884
6885 * coffread.c (patch_type): Remove NULL check before xfree.
6886 * corefile.c (set_gnutarget): Likewise.
6887 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6888 * exec.c (build_section_table): Likewise.
6889 * remote.c (remote_target::pass_signals): Likewise.
6890 * utils.c (n_spaces): Likewise.
6891 * cli/cli-script.c (document_command): Likewise.
6892 * i386-windows-tdep.c (core_process_module_section): Likewise.
6893 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6894
9d428aae
SM
68952020-05-20 Simon Marchi <simon.marchi@efficios.com>
6896
6897 * symfile.c (reread_symbols): Clear objfile's section_offsets
6898 vector and section indices, re-compute them by calling
6899 sym_offsets.
6900
250106a7
TT
69012020-05-20 Tom Tromey <tromey@adacore.com>
6902
6903 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6904 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6905
9a0bacfb
TV
69062020-05-20 Tom de Vries <tdevries@suse.de>
6907
6908 PR symtab/25833
6909 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6910
7b958a48
AM
69112020-05-20 Alan Modra <amodra@gmail.com>
6912
6913 PR 25993
6914 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6915 bfd_set_filename.
6916 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6917 passed to bfd_set_filename.
6918 * symfile-mem.c (add_vsyscall_page): Likewise for string
6919 passed to symbol_file_add_from_memory.
6920 (symbol_file_add_from_memory): Make name param a const char* and
6921 don't strdup.
6922
c7e97679
AM
69232020-05-20 Alan Modra <amodra@gmail.com>
6924
6925 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6926 rather than accessing bfd->filename directly.
6927 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6928 and use bfd_section_name.
6929 * dwarf2/frame.c (decode_frame_entry): Likewise.
6930 * exec.c (exec_set_section_address): Likewise.
6931 * solib-aix.c (solib_aix_bfd_open): Likewise.
6932 * stap-probe.c (get_stap_base_address): Likewise.
6933 * symfile.c (reread_symbols): Likewise.
6934
563c591b
TT
69352020-05-19 Tom Tromey <tromey@adacore.com>
6936
6937 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6938
f408d82c
SM
69392020-05-19 Simon Marchi <simon.marchi@efficios.com>
6940
6941 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6942
98c59b52
PA
69432020-05-19 Pedro Alves <palves@redhat.com>
6944
6945 * NEWS (set exec-file-mismatch): Adjust entry.
6946 * exec.c: Include "build-id.h".
6947 (validate_exec_file): Try to match build IDs instead of filenames.
6948 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6949 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6950 and pass down 'warn_if_slow'.
6951 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6952 gdb_bfd_open_closure to pass it down.
6953 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6954
4111f652
PA
69552020-05-19 Pedro Alves <palves@redhat.com>
6956
6957 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6958 * target.c (target_fileio_open_1): Rename to target_fileio_open
6959 and make extern. Use bool.
6960 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6961 (target_fileio_read_alloc_1): Adjust.
6962 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6963 (target_fileio_open_warn_if_slow): Delete declaration.
6964
ad80db5b
PA
69652020-05-19 Pedro Alves <palves@redhat.com>
6966
6967 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6968 Adjust all callers.
6969
1d6ce4d3
YS
69702020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6971
6972 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6973 whether disp is negative.
6974
9005fbbb
SM
69752020-05-19 Simon Marchi <simon.marchi@efficios.com>
6976
6977 * symfile.h (struct symfile_segment_data)
6978 <~symfile_segment_data>: Remove.
6979 <segment_info>: Change to std::vector.
6980 * symfile.c (default_symfile_segments): Update.
6981 * elfread.c (elf_symfile_segments): Update.
6982
68b888ff
SM
69832020-05-19 Simon Marchi <simon.marchi@efficios.com>
6984
6985 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6986 <segments>: New.
6987 <segment_bases, segment_sizes>: Remove.
6988 * symfile.c (default_symfile_segments): Update.
6989 * elfread.c (elf_symfile_segments): Update.
6990 * remote.c (remote_target::get_offsets): Update.
6991 * solib-target.c (solib_target_relocate_section_addresses):
6992 Update.
6993
62982abd
SM
69942020-05-19 Simon Marchi <simon.marchi@efficios.com>
6995
6996 * symfile.h (struct symfile_segment_data): Initialize fields.
6997 <~symfile_segment_data>: Add.
6998 (symfile_segment_data_up): New.
6999 (struct sym_fns) <sym_segments>: Return a
7000 symfile_segment_data_up.
7001 (default_symfile_segments): Return a symfile_segment_data_up.
7002 (free_symfile_segment_data): Remove.
7003 (get_symfile_segment_data): Return a symfile_segment_data_up.
7004 * symfile.c (default_symfile_segments): Likewise.
7005 (get_symfile_segment_data): Likewise.
7006 (free_symfile_segment_data): Remove.
7007 (symfile_find_segment_sections): Update.
7008 * elfread.c (elf_symfile_segments): Return a
7009 symfile_segment_data_up.
7010 * remote.c (remote_target::get_offsets): Update.
7011 * solib-target.c (solib_target_relocate_section_addresses):
7012 Update.
7013 * symfile-debug.c (debug_sym_segments): Return a
7014 symfile_segment_data_up.
7015
7f204339
RO
70162020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7017
e52a0f1b
RO
7018 PR build/25981
7019 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7020 Hardcode register numbers.
7021
7f204339
RO
7022 PR build/25981
7023 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7024 procfs_find_LDT_entry): Remove.
7025 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7026 procfs_find_LDT_entry): Remove.
7027 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7028 Remove.
7029
7f32a4d5
PA
70302020-05-17 Pedro Alves <palves@redhat.com>
7031 Andrew Burgess <andrew.burgess@embecosm.com>
7032 Keno Fischer <keno@juliacomputing.com>
7033
7034 PR gdb/25741
7035 * breakpoint.c (build_target_condition_list): Update comments.
7036 (build_target_command_list): Update comments and skip matching
7037 locations.
7038 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7039 a separate function. Simplify "set breakpoint auto-hw off"
7040 handling.
7041 (insert_breakpoints): Update comment.
7042 (tracepoint_locations_match): New parameter. For breakpoints,
7043 compare location types too, if the caller wants to.
7044 (handle_automatic_hardware_breakpoints): New functions.
7045 (bp_location_is_less_than): Also sort by location type and
7046 hardware breakpoint length.
7047 (update_global_location_list): Handle "set breakpoint auto-hw on"
7048 here.
7049 (update_breakpoint_locations): Ask breakpoint_locations_match to
7050 ignore location types.
7051
7d93a1e0
SM
70522020-05-16 Simon Marchi <simon.marchi@efficios.com>
7053
7054 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7055 type::name instead.
7056
d0e39ea2
SM
70572020-05-16 Simon Marchi <simon.marchi@efficios.com>
7058
7059 * gdbtypes.h (struct type) <name, set_name>: New methods.
7060 (TYPE_CODE): Use type::name. Change all call sites used to set
7061 the name to use type::set_name instead.
7062
2dab0c7b
TT
70632020-05-16 Tom Tromey <tom@tromey.com>
7064
7065 * top.c (quit_force): Update.
7066 * infrun.c (handle_no_resumed): Update.
7067 * top.h (all_uis): New function.
7068 (ALL_UIS): Remove.
7069
59f7bd8d
SM
70702020-05-16 Simon Marchi <simon.marchi@efficios.com>
7071
7072 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7073
9bf058f0
PA
70742020-05-16 Pedro Alves <palves@redhat.com>
7075
7076 * ia64-linux-nat.c
7077 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7078 Declare method.
7079 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7080
8f86ae1a
SM
70812020-05-15 Simon Marchi <simon.marchi@efficios.com>
7082
7083 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7084 (sparc64_adi_info): Likewise.
7085
d6bc0792
TT
70862020-05-15 Tom Tromey <tom@tromey.com>
7087
7088 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7089 block_objfile.
7090 (lookup_objfile_from_block): Remove.
7091 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7092 (lookup_global_symbol): Use block_objfile.
7093 * symtab.h (lookup_objfile_from_block): Don't declare.
7094 * printcmd.c (clear_dangling_display_expressions): Use
7095 block_objfile.
7096 * parse.c (operator_check_standard): Use block_objfile.
7097
8c14c3a3
TT
70982020-05-15 Tom Tromey <tom@tromey.com>
7099
7100 * language.c (language_alloc_type_symbol): Set
7101 SYMBOL_SECTION.
7102 * symtab.c (initialize_objfile_symbol): Remove.
7103 (allocate_symbol): Remove.
7104 (allocate_template_symbol): Remove.
7105 * dwarf2/read.c (fixup_go_packaging): Use "new".
7106 (new_symbol): Use "new".
7107 (read_variable): Don't call initialize_objfile_symbol. Use
7108 "new".
7109 (read_func_scope): Use "new".
7110 * xcoffread.c (process_xcoff_symbol): Don't call
7111 initialize_objfile_symbol.
7112 (SYMBOL_DUP): Remove.
7113 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7114 "new".
7115 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7116 (allocate_template_symbol): Don't declare.
7117 (struct symbol): Add copy constructor. Change defaults.
7118 * jit.c (finalize_symtab): Use "new".
7119 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7120 Use "new".
7121 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7122 (common_block_end): Use "new".
7123 * mdebugread.c (parse_symbol): Use "new".
7124 (new_symbol): Likewise.
7125
5b4a1a8d
PW
71262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7127
7128 * NEWS: Mention changes to help and apropos.
7129
57b4f16e
PW
71302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7131
7132 * command.h (enum command_class): Improve comments, document
7133 that class_alias is for user-defined aliases, give the class
7134 name for each class, remove unused class_xdb.
7135 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7136 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7137 by a precise class.
7138 * infcmd.c (_initialize_infcmd): Likewise.
7139 * reverse.c (_initialize_reverse): Likewise.
7140 * stack.c (_initialize_stack): Likewise.
7141 * symfile.c (_initialize_symfile): Likewise.
7142 * tracepoint.c (_initialize_tracepoint): Likewise.
7143
7c05caf7
PW
71442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7145
7146 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7147 when their aliased command is traversed.
7148 (help_cmd): Add fput_command_names_styled call to
7149 output command name and aliases when command has an alias.
7150
3b3aaacb
PW
71512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7152
7153 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7154 * cli/cli-decode.c (help_cmd_list): Declare as static,
7155 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7156 a command together with the command.
7157 (fput_command_name_styled, fput_command_names_styled): New functions.
7158 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7159 fput_command_name_styled.
7160 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7161 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7162
7aa1b46f
PW
71632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7164
7165 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7166 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7167 * command.h (cmd_show_list): Likewise.
7168 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7169 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7170
89bcba74
PW
71712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7172
7173 * unittests/command-def-selftests.c (traverse_command_structure):
7174 Verify all commands of a list have the same prefix command and
7175 that only the top cmdlist commands have a null prefix.
7176
3f4d92eb
PW
71772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7178
7179 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7180 as prefix, not one of its aliases.
7181 (set_cmd_prefix): Remove.
7182 (do_add_cmd): Centralize the setting of the prefix of a command, when
7183 command is defined after its full chain of prefix commands.
7184 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7185 (add_setshow_cmd_full): Likewise.
7186 (update_prefix_field_of_prefixed_commands): New function.
7187 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7188 update_prefix_field_of_prefixed_commands.
7189 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7190 addresses of remote_set_cmdlist and remote_show_cmdlist given
7191 as argument, not the address of an argument.
7192 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7193 * gdb/remote.c (_initialize_remote): Likewise.
7194
0605465f
PW
71952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7196
7197 * cli/cli-cmds.c (alias_command): Check for an existing alias
7198 using lookup_cmd_composition, as valid_command_p is too strict
7199 and forbids aliases that are the prefix of an existing alias
7200 or command.
7201 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7202 command is properly recognised as a valid command.
7203
58e6ac70
PW
72042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7205
7206 * unittests/help-doc-selftests.c: Rename to
7207 unittests/command-def-selftests.c
7208 * unittests/command-def-selftests.c (help_doc_tests): Update some
7209 comments.
7210 (command_structure_tests, traverse_command_structure): New namespace
7211 and function.
7212 (command_structure_invariants_tests): New function.
7213 (_initialize_command_def_selftests) Renamed from
7214 _initialize_help_doc_selftests, register command_structure_invariants
7215 selftest.
7216
a7b9ceb8
PW
72172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7218
7219 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7220 an alias of 'show'.
7221
b2188a06
JB
72222020-05-15 Joel Brobecker <brobecker@adacore.com>
7223
7224 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7225 ada_is_fixed_point_type. Update all callers.
7226 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7227 all callers.
7228 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7229 Update all callers.
7230 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7231 print_fixed_point_type. Update all callers.
7232 * ada-valprint.c (ada_value_print_num): Replace call to
7233 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7234
a51951c2
KB
72352020-05-14 Kevin Buettner <kevinb@redhat.com>
7236
7237 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7238 processors.
7239 (cpu_supports_bts): Add CV_AMD case.
7240
29d6859f
LM
72412020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7242 Simon Marchi <simon.marchi@efficios.com>
7243
7244 * infrun.c (stop_all_threads): Collect multiple wait events at
7245 each pass.
7246
78134374
SM
72472020-05-14 Simon Marchi <simon.marchi@efficios.com>
7248
7249 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7250 type::code instead.
7251
67607e24
SM
72522020-05-14 Simon Marchi <simon.marchi@efficios.com>
7253
7254 * gdbtypes.h (struct type) <code, set_code>: New methods.
7255 (TYPE_CODE): Use type::code. Change all call sites used to set
7256 the code to use type::set_code instead.
7257
a05575d3
TBA
72582020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7259 Tom de Vries <tdevries@suse.de>
7260 Pedro Alves <palves@redhat.com>
7261
7262 PR threads/25478
7263 * infrun.c (stop_all_threads): Do NOT ignore
7264 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7265 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7266 received.
7267 (handle_no_resumed): Remove code handling a live inferior with no
7268 threads.
7269 * remote.c (has_single_non_exited_thread): New.
7270 (remote_target::update_thread_list): Do not delete a thread if is
7271 the last thread of the process.
7272 * thread.c (thread_select): Call delete_exited_threads instead of
7273 prune_threads.
7274
6ad82919
TBA
72752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7276
7277 * infrun.c (stop_all_threads): Enable/disable thread events of all
7278 targets. Move a debug message denoting the end of the function
7279 into the SCOPED_EXIT block.
7280
d890404b
TBA
72812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7282
7283 * process-stratum-target.h: Include <set>.
7284 (all_non_exited_process_targets, switch_to_target_no_thread): New
7285 function declarations.
7286 * process-stratum-target.c (all_non_exited_process_targets)
7287 (switch_to_target_no_thread): New function implementations.
7288
293b3ebc
TBA
72892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7290
7291 * infrun.c (handle_inferior_event): Extract out a piece of code
7292 into...
7293 (mark_non_executing_threads): ...this new function.
7294
7ca9b62a
TBA
72952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7296
7297 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7298 use.
7299
fc75c28b
TBA
73002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7301
7302 * regcache.c (regcache_read_pc_protected): New function
7303 implementation that returns 0 if the PC cannot read via
7304 'regcache_read_pc'.
7305 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7306 instead of 'regcache_read_pc'.
7307 (keep_going_pass_signal): Ditto.
7308
a89febbd
TT
73092020-05-13 Tom Tromey <tromey@adacore.com>
7310
7311 * ada-lang.c (align_value): Remove.
7312 (ada_template_to_fixed_record_type_1): Use align_up.
7313
f7e23710
TBA
73142020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7315
7316 * async-event.c: Update the copyright year.
7317 * async-event.h: Update the copyright year.
7318
02ff80c2
SM
73192020-05-12 Simon Marchi <simon.marchi@efficios.com>
7320
7321 * objfiles.h (is_addr_in_objfile,
7322 shared_objfile_contains_address_p): Return bool.
7323 * objfile.c (is_addr_in_objfile,
7324 shared_objfile_contains_address_p): Return bool.
7325
4fd6c7e8
TT
73262020-05-11 Tom Tromey <tromey@adacore.com>
7327
7328 * cli/cli-cmds.c (info_command): Restore.
7329 (_initialize_cli_cmds): Use add_prefix_command for "info".
7330 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7331
5eb68a39
TT
73322020-05-11 Tom Tromey <tromey@adacore.com>
7333
7334 * ada-lang.c (ada_value_primitive_field): Now public.
7335 * ada-lang.h (ada_value_primitive_field): Declare.
7336 * ada-valprint.c (print_field_values): Use
7337 ada_value_primitive_field for wrapper fields.
7338
7666722f
TV
73392020-05-11 Tom de Vries <tdevries@suse.de>
7340
7341 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7342 MODULE_DOMAIN.
7343
3ee6bb11
TV
73442020-05-11 Tom de Vries <tdevries@suse.de>
7345
7346 PR symtab/25941
7347 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7348 with length 0, if not gdb-produced.
7349 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7350
43434996
TV
73512020-05-09 Tom de Vries <tdevries@suse.de>
7352
7353 PR gdb/25955
7354 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7355 calculation.
7356
2f78cffc
TT
73572020-05-09 Tom Tromey <tom@tromey.com>
7358
7359 * top.c (server_command): Now bool.
7360 * top.h (server_command): Now bool.
7361
4f7bc5ed
TT
73622020-05-08 Tom Tromey <tromey@adacore.com>
7363
7364 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7365 already being processed.
7366
8be4b118
TT
73672020-05-08 Tom Tromey <tom@tromey.com>
7368
7369 * printcmd.c (struct display) <next>: Remove.
7370 <display>: New constructor.
7371 <exp_string>: Now a std::string.
7372 <enabled_p>: Now a bool.
7373 (display_number): Move definition earlier.
7374 (displays): Rename from display_chain. Now a std::vector.
7375 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7376 (display_command): Update.
7377 (do_one_display, disable_display)
7378 (enable_disable_display_command, do_enable_disable_display):
7379 Update.
7380 (free_display): Remove.
7381 (clear_displays): Rewrite.
7382 (delete_display): Update.
7383 (map_display_numbers): Use function_view. Remove "data"
7384 parameter. Update.
7385 (do_delete_display): Remove.
7386 (undisplay_command): Update.
7387 (do_one_display, do_displays, disable_display)
7388 (info_display_command): Update.
7389 (do_enable_disable_display): Remove.
7390 (enable_disable_display_command)
7391 (clear_dangling_display_expressions): Update.
7392
94c93c35
TT
73932020-05-08 Tom Tromey <tom@tromey.com>
7394
7395 * symtab.c (set_symbol_cache_size)
7396 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7397 (maintenance_print_symbol_cache_statistics): Update.
7398 * symmisc.c (print_symbol_bcache_statistics)
7399 (print_objfile_statistics, maintenance_print_objfiles)
7400 (maintenance_info_symtabs, maintenance_check_symtabs)
7401 (maintenance_expand_symtabs, maintenance_info_line_tables):
7402 Update.
7403 * symfile-debug.c (set_debug_symfile): Update.
7404 * source.c (forget_cached_source_info): Update.
7405 * python/python.c (gdbpy_progspaces): Update.
7406 * psymtab.c (maintenance_info_psymtabs): Update.
7407 * probe.c (parse_probes): Update.
7408 * linespec.c (iterate_over_all_matching_symtabs)
7409 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7410 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7411 * exec.c (exec_target::close): Update.
7412 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7413 * breakpoint.c (print_one_breakpoint_location)
7414 (create_longjmp_master_breakpoint)
7415 (create_std_terminate_master_breakpoint): Update.
7416 * progspace.c (program_spaces): Now a std::vector.
7417 (maybe_new_address_space): Update.
7418 (add_program_space): Remove.
7419 (program_space::program_space): Update.
7420 (remove_program_space): Update.
7421 (number_of_program_spaces): Remove.
7422 (print_program_space, update_address_spaces): Update.
7423 * progspace.h (program_spaces): Change type.
7424 (ALL_PSPACES): Remove.
7425 (number_of_program_spaces): Don't declare.
7426 (struct program_space) <next>: Remove.
7427
a1fd1ac9
TT
74282020-05-08 Tom Tromey <tom@tromey.com>
7429
7430 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7431 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7432 (enable_break): Update.
7433 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7434 (frv_fdpic_find_canonical_descriptor): Update.
7435 (frv_fetch_objfile_link_map): Update.
7436 * progspace.c (program_space::free_all_objfiles): Update.
7437 (program_space::solibs): New method.
7438 * progspace.h (struct program_space) <solibs>: New method.
7439 * solist.h (master_so_list): Don't declare.
7440 (ALL_SO_LIBS): Remove.
7441 * solib.h (so_list_head): Remove.
7442 (update_solib_list): Update comment.
7443 * solib.c (master_so_list): Remove.
7444 (solib_used, update_solib_list, solib_add)
7445 (info_sharedlibrary_command, clear_solib)
7446 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7447
38eae084
TT
74482020-05-08 Tom Tromey <tom@tromey.com>
7449
7450 * extension.c (extension_languages): Now a std::array.
7451 (ALL_EXTENSION_LANGUAGES): Remove.
7452 (get_ext_lang_defn, get_ext_lang_of_file)
7453 (eval_ext_lang_from_control_command): Update.
7454 (finish_ext_lang_initialization)
7455 (auto_load_ext_lang_scripts_for_objfile)
7456 (ext_lang_type_printers::ext_lang_type_printers)
7457 (apply_ext_lang_type_printers)
7458 (ext_lang_type_printers::~ext_lang_type_printers)
7459 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7460 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7461 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7462 (get_matching_xmethod_workers, ext_lang_colorize)
7463 (ext_lang_before_prompt): Update.
7464 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7465
596dc4ad
TT
74662020-05-08 Tom Tromey <tom@tromey.com>
7467
7468 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7469 overload.
7470 <swap_string, m_string>: Remove.
7471 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7472 Update.
7473 * stabsread.c (define_symbol, read_type): Update.
7474 * linespec.c (find_linespec_symbols): Update.
7475 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7476 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7477 * dbxread.c (read_dbx_symtab): Update.
7478 * cp-support.h (cp_canonicalize_string_full)
7479 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7480 Return unique_xmalloc_ptr.
7481 * cp-support.c (inspect_type): Update.
7482 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7483 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7484 Likewise.
7485 * c-typeprint.c (print_name_maybe_canonical): Update.
7486 * break-catch-throw.c (check_status_exception_catchpoint):
7487 Update.
7488
bf4cb9be
TV
74892020-05-08 Tom de Vries <tdevries@suse.de>
7490
7491 * infrun.c (follow_fork): Copy current_line and current_symtab to
7492 child thread.
7493
a1b68f28
SM
74942020-05-07 Simon Marchi <simon.marchi@efficios.com>
7495
7496 * async-event.c (struct async_signal_handler, struct
7497 async_event_handler): Reformat, remove typedef.
7498
98d48915
SM
74992020-05-07 Simon Marchi <simon.marchi@efficios.com>
7500
7501 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7502 access thistype->main_type->dyn_prop_list directly.
7503
7aa91313
SM
75042020-05-07 Simon Marchi <simon.marchi@efficios.com>
7505
7506 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7507 (remove_dyn_prop): Remove. Update all users to use
7508 type::remove_dyn_prop.
7509 * gdbtypes.c (remove_dyn_prop): Rename to...
7510 (type::remove_dyn_prop): ... this.
7511
5c54719c
SM
75122020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7513
7514 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7515 (add_dyn_prop): Remove. Update all users to use
7516 type::add_dyn_prop.
7517 * gdbtypes.c (add_dyn_prop): Rename to...
7518 (type::add_dyn_prop): ... this.
7519
24e99c6c
SM
75202020-05-07 Simon Marchi <simon.marchi@efficios.com>
7521
7522 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7523 (get_dyn_prop): Remove. Update all users to use
7524 type::dyn_prop.
7525 * gdbtypes.c (get_dyn_prop): Rename to...
7526 (type::dyn_prop): ... this.
7527
0d4bf016
SM
75282020-05-06 Simon Marchi <simon.marchi@efficios.com>
7529
7530 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7531
ac4a4f1c
SM
75322020-05-06 Simon Marchi <simon.marchi@efficios.com>
7533
7534 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7535 instruction, skip it if it's there.
7536
a3bbacc1
SM
75372020-05-05 Simon Marchi <simon.marchi@efficios.com>
7538
7539 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7540
c3236f84
SM
75412020-05-04 Simon Marchi <simon.marchi@efficios.com>
7542
7543 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7544 * gdbtypes.c (recursive_dump_type): Remove use of
7545 TYPE_INCOMPLETE.
7546
3b6acaee
TT
75472020-05-03 Tom Tromey <tom@tromey.com>
7548
7549 * breakpoint.c (catch_command, tcatch_command): Remove.
7550 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7551 add_show_prefix_cmd.
7552 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7553 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7554 Remove.
7555 (add_internal_problem_command): Use add_basic_prefix_cmd,
7556 add_show_prefix_cmd.
7557 * mips-tdep.c (set_mipsfpu_command): Remove.
7558 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7559 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7560 (_initialize_index_cache): Use add_basic_prefix_cmd.
7561 * memattr.c (dummy_cmd): Remove.
7562 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7563 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7564 (_initialize_tui_win): Use add_basic_prefix_cmd,
7565 add_show_prefix_cmd.
7566 * cli/cli-logging.c (set_logging_command): Remove.
7567 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7568 add_show_prefix_cmd.
7569 (show_logging_command): Remove.
7570 * target.c (target_command): Remove.
7571 (add_target): Use add_basic_prefix_cmd.
7572
a51119cd
HD
75732020-05-02 Hannes Domani <ssbssa@yahoo.de>
7574
7575 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7576
652fc23a 75772020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7578
652fc23a
PW
7579 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7580 info_command.
7581
117539e6
KR
75822020-04-30 Kamil Rytarowski <n54@gmx.com>
7583
7584 * nbsd-nat.c (nbsd_enable_proc_events)
7585 (nbsd_nat_target::post_startup_inferior): Add.
7586 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7587 (nbsd_nat_target::update_thread_list): Rewrite.
7588 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7589 "PTRACE_LWP_CREATE".
7590 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7591
102e38eb 75922020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7593
102e38eb
PW
7594 * stack.c (_initialize_stack): Remove duplicated creation
7595 of "frame" command and "f" alias.
7596
ee9d1e5f
HD
75972020-04-30 Hannes Domani <ssbssa@yahoo.de>
7598
7599 PR gdb/18706
7600 * gdbtypes.c (check_typedef): Calculate size of array of
7601 stubbed type.
7602
627c7fb8
HD
76032020-04-30 Hannes Domani <ssbssa@yahoo.de>
7604
7605 PR gdb/15559
7606 * i386-tdep.c (i386_push_dummy_call): Call
7607 i386_thiscall_push_dummy_call.
7608 (i386_thiscall_push_dummy_call): New function.
7609 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7610 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7611 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7612
ffc2844e
SM
76132020-04-29 Simon Marchi <simon.marchi@efficios.com>
7614
7615 * gdbarch.sh (do_read): Add shellcheck disable directive for
7616 warning SC2162.
7617
1207375d
SM
76182020-04-29 Simon Marchi <simon.marchi@efficios.com>
7619
7620 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7621 "referenced but not assigned" warning.
7622
9fdb2916
SM
76232020-04-29 Simon Marchi <simon.marchi@efficios.com>
7624
7625 * gdbarch.sh: Remove code that sets fallbackdefault.
7626
759cea5e
SM
76272020-04-29 Simon Marchi <simon.marchi@efficios.com>
7628
7629 * gdbarch.sh: Use shell operators && and || instead of
7630 -a and -o.
7631
cb02ab24
SM
76322020-04-29 Simon Marchi <simon.marchi@efficios.com>
7633
7634 * gdbarch.sh: Use $(...) instead of `...`.
7635
a6fc5ffc
SM
76362020-04-29 Simon Marchi <simon.marchi@efficios.com>
7637
7638 * gdbarch.sh: Use double quotes around variables.
7639
8d113d13
SM
76402020-04-29 Simon Marchi <simon.marchi@efficios.com>
7641
7642 * gdbarch.sh: Use %s with printf, instead of variables in the
7643 format string.
7644
ed6acedd
TT
76452020-04-29 Tom Tromey <tromey@adacore.com>
7646
7647 PR ada/25875:
7648 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7649 type fields here.
7650 (read_enumeration_type): Call
7651 update_enumeration_type_from_children later. Update comments.
7652 (process_enumeration_scope): Don't create type fields.
7653
b68b1b58
KR
76542020-04-29 Kamil Rytarowski <n54@gmx.com>
7655
7656 * nbsd-tdep.c: Include "xml-syscall.h".
7657 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7658
f94b2e03
KR
76592020-04-29 Kamil Rytarowski <n54@gmx.com>
7660
7661 * nbsd-nat.c: Include "sys/wait.h".
7662 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7663 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7664 (nbsd_nat_target::remove_exec_catchpoint)
7665 (nbsd_nat_target::set_syscall_catchpoint): Add.
7666 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7667 (nbsd_nat_target::insert_exec_catchpoint)
7668 (nbsd_nat_target::remove_exec_catchpoint)
7669 (nbsd_nat_target::set_syscall_catchpoint): Add.
7670 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7671 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7672 `nbsd_get_syscall_number'.
7673
fc49bc72
TT
76742020-04-29 Tom Tromey <tom@tromey.com>
7675
7676 * stack.c (print_block_frame_labels): Remove.
7677
d642b692
HD
76782020-04-29 Hannes Domani <ssbssa@yahoo.de>
7679
7680 PR gdb/17320
7681 * ada-valprint.c (val_print_packed_array_elements): Move array
7682 end bracket to new line.
7683 (ada_val_print_string): Remove extra spaces before first array
7684 element.
7685 * c-valprint.c (c_value_print_array): Likewise.
7686 * m2-valprint.c (m2_print_array_contents): Likewise.
7687 (m2_value_print_inner): Likewise.
7688 * p-valprint.c (pascal_value_print_inner): Likewise.
7689 * valprint.c (generic_val_print_array): Likewise.
7690 (value_print_array_elements): Move first array element and array
7691 end bracket to new line.
7692
ea90f227
TV
76932020-04-29 Tom de Vries <tdevries@suse.de>
7694
7695 PR symtab/25889
7696 * linespec.c (find_method): Fix ix calculation.
7697
4498ef4f
KR
76982020-04-28 Kamil Rytarowski <n54@gmx.com>
7699
7700 * syscalls/update-netbsd.sh: New file.
7701 * syscalls/netbsd.xml: Regenerate.
7702 * data-directory/Makefile.in: Register `netbsd.xml' in
7703 `SYSCALLS_FILES'.
7704
a55e30b5
SM
77052020-04-28 Simon Marchi <simon.marchi@efficios.com>
7706
7707 * syscalls/update-freebsd.sh: Add double quotes.
7708
2b2fbab8
TT
77092020-04-28 Tom Tromey <tom@tromey.com>
7710
7711 * NEWS: Update.
7712 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7713 (cmdpy_init): Allow class_tui.
7714
a65189c9
TV
77152020-04-28 Mark Williams <mark@myosotissp.com>
7716
7717 PR gdb/24480
7718 * dwarf2read.c: Add missing assingments to list_in_scope when
7719 start_symtab was already called.
7720
1b95cdb7
SM
77212020-04-28 Simon Marchi <simon.marchi@efficios.com>
7722
7723 PR gdb/25881
7724 * dwarf2/read.c (offset_map_type): Use
7725 gdb:hash_enum<sect_offset> as hash function.
7726
15cd93d0
TV
77272020-04-28 Tom de Vries <tdevries@suse.de>
7728
7729 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7730 with DW_AT_signature.
7731
1eb39914
SM
77322020-04-27 Simon Marchi <simon.marchi@efficios.com>
7733
7734 * configure.ac: Remove check for fs_base/gs_base in
7735 user_regs_struct.
7736 * configure: Re-generate.
7737 * config.in: Re-generate.
7738 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7739 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7740 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7741
991a3e2e
LM
77422020-04-27 Luis Machado <luis.machado@linaro.org>
7743
7744 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7745 problematic inline frame unwinding situation.
7746 * frame.c (frame_id_computed_p): New function.
7747 * frame.h (frame_id_computed_p): New prototype.
7748
361ba0e8
TT
77492020-04-26 Tom Tromey <tom@tromey.com>
7750
7751 * command.h (enum command_class) <class_pseudo>: Remove.
7752
bc3609fd
PW
77532020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7754
7755 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7756 and whitespace.
7757
b9771db7
KR
77582020-04-25 Kamil Rytarowski <n54@gmx.com>
7759
ec16513e
SM
7760 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7761 `PT_GET_PROCESS_STATE' block.
b9771db7 7762
7151c1af
TT
77632020-04-24 Tom Tromey <tom@tromey.com>
7764
7765 * symtab.h (symbol_get_demangled_name): Don't declare.
7766 * symtab.c (symbol_get_demangled_name): Remove.
7767 (general_symbol_info::natural_name)
7768 (general_symbol_info::demangled_name): Update.
7769
906bb4c5
TT
77702020-04-24 Tom Tromey <tom@tromey.com>
7771
7772 PR rust/25025:
7773 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7774
bcfe6157
TT
77752020-04-24 Tom Tromey <tom@tromey.com>
7776
7777 PR symtab/12707:
7778 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7779 exists.
7780 (new_symbol): Likewise.
7781 * compile/compile-object-load.c (get_out_value_type): Use
7782 symbol_matches_search_name.
7783
f049a313
TT
77842020-04-24 Tom Tromey <tom@tromey.com>
7785
7786 * dwarf2/read.c (add_partial_symbol): Do not call
7787 compute_and_set_names.
7788
76e288d1
TT
77892020-04-24 Tom Tromey <tom@tromey.com>
7790
7791 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7792 overload.
7793
2467f4f6
TT
77942020-04-24 Tom Tromey <tom@tromey.com>
7795
7796 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7797 (add_psymbol_to_list): New overload. Make old overload call new
7798 one.
7799 * psympriv.h (add_psymbol_to_list): New overload.
7800
e61108c9
TT
78012020-04-24 Tom Tromey <tom@tromey.com>
7802
7803 * dwarf2/read.c (partial_die_info::read) <case
7804 DW_AT_linkage_name>: Use value_as_string.
7805 (dwarf2_string_attr): Use value_as_string.
7806 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7807 method.
7808 * dwarf2/attribute.c (attribute::value_as_string): New method.
7809
8c87a452
TT
78102020-04-24 Tom Tromey <tom@tromey.com>
7811
7812 * symtab.c (general_symbol_info::natural_name)
7813 (general_symbol_info::demangled_name): Check for language_rust.
7814
787de330
TT
78152020-04-24 Tom Tromey <tom@tromey.com>
7816
7817 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7818 (dwarf2_physname): ... from here.
7819 (partial_die_info::read): Add Rust "{" hack.
7820
ff985671
TT
78212020-04-24 Tom Tromey <tom@tromey.com>
7822
7823 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7824 method.
7825 (symbol_set_demangled_name): Don't declare.
7826 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7827 symbol_set_demangled_name.
7828 (general_symbol_info::set_language)
7829 (general_symbol_info::compute_and_set_names): Update.
7830 * minsyms.c (minimal_symbol_reader::install): Update.
7831 * dwarf2/read.c (new_symbol): Update.
7832
1acda803
TT
78332020-04-24 Tom Tromey <tromey@adacore.com>
7834
7835 PR python/23662:
7836 * python/py-type.c (convert_field): Handle
7837 FIELD_LOC_KIND_DWARF_BLOCK.
7838 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7839 (typy_get_dynamic): Nw function.
7840 (type_object_getset): Add "dynamic".
7841 * NEWS: Add entry.
7842
d656f129
TT
78432020-04-24 Tom Tromey <tromey@adacore.com>
7844
7845 * ada-typeprint.c (print_choices, print_variant_part)
7846 (print_record_field_types_dynamic): New functions.
7847 (print_record_field_types): Use print_record_field_types_dynamic.
7848
7d79de9a
TT
78492020-04-24 Tom Tromey <tromey@adacore.com>
7850
7851 * dwarf2/read.c (handle_data_member_location): New overload.
7852 (dwarf2_add_field): Use it.
7853 (decode_locdesc): Add "computed" parameter. Update comment.
7854 * gdbtypes.c (is_dynamic_type_internal): Also look for
7855 FIELD_LOC_KIND_DWARF_BLOCK.
7856 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7857 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7858 virtual base classes.
7859 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7860 FIELD_LOC_KIND_DWARF_BLOCK.
7861
f8e89861
TT
78622020-04-24 Tom Tromey <tromey@adacore.com>
7863
7864 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7865 * gdbtypes.c (is_dynamic_type_internal): Check
7866 TYPE_HAS_DYNAMIC_LENGTH.
7867 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7868 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7869 New macros.
7870 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7871 constant.
7872
9c6a1327
TT
78732020-04-24 Tom Tromey <tromey@adacore.com>
7874
7875 * dwarf2/read.c (struct variant_field): Rewrite.
7876 (struct variant_part_builder): New.
7877 (struct nextfield): Remove "variant" field. Add "offset".
7878 (struct field_info): Add "current_variant_part" and
7879 "variant_parts".
7880 (alloc_discriminant_info): Remove.
7881 (alloc_rust_variant): New function.
7882 (quirk_rust_enum): Update.
7883 (dwarf2_add_field): Set "offset" member. Don't handle
7884 DW_TAG_variant_part.
7885 (offset_map_type): New typedef.
7886 (convert_variant_range, create_one_variant)
7887 (create_one_variant_part, create_variant_parts)
7888 (add_variant_property): New functions.
7889 (dwarf2_attach_fields_to_type): Call add_variant_property.
7890 (read_structure_type): Don't handle DW_TAG_variant_part.
7891 (handle_variant_part, handle_variant): New functions.
7892 (handle_struct_member_die): Use them.
7893 (process_structure_scope): Don't handle variant parts.
7894 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7895 (struct discriminant_info): Remove.
7896 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7897 (struct main_type) <flag_discriminated_union>: Remove.
7898 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7899 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7900 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7901 Update.
7902 * valops.c (value_union_variant): Remove.
7903 * value.h (value_union_variant): Don't declare.
7904
b249d2c2
TT
79052020-04-24 Tom Tromey <tromey@adacore.com>
7906
7907 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7908 (ada_value_primitive_packed_val): Update.
7909 * ada-valprint.c (ada_value_print_1): Update.
7910 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7911 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7912 just an address. Use evaluate_for_locexpr_baton.
7913 (dwarf2_evaluate_property): Update.
7914 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7915 array_view.
7916 * findvar.c (default_read_var_value): Update.
7917 * gdbtypes.c (compute_variant_fields_inner)
7918 (resolve_dynamic_type_internal): Update.
7919 (resolve_dynamic_type): Change type of valaddr parameter.
7920 * gdbtypes.h (resolve_dynamic_type): Update.
7921 * valarith.c (value_subscripted_rvalue): Update.
7922 * value.c (value_from_contents_and_address): Update.
7923
61122aa9
TT
79242020-04-24 Tom Tromey <tromey@adacore.com>
7925
7926 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7927 "push_initial_value" parameter.
7928 (dwarf2_evaluate_property): Likewise.
7929 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7930
ef83a141
TT
79312020-04-24 Tom Tromey <tromey@adacore.com>
7932
7933 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7934 (variant::matches, compute_variant_fields_recurse)
7935 (compute_variant_fields_inner, compute_variant_fields): New
7936 functions.
7937 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7938 Use resolved_type after type is made.
7939 (operator==): Add new cases.
7940 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7941 (struct discriminant_range, struct variant, struct variant_part):
7942 New.
7943 (union dynamic_prop_data) <variant_parts, original_type>: New
7944 members.
7945 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7946 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7947 constants.
7948 * value.c (unpack_bits_as_long): Now public.
7949 * value.h (unpack_bits_as_long): Declare.
7950
675127ec
TT
79512020-04-24 Tom Tromey <tromey@adacore.com>
7952
7953 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7954 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7955
9852ceef
HD
79562020-04-24 Hannes Domani <ssbssa@yahoo.de>
7957
7958 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7959
7632c6ce
KR
79602020-04-24 Kamil Rytarowski <n54@gmx.com>
7961
7962 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7963 (remove_fork_catchpoint, post_startup_inferior)
7964 (post_attach): Move...
7965 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7966 (remove_fork_catchpoint, post_startup_inferior)
7967 (post_attach): ...here.
7968 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7969 (remove_fork_catchpoint, post_startup_inferior)
7970 (post_attach): Move...
7971 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7972 (remove_fork_catchpoint, post_startup_inferior)
7973 (post_attach): ...here.
7974
7be2bb4f
TT
79752020-04-24 Tom Tromey <tromey@adacore.com>
7976
7977 * nat/windows-nat.h (struct windows_thread_info)
7978 <pc_adjusted>: New member.
7979 * windows-nat.c (windows_fetch_one_register): Check
7980 pc_adjusted.
7981 (windows_nat_target::get_windows_debug_event)
7982 (windows_nat_target::wait): Set pc_adjusted.
7983
f80cb3b4
TV
79842020-04-24 Tom de Vries <tdevries@suse.de>
7985
7986 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7987 Run gdb-add-index inside temp dir.
7988
29514b87
TT
79892020-04-23 Tom Tromey <tromey@adacore.com>
7990
7991 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7992 in loop.
7993
5939967b
LM
79942020-04-23 Luis Machado <luis.machado@linaro.org>
7995
7996 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7997 get_frame_register instead of gdbarch_unwind_pc.
7998
70bc38f5
TV
79992020-04-23 Tom de Vries <tdevries@suse.de>
8000
8001 * symtab.c (lookup_global_symbol): Prefer def over decl.
8002
de82891c
TV
80032020-04-23 Tom de Vries <tdevries@suse.de>
8004
8005 PR symtab/25807
8006 * block.c (best_symbol, better_symbol): Promote to external.
8007 * block.h (best_symbol, better_symbol): Declare.
8008 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8009 decl.
8010
ecc6c606
TT
80112020-04-23 Tom Tromey <tromey@adacore.com>
8012
8013 PR ada/25837:
8014 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8015 "const char *", not a "const std::string &".
8016 <name_and_matcher::operator==>: Update.
8017 * unittests/lookup_name_info-selftests.c: Change type of
8018 "result".
8019
740480b8
TT
80202020-04-23 Tom Tromey <tom@tromey.com>
8021
8022 * inferior.h (iterate_over_inferiors): Don't declare.
8023 * inferior.c (iterate_over_inferiors): Remove.
8024 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8025 Remove.
8026 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8027 use iterate_over_inferiors.
8028 (darwin_resume_inferior_it)
8029 (struct resume_inferior_threads_param)
8030 (darwin_resume_inferior_threads_it): Remove.
8031 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8032
ae3ab1f0
TV
80332020-04-23 Tom de Vries <tdevries@suse.de>
8034
8035 * blockframe.c (find_pc_partial_function): Use
8036 find_pc_sect_compunit_symtab rather than
8037 objfile->sf->qf->find_pc_sect_compunit_symtab.
8038
317d2668
TV
80392020-04-22 Tom de Vries <tdevries@suse.de>
8040
8041 PR symtab/25764
8042 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8043 in psymtabs.
8044
eea9e357
TV
80452020-04-22 Tom de Vries <tdevries@suse.de>
8046
8047 PR symtab/25801
8048 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8049 symtabs.
8050
3d5afab3
TV
80512020-04-22 Tom de Vries <tdevries@suse.de>
8052
8053 PR symtab/25700
8054 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8055 CU if already created.
8056
d43b7a2d
TBA
80572020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8058
8059 * infrun.c (displaced_step_fixup): Switch to the event_thread
8060 before calling displaced_step_restore, not after.
8061
d89edf9b
MM
80622020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8063
8064 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8065 its inferior is not recorded by us.
8066 (record_btrace_target_open): Replace call to
8067 all_non_exited_threads () with call to current_inferior
8068 ()->non_exited_threads ().
8069 (record_btrace_target::stop_recording): Likewise.
8070 (record_btrace_target::close): Likewise.
8071 (record_btrace_target::wait): Likewise.
8072 (record_btrace_target::record_stop_replaying): Likewise.
8073
5897fd49
MM
80742020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8075
8076 * btrace.c (btrace_enable): Throw an error on double enables and
8077 when enabling recording fails.
8078 (btrace_disable): Throw an error if the thread is not recorded.
8079
1a476b6d
MM
80802020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8081
8082 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8083 request if we do not have a thread_info.
8084
4778a5f8
TV
80852020-04-21 Tom de Vries <tdevries@suse.de>
8086
8087 PR gdb/25471
8088 * thread.c
8089 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8090 exception in get_frame_id.
8091
0fa7617d
TT
80922020-04-20 Tom Tromey <tromey@adacore.com>
8093
8094 * python/python.c (struct gdbpy_event): Mark move constructor as
8095 noexcept.
8096 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8097 constructor as noexcept.
8098 * completer.h (struct completion_result): Mark move constructor as
8099 noexcept.
8100 * completer.c (completion_result::completion_result): Use
8101 initialization style. Don't call reset_match_list.
8102
ad23bda0
MS
81032020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8104
8105 * MAINTAINERS (Write After Approval): Add myself.
8106
45e1f031
TT
81072020-04-18 Tom Tromey <tom@tromey.com>
8108
8109 * windows-tdep.c (init_w32_command_list)
8110 (w32_prefix_command_valid): Restore.
8111 (_initialize_windows_tdep): Call init_w32_command_list.
8112
08feed99
TT
81132020-04-18 Tom Tromey <tom@tromey.com>
8114
8115 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8116 * value.c (value_fn_field): Update.
8117 * valops.c (find_function_in_inferior)
8118 (value_allocate_space_in_inferior): Update.
8119 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8120 Update.
8121 * tui/tui-source.c (tui_source_window::set_contents): Update.
8122 * symtab.c (lookup_global_or_static_symbol)
8123 (find_function_start_sal_1, skip_prologue_sal)
8124 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8125 * symmisc.c (dump_msymbols, dump_symtab_1)
8126 (maintenance_print_one_line_table): Update.
8127 * symfile.c (init_entry_point_info, section_is_mapped)
8128 (list_overlays_command, simple_read_overlay_table)
8129 (simple_overlay_update_1): Update.
8130 * stap-probe.c (handle_stap_probe): Update.
8131 * stabsread.c (dbx_init_float_type, define_symbol)
8132 (read_one_struct_field, read_enum_type, read_range_type): Update.
8133 * source.c (info_line_command): Update.
8134 * python/python.c (gdbpy_source_objfile_script)
8135 (gdbpy_execute_objfile_script): Update.
8136 * python/py-type.c (save_objfile_types): Update.
8137 * python/py-objfile.c (py_free_objfile): Update.
8138 * python/py-inferior.c (python_new_objfile): Update.
8139 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8140 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8141 (maintenance_check_psymtabs): Update.
8142 * printcmd.c (info_address_command): Update.
8143 * objfiles.h (struct objfile) <arch>: New method, from
8144 get_objfile_arch.
8145 (get_objfile_arch): Don't declare.
8146 * objfiles.c (get_objfile_arch): Remove.
8147 (filter_overlapping_sections): Update.
8148 * minsyms.c (msymbol_is_function): Update.
8149 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8150 (output_nondebug_symbol): Update.
8151 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8152 (mdebug_expand_psymtab): Update.
8153 * machoread.c (macho_add_oso_symfile): Update.
8154 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8155 Update.
8156 * linux-fork.c (checkpoint_command): Update.
8157 * linespec.c (convert_linespec_to_sals): Update.
8158 * jit.c (finalize_symtab): Update.
8159 * infrun.c (insert_exception_resume_from_probe): Update.
8160 * ia64-tdep.c (ia64_find_unwind_table): Update.
8161 * hppa-tdep.c (internalize_unwinds): Update.
8162 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8163 Update.
8164 * gcore.c (call_target_sbrk): Update.
8165 * elfread.c (record_minimal_symbol, elf_symtab_read)
8166 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8167 (elf_gnu_ifunc_resolve_by_got): Update.
8168 * dwarf2/read.c (create_addrmap_from_index)
8169 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8170 (read_debug_names_from_section)
8171 (process_psymtab_comp_unit_reader, add_partial_symbol)
8172 (add_partial_subprogram, process_full_comp_unit)
8173 (read_file_scope, read_func_scope, read_lexical_block_scope)
8174 (read_call_site_scope, dwarf2_ranges_read)
8175 (dwarf2_record_block_ranges, dwarf2_add_field)
8176 (mark_common_block_symbol_computed, read_tag_pointer_type)
8177 (read_tag_string_type, dwarf2_init_float_type)
8178 (dwarf2_init_complex_target_type, read_base_type)
8179 (partial_die_info::read, partial_die_info::read)
8180 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8181 (dwarf2_fetch_die_loc_sect_off): Update.
8182 * dwarf2/loc.c (dwarf2_find_location_expression)
8183 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8184 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8185 (dwarf2_loc_desc_get_symbol_read_needs)
8186 (locexpr_describe_location_piece, locexpr_describe_location_1)
8187 (loclist_describe_location): Update.
8188 * dwarf2/index-write.c (write_debug_names): Update.
8189 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8190 * dtrace-probe.c (dtrace_process_dof): Update.
8191 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8192 (process_one_symbol): Update.
8193 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8194 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8195 (coff_read_enum_type): Update.
8196 * cli/cli-cmds.c (edit_command, list_command): Update.
8197 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8198 * breakpoint.c (create_overlay_event_breakpoint)
8199 (create_longjmp_master_breakpoint)
8200 (create_std_terminate_master_breakpoint)
8201 (create_exception_master_breakpoint, get_sal_arch): Update.
8202 * block.c (block_gdbarch): Update.
8203 * annotate.c (annotate_source_line): Update.
8204
0743fc83
TT
82052020-04-17 Tom Tromey <tromey@adacore.com>
8206
8207 * auto-load.c (show_auto_load_cmd): Remove.
8208 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8209 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8210 (maintenance_print_arc_command): Remove.
8211 * tui/tui-win.c (tui_command): Remove.
8212 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8213 * tui/tui-layout.c (tui_layout_command): Remove.
8214 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8215 * python/python.c (user_set_python, user_show_python): Remove.
8216 (_initialize_python): Use add_basic_prefix_cmd,
8217 add_show_prefix_cmd.
8218 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8219 (install_gdb_commands): Use add_basic_prefix_cmd,
8220 add_show_prefix_cmd.
8221 (info_guile_command): Remove.
8222 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8223 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8224 add_show_prefix_cmd.
8225 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8226 Remove do_set and do_show parameters.
8227 * cli/cli-style.c (set_style, show_style): Remove.
8228 (_initialize_cli_style): Use add_basic_prefix_cmd,
8229 add_show_prefix_cmd.
8230 (cli_style_option::add_setshow_commands): Remove do_set and
8231 do_show parameters.
8232 (cli_style_option::add_setshow_commands): Use
8233 add_basic_prefix_cmd, add_show_prefix_cmd.
8234 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8235 (set_style_name): Remove.
8236 * cli/cli-dump.c (dump_command, append_command): Remove.
8237 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8238 (tekhex_dump_command, binary_dump_command)
8239 (binary_append_command): Remove.
8240 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8241 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8242 (init_w32_command_list): Remove; move into ...
8243 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8244 * valprint.c (set_print, show_print, set_print_raw)
8245 (show_print_raw): Remove.
8246 (_initialize_valprint): Use add_basic_prefix_cmd,
8247 add_show_prefix_cmd.
8248 * typeprint.c (set_print_type, show_print_type): Remove.
8249 (_initialize_typeprint): Use add_basic_prefix_cmd,
8250 add_show_prefix_cmd.
8251 * record.c (set_record_command, show_record_command): Remove.
8252 (_initialize_record): Use add_basic_prefix_cmd,
8253 add_show_prefix_cmd.
8254 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8255 add_show_prefix_cmd.
8256 (info_command, show_command, set_debug, show_debug): Remove.
8257 * top.h (set_history, show_history): Don't declare.
8258 * top.c (set_history, show_history): Remove.
8259 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8260 (unset_tdesc_cmd): Remove.
8261 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8262 add_show_prefix_cmd.
8263 * symtab.c (info_module_command): Remove.
8264 (_initialize_symtab): Use add_basic_prefix_cmd.
8265 * symfile.c (overlay_command): Remove.
8266 (_initialize_symfile): Use add_basic_prefix_cmd.
8267 * sparc64-tdep.c (info_adi_command): Remove.
8268 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8269 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8270 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8271 add_show_prefix_cmd.
8272 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8273 (_initialize_serial): Use add_basic_prefix_cmd,
8274 add_show_prefix_cmd.
8275 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8276 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8277 add_show_prefix_cmd.
8278 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8279 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8280 add_show_prefix_cmd.
8281 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8282 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8283 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8284 add_show_prefix_cmd.
8285 * remote.c (remote_command, set_remote_cmd): Remove.
8286 (_initialize_remote): Use add_basic_prefix_cmd.
8287 * record-full.c (set_record_full_command)
8288 (show_record_full_command): Remove.
8289 (_initialize_record_full): Use add_basic_prefix_cmd,
8290 add_show_prefix_cmd.
8291 * record-btrace.c (cmd_set_record_btrace)
8292 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8293 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8294 (cmd_show_record_btrace_pt): Remove.
8295 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8296 add_show_prefix_cmd.
8297 * ravenscar-thread.c (set_ravenscar_command)
8298 (show_ravenscar_command): Remove.
8299 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8300 add_show_prefix_cmd.
8301 * mips-tdep.c (show_mips_command, set_mips_command)
8302 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8303 add_show_prefix_cmd.
8304 * maint.c (maintenance_command, maintenance_info_command)
8305 (maintenance_check_command, maintenance_print_command)
8306 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8307 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8308 add_show_prefix_cmd.
8309 (show_per_command_cmd): Remove.
8310 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8311 Remove.
8312 (maintenance_show_test_settings_cmd): Remove.
8313 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8314 add_show_prefix_cmd.
8315 * maint-test-options.c (maintenance_test_options_command):
8316 Remove.
8317 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8318 * macrocmd.c (macro_command): Remove
8319 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8320 * language.c (set_check, show_check): Remove.
8321 (_initialize_language): Use add_basic_prefix_cmd,
8322 add_show_prefix_cmd.
8323 * infcmd.c (unset_command): Remove.
8324 (_initialize_infcmd): Use add_basic_prefix_cmd.
8325 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8326 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8327 add_show_prefix_cmd.
8328 * go32-nat.c (go32_info_dos_command): Remove.
8329 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8330 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8331 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8332 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8333 (_initialize_frame): Use add_basic_prefix_cmd,
8334 add_show_prefix_cmd.
8335 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8336 (_initialize_dcache): Use add_basic_prefix_cmd,
8337 add_show_prefix_cmd.
8338 * cp-support.c (maint_cplus_command): Remove.
8339 (_initialize_cp_support): Use add_basic_prefix_cmd.
8340 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8341 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8342 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8343 add_basic_prefix_cmd, add_show_prefix_cmd.
8344 * breakpoint.c (save_command): Remove.
8345 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8346 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8347 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8348 add_show_prefix_cmd.
8349 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8350 (set_ada_command, show_ada_command): Remove.
8351 (_initialize_ada_language): Use add_basic_prefix_cmd,
8352 add_show_prefix_cmd.
8353 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8354
3557f442
KR
83552020-04-16 Kamil Rytarowski <n54@gmx.com>
8356
8357 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8358 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8359
16197208
SM
83602020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8361
8362 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8363 warning messages.
8364
00ac85d3
SM
83652020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8366
8367 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8368 import table is not at beginning of .idata section.
8369
381ce63f
PA
83702020-04-16 Pedro Alves <palves@redhat.com>
8371
8372 * inferior.c (delete_inferior): Use delete operator directly
8373 instead of delete_program_space.
8374 * progspace.c (add_program_space): New, factored out from
8375 program_space::program_space.
8376 (remove_program_space): New, factored out from
8377 delete_program_space.
8378 (program_space::program_space): Remove intro comment. Rewrite.
8379 (program_space::~program_space): Remove intro comment. Call
8380 remove_program_space.
8381 (delete_program_space): Delete.
8382 * progspace.h (program_space::program_space): Make explicit. Move
8383 intro comment here, adjusted.
8384 (program_space::~program_space): Move intro comment here,
8385 adjusted.
8386 (delete_program_space): Remove.
8387
a010605f
TT
83882020-04-16 Tom Tromey <tromey@adacore.com>
8389
8390 * windows-nat.c (windows_nat::handle_access_violation): New
8391 function.
8392 * nat/windows-nat.h (handle_access_violation): Declare.
8393 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8394 windows-nat.c. Call handle_access_violation.
8395
efba5c23
TV
83962020-04-16 Tom de Vries <tdevries@suse.de>
8397
8398 PR symtab/25791
8399 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8400 CUs without psymtab.
8401
97ed802d
KB
84022020-04-16 Kevin Buettner <kevinb@redhat.com>
8403
8404 * python/python.c (do_start_initialization): Don't call
8405 PyEval_InitThreads for Python 3.9 and beyond.
8406
c7d64809
KR
84072020-04-15 Kamil Rytarowski <n54@gmx.com>
8408
8409 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8410 thread functions.
8411 (obsd_nat_target::wait): Likewise.
8412
ce127a96
TT
84132020-04-15 Tom Tromey <tromey@adacore.com>
8414
8415 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8416 (DEBUG_EXCEPT): Use debug_printf.
8417
99f1bc6a
AB
84182020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8419
8420 * completer.c (class completion_tracker::completion_hash_entry)
8421 <hash_name>: New member function.
8422 (completion_tracker::discard_completions): New callback to hash a
8423 completion_hash_entry, pass this to htab_create_alloc.
8424
a0e9b532
JT
84252016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8426
8427 * windows-nat.c (windows_make_so): Warn rather than stopping with
8428 an error if realpath() fails.
8429
06ca5dd4
KR
84302020-04-14 Kamil Rytarowski <n54@gmx.com>
8431
8432 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8433 (nbsd_nat_target::info_proc): Add do_status.
8434
194d088f
TV
84352020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8436 Tom de Vries <tdevries@suse.de>
8437
8438 PR symtab/25718
8439 * psympriv.h (struct partial_symtab::read_symtab)
8440 (struct partial_symtab::expand_psymtab)
8441 (struct partial_symtab::read_dependencies): Update comments.
8442 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8443 read_symtab for includer.
8444 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8445 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8446 (struct dwarf2_include_psymtab::m_readin): Remove.
8447 (struct dwarf2_include_psymtab::includer): New member function.
8448 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8449
c1a66c06
TV
84502020-04-14 Tom de Vries <tdevries@suse.de>
8451
8452 PR symtab/25720
8453 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8454 with NULL symbol_matcher and lookup_name.
8455 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8456 and lookup_name.
8457 * dwarf2/read.c (dw2_expand_symtabs_matching)
8458 (dw2_debug_names_expand_symtabs_matching): Same.
8459 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8460 Make lookup_name a pointer. Update comment.
8461 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8462 lookup_name being a pointer.
8463 * symfile.c (expand_symtabs_matching): Same.
8464 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8465 * linespec.c (iterate_over_all_matching_symtabs): Same.
8466
400b5eca
TT
84672020-04-13 Tom Tromey <tom@tromey.com>
8468
8469 * run-on-main-thread.c: Update include.
8470 * unittests/main-thread-selftests.c: Update include.
8471 * tui/tui-win.c: Update include.
8472 * tui/tui-io.c: Update include.
8473 * tui/tui-interp.c: Update include.
8474 * tui/tui-hooks.c: Update include.
8475 * top.h: Update include.
8476 * top.c: Update include.
8477 * ser-base.c: Update include.
8478 * remote.c: Update include.
8479 * remote-notif.c: Update include.
8480 * remote-fileio.c: Update include.
8481 * record-full.c: Update include.
8482 * record-btrace.c: Update include.
8483 * python/python.c: Update include.
8484 * posix-hdep.c: Update include.
8485 * mingw-hdep.c: Update include.
8486 * mi/mi-main.c: Update include.
8487 * mi/mi-interp.c: Update include.
8488 * main.c: Update include.
8489 * linux-nat.c: Update include.
8490 * interps.c: Update include.
8491 * infrun.c: Update include.
8492 * inf-loop.c: Update include.
8493 * event-top.c: Update include.
8494 * event-loop.c: Move to ../gdbsupport/.
8495 * event-loop.h: Move to ../gdbsupport/.
8496 * async-event.h: Update include.
8497 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8498
93b54c8e
TT
84992020-04-13 Tom Tromey <tom@tromey.com>
8500
8501 * tui/tui-win.c: Include async-event.h.
8502 * remote.c: Include async-event.h.
8503 * remote-notif.c: Include async-event.h.
8504 * record-full.c: Include async-event.h.
8505 * record-btrace.c: Include async-event.h.
8506 * infrun.c: Include async-event.h.
8507 * event-top.c: Include async-event.h.
8508 * event-loop.h: Move some declarations to async-event.h.
8509 * event-loop.c: Don't include ser-event.h or top.h. Move some
8510 code to async-event.c.
8511 * async-event.h: New file.
8512 * async-event.c: New file.
8513 * Makefile.in (COMMON_SFILES): Add async-event.c.
8514 (HFILES_NO_SRCDIR): Add async-event.h.
8515
c1cd3163
TT
85162020-04-13 Tom Tromey <tom@tromey.com>
8517
8518 * utils.c (flush_streams): New function.
8519 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8520
29f2bf4f
TT
85212020-04-13 Tom Tromey <tom@tromey.com>
8522
8523 * event-loop.c (handle_file_event): Use warning, not
8524 printf_unfiltered.
8525
98029d02
TT
85262020-04-13 Tom Tromey <tom@tromey.com>
8527
8528 * event-loop.c: Include <chrono>.
8529
06cc9596
TT
85302020-04-13 Tom Tromey <tom@tromey.com>
8531
8532 * gdb_select.h: Move to ../gdbsupport/.
8533 * event-loop.c: Update include path.
8534 * top.c: Update include path.
8535 * ser-base.c: Update include path.
8536 * ui-file.c: Update include path.
8537 * ser-tcp.c: Update include path.
8538 * guile/scm-ports.c: Update include path.
8539 * posix-hdep.c: Update include path.
8540 * ser-unix.c: Update include path.
8541 * gdb_usleep.c: Update include path.
8542 * mingw-hdep.c: Update include path.
8543 * inflow.c: Update include path.
8544 * infrun.c: Update include path.
8545 * event-top.c: Update include path.
8546
8ae8e197
TT
85472020-04-13 Tom Tromey <tom@tromey.com>
8548
8549 * configure: Rebuild.
8550 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8551
58cf28e8
TT
85522020-04-13 Tom Tromey <tom@tromey.com>
8553
8554 * event-loop.h (start_event_loop): Don't declare.
8555 * event-loop.c (start_event_loop): Move...
8556 * main.c (start_event_loop): ...here. Now static.
8557
b7f999ae
SDJ
85582020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8559
8560 * MAINTAINERS: Update my email address.
8561
1085dfd4
KR
85622020-04-12 Kamil Rytarowski <n54@gmx.com>
8563
8564 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8565 IP_ALL.
8566
49d1d1f5
KR
85672020-04-12 Kamil Rytarowski <n54@gmx.com>
8568
8569 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8570 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8571
b4848d2a
KR
85722020-04-12 Kamil Rytarowski <n54@gmx.com>
8573
8574 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8575 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8576
51c133d5
KR
85772020-04-12 Kamil Rytarowski <n54@gmx.com>
8578
8579 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8580
54b8cbd0
KR
85812020-04-11 Kamil Rytarowski <n54@gmx.com>
8582
8583 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8584 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8585 (nbsd_nat_target::info_proc): New functions.
8586 * nbsd-nat.c (kinfo_get_vmmap): New function.
8587 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8588 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8589 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8590 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8591 functions.
8592 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8593 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8594 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8595 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8596 (KINFO_VME_FLAG_GROWS_DOWN): New.
8597
cf83625d
AS
85982020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8599
8600 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8601 bit shift.
8602
0c4311ab
TT
86032020-04-10 Tom Tromey <tromey@adacore.com>
8604
8605 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8606
3e65b3e9
TT
86072020-04-10 Tom Tromey <tromey@adacore.com>
8608
8609 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8610 separate debug files.
8611
13302e95
HD
86122020-04-10 Hannes Domani <ssbssa@yahoo.de>
8613
8614 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8615 Move to...
8616 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8617 ... here.
8618 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8619 Check for STATUS_WX86_BREAKPOINT.
8620 (windows_nat_target::wait): Same.
8621
bdfc1e8a
TV
86222020-04-10 Tom de Vries <tdevries@suse.de>
8623
8624 PR cli/25808
8625 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8626
f4460aec
SM
86272020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8628
8629 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8630 (Write After Approval): Remove Tom de Vries.
8631
a25198bb
BE
86322020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8633
8634 revert partially:
8635 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8636
aac66a4c
SM
8637 * buildsym.c (record_line): Fix undefined behavior and preserve
8638 lines at eof.
a25198bb 8639
206c98a6
KR
86402020-04-09 Kamil Rytarowski <n54@gmx.com>
8641
8642 * auxv.h (svr4_auxv_parse): New.
8643 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8644 and generic_auxv_parse.
8645 (svr4_auxv_parse): Add.
8646 * obsd-tdep.c: Include "auxv.h".
8647 (obsd_auxv_parse): Remove.
8648 (obsd_init_abi): Remove comment.
8649 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8650 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8651 * nbsd-tdep.c: Include "auxv.h".
8652 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8653
71fbdbaf
TT
86542020-04-08 Tom Tromey <tromey@adacore.com>
8655
8656 * nat/windows-nat.h (last_wait_event): Don't declare.
8657 (wait_for_debug_event): Update comment.
8658 * nat/windows-nat.c (last_wait_event): Now static.
8659
2c1d95e8
TT
86602020-04-08 Tom Tromey <tromey@adacore.com>
8661
8662 * windows-nat.c (wait_for_debug_event): Move to
8663 nat/windows-nat.c.
8664 * nat/windows-nat.h (wait_for_debug_event): Declare.
8665 * nat/windows-nat.c (wait_for_debug_event): Move from
8666 windows-nat.c. No longer static.
8667
d2977bc4
TT
86682020-04-08 Tom Tromey <tromey@adacore.com>
8669
8670 * windows-nat.c (get_windows_debug_event): Use
8671 fetch_pending_stop.
8672 * nat/windows-nat.h (fetch_pending_stop): Declare.
8673 * nat/windows-nat.c (fetch_pending_stop): New function.
8674
e758e19c
TT
86752020-04-08 Tom Tromey <tromey@adacore.com>
8676
8677 * windows-nat.c (windows_continue): Use matching_pending_stop and
8678 continue_last_debug_event.
8679 * nat/windows-nat.h (matching_pending_stop)
8680 (continue_last_debug_event): Declare.
8681 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8682 (matching_pending_stop, continue_last_debug_event): New
8683 functions.
8684
8d30e395
TT
86852020-04-08 Tom Tromey <tromey@adacore.com>
8686
8687 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8688 (handle_exception_result): Move to nat/windows-nat.h.
8689 (DEBUG_EXCEPTION_SIMPLE): Remove.
8690 (windows_nat::handle_ms_vc_exception): New function.
8691 (handle_exception): Move to nat/windows-nat.c.
8692 (get_windows_debug_event): Update.
8693 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8694 nat/windows-nat.c.
8695 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8696 (handle_exception_result): Move from windows-nat.c.
8697 (handle_exception): Declare.
8698 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8699 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8700 windows-nat.c.
8701
29de418d
TT
87022020-04-08 Tom Tromey <tromey@adacore.com>
8703
8704 * windows-nat.c (exception_count, event_count): Remove.
8705 (handle_exception, get_windows_debug_event)
8706 (do_initial_windows_stuff): Update.
8707
a816ba18
TT
87082020-04-08 Tom Tromey <tromey@adacore.com>
8709
8710 * windows-nat.c (windows_nat::handle_load_dll)
8711 (windows_nat::handle_unload_dll): Rename. No longer static.
8712 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8713 Declare.
8714
a00caa12
TT
87152020-04-08 Tom Tromey <tromey@adacore.com>
8716
8717 * complaints.h (stop_whining): Declare at top-level.
8718 (complaint): Don't declare stop_whining.
8719
d41b524f
TT
87202020-04-08 Tom Tromey <tromey@adacore.com>
8721
8722 * windows-nat.c (windows_nat::handle_output_debug_string):
8723 Rename. No longer static.
8724 * nat/windows-nat.h (handle_output_debug_string): Declare.
8725
3c76026d
TT
87262020-04-08 Tom Tromey <tromey@adacore.com>
8727
8728 * windows-nat.c (current_process_handle, current_process_id)
8729 (main_thread_id, last_sig, current_event, last_wait_event)
8730 (current_windows_thread, desired_stop_thread_id, pending_stops)
8731 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8732 (display_selectors, fake_create_process)
8733 (get_windows_debug_event): Update.
8734 * nat/windows-nat.h (current_process_handle, current_process_id)
8735 (main_thread_id, last_sig, current_event, last_wait_event)
8736 (current_windows_thread, desired_stop_thread_id, pending_stops)
8737 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8738 * nat/windows-nat.c (current_process_handle, current_process_id)
8739 (main_thread_id, last_sig, current_event, last_wait_event)
8740 (current_windows_thread, desired_stop_thread_id, pending_stops)
8741 (siginfo_er): New globals. Move from windows-nat.c.
8742
9d8679cc
TT
87432020-04-08 Tom Tromey <tromey@adacore.com>
8744
8745 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8746 (handle_load_dll): Update.
8747 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8748
28688adf
TT
87492020-04-08 Tom Tromey <tromey@adacore.com>
8750
8751 * windows-nat.c (enum thread_disposition_type): Move to
8752 nat/windows-nat.h.
8753 (windows_nat::thread_rec): Rename from thread_rec. No longer
8754 static.
8755 (windows_add_thread, windows_nat_target::fetch_registers)
8756 (windows_nat_target::store_registers, handle_exception)
8757 (windows_nat_target::resume, get_windows_debug_event)
8758 (windows_nat_target::get_tib_address)
8759 (windows_nat_target::thread_name)
8760 (windows_nat_target::thread_alive): Update.
8761 * nat/windows-nat.h (enum thread_disposition_type): Move from
8762 windows-nat.c.
8763 (thread_rec): Declare.
8764
4834dad0
TT
87652020-04-08 Tom Tromey <tromey@adacore.com>
8766
8767 * windows-nat.c: Add "using namespace".
8768 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8769 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8770
65bafd5b
TT
87712020-04-08 Tom Tromey <tromey@adacore.com>
8772
8773 * nat/windows-nat.h (struct windows_thread_info): Declare
8774 destructor.
8775 * nat/windows-nat.c (~windows_thread_info): New.
8776
0a4afda3
TT
87772020-04-08 Tom Tromey <tromey@adacore.com>
8778
8779 PR gdb/22992
8780 * windows-nat.c (current_event): Update comment.
8781 (last_wait_event, desired_stop_thread_id): New globals.
8782 (struct pending_stop): New.
8783 (pending_stops): New global.
8784 (windows_nat_target) <stopped_by_sw_breakpoint>
8785 <supports_stopped_by_sw_breakpoint>: New methods.
8786 (windows_fetch_one_register): Add assertions. Adjust PC.
8787 (windows_continue): Handle pending stops. Suspend other threads
8788 when stepping. Use last_wait_event
8789 (wait_for_debug_event): New function.
8790 (get_windows_debug_event): Use wait_for_debug_event. Handle
8791 pending stops. Queue spurious stops.
8792 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8793 (windows_nat_target::kill): Use wait_for_debug_event.
8794 * nat/windows-nat.h (struct windows_thread_info)
8795 <stopped_at_software_breakpoint>: New field.
8796 * nat/windows-nat.c (windows_thread_info::resume): Clear
8797 stopped_at_software_breakpoint.
8798
8e61ebec
TT
87992020-04-08 Tom Tromey <tromey@adacore.com>
8800
8801 * windows-nat.c (enum thread_disposition_type): New.
8802 (thread_rec): Replace "get_context" parameter with "disposition";
8803 change type.
8804 (windows_add_thread, windows_nat_target::fetch_registers)
8805 (windows_nat_target::store_registers, handle_exception)
8806 (windows_nat_target::resume, get_windows_debug_event)
8807 (windows_nat_target::get_tib_address)
8808 (windows_nat_target::thread_name)
8809 (windows_nat_target::thread_alive): Update.
8810
98a03287
TT
88112020-04-08 Tom Tromey <tromey@adacore.com>
8812
8813 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8814 (windows_continue): Use windows_continue::resume.
8815 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8816 resume>: Declare new methods.
8817 * nat/windows-nat.c: New file.
8818 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8819
7c7411bc
TT
88202020-04-08 Tom Tromey <tromey@adacore.com>
8821
8822 * windows-nat.c (windows_add_thread, windows_delete_thread)
8823 (windows_nat_target::fetch_registers)
8824 (windows_nat_target::store_registers, fake_create_process)
8825 (windows_nat_target::resume, windows_nat_target::resume)
8826 (get_windows_debug_event, windows_nat_target::wait)
8827 (windows_nat_target::pid_to_str)
8828 (windows_nat_target::get_tib_address)
8829 (windows_nat_target::get_ada_task_ptid)
8830 (windows_nat_target::thread_name)
8831 (windows_nat_target::thread_alive): Use lwp, not tid.
8832
2950fdf7
TT
88332020-04-08 Tom Tromey <tromey@adacore.com>
8834
8835 * windows-nat.c (handle_exception)
8836 (windows_nat_target::thread_name): Update.
8837 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8838 <name>: Now unique_xmalloc_ptr.
8839
62fe396b
TT
88402020-04-08 Tom Tromey <tromey@adacore.com>
8841
8842 * windows-nat.c (thread_rec)
8843 (windows_nat_target::fetch_registers): Update.
8844 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8845 Update comment.
8846 <debug_registers_changed, reload_context>: Now bool.
8847
e9534bd2
TT
88482020-04-08 Tom Tromey <tromey@adacore.com>
8849
8850 * windows-nat.c (windows_add_thread): Use new.
8851 (windows_init_thread_list, windows_delete_thread): Use delete.
8852 (get_windows_debug_event): Update.
8853 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8854 destructor, and initializers.
8855
ae1f8880
TT
88562020-04-08 Tom Tromey <tromey@adacore.com>
8857
8858 * windows-nat.c (struct windows_thread_info): Remove.
8859 * nat/windows-nat.h: New file.
8860
55a1e039
TT
88612020-04-08 Tom Tromey <tromey@adacore.com>
8862
8863 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8864 (thread_rec, windows_add_thread, windows_delete_thread)
8865 (windows_continue): Update.
8866
93366324
TT
88672020-04-08 Tom Tromey <tromey@adacore.com>
8868
8869 * windows-nat.c (struct windows_thread_info): Remove typedef.
8870 (thread_head): Remove.
8871 (thread_list): New global.
8872 (thread_rec, windows_add_thread, windows_init_thread_list)
8873 (windows_delete_thread, windows_continue): Update.
8874
0f2265e2
SM
88752020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8876
8877 * windows-tdep.h (windows_init_abi): Add comment.
8878 (cygwin_init_abi): New declaration.
8879 * windows-tdep.c: Split signal enumeration in two, one for
8880 Windows and one for Cygwin.
8881 (windows_gdb_signal_to_target): Only deal with signal of the
8882 Windows OS ABI.
8883 (cygwin_gdb_signal_to_target): New function.
8884 (windows_init_abi): Rename to windows_init_abi_common, don't set
8885 gdb_signal_to_target gdbarch method. Add new new function with
8886 this name.
8887 (cygwin_init_abi): New function.
8888 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8889 comment. Don't call windows_init_abi.
8890 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8891 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8892 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8893 i386_windows_init_abi_common, don't call windows_init_abi. Add
8894 a new function of this name.
8895 (i386_cygwin_init_abi): New function.
8896 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8897 OS ABI Cygwin.
8898
3810f182
SM
88992020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8900
8901 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8902 parameter.c.
8903 (dwarf2_read_gdb_index): Update.
8904
063f8e80
KR
89052020-04-07 Kamil Rytarowski <n54@gmx.com>
8906
8907 * nbsd-tdep.c: Include "objfiles.h".
8908 (nbsd_skip_solib_resolver): New.
8909 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8910
85a9510c 89112020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8912
8913 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8914 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8915 with DW_LLE_base_addressx are being emitted in DWARFv5.
8916 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8917 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8918 unsigned integer.
8919
9fc3eaae 89202020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8921
8922 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8923 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8924 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8925 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8926 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8927 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8928 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8929
8930
41144253 89312020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8932
8933 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8934 (read_loclist_index): New function definition.
8935 (lookup_loclist_base): New function definition.
8936 (read_loclist_header): New function definition.
8937 (dwarf2_cu): Add loclist_base and loclist_header field.
8938 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8939 (read_full_die_1): Read the value of DW_AT_loclists_base.
8940 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8941 (read_attribute_value): Handle DW_FORM_loclistx.
8942 (skip_one_die): Handle DW_FORM_loclistx.
8943 (loclist_header): New structure declaration.
8944 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8945
9f4e76a4
SM
89462020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8947
8948 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8949 constructor. Remove `addr` parameter from other constructor and
8950 add `per_cu` parameter.
8951 * dwarf2/read.c (create_partial_symtab): Update.
8952
25c11aca
TV
89532020-04-07 Tom de Vries <tdevries@suse.de>
8954
8955 PR symtab/25796
8956 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8957 (partial_die_info::fixup): Inherit has_const_value.
8958
5707e24b
TV
89592020-04-07 Tom de Vries <tdevries@suse.de>
8960
8961 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8962 symbols without address.
8963
05f00e22
KR
89642020-04-06 Kamil Rytarowski <n54@gmx.com>
8965
8966 * nbsd-nat.h (struct thread_info): Add forward declaration.
8967 (nbsd_nat_target::thread_alive): Add.
8968 (nbsd_nat_target::thread_name): Likewise.
8969 (nbsd_nat_target::update_thread_list): Likewise.
8970 (update_thread_list::post_attach): Likewise.
8971 (post_attach::pid_to_str): Likewise.
8972 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8973 (nbsd_thread_lister): Add.
8974 (nbsd_nat_target::thread_alive): Likewise.
8975 (nbsd_nat_target::thread_name): Likewise.
8976 (nbsd_add_threads): Likewise.
8977 (update_thread_list::post_attach): Likewise.
8978 (nbsd_nat_target::update_thread_list): Likewise.
8979 (post_attach::pid_to_str): Likewise.
8980
6ee448cc
TT
89812020-04-06 Tom Tromey <tromey@adacore.com>
8982
8983 * ada-valprint.c (print_variant_part): Extract the variant field.
8984 (print_field_values): Use the field as the outer value when
8985 recursing.
8986
dea34e8c
TT
89872020-04-06 Tom Tromey <tromey@adacore.com>
8988
8989 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8990 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8991 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8992 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8993 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8994
93689ce9
TT
89952020-04-06 Tom Tromey <tromey@adacore.com>
8996
8997 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8998 TYPE_CODE_ERROR.
8999
79743962
KR
90002020-04-06 Kamil Rytarowski <n54@gmx.com>
9001
9002 * nbsd-tdep.c: Include "gdbarch.h".
9003 Define enum with NetBSD signal numbers.
9004 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9005 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9006 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9007 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9008 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9009 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9010 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9011 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9012 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9013 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9014 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9015 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9016
9e7c9a03
HD
90172020-04-03 Hannes Domani <ssbssa@yahoo.de>
9018
9019 PR gdb/25325
9020 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9021
d9e49b61
TT
90222020-04-03 Tom Tromey <tromey@adacore.com>
9023
9024 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9025 Read constant block.
9026
e0fc5c3f
SM
90272020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9028
9029 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9030 (gdb_bfd_get_full_section_contents): New declaration.
9031 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9032 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9033 gdb_bfd_get_full_section_contents.
9034
e2ff18a0
SM
90352020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9036
9037 * exec.c (build_section_table): Replace internal_error with
9038 gdb_assert.
9039 (section_table_xfer_memory_partial): Likewise.
9040 * mdebugread.c (parse_partial_symbols): Likewise.
9041 * psymtab.c (lookup_partial_symbol): Likewise.
9042 * utils.c (wrap_here): Likewise.
9043
0830d301
TT
90442020-04-02 Tom Tromey <tromey@adacore.com>
9045
9046 * f-lang.c (build_fortran_types): Use arch_type to initialize
9047 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9048
e7da7f8f
TT
90492020-04-02 Tom Tromey <tromey@adacore.com>
9050
9051 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9052 of attributes.
9053
c90d28ac
AB
90542020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9055 Bernd Edlinger <bernd.edlinger@hotmail.de>
9056 Tom Tromey <tromey@adacore.com>
9057
9058 * buildsym.c (buildsym_compunit::record_line): Remove
9059 deduplication code.
9060
1aa98955
TV
90612020-04-02 Tom de Vries <tdevries@suse.de>
9062
9063 PR ada/24671
9064 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9065
d3214198
TV
90662020-04-02 Tom de Vries <tdevries@suse.de>
9067
9068 * dwarf2/read.c (dwarf2_gdb_index_functions,
9069 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9070 NULL.
9071 * psymtab.c (psym_lookup_global_symbol_language): New function.
9072 (psym_functions): Init psym_lookup_global_symbol_language with
9073 psym_lookup_global_symbol_language.
9074 * symfile-debug.c (debug_sym_quick_functions): Init
9075 lookup_global_symbol_language with NULL.
9076 * symfile.c (set_initial_language): Remove fixme comment.
9077 * symfile.h (struct quick_symbol_functions): Add
9078 lookup_global_symbol_language.
9079 * symtab.c (find_quick_global_symbol_language): New function.
9080 (find_main_name): Use find_quick_global_symbol_language.
9081
2836752f
SM
90822020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9083
9084 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9085
64dc2d4b
BE
90862020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9087
9088 * buildsym.c (record_line): Fix undefined behavior and preserve
9089 lines at eof.
9090
bbe3dc41
BE
90912020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9092
9093 * buildsym.c (record_line): Fix the resizing condition.
9094
6b4a335b
TT
90952020-04-01 Tom Tromey <tom@tromey.com>
9096
9097 * value.h (value_literal_complex): Add comment.
9098 * valops.c (value_literal_complex): Refer to value.h.
9099
3638a098
TT
91002020-04-01 Tom Tromey <tom@tromey.com>
9101
9102 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9103 (scalar_type): New rule, from typebase.
9104 (typebase): Use scalar_type. Recognize complex types.
9105 (field_name): Handle FLOAT_KEYWORD.
9106 (ident_tokens): Add _Complex and __complex__.
9107
c34e8714
TT
91082020-04-01 Tom Tromey <tom@tromey.com>
9109
9110 PR exp/25299:
9111 * valarith.c (promotion_type, complex_binop): New functions.
9112 (scalar_binop): Handle complex numbers. Use promotion_type.
9113 (value_pos, value_neg, value_complement): Handle complex numbers.
9114
fa649bb7
TT
91152020-04-01 Tom Tromey <tom@tromey.com>
9116
9117 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9118 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9119 (parse_number): Handle complex numbers.
9120
981c08ce
TT
91212020-04-01 Tom Tromey <tom@tromey.com>
9122
9123 * c-valprint.c (c_decorations): Change complex suffix to "i".
9124
4c99290d
TT
91252020-04-01 Tom Tromey <tom@tromey.com>
9126
9127 * valprint.c (generic_value_print_complex): Use accessors.
9128 * value.h (value_real_part, value_imaginary_part): Declare.
9129 * valops.c (value_real_part, value_imaginary_part): New
9130 functions.
9131 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9132
5b930b45
TT
91332020-04-01 Tom Tromey <tom@tromey.com>
9134
9135 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9136 (read_range_type): Update.
9137 * mdebugread.c (basic_type): Update.
9138 * go-lang.c (build_go_types): Use init_complex_type.
9139 * gdbtypes.h (struct main_type) <complex_type>: New member.
9140 (init_complex_type): Update.
9141 (arch_complex_type): Don't declare.
9142 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9143 Make name if none given. Use alloc_type_copy. Look for cached
9144 complex type.
9145 (arch_complex_type): Remove.
9146 (gdbtypes_post_init): Use init_complex_type.
9147 * f-lang.c (build_fortran_types): Use init_complex_type.
9148 * dwarf2/read.c (read_base_type): Update.
9149 * d-lang.c (build_d_types): Use init_complex_type.
9150 * ctfread.c (read_base_type): Update.
9151
53cccef1
TBA
91522020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9153
9154 * infrun.c (stop_all_threads): Update assertion, plus when
9155 stopping threads, take into account that we might be trying
9156 to stop an all-stop target.
9157 (stop_waiting): Call 'stop_all_threads' if there exists a
9158 non-stop target.
9159
a0714d30
TBA
91602020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9161
9162 * target.h (exists_non_stop_target): New function declaration.
9163 * target.c (exists_non_stop_target): New function.
9164
60e22c1e
HD
91652020-04-01 Hannes Domani <ssbssa@yahoo.de>
9166
9167 PR gdb/24789
9168 * eval.c (is_integral_or_integral_reference): New function.
9169 (evaluate_subexp_standard): Allow integer references in
9170 pointer arithmetic.
9171
e139a727
TBA
91722020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9173
9174 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9175 check for no ptid in the stop reply when the target is non-stop.
9176
e0802d59
TT
91772020-04-01 Tom Tromey <tromey@adacore.com>
9178
9179 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9180 "name" parameter to rvalue reference. Initialize m_name_holder.
9181 <lookup_name_info>: New overloads.
9182 <name>: Return gdb::string_view.
9183 <c_str>: New method.
9184 <make_ignore_params>: Update.
9185 <search_name_hash>: Update.
9186 <language_lookup_name>: Return const char *.
9187 <m_name>: Change type.
9188 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9189 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9190 (lookup_name_info::match_any): Update.
9191 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9192 Update.
9193 * minsyms.c (linkage_name_str): Update.
9194 * language.c (default_symbol_name_matcher): Update.
9195 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9196 Update.
9197 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9198 (ada_lookup_name_info::ada_lookup_name_info): Update.
9199 (literal_symbol_name_matcher): Update.
9200
8c072cb6
TT
92012020-04-01 Tom Tromey <tromey@adacore.com>
9202
9203 * psymtab.c (psymtab_search_name): Remove function.
9204 (psym_lookup_symbol): Create search name and lookup name here.
9205 (lookup_partial_symbol): Remove "name" parameter; add
9206 lookup_name.
9207 (psym_expand_symtabs_for_function): Update.
9208
6f29a534
TT
92092020-03-31 Joel Jones <joelkevinjones@gmail.com>
9210
9211 PR tui/25597:
9212 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9213
af62665e
TT
92142020-03-31 Tom Tromey <tromey@adacore.com>
9215
9216 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9217 memcpy.
9218
d1a89da5
NC
92192020-03-30 Nelson Chu <nelson.chu@sifive.com>
9220
9221 * features/riscv/32bit-csr.xml: Regenerated.
9222 * features/riscv/64bit-csr.xml: Regenerated.
9223
d8af9068
TT
92242020-03-30 Tom Tromey <tromey@adacore.com>
9225
9226 * ada-valprint.c (print_variant_part): Update.
9227 * ada-lang.h (ada_which_variant_applies): Update.
9228 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9229 outer_valaddr parameters; replace with "outer" value parameter.
9230 (to_fixed_variant_branch_type): Update.
9231
227c0bf4
PFC
92322020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9233
9234 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9235 <list>. Remove inclusion of observable.h.
9236 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9237 (struct arch_lwp_info): New struct.
9238 (class ppc_linux_dreg_interface): New class.
9239 (struct ppc_linux_process_info): New struct.
9240 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9241 <low_new_clone, low_forget_process, low_prepare_to_resume>
9242 <copy_thread_dreg_state, mark_thread_stale>
9243 <mark_debug_registers_changed, register_hw_breakpoint>
9244 <clear_hw_breakpoint, register_wp, clear_wp>
9245 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9246 <num_memory_accesses, get_trigger_type>
9247 <create_watchpoint_request, hwdebug_point_cmp>
9248 <init_arch_lwp_info, get_arch_lwp_info>
9249 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9250 methods.
9251 <struct ptid_hash>: New inner struct.
9252 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9253 members.
9254 (saved_dabr_value, hwdebug_info, max_slots_number)
9255 (struct hw_break_tuple, struct thread_points, ppc_threads)
9256 (have_ptrace_hwdebug_interface)
9257 (hwdebug_find_thread_points_by_tid)
9258 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9259 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9260 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9261 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9262 use m_dreg_interface.
9263 (hwdebug_point_cmp): Change to...
9264 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9265 reference arguments instead of pointers.
9266 (ppc_linux_nat_target::ranged_break_num_registers): Use
9267 m_dreg_interface.
9268 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9269 m_dreg_interface. Call register_hw_breakpoint.
9270 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9271 m_dreg_interface. Call clear_hw_breakpoint.
9272 (get_trigger_type): Change to...
9273 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9274 comment.
9275 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9276 use m_dreg_interface. Call register_hw_breakpoint.
9277 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9278 use m_dreg_interface. Call clear_hw_breakpoint.
9279 (can_use_watchpoint_cond_accel): Change to...
9280 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9281 method. Update comment, use m_dreg_interface and
9282 m_process_info.
9283 (calculate_dvc): Change to...
9284 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9285 m_dreg_interface.
9286 (num_memory_accesses): Change to...
9287 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9288 (check_condition): Change to...
9289 (ppc_linux_nat_target::check_condition): ...this method.
9290 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9291 comment, use m_dreg_interface.
9292 (create_watchpoint_request): Change to...
9293 (ppc_linux_nat_target::create_watchpoint_request): ...this
9294 method. Use m_dreg_interface.
9295 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9296 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9297 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9298 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9299 (ppc_linux_nat_target::low_forget_process)
9300 (ppc_linux_nat_target::low_new_fork)
9301 (ppc_linux_nat_target::low_new_clone)
9302 (ppc_linux_nat_target::low_delete_thread)
9303 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9304 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9305 only call mark_thread_stale.
9306 (ppc_linux_thread_exit): Remove.
9307 (ppc_linux_nat_target::stopped_data_address): Change to...
9308 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9309 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9310 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9311 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9312 comment. Call low_stopped_data_address.
9313 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9314 m_dreg_interface.
9315 (ppc_linux_nat_target::masked_watch_num_registers): Use
9316 m_dreg_interface.
9317 (ppc_linux_nat_target::copy_thread_dreg_state)
9318 (ppc_linux_nat_target::mark_thread_stale)
9319 (ppc_linux_nat_target::mark_debug_registers_changed)
9320 (ppc_linux_nat_target::register_hw_breakpoint)
9321 (ppc_linux_nat_target::clear_hw_breakpoint)
9322 (ppc_linux_nat_target::register_wp)
9323 (ppc_linux_nat_target::clear_wp)
9324 (ppc_linux_nat_target::init_arch_lwp_info)
9325 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9326 (_initialize_ppc_linux_nat): Remove observer callback.
9327
4db10d8f
PFC
93282020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9329
9330 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9331 (ppc_linux_nat_target::auxv_parse)
9332 (ppc_linux_nat_target::read_description)
9333 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9334 Move up.
9335
1310c1b0
PFC
93362020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9337
9338 * linux-nat.h (low_new_clone): New method.
9339 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9340
69b037c3
SM
93412020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9342
9343 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9344 (dbx_expand_psymtab): ... this.
9345 (start_psymtab): Update.
9346 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9347 (mdebug_expand_psymtab): ... this.
9348 (parse_partial_symbols): Update.
9349 (new_psymtab): Update.
9350 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9351 (xcoff_expand_psymtab): ... this.
9352 (xcoff_start_psymtab): Update.
9353
48993951
SM
93542020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9355
9356 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9357 <expand_dependencies>: ... this.
9358 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9359 (partial_symtab::expand_dependencies): ... this.
9360 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9361 Update.
9362 (dwarf2_psymtab::expand_psymtab): Update.
9363 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9364 * mdebugread.c (psymtab_to_symtab_1): Update.
9365 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9366
3ad83046
SM
93672020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9368
9369 * psympriv.h (discard_psymtab): Remove.
9370 * dbxread.c (dbx_end_psymtab): Update.
9371 * xcoffread.c (xcoff_end_psymtab): Update.
9372
4d1b9ab6
TT
93732020-03-28 Tom Tromey <tom@tromey.com>
9374
9375 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9376 comment.
9377
f1749218
TT
93782020-03-28 Tom Tromey <tom@tromey.com>
9379
9380 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9381
ebea7626
HD
93822020-03-27 Hannes Domani <ssbssa@yahoo.de>
9383
9384 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9385
a879b4d5
JB
93862020-03-26 John Baldwin <jhb@FreeBSD.org>
9387
9388 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9389
0826b30a
TT
93902020-03-26 Tom Tromey <tom@tromey.com>
9391
9392 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9393 (mark_common_block_symbol_computed, read_tag_string_type)
9394 (attr_to_dynamic_prop, read_subrange_type): Update.
9395 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9396 to be methods on struct attribute.
9397 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9398 (read_call_site_scope, partial_die_info::read)
9399 (partial_die_info::read, lookup_die_type, follow_die_ref):
9400 Update.
9401 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9402 from dwarf2_get_ref_die_offset.
9403 (attribute::constant_value): New method, from
9404 dwarf2_get_attr_constant_value.
9405 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9406 Declare method.
9407 <constant_value>: New method.
9408
2b2558bf
TT
94092020-03-26 Tom Tromey <tom@tromey.com>
9410
9411 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9412 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9413 (dwarf_type_encoding_name): Move to stringify.c.
9414 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9415 * dwarf2/stringify.c: New file.
9416 * dwarf2/stringify.h: New file.
9417
eeb64781
TT
94182020-03-26 Tom Tromey <tom@tromey.com>
9419
9420 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9421 Rewrite.
9422
a39fdb41
TT
94232020-03-26 Tom Tromey <tom@tromey.com>
9424
9425 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9426 methods.
9427 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9428 (lookup_ranges_base): Likewise.
9429 (read_cutu_die_from_dwo, read_full_die_1): Update.
9430
436c571c
TT
94312020-03-26 Tom Tromey <tom@tromey.com>
9432
9433 * dwarf2/read.c (read_import_statement, read_file_scope)
9434 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9435 (read_lexical_block_scope, read_call_site_scope)
9436 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9437 (handle_struct_member_die, process_structure_scope)
9438 (update_enumeration_type_from_children)
9439 (process_enumeration_scope, read_array_type, read_common_block)
9440 (read_namespace, read_module, read_subroutine_type): Update.
9441 (sibling_die): Remove.
9442
052c8bb8
TT
94432020-03-26 Tom Tromey <tom@tromey.com>
9444
9445 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9446 (build_type_psymtabs_reader, read_structure_type)
9447 (read_enumeration_type, read_full_die_1): Update.
9448 (dwarf2_attr_no_follow): Move to die.h.
9449 * dwarf2/die.h (struct die_info) <attr>: New method.
9450
2b24b6e4
TT
94512020-03-26 Tom Tromey <tom@tromey.com>
9452
9453 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9454 <base_address>: Now an optional.
9455 (dwarf2_find_base_address, dwarf2_rnglists_process)
9456 (dwarf2_ranges_process, fill_in_loclist_baton)
9457 (dwarf2_symbol_mark_computed): Update.
9458
c2d50fd0
TT
94592020-03-26 Tom Tromey <tom@tromey.com>
9460
9461 * dwarf2/read.c (struct die_info): Move to die.h.
9462 * dwarf2/die.h: New file.
9463
0df7ad3a
TT
94642020-03-26 Tom Tromey <tom@tromey.com>
9465
9466 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9467 * dwarf2/read.c
9468 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9469 Move to line-header.c.
9470 (read_checked_initial_length_and_offset, read_formatted_entries):
9471 Likewise.
9472 (dwarf_decode_line_header): Split into two.
9473 * dwarf2/line-header.c
9474 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9475 Move from read.c.
9476 (read_checked_initial_length_and_offset, read_formatted_entries):
9477 Likewise.
9478 (dwarf_decode_line_header): New function, split from read.c.
9479
86c0bb4c
TT
94802020-03-26 Tom Tromey <tom@tromey.com>
9481
9482 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9483 Declare method.
9484 * dwarf2/read.c (read_attribute_value): Update.
9485 (dwarf2_per_objfile::read_line_string): Rename from
9486 read_indirect_line_string.
9487 (read_formatted_entries): Update.
9488
2ef46c2f
TT
94892020-03-26 Tom Tromey <tom@tromey.com>
9490
9491 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9492 variable.
9493
4f9c1eda
TT
94942020-03-26 Tom Tromey <tom@tromey.com>
9495
9496 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9497 const.
9498 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9499 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9500 parameter const.
9501
5a0e026f
TT
95022020-03-26 Tom Tromey <tom@tromey.com>
9503
9504 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9505 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9506 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9507 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9508
8844c11b
TT
95092020-03-26 Tom Tromey <tom@tromey.com>
9510
9511 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9512 file_names_size, file_full_name, file_file_name>: Use const.
9513 <file_name_at, file_names>: Add const overload.
9514 * dwarf2/line-header.c (line_header::file_file_name)
9515 (line_header::file_full_name): Update.
9516
c90ec28a
TT
95172020-03-26 Tom Tromey <tom@tromey.com>
9518
9519 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9520 (macro_start_file, consume_improper_spaces)
9521 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9522 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9523 (dwarf_decode_macros): Move to macro.c.
9524 * dwarf2/macro.c: New file.
9525 * dwarf2/macro.h: New file.
9526 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9527
4f44ae6c
TT
95282020-03-26 Tom Tromey <tom@tromey.com>
9529
9530 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9531 method.
9532 * dwarf2/section.c: New method. From
9533 read_indirect_string_at_offset_from.
9534 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9535 (read_indirect_string_at_offset_from): Move to section.c.
9536 (read_indirect_string_at_offset): Rewrite.
9537 (read_indirect_line_string_at_offset): Remove.
9538 (read_indirect_string, read_indirect_line_string)
9539 (dwarf_decode_macro_bytes): Update.
9540
a0194fa8
TT
95412020-03-26 Tom Tromey <tom@tromey.com>
9542
9543 * dwarf2/section.h (struct dwarf2_section_info)
9544 <overload_complaint>: Declare.
9545 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9546 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9547 Rename from dwarf2_section_buffer_overflow_complaint.
9548 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9549 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9550
3d27bbdb
TT
95512020-03-26 Tom Tromey <tom@tromey.com>
9552
9553 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9554 Declare.
9555 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9556 Move from read.c.
9557 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9558 to section.c.
9559
9eac9650
TT
95602020-03-26 Tom Tromey <tom@tromey.com>
9561
9562 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9563
bf80d710
TT
95642020-03-26 Tom Tromey <tom@tromey.com>
9565
9566 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9567 "builder".
9568 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9569 parameter.
9570 (dwarf_decode_macros): Update.
9571
0314b390
TT
95722020-03-26 Tom Tromey <tom@tromey.com>
9573
9574 * dwarf2/read.c (read_attribute_value): Update.
9575 (read_indirect_string_from_dwz): Move to dwz.c; change into
9576 method.
9577 (dwarf_decode_macro_bytes): Update.
9578 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9579 * dwarf2/dwz.c: New file.
9580 * Makefile.in (COMMON_SFILES): Add dwz.c.
9581
9fda78b6
TT
95822020-03-26 Tom Tromey <tom@tromey.com>
9583
9584 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9585 * dwarf2/read.c: Add include.
9586 * dwarf2/index-write.c: Add include.
9587 * dwarf2/index-cache.c: Add include.
9588 * dwarf2/dwz.h: New file.
9589
33aa3c10
TT
95902020-03-25 Tom Tromey <tom@tromey.com>
9591
9592 * compile/compile-object-load.c (get_out_value_type): Mention
9593 correct symbol name in error message.
9594
d503b685
HD
95952020-03-25 Hannes Domani <ssbssa@yahoo.de>
9596
9597 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9598
7b1eff95
TV
95992020-03-25 Tom de Vries <tdevries@suse.de>
9600
9601 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9602 * symmisc.c (dump_symtab_1): Print user and includes fields.
9603 (maintenance_info_symtabs): Same.
9604
dd895392
AB
96052020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9606
9607 PR gdb/25534
9608 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9609 (riscv_regcache_cooked_write): New function.
9610 (riscv_push_dummy_call): Use new function.
9611 (riscv_return_value): Likewise.
9612
5ab2fbf1
SM
96132020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9614
9615 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9616 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9617 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9618 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9619 * infrun.c (follow_fork): Likewise.
9620 (follow_fork_inferior): Likewise.
9621 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9622 * linux-nat.h (class linux_nat_target): Likewise.
9623 * remote.c (class remote_target) <follow_fork>: Likewise.
9624 (remote_target::follow_fork): Likewise.
9625 * target-delegates.c: Re-generate.
9626 * target.c (default_follow_fork): Likewise.
9627 (target_follow_fork): Likewise.
9628 * target.h (struct target_ops) <follow_fork>: Likewise.
9629 (target_follow_fork): Likewise.
9630
a64fafb5
TV
96312020-03-24 Tom de Vries <tdevries@suse.de>
9632
9633 * psymtab.c (maintenance_info_psymtabs): Print user field.
9634
fe26d3a3
TT
96352020-03-20 Tom Tromey <tromey@adacore.com>
9636
9637 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9638 const.
9639 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9640 const.
9641
c884cc46
SM
96422020-03-20 Simon Marchi <simon.marchi@efficios.com>
9643
9644 * ptrace.m4: Don't check for ptrace declaration.
9645 * config.in: Re-generate.
9646 * configure: Re-generate.
9647 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9648 not defined.
9649
1ff700c2
KR
96502020-03-20 Kamil Rytarowski <n54@gmx.com>
9651
9652 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9653 `PTRACE_TYPE_RET'.
9654 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9655 * sparc-nat.c (gdb_ptrace): Likewise.
9656 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9657
f7d4f0b1
TT
96582020-03-20 Tom Tromey <tromey@adacore.com>
9659
9660 * c-exp.y (lex_one_token): Fix assert.
9661
f67210ff
TT
96622020-03-20 Tom Tromey <tromey@adacore.com>
9663
9664 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9665 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9666 strncpy call.
9667
1773be9e
TT
96682020-03-20 Tom Tromey <tromey@adacore.com>
9669
9670 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9671
70304be9
TT
96722020-03-20 Tom Tromey <tromey@adacore.com>
9673
9674 * ada-valprint.c (print_variant_part): Remove parameters; switch
9675 to value-based API.
9676 (print_field_values): Likewise.
9677 (ada_val_print_struct_union): Likewise.
9678 (ada_value_print_1): Update.
9679
9faa006d
KR
96802020-03-20 Kamil Rytarowski <n54@gmx.com>
9681
9682 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9683 nbsd_nat_target instead of inf_ptrace_target.
9684 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9685 nbsd_nat_target.
9686
4a90f062
KR
96872020-03-20 Kamil Rytarowski <n54@gmx.com>
9688
9689 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9690 it to the ptrace call.
9691 * (store_registers): Likewise.
9692
96932020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9694
9695 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9696 it to the ptrace call.
9697 * (store_registers): Likewise.
9698
2d07da27
LM
96992020-03-19 Luis Machado <luis.machado@linaro.org>
9700
9701 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9702 valid, fetch vg value from ptrace.
9703
f09db380
KR
97042020-03-19 Kamil Rytarowski <n54@gmx.com>
9705 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9706 * inf-ptrace.c: Likewise.
9707 * (gdb_ptrace): Add.
9708 * (inf_ptrace_target::resume): Update.
9709 * (inf_ptrace_target::xfer_partial): Likewise.
9710 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9711 * (inf_ptrace_peek_poke): Update.
9712
fcc7376e
KR
97132020-03-19 Kamil Rytarowski <n54@gmx.com>
9714
9715 * x86-bsd-nat.c (gdb_ptrace): New.
9716 * (x86bsd_dr_set): Add new argument `ptid'.
9717 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9718 x86bsd_dr_set_addr): Update.
9719
cada5fc9
AB
97202020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9721
9722 * remote.c (remote_target::process_stop_reply): Handle events for
9723 all threads differently.
9724
19a2740f
AB
97252020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9726
9727 * completer.c (completion_tracker::remove_completion): Define new
9728 function.
9729 * completer.h (completion_tracker::remove_completion): Declare new
9730 function.
9731 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9732 when adding a C++ function symbol.
9733
724fd9ba
AB
97342020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9735
9736 * completer.c (completion_tracker::completion_hash_entry): Define
9737 new class.
9738 (advance_to_filename_complete_word_point): Call
9739 recompute_lowest_common_denominator.
9740 (completion_tracker::completion_tracker): Call discard_completions
9741 to setup the hash table.
9742 (completion_tracker::discard_completions): Allow for being called
9743 from the constructor, pass new equal function, and element deleter
9744 when constructing the hash table. Initialise new class member
9745 variables.
9746 (completion_tracker::maybe_add_completion): Remove use of
9747 m_entries_vec, and store more information into m_entries_hash.
9748 (completion_tracker::recompute_lcd_visitor): New function, most
9749 content taken from...
9750 (completion_tracker::recompute_lowest_common_denominator):
9751 ...here, this now just visits each item in the hash calling the
9752 above visitor.
9753 (completion_tracker::build_completion_result): Remove use of
9754 m_entries_vec, call recompute_lowest_common_denominator.
9755 * completer.h (completion_tracker::have_completions): Remove use
9756 of m_entries_vec.
9757 (completion_tracker::completion_hash_entry): Declare new class.
9758 (completion_tracker::recompute_lowest_common_denominator): Change
9759 function signature.
9760 (completion_tracker::recompute_lcd_visitor): Declare new function.
9761 (completion_tracker::m_entries_vec): Delete.
9762 (completion_tracker::m_entries_hash): Initialize to NULL.
9763 (completion_tracker::m_lowest_common_denominator_valid): New
9764 member variable.
9765 (completion_tracker::m_lowest_common_denominator_max_length): New
9766 member variable.
9767
5a82b8a1
KR
97682020-03-17 Kamil Rytarowski <n54@gmx.com>
9769
9770 * regformats/regdef.h: Put reg in gdb namespace.
9771
fb516a69
KR
97722020-03-17 Kamil Rytarowski <n54@gmx.com>
9773
9774 * i386-bsd-nat.c (gdb_ptrace): New.
9775 * (i386bsd_fetch_inferior_registers,
9776 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9777 * (i386bsd_fetch_inferior_registers,
9778 i386bsd_store_inferior_registers) Use gdb_ptrace.
9779
1c0aa1fb
KR
97802020-03-17 Kamil Rytarowski <n54@gmx.com>
9781
9782 * amd64-bsd-nat.c (gdb_ptrace): New.
9783 * (amd64bsd_fetch_inferior_registers,
9784 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9785 * (amd64bsd_fetch_inferior_registers,
9786 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9787
5ccd2fb7
KR
97882020-03-17 Kamil Rytarowski <n54@gmx.com>
9789
9790 * user-regs.c (user_reg::read): Rename to...
9791 (user_reg::xread): ...this.
9792 * (append_user_reg): Rename argument `read' to `xread'.
9793 * (user_reg_add_builtin): Likewise.
9794 * (user_reg_add): Likewise.
9795 * (value_of_user_reg): Likewise.
9796
2108a63a
KR
97972020-03-17 Kamil Rytarowski <n54@gmx.com>
9798
9799 * sparc-nat.c (gdb_ptrace): New.
9800 * sparc-nat.c (sparc_fetch_inferior_registers)
9801 (sparc_store_inferior_registers) Remove obsolete comment.
9802 * sparc-nat.c (sparc_fetch_inferior_registers)
9803 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9804 * sparc-nat.c (sparc_fetch_inferior_registers)
9805 (sparc_store_inferior_registers) Use gdb_ptrace.
9806
a225c9a8
KR
98072020-03-17 Kamil Rytarowski <n54@gmx.com>
9808
9809 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9810 it to the ptrace call.
9811 * sh-nbsd-nat.c (store_registers): Likewise.
9812
98097623
KR
98132020-03-17 Kamil Rytarowski <n54@gmx.com>
9814
9815 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9816 nbsd_nat_target instead of inf_ptrace_target.
9817 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9818 nbsd_nat_target.
9819
9e38d619
KR
98202020-03-17 Kamil Rytarowski <n54@gmx.com>
9821
9822 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9823
a2ecbe9f
KR
98242020-03-17 Kamil Rytarowski <n54@gmx.com>
9825
9826 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9827 <sys/sysctl.h>.
9828 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9829
58990295
TV
98302020-03-17 Tom de Vries <tdevries@suse.de>
9831
9832 PR gdb/23710
9833 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9834 fields.
9835 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9836 fields.
9837 (process_imported_unit_die): Skip import of c++ CUs.
9838
771dd3a8
TT
98392020-03-16 Tom Tromey <tom@tromey.com>
9840
9841 * p-valprint.c (pascal_object_print_value): Initialize
9842 base_value.
9843
817a7585
AK
98442020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9845 Shahab Vahedi <shahab@synopsys.com>
9846
9847 * Makefile.in: Add arch/arc.o
9848 * configure.tgt: Likewise.
9849 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9850 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9851 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9852 * arc-tdep.h (arc_read_description): Add proto type.
9853 * arch/arc.c: New file.
9854 * arch/arc.h: Likewise.
9855 * features/Makefile: Replace old target descriptions with new.
9856 * features/arc-arcompact.c: Remove.
9857 * features/arc-arcompact.xml: Likewise.
9858 * features/arc-v2.c: Likewise
9859 * features/arc-v2.xml: Likewise
9860 * features/arc/aux-arcompact.xml: New file.
9861 * features/arc/aux-v2.xml: Likewise.
9862 * features/arc/core-arcompact.xml: Likewise.
9863 * features/arc/core-v2.xml: Likewise.
9864 * features/arc/aux-arcompact.c: Generate.
9865 * features/arc/aux-v2.c: Likewise.
9866 * features/arc/core-arcompact.c: Likewise.
9867 * features/arc/core-v2.c: Likewise.
9868 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9869
67430cd0
TT
98702020-03-16 Tom Tromey <tromey@adacore.com>
9871
9872 PR gdb/25663:
9873 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9874 putting value into bcache.
9875
30efb6c7
SM
98762020-03-16 Simon Marchi <simon.marchi@efficios.com>
9877
9878 PR gdb/21500
9879 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9880 to...
9881 (amd64_windows_init_abi_common): ... this. Don't set size of
9882 long type.
9883 (amd64_windows_init_abi): New function.
9884 (amd64_cygwin_init_abi): New function.
9885 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9886 the Cygwin OS ABI.
9887 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9888 comment.
9889
8db52437
SM
98902020-03-16 Simon Marchi <simon.marchi@efficios.com>
9891
9892 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9893 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9894 (pe_import_directory_entry): New struct type.
9895 (is_linked_with_cygwin_dll): New function.
9896 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9897 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9898 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9899
5982a56a
SM
99002020-03-16 Simon Marchi <simon.marchi@efficios.com>
9901
9902 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9903 i386_cygwin_core_osabi_sniffer.
9904
7a1998df
SM
99052020-03-16 Simon Marchi <simon.marchi@efficios.com>
9906
9907 * i386-cygwin-tdep.c: Rename to...
9908 * i386-windows-tdep.c: ... this.
9909 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9910 i386-windows-tdep.c.
9911 * configure.tgt: Likewise.
9912
053205cc
SM
99132020-03-16 Simon Marchi <simon.marchi@efficios.com>
9914
9915 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9916 * osabi.c (gdb_osabi_names): Add "Windows".
9917 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9918 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9919 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9920 i386_cygwin_osabi_sniffer.
9921 (_initialize_i386_cygwin_tdep): Register OS ABI
9922 GDB_OSABI_WINDOWS for i386.
9923 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9924 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9925 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9926 for x86-64.
9927 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9928 when the target matches '*-*-mingw*'.
9929
fe4b2ee6
SM
99302020-03-16 Simon Marchi <simon.marchi@efficios.com>
9931
9932 * defs.h (enum gdb_osabi): Move to...
9933 * osabi.h (enum gdb_osabi): ... here.
9934 * gdbarch.sh: Include osabi.h in gdbarch.h.
9935 * gdbarch.h: Re-generate.
9936
cb9b645d
SM
99372020-03-16 Simon Marchi <simon.marchi@efficios.com>
9938
9939 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9940 function.
9941 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9942
3293bbaf
TT
99432020-03-14 Tom Tromey <tom@tromey.com>
9944
9945 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9946 for C++.
9947 (c_type_print_modifier): Likewise. Add "language" parameter.
9948 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9949 (c_type_print_base_1): Update.
9950 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9951 constants.
9952 * type-stack.c (type_stack::insert): Handle tp_atomic and
9953 tp_restrict.
9954 (type_stack::follow_type_instance_flags): Likewise.
9955 (type_stack::follow_types): Likewise. Merge type-following code.
9956 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9957 (space_identifier, cv_with_space_id)
9958 (const_or_volatile_or_space_identifier_noopt)
9959 (const_or_volatile_or_space_identifier): Remove.
9960 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9961 rules.
9962 (ptr_operator, typebase): Update.
9963 (enum token_flag) <FLAG_C>: New constant.
9964 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9965 "_Atomic".
9966 (lex_one_token): Handle FLAG_C.
9967
154151a6
KR
99682020-03-14 Kamil Rytarowski <n54@gmx.com>
9969
9970 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9971 it to the ptrace call.
9972 * m68k-bsd-nat.c (store_registers): Likewise.
9973
bc107784
KR
99742020-03-14 Kamil Rytarowski <n54@gmx.com>
9975
9976 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9977 gdb_byte *.
9978 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9979 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9980 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9981
01a80117
KR
99822020-03-14 Kamil Rytarowski <n54@gmx.com>
9983
9984 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9985 nbsd_nat_target instead of inf_ptrace_target.
9986 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9987 nbsd_nat_target.
9988
f90280ca
KR
99892020-03-14 Kamil Rytarowski <n54@gmx.com>
9990
9991 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9992 register_t.
9993
6def66f1
KR
99942020-03-14 Kamil Rytarowski <n54@gmx.com>
9995
9996 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9997 it to the ptrace call.
9998 * alpha-bsd-nat.c (store_registers): Likewise.
9999
66eaca97
KR
100002020-03-14 Kamil Rytarowski <n54@gmx.com>
10001
10002 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10003 includes.
10004 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10005 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10006 fill_fpregset): Likewise.
10007
4fed520b
KR
100082020-03-14 Kamil Rytarowski <n54@gmx.com>
10009
10010 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10011 nbsd_nat_target instead of inf_ptrace_target.
10012 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10013 nbsd_nat_target.
10014
2190cf06
KR
100152020-03-14 Kamil Rytarowski <n54@gmx.com>
10016
10017 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10018 register_t.
10019
75c56d3d
KR
100202020-03-14 Kamil Rytarowski <n54@gmx.com>
10021
10022 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10023 it to the ptrace call.
10024 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10025 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10026 * arm-nbsd-nat.c (store_register): Likewise.
10027 * arm-nbsd-nat.c (store_regs): Likewise.
10028 * arm-nbsd-nat.c (store_fp_register): Likewise.
10029 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10030
6018d381
KR
100312020-03-14 Kamil Rytarowski <n54@gmx.com>
10032
10033 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10034 nbsd_nat_target instead of inf_ptrace_target.
10035 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10036 nbsd_nat_target.
10037
013f99f0
KR
100382020-03-14 Kamil Rytarowski <n54@gmx.com>
10039
10040 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10041 it to the ptrace call.
10042 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10043
12753073
KR
100442020-03-14 Kamil Rytarowski <n54@gmx.com>
10045
6227b330
KR
10046 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10047 it to the ptrace call.
10048 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10049
100502020-03-14 Kamil Rytarowski <n54@gmx.com>
10051
10052 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10053 gdb_byte *.
12753073
KR
10054 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10055
d5be5fa4
KR
100562020-03-14 Kamil Rytarowski <n54@gmx.com>
10057
10058 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10059 instead of inf_ptrace_target.
10060 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10061 nbsd_nat_target.
10062
8110f842
KR
100632020-03-14 Kamil Rytarowski <n54@gmx.com>
10064
10065 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10066 register_t.
10067
52feded7
KR
100682020-03-14 Kamil Rytarowski <n54@gmx.com>
10069
10070 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10071 register_t.
10072
25567eee
KR
100732020-03-14 Kamil Rytarowski <n54@gmx.com>
10074
10075 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10076 register_t.
10077
426a9c18
TT
100782020-03-13 Tom Tromey <tom@tromey.com>
10079
10080 * value.h (val_print): Don't declare.
10081 * valprint.h (val_print_array_elements)
10082 (val_print_scalar_formatted, generic_val_print): Don't declare.
10083 * valprint.c (generic_val_print_array): Take a struct value.
10084 (generic_val_print_ptr, generic_val_print_memberptr)
10085 (generic_val_print_bool, generic_val_print_int)
10086 (generic_val_print_char, generic_val_print_complex)
10087 (generic_val_print): Remove.
10088 (generic_value_print): Update.
10089 (do_val_print): Remove unused parameters. Don't call
10090 la_val_print.
10091 (val_print): Remove.
10092 (common_val_print): Update. Don't call value_check_printable.
10093 (val_print_scalar_formatted, val_print_array_elements): Remove.
10094 * rust-lang.c (rust_val_print): Remove.
10095 (rust_language_defn): Update.
10096 * p-valprint.c (pascal_val_print): Remove.
10097 (pascal_value_print_inner): Update.
10098 (pascal_object_print_val_fields, pascal_object_print_val):
10099 Remove.
10100 (pascal_object_print_static_field): Update.
10101 * p-lang.h (pascal_val_print): Don't declare.
10102 * p-lang.c (pascal_language_defn): Update.
10103 * opencl-lang.c (opencl_language_defn): Update.
10104 * objc-lang.c (objc_language_defn): Update.
10105 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10106 * m2-lang.h (m2_val_print): Don't declare.
10107 * m2-lang.c (m2_language_defn): Update.
10108 * language.h (struct language_defn) <la_val_print>: Remove.
10109 * language.c (unk_lang_value_print_inner): Rename. Change
10110 argument types.
10111 (unknown_language_defn, auto_language_defn): Update.
10112 * go-valprint.c (go_val_print): Remove.
10113 * go-lang.h (go_val_print): Don't declare.
10114 * go-lang.c (go_language_defn): Update.
10115 * f-valprint.c (f_val_print): Remove.
10116 * f-lang.h (f_value_print): Don't declare.
10117 * f-lang.c (f_language_defn): Update.
10118 * d-valprint.c (d_val_print): Remove.
10119 * d-lang.h (d_value_print): Don't declare.
10120 * d-lang.c (d_language_defn): Update.
10121 * cp-valprint.c (cp_print_value_fields)
10122 (cp_print_value_fields_rtti, cp_print_value): Remove.
10123 (cp_print_static_field): Update.
10124 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10125 (c_val_print_struct, c_val_print_union, c_val_print_int)
10126 (c_val_print_memberptr, c_val_print): Remove.
10127 * c-lang.h (c_val_print_array, cp_print_value_fields)
10128 (cp_print_value_fields_rtti): Don't declare.
10129 * c-lang.c (c_language_defn, cplus_language_defn)
10130 (asm_language_defn, minimal_language_defn): Update.
10131 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10132 (ada_val_print_enum): Take a struct value.
10133 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10134 (ada_val_print): Remove.
10135 (ada_value_print_1): Update.
10136 (printable_val_type): Remove.
10137 * ada-lang.h (ada_val_print): Don't declare.
10138 * ada-lang.c (ada_language_defn): Update.
10139
42331a1e
TT
101402020-03-13 Tom Tromey <tom@tromey.com>
10141
10142 * valprint.c (do_val_print): Update.
10143 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10144 a struct value.
10145 (value_to_value_object_no_release): Declare.
10146 * python/py-value.c (value_to_value_object_no_release): New
10147 function.
10148 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10149 struct value.
10150 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10151 function.
10152 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10153 a struct value.
10154 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10155 Declare.
10156 (gdbscm_apply_val_pretty_printer): Take a struct value.
10157 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10158 value.
10159 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10160 value.
10161 * extension-priv.h (struct extension_language_ops)
10162 <apply_val_pretty_printer>: Take a struct value.
10163 * cp-valprint.c (cp_print_value): Create a struct value.
10164 (cp_print_value): Update.
10165
3a916a97
TT
101662020-03-13 Tom Tromey <tom@tromey.com>
10167
10168 * ada-valprint.c (print_field_values): Call common_val_print.
10169
b59eac37
TT
101702020-03-13 Tom Tromey <tom@tromey.com>
10171
10172 * ada-valprint.c (val_print_packed_array_elements): Remove
10173 bitoffset and val parameters. Call common_val_print.
10174 (ada_val_print_string): Remove offset, address, and original_value
10175 parameters.
10176 (ada_val_print_array): Update.
10177 (ada_value_print_array): New function.
10178 (ada_value_print_1): Call it.
10179
03371129
TT
101802020-03-13 Tom Tromey <tom@tromey.com>
10181
10182 * ada-valprint.c (ada_value_print): Use common_val_print.
10183
2e088f8b
TT
101842020-03-13 Tom Tromey <tom@tromey.com>
10185
10186 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10187
39ef85a8
TT
101882020-03-13 Tom Tromey <tom@tromey.com>
10189
10190 * ada-valprint.c (ada_value_print_num): New function.
10191 (ada_value_print_1): Use it.
10192
b9fa6e07
TT
101932020-03-13 Tom Tromey <tom@tromey.com>
10194
10195 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10196
416595d6
TT
101972020-03-13 Tom Tromey <tom@tromey.com>
10198
10199 * ada-valprint.c (ada_value_print_ptr): New function.
10200 (ada_value_print_1): Use it.
10201
5b5e15ec
TT
102022020-03-13 Tom Tromey <tom@tromey.com>
10203
10204 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10205 call common_val_print.
10206 (ada_val_print_1): Update.
10207 (ada_value_print_1): New function.
10208 (ada_value_print_inner): Rewrite.
10209
fbf54e75
TT
102102020-03-13 Tom Tromey <tom@tromey.com>
10211
10212 * cp-valprint.c (cp_print_value_fields): Update.
10213 (cp_print_value): New function.
10214
64b653ca
TT
102152020-03-13 Tom Tromey <tom@tromey.com>
10216
10217 * m2-valprint.c (m2_value_print_inner): Use
10218 cp_print_value_fields.
10219 * cp-valprint.c (cp_print_value_fields): New function.
10220 * c-valprint.c (c_value_print_struct): New function.
10221 (c_value_print_inner): Use c_value_print_struct.
10222 * c-lang.h (cp_print_value_fields): Declare.
10223
6999f067
TT
102242020-03-13 Tom Tromey <tom@tromey.com>
10225
10226 * c-valprint.c (c_value_print_array): New function.
10227 (c_value_print_inner): Use it.
10228
ce80b8bd
TT
102292020-03-13 Tom Tromey <tom@tromey.com>
10230
10231 * c-valprint.c (c_value_print_memberptr): New function.
10232 (c_value_print_inner): Use it.
10233
2faac269
TT
102342020-03-13 Tom Tromey <tom@tromey.com>
10235
10236 * c-valprint.c (c_value_print_int): New function.
10237 (c_value_print_inner): Use it.
10238
da3e2c29
TT
102392020-03-13 Tom Tromey <tom@tromey.com>
10240
10241 * c-valprint.c (c_value_print_ptr): New function.
10242 (c_value_print_inner): Use it.
10243
50836231
TT
102442020-03-13 Tom Tromey <tom@tromey.com>
10245
10246 * c-valprint.c (c_value_print_inner): Rewrite.
10247
4f412b6e
TT
102482020-03-13 Tom Tromey <tom@tromey.com>
10249
10250 * valprint.c (generic_value_print_complex): New function.
10251 (generic_value_print): Use it.
10252
f5354008
TT
102532020-03-13 Tom Tromey <tom@tromey.com>
10254
10255 * valprint.c (generic_val_print_float): Don't call
10256 val_print_scalar_formatted.
10257 (generic_val_print, generic_value_print): Update.
10258
3eec3b05
TT
102592020-03-13 Tom Tromey <tom@tromey.com>
10260
10261 * valprint.c (generic_value_print_char): New function
10262 (generic_value_print): Use it.
10263
fdddfccb
TT
102642020-03-13 Tom Tromey <tom@tromey.com>
10265
10266 * valprint.c (generic_value_print_int): New function.
10267 (generic_value_print): Use it.
10268
6dde7521
TT
102692020-03-13 Tom Tromey <tom@tromey.com>
10270
10271 * valprint.c (generic_value_print_bool): New function.
10272 (generic_value_print): Use it.
10273
4112d2e6
TT
102742020-03-13 Tom Tromey <tom@tromey.com>
10275
10276 * valprint.c (generic_val_print_func): Simplify.
10277 (generic_val_print, generic_value_print): Update.
10278
65786af6
TT
102792020-03-13 Tom Tromey <tom@tromey.com>
10280
10281 * valprint.c (generic_val_print_flags): Remove.
10282 (generic_val_print, generic_value_print): Update.
10283 (val_print_type_code_flags): Add original_value parameter.
10284
40f3ce18
TT
102852020-03-13 Tom Tromey <tom@tromey.com>
10286
10287 * valprint.c (generic_val_print): Update.
10288 (generic_value_print): Update.
10289 * valprint.c (generic_val_print_enum): Don't call
10290 val_print_scalar_formatted.
10291
2a5b130b
TT
102922020-03-13 Tom Tromey <tom@tromey.com>
10293
10294 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10295 * valprint.c (generic_value_print_ptr): New function.
10296
abc66ce9
TT
102972020-03-13 Tom Tromey <tom@tromey.com>
10298
10299 * valprint.c (generic_value_print): Rewrite.
10300
07a32858
TT
103012020-03-13 Tom Tromey <tom@tromey.com>
10302
10303 * p-valprint.c (pascal_object_print_value_fields)
10304 (pascal_object_print_value): New functions.
10305
64d64d3a
TT
103062020-03-13 Tom Tromey <tom@tromey.com>
10307
10308 * p-valprint.c (pascal_value_print_inner): Rewrite.
10309
6a95a1f5
TT
103102020-03-13 Tom Tromey <tom@tromey.com>
10311
10312 * f-valprint.c (f_value_print_innner): Rewrite.
10313
59fcdac6
TT
103142020-03-13 Tom Tromey <tom@tromey.com>
10315
10316 * m2-valprint.c (m2_print_unbounded_array): New overload.
10317 (m2_print_unbounded_array): Update.
10318 (m2_print_array_contents): Take a struct value.
10319 (m2_value_print_inner): Rewrite.
10320
d133c3e1
TT
103212020-03-13 Tom Tromey <tom@tromey.com>
10322
10323 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10324 (d_value_print_inner): New function.
10325 * d-lang.h (d_value_print_inner): Declare.
10326 * d-lang.c (d_language_defn): Use d_value_print_inner.
10327
23b0f06b
TT
103282020-03-13 Tom Tromey <tom@tromey.com>
10329
10330 * go-valprint.c (go_value_print_inner): New function.
10331 * go-lang.h (go_value_print_inner): Declare.
10332 * go-lang.c (go_language_defn): Use go_value_print_inner.
10333
5f56f7cb
TT
103342020-03-13 Tom Tromey <tom@tromey.com>
10335
10336 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10337 API.
10338 (rust_val_print): Rewrite.
10339 (rust_value_print_inner): New function, from rust_val_print.
10340 (rust_language_defn): Use rust_value_print_inner.
10341
26792ee0
TT
103422020-03-13 Tom Tromey <tom@tromey.com>
10343
10344 * ada-valprint.c (ada_value_print_inner): New function.
10345 * ada-lang.h (ada_value_print_inner): Declare.
10346 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10347
24051bbe
TT
103482020-03-13 Tom Tromey <tom@tromey.com>
10349
10350 * f-valprint.c (f_value_print_innner): New function.
10351 * f-lang.h (f_value_print_innner): Declare.
10352 * f-lang.c (f_language_defn): Use f_value_print_innner.
10353
c0941be6
TT
103542020-03-13 Tom Tromey <tom@tromey.com>
10355
10356 * p-valprint.c (pascal_value_print_inner): New function.
10357 * p-lang.h (pascal_value_print_inner): Declare.
10358 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10359
62c4663d
TT
103602020-03-13 Tom Tromey <tom@tromey.com>
10361
10362 * m2-valprint.c (m2_value_print_inner): New function.
10363 * m2-lang.h (m2_value_print_inner): Declare.
10364 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10365
62182190
TT
103662020-03-13 Tom Tromey <tom@tromey.com>
10367
10368 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10369 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10370 * c-valprint.c (c_value_print_inner): New function.
10371 * c-lang.h (c_value_print_inner): Declare.
10372 * c-lang.c (c_language_defn, cplus_language_defn)
10373 (asm_language_defn, minimal_language_defn): Use
10374 c_value_print_inner.
10375
1e592a8a
TT
103762020-03-13 Tom Tromey <tom@tromey.com>
10377
10378 * p-valprint.c (pascal_object_print_value_fields): Now static.
10379 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10380
7fe471e9
TT
103812020-03-13 Tom Tromey <tom@tromey.com>
10382
10383 * c-valprint.c (c_val_print_array): Simplify.
10384
d121c6ce
TT
103852020-03-13 Tom Tromey <tom@tromey.com>
10386
10387 * valprint.c (value_print_array_elements): New function.
10388 * valprint.h (value_print_array_elements): Declare.
10389
4dba70ee
TT
103902020-03-13 Tom Tromey <tom@tromey.com>
10391
10392 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10393 * mips-tdep.c (mips_print_register): Use
10394 value_print_scalar_formatted.
10395
4f9ae810
TT
103962020-03-13 Tom Tromey <tom@tromey.com>
10397
10398 * valprint.h (value_print_scalar_formatted): Declare.
10399 * valprint.c (value_print_scalar_formatted): New function.
10400
156bfec9
TT
104012020-03-13 Tom Tromey <tom@tromey.com>
10402
10403 * valprint.h (generic_value_print): Declare.
10404 * valprint.c (generic_value_print): New function.
10405
2b4e573d
TT
104062020-03-13 Tom Tromey <tom@tromey.com>
10407
10408 * valprint.c (do_val_print): Call la_value_print_inner, if
10409 available.
10410 * rust-lang.c (rust_language_defn): Update.
10411 * p-lang.c (pascal_language_defn): Update.
10412 * opencl-lang.c (opencl_language_defn): Update.
10413 * objc-lang.c (objc_language_defn): Update.
10414 * m2-lang.c (m2_language_defn): Update.
10415 * language.h (struct language_defn) <la_value_print_inner>: New
10416 member.
10417 * language.c (unknown_language_defn, auto_language_defn): Update.
10418 * go-lang.c (go_language_defn): Update.
10419 * f-lang.c (f_language_defn): Update.
10420 * d-lang.c (d_language_defn): Update.
10421 * c-lang.c (c_language_defn, cplus_language_defn)
10422 (asm_language_defn, minimal_language_defn): Update.
10423 * ada-lang.c (ada_language_defn): Update.
10424
a1f6a07c
TT
104252020-03-13 Tom Tromey <tom@tromey.com>
10426
10427 * c-valprint.c (c_value_print): Use common_val_print.
10428
410cf315
TT
104292020-03-13 Tom Tromey <tom@tromey.com>
10430
10431 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10432
72a45c93
TT
104332020-03-13 Tom Tromey <tom@tromey.com>
10434
10435 * f-valprint.c (f77_print_array_1, f_val_print): Use
10436 common_val_print.
10437
040f66bd
TT
104382020-03-13 Tom Tromey <tom@tromey.com>
10439
10440 * riscv-tdep.c (riscv_print_one_register_info): Use
10441 common_val_print.
10442
a6e05a6c
TT
104432020-03-13 Tom Tromey <tom@tromey.com>
10444
10445 * mi/mi-main.c (output_register): Use common_val_print.
10446
3444c526
TT
104472020-03-13 Tom Tromey <tom@tromey.com>
10448
10449 * infcmd.c (default_print_one_register_info): Use
10450 common_val_print.
10451
c2a44efe
TT
104522020-03-13 Tom Tromey <tom@tromey.com>
10453
10454 * valprint.h (common_val_print_checked): Declare.
10455 * valprint.c (common_val_print_checked): New function.
10456 * stack.c (print_frame_arg): Use common_val_print_checked.
10457
b0c26e99
TT
104582020-03-13 Tom Tromey <tom@tromey.com>
10459
10460 * valprint.c (do_val_print): New function, from val_print.
10461 (val_print): Use do_val_print.
10462 (common_val_print): Use do_val_print.
10463
ce3acbe9
TT
104642020-03-13 Tom Tromey <tom@tromey.com>
10465
10466 * valprint.c (value_print): Use scoped_value_mark.
10467
96c7f873
TV
104682020-03-13 Tom de Vries <tdevries@suse.de>
10469
10470 PR symtab/25646
10471 * psymtab.c (partial_symtab::partial_symtab): Don't set
10472 globals_offset and statics_offset. Push element onto
10473 current_global_psymbols and current_static_psymbols stacks.
10474 (concat): New function.
10475 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10476 element from current_global_psymbols and current_static_psymbols
10477 stacks. Concat popped elements to global_psymbols and
10478 static_symbols.
10479 (add_psymbol_to_list): Use current_global_psymbols and
10480 current_static_psymbols stacks.
10481 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10482 current_static_psymbols fields.
10483
6ba0a321
CB
104842020-03-12 Christian Biesinger <cbiesinger@google.com>
10485
10486 * corelow.c (sniff_core_bfd): Remove.
10487 (class core_target) <m_core_vec>: Remove.
10488 (core_target::core_target): Update.
10489 (core_file_fns): Remove.
10490 (deprecated_add_core_fns): Remove.
10491 (default_core_sniffer): Remove.
10492 (sniff_core_bfd): Remove.
10493 (default_check_format): Remove.
10494 (gdb_check_format): Remove.
10495 (core_target_open): Update.
10496 (core_target::get_core_register_section): Update.
10497 (get_core_registers_cb): Update.
10498 (core_target::fetch_registers): Update.
10499 * gdbcore.h (struct core_fns): Remove.
10500 (deprecated_add_core_fns): Remove.
10501 (default_core_sniffer): Remove.
10502 (default_check_format): Remove.
10503
227031b2
TT
105042020-03-12 Tom Tromey <tom@tromey.com>
10505
10506 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10507 CORE_ADDR.
10508 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10509
53807e9f
TT
105102020-03-12 Tom Tromey <tom@tromey.com>
10511
10512 * remote.c (remote_target::download_tracepoint)
10513 (remote_target::enable_tracepoint)
10514 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10515 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10516 sprintf_vma.
10517
64f25102
TT
105182020-03-12 Tom Tromey <tom@tromey.com>
10519
10520 * symfile-mem.c: Update CORE_ADDR size assert.
10521
272cd5a3
SM
105222020-03-12 Simon Marchi <simon.marchi@efficios.com>
10523
10524 * selftest.m4: Move to gdbsupport/.
10525 * acinclude.m4: Update path to selftest.m4.
10526
74cd3f9d
SM
105272020-03-12 Simon Marchi <simon.marchi@efficios.com>
10528
10529 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10530 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10531 gdbarch-selfselftests.c and selftest-arch.c.
10532 (SUBDIR_UNITTESTS_OBS): Rename to...
10533 (SELFTESTS_OBS): ... this.
10534 (COMMON_SFILES): Remove disasm-selftests.c and
10535 gdbarch-selftests.c.
10536 * configure.ac: Don't add selftest-arch.{c,o} to
10537 CONFIG_{SRCS,OBS}.
10538 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10539 preprocessor conditions.
10540
db6878ac
SM
105412020-03-12 Simon Marchi <simon.marchi@efficios.com>
10542
10543 * configure.ac: Don't source bfd/development.sh.
10544 * selftest.m4: Modify comment.
10545 * configure: Re-generate.
10546
4d696a5c
SM
105472020-03-12 Simon Marchi <simon.marchi@efficios.com>
10548
10549 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10550 not "true" or "false".
10551 * configure: Re-generate.
10552
8dd8e1c7
CB
105532020-03-12 Christian Biesinger <cbiesinger@google.com>
10554
10555 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10556 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10557 renamed to arm_nbsd_supply_gregset.
10558 (fetch_register): Update to call arm_nbsd_supply_gregset.
10559 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10560 (arm_netbsd_nat_target::fetch_registers): Update.
10561 (fetch_elfcore_registers): Removed.
10562 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10563 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10564 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10565 not require NetBSD system headers.
10566 (arm_nbsd_regset): New struct.
10567 (arm_nbsd_iterate_over_regset_sections): New function.
10568 (arm_netbsd_init_abi_common): Updated to call
10569 set_gdbarch_iterate_over_regset_sections.
10570 * arm-nbsd-tdep.h: New file.
10571
dd69bf7a
KB
105722020-03-11 Kevin Buettner <kevinb@redhat.com>
10573
10574 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10575 recursion.
10576
a0761e34
SM
105772020-03-11 Simon Marchi <simon.marchi@efficios.com>
10578
10579 * configure: Re-generate.
10580
e7a82140
TT
105812020-03-11 Tom Tromey <tromey@adacore.com>
10582
10583 * ada-typeprint.c (print_choices): Fix comment.
10584
dcc050c8
AB
105852020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10586
10587 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10588 previous item in the list, when the list has no items.
10589
1c33af77
TV
105902020-03-11 Tom de Vries <tdevries@suse.de>
10591
10592 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10593 PROP_LOCLIST handling code.
10594
8c95582d
AB
105952020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10596
10597 * buildsym-legacy.c (record_line): Pass extra parameter to
10598 record_line.
10599 * buildsym.c (buildsym_compunit::record_line): Take an extra
10600 parameter, reduce duplication in the line table, and record the
10601 is_stmt flag in the line table.
10602 * buildsym.h (buildsym_compunit::record_line): Add extra
10603 parameter.
10604 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10605 non-statement lines.
10606 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10607 this to the symtab builder.
10608 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10609 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10610 through to dwarf_record_line_1.
10611 * infrun.c (process_event_stop_test): When stepping, don't stop at
10612 a non-statement instruction, and only refresh the step info when
10613 we land in the middle of a line's range. Also add an extra
10614 comment.
10615 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10616 field.
10617 * record-btrace.c (btrace_find_line_range): Only record lines
10618 marked as is-statement.
10619 * stack.c (frame_show_address): Show the frame address if we are
10620 in a non-statement sal.
10621 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10622 (maintenance_print_one_line_table): Print a header for the is_stmt
10623 column, and include is_stmt information in the output.
10624 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10625 preference to non-statements.
10626 (find_pcs_for_symtab_line): Prefer is-statement entries.
10627 (find_line_common): Likewise.
10628 * symtab.h (struct linetable_entry): Add is_stmt field.
10629 (struct symtab_and_line): Likewise.
10630 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10631 arranging the line table.
10632
e4003a34
TV
106332020-03-07 Tom de Vries <tdevries@suse.de>
10634
10635 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10636 DIE.
10637
e8932576
TT
106382020-03-07 Tom Tromey <tom@tromey.com>
10639
10640 * valops.c (value_literal_complex): Remove obsolete comment.
10641 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10642 comment.
10643
29734269
SM
106442020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10645
10646 * infrun.h: Forward-declare thread_info.
10647 (set_step_info): Add thread_info parameter, add doc.
10648 * infrun.c (set_step_info): Add thread_info parameter, move doc
10649 to header.
10650 * infrun.c (process_event_stop_test): Pass thread to
10651 set_step_info call.
10652 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10653 set_step_info.
10654 (prepare_one_step): Add thread_info parameter, pass it to
10655 set_step_frame and prepare_one_step (recursive) call.
10656 (step_1): Pass thread to prepare_one_step call.
10657 (step_command_fsm::should_stop): Pass thread to
10658 prepare_one_step.
10659 (until_next_fsm): Pass thread to set_step_frame call.
10660 (finish_command): Pass thread to set_step_info call.
10661
b7d64b29
HD
106622020-03-06 Hannes Domani <ssbssa@yahoo.de>
10663
10664 * windows-tdep.c (windows_solib_create_inferior_hook):
10665 Check if inferior is running.
10666
09f2921c
TV
106672020-03-06 Tom de Vries <tdevries@suse.de>
10668
10669 * NEWS: Fix "the the".
10670 * ctfread.c: Same.
10671
fd760e79
TV
106722020-03-06 Tom de Vries <tdevries@suse.de>
10673
10674 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10675
20ea4a60
AB
106762020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10677
10678 * .dir-locals.el: Add a comment referencing the other copies of
10679 this file.
10680
0afbabf0
JB
106812020-03-05 John Baldwin <jhb@FreeBSD.org>
10682
10683 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10684 psargs.
10685
842806cb
TBA
106862020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10687
10688 * .gitattributes: New file.
10689
be1e3d3e
TT
106902020-03-04 Tom Tromey <tom@tromey.com>
10691
10692 * symmisc.c (print_symbol_bcache_statistics)
10693 (print_objfile_statistics): Update.
10694 * symfile.c (allocate_symtab): Use intern.
10695 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10696 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10697 macro_cache>: Remove.
10698 <string_cache>: New member.
10699 (struct objfile) <intern>: New methods.
10700 * elfread.c (elf_symtab_read): Use intern.
10701 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10702 (dwarf2_compute_name, dwarf2_physname)
10703 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10704 names.
10705 (guess_partial_die_structure_name): Update.
10706 (partial_die_info::fixup): Intern name.
10707 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10708 name.
10709 (dwarf2_name): Intern name. Update.
10710 * buildsym.c (buildsym_compunit::get_macro_table): Use
10711 string_cache.
10712
4e7625fd
TT
107132020-03-04 Tom Tromey <tom@tromey.com>
10714
10715 * jit.c (bfd_open_from_target_memory): Make "target" const.
10716 * corefile.c (gnutarget): Now const.
10717 * gdbcore.h (gnutarget): Now const.
10718
46f9f931
HD
107192020-03-04 Hannes Domani <ssbssa@yahoo.de>
10720
10721 * NEWS: Mention support for WOW64 processes.
10722 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10723 (amd64_windows_segment_register_p): Remove static.
10724 (_initialize_amd64_windows_nat): Update.
10725 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10726 * i386-windows-nat.c (context_offset): Update.
10727 (i386_mappings): Rename and remove static.
10728 (i386_windows_segment_register_p): Remove static.
10729 (_initialize_i386_windows_nat): Update.
10730 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10731 (STATUS_WX86_SINGLE_STEP): New macro.
10732 (EnumProcessModulesEx): New macro.
10733 (Wow64SuspendThread): New macro.
10734 (Wow64GetThreadContext): New macro.
10735 (Wow64SetThreadContext): New macro.
10736 (Wow64GetThreadSelectorEntry): New macro.
10737 (windows_set_context_register_offsets): Add static.
10738 (windows_set_segment_register_p): Likewise.
10739 (windows_add_thread): Adapt for WOW64 processes.
10740 (windows_fetch_one_register): Likewise.
10741 (windows_nat_target::fetch_registers): Likewise.
10742 (windows_store_one_register): Likewise.
10743 (display_selector): Likewise.
10744 (display_selectors): Likewise.
10745 (handle_exception): Likewise.
10746 (windows_continue): Likewise.
10747 (windows_nat_target::resume): Likewise.
10748 (windows_add_all_dlls): Likewise.
10749 (do_initial_windows_stuff): Likewise.
10750 (windows_nat_target::attach): Likewise.
10751 (windows_get_exec_module_filename): Likewise.
10752 (windows_nat_target::create_inferior): Likewise.
10753 (windows_xfer_siginfo): Likewise.
10754 (_initialize_loadable): Initialize Wow64SuspendThread,
10755 Wow64GetThreadContext, Wow64SetThreadContext,
10756 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10757 * windows-nat.h (windows_set_context_register_offsets):
10758 Remove declaration.
10759 (windows_set_segment_register_p): Likewise.
10760 (i386_windows_segment_register_p): Add declaration.
10761 (amd64_windows_segment_register_p): Likewise.
10762
440cf44e
LM
107632020-03-04 Luis Machado <luis.machado@linaro.org>
10764
10765 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10766 in "info registers" for AArch64/ARM.
10767
10768 The change caused "info registers" to not print GPR's.
10769
10770 gdb/ChangeLog:
10771
10772 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10773
10774 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10775 when reg->group is empty and reggroup is not.
10776
1009d92f
TT
107772020-03-03 Tom Tromey <tromey@adacore.com>
10778
10779 * dwarf2/frame.c (struct dwarf2_frame_cache)
10780 <checked_tailcall_bottom, entry_cfa_sp_offset,
10781 entry_cfa_sp_offset_p>: Remove members.
10782 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10783 (dwarf2_frame_prev_register): Don't call
10784 dwarf2_tailcall_sniffer_first.
10785 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10786 * frame-unwind.c (add_unwinder): New fuction.
10787 (frame_unwind_init): Use it. Add tailcall unwinder.
10788
5e5d66b6
AB
107892020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10790 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10791
10792 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10793 value should be printed as true.
10794
584cf46d
HD
107952020-03-03 Hannes Domani <ssbssa@yahoo.de>
10796
10797 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10798 (windows_init_abi): Set and use windows_so_ops.
10799
7b973adc
SDJ
108002020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10801
10802 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10803 when verifying if dealing with a convenience variable.
10804
bb7b70ab
LM
108052020-03-03 Luis Machado <luis.machado@linaro.org>
10806
10807 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10808
9822cb57
SM
108092020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10810
10811 * infrun.c (gdbarch_supports_displaced_stepping): New.
10812 (use_displaced_stepping): Break up conditions in smaller pieces.
10813 Use gdbarch_supports_displaced_stepping.
10814 (displaced_step_prepare_throw): Use
10815 gdbarch_supports_displaced_stepping.
10816
63e163f2
AB
108172020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10818
10819 * NEWS: Mention new behaviour of the history filename.
10820 * top.c (write_history_p): Add comment.
10821 (show_write_history_p): Add header comment, give a different
10822 message when history writing is on, but the history filename is
10823 empty.
10824 (history_filename): Add comment.
10825 (history_filename_empty): New function.
10826 (show_history_filename): Add header comment, give a different
10827 message when the filename is empty.
10828 (init_history): Compare history_filename against nullptr, and only
10829 read history if the filename is not empty.
10830 (set_history_filename): Add header comment, and only make
10831 non-empty filenames absolute.
10832 (init_main): Make the filename argument to 'set history filename'
10833 optional.
10834
81b86b97
CB
108352020-03-02 Christian Biesinger <cbiesinger@google.com>
10836
10837 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10838 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10839 (fetch_fp_register): Update.
10840 (fetch_fp_regs): Update.
10841 (store_fp_register): Update.
10842 (store_fp_regs): Update.
10843 (arm_netbsd_nat_target::read_description): New function.
10844 (fetch_elfcore_registers): Update.
10845
24ed6739
AB
108462020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10847
10848 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10849 general_thread if the stop reply is missing a thread-id.
10850 (remote_target::process_stop_reply): Use the first non-exited
10851 thread if the target didn't pass a thread-id.
10852 * infrun.c (do_target_wait): Move call to
10853 switch_to_inferior_no_thread to ....
10854 (do_target_wait_1): ... here.
10855
a84bb2a0
JT
108562020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10857
10858 * debuginfod-support.c: Include defs.h first.
10859
658dadf0
TV
108602020-02-28 Tom de Vries <tdevries@suse.de>
10861
10862 * symfile.c (set_initial_language): Use default language for lookup.
10863
4ebe4877
SM
108642020-02-28 Simon Marchi <simon.marchi@efficios.com>
10865
10866 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10867 reader variable, pass `this` to read_cutu_die_from_dwo.
10868
e5da1139
AM
108692020-02-27 Aaron Merey <amerey@redhat.com>
10870
10871 * source.c (open_source_file): Check for nullptr when computing
10872 srcpath.
10873
317f7127
TT
108742020-02-27 Tom Tromey <tromey@adacore.com>
10875
10876 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10877 member.
10878 (dwarf2_add_field): Don't update nfields.
10879 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10880
3104d9ee
AB
108812020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10882
10883 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10884 abs.
10885
b83470bf
TT
108862020-02-26 Tom Tromey <tom@tromey.com>
10887
10888 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10889 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10890 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10891 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10892 per_cu_data.
10893
edfe0a0c
TT
108942020-02-26 Tom Tromey <tom@tromey.com>
10895
10896 * dwarf2/index-write.c (psym_index_map): Change type.
10897 (add_address_entry_worker, write_one_signatured_type)
10898 (recursively_count_psymbols, recursively_write_psymbols)
10899 (class debug_names, psyms_seen_size, write_gdbindex)
10900 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10901
0d79cdc4
AM
109022020-02-26 Aaron Merey <amerey@redhat.com>
10903
10904 * Makefile.in: Handle optional debuginfod support.
10905 * NEWS: Update.
10906 * README: Add --with-debuginfod summary.
10907 * config.in: Regenerate.
10908 * configure: Regenerate.
10909 * configure.ac: Handle optional debuginfod support.
10910 * debuginfod-support.c: debuginfod helper functions.
10911 * debuginfod-support.h: Ditto.
10912 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10913 summary.
10914 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10915 when a dwz file cannot be found.
10916 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10917 debuginfo file cannot be found.
10918 * source.c (open_source_file): Query debuginfod servers when a
10919 source file cannot be found.
10920 * top.c (print_gdb_configuration): Include
10921 --{with,without}-debuginfod in the output.
10922
b65ce565
JG
109232020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10924
10925 * thread.c (thr_try_catch_cmd): Print thread name.
10926
d4c9a4f8
SM
109272020-02-26 Simon Marchi <simon.marchi@efficios.com>
10928
10929 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10930 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10931 dwarf2_fetch_die_type_sect_off): Move to...
10932 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10933 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10934 dwarf2_fetch_die_type_sect_off): ... here.
10935 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10936 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10937 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10938
0dce4280
TV
109392020-02-26 Tom de Vries <tdevries@suse.de>
10940
10941 PR gdb/25603
10942 * symfile.c (set_initial_language): Exit-early if
10943 language_mode == language_mode_manual.
10944
450a1bfc
SM
109452020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10946
10947 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10948 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10949 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10950
9e80cfa1
AB
109512020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10952
10953 * gdbtypes.c (create_array_type_with_stride): Handle negative
10954 array strides.
10955 * valarith.c (value_subscripted_rvalue): Likewise.
10956
09624f1f
LM
109572020-02-25 Luis Machado <luis.machado@linaro.org>
10958
10959 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10960
8cb5117c
SM
109612020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10962
10963 * loc.h (dwarf2_get_die_type): Move to...
10964 * read.h (dwarf2_get_die_type): ... here.
10965 * read.c (dwarf2_get_die_type): Move doc to header.
10966
c325c44e
JB
109672020-02-25 Joel Brobecker <brobecker@adacore.com>
10968
10969 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10970 'gnulib/Makefile.in' to the list.
10971
4ac93832
TT
109722020-02-24 Tom Tromey <tom@tromey.com>
10973
10974 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10975 Remove.
10976 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10977 XOBNEWVEC.
10978
197400e8
TT
109792020-02-24 Tom Tromey <tom@tromey.com>
10980
10981 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10982 New method.
10983 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10984 (dw2_do_instantiate_symtab, dw2_get_file_names)
10985 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10986
76935768
TT
109872020-02-24 Tom Tromey <tom@tromey.com>
10988
10989 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10990 make_scoped_restore.
10991 (dwarf2_psymtab::read_symtab): Don't clear
10992 reading_partial_symbols.
10993
a88ef40d
TV
109942020-02-24 Tom de Vries <tdevries@suse.de>
10995
10996 PR gdb/25592
10997 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10998
c9af6521
TV
109992020-02-24 Tom de Vries <tdevries@suse.de>
11000
11001 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11002 commands layout next/prev/regs.
11003
5707a07a
TT
110042020-02-22 Tom Tromey <tom@tromey.com>
11005
11006 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11007 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11008
3b0fb49e
TT
110092020-02-22 Tom Tromey <tom@tromey.com>
11010
11011 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11012
283be8bf
TT
110132020-02-22 Tom Tromey <tom@tromey.com>
11014
11015 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11016 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11017 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11018 * tui/tui.c (_initialize_tui): Add usage text.
11019
ca793b96
TT
110202020-02-22 Tom Tromey <tom@tromey.com>
11021
11022 * tui/tui-win.c (tui_set_focus_command)
11023 (tui_set_win_height_command): Use error_no_arg.
11024 (_initialize_tui_win): Update help text.
11025 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11026
432b5c40
TT
110272020-02-22 Tom Tromey <tom@tromey.com>
11028
11029 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11030 * tui/tui-disasm.h (struct tui_disasm_window)
11031 <display_start_addr>: Declare.
11032 * tui/tui-source.h (struct tui_source_window)
11033 <display_start_addr>: Declare.
11034 * tui/tui-winsource.h (struct tui_source_window_base)
11035 <show_source_line, display_start_addr>: New methods.
11036 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11037 Rename and move to protected section.
11038 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11039 (tui_source_window_base::do_erase_source_content): Update.
11040 (tui_source_window_base::show_source_line): Now a method.
11041 (tui_source_window_base::show_source_content)
11042 (tui_source_window_base::tui_source_window_base)
11043 (tui_source_window_base::rerender)
11044 (tui_source_window_base::refill)
11045 (tui_source_window_base::do_scroll_horizontal)
11046 (tui_source_window_base::set_is_exec_point_at)
11047 (tui_source_window_base::update_breakpoint_info)
11048 (tui_source_window_base::update_exec_info): Update.
11049 * tui/tui-source.c (tui_source_window::set_contents)
11050 (tui_source_window::showing_source_p)
11051 (tui_source_window::do_scroll_vertical)
11052 (tui_source_window::location_matches_p)
11053 (tui_source_window::line_is_displayed): Update.
11054 (tui_source_window::display_start_addr): New method.
11055 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11056 (tui_disasm_window::do_scroll_vertical)
11057 (tui_disasm_window::location_matches_p): Update.
11058 (tui_disasm_window::display_start_addr): New method.
11059
01b1af32
TT
110602020-02-22 Tom Tromey <tom@tromey.com>
11061
11062 * NEWS: Add entry for gdb.register_window_type.
11063 * tui/tui-layout.h (window_factory): New typedef.
11064 (tui_register_window): Declare.
11065 * tui/tui-layout.c (saved_tui_windows): New global.
11066 (tui_apply_current_layout): Use it.
11067 (tui_register_window): New function.
11068 * python/python.c (do_start_initialization): Call
11069 gdbpy_initialize_tui.
11070 (python_GdbMethods): Add "register_window_type" function.
11071 * python/python-internal.h (gdbpy_register_tui_window)
11072 (gdbpy_initialize_tui): Declare.
11073 * python/py-tui.c: New file.
11074 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11075
fc96d20b
TT
110762020-02-22 Tom Tromey <tom@tromey.com>
11077
11078 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11079
935c78c0
TT
110802020-02-22 Tom Tromey <tom@tromey.com>
11081
11082 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11083 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11084 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11085 (tui_set_win_focus_to): Move from tui-win.c.
11086
0240c8f1
TT
110872020-02-22 Tom Tromey <tom@tromey.com>
11088
11089 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11090 functions.
11091 (known_window_types): New global.
11092 (tui_get_window_by_name): Reimplement.
11093 (initialize_known_windows): New function.
11094 (validate_window_name): Rewrite.
11095 (_initialize_tui_layout): Call initialize_known_windows.
11096
fdb01f0c
TT
110972020-02-22 Tom Tromey <tom@tromey.com>
11098
11099 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11100 Remove constants.
11101 * tui/tui-winsource.h (struct tui_source_window_base)
11102 <tui_source_window_base>: Remove parameter.
11103 * tui/tui-winsource.c
11104 (tui_source_window_base::tui_source_window_base): Remove
11105 parameter.
11106 (tui_source_window_base::refill): Update.
11107 * tui/tui-stack.h (struct tui_locator_window)
11108 <tui_locator_window>: Update.
11109 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11110 Default the constructor.
11111 * tui/tui-regs.h (struct tui_data_item_window)
11112 <tui_data_item_window>: Default the constructor.
11113 (struct tui_data_window) <tui_data_window>: Likewise.
11114 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11115 Default the constructor.
11116 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11117 Default the constructor.
11118 <type>: Remove.
11119 (struct tui_win_info) <tui_win_info>: Default the constructor.
11120 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11121 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11122 Default the constructor.
11123
865a5aec
TT
111242020-02-22 Tom Tromey <tom@tromey.com>
11125
11126 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11127 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11128 * tui/tui-win.c (tui_resize_all): Don't call
11129 tui_delete_invisible_windows.
11130 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11131 done.
11132 (tui_set_layout): Update.
11133 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11134 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11135 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11136
e098d18c
TT
111372020-02-22 Tom Tromey <tom@tromey.com>
11138
11139 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11140 correctly.
11141
eb9c8874
TT
111422020-02-22 Tom Tromey <tom@tromey.com>
11143
11144 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11145
7eed1a8e
TT
111462020-02-22 Tom Tromey <tom@tromey.com>
11147
11148 * tui/tui-winsource.h (struct tui_source_window_iterator)
11149 <inner_iterator>: New etytypedef.
11150 <tui_source_window_iterator>: Take "end" parameter.
11151 <tui_source_window_iterator>: Take iterator.
11152 <operator*, advance>: Update.
11153 <m_iter>: Change type.
11154 <m_end>: New field.
11155 (struct tui_source_windows) <begin, end>: Update.
11156 * tui/tui-layout.c (tui_windows): New global.
11157 (tui_apply_current_layout): Clear tui_windows.
11158 (tui_layout_window::apply): Update tui_windows.
11159 * tui/tui-data.h (tui_windows): Declare.
11160 (all_tui_windows): Now inline function.
11161 (class tui_window_iterator, struct all_tui_windows): Remove.
11162
7c043ba6
TT
111632020-02-22 Tom Tromey <tom@tromey.com>
11164
11165 PR tui/17850:
11166 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11167 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11168 "height" argument.
11169 (class tui_layout_window) <get_sizes>: Likewise.
11170 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11171 argument.
11172 <get_sizes>: Add "height" argument.
11173 <m_vertical>: New field.
11174 * tui/tui-layout.c (tui_layout_split::clone): Update.
11175 (tui_layout_split::get_sizes): Add "height" argument.
11176 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11177 (tui_new_layout_command): Parse "-horizontal".
11178 (_initialize_tui_layout): Update help string.
11179 (tui_layout_split::specification): Add "-horizontal" when needed.
11180 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11181 argument.
11182 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11183 New methods.
11184
6bc56648
TT
111852020-02-22 Tom Tromey <tom@tromey.com>
11186
11187 * tui/tui-layout.h (enum tui_adjust_result): New.
11188 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11189 (class tui_layout_window) <adjust_size>: Return
11190 tui_adjust_result. Rewrite.
11191 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11192 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11193
c22fef7e
TT
111942020-02-22 Tom Tromey <tom@tromey.com>
11195
11196 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11197 parameter and return types.
11198 (class tui_layout_base) <specification>: Add "depth".
11199 (class tui_layout_window) <specification>: Add "depth".
11200 (class tui_layout_split) <specification>: Add "depth".
11201 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11202 and return types.
11203 (tui_new_layout_command): Parse sub-layouts.
11204 (_initialize_tui_layout): Update help string.
11205 (tui_layout_window::specification): Add "depth".
11206 (add_layout_command): Update.
11207
ee325b61
TT
112082020-02-22 Tom Tromey <tom@tromey.com>
11209
11210 * NEWS: Add "tui new-layout" item.
11211 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11212 Add new-layout command to help text.
11213 (validate_window_name): New function.
11214 (tui_new_layout_command): New function.
11215 (_initialize_tui_layout): Register "new-layout".
11216 (tui_layout_window::specification): New method.
11217 (tui_layout_window::specification): New method.
11218 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11219 method.
11220 (class tui_layout_window) <specification>: New method.
11221 (class tui_layout_split) <specification>: New method.
11222
416eb92d
TT
112232020-02-22 Tom Tromey <tom@tromey.com>
11224
11225 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11226 * tui/tui-win.c (window_name_completer): Update comment.
11227 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11228 Declare method.
11229 (class tui_layout_window) <replace_window>: Likewise.
11230 (class tui_layout_split) <replace_window>: Likewise.
11231 (tui_set_layout): Don't declare.
11232 (tui_set_initial_layout): Declare function.
11233 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11234 (asm_regs_layout): New globals.
11235 (tui_current_layout, show_layout): Remove.
11236 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11237 (find_layout, tui_apply_layout): New function.
11238 (layout_completer): Remove.
11239 (tui_next_layout): Reimplement.
11240 (tui_next_layout_command): New function.
11241 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11242 (tui_regs_layout): Reimplement.
11243 (tui_regs_layout_command): New function.
11244 (extract_display_start_addr): Rewrite.
11245 (next_layout, prev_layout): Remove.
11246 (tui_layout_window::replace_window): New method.
11247 (tui_layout_split::replace_window): New method.
11248 (destroy_layout): New function.
11249 (layout_list): New global.
11250 (add_layout_command): New function.
11251 (initialize_layouts): Update.
11252 (tui_layout_command): New function.
11253 (_initialize_tui_layout): Install "layout" commands.
11254 * tui/tui-data.h (enum tui_layout_type): Remove.
11255 (tui_current_layout): Don't declare.
11256
0dbc2fc7
TT
112572020-02-22 Tom Tromey <tom@tromey.com>
11258
11259 * tui/tui-regs.c (tui_reg_layout): Remove.
11260 (tui_reg_command): Use tui_regs_layout.
11261 * tui/tui-layout.h (tui_reg_command): Declare.
11262 * tui/tui-layout.c (tui_reg_command): New function.
11263
5afe342e
TT
112642020-02-22 Tom Tromey <tom@tromey.com>
11265
11266 * tui/tui.c (tui_rl_delete_other_windows): Call
11267 tui_remove_some_windows.
11268 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11269 Declare method.
11270 (class tui_layout_window) <remove_windows>: New method.
11271 (class tui_layout_split) <remove_windows>: Declare.
11272 (tui_remove_some_windows): Declare.
11273 * tui/tui-layout.c (tui_remove_some_windows): New function.
11274 (tui_layout_split::remove_windows): New method.
11275
427326a8
TT
112762020-02-22 Tom Tromey <tom@tromey.com>
11277
11278 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11279 * tui/tui-layout.h (tui_next_layout): Declare.
11280 * tui/tui-layout.c (tui_next_layout): New function.
11281
3fe12b6d
TT
112822020-02-22 Tom Tromey <tom@tromey.com>
11283
11284 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11285 correct coordinates.
11286
59b8b5d2
TT
112872020-02-22 Tom Tromey <tom@tromey.com>
11288
11289 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11290 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11291 DATA_WIN case.
11292
2a3d458b
TT
112932020-02-22 Tom Tromey <tom@tromey.com>
11294
11295 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11296 TUI_DISASM_WIN, not tui_win_list.
11297
3f0cbb04
TT
112982020-02-22 Tom Tromey <tom@tromey.com>
11299
11300 * valprint.c (generic_val_print_enum_1)
11301 (val_print_type_code_flags): Style member names.
11302 * rust-lang.c (val_print_struct, rust_print_enum)
11303 (rust_print_struct_def, rust_internal_print_type): Style member
11304 names.
11305 * p-valprint.c (pascal_object_print_value_fields): Style member
11306 names. Only call fprintf_symbol_filtered for static members.
11307 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11308 * f-valprint.c (f_val_print): Style member names.
11309 * f-typeprint.c (f_type_print_base): Style member names.
11310 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11311 call fprintf_symbol_filtered for static members.
11312 (cp_print_class_member): Style member names.
11313 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11314 member names.
11315 * ada-valprint.c (ada_print_scalar): Style enum names.
11316 (ada_val_print_enum): Likewise.
11317 * ada-typeprint.c (print_enum_type): Style enum names.
11318
d4d947ae
TT
113192020-02-21 Tom Tromey <tom@tromey.com>
11320
11321 * psympriv.h (struct partial_symtab): Update comment.
11322
e94e944b
TT
113232020-02-21 Tom Tromey <tromey@adacore.com>
11324
11325 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11326 type is CORE_ADDR.
11327
1eb73179
TV
113282020-02-21 Tom de Vries <tdevries@suse.de>
11329
11330 PR gdb/25534
11331 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11332 if dependencies[i]->user != NULL.
11333
4f180d53
AT
113342020-02-21 Ali Tamur <tamur@google.com>
11335
11336 * dwarf2/read.c (dwarf2_name): Add null check.
11337
22b6cd70
TT
113382020-02-20 Tom Tromey <tom@tromey.com>
11339
11340 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11341 ">=", in binary search.
11342 (dwarf2_find_containing_comp_unit): New overload.
11343 (run_test): New self-test.
11344 (_initialize_dwarf2_read): Register new test.
11345
bd0cf5a6
NC
113462020-02-20 Nelson Chu <nelson.chu@sifive.com>
11347
11348 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11349 * riscv-tdep.h: Likewise.
11350 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11351 rv32-only CSR.
11352 * features/riscv/64bit-csr.xml: Regenerated.
11353
3f702acd
SDJ
113542020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11355 Tom Tromey <tom@tromey.com>
11356
11357 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11358 of 'fputc_unfiltered'.
11359 (putchar_unfiltered): Call 'fputc_unfiltered'.
11360 (fputc_unfiltered): Call 'fputs_unfiltered'.
11361
d13c7322
AB
113622020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11363
11364 * config.in: Regenerate.
11365 * configure: Regenerate.
11366 * configure.ac: Add --with-python-libdir option.
11367 * main.c: Use WITH_PYTHON_LIBDIR.
11368
869d8950
TT
113692020-02-19 Tom Tromey <tom@tromey.com>
11370
11371 * symtab.c (general_symbol_info::compute_and_set_names): Use
11372 obstack_strndup. Simplify call to symbol_set_demangled_name.
11373
298e9637
SM
113742020-02-19 Simon Marchi <simon.marchi@efficios.com>
11375
11376 * dwarf2/read.c (allocate_signatured_type_table,
11377 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11378 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11379 Remove objfile parameter, update all callers.
11380
08410482
DE
113812020-02-19 Doug Evans <dje@google.com>
11382
11383 PR rust/25535
11384 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11385 rust_enum_variant calculation.
11386
dfdeeca1
TT
113872020-02-19 Tom Tromey <tromey@adacore.com>
11388
11389 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11390
2ef5453b
TT
113912020-02-19 Tom Tromey <tromey@adacore.com>
11392
11393 * ada-lang.c (cache_symbol): Use obstack_strdup.
11394
9f1528a1
AB
113952020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11396
11397 * configure: Regenerate.
11398
d3c22fa8
TT
113992020-02-19 Tom Tromey <tromey@adacore.com>
11400
11401 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11402 NULL check.
11403
bf84f706
MR
114042020-02-19 Maciej W. Rozycki <macro@wdc.com>
11405
11406 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11407
d1c9b20f
AB
114082020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11409
11410 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11411 if GDBSERVER is not defined.
11412 (riscv_tdesc_cache): Likewise, also store const target_desc.
11413 (STATIC_IN_GDB): Define.
11414 (riscv_create_target_description): Update declaration with
11415 STATIC_IN_GDB.
11416 (riscv_lookup_target_description): New function, only define if
11417 GDBSERVER is not defined.
11418 * arch/riscv.h (riscv_create_target_description): Declare only
11419 when GDBSERVER is defined.
11420 (riscv_lookup_target_description): New declaration when GDBSERVER
11421 is not defined.
11422 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11423 (riscv_linux_read_features): ...this, and return
11424 riscv_gdbarch_features instead of target_desc.
11425 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11426 (riscv_linux_read_description): Rename to...
11427 (riscv_linux_read_features): ...this.
11428 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11429 Update to use riscv_gdbarch_features and
11430 riscv_lookup_target_description.
11431 * riscv-tdep.c (riscv_find_default_target_description): Use
11432 riscv_lookup_target_description instead of
11433 riscv_create_target_description.
11434
373d7ac0
SM
114352020-02-18 Simon Marchi <simon.marchi@efficios.com>
11436
11437 * valprint.c (generic_val_print_enum_1): When printing a flag
11438 enum with value 0 and there is no enumerator with value 0, print
11439 just "0" instead of "(unknown: 0x0)".
11440
b29a2df0
SM
114412020-02-18 Simon Marchi <simon.marchi@efficios.com>
11442
11443 * valprint.c (generic_val_print_enum_1): Print unknown part of
11444 flag enum in hex.
11445
6740f0cc
SM
114462020-02-18 Simon Marchi <simon.marchi@efficios.com>
11447
11448 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11449 flag enums to contain duplicate enumerators.
11450 * valprint.c (generic_val_print_enum_1): Update comment.
11451
edd45eb0
SM
114522020-02-18 Simon Marchi <simon.marchi@efficios.com>
11453
11454 * dwarf2/read.c: Include "count-one-bits.h".
11455 (update_enumeration_type_from_children): If an enumerator has
11456 multiple bits set, don't treat the enumeration as a "flag enum".
11457 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11458 of flag enums have 0 or 1 bit set.
11459
6d0cf446
BE
114602020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11461
11462 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11463 conversion.
11464 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11465 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11466 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11467 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11468 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11469
7001c1b7
SM
114702020-02-18 Simon Marchi <simon.marchi@efficios.com>
11471
11472 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11473
fdb61c6c
SM
114742020-02-14 Simon Marchi <simon.marchi@efficios.com>
11475
11476 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11477 displaced_step_closure_up.
11478 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11479 (struct displaced_step_closure_up):
11480 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11481 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11482 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11483 Likewise.
11484 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11485 * gdbarch.c, gdbarch.h: Re-generate.
11486 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11487 displaced_step_closure_up.
11488 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11489 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11490 * infrun.h (displaced_step_closure_up): New type alias.
11491 (struct displaced_step_inferior_state) <step_closure>: Change
11492 type to displaced_step_closure_up.
11493 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11494 displaced_step_closure_up.
11495 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11496
a4a38eb4
TT
114972020-02-14 Tom Tromey <tom@tromey.com>
11498
11499 * minidebug.c (gnu_debug_key): New global.
11500 (find_separate_debug_file_in_section): Use it.
11501
e8217e61
SM
115022020-02-14 Simon Marchi <simon.marchi@efficios.com>
11503
11504 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11505 std::unique_ptr.
11506 * gdbarch.c: Re-generate.
11507 * gdbarch.h: Re-generate.
11508 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11509 change.
11510 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11511 type to std::unique_ptr.
11512 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11513 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11514 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11515 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11516 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11517 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11518 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11519 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11520 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11521
d8d83535
SM
115222020-02-14 Simon Marchi <simon.marchi@efficios.com>
11523
11524 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11525 std::unique_ptr.
11526 (displaced_step_clear): Rename to...
11527 (displaced_step_reset): ... this. Just call displaced->reset ().
11528 (displaced_step_clear_cleanup): Rename to...
11529 (displaced_step_reset_cleanup): ... this.
11530 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11531 (displaced_step_fixup): Likewise.
11532 (resume_1): Likewise.
11533 (handle_inferior_event): Restore child's memory before calling
11534 displaced_step_fixup on the parent.
11535 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11536 to std::unique_ptr.
11537 <step_closure>: Change type to std::unique_ptr.
11538
5f661e03
SM
115392020-02-14 Simon Marchi <simon.marchi@efficios.com>
11540
11541 * arm-tdep.c: Include count-one-bits.h.
11542 (cleanup_block_store_pc): Use count_one_bits.
11543 (cleanup_block_load_pc): Use count_one_bits.
11544 (arm_copy_block_xfer): Use count_one_bits.
11545 (thumb2_copy_block_xfer): Use count_one_bits.
11546 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11547 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11548 (thumb_get_next_pcs_raw): Use count_one_bits.
11549 (arm_get_next_pcs_raw): Use count_one_bits_l.
11550 * arch/arm.c (bitcount): Remove.
11551 * arch/arm.h (bitcount): Remove.
11552
8084e579
TT
115532020-02-14 Tom Tromey <tromey@adacore.com>
11554
11555 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11556 Update.
11557 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11558 * dwarf2/loc.c (call_site_find_chain_1): Return
11559 unique_xmalloc_ptr.
11560 (call_site_find_chain): Likewise.
11561
258bf0ee
RB
115622020-02-14 Richard Biener <rguenther@suse.de>
11563
11564 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11565 on expression with division operators.
11566
f98a8458
AKS
115672020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11568
11569 * MAINTAINERS (Write After Approval): Adding myself.
11570
d1437c0e
TT
115712020-02-12 Tom Tromey <tom@tromey.com>
11572
11573 * event-loop.c (event_data, gdb_event, event_handler_func):
11574 Remove.
11575
3d4560f7
TT
115762020-02-12 Tom Tromey <tom@tromey.com>
11577
11578 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11579 (dwarf2_frame_objfile_data): Add comment.
11580 (find_comp_unit, set_comp_unit): New functions.
11581 (dwarf2_frame_find_fde): Use find_comp_unit.
11582 (dwarf2_build_frame_info): Use set_comp_unit.
11583
21982304
TT
115842020-02-12 Tom Tromey <tom@tromey.com>
11585
11586 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11587 (comp_unit): Don't initialize objfile.
11588 (execute_cfa_program): Add text_offset parameter.
11589 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11590 (dwarf2_frame_cache): Update.
11591 (dwarf2_build_frame_info): Don't set "objfile" member.
11592
4debb237
TT
115932020-02-12 Tom Tromey <tom@tromey.com>
11594
11595 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11596 (decode_frame_entry): Likewise.
11597 (dwarf2_build_frame_info): Update.
11598
0d404d44
TT
115992020-02-12 Tom Tromey <tom@tromey.com>
11600
11601 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11602 (decode_frame_entry_1): Use the comp_unit obstack.
11603
a7a3ae5c
TT
116042020-02-12 Tom Tromey <tom@tromey.com>
11605
11606 * dwarf2/frame.c (struct comp_unit): Add initializers and
11607 constructor.
11608 (dwarf2_frame_objfile_data): Store a comp_unit.
11609 (dwarf2_frame_find_fde): Update.
11610 (dwarf2_build_frame_info): Use "new".
11611
a9d65418
TT
116122020-02-12 Tom Tromey <tom@tromey.com>
11613
11614 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11615 (dwarf2_fde_table): Typedef for std::vector.
11616 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11617 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11618 (decode_frame_entry): Update.
11619 (dwarf2_build_frame_info): Use "new".
11620
7559c217
CB
116212020-02-12 Christian Biesinger <cbiesinger@google.com>
11622
11623 * arm-tdep.c (arm_gdbarch_init): Update.
11624 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11625 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11626 have_neon, is_m>: Change to bool.
11627
aeefc73c
CB
116282020-02-12 Christian Biesinger <cbiesinger@google.com>
11629
11630 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11631
d27b8e5f
TT
116322020-02-12 Tom Tromey <tom@tromey.com>
11633
11634 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11635
cd5900f3
HD
116362020-02-12 Hannes Domani <ssbssa@yahoo.de>
11637
11638 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11639 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11640
f056b22b
TT
116412020-02-11 Tom Tromey <tom@tromey.com>
11642
11643 * psymtab.h: Update comment.
11644
f92ff6b5
TT
116452020-02-11 Tom Tromey <tom@tromey.com>
11646
11647 * gdb_obstack.h (struct auto_obstack): Use
11648 DISABLE_COPY_AND_ASSIGN.
11649
3fd6912b
TT
116502020-02-11 Tom Tromey <tom@tromey.com>
11651
11652 * dwarf2/frame.h (struct objfile): Don't forward declare.
11653
69ed9b74
CB
116542020-02-11 Christian Biesinger <cbiesinger@google.com>
11655
11656 * cris-tdep.c (cris_supply_gregset): Change signature to match
11657 what struct regset expects.
11658 (cris_regset): New struct.
11659 (fetch_core_registers): Remove.
11660 (cris_iterate_over_regset_sections): New function.
11661 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11662 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11663
bda874f6
CB
116642020-02-11 Christian Biesinger <cbiesinger@google.com>
11665
11666 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11667 registers.
11668
754e1564
CB
116692020-02-11 Christian Biesinger <cbiesinger@google.com>
11670
11671 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11672
8ddd8e0e
SM
116732020-02-11 Simon Marchi <simon.marchi@efficios.com>
11674
11675 * configure: Re-generate.
11676
898e7f60
SM
116772020-02-11 Simon Marchi <simon.marchi@efficios.com>
11678
11679 * configure: Re-generate.
11680
58df732b
SM
116812020-02-11 Simon Marchi <simon.marchi@efficios.com>
11682
11683 * acinclude: Update warning.m4 path.
11684 * warning.m4: Move to gdbsupport.
11685
da5bd37e
TT
116862020-02-11 Tom Tromey <tromey@adacore.com>
11687
11688 * remote.c (remote_console_output): Update.
11689 * printcmd.c (printf_command): Update.
11690 * event-loop.c (gdb_wait_for_event): Update.
11691 * linux-nat.c (sigchld_handler): Update.
11692 * remote-sim.c (gdb_os_write_stdout): Update.
11693 (gdb_os_flush_stdout): Update.
11694 (gdb_os_flush_stderr): Update.
11695 (gdb_os_write_stderr): Update.
11696 * exceptions.c (print_exception): Update.
11697 * remote-fileio.c (remote_fileio_func_read): Update.
11698 (remote_fileio_func_write): Update.
11699 * tui/tui.c (tui_enable): Update.
11700 * tui/tui-interp.c (tui_interp::init): Update.
11701 * utils.c (init_page_info): Update.
11702 (putchar_unfiltered, fputc_unfiltered): Update.
11703 (gdb_flush): Update.
11704 (emit_style_escape): Update.
11705 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11706 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11707 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11708 (stderr_file::write): Update.
11709 (stderr_file::puts): Update.
11710 * ui-file.h (ui_file_isatty, ui_file_write)
11711 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11712 (ui_file_puts): Don't declare.
11713
85f0dd3c
TV
117142020-02-10 Tom de Vries <tdevries@suse.de>
11715
11716 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11717 sentinel to char *.
11718
2e927613
TV
117192020-02-09 Tom de Vries <tdevries@suse.de>
11720
11721 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11722 filename if it matches "<artificial>".
11723
6bafc845
HD
117242020-02-09 Hannes Domani <ssbssa@yahoo.de>
11725
11726 * windows-tdep.c (struct enum_value_name): New struct.
11727 (create_enum): New function.
11728 (windows_get_siginfo_type): Create and use enum types.
11729
7928d571
HD
117302020-02-09 Hannes Domani <ssbssa@yahoo.de>
11731
11732 * NEWS: Mention $_siginfo support for Windows.
11733 * windows-nat.c (handle_exception): Set siginfo_er.
11734 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11735 (windows_xfer_siginfo): New function.
11736 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11737 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11738 (init_windows_gdbarch_data): New function.
11739 (get_windows_gdbarch_data): New function.
11740 (windows_get_siginfo_type): New function.
11741 (windows_init_abi): Register windows_get_siginfo_type.
11742 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11743
6751ebae
TT
117442020-02-08 Tom Tromey <tom@tromey.com>
11745
11746 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11747 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11748 <keep>: Declare method.
11749 <m_keep>: Remove member.
11750 <~cutu_reader>: Remove.
11751 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11752 (cutu_reader::cutu_reader): Update.
11753 (cutu_reader::keep): Rename from ~cutu_reader.
11754 (process_psymtab_comp_unit, build_type_psymtabs_1)
11755 (process_skeletonless_type_unit, load_partial_comp_unit)
11756 (load_full_comp_unit, dwarf2_read_addr_index)
11757 (read_signatured_type): Update.
11758
135f5437
TT
117592020-02-08 Tom Tromey <tom@tromey.com>
11760
11761 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11762 "want_partial_unit" parameter.
11763 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11764 Inline check for DW_TAG_partial_unit.
11765 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11766
9f66ff1c
TT
117672020-02-08 Tom Tromey <tom@tromey.com>
11768
11769 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11770 read.c.
11771 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11772 read.c.
11773
c8a7a66f
TT
117742020-02-08 Tom Tromey <tom@tromey.com>
11775
11776 * dwarf2/read.c (read_address): Move to comp-unit.c.
11777 (dwarf2_rnglists_process, dwarf2_ranges_process)
11778 (read_attribute_value, dwarf_decode_lines_1)
11779 (var_decode_location, decode_locdesc): Update.
11780 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11781 read.c. Remove "cu" parameter.
11782 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11783 method.
11784
8266302d
TT
117852020-02-08 Tom Tromey <tom@tromey.com>
11786
11787 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11788 (read_indirect_line_string): Update.
11789 * dwarf2/comp-unit.c (read_offset): Remove.
11790 (read_comp_unit_head): Update.
11791 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11792 method.
11793 (read_offset): Don't declare.
11794
4057dfde
TT
117952020-02-08 Tom Tromey <tom@tromey.com>
11796
11797 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11798 * dwarf2/read.c (struct comp_unit_head): Move to
11799 dwarf2/comp-unit.h.
11800 (enum class rcuh_kind): Move to comp-unit.h.
11801 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11802 (read_comp_unit_head, error_check_comp_unit_head)
11803 (read_and_check_comp_unit_head): Move to comp-unit.c.
11804 (read_offset, dwarf_unit_type_name): Likewise.
11805 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11806 (cutu_reader::cutu_reader, read_call_site_scope)
11807 (find_partial_die, follow_die_offset): Update.
11808 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11809
24aa364d
TT
118102020-02-08 Tom Tromey <tom@tromey.com>
11811
11812 * dwarf2/read.c (read_offset_1): Move to leb.c.
11813 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11814 (dwarf_decode_macro_bytes): Update.
11815 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11816 * dwarf2/leb.h (read_offset): Declare.
11817
2c7d5afc
TT
118182020-02-08 Tom Tromey <tom@tromey.com>
11819
11820 * dwarf2/read.c (dwarf2_section_size): Remove.
11821 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11822 Update.
11823 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11824
4075cb26
TT
118252020-02-08 Tom Tromey <tom@tromey.com>
11826
11827 * dwarf2/read.c (read_initial_length): Move to leb.c.
11828 * dwarf2/leb.h (read_initial_length): Declare.
11829 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11830 handle_nonstd parameter.
11831 * dwarf2/frame.c (read_initial_length): Remove.
11832 (decode_frame_entry_1): Update.
11833
09ba997f
TT
118342020-02-08 Tom Tromey <tom@tromey.com>
11835
11836 * dwarf2/loc.c (dwarf2_find_location_expression)
11837 (dwarf_evaluate_loc_desc::get_tls_address)
11838 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11839 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11840 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11841 (dwarf2_compile_property_to_c)
11842 (dwarf2_loc_desc_get_symbol_read_needs)
11843 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11844 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11845 (loclist_describe_location, loclist_tracepoint_var_ref)
11846 (loclist_generate_c_location): Update.
11847 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11848 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11849 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11850 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11851 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11852 (dwarf2_per_cu_data::addr_size)
11853 (dwarf2_per_cu_data::ref_addr_size)
11854 (dwarf2_per_cu_data::text_offset)
11855 (dwarf2_per_cu_data::addr_type): Now methods.
11856 (per_cu_header_read_in): Make per_cu "const".
11857 (dwarf2_version): Remove.
11858 (dwarf2_per_cu_data::int_type): Now a method.
11859 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11860 (set_die_type, read_array_type, read_subrange_index_type)
11861 (read_tag_string_type, read_subrange_type): Update.
11862 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11863 offset_size, ref_addr_size, text_offset, addr_type, version,
11864 objfile, int_type, addr_sized_int_type>: Declare methods.
11865
96c738c0
TT
118662020-02-08 Tom Tromey <tom@tromey.com>
11867
11868 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11869 Move earlier.
11870
8fdd972c
TT
118712020-02-08 Tom Tromey <tom@tromey.com>
11872
11873 * dwarf2/read.h (dwarf_line_debug): Declare.
11874 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11875 * dwarf2/read.c: Move line_header code to new files.
11876 (dwarf_line_debug): No longer static.
11877 * dwarf2/line-header.c: New file.
11878 * dwarf2/line-header.h: New file.
11879
03075812
TT
118802020-02-08 Tom Tromey <tom@tromey.com>
11881
11882 * dwarf2/read.c (struct line_header) <file_full_name,
11883 file_file_name>: Return unique_xmalloc_ptr.
11884 (line_header::file_file_name): Update.
11885 (line_header::file_full_name): Update.
11886 (dw2_get_file_names_reader): Update.
11887 (macro_start_file): Update.
11888
bb822404
TT
118892020-02-08 Tom Tromey <tom@tromey.com>
11890
11891 * dwarf2/read.c (struct line_header) <file_full_name,
11892 file_file_name>: Declare methods.
11893 (dw2_get_file_names_reader): Update.
11894 (file_file_name): Now a method.
11895 (file_full_name): Likewise.
11896 (macro_start_file): Update.
11897
009b64fc
TT
118982020-02-08 Tom Tromey <tom@tromey.com>
11899
11900 * dwarf2/read.c (dwarf_always_disassemble)
11901 (show_dwarf_always_disassemble): Move to loc.c.
11902 (_initialize_dwarf2_read): Move "always-disassemble" registration
11903 to loc.c.
11904 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11905 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11906 static.
11907 (show_dwarf_always_disassemble): Move from read.c.
11908 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11909
5895093f
TT
119102020-02-08 Tom Tromey <tom@tromey.com>
11911
11912 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11913 (create_quick_file_names_table): Return htab_up.
11914 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11915 Update.
11916 * dwarf2/read.h (struct dwarf2_per_objfile)
11917 <quick_file_names_table>: Now htab_up.
11918
b3b32279
TT
119192020-02-08 Tom Tromey <tom@tromey.com>
11920
11921 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11922
1d33d811
TT
119232020-02-08 Tom Tromey <tom@tromey.com>
11924
11925 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11926 Rewrite.
11927 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11928 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11929 (abbrev_table::abbrev_table): No longer inline.
11930 (ABBREV_HASH_SIZE): Remove.
11931 (abbrev_table::m_abbrevs): Now an htab_up.
11932
86de1d91
TT
119332020-02-08 Tom Tromey <tom@tromey.com>
11934
11935 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11936 (cutu_reader): Update.
11937 (build_type_psymtabs_1): Update.
11938 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11939 (abbrev_table::alloc_abbrev): Update.
11940 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11941 (abbrev_table::read): New static method, renamed from
11942 abbrev_table_read_table.
11943 (abbrev_table::alloc_abbrev)
11944 (abbrev_table::add_abbrev): Now private.
11945 (abbrev_table::abbrev_table): Now private.
11946 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11947
0335378b
TT
119482020-02-08 Tom Tromey <tom@tromey.com>
11949
11950 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11951 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11952 htab_up.
11953
48b490f2
TT
119542020-02-08 Tom Tromey <tom@tromey.com>
11955
11956 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11957 htab_up.
11958 (lookup_dwo_unit_in_dwp): Update.
11959 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11960 on obstack.
11961
bc68fb19
TT
119622020-02-08 Tom Tromey <tom@tromey.com>
11963
11964 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11965 obstack.
11966
d15acc42
TT
119672020-02-08 Tom Tromey <tom@tromey.com>
11968
11969 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11970 line_header_hash.
11971 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11972 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11973 Change type to htab_up.
11974
eaa5fa8b
TT
119752020-02-08 Tom Tromey <tom@tromey.com>
11976
11977 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11978 htab_up. Don't allocate on obstack.
11979 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11980 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11981 Change type to htab_up.
11982
b0b6a987
TT
119832020-02-08 Tom Tromey <tom@tromey.com>
11984
11985 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11986 Change type to htab_up.
11987 * dwarf2/read.c (create_signatured_type_table_from_index)
11988 (create_signatured_type_table_from_debug_names)
11989 (create_all_type_units, add_type_unit)
11990 (lookup_dwo_signatured_type, lookup_signatured_type)
11991 (process_skeletonless_type_unit): Update.
11992 (create_debug_type_hash_table, create_debug_types_hash_table):
11993 Change type of types_htab.
11994 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11995 htab_up. Don't allocate on obstack.
11996 (create_cus_hash_table): Change type of cus_htab parameter.
11997 (struct dwo_file) <cus, tus>: Now htab_up.
11998 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11999 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12000 (queue_and_load_all_dwo_tus): Update.
12001 * dwarf2/index-write.c (write_gdbindex): Update.
12002 (write_debug_names): Update.
12003
39856def
TT
120042020-02-08 Tom Tromey <tom@tromey.com>
12005
12006 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12007 dwarf2/read.c. Remove "next" member. Add constructor ntad
12008 destructor.
12009 (struct dwarf2_per_objfile) <queue>: New member.
12010 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12011 dwarf2/read.h.
12012 (dwarf2_queue, dwarf2_queue_tail): Remove.
12013 (class dwarf2_queue_guard): Add parameter to constructor. Use
12014 DISABLE_COPY_AND_ASSIGN.
12015 <m_per_objfile>: New member.
12016 <~dwarf2_queue_guard>: Rewrite.
12017 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12018 Update.
12019 (~dwarf2_queue_item): New.
12020
3e225074
TT
120212020-02-08 Tom Tromey <tom@tromey.com>
12022
12023 * dwarf2/read.c (struct die_info) <has_children>: New member.
12024 (dw2_get_file_names_reader): Remove has_children.
12025 (dw2_get_file_names): Update.
12026 (read_cutu_die_from_dwo): Remove has_children.
12027 (cutu_reader::init_tu_and_read_dwo_dies)
12028 (cutu_reader::cutu_reader): Update.
12029 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12030 Remove has_children.
12031 (build_type_psymtabs_1, process_skeletonless_type_unit)
12032 (load_partial_comp_unit, load_full_comp_unit): Update.
12033 (create_dwo_cu_reader): Remove has_children.
12034 (create_cus_hash_table, read_die_and_children): Update.
12035 (read_full_die_1,read_full_die): Remove has_children.
12036 (read_signatured_type): Update.
12037 (class cutu_reader) <has_children>: Remove.
12038
82ca8957
TT
120392020-02-08 Tom Tromey <tom@tromey.com>
12040
12041 * dwarf2/expr.c: Rename from dwarf2expr.c.
12042 * dwarf2/expr.h: Rename from dwarf2expr.h.
12043 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12044 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12045 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12046 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12047 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12048 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12049 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12050 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12051 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12052 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12053 * dwarf2/loc.c: Rename from dwarf2loc.c.
12054 * dwarf2/loc.h: Rename from dwarf2loc.h.
12055 * dwarf2/read.c: Rename from dwarf2read.c.
12056 * dwarf2/read.h: Rename from dwarf2read.h.
12057 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12058 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12059 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12060 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12061 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12062 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12063 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12064 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12065 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12066 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12067 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12068 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12069 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12070 Update.
12071 * Makefile.in (COMMON_SFILES): Update.
12072 (HFILES_NO_SRCDIR): Update.
12073
9e35d499
TT
120742020-02-08 Tom Tromey <tom@tromey.com>
12075
12076 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12077 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12078
1eba2311
TT
120792020-02-08 Tom Tromey <tom@tromey.com>
12080
12081 * dwarf2read.h (struct die_info): Don't declare.
12082
e41c2da2
TT
120832020-02-08 Tom Tromey <tom@tromey.com>
12084
12085 * dwarf2read.h (die_info_ptr): Remove typedef.
12086
4fc6c0d5
TT
120872020-02-08 Tom Tromey <tom@tromey.com>
12088
12089 * dwarf2read.c (read_call_site_scope)
12090 (handle_data_member_location, dwarf2_add_member_fn)
12091 (mark_common_block_symbol_computed, read_common_block)
12092 (attr_to_dynamic_prop, partial_die_info::read)
12093 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12094 (dwarf2_symbol_mark_computed, set_die_type): Update.
12095 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12096 method.
12097 (attr_form_is_block): Don't declare.
12098 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12099
cd6c91b4
TT
121002020-02-08 Tom Tromey <tom@tromey.com>
12101
12102 * dwarf2read.c (dwarf2_find_base_address, )
12103 (read_call_site_scope, rust_containing_type)
12104 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12105 (handle_data_member_location, dwarf2_add_member_fn)
12106 (get_alignment, read_structure_type, process_structure_scope)
12107 (mark_common_block_symbol_computed, read_common_block)
12108 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12109 (partial_die_info::read, read_attribute_value, new_symbol)
12110 (lookup_die_type, dwarf2_get_ref_die_offset)
12111 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12112 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12113 (dwarf2_symbol_mark_computed): Update.
12114 * dwarf2/attribute.h (struct attribute) <value_as_address,
12115 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12116 methods.
12117 (value_as_address, attr_form_is_section_offset)
12118 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12119 * dwarf2/attribute.c (attribute::value_as_address)
12120 (attribute::form_is_section_offset, attribute::form_is_constant)
12121 (attribute::form_is_ref): Now methods.
12122
162dce55
TT
121232020-02-08 Tom Tromey <tom@tromey.com>
12124
12125 * dwarf2read.c (struct attribute, DW_STRING)
12126 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12127 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12128 (attr_form_is_block, attr_form_is_section_offset)
12129 (attr_form_is_constant, attr_form_is_ref): Move.
12130 * dwarf2/attribute.h: New file.
12131 * dwarf2/attribute.c: New file, from dwarf2read.c.
12132 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12133
3054dd54
TT
121342020-02-08 Tom Tromey <tom@tromey.com>
12135
12136 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12137 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12138 Move.
12139 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12140 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12141 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12142 abbrev.c.
12143 * dwarf2/abbrev.h: New file.
12144 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12145 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12146
96b79293
TT
121472020-02-08 Tom Tromey <tom@tromey.com>
12148
12149 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12150 (dwarf2_section_size, dwarf2_get_section_info)
12151 (create_signatured_type_table_from_debug_names)
12152 (create_addrmap_from_aranges, read_debug_names_from_section)
12153 (get_gdb_index_contents_from_section, read_comp_unit_head)
12154 (error_check_comp_unit_head, read_abbrev_offset)
12155 (create_debug_type_hash_table, init_cu_die_reader)
12156 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12157 (read_comp_units_from_section, create_cus_hash_table)
12158 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12159 (create_dwp_v2_section, dwarf2_rnglists_process)
12160 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12161 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12162 (read_indirect_string_from_dwz, read_addr_index_1)
12163 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12164 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12165 (fill_in_loclist_baton): Update.
12166 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12167 get_containing_section, get_bfd_owner, get_bfd_section,
12168 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12169 (dwarf2_read_section, get_section_name, get_section_file_name)
12170 (get_containing_section, get_section_bfd_owner)
12171 (get_section_bfd_section, get_section_name, get_section_file_name)
12172 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12173 declare.
12174 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12175 (dwarf2_section_info::get_bfd_owner)
12176 (dwarf2_section_info::get_bfd_section)
12177 (dwarf2_section_info::get_name)
12178 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12179 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12180 (dwarf2_section_info::read): Now methods.
12181 * dwarf-index-write.c (class debug_names): Update.
12182
2c86cff9
TT
121832020-02-08 Tom Tromey <tom@tromey.com>
12184
12185 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12186 Move to dwarf2/section.h.
12187 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12188 (get_section_bfd_section, get_section_name)
12189 (get_section_file_name, get_section_id, get_section_flags)
12190 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12191 dwarf2/section.c.
12192 * dwarf2/section.h: New file.
12193 * dwarf2/section.c: New file, from dwarf2read.c.
12194 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12195
f4382c45
TT
121962020-02-08 Tom Tromey <tom@tromey.com>
12197
12198 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12199 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12200 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12201 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12202 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12203 * dwarf2/leb.h: New file, from dwarf2read.c.
12204 * dwarf2/leb.c: New file, from dwarf2read.c.
12205 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12206 Remove.
12207 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12208 (COMMON_SFILES): Add dwarf2/leb.c.
12209
01840b7a
JB
122102020-02-08 Joel Brobecker <brobecker@adacore.com>
12211
12212 GDB 9.1 released.
12213
dfcb27e4
IB
122142020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12215
12216 PR gdb/25190:
aac66a4c
SM
12217 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12218 * gdb/remote.c (remote_console_output): Update.
12219 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12220 (ui_file_puts): ...this.
12221 * gdb/ui-file.h (ui_file_puts): Add declaration.
12222 * gdb/utils.c (emit_style_escape): Update.
12223 (flush_wrap_buffer): Update.
12224 (fputs_maybe_filtered): Update.
12225 (fputs_unfiltered): Add function.
dfcb27e4 12226
faa17681
IB
122272020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12228
aac66a4c
SM
12229 * gdb/event-loop.c (gdb_wait_for_event): Update.
12230 * gdb/printcmd.c (printf_command): Update.
12231 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12232 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12233 (gdb_os_flush_stderr): Update.
12234 * gdb/remote.c (remote_console_output): Update.
12235 * gdb/ui-file.c (gdb_flush): Rename to...
12236 (ui_file_flush): ...this.
12237 (stderr_file::write): Update.
12238 (stderr_file::puts): Update.
12239 * gdb/ui-file.h (gdb_flush): Rename to...
12240 (ui_file_flush): ...this.
12241 * gdb/utils.c (gdb_flush): Add function.
12242 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12243
5abbbe1d
TT
122442020-02-07 Tom Tromey <tromey@adacore.com>
12245
12246 PR breakpoints/24915:
12247 * source.c (find_and_open_source): Do not check basenames_may_differ.
12248
919adfe8
TT
122492020-02-07 Tom Tromey <tom@tromey.com>
12250
12251 * README: Update gdbserver documentation.
12252 * gdbserver: Move to top level.
12253 * configure.tgt (build_gdbserver): Remove.
12254 * configure.ac: Remove --enable-gdbserver.
12255 * configure: Rebuild.
12256 * Makefile.in (distclean): Don't mention gdbserver.
12257
1d5d29e7
SV
122582020-02-06 Shahab Vahedi <shahab@synopsys.com>
12259
12260 * source-cache.c (source_cache::ensure): Surround
12261 get_plain_source_lines with a try/catch.
12262 (source_cache::get_line_charpos): Get rid of try/catch
12263 and only check for the return value of "ensure".
12264 * tui/tui-source.c (tui_source_window::set_contents):
12265 Simplify "nlines" calculation.
12266
6eb1129c
SV
122672020-02-06 Shahab Vahedi <shahab@synopsys.com>
12268
12269 * MAINTAINERS (Write After Approval): Add myself.
12270
c6a42d11
CB
122712020-02-05 Christian Biesinger <cbiesinger@google.com>
12272
12273 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12274 function call.
12275
c8ecdda6
CB
122762020-02-05 Christian Biesinger <cbiesinger@google.com>
12277
12278 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12279
f6480e70
MR
122802020-02-05 Maciej W. Rozycki <macro@wdc.com>
12281
12282 * nat/riscv-linux-tdesc.h: New file.
12283 * nat/riscv-linux-tdesc.c: New file, taking code from...
12284 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12285 ... here.
12286 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12287 NATDEPFILES.
12288
dcc9fbc6
AB
122892020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12290
12291 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12292 we don't set the fake simulator ptid to the null_ptid.
12293
719546c4
SM
122942020-02-03 Simon Marchi <simon.marchi@efficios.com>
12295
12296 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12297 * gdbthread.h (class thread_info) <resumed>: Likewise.
12298 * infrun.c (resume_1): Likewise.
12299 (proceed): Likewise.
12300 (infrun_thread_stop_requested): Likewise.
12301 (stop_all_threads): Likewise.
12302 (handle_inferior_event): Likewise.
12303 (restart_threads): Likewise.
12304 (finish_step_over): Likewise.
12305 (keep_going_stepped_thread): Likewise.
12306 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12307 (linux_handle_extended_wait): Likewise.
12308 * record-btrace.c (get_thread_current_frame_id): Likewise.
12309 * record-full.c (record_full_wait_1): Likewise.
12310 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12311 * target.c (target_resume): Likewise.
12312 * thread.c (set_running_thread): Likewise.
12313
e409c542
AKS
123142020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12315
12316 * f-valprint.c (f77_print_array_1): Changed datatype of index
12317 variable to LONGEST from int to enable it to contain bound
12318 values correctly.
12319
ee98c0da
MR
123202020-02-03 Maciej W. Rozycki <macro@wdc.com>
12321
12322 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12323 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12324 offsets according to FLEN determined.
12325 (riscv_linux_nat_target::read_description): Determine FLEN
12326 dynamically.
12327 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12328 according to FLEN determined.
12329 (riscv_linux_nat_target::store_registers): Likewise.
12330
aa66aac4
SV
123312020-02-01 Shahab Vahedi <shahab@synopsys.com>
12332
12333 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12334 when reg->group is empty and reggroup is not.
12335
fd9faca8
TT
123362020-01-31 Tom Tromey <tromey@adacore.com>
12337
12338 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12339 Call beneath target's mourn_inferior after unpushing.
12340
42330a68
AB
123412020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12342
12343 PR tui/9765
12344 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12345 have enough lines to fill the screen, still return the lowest
12346 address we found.
12347
7a27a45b
AB
123482020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12349
12350 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12351 '-', '<', and '>' commands.
12352
c47f70e2
PA
123532020-01-29 Pedro Alves <palves@redhat.com>
12354 Sergio Durigan Junior <sergiodj@redhat.com>
12355
12356 * infcmd.c (construct_inferior_arguments): Assert that
12357 'argc' is greater than 0.
12358
5133a315
LM
123592020-01-29 Luis Machado <luis.machado@linaro.org>
12360
12361 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12362 (BRK_INSN_MASK): Define to 0xd4200000.
12363 (aarch64_program_breakpoint_here_p): New function.
12364 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12365 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12366 breakpoint.c.
12367 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12368 breakpoint.h
12369 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12370 call gdbarch_program_breakpoint_here_p.
12371 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12372 default_program_breakpoint_here_p, changed return type to bool and
12373 simplified.
12374 * breakpoint.h (program_breakpoint_here): Moved prototype to
12375 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12376 return type to bool.
12377 * gdbarch.c: Regenerate.
12378 * gdbarch.h: Regenerate.
12379 * gdbarch.sh (program_breakpoint_here_p): New method.
12380 * infrun.c (handle_signal_stop): Call
12381 gdbarch_program_breakpoint_here_p.
12382
168f8c6b
TT
123832020-01-26 Tom Tromey <tom@tromey.com>
12384
12385 * ctfread.c (struct ctf_fp_info): Reindent.
12386 (_initialize_ctfread): Remove.
12387
128a391f
TT
123882020-01-26 Tom Tromey <tom@tromey.com>
12389
12390 * psymtab.c (partial_map_expand_apply)
12391 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12392 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12393 (psym_print_stats, psym_expand_symtabs_for_function)
12394 (psym_map_symbol_filenames, psym_map_matching_symbols)
12395 (psym_expand_symtabs_matching)
12396 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12397 (maintenance_check_psymtabs): Use new methods.
12398 * psympriv.h (struct partial_symtab) <readin_p,
12399 get_compunit_symtab>: New methods.
12400 <readin, compunit_symtab>: Remove members.
12401 (struct standard_psymtab): New.
12402 (struct legacy_psymtab): Derive from standard_psymtab.
12403 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12404 standard_psymtab.
12405 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12406
0494dbec
TT
124072020-01-26 Tom Tromey <tom@tromey.com>
12408
12409 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12410 read_dependencies. Add assert.
12411 * psymtab.c (partial_symtab::read_dependencies): New method.
12412 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12413 method.
12414 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12415 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12416 read_dependencies.
12417 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12418 Add assert.
12419
8566b89b
TT
124202020-01-26 Tom Tromey <tom@tromey.com>
12421
12422 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12423 Call expand_psymtab.
12424 (xcoff_read_symtab): Call expand_psymtab.
12425 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12426 legacy_expand_psymtab.
12427 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12428 method.
12429 (struct legacy_psymtab) <expand_psymtab>: Implement.
12430 <legacy_expand_psymtab>: New member.
12431 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12432 (parse_partial_symbols): Set legacy_expand_psymtab.
12433 (psymtab_to_symtab_1): Change argument order. Call
12434 expand_psymtab.
12435 (new_psymtab): Set legacy_expand_psymtab.
12436 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12437 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12438 expand_psymtab.
12439 (dwarf2_psymtab::expand_psymtab): Rename from
12440 psymtab_to_symtab_1. Call expand_psymtab.
12441 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12442 (dbx_end_psymtab): Likewise.
12443 (dbx_psymtab_to_symtab_1): Change argument order. Call
12444 expand_psymtab.
12445 (dbx_read_symtab): Call expand_psymtab.
12446 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12447 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12448 (ctf_psymtab::read_symtab): Call expand_psymtab.
12449
077cbab2
TT
124502020-01-26 Tom Tromey <tom@tromey.com>
12451
12452 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12453 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12454 messages.
12455 * mdebugread.c (mdebug_read_symtab): Remove prints.
12456 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12457 assert.
12458 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12459
891813be
TT
124602020-01-26 Tom Tromey <tom@tromey.com>
12461
12462 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12463 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12464 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12465 legacy_symtab.
12466 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12467 * psymtab.c (psymtab_to_symtab): Call method.
12468 (dump_psymtab): Update.
12469 * psympriv.h (struct partial_symtab): Add virtual destructor.
12470 <read_symtab>: New method.
12471 (struct legacy_symtab): New.
12472 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12473 (struct pst_map) <pst>: Now a legacy_psymtab.
12474 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12475 (new_psymtab): Use legacy_psymtab.
12476 * dwarf2read.h (struct dwarf2_psymtab): New.
12477 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12478 * dwarf2read.c (dwarf2_create_include_psymtab)
12479 (dwarf2_build_include_psymtabs, create_type_unit_group)
12480 (create_partial_symtab, process_psymtab_comp_unit_reader)
12481 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12482 (set_partial_user): Use dwarf2_psymtab.
12483 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12484 (psymtab_to_symtab_1, process_full_comp_unit)
12485 (process_full_type_unit, dwarf2_ranges_read)
12486 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12487 (dwarf_decode_lines): Use dwarf2_psymtab.
12488 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12489 (add_address_entry_worker, write_one_signatured_type)
12490 (recursively_count_psymbols, recursively_write_psymbols)
12491 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12492 (write_debug_names): Likewise.
12493 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12494 <pst>: Now a legacy_psymtab.
12495 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12496 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12497 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12498 * ctfread.c (struct ctf_psymtab): New.
12499 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12500 ctf_psymtab.
12501 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12502 (create_partial_symtab): Return a ctf_psymtab.
12503 (scan_partial_symbols): Update.
12504
c3693a1d
TT
125052020-01-26 Tom Tromey <tom@tromey.com>
12506
12507 * xcoffread.c (xcoff_start_psymtab): Use new.
12508 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12509 renamed from start_psymtab_common.
12510 * psympriv.h (struct partial_symtab): Add new constructor.
12511 (start_psymtab_common): Don't declare.
12512 * mdebugread.c (parse_partial_symbols): Use new.
12513 * dwarf2read.c (create_partial_symtab): Use new.
12514 * dbxread.c (start_psymtab): Use new.
12515 * ctfread.c (create_partial_symtab): Use new.
12516
32caafd0
TT
125172020-01-26 Tom Tromey <tom@tromey.com>
12518
12519 * xcoffread.c (xcoff_end_psymtab): Use new.
12520 * psymtab.c (start_psymtab_common): Use new.
12521 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12522 Update.
12523 * psympriv.h (struct partial_symtab): Add parameters to
12524 constructor. Don't inline.
12525 (allocate_psymtab): Don't declare.
12526 * mdebugread.c (new_psymtab): Use new.
12527 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12528 * dbxread.c (dbx_end_psymtab): Use new.
12529
abaa2f23
TT
125302020-01-26 Tom Tromey <tom@tromey.com>
12531
12532 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12533 allocate_psymtab. Update documentation.
12534 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12535 allocate_psymtab. Do not use new.
12536 (allocate_psymtab): Use new. Update.
12537
6d94535f
TT
125382020-01-26 Tom Tromey <tom@tromey.com>
12539
12540 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12541 * psymtab.c (psym_print_stats): Update.
12542 * psympriv.h (struct partial_symtab) <readin,
12543 psymtabs_addrmap_supported, anonymous>: Now bool.
12544 * mdebugread.c (psymtab_to_symtab_1): Update.
12545 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12546 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12547 (process_full_comp_unit, process_full_type_unit): Update.
12548 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12549 * ctfread.c (psymtab_to_symtab): Update.
12550
6f17252b
TT
125512020-01-26 Tom Tromey <tom@tromey.com>
12552
12553 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12554 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12555 * psymtab.c (psymtab_storage): Delete psymtabs.
12556 (psymtab_storage::allocate_psymtab): Use new.
12557 (psymtab_storage::discard_psymtab): Use delete.
12558 * psympriv.h (struct partial_symtab): Add constructor and
12559 initializers.
12560
f6f1cebc
TT
125612020-01-26 Tom Tromey <tom@tromey.com>
12562
12563 * machoread.c: Do not include psympriv.h.
12564
e47e48f6
PW
125652020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12566
12567 * NEWS: Mention the new option and the set/show commands.
12568
a2fedca9
PW
125692020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12570
12571 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12572 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12573 (validate_exec_file): New variables, enums, functions.
12574 (exec_file_locate_attach, print_section_info): Style the filenames.
12575 (_initialize_exec): Install show_exec_file_mismatch_command and
12576 set_exec_file_mismatch_command.
12577 * gdbcore.h (validate_exec_file): Declare.
12578 * infcmd.c (attach_command): Call validate_exec_file.
12579 * remote.c ( remote_target::remote_add_inferior): Likewise.
12580
7ffa82e1
AB
125812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12582
12583 * frame.c (find_frame_sal): Move call to get_next_frame into more
12584 inner scope.
12585 * inline-frame.c (inilne_state) <inline_state>: Update argument
12586 types.
12587 (inilne_state) <skipped_symbol>: Rename to...
12588 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12589 (skip_inline_frames): Build vector of skipped symbols and use this
12590 to reate the inline_state.
12591 (inline_skipped_symbol): Add a comment and some assertions, fetch
12592 skipped symbol from the list.
12593
3d92a3e3
AB
125942020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12595
12596 * buildsym.c (lte_is_less_than): Delete.
12597 (buildsym_compunit::end_symtab_with_blockvector): Create local
12598 lambda function to sort line table entries, and use
12599 std::stable_sort instead of std::sort.
12600 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12601 markers when looking for a previous line.
12602
94a72be7
AB
126032020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12604
12605 * dwarf2read.c (lnp_state_machine::record_line): Include
12606 end_sequence parameter in debug print out. Record the line if we
12607 are at an end_sequence marker even if it's not the start of a
12608 statement.
12609 * symmisc.c (maintenance_print_one_line_table): Print end of
12610 sequence markers with 'END' not '0'.
12611
53af73bf
PA
126122020-01-24 Pedro Alves <palves@redhat.com>
12613
12614 PR gdb/25410
12615 * thread.c (scoped_restore_current_thread::restore): Use
12616 switch_to_inferior_no_thread.
12617 * exec.c: Include "progspace-and-thread.h".
12618 (add_target_sections, remove_target_sections):
12619 scoped_restore_current_pspace_and_thread instead of
12620 scoped_restore_current_thread.
12621 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12622 and aspace to the inferior before calling clone_program_space.
12623 Remove stale comment.
12624
3050c6f4
CB
126252020-01-24 Christian Biesinger <cbiesinger@google.com>
12626
12627 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12628 (arm_netbsd_nat_target::fetch_registers): ...this.
12629 (arm_nbsd_nat_target::store_registers): Rename to...
12630 (arm_netbsd_nat_target::store_registers): ...this.
12631
73685c7e
CB
126322020-01-24 Christian Biesinger <cbiesinger@google.com>
12633
12634 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12635 register_t.
12636
89203d40
CB
126372020-01-24 Christian Biesinger <cbiesinger@google.com>
12638
12639 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12640 Update comment.
12641 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12642 Likewise.
12643 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12644 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12645 the correct replacement (iterate_over_regset_sections).
12646 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12647 Update comment.
12648
1ba1ac88
AB
126492020-01-24 Graham Markall <graham.markall@embecosm.com>
12650
12651 PR gdb/23718
12652 * gdb/python/python.c (execute_gdb_command): Call
12653 async_enable_stdin in catch block.
12654
f3364a6d
AB
126552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12656
12657 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12658 SWITCH_THRU_ALL_UIS.
12659
733d0a67
AB
126602020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12661
12662 PR tui/9765
12663 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12664 comment, add extra parameter, and update to store previous symbol
12665 when appropriate.
12666 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12667 add extra parameter.
12668 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12669 remove unneeded parameter, add try/catch around gdb_print_insn,
12670 rewrite to add items to asm_lines vector.
12671 (tui_find_backward_disassembly_start_address): New function.
12672 (tui_find_disassembly_address): Updated throughout.
12673 (tui_disasm_window::set_contents): Update for changes to
12674 tui_disassemble.
12675 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12676 number of lines to scroll.
12677
b3b3bada
SM
126782020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12679
12680 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12681 (SECT_OFF_DATA): Likewise.
12682 (SECT_OFF_RODATA): Likewise.
12683 (SECT_OFF_TEXT): Likewise.
12684 (SECT_OFF_BSS): Likewise.
12685 (struct objfile) <text_section_offset, data_section_offset>: New
12686 methods.
12687 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12688 objfile::text_section_offset.
12689 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12690 * coffread.c (coff_symtab_read): Likewise.
12691 (enter_linenos): Likewise.
12692 (process_coff_symbol): Likewise.
12693 * ctfread.c (get_objfile_text_range): Likewise.
12694 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12695 Use objfile::data_section_offset.
12696 * dwarf2-frame.c (execute_cfa_program): Use
12697 objfile::text_section_offset.
12698 (dwarf2_frame_find_fde): Likewise.
12699 * dwarf2read.c (create_addrmap_from_index): Likewise.
12700 (create_addrmap_from_aranges): Likewise.
12701 (dw2_find_pc_sect_compunit_symtab): Likewise.
12702 (process_psymtab_comp_unit_reader): Likewise.
12703 (add_partial_symbol): Likewise.
12704 (add_partial_subprogram): Likewise.
12705 (process_full_comp_unit): Likewise.
12706 (read_file_scope): Likewise.
12707 (read_func_scope): Likewise.
12708 (read_lexical_block_scope): Likewise.
12709 (read_call_site_scope): Likewise.
12710 (dwarf2_rnglists_process): Likewise.
12711 (dwarf2_ranges_process): Likewise.
12712 (dwarf2_ranges_read): Likewise.
12713 (dwarf_decode_lines_1): Likewise.
12714 (new_symbol): Likewise.
12715 (dwarf2_fetch_die_loc_sect_off): Likewise.
12716 (dwarf2_per_cu_text_offset): Likewise.
12717 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12718 * hppa-tdep.c (read_unwind_info): Likewise.
12719 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12720 * psympriv.h (struct partial_symtab): Likewise.
12721 * psymtab.c (find_pc_sect_psymtab): Likewise.
12722 * solib-svr4.c (enable_break): Likewise.
12723 * stap-probe.c (relocate_address): Use
12724 objfile::data_section_offset.
12725 * xcoffread.c (enter_line_range): Use
12726 objfile::text_section_offset.
12727 (read_xcoff_symtab): Likewise.
12728
ab53f382
SM
127292020-01-23 Simon Marchi <simon.marchi@efficios.com>
12730
12731 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12732 declaration to narrower scopes.
12733
e7eee665
SM
127342020-01-23 Simon Marchi <simon.marchi@efficios.com>
12735
12736 * darwin-nat.h (struct darwin_exception_msg, enum
12737 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12738 Move up.
12739 (class darwin_nat_target) <wait_1, check_new_threads,
12740 decode_exception_message, decode_message, stop_inferior,
12741 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12742 * darwin-nat.c (darwin_check_new_threads): Rename to...
12743 (darwin_nat_target::check_new_threads): ... this.
12744 (darwin_suspend_inferior_it): Remove.
12745 (darwin_decode_exception_message): Rename to...
12746 (darwin_nat_target::decode_exception_message): ... this.
12747 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12748 (darwin_decode_message): Rename to...
12749 (darwin_nat_target::decode_message): ... this.
12750 (cancel_breakpoint): Rename to...
12751 (darwin_nat_target::cancel_breakpoint): ... this.
12752 (darwin_wait): Rename to...
12753 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12754 instead of iterate_over_inferiors.
12755 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12756 (darwin_stop_inferior): Rename to...
12757 (darwin_nat_target::stop_inferior): ... this.
12758 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12759 (darwin_init_thread_list): Rename to...
12760 (darwin_nat_target::init_thread_list): ... this.
12761 (darwin_ptrace_him): Rename to...
12762 (darwin_nat_target::ptrace_him): ... this.
12763 (darwin_nat_target::create_inferior): Pass lambda function to
12764 fork_inferior.
12765 (darwin_nat_target::detach): Call stop_inferior instead of
12766 darwin_stop_inferior.
12767 * fork-inferior.h (fork_inferior): Change init_trace_fun
12768 parameter to gdb::function_view.
12769 * fork-inferior.c (fork_inferior): Likewise.
12770
c162ed3e
HD
127712020-01-23 Hannes Domani <ssbssa@yahoo.de>
12772
12773 * i386-cygwin-tdep.c (core_process_module_section): Update.
12774 * windows-nat.c (struct lm_info_windows): Add text_offset.
12775 (windows_xfer_shared_libraries): Update.
12776 * windows-tdep.c (windows_xfer_shared_library):
12777 Add text_offset_cached argument.
12778 * windows-tdep.h (windows_xfer_shared_library): Update.
12779
a1237872
SM
127802020-01-21 Simon Marchi <simon.marchi@efficios.com>
12781
12782 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12783
b3ee6dd9
SM
127842020-01-21 Simon Marchi <simon.marchi@efficios.com>
12785
12786 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12787 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12788 replace with range-based for.
12789 (gdbsim_interrupt_inferior): Remove.
12790 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12791 with a range-based for. Inline code from
12792 gdbsim_interrupt_inferior.
12793
f9fac3c8
SM
127942020-01-21 Simon Marchi <simon.marchi@efficios.com>
12795
12796 * infrun.c (proceed): Fix indentation.
12797
f6474de9
TT
127982020-01-21 Tom Tromey <tromey@adacore.com>
12799
12800 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12801 * python/python.c (python_extension_ops): Update.
12802 (gdbpy_colorize): New function.
12803 * python/lib/gdb/__init__.py (colorize): New function.
12804 * extension.h (ext_lang_colorize): Declare.
12805 * extension.c (ext_lang_colorize): New function.
12806 * extension-priv.h (struct extension_language_ops) <colorize>: New
12807 member.
12808 * cli/cli-style.c (_initialize_cli_style): Update help text.
12809
f0c702d4
LM
128102020-01-21 Luis Machado <luis.machado@linaro.org>
12811
12812 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12813 <cond>: Change type to bool.
12814 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12815 (aarch64_displaced_step_cb): Likewise.
12816 (aarch64_displaced_step_tb): Likewise.
12817
1ab139e5
LM
128182020-01-21 Luis Machado <luis.machado@linaro.org>
12819
12820 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12821 output.
12822
0c271889
LM
128232020-01-21 Luis Machado <luis.machado@linaro.org>
12824
12825 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12826 <pc_adjust>: Adjust the documentation.
12827 (aarch64_displaced_step_fixup): Check if PC really moved before
12828 adjusting it.
12829
4d89c1c7
TT
128302020-01-19 Tom Tromey <tom@tromey.com>
12831
12832 * disasm.c (~gdb_disassembler): New destructor.
12833 (gdb_buffered_insn_length): Call disassemble_free_target.
12834 * disasm.h (class gdb_disassembler): Declare destructor. Use
12835 DISABLE_COPY_AND_ASSIGN.
12836
c0ab21c2
TT
128372020-01-19 Tom Tromey <tom@tromey.com>
12838
12839 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12840 (die_reader_func_ftype): Remove.
12841 (cutu_reader): New class.
12842 (dw2_get_file_names_reader): Remove "data" parameter.
12843 (dw2_get_file_names): Use cutu_reader.
12844 (create_debug_type_hash_table): Update.
12845 (read_cutu_die_from_dwo): Update comment.
12846 (lookup_dwo_unit): Add dwo_name parameter.
12847 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12848 die_reader_func_ftype and data parameters.
12849 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12850 Remove die_reader_func_ftype and data parameters.
12851 (~cutu_reader): New; from init_cutu_and_read_dies.
12852 (cutu_reader::cutu_reader): Rename from
12853 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12854 and data parameters.
12855 (init_cutu_and_read_dies_simple): Remove.
12856 (struct process_psymtab_comp_unit_data): Remove.
12857 (process_psymtab_comp_unit_reader): Remove data parameter; add
12858 want_partial_unit and pretend_language parameters.
12859 (process_psymtab_comp_unit): Use cutu_reader.
12860 (build_type_psymtabs_reader): Remove data parameter.
12861 (build_type_psymtabs_1): Use cutu_reader.
12862 (process_skeletonless_type_unit): Likewise.
12863 (load_partial_comp_unit_reader): Remove.
12864 (load_partial_comp_unit): Use cutu_reader.
12865 (load_full_comp_unit_reader): Remove.
12866 (load_full_comp_unit): Use cutu_reader.
12867 (struct create_dwo_cu_data): Remove.
12868 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12869 dwo_unit parameters.
12870 (create_cus_hash_table): Use cutu_reader.
12871 (struct dwarf2_read_addr_index_data): Remove.
12872 (dwarf2_read_addr_index_reader): Remove.
12873 (dwarf2_read_addr_index): Use cutu_reader.
12874 (read_signatured_type_reader): Remove.
12875 (read_signatured_type): Use cutu_reader.
12876
45bbae5c
TT
128772020-01-19 Tom Tromey <tom@tromey.com>
12878
12879 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12880 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12881 (tui_wrefresh): Declare.
12882 * tui/tui-wingeneral.c (suppress_output): New global.
12883 (tui_suppress_output, ~tui_suppress_output): New constructor and
12884 destructor.
12885 (tui_wrefresh): New function.
12886 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12887 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12888 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12889 method.
12890 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12891 tui_wrefresh.
12892 (tui_data_window::no_refresh): New method.
12893 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12894 (tui_reg_command): Use tui_suppress_output
12895 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12896 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12897 method.
12898 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12899
4f13c1c0
TT
129002020-01-19 Tom Tromey <tom@tromey.com>
12901
12902 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12903 Handle case where symtab is null.
12904
fa47e446
SM
129052020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12906
12907 * linux-fork.c (one_fork_p): Simplify.
12908
26f42329
SM
129092020-01-17 Simon Marchi <simon.marchi@efficios.com>
12910
12911 * top.c (struct qt_args): Remove.
12912 (kill_or_detach): Change return type to void, replace `void *`
12913 parameter with a proper one.
12914 (print_inferior_quit_action): Likewise.
12915 (quit_confirm): Use range-based for loop to iterate over inferiors.
12916 (quit_force): Likewise.
12917
a9ac81b1
SM
129182020-01-17 Simon Marchi <simon.marchi@efficios.com>
12919
12920 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12921 `void *` parameter with proper parameters.
12922 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12923 (print_one_inferior): Change return type to void, replace `void *`
12924 parameter with proper parameters.
12925 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12926 inferiors.
12927 (get_other_inferior): Remove.
12928 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12929 inferiors.
12930
788eca49
SM
129312020-01-17 Simon Marchi <simon.marchi@efficios.com>
12932
12933 * mi/mi-interp.c (report_initial_inferior): Remove.
12934 (mi_interp::init): Use range-based for to iterate over inferiors.
12935
d9bc85b6
SM
129362020-01-17 Simon Marchi <simon.marchi@efficios.com>
12937
12938 * python/py-inferior.c (build_inferior_list): Remove.
12939 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12940
40c94099
CB
129412020-01-16 Christian Biesinger <cbiesinger@google.com>
12942
12943 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12944 (btrace_stitch_trace): Likewise.
12945 * charset.c (intermediate_encoding): Likewise (vaild).
12946 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12947 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12948 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12949
e0cdfe3c
HD
129502020-01-16 Hannes Domani <ssbssa@yahoo.de>
12951
12952 * windows-tdep.c (windows_get_tlb_type):
12953 Add rtl_user_process_parameters type.
12954
790f1718 129552020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12956 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12957
12958 PR build/24805
12959 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12960 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12961 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12962 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12963 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12964 (ps_plog): Redeclare exported functions with default visibility.
12965
3112ed97
NA
129662020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12967
12968 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12969 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12970
8dc3273e
SM
129712020-01-15 Simon Marchi <simon.marchi@efficios.com>
12972
12973 * infcmd.c (post_create_inferior): Use get_thread_regcache
12974 instead of get_current_regcache.
12975
ff47f4f0
TT
129762020-01-14 Tom Tromey <tom@tromey.com>
12977
12978 PR symtab/12535:
12979 * python/python.c (gdbpy_decode_line): Treat empty string the same
12980 as no argument.
12981
975f45b7
TT
129822020-01-14 Tom Tromey <tom@tromey.com>
12983
12984 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12985
25e57356
TT
129862020-01-14 Tom Tromey <tom@tromey.com>
12987
12988 * nat/linux-btrace.c: Don't include <config.h>.
12989 * nat/linux-ptrace.c: Don't include <config.h>.
12990 * nat/x86-linux-dregs.c: Don't include <config.h>.
12991
05ea2a05
TT
129922020-01-14 Tom Tromey <tom@tromey.com>
12993
12994 * configure: Rebuild.
12995 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12996
01027315
TT
129972020-01-14 Tom Tromey <tom@tromey.com>
12998
12999 * nat/x86-linux-dregs.c: Include configh.h.
13000 * nat/linux-ptrace.c: Include configh.h.
13001 * nat/linux-btrace.c: Include configh.h.
13002 * defs.h: Include config.h, bfd.h.
13003 * configure.ac: Don't source common.host.
13004 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13005 * configure: Rebuild.
13006 * acinclude.m4: Update path.
13007 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13008 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13009 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13010 (CLIBS): Add LIBSUPPORT.
13011 (CDEPS): Likewise.
13012 (COMMON_SFILES): Remove gdbsupport files.
13013 (HFILES_NO_SRCDIR): Likewise.
13014 (stamp-version): Update path to create-version.sh.
13015 (ALLDEPFILES): Remove gdbsupport files.
13016
b2ceabe8
TT
130172020-01-14 Tom Tromey <tom@tromey.com>
13018
13019 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13020 USE_WIN32API when needed.
13021 * configure.ac (USE_WIN32API): Don't define.
13022 (WIN32LIBS): Use WIN32APILIBS.
13023 * configure: Rebuild.
13024
25c51f71
TT
130252020-01-14 Tom Tromey <tom@tromey.com>
13026
13027 * configure: Rebuild.
13028 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13029
717c684d
BE
130302020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13031
13032 * skip.c (skip_function_command): Make skip w/o arguments use the
13033 name of the inlined function if pc is inside any inlined function.
13034
7da6a5b9
LM
130352020-01-14 Luis Machado <luis.machado@linaro.org>
13036
13037 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13038 * infrun.c (resume_1): Likewise.
13039 (handle_inferior_event): Remove stale comment.
13040 * linux-nat.c (linux_nat_target::resume): Update comments.
13041 (save_stop_reason): Likewise.
13042 (linux_nat_filter_event): Likewise.
13043 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13044
44e4c775
AB
130452020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13046
13047 * elfread.c (record_minimal_symbol): Set section index to 0 for
13048 non-allocatable sections.
13049
18a8505e
AT
13050
130512020-01-13 Ali Tamur <tamur@google.com>
13052
13053 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13054 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13055 to gdb::optional. Update comments.
13056 (dwo_file): Update comments.
13057 (read_attribute): Update API to take an additional out parameter,
13058 need_reprocess. This is used to mark attributes that need other
13059 attributes (e.g. str_offsets_base) for correct computation which may not
13060 have been read yet.
13061 (read_attribute_reprocess): New function declaration.
13062 (read_addr_index): Likewise.
13063 (read_dwo_str_index): Likewise.
13064 (read_stub_str_index): Likewise.
13065 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13066 (lookup_addr_base): New function definition.
13067 (lookup_ranges_base): Likewise.
13068 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13069 lookup_ranges_base.
13070 (init_cutu_and_read_dies): Update comments.
13071 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13072 unit. This is used to inherit parent's str_offsets_base and addr_base.
13073 Update comments.
13074 (init_cutu_and_read_dies_simple): Reflect API changes.
13075 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13076 (create_cus_hash_table): Change API to take parent compile unit.
13077 Reflect API changes.
13078 (open_and_init_dwo_file): Reflect API changes.
13079 (dwarf2_get_pc_bounds): Update comments.
13080 (dwarf2_record_block_ranges): Likewise.
13081 (read_full_die_1): Change implementation to reprocess attributes that
13082 need str_offsets_base and addr_base.
13083 (partial_die_info::read): Likewise.
13084 (read_attribute_reprocess): New function definition.
13085 (read_attribute_value): Change API to take an additional out parameter,
13086 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13087 when a non-dwo compile unit has index based attributes.
13088 (read_attribute): Reflect API changes.
13089 (read_addr_index_1): Reflect API changes. Update comments.
13090 (dwarf2_read_addr_index_data): Reflect API changes.
13091 (dwarf2_read_addr_index): Likewise.
13092 (read_str_index): Change API and implementation. This becomes a helper
13093 to be used by the new string index related methods. Update error
13094 message and comments.
13095 (read_dwo_str_index): New function definition.
13096 (read_stub_str_index): Likewise.
13097 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13098 * symfile.h (dwarf2_debug_sections): Likewise.
13099 * xcoffread.c (dwarf2_debug_sections): Likewise.
13100
0cac9354
SM
131012020-01-13 Simon Marchi <simon.marchi@efficios.com>
13102
13103 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13104 core_reg_sect type to gdb_byte *.
13105 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13106 * cris-tdep.c (fetch_core_registers): Likewise.
13107 * corelow.c (core_target::get_core_register_section): Change
13108 type of `contents` to gdb::byte_vector.
13109
9a6d629c
AB
131102020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13111
13112 * tui/tui-wingeneral.c (box_win): Position the title in the center
13113 of the border.
13114
d8b2f9e3
SM
131152020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13116
13117 * corelow.c (core_target::get_core_register_section): Use
13118 std::vector instead of alloca.
13119
bb564c58
SM
131202020-01-13 Simon Marchi <simon.marchi@efficios.com>
13121
13122 * warning.m4: Add -Wmissing-declarations to build_warnings.
13123 * configure: Re-generate.
13124
6b366111
SM
131252020-01-13 Simon Marchi <simon.marchi@efficios.com>
13126
13127 * python/python.c (init__gdb_module): Add declaration.
13128
6c265988
SM
131292020-01-13 Simon Marchi <simon.marchi@efficios.com>
13130
13131 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13132 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13133 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13134 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13135 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13136 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13137 * ada-exp.y (_initialize_ada_exp): Add declaration.
13138 * ada-lang.c (_initialize_ada_language): Add declaration.
13139 * ada-tasks.c (_initialize_tasks): Add declaration.
13140 * agent.c (_initialize_agent): Add declaration.
13141 * aix-thread.c (_initialize_aix_thread): Add declaration.
13142 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13143 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13144 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13145 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13146 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13147 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13148 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13149 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13150 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13151 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13152 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13153 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13154 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13155 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13156 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13157 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13158 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13159 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13160 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13161 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13162 * annotate.c (_initialize_annotate): Add declaration.
13163 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13164 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13165 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13166 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13167 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13168 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13169 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13170 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13171 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13172 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13173 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13174 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13175 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13176 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13177 * auto-load.c (_initialize_auto_load): Add declaration.
13178 * auxv.c (_initialize_auxv): Add declaration.
13179 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13180 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13181 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13182 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13183 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13184 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13185 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13186 * breakpoint.c (_initialize_breakpoint): Add declaration.
13187 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13188 * btrace.c (_initialize_btrace): Add declaration.
13189 * charset.c (_initialize_charset): Add declaration.
13190 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13191 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13192 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13193 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13194 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13195 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13196 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13197 * coffread.c (_initialize_coffread): Add declaration.
13198 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13199 * compile/compile.c (_initialize_compile): Add declaration.
13200 * complaints.c (_initialize_complaints): Add declaration.
13201 * completer.c (_initialize_completer): Add declaration.
13202 * copying.c (_initialize_copying): Add declaration.
13203 * corefile.c (_initialize_core): Add declaration.
13204 * corelow.c (_initialize_corelow): Add declaration.
13205 * cp-abi.c (_initialize_cp_abi): Add declaration.
13206 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13207 * cp-support.c (_initialize_cp_support): Add declaration.
13208 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13209 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13210 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13211 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13212 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13213 * ctfread.c (_initialize_ctfread): Add declaration.
13214 * d-lang.c (_initialize_d_language): Add declaration.
13215 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13216 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13217 * dbxread.c (_initialize_dbxread): Add declaration.
13218 * dcache.c (_initialize_dcache): Add declaration.
13219 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13220 * disasm.c (_initialize_disasm): Add declaration.
13221 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13222 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13223 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13224 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13225 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13226 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13227 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13228 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13229 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13230 * elfread.c (_initialize_elfread): Add declaration.
13231 * exec.c (_initialize_exec): Add declaration.
13232 * extension.c (_initialize_extension): Add declaration.
13233 * f-lang.c (_initialize_f_language): Add declaration.
13234 * f-valprint.c (_initialize_f_valprint): Add declaration.
13235 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13236 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13237 * filesystem.c (_initialize_filesystem): Add declaration.
13238 * findcmd.c (_initialize_mem_search): Add declaration.
13239 * findvar.c (_initialize_findvar): Add declaration.
13240 * fork-child.c (_initialize_fork_child): Add declaration.
13241 * frame-base.c (_initialize_frame_base): Add declaration.
13242 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13243 * frame.c (_initialize_frame): Add declaration.
13244 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13245 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13246 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13247 * gcore.c (_initialize_gcore): Add declaration.
13248 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13249 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13250 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13251 * gdbarch.c (_initialize_gdbarch): Add declaration.
13252 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13253 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13254 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13255 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13256 * go-lang.c (_initialize_go_language): Add declaration.
13257 * go32-nat.c (_initialize_go32_nat): Add declaration.
13258 * guile/guile.c (_initialize_guile): Add declaration.
13259 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13260 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13261 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13262 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13263 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13264 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13265 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13266 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13267 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13268 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13269 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13270 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13271 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13272 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13273 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13274 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13275 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13276 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13277 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13278 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13279 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13280 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13281 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13282 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13283 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13284 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13285 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13286 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13287 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13288 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13289 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13290 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13291 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13292 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13293 * infcall.c (_initialize_infcall): Add declaration.
13294 * infcmd.c (_initialize_infcmd): Add declaration.
13295 * inflow.c (_initialize_inflow): Add declaration.
13296 * infrun.c (_initialize_infrun): Add declaration.
13297 * interps.c (_initialize_interpreter): Add declaration.
13298 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13299 * jit.c (_initialize_jit): Add declaration.
13300 * language.c (_initialize_language): Add declaration.
13301 * linux-fork.c (_initialize_linux_fork): Add declaration.
13302 * linux-nat.c (_initialize_linux_nat): Add declaration.
13303 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13304 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13305 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13306 * m2-lang.c (_initialize_m2_language): Add declaration.
13307 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13308 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13309 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13310 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13311 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13312 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13313 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13314 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13315 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13316 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13317 * machoread.c (_initialize_machoread): Add declaration.
13318 * macrocmd.c (_initialize_macrocmd): Add declaration.
13319 * macroscope.c (_initialize_macroscope): Add declaration.
13320 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13321 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13322 * maint.c (_initialize_maint_cmds): Add declaration.
13323 * mdebugread.c (_initialize_mdebugread): Add declaration.
13324 * memattr.c (_initialize_mem): Add declaration.
13325 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13326 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13327 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13328 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13329 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13330 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13331 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13332 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13333 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13334 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13335 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13336 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13337 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13338 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13339 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13340 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13341 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13342 * mipsread.c (_initialize_mipsread): Add declaration.
13343 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13344 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13345 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13346 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13347 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13348 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13349 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13350 * nto-procfs.c (_initialize_procfs): Add declaration.
13351 * objc-lang.c (_initialize_objc_language): Add declaration.
13352 * observable.c (_initialize_observer): Add declaration.
13353 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13354 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13355 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13356 * osabi.c (_initialize_gdb_osabi): Add declaration.
13357 * osdata.c (_initialize_osdata): Add declaration.
13358 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13359 * parse.c (_initialize_parse): Add declaration.
13360 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13361 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13362 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13363 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13364 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13365 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13366 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13367 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13368 * printcmd.c (_initialize_printcmd): Add declaration.
13369 * probe.c (_initialize_probe): Add declaration.
13370 * proc-api.c (_initialize_proc_api): Add declaration.
13371 * proc-events.c (_initialize_proc_events): Add declaration.
13372 * proc-service.c (_initialize_proc_service): Add declaration.
13373 * procfs.c (_initialize_procfs): Add declaration.
13374 * producer.c (_initialize_producer): Add declaration.
13375 * psymtab.c (_initialize_psymtab): Add declaration.
13376 * python/python.c (_initialize_python): Add declaration.
13377 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13378 * record-btrace.c (_initialize_record_btrace): Add declaration.
13379 * record-full.c (_initialize_record_full): Add declaration.
13380 * record.c (_initialize_record): Add declaration.
13381 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13382 * regcache.c (_initialize_regcache): Add declaration.
13383 * reggroups.c (_initialize_reggroup): Add declaration.
13384 * remote-notif.c (_initialize_notif): Add declaration.
13385 * remote-sim.c (_initialize_remote_sim): Add declaration.
13386 * remote.c (_initialize_remote): Add declaration.
13387 * reverse.c (_initialize_reverse): Add declaration.
13388 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13389 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13390 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13391 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13392 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13393 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13394 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13395 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13396 Add declaration.
13397 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13398 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13399 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13400 * rust-exp.y (_initialize_rust_exp): Add declaration.
13401 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13402 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13403 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13404 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13405 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13406 * score-tdep.c (_initialize_score_tdep): Add declaration.
13407 * ser-go32.c (_initialize_ser_dos): Add declaration.
13408 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13409 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13410 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13411 * ser-uds.c (_initialize_ser_socket): Add declaration.
13412 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13413 * serial.c (_initialize_serial): Add declaration.
13414 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13415 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13416 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13417 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13418 * skip.c (_initialize_step_skip): Add declaration.
13419 * sol-thread.c (_initialize_sol_thread): Add declaration.
13420 * solib-aix.c (_initialize_solib_aix): Add declaration.
13421 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13422 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13423 * solib-frv.c (_initialize_frv_solib): Add declaration.
13424 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13425 * solib-target.c (_initialize_solib_target): Add declaration.
13426 * solib.c (_initialize_solib): Add declaration.
13427 * source-cache.c (_initialize_source_cache): Add declaration.
13428 * source.c (_initialize_source): Add declaration.
13429 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13430 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13431 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13432 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13433 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13434 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13435 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13436 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13437 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13438 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13439 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13440 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13441 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13442 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13443 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13444 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13445 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13446 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13447 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13448 * stabsread.c (_initialize_stabsread): Add declaration.
13449 * stack.c (_initialize_stack): Add declaration.
13450 * stap-probe.c (_initialize_stap_probe): Add declaration.
13451 * std-regs.c (_initialize_frame_reg): Add declaration.
13452 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13453 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13454 * symfile.c (_initialize_symfile): Add declaration.
13455 * symmisc.c (_initialize_symmisc): Add declaration.
13456 * symtab.c (_initialize_symtab): Add declaration.
13457 * target.c (_initialize_target): Add declaration.
13458 * target-connection.c (_initialize_target_connection): Add
13459 declaration.
13460 * target-dcache.c (_initialize_target_dcache): Add declaration.
13461 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13462 * thread.c (_initialize_thread): Add declaration.
13463 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13464 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13465 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13466 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13467 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13468 * tracectf.c (_initialize_ctf): Add declaration.
13469 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13470 * tracefile.c (_initialize_tracefile): Add declaration.
13471 * tracepoint.c (_initialize_tracepoint): Add declaration.
13472 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13473 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13474 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13475 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13476 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13477 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13478 * tui/tui.c (_initialize_tui): Add declaration.
13479 * typeprint.c (_initialize_typeprint): Add declaration.
13480 * ui-style.c (_initialize_ui_style): Add declaration.
13481 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13482 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13483 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13484 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13485 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13486 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13487 * unittests/filtered_iterator-selftests.c
13488 (_initialize_filtered_iterator_selftests): Add declaration.
13489 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13490 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13491 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13492 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13493 * unittests/main-thread-selftests.c
13494 (_initialize_main_thread_selftests): Add declaration.
13495 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13496 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13497 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13498 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13499 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13500 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13501 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13502 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13503 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13504 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13505 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13506 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13507 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13508 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13509 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13510 declaration.
13511 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13512 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13513 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13514 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13515 * user-regs.c (_initialize_user_regs): Add declaration.
13516 * utils.c (_initialize_utils): Add declaration.
13517 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13518 * valops.c (_initialize_valops): Add declaration.
13519 * valprint.c (_initialize_valprint): Add declaration.
13520 * value.c (_initialize_values): Add declaration.
13521 * varobj.c (_initialize_varobj): Add declaration.
13522 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13523 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13524 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13525 * windows-nat.c (_initialize_windows_nat): Add declaration.
13526 (_initialize_check_for_gdb_ini): Add declaration.
13527 (_initialize_loadable): Add declaration.
13528 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13529 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13530 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13531 * xcoffread.c (_initialize_xcoffread): Add declaration.
13532 * xml-support.c (_initialize_xml_support): Add declaration.
13533 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13534 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13535 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13536 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13537
e2de1eec
SM
135382020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13539
13540 * regformats/regdat.sh: Generate declaration for init function.
13541
e0037b4c
SM
135422020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13543
13544 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13545 up.
13546 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13547 close_one_inferior>: New methods.
13548 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13549 pass down target to find_inferior_pid.
13550 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13551 Pass down target to find_inferior_ptid.
13552 (gdbsim_target::create_inferior): Pass down target to
13553 add_thread_silent.
13554 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13555 target down to find_inferior_ptid and switch_to_thread.
13556 (gdbsim_target::close): Update to call close_one_inferior.
13557 (struct resume_data): Remove.
13558 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13559 directly, rather than through a void pointer.
13560 (gdbsim_target::resume): Update to call resume_one_inferior.
13561
58920b5b
SM
135622020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13563
13564 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13565
4ec89149
PA
135662020-01-12 Pedro Alves <palves@redhat.com>
13567
13568 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13569 directly for the current inferior instead of
13570 discard_all_inferiors.
13571 (discard_all_inferiors): Delete.
13572
7c392d1d
TT
135732020-01-11 Tom Tromey <tom@tromey.com>
13574
13575 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13576 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13577 deprecated_safe_get_selected_frame.
13578
d9ebdab7
TBA
135792020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13580
13581 * inferior.c (print_inferior): Switch inferior before printing it.
13582
f3c469b9
PA
135832020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13584 Pedro Alves <palves@redhat.com>
13585
13586 * progspace-and-thread.c (switch_to_program_space_and_thread):
13587 Assert there's an inferior for PSPACE. Use
13588 switch_to_inferior_no_thread to switch the inferior too.
13589 * progspace.c (program_space::~program_space): Call
13590 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13591 (program_space::free_all_objfiles): Don't call clear_symtab_users
13592 here.
13593 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13594
65c574f6
PA
135952020-01-10 Pedro Alves <palves@redhat.com>
13596
13597 * NEWS: Mention multi-target debugging, "info connections", and
13598 "add-inferior -no-connection".
13599
2f4fcf00
PA
136002020-01-10 Pedro Alves <palves@redhat.com>
13601
13602 * infrun.c: Include "target-connection.h".
13603 (check_multi_target_resumption): New.
13604 (proceed): Call it.
13605 * target-connection.c (make_target_connection_string): Make
13606 extern.
13607 * target-connection.h (make_target_connection_string): Declare.
13608
121b3efd
PA
136092020-01-10 Pedro Alves <palves@redhat.com>
13610
13611 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13612 * inferior.c (uiout_field_connection): New function.
13613 (print_inferior): Add new "connection-id" column.
13614 (add_inferior_command): Show connection number/string of added
13615 inferior.
13616 * process-stratum-target.h
13617 (process_stratum_target::connection_string): New virtual method.
13618 (process_stratum_target::connection_number): New field.
13619 * remote.c (remote_target::connection_string): New override.
13620 * target-connection.c: New file.
13621 * target-connection.h: New file.
13622 * target.c (decref_target): Remove process_stratum targets from
13623 the connection list.
13624 (target_stack::push): Add process_stratum targets to the
13625 connection list.
13626
4f837581
PA
136272020-01-10 Pedro Alves <palves@redhat.com>
13628
13629 Revert:
13630 2016-04-12 Pedro Alves <palves@redhat.com>
13631 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13632 Remove references to name.
13633 * serial.h (struct serial) <name>: Delete.
13634
f4ec508e
PA
136352020-01-10 Pedro Alves <palves@redhat.com>
13636
13637 * gdbarch-selftests.c (register_to_value_test): Remove "target
13638 already pushed" check.
13639
5b6d1e4f
PA
136402020-01-10 Pedro Alves <palves@redhat.com>
13641 John Baldwin <jhb@FreeBSD.org>
13642
13643 * aarch64-linux-nat.c
13644 (aarch64_linux_nat_target::thread_architecture): Adjust.
13645 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13646 (task_command_1): Likewise.
13647 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13648 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13649 (aix_thread_target::store_registers)
13650 (aix_thread_target::thread_alive): Adjust.
13651 * amd64-fbsd-tdep.c: Include "inferior.h".
13652 (amd64fbsd_get_thread_local_address): Pass down target.
13653 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13654 thread's gdbarch instead of target_gdbarch.
13655 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13656 get_last_target_status.
13657 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13658 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13659 inferiors.
13660 (update_inserted_breakpoint_locations): Skip if inferiors with no
13661 execution.
13662 (update_global_location_list): When handling moribund locations,
13663 find representative inferior for location's pspace, and use thread
13664 count of its process_stratum target.
13665 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13666 * bsd-uthread.c (bsd_uthread_target::wait): Use
13667 as_process_stratum_target and adjust thread_change_ptid and
13668 add_thread calls.
13669 (bsd_uthread_target::update_thread_list): Use
13670 as_process_stratum_target and adjust find_thread_ptid,
13671 thread_change_ptid and add_thread calls.
13672 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13673 find_thread_ptid call.
13674 * corelow.c (add_to_thread_list): Adjust add_thread call.
13675 (core_target_open): Adjust add_thread_silent and thread_count
13676 calls.
13677 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13678 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13679 * event-top.c (async_disconnect): Pop targets from all inferiors.
13680 * exec.c (add_target_sections): Push exec target on all inferiors
13681 sharing the program space.
13682 (remove_target_sections): Remove the exec target from all
13683 inferiors sharing the program space.
13684 (exec_on_vfork): New.
13685 * exec.h (exec_on_vfork): Declare.
13686 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13687 Pass it down.
13688 (fbsd_nat_target::update_thread_list): Adjust.
13689 (fbsd_nat_target::resume): Adjust.
13690 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13691 down.
13692 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13693 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13694 get_thread_arch_regcache call.
13695 * fork-child.c (gdb_startup_inferior): Pass target down to
13696 startup_inferior and set_executing.
13697 * gdbthread.h (struct process_stratum_target): Forward declare.
13698 (add_thread, add_thread_silent, add_thread_with_info)
13699 (in_thread_list): Add process_stratum_target parameter.
13700 (find_thread_ptid(inferior*, ptid_t)): New overload.
13701 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13702 parameter.
13703 (all_threads()): Delete overload.
13704 (all_threads, all_non_exited_threads): Add process_stratum_target
13705 parameter.
13706 (all_threads_safe): Use brace initialization.
13707 (thread_count): Add process_stratum_target parameter.
13708 (set_resumed, set_running, set_stop_requested, set_executing)
13709 (threads_are_executing, finish_thread_state): Add
13710 process_stratum_target parameter.
13711 (switch_to_thread): Use is_current_thread.
13712 * i386-fbsd-tdep.c: Include "inferior.h".
13713 (i386fbsd_get_thread_local_address): Pass down target.
13714 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13715 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13716 have_inferiors check.
13717 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13718 (inf_ptrace_target::attach): Adjust.
13719 * infcall.c (run_inferior_call): Adjust.
13720 * infcmd.c (run_command_1): Pass target to
13721 scoped_finish_thread_state.
13722 (proceed_thread_callback): Skip inferiors with no execution.
13723 (continue_command): Rename 'all_threads' local to avoid hiding
13724 'all_threads' function. Adjust get_last_target_status call.
13725 (prepare_one_step): Adjust set_running call.
13726 (signal_command): Use user_visible_resume_target. Compare thread
13727 pointers instead of inferior_ptid.
13728 (info_program_command): Adjust to pass down target.
13729 (attach_command): Mark target's 'thread_executing' flag.
13730 (stop_current_target_threads_ns): New, factored out from ...
13731 (interrupt_target_1): ... this. Switch inferior before making
13732 target calls.
13733 * inferior-iter.h
13734 (struct all_inferiors_iterator, struct all_inferiors_range)
13735 (struct all_inferiors_safe_range)
13736 (struct all_non_exited_inferiors_range): Filter on
13737 process_stratum_target too. Remove explicit.
13738 * inferior.c (inferior::inferior): Push dummy target on target
13739 stack.
13740 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13741 Add process_stratum_target parameter, and pass it down.
13742 (have_live_inferiors): Adjust.
13743 (switch_to_inferior_and_push_target): New.
13744 (add_inferior_command, clone_inferior_command): Handle
13745 "-no-connection" parameter. Use
13746 switch_to_inferior_and_push_target.
13747 (_initialize_inferior): Mention "-no-connection" option in
13748 the help of "add-inferior" and "clone-inferior" commands.
13749 * inferior.h: Include "process-stratum-target.h".
13750 (interrupt_target_1): Use bool.
13751 (struct inferior) <push_target, unpush_target, target_is_pushed,
13752 find_target_beneath, top_target, process_target, target_at,
13753 m_stack>: New.
13754 (discard_all_inferiors): Delete.
13755 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13756 (all_inferiors, all_non_exited_inferiors): Add
13757 process_stratum_target parameter.
13758 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13759 (target_last_proc_target): New global.
13760 (follow_fork_inferior): Push target on new inferior. Pass target
13761 to add_thread_silent. Call exec_on_vfork. Handle target's
13762 reference count.
13763 (follow_fork): Adjust get_last_target_status call. Also consider
13764 target.
13765 (follow_exec): Push target on new inferior.
13766 (struct execution_control_state) <target>: New field.
13767 (user_visible_resume_target): New.
13768 (do_target_resume): Call target_async.
13769 (resume_1): Set target's threads_executing flag. Consider resume
13770 target.
13771 (commit_resume_all_targets): New.
13772 (proceed): Also consider resume target. Skip threads of inferiors
13773 with no execution. Commit resumtion in all targets.
13774 (start_remote): Pass current inferior to wait_for_inferior.
13775 (infrun_thread_stop_requested): Consider target as well. Pass
13776 thread_info pointer to clear_inline_frame_state instead of ptid.
13777 (infrun_thread_thread_exit): Consider target as well.
13778 (random_pending_event_thread): New inferior parameter. Use it.
13779 (do_target_wait): Rename to ...
13780 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13781 down.
13782 (threads_are_resumed_pending_p, do_target_wait): New.
13783 (prepare_for_detach): Adjust calls.
13784 (wait_for_inferior): New inferior parameter. Handle it. Use
13785 do_target_wait_1 instead of do_target_wait.
13786 (fetch_inferior_event): Adjust. Switch to representative
13787 inferior. Pass target down.
13788 (set_last_target_status): Add process_stratum_target parameter.
13789 Save target in global.
13790 (get_last_target_status): Add process_stratum_target parameter and
13791 handle it.
13792 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13793 (context_switch): Check inferior_ptid == null_ptid before calling
13794 inferior_thread().
13795 (get_inferior_stop_soon): Pass down target.
13796 (wait_one): Rename to ...
13797 (poll_one_curr_target): ... this.
13798 (struct wait_one_event): New.
13799 (wait_one): New.
13800 (stop_all_threads): Adjust.
13801 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13802 event's target.
13803 (switch_back_to_stepped_thread): Also consider target.
13804 (print_stop_event): Update.
13805 (normal_stop): Update. Also consider the resume target.
13806 * infrun.h (wait_for_inferior): Remove declaration.
13807 (user_visible_resume_target): New declaration.
13808 (get_last_target_status, set_last_target_status): New
13809 process_stratum_target parameter.
13810 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13811 process_stratum_target parameter, and use it.
13812 (clear_inline_frame_state (thread_info*)): New.
13813 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13814 process_stratum_target parameter.
13815 (clear_inline_frame_state (thread_info*)): Declare.
13816 * linux-fork.c (delete_checkpoint_command): Pass target down to
13817 find_thread_ptid.
13818 (checkpoint_command): Adjust.
13819 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13820 instead of just tweaking inferior_ptid.
13821 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13822 (exit_lwp): Pass target down to find_thread_ptid.
13823 (attach_proc_task_lwp_callback): Pass target down to
13824 add_thread/set_running/set_executing.
13825 (linux_nat_target::attach): Pass target down to
13826 thread_change_ptid.
13827 (get_detach_signal): Pass target down to find_thread_ptid.
13828 Consider last target status's target.
13829 (linux_resume_one_lwp_throw, resume_lwp)
13830 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13831 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13832 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13833 (linux_nat_target::async_wait_fd): New.
13834 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13835 target down.
13836 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13837 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13838 * linux-thread-db.c (struct thread_db_info::process_target): New
13839 field.
13840 (add_thread_db_info): Save target.
13841 (get_thread_db_info): New process_stratum_target parameter. Also
13842 match target.
13843 (delete_thread_db_info): New process_stratum_target parameter.
13844 Also match target.
13845 (thread_from_lwp): Adjust to pass down target.
13846 (thread_db_notice_clone): Pass down target.
13847 (check_thread_db_callback): Pass down target.
13848 (try_thread_db_load_1): Always push the thread_db target.
13849 (try_thread_db_load, record_thread): Pass target down.
13850 (thread_db_target::detach): Pass target down. Always unpush the
13851 thread_db target.
13852 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13853 target down. Always unpush the thread_db target.
13854 (find_new_threads_callback, thread_db_find_new_threads_2)
13855 (thread_db_target::update_thread_list): Pass target down.
13856 (thread_db_target::pid_to_str): Pass current inferior down.
13857 (thread_db_target::get_thread_local_address): Pass target down.
13858 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13859 target down.
13860 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13861 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13862 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13863 (procfs_init_inferior): Rename to ...
13864 (procfs_target::procfs_init_inferior): ... this and adjust.
13865 (procfs_target::create_inferior, procfs_notice_thread)
13866 (procfs_do_thread_registers): Adjust.
13867 * ppc-fbsd-tdep.c: Include "inferior.h".
13868 (ppcfbsd_get_thread_local_address): Pass down target.
13869 * proc-service.c (ps_xfer_memory): Switch current inferior and
13870 program space as well.
13871 (get_ps_regcache): Pass target down.
13872 * process-stratum-target.c
13873 (process_stratum_target::thread_address_space)
13874 (process_stratum_target::thread_architecture): Pass target down.
13875 * process-stratum-target.h
13876 (process_stratum_target::threads_executing): New field.
13877 (as_process_stratum_target): New.
13878 * ravenscar-thread.c
13879 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13880 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13881 down.
13882 * record-btrace.c (record_btrace_target::info_record): Adjust.
13883 (record_btrace_target::record_method)
13884 (record_btrace_target::record_is_replaying)
13885 (record_btrace_target::fetch_registers)
13886 (get_thread_current_frame_id, record_btrace_target::resume)
13887 (record_btrace_target::wait, record_btrace_target::stop): Pass
13888 target down.
13889 * record-full.c (record_full_wait_1): Switch to event thread.
13890 Pass target down.
13891 * regcache.c (regcache::regcache)
13892 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13893 process_stratum_target parameter and handle it.
13894 (current_thread_target): New global.
13895 (get_thread_regcache): Add process_stratum_target parameter and
13896 handle it. Switch inferior before calling target method.
13897 (get_thread_regcache): Pass target down.
13898 (get_thread_regcache_for_ptid): Pass target down.
13899 (registers_changed_ptid): Add process_stratum_target parameter and
13900 handle it.
13901 (registers_changed_thread, registers_changed): Pass target down.
13902 (test_get_thread_arch_aspace_regcache): New.
13903 (current_regcache_test): Define a couple local test_target_ops
13904 instances and use them for testing.
13905 (readwrite_regcache): Pass process_stratum_target parameter.
13906 (cooked_read_test, cooked_write_test): Pass mock_target down.
13907 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13908 (get_thread_arch_aspace_regcache): Add process_stratum_target
13909 parameter.
13910 (regcache::target): New method.
13911 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13912 (regcache::registers_changed_ptid): Add process_stratum_target
13913 parameter.
13914 (regcache::m_target): New field.
13915 (registers_changed_ptid): Add process_stratum_target parameter.
13916 * remote.c (remote_state::supports_vCont_probed): New field.
13917 (remote_target::async_wait_fd): New method.
13918 (remote_unpush_and_throw): Add remote_target parameter.
13919 (get_current_remote_target): Adjust.
13920 (remote_target::remote_add_inferior): Push target.
13921 (remote_target::remote_add_thread)
13922 (remote_target::remote_notice_new_inferior)
13923 (get_remote_thread_info): Pass target down.
13924 (remote_target::update_thread_list): Skip threads of inferiors
13925 bound to other targets. (remote_target::close): Don't discard
13926 inferiors. (remote_target::add_current_inferior_and_thread)
13927 (remote_target::process_initial_stop_replies)
13928 (remote_target::start_remote)
13929 (remote_target::remote_serial_quit_handler): Pass down target.
13930 (remote_target::remote_unpush_target): New remote_target
13931 parameter. Unpush the target from all inferiors.
13932 (remote_target::remote_unpush_and_throw): New remote_target
13933 parameter. Pass it down.
13934 (remote_target::open_1): Check whether the current inferior has
13935 execution instead of checking whether any inferior is live. Pass
13936 target down.
13937 (remote_target::remote_detach_1): Pass down target. Use
13938 remote_unpush_target.
13939 (extended_remote_target::attach): Pass down target.
13940 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13941 (remote_target::append_resumption): Pass down target.
13942 (remote_target::append_pending_thread_resumptions)
13943 (remote_target::remote_resume_with_hc, remote_target::resume)
13944 (remote_target::commit_resume): Pass down target.
13945 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13946 (remote_target::interrupt_query)
13947 (remote_target::remove_new_fork_children)
13948 (remote_target::check_pending_events_prevent_wildcard_vcont)
13949 (remote_target::remote_parse_stop_reply)
13950 (remote_target::process_stop_reply): Pass down target.
13951 (first_remote_resumed_thread): New remote_target parameter. Pass
13952 it down.
13953 (remote_target::wait_as): Pass down target.
13954 (unpush_and_perror): New remote_target parameter. Pass it down.
13955 (remote_target::readchar, remote_target::remote_serial_write)
13956 (remote_target::getpkt_or_notif_sane_1)
13957 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13958 down target.
13959 (remote_target::mourn_inferior): Pass down target. Use
13960 remote_unpush_target.
13961 (remote_target::core_of_thread)
13962 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13963 (remote_target::pid_to_exec_file)
13964 (remote_target::thread_handle_to_thread_info): Pass down target.
13965 (remote_target::async_wait_fd): New.
13966 * riscv-fbsd-tdep.c: Include "inferior.h".
13967 (riscv_fbsd_get_thread_local_address): Pass down target.
13968 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13969 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13970 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13971 Adjust.
13972 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13973 * solib-svr4.c (enable_break): Pass down target.
13974 * spu-multiarch.c (parse_spufs_run): Pass down target.
13975 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13976 * target-delegates.c: Regenerate.
13977 * target.c (g_target_stack): Delete.
13978 (current_top_target): Return the current inferior's top target.
13979 (target_has_execution_1): Refer to the passed-in inferior's top
13980 target.
13981 (target_supports_terminal_ours): Check whether the initial
13982 inferior was already created.
13983 (decref_target): New.
13984 (target_stack::push): Incref/decref the target.
13985 (push_target, push_target, unpush_target): Adjust.
13986 (target_stack::unpush): Defref target.
13987 (target_is_pushed): Return bool. Adjust to refer to the current
13988 inferior's target stack.
13989 (dispose_inferior): Delete, and inline parts ...
13990 (target_preopen): ... here. Only dispose of the current inferior.
13991 (target_detach): Hold strong target reference while detaching.
13992 Pass target down.
13993 (target_thread_name): Add assertion.
13994 (target_resume): Pass down target.
13995 (target_ops::beneath, find_target_at): Adjust to refer to the
13996 current inferior's target stack.
13997 (get_dummy_target): New.
13998 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13999 has a thread running.
14000 (initialize_targets): Rename to ...
14001 (_initialize_target): ... this.
14002 * target.h: Include "gdbsupport/refcounted-object.h".
14003 (struct target_ops): Inherit refcounted_object.
14004 (target_ops::shortname, target_ops::longname): Make const.
14005 (target_ops::async_wait_fd): New method.
14006 (decref_target): Declare.
14007 (struct target_ops_ref_policy): New.
14008 (target_ops_ref): New typedef.
14009 (get_dummy_target): Declare function.
14010 (target_is_pushed): Return bool.
14011 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14012 (all_matching_threads_iterator::all_matching_threads_iterator):
14013 Handle filter target.
14014 * thread-iter.h (struct all_matching_threads_iterator, struct
14015 all_matching_threads_range, class all_non_exited_threads_range):
14016 Filter by target too. Remove explicit.
14017 * thread.c (threads_executing): Delete.
14018 (inferior_thread): Pass down current inferior.
14019 (clear_thread_inferior_resources): Pass down thread pointer
14020 instead of ptid_t.
14021 (add_thread_silent, add_thread_with_info, add_thread): Add
14022 process_stratum_target parameter. Use it for thread and inferior
14023 searches.
14024 (is_current_thread): New.
14025 (thread_info::deletable): Use it.
14026 (find_thread_ptid, thread_count, in_thread_list)
14027 (thread_change_ptid, set_resumed, set_running): New
14028 process_stratum_target parameter. Pass it down.
14029 (set_executing): New process_stratum_target parameter. Pass it
14030 down. Adjust reference to 'threads_executing'.
14031 (threads_are_executing): New process_stratum_target parameter.
14032 Adjust reference to 'threads_executing'.
14033 (set_stop_requested, finish_thread_state): New
14034 process_stratum_target parameter. Pass it down.
14035 (switch_to_thread): Also match inferior.
14036 (switch_to_thread): New process_stratum_target parameter. Pass it
14037 down.
14038 (update_threads_executing): Reimplement.
14039 * top.c (quit_force): Pop targets from all inferior.
14040 (gdb_init): Don't call initialize_targets.
14041 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14042 Declare.
14043 (windows_add_thread, windows_delete_thread): Adjust.
14044 (get_windows_debug_event): Rename to ...
14045 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14046 * tracefile-tfile.c (tfile_target_open): Pass down target.
14047 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14048 Forward declare.
14049 (switch_to_thread): Add process_stratum_target parameter.
14050 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14051 parameter. Use it.
14052 (mi_on_resume): Pass target down.
14053 * nat/fork-inferior.c (startup_inferior): Add
14054 process_stratum_target parameter. Pass it down.
14055 * nat/fork-inferior.h (startup_inferior): Add
14056 process_stratum_target parameter.
14057 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14058
75c6c844
PA
140592020-01-10 Pedro Alves <palves@redhat.com>
14060
14061 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14062 directly. Instead find the first thread in the thread list and
14063 use switch_to_thread.
14064
78f2c40a
PA
140652020-01-10 Pedro Alves <palves@redhat.com>
14066
14067 * remote.c (remote_target::remote_add_inferior): Don't bind a
14068 process to the current inferior if the current inferior is already
14069 bound to a process.
14070
e7af6c70
TBA
140712020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14072 Pedro Alves <palves@redhat.com>
14073
14074 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14075 If no process is specified, return null_ptid instead of
14076 inferior_ptid.
14077 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14078 TARGET_WAITKIND_SIGNALLED with no pid.
14079
31ba933e
PA
140802020-01-10 Pedro Alves <palves@redhat.com>
14081
14082 * remote.c (first_remote_resumed_thread): New.
14083 (remote_target::wait_as): Use it as default event_ptid instead of
14084 inferior_ptid.
14085
735fc2ca
PA
140862020-01-10 Pedro Alves <palves@redhat.com>
14087
14088 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14089
c17e02e1
PA
140902020-01-10 Pedro Alves <palves@redhat.com>
14091
14092 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14093 not -1.
14094
ab1ddbcf
PA
140952020-01-10 Pedro Alves <palves@redhat.com>
14096
14097 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14098 ptid to get_last_target_status.
14099 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14100 ptid to get_last_target_status.
14101 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14102 get_last_target_status.
14103 (info_program_command): Don't pass a target_waitstatus to
14104 get_last_target_status.
14105 * infrun.c (init_wait_for_inferior): Use
14106 nullify_last_target_wait_ptid.
14107 (get_last_target_status): Handle nullptr arguments.
14108 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14109 (print_stop_event): Don't pass a ptid to get_last_target_status.
14110 (normal_stop): Don't pass a ptid to get_last_target_status.
14111 * infrun.h (get_last_target_status, set_last_target_status): Move
14112 comments here and update.
14113 (nullify_last_target_wait_ptid): Declare.
14114 * linux-fork.c (fork_load_infrun_state): Remove local extern
14115 declaration of nullify_last_target_wait_ptid.
14116 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14117 to get_last_target_status.
14118
f3f8ece4
PA
141192020-01-10 Pedro Alves <palves@redhat.com>
14120
14121 * gdbthread.h (scoped_restore_current_thread)
14122 <dont_restore, restore, m_dont_restore>: Declare.
14123 * thread.c (thread_alive): Add assertion. Return bool.
14124 (switch_to_thread_if_alive): New.
14125 (prune_threads): Switch inferior/thread.
14126 (print_thread_info_1): Switch thread before calling target methods.
14127 (scoped_restore_current_thread::restore): New, factored out from
14128 ...
14129 (scoped_restore_current_thread::~scoped_restore_current_thread):
14130 ... this.
14131 (scoped_restore_current_thread::scoped_restore_current_thread):
14132 Add assertion.
14133 (thread_apply_all_command, thread_select): Use
14134 switch_to_thread_if_alive.
14135 * infrun.c (proceed, restart_threads, handle_signal_stop)
14136 (switch_back_to_stepped_thread): Switch current thread before
14137 calling target methods.
14138
db2d40f7
PA
141392020-01-10 Pedro Alves <palves@redhat.com>
14140
14141 * inferior.c (switch_to_inferior_no_thread): New function,
14142 factored out from ...
14143 (inferior_command): ... here.
14144 * inferior.h (switch_to_inferior_no_thread): Declare.
14145 * mi/mi-main.c (run_one_inferior): Use
14146 switch_to_inferior_no_thread.
14147
bd420a2d
PA
141482020-01-10 Pedro Alves <palves@redhat.com>
14149
14150 * infcmd.c (kill_command): Remove dead code.
14151
ddf5db90
PA
141522020-01-10 Pedro Alves <palves@redhat.com>
14153
14154 * remote.c (remote_target::mourn_inferior): No longer check
14155 whether the target is running.
14156
5018ce90
PA
141572020-01-10 Pedro Alves <palves@redhat.com>
14158
14159 * corelow.c (core_target::has_execution): Change parameter type to
14160 inferior pointer.
14161 * inferior.c (number_of_live_inferiors): Use
14162 inferior::has_execution instead of target_has_execution_1.
14163 * inferior.h (inferior::has_execution): New.
14164 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14165 inferior::has_execution instead of target_has_execution_1.
14166 * process-stratum-target.c
14167 (process_stratum_target::has_execution): Change parameter type to
14168 inferior pointer. Check the inferior's PID instead of
14169 inferior_ptid.
14170 * process-stratum-target.h
14171 (process_stratum_target::has_execution): Change parameter type to
14172 inferior pointer.
14173 * record-full.c (record_full_core_target::has_execution): Change
14174 parameter type to inferior pointer.
14175 * target.c (target_has_execution_1): Change parameter type to
14176 inferior pointer.
14177 (target_has_execution_current): Adjust.
14178 * target.h (target_ops::has_execution): Change parameter type to
14179 inferior pointer.
14180 (target_has_execution_1): Change parameter type to inferior
14181 pointer. Change return type to bool.
14182 * tracefile.h (tracefile_target::has_execution): Change parameter
14183 type to inferior pointer.
14184
74375d18
PA
141852020-01-10 Pedro Alves <palves@redhat.com>
14186
14187 * exceptions.c (print_flush): Remove current_top_target() check.
14188
acdf84a6
PA
141892020-01-10 Pedro Alves <palves@redhat.com>
14190
14191 * remote.c (show_remote_exec_file): Show the current inferior's
14192 exec-file instead of the command variable's value.
14193
ec506636
PA
141942020-01-10 Pedro Alves <palves@redhat.com>
14195
14196 * record-full.c (record_full_resume_ptid): New global.
14197 (record_full_target::resume): Set it.
14198 (record_full_wait_1): Use record_full_resume_ptid instead of
14199 inferior_ptid.
14200
873657b9
PA
142012020-01-10 Pedro Alves <palves@redhat.com>
14202
14203 * gdbthread.h (scoped_restore_current_thread)
14204 <dont_restore, restore, m_dont_restore>: Declare.
14205 * thread.c (thread_alive): Add assertion. Return bool.
14206 (switch_to_thread_if_alive): New.
14207 (prune_threads): Switch inferior/thread.
14208 (print_thread_info_1): Switch thread before calling target methods.
14209 (scoped_restore_current_thread::restore): New, factored out from
14210 ...
14211 (scoped_restore_current_thread::~scoped_restore_current_thread):
14212 ... this.
14213 (scoped_restore_current_thread::scoped_restore_current_thread):
14214 Add assertion.
14215 (thread_apply_all_command, thread_select): Use
14216 switch_to_thread_if_alive.
14217
7f0ae84c
GB
142182020-01-10 George Barrett <bob@bob131.so>
14219
14220 * stap-probe.c (stap_modify_semaphore): Don't check for null
14221 semaphores.
14222 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14223 for null semaphores.
14224
f5a7c406
AB
142252020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14226
14227 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14228 all source windows, and maintain horizontal scroll status while
14229 doing so.
14230
9ae6bf64
TT
142312020-01-09 Tom Tromey <tom@tromey.com>
14232
14233 PR tui/18932:
14234 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14235 update_source_window, not print_source_lines.
14236
b2efe70c
AB
142372020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14238
14239 * tui/tui.c (tui_enable): Register tui hooks after calling
14240 tui_display_main.
14241
5f23a082
CB
142422020-01-09 Christian Biesinger <cbiesinger@google.com>
14243
14244 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14245
3061113b
SM
142462020-01-08 Simon Marchi <simon.marchi@efficios.com>
14247
14248 * thread.c (print_thread_info_1): Fix indentation.
14249
57d75002
CB
142502020-01-09 Christian Biesinger <cbiesinger@google.com>
14251
14252 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14253 unique_xmalloc_ptr outside the if to always free the demangled name.
14254
6a053cb1
TT
142552020-01-08 Tom Tromey <tromey@adacore.com>
14256
14257 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14258 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14259 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14260 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14261 Remove.
14262 (section_offsets): New typedef.
14263 * symtab.c (fixup_section, get_msymbol_address): Update.
14264 * symmisc.c (dump_msymbols): Update.
14265 * symfile.h (relative_addr_info_to_section_offsets)
14266 (symfile_map_offsets_to_segments): Update.
14267 * symfile.c (build_section_addr_info_from_objfile)
14268 (init_objfile_sect_indices): Update.
14269 (struct place_section_arg): Change type of "offsets".
14270 (place_section): Update.
14271 (relative_addr_info_to_section_offsets): Change type of
14272 "section_offsets". Remove "num_sections" parameter.
14273 (default_symfile_offsets, syms_from_objfile_1)
14274 (set_objfile_default_section_offset): Update.
14275 (reread_symbols): No need to preserve section offsets by hand.
14276 (symfile_map_offsets_to_segments): Change type of "offsets".
14277 * stap-probe.c (relocate_address): Update.
14278 * stabsread.h (process_one_symbol): Update.
14279 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14280 (solib_target_relocate_section_addresses): Update.
14281 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14282 Update.
14283 * solib-frv.c (frv_relocate_main_executable): Update.
14284 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14285 * solib-aix.c (solib_aix_get_section_offsets): Change return
14286 type.
14287 (solib_aix_solib_create_inferior_hook): Update.
14288 * remote.c (remote_target::get_offsets): Update.
14289 * psymtab.c (find_pc_sect_psymtab): Update.
14290 * psympriv.h (struct partial_symbol) <address, text_low,
14291 text_high>: Update.
14292 * objfiles.h (obj_section_offset): Update.
14293 (struct objfile) <section_offsets>: Change type.
14294 <num_sections>: Remove.
14295 (objfile_relocate): Update.
14296 * objfiles.c (entry_point_address_query): Update
14297 (relocate_one_symbol): Change type of "section_offsets".
14298 (objfile_relocate1, objfile_relocate1): Change type of
14299 "new_offsets".
14300 (objfile_rebase1): Update.
14301 * mipsread.c (mipscoff_symfile_read): Update.
14302 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14303 parameter.
14304 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14305 (parse_external, psymtab_to_symtab_1): Update.
14306 * machoread.c (macho_symfile_offsets): Update.
14307 * ia64-tdep.c (ia64_find_unwind_table): Update.
14308 * hppa-tdep.c (read_unwind_info): Update.
14309 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14310 * dwarf2read.c (create_addrmap_from_index)
14311 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14312 (process_psymtab_comp_unit_reader, add_partial_symbol)
14313 (add_partial_subprogram, process_full_comp_unit)
14314 (read_file_scope, read_func_scope, read_lexical_block_scope)
14315 (read_call_site_scope, dwarf2_rnglists_process)
14316 (dwarf2_ranges_process, dwarf2_ranges_read)
14317 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14318 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14319 Update.
14320 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14321 Update.
14322 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14323 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14324 (process_one_symbol): Change type of "section_offsets".
14325 * ctfread.c (get_objfile_text_range): Update.
14326 * coffread.c (coff_symtab_read, enter_linenos)
14327 (process_coff_symbol): Update.
14328 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14329 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14330
456e800a
TT
143312020-01-08 Tom Tromey <tromey@adacore.com>
14332
14333 * dwarf2read.c (parse_macro_definition): Use std::string.
14334 (parse_macro_definition): Likewise.
14335
6dfa2fc2
TT
143362020-01-08 Tom Tromey <tromey@adacore.com>
14337
14338 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14339 (ATTR_ALLOC_CHUNK): Remove.
14340
421d1616
TT
143412020-01-08 Tom Tromey <tromey@adacore.com>
14342
14343 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14344
43816ebc
TT
143452020-01-08 Tom Tromey <tromey@adacore.com>
14346
14347 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14348 (dwarf2_compute_name, open_dwo_file): Likewise.
14349 (process_enumeration_scope): Use std::vector.
14350 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14351 (partial_die_info::fixup, dwarf2_start_subfile)
14352 (guess_full_die_structure_name, dwarf2_name): Likewise.
14353 (determine_prefix): Update.
14354 (guess_full_die_structure_name): Make return type const.
14355 (partial_die_full_name): Return unique_xmalloc_ptr.
14356 (DW_FIELD_ALLOC_CHUNK): Remove.
14357
4212d509
TT
143582020-01-07 Tom Tromey <tromey@adacore.com>
14359
14360 PR build/24937:
14361 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14362
06a6207a
JT
143632020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14364
14365 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14366
153d79c4
AB
143672020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14368
14369 * stack.c (print_frame_info): Move disassemble_next_line code
14370 inside source_print block.
14371
66182876
EZ
143722020-01-06 Eli Zaretskii <eliz@gnu.org>
14373
14374 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14375 gdb/signals.h, as we are now using native signal symbols.
14376
cbfa8581
SV
143772020-01-06 Shahab Vahedi <shahab@synopsys.com>
14378
14379 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14380 overflow by an early check of content vs threshold.
aac66a4c 14381 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14382 Likewise.
14383
3f602821
EZ
143842020-01-06 Eli Zaretskii <eliz@gnu.org>
14385
14386 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14387
a08c904d
JT
143882020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14389
14390 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14391 export table if no section contains it's RVA.
14392
89a65580
EZ
143932020-01-06 Eli Zaretskii <eliz@gnu.org>
14394
14395 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14396
8b7fcda2
HD
143972020-01-06 Hannes Domani <ssbssa@yahoo.de>
14398
14399 * source.c (print_source_lines_base): Set last_line_listed.
14400
a61b4f69
SV
144012020-01-06 Shahab Vahedi <shahab@synopsys.com>
14402
14403 * tui/tui-disasm.c: Remove trailing spaces.
14404
559e7e50
EZ
144052020-01-06 Eli Zaretskii <eliz@gnu.org>
14406 Pedro Alves <palves@redhat.com>
14407
14408 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14409 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14410 (windows_gdb_signal_to_target): New function, uses the above
14411 enumeration to convert GDB internal signal codes to equivalent
14412 Windows codes.
14413 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14414 * windows-nat.c: Include "gdb_wait.h".
14415 (get_windows_debug_event): Extract the fatal exception from the
14416 exit status and convert to the equivalent Posix signal number.
14417 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14418 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14419 * gdbsupport/gdb_wait.c: New file, implements
14420 windows_status_to_termsig.
14421 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14422 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14423
f2302a34
AB
144242020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14425
14426 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14427 show_layout.
14428
6a5206eb
LM
144292020-01-05 Luis Machado <luis.machado@linaro.org>
14430
14431 * aarch64-linux-nat.c
14432 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14433 and bfd_mach_aarch64.
14434
6ec1d75e
PW
144352020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14436
14437 * ui-file.c (stdio_file::can_emit_style_escape)
14438 (tee_file::can_emit_style_escape): Ensure style is used also on
14439 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14440 to gdb_stdout.
14441 * main.c (set_gdb_data_directory): Use file style to output the
14442 warning that the given pathname is not a directory.
14443 * top.c (show_history_filename, gdb_safe_append_history)
14444 (show_gdb_datadir): Use file style.
14445
44f81a76
HD
144462020-01-03 Hannes Domani <ssbssa@yahoo.de>
14447
14448 * solib-target.c (struct lm_info_target):
14449 Change offsets to be a unique_xmalloc_ptr.
14450 (solib_target_relocate_section_addresses): Update.
14451
25057eb0
HD
144522020-01-03 Hannes Domani <ssbssa@yahoo.de>
14453
14454 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14455
6e2118f5
BE
144562020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14457
14458 * MAINTAINERS (Write After Approval): Add myself.
14459
8133c7dc
LM
144602020-01-02 Luis Machado <luis.machado@linaro.org>
14461
14462 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14463 Cell BE architecture.
14464 * target.h (struct target_ops) <thread_architecture>: Likewise.
14465
48189bec
HD
144662020-01-01 Hannes Domani <ssbssa@yahoo.de>
14467
14468 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14469
ead1063b
HD
144702020-01-01 Hannes Domani <ssbssa@yahoo.de>
14471
14472 * MAINTAINERS (Write After Approval): Add myself.
14473
e5d78223
JB
144742020-01-01 Joel Brobecker <brobecker@adacore.com>
14475
14476 * gdbarch.sh: Update copyright year range of generated files.
14477
b811d2c2
JB
144782020-01-01 Joel Brobecker <brobecker@adacore.com>
14479
14480 Update copyright year range in all GDB files.
14481
5f4def5c
JB
144822020-01-01 Joel Brobecker <brobecker@adacore.com>
14483
14484 * copyright.py: Convert to Python 3.
14485
51fd4002
JB
144862020-01-01 Joel Brobecker <brobecker@adacore.com>
14487
14488 * copyright.py: Adapt after move of gnulib directory from gdb
14489 directory to toplevel directory.
14490
5fb651f2
JB
144912020-01-01 Joel Brobecker <brobecker@adacore.com>
14492
14493 * copyright.py (main): Exit if run from the wrong directory.
14494
5dd8bf88
JB
144952020-01-01 Joel Brobecker <brobecker@adacore.com>
14496
14497 * top.c (print_gdb_version): Change copyright year to 2020.
14498
9f71dacb 144992020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14500
9f71dacb 14501 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14502
9f71dacb 14503For older changes see ChangeLog-2019.
c906108c
SS
14504\f
14505Local Variables:
14506mode: change-log
14507left-margin: 8
14508fill-column: 74
14509version-control: never
57da7796 14510coding: utf-8
c906108c 14511End:
This page took 3.139398 seconds and 4 git commands to generate.