Turn target_can_lock_scheduler into a function
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8a3ecb79
TT
12020-09-28 Tom Tromey <tom@tromey.com>
2
3 * infrun.c (set_schedlock_func): Update.
4 * target.h (target_can_lock_scheduler): Now a function.
5
55f6301a
TT
62020-09-28 Tom Tromey <tom@tromey.com>
7
8 * inferior.h (class inferior) <has_execution>: Update.
9 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
10 * valops.c (find_function_in_inferior)
11 (value_allocate_space_in_inferior): Update.
12 * top.c (kill_or_detach): Update.
13 * target.c (target_preopen, set_target_permissions): Update.
14 (target_has_execution_current): Remove.
15 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
16 Update.
17 * solib.c (update_solib_list, reload_shared_libraries): Update.
18 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
19 * solib-dsbt.c (enable_break): Update.
20 * score-tdep.c (score7_fetch_inst): Update.
21 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
22 Update.
23 * remote.c (remote_target::start_remote)
24 (remote_target::remote_check_symbols, remote_target::open_1)
25 (remote_target::remote_detach_1, remote_target::verify_memory)
26 (remote_target::xfer_partial, remote_target::read_description)
27 (remote_target::get_min_fast_tracepoint_insn_len): Update.
28 * record-full.c (record_full_open_1): Update.
29 * record-btrace.c (record_btrace_target_open): Update.
30 * objc-lang.c (lookup_objc_class, lookup_child_selector)
31 (value_nsstring): Update.
32 * linux-thread-db.c (add_thread_db_info)
33 (thread_db_find_new_threads_silently, check_thread_db_callback)
34 (try_thread_db_load_1, record_thread): Update.
35 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
36 Update.
37 * linux-fork.c (checkpoint_command): Update.
38 * infrun.c (set_non_stop, set_observer_mode)
39 (check_multi_target_resumption, for_each_just_stopped_thread)
40 (maybe_remove_breakpoints, normal_stop)
41 (class infcall_suspend_state): Update.
42 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
43 (info_program_command, attach_command): Update.
44 * infcall.c (call_function_by_hand_dummy): Update.
45 * inf-loop.c (inferior_event_handler): Update.
46 * gcore.c (gcore_command, derive_heap_segment): Update.
47 * exec.c (exec_file_command): Update.
48 * eval.c (evaluate_subexp): Update.
49 * compile/compile.c (compile_to_object): Update.
50 * cli/cli-dump.c (restore_command): Update.
51 * breakpoint.c (update_watchpoint)
52 (update_inserted_breakpoint_locations)
53 (insert_breakpoint_locations, get_bpstat_thread): Update.
54 * target.h (target_has_execution): Remove macro.
55 (target_has_execution_current): Don't declare.
56 (target_has_execution): Rename from target_has_execution_1. Add
57 argument default.
58
05374cfd
TT
592020-09-28 Tom Tromey <tom@tromey.com>
60
61 * mi/mi-main.c (exec_reverse_continue)
62 (mi_cmd_list_target_features): Update.
63 * infrun.c (set_exec_direction_func): Update.
64 * target.c (default_execution_direction): Update.
65 * reverse.c (exec_reverse_once): Update.
66 * target.h (target_can_execute_reverse): Now a function.
67
9dccd06e
TT
682020-09-28 Tom Tromey <tom@tromey.com>
69
70 * tui/tui-regs.c (tui_get_register)
71 (tui_data_window::show_registers): Update.
72 * thread.c (scoped_restore_current_thread::restore)
73 (scoped_restore_current_thread::scoped_restore_current_thread):
74 Update.
75 * regcache-dump.c (regcache_print): Update.
76 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
77 Update.
78 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
79 * mep-tdep.c (current_me_module, current_options): Update.
80 * linux-thread-db.c (thread_db_load): Update.
81 * infcmd.c (registers_info, info_vector_command)
82 (info_float_command): Update.
83 * ia64-tdep.c (ia64_frame_prev_register)
84 (ia64_sigtramp_frame_prev_register): Update.
85 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
86 * gcore.c (derive_stack_segment): Update.
87 * frame.c (get_current_frame, has_stack_frames): Update.
88 * findvar.c (language_defn::read_var_value): Update.
89 * arm-tdep.c (arm_pc_is_thumb): Update.
90 * target.c (target_has_registers): Rename from
91 target_has_registers_1.
92 * target.h (target_has_registers): Remove macro.
93 (target_has_registers): Rename from target_has_registers_1.
94
841de120
TT
952020-09-28 Tom Tromey <tom@tromey.com>
96
97 * windows-tdep.c (tlb_make_value): Update.
98 * tui/tui-regs.c (tui_data_window::show_registers): Update.
99 * thread.c (scoped_restore_current_thread::restore)
100 (scoped_restore_current_thread::scoped_restore_current_thread)
101 (thread_command): Update.
102 * stack.c (backtrace_command_1, frame_apply_level_command)
103 (frame_apply_all_command, frame_apply_command): Update.
104 * infrun.c (siginfo_make_value, restore_infcall_control_state):
105 Update.
106 * gcore.c (derive_stack_segment): Update.
107 * frame.c (get_current_frame, has_stack_frames): Update.
108 * auxv.c (info_auxv_command): Update.
109 * ada-tasks.c (ada_build_task_list): Update.
110 * target.c (target_has_stack): Rename from target_has_stack_1.
111 * target.h (target_has_stack): Remove macro.
112 (target_has_stack): Rename from target_has_stack_1.
113
a739972c
TT
1142020-09-28 Tom Tromey <tom@tromey.com>
115
116 * target.c (target_has_memory): Rename from target_has_memory_1.
117 * tui/tui-regs.c (tui_data_window::show_registers): Update.
118 * thread.c (scoped_restore_current_thread::restore)
119 (scoped_restore_current_thread::scoped_restore_current_thread):
120 Update.
121 * frame.c (get_current_frame, has_stack_frames): Update.
122 * target.h (target_has_memory): Remove macro.
123 (target_has_memory): Rename from target_has_memory_1.
124
5b8a4776
TT
1252020-09-28 Tom Tromey <tom@tromey.com>
126
127 * target.c (target_has_all_memory_1): Remove.
128 * target.h (target_has_all_memory): Remove define.
129 (target_has_all_memory_1): Don't declare.
130
bd356ec6
SM
1312020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
132
133 * ser-base.c: Adjust comments formatting.
134
2c72d5e5
TT
1352020-09-27 Tom Tromey <tom@tromey.com>
136
137 PR tui/25342:
138 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
139
35a98237
TT
1402020-09-27 Tom Tromey <tom@tromey.com>
141
142 PR tui/25342:
143 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
144
9e820dec
TT
1452020-09-27 Tom Tromey <tom@tromey.com>
146
147 * unittests/tui-selftests.c: Update.
148 * tui/tui-winsource.h (struct tui_source_window_base)
149 <extra_margin, show_line_number, refresh_pad>: New methods.
150 <m_max_length, m_pad>: New members.
151 (tui_copy_source_line): Update.
152 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
153 first_col, line_width, ndigits parameters. Add length.
154 (tui_source_window_base::show_source_line): Write to pad. Line
155 number now 0-based.
156 (tui_source_window_base::refresh_pad): New method.
157 (tui_source_window_base::show_source_content): Write to pad. Call
158 refresh_pad.
159 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
160 not refill.
161 (tui_source_window_base::update_exec_info): Call
162 show_line_number.
163 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
164 method.
165 <m_digits>: New member.
166 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
167 and m_max_length.
168 (tui_source_window::show_line_number): New method.
169 * tui/tui-io.h (tui_puts): Fix comment.
170 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
171 m_max_length.
172
c15c15c8
TT
1732020-09-27 Tom Tromey <tom@tromey.com>
174
175 * tui/tui-winsource.c
176 (tui_source_window_base::set_is_exec_point_at): Don't call
177 show_source_line.
178
149830c1
TT
1792020-09-27 Tom Tromey <tom@tromey.com>
180
181 * python/py-tui.c (class tui_py_window) <refresh_window>: New
182 method.
183 <erase>: Update.
184 <cursor_x, cursor_y>: Remove.
185 <m_inner_window>: New member.
186 (tui_py_window::rerender): Create inner window.
187 (tui_py_window::output): Write to inner window.
188
8f9929bb
GR
1892020-09-26 Gareth Rees <grees@undo.io> (tiny change)
190
191 PR python/26586
192 * cli/cli-script.c (execute_control_commands): don't set
193 instream to nullptr here as this breaks the from_tty argument
194 to gdb.execute in Python.
195 (execute_user_command): set instream to nullptr here instead.
196
956bdb59
SM
1972020-09-25 Simon Marchi <simon.marchi@efficios.com>
198
199 * infrun.h (infrun_debug_printf): Fix formatting.
200 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
201
3b93626b
SJ
2022020-09-25 Saagar Jha <saagar@saagarjha.com>
203
204 * compile/compile-object-load.h (struct munmap_list): Add
205 explicitly-defined move constructor.
206
b551a89f
TT
2072020-09-24 Tom Tromey <tromey@adacore.com>
208
209 PR tui/26638:
210 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
211 method.
212 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
213 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
214 (tui_prev_win): Rewrite.
215
99bb393f
HD
2162020-09-23 Hannes Domani <ssbssa@yahoo.de>
217
218 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
219 in WOW64 processes as SIGINT.
220 * nat/windows-nat.h: Make wow64_process a shared variable.
221 * windows-nat.c: Remove static wow64_process variable.
222
20a5fcbd
TT
2232020-09-23 Tom Tromey <tom@tromey.com>
224
225 PR symtab/25470:
226 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
227 offset and bit size.
228 * printcmd.c (print_scalar_formatted): Handle zero-length
229 integer.
230 (print_scalar_formatted): Use bit_size_differs_p.
231 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
232 constant.
233 (union type_specific): <int_stuff>: New member.
234 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
235 methods.
236 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
237 TYPE_SPECIFIC_FIELD.
238 (recursive_dump_type, copy_type_recursive): Update.
239 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
240 DW_AT_data_bit_offset.
241
bac51ab7
TT
2422020-09-23 Tom Tromey <tom@tromey.com>
243
244 * utils.h (class gdb_argv): Add move operators.
245 <append>: New methods.
246 * compile/compile.c (build_argc_argv): Remove.
247 (compile_args_argc): Remove.
248 (compile_args_argv): Change type.
249 (set_compile_args): Simplify.
250 (append_args): Remove.
251 (filter_args): Remove argcp parameter.
252 (get_args): Return gdb_argv. Simplify.
253 (compile_to_object): Update.
254
92677124
TT
2552020-09-23 Tom Tromey <tom@tromey.com>
256
257 * compile/compile-object-run.c (do_module_cleanup)
258 <~do_module_cleanup> :Remove.
259 (do_module_cleanup): Update.
260 * compile/compile-object-load.h (struct munmap_list): Add move
261 assignment operator.
262 <source_file>: Now a std::string.
263 <munmap_list>: Rename. No longer a pointer.
264 * compile/compile-object-load.c (struct setup_sections_data): Add
265 constructor.
266 <setup_one_section>: Declare.
267 <munmap_list>: Move earlier.
268 <m_bfd>: New member.
269 <m_last_size, m_last_section_first, m_last_prot,
270 m_last_max_alignment>: Rename, add initializers where needed.
271 (setup_sections_data::setup_one_section): Rename from
272 setup_sections. Update.
273 (compile_object_load): Update. Don't use bfd_map_over_sections.
274
e616f60a
TT
2752020-09-23 Tom Tromey <tom@tromey.com>
276
277 * compile/compile-object-run.c (struct do_module_cleanup): Add
278 parameters to constructor. Update destructor.
279 <source_file, scope, scope_data, out_value_type, out_value_addr,
280 munmap_list_head, objfile_name_string>: Remove.
281 <module>: New member.
282 (do_module_cleanup): Update.
283 (compile_object_run): Update.
284
e947a848
TT
2852020-09-23 Tom Tromey <tom@tromey.com>
286
287 * compile/compile.c (eval_compile_command): Update.
288 * compile/compile-object-run.h (compile_object_run): Take a
289 compile_module_up.
290 * compile/compile-object-run.c (compile_object_run): Take a
291 compile_module_up.
292 * compile/compile-object-load.h (struct compile_module): Add
293 constructor, destructor.
294 (compile_module_up): New typedef.
295 (compile_object_load): Return compile_object_up.
296 * compile/compile-object-load.c (compile_object_load): Return
297 compile_module_up.
298
0dbf6ee6
TT
2992020-09-23 Tom Tromey <tom@tromey.com>
300
301 * compile/compile-object-run.c (struct do_module_cleanup): Add
302 constructor, destructor.
303 <objfile_name_string>: Don't use struct hack.
304 (do_module_cleanup): Use delete.
305 (compile_object_run): Use new.
306
ebe824f5
TT
3072020-09-23 Tom Tromey <tom@tromey.com>
308
309 * compile/compile-cplus-types.c
310 (compile_cplus_convert_struct_or_union): Use std::vector.
311 (compile_cplus_convert_func): Likewise.
312 * compile/compile-c-types.c (convert_func): Use std::vector.
313
5dd918d9
TT
3142020-09-21 Tom Tromey <tromey@adacore.com>
315
316 * sparc-tdep.c (sparc32_skip_prologue): Use
317 skip_prologue_using_sal.
318
5486c517
TT
3192020-09-19 Tom Tromey <tom@tromey.com>
320
321 * symfile.c (add_section_size_callback): Remove.
322 (load_one_section): Rename from load_section_callback. Change
323 parameters.
324 (generic_load): Use foreach.
325
8a6bb1d1
TT
3262020-09-19 Tom Tromey <tom@tromey.com>
327
328 * exec.c (add_to_section_table): Remove.
329 (build_section_table): Use foreach.
330
08f93a1a
TT
3312020-09-19 Tom Tromey <tom@tromey.com>
332
333 * elfread.c (elf_locate_sections): Change parameters.
334 (elf_symfile_read): Use foreach.
335
03cd72b8
TT
3362020-09-19 Tom Tromey <tom@tromey.com>
337
338 * cli/cli-dump.c (struct callback_data): Remove.
339 (restore_one_section): Rename from restore_section_callback.
340 Change parameters.
341 (restore_binary_file): Change parameters.
342 (restore_command): Use foreach.
343
f4f2b85f
TT
3442020-09-19 Tom Tromey <tom@tromey.com>
345
346 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
347 (gcore_copy_callback): Likewise.
348 (gcore_memory_sections): Use foreach.
349
b35c1d1c
TT
3502020-09-19 Tom Tromey <tom@tromey.com>
351
352 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
353 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
354 parameters.
355 (generic_elf_osabi_sniffer): Use foreach.
356 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
357 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
358
5bb6e9dd
TT
3592020-09-19 Tom Tromey <tom@tromey.com>
360
361 * dwarf2/read.c (locate_dwz_sections): Change parameters.
362 (dwarf2_get_dwz_file): Use foreach.
363 (dwarf2_locate_dwo_sections): Change parameters.
364 (open_and_init_dwo_file): Use foreach.
365 (dwarf2_locate_common_dwp_sections): Change parameters.
366 (open_and_init_dwp_file): Use foreach.
367
ad7277da
TT
3682020-09-19 Tom Tromey <tom@tromey.com>
369
370 * symfile.h: (find_lowest_section): Don't declare.
371 * symfile.c (find_lowest_section): Now static. Change
372 parameters.
373 (struct place_section_arg): Remove.
374 (place_section): Change parameters.
375 (addr_info_make_relative): Use foreach.
376 (symfile_dummy_outputs): Remove.
377 (default_symfile_relocate): Use foreach.
378
cb814f2e
TT
3792020-09-19 Tom Tromey <tom@tromey.com>
380
381 * objfiles.c (add_to_objfile_sections): Rename from
382 add_to_objfile_sections_full.
383 (add_to_objfile_sections): Remove.
384 (build_objfile_section_table): Use foreach.
385
3cabfd26
TT
3862020-09-19 Tom Tromey <tom@tromey.com>
387
388 * stap-probe.c (get_stap_base_address_1): Remove.
389 (get_stap_base_address): Use foreach.
390
1ce51eb5
TT
3912020-09-19 Tom Tromey <tom@tromey.com>
392
393 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
394 parameters.
395 (gdb_bfd_close_or_warn): Use foreach.
396
a190fabb
TT
3972020-09-19 Tom Tromey <tom@tromey.com>
398
399 * corelow.c (add_to_thread_list): Change parameters.
400 (core_target_open): Use foreach.
401
cafb0d81
TT
4022020-09-19 Tom Tromey <tom@tromey.com>
403
404 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
405 existing function.
406
c8d5abea
AB
4072020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
408
409 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
410 for arrays.
411
6d816919
AB
4122020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
413
414 * eval.c: Remove 'f-lang.h' include.
415 (value_f90_subarray): Moved to f-lang.c.
416 (eval_call): Renamed to...
417 (evaluate_subexp_do_call): ...this, is no longer static, header
418 comment moved into header file.
419 (evaluate_funcall): Update call to eval_call.
420 (skip_undetermined_arglist): Moved to f-lang.c.
421 (fortran_value_subarray): Likewise.
422 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
423 moved to evaluate_subexp_f.
424 (calc_f77_array_dims): Moved to f-lang.c
425 * expprint.c (print_subexp_funcall): New function.
426 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
427 moved to print_subexp_f, OP_FUNCALL uses new function.
428 (dump_subexp_body_funcall): New function.
429 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
430 moved to dump_subexp_f, OP_FUNCALL uses new function.
431 * expression.h (evaluate_subexp_do_call): Declare.
432 * f-lang.c (value_f90_subarray): Moved from eval.c.
433 (skip_undetermined_arglist): Likewise.
434 (calc_f77_array_dims): Likewise.
435 (fortran_value_subarray): Likewise.
436 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
437 (operator_length_f): Likewise.
438 (print_subexp_f): Likewise.
439 (dump_subexp_body_f): Likewise.
440 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
441 declaration of this operation to here.
442 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
443 support moved to operator_length_f.
444 * parser-defs.h (dump_subexp_body_funcall): Declare.
445 (print_subexp_funcall): Declare.
446 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
447 fortran-operator.def.
448
8c37706a
AB
4492020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
450
451 * eval.c (fortran_value_subarray): New function, content is taken
452 from...
453 (evaluate_subexp_standard): ...here, in two places. Now arrays
454 and strings both call the new function.
455 (calc_f77_array_dims): Add header comment, handle strings.
456
14f9473c
VC
4572020-09-18 Victor Collod <vcollod@nvidia.com>
458
459 PR gdb/26635
460 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
461 (i386_analyze_prologue): Call i386_skip_endbr.
462
b60cea74
TT
4632020-09-18 Tom Tromey <tromey@adacore.com>
464
465 * windows-nat.c (struct windows_nat_target) <wait>: Update.
466 (windows_nat_target::wait): Update.
467 * target/wait.h (enum target_wait_flag): New. Use
468 DEF_ENUM_FLAGS_TYPE.
469 * target/target.h (target_wait): Change type of options.
470 * target.h (target_options_to_string, default_target_wait):
471 Update.
472 (struct target_ops) <wait>: Change type of options.
473 * target.c (target_wait, default_target_wait, do_option): Change
474 type of "options".
475 (target_options_to_string): Likewise.
476 * target-delegates.c: Rebuild.
477 * target-debug.h (target_debug_print_target_wait_flags): Rename
478 from target_debug_print_options.
479 * sol-thread.c (class sol_thread_target) <wait>: Update.
480 (sol_thread_target::wait): Update.
481 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
482 (rs6000_nat_target::wait): Update.
483 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
484 Update.
485 (remote_target::wait_ns, remote_target::wait_as): Change type of
486 "options".
487 (remote_target::wait): Update.
488 * remote-sim.c (struct gdbsim_target) <wait>: Update.
489 (gdbsim_target::wait): Update.
490 * record-full.c (class record_full_base_target) <wait>: Update.
491 (record_full_wait_1): Change type of "options".
492 (record_full_base_target::wait): Update.
493 * record-btrace.c (class record_btrace_target) <wait>: Update.
494 (record_btrace_target::wait): Update.
495 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
496 Update.
497 (ravenscar_thread_target::wait): Update.
498 * procfs.c (class procfs_target) <wait>: Update.
499 (procfs_target::wait): Update.
500 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
501 * obsd-nat.c (obsd_nat_target::wait): Update.
502 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
503 (nto_procfs_target::wait): Update.
504 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
505 * nbsd-nat.c (nbsd_wait): Change type of "options".
506 (nbsd_nat_target::wait): Update.
507 * linux-thread-db.c (class thread_db_target) <wait>: Update.
508 (thread_db_target::wait): Update.
509 * linux-nat.h (class linux_nat_target) <wait>: Update.
510 * linux-nat.c (linux_nat_target::wait): Update.
511 (linux_nat_wait_1): Update.
512 * infrun.c (do_target_wait_1, do_target_wait): Change type of
513 "options".
514 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
515 * inf-ptrace.c (inf_ptrace_target::wait): Update.
516 * go32-nat.c (struct go32_nat_target) <wait>: Update.
517 (go32_nat_target::wait): Update.
518 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
519 * gnu-nat.c (gnu_nat_target::wait): Update.
520 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
521 * fbsd-nat.c (fbsd_nat_target::wait): Update.
522 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
523 * darwin-nat.c (darwin_nat_target::wait): Update.
524 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
525 (bsd_uthread_target::wait): Update.
526 * aix-thread.c (class aix_thread_target) <wait>: Update.
527 (aix_thread_target::wait): Update.
528
0295dde6
AB
5292020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
530
531 * compile/compile-object-run.c (create_copied_type_recursive): New
532 function.
533 (compile_object_run): Use new function.
534
d3483b43
JT
5352020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
536
537 * NEWS: Mention x86_64 Cygwin core file support.
538
e7d612ad
JT
5392020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
540
541 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
542 (core_process_module_section): Handle NOTE_INFO_MODULE64.
543
aff9d387
JT
5442020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
545
62a5151b
JT
546 * windows-tdep.h: Add prototypes.
547 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
548 (i386_windows_core_pid_to_str): Move and rename ...
549 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
550 (windows_core_pid_to_str): ... and here.
551 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
552
5532020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
554 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
555 (amd64_windows_init_abi_common): ... and register.
556
7d155da3
JT
5572020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
558
559 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
560 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
561
e8ef12b9
PA
5622020-09-18 Pedro Alves <pedro@palves.net>
563
564 PR gdb/26631
565 * thread.c (thread_find_command): Switch inferior before calling
566 target methods.
567
c1e1314d
TT
5682020-09-17 Tom Tromey <tromey@adacore.com>
569
570 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
571 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
572 (tdesc_arch_data_up): New typedef.
573 (tdesc_use_registers, tdesc_data_alloc): Update.
574 (tdesc_data_cleanup): Don't declare.
575 * target-descriptions.c (tdesc_data_alloc): Return a
576 tdesc_arch_data_up.
577 (tdesc_arch_data_deleter::operator()): Rename from
578 tdesc_data_cleanup. Change argument type.
579 (tdesc_use_registers): Change early_data to an rvalue reference.
580 (tdesc_use_registers): Don't use delete.
581 * sparc-tdep.c (sparc32_gdbarch_init): Update.
582 * s390-tdep.c (s390_gdbarch_init): Update.
583 * rx-tdep.c (rx_gdbarch_init): Update.
584 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
585 * riscv-tdep.c (riscv_gdbarch_init): Update.
586 * or1k-tdep.c (or1k_gdbarch_init): Update.
587 * nios2-tdep.c (nios2_gdbarch_init): Update.
588 * nds32-tdep.c (nds32_gdbarch_init): Update.
589 * mips-tdep.c (mips_gdbarch_init): Update.
590 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
591 * m68k-tdep.c (m68k_gdbarch_init): Update.
592 * i386-tdep.c (i386_gdbarch_init): Update.
593 * arm-tdep.c (arm_gdbarch_init): Update.
594 * arc-tdep.c (arc_tdesc_init): Update.
595 (arc_gdbarch_init): Update.
596 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
597
0363df3d
HD
5982020-09-17 Hannes Domani <ssbssa@yahoo.de>
599
600 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
601 for WOW64 processes.
602
280a9412
TT
6032020-09-17 Tom Tromey <tom@tromey.com>
604
605 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
606
6108fd18
TT
6072020-09-17 Tom Tromey <tom@tromey.com>
608
609 * value.c (preserve_values): Update.
610 * python/py-type.c (save_objfile_types): Update.
611 * guile/scm-type.c (save_objfile_types): Update.
612 * gdbtypes.h (create_copied_types_hash): Return htab_up.
613 * gdbtypes.c (create_copied_types_hash): Return htab_up.
614 * compile/compile-object-run.c (compile_object_run): Update.
615
fa9b1164
TT
6162020-09-17 Tom Tromey <tom@tromey.com>
617
618 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
619 Remove.
620 <m_table>: Now htab_up.
621 * typeprint.c (typedef_hash_table::recursively_update)
622 (typedef_hash_table::add_template_parameters)
623 (typedef_hash_table::typedef_hash_table): Update.
624 (typedef_hash_table::~typedef_hash_table): Remove.
625 (typedef_hash_table::typedef_hash_table)
626 (typedef_hash_table::find_global_typedef)
627 (typedef_hash_table::find_typedef): Update.
628
eb53f105
TT
6292020-09-17 Tom Tromey <tom@tromey.com>
630
631 * target-descriptions.c (tdesc_use_registers): Use htab_up.
632
7a8a5d47
TT
6332020-09-17 Tom Tromey <tom@tromey.com>
634
635 * linespec.c (class decode_compound_collector)
636 <~decode_compound_collector>: Remove.
637 <m_unique_syms>: Now htab_up.
638 (decode_compound_collector::operator ()): Update.
639 (class symtab_collector) <~symtab_collector>: Remove.
640 <m_symtab_table>: Now htab_up.
641 (symtab_collector::operator ()): Update.
642
99032cfc
TT
6432020-09-17 Tom Tromey <tom@tromey.com>
644
645 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
646 (filename_seen_cache::clear): Update.
647 (~filename_seen_cache): Remove.
648 (filename_seen_cache::seen): Update.
649 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
650 htab_up.
651 <~filename_seen_cache>: Remove.
652 <traverse>: Update.
653
32580f6d
TT
6542020-09-17 Tom Tromey <tom@tromey.com>
655
656 * completer.c (completion_tracker::discard_completions)
657 (completion_tracker::~completion_tracker)
658 (completion_tracker::maybe_add_completion)
659 (completion_tracker::remove_completion)
660 (completion_tracker::recompute_lowest_common_denominator)
661 (completion_tracker::build_completion_result): Update.
662 * completer.h (class completion_tracker) <have_completions>:
663 Update.
664 <m_entries_hash>: Now htab_up.
665
c1fb9836
TT
6662020-09-17 Tom Tromey <tom@tromey.com>
667
668 * breakpoint.c (ambiguous_names_p): Use htab_up.
669
88f07206
TT
6702020-09-17 Tom Tromey <tom@tromey.com>
671
672 * auto-load.c (struct auto_load_pspace_info)
673 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
674 <loaded_script_files, loaded_script_texts>: Change type to
675 htab_up.
676 (~auto_load_pspace_info) Remove.
677 (init_loaded_scripts_info, maybe_add_script_file)
678 (maybe_add_script_text, auto_load_info_scripts): Update.
679
9519b2ee
TT
6802020-09-17 Tom Tromey <tromey@adacore.com>
681
682 * c-exp.y (name_obstack): Now static.
683
d2cd4113
CC
6842020-09-17 Chungyi Chi <demonic@csie.io>
685
686 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
687
b650a282
SM
6882020-09-16 Simon Marchi <simon.marchi@efficios.com>
689
690 * breakpoint.h (init_catchpoint): Change int parameter to bool.
691 (add_solib_catchpoint): Likewise.
692 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
693 to bool.
694 (add_solib_catchpoint): Change int parameter/variable to bool.
695 (catch_load_or_unload): Likewise.
696 (init_catchpoint): Likewise.
697 (create_fork_vfork_event_catchpoint): Likewise.
698 (catch_fork_command_1): Likewise.
699 (catch_exec_command_1): Likewise.
700
4d0bcfcf
SM
7012020-09-16 Simon Marchi <simon.marchi@efficios.com>
702
703 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
704 Change instance_flags to m_instance_flags.
705
fe830662
TT
7062020-09-16 Tom Tromey <tromey@adacore.com>
707
708 PR gdb/26598:
709 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
710
fe5ddfc3
JB
7112020-09-16 John Baldwin <jhb@FreeBSD.org>
712
713 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
714 PL_FLAG_EXEC.
715 (fbsd_nat_target::insert_exec_catchpoint)
716 (fbsd_nat_target::remove_exec_catchpoint): Always define.
717 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
718 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
719
e911c666
JB
7202020-09-16 John Baldwin <jhb@FreeBSD.org>
721
722 * configure.ac: Remove check for kinfo_getvmmap().
723 * configure, config.in: Regenerate.
724 * fbsd-nat.c (fbsd_read_mapping): Remove
725 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
726 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
727 kinfo_get_vmmap() are always present.
728
1f17d372
JB
7292020-09-16 John Baldwin <jhb@FreeBSD.org>
730
731 * fbsd-nat.c: Always include support for
732 TARGET_OBJECT_SIGNAL_INFO.
733
bcb1da7f
JB
7342020-09-16 John Baldwin <jhb@FreeBSD.org>
735
736 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
737 sysctl and remove procfs fallback.
738
5515f729
JB
7392020-09-16 John Baldwin <jhb@FreeBSD.org>
740
741 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
742 * fbsd-nat.h: Likewise.
743
da1df1db
TBA
7442020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
745
746 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
747 argument.
748
0e25e767
AB
7492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
750
751 * ada-lang.c (ada_language_data): Delete.
752 (ada_language): Remove references to ada_language_data.
753 * c-lang.c (c_language_data): Delete.
754 (c_language): Remove references to c_language_data.
755 (cplus_language_data): Delete.
756 (cplus_language): Remove references to cplus_language_data.
757 (asm_language_data): Delete.
758 (asm_language): Remove references to asm_language_data.
759 (minimal_language_data): Delete.
760 (minimal_language): Remove references to minimal_language_data.
761 * d-lang.c (d_language_data): Delete.
762 (d_language): Remove references to d_language_data.
763 * f-lang.c (f_language_data): Delete.
764 (f_language): Remove references to f_language_data.
765 * go-lang.c (go_language_data): Delete.
766 (go_language): Remove references to go_language_data.
767 * language.c (unknown_language_data): Delete.
768 (unknown_language): Remove references to unknown_language_data.
769 (auto_language_data): Delete.
770 (auto_language): Remove references to auto_language_data.
771 * language.h (language_data): Delete struct.
772 (language_defn): No longer inherit from language_data.
773 * m2-lang.c (m2_language_data): Delete.
774 (m2_language): Remove references to m2_language_data.
775 * objc-lang.c (objc_language_data): Delete.
776 (objc_language): Remove references to objc_language_data.
777 * opencl-lang.c (opencl_language_data): Delete.
778 (opencl_language): Remove references to opencl_language_data.
779 * p-lang.c (pascal_language_data): Delete.
780 (pascal_language): Remove references to pascal_language_data.
781 * rust-lang.c (rust_language_data): Delete.
782 (rust_language): Remove references to rust_language_data.
783
b7c6e27d
AB
7842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
785
786 * ada-lang.c (ada_language_data): Remove la_op_print_tab
787 initializer.
788 (ada_language::opcode_print_table): New member function.
789 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
790 (c_language::opcode_print_table): New member function.
791 (cplus_language_data): Remove la_op_print_tab initializer.
792 (cplus_language::opcode_print_table): New member function.
793 (asm_language_data): Remove la_op_print_tab initializer.
794 (asm_language::opcode_print_table): New member function.
795 (minimal_language_data): Remove la_op_print_tab initializer.
796 (minimal_language::opcode_print_table): New member function.
797 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
798 (d_language::opcode_print_table): New member function.
799 * expprint.c (print_subexp_standard): Update call to
800 opcode_print_table.
801 (op_string): Likewise.
802 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
803 (f_language::opcode_print_table): New member function.
804 * go-lang.c (go_language_data): Remove la_op_print_tab
805 initializer.
806 (go_language::opcode_print_table): New member function.
807 * language.c (unknown_language_data): Remove la_op_print_tab
808 initializer.
809 (unknown_language::opcode_print_table): New member function.
810 (auto_language_data): Remove la_op_print_tab initializer.
811 (auto_language::opcode_print_table): New member function.
812 * language.h (language_data): Remove la_op_print_tab field.
813 (language_defn::opcode_print_table): Declare new member function.
814 * m2-lang.c (m2_language_data): Remove la_op_print_tab
815 initializer.
816 (m2_language::opcode_print_table): New member function.
817 * objc-lang.c (objc_language_data): Remove la_op_print_tab
818 initializer.
819 (objc_language::opcode_print_table): New member function.
820 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
821 initializer.
822 (opencl_language::opcode_print_table): New member function.
823 * p-lang.c (pascal_language_data): Remove la_op_print_tab
824 initializer.
825 (pascal_language::opcode_print_table): New member function.
826 * rust-lang.c (rust_language_data): Remove la_op_print_tab
827 initializer.
828 (rust_language::opcode_print_table): New member function.
829
5aba6ebe
AB
8302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
831
832 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
833 (ada_language::expression_ops): New member function.
834 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
835 (c_language::expression_ops): New member function.
836 (cplus_language_data): Remove la_exp_desc initializer.
837 (cplus_language::expression_ops): New member function.
838 (asm_language_data): Remove la_exp_desc initializer.
839 (asm_language::expression_ops): New member function.
840 (minimal_language_data): Remove la_exp_desc initializer.
841 (minimal_language::expression_ops): New member function.
842 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
843 (d_language::expression_ops): New member function.
844 * eval.c (evaluate_subexp): Update call to expression_ops.
845 * expprint.c (print_subexp): Likewise.
846 (op_name): Likewise.
847 (dump_subexp_body): Likewise.
848 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
849 (f_language::expression_ops): New member function.
850 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
851 (go_language::expression_ops): New member function.
852 * language.c (language_defn::expression_ops): New function.
853 (unknown_language_data): Remove la_exp_desc initializer.
854 (auto_language_data): Likewise.
855 * language.h (language_data): Remove la_exp_desc field.
856 (language_defn::expression_ops): Declare new member function.
857 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
858 (m2_language::expression_ops): New member function.
859 * objc-lang.c (objc_language_data): Remove la_exp_desc
860 initializer.
861 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
862 initializer.
863 (opencl_language::expression_ops): New member function.
864 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
865 * parse.c (operator_length): Update call to expression_ops.
866 (exp_iterate): Likewise.
867 * rust-lang.c (rust_language_data): Remove la_exp_desc
868 initializer.
869 (ruse_language::expression_ops): New member function.
870
b63a3f3f
AB
8712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
872
873 * ada-lang.c (ada_language_data): Remove la_varobj_ops
874 initializer.
875 (ada_language::varobj_ops): New member function.
876 * c-lang.c (c_language_data): Remove la_varobj_ops
877 initializer.
878 (cplus_language_data): Likewise.
879 (cplus_language::varobj_ops): New member function.
880 (asm_language_data): Remove la_varobj_ops initializer.
881 (minimal_language_data): Likewise.
882 * d-lang.c (d_language_data): Likewise.
883 * f-lang.c (f_language_data): Likewise.
884 * go-lang.c (go_language_data): Likewise.
885 * language.c (language_defn::varobj_ops): New function.
886 (unknown_language_data): Remove la_varobj_ops
887 initializer.
888 (auto_language_data): Likewise.
889 * language.h (language_data): Remove la_varobj_ops field.
890 (language_defn::varobj_ops): Declare new member function.
891 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
892 * objc-lang.c (objc_language_data): Likewise.
893 * opencl-lang.c (opencl_language_data): Likewise.
894 * p-lang.c (pascal_language_data): Likewise.
895 * rust-lang.c (rust_language_data): Likewise.
896 * varobj.c (varobj_create): Update call to varobj_ops.
897 * varobj.h (default_varobj_ops): Delete define.
898
1ac14a04
AB
8992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
900
901 * ada-lang.c (ada_language_data): Remove la_macro_expansion
902 initializer.
903 * c-lang.c (c_language_data): Likewise.
904 (c_language::macro_expansion): New member function.
905 (cplus_language_data): Likewise.
906 (cplus_language::macro_expansion): New member function.
907 (asm_language_data): Likewise.
908 (asm_language::macro_expansion): New member function.
909 (minimal_language_data): Likewise.
910 (minimal_language::macro_expansion): New member function.
911 * d-lang.c (d_language_data): Remove la_macro_expansion
912 initializer.
913 * f-lang.c (f_language_data): Likewise.
914 * go-lang.c (go_language_data): Likewise.
915 * language.c (unknown_language_data): Likewise.
916 (auto_language_data): Likewise.
917 * language.h (language_data): Remove la_macro_expansion field.
918 (language_defn::macro_expansion): New member function.
919 * m2-lang.c (m2_language_data): Remove la_macro_expansion
920 initializer.
921 * objc-lang.c (objc_language_data): Likewise.
922 (objc_language::macro_expansion): New member function.
923 * opencl-lang.c (opencl_language_data): Likewise.
924 (opencl_language::macro_expansion): New member function.
925 * p-lang.c (pascal_language_data): Remove la_macro_expansion
926 initializer.
927 * rust-lang.c (rust_language_data): Likewise.
928 * symtab.c (default_collect_symbol_completion_matches_break_on):
929 Update call to macro_expansion.
930
3a3440fb
AB
9312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
932
933 * ada-lang.c (ada_language_data): Remove la_array_ordering
934 initializer.
935 * c-lang.c (c_language_data): Likewise.
936 (cplus_language_data): Likewise.
937 (asm_language_data): Likewise.
938 (minimal_language_data): Likewise.
939 * d-lang.c (d_language_data): Likewise.
940 * dwarf2/read.c (read_array_order): Update for call to
941 array_ordering.
942 * f-lang.c (f_language_data): Remove la_array_ordering
943 initializer.
944 (f_language::array_ordering): New member function.
945 * go-lang.c (go_language_data): Remove la_array_ordering
946 initializer.
947 * language.c (unknown_language_data): Likewise.
948 (auto_language_data): Likewise.
949 * language.h (language_data): Delete la_array_ordering field.
950 (language_defn::array_ordering): New member function.
951 * m2-lang.c (m2_language_data): Remove la_array_ordering
952 initializer.
953 * objc-lang.c (objc_language_data): Likewise.
954 * opencl-lang.c (opencl_language_data): Likewise.
955 * p-lang.c (pascal_language_data): Likewise.
956 * rust-lang.c (rust_language_data): Likewise.
957
0d201fa4
AB
9582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
959
960 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
961 initializer.
962 * c-lang.c (c_language_data): Likewise.
963 (cplus_language_data): Likewise.
964 (asm_language_data): Likewise.
965 (minimal_language_data): Likewise.
966 * d-lang.c (d_language_data): Likewise.
967 * f-lang.c (f_language_data): Likewise.
968 (f_language::case_sensitivity): New member function.
969 * go-lang.c (go_language_data): Remove la_case_sensitivity
970 initializer.
971 * language.c (enum case_mode): Moved here from language.h.
972 (case_mode): Make static.
973 (show_case_command): Update for case_sensitivity being a method.
974 (set_case_command): Likewise.
975 (set_range_case): Likewise.
976 (unknown_language_data): Remove la_case_sensitivity initializer.
977 (auto_language_data): Likewise.
978 * language.h (case_mode): Delete, move enum declaration to
979 language.c.
980 (language_data): Delete la_case_sensitivity field.
981 (language_defn::case_sensitivity): New member function.
982 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
983 initializer.
984 * objc-lang.c (objc_language_data): Likewise.
985 * opencl-lang.c (opencl_language_data): Likewise.
986 * p-lang.c (pascal_language_data): Likewise.
987 * rust-lang.c (rust_language_data): Likewise.
988
efdf6a73
AB
9892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
990
991 * ada-lang.c (ada_language_data): Remove la_range_check
992 initializer.
993 * c-lang.c (c_language_data): Likewise.
994 (cplus_language_data): Likewise.
995 (asm_language_data): Likewise.
996 (minimal_language_data): Likewise.
997 * d-lang.c (d_language_data): Likewise.
998 * f-lang.c (f_language_data): Likewise.
999 (f_language::range_checking_on_by_default): New member function.
1000 * go-lang.c (go_language_data): Remove la_range_check initializer.
1001 * language.c (enum range_mode): Moved here from language.h.
1002 (range_mode): Made static.
1003 (show_range_command): Update to use
1004 range_checking_on_by_default.
1005 (set_range_command): Likewise.
1006 (set_range_case): Likewise.
1007 (unknown_language_data): Remove la_range_check initializer.
1008 (auto_language_data): Likewise.
1009 * language.h (range_mode): Delete. Enum definition moved to
1010 language.c.
1011 (language_data): Remove la_range_check field.
1012 (language_defn::range_checking_on_by_default): New member
1013 function.
1014 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1015 (m2_language::range_checking_on_by_default): New member function.
1016 * objc-lang.c (objc_language_data): Remove la_range_check
1017 initializer.
1018 * opencl-lang.c (opencl_language_data): Likewise.
1019 * p-lang.c (pascal_language_data): Likewise.
1020 (pascal_language::range_checking_on_by_default): New member
1021 function.
1022 * rust-lang.c (rust_language_data): Remove la_range_check
1023 initializer.
1024 (rust_language::range_checking_on_by_default): New member
1025 function.
1026
bf92aec5
AB
10272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1028
1029 * dwarf2/read.c (dwarf2_physname): Remove special case for
1030 language_go.
1031 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1032 member function.
1033
d3355e4d
AB
10342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1035
1036 * ada-lang.c (ada_language_data): Remove
1037 la_store_sym_names_in_linkage_form_p initializer.
1038 (ada_language::store_sym_names_in_linkage_form_p): New member
1039 function.
1040 * c-lang.c (c_language_data): Remove
1041 la_store_sym_names_in_linkage_form_p initializer.
1042 (c_language::store_sym_names_in_linkage_form_p): New member
1043 function.
1044 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1045 initializer.
1046 (asm_language_data): Likewise.
1047 (asm_language::store_sym_names_in_linkage_form_p): New member
1048 function.
1049 (minimal_language_data): Remove
1050 la_store_sym_names_in_linkage_form_p initializer.
1051 (minimal_language::store_sym_names_in_linkage_form_p): New member
1052 function.
1053 * d-lang.c (d_language_data): Remove
1054 la_store_sym_names_in_linkage_form_p initializer.
1055 * dwarf2/read.c (dwarf2_physname): Update call to
1056 store_sym_names_in_linkage_form_p.
1057 * f-lang.c (f_language_data): Remove
1058 la_store_sym_names_in_linkage_form_p initializer.
1059 * go-lang.c (go_language_data): Remove
1060 la_store_sym_names_in_linkage_form_p initializer.
1061 * language.c (unknown_language_data): Remove
1062 la_store_sym_names_in_linkage_form_p initializer.
1063 (unknown_language::store_sym_names_in_linkage_form_p): New member
1064 function.
1065 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1066 initializer.
1067 (auto_language::store_sym_names_in_linkage_form_p): New member
1068 function.
1069 * language.h (language_data): Remove
1070 la_store_sym_names_in_linkage_form_p member variable.
1071 (language_defn::store_sym_names_in_linkage_form_p): New member
1072 function.
1073 * m2-lang.c (m2_language_data): Remove
1074 la_store_sym_names_in_linkage_form_p initializer.
1075 * objc-lang.c (objc_language_data): Likewise.
1076 * opencl-lang.c (opencl_language_data): Likewise.
1077 * p-lang.c (pascal_language_data): Likewise.
1078 * rust-lang.c (rust_language_data): Likewise.
1079
22c12a6c
AB
10802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1081
1082 * ada-lang.c (ada_language_data): Remove string_lower_bound
1083 initializer.
1084 * c-lang.c (c_language_data): Likewise.
1085 (cplus_language_data): Likewise.
1086 (asm_language_data): Likewise.
1087 (minimal_language_data): Likewise.
1088 * d-lang.c (d_language_data): Likewise.
1089 * f-lang.c (f_language_data): Likewise.
1090 * go-lang.c (go_language_data): Likewise.
1091 * language.c (unknown_language_data): Likewise.
1092 (auto_language_data): Likewise.
1093 * language.h (language_data): Remove string_lower_bound field.
1094 (language_defn::string_lower_bound): New member function.
1095 * m2-lang.c (m2_language_data): Remove string_lower_bound
1096 initializer.
1097 (m2_language::string_lower_bound): New member function.
1098 * objc-lang.c (objc_language_data): Remove string_lower_bound
1099 initializer.
1100 * opencl-lang.c (opencl_language_data): Likewise.
1101 * p-lang.c (pascal_language_data): Likewise.
1102 * rust-lang.c (rust_language_data): Likewise.
1103 * valops.c (value_cstring): Update call to string_lower_bound.
1104 (value_string): Likewise.
1105 * value.c (allocate_repeated_value): Likewise.
1106
1c236ddd
AB
11072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1108
1109 * valops.c (value_repeat): Fix incorrect argument name in comment.
1110
67bd3fd5
AB
11112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1112
1113 * ada-lang.c (ada_language_data): Remove c_style_arrays
1114 initializer.
1115 (ada_language::c_style_arrays_p): New member fuction.
1116 * c-lang.c (c_language_data): Remove c_style_arrays
1117 initializer.
1118 (cplus_language_data): Likewise.
1119 (asm_language_data): Likewise.
1120 (minimal_language_data): Likewise.
1121 * d-lang.c (d_language_data): Likewise.
1122 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1123 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1124 (f_language::c_style_arrays_p): New member function.
1125 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1126 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1127 * language.c (unknown_language_data): Remove c_style_arrays
1128 initializer.
1129 (auto_language_data): Likewise.
1130 * language.h (language_data): Remove c_style_arrays field.
1131 (language_defn::c_style_arrays_p): New member function.
1132 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1133 (m2_language::c_style_arrays_p): New member function.
1134 * objc-lang.c (objc_language_data): Remove c_style_arrays
1135 initializer.
1136 * opencl-lang.c (opencl_language_data): Likewise.
1137 * p-lang.c (pascal_language_data): Likewise.
1138 * rust-lang.c (rust_language_data): Likewise.
1139 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1140 and update local variable to a bool.
1141 * valops.c (value_cast): Update call to c_style_arrays_p.
1142 (value_array): Likewise.
1143 * value.c (coerce_array): Likewise.
1144
85967615
AB
11452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1146
1147 * ada-lang.c (ada_language_data): Remove la_language initializer.
1148 * c-lang.c (c_language_data): Likewise.
1149 (cplus_language_data): Likewise.
1150 (asm_language_data): Likewise.
1151 (minimal_language_data): Likewise.
1152 * d-lang.c (d_language_data): Likewise.
1153 * f-lang.c (f_language_data): Likewise.
1154 * go-lang.c (go_language_data): Likewise.
1155 * language.c (unknown_language_data): Likewise.
1156 (auto_language_data): Likewise.
1157 * language.h (language_data): Remove la_language field.
1158 (language_defn::language_defn): Initialise la_language field.
1159 (language_defn::la_language): New member variable.
1160 * m2-lang.c (m2_language_data): Remove la_language field.
1161 * objc-lang.c (objc_language_data): Likewise.
1162 * opencl-lang.c (opencl_language_data): Likewise.
1163 * p-lang.c (pascal_language_data): Likewise.
1164 * rust-lang.c (rust_language_data): Likewise.
1165
e171d6f1
AB
11662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1167
1168 * ada-lang.c (ada_extensions): Delete, moved into
1169 ada_language::filename_extensions.
1170 (ada_language_data): Remove la_filename_extensions initializer.
1171 (ada_language::filename_extensions): New member function.
1172 * c-lang.c (c_extensions): Delete, moved into
1173 c_language::filename_extensions.
1174 (c_language_data): Remove la_filename_extensions initializer.
1175 (c_language::filename_extensions): New member function.
1176 (cplus_extensions): Delete, moved into
1177 cplus_language::filename_extensions.
1178 (cplus_language_data): Remove la_filename_extensions initializer.
1179 (cplus_language::filename_extensions): New member function.
1180 (asm_extensions): Delete, moved into
1181 asm_language::filename_extensions.
1182 (asm_language_data): Remove la_filename_extensions initializer.
1183 (asm_language::filename_extensions): New member function.
1184 (minimal_language_data): Remove la_filename_extensions
1185 initializer.
1186 * d-lang.c (d_extensions): Delete, moved into
1187 d_language::filename_extensions.
1188 (d_language_data): Remove la_filename_extensions initializer.
1189 (d_language::filename_extensions): New member function.
1190 * f-lang.c (f_extensions): Delete, moved into
1191 f_language::filename_extensions.
1192 (f_language_data): Remove la_filename_extensions initializer.
1193 (f_language::filename_extensions): New member function.
1194 * go-lang.c (go_language_data): Remove la_filename_extensions
1195 initializer.
1196 * language.c (add_set_language_command): Update now that
1197 filename_extensions returns a vector.
1198 (unknown_language_data): Remove la_filename_extensions
1199 initializer.
1200 (auto_language_data): Likewise.
1201 * language.h (language_data): Remove la_filename_extensions field.
1202 (language_defn::filename_extensions): New member function.
1203 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1204 initializer.
1205 * objc-lang.c (objc_extensions): Delete, moved into
1206 objc_language::filename_extensions.
1207 (objc_language_data): Remove la_filename_extensions initializer.
1208 (objc_language::filename_extensions): New member function.
1209 * opencl-lang.c (opencl_language_data): Remove
1210 la_filename_extensions initializer.
1211 * p-lang.c (pascal_extensions): Delete, moved into
1212 pascal_language::filename_extensions.
1213 (pascal_language_data): Remove la_filename_extensions initializer.
1214 (pascal_language::filename_extensions): New member function.
1215 * rust-lang.c (rust_extensions): Delete, moved into
1216 rust_language::filename_extensions.
1217 (rust_language_data): Remove la_filename_extensions initializer.
1218 (rust_language::filename_extensions): New member function.
1219 * symfile.c (add_filename_language): Add new assert.
1220
6f7664a9
AB
12212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1222
1223 * ada-lang.c (ada_language_data): Remove la_name and
1224 la_natural_name initializers.
1225 (ada_language::name): New member function.
1226 (ada_language::natural_name): New member function.
1227 * c-lang.c (c_language_data): Remove la_name and
1228 la_natural_name initializers.
1229 (c_language::name): New member function.
1230 (c_language::natural_name): New member function.
1231 (cplus_language_data): Remove la_name and
1232 la_natural_name initializers.
1233 (cplus_language::name): New member function.
1234 (cplus_language::natural_name): New member function.
1235 (asm_language_data): Remove la_name and
1236 la_natural_name initializers.
1237 (asm_language::name): New member function.
1238 (asm_language::natural_name): New member function.
1239 (minimal_language_data): Remove la_name and
1240 la_natural_name initializers.
1241 (minimal_language::name): New member function.
1242 (minimal_language::natural_name): New member function.
1243 * compile/compile.c (compile_to_object): Update call to
1244 lanugage_defn::name.
1245 * d-lang.c (d_language_data): Remove la_name and
1246 la_natural_name initializers.
1247 (d_language::name): New member function.
1248 (d_language::natural_name): New member function.
1249 * expprint.c (print_subexp_standard): Update call to
1250 language_defn::name.
1251 (dump_raw_expression): Likewise
1252 (dump_prefix_expression): Likewise.
1253 * f-lang.c (f_language_data): Remove la_name and
1254 la_natural_name initializers.
1255 (f_language::name): New member function.
1256 (f_language::natural_name): New member function.
1257 * go-lang.c (go_language_data): Remove la_name and
1258 la_natural_name initializers.
1259 (go_language::name): New member function.
1260 (go_language::natural_name): New member function.
1261 * language.c (show_language_command): Update call to
1262 language_defn::name.
1263 (set_language_command): Likewise.
1264 (language_enum): Likewise.
1265 (language_str): Likewise.
1266 (add_set_language_command): Likewise, use
1267 language_defn::natural_name in the doc string.
1268 (unknown_language_data): Remove la_name and
1269 la_natural_name initializers.
1270 (unknown_language::name): New member function.
1271 (unknown_language::natural_name): New member function.
1272 (auto_language_data): Remove la_name and
1273 la_natural_name initializers.
1274 (auto_language::name): New member function.
1275 (auto_language::natural_name): New member function.
1276 (language_lookup_primitive_type_as_symbol): Update call to
1277 language_defn::name.
1278 * language.h (language_data): Remove la_name and la_natural_name
1279 member variables.
1280 (language_defn::name): New member function.
1281 (language_defn::natural_name): New member function.
1282 * m2-lang.c (m2_language_data): Remove la_name and
1283 la_natural_name initializers.
1284 (m2_language::name): New member function.
1285 (m2_language::natural_name): New member function.
1286 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1287 language_defn::natural_name.
1288 * objc-lang.c (objc_language_data): Remove la_name and
1289 la_natural_name initializers.
1290 (objc_language::name): New member function.
1291 (objc_language::natural_name): New member function.
1292 * opencl-lang.c (opencl_language_data): Remove la_name and
1293 la_natural_name initializers.
1294 (opencl_language::name): New member function.
1295 (opencl_language::natural_name): New member function.
1296 * p-lang.c (pascal_language_data): Remove la_name and
1297 la_natural_name initializers.
1298 (pascal_language::name): New member function.
1299 (pascal_language::natural_name): New member function.
1300 * rust-lang.c (rust_language_data): Remove la_name and
1301 la_natural_name initializers.
1302 (rust_language::name): New member function.
1303 (rust_language::natural_name): New member function.
1304 * symtab.c (lookup_language_this): Update call to
1305 language_defn::name.
1306
5bae7c4e
AB
13072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1308
1309 * ada-lang.c (ada_language_data): Remove la_name_of_this
1310 initializer.
1311 * ax-gdb.c (gen_expr): Update call to name_of_this.
1312 * c-exp.y (classify_name): Likewise.
1313 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1314 (cplus_language_data): Likewise.
1315 (cplus_language::name_of_this): New member function.
1316 (asm_language_data): Remove la_name_of_this initializer.
1317 (minimal_language_data): Likewise.
1318 * d-lang.c (d_language_data): Likewise.
1319 (d_language::name_of_this): New member function.
1320 * expprint.c (print_subexp_standard): Update call to name_of_this.
1321 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1322 * go-lang.c (go_language_data): Likewise.
1323 * language.c (unknown_language_data): Likewise.
1324 (unknown_language::name_of_this): New member function.
1325 (auto_language_data): Remove la_name_of_this initializer.
1326 (auto_language::name_of_this): New member function.
1327 * language.h (language_data): Delete la_name_of_this member
1328 variable.
1329 (language_defn::name_of_this): New member function.
1330 * m2-lang.c (m2_language_data): Remove la_name_of_this
1331 initializer.
1332 * objc-lang.c (objc_language_data): Likewise.
1333 (objc_language::name_of_this): New member function.
1334 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1335 initializer.
1336 * p-lang.c (pascal_language_data): Likewise.
1337 (pascal_language::name_of_this): New member function.
1338 * rust-lang.c (rust_language_data): Remove la_name_of_this
1339 initializer.
1340 * symtab.c (lookup_language_this): Update call to name_of_this.
1341 (lookup_symbol_aux): Likewise.
1342 * valops.c (value_of_this): Likewise.
1343
22e3f3ed
AB
13442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1345
1346 * ada-lang.c (ada_language_data): Remove
1347 la_struct_too_deep_ellipsis initializer.
1348 (ada_language::struct_too_deep_ellipsis): New member function.
1349 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1350 initializer.
1351 (cplus_language_data): Likewise.
1352 (asm_language_data): Likewise.
1353 (minimal_language_data): Likewise.
1354 * cp-valprint.c (cp_print_value): Update call to
1355 struct_too_deep_ellipsis.
1356 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1357 initializer.
1358 * f-lang.c (f_language_data): Likewise.
1359 (f_language::struct_too_deep_ellipsis): New member function.
1360 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1361 initializer.
1362 * language.c (unknown_language_data): Likewise.
1363 (auto_language_data): Likewise.
1364 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1365 member variable.
1366 (language_defn::struct_too_deep_ellipsis): New member function.
1367 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1368 initializer.Q
1369 * objc-lang.c (objc_language_data): Likewise.
1370 * opencl-lang.c (opencl_language_data): Likewise.
1371 * p-lang.c (pascal_language_data): Likewise.
1372 * rust-lang.c (rust_language_data): Likewise.
1373 * valprint.c (val_print_check_max_depth): Update call to
1374 struct_too_deep_ellipsis.
1375
ed29e1c7
FW
13762020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1377
1378 * MAINTAINERS (Write After Approval): Add myself.
1379
12d8f940
TT
13802020-09-15 Tom Tromey <tom@tromey.com>
1381
1382 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1383 Remove.
1384
6b5a7bc7
TT
13852020-09-15 Tom Tromey <tom@tromey.com>
1386
1387 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1388 and TYPE_CODE_METHODPTR cases.
1389 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1390 (c_value_print_inner): Update.
1391 * valprint.c (generic_value_print_memberptr): New function, from
1392 c_value_print_memberptr.
1393 (generic_value_print): Use it. Call cplus_print_method_ptr.
1394
47f0e2ff
TT
13952020-09-15 Tom Tromey <tromey@adacore.com>
1396
1397 * python/python-internal.h (PyInt_FromLong): Remove define.
1398 * python/py-value.c (convert_value_from_python): Use
1399 gdb_py_object_from_longest.
1400 * python/py-type.c (typy_get_code): Use
1401 gdb_py_object_from_longest.
1402 * python/py-symtab.c (salpy_get_line): Use
1403 gdb_py_object_from_longest.
1404 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1405 gdb_py_object_from_longest.
1406 * python/py-record.c (recpy_gap_reason_code): Use
1407 gdb_py_object_from_longest.
1408 * python/py-record-btrace.c (recpy_bt_insn_size)
1409 (recpy_bt_func_level, btpy_list_count): Use
1410 gdb_py_object_from_longest.
1411 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1412 gdb_py_object_from_longest. Fix error handling.
1413 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1414 gdb_py_object_from_longest.
1415 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1416 gdb_py_object_from_longest.
1417 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1418 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1419 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1420
512116ce
TT
14212020-09-15 Tom Tromey <tromey@adacore.com>
1422
1423 * python/python.c (gdbpy_parameter_value): Use
1424 gdb_py_object_from_ulongest.
1425
4ab1029c
TT
14262020-09-15 Tom Tromey <tromey@adacore.com>
1427
1428 * python/py-infevents.c (create_register_changed_event_object):
1429 Use gdb_py_object_from_longest.
1430 * python/py-exitedevent.c (create_exited_event_object): Use
1431 gdb_py_object_from_longest.
1432
062534d4
TT
14332020-09-15 Tom Tromey <tromey@adacore.com>
1434
1435 * python/python.c (gdbpy_parameter_value): Use
1436 gdb_py_object_from_longest.
1437 * python/py-type.c (convert_field, typy_range): Use
1438 gdb_py_object_from_longest.
1439 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1440 gdb_py_object_from_longest.
1441 * python/py-lazy-string.c (stpy_get_length): Use
1442 gdb_py_object_from_longest.
1443 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1444 gdb_py_object_from_longest.
1445 * python/py-infevents.c (create_memory_changed_event_object): Use
1446 gdb_py_object_from_longest.
1447 * python/py-inferior.c (infpy_get_num): Use
1448 gdb_py_object_from_longest.
1449 (infpy_get_pid): Likewise.
1450
d1cab987
TT
14512020-09-15 Tom Tromey <tromey@adacore.com>
1452
1453 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1454 defines.
1455 * python/py-value.c (valpy_long): Use
1456 gdb_py_object_from_ulongest.
1457 * python/py-symtab.c (salpy_get_pc): Use
1458 gdb_py_object_from_ulongest.
1459 (salpy_get_last): Likewise.
1460 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1461 gdb_py_object_from_ulongest.
1462 * python/py-lazy-string.c (stpy_get_address): Use
1463 gdb_py_object_from_ulongest.
1464 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1465 * python/py-arch.c (archpy_disassemble): Use
1466 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1467 error handling.
1468
4bde49dc
TT
14692020-09-15 Tom Tromey <tromey@adacore.com>
1470
1471 * python/python-internal.h (gdb_py_long_from_longest): Remove
1472 defines.
1473 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1474 * python/py-type.c (convert_field, typy_get_sizeof): Use
1475 gdb_py_object_from_longest.
1476 * python/py-record-btrace.c (btpy_list_index): Use
1477 gdb_py_object_from_longest.
1478
37431074
TT
14792020-09-15 Tom Tromey <tromey@adacore.com>
1480
1481 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1482 * python/py-record.c (recpy_element_number): Use
1483 gdb_py_object_from_longest.
1484 (recpy_gap_number): Likewise.
1485
cbe25684
TT
14862020-09-15 Tom Tromey <tromey@adacore.com>
1487
1488 * top.c (ui::ui): Update.
1489 (highest_ui_num): Remove.
1490 * top.h (struct ui) <num>: Remove.
1491
db92ac45
TT
14922020-09-15 Tom Tromey <tromey@adacore.com>
1493
1494 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1495 * ui-style.c (ansi_regex_text): Now array.
1496 * rust-exp.y (number_regex_text): Now array.
1497 * linespec.c (linespec_quote_characters): Now array.
1498 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1499 Now arrays.
1500
d2b31b67
SM
15012020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1502
1503 * debuginfod-support.c (debuginfod_client_deleter): New.
1504 (debuginfod_client_up): New.
1505 (debuginfod_init): Return debuginfod_client_up.
1506 (debuginfod_source_query): Adjust.
1507 (debuginfod_debuginfo_query): Adjust.
1508
3246bd8e
SM
15092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1510
1511 * debuginfod-support.c (debuginfod_source_query): Use
1512 make_unique_xstrdup.
1513
10242f36
SM
15142020-09-14 Simon Marchi <simon.marchi@efficios.com>
1515
1516 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1517 with `type::instance_flags`.
1518
e1044e6a
MM
15192020-09-14 Michael Mullin <masmullin@gmail.com>
1520
1521 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1522 Remove baton parameter.
1523
04902b09
PA
15242020-09-14 Pedro Alves <pedro@palves.net>
1525
1526 * Makefile.in (SELFTESTS_SRCS): Add
1527 unittests/enum-flags-selftests.c.
1528 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1529 btrace_function_flags instead of enum btrace_function_flag.
1530 * compile/compile-c-types.c (convert_qualified): Use
1531 enum_flags::raw.
1532 * compile/compile-cplus-symbols.c (convert_one_symbol)
1533 (convert_symbol_bmsym):
1534 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1535 (compile_cplus_convert_struct_or_union_methods)
1536 (compile_cplus_instance::convert_qualified_base):
1537 * go-exp.y (parse_string_or_char): Add cast to int.
1538 * unittests/enum-flags-selftests.c: New file.
1539 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1540 type to btrace_thread_flags from btrace_thread_flag.
1541 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1542 local's type to btrace_thread_flags from btrace_thread_flag. Add
1543 cast in DEBUG call.
1544
69896a2c
PA
15452020-09-14 Pedro Alves <pedro@palves.net>
1546
1547 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1548 * gdbtypes.c (address_space_name_to_int): Rename to ...
1549 (address_space_name_to_type_instance_flags): ... this.
1550 (address_space_int_to_name): Rename to ...
1551 (address_space_type_instance_flags_to_name): ... this.
1552 * gdbtypes.h (address_space_name_to_int): Rename to ...
1553 (address_space_name_to_type_instance_flags): ... this.
1554 (address_space_int_to_name): Rename to ...
1555 (address_space_type_instance_flags_to_name): ... this.
1556 * type-stack.c (type_stack::insert): Adjust to rename.
1557 * type-stack.h (type_stack::insert): Likewise.
1558
314ad88d
PA
15592020-09-14 Pedro Alves <pedro@palves.net>
1560 Andrew Burgess <andrew.burgess@embecosm.com>
1561
1562 * avr-tdep.c (avr_address_class_type_flags): Return
1563 type_instance_flags.
1564 (avr_address_class_type_flags_to_name): Take a
1565 type_instance_flags.
1566 (avr_address_class_name_to_type_flags): Return bool and take a
1567 type_instance_flags.
1568 * d-lang.c (build_d_types): Use type::set_instance_flags.
1569 * ft32-tdep.c (ft32_address_class_type_flags): Return
1570 type_instance_flags.
1571 (ft32_address_class_type_flags_to_name): Take a
1572 type_instance_flags.
1573 (ft32_address_class_name_to_type_flags): Return bool and take a
1574 type_instance_flags.
1575 (ft32_gdbarch_init): Use type::set_instance_flags.
1576 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1577 * gdbarch.h, gdbarch.c: Regenerate.
1578 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1579 (address_class_name_to_type_flags): Use type_instance_flags and
1580 bool.
1581 * gdbtypes.c (address_space_name_to_int)
1582 (address_space_int_to_name, make_qualified_type): Use
1583 type_instance_flags.
1584 (make_qualified_type): Use type_instance_flags and
1585 type::set_instance_flags.
1586 (make_type_with_address_space, make_cv_type, make_vector_type)
1587 (check_typedef): Use type_instance_flags.
1588 (recursive_dump_type): Cast type_instance_flags to unsigned for
1589 printing.
1590 (copy_type_recursive): Use type::set_instance_flags.
1591 (gdbtypes_post_init): Use type::set_instance_flags.
1592 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1593 <m_instance_flags>: ... this.
1594 <instance_flags, set_instance_flags>: New methods.
1595 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1596 (SET_TYPE_INSTANCE_FLAGS): New.
1597 (address_space_name_to_int, address_space_int_to_name)
1598 (make_type_with_address_space): Pass flags using
1599 type_instance_flags instead of int.
1600 * stabsread.c (cleanup_undefined_types_noname): Use
1601 type::set_instance_flags.
1602 * s390-tdep.c (s390_address_class_type_flags): Return
1603 type_instance_flags.
1604 (s390_address_class_type_flags_to_name): Take a
1605 type_instance_flags.
1606 (s390_address_class_name_to_type_flags): Return bool and take a
1607 type_instance_flags.
1608 * type-stack.c (type_stack::follow_types): Use
1609 type_instance_flags.
1610 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1611
27087b7f
TT
16122020-09-14 Tom Tromey <tromey@adacore.com>
1613
1614 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1615 * x86-tdep.c (x86_is_thunk_register_name)
1616 (x86_in_indirect_branch_thunk): Update.
1617 * sparc64-tdep.c (sparc64_fpu_register_names)
1618 (sparc64_cp0_register_names, sparc64_register_names)
1619 (sparc64_pseudo_register_names): Now const.
1620 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1621 cp0_registers_num>: Now const.
1622 * sparc-tdep.c (sparc_core_register_names)
1623 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1624 (sparc32_pseudo_register_names): Now const.
1625 (validate_tdesc_registers): Update.
1626 * rust-lang.c (rust_extensions): Now const.
1627 * p-lang.c (p_extensions): Now const.
1628 * objc-lang.c (objc_extensions): Now const.
1629 * nto-tdep.c (nto_thread_state_str): Now const.
1630 * moxie-tdep.c (moxie_register_names): Now const.
1631 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1632 Now const.
1633 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1634 (mips_linux_reg_names): Now const.
1635 (mips_gdbarch_init): Update.
1636 * microblaze-tdep.c (microblaze_register_names): Now const.
1637 * m68k-tdep.c (m68k_register_names): Now const.
1638 * m32r-tdep.c (m32r_register_names): Now const.
1639 * ia64-tdep.c (ia64_register_names): Now const.
1640 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1641 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1642 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1643 ymm_avx512_register_names, pkeys_register_names>: Now const.
1644 * i386-tdep.c (i386_register_names, i386_zmm_names)
1645 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1646 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1647 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1648 * f-lang.c (f_extensions): Now const.
1649 * d-lang.c (d_extensions): Now const.
1650 * csky-tdep.c (csky_register_names): Now const.
1651 * charset.c (default_charset_names, charset_enum): Now const.
1652 (_initialize_charset): Update.
1653 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1654 const.
1655 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1656 (bsd_uthread_solib_loaded): Update.
1657 (bsd_uthread_state): Now const.
1658 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1659 (amd64_ymm_avx512_names, amd64_ymmh_names)
1660 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1661 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1662 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1663 (amd64_dword_names): Now const.
1664 * agent.c (can_use_agent_enum): Now const.
1665 * ada-tasks.c (task_states, long_task_states): Now const.
1666 * ada-lang.c (known_runtime_file_name_patterns)
1667 (known_auxiliary_function_name_patterns, attribute_names)
1668 (standard_exc, ada_extensions): Now const.
1669
89806626
SM
16702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1671
1672 * bcache.h (struct bcache) <bcache>: Remove constructor.
1673 <m_hash_function, m_compare_function>: Remove.
1674 <~bcache>: Make virtual.
1675 <compare>: Remove static method, introduce virtual method.
1676 <default_hash>: Remove.
1677 <hash>: New virtual method.
1678 * bcache.c (bcache::expand_hash_table): Update.
1679 (bcache::insert): Update.
1680 (bcache::hash): New.
1681 (bcache::compare): Update comment and parameter names.
1682 * gdbtypes.c (types_deeply_equal): Update.
1683 * psymtab.h (struct psymbol_bcache): New struct.
1684 (class psymtab_storage) <psymtab_storage>: Make default.
1685 <psymbol_cache>: Change type to psymbol_bcache.
1686 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1687 (psymbol_hash): Change to...
1688 (psymbol_bcache::hash): ... this.
1689 (psymbol_compare): Change to...
1690 (psymbol_bcache::compare): ... this.
1691
677c92fe
SM
16922020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1693
1694 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1695 checking for initial lwp.
1696
3eba3a01
TT
16972020-09-14 Tom Tromey <tromey@adacore.com>
1698
1699 * m68k-tdep.c (m68k_extract_return_value): Use
1700 pointer_result_regnum.
1701 (m68k_store_return_value): Likewise.
1702 (m68k_reg_struct_return_p): Handle vectors and arrays.
1703 (m68k_return_value): Handle arrays.
1704 (m68k_svr4_return_value): Fix single-element aggregate handling.
1705 Handle long double. Adjust for embedded ABI.
1706 (m68k_svr4_init_abi): Set pointer_result_regnum.
1707 (m68k_embedded_init_abi): New function.
1708 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1709 (m68k_osabi_sniffer): New function.
1710 (_initialize_m68k_tdep): Register osabi sniffer.
1711 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1712 member.
1713
33f4dd48
SM
17142020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1715
1716 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1717 with gdb::unique_xmalloc_ptr<char>.
1718
8400a90d
SM
17192020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1720
1721 * xml-support.h (xml_fetch_another): Change type to be a
1722 function_view.
1723 (xml_process_xincludes): Remove baton parameter.
1724 (xml_fetch_content_from_file): Change baton parameter to
1725 dirname.
1726 * xml-support.c (struct xinclude_parsing_data)
1727 <xinclude_parsing_data>: Remove baton parameter.
1728 <fetcher_baton>: Remove.
1729 (xinclude_start_include): Adjust.
1730 (xml_process_xincludes): Adjust.
1731 (xml_fetch_content_from_file): Replace baton parameter with
1732 dirname.
1733 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1734 (xml_init_syscalls_info): Use a lambda.
1735 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1736 (file_read_description_xml): Use a lambda.
1737 (fetch_available_features_from_target): Change baton parameter
1738 to target_ops.
1739 (target_read_description_xml): Use a lambda.
1740 (target_fetch_description_xml): Use a lambda.
1741 (string_read_description_xml): Update.
1742
04f5bab2
SM
17432020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1744
1745 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1746 uses with type::endianity_is_not_default.
1747
db558e34
SM
17482020-09-14 Simon Marchi <simon.marchi@efficios.com>
1749
1750 * gdbtypes.h (struct type) <endianity_is_not_default,
1751 set_endianity_is_not_default>: New methods.
1752 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1753 type::endianity_is_not_default, change all write call sites to
1754 use type::set_endianity_is_not_default.
1755
22c4c60c
SM
17562020-09-14 Simon Marchi <simon.marchi@efficios.com>
1757
1758 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1759 uses with type::is_fixed_instance.
1760
9cdd0d12
SM
17612020-09-14 Simon Marchi <simon.marchi@efficios.com>
1762
1763 * gdbtypes.h (struct type) <is_fixed_instance,
1764 set_is_fixed_instance>: New methods.
1765 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1766 write call sites to use type::set_is_fixed_instance.
1767
0becda7a
SM
17682020-09-14 Simon Marchi <simon.marchi@efficios.com>
1769
1770 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1771 uses with type::is_gnu_ifunc.
1772
03cc7249
SM
17732020-09-14 Simon Marchi <simon.marchi@efficios.com>
1774
1775 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1776 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1777 use type::set_is_gnu_ifunc.
1778
3f46044c
SM
17792020-09-14 Simon Marchi <simon.marchi@efficios.com>
1780
1781 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1782 uses with type::stub_is_supported.
1783
9baccff6
SM
17842020-09-14 Simon Marchi <simon.marchi@efficios.com>
1785
1786 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1787 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1788 use type::set_stub_is_supported.
1789
bd63c870
SM
17902020-09-14 Simon Marchi <simon.marchi@efficios.com>
1791
1792 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1793 uses with type::is_vector.
1794
2062087b
SM
17952020-09-14 Simon Marchi <simon.marchi@efficios.com>
1796
1797 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1798 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1799 use type::set_is_vector.
1800
a409645d
SM
18012020-09-14 Simon Marchi <simon.marchi@efficios.com>
1802
1803 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1804 uses with type::has_varargs.
1805
1d6286ed
SM
18062020-09-14 Simon Marchi <simon.marchi@efficios.com>
1807
1808 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1809 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1810 use type::set_has_varargs.
1811
7f9f399b
SM
18122020-09-14 Simon Marchi <simon.marchi@efficios.com>
1813
1814 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1815 uses with type::is_prototyped.
1816
27e69b7a
SM
18172020-09-14 Simon Marchi <simon.marchi@efficios.com>
1818
1819 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1820 New methods.
1821 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1822 call sites to use type::set_is_prototyped.
1823
d2183968
SM
18242020-09-14 Simon Marchi <simon.marchi@efficios.com>
1825
1826 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1827 uses with type::target_is_stub.
1828
8f53807e
SM
18292020-09-14 Simon Marchi <simon.marchi@efficios.com>
1830
1831 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1832 New methods.
1833 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1834 sites to use type::set_target_is_stub.
1835
e46d3488
SM
18362020-09-14 Simon Marchi <simon.marchi@efficios.com>
1837
1838 * gdbtypes.h (TYPE_STUB): Remove, replace all
1839 uses with type::is_stub.
1840
b4b73759
SM
18412020-09-14 Simon Marchi <simon.marchi@efficios.com>
1842
1843 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1844 (TYPE_STUB): Use type::is_stub, change all write call sites to
1845 use type::set_is_stub.
1846
20ce4123
SM
18472020-09-14 Simon Marchi <simon.marchi@efficios.com>
1848
1849 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1850 type::has_no_signedness.
1851
15152a54
SM
18522020-09-14 Simon Marchi <simon.marchi@efficios.com>
1853
1854 * gdbtypes.h (struct type) <has_no_signedness,
1855 set_has_no_signedness>: New methods.
1856 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1857 call sites to use type::set_has_no_signedness.
1858
c6d940a9
SM
18592020-09-14 Simon Marchi <simon.marchi@efficios.com>
1860
1861 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1862 type::is_unsigned.
1863
653223d3
SM
18642020-09-14 Simon Marchi <simon.marchi@efficios.com>
1865
1866 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1867 methods.
1868 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1869 sites to use type::set_is_unsigned.
1870
55ea94da 18712020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 1872 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 1873
e851246a
SM
1874 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1875 pointer and stack frame offset when unwinding.
55ea94da 1876
6791b117
PA
18772020-09-13 Pedro Alves <pedro@palves.net>
1878
1879 * NEWS: Document "-break-insert --qualified".
1880 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1881
77f2120b
PA
18822020-09-13 Pedro Alves <pedro@palves.net>
1883
1884 * linespec.c (classify_mtype, compare_msyms): Delete.
1885 (search_minsyms_for_name): Remove classification logic. Instead
1886 filter out trampoline symbols if we also found an external
1887 function of the same name.
1888
ed6a896c
JB
18892020-09-13 Joel Brobecker <brobecker@adacore.com>
1890
1891 * NEWS: Create a new section for the next release branch.
1892 Rename the section of the current branch, now that it has
1893 been cut.
1894
32aea73e
JB
18952020-09-13 Joel Brobecker <brobecker@adacore.com>
1896
1897 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1898 * version.in: Bump version to 11.0.50.DATE-git.
1899
8087c3fa
JB
19002020-09-12 Joel Brobecker <brobecker@adacore.com>
1901
1902 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1903
2a67f09d
FW
19042020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1905 Felix Willgerodt <Felix.Willgerodt@intel.com>
1906
1907 * gdbarch.sh: Added bfloat16 type.
1908 * gdbarch.c: Regenerated.
1909 * gdbarch.h: Regenerated.
1910 * gdbtypes.c (floatformats_bfloat16): New struct.
1911 (gdbtypes_post_init): Add builtin_bfloat16.
1912 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1913 (floatformats_bfloat16): New struct.
1914 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1915 (i386_ymm_type): Add field "v16_bfloat16"
1916 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1917 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1918 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1919 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1920 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1921 * features/i386/64bit-avx512.c: Regenerated.
1922 * features/i386/64bit-sse.xml: Add bfloat16 type.
1923 * features/i386/64bit-sse.c: Regenerated.
1924
1347d111
FW
19252020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1926
1927 * i386-tdep.c (i386_zmm_type): Fix field names.
1928 (i386_ymm_type): Fix field names.
1929
7a4e8e7d
TBA
19302020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1931
1932 * breakpoint.c: Fix typo in the help message of the
1933 "set breakpoint condition-evaluation" command.
1934
cf4ac4be
KR
19352020-09-10 Kamil Rytarowski <n54@gmx.com>
1936
1937 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1938 * (nbsd_nat_target::pid_to_exec_file)
1939 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1940 (nbsd_nat_target::post_startup_inferior)
1941 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1942 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1943 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1944 * (nbsd_thread_lister): Remove.
1945
f404573e
KR
19462020-09-10 Kamil Rytarowski <n54@gmx.com>
1947
1948 * fork-inferior.c (startup_inferior): Avoid double free.
1949
1ccb2c17
KR
19502020-09-10 Kamil Rytarowski <n54@gmx.com>
1951
1952 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1953 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1954
feedfcc7
KR
19552020-09-10 Kamil Rytarowski <n54@gmx.com>
1956
1957 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1958 * netbsd-nat.c: Include <sys/ptrace.h>.
1959 * (netbsd_nat::enable_proc_events): Add.
1960
c489f8c6
KR
19612020-09-10 Kamil Rytarowski <n54@gmx.com>
1962
1963 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1964 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1965 (netbsd_nat::for_each_thread): Add.
1966 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1967 "gdbsupport/common-debug.h".
1968 * (netbsd_nat::netbsd_thread_lister)
1969 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1970 (netbsd_nat::for_each_thread): Add.
1971
330662f6
KR
19722020-09-10 Kamil Rytarowski <n54@gmx.com>
1973
1974 * netbsd-nat.h: Include <unistd.h>.
1975 * (netbsd_nat::pid_to_exec_file): Add.
1976 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1977 * (netbsd_nat::pid_to_exec_file) Add.
1978
70b67307
KR
19792020-09-10 Kamil Rytarowski <n54@gmx.com>
1980
1981 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1982
99cf6da6
KR
19832020-09-10 Kamil Rytarowski <n54@gmx.com>
1984
1985 * netbsd-nat.h: New file.
1986 * netbsd-nat.c: Likewise.
1987
1b788fb6
TT
19882020-09-09 Tom Tromey <tromey@adacore.com>
1989
1990 * ada-lang.c (remove_extra_symbols): Do not increment when
1991 removing an element
1992
03b0a45f
TT
19932020-09-08 Tom Tromey <tromey@adacore.com>
1994
1995 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1996
3cae4447
TT
19972020-09-08 Tom Tromey <tromey@adacore.com>
1998
1999 PR win32/25302:
2000 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2001 (gdb_bfd_init_data): New function.
2002 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2003
7f08fd51
TBA
20042020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2005
2006 * infrun.c (fetch_inferior_event): Use
2007 `switch_to_target_no_thread` to switch the target.
2008
3e6ff933
TT
20092020-09-06 Tom Tromey <tom@tromey.com>
2010
2011 * symfile.h (dwarf2_free_objfile): Don't declare.
2012
e56798df
AKS
20132020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2014
2015 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2016 to match 16 byte real/complex type generated by Flang compiler.
2017
8f5c6526
TV
20182020-09-03 Tom de Vries <tdevries@suse.de>
2019
2020 PR breakpoint/26546
2021 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2022 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2023
c5065df0
SM
20242020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2025
2026 * maint.c (index_digits): New function.
2027 (struct maint_print_section_data): Remove.
2028 (print_bfd_section_info): Remove print_data parameter, add arg
2029 and index_digits.
2030 (print_objfile_section_info): Likewise.
2031 (print_bfd_section_info_maybe_relocated): Likewise (plus
2032 objfile).
2033 (maintenance_info_sections): Adjust calls.
2034
02c6f3f1
TT
20352020-09-02 Tom Tromey <tromey@adacore.com>
2036
2037 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2038 for null pointers.
2039 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2040
ef5e5b0b
SM
20412020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2042
2043 * bcache.h (struct bcache) <insert>: Change type of `added` to
2044 pointer to bool.
2045 * bcache.c (bcache::insert): Likewise.
2046 * gdbtypes.c (check_types_worklist): Adjust.
2047 * psymtab.c (add_psymbol_to_bcache): Adjust.
2048
973695d6
KB
20492020-08-31 Kevin Buettner <kevinb@redhat.com>
2050
2051 * corelow.c (unordered_set): Include.
2052 (class core_target): Add field 'm_core_unavailable_mappings'.
2053 (core_target::build_file_mappings): Print only one warning
2054 per inaccessible file. Add unavailable/broken mappings
2055 to m_core_unavailable_mappings.
2056 (core_target::xfer_partial): Call...
2057 (core_target::xfer_memory_via_mappings): New method.
2058
264fc0e2
SM
20592020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2060
2061 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2062 type to bool.
2063
2de01bdb
SM
20642020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2065
2066 * dwarf2/read.c (struct field_info): Fix indentation.
2067
f3bd50f1
SM
20682020-08-31 Simon Marchi <simon.marchi@efficios.com>
2069
2070 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2071 ordering in comment.
2072 * frame.c (frame_id_eq): Fix indentation.
2073
22b9b4b0
SL
20742020-08-31 Scott Linder <scott@scottlinder.com>
2075 Simon Marchi <simon.marchi@efficios.com>
2076
2077 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2078 inline frame ids in outer frame.
2079
84154d16
SM
20802020-08-31 Simon Marchi <simon.marchi@efficios.com>
2081
2082 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2083 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2084 (outer_frame_id): Use FID_STACK_OUTER instead of
2085 FID_STACK_INVALID.
2086 (frame_id_p): Don't check for outer_frame_id.
2087
8efaf6b3
SM
20882020-08-31 Simon Marchi <simon.marchi@efficios.com>
2089
2090 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2091 regnum/frame in value. Call allocate_value_lazy.
2092 * frame.c (frame_unwind_register_value): Use
2093 val_print_not_saved.
2094
fe1fe7ea
SM
20952020-08-31 Simon Marchi <simon.marchi@efficios.com>
2096
2097 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2098
f7c7700d
PA
20992020-08-29 Pedro Alves <pedro@palves.net>
2100
2101 * progspace.c (print_program_space): Use all_inferiors. Switch to
2102 the inferior before calling target_pid_to_str.
2103
e0814aae
TT
21042020-08-28 Tom Tromey <tom@tromey.com>
2105
2106 * xcoffread.c (xcoff_end_psymtab): Update comment.
2107 * dbxread.c (dbx_end_psymtab): Update comment.
2108
626d2320
TV
21092020-08-28 Tom de Vries <tdevries@suse.de>
2110
2111 PR breakpoint/26544
2112 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2113 event_location.
2114 (create_breakpoint): Same.
2115 (base_breakpoint_decode_location): Same.
2116 (bkpt_create_sals_from_location): Same.
2117 (bkpt_decode_location): Same.
2118 (bkpt_probe_create_sals_from_location): Same.
2119 (bkpt_probe_decode_location): Same.
2120 (tracepoint_create_sals_from_location): Same.
2121 (tracepoint_decode_location): Same.
2122 (tracepoint_probe_decode_location): Same.
2123 (strace_marker_create_sals_from_location): Same.
2124 (strace_marker_decode_location): Same.
2125 (create_sals_from_location_default): Same.
2126 (decode_location_default): Same.
2127 * breakpoint.h (struct breakpoint_ops): Same.
2128 (create_breakpoint): Same.
2129 * linespec.h (decode_line_full): Same.
2130 * linespec.c (decode_line_full): Same. Throw error if
2131 result.size () == 0.
2132
df631783
PA
21332020-08-27 Pedro Alves <pedro@palves.net>
2134
2135 PR gdb/26524
2136 * breakpoint.c (until_break_fsm) <location_breakpoint,
2137 caller_breakpoint>: Delete fields.
2138 <breakpoints>: New field.
2139 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2140 two individual breakpoints.
2141 (until_break_fsm::should_stop): Loop over breakpoints in the
2142 breakpoint vector.
2143 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2144 vector.
2145 (until_break_command): Handle location expanding into multiple
2146 sals.
2147
b2b38aa4
PA
21482020-08-27 Pedro Alves <pedro@palves.net>
2149
2150 PR gdb/26523
2151 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2152 bp_until breakpoints user-specified locations. Update intro
2153 comment.
2154
b886559f
SM
21552020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2156
2157 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2158 gdb_bfd_sections): New.
2159 * maint.c (print_bfd_section_info): Change param type to
2160 maint_print_section_data.
2161 (print_objfile_section_info): Likewise.
2162 (print_bfd_section_info_maybe_relocated): Likewise.
2163 (maintenance_info_sections): Use gdb_bfd_sections.
2164
4c6e63bf
SV
21652020-08-25 Shahab Vahedi <shahab@synopsys.com>
2166
2167 * MAINTAINERS: Add ARC target and maintainer.
2168
8d7f0635
AK
21692020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2170
2171 * configure.tgt: ARC support for GNU/Linux.
2172 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2173 * arc-linux-tdep.c: New file.
2174 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2175 * arc-tdep.c (arc_write_pc): Use it.
2176
fdd8731b
SV
21772020-08-25 Shahab Vahedi <shahab@synopsys.com>
2178
2179 * arc-tdep.c (arc_check_for_hardware_loop): New.
2180 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2181
22459524
SV
21822020-08-25 Shahab Vahedi <shahab@synopsys.com>
2183
2184 * arc-tdep.h: Include "gdbarch.h".
2185
995d3a19
SV
21862020-08-25 Shahab Vahedi <shahab@synopsys.com>
2187
2188 * arch/arc.h
2189 (arc_gdbarch_features): New class to stir the selection of target XML.
2190 (arc_create_target_description): Use FEATURES to choose XML target.
2191 (arc_lookup_target_description): Use arc_create_target_description
2192 to create _new_ target descriptions or return the already created
2193 ones if the FEATURES is the same.
2194 * arch/arc.c: Implementation of prototypes described above.
2195 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2196 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2197 * arc-tdep.c (*_feature_name): Make feature names consistent.
2198 (arc_register_feature): A new struct to hold information about
2199 registers of a particular target/feature.
2200 (arc_check_tdesc_feature): Check if XML provides registers in
2201 compliance with ARC_REGISTER_FEATURE structs.
2202 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2203 (determine_*_reg_feature_set): Which feature name to look for.
2204 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2205 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2206 to expected ISA enums to be used in arc_gdbarch_features structs.
2207 * features/Makefile (FEATURE_XMLFILES): Add new files.
2208 * gdb/features/arc/v1-aux.c: New file.
2209 * gdb/features/arc/v1-aux.xml: Likewise.
2210 * gdb/features/arc/v1-core.c: Likewise.
2211 * gdb/features/arc/v1-core.xml: Likewise.
2212 * gdb/features/arc/v2-aux.c: Likewise.
2213 * gdb/features/arc/v2-aux.xml: Likewise.
2214 * gdb/features/arc/v2-core.c: Likewise.
2215 * gdb/features/arc/v2-core.xml: Likewise.
2216 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2217
3945d2d7
GM
22182020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2219 Andrew Burgess <andrew.burgess@embecosm.com>
2220
2221 PR m2/26372
fc5d6901 2222 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2223 an assert. Remove single element array indexing pattern as the
2224 MULTI_SUBSCRIPT support will handle this case too.
2225
2677f2d3
SM
22262020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2227
2228 * value.h (valprint_check_validity): Move declaration from
2229 here...
2230 * valprint.h (valprint_check_validity): ... to here.
2231
c426fddb
SM
22322020-08-24 Simon Marchi <simon.marchi@efficios.com>
2233
2234 * debug.h: New file.
2235 * debug.c (debug_prefixed_vprintf): New function.
2236 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2237 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2238
1eb8556f
SM
22392020-08-24 Simon Marchi <simon.marchi@efficios.com>
2240
2241 * infrun.h (infrun_debug_printf_1): New function declaration.
2242 (infrun_debug_printf): New macro.
2243 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2244 throughout.
2245 (infrun_debug_printf): New function.
2246 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2247 (handle_jit_event): Likewise.
2248
b8fff44e
MW
22492020-08-21 Mark Wielaard <mark@klomp.org>
2250
2251 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2252
d19c3068
SM
22532020-08-22 Simon Marchi <simon.marchi@efficios.com>
2254
2255 * frame.c (enum class frame_id_status): New.
2256 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2257 (fprintf_frame): Update.
2258 (compute_frame_id): Set frame id status to "computing" on entry.
2259 Set it back to "not_computed" on failure and to "computed" on
2260 success.
2261 (get_frame_id): Assert the frame id is not being computed.
2262 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2263 (create_new_frame): Likewise.
2264 (frame_cleanup_after_sniffer): Update assert.
2265
b70e516e
SM
22662020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2267
2268 * regcache.c (pid_ptid_regcache_map): New type.
2269 (target_ptid_regcache_map): Remove.
2270 (target_pid_ptid_regcache_map): New type.
2271 (regcaches): Change type to target_pid_ptid_regcache_map.
2272 (get_thread_arch_aspace_regcache): Update.
2273 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2274 case.
2275 (regcaches_size): Update.
2276 (regcache_count): Update.
2277 (registers_changed_ptid_target_pid_test): New.
2278 (_initialize_regcache): Register new test.
2279
cdd9148a
SM
22802020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2281
2282 * regcache.c (regcache_count): New.
2283 (struct regcache_test_data): New.
2284 (regcache_test_data_up): New.
2285 (populate_regcaches_for_test): New.
2286 (regcaches_test): Remove.
2287 (get_thread_arch_aspace_regcache_test): New.
2288 (registers_changed_ptid_all_test): New.
2289 (registers_changed_ptid_target_test): New.
2290 (registers_changed_ptid_target_ptid_test): New.
2291 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2292 (_initialize_regcache): Register new tests.
2293
dd125343
SM
22942020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2295
2296 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2297 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2298 gdbarch and aspace parameter. Use current inferior's aspace.
2299 Validate regcache's arch value.
2300 (regcaches_test): Update.
2301
3ee93972
SM
23022020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2303
2304 * regcache.c (regcaches_test): Call registers_changed.
2305
33bf4c5c
TBA
23062020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2307
2308 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2309
c2fd7fae
AKS
23102020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2311
2312 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2313 to find the end of prologue for flang compiled binaries.
2314 * arm-tdep.c (arm_skip_prologue): Likewise.
2315 * i386-tdep.c (i386_skip_prologue): Likewise.
2316 * producer.c (producer_is_llvm): New function.
2317 (producer_parsing_tests): Added new tests for clang/flang.
2318 * producer.h (producer_is_llvm): New declaration.
2319
9327494e
SM
23202020-08-18 Simon Marchi <simon.marchi@efficios.com>
2321
2322 * linux-nat.c (linux_nat_debug_printf): New function.
2323 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2324
d138725a
AM
23252020-08-18 Aaron Merey <amerey@redhat.com>
2326
2327 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2328 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2329 (CLIBS): Add DEBUGINFOD_LIBS.
2330
f9b11e6b
ST
23312020-08-17 Sergei Trofimovich <siarheit@google.com>
2332
2333 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2334 'gdbarch_num_regs'.
2335
3ae7ab99
TT
23362020-08-17 Tom Tromey <tromey@adacore.com>
2337
2338 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2339 ada_get_decoded_value returns NULL.
2340
b017825f
TT
23412020-08-17 Tom Tromey <tromey@adacore.com>
2342
2343 * python/py-inferior.c (infpy_search_memory): Use
2344 gdb_py_object_from_ulongest.
2345 * python/py-infevents.c (create_inferior_call_event_object)
2346 (create_memory_changed_event_object): Use
2347 gdb_py_object_from_ulongest.
2348 * python/py-linetable.c (ltpy_entry_get_pc): Use
2349 gdb_py_object_from_ulongest.
2350
7635cf79
SM
23512020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2352
2353 * loc.c (class symbol_needs_eval_context): Fix indentation.
2354
f54be24b
SM
23552020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2356
2357 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2358 bool.
2359
53d5a2a5
TV
23602020-08-17 Tom de Vries <tdevries@suse.de>
2361
2362 PR gdb/26393
2363 * gdbtypes.c (dump_dynamic_prop): New function.
2364 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2365
547ce8f0
TV
23662020-08-15 Tom de Vries <tdevries@suse.de>
2367
2368 PR backtrace/26390
2369 * stack.c (print_frame_args): Temporarily set the selected
2370 frame to FRAME while printing the frame's arguments.
2371
6ea815e7
PFC
23722020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2373
2374 PR breakpoints/26385
2375 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2376 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2377
6e562fa3
PFC
23782020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2379
2380 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2381 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2382 and >= to check return value instead of == -1 and != -1.
2383
d369b608
SM
23842020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2385
2386 * utils.h (class gdb_argv) <as_array_view>: New method.
2387 * utils.c (gdb_argv_as_array_view_test): New.
2388 (_initialize_utils): Register selftest.
2389 * maint.c (maintenance_selftest): Use the new method.
2390
b31488a3
KR
23912020-08-13 Kamil Rytarowski <n54@gmx.com>
2392
2393 * target.h (supports_dumpcore, dumpcore): New
2394 function declarations.
2395 * target.c (supports_dumpcore, dumpcore): New
2396 functions.
2397 * target-delegates.c: Rebuild.
2398 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2399 and target_dumpcore ().
2400
002a3166
AM
24012020-08-13 Aaron Merey <amerey@redhat.com>
2402
2403 * debuginfod-support.c: Replace global variables with user_data.
2404
ece5bc8a
SM
24052020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2406
2407 * maint.c (maintenance_selftest): Split args and pass array_view
2408 to run_tests.
2409
6d8a0a5e
LM
24102020-08-12 Luis Machado <luis.machado@linaro.org>
2411
2412 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2413 type's length.
2414 Use %s and pulongest to print the length.
2415
7cf663a9
PA
24162020-08-12 Pedro Alves <palves@redhat.com>
2417
2418 * NEWS: Move "Multi-target debugging support" item to the
2419 "Changes since GDB 9" section.
2420
27c7b875
PA
24212020-08-12 Pedro Alves <palves@redhat.com>
2422
2423 PR gdb/26336
2424 * progspace.c (program_space::remove_objfile): Invalidate the
2425 frame cache.
2426
1796a2a1
TV
24272020-08-11 Tom de Vries <tdevries@suse.de>
2428
2429 * MAINTAINERS: Mark ms1 as deleted.
2430
f8e3fe0d
LM
24312020-08-10 Luis Machado <luis.machado@linaro.org>
2432
2433 PR gdb/26310
2434
2435 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2436 act accordingly.
2437 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2438 movz/str/stur/stp skipping behavior.
2439
cc308722
LM
24402020-08-10 Luis Machado <luis.machado@linaro.org>
2441
2442 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2443 struct user_sve_header instead of struct sve_context.
2444
041d9819
SM
24452020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2446
2447 * read.h (dwarf2_fetch_die_loc_sect_off,
2448 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2449 `void *` parameter with function_view.
2450 * read.c (dwarf2_fetch_die_loc_sect_off,
2451 dwarf2_fetch_die_loc_cu_off): Likewise.
2452 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2453 (per_cu_dwarf_call): Adjust.
2454 (get_frame_address_in_block_wrapper): Remove.
2455 (indirect_synthetic_pointer): Adjust.
2456 (get_ax_pc): Remove.
2457 (dwarf2_compile_expr_to_ax): Adjust.
2458
38f8aa06
TV
24592020-08-08 Tom de Vries <tdevries@suse.de>
2460
2461 PR build/26344
2462 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2463 constructor.
2464 * regcache.c (get_thread_arch_aspace_regcache): Same.
2465
a52b3ae2
TT
24662020-08-07 Tom Tromey <tromey@adacore.com>
2467
2468 * ravenscar-thread.c
2469 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2470 New method.
2471 (ravenscar_thread_target::wait): Check
2472 runtime_initialized.
2473 (ravenscar_thread_target::prepare_to_store)
2474 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2475 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2476 (ravenscar_thread_target::stopped_by_watchpoint)
2477 (ravenscar_thread_target::stopped_data_address)
2478 (ravenscar_thread_target::core_of_thread): Use
2479 scoped_restore_current_thread and
2480 set_base_thread_from_ravenscar_task.
2481
0e29517d
TT
24822020-08-07 Tom Tromey <tromey@adacore.com>
2483
2484 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2485
592f9bd7
TT
24862020-08-07 Tom Tromey <tromey@adacore.com>
2487
2488 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2489 update_inferior_ptid before update_thread_list.
2490 (temporarily_change_regcache_ptid): New class.
2491 (ravenscar_thread_target::fetch_registers)
2492 (ravenscar_thread_target::store_registers)
2493 (ravenscar_thread_target::prepare_to_store): Use base thread when
2494 forwarding operation.
2495
39e2018a
TT
24962020-08-07 Tom Tromey <tromey@adacore.com>
2497
2498 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2499 "is_pid" case.
2500
2080266b
TT
25012020-08-07 Tom Tromey <tromey@adacore.com>
2502
2503 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2504 New methods.
2505 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2506 first.
2507 (ravenscar_thread_target::add_thread): Rename from
2508 ravenscar_add_thread.
2509 (ravenscar_thread_target::update_thread_list): Use a lambda.
2510 (ravenscar_thread_target::xfer_partial): New method.
2511
78c02f21
TT
25122020-08-07 Tom Tromey <tromey@adacore.com>
2513
2514 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2515 gdb::function_view.
2516 (iterate_over_live_ada_tasks): Change type of argument.
2517 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2518 of argument.
2519
d5d833af
TT
25202020-08-07 Tom Tromey <tromey@adacore.com>
2521
2522 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2523 Remove.
2524 (ravenscar_thread_target::extra_thread_info): Remove.
2525 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2526 defer to target beneath for non-Ravenscar threads.
2527
a8ac85bb
TT
25282020-08-07 Tom Tromey <tromey@adacore.com>
2529
2530 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2531 get_base_thread_from_ravenscar_task>: Now methods.
2532 <m_cpu_map>: New member.
2533 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2534 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2535 (ravenscar_thread_target::task_is_currently_active): Update.
2536 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2537 Now a method.
2538 (ravenscar_thread_target::add_active_thread): Put initial thread
2539 into the m_cpu_map.
2540
550ab58d
TT
25412020-08-07 Tom Tromey <tromey@adacore.com>
2542
2543 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2544 event_ptid.
2545
e9546579
TT
25462020-08-07 Tom Tromey <tromey@adacore.com>
2547
2548 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2549 runtime_initialized.
2550
3d4470e5
TT
25512020-08-07 Tom Tromey <tromey@adacore.com>
2552
2553 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2554 add_active_thread.
2555 (ravenscar_thread_target::add_active_thread): Now public.
2556 (ravenscar_inferior_created): Call add_active_thread after pushing
2557 the target.
2558
888bdb2b
SM
25592020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2560
2561 * regcache.c (ptid_regcache_map): New type.
2562 (target_ptid_regcache_map): New type.
2563 (regcaches): Change type to target_ptid_regcache_map.
2564 (get_thread_arch_aspace_regcache): Update to regcaches' new
2565 type.
2566 (regcache_thread_ptid_changed): Likewise.
2567 (registers_changed_ptid): Likewise.
2568 (regcaches_size): Likewise.
2569 (regcaches_test): Update.
2570 (regcache_thread_ptid_changed): Update.
2571 * regcache.h (regcache_up): New type.
2572 * gdbsupport/ptid.h (hash_ptid): New struct.
2573
b161a60d
SM
25742020-08-07 Simon Marchi <simon.marchi@efficios.com>
2575
2576 * observable.h (thread_ptid_changed): Add parameter
2577 `process_stratum_target *`.
2578 * infrun.c (infrun_thread_ptid_changed): Add parameter
2579 `process_stratum_target *` and use it.
2580 (selftests): New namespace.
2581 (infrun_thread_ptid_changed): New function.
2582 (_initialize_infrun): Register selftest.
2583 * regcache.c (regcache_thread_ptid_changed): Add parameter
2584 `process_stratum_target *` and use it.
2585 (regcache_thread_ptid_changed): New function.
2586 (_initialize_regcache): Register selftest.
2587 * thread.c (thread_change_ptid): Pass target to
2588 thread_ptid_changed observable.
2589
d2854d8d
CT
25902020-08-06 Caroline Tice <cmtice@google.com>
2591
fe4c3d43
SM
2592 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2593 (struct dwp_sections): Update field comments. Add loclists and
2594 rnglists fields.
2595 (struct virtual_v2_dwo_sections): Rename struct to
2596 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2597 size & offset fields for loclists and rnglists.
2598 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2599 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2600 skipping dummy type units.
2601 (create_dwp_hash_table): Update the large comment above the function to
2602 discuss Version 5 DWP files as well, with references. Update all the
2603 version checks in the function to check for version 5 as well. Add new
2604 section at the end to create dwp hash table for version 5.
2605 (create_dwp_v2_section): Rename function to
2606 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2607 Add V5 to error message text.
2608 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2609 into calls to create_dwp_v2_or_v5_section.
2610 (create_dwo_unit_in_dwp_v5): New function.
2611 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2612 check for version2; add else clause to handle version 5.
2613 (open_and_init_dwo_file): Add code to check dwarf version & only call
2614 create_debug_types_hash_table (with sections.types) if version is not 5;
2615 else call create_debug_type_hash_table, with sections.info.
2616 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2617 version 5.
2618 (dwarf2_locate_v5_dwp_sections): New function.
2619 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2620 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2621
159ed7d9
SM
26222020-08-06 Simon Marchi <simon.marchi@efficios.com>
2623
2624 * regcache.h (class regcache): Remove friend
2625 registers_changed_ptid.
2626 <regcache_thread_ptid_changed>: Remove.
2627 <regcaches>: Remove.
2628 * regcache.c (regcache::regcaches): Rename to...
2629 (regcaches): ... this. Make static.
2630 (get_thread_arch_aspace_regcache): Update.
2631 (regcache::regcache_thread_ptid_changed): Rename to...
2632 (regcache_thread_ptid_changed): ... this. Update.
2633 (class regcache_access): Remove.
2634 (regcaches_test): Update.
2635 (_initialize_regcache): Update.
2636 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2637 <forward_list>.
2638
174981ae
SM
26392020-08-06 Simon Marchi <simon.marchi@efficios.com>
2640
2641 * regcache.h (class regcache) <current_regcache>: Rename to...
2642 <regcaches>: ... this. Move doc here.
2643 * regcache.c (regcache::current_regcache) Rename to...
2644 (regcache::regcaches): ... this. Move doc to header.
2645 (get_thread_arch_aspace_regcache): Update.
2646 (regcache::regcache_thread_ptid_changed): Update.
2647 (registers_changed_ptid): Update.
2648 (class regcache_access) <current_regcache_size>: Rename to...
2649 <regcaches_size>: ... this.
2650 (current_regcache_test): Rename to...
2651 (regcaches_test): ... this.
2652 (_initialize_regcache): Update.
2653
ed908db6
VC
26542020-08-06 Victor Collod <vcollod@nvidia.com>
2655
2656 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2657
b5582ab7
KB
26582020-08-05 Kevin Buettner <kevinb@redhat.com>
2659
2660 * corelow.c (core_target::build_file_mappings): Don't output
2661 null pathname in warning.
2662
ea946b86
SM
26632020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2664
2665 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2666 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2667 gdb.dwarf2/dw2-single-line-discriminators.exp,
2668 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2669
57d02173
TT
26702020-08-05 Tom Tromey <tromey@adacore.com>
2671
2672 PR rust/26197:
2673 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2674 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2675 Fix off-by-one and type size errors in ordinary case.
2676
5555c86d
TV
26772020-08-05 Tom de Vries <tdevries@suse.de>
2678
2679 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2680 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2681
97916bfe
SM
26822020-08-04 Simon Marchi <simon.marchi@efficios.com>
2683
2684 * frame.h (frame_id_p): Return bool.
2685 (frame_id_artificial_p): Return bool.
2686 (frame_id_eq): Return bool.
2687 (has_stack_frames): Return bool.
2688 (get_selected_frame): Fix typo in comment.
2689 (get_frame_pc_if_available): Return bool.
2690 (get_frame_address_in_block_if_available): Return bool.
2691 (get_frame_func_if_available): Return bool.
2692 (read_frame_register_unsigned): Return bool.
2693 (get_frame_register_bytes): Return bool.
2694 (safe_frame_unwind_memory): Return bool.
2695 (deprecated_frame_register_read): Return bool.
2696 (frame_unwinder_is): Return bool.
2697 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2698 bool.
2699 <this_id::p>: Likewise.
2700 <prev_p>: Likewise.
2701 (frame_stash_add): Return bool.
2702 (get_frame_id): Use bool.
2703 (frame_id_build_special) Use bool.
2704 (frame_id_build_unavailable_stack): Use bool.
2705 (frame_id_build): Use bool.
2706 (frame_id_p): Return bool, use true/false instead of 1/0.
2707 (frame_id_artificial_p): Likewise.
2708 (frame_id_eq): Likewise.
2709 (frame_id_inner): Likewise.
2710 (get_frame_func_if_available): Likewise.
2711 (read_frame_register_unsigned): Likewise.
2712 (deprecated_frame_register_read): Likewise.
2713 (get_frame_register_bytes): Likewise.
2714 (has_stack_frames): Likewise.
2715 (inside_main_func): Likewise.
2716 (inside_entry_func): Likewise.
2717 (get_frame_pc_if_available): Likewise.
2718 (get_frame_address_in_block_if_available): Likewise.
2719 (frame_unwinder_is): Likewise.
2720 (safe_frame_unwind_memory): Likewise.
2721 (frame_unwind_arch): Likewise.
2722
fedfee88
SM
27232020-08-04 Simon Marchi <simon.marchi@efficios.com>
2724
2725 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2726 type to cached_copy_status.
2727 (fprintf_frame): Adjust.
2728 (get_frame_func_if_available): Adjust.
2729 (frame_cleanup_after_sniffer): Adjust.
2730
6cfa9b59
MW
27312020-08-04 Mark Wielaard <mark@klomp.org>
2732
2733 * MAINTAINERS (Write After Approval): Update email address.
2734
66d6346b
SM
27352020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2736
2737 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2738 dynamic_prop::const_val.
2739
8a6d5e35
SM
27402020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2741
2742 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2743 dynamic_prop::kind.
2744
51d6067d
SM
27452020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2746
2747 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2748
b26e2ae7
JM
27492020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2750
2751 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2752
39791af2
JM
27532020-08-04 Weimin Pan <weimin.pan@oracle.com>
2754 Jose E. Marchesi <jose.marchesi@oracle.com>
2755
2756 * configure.tgt: Add entry for bpf-*-*.
2757 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2758 (ALLDEPFILES): Add bpf-tdep.c.
2759 * bpf-tdep.c: New file.
2760 * MAINTAINERS: Add bpf target and maintainer.
2761 * NEWS: Mention the support for the new target.
2762
521894aa
TV
27632020-08-04 Tom de Vries <tdevries@suse.de>
2764
2765 PR symtab/23270
2766 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2767 Error.
2768
5d6356e9
JB
27692020-08-03 John Baldwin <jhb@FreeBSD.org>
2770
2771 * syscalls/freebsd.xml: Regenerate.
2772
0cf82b81
JB
27732020-08-03 John Baldwin <jhb@FreeBSD.org>
2774
2775 * syscalls/update-freebsd.sh: Fix usage and year range.
2776
8f34b746
TV
27772020-08-03 Tom de Vries <tdevries@suse.de>
2778
2779 PR symtab/26333
2780 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2781 DW_LNE_lo_user/DW_LNE_hi_user range.
2782
5e500d33
SM
27832020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2784
2785 PR ada/26318
2786 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2787 kind.
2788
78319c15
TBA
27892020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2790
2791 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2792
4c55e970
TBA
27932020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2794
2795 * breakpoint.c (set_breakpoint_condition): Update the condition
2796 expressions after checking that the input condition string parses
2797 successfully and does not contain junk at the end.
2798
1e620590
TBA
27992020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2800
2801 * breakpoint.c (set_breakpoint_condition): Update the
2802 condition string after parsing the new condition successfully.
2803
c8693053
RO
28042020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2805
2806 * proc-api.c (_STRUCTURED_PROC): Don't define.
2807 * proc-events.c: Likewise.
2808 * proc-flags.c: Likewise.
2809 * proc-why.c: Likewise.
2810 * procfs.c: Likewise.
2811
2812 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2813 * configure, config.in: Regenerate.
2814
5a99adb8
TV
28152020-07-30 Tom de Vries <tdevries@suse.de>
2816
2817 PR build/26320
2818 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2819 m_red/m_green/m_blue in a union.
2820
8ba83e91
TV
28212020-07-29 Tom de Vries <tdevries@suse.de>
2822
2823 PR tdep/26280
2824 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2825
f75a0693
AB
28262020-07-28 Tom Tromey <tromey@adacore.com>
2827
2828 PR symtab/26270:
2829 * symtab.h (find_pc_partial_function_sym): Declare.
2830 * cli/cli-cmds.c (disassemble_command): Use
2831 find_pc_partial_function_sym. Check asm_demangle.
2832 * blockframe.c (cache_pc_function_sym): New global.
2833 (cache_pc_function_name): Remove.
2834 (clear_pc_function_cache): Update.
2835 (find_pc_partial_function_sym): New function, from
2836 find_pc_partial_function.
2837 (find_pc_partial_function): Rewrite using
2838 find_pc_partial_function_sym.
2839
16f3242c
TT
28402020-07-28 Tom Tromey <tromey@adacore.com>
2841
2842 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2843 help. Add usage.
2844
4888741a
TT
28452020-07-28 Tom Tromey <tromey@adacore.com>
2846
2847 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2848 <DW_OP_GNU_variable_value>: Cast to address type.
2849
4d46f402
KR
28502020-07-28 Kamil Rytarowski <n54@gmx.com>
2851
2852 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2853 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2854 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2855 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2856 (nbsd_get_siginfo_type): New.
2857 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2858 (_initialize_nbsd_tdep): New.
2859
d70f978b
L
28602020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2861
2862 PR binutils/26301
2863 * configure: Regenerated.
2864
377170fa
L
28652020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2866
2867 PR binutils/26301
2868 * configure: Regenerated.
2869
43d5901d
AB
28702020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2871
2872 * python/py-frame.c: Remove 'user-regs.h' include.
2873 (frapy_read_register): Rewrite to make use of
2874 gdbpy_parse_register_id.
2875 * python/py-registers.c (gdbpy_parse_register_id): New function,
2876 moved here from python/py-unwind.c. Updated the return type, and
2877 also accepts register descriptor objects.
2878 * python/py-unwind.c: Remove 'user-regs.h' include.
2879 (pyuw_parse_register_id): Moved to python/py-registers.c.
2880 (unwind_infopy_add_saved_register): Update to use
2881 gdbpy_parse_register_id.
2882 (pending_framepy_read_register): Likewise.
2883 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2884
14fa8fb3
AB
28852020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2886
2887 * python/py-registers.c: Add 'user-regs.h' include.
2888 (register_descriptor_iter_find): New function.
2889 (register_descriptor_iterator_object_methods): New static global
2890 methods array.
2891 (register_descriptor_iterator_object_type): Add pointer to methods
2892 array.
2893
ddce1758
JB
28942020-07-27 John Baldwin <jhb@FreeBSD.org>
2895
2896 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2897 for all architectures on FreeBSD 11.3 and later.
2898
a4089f52
TT
28992020-07-27 Tom Tromey <tromey@adacore.com>
2900
2901 * gcore.h (load_corefile): Don't declare.
2902
95420d30
TV
29032020-07-27 Tom de Vries <tdevries@suse.de>
2904
2905 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2906 * config.in: Regenerate.
2907 * configure: Regenerate.
2908
05a6b8c2
EZ
29092020-07-26 Eli Zaretskii <eliz@gnu.org>
2910
2911 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2912 ws2tcpip.h. When checking whether socklen_t type is defined, use
2913 ws2tcpip.h if it is available and sys/socket.h isn't.
2914 * configure: Regenerate.
2915 * config.in: Regenerate.
2916
e79eb02f
AB
29172020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2918
2919 PR fortran/23051
2920 PR fortran/26139
2921 * valops.c (value_ind): Pass address to
2922 readjust_indirect_value_type.
2923 * value.c (readjust_indirect_value_type): Make parameter
2924 non-const, and add extra address parameter. Resolve original type
2925 before using it.
2926 * value.h (readjust_indirect_value_type): Update function
2927 signature and comment.
2928
876518dd
TV
29292020-07-25 Tom de Vries <tdevries@suse.de>
2930
2931 PR symtab/26243
2932 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2933 entries.
2934
f6720b1c
AM
29352020-07-24 Aaron Merey <amerey@redhat.com>
2936
2937 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2938 * configure: Rebuild.
2939
513487e1
KB
29402020-07-23 Kevin Buettner <kevinb@redhat.com>
2941
2942 PR corefiles/26294
2943 * corelow.c (_initialize_corelow): Add period to help text
2944 for "maintenance print core-file-backed-mappings".
2945
e7bc9db8
PA
29462020-07-23 Pedro Alves <pedro@palves.net>
2947
2948 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2949 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2950 meanwhile.
2951 * frame.c (frame_cache_generation, get_frame_cache_generation):
2952 New.
2953 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2954 (get_prev_frame_if_no_cycle): On exception, don't touch
2955 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2956 * frame.h (get_frame_cache_generation): Declare.
2957
90fcc466
TV
29582020-07-23 Tom de Vries <tdevries@suse.de>
2959
2960 PR tui/26282
2961 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2962 New default constructor.
2963
78344df7
AB
29642020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2965
2966 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2967 exclude non-statement entries.
2968
b089853a
KB
29692020-07-22 Kevin Buettner <kevinb@redhat.com>
2970
2971 * NEWS (New commands): Mention new command
2972 "maintenance print core-file-backed-mappings".
2973
09c2f5d4
KB
29742020-07-22 Kevin Buettner <kevinb@redhat.com>
2975
2976 * corelow.c (gdbcmd.h): Include.
2977 (core_target::info_proc_mappings): New method.
2978 (get_current_core_target): New function.
2979 (maintenance_print_core_file_backed_mappings): New function.
2980 (_initialize_corelow): Add core-file-backed-mappings to
2981 "maint print" commands.
2982
9c5ec5c2 29832020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2984
9c5ec5c2
KB
2985 * linux-tdep.c (dump_note_entry_p): New function.
2986 (linux_dump_mapping_p_ftype): New typedef.
2987 (linux_find_memory_regions_full): Add new parameter,
2988 should_dump_mapping_p.
2989 (linux_find_memory_regions): Adjust call to
2990 linux_find_memory_regions_full.
2991 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2992 call to linux_find_memory_regions_full.
2993
db082f59
KB
29942020-07-22 Kevin Buettner <kevinb@redhat.com>
2995
2996 * corelow.c (solist.h, unordered_map): Include.
2997 (class core_target): Add field m_core_file_mappings and
2998 method build_file_mappings.
2999 (core_target::core_target): Call build_file_mappings.
3000 (core_target::~core_target): Free memory associated with
3001 m_core_file_mappings.
3002 (core_target::build_file_mappings): New method.
3003 (core_target::xfer_partial): Use m_core_file_mappings
3004 for memory transfers.
3005 * linux-tdep.c (linux_read_core_file_mappings): New
3006 function.
3007 (linux_core_info_proc_mappings): Rewrite to use
3008 linux_read_core_file_mappings.
3009 (linux_init_abi): Register linux_read_core_file_mappings.
3010
7e183d27
KB
30112020-07-22 Kevin Buettner <kevinb@redhat.com>
3012
3013 * arch-utils.c (default_read_core_file_mappings): New function.
3014 * arch-utils.c (default_read_core_file_mappings): Declare.
3015 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3016 * gdbarch.h, gdbarch.c: Regenerate.
3017
2735d421
KB
30182020-07-22 Kevin Buettner <kevinb@redhat.com>
3019
3020 PR corefiles/25631
3021 * corelow.c (core_target:xfer_partial): Revise
3022 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3023 case after first checking the stratum beneath the core
3024 target.
3025 (has_all_memory): Return true.
3026 * target.c (raw_memory_xfer_partial): Revise comment
3027 regarding use of has_all_memory.
3028
e56cb451
KB
30292020-07-22 Kevin Buettner <kevinb@redhat.com>
3030
3031 * exec.h (section_table_xfer_memory): Revise declaration,
3032 replacing section name parameter with an optional callback
3033 predicate.
3034 * exec.c (section_table_xfer_memory): Likewise.
3035 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3036 of section_table_xfer_memory.
3037
32fa152e
TT
30382020-07-22 Tom Tromey <tromey@adacore.com>
3039
3040 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3041 lookup_symbol_search_name.
3042
a67a1c41
AB
30432020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3044
3045 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3046 redundant local variable.
3047 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3048 reference, not pointer, update code accordingly.
3049
a7b4ff4f
SM
30502020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3051 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3052
3053 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3054 * jit.c (jit_breakpoint_re_set_internal): Use the
3055 `skip_jit_symbol_lookup` field.
3056
2340e834
SM
30572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3058 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3059
3060 * jit.c (jit_read_descriptor): Define the descriptor address once,
3061 use twice.
3062 (jit_breakpoint_deleted): Move the declaration of the loop variable
3063 `iter` into the loop header.
3064 (jit_breakpoint_re_set_internal): Move the declaration of the local
3065 variable `objf_data` to the first point of definition.
3066 (jit_event_handler): Move the declaration of local variables
3067 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3068 Rename `objf` to `jited`.
3069
c1072906
SM
30702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3071
3072 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3073 Remove.
3074 * jit.c (get_jiter_objfile_data): Update.
3075
c8474dc3
TBA
30762020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3077 Simon Marchi <simon.marchi@polymtl.ca>
3078
3079 * jit.c (struct jit_program_space_data): Remove.
3080 (jit_program_space_key): Remove.
3081 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3082 stuff.
3083 (get_jit_program_space_data): Remove.
3084 (jit_breakpoint_deleted): Iterate on all of the program space's
3085 objfiles.
3086 (jit_inferior_init): Likewise.
3087 (jit_breakpoint_re_set_internal): Likewise. Also change return
3088 type to void.
3089 (jit_breakpoint_re_set): Pass current_program_space to
3090 jit_breakpoint_re_set_internal.
3091
77208eb7
SM
30922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3093
3094 * jit.h (struct jiter_objfile_data) <cached_code_address,
3095 jit_breakpoint>: Move to here from ...
3096 * jit.c (jit_program_space_data): ... here.
3097 (jiter_objfile_data::~jiter_objfile_data): Update.
3098 (jit_breakpoint_deleted): Update.
3099 (jit_breakpoint_re_set_internal): Update.
3100
8c1c720f
SM
31012020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3102
3103 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3104 checks.
3105 (jit_read_descriptor): Remove NULL check.
3106 (jit_event_handler): Add an assertion.
3107
0e74a041
SM
31082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3109
3110 * jit.h (struct jit_objfile_data): Split into...
3111 (struct jiter_objfile_data): ... this ...
3112 (struct jited_objfile_data): ... and this.
3113 * objfiles.h (struct objfile) <jit_data>: Remove.
3114 <jiter_data, jited_data>: New fields.
3115 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3116 (jiter_objfile_data::~jiter_objfile_data): ... this.
3117 (get_jit_objfile_data): Rename to ...
3118 (get_jiter_objfile_data): ... this.
3119 (add_objfile_entry): Update.
3120 (jit_read_descriptor): Use get_jiter_objfile_data.
3121 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3122 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3123 (jit_inferior_exit_hook): Use objfile's jited_data field.
3124
238b5c9f
SM
31252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3126
3127 * jit.h: Forward-declare `struct minimal_symbol`.
3128 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3129 constructor, destructor, and an objfile* field.
3130 * jit.c (jit_objfile_data): Remove.
3131 (struct jit_objfile_data): Migrate from here to jit.h.
3132 (jit_objfile_data::~jit_objfile_data): New destructor
3133 implementation with code moved from free_objfile_data.
3134 (free_objfile_data): Delete.
3135 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3136 (jit_find_objf_with_entry_addr): Ditto.
3137 (jit_inferior_exit_hook): Ditto.
3138 (_initialize_jit): Remove the call to
3139 register_objfile_data_with_cleanup.
3140 * objfiles.h (struct objfile) <jit_data>: New field.
3141
fe053b9e
TBA
31422020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3143
3144 * jit.h: Forward-declare `struct objfile`.
3145 (jit_event_handler): Add a second parameter, the JITer objfile.
3146 * jit.c (jit_read_descriptor): Change the signature to take the
3147 JITer objfile as an argument instead of the jit_program_space_data.
3148 (jit_inferior_init): Update the call to jit_read_descriptor.
3149 (jit_event_handler): Use the new JITer objfile argument when calling
3150 jit_read_descriptor.
3151 * breakpoint.c (handle_jit_event): Update the call to
3152 jit_event_handler to pass the JITer objfile.
3153
4cec0c66
JB
31542020-07-21 John Baldwin <jhb@FreeBSD.org>
3155
3156 * gdbarch.c: Regenerate.
3157 * gdbarch.h: Regenerate.
3158 * gdbarch.sh (handle_segmentation_fault): Remove method.
3159 * infrun.c (handle_segmentation_fault): Remove.
3160 (print_signal_received_reason): Remove call to
3161 handle_segmentation_fault.
3162
0e42f66a
JB
31632020-07-21 John Baldwin <jhb@FreeBSD.org>
3164
3165 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3166 Rename to sparc64_linux_report_signal_info and add siggnal
3167 argument.
3168 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3169 instead of sparc64_linux_handle_segmentation_fault.
3170
77bdfeb2
JB
31712020-07-21 John Baldwin <jhb@FreeBSD.org>
3172
3173 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3174 i386_linux_report_signal_info instead of
3175 i386_linux_handle_segmentation_fault.
3176 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3177 to i386_linux_report_signal_info and add siggnal argument.
3178 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3179 of i386_linux_handle_segmentation_fault.
3180 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3181 to i386_linux_report_signal_info and add siggnal argument.
3182
ad97bfc5
JB
31832020-07-21 John Baldwin <jhb@FreeBSD.org>
3184
3185 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3186 hook if present.
3187
272bb05c
JB
31882020-07-21 John Baldwin <jhb@FreeBSD.org>
3189
3190 * gdbarch.c: Regenerate.
3191 * gdbarch.h: Regenerate.
3192 * gdbarch.sh (report_signal_info): New method.
3193 * infrun.c (print_signal_received_reason): Invoke gdbarch
3194 report_signal_info hook if present.
3195
baf8791e
AB
31962020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3197
3198 * python/py-registers.c : Add 'unordered_map' include.
3199 (gdbpy_new_reggroup): Renamed to...
3200 (gdbpy_get_reggroup): ...this. Update to only create register
3201 group descriptors when needed.
3202 (gdbpy_reggroup_iter_next): Update.
3203
f7306dac
AB
32042020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3205
3206 * python/py-registers.c (gdbpy_register_object_data): New static
3207 global.
3208 (gdbpy_register_object_data_init): New function.
3209 (gdbpy_new_register_descriptor): Renamed to...
3210 (gdbpy_get_register_descriptor): ...this, and update to reuse
3211 existing register descriptors where possible.
3212 (gdbpy_register_descriptor_iter_next): Update.
3213 (gdbpy_initialize_registers): Register new gdbarch data.
3214
05c309a8
SM
32152020-07-21 Simon Marchi <simon.marchi@efficios.com>
3216
3217 * linux-nat.c (stopped_pids): Make static.
3218
d1fd641e
SM
32192020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3220
3221 PR ada/26235
3222 * gdbtypes.c (ada_discrete_type_low_bound,
3223 ada_discrete_type_high_bound): Handle undefined bounds.
3224
1de14d77
KR
32252020-07-21 Kamil Rytarowski <n54@gmx.com>
3226
3227 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3228 declaration.
3229 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3230 function.
3231
ed810cc7
JB
32322020-07-20 John Baldwin <jhb@FreeBSD.org>
3233
3234 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3235 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3236 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3237 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3238 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3239 method.
3240
ae5369e7
LC
32412020-07-20 Ludovic Courtès <ludo@gnu.org>
3242
3243 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3244 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3245 which are deprecated in Guile 3.0.
3246 * configure.ac (try_guile_versions): Add "guile-3.0".
3247 * configure (try_guile_versions): Regenerate.
3248 * NEWS: Update entry.
3249
68cf161c
LC
32502020-07-20 Ludovic Courtès <ludo@gnu.org>
3251 Doug Evans <dje@google.com>
3252
3253 PR gdb/21104
3254 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3255 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3256 USING_GUILE_BEFORE_2_2.
3257 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3258 Change type to 'scm_t_port_type *'.
3259 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3260 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3261 parameter and honor it. Update callers.
3262 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3263 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3264 functions.
3265 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3266 USING_GUILE_BEFORE_2_2.
3267 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3268 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3269 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3270 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3271 and 'SCM_PORT_TYPE'.
3272 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3273 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3274 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3275 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3276 [!USING_GUILE_BEFORE_2_2]: New functions.
3277 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3278 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3279 'gdbscm_memory_port_read'.
3280 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3281 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3282 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3283 function.
3284 (ioscm_init_memory_port): Remove.
3285 (ioscm_init_memory_port_stream): New function
3286 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3287 function.
3288 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3289 Return scm_from_uint (0).
3290 (gdbscm_set_memory_port_read_buffer_size_x)
3291 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3292 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3293 Return scm_from_uint (0).
3294 (gdbscm_set_memory_port_write_buffer_size_x)
3295 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3296 * configure.ac (try_guile_versions): Add "guile-2.2".
3297 * configure: Regenerate.
3298 * NEWS: Add entry.
3299
aee91db3
TT
33002020-07-18 Tom Tromey <tom@tromey.com>
3301
3302 * linux-nat.c (linux_multi_process): Remove.
3303 (linux_nat_target::supports_multi_process): Return true.
3304
0e267416
AB
33052020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3306
3307 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3308 (riscv_lookup_target_description): Return pointer out of
3309 unique_ptr.
3310 * target-descriptions.c (allocate_target_description): Add
3311 comment.
3312 (target_desc_deleter::operator()): Likewise.
3313 * target-descriptions.h (struct target_desc_deleter): Moved to
3314 gdbsupport/tdesc.h.
3315 (target_desc_up): Likewise.
3316
f80c8ec4
TT
33172020-07-17 Tom Tromey <tromey@adacore.com>
3318
3319 * linux-nat.c (linux_nat_target::supports_non_stop)
3320 (linux_nat_target::always_non_stop_p): Use "true".
3321 (linux_nat_target::supports_disable_randomization): Use "true" and
3322 "false".
3323
d0ce17d8
CT
33242020-07-16 Caroline Tice <cmtice@google.com>
3325
3326 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3327 (RNGLIST_HEADER_SIZE64): New constant definition.
3328 (struct dwop_section_names): Add rnglists_dwo.
3329 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3330 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3331 (struct dwo_sections): Add rnglists field.
3332 (read_attribut_reprocess): Add tag parameter.
3333 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3334 (cu_debug_rnglists_section): New function (decl & definition).
3335 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3336 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3337 die whose range is being checked; get rnglist section from
3338 cu_debug_rnglists_section, to get from either objfile or dwo file as
3339 appropriate. Add cases for DW_RLE_base_addressx,
3340 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3341 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3342 test inside if-condition and updating complaint message.
3343 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3344 dwarf2_rnglists_process.
3345 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3346 dwarf2_ranges_process.
3347 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3348 need_ranges_base and update comment appropriately. Also pass die tag
3349 to dwarf2_ranges_read.
3350 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3351 need_ranges_base and update comment appropriately. Also pass die tag
3352 to dwarf2_ranges_process.
3353 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3354 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3355 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3356 need_ranges_base and update comment appropriately. Also pass die tag
3357 to read_attribute_reprocess and dwarf2_ranges_read.
3358 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3359 and update function comment appropriately.
3360 (read_loclist_index): Call read_loclists_rnglists_header instead of
3361 read_loclist_header.
3362 (read_rnglist_index): New function.
3363 (read_attribute_reprocess): Add tag parameter. Add code for
3364 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3365 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3366
3dcc261c
AB
33672020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3368
3369 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3370 being resolved.
3371
ccb9eba6
AB
33722020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3373
3374 * arch-utils.c (show_architecture): Update formatting of messages.
3375
cf88be68
SM
33762020-07-12 Simon Marchi <simon.marchi@efficios.com>
3377
3378 * gdbtypes.h (struct type) <bounds>: Handle array and string
3379 types.
3380 * ada-lang.c (assign_aggregate): Use type::bounds on
3381 array/string type.
3382 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3383 * c-varobj.c (c_number_of_children): Likewise.
3384 (c_describe_child): Likewise.
3385 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3386 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3387 (f_type_print_base): Likewise.
3388 * f-valprint.c (f77_array_offset_tbl): Likewise.
3389 (f77_get_upperbound): Likewise.
3390 (f77_print_array_1): Likewise.
3391 * guile/scm-type.c (gdbscm_type_range): Likewise.
3392 * m2-typeprint.c (m2_array): Likewise.
3393 (m2_is_long_set_of_type): Likewise.
3394 * m2-valprint.c (get_long_set_bounds): Likewise.
3395 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3396 * python/py-type.c (typy_range): Likewise.
3397 * rust-lang.c (rust_internal_print_type): Likewise.
3398 * type-stack.c (type_stack::follow_types): Likewise.
3399 * valarith.c (value_subscripted_rvalue): Likewise.
3400 * valops.c (value_cast): Likewise.
3401
509971ae
SM
34022020-07-12 Simon Marchi <simon.marchi@efficios.com>
3403
3404 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3405 callers to use the equivalent accessor methods.
3406
107406b7
SM
34072020-07-12 Simon Marchi <simon.marchi@efficios.com>
3408
3409 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3410 (struct type) <bit_stride>: New method.
3411 (TYPE_BIT_STRIDE): Remove.
3412 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3413
bb789949
SM
34142020-07-12 Simon Marchi <simon.marchi@efficios.com>
3415
3416 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3417 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3418 callers to use the equivalent accessor methods instead.
3419
39498edb
SM
34202020-07-12 Simon Marchi <simon.marchi@efficios.com>
3421
3422 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3423 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3424 callers to use the equivalent accessor methods instead.
3425
3b606f38
SM
34262020-07-12 Simon Marchi <simon.marchi@efficios.com>
3427
3428 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3429 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3430 to use dynamic_prop::kind.
3431
064d9cb9
SM
34322020-07-12 Simon Marchi <simon.marchi@efficios.com>
3433
3434 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3435 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3436 to get the bound property's kind and check against
3437 PROP_UNDEFINED.
3438
5537ddd0
SM
34392020-07-12 Simon Marchi <simon.marchi@efficios.com>
3440
3441 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3442 all callers to use type::range_bounds followed by
3443 dynamic_prop::{low,high}.
3444
8c2e4e06
SM
34452020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3446
3447 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3448 const_val, set_const_val, baton, set_locexpr, set_loclist,
3449 set_addr_offset, variant_parts, set_variant_parts,
3450 original_type, set_original_type>: New methods.
3451 <kind>: Rename to...
3452 <m_kind>: ... this. Update all users to use the new methods
3453 instead.
3454 <data>: Rename to...
3455 <m_data>: ... this. Update all users to use the new methods
3456 instead.
3457
7c6f2712
SM
34582020-07-12 Simon Marchi <simon.marchi@efficios.com>
3459
3460 * gdbtypes.c (get_discrete_bounds): Return failure if
3461 the range type's bounds are not both defined and constant
3462 values.
3463 (get_array_bounds): Update comment. Remove undefined bound check.
3464
599088e3
SM
34652020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3466
3467 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3468 the type::bounds method directly.
3469
c4dfcb36
SM
34702020-07-12 Simon Marchi <simon.marchi@efficios.com>
3471
3472 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3473 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3474 are used to set the range type's bounds to use set_bounds.
3475
0a278aa7
PW
34762020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3477
3478 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3479
cce20f10
PA
34802020-07-10 Pedro Alves <pedro@palves.net>
3481
3482 * gdbthread.h (inferior_ref): Define.
3483 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3484 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3485 * thread.c
3486 (scoped_restore_current_thread::restore):
3487 Adjust to gdb::ref_ptr.
3488 (scoped_restore_current_thread::~scoped_restore_current_thread):
3489 Remove manual decref handling.
3490 (scoped_restore_current_thread::scoped_restore_current_thread):
3491 Adjust to use
3492 inferior_ref::new_reference/thread_info_ref::new_reference.
3493 Incref the thread before calling get_frame_id instead of after.
3494 Let TARGET_CLOSE_ERROR propagate.
3495
6d7aa592
PA
34962020-07-10 Pedro Alves <pedro@palves.net>
3497
3498 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3499 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3500 NOT_AVAILABLE_ERROR.
3501 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3502 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3503
b3e3a4c1
SM
35042020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3505 Pedro Alves <pedro@palves.net>
3506
3507 PR gdb/26199
3508 * infrun.c (threads_are_resumed_pending_p): Delete.
3509 (do_target_wait): Remove threads_are_executing and
3510 threads_are_resumed_pending_p checks from the inferior_matches
3511 lambda. Update comments.
3512
d6cc5d98
PA
35132020-07-10 Pedro Alves <pedro@palves.net>
3514
3515 PR gdb/26199
3516 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3517 executing threads.
3518
7d3badc6
PA
35192020-07-10 Pedro Alves <pedro@palves.net>
3520
3521 PR gdb/26199
3522 * infrun.c (handle_no_resumed): Handle multiple targets.
3523
42bd97a6
PA
35242020-07-10 Pedro Alves <pedro@palves.net>
3525
3526 PR gdb/26199
3527 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3528 target_is_async_p.
3529
43667cc6
PA
35302020-07-10 Pedro Alves <pedro@palves.net>
3531
3532 PR gdb/26199
3533 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3534 threads, not all threads.
3535
96118d11
PA
35362020-07-10 Pedro Alves <pedro@palves.net>
3537
3538 PR gdb/26199
3539 * remote.c (remote_target::open_1): Pass remote target pointer as
3540 data to create_async_event_handler.
3541 (remote_async_inferior_event_handler): Mark async event handler
3542 before returning if the remote target still has either pending
3543 events or unacknowledged notifications.
3544
54904d81
JB
35452020-07-10 John Baldwin <jhb@FreeBSD.org>
3546
3547 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3548 declaration.
3549 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3550 function.
3551
f37e5866
JB
35522020-07-09 John Baldwin <jhb@FreeBSD.org>
3553
3554 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3555 inferior_ptid.
3556
fc238d4a
JB
35572020-07-09 John Baldwin <jhb@FreeBSD.org>
3558
3559 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3560 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3561 AT_FREEBSD_PS_STRINGS.
3562
6e2469ff
HD
35632020-07-08 Hannes Domani <ssbssa@yahoo.de>
3564
3565 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3566 of debugfile path on Windows.
3567
d1076c41
JB
35682020-07-08 John Baldwin <jhb@FreeBSD.org>
3569
3570 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3571 argument to 'data'.
3572
15f3b077
TT
35732020-07-08 Tom Tromey <tromey@adacore.com>
3574
3575 * ada-lang.c (ada_exception_message_1): Use read_memory.
3576
9fc501fd
AB
35772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3578
3579 PR python/22748
3580 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3581 special handling for inline frames.
3582 * findvar.c (value_of_register_lazy): Skip inline frames when
3583 creating lazy register values.
3584 * frame.c (frame_id_computed_p): Delete definition.
3585 * frame.h (frame_id_computed_p): Delete declaration.
3586
64cb3757
AB
35872020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3588
3589 * NEWS: Mention additions to Python API.
3590 * python/py-arch.c (archpy_register_groups): New function.
3591 (arch_object_methods): Add 'register_groups' method.
3592 * python/py-registers.c (reggroup_iterator_object): New struct.
3593 (reggroup_object): New struct.
3594 (gdbpy_new_reggroup): New function.
3595 (gdbpy_reggroup_to_string): New function.
3596 (gdbpy_reggroup_name): New function.
3597 (gdbpy_reggroup_iter): New function.
3598 (gdbpy_reggroup_iter_next): New function.
3599 (gdbpy_new_reggroup_iterator): New function
3600 (gdbpy_initialize_registers): Register new types.
3601 (reggroup_iterator_object_type): Define new Python type.
3602 (gdbpy_reggroup_getset): New static global.
3603 (reggroup_object_type): Define new Python type.
3604 * python/python-internal.h
3605
0f767f94
AB
36062020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3607
3608 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3609 * python/py-arch.c (archpy_registers): New function.
3610 (arch_object_methods): Add 'registers' method.
3611 * python/py-registers.c: New file.
3612 * python/python-internal.h
3613 (gdbpy_new_register_descriptor_iterator): Declare.
3614 (gdbpy_initialize_registers): Declare.
3615 * python/python.c (do_start_initialization): Call
3616 gdbpy_initialize_registers.
3617 * NEWS: Mention additions to the Python API.
3618
87dbc774
AB
36192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3620
3621 * NEWS: Mention new Python API method.
3622 * python/py-unwind.c (pending_framepy_architecture): New function.
3623 (pending_frame_object_methods): Add architecture method.
3624
3bc98c0c
AB
36252020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3626
3627 * gdbarch.c: Regenerate.
3628 * gdbarch.h: Regenerate.
3629 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3630 (gdbarch_data): Use internal_error for the case where
3631 deprecated_set_gdbarch_data was originally needed.
3632 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3633 and use passed in obstack.
3634 (libunwind_frame_set_descr): Should no longer get back NULL from
3635 gdbarch_data.
3636 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3637 type.
3638 * user-regs.c (user_regs_init): Update parameters, and use passed
3639 in obstack.
3640 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3641 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3642
d8cc8af6
TV
36432020-07-06 Tom de Vries <tdevries@suse.de>
3644
3645 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3646 End-Of-Sequence in lte_is_less_than.
3647 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3648 "gdb: Don't reorder line table entries too much when sorting".
3649
947f7597
TV
36502020-07-06 Tom de Vries <tdevries@suse.de>
3651
3652 PR tui/26205
3653 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3654
1e7c1b22
TV
36552020-07-05 Tom de Vries <tdevries@suse.de>
3656
3657 PR build/26187
3658 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3659 std::uncaught_exceptions instead of deprecated
3660 std::uncaught_exception.
3661
a36158ec
SM
36622020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3663
3664 * macroexp.h (macro_stringify): Return
3665 gdb::unique_xmalloc_ptr<char>.
3666 * macroexp.c (macro_stringify): Likewise.
3667 * macrotab.c (fixup_definition): Update.
3668
14d960c8
SM
36692020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3670
3671 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3672 (lex_one_token): Update.
3673 * macroexp.c (struct macro_buffer) <release>: Return
3674 gdb::unique_xmalloc_ptr<char>.
3675 (macro_stringify): Update.
3676 (macro_expand): Update.
3677 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3678 * macroexp.h (macro_expand_next): Likewise.
3679
211d5b1c
SM
36802020-07-02 Simon Marchi <simon.marchi@efficios.com>
3681
3682 * macroexp.h (macro_lookup_ftype): Remove.
3683 (macro_expand, macro_expand_once, macro_expand_next): Remove
3684 lookup function parameters, add scope parameter.
3685 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3686 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3687 * macroscope.h (standard_macro_lookup): Change parameter type
3688 to macro_scope.
3689 * macroscope.c (standard_macro_lookup): Likewise.
3690 * c-exp.y (lex_one_token): Update.
3691 * macrocmd.c (macro_expand_command): Likewise.
3692 (macro_expand_once_command): Likewise.
3693
b1a35af2
SM
36942020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3695
3696 * inf-loop.c (inferior_event_handler): Remove client_data param.
3697 * inf-loop.h (inferior_event_handler): Likewise.
3698 * infcmd.c (step_1): Adjust.
3699 * infrun.c (proceed): Adjust.
3700 (fetch_inferior_event): Remove client_data param.
3701 (infrun_async_inferior_event_handler): Adjust.
3702 * infrun.h (fetch_inferior_event): Remove `void *` param.
3703 * linux-nat.c (handle_target_event): Adjust.
3704 * record-btrace.c (record_btrace_handle_async_inferior_event):
3705 Adjust.
3706 * record-full.c (record_full_async_inferior_event_handler):
3707 Adjust.
3708 * remote.c (remote_async_inferior_event_handler): Adjust.
3709
1cdf9e33
TT
37102020-07-01 Tom Tromey <tom@tromey.com>
3711
3712 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3713 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3714
32c1e210
TT
37152020-07-01 Tom Tromey <tom@tromey.com>
3716
3717 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3718 tui_gen_win_info.
3719 (tui_win_info::make_window): Merge with
3720 tui_gen_win_info::make_window.
3721 (tui_win_info::make_visible): Move from tui_gen_win_info.
3722 * tui/tui-win.c (tui_win_info::max_width): Move from
3723 tui_gen_win_info.
3724 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3725 type.
3726 <window_factory>: Likewise.
3727 * tui/tui-layout.c (tui_win_info::resize): Move from
3728 tui_gen_win_info.
3729 (make_standard_window): Change return type.
3730 (get_locator_window, tui_get_window_by_name): Likewise.
3731 (tui_layout_window::apply): Remove a cast.
3732 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3733 (struct tui_win_info): Merge with tui_gen_win_info.
3734 (struct tui_gen_win_info): Remove.
3735
a30cb6da
TT
37362020-07-01 Tom Tromey <tom@tromey.com>
3737
3738 * tui/tui-stack.h (struct tui_locator_window): Derive from
3739 tui_win_info.
3740 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3741 <can_box>: New method.
3742
1eb2161f
TT
37432020-07-01 Tom Tromey <tom@tromey.com>
3744
3745 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3746
7134f2eb
TT
37472020-07-01 Tom Tromey <tom@tromey.com>
3748
3749 * tui/tui-regs.c (tui_data_window::display_registers_from)
3750 (tui_data_window::display_registers_from)
3751 (tui_data_window::first_data_item_displayed)
3752 (tui_data_window::delete_data_content_windows): Update.
3753 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3754 Remove.
3755 (tui_data_window::check_register_values): Update.
3756 (tui_data_item_window::rerender): Add parameters. Update.
3757 (tui_data_item_window::refresh_window): Remove.
3758 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3759 virtual.
3760 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3761 tui_gen_win_info.
3762 <refresh_window, max_height, min_height>: Remove.
3763 <rerender>: Add parameters.
3764 <x, y, visible>: New members.
3765 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3766 <m_item_width>: New member.
3767
22b7b041
TT
37682020-07-01 Tom Tromey <tom@tromey.com>
3769
3770 * tui/tui-regs.c (tui_data_window::show_register_group)
3771 (tui_data_window::check_register_values): Update.
3772 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3773 from item_no.
3774
c9753adb
TT
37752020-07-01 Tom Tromey <tom@tromey.com>
3776
3777 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3778 useless "if".
3779
9ab26b4a
TT
37802020-07-01 Tom Tromey <tom@tromey.com>
3781
3782 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3783 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3784
e555083f
TT
37852020-07-01 Tom Tromey <tom@tromey.com>
3786
3787 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3788 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3789 (struct tui_line_or_address): Move from tui-data.h.
3790 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3791 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3792 (tui_cmd_window, tui_source_window_base, tui_source_window)
3793 (tui_disasm_window): Don't declare.
3794 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3795 to tui-winsource.h.
3796 (SINGLE_KEY): Move to tui-stack.c.
3797
7a02bab7
TT
37982020-07-01 Tom Tromey <tom@tromey.com>
3799
3800 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3801 std::string.
3802 * tui/tui-regs.c (class tab_expansion_file): New.
3803 (tab_expansion_file::write): New method.
3804 (tui_register_format): Change return type. Use
3805 tab_expansion_file.
3806 (tui_get_register, tui_data_window::display_registers_from)
3807 (tui_data_item_window::rerender): Update.
3808 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3809 * tui/tui-io.c (tui_expand_tabs): Remove.
3810
ea68593b
TT
38112020-07-01 Tom Tromey <tom@tromey.com>
3812
3813 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3814
a8caed5d
FS
38152020-07-01 Fangrui Song <maskray@google.com>
3816
3817 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3818
9cdf9820
AKS
38192020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3820
3821 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3822 forms for DW_AT_associated and DW_AT_allocated attributes,
3823 which is already checked in function attr_to_dynamic_prop.
3824
a1520ad8
TT
38252020-06-30 Tom Tromey <tromey@adacore.com>
3826
3827 * dwarf2/read.c (quirk_rust_enum): Correctly call
3828 alloc_rust_variant for default-less enum.
3829
5ac58899
TT
38302020-06-30 Tom Tromey <tromey@adacore.com>
3831
3832 PR build/26183:
3833 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3834 gdb::to_string.
3835
19b187a9
SM
38362020-06-29 Simon Marchi <simon.marchi@efficios.com>
3837
3838 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3839 * gdbarch.h: Re-generate.
3840
cd4c4c07
TT
38412020-06-28 Tom Tromey <tom@tromey.com>
3842
3843 * command.h (cmd_types): Remove.
3844 (cmd_type): Don't declare.
3845 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3846 typedef.
3847 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3848 * cli/cli-decode.c (cmd_type): Remove.
3849
05779d57
PA
38502020-06-27 Pedro Alves <palves@redhat.com>
3851
3852 * fork-child.c (prefork_hook): Adjust.
3853 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3854 Delete.
3855 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3856 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3857 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3858 Remove declarations.
3859 (struct inferior) <set_tty, tty>: New methods.
3860 (struct inferior) <terminal>: Rename to ...
3861 (struct inferior) <m_terminal>: ... this and make private.
3862 * main.c (captured_main_1): Adjust.
3863 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3864 (mi_cmd_inferior_tty_show): Adjust.
3865 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3866 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3867
1776e3e5
NA
38682020-06-26 Nick Alcock <nick.alcock@oracle.com>
3869
3870 * configure.ac: Add --enable-libctf: handle --disable-static
3871 properly.
3872 * acinclude.m4: sinclude ../config/enable.m4.
3873 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3874 (LIBCTF): Substitute in.
3875 (CTF_DEPS): New, likewise.
3876 (CLIBS): libctf needs symbols from libbfd: move earlier.
3877 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3878 flags.
3879 * ctfread.c: Surround in ENABLE_LIBCTF.
3880 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3881 * configure: Regenerate.
3882 * config.in: Likewise.
3883
58373b80
SM
38842020-06-25 Simon Marchi <simon.marchi@efficios.com>
3885
3886 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3887
277474ee
SM
38882020-06-25 Simon Marchi <simon.marchi@efficios.com>
3889
3890 * inferior.h (struct inferior) <terminal>: Change type to
3891 gdb::unique_xmalloc_ptr<char>.
3892 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3893 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3894 field, adjust to unique pointer.
3895 (get_inferior_io_terminal): Adjust to unique pointer.
3896
6d74da72
AB
38972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3898
3899 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3900 registers, not just the known core set of registers.
3901
2e52d038
AB
39022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3903
3904 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3905 fflags, frm, and fcsr registers.
3906 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3907 restore groups.
3908 (riscv_tdesc_unknown_reg): New function.
3909 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3910 tdesc_use_registers.
3911 * riscv-tdep.h (struct gdbarch_tdep): Add
3912 unknown_csrs_first_regnum, unknown_csrs_count,
3913 duplicate_fflags_regnum, duplicate_frm_regnum, and
3914 duplicate_fcsr_regnum fields.
3915
be64fd07
AB
39162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3917
3918 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3919 callback, use the callback (when not null) to help number unknown
3920 registers.
3921 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3922 (tdesc_use_registers): Add extra parameter to declaration.
3923
3b9fce96
AB
39242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3925
3926 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3927 in the file.
3928 (class riscv_pending_register_alias): Likewise.
3929 (riscv_register_feature::register_info): Change 'required_p' field
3930 to 'required', and change its type. Add 'check' member function.
3931 (riscv_register_feature::register_info::check): Define new member
3932 function.
3933 (riscv_xreg_feature): Change initialisation of 'required' field.
3934 (riscv_freg_feature): Likewise.
3935 (riscv_virtual_feature): Likewise.
3936 (riscv_csr_feature): Likewise.
3937 (riscv_check_tdesc_feature): Take extra parameter, the csr
3938 tdesc_feature, rewrite the function to use the new
3939 riscv_register_feature::register_info::check function.
3940 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3941
865bad26
AB
39422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3943
3944 * features/Makefile: Remove all references to the deleted files
3945 below.
3946 * features/riscv/32bit-csr.c: Deleted.
3947 * features/riscv/32bit-csr.xml: Deleted.
3948 * features/riscv/64bit-csr.c: Deleted.
3949 * features/riscv/64bit-csr.xml: Deleted.
3950 * features/riscv/rebuild-csr-xml.sh: Deleted.
3951
ed69cbc8
AB
39522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3953
3954 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3955 whitespace error for declaration of names member variable.
3956 (struct riscv_register_feature): Add new prefer_first_name member
3957 variable, and fix whitespace error in declaration of registers.
3958 (riscv_xreg_feature): Initialize prefer_first_name field.
3959 (riscv_freg_feature): Likewise.
3960 (riscv_virtual_feature): Likewise.
3961 (riscv_csr_feature): Likewise.
3962 (riscv_register_name): Expand on comments. Remove register name
3963 modifications for CSR and virtual registers.
3964
4445e8f5
AB
39652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3966
3967 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3968 errors.
3969
767a879e
AB
39702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3971
3972 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3973 riscv-opc.h.
3974 (class riscv_pending_register_alias): New class.
3975 (riscv_check_tdesc_feature): Take vector of pending aliases and
3976 populate it as appropriate.
3977 (riscv_setup_register_aliases): Delete.
3978 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3979 to riscv_check_tdesc_feature in all cases. Use the vector to
3980 create the register aliases.
3981
bb6e55f3
RO
39822020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3983
3984 * sol2-tdep.c (sol2_static_transform_name): Remove.
3985 (sol2_init_abi): Don't register it.
3986 * gdbarch.sh (static_transform_name): Remove.
3987 * gdbarch.c, gdbarch.h: Regenerate.
3988
3989 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3990 gdbarch_static_transform_name.
3991 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3992 * stabsread.c (define_symbol) <'X'>: Remove.
3993 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3994 handling.
3995 <'V'>: Likewise.
3996 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3997 <'S'>: Remove call to gdbarch_static_transform_name.
3998
c6d36836
RO
39992020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4000
4001 * procfs.c (procfs_pre_trace): New function.
4002 (procfs_target::create_inferior): Pass it to fork_inferior.
4003
a7e6196b
RO
40042020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4005
4006 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4007 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4008 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4009 sol2-tdep.o, sparc-sol2-tdep.o.
4010 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4011 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4012 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4013 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4014
d412e696
RO
40152020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4016
4017 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4018 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4019 Call sol2_init_abi.
4020 Remove calls to set_gdbarch_skip_solib_resolver,
4021 set_gdbarch_core_pid_to_str.
4022 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4023 (i386_sol2_static_transform_name): Remove.
4024 (i386_sol2_init_abi): Call sol2_init_abi.
4025 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4026 set_gdbarch_static_transform_name,
4027 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4028 Use sol2_sigtramp_p.
4029 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4030 (sol2_sigtramp_p): New function.
4031 (sol2_static_transform_name): New function.
4032 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4033 (sol2_init_abi): New function.
4034 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4035 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4036 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4037 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4038 (sparc_sol2_static_transform_name): Remove.
4039 (sparc32_sol2_init_abi): Call sol2_init_abi.
4040 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4041 set_gdbarch_static_transform_name,
4042 set_gdbarch_skip_solib_resolver,
4043 set_gdbarch_core_pid_to_str.
4044 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4045 (sparc_sol2_static_transform_name): Remove
4046 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4047 call sol2_sigtramp_p.
4048 (sparc64_sol2_init_abi): Call sol2_init_abi.
4049 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4050 set_gdbarch_static_transform_name,
4051 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4052
a8654e7d
PW
40532020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4054
4055 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4056 * exec.c (validate_exec_file): If from_tty, set both
4057 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4058 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4059 and from_tty, unconditionally ask a confirmation.
4060
caa7fd04
AB
40612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4062
4063 * target-descriptions.c (tdesc_architecture_name): Protect against
4064 NULL pointer dereference.
4065 (maint_print_xml_tdesc_cmd): New function.
4066 (_initialize_target_descriptions): Register new 'maint print
4067 xml-tdesc' command and give it the filename completer.
4068 * NEWS: Mention new 'maint print xml-tdesc' command.
4069
fbf42f4e
AB
40702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4071
4072 * target-descriptions.c (class tdesc_compatible_info): New class.
4073 (struct target_desc): Change type of compatible vector.
4074 (tdesc_compatible_p): Update for change in type of
4075 target_desc::compatible.
4076 (tdesc_compatible_info_list): New function.
4077 (tdesc_compatible_info_arch_name): New function.
4078 (tdesc_add_compatible): Update for change in type of
4079 target_desc::compatible.
4080 (print_c_tdesc::visit_pre): Likewise.
4081
20821f4e
AB
40822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4083
4084 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4085 whitespace to underscore.
4086 (maint_print_c_tdesc_cmd): Use fake filename for target
4087 descriptions that came from the target.
4088 (_initialize_target_descriptions): Add filename command completion
4089 for 'maint print c-tdesc'.
4090
1fb5ee62
SM
40912020-06-23 Simon Marchi <simon.marchi@efficios.com>
4092
4093 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4094 lines.
4095
fc3ecb3e
SM
40962020-06-23 Simon Marchi <simon.marchi@efficios.com>
4097
4098 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4099 lines.
4100 (dwarf2_find_location_expression): Likewise.
4101 (call_site_parameter_matches): Likewise.
4102 (dwarf2_compile_expr_to_ax): Likewise.
4103 (disassemble_dwarf_expression): Likewise.
4104 (loclist_describe_location): Likewise.
4105
236ef034
PA
41062020-06-23 Pedro Alves <palves@redhat.com>
4107
4108 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4109 progspace-and-thread.h. Include scoped-mock-context.h instead.
4110 (register_to_value_test): Use scoped_mock_context.
4111 * regcache.c: Include "scoped-mock-context.h".
4112 (cooked_read_test): Don't error out if a target is already pushed.
4113 Use scoped_mock_context. Adjust.
4114 * scoped-mock-context.h: New file.
4115
39e7ecca
AB
41162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4117
4118 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4119 initializer.
4120 (ada_language::is_string_type_p): New member function.
4121 * c-lang.c (c_language_data): Delete la_is_string_type_p
4122 initializer.
4123 (cplus_language_data): Likewise.
4124 (asm_language_data): Likewise.
4125 (minimal_language_data): Likewise.
4126 * d-lang.c (d_language_data): Likewise.
4127 * f-lang.c (f_is_string_type_p): Delete function, implementation
4128 moved to f_language::is_string_type_p.
4129 (f_language_data): Delete la_is_string_type_p initializer.
4130 (f_language::is_string_type_p): New member function,
4131 implementation from f_is_string_type_p.
4132 * go-lang.c (go_is_string_type_p): Delete function, implementation
4133 moved to go_language::is_string_type_p.
4134 (go_language_data): Delete la_is_string_type_p initializer.
4135 (go_language::is_string_type_p): New member function,
4136 implementation from go_is_string_type_p.
4137 * language.c (language_defn::is_string_type_p): Define new member
4138 function.
4139 (default_is_string_type_p): Make static, add comment copied from
4140 header file.
4141 (unknown_language_data): Delete la_is_string_type_p initializer.
4142 (unknown_language::is_string_type_p): New member function.
4143 (auto_language_data): Delete la_is_string_type_p initializer.
4144 (auto_language::is_string_type_p): New member function.
4145 * language.h (language_data): Delete la_is_string_type_p field.
4146 (language_defn::is_string_type_p): Declare new function.
4147 (default_is_string_type_p): Delete desclaration, move comment to
4148 definition.
4149 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4150 moved to m2_language::is_string_type_p.
4151 (m2_language_data): Delete la_is_string_type_p initializer.
4152 (m2_language::is_string_type_p): New member function,
4153 implementation from m2_is_string_type_p.
4154 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4155 initializer.
4156 * opencl-lang.c (opencl_language_data): Likewise.
4157 * p-lang.c (pascal_is_string_type_p): Delete function,
4158 implementation moved to pascal_language::is_string_type_p.
4159 (pascal_language_data): Delete la_is_string_type_p initializer.
4160 (pascal_language::is_string_type_p): New member function,
4161 implementation from pascal_is_string_type_p.
4162 * rust-lang.c (rust_is_string_type_p): Delete function,
4163 implementation moved to rust_language::is_string_type_p.
4164 (rust_language_data): Delete la_is_string_type_p initializer.
4165 (rust_language::is_string_type_p): New member function,
4166 implementation from rust_is_string_type_p.
4167 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4168 is_string_type_p.
4169
4ffc13fb
AB
41702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4171
4172 * ada-lang.c (ada_language_data): Delete la_print_typedef
4173 initializer.
4174 (ada_language::print_typedef): New member function.
4175 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4176 (cplus_language_data): Likewise.
4177 (asm_language_data): Likewise.
4178 (minimal_language_data): Likewise.
4179 * d-lang.c (d_language_data): Likewise.
4180 * f-lang.c (f_language_data): Likewise.
4181 (f_language::print_typedef): New member function.
4182 * go-lang.c (go_language_data): Delete la_print_typedef
4183 initializer.
4184 * language.c (language_defn::print_typedef): Define member
4185 function.
4186 (unknown_language_data): Delete la_print_typedef initializer.
4187 (unknown_language::print_typedef): New member function.
4188 (auto_language_data): Delete la_print_typedef initializer.
4189 (auto_language::print_typedef): New member function.
4190 * language.h (language_data): Delete la_print_typedef field.
4191 (language_defn::print_typedef): Declare new member function.
4192 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4193 (default_print_typedef): Delete declaration.
4194 * m2-lang.c (m2_language_data): Delete la_print_typedef
4195 initializer.
4196 (m2_language::print_typedef): New member function.
4197 * objc-lang.c (objc_language_data): Delete la_print_typedef
4198 initializer.
4199 * opencl-lang.c (opencl_language_data): Likewise.
4200 * p-lang.c (pascal_language_data): Likewise.
4201 (pascal_language::print_typedef): New member function.
4202 * rust-lang.c (rust_print_typedef): Delete function,
4203 implementation moved to rust_language::print_typedef.
4204 (rust_language): Delete la_print_typedef initializer.
4205 (rust_language::print_typedef): New member function,
4206 implementation from rust_print_typedef.
4207 * typeprint.c (default_print_typedef): Delete.
4208
d711ee67
AB
42092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4210
4211 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4212 (ada_language::printstr): New member function.
4213 * c-lang.c (c_language_data): Delete la_printstr initializer.
4214 (cplus_language_data): Likewise.
4215 (asm_language_data): Likewise.
4216 (minimal_language_data): Likewise.
4217 * d-lang.c (d_language_data): Likewise.
4218 * f-lang.c (f_printstr): Rename to f_language::printstr.
4219 (f_language_data): Delete la_printstr initializer.
4220 (f_language::printstr): New member function, implementation from
4221 f_printstr.
4222 * go-lang.c (go_language_data): Delete la_printstr initializer.
4223 * language.c (language_defn::printstr): Define new member
4224 function.
4225 (unk_lang_printstr): Delete.
4226 (unknown_language_data): Delete la_printstr initializer.
4227 (unknown_language::printstr): New member function.
4228 (auto_language_data): Delete la_printstr initializer.
4229 (auto_language::printstr): New member function.
4230 * language.h (language_data): Delete la_printstr field.
4231 (language_defn::printstr): Declare new member function.
4232 (LA_PRINT_STRING): Update call to printstr.
4233 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4234 (m2_language_data): Delete la_printstr initializer.
4235 (m2_language::printstr): New member function, implementation from
4236 m2_printstr.
4237 * objc-lang.c (objc_language_data): Delete la_printstr
4238 initializer.
4239 * opencl-lang.c (opencl_language_data): Likewise.
4240 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4241 (pascal_language_data): Delete la_printstr initializer.
4242 (pascal_language::printstr): New member function, implementation
4243 from pascal_printstr.
4244 * p-lang.h (pascal_printstr): Delete declaration.
4245 * rust-lang.c (rust_printstr): Update header comment.
4246 (rust_language_data): Delete la_printstr initializer.
4247 (rust_language::printstr): New member function.
4248
52b50f2c
AB
42492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4250
4251 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4252 (ada_language::printchar): New member function.
4253 * c-lang.c (c_language_data): Delete la_printchar initializer.
4254 (cplus_language_data): Likewise.
4255 (asm_language_data): Likewise.
4256 (minimal_language_data): Likewise.
4257 * d-lang.c (d_language_data): Likewise.
4258 * f-lang.c (f_printchar): Rename to f_language::printchar.
4259 (f_language_data): Delete la_printchar initializer.
4260 (f_language::printchar): New member function, implementation from
4261 f_printchar.
4262 * go-lang.c (go_language_data): Delete la_printchar initializer.
4263 * language.c (unk_lang_printchar): Delete.
4264 (language_defn::printchar): Define new member function.
4265 (unknown_language_data): Delete la_printchar initializer.
4266 (unknown_language::printchar): New member function.
4267 (auto_language_data): Delete la_printchar initializer.
4268 (auto_language::printchar): New member function.
4269 * language.h (language_data): Delete la_printchar field.
4270 (language_defn::printchar): Declare new member function.
4271 (LA_PRINT_CHAR): Update call to printchar.
4272 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4273 (m2_language::printchar): New member function.
4274 * objc-lang.c (objc_language_data): Delete la_printchar
4275 initializer.
4276 * opencl-lang.c (opencl_language_data): Likewise.
4277 * p-lang.c (pascal_language_data): Delete la_printchar
4278 initializer.
4279 (pascal_language::printchar): New member function.
4280 * rust-lang.c (rust_printchar): Rename to
4281 rust_language::printchar.
4282 (rust_language_data): Delete la_printchar initializer.
4283 (rust_language::printchar): New member function, implementation
4284 from rust_printchar.
4285
ec8cec5b
AB
42862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4287
4288 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4289 (ada_language_data): Delete la_emitchar initializer.
4290 (ada_language::emitchar): New member function, implementation from
4291 emit_char.
4292 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4293 (cplus_language_data): Likewise.
4294 (asm_language_data): Likewise.
4295 (minimal_language_data): Likewise.
4296 * d-lang.c (d_language_data): Likewise.
4297 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4298 (f_language_data): Delete la_emitchar initializer.
4299 (f_language::emitchar): New member function, implementation from
4300 f_emit_char.
4301 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4302 * language.c (unk_lang_emit_char): Delete.
4303 (language_defn::emitchar): New member function definition.
4304 (unknown_language_data): Delete la_emitchar initializer.
4305 (unknown_language::emitchar): New member function.
4306 (auto_language_data): Delete la_emitchar initializer.
4307 (auto_language::emitchar): New member function.
4308 * language.h (language_data): Delete la_emitchar field.
4309 (language_defn::emitchar): New member field declaration.
4310 (LA_EMIT_CHAR): Update call to emitchar.
4311 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4312 (m2_language_data): Delete la_emitchar initializer.
4313 (m2_language::emitchar): New member function, implementation from
4314 m2_emit_char.
4315 * objc-lang.c (objc_language_data): Delete la_emitchar
4316 initializer.
4317 * opencl-lang.c (opencl_language_data): Likewise.
4318 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4319 (pascal_language_data): Delete la_emitchar initializer.
4320 (pascal_language::emitchar): New member function, implementation
4321 from pascal_emit_char.
4322 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4323 (rust_language_data): Delete la_emitchar initializer.
4324 (rust_language::emitchar): New member function, implementation
4325 from rust_emitchar.
4326
1bf9c363
AB
43272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4328
4329 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4330 (ada_language_data): Delete la_post_parser initializer.
4331 (ada_language::post_parser): New member function.
4332 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4333 (cplus_language_data): Likewise.
4334 (asm_language_data): Likewise.
4335 (minimal_language_data): Likewise.
4336 * d-lang.c (d_language_data): Likewise.
4337 * f-lang.c (f_language_data): Likewise.
4338 * go-lang.c (go_language_data): Likewise.
4339 * language.c (unknown_language_data): Likewise.
4340 (auto_language_data): Likewise.
4341 * language.h (language_data): Delete la_post_parser field.
4342 (language_defn::post_parser): New member function.
4343 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4344 * objc-lang.c (objc_language_data): Likewise.
4345 * opencl-lang.c (opencl_language_data): Likewise.
4346 * p-lang.c (pascal_language_data): Likewise.
4347 * parse.c (parse_exp_in_context): Update call to post_parser.
4348 (null_post_parser): Delete definition.
4349 * parser-defs.h (null_post_parser): Delete declaration.
4350 * rust-lang.c (rust_language_data): Delete la_post_parser
4351 initializer.
4352
87afa652
AB
43532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4354
4355 * ada-lang.c (parse): Rename to ada_language::parser.
4356 (ada_language_data): Delete la_parser initializer.
4357 (ada_language::parser): New member function, implementation from
4358 parse.
4359 * c-lang.c (c_language_data): Delete la_parser initializer.
4360 (cplus_language_data): Likewise.
4361 (asm_language_data): Likewise.
4362 (minimal_language_data): Likewise.
4363 * d-lang.c (d_language_data): Likewise.
4364 (d_language::parser): New member function.
4365 * f-lang.c (f_language_data): Delete la_parser initializer.
4366 (f_language::parser): New member function.
4367 * go-lang.c (go_language_data): Delete la_parser initializer.
4368 (go_language::parser): New member function.
4369 * language.c (unk_lang_parser): Delete.
4370 (language_defn::parser): Define new member function.
4371 (unknown_language_data): Delete la_parser initializer.
4372 (unknown_language::parser): New member function.
4373 (auto_language_data): Delete la_parser initializer.
4374 (auto_language::parser): New member function.
4375 * language.h (language_data): Delete la_parser field.
4376 (language_defn::parser): Declare new member function.
4377 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4378 (m2_language::parser): New member function.
4379 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4380 * opencl-lang.c (opencl_language_data): Likewise.
4381 * p-lang.c (pascal_language_data): Likewise.
4382 (pascal_language::parser): New member function.
4383 * parse.c (parse_exp_in_context): Update call to parser.
4384 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4385 (rust_language::parser): New member function.
4386
37825800
AB
43872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4388
4389 * top.c (print_gdb_configuration): Print --with-python-libdir
4390 configuration value.
4391
5b860c93
PW
43922020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4393
4394 * NEWS: Mention change to the alias command.
4395
cf00cd6f
PW
43962020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4397
4398 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4399 (alias_command_completer)
4400 (make_alias_options_def_group): New functions.
4401 (alias_opts, alias_option_defs): New struct and array.
4402 (alias_usage_error): Update usage.
4403 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4404 Use option framework.
4405 (_initialize_cli_cmds): Update alias command help.
4406 Update aliases command help.
4407 (show_user):
4408 Add NULL for new default_args lookup_cmd argument.
4409 (valid_command_p): Rename to validate_aliased_command.
4410 Add NULL for new default_args lookup_cmd argument. Verify that the
4411 aliased_command has no default args.
4412 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4413 (lookup_cmd_1, lookup_cmd): New argument default_args.
4414 (add_alias_cmd):
4415 Add NULL for new default_args lookup_cmd argument.
4416 (print_help_for_command): Show default args under the layout
4417 alias some_alias = some_aliased_cmd some_alias_default_arg.
4418 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4419 xfree default_args in destructor.
4420 * cli/cli-script.c (process_next_line, do_define_command):
4421 Add NULL for new default_args lookup_cmd argument.
4422 * command.h: Declare new default_args argument in lookup_cmd
4423 and lookup_cmd_1.
4424 * completer.c (complete_line_internal_1):
4425 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4426 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4427 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4428 Likewise.
4429 * infcmd.c (_initialize_infcmd): Likewise.
4430 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4431 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4432 * python/py-param.c (add_setshow_generic): Likewise.
4433 * remote.c (_initialize_remote): Likewise.
4434 * top.c (execute_command): Prepend default_args if command has some.
4435 (set_verbose):
4436 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4437 * tracepoint.c (validate_actionline, encode_actions_1):
4438 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4439
bd920864
TBA
44402020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4441
4442 * jit.c (jit_read_descriptor): Use bool as the return type.
4443 (jit_breakpoint_re_set_internal): Use bool as the return type.
4444 Invert the return value logic; return true if the jit breakpoint
4445 has been successfully initialized.
4446 (jit_inferior_init): Update the call to
4447 jit_breakpoint_re_set_internal.
4448
f8098322
PA
44492020-06-22 Pedro Alves <palves@redhat.com>
4450
4451 PR gdb/25939
4452 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4453 Use the current inferior instead. Don't return
4454 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4455 wait again.
4456 * sol-thread.c (sol_thread_target::wait): Don't reference
4457 inferior_ptid.
4458 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4459 (sol_update_thread_list_callback): Use the current inferior's pid
4460 instead of inferior_ptid.
4461
196535a6
RO
44622020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4463
4464 * procfs.c: Cleanup many comments.
4465
4466 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4467 (AFTER_WATCHFLAG): Replace by value.
4468
4469 (MAIN_PROC_NAME_FORMAT): Inline ...
4470 (create_procinfo): ... here.
4471
4472 (procfs_debug_inferior): Remove SYS_exec handling.
4473 (syscall_is_exec): Likewise.
4474 (procfs_set_exec_trap): Likewise.
4475
4476 (syscall_is_lwp_exit): Inline in callers.
4477 (syscall_is_exit): Likewise.
4478 (syscall_is_exec): Likewise.
4479 (syscall_is_lwp_create): Likewise.
4480
4481 (invalidate_cache): Remove #if 0 code.
4482
4483 (make_signal_thread_runnable): Remove.
4484 (procfs_target::resume): Remove #if 0 code.
4485
cf6f3e86
RO
44862020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4487
4488 PR gdb/25939
4489 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4490 call ...
4491 (procfs_target::create_inferior): ... here.
4492
48e9cc84
PW
44932020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4494
4495 * exec.c (validate_exec_file): Ensure the build-id is up to
4496 date by calling reopen_exec_file (that checks file timestamp
4497 to decide to re-read the file).
4498
3922b302
PA
44992020-06-18 Pedro Alves <palves@redhat.com>
4500
4501 PR gdb/25412
4502 * gdbthread.h (delete_thread, delete_thread_silent)
4503 (find_thread_ptid): Update comments.
4504 * thread.c (current_thread_): New global.
4505 (is_current_thread): Move higher, and reimplement.
4506 (inferior_thread): Reimplement.
4507 (set_thread_exited): Use bool. Add assertions.
4508 (add_thread_silent): Simplify thread-reuse handling by always
4509 calling delete_thread.
4510 (delete_thread): Remove intro comment.
4511 (find_thread_ptid): Skip exited threads.
4512 (switch_to_thread_no_regs): Write to current_thread_.
4513 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4514 INFERIOR_PTID. Clear current_thread_.
4515
6dbdab44
PA
45162020-06-18 Pedro Alves <palves@redhat.com>
4517
4518 * aix-thread.c (pd_update): Use switch_to_thread.
4519
2da4b788
PA
45202020-06-18 Pedro Alves <palves@redhat.com>
4521
4522 * ravenscar-thread.c (ravenscar_thread_target): Update.
4523 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4524 (ravenscar_thread_target::add_active_thread): ... this. Don't
4525 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4526 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4527
50838d1b
PA
45282020-06-18 Pedro Alves <palves@redhat.com>
4529
4530 * nat/windows-nat.c (current_windows_thread): Remove.
4531 * nat/windows-nat.h (current_windows_thread): Remove.
4532 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4533 Adjust.
4534 (display_selectors): Adjust to fetch the current
4535 windows_thread_info based on inferior_ptid.
4536 (fake_create_process): No longer write to current_windows_thread.
4537 (windows_nat_target::get_windows_debug_event):
4538 Don't set inferior_ptid or current_windows_thread.
4539 (windows_nat_target::wait): Adjust to not rely on
4540 current_windows_thread.
4541 (do_initial_windows_stuff): Now a method of windows_nat_target.
4542 Switch to the last_ptid thread.
4543 (windows_nat_target::attach): Adjust.
4544 (windows_nat_target::detach): Use switch_to_no_thread instead of
4545 writing to inferior_ptid directly.
4546 (windows_nat_target::create_inferior): Adjust.
4547
31ce04e9
PA
45482020-06-18 Pedro Alves <palves@redhat.com>
4549
4550 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4551
1ee1a363
PA
45522020-06-18 Pedro Alves <palves@redhat.com>
4553
4554 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4555 after creating it, instead of writing to inferior_ptid. Don't
4556 write to inferior_ptid.
4557
6d350754
PA
45582020-06-18 Pedro Alves <palves@redhat.com>
4559
4560 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4561
5d971d48
PA
45622020-06-18 Pedro Alves <palves@redhat.com>
4563
4564 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4565 it, instead of writing to inferior_ptid.
4566
86e57d1b
PA
45672020-06-18 Pedro Alves <palves@redhat.com>
4568
4569 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4570 to inferior_ptid.
4571
f2e1c129
PA
45722020-06-18 Pedro Alves <palves@redhat.com>
4573
4574 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4575 instead of writing to inferior_ptid directly.
4576
60db1b85
PA
45772020-06-18 Pedro Alves <palves@redhat.com>
4578
4579 * corelow.c (core_target::close): Use switch_to_no_thread instead
4580 of writing to inferior_ptid directly.
4581 (add_to_thread_list, core_target_open): Use switch_to_thread
4582 instead of writing to inferior_ptid directly.
4583
fe7d6a8d
PA
45842020-06-18 Pedro Alves <palves@redhat.com>
4585
4586 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4587 inferior_ptid.
4588 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4589 inferior_ptid.
4590 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4591 inferior_ptid directly.
4592 (darwin_nat_target::init_thread_list): Switch to thread, instead
4593 of writing to inferior_ptid.
4594 (darwin_nat_target::attach): Don't write to inferior_ptid.
4595 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4596
975f8708
PA
45972020-06-18 Pedro Alves <palves@redhat.com>
4598
4599 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4600 thread.
4601 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4602 Instead use switch_to_thread.
4603 (gnu_nat_target::detach): Use switch_to_no_thread
4604 instead of writing to inferior_ptid directly. Used passed-in
4605 inferior instead of looking up the inferior by pid.
4606
1a204730
PA
46072020-06-18 Pedro Alves <palves@redhat.com>
4608
4609 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4610 inferior_ptid.
4611
ebe84f23
PA
46122020-06-18 Pedro Alves <palves@redhat.com>
4613
4614 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4615 inferior_ptid.
4616 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4617 thread.
4618 (nto_procfs_target::detach): Avoid referencing
4619 inferior_ptid. Use switch_to_no_thread instead of writing to
4620 inferior_ptid directly.
4621 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4622 instead of writing to inferior_ptid directly.
4623 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4624 to thread.
4625
191f02e5
PA
46262020-06-18 Pedro Alves <palves@redhat.com>
4627
4628 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4629 after creating it, instead of writing to inferior_ptid.
4630 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4631 to inferior_ptid directly.
4632 (gdbsim_target::wait): Don't write to inferior_ptid.
4633
0ac55310
PA
46342020-06-18 Pedro Alves <palves@redhat.com>
4635
4636 * remote.c (remote_target::remote_notice_new_inferior): Use
4637 switch_to_thread instead of writing to inferior_ptid directly.
4638 (remote_target::add_current_inferior_and_thread): Use
4639 switch_to_no_thread instead of writing to inferior_ptid directly.
4640 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4641 and switch_to_thread instead of using set_current_inferior or
4642 writing to inferior_ptid directly.
4643
5233f39b
PA
46442020-06-18 Pedro Alves <palves@redhat.com>
4645
4646 * tracectf.c (ctf_target_open): Switch to added thread instead of
4647 writing to inferior_ptid directly.
4648 (ctf_target::close): Use switch_to_no_thread instead of writing to
4649 inferior_ptid directly.
4650
087e161b
PA
46512020-06-18 Pedro Alves <palves@redhat.com>
4652
4653 * tracefile-tfile.c (tfile_target_open): Don't write to
4654 inferior_ptid directly, instead switch to added thread.
4655 (tfile_target::close): Use switch_to_no_thread instead of writing
4656 to inferior_ptid directly.
4657
7fb43e53
PA
46582020-06-18 Pedro Alves <palves@redhat.com>
4659
4660 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4661 (procfs_target::detach): Use switch_to_no_thread
4662 instead of writing to inferior_ptid directly.
4663 (do_attach): Change return type to void. Switch to the added
4664 thread.
4665 (procfs_target::create_inferior): Switch to the added thread.
4666 (procfs_do_thread_registers): Don't write to inferior_ptid.
4667
18493a00
PA
46682020-06-18 Pedro Alves <palves@redhat.com>
4669
4670 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4671 of writing to inferior_ptid.
4672 (scoped_restore_exited_inferior): Delete.
4673 (handle_vfork_child_exec_or_exit): Simplify using
4674 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4675 instead of writing to inferior_ptid.
4676 (THREAD_STOPPED_BY): Delete.
4677 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4678 (thread_stopped_by_hw_breakpoint): Delete.
4679 (save_waitstatus): Use
4680 scoped_restore_current_thread+switch_to_thread, and call
4681 target_stopped_by_watchpoint instead of
4682 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4683 instead of thread_stopped_by_sw_breakpoint, and
4684 target_stopped_by_hw_breakpoint instead of
4685 thread_stopped_by_hw_breakpoint.
4686 (handle_inferior_event)
4687 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4688 inferior_ptid directly, nor
4689 set_current_inferior/set_current_program_space. Use
4690 switch_to_thread / switch_to_inferior_no_thread instead.
4691
a0776b13
PA
46922020-06-18 Pedro Alves <palves@redhat.com>
4693
4694 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4695 instead of writing to inferior_ptid.
4696
6155c136
PA
46972020-06-18 Pedro Alves <palves@redhat.com>
4698
4699 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4700 added thread.
4701 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4702 to the added thread.
4703 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4704 instead of writing to inferior_ptid.
4705
c5316fc6
PA
47062020-06-18 Pedro Alves <palves@redhat.com>
4707
4708 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4709 (register_to_value_test): Mock a program_space too. Heap-allocate
4710 the address space. Don't write to inferior_ptid. Use
4711 switch_to_thread instead.
4712
8df01799
PA
47132020-06-18 Pedro Alves <palves@redhat.com>
4714
4715 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4716 Delete.
4717 (find_signalled_thread()): New, factored out from
4718 linux_make_corefile_notes and adjusted to handle exited threads.
4719 (linux_make_corefile_notes): Adjust to use the new
4720 find_signalled_thread.
4721
41792d68
PA
47222020-06-18 Pedro Alves <palves@redhat.com>
4723
4724 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4725 of saving/restoring inferior_ptid.
4726
612f258a
TT
47272020-06-17 Tom Tromey <tom@tromey.com>
4728
4729 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4730 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4731 declare.
4732 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4733
efb763a5
SM
47342020-06-15 Simon Marchi <simon.marchi@efficios.com>
4735
4736 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4737 of partial symtabs.
4738
2951f6c0
SM
47392020-06-17 Simon Marchi <simon.marchi@efficios.com>
4740
4741 * regformats/reg-arm.dat: Remove.
4742 * regformats/reg-bfin.dat: Remove.
4743 * regformats/reg-cris.dat: Remove.
4744 * regformats/reg-crisv32.dat: Remove.
4745 * regformats/reg-m32r.dat: Remove.
4746 * regformats/reg-tilegx.dat: Remove.
4747 * regformats/reg-tilegx32.dat: Remove.
4748
7d458ea5
SM
47492020-06-17 Simon Marchi <simon.marchi@efficios.com>
4750
4751 * features/Makefile (WHICH): Remove arm files.
4752 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4753 * regformats/arm/arm-with-neon.dat: Remove.
4754 * regformats/arm/arm-with-vfpv2.dat: Remove.
4755 * regformats/arm/arm-with-vfpv3.dat: Remove.
4756
3af96c0d
SM
47572020-06-17 Simon Marchi <simon.marchi@efficios.com>
4758
4759 * features/Makefile (XMLTOC): Remove rx.xml.
4760
b25e22fd
PA
47612020-06-17 Pedro Alves <palves@redhat.com>
4762
4763 * gdbthread.h (thread_control_state) <trap_expected> Update
4764 comments.
4765
a78a19b1
AB
47662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4767
4768 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4769 ada_language::lookup_symbol_nonlocal.
4770 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4771 (ada_language::lookup_symbol_nonlocal): New member function,
4772 implementation from ada_lookup_symbol_nonlocal.
4773 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4774 initializer.
4775 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4776 initializer.
4777 (cplus_language::lookup_symbol_nonlocal): New member function.
4778 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4779 (minimal_language_data) Likewise.
4780 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4781 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4782 initializer.
4783 (d_language::lookup_symbol_nonlocal): New member function.
4784 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4785 initializer.
4786 (f_language::lookup_symbol_nonlocal): New member function.
4787 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4788 initializer.
4789 * language.c (unknown_language_data): Likewise.
4790 (auto_language_data): Likewise.
4791 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4792 field.
4793 (language_defn::lookup_symbol_nonlocal): New member function.
4794 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4795 initializer.
4796 * objc-lang.c (objc_language_data): Likewise.
4797 * opencl-lang.c (opencl_language_data): Likewise.
4798 * p-lang.c (pascal_language_data): Likewise.
4799 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4800 rust_language::lookup_symbol_nonlocal.
4801 (rust_language_data): Delete la_lookup_symbol_nonlocal
4802 initializer.
4803 (rust_language::lookup_symbol_nonlocal): New member function,
4804 implementation from rust_lookup_symbol_nonlocal.
4805 * symtab.c (lookup_symbol_aux): Update call to
4806 lookup_symbol_nonlocal.
4807 (basic_lookup_symbol_nonlocal): Rename to...
4808 (language_defn::lookup_symbol_nonlocal): ...this, and update
4809 header comment. Remove language_defn parameter, and replace with
4810 uses of `this'.
4811 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4812
ebe2334e
AB
48132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4814
4815 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4816 initializer.
4817 (ada_language::value_print_inner): New member function.
4818 * c-lang.c (c_language_data): Delete la_value_print_inner
4819 initializer.
4820 (cplus_language_data): Likewise.
4821 (asm_language_data): Likewise.
4822 (minimal_language_data): Likewise.
4823 * d-lang.c (d_language_data): Likewise.
4824 (d_language::value_print_inner): New member function.
4825 * f-lang.c (f_language_data): Delete la_value_print_inner
4826 initializer.
4827 (f_language::value_print_inner): New member function.
4828 * f-lang.h (f_value_print_innner): Rename to...
4829 (f_value_print_inner): ...this (note spelling of 'inner').
4830 * f-valprint.c (f_value_print_innner): Rename to...
4831 (f_value_print_inner): ...this (note spelling of 'inner').
4832 * go-lang.c (go_language_data): Delete la_value_print_inner
4833 initializer.
4834 (go_language::value_print_inner): New member function.
4835 * language.c (language_defn::value_print_inner): Define new member
4836 function.
4837 (unk_lang_value_print_inner): Delete.
4838 (unknown_language_data): Delete la_value_print_inner initializer.
4839 (unknown_language::value_print_inner): New member function.
4840 (auto_language_data): Delete la_value_print_inner initializer.
4841 (auto_language::value_print_inner): New member function.
4842 * language.h (language_data): Delete la_value_print_inner field.
4843 (language_defn::value_print_inner): Delcare new member function.
4844 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4845 initializer.
4846 (m2_language::value_print_inner): New member function.
4847 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4848 initializer.
4849 * opencl-lang.c (opencl_language_data): Likewise.
4850 * p-lang.c (pascal_language_data): Likewise.
4851 (pascal_language::value_print_inner): New member function.
4852 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4853 initializer.
4854 (rust_language::value_print_inner): New member function.
4855 * valprint.c (do_val_print): Update call to value_print_inner.
4856
a1d1fa3e
AB
48572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4858
4859 * ada-lang.c (ada_language_data): Delete la_value_print
4860 initializer.
4861 (ada_language::value_print): New member function.
4862 * c-lang.c (c_language_data): Delete la_value_print initializer.
4863 (cplus_language_data): Likewise.
4864 (asm_language_data): Likewise.
4865 (minimal_language_data): Likewise.
4866 * d-lang.c (d_language_data): Likewise.
4867 * f-lang.c (f_language_data): Likewise.
4868 * go-lang.c (go_language_data): Likewise.
4869 * language.c (unk_lang_value_print): Delete.
4870 (language_defn::value_print): Define new member function.
4871 (unknown_language_data): Delete la_value_print initializer.
4872 (unknown_language::value_print): New member function.
4873 (auto_language_data): Delete la_value_print initializer.
4874 (auto_language::value_print): New member function.
4875 * language.h (language_data): Delete la_value_print field.
4876 (language_defn::value_print): Declare new member function.
4877 (LA_VALUE_PRINT): Update call to value_print.
4878 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4879 * objc-lang.c (objc_language_data): Likewise.
4880 * opencl-lang.c (opencl_language_data): Likewise.
4881 * p-lang.c (pascal_language_data): Likewise.
4882 (pascal_language::value_print): New member function.
4883 * rust-lang.c (rust_language_data): Delete la_value_print
4884 initializer.
4885
f16a9f57
AB
48862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4887
4888 * ada-lang.c (ada_watch_location_expression): Rename to
4889 ada_language::watch_location_expression.
4890 (ada_language_data): Delete la_watch_location_expression
4891 initializer.
4892 (ada_language::watch_location_expression): New member function,
4893 implementation from ada_watch_location_expression.
4894 * breakpoint.c (watch_command_1): Update call to
4895 watch_location_expression.
4896 * c-lang.c (c_watch_location_expression): Rename to
4897 language_defn::watch_location_expression.
4898 (c_language_data): Delete la_watch_location_expression
4899 initializer.
4900 (cplus_language_data): Likewise.
4901 (asm_language_data): Likewise.
4902 (minimal_language_data): Likewise.
4903 * c-lang.h (c_watch_location_expression): Delete declaration.
4904 * d-lang.c (d_language_data): Delete la_watch_location_expression
4905 initializer.
4906 * f-lang.c (f_language_data): Likewise.
4907 * go-lang.c (go_language_data): Likewise.
4908 * language.c (language_defn::watch_location_expression): Member
4909 function implementation from c_watch_location_expression.
4910 (unknown_language_data): Delete la_watch_location_expression
4911 initializer.
4912 (auto_language_data): Likewise.
4913 * language.h (language_data): Delete la_watch_location_expression
4914 field.
4915 (language_defn::watch_location_expression): Declare new member
4916 function.
4917 * m2-lang.c (m2_language_data): Delete
4918 la_watch_location_expression initializer.
4919 * objc-lang.c (objc_language_data): Likewise.
4920 * opencl-lang.c (opencl_language_data): Likewise.
4921 * p-lang.c (pascal_language_data): Likewise.
4922 * rust-lang.c (rust_watch_location_expression): Rename to
4923 rust_language::watch_location_expression.
4924 (rust_language_data): Delete la_watch_location_expression
4925 initializer.
4926 (rust_language::watch_location_expression): New member function,
4927 implementation from rust_watch_location_expression.
4928
7e56227d
AB
49292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4930
4931 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4932 ada_language::collect_symbol_completion_matches.
4933 (ada_language_data): Delete la_collect_symbol_completion_matches
4934 initializer.
4935 (ada_language::collect_symbol_completion_matches): New member
4936 function, implementation from
4937 ada_collect_symbol_completion_matches.
4938 * c-lang.c (c_language_data): Delete
4939 la_collect_symbol_completion_matches initializer.
4940 (cplus_language_data): Likewise.
4941 (asm_language_data): Likewise.
4942 (minimal_language_data): Likewise.
4943 * d-lang.c (d_language_data): Likewise.
4944 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4945 f_language::collect_symbol_completion_matches.
4946 (f_language_data): Delete la_collect_symbol_completion_matches
4947 initializer.
4948 (f_language::collect_symbol_completion_matches) New member
4949 function, implementation from f_collect_symbol_completion_matches.
4950 * go-lang.c (go_language_data): Delete
4951 la_collect_symbol_completion_matches initializer.
4952 * language.c (unknown_language_data): Likewise.
4953 (auto_language_data): Likewise.
4954 * language.h (language_data): Delete
4955 la_collect_symbol_completion_matches field.
4956 (language_defn::collect_symbol_completion_matches): New member
4957 function.
4958 * m2-lang.c (m2_language_data): Delete
4959 la_collect_symbol_completion_matches initializer.
4960 * objc-lang.c (objc_language_data): Likewise.
4961 * opencl-lang.c (opencl_language_data): Likewise.
4962 * p-lang.c (pascal_language_data): Likewise.
4963 * rust-lang.c (rust_language_data): Likewise.
4964 * symtab.c (default_collect_symbol_completion_matches): Delete.
4965 (collect_symbol_completion_matches): Update call to
4966 collect_symbol_completion_matches.
4967 (collect_symbol_completion_matches_type): Likewise.
4968 * symtab.h (default_collect_symbol_completion_matches): Delete
4969 declaration.
4970
53fc67f8
AB
49712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4972
4973 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4974 (ada_language_data): Delete la_word_break_characters initializer.
4975 (ada_language::word_break_characters): New member function.
4976 * c-lang.c (c_language_data): Delete la_word_break_characters
4977 initializer.
4978 (cplus_language_data): Likewise.
4979 (asm_language_data): Likewise.
4980 (minimal_language_data): Likewise.
4981 * completer.c: Update global comment.
4982 (advance_to_expression_complete_word_point): Update call to
4983 word_break_characters.
4984 (complete_files_symbols): Likewise.
4985 (complete_line_internal_1): Likewise.
4986 (default_completer_handle_brkchars): Likewise.
4987 (skip_quoted_chars): Likewise.
4988 * d-lang.c (d_language_data): Delete la_word_break_characters
4989 initializer.
4990 * f-lang.c (f_word_break_characters): Delete.
4991 (f_language_data): Delete la_word_break_characters initializer.
4992 (f_language::word_break_characters): New member function.
4993 * go-lang.c (go_language_data): Delete la_word_break_characters
4994 initializer.
4995 * language.c (unknown_language_data): Likewise.
4996 (auto_language_data): Likewise.
4997 * language.h (default_word_break_characters): Move declaration to
4998 earlier in the file.
4999 (language_data): Delete la_word_break_characters field.
5000 (language_defn::word_break_characters): New member function.
5001 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5002 initializer.
5003 * objc-lang.c (objc_language_data): Likewise.
5004 * opencl-lang.c (opencl_language_data): Likewise.
5005 * p-lang.c (pascal_language_data): Likewise.
5006 * rust-lang.c (rust_language_data): Likewise.
5007
c9debfb9
AB
50082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5009
5010 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5011 (ada_language_data): Delete la_get_symbol_name_matcher
5012 initializer.
5013 (language_defn::get_symbol_name_matcher_inner): New member
5014 function.
5015 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5016 initializer.
5017 (cplus_language_data): Likewise.
5018 (cplus_language::get_symbol_name_matcher_inner): New member
5019 function.
5020 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5021 (minimal_language_data): Likewise.
5022 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5023 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5024 initializer.
5025 * dictionary.c (iter_match_first_hashed): Update call to
5026 get_symbol_name_matcher.
5027 (iter_match_next_hashed): Likewise.
5028 (iter_match_next_linear): Likewise.
5029 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5030 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5031 initializer.
5032 (f_language::get_symbol_name_matcher_inner): New member function.
5033 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5034 initializer.
5035 * language.c (default_symbol_name_matcher): Update header comment,
5036 make static.
5037 (language_defn::get_symbol_name_matcher): New definition.
5038 (language_defn::get_symbol_name_matcher_inner): Likewise.
5039 (get_symbol_name_matcher): Delete.
5040 (unknown_language_data): Delete la_get_symbol_name_matcher
5041 initializer.
5042 (auto_language_data): Likewise.
5043 * language.h (language_data): Delete la_get_symbol_name_matcher
5044 field.
5045 (language_defn::get_symbol_name_matcher): New member function.
5046 (language_defn::get_symbol_name_matcher_inner): Likewise.
5047 (default_symbol_name_matcher): Delete declaration.
5048 * linespec.c (find_methods): Update call to
5049 get_symbol_name_matcher.
5050 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5051 initializer.
5052 * minsyms.c (lookup_minimal_symbol): Update call to
5053 get_symbol_name_matcher.
5054 (iterate_over_minimal_symbols): Likewise.
5055 * objc-lang.c (objc_language_data): Delete
5056 la_get_symbol_name_matcher initializer.
5057 * opencl-lang.c (opencl_language_data): Likewise.
5058 * p-lang.c (pascal_language_data): Likewise.
5059 * psymtab.c (psymbol_name_matches): Update call to
5060 get_symbol_name_matcher.
5061 * rust-lang.c (rust_language_data): Delete
5062 la_get_symbol_name_matcher initializer.
5063 * symtab.c (symbol_matches_search_name): Update call to
5064 get_symbol_name_matcher.
5065 (compare_symbol_name): Likewise.
5066
9a49ad8c
AB
50672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5068
5069 * ada-lang.c (ada_language_data): Delete la_compute_program
5070 initializer.
5071 * c-lang.c (c_language_data): Likewise.
5072 (c_language::compute_program): New member function.
5073 (cplus_language_data): Delete la_compute_program initializer.
5074 (cplus_language::compute_program): New member function.
5075 (asm_language_data): Delete la_compute_program initializer.
5076 (minimal_language_data): Likewise.
5077 * c-lang.h (c_compute_program): Update comment.
5078 (cplus_compute_program): Likewise.
5079 * compile/compile-c-support.c (c_compute_program): Likewise.
5080 (cplus_compute_program): Likewise.
5081 * compile/compile.c (compile_to_object): Update call to
5082 la_compute_program.
5083 * d-lang.c (d_language_data): Delete la_compute_program
5084 initializer.
5085 * f-lang.c (f_language_data): Likewise.
5086 * go-lang.c (go_language_data): Likewise.
5087 * language.c (unknown_language_data): Likewise.
5088 (auto_language_data): Likewise.
5089 * language.h (language_data): Delete la_compute_program field.
5090 (language_defn::compute_program): New member function.
5091 * m2-lang.c (m2_language_data): Delete la_compute_program
5092 initializer.
5093 * objc-lang.c (objc_language_data): Likewise.
5094 * opencl-lang.c (opencl_language_data): Likewise.
5095 * p-lang.c (pascal_language_data): Likewise.
5096 * rust-lang.c (rust_language_data): Likewise.
5097
eff93b4d
AB
50982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5099
5100 * ada-lang.c (ada_language_data) Delete
5101 la_class_name_from_physname initializer.
5102 * c-lang.c (c_language_data): Likewise.
5103 (cplus_language_data): Likewise.
5104 (cplus_language::class_name_from_physname): New member function.
5105 (asm_language_data): Delete la_class_name_from_physname
5106 initializer.
5107 (minimal_language_data): Likewise.
5108 * d-lang.c (d_language_data): Likewise.
5109 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5110 method on language_defn class.
5111 (guess_full_die_structure_name): Likewise.
5112 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5113 initializer.
5114 * go-lang.c (go_language_data): Likewise.
5115 * language.c (language_class_name_from_physname): Delete.
5116 (unk_lang_class_name): Delete.
5117 (unknown_language_data): Delete la_class_name_from_physname
5118 initializer.
5119 (auto_language_data): Likewise.
5120 * language.h (language_data): Delete la_class_name_from_physname
5121 field.
5122 (language_defn::class_name_from_physname): New function.
5123 (language_class_name_from_physname): Delete declaration.
5124 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5125 initializer.
5126 * objc-lang.c (objc_language_data): Likewise.
5127 * opencl-lang.c (opencl_language_data): Likewise.
5128 * p-lang.c (pascal_language_data): Likewise.
5129 * rust-lang.c (rust_language_data): Likewise.
5130
de543742
TT
51312020-06-16 Tom Tromey <tom@tromey.com>
5132
5133 * tui/tui-data.h (STATUS_NAME): New macro.
5134 * tui/tui-layout.c (tui_remove_some_windows)
5135 (initialize_known_windows, tui_register_window)
5136 (tui_layout_split::remove_windows, initialize_layouts)
5137 (tui_new_layout_command): Don't use hard-coded window names.
5138
a350efd4
TT
51392020-06-16 Tom Tromey <tom@tromey.com>
5140
5141 PR tui/25348:
5142 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5143 tui_initialize_readline. Only run once. Call rl_initialize.
5144 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5145 tui_initialize_readline.
5146 * tui/tui-io.c (tui_setup_io): Call
5147 tui_ensure_readline_initialized.
5148 * tui/tui-interp.c (tui_interp::init): Update.
5149
39ec0490
TT
51502020-06-16 Tom Tromey <tom@tromey.com>
5151
5152 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5153 Also preserve the status window.
5154
d2d1ea20
TT
51552020-06-16 Tom Tromey <tom@tromey.com>
5156
5157 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5158 where m_window==nullptr.
5159
66920317
TT
51602020-06-15 Tom Tromey <tromey@adacore.com>
5161
5162 * windows-nat.c (windows_nat::handle_output_debug_string):
5163 Update.
5164 (windows_nat::handle_ms_vc_exception): Update.
5165 * target.h (target_read_string): Change API.
5166 * target.c (target_read_string): Change API.
5167 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5168 Update.
5169 * solib-frv.c (frv_current_sos): Update.
5170 * solib-dsbt.c (dsbt_current_sos): Update.
5171 * solib-darwin.c (darwin_current_sos): Update.
5172 * linux-thread-db.c (inferior_has_bug): Update.
5173 * expprint.c (print_subexp_standard): Update.
5174 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5175 (ada_exception_message_1): Update.
5176
a5d871dd
TT
51772020-06-15 Tom Tromey <tromey@adacore.com>
5178
5179 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5180
670e35fa
TT
51812020-06-15 Tom Tromey <tromey@adacore.com>
5182
5183 * valprint.c (read_string): Update comment.
5184 * target.c (MIN): Remove.
5185 (target_read_string): Rewrite.
5186
f5272a3b
TT
51872020-06-15 Tom Tromey <tromey@adacore.com>
5188
5189 * corefile.c (read_memory_string): Remove.
5190 * ada-valprint.c (ada_value_print_ptr): Update.
5191 * ada-lang.h (ada_tag_name): Change return type.
5192 * ada-lang.c (type_from_tag): Update.
5193 (ada_tag_name_from_tsd): Change return type. Use
5194 target_read_string.
5195 (ada_tag_name): Likewise.
5196 * gdbcore.h (read_memory_string): Don't declare.
5197
2c074f49
HD
51982020-06-14 Hannes Domani <ssbssa@yahoo.de>
5199
5200 * symtab.c (rbreak_command): Ignore Windows drive colon.
5201
6a17d503
SM
52022020-06-12 Simon Marchi <simon.marchi@efficios.com>
5203
5204 * NEWS: Mention removed GDBserver host support.
5205
453c733f
NC
52062020-06-12 Nelson Chu <nelson.chu@sifive.com>
5207
5208 * features/riscv/rebuild-csr-xml.sh: Updated.
5209
2b4e6a3f
TT
52102020-06-11 Tom Tromey <tom@tromey.com>
5211
5212 PR gdb/18318:
5213 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5214
4412332f
JG
52152020-06-09 Jonny Grant <jg@jguk.org>
52162020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5217
5218 * main.c (captured_main_1): Don't print new line after help.
5219 (print_gdb_help): add mailing list and IRC channel information
5220 to --help. Add new lines between items in the footer. Remove
5221 quotes around bug url.
5222
2f33032a
KS
52232020-06-11 Keith Seitz <keiths@redhat.com>
5224
5225 PR gdb/21356
5226 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5227 Resolve typedefs for type length calculations.
5228
7ab96794
TV
52292020-06-10 Tom de Vries <tdevries@suse.de>
5230
5231 PR ada/24713
5232 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5233 (write_psymbols): Enable .gdb_index for ada.
5234 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5235 ada.
5236
e5f3ece2
TV
52372020-06-10 Tom de Vries <tdevries@suse.de>
5238
5239 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5240 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5241 namei" instead of "const char *name" argument.
5242 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5243 dw2_symtab_iter_init.
5244
940da03e
SM
52452020-06-08 Simon Marchi <simon.marchi@efficios.com>
5246
5247 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5248 to use type::field and field::type instead.
5249
b6cdac4b
SM
52502020-06-08 Simon Marchi <simon.marchi@efficios.com>
5251
5252 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5253 to use field::type instead.
5254
5d14b6e5
SM
52552020-06-08 Simon Marchi <simon.marchi@efficios.com>
5256
5257 * gdbtypes.h (struct field) <type, set_type>: New methods.
5258 Rename `type` field to...
5259 <m_type>: ... this. Change references throughout to use type or
5260 set_type methods.
5261 (FIELD_TYPE): Use field::type. Change call sites that modify
5262 the field's type to use field::set_type instead.
5263
3d967001
SM
52642020-06-08 Simon Marchi <simon.marchi@efficios.com>
5265
5266 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5267 to use type::index_type instead.
5268
262abc0d
SM
52692020-06-08 Simon Marchi <simon.marchi@efficios.com>
5270
5271 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5272 methods.
5273 (TYPE_INDEX_TYPE): Use type::index_type.
5274 * gdbtypes.c (create_array_type_with_stride): Likewise.
5275
82836c92
TT
52762020-06-07 Tom Tromey <tom@tromey.com>
5277
5278 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5279 parameter.
5280 (generic_value_print): Update.
5281
940dace9
AB
52822020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5283
5284 Revert commit 982a38f60b0.
5285 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5286
982a38f6
AB
52872020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5288
5289 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5290 avoid use after free.
5291
82f06518
TV
52922020-06-05 Tom de Vries <tdevries@suse.de>
5293
5294 * NEWS: Fix typos.
5295
f8c41851
SM
52962020-06-04 Simon Marchi <simon.marchi@efficios.com>
5297
5298 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5299 the per_bfd object.
5300 (dwarf2_read_debug_names): Likewise.
5301 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5302 object when re-using a per_bfd object with an index.
5303
f9b5d5ea
TV
53042020-06-03 Tom de Vries <tdevries@suse.de>
5305
5306 PR symtab/26046
5307 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5308 children for C++.
5309 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5310 DW_TAG_subprogram.
5311
f6eee2d0
AB
53122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5313
5314 * ada-lang.c (ada_language_data): Delete skip_trampoline
5315 initializer.
5316 * c-lang.c (c_language_data): Likewise.
5317 (cplus_language_data): Likewise.
5318 (cplus_language::skip_trampoline): New member function.
5319 (asm_language_data): Delete skip_trampoline initializer.
5320 (minimal_language_data): Likewise.
5321 * d-lang.c (d_language_data): Likewise.
5322 * f-lang.c (f_language_data): Likewise.
5323 * go-lang.c (go_language_data): Likewise.
5324 * language.c (unk_lang_trampoline): Delete function.
5325 (skip_language_trampoline): Update.
5326 (unknown_language_data): Delete skip_trampoline initializer.
5327 (auto_language_data): Likewise.
5328 * language.h (language_data): Delete skip_trampoline field.
5329 (language_defn::skip_trampoline): New function.
5330 * m2-lang.c (m2_language_data): Delete skip_trampoline
5331 initializer.
5332 * objc-lang.c (objc_skip_trampoline): Delete function, move
5333 implementation to objc_language::skip_trampoline.
5334 (objc_language_data): Delete skip_trampoline initializer.
5335 (objc_language::skip_trampoline): New member function with
5336 implementation from objc_skip_trampoline.
5337 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5338 initializer.
5339 * p-lang.c (pascal_language_data): Likewise.
5340 * rust-lang.c (rust_language_data): Likewise.
5341
0a50df5d
AB
53422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5343
5344 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5345 (ada_language::demangle): New member function.
5346 * c-lang.c (c_language_data): Delete la_demangle initializer.
5347 (cplus_language_data): Delete la_demangle initializer.
5348 (cplus_language::demangle): New member function.
5349 (asm_language_data): Delete la_demangle initializer.
5350 (minimal_language_data): Delete la_demangle initializer.
5351 * d-lang.c (d_language_data): Delete la_demangle initializer.
5352 (d_language::demangle): New member function.
5353 * f-lang.c (f_language_data): Delete la_demangle initializer.
5354 (f_language::demangle): New member function.
5355 * go-lang.c (go_language_data): Delete la_demangle initializer.
5356 (go_language::demangle): New member function.
5357 * language.c (language_demangle): Update.
5358 (unk_lang_demangle): Delete.
5359 (unknown_language_data): Delete la_demangle initializer.
5360 (unknown_language::demangle): New member function.
5361 (auto_language_data): Delete la_demangle initializer.
5362 (auto_language::demangle): New member function.
5363 * language.h (language_data): Delete la_demangle field.
5364 (language_defn::demangle): New function.
5365 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5366 * objc-lang.c (objc_language_data): Delete la_demangle
5367 initializer.
5368 (objc_language::demangle): New member function.
5369 * opencl-lang.c (opencl_language_data): Delete la_demangle
5370 initializer.
5371 * p-lang.c (pascal_language_data): Likewise.
5372 * rust-lang.c (rust_language_data): Likewise.
5373 (rust_language::demangle): New member function.
5374
fbfb0a46
AB
53752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5376
5377 * ada-lang.c (ada_language_data): Delete la_print_type
5378 initializer.
5379 (ada_language::print_type): New member function.
5380 * c-lang.c (c_language_data): Delete la_print_type initializer.
5381 (c_language::print_type): New member function.
5382 (cplus_language_data): Delete la_print_type initializer.
5383 (cplus_language::print_type): New member function.
5384 (asm_language_data): Delete la_print_type initializer.
5385 (asm_language::print_type): New member function.
5386 (minimal_language_data): Delete la_print_type initializer.
5387 (minimal_language::print_type): New member function.
5388 * d-lang.c (d_language_data): Delete la_print_type initializer.
5389 (d_language::print_type): New member function.
5390 * f-lang.c (f_language_data): Delete la_print_type initializer.
5391 (f_language::print_type): New member function.
5392 * go-lang.c (go_language_data): Delete la_print_type initializer.
5393 (go_language::print_type): New member function.
5394 * language.c (unk_lang_print_type): Delete.
5395 (unknown_language_data): Delete la_print_type initializer.
5396 (unknown_language::print_type): New member function.
5397 (auto_language_data): Delete la_print_type initializer.
5398 (auto_language::print_type): New member function.
5399 * language.h (language_data): Delete la_print_type field.
5400 (language_defn::print_type): New function.
5401 (LA_PRINT_TYPE): Update.
5402 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5403 (m2_language::print_type): New member function.
5404 * objc-lang.c (objc_language_data): Delete la_print_type
5405 initializer.
5406 (objc_language::print_type): New member function.
5407 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5408 to opencl_language::print_type.
5409 (opencl_language_data): Delete la_print_type initializer.
5410 (opencl_language::print_type): New member function, implementation
5411 from opencl_print_type.
5412 * p-lang.c (pascal_language_data): Delete la_print_type
5413 initializer.
5414 (pascal_language::print_type): New member function.
5415 * rust-lang.c (rust_print_type): Delete, implementation moved to
5416 rust_language::print_type.
5417 (rust_language_data): Delete la_print_type initializer.
5418 (rust_language::print_type): New member function, implementation
5419 from rust_print_type.
5420
6f827019
AB
54212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5422
5423 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5424 implementation moves to...
5425 (ada_language::sniff_from_mangled_name): ...here. Update return
5426 type.
5427 (ada_language_data): Delete la_sniff_from_mangled_name
5428 initializer.
5429 * c-lang.c (c_language_data): Likewise.
5430 (cplus_language_data): Likewise.
5431 (cplus_language::sniff_from_mangled_name): New member function,
5432 implementation taken from gdb_sniff_from_mangled_name.
5433 (asm_language_data): Delete la_sniff_from_mangled_name
5434 initializer.
5435 (minimal_language_data): Likewise.
5436 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5437 implementation moves to cplus_language::sniff_from_mangled_name.
5438 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5439 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5440 moves to...
5441 (d_language::sniff_from_mangled_name): ...here.
5442 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5443 * f-lang.c (f_language_data): Likewise.
5444 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5445 moves to...
5446 (go_language::sniff_from_mangled_name): ...here.
5447 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5448 * language.c (language_sniff_from_mangled_name): Delete.
5449 (unknown_language_data): Delete la_sniff_from_mangled_name
5450 initializer.
5451 (auto_language_data): Likewise.
5452 * language.h (language_data): Delete la_sniff_from_mangled_name
5453 field.
5454 (language_defn::sniff_from_mangled_name): New function.
5455 (language_sniff_from_mangled_name): Delete declaration.
5456 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5457 field.
5458 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5459 implementation moves to...
5460 (objc_language::sniff_from_mangled_name): ...here.
5461 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5462 * opencl-lang.c (opencl_language_data): Likewise.
5463 * p-lang.c (pascal_language_data): Likewise.
5464 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5465 implementation moves to...
5466 (rust_language::sniff_from_mangled_name): ...here.
5467 (rust_language_data): Delete la_sniff_from_mangled_name
5468 initializer.
5469 * symtab.c (symbol_find_demangled_name): Call
5470 sniff_from_mangled_name member function.
5471
fb8006fd
AB
54722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5473
5474 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5475 initializer.
5476 * c-lang.c (c_language_data): Likewise.
5477 (cplus_language_data): Likewise.
5478 (cplus_language::search_name_hash): New member function.
5479 (asm_language_data): Delete la_search_name_hash initializer.
5480 (minimal_language_data): Likewise.
5481 * d-lang.c (d_language_data): Likewise.
5482 * dictionary.c (default_search_name_hash): Rename to...
5483 (language_defn::search_name_hash): ...this.
5484 * f-lang.c (f_language_data): Likewise.
5485 (f_language::search_name_hash): New member function.
5486 * go-lang.c (go_language_data): Delete la_search_name_hash
5487 initializer.
5488 * language.c (unknown_language_data): Likewise.
5489 (auto_language_data): Likewise.
5490 * language.h (struct language_data): Delete la_search_name_hash
5491 field.
5492 (language_defn::search_name_hash): Declare new member function.
5493 (default_search_name_hash): Delete declaration.
5494 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5495 initializer.
5496 * objc-lang.c (objc_language_data): Likewise.
5497 * opencl-lang.c (opencl_language_data): Likewise.
5498 * p-lang.c (pascal_language_data): Likewise.
5499 * rust-lang.c (rust_language_data): Likewise.
5500 * symtab.c (search_name_hash): Update call.
5501
8e25bafe
AB
55022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5503
5504 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5505 initializer.
5506 * c-lang.c (class compile_instance): Declare.
5507 (c_language_data): Delete la_get_compile_instance initializer.
5508 (c_language::get_compile_instance): New member function.
5509 (cplus_language_data): Delete la_get_compile_instance initializer.
5510 (cplus_language::get_compile_instance): New member function.
5511 (asm_language_data): Delete la_get_compile_instance initializer.
5512 (minimal_language_data): Likewise.
5513 * c-lang.h (c_get_compile_context): Update comment.
5514 (cplus_get_compile_context): Update comment.
5515 * compile/compile.c (compile_to_object): Update calls, don't rely
5516 on function pointer being NULL.
5517 * d-lang.c (d_language_data): Delete la_get_compile_instance
5518 initializer.
5519 * f-lang.c (f_language_data): Likewise.
5520 * go-lang.c (go_language_data): Likewise.
5521 * language.c (unknown_language_data): Likewise.
5522 (auto_language_data): Likewise.
5523 * language.h (language_data): Delete la_get_compile_instance field.
5524 (language_defn::get_compile_instance): New member function.
5525 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5526 initializer.
5527 * objc-lang.c (objc_language_data): Likewise.
5528 * opencl-lang.c (opencl_language_data): Likewise.
5529 * p-lang.c (pascal_language_data): Likewise.
5530 * rust-lang.c (rust_language_data): Likewise.
5531
4009ee92
AB
55322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5533
5534 * ada-lang.c (ada_add_all_symbols): Update comment.
5535 (ada_iterate_over_symbols): Delete, move implementation to...
5536 (ada_language::iterate_over_symbols): ...here, a new member
5537 function, rewrite to use range based for loop.
5538 (ada_language_data): Delete la_iterate_over_symbols initializer.
5539 * c-lang.c (c_language_data): Likewise.
5540 (cplus_language_data): Likewise.
5541 (asm_language_data): Likewise.
5542 (minimal_language_data): Likewise.
5543 * d-lang.c (d_language_data): Likewise.
5544 * f-lang.c (f_language_data): Likewise.
5545 * go-lang.c (go_language_data): Likewise.
5546 * language.c (unknown_language_data): Likewise.
5547 (auto_language_data): Likewise.
5548 * language.h (language_data): Delete la_iterate_over_symbols field.
5549 (language_defn::iterate_over_symbols): New member function.
5550 (LA_ITERATE_OVER_SYMBOLS): Update.
5551 * linespec.c (iterate_over_all_matching_symtabs): Update.
5552 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5553 initializer.
5554 * objc-lang.c (objc_language_data): Likewise.
5555 * opencl-lang.c (opencl_language_data): Likewise.
5556 * p-lang.c (pascal_language_data): Likewise.
5557 * rust-lang.c (rust_language_data): Likewise.
5558
54f4ca46
AB
55592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5560
5561 * ada-lang.c (ada_language_data): Delete
5562 la_lookup_transparent_type initializer.
5563 * c-lang.c (c_language_data): Likewise.
5564 (cplus_language_data): Likewise.
5565 (cplus_language::lookup_transparent_type): New member function.
5566 (asm_language_data): Delete la_lookup_transparent_type
5567 initializer.
5568 (minimal_language_data): Likewise.
5569 * d-lang.c (d_language_data): Likewise.
5570 * f-lang.c (f_language_data): Likewise.
5571 * go-lang.c (go_language_data): Likewise.
5572 * language.c (unknown_language_data): Likewise.
5573 (auto_language_data): Likewise.
5574 * language.h (struct language_data): Delete
5575 la_lookup_transparent_type field.
5576 (language_defn::lookup_transparent_type): New member function.
5577 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5578 initializer.
5579 * objc-lang.c (objc_language_data): Likewise.
5580 * opencl-lang.c (opencl_language_data): Likewise.
5581 * p-lang.c (pascal_language_data): Likewise.
5582 * rust-lang.c (rust_language_data): Likewise.
5583 * symtab.c (symbol_matches_domain): Update call.
5584
1fb314aa
AB
55852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5586
5587 * ada-lang.c (ada_language_arch_info): Delete function, move
5588 implementation to...
5589 (ada_language::language_arch_info): ...here, a new member
5590 function.
5591 (ada_language_data): Delete la_language_arch_info.
5592 * c-lang.c (c_language_data): Likewise.
5593 (c_language::language_arch_info): New member function.
5594 (cplus_language_arch_info): Delete function, move
5595 implementation to...
5596 (cplus_language::language_arch_info): ...here, a new member
5597 function.
5598 (cplus_language_data): Delete la_language_arch_info.
5599 (asm_language_data): Likewise.
5600 (asm_language::language_arch_info): New member function.
5601 (minimal_language_data): Delete la_language_arch_info.
5602 (minimal_language::language_arch_info): New member function.
5603 * d-lang.c (d_language_arch_info): Delete function, move
5604 implementation to...
5605 (d_language::language_arch_info): ...here, a new member
5606 function.
5607 (d_language_data): Delete la_language_arch_info.
5608 * f-lang.c (f_language_arch_info): Delete function, move
5609 implementation to...
5610 (f_language::language_arch_info): ...here, a new member
5611 function.
5612 (f_language_data): Delete la_language_arch_info.
5613 * go-lang.c (go_language_arch_info): Delete function, move
5614 implementation to...
5615 (go_language::language_arch_info): ...here, a new member
5616 function.
5617 (go_language_data): Delete la_language_arch_info.
5618 * language.c (unknown_language_data): Likewise.
5619 (unknown_language::language_arch_info): New member function.
5620 (auto_language_data): Delete la_language_arch_info.
5621 (auto_language::language_arch_info): New member function.
5622 (language_gdbarch_post_init): Update call to
5623 la_language_arch_info.
5624 * language.h (language_data): Delete la_language_arch_info
5625 function pointer.
5626 (language_defn::language_arch_info): New function.
5627 * m2-lang.c (m2_language_arch_info): Delete function, move
5628 implementation to...
5629 (m2_language::language_arch_info): ...here, a new member
5630 function.
5631 (m2_language_data): Delete la_language_arch_info.
5632 * objc-lang.c (objc_language_arch_info): Delete function, move
5633 implementation to...
5634 (objc_language::language_arch_info): ...here, a new member
5635 function.
5636 (objc_language_data): Delete la_language_arch_info.
5637 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5638 implementation to...
5639 (opencl_language::language_arch_info): ...here, a new member
5640 function.
5641 (opencl_language_data): Delete la_language_arch_info.
5642 * p-lang.c (pascal_language_arch_info): Delete function, move
5643 implementation to...
5644 (pascal_language::language_arch_info): ...here, a new member
5645 function.
5646 (pascal_language_data): Delete la_language_arch_info.
5647 * rust-lang.c (rust_language_arch_info): Delete function, move
5648 implementation to...
5649 (rust_language::language_arch_info): ...here, a new member
5650 function.
5651 (rust_language_data): Delete la_language_arch_info.
5652
48448202
AB
56532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5654
5655 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5656 initializer.
5657 * c-lang.c (c_language_data): Likewise.
5658 (cplus_language_data): Likewise.
5659 (cplus_language::pass_by_reference_info): New method.
5660 (asm_language_data): Delete la_pass_by_reference initializer.
5661 (minimal_language_data): Likewise.
5662 * cp-abi.c (cp_pass_by_reference): Remove use of
5663 default_pass_by_reference.
5664 * d-lang.c (d_language_data): Likewise.
5665 * f-lang.c (f_language_data): Likewise.
5666 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5667 default_pass_by_reference.
5668 * go-lang.c (go_language_data): Likewise.
5669 * language.c (language_pass_by_reference): Update.
5670 (default_pass_by_reference): Delete.
5671 (unknown_language_data): Delete la_pass_by_reference
5672 initializer.
5673 (auto_language_data): Likewise.
5674 * language.h (struct language_data): Delete la_pass_by_reference
5675 field.
5676 (language_defn::pass_by_reference_info): New member function.
5677 (default_pass_by_reference): Delete declaration.
5678 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5679 initializer.
5680 * objc-lang.c (objc_language_data): Likewise.
5681 * opencl-lang.c (opencl_language_data): Likewise.
5682 * p-lang.c (pascal_language_data): Likewise.
5683 * rust-lang.c (rust_language_data): Likewise.
5684
15e5fd35
AB
56852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5686
5687 * ada-lang.c (ada_read_var_value): Delete function, move
5688 implementation to...
5689 (ada_language::read_var_value): ...here.
5690 (ada_language_data): Delete la_read_var_value initializer.
5691 * c-lang.c (c_language_data): Likewise.
5692 (cplus_language_data): Likewise.
5693 (minimal_language_data): Likewise.
5694 * d-lang.c (d_language_data): Likewise.
5695 * f-lang.c (f_language_data): Likewise.
5696 * findvar.c (default_read_var_value): Rename to...
5697 (language_defn::read_var_value): ...this.
5698 * findvar.c (read_var_value): Update header comment, and change to
5699 call member function instead of function pointer.
5700 * go-lang.c (go_language_data): Likewise.
5701 * language.c (unknown_language_data): Delete la_read_var_value
5702 initializer.
5703 (auto_language_data): Likewise.
5704 * language.h (struct language_data): Delete la_read_var_value
5705 field.
5706 (language_defn::read_var_value): New member function.
5707 (default_read_var_value): Delete declaration.
5708 * m2-lang.c (m2_language_data): Delete la_read_var_value
5709 initializer.
5710 * objc-lang.c (objc_language_data): Likewise.
5711 * opencl-lang.c (opencl_language_data): Likewise.
5712 * p-lang.c (pascal_language_data): Likewise.
5713 * rust-lang.c (rust_language_data): Likewise.
5714 * value.h (default_read_var_value): Delete declaration.
5715
5bd40f2a
AB
57162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5717
5718 * ada-lang.c (ada_print_array_index): Delete function, move
5719 implementation to...
5720 (ada_language::print_array_index): ...here.
5721 (ada_language_data): Delete la_print_array_index initializer.
5722 * c-lang.c (c_language_data): Likewise.
5723 (cplus_language_data): Likewise.
5724 (minimal_language_data): Likewise.
5725 * d-lang.c (d_language_data): Likewise.
5726 * f-lang.c (f_language_data): Likewise.
5727 * go-lang.c (go_language_data): Likewise.
5728 * language.c (default_print_array_index): Delete function, move
5729 implementation to...
5730 (language_defn::print_array_index): ...here.
5731 (unknown_language_data): Delete la_print_array_index initializer.
5732 (auto_language_data): Likewise.
5733 * language.h (struct language_data): Delete la_print_array_index
5734 field.
5735 (language_defn::print_array_index): New member function.
5736 (LA_PRINT_ARRAY_INDEX): Update.
5737 (default_print_array_index): Delete declaration.
5738 * m2-lang.c (m2_language_data): Delete la_print_array_index
5739 initializer.
5740 * objc-lang.c (objc_language_data): Likewise.
5741 * opencl-lang.c (opencl_language_data): Likewise.
5742 * p-lang.c (pascal_language_data): Likewise.
5743 * rust-lang.c (rust_language_data): Likewise.
5744
0874fd07
AB
57452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5746
5747 * gdb/ada-lang.c (ada_language_defn): Convert to...
5748 (ada_language_data): ...this.
5749 (class ada_language): New class.
5750 (ada_language_defn): New static global.
5751 * gdb/c-lang.c (c_language_defn): Convert to...
5752 (c_language_data): ...this.
5753 (class c_language): New class.
5754 (c_language_defn): New static global.
5755 (cplus_language_defn): Convert to...
5756 (cplus_language_data): ...this.
5757 (class cplus_language): New class.
5758 (cplus_language_defn): New static global.
5759 (asm_language_defn): Convert to...
5760 (asm_language_data): ...this.
5761 (class asm_language): New class.
5762 (asm_language_defn): New static global.
5763 (minimal_language_defn): Convert to...
5764 (minimal_language_data): ...this.
5765 (class minimal_language): New class.
5766 (minimal_language_defn): New static global.
5767 * gdb/d-lang.c (d_language_defn): Convert to...
5768 (d_language_data): ...this.
5769 (class d_language): New class.
5770 (d_language_defn): New static global.
5771 * gdb/f-lang.c (f_language_defn): Convert to...
5772 (f_language_data): ...this.
5773 (class f_language): New class.
5774 (f_language_defn): New static global.
5775 * gdb/go-lang.c (go_language_defn): Convert to...
5776 (go_language_data): ...this.
5777 (class go_language): New class.
5778 (go_language_defn): New static global.
5779 * gdb/language.c (unknown_language_defn): Remove declaration.
5780 (current_language): Initialize to nullptr, real initialization is
5781 moved to _initialize_language.
5782 (languages): Delete global.
5783 (language_defn::languages): Define.
5784 (set_language_command): Use language_defn::languages.
5785 (set_language): Likewise.
5786 (range_error): Likewise.
5787 (language_enum): Likewise.
5788 (language_def): Likewise.
5789 (add_set_language_command): Use language_def::languages for the
5790 language list, and language_def to lookup language pointers.
5791 (skip_language_trampoline): Use language_defn::languages.
5792 (unknown_language_defn): Convert to...
5793 (unknown_language_data): ...this.
5794 (class unknown_language): New class.
5795 (unknown_language_defn): New static global.
5796 (auto_language_defn): Convert to...
5797 (auto_language_data): ...this.
5798 (class auto_language): New class.
5799 (auto_language_defn): New static global.
5800 (language_gdbarch_post_init): Use language_defn::languages.
5801 (_initialize_language): Initialize current_language.
5802 * gdb/language.h (struct language_defn): Rename to...
5803 (struct language_data): ...this.
5804 (struct language_defn): New.
5805 (auto_language_defn): Delete.
5806 (unknown_language_defn): Delete.
5807 (minimal_language_defn): Delete.
5808 (ada_language_defn): Delete.
5809 (asm_language_defn): Delete.
5810 (c_language_defn): Delete.
5811 (cplus_language_defn): Delete.
5812 (d_language_defn): Delete.
5813 (f_language_defn): Delete.
5814 (go_language_defn): Delete.
5815 (m2_language_defn): Delete.
5816 (objc_language_defn): Delete.
5817 (opencl_language_defn): Delete.
5818 (pascal_language_defn): Delete.
5819 (rust_language_defn): Delete.
5820 * gdb/m2-lang.c (m2_language_defn): Convert to...
5821 (m2_language_data): ...this.
5822 (class m2_language): New class.
5823 (m2_language_defn): New static global.
5824 * gdb/objc-lang.c (objc_language_defn): Convert to...
5825 (objc_language_data): ...this.
5826 (class objc_language): New class.
5827 (objc_language_defn): New static global.
5828 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5829 (opencl_language_data): ...this.
5830 (class opencl_language): New class.
5831 (opencl_language_defn): New static global.
5832 * gdb/p-lang.c (pascal_language_defn): Convert to...
5833 (pascal_language_data): ...this.
5834 (class pascal_language): New class.
5835 (pascal_language_defn): New static global.
5836 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5837 language pointer, update comment format.
5838 * gdb/rust-lang.c (rust_language_defn): Convert to...
5839 (rust_language_data): ...this.
5840 (class rust_language): New class.
5841 (rust_language_defn): New static global.
5842
1313c56e
AB
58432020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5844
5845 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5846 member variable.
5847 <m_stmt_at_address>: New member variable.
5848 (lnp_state_machine::record_line): Don't record some lines, update
5849 tracking of is_stmt at the same address.
5850 (lnp_state_machine::lnp_state_machine): Initialise new member
5851 variables.
5852
b7ed9f3d
ST
58532020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5854
5855 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5856 "-include gnu-nat-mig.h".
5857 * gnu-nat-mig.h: New file.
5858 * gnu-nat.c: Include "gnu-nat-mig.h".
5859 (exc_server, msg_reply_server, notify_server,
5860 process_reply_server): Remove declarations.
5861
14a8ad62
ST
58622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5863
5864 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5865 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5866 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5867 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5868 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5869 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5870 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5871 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5872 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5873 to gnu_nat_target class.
5874 * gnu-nat.c: Likewise.
5875 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5876 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5877 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5878 object.
5879 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5880 instead of `gnu_target'.
5881
0af5e106
ST
58822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5883
5884 * i386-gnu-tdep.c: Include "gdbcore.h"
5885 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5886 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5887 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5888 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5889 i386_gnu_sigcontext_addr): New functions
5890 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5891 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5892 tdep.
5893
078f2fc9
ST
58942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5895
5896 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5897 before fork_inferior call. Avoid calling it if target_is_pushed returns
5898 true.
5899
53dff92c
ST
59002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5901
5902 * gnu-nat.h (gnu_target): New variable declaration.
5903 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5904 gnu_target.
5905 * gnu-nat.c (gnu_target): New variable.
5906 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5907 add_thread_silent, and add_thread calls.
5908 (gnu_nat_target::create_inferior): Pass gnu_target to
5909 add_thread_silent, thread_change_ptid call.
5910 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5911 call.
5912
5a8b8627
ST
59132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5914
5915 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5916 (gnu_nat_target::find_memory_regions): Remove unused
5917 `old_address' variable.
5918
366f550a
ST
59192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5920
5921 * gnu-nat.c: Include "gdbarch.h".
5922
f14871bf
ST
59232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5924
5925 * reply_mig_hack.awk (Error return): Cast function through
5926 void *, to bypass compiler function call check.
5927
c6887cfb
ST
59282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5929
5930 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5931 $(srcdir)/reply_mig_hack.awk.
5932
6930bffe
ST
59332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5934
5935 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5936
112c22ed
JG
59372020-05-30 Jonny Grant <jg@jguk.org>
5938
5939 * configure.ac (ACX_BUGURL): change bug URL to https.
5940
f68f85b5
PA
59412020-05-30 Pedro Alves <palves@redhat.com>
5942
5943 * cp-support.c (replace_typedefs_template): New.
5944 (replace_typedefs_qualified_name): Handle
5945 DEMANGLE_COMPONENT_TEMPLATE.
5946
976ca316
SM
59472020-05-29 Simon Marchi <simon.marchi@efficios.com>
5948
5949 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5950 dwarf2/index-cache.h, dwarf2/index-write.c,
5951 dwarf2/index-write.h, dwarf2/line-header.c,
5952 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5953 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5954 variables and fields from `dwarf2_per_objfile` to just
5955 `per_objfile` throughout.
5956
989ade05
SM
59572020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5958
5959 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5960 <push_dwarf_reg_entry_value>: Add comment.
5961
c47bae85
KB
59622020-05-28 Kevin Buettner <kevinb@redhat.com>
5963 Keith Seitz <keiths@redhat.com>
5964
5965 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5966 instead of PyEval_ReleaseLock.
5967 (class gdbpy_gil): Move to earlier in file.
5968 (finalize_python): Set gdb_python_initialized.
5969 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5970 when not initialized.
5971
44486dcf
SM
59722020-05-28 Simon Marchi <simon.marchi@efficios.com>
5973
5974 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5975 <push_dwarf_reg_entry_value>: Remove assert. Override
5976 per_objfile with caller_per_objfile.
5977
f030440d
TV
59782020-05-28 Tom de Vries <tdevries@suse.de>
5979
5980 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5981 PR gold/15646 workaround to symbol kind "type".
5982
f0fbb768
TT
59832020-05-27 Tom Tromey <tromey@adacore.com>
5984
5985 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5986
af0b2a3e
TT
59872020-05-27 Tom Tromey <tromey@adacore.com>
5988
5989 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5990 Use htab_find_with_hash.
5991 <add_abbrev>: Remove "abbrev_number" parameter.
5992 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5993 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5994 (hash_abbrev): Add comment.
5995 (abbrev_table::lookup_abbrev): Move to header file.
5996 (abbrev_table::read): Update.
5997
7d00ffec
TT
59982020-05-27 Tom Tromey <tromey@adacore.com>
5999
6000 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6001 method.
6002 <canonical_name>: New member.
6003 <raw_name>: Rename from "name".
6004 (partial_die_info): Initialize canonical_name.
6005 (scan_partial_symbols): Check raw_name.
6006 (partial_die_parent_scope, partial_die_full_name)
6007 (add_partial_symbol, add_partial_subprogram)
6008 (add_partial_enumeration, load_partial_dies): Use "name" method.
6009 (partial_die_info::name): New method.
6010 (partial_die_info::read, guess_partial_die_structure_name)
6011 (partial_die_info::fixup): Update.
6012
697bba18
TT
60132020-05-27 Tom Tromey <tromey@adacore.com>
6014
6015 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6016 <get_ref_die_offset>: Inline.
6017 <get_ref_die_offset_complaint>: New method.
6018 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6019 (attribute::get_ref_die_offset_complaint): Rename from
6020 get_ref_die_offset. Just issue complaint.
6021
c17ace43
HD
60222020-05-27 Hannes Domani <ssbssa@yahoo.de>
6023
6024 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6025
96445f0b
HD
60262020-05-27 Hannes Domani <ssbssa@yahoo.de>
6027
6028 * exec.c (exec_file_attach): Use errno value of first openp failure.
6029
ac637ec3
HD
60302020-05-27 Hannes Domani <ssbssa@yahoo.de>
6031
6032 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6033 Don't close thread handle.
6034
17ee85fc
TT
60352020-05-27 Tom Tromey <tom@tromey.com>
6036 Simon Marchi <simon.marchi@efficios.com>
6037
6038 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6039 shared_ptr.
6040 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6041 member.
6042 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6043 dwarf2_per_bfd_objfile_data_key>: New globals.
6044 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6045 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6046 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6047 shared.
6048 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6049 short-circuit when sharing.
6050 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6051 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6052
39b16f87
SM
60532020-05-27 Simon Marchi <simon.marchi@efficios.com>
6054
6055 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6056 to...
6057 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6058 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6059
fcf23d5b
SM
60602020-05-27 Simon Marchi <simon.marchi@efficios.com>
6061
6062 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6063 build_name_components, find_name_components_bounds>:
6064 Add per_objfile parameter.
6065 (struct mapped_index) <symbol_name_at>: Likewise.
6066 (struct mapped_debug_names): Remove constructor.
6067 <dwarf2_per_objfile>: Remove field.
6068 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6069 (mapped_index_base::find_name_components_bounds,
6070 mapped_index_base::build_name_components,
6071 dw2_expand_symtabs_matching_symbol): Likewise.
6072 (class mock_mapped_index) <symbol_name_at>: Likewise.
6073 (check_match): Likewise.
6074 (check_find_bounds_finds): Likewise.
6075 (test_mapped_index_find_name_component_bounds): Update.
6076 (CHECK_MATCH): Update.
6077 (dw2_expand_symtabs_matching): Update.
6078 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6079 per_objfile parameter.
6080 <find_vec_in_debug_names>: Likewise.
6081 <m_per_objfile>: New field.
6082 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6083 parameter.
6084 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6085 (dw2_debug_names_iterator::next): Update.
6086 (dw2_debug_names_lookup_symbol): Update.
6087 (dw2_debug_names_expand_symtabs_for_function): Update.
6088 (dw2_debug_names_map_matching_symbols): Update.
6089 (dw2_debug_names_expand_symtabs_matching): Update.
6090 (dwarf2_read_debug_names): Update.
6091
7188ed02
SM
60922020-05-27 Simon Marchi <simon.marchi@efficios.com>
6093
6094 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6095 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6096 move to dwarf2_per_objfile.
6097 <read_in_chain>: Remove.
6098 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6099 remove_all_cus, age_comp_units>: New methods.
6100 <m_dwarf2_cus>: New member.
6101 (struct dwarf2_per_cu_data) <cu>: Remove.
6102 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6103 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6104 moved to methods of dwarf2_per_objfile.
6105 (dwarf2_clear_marks): Remove.
6106 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6107 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6108 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6109 (dwarf2_per_objfile::remove_all_cus): New.
6110 (class free_cached_comp_units) <~free_cached_comp_units>:
6111 Update.
6112 (load_cu): Update.
6113 (dw2_do_instantiate_symtab): Adjust.
6114 (fill_in_sig_entry_from_dwo_entry): Adjust.
6115 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6116 (cutu_reader::cutu_reader): Likewise.
6117 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6118 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6119 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6120 and dwarf2_per_objfile::age_comp_units.
6121 (load_partial_comp_unit): Update.
6122 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6123 (process_queue): Likewise.
6124 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6125 backlink.
6126 (dwarf2_read_addr_index): Likewise.
6127 (follow_die_offset): Likewise.
6128 (dwarf2_fetch_die_loc_sect_off): Likewise.
6129 (dwarf2_fetch_constant_bytes): Likewise.
6130 (dwarf2_fetch_die_type_sect_off): Likewise.
6131 (follow_die_sig_1): Likewise.
6132 (load_full_type_unit): Likewise.
6133 (read_signatured_type): Likewise.
6134 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6135 (dwarf2_cu::~dwarf2_cu): Remove.
6136 (dwarf2_per_objfile::get_cu): New.
6137 (dwarf2_per_objfile::set_cu): New.
6138 (age_cached_comp_units): Rename to...
6139 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6140 to std::unordered_map.
6141 (free_one_cached_comp_unit): Rename to...
6142 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6143 to std::unordered_map.
6144 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6145 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6146 a dwarf2_per_objfile in data.
6147 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6148 (dwarf2_clear_marks): Remove.
6149
2e671100
SM
61502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6151
6152 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6153 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6154 (init_tu_and_read_dwo_dies): Likewise.
6155 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6156 (cutu_reader::cutu_reader): Likewise.
6157 (load_partial_comp_unit): Likewise.
6158 (process_psymtab_comp_unit): Update.
6159 (build_type_psymtabs_1): Update.
6160 (process_skeletonless_type_unit): Update.
6161 (load_full_comp_unit): Update.
6162 (find_partial_die): Update.
6163 (dwarf2_read_addr_index): Update.
6164 (read_signatured_type): Update.
6165
2e6a9f79
SM
61662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6167
6168 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6169 m_header_read_in>: New fields.
6170 <get_header>: New method.
6171 * dwarf2/read.c (per_cu_header_read_in): Remove.
6172 (dwarf2_per_cu_data::get_header): New.
6173 (dwarf2_per_cu_data::addr_size): Update.
6174 (dwarf2_per_cu_data::offset_size): Update.
6175 (dwarf2_per_cu_data::ref_addr_size): Update.
6176
1b555f17
SM
61772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6178
6179 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6180 (dw2_do_instantiate_symtab): Update.
6181 (queue_and_load_all_dwo_tus): Change parameter from
6182 dwarf2_per_cu_data to dwarf2_cu.
6183 (dwarf2_fetch_die_loc_sect_off): Update.
6184 (dwarf2_fetch_constant_bytes): Update.
6185 (dwarf2_fetch_die_type_sect_off): Update.
6186
8fc0b21d
SM
61872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6188
6189 * dwarf2/read.c (process_full_comp_unit,
6190 process_full_type_unit): Remove per_cu, per_objfile paramters.
6191 Add dwarf2_cu parameter.
6192 (process_queue): Update.
6193
168c9250
SM
61942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6195
6196 * dwarf2/read.c (create_cu_from_index_list): Replace
6197 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6198 (create_cus_from_index_list): Likewise.
6199 (create_cus_from_index): Likewise.
6200 (create_signatured_type_table_from_index): Likewise.
6201 (create_cus_from_debug_names_list): Likewise.
6202 (create_cus_from_debug_names): Likewise.
6203 (dwarf2_read_gdb_index): Update.
6204 (dwarf2_read_debug_names): Update.
6205
e286671b
TT
62062020-05-27 Tom Tromey <tom@tromey.com>
6207 Simon Marchi <simon.marchi@efficios.com>
6208
6209 * dwarf2/read.h (struct dwarf2_per_objfile)
6210 <get_type_for_signatured_type, set_type_for_signatured_type>:
6211 New methods.
6212 <m_type_map>: New member.
6213 (struct signatured_type) <type>: Remove.
6214 * dwarf2/read.c
6215 (dwarf2_per_objfile::get_type_for_signatured_type,
6216 dwarf2_per_objfile::set_type_for_signatured_type): New.
6217 (get_signatured_type): Use new methods.
6218
8adb8487
TT
62192020-05-27 Tom Tromey <tom@tromey.com>
6220 Simon Marchi <simon.marchi@efficios.com>
6221
6222 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6223 (struct dwarf2_per_objfile) <type_units>: New member.
6224 <get_type_unit_group_unshareable>: New method.
6225 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6226 num_symtabs, symtabs>: Remove; move to
6227 type_unit_group_unshareable.
6228 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6229 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6230 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6231
127bbf4b
SM
62322020-05-27 Simon Marchi <simon.marchi@efficios.com>
6233
6234 * dwarf2/read.h (struct dwarf2_per_cu_data):
6235 <dwarf2_per_objfile>: Remove.
6236 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6237 dwarf2_per_objfile.
6238 (create_signatured_type_table_from_index): Likewise.
6239 (create_signatured_type_table_from_debug_names): Likewise.
6240 (create_debug_type_hash_table): Likewise.
6241 (fill_in_sig_entry_from_dwo_entry): Likewise.
6242 (create_type_unit_group): Likewise.
6243 (read_comp_units_from_section): Likewise.
6244 (create_cus_hash_table): Likewise.
6245
f6e649dd
SM
62462020-05-27 Simon Marchi <simon.marchi@efficios.com>
6247
6248 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6249 dwarf2_per_cu_data::dwarf2_per_objfile.
6250 (compute_compunit_symtab_includes): Likewise.
6251 (dwarf2_cu::start_symtab): Likewise.
6252
aa66c379
SM
62532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6254
6255 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6256 parameter.
6257 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6258 (read_namespace_alias): Update.
6259 (lookup_die_type): Update.
6260 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6261 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6262 Update.
6263 (disassemble_dwarf_expression): Update.
6264
120ce1b5
SM
62652020-05-27 Simon Marchi <simon.marchi@efficios.com>
6266
6267 * dwarf2/read.h (struct dwarf2_queue_item): Add
6268 dwarf2_per_objfile parameter, assign new parameter.
6269 <per_objfile>: New field.
6270 * dwarf2/read.c (free_one_cached_comp_unit): Add
6271 dwarf2_per_objfile parameter.
6272 (queue_comp_unit): Likewise.
6273 (dw2_do_instantiate_symtab): Update.
6274 (process_psymtab_comp_unit): Update.
6275 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6276 (process_imported_unit_die): Update.
6277 (queue_and_load_dwo_tu): Update.
6278 (follow_die_offset): Update.
6279 (follow_die_sig_1): Update.
6280
9f47c707
SM
62812020-05-27 Simon Marchi <simon.marchi@efficios.com>
6282
6283 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6284 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6285 (read_call_site_scope): Assign per_objfile.
6286 (dwarf2_per_cu_data::objfile): Remove.
6287 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6288 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6289 dwarf2_per_objfile parameter.
6290 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6291 dwarf2_per_objfile parameter.
6292 (dwarf_expr_reg_to_entry_parameter): Add output
6293 dwarf2_per_objfile parameter.
6294 (locexpr_get_frame_base): Update.
6295 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6296 <push_dwarf_reg_entry_value>: Update.
6297 <call_site_to_target_addr>: Update.
6298 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6299 parameter.
6300 (value_of_dwarf_reg_entry): Update.
6301 (rw_pieced_value): Update.
6302 (indirect_synthetic_pointer): Update.
6303 (dwarf2_evaluate_property): Update.
6304 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6305 parameter.
6306 (locexpr_read_variable): Update.
6307 (locexpr_get_symbol_read_needs): Update.
6308 (loclist_read_variable): Update.
6309
14095eb3
SM
63102020-05-27 Simon Marchi <simon.marchi@efficios.com>
6311
6312 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6313 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6314 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6315 parameter.
6316 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6317 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6318 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6319 parameter.
6320 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6321 sect_variable_value): Add dwarf2_per_objfile parameter.
6322 (class dwarf_evaluate_loc_desc) <dwarf_call,
6323 dwarf_variable_value>: Update.
6324 (fetch_const_value_from_synthetic_pointer): Add
6325 dwarf2_per_objfile parameter.
6326 (fetch_const_value_from_synthetic_pointer): Update.
6327 (coerced_pieced_ref): Update.
6328 (class symbol_needs_eval_context) <dwarf_call,
6329 dwarf_variable_value>: Update.
6330 (dwarf2_compile_expr_to_ax): Update.
6331
3c3cd3d4
SM
63322020-05-27 Simon Marchi <simon.marchi@efficios.com>
6333
6334 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6335 parameter.
6336 (dwarf2_evaluate_loc_desc_full): Update.
6337
82ca3f51
SM
63382020-05-27 Simon Marchi <simon.marchi@efficios.com>
6339
6340 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6341 parameter.
6342 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6343 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6344 dwarf2_per_objfile parameter.
6345 (decode_debug_loc_dwo_addresses): Likewise.
6346 (dwarf2_find_location_expression): Update.
6347 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6348 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6349 parameter.
6350 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6351 parameter.
6352 (locexpr_describe_location_1): Likewise.
6353 (locexpr_describe_location): Update.
6354
4b167ea1
SM
63552020-05-27 Simon Marchi <simon.marchi@efficios.com>
6356
6357 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6358 Remove.
6359 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6360 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6361 (dwarf2_compile_property_to_c): Update.
6362 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6363 use text offset from objfile.
6364 (locexpr_tracepoint_var_ref): Update.
6365 (locexpr_generate_c_location): Update.
6366 (loclist_describe_location): Update.
6367 (loclist_tracepoint_var_ref): Update.
6368 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6369 dwarf2_per_objfile parameter.
6370 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6371 use text offset from objfile.
6372 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6373
89b07335
SM
63742020-05-27 Simon Marchi <simon.marchi@efficios.com>
6375
6376 * dwarf2/expr.h (struct dwarf_expr_context)
6377 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6378 <offset>: Remove.
6379 <per_objfile>: New member.
6380 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6381 dwarf2_per_objfile parameter. Don't set offset, set
6382 per_objfile.
6383 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6384 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6385 a dwarf2_per_objfile object instead of an offset.
6386 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6387 constructor.
6388 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6389 to dwarf2_expr_executor constructor. Don't set offset.
6390 (dwarf2_fetch_cfa_info): Update.
6391 (struct dwarf2_frame_cache) <text_offset>: Remove.
6392 <per_objfile>: New field.
6393 (dwarf2_frame_cache): Update.
6394 (dwarf2_frame_prev_register): Update.
6395 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6396 <dwarf_evaluate_loc_desc>: Add constructor.
6397 (dwarf2_evaluate_loc_desc_full): Update.
6398 (dwarf2_locexpr_baton_eval): Update.
6399 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6400 Add constructor.
6401 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6402
293e7e51
SM
64032020-05-27 Simon Marchi <simon.marchi@efficios.com>
6404
6405 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6406 addr_sized_int_type>: Move to dwarf2_cu.
6407 <int_type>: Move to dwarf2_per_objfile.
6408 (struct dwarf2_per_objfile) <int_type>: Move here.
6409 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6410 addr_sized_int_type>: Move here.
6411 (read_func_scope): Update.
6412 (read_array_type): Update.
6413 (read_tag_string_type): Update.
6414 (attr_to_dynamic_prop): Update.
6415 (dwarf2_per_cu_data::int_type): Rename to...
6416 (dwarf2_per_objfile::int_type): ... this.
6417 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6418 (dwarf2_cu::addr_sized_int_type): ... this.
6419 (read_subrange_type): Update.
6420 (dwarf2_per_cu_data::addr_type): Rename to...
6421 (dwarf2_cu::addr_type): ... this.
6422 (set_die_type): Update.
6423
64874a40
SM
64242020-05-27 Simon Marchi <simon.marchi@efficios.com>
6425
6426 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6427 data through per_cu->cu.
6428
4ab09049
SM
64292020-05-27 Simon Marchi <simon.marchi@efficios.com>
6430
6431 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6432 dwarf2_per_cu_data parameter fo dwarf2_cu.
6433 (lookup_dwo_type_unit): Likewise.
6434 (read_cutu_die_from_dwo): Likewise.
6435 (lookup_dwo_unit): Likewise.
6436 (open_and_init_dwo_file): Likewise.
6437 (lookup_dwo_cutu): Likewise.
6438 (lookup_dwo_comp_unit): Likewise.
6439 (lookup_dwo_type_unit): Likewise.
6440 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6441 (cutu_reader::cutu_reader): Update.
6442
47b14e86
SM
64432020-05-27 Simon Marchi <simon.marchi@efficios.com>
6444
6445 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6446 parameter.
6447 (process_full_type_unit): Likewise.
6448 (process_queue): Update.
6449
43182c09
SM
64502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6451
6452 * dwarf2/read.c (recursively_compute_inclusions): Add
6453 dwarf2_per_objfile parameter.
6454 (compute_compunit_symtab_includes): Likewise.
6455 (process_cu_includes): Update.
6456
7aa104c4
SM
64572020-05-27 Simon Marchi <simon.marchi@efficios.com>
6458
6459 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6460 parameter.
6461 (create_type_unit_group): Update.
6462 (process_psymtab_comp_unit_reader): Update.
6463 (build_type_psymtabs_reader): Update.
6464
e3beb21d
SM
64652020-05-27 Simon Marchi <simon.marchi@efficios.com>
6466
6467 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6468 object through m_this_cu->cu.
6469
d460f660
SM
64702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6471
6472 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6473 the info parameter.
6474 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6475
ab432490
SM
64762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6477
6478 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6479 per_objfile parameter.
6480 (load_full_type_unit): Add per_objfile parameter.
6481 (read_signatured_type): Likewise.
6482 (load_full_comp_unit): Likewise.
6483 (load_cu): Likewise.
6484 (dw2_do_instantiate_symtab): Likewise.
6485 (dw2_get_file_names): Likewise.
6486 (dw2_map_symtabs_matching_filename): Update.
6487 (dw_expand_symtabs_matching_file_matcher): Update.
6488 (dw2_map_symbol_filenames): Update.
6489 (process_psymtab_comp_unit): Add per_objfile parameter.
6490 (build_type_psymtabs_1): Update.
6491 (process_skeletonless_type_unit): Update.
6492 (dwarf2_build_psymtabs_hard): Update.
6493 (load_partial_comp_unit): Add per_objfile parameter.
6494 (scan_partial_symbols): Update.
6495 (load_full_comp_unit): Add per_objfile parameter.
6496 (process_imported_unit_die): Update.
6497 (create_cus_hash_table): Update.
6498 (find_partial_die): Update.
6499 (dwarf2_read_addr_index): Update.
6500 (follow_die_offset): Update.
6501 (dwarf2_fetch_die_loc_sect_off): Update.
6502 (dwarf2_fetch_constant_bytes): Update.
6503 (dwarf2_fetch_die_type_sect_off): Update.
6504 (follow_die_sig_1): Update.
6505 (load_full_type_unit): Add per_objfile parameter.
6506 (read_signatured_type): Likewise.
6507
313bad1b
SM
65082020-05-27 Simon Marchi <simon.marchi@efficios.com>
6509
6510 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6511 of objfile_name.
6512
c3699833
SM
65132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6514
6515 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6516 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6517 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6518 field.
6519 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6520 (create_cus_from_index): Update.
6521 (dwarf2_read_gdb_index): Update.
6522 (create_cus_from_debug_names): Update.
6523 (dwarf2_read_debug_names): Update.
6524 (get_abbrev_section_for_cu): Update.
6525 (create_all_comp_units): Update.
6526 (read_attribute_value): Update.
6527 (get_debug_line_section): Update.
6528 * dwarf2/index-cache.c (index_cache::store): Update.
6529 * dwarf2/index-write.c (save_gdb_index_command): Update.
6530 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6531
1859c670
SM
65322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6533
6534 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6535 member.
6536 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6537 dwarf2_per_cu_data::per_bfd.
6538 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6539 (create_type_unit_group): Likewise.
6540 (queue_comp_unit): Remove reference to
6541 per_cu->dwarf2_per_objfile.
6542 (maybe_queue_comp_unit): Likewise.
6543 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6544 (create_cus_hash_table): Assign new field.
6545
5e22e966
SM
65462020-05-27 Simon Marchi <simon.marchi@efficios.com>
6547
6548 * dwarf2/read.c: Replace
6549 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6550 dwarf2_cu->per_objfile throughout.
6551
97a1449a
SM
65522020-05-27 Simon Marchi <simon.marchi@efficios.com>
6553
6554 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6555 parameter, don't use per_cu->dwarf2_per_objfile.
6556 (dw2_instantiate_symtab): Likewise.
6557 (dw2_find_last_source_symtab): Update.
6558 (dw2_map_expand_apply): Update.
6559 (dw2_lookup_symbol): Update.
6560 (dw2_expand_symtabs_for_function): Update.
6561 (dw2_expand_all_symtabs): Update.
6562 (dw2_expand_symtabs_with_fullname): Update.
6563 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6564 don't use per_cu->dwarf2_per_objfile.
6565 (dw2_expand_marked_cus): Update.
6566 (dw2_find_pc_sect_compunit_symtab): Update.
6567 (dw2_debug_names_lookup_symbol): Update.
6568 (dw2_debug_names_expand_symtabs_for_function): Update.
6569 (dw2_debug_names_map_matching_symbols): Update.
6570 (dwarf2_psymtab::expand_psymtab): Update.
6571
9e021579
SM
65722020-05-27 Simon Marchi <simon.marchi@efficios.com>
6573
6574 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6575 <per_objfile>: New member.
6576 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6577 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6578 call to dwarf2_cu.
6579 (cutu_reader::cutu_reader): Update.
6580 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6581
ae090bdb
SM
65822020-05-27 Simon Marchi <simon.marchi@efficios.com>
6583
6584 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6585 struct dwarf2_per_objfile.
6586 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6587 dwarf2_per_bfd.
6588 * dwarf2/read.c (set_die_type): Update.
6589 (get_die_type_at_offset): Update.
6590
af758d11
SM
65912020-05-27 Tom Tromey <tom@tromey.com>
6592 Simon Marchi <simon.marchi@efficios.com>
6593
6594 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6595 method.
6596 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6597 get_symtab, set_symtab>: New methods.
6598 <m_symtabs>: New field.
6599 (struct dwarf2_psymtab): Derive from partial_symtab.
6600 <readin_p, get_compunit_symtab>: Declare methods.
6601 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6602 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6603 New methods.
6604 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6605 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6606 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6607 (dw2_symtab_iter_next, dw2_print_stats)
6608 (dw2_expand_symtabs_with_fullname)
6609 (dw2_expand_symtabs_matching_one)
6610 (dw_expand_symtabs_matching_file_matcher)
6611 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6612 (dw2_debug_names_iterator::next)
6613 (dw2_debug_names_map_matching_symbols)
6614 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6615 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6616 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6617 New methods.
6618 (get_compunit_symtab, process_full_comp_unit)
6619 (process_full_type_unit): Update.
6620 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6621
5989a64e
SM
66222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6623
6624 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6625 then introduce a new dwarf2_per_objfile type.
6626 <read_line_string>: Move to the new dwarf2_per_objfile type.
6627 <objfile>: Likewise.
6628 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6629 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6630 dwarf2_per_objfile->per_bfd.
6631 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6632 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6633 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6634 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6635 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6636 (dwarf2_per_objfile::locate_sections): Rename to...
6637 (dwarf2_per_bfd::locate_sections): ... this.
6638 (dwarf2_per_objfile::get_cutu): Rename to...
6639 (dwarf2_per_bfd::get_cutu): ... this.
6640 (dwarf2_per_objfile::get_cu): Rename to...
6641 (dwarf2_per_bfd::get_cu): ... this.
6642 (dwarf2_per_objfile::get_tu): Rename to...
6643 (dwarf2_per_bfd::get_tu): ... this.
6644 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6645 (dwarf2_per_bfd::allocate_per_cu): ... this.
6646 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6647 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6648 (get_gdb_index_contents_ftype): Change parameter from
6649 dwarf2_per_objfile to dwarf2_per_bfd.
6650 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6651 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6652
a50264ba
TT
66532020-05-27 Tom Tromey <tom@tromey.com>
6654 Simon Marchi <simon.marchi@efficios.com>
6655
6656 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6657 (allocate_piece_closure): Set "per_objfile" member.
6658 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6659 (locexpr_describe_location, loclist_describe_location): Use new
6660 member.
6661 * dwarf2/read.c (read_call_site_scope)
6662 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6663 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6664 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6665 handle_data_member_location): Set per_objfile member.
6666 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6667 member.
6668 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6669
d3473f0c
TT
66702020-05-27 Tom Tromey <tom@tromey.com>
6671
6672 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6673 allocate_signatured_type>: Declare new methods.
6674 <m_num_psymtabs>: New member.
6675 (struct dwarf2_per_cu_data) <index>: New member.
6676 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6677 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6678 (create_cu_from_index_list): Use allocate_per_cu.
6679 (create_signatured_type_table_from_index)
6680 (create_signatured_type_table_from_debug_names)
6681 (create_debug_type_hash_table, add_type_unit)
6682 (read_comp_units_from_section): Use allocate_signatured_type.
6683
5717c425
TT
66842020-05-27 Tom Tromey <tom@tromey.com>
6685
6686 * psymtab.c (partial_map_expand_apply)
6687 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6688 (psym_lookup_global_symbol_language)
6689 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6690 (psym_print_stats, psym_expand_symtabs_for_function)
6691 (psym_map_symbol_filenames, psym_map_matching_symbols)
6692 (psym_expand_symtabs_matching)
6693 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6694 (maintenance_check_psymtabs): Update.
6695 * psympriv.h (struct partial_symtab) <readin_p,
6696 get_compunit_symtab>: Add objfile parameter.
6697 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6698 Likewise.
6699 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6700 get_compunit_symtab>: Likewise.
6701 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6702
45940949
TT
67032020-05-27 Tom Tromey <tom@tromey.com>
6704
6705 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6706 member.
6707 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6708 (create_cu_from_index_list)
6709 (create_signatured_type_table_from_index)
6710 (create_signatured_type_table_from_debug_names)
6711 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6712 (dwarf2_create_include_psymtab)
6713 (create_debug_type_hash_table, add_type_unit)
6714 (create_type_unit_group, read_comp_units_from_section)
6715 (dwarf2_compute_name, create_cus_hash_table)
6716 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6717 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6718 obstack.
6719 (dw2_get_real_path): Likewise. Change argument to
6720 dwarf2_per_objfile.
6721
f8c6d152
LM
67222020-05-27 Luis Machado <luis.machado@linaro.org>
6723
6724 PR tdep/26000
6725 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6726 for ldrd (immediate).
6727
e98d2e6d
PW
67282020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6729
6730 * command.h: Add comment giving the name of class_tui.
6731 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6732 create the fake command for the help for class_tui.
6733
53a47a3e
TT
67342020-05-26 Tom Tromey <tromey@adacore.com>
6735
6736 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6737 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6738 (val_atr): New function.
6739 (value_val_atr): Use it.
6740 * ada-valprint.c (print_optional_low_bound): Change low bound
6741 handling for enums.
6742 (val_print_packed_array_elements): Don't call discrete_position.
6743 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6744 discrete_position for enum types.
6745 * language.c (default_print_array_index): Change type.
6746 * language.h (struct language_defn) <la_print_array_index>: Add
6747 index_type parameter, change type of index_value.
6748 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6749 (default_print_array_index): Update.
6750 * valprint.c (maybe_print_array_index): Don't call
6751 value_from_longest. Update.
6752 (value_print_array_elements): Don't call discrete_position.
6753
0bc2354b
TT
67542020-05-26 Tom Tromey <tromey@adacore.com>
6755
6756 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6757 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6758
1218a4bf
CDA
67592020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6760
6761 PR gdb/13519
6762 * avr-tdep.c (avr_integer_to_address): Return data or code
6763 address accordingly to the second 'type' argument of the
6764 function.
6765
92651b1d
MW
67662020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6767
6768 * infcmd.c, inferior.h: (construct_inferior_arguments):
6769 Moved function from here to gdbsupport/common-inferior.{h,cc}
6770
0a4f5f8c
TT
67712020-05-23 Tom Tromey <tom@tromey.com>
6772
6773 Revert commit eca1f90c:
6774 * NEWS: Remove entry for completion styling.
6775 * completer.c (_rl_completion_prefix_display_length): Move
6776 declaration later.
6777 (gdb_fnprint): Revert.
6778 (gdb_display_match_list_1): Likewise.
6779 * cli/cli-style.c (completion_prefix_style)
6780 (completion_difference_style, completion_suffix_style): Remove.
6781 (_initialize_cli_style): Revert.
6782 * cli/cli-style.h (completion_prefix_style)
6783 (completion_difference_style, completion_suffix_style): Don't
6784 declare.
6785
e08bd6c5
PA
67862020-05-24 Pedro Alves <palves@redhat.com>
6787
6788 * symtab.c (completion_list_add_name): Return boolean indication
6789 of whether the symbol matched.
6790 (completion_list_add_symbol): Don't try to remove C++ aliases if
6791 the symbol didn't match in the first place.
6792 * symtab.h (completion_list_add_name): Return bool.
6793
ceacbf6e
SM
67942020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6795
6796 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6797 type::field.
6798
26f16254
JB
67992020-05-23 Joel Brobecker <brobecker@adacore.com>
6800
6801 GDB 9.2 released.
6802
eca1f90c
TT
68032020-05-23 Tom Tromey <tom@tromey.com>
6804
6805 * NEWS: Add entry for completion styling.
6806 * completer.c (_rl_completion_prefix_display_length): Move
6807 declaration earlier.
6808 (gdb_fnprint): Use completion_style.
6809 (gdb_display_match_list_1): Likewise.
6810 * cli/cli-style.c (completion_prefix_style)
6811 (completion_difference_style, completion_suffix_style): New
6812 globals.
6813 (_initialize_cli_style): Register new globals.
6814 * cli/cli-style.h (completion_prefix_style)
6815 (completion_difference_style, completion_suffix_style): Declare.
6816
51e2cfa2
PA
68172020-05-23 Pedro Alves <palves@redhat.com>
6818
6819 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6820 (parse_escape): Use ISDIGIT instead of isdigit.
6821 (puts_debug): Use gdb_isprint instead of isprint.
6822 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6823 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6824 ISSPACE instead of isspace.
6825 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6826 instead of isspace.
6827 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6828 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6829 instead of isxdigit and ISDIGIT instead of isdigit.
6830
80fc5e77
SM
68312020-05-22 Simon Marchi <simon.marchi@efficios.com>
6832
6833 * gdbtypes.h (struct type) <field>: New method.
6834 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6835 or type::field.
6836
3cabb6b0
SM
68372020-05-22 Simon Marchi <simon.marchi@efficios.com>
6838
6839 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6840 (TYPE_FIELDS): Use type::fields. Change all call sites that
6841 modify the propery to use type::set_fields instead.
6842
1f704f76
SM
68432020-05-22 Simon Marchi <simon.marchi@efficios.com>
6844
6845 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6846 type::num_fields instead.
6847
5e33d5f4
SM
68482020-05-22 Simon Marchi <simon.marchi@efficios.com>
6849
6850 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6851 methods.
6852 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6853 that modify the number of fields to use type::set_num_fields
6854 instead.
6855
9392ebb3
TT
68562020-05-22 Tom Tromey <tromey@adacore.com>
6857
6858 * compile/compile-object-load.h (munmap_list_free): Don't
6859 declare.
6860
7c13f4e8
AB
68612020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6862
6863 * annotate.c (annotate_source_line): Update return type, add call
6864 to update current symtab and line.
6865 * annotate.h (annotate_source_line): Update return type, and
6866 extend header comment.
6867 * source.c (info_line_command): Check annotation_level before
6868 calling annotate_source_line.
6869 * stack.c (print_frame_info): If calling annotate_source_line
6870 returns true, then don't print any other source line information.
6871
aa370940
SM
68722020-05-21 Simon Marchi <simon.marchi@efficios.com>
6873
6874 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6875
84d53fa9
SM
68762020-05-21 Simon Marchi <simon.marchi@efficios.com>
6877
6878 * coffread.c (patch_type): Remove NULL check before xfree.
6879 * corefile.c (set_gnutarget): Likewise.
6880 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6881 * exec.c (build_section_table): Likewise.
6882 * remote.c (remote_target::pass_signals): Likewise.
6883 * utils.c (n_spaces): Likewise.
6884 * cli/cli-script.c (document_command): Likewise.
6885 * i386-windows-tdep.c (core_process_module_section): Likewise.
6886 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6887
9d428aae
SM
68882020-05-20 Simon Marchi <simon.marchi@efficios.com>
6889
6890 * symfile.c (reread_symbols): Clear objfile's section_offsets
6891 vector and section indices, re-compute them by calling
6892 sym_offsets.
6893
250106a7
TT
68942020-05-20 Tom Tromey <tromey@adacore.com>
6895
6896 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6897 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6898
9a0bacfb
TV
68992020-05-20 Tom de Vries <tdevries@suse.de>
6900
6901 PR symtab/25833
6902 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6903
7b958a48
AM
69042020-05-20 Alan Modra <amodra@gmail.com>
6905
6906 PR 25993
6907 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6908 bfd_set_filename.
6909 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6910 passed to bfd_set_filename.
6911 * symfile-mem.c (add_vsyscall_page): Likewise for string
6912 passed to symbol_file_add_from_memory.
6913 (symbol_file_add_from_memory): Make name param a const char* and
6914 don't strdup.
6915
c7e97679
AM
69162020-05-20 Alan Modra <amodra@gmail.com>
6917
6918 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6919 rather than accessing bfd->filename directly.
6920 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6921 and use bfd_section_name.
6922 * dwarf2/frame.c (decode_frame_entry): Likewise.
6923 * exec.c (exec_set_section_address): Likewise.
6924 * solib-aix.c (solib_aix_bfd_open): Likewise.
6925 * stap-probe.c (get_stap_base_address): Likewise.
6926 * symfile.c (reread_symbols): Likewise.
6927
563c591b
TT
69282020-05-19 Tom Tromey <tromey@adacore.com>
6929
6930 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6931
f408d82c
SM
69322020-05-19 Simon Marchi <simon.marchi@efficios.com>
6933
6934 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6935
98c59b52
PA
69362020-05-19 Pedro Alves <palves@redhat.com>
6937
6938 * NEWS (set exec-file-mismatch): Adjust entry.
6939 * exec.c: Include "build-id.h".
6940 (validate_exec_file): Try to match build IDs instead of filenames.
6941 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6942 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6943 and pass down 'warn_if_slow'.
6944 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6945 gdb_bfd_open_closure to pass it down.
6946 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6947
4111f652
PA
69482020-05-19 Pedro Alves <palves@redhat.com>
6949
6950 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6951 * target.c (target_fileio_open_1): Rename to target_fileio_open
6952 and make extern. Use bool.
6953 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6954 (target_fileio_read_alloc_1): Adjust.
6955 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6956 (target_fileio_open_warn_if_slow): Delete declaration.
6957
ad80db5b
PA
69582020-05-19 Pedro Alves <palves@redhat.com>
6959
6960 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6961 Adjust all callers.
6962
1d6ce4d3
YS
69632020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6964
6965 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6966 whether disp is negative.
6967
9005fbbb
SM
69682020-05-19 Simon Marchi <simon.marchi@efficios.com>
6969
6970 * symfile.h (struct symfile_segment_data)
6971 <~symfile_segment_data>: Remove.
6972 <segment_info>: Change to std::vector.
6973 * symfile.c (default_symfile_segments): Update.
6974 * elfread.c (elf_symfile_segments): Update.
6975
68b888ff
SM
69762020-05-19 Simon Marchi <simon.marchi@efficios.com>
6977
6978 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6979 <segments>: New.
6980 <segment_bases, segment_sizes>: Remove.
6981 * symfile.c (default_symfile_segments): Update.
6982 * elfread.c (elf_symfile_segments): Update.
6983 * remote.c (remote_target::get_offsets): Update.
6984 * solib-target.c (solib_target_relocate_section_addresses):
6985 Update.
6986
62982abd
SM
69872020-05-19 Simon Marchi <simon.marchi@efficios.com>
6988
6989 * symfile.h (struct symfile_segment_data): Initialize fields.
6990 <~symfile_segment_data>: Add.
6991 (symfile_segment_data_up): New.
6992 (struct sym_fns) <sym_segments>: Return a
6993 symfile_segment_data_up.
6994 (default_symfile_segments): Return a symfile_segment_data_up.
6995 (free_symfile_segment_data): Remove.
6996 (get_symfile_segment_data): Return a symfile_segment_data_up.
6997 * symfile.c (default_symfile_segments): Likewise.
6998 (get_symfile_segment_data): Likewise.
6999 (free_symfile_segment_data): Remove.
7000 (symfile_find_segment_sections): Update.
7001 * elfread.c (elf_symfile_segments): Return a
7002 symfile_segment_data_up.
7003 * remote.c (remote_target::get_offsets): Update.
7004 * solib-target.c (solib_target_relocate_section_addresses):
7005 Update.
7006 * symfile-debug.c (debug_sym_segments): Return a
7007 symfile_segment_data_up.
7008
7f204339
RO
70092020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7010
e52a0f1b
RO
7011 PR build/25981
7012 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7013 Hardcode register numbers.
7014
7f204339
RO
7015 PR build/25981
7016 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7017 procfs_find_LDT_entry): Remove.
7018 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7019 procfs_find_LDT_entry): Remove.
7020 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7021 Remove.
7022
7f32a4d5
PA
70232020-05-17 Pedro Alves <palves@redhat.com>
7024 Andrew Burgess <andrew.burgess@embecosm.com>
7025 Keno Fischer <keno@juliacomputing.com>
7026
7027 PR gdb/25741
7028 * breakpoint.c (build_target_condition_list): Update comments.
7029 (build_target_command_list): Update comments and skip matching
7030 locations.
7031 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7032 a separate function. Simplify "set breakpoint auto-hw off"
7033 handling.
7034 (insert_breakpoints): Update comment.
7035 (tracepoint_locations_match): New parameter. For breakpoints,
7036 compare location types too, if the caller wants to.
7037 (handle_automatic_hardware_breakpoints): New functions.
7038 (bp_location_is_less_than): Also sort by location type and
7039 hardware breakpoint length.
7040 (update_global_location_list): Handle "set breakpoint auto-hw on"
7041 here.
7042 (update_breakpoint_locations): Ask breakpoint_locations_match to
7043 ignore location types.
7044
7d93a1e0
SM
70452020-05-16 Simon Marchi <simon.marchi@efficios.com>
7046
7047 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7048 type::name instead.
7049
d0e39ea2
SM
70502020-05-16 Simon Marchi <simon.marchi@efficios.com>
7051
7052 * gdbtypes.h (struct type) <name, set_name>: New methods.
7053 (TYPE_CODE): Use type::name. Change all call sites used to set
7054 the name to use type::set_name instead.
7055
2dab0c7b
TT
70562020-05-16 Tom Tromey <tom@tromey.com>
7057
7058 * top.c (quit_force): Update.
7059 * infrun.c (handle_no_resumed): Update.
7060 * top.h (all_uis): New function.
7061 (ALL_UIS): Remove.
7062
59f7bd8d
SM
70632020-05-16 Simon Marchi <simon.marchi@efficios.com>
7064
7065 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7066
9bf058f0
PA
70672020-05-16 Pedro Alves <palves@redhat.com>
7068
7069 * ia64-linux-nat.c
7070 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7071 Declare method.
7072 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7073
8f86ae1a
SM
70742020-05-15 Simon Marchi <simon.marchi@efficios.com>
7075
7076 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7077 (sparc64_adi_info): Likewise.
7078
d6bc0792
TT
70792020-05-15 Tom Tromey <tom@tromey.com>
7080
7081 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7082 block_objfile.
7083 (lookup_objfile_from_block): Remove.
7084 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7085 (lookup_global_symbol): Use block_objfile.
7086 * symtab.h (lookup_objfile_from_block): Don't declare.
7087 * printcmd.c (clear_dangling_display_expressions): Use
7088 block_objfile.
7089 * parse.c (operator_check_standard): Use block_objfile.
7090
8c14c3a3
TT
70912020-05-15 Tom Tromey <tom@tromey.com>
7092
7093 * language.c (language_alloc_type_symbol): Set
7094 SYMBOL_SECTION.
7095 * symtab.c (initialize_objfile_symbol): Remove.
7096 (allocate_symbol): Remove.
7097 (allocate_template_symbol): Remove.
7098 * dwarf2/read.c (fixup_go_packaging): Use "new".
7099 (new_symbol): Use "new".
7100 (read_variable): Don't call initialize_objfile_symbol. Use
7101 "new".
7102 (read_func_scope): Use "new".
7103 * xcoffread.c (process_xcoff_symbol): Don't call
7104 initialize_objfile_symbol.
7105 (SYMBOL_DUP): Remove.
7106 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7107 "new".
7108 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7109 (allocate_template_symbol): Don't declare.
7110 (struct symbol): Add copy constructor. Change defaults.
7111 * jit.c (finalize_symtab): Use "new".
7112 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7113 Use "new".
7114 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7115 (common_block_end): Use "new".
7116 * mdebugread.c (parse_symbol): Use "new".
7117 (new_symbol): Likewise.
7118
5b4a1a8d
PW
71192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7120
7121 * NEWS: Mention changes to help and apropos.
7122
57b4f16e
PW
71232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7124
7125 * command.h (enum command_class): Improve comments, document
7126 that class_alias is for user-defined aliases, give the class
7127 name for each class, remove unused class_xdb.
7128 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7129 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7130 by a precise class.
7131 * infcmd.c (_initialize_infcmd): Likewise.
7132 * reverse.c (_initialize_reverse): Likewise.
7133 * stack.c (_initialize_stack): Likewise.
7134 * symfile.c (_initialize_symfile): Likewise.
7135 * tracepoint.c (_initialize_tracepoint): Likewise.
7136
7c05caf7
PW
71372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7138
7139 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7140 when their aliased command is traversed.
7141 (help_cmd): Add fput_command_names_styled call to
7142 output command name and aliases when command has an alias.
7143
3b3aaacb
PW
71442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7145
7146 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7147 * cli/cli-decode.c (help_cmd_list): Declare as static,
7148 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7149 a command together with the command.
7150 (fput_command_name_styled, fput_command_names_styled): New functions.
7151 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7152 fput_command_name_styled.
7153 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7154 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7155
7aa1b46f
PW
71562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7157
7158 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7159 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7160 * command.h (cmd_show_list): Likewise.
7161 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7162 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7163
89bcba74
PW
71642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7165
7166 * unittests/command-def-selftests.c (traverse_command_structure):
7167 Verify all commands of a list have the same prefix command and
7168 that only the top cmdlist commands have a null prefix.
7169
3f4d92eb
PW
71702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7171
7172 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7173 as prefix, not one of its aliases.
7174 (set_cmd_prefix): Remove.
7175 (do_add_cmd): Centralize the setting of the prefix of a command, when
7176 command is defined after its full chain of prefix commands.
7177 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7178 (add_setshow_cmd_full): Likewise.
7179 (update_prefix_field_of_prefixed_commands): New function.
7180 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7181 update_prefix_field_of_prefixed_commands.
7182 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7183 addresses of remote_set_cmdlist and remote_show_cmdlist given
7184 as argument, not the address of an argument.
7185 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7186 * gdb/remote.c (_initialize_remote): Likewise.
7187
0605465f
PW
71882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7189
7190 * cli/cli-cmds.c (alias_command): Check for an existing alias
7191 using lookup_cmd_composition, as valid_command_p is too strict
7192 and forbids aliases that are the prefix of an existing alias
7193 or command.
7194 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7195 command is properly recognised as a valid command.
7196
58e6ac70
PW
71972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7198
7199 * unittests/help-doc-selftests.c: Rename to
7200 unittests/command-def-selftests.c
7201 * unittests/command-def-selftests.c (help_doc_tests): Update some
7202 comments.
7203 (command_structure_tests, traverse_command_structure): New namespace
7204 and function.
7205 (command_structure_invariants_tests): New function.
7206 (_initialize_command_def_selftests) Renamed from
7207 _initialize_help_doc_selftests, register command_structure_invariants
7208 selftest.
7209
a7b9ceb8
PW
72102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7211
7212 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7213 an alias of 'show'.
7214
b2188a06
JB
72152020-05-15 Joel Brobecker <brobecker@adacore.com>
7216
7217 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7218 ada_is_fixed_point_type. Update all callers.
7219 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7220 all callers.
7221 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7222 Update all callers.
7223 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7224 print_fixed_point_type. Update all callers.
7225 * ada-valprint.c (ada_value_print_num): Replace call to
7226 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7227
a51951c2
KB
72282020-05-14 Kevin Buettner <kevinb@redhat.com>
7229
7230 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7231 processors.
7232 (cpu_supports_bts): Add CV_AMD case.
7233
29d6859f
LM
72342020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7235 Simon Marchi <simon.marchi@efficios.com>
7236
7237 * infrun.c (stop_all_threads): Collect multiple wait events at
7238 each pass.
7239
78134374
SM
72402020-05-14 Simon Marchi <simon.marchi@efficios.com>
7241
7242 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7243 type::code instead.
7244
67607e24
SM
72452020-05-14 Simon Marchi <simon.marchi@efficios.com>
7246
7247 * gdbtypes.h (struct type) <code, set_code>: New methods.
7248 (TYPE_CODE): Use type::code. Change all call sites used to set
7249 the code to use type::set_code instead.
7250
a05575d3
TBA
72512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7252 Tom de Vries <tdevries@suse.de>
7253 Pedro Alves <palves@redhat.com>
7254
7255 PR threads/25478
7256 * infrun.c (stop_all_threads): Do NOT ignore
7257 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7258 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7259 received.
7260 (handle_no_resumed): Remove code handling a live inferior with no
7261 threads.
7262 * remote.c (has_single_non_exited_thread): New.
7263 (remote_target::update_thread_list): Do not delete a thread if is
7264 the last thread of the process.
7265 * thread.c (thread_select): Call delete_exited_threads instead of
7266 prune_threads.
7267
6ad82919
TBA
72682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7269
7270 * infrun.c (stop_all_threads): Enable/disable thread events of all
7271 targets. Move a debug message denoting the end of the function
7272 into the SCOPED_EXIT block.
7273
d890404b
TBA
72742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7275
7276 * process-stratum-target.h: Include <set>.
7277 (all_non_exited_process_targets, switch_to_target_no_thread): New
7278 function declarations.
7279 * process-stratum-target.c (all_non_exited_process_targets)
7280 (switch_to_target_no_thread): New function implementations.
7281
293b3ebc
TBA
72822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7283
7284 * infrun.c (handle_inferior_event): Extract out a piece of code
7285 into...
7286 (mark_non_executing_threads): ...this new function.
7287
7ca9b62a
TBA
72882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7289
7290 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7291 use.
7292
fc75c28b
TBA
72932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7294
7295 * regcache.c (regcache_read_pc_protected): New function
7296 implementation that returns 0 if the PC cannot read via
7297 'regcache_read_pc'.
7298 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7299 instead of 'regcache_read_pc'.
7300 (keep_going_pass_signal): Ditto.
7301
a89febbd
TT
73022020-05-13 Tom Tromey <tromey@adacore.com>
7303
7304 * ada-lang.c (align_value): Remove.
7305 (ada_template_to_fixed_record_type_1): Use align_up.
7306
f7e23710
TBA
73072020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7308
7309 * async-event.c: Update the copyright year.
7310 * async-event.h: Update the copyright year.
7311
02ff80c2
SM
73122020-05-12 Simon Marchi <simon.marchi@efficios.com>
7313
7314 * objfiles.h (is_addr_in_objfile,
7315 shared_objfile_contains_address_p): Return bool.
7316 * objfile.c (is_addr_in_objfile,
7317 shared_objfile_contains_address_p): Return bool.
7318
4fd6c7e8
TT
73192020-05-11 Tom Tromey <tromey@adacore.com>
7320
7321 * cli/cli-cmds.c (info_command): Restore.
7322 (_initialize_cli_cmds): Use add_prefix_command for "info".
7323 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7324
5eb68a39
TT
73252020-05-11 Tom Tromey <tromey@adacore.com>
7326
7327 * ada-lang.c (ada_value_primitive_field): Now public.
7328 * ada-lang.h (ada_value_primitive_field): Declare.
7329 * ada-valprint.c (print_field_values): Use
7330 ada_value_primitive_field for wrapper fields.
7331
7666722f
TV
73322020-05-11 Tom de Vries <tdevries@suse.de>
7333
7334 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7335 MODULE_DOMAIN.
7336
3ee6bb11
TV
73372020-05-11 Tom de Vries <tdevries@suse.de>
7338
7339 PR symtab/25941
7340 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7341 with length 0, if not gdb-produced.
7342 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7343
43434996
TV
73442020-05-09 Tom de Vries <tdevries@suse.de>
7345
7346 PR gdb/25955
7347 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7348 calculation.
7349
2f78cffc
TT
73502020-05-09 Tom Tromey <tom@tromey.com>
7351
7352 * top.c (server_command): Now bool.
7353 * top.h (server_command): Now bool.
7354
4f7bc5ed
TT
73552020-05-08 Tom Tromey <tromey@adacore.com>
7356
7357 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7358 already being processed.
7359
8be4b118
TT
73602020-05-08 Tom Tromey <tom@tromey.com>
7361
7362 * printcmd.c (struct display) <next>: Remove.
7363 <display>: New constructor.
7364 <exp_string>: Now a std::string.
7365 <enabled_p>: Now a bool.
7366 (display_number): Move definition earlier.
7367 (displays): Rename from display_chain. Now a std::vector.
7368 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7369 (display_command): Update.
7370 (do_one_display, disable_display)
7371 (enable_disable_display_command, do_enable_disable_display):
7372 Update.
7373 (free_display): Remove.
7374 (clear_displays): Rewrite.
7375 (delete_display): Update.
7376 (map_display_numbers): Use function_view. Remove "data"
7377 parameter. Update.
7378 (do_delete_display): Remove.
7379 (undisplay_command): Update.
7380 (do_one_display, do_displays, disable_display)
7381 (info_display_command): Update.
7382 (do_enable_disable_display): Remove.
7383 (enable_disable_display_command)
7384 (clear_dangling_display_expressions): Update.
7385
94c93c35
TT
73862020-05-08 Tom Tromey <tom@tromey.com>
7387
7388 * symtab.c (set_symbol_cache_size)
7389 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7390 (maintenance_print_symbol_cache_statistics): Update.
7391 * symmisc.c (print_symbol_bcache_statistics)
7392 (print_objfile_statistics, maintenance_print_objfiles)
7393 (maintenance_info_symtabs, maintenance_check_symtabs)
7394 (maintenance_expand_symtabs, maintenance_info_line_tables):
7395 Update.
7396 * symfile-debug.c (set_debug_symfile): Update.
7397 * source.c (forget_cached_source_info): Update.
7398 * python/python.c (gdbpy_progspaces): Update.
7399 * psymtab.c (maintenance_info_psymtabs): Update.
7400 * probe.c (parse_probes): Update.
7401 * linespec.c (iterate_over_all_matching_symtabs)
7402 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7403 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7404 * exec.c (exec_target::close): Update.
7405 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7406 * breakpoint.c (print_one_breakpoint_location)
7407 (create_longjmp_master_breakpoint)
7408 (create_std_terminate_master_breakpoint): Update.
7409 * progspace.c (program_spaces): Now a std::vector.
7410 (maybe_new_address_space): Update.
7411 (add_program_space): Remove.
7412 (program_space::program_space): Update.
7413 (remove_program_space): Update.
7414 (number_of_program_spaces): Remove.
7415 (print_program_space, update_address_spaces): Update.
7416 * progspace.h (program_spaces): Change type.
7417 (ALL_PSPACES): Remove.
7418 (number_of_program_spaces): Don't declare.
7419 (struct program_space) <next>: Remove.
7420
a1fd1ac9
TT
74212020-05-08 Tom Tromey <tom@tromey.com>
7422
7423 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7424 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7425 (enable_break): Update.
7426 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7427 (frv_fdpic_find_canonical_descriptor): Update.
7428 (frv_fetch_objfile_link_map): Update.
7429 * progspace.c (program_space::free_all_objfiles): Update.
7430 (program_space::solibs): New method.
7431 * progspace.h (struct program_space) <solibs>: New method.
7432 * solist.h (master_so_list): Don't declare.
7433 (ALL_SO_LIBS): Remove.
7434 * solib.h (so_list_head): Remove.
7435 (update_solib_list): Update comment.
7436 * solib.c (master_so_list): Remove.
7437 (solib_used, update_solib_list, solib_add)
7438 (info_sharedlibrary_command, clear_solib)
7439 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7440
38eae084
TT
74412020-05-08 Tom Tromey <tom@tromey.com>
7442
7443 * extension.c (extension_languages): Now a std::array.
7444 (ALL_EXTENSION_LANGUAGES): Remove.
7445 (get_ext_lang_defn, get_ext_lang_of_file)
7446 (eval_ext_lang_from_control_command): Update.
7447 (finish_ext_lang_initialization)
7448 (auto_load_ext_lang_scripts_for_objfile)
7449 (ext_lang_type_printers::ext_lang_type_printers)
7450 (apply_ext_lang_type_printers)
7451 (ext_lang_type_printers::~ext_lang_type_printers)
7452 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7453 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7454 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7455 (get_matching_xmethod_workers, ext_lang_colorize)
7456 (ext_lang_before_prompt): Update.
7457 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7458
596dc4ad
TT
74592020-05-08 Tom Tromey <tom@tromey.com>
7460
7461 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7462 overload.
7463 <swap_string, m_string>: Remove.
7464 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7465 Update.
7466 * stabsread.c (define_symbol, read_type): Update.
7467 * linespec.c (find_linespec_symbols): Update.
7468 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7469 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7470 * dbxread.c (read_dbx_symtab): Update.
7471 * cp-support.h (cp_canonicalize_string_full)
7472 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7473 Return unique_xmalloc_ptr.
7474 * cp-support.c (inspect_type): Update.
7475 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7476 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7477 Likewise.
7478 * c-typeprint.c (print_name_maybe_canonical): Update.
7479 * break-catch-throw.c (check_status_exception_catchpoint):
7480 Update.
7481
bf4cb9be
TV
74822020-05-08 Tom de Vries <tdevries@suse.de>
7483
7484 * infrun.c (follow_fork): Copy current_line and current_symtab to
7485 child thread.
7486
a1b68f28
SM
74872020-05-07 Simon Marchi <simon.marchi@efficios.com>
7488
7489 * async-event.c (struct async_signal_handler, struct
7490 async_event_handler): Reformat, remove typedef.
7491
98d48915
SM
74922020-05-07 Simon Marchi <simon.marchi@efficios.com>
7493
7494 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7495 access thistype->main_type->dyn_prop_list directly.
7496
7aa91313
SM
74972020-05-07 Simon Marchi <simon.marchi@efficios.com>
7498
7499 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7500 (remove_dyn_prop): Remove. Update all users to use
7501 type::remove_dyn_prop.
7502 * gdbtypes.c (remove_dyn_prop): Rename to...
7503 (type::remove_dyn_prop): ... this.
7504
5c54719c
SM
75052020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7506
7507 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7508 (add_dyn_prop): Remove. Update all users to use
7509 type::add_dyn_prop.
7510 * gdbtypes.c (add_dyn_prop): Rename to...
7511 (type::add_dyn_prop): ... this.
7512
24e99c6c
SM
75132020-05-07 Simon Marchi <simon.marchi@efficios.com>
7514
7515 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7516 (get_dyn_prop): Remove. Update all users to use
7517 type::dyn_prop.
7518 * gdbtypes.c (get_dyn_prop): Rename to...
7519 (type::dyn_prop): ... this.
7520
0d4bf016
SM
75212020-05-06 Simon Marchi <simon.marchi@efficios.com>
7522
7523 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7524
ac4a4f1c
SM
75252020-05-06 Simon Marchi <simon.marchi@efficios.com>
7526
7527 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7528 instruction, skip it if it's there.
7529
a3bbacc1
SM
75302020-05-05 Simon Marchi <simon.marchi@efficios.com>
7531
7532 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7533
c3236f84
SM
75342020-05-04 Simon Marchi <simon.marchi@efficios.com>
7535
7536 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7537 * gdbtypes.c (recursive_dump_type): Remove use of
7538 TYPE_INCOMPLETE.
7539
3b6acaee
TT
75402020-05-03 Tom Tromey <tom@tromey.com>
7541
7542 * breakpoint.c (catch_command, tcatch_command): Remove.
7543 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7544 add_show_prefix_cmd.
7545 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7546 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7547 Remove.
7548 (add_internal_problem_command): Use add_basic_prefix_cmd,
7549 add_show_prefix_cmd.
7550 * mips-tdep.c (set_mipsfpu_command): Remove.
7551 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7552 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7553 (_initialize_index_cache): Use add_basic_prefix_cmd.
7554 * memattr.c (dummy_cmd): Remove.
7555 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7556 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7557 (_initialize_tui_win): Use add_basic_prefix_cmd,
7558 add_show_prefix_cmd.
7559 * cli/cli-logging.c (set_logging_command): Remove.
7560 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7561 add_show_prefix_cmd.
7562 (show_logging_command): Remove.
7563 * target.c (target_command): Remove.
7564 (add_target): Use add_basic_prefix_cmd.
7565
a51119cd
HD
75662020-05-02 Hannes Domani <ssbssa@yahoo.de>
7567
7568 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7569
652fc23a 75702020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7571
652fc23a
PW
7572 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7573 info_command.
7574
117539e6
KR
75752020-04-30 Kamil Rytarowski <n54@gmx.com>
7576
7577 * nbsd-nat.c (nbsd_enable_proc_events)
7578 (nbsd_nat_target::post_startup_inferior): Add.
7579 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7580 (nbsd_nat_target::update_thread_list): Rewrite.
7581 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7582 "PTRACE_LWP_CREATE".
7583 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7584
102e38eb 75852020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7586
102e38eb
PW
7587 * stack.c (_initialize_stack): Remove duplicated creation
7588 of "frame" command and "f" alias.
7589
ee9d1e5f
HD
75902020-04-30 Hannes Domani <ssbssa@yahoo.de>
7591
7592 PR gdb/18706
7593 * gdbtypes.c (check_typedef): Calculate size of array of
7594 stubbed type.
7595
627c7fb8
HD
75962020-04-30 Hannes Domani <ssbssa@yahoo.de>
7597
7598 PR gdb/15559
7599 * i386-tdep.c (i386_push_dummy_call): Call
7600 i386_thiscall_push_dummy_call.
7601 (i386_thiscall_push_dummy_call): New function.
7602 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7603 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7604 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7605
ffc2844e
SM
76062020-04-29 Simon Marchi <simon.marchi@efficios.com>
7607
7608 * gdbarch.sh (do_read): Add shellcheck disable directive for
7609 warning SC2162.
7610
1207375d
SM
76112020-04-29 Simon Marchi <simon.marchi@efficios.com>
7612
7613 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7614 "referenced but not assigned" warning.
7615
9fdb2916
SM
76162020-04-29 Simon Marchi <simon.marchi@efficios.com>
7617
7618 * gdbarch.sh: Remove code that sets fallbackdefault.
7619
759cea5e
SM
76202020-04-29 Simon Marchi <simon.marchi@efficios.com>
7621
7622 * gdbarch.sh: Use shell operators && and || instead of
7623 -a and -o.
7624
cb02ab24
SM
76252020-04-29 Simon Marchi <simon.marchi@efficios.com>
7626
7627 * gdbarch.sh: Use $(...) instead of `...`.
7628
a6fc5ffc
SM
76292020-04-29 Simon Marchi <simon.marchi@efficios.com>
7630
7631 * gdbarch.sh: Use double quotes around variables.
7632
8d113d13
SM
76332020-04-29 Simon Marchi <simon.marchi@efficios.com>
7634
7635 * gdbarch.sh: Use %s with printf, instead of variables in the
7636 format string.
7637
ed6acedd
TT
76382020-04-29 Tom Tromey <tromey@adacore.com>
7639
7640 PR ada/25875:
7641 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7642 type fields here.
7643 (read_enumeration_type): Call
7644 update_enumeration_type_from_children later. Update comments.
7645 (process_enumeration_scope): Don't create type fields.
7646
b68b1b58
KR
76472020-04-29 Kamil Rytarowski <n54@gmx.com>
7648
7649 * nbsd-tdep.c: Include "xml-syscall.h".
7650 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7651
f94b2e03
KR
76522020-04-29 Kamil Rytarowski <n54@gmx.com>
7653
7654 * nbsd-nat.c: Include "sys/wait.h".
7655 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7656 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7657 (nbsd_nat_target::remove_exec_catchpoint)
7658 (nbsd_nat_target::set_syscall_catchpoint): Add.
7659 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7660 (nbsd_nat_target::insert_exec_catchpoint)
7661 (nbsd_nat_target::remove_exec_catchpoint)
7662 (nbsd_nat_target::set_syscall_catchpoint): Add.
7663 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7664 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7665 `nbsd_get_syscall_number'.
7666
fc49bc72
TT
76672020-04-29 Tom Tromey <tom@tromey.com>
7668
7669 * stack.c (print_block_frame_labels): Remove.
7670
d642b692
HD
76712020-04-29 Hannes Domani <ssbssa@yahoo.de>
7672
7673 PR gdb/17320
7674 * ada-valprint.c (val_print_packed_array_elements): Move array
7675 end bracket to new line.
7676 (ada_val_print_string): Remove extra spaces before first array
7677 element.
7678 * c-valprint.c (c_value_print_array): Likewise.
7679 * m2-valprint.c (m2_print_array_contents): Likewise.
7680 (m2_value_print_inner): Likewise.
7681 * p-valprint.c (pascal_value_print_inner): Likewise.
7682 * valprint.c (generic_val_print_array): Likewise.
7683 (value_print_array_elements): Move first array element and array
7684 end bracket to new line.
7685
ea90f227
TV
76862020-04-29 Tom de Vries <tdevries@suse.de>
7687
7688 PR symtab/25889
7689 * linespec.c (find_method): Fix ix calculation.
7690
4498ef4f
KR
76912020-04-28 Kamil Rytarowski <n54@gmx.com>
7692
7693 * syscalls/update-netbsd.sh: New file.
7694 * syscalls/netbsd.xml: Regenerate.
7695 * data-directory/Makefile.in: Register `netbsd.xml' in
7696 `SYSCALLS_FILES'.
7697
a55e30b5
SM
76982020-04-28 Simon Marchi <simon.marchi@efficios.com>
7699
7700 * syscalls/update-freebsd.sh: Add double quotes.
7701
2b2fbab8
TT
77022020-04-28 Tom Tromey <tom@tromey.com>
7703
7704 * NEWS: Update.
7705 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7706 (cmdpy_init): Allow class_tui.
7707
a65189c9
TV
77082020-04-28 Mark Williams <mark@myosotissp.com>
7709
7710 PR gdb/24480
7711 * dwarf2read.c: Add missing assingments to list_in_scope when
7712 start_symtab was already called.
7713
1b95cdb7
SM
77142020-04-28 Simon Marchi <simon.marchi@efficios.com>
7715
7716 PR gdb/25881
7717 * dwarf2/read.c (offset_map_type): Use
7718 gdb:hash_enum<sect_offset> as hash function.
7719
15cd93d0
TV
77202020-04-28 Tom de Vries <tdevries@suse.de>
7721
7722 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7723 with DW_AT_signature.
7724
1eb39914
SM
77252020-04-27 Simon Marchi <simon.marchi@efficios.com>
7726
7727 * configure.ac: Remove check for fs_base/gs_base in
7728 user_regs_struct.
7729 * configure: Re-generate.
7730 * config.in: Re-generate.
7731 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7732 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7733 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7734
991a3e2e
LM
77352020-04-27 Luis Machado <luis.machado@linaro.org>
7736
7737 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7738 problematic inline frame unwinding situation.
7739 * frame.c (frame_id_computed_p): New function.
7740 * frame.h (frame_id_computed_p): New prototype.
7741
361ba0e8
TT
77422020-04-26 Tom Tromey <tom@tromey.com>
7743
7744 * command.h (enum command_class) <class_pseudo>: Remove.
7745
bc3609fd
PW
77462020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7747
7748 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7749 and whitespace.
7750
b9771db7
KR
77512020-04-25 Kamil Rytarowski <n54@gmx.com>
7752
ec16513e
SM
7753 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7754 `PT_GET_PROCESS_STATE' block.
b9771db7 7755
7151c1af
TT
77562020-04-24 Tom Tromey <tom@tromey.com>
7757
7758 * symtab.h (symbol_get_demangled_name): Don't declare.
7759 * symtab.c (symbol_get_demangled_name): Remove.
7760 (general_symbol_info::natural_name)
7761 (general_symbol_info::demangled_name): Update.
7762
906bb4c5
TT
77632020-04-24 Tom Tromey <tom@tromey.com>
7764
7765 PR rust/25025:
7766 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7767
bcfe6157
TT
77682020-04-24 Tom Tromey <tom@tromey.com>
7769
7770 PR symtab/12707:
7771 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7772 exists.
7773 (new_symbol): Likewise.
7774 * compile/compile-object-load.c (get_out_value_type): Use
7775 symbol_matches_search_name.
7776
f049a313
TT
77772020-04-24 Tom Tromey <tom@tromey.com>
7778
7779 * dwarf2/read.c (add_partial_symbol): Do not call
7780 compute_and_set_names.
7781
76e288d1
TT
77822020-04-24 Tom Tromey <tom@tromey.com>
7783
7784 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7785 overload.
7786
2467f4f6
TT
77872020-04-24 Tom Tromey <tom@tromey.com>
7788
7789 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7790 (add_psymbol_to_list): New overload. Make old overload call new
7791 one.
7792 * psympriv.h (add_psymbol_to_list): New overload.
7793
e61108c9
TT
77942020-04-24 Tom Tromey <tom@tromey.com>
7795
7796 * dwarf2/read.c (partial_die_info::read) <case
7797 DW_AT_linkage_name>: Use value_as_string.
7798 (dwarf2_string_attr): Use value_as_string.
7799 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7800 method.
7801 * dwarf2/attribute.c (attribute::value_as_string): New method.
7802
8c87a452
TT
78032020-04-24 Tom Tromey <tom@tromey.com>
7804
7805 * symtab.c (general_symbol_info::natural_name)
7806 (general_symbol_info::demangled_name): Check for language_rust.
7807
787de330
TT
78082020-04-24 Tom Tromey <tom@tromey.com>
7809
7810 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7811 (dwarf2_physname): ... from here.
7812 (partial_die_info::read): Add Rust "{" hack.
7813
ff985671
TT
78142020-04-24 Tom Tromey <tom@tromey.com>
7815
7816 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7817 method.
7818 (symbol_set_demangled_name): Don't declare.
7819 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7820 symbol_set_demangled_name.
7821 (general_symbol_info::set_language)
7822 (general_symbol_info::compute_and_set_names): Update.
7823 * minsyms.c (minimal_symbol_reader::install): Update.
7824 * dwarf2/read.c (new_symbol): Update.
7825
1acda803
TT
78262020-04-24 Tom Tromey <tromey@adacore.com>
7827
7828 PR python/23662:
7829 * python/py-type.c (convert_field): Handle
7830 FIELD_LOC_KIND_DWARF_BLOCK.
7831 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7832 (typy_get_dynamic): Nw function.
7833 (type_object_getset): Add "dynamic".
7834 * NEWS: Add entry.
7835
d656f129
TT
78362020-04-24 Tom Tromey <tromey@adacore.com>
7837
7838 * ada-typeprint.c (print_choices, print_variant_part)
7839 (print_record_field_types_dynamic): New functions.
7840 (print_record_field_types): Use print_record_field_types_dynamic.
7841
7d79de9a
TT
78422020-04-24 Tom Tromey <tromey@adacore.com>
7843
7844 * dwarf2/read.c (handle_data_member_location): New overload.
7845 (dwarf2_add_field): Use it.
7846 (decode_locdesc): Add "computed" parameter. Update comment.
7847 * gdbtypes.c (is_dynamic_type_internal): Also look for
7848 FIELD_LOC_KIND_DWARF_BLOCK.
7849 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7850 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7851 virtual base classes.
7852 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7853 FIELD_LOC_KIND_DWARF_BLOCK.
7854
f8e89861
TT
78552020-04-24 Tom Tromey <tromey@adacore.com>
7856
7857 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7858 * gdbtypes.c (is_dynamic_type_internal): Check
7859 TYPE_HAS_DYNAMIC_LENGTH.
7860 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7861 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7862 New macros.
7863 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7864 constant.
7865
9c6a1327
TT
78662020-04-24 Tom Tromey <tromey@adacore.com>
7867
7868 * dwarf2/read.c (struct variant_field): Rewrite.
7869 (struct variant_part_builder): New.
7870 (struct nextfield): Remove "variant" field. Add "offset".
7871 (struct field_info): Add "current_variant_part" and
7872 "variant_parts".
7873 (alloc_discriminant_info): Remove.
7874 (alloc_rust_variant): New function.
7875 (quirk_rust_enum): Update.
7876 (dwarf2_add_field): Set "offset" member. Don't handle
7877 DW_TAG_variant_part.
7878 (offset_map_type): New typedef.
7879 (convert_variant_range, create_one_variant)
7880 (create_one_variant_part, create_variant_parts)
7881 (add_variant_property): New functions.
7882 (dwarf2_attach_fields_to_type): Call add_variant_property.
7883 (read_structure_type): Don't handle DW_TAG_variant_part.
7884 (handle_variant_part, handle_variant): New functions.
7885 (handle_struct_member_die): Use them.
7886 (process_structure_scope): Don't handle variant parts.
7887 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7888 (struct discriminant_info): Remove.
7889 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7890 (struct main_type) <flag_discriminated_union>: Remove.
7891 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7892 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7893 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7894 Update.
7895 * valops.c (value_union_variant): Remove.
7896 * value.h (value_union_variant): Don't declare.
7897
b249d2c2
TT
78982020-04-24 Tom Tromey <tromey@adacore.com>
7899
7900 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7901 (ada_value_primitive_packed_val): Update.
7902 * ada-valprint.c (ada_value_print_1): Update.
7903 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7904 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7905 just an address. Use evaluate_for_locexpr_baton.
7906 (dwarf2_evaluate_property): Update.
7907 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7908 array_view.
7909 * findvar.c (default_read_var_value): Update.
7910 * gdbtypes.c (compute_variant_fields_inner)
7911 (resolve_dynamic_type_internal): Update.
7912 (resolve_dynamic_type): Change type of valaddr parameter.
7913 * gdbtypes.h (resolve_dynamic_type): Update.
7914 * valarith.c (value_subscripted_rvalue): Update.
7915 * value.c (value_from_contents_and_address): Update.
7916
61122aa9
TT
79172020-04-24 Tom Tromey <tromey@adacore.com>
7918
7919 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7920 "push_initial_value" parameter.
7921 (dwarf2_evaluate_property): Likewise.
7922 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7923
ef83a141
TT
79242020-04-24 Tom Tromey <tromey@adacore.com>
7925
7926 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7927 (variant::matches, compute_variant_fields_recurse)
7928 (compute_variant_fields_inner, compute_variant_fields): New
7929 functions.
7930 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7931 Use resolved_type after type is made.
7932 (operator==): Add new cases.
7933 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7934 (struct discriminant_range, struct variant, struct variant_part):
7935 New.
7936 (union dynamic_prop_data) <variant_parts, original_type>: New
7937 members.
7938 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7939 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7940 constants.
7941 * value.c (unpack_bits_as_long): Now public.
7942 * value.h (unpack_bits_as_long): Declare.
7943
675127ec
TT
79442020-04-24 Tom Tromey <tromey@adacore.com>
7945
7946 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7947 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7948
9852ceef
HD
79492020-04-24 Hannes Domani <ssbssa@yahoo.de>
7950
7951 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7952
7632c6ce
KR
79532020-04-24 Kamil Rytarowski <n54@gmx.com>
7954
7955 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7956 (remove_fork_catchpoint, post_startup_inferior)
7957 (post_attach): Move...
7958 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7959 (remove_fork_catchpoint, post_startup_inferior)
7960 (post_attach): ...here.
7961 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7962 (remove_fork_catchpoint, post_startup_inferior)
7963 (post_attach): Move...
7964 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7965 (remove_fork_catchpoint, post_startup_inferior)
7966 (post_attach): ...here.
7967
7be2bb4f
TT
79682020-04-24 Tom Tromey <tromey@adacore.com>
7969
7970 * nat/windows-nat.h (struct windows_thread_info)
7971 <pc_adjusted>: New member.
7972 * windows-nat.c (windows_fetch_one_register): Check
7973 pc_adjusted.
7974 (windows_nat_target::get_windows_debug_event)
7975 (windows_nat_target::wait): Set pc_adjusted.
7976
f80cb3b4
TV
79772020-04-24 Tom de Vries <tdevries@suse.de>
7978
7979 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7980 Run gdb-add-index inside temp dir.
7981
29514b87
TT
79822020-04-23 Tom Tromey <tromey@adacore.com>
7983
7984 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7985 in loop.
7986
5939967b
LM
79872020-04-23 Luis Machado <luis.machado@linaro.org>
7988
7989 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7990 get_frame_register instead of gdbarch_unwind_pc.
7991
70bc38f5
TV
79922020-04-23 Tom de Vries <tdevries@suse.de>
7993
7994 * symtab.c (lookup_global_symbol): Prefer def over decl.
7995
de82891c
TV
79962020-04-23 Tom de Vries <tdevries@suse.de>
7997
7998 PR symtab/25807
7999 * block.c (best_symbol, better_symbol): Promote to external.
8000 * block.h (best_symbol, better_symbol): Declare.
8001 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8002 decl.
8003
ecc6c606
TT
80042020-04-23 Tom Tromey <tromey@adacore.com>
8005
8006 PR ada/25837:
8007 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8008 "const char *", not a "const std::string &".
8009 <name_and_matcher::operator==>: Update.
8010 * unittests/lookup_name_info-selftests.c: Change type of
8011 "result".
8012
740480b8
TT
80132020-04-23 Tom Tromey <tom@tromey.com>
8014
8015 * inferior.h (iterate_over_inferiors): Don't declare.
8016 * inferior.c (iterate_over_inferiors): Remove.
8017 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8018 Remove.
8019 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8020 use iterate_over_inferiors.
8021 (darwin_resume_inferior_it)
8022 (struct resume_inferior_threads_param)
8023 (darwin_resume_inferior_threads_it): Remove.
8024 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8025
ae3ab1f0
TV
80262020-04-23 Tom de Vries <tdevries@suse.de>
8027
8028 * blockframe.c (find_pc_partial_function): Use
8029 find_pc_sect_compunit_symtab rather than
8030 objfile->sf->qf->find_pc_sect_compunit_symtab.
8031
317d2668
TV
80322020-04-22 Tom de Vries <tdevries@suse.de>
8033
8034 PR symtab/25764
8035 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8036 in psymtabs.
8037
eea9e357
TV
80382020-04-22 Tom de Vries <tdevries@suse.de>
8039
8040 PR symtab/25801
8041 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8042 symtabs.
8043
3d5afab3
TV
80442020-04-22 Tom de Vries <tdevries@suse.de>
8045
8046 PR symtab/25700
8047 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8048 CU if already created.
8049
d43b7a2d
TBA
80502020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8051
8052 * infrun.c (displaced_step_fixup): Switch to the event_thread
8053 before calling displaced_step_restore, not after.
8054
d89edf9b
MM
80552020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8056
8057 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8058 its inferior is not recorded by us.
8059 (record_btrace_target_open): Replace call to
8060 all_non_exited_threads () with call to current_inferior
8061 ()->non_exited_threads ().
8062 (record_btrace_target::stop_recording): Likewise.
8063 (record_btrace_target::close): Likewise.
8064 (record_btrace_target::wait): Likewise.
8065 (record_btrace_target::record_stop_replaying): Likewise.
8066
5897fd49
MM
80672020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8068
8069 * btrace.c (btrace_enable): Throw an error on double enables and
8070 when enabling recording fails.
8071 (btrace_disable): Throw an error if the thread is not recorded.
8072
1a476b6d
MM
80732020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8074
8075 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8076 request if we do not have a thread_info.
8077
4778a5f8
TV
80782020-04-21 Tom de Vries <tdevries@suse.de>
8079
8080 PR gdb/25471
8081 * thread.c
8082 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8083 exception in get_frame_id.
8084
0fa7617d
TT
80852020-04-20 Tom Tromey <tromey@adacore.com>
8086
8087 * python/python.c (struct gdbpy_event): Mark move constructor as
8088 noexcept.
8089 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8090 constructor as noexcept.
8091 * completer.h (struct completion_result): Mark move constructor as
8092 noexcept.
8093 * completer.c (completion_result::completion_result): Use
8094 initialization style. Don't call reset_match_list.
8095
ad23bda0
MS
80962020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8097
8098 * MAINTAINERS (Write After Approval): Add myself.
8099
45e1f031
TT
81002020-04-18 Tom Tromey <tom@tromey.com>
8101
8102 * windows-tdep.c (init_w32_command_list)
8103 (w32_prefix_command_valid): Restore.
8104 (_initialize_windows_tdep): Call init_w32_command_list.
8105
08feed99
TT
81062020-04-18 Tom Tromey <tom@tromey.com>
8107
8108 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8109 * value.c (value_fn_field): Update.
8110 * valops.c (find_function_in_inferior)
8111 (value_allocate_space_in_inferior): Update.
8112 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8113 Update.
8114 * tui/tui-source.c (tui_source_window::set_contents): Update.
8115 * symtab.c (lookup_global_or_static_symbol)
8116 (find_function_start_sal_1, skip_prologue_sal)
8117 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8118 * symmisc.c (dump_msymbols, dump_symtab_1)
8119 (maintenance_print_one_line_table): Update.
8120 * symfile.c (init_entry_point_info, section_is_mapped)
8121 (list_overlays_command, simple_read_overlay_table)
8122 (simple_overlay_update_1): Update.
8123 * stap-probe.c (handle_stap_probe): Update.
8124 * stabsread.c (dbx_init_float_type, define_symbol)
8125 (read_one_struct_field, read_enum_type, read_range_type): Update.
8126 * source.c (info_line_command): Update.
8127 * python/python.c (gdbpy_source_objfile_script)
8128 (gdbpy_execute_objfile_script): Update.
8129 * python/py-type.c (save_objfile_types): Update.
8130 * python/py-objfile.c (py_free_objfile): Update.
8131 * python/py-inferior.c (python_new_objfile): Update.
8132 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8133 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8134 (maintenance_check_psymtabs): Update.
8135 * printcmd.c (info_address_command): Update.
8136 * objfiles.h (struct objfile) <arch>: New method, from
8137 get_objfile_arch.
8138 (get_objfile_arch): Don't declare.
8139 * objfiles.c (get_objfile_arch): Remove.
8140 (filter_overlapping_sections): Update.
8141 * minsyms.c (msymbol_is_function): Update.
8142 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8143 (output_nondebug_symbol): Update.
8144 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8145 (mdebug_expand_psymtab): Update.
8146 * machoread.c (macho_add_oso_symfile): Update.
8147 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8148 Update.
8149 * linux-fork.c (checkpoint_command): Update.
8150 * linespec.c (convert_linespec_to_sals): Update.
8151 * jit.c (finalize_symtab): Update.
8152 * infrun.c (insert_exception_resume_from_probe): Update.
8153 * ia64-tdep.c (ia64_find_unwind_table): Update.
8154 * hppa-tdep.c (internalize_unwinds): Update.
8155 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8156 Update.
8157 * gcore.c (call_target_sbrk): Update.
8158 * elfread.c (record_minimal_symbol, elf_symtab_read)
8159 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8160 (elf_gnu_ifunc_resolve_by_got): Update.
8161 * dwarf2/read.c (create_addrmap_from_index)
8162 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8163 (read_debug_names_from_section)
8164 (process_psymtab_comp_unit_reader, add_partial_symbol)
8165 (add_partial_subprogram, process_full_comp_unit)
8166 (read_file_scope, read_func_scope, read_lexical_block_scope)
8167 (read_call_site_scope, dwarf2_ranges_read)
8168 (dwarf2_record_block_ranges, dwarf2_add_field)
8169 (mark_common_block_symbol_computed, read_tag_pointer_type)
8170 (read_tag_string_type, dwarf2_init_float_type)
8171 (dwarf2_init_complex_target_type, read_base_type)
8172 (partial_die_info::read, partial_die_info::read)
8173 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8174 (dwarf2_fetch_die_loc_sect_off): Update.
8175 * dwarf2/loc.c (dwarf2_find_location_expression)
8176 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8177 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8178 (dwarf2_loc_desc_get_symbol_read_needs)
8179 (locexpr_describe_location_piece, locexpr_describe_location_1)
8180 (loclist_describe_location): Update.
8181 * dwarf2/index-write.c (write_debug_names): Update.
8182 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8183 * dtrace-probe.c (dtrace_process_dof): Update.
8184 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8185 (process_one_symbol): Update.
8186 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8187 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8188 (coff_read_enum_type): Update.
8189 * cli/cli-cmds.c (edit_command, list_command): Update.
8190 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8191 * breakpoint.c (create_overlay_event_breakpoint)
8192 (create_longjmp_master_breakpoint)
8193 (create_std_terminate_master_breakpoint)
8194 (create_exception_master_breakpoint, get_sal_arch): Update.
8195 * block.c (block_gdbarch): Update.
8196 * annotate.c (annotate_source_line): Update.
8197
0743fc83
TT
81982020-04-17 Tom Tromey <tromey@adacore.com>
8199
8200 * auto-load.c (show_auto_load_cmd): Remove.
8201 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8202 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8203 (maintenance_print_arc_command): Remove.
8204 * tui/tui-win.c (tui_command): Remove.
8205 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8206 * tui/tui-layout.c (tui_layout_command): Remove.
8207 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8208 * python/python.c (user_set_python, user_show_python): Remove.
8209 (_initialize_python): Use add_basic_prefix_cmd,
8210 add_show_prefix_cmd.
8211 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8212 (install_gdb_commands): Use add_basic_prefix_cmd,
8213 add_show_prefix_cmd.
8214 (info_guile_command): Remove.
8215 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8216 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8217 add_show_prefix_cmd.
8218 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8219 Remove do_set and do_show parameters.
8220 * cli/cli-style.c (set_style, show_style): Remove.
8221 (_initialize_cli_style): Use add_basic_prefix_cmd,
8222 add_show_prefix_cmd.
8223 (cli_style_option::add_setshow_commands): Remove do_set and
8224 do_show parameters.
8225 (cli_style_option::add_setshow_commands): Use
8226 add_basic_prefix_cmd, add_show_prefix_cmd.
8227 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8228 (set_style_name): Remove.
8229 * cli/cli-dump.c (dump_command, append_command): Remove.
8230 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8231 (tekhex_dump_command, binary_dump_command)
8232 (binary_append_command): Remove.
8233 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8234 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8235 (init_w32_command_list): Remove; move into ...
8236 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8237 * valprint.c (set_print, show_print, set_print_raw)
8238 (show_print_raw): Remove.
8239 (_initialize_valprint): Use add_basic_prefix_cmd,
8240 add_show_prefix_cmd.
8241 * typeprint.c (set_print_type, show_print_type): Remove.
8242 (_initialize_typeprint): Use add_basic_prefix_cmd,
8243 add_show_prefix_cmd.
8244 * record.c (set_record_command, show_record_command): Remove.
8245 (_initialize_record): Use add_basic_prefix_cmd,
8246 add_show_prefix_cmd.
8247 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8248 add_show_prefix_cmd.
8249 (info_command, show_command, set_debug, show_debug): Remove.
8250 * top.h (set_history, show_history): Don't declare.
8251 * top.c (set_history, show_history): Remove.
8252 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8253 (unset_tdesc_cmd): Remove.
8254 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8255 add_show_prefix_cmd.
8256 * symtab.c (info_module_command): Remove.
8257 (_initialize_symtab): Use add_basic_prefix_cmd.
8258 * symfile.c (overlay_command): Remove.
8259 (_initialize_symfile): Use add_basic_prefix_cmd.
8260 * sparc64-tdep.c (info_adi_command): Remove.
8261 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8262 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8263 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8264 add_show_prefix_cmd.
8265 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8266 (_initialize_serial): Use add_basic_prefix_cmd,
8267 add_show_prefix_cmd.
8268 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8269 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8270 add_show_prefix_cmd.
8271 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8272 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8273 add_show_prefix_cmd.
8274 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8275 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8276 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8277 add_show_prefix_cmd.
8278 * remote.c (remote_command, set_remote_cmd): Remove.
8279 (_initialize_remote): Use add_basic_prefix_cmd.
8280 * record-full.c (set_record_full_command)
8281 (show_record_full_command): Remove.
8282 (_initialize_record_full): Use add_basic_prefix_cmd,
8283 add_show_prefix_cmd.
8284 * record-btrace.c (cmd_set_record_btrace)
8285 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8286 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8287 (cmd_show_record_btrace_pt): Remove.
8288 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8289 add_show_prefix_cmd.
8290 * ravenscar-thread.c (set_ravenscar_command)
8291 (show_ravenscar_command): Remove.
8292 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8293 add_show_prefix_cmd.
8294 * mips-tdep.c (show_mips_command, set_mips_command)
8295 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8296 add_show_prefix_cmd.
8297 * maint.c (maintenance_command, maintenance_info_command)
8298 (maintenance_check_command, maintenance_print_command)
8299 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8300 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8301 add_show_prefix_cmd.
8302 (show_per_command_cmd): Remove.
8303 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8304 Remove.
8305 (maintenance_show_test_settings_cmd): Remove.
8306 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8307 add_show_prefix_cmd.
8308 * maint-test-options.c (maintenance_test_options_command):
8309 Remove.
8310 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8311 * macrocmd.c (macro_command): Remove
8312 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8313 * language.c (set_check, show_check): Remove.
8314 (_initialize_language): Use add_basic_prefix_cmd,
8315 add_show_prefix_cmd.
8316 * infcmd.c (unset_command): Remove.
8317 (_initialize_infcmd): Use add_basic_prefix_cmd.
8318 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8319 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8320 add_show_prefix_cmd.
8321 * go32-nat.c (go32_info_dos_command): Remove.
8322 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8323 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8324 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8325 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8326 (_initialize_frame): Use add_basic_prefix_cmd,
8327 add_show_prefix_cmd.
8328 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8329 (_initialize_dcache): Use add_basic_prefix_cmd,
8330 add_show_prefix_cmd.
8331 * cp-support.c (maint_cplus_command): Remove.
8332 (_initialize_cp_support): Use add_basic_prefix_cmd.
8333 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8334 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8335 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8336 add_basic_prefix_cmd, add_show_prefix_cmd.
8337 * breakpoint.c (save_command): Remove.
8338 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8339 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8340 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8341 add_show_prefix_cmd.
8342 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8343 (set_ada_command, show_ada_command): Remove.
8344 (_initialize_ada_language): Use add_basic_prefix_cmd,
8345 add_show_prefix_cmd.
8346 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8347
3557f442
KR
83482020-04-16 Kamil Rytarowski <n54@gmx.com>
8349
8350 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8351 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8352
16197208
SM
83532020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8354
8355 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8356 warning messages.
8357
00ac85d3
SM
83582020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8359
8360 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8361 import table is not at beginning of .idata section.
8362
381ce63f
PA
83632020-04-16 Pedro Alves <palves@redhat.com>
8364
8365 * inferior.c (delete_inferior): Use delete operator directly
8366 instead of delete_program_space.
8367 * progspace.c (add_program_space): New, factored out from
8368 program_space::program_space.
8369 (remove_program_space): New, factored out from
8370 delete_program_space.
8371 (program_space::program_space): Remove intro comment. Rewrite.
8372 (program_space::~program_space): Remove intro comment. Call
8373 remove_program_space.
8374 (delete_program_space): Delete.
8375 * progspace.h (program_space::program_space): Make explicit. Move
8376 intro comment here, adjusted.
8377 (program_space::~program_space): Move intro comment here,
8378 adjusted.
8379 (delete_program_space): Remove.
8380
a010605f
TT
83812020-04-16 Tom Tromey <tromey@adacore.com>
8382
8383 * windows-nat.c (windows_nat::handle_access_violation): New
8384 function.
8385 * nat/windows-nat.h (handle_access_violation): Declare.
8386 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8387 windows-nat.c. Call handle_access_violation.
8388
efba5c23
TV
83892020-04-16 Tom de Vries <tdevries@suse.de>
8390
8391 PR symtab/25791
8392 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8393 CUs without psymtab.
8394
97ed802d
KB
83952020-04-16 Kevin Buettner <kevinb@redhat.com>
8396
8397 * python/python.c (do_start_initialization): Don't call
8398 PyEval_InitThreads for Python 3.9 and beyond.
8399
c7d64809
KR
84002020-04-15 Kamil Rytarowski <n54@gmx.com>
8401
8402 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8403 thread functions.
8404 (obsd_nat_target::wait): Likewise.
8405
ce127a96
TT
84062020-04-15 Tom Tromey <tromey@adacore.com>
8407
8408 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8409 (DEBUG_EXCEPT): Use debug_printf.
8410
99f1bc6a
AB
84112020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8412
8413 * completer.c (class completion_tracker::completion_hash_entry)
8414 <hash_name>: New member function.
8415 (completion_tracker::discard_completions): New callback to hash a
8416 completion_hash_entry, pass this to htab_create_alloc.
8417
a0e9b532
JT
84182016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8419
8420 * windows-nat.c (windows_make_so): Warn rather than stopping with
8421 an error if realpath() fails.
8422
06ca5dd4
KR
84232020-04-14 Kamil Rytarowski <n54@gmx.com>
8424
8425 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8426 (nbsd_nat_target::info_proc): Add do_status.
8427
194d088f
TV
84282020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8429 Tom de Vries <tdevries@suse.de>
8430
8431 PR symtab/25718
8432 * psympriv.h (struct partial_symtab::read_symtab)
8433 (struct partial_symtab::expand_psymtab)
8434 (struct partial_symtab::read_dependencies): Update comments.
8435 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8436 read_symtab for includer.
8437 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8438 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8439 (struct dwarf2_include_psymtab::m_readin): Remove.
8440 (struct dwarf2_include_psymtab::includer): New member function.
8441 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8442
c1a66c06
TV
84432020-04-14 Tom de Vries <tdevries@suse.de>
8444
8445 PR symtab/25720
8446 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8447 with NULL symbol_matcher and lookup_name.
8448 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8449 and lookup_name.
8450 * dwarf2/read.c (dw2_expand_symtabs_matching)
8451 (dw2_debug_names_expand_symtabs_matching): Same.
8452 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8453 Make lookup_name a pointer. Update comment.
8454 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8455 lookup_name being a pointer.
8456 * symfile.c (expand_symtabs_matching): Same.
8457 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8458 * linespec.c (iterate_over_all_matching_symtabs): Same.
8459
400b5eca
TT
84602020-04-13 Tom Tromey <tom@tromey.com>
8461
8462 * run-on-main-thread.c: Update include.
8463 * unittests/main-thread-selftests.c: Update include.
8464 * tui/tui-win.c: Update include.
8465 * tui/tui-io.c: Update include.
8466 * tui/tui-interp.c: Update include.
8467 * tui/tui-hooks.c: Update include.
8468 * top.h: Update include.
8469 * top.c: Update include.
8470 * ser-base.c: Update include.
8471 * remote.c: Update include.
8472 * remote-notif.c: Update include.
8473 * remote-fileio.c: Update include.
8474 * record-full.c: Update include.
8475 * record-btrace.c: Update include.
8476 * python/python.c: Update include.
8477 * posix-hdep.c: Update include.
8478 * mingw-hdep.c: Update include.
8479 * mi/mi-main.c: Update include.
8480 * mi/mi-interp.c: Update include.
8481 * main.c: Update include.
8482 * linux-nat.c: Update include.
8483 * interps.c: Update include.
8484 * infrun.c: Update include.
8485 * inf-loop.c: Update include.
8486 * event-top.c: Update include.
8487 * event-loop.c: Move to ../gdbsupport/.
8488 * event-loop.h: Move to ../gdbsupport/.
8489 * async-event.h: Update include.
8490 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8491
93b54c8e
TT
84922020-04-13 Tom Tromey <tom@tromey.com>
8493
8494 * tui/tui-win.c: Include async-event.h.
8495 * remote.c: Include async-event.h.
8496 * remote-notif.c: Include async-event.h.
8497 * record-full.c: Include async-event.h.
8498 * record-btrace.c: Include async-event.h.
8499 * infrun.c: Include async-event.h.
8500 * event-top.c: Include async-event.h.
8501 * event-loop.h: Move some declarations to async-event.h.
8502 * event-loop.c: Don't include ser-event.h or top.h. Move some
8503 code to async-event.c.
8504 * async-event.h: New file.
8505 * async-event.c: New file.
8506 * Makefile.in (COMMON_SFILES): Add async-event.c.
8507 (HFILES_NO_SRCDIR): Add async-event.h.
8508
c1cd3163
TT
85092020-04-13 Tom Tromey <tom@tromey.com>
8510
8511 * utils.c (flush_streams): New function.
8512 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8513
29f2bf4f
TT
85142020-04-13 Tom Tromey <tom@tromey.com>
8515
8516 * event-loop.c (handle_file_event): Use warning, not
8517 printf_unfiltered.
8518
98029d02
TT
85192020-04-13 Tom Tromey <tom@tromey.com>
8520
8521 * event-loop.c: Include <chrono>.
8522
06cc9596
TT
85232020-04-13 Tom Tromey <tom@tromey.com>
8524
8525 * gdb_select.h: Move to ../gdbsupport/.
8526 * event-loop.c: Update include path.
8527 * top.c: Update include path.
8528 * ser-base.c: Update include path.
8529 * ui-file.c: Update include path.
8530 * ser-tcp.c: Update include path.
8531 * guile/scm-ports.c: Update include path.
8532 * posix-hdep.c: Update include path.
8533 * ser-unix.c: Update include path.
8534 * gdb_usleep.c: Update include path.
8535 * mingw-hdep.c: Update include path.
8536 * inflow.c: Update include path.
8537 * infrun.c: Update include path.
8538 * event-top.c: Update include path.
8539
8ae8e197
TT
85402020-04-13 Tom Tromey <tom@tromey.com>
8541
8542 * configure: Rebuild.
8543 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8544
58cf28e8
TT
85452020-04-13 Tom Tromey <tom@tromey.com>
8546
8547 * event-loop.h (start_event_loop): Don't declare.
8548 * event-loop.c (start_event_loop): Move...
8549 * main.c (start_event_loop): ...here. Now static.
8550
b7f999ae
SDJ
85512020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8552
8553 * MAINTAINERS: Update my email address.
8554
1085dfd4
KR
85552020-04-12 Kamil Rytarowski <n54@gmx.com>
8556
8557 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8558 IP_ALL.
8559
49d1d1f5
KR
85602020-04-12 Kamil Rytarowski <n54@gmx.com>
8561
8562 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8563 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8564
b4848d2a
KR
85652020-04-12 Kamil Rytarowski <n54@gmx.com>
8566
8567 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8568 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8569
51c133d5
KR
85702020-04-12 Kamil Rytarowski <n54@gmx.com>
8571
8572 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8573
54b8cbd0
KR
85742020-04-11 Kamil Rytarowski <n54@gmx.com>
8575
8576 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8577 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8578 (nbsd_nat_target::info_proc): New functions.
8579 * nbsd-nat.c (kinfo_get_vmmap): New function.
8580 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8581 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8582 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8583 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8584 functions.
8585 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8586 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8587 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8588 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8589 (KINFO_VME_FLAG_GROWS_DOWN): New.
8590
cf83625d
AS
85912020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8592
8593 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8594 bit shift.
8595
0c4311ab
TT
85962020-04-10 Tom Tromey <tromey@adacore.com>
8597
8598 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8599
3e65b3e9
TT
86002020-04-10 Tom Tromey <tromey@adacore.com>
8601
8602 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8603 separate debug files.
8604
13302e95
HD
86052020-04-10 Hannes Domani <ssbssa@yahoo.de>
8606
8607 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8608 Move to...
8609 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8610 ... here.
8611 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8612 Check for STATUS_WX86_BREAKPOINT.
8613 (windows_nat_target::wait): Same.
8614
bdfc1e8a
TV
86152020-04-10 Tom de Vries <tdevries@suse.de>
8616
8617 PR cli/25808
8618 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8619
f4460aec
SM
86202020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8621
8622 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8623 (Write After Approval): Remove Tom de Vries.
8624
a25198bb
BE
86252020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8626
8627 revert partially:
8628 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8629
aac66a4c
SM
8630 * buildsym.c (record_line): Fix undefined behavior and preserve
8631 lines at eof.
a25198bb 8632
206c98a6
KR
86332020-04-09 Kamil Rytarowski <n54@gmx.com>
8634
8635 * auxv.h (svr4_auxv_parse): New.
8636 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8637 and generic_auxv_parse.
8638 (svr4_auxv_parse): Add.
8639 * obsd-tdep.c: Include "auxv.h".
8640 (obsd_auxv_parse): Remove.
8641 (obsd_init_abi): Remove comment.
8642 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8643 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8644 * nbsd-tdep.c: Include "auxv.h".
8645 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8646
71fbdbaf
TT
86472020-04-08 Tom Tromey <tromey@adacore.com>
8648
8649 * nat/windows-nat.h (last_wait_event): Don't declare.
8650 (wait_for_debug_event): Update comment.
8651 * nat/windows-nat.c (last_wait_event): Now static.
8652
2c1d95e8
TT
86532020-04-08 Tom Tromey <tromey@adacore.com>
8654
8655 * windows-nat.c (wait_for_debug_event): Move to
8656 nat/windows-nat.c.
8657 * nat/windows-nat.h (wait_for_debug_event): Declare.
8658 * nat/windows-nat.c (wait_for_debug_event): Move from
8659 windows-nat.c. No longer static.
8660
d2977bc4
TT
86612020-04-08 Tom Tromey <tromey@adacore.com>
8662
8663 * windows-nat.c (get_windows_debug_event): Use
8664 fetch_pending_stop.
8665 * nat/windows-nat.h (fetch_pending_stop): Declare.
8666 * nat/windows-nat.c (fetch_pending_stop): New function.
8667
e758e19c
TT
86682020-04-08 Tom Tromey <tromey@adacore.com>
8669
8670 * windows-nat.c (windows_continue): Use matching_pending_stop and
8671 continue_last_debug_event.
8672 * nat/windows-nat.h (matching_pending_stop)
8673 (continue_last_debug_event): Declare.
8674 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8675 (matching_pending_stop, continue_last_debug_event): New
8676 functions.
8677
8d30e395
TT
86782020-04-08 Tom Tromey <tromey@adacore.com>
8679
8680 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8681 (handle_exception_result): Move to nat/windows-nat.h.
8682 (DEBUG_EXCEPTION_SIMPLE): Remove.
8683 (windows_nat::handle_ms_vc_exception): New function.
8684 (handle_exception): Move to nat/windows-nat.c.
8685 (get_windows_debug_event): Update.
8686 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8687 nat/windows-nat.c.
8688 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8689 (handle_exception_result): Move from windows-nat.c.
8690 (handle_exception): Declare.
8691 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8692 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8693 windows-nat.c.
8694
29de418d
TT
86952020-04-08 Tom Tromey <tromey@adacore.com>
8696
8697 * windows-nat.c (exception_count, event_count): Remove.
8698 (handle_exception, get_windows_debug_event)
8699 (do_initial_windows_stuff): Update.
8700
a816ba18
TT
87012020-04-08 Tom Tromey <tromey@adacore.com>
8702
8703 * windows-nat.c (windows_nat::handle_load_dll)
8704 (windows_nat::handle_unload_dll): Rename. No longer static.
8705 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8706 Declare.
8707
a00caa12
TT
87082020-04-08 Tom Tromey <tromey@adacore.com>
8709
8710 * complaints.h (stop_whining): Declare at top-level.
8711 (complaint): Don't declare stop_whining.
8712
d41b524f
TT
87132020-04-08 Tom Tromey <tromey@adacore.com>
8714
8715 * windows-nat.c (windows_nat::handle_output_debug_string):
8716 Rename. No longer static.
8717 * nat/windows-nat.h (handle_output_debug_string): Declare.
8718
3c76026d
TT
87192020-04-08 Tom Tromey <tromey@adacore.com>
8720
8721 * windows-nat.c (current_process_handle, current_process_id)
8722 (main_thread_id, last_sig, current_event, last_wait_event)
8723 (current_windows_thread, desired_stop_thread_id, pending_stops)
8724 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8725 (display_selectors, fake_create_process)
8726 (get_windows_debug_event): Update.
8727 * nat/windows-nat.h (current_process_handle, current_process_id)
8728 (main_thread_id, last_sig, current_event, last_wait_event)
8729 (current_windows_thread, desired_stop_thread_id, pending_stops)
8730 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8731 * nat/windows-nat.c (current_process_handle, current_process_id)
8732 (main_thread_id, last_sig, current_event, last_wait_event)
8733 (current_windows_thread, desired_stop_thread_id, pending_stops)
8734 (siginfo_er): New globals. Move from windows-nat.c.
8735
9d8679cc
TT
87362020-04-08 Tom Tromey <tromey@adacore.com>
8737
8738 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8739 (handle_load_dll): Update.
8740 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8741
28688adf
TT
87422020-04-08 Tom Tromey <tromey@adacore.com>
8743
8744 * windows-nat.c (enum thread_disposition_type): Move to
8745 nat/windows-nat.h.
8746 (windows_nat::thread_rec): Rename from thread_rec. No longer
8747 static.
8748 (windows_add_thread, windows_nat_target::fetch_registers)
8749 (windows_nat_target::store_registers, handle_exception)
8750 (windows_nat_target::resume, get_windows_debug_event)
8751 (windows_nat_target::get_tib_address)
8752 (windows_nat_target::thread_name)
8753 (windows_nat_target::thread_alive): Update.
8754 * nat/windows-nat.h (enum thread_disposition_type): Move from
8755 windows-nat.c.
8756 (thread_rec): Declare.
8757
4834dad0
TT
87582020-04-08 Tom Tromey <tromey@adacore.com>
8759
8760 * windows-nat.c: Add "using namespace".
8761 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8762 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8763
65bafd5b
TT
87642020-04-08 Tom Tromey <tromey@adacore.com>
8765
8766 * nat/windows-nat.h (struct windows_thread_info): Declare
8767 destructor.
8768 * nat/windows-nat.c (~windows_thread_info): New.
8769
0a4afda3
TT
87702020-04-08 Tom Tromey <tromey@adacore.com>
8771
8772 PR gdb/22992
8773 * windows-nat.c (current_event): Update comment.
8774 (last_wait_event, desired_stop_thread_id): New globals.
8775 (struct pending_stop): New.
8776 (pending_stops): New global.
8777 (windows_nat_target) <stopped_by_sw_breakpoint>
8778 <supports_stopped_by_sw_breakpoint>: New methods.
8779 (windows_fetch_one_register): Add assertions. Adjust PC.
8780 (windows_continue): Handle pending stops. Suspend other threads
8781 when stepping. Use last_wait_event
8782 (wait_for_debug_event): New function.
8783 (get_windows_debug_event): Use wait_for_debug_event. Handle
8784 pending stops. Queue spurious stops.
8785 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8786 (windows_nat_target::kill): Use wait_for_debug_event.
8787 * nat/windows-nat.h (struct windows_thread_info)
8788 <stopped_at_software_breakpoint>: New field.
8789 * nat/windows-nat.c (windows_thread_info::resume): Clear
8790 stopped_at_software_breakpoint.
8791
8e61ebec
TT
87922020-04-08 Tom Tromey <tromey@adacore.com>
8793
8794 * windows-nat.c (enum thread_disposition_type): New.
8795 (thread_rec): Replace "get_context" parameter with "disposition";
8796 change type.
8797 (windows_add_thread, windows_nat_target::fetch_registers)
8798 (windows_nat_target::store_registers, handle_exception)
8799 (windows_nat_target::resume, get_windows_debug_event)
8800 (windows_nat_target::get_tib_address)
8801 (windows_nat_target::thread_name)
8802 (windows_nat_target::thread_alive): Update.
8803
98a03287
TT
88042020-04-08 Tom Tromey <tromey@adacore.com>
8805
8806 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8807 (windows_continue): Use windows_continue::resume.
8808 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8809 resume>: Declare new methods.
8810 * nat/windows-nat.c: New file.
8811 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8812
7c7411bc
TT
88132020-04-08 Tom Tromey <tromey@adacore.com>
8814
8815 * windows-nat.c (windows_add_thread, windows_delete_thread)
8816 (windows_nat_target::fetch_registers)
8817 (windows_nat_target::store_registers, fake_create_process)
8818 (windows_nat_target::resume, windows_nat_target::resume)
8819 (get_windows_debug_event, windows_nat_target::wait)
8820 (windows_nat_target::pid_to_str)
8821 (windows_nat_target::get_tib_address)
8822 (windows_nat_target::get_ada_task_ptid)
8823 (windows_nat_target::thread_name)
8824 (windows_nat_target::thread_alive): Use lwp, not tid.
8825
2950fdf7
TT
88262020-04-08 Tom Tromey <tromey@adacore.com>
8827
8828 * windows-nat.c (handle_exception)
8829 (windows_nat_target::thread_name): Update.
8830 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8831 <name>: Now unique_xmalloc_ptr.
8832
62fe396b
TT
88332020-04-08 Tom Tromey <tromey@adacore.com>
8834
8835 * windows-nat.c (thread_rec)
8836 (windows_nat_target::fetch_registers): Update.
8837 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8838 Update comment.
8839 <debug_registers_changed, reload_context>: Now bool.
8840
e9534bd2
TT
88412020-04-08 Tom Tromey <tromey@adacore.com>
8842
8843 * windows-nat.c (windows_add_thread): Use new.
8844 (windows_init_thread_list, windows_delete_thread): Use delete.
8845 (get_windows_debug_event): Update.
8846 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8847 destructor, and initializers.
8848
ae1f8880
TT
88492020-04-08 Tom Tromey <tromey@adacore.com>
8850
8851 * windows-nat.c (struct windows_thread_info): Remove.
8852 * nat/windows-nat.h: New file.
8853
55a1e039
TT
88542020-04-08 Tom Tromey <tromey@adacore.com>
8855
8856 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8857 (thread_rec, windows_add_thread, windows_delete_thread)
8858 (windows_continue): Update.
8859
93366324
TT
88602020-04-08 Tom Tromey <tromey@adacore.com>
8861
8862 * windows-nat.c (struct windows_thread_info): Remove typedef.
8863 (thread_head): Remove.
8864 (thread_list): New global.
8865 (thread_rec, windows_add_thread, windows_init_thread_list)
8866 (windows_delete_thread, windows_continue): Update.
8867
0f2265e2
SM
88682020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8869
8870 * windows-tdep.h (windows_init_abi): Add comment.
8871 (cygwin_init_abi): New declaration.
8872 * windows-tdep.c: Split signal enumeration in two, one for
8873 Windows and one for Cygwin.
8874 (windows_gdb_signal_to_target): Only deal with signal of the
8875 Windows OS ABI.
8876 (cygwin_gdb_signal_to_target): New function.
8877 (windows_init_abi): Rename to windows_init_abi_common, don't set
8878 gdb_signal_to_target gdbarch method. Add new new function with
8879 this name.
8880 (cygwin_init_abi): New function.
8881 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8882 comment. Don't call windows_init_abi.
8883 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8884 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8885 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8886 i386_windows_init_abi_common, don't call windows_init_abi. Add
8887 a new function of this name.
8888 (i386_cygwin_init_abi): New function.
8889 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8890 OS ABI Cygwin.
8891
3810f182
SM
88922020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8893
8894 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8895 parameter.c.
8896 (dwarf2_read_gdb_index): Update.
8897
063f8e80
KR
88982020-04-07 Kamil Rytarowski <n54@gmx.com>
8899
8900 * nbsd-tdep.c: Include "objfiles.h".
8901 (nbsd_skip_solib_resolver): New.
8902 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8903
85a9510c 89042020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8905
8906 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8907 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8908 with DW_LLE_base_addressx are being emitted in DWARFv5.
8909 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8910 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8911 unsigned integer.
8912
9fc3eaae 89132020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8914
8915 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8916 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8917 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8918 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8919 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8920 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8921 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8922
8923
41144253 89242020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8925
8926 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8927 (read_loclist_index): New function definition.
8928 (lookup_loclist_base): New function definition.
8929 (read_loclist_header): New function definition.
8930 (dwarf2_cu): Add loclist_base and loclist_header field.
8931 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8932 (read_full_die_1): Read the value of DW_AT_loclists_base.
8933 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8934 (read_attribute_value): Handle DW_FORM_loclistx.
8935 (skip_one_die): Handle DW_FORM_loclistx.
8936 (loclist_header): New structure declaration.
8937 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8938
9f4e76a4
SM
89392020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8940
8941 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8942 constructor. Remove `addr` parameter from other constructor and
8943 add `per_cu` parameter.
8944 * dwarf2/read.c (create_partial_symtab): Update.
8945
25c11aca
TV
89462020-04-07 Tom de Vries <tdevries@suse.de>
8947
8948 PR symtab/25796
8949 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8950 (partial_die_info::fixup): Inherit has_const_value.
8951
5707e24b
TV
89522020-04-07 Tom de Vries <tdevries@suse.de>
8953
8954 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8955 symbols without address.
8956
05f00e22
KR
89572020-04-06 Kamil Rytarowski <n54@gmx.com>
8958
8959 * nbsd-nat.h (struct thread_info): Add forward declaration.
8960 (nbsd_nat_target::thread_alive): Add.
8961 (nbsd_nat_target::thread_name): Likewise.
8962 (nbsd_nat_target::update_thread_list): Likewise.
8963 (update_thread_list::post_attach): Likewise.
8964 (post_attach::pid_to_str): Likewise.
8965 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8966 (nbsd_thread_lister): Add.
8967 (nbsd_nat_target::thread_alive): Likewise.
8968 (nbsd_nat_target::thread_name): Likewise.
8969 (nbsd_add_threads): Likewise.
8970 (update_thread_list::post_attach): Likewise.
8971 (nbsd_nat_target::update_thread_list): Likewise.
8972 (post_attach::pid_to_str): Likewise.
8973
6ee448cc
TT
89742020-04-06 Tom Tromey <tromey@adacore.com>
8975
8976 * ada-valprint.c (print_variant_part): Extract the variant field.
8977 (print_field_values): Use the field as the outer value when
8978 recursing.
8979
dea34e8c
TT
89802020-04-06 Tom Tromey <tromey@adacore.com>
8981
8982 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8983 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8984 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8985 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8986 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8987
93689ce9
TT
89882020-04-06 Tom Tromey <tromey@adacore.com>
8989
8990 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8991 TYPE_CODE_ERROR.
8992
79743962
KR
89932020-04-06 Kamil Rytarowski <n54@gmx.com>
8994
8995 * nbsd-tdep.c: Include "gdbarch.h".
8996 Define enum with NetBSD signal numbers.
8997 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8998 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8999 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9000 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9001 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9002 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9003 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9004 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9005 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9006 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9007 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9008 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9009
9e7c9a03
HD
90102020-04-03 Hannes Domani <ssbssa@yahoo.de>
9011
9012 PR gdb/25325
9013 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9014
d9e49b61
TT
90152020-04-03 Tom Tromey <tromey@adacore.com>
9016
9017 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9018 Read constant block.
9019
e0fc5c3f
SM
90202020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9021
9022 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9023 (gdb_bfd_get_full_section_contents): New declaration.
9024 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9025 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9026 gdb_bfd_get_full_section_contents.
9027
e2ff18a0
SM
90282020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9029
9030 * exec.c (build_section_table): Replace internal_error with
9031 gdb_assert.
9032 (section_table_xfer_memory_partial): Likewise.
9033 * mdebugread.c (parse_partial_symbols): Likewise.
9034 * psymtab.c (lookup_partial_symbol): Likewise.
9035 * utils.c (wrap_here): Likewise.
9036
0830d301
TT
90372020-04-02 Tom Tromey <tromey@adacore.com>
9038
9039 * f-lang.c (build_fortran_types): Use arch_type to initialize
9040 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9041
e7da7f8f
TT
90422020-04-02 Tom Tromey <tromey@adacore.com>
9043
9044 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9045 of attributes.
9046
c90d28ac
AB
90472020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9048 Bernd Edlinger <bernd.edlinger@hotmail.de>
9049 Tom Tromey <tromey@adacore.com>
9050
9051 * buildsym.c (buildsym_compunit::record_line): Remove
9052 deduplication code.
9053
1aa98955
TV
90542020-04-02 Tom de Vries <tdevries@suse.de>
9055
9056 PR ada/24671
9057 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9058
d3214198
TV
90592020-04-02 Tom de Vries <tdevries@suse.de>
9060
9061 * dwarf2/read.c (dwarf2_gdb_index_functions,
9062 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9063 NULL.
9064 * psymtab.c (psym_lookup_global_symbol_language): New function.
9065 (psym_functions): Init psym_lookup_global_symbol_language with
9066 psym_lookup_global_symbol_language.
9067 * symfile-debug.c (debug_sym_quick_functions): Init
9068 lookup_global_symbol_language with NULL.
9069 * symfile.c (set_initial_language): Remove fixme comment.
9070 * symfile.h (struct quick_symbol_functions): Add
9071 lookup_global_symbol_language.
9072 * symtab.c (find_quick_global_symbol_language): New function.
9073 (find_main_name): Use find_quick_global_symbol_language.
9074
2836752f
SM
90752020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9076
9077 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9078
64dc2d4b
BE
90792020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9080
9081 * buildsym.c (record_line): Fix undefined behavior and preserve
9082 lines at eof.
9083
bbe3dc41
BE
90842020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9085
9086 * buildsym.c (record_line): Fix the resizing condition.
9087
6b4a335b
TT
90882020-04-01 Tom Tromey <tom@tromey.com>
9089
9090 * value.h (value_literal_complex): Add comment.
9091 * valops.c (value_literal_complex): Refer to value.h.
9092
3638a098
TT
90932020-04-01 Tom Tromey <tom@tromey.com>
9094
9095 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9096 (scalar_type): New rule, from typebase.
9097 (typebase): Use scalar_type. Recognize complex types.
9098 (field_name): Handle FLOAT_KEYWORD.
9099 (ident_tokens): Add _Complex and __complex__.
9100
c34e8714
TT
91012020-04-01 Tom Tromey <tom@tromey.com>
9102
9103 PR exp/25299:
9104 * valarith.c (promotion_type, complex_binop): New functions.
9105 (scalar_binop): Handle complex numbers. Use promotion_type.
9106 (value_pos, value_neg, value_complement): Handle complex numbers.
9107
fa649bb7
TT
91082020-04-01 Tom Tromey <tom@tromey.com>
9109
9110 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9111 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9112 (parse_number): Handle complex numbers.
9113
981c08ce
TT
91142020-04-01 Tom Tromey <tom@tromey.com>
9115
9116 * c-valprint.c (c_decorations): Change complex suffix to "i".
9117
4c99290d
TT
91182020-04-01 Tom Tromey <tom@tromey.com>
9119
9120 * valprint.c (generic_value_print_complex): Use accessors.
9121 * value.h (value_real_part, value_imaginary_part): Declare.
9122 * valops.c (value_real_part, value_imaginary_part): New
9123 functions.
9124 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9125
5b930b45
TT
91262020-04-01 Tom Tromey <tom@tromey.com>
9127
9128 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9129 (read_range_type): Update.
9130 * mdebugread.c (basic_type): Update.
9131 * go-lang.c (build_go_types): Use init_complex_type.
9132 * gdbtypes.h (struct main_type) <complex_type>: New member.
9133 (init_complex_type): Update.
9134 (arch_complex_type): Don't declare.
9135 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9136 Make name if none given. Use alloc_type_copy. Look for cached
9137 complex type.
9138 (arch_complex_type): Remove.
9139 (gdbtypes_post_init): Use init_complex_type.
9140 * f-lang.c (build_fortran_types): Use init_complex_type.
9141 * dwarf2/read.c (read_base_type): Update.
9142 * d-lang.c (build_d_types): Use init_complex_type.
9143 * ctfread.c (read_base_type): Update.
9144
53cccef1
TBA
91452020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9146
9147 * infrun.c (stop_all_threads): Update assertion, plus when
9148 stopping threads, take into account that we might be trying
9149 to stop an all-stop target.
9150 (stop_waiting): Call 'stop_all_threads' if there exists a
9151 non-stop target.
9152
a0714d30
TBA
91532020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9154
9155 * target.h (exists_non_stop_target): New function declaration.
9156 * target.c (exists_non_stop_target): New function.
9157
60e22c1e
HD
91582020-04-01 Hannes Domani <ssbssa@yahoo.de>
9159
9160 PR gdb/24789
9161 * eval.c (is_integral_or_integral_reference): New function.
9162 (evaluate_subexp_standard): Allow integer references in
9163 pointer arithmetic.
9164
e139a727
TBA
91652020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9166
9167 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9168 check for no ptid in the stop reply when the target is non-stop.
9169
e0802d59
TT
91702020-04-01 Tom Tromey <tromey@adacore.com>
9171
9172 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9173 "name" parameter to rvalue reference. Initialize m_name_holder.
9174 <lookup_name_info>: New overloads.
9175 <name>: Return gdb::string_view.
9176 <c_str>: New method.
9177 <make_ignore_params>: Update.
9178 <search_name_hash>: Update.
9179 <language_lookup_name>: Return const char *.
9180 <m_name>: Change type.
9181 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9182 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9183 (lookup_name_info::match_any): Update.
9184 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9185 Update.
9186 * minsyms.c (linkage_name_str): Update.
9187 * language.c (default_symbol_name_matcher): Update.
9188 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9189 Update.
9190 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9191 (ada_lookup_name_info::ada_lookup_name_info): Update.
9192 (literal_symbol_name_matcher): Update.
9193
8c072cb6
TT
91942020-04-01 Tom Tromey <tromey@adacore.com>
9195
9196 * psymtab.c (psymtab_search_name): Remove function.
9197 (psym_lookup_symbol): Create search name and lookup name here.
9198 (lookup_partial_symbol): Remove "name" parameter; add
9199 lookup_name.
9200 (psym_expand_symtabs_for_function): Update.
9201
6f29a534
TT
92022020-03-31 Joel Jones <joelkevinjones@gmail.com>
9203
9204 PR tui/25597:
9205 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9206
af62665e
TT
92072020-03-31 Tom Tromey <tromey@adacore.com>
9208
9209 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9210 memcpy.
9211
d1a89da5
NC
92122020-03-30 Nelson Chu <nelson.chu@sifive.com>
9213
9214 * features/riscv/32bit-csr.xml: Regenerated.
9215 * features/riscv/64bit-csr.xml: Regenerated.
9216
d8af9068
TT
92172020-03-30 Tom Tromey <tromey@adacore.com>
9218
9219 * ada-valprint.c (print_variant_part): Update.
9220 * ada-lang.h (ada_which_variant_applies): Update.
9221 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9222 outer_valaddr parameters; replace with "outer" value parameter.
9223 (to_fixed_variant_branch_type): Update.
9224
227c0bf4
PFC
92252020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9226
9227 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9228 <list>. Remove inclusion of observable.h.
9229 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9230 (struct arch_lwp_info): New struct.
9231 (class ppc_linux_dreg_interface): New class.
9232 (struct ppc_linux_process_info): New struct.
9233 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9234 <low_new_clone, low_forget_process, low_prepare_to_resume>
9235 <copy_thread_dreg_state, mark_thread_stale>
9236 <mark_debug_registers_changed, register_hw_breakpoint>
9237 <clear_hw_breakpoint, register_wp, clear_wp>
9238 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9239 <num_memory_accesses, get_trigger_type>
9240 <create_watchpoint_request, hwdebug_point_cmp>
9241 <init_arch_lwp_info, get_arch_lwp_info>
9242 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9243 methods.
9244 <struct ptid_hash>: New inner struct.
9245 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9246 members.
9247 (saved_dabr_value, hwdebug_info, max_slots_number)
9248 (struct hw_break_tuple, struct thread_points, ppc_threads)
9249 (have_ptrace_hwdebug_interface)
9250 (hwdebug_find_thread_points_by_tid)
9251 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9252 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9253 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9254 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9255 use m_dreg_interface.
9256 (hwdebug_point_cmp): Change to...
9257 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9258 reference arguments instead of pointers.
9259 (ppc_linux_nat_target::ranged_break_num_registers): Use
9260 m_dreg_interface.
9261 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9262 m_dreg_interface. Call register_hw_breakpoint.
9263 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9264 m_dreg_interface. Call clear_hw_breakpoint.
9265 (get_trigger_type): Change to...
9266 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9267 comment.
9268 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9269 use m_dreg_interface. Call register_hw_breakpoint.
9270 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9271 use m_dreg_interface. Call clear_hw_breakpoint.
9272 (can_use_watchpoint_cond_accel): Change to...
9273 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9274 method. Update comment, use m_dreg_interface and
9275 m_process_info.
9276 (calculate_dvc): Change to...
9277 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9278 m_dreg_interface.
9279 (num_memory_accesses): Change to...
9280 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9281 (check_condition): Change to...
9282 (ppc_linux_nat_target::check_condition): ...this method.
9283 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9284 comment, use m_dreg_interface.
9285 (create_watchpoint_request): Change to...
9286 (ppc_linux_nat_target::create_watchpoint_request): ...this
9287 method. Use m_dreg_interface.
9288 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9289 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9290 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9291 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9292 (ppc_linux_nat_target::low_forget_process)
9293 (ppc_linux_nat_target::low_new_fork)
9294 (ppc_linux_nat_target::low_new_clone)
9295 (ppc_linux_nat_target::low_delete_thread)
9296 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9297 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9298 only call mark_thread_stale.
9299 (ppc_linux_thread_exit): Remove.
9300 (ppc_linux_nat_target::stopped_data_address): Change to...
9301 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9302 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9303 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9304 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9305 comment. Call low_stopped_data_address.
9306 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9307 m_dreg_interface.
9308 (ppc_linux_nat_target::masked_watch_num_registers): Use
9309 m_dreg_interface.
9310 (ppc_linux_nat_target::copy_thread_dreg_state)
9311 (ppc_linux_nat_target::mark_thread_stale)
9312 (ppc_linux_nat_target::mark_debug_registers_changed)
9313 (ppc_linux_nat_target::register_hw_breakpoint)
9314 (ppc_linux_nat_target::clear_hw_breakpoint)
9315 (ppc_linux_nat_target::register_wp)
9316 (ppc_linux_nat_target::clear_wp)
9317 (ppc_linux_nat_target::init_arch_lwp_info)
9318 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9319 (_initialize_ppc_linux_nat): Remove observer callback.
9320
4db10d8f
PFC
93212020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9322
9323 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9324 (ppc_linux_nat_target::auxv_parse)
9325 (ppc_linux_nat_target::read_description)
9326 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9327 Move up.
9328
1310c1b0
PFC
93292020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9330
9331 * linux-nat.h (low_new_clone): New method.
9332 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9333
69b037c3
SM
93342020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9335
9336 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9337 (dbx_expand_psymtab): ... this.
9338 (start_psymtab): Update.
9339 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9340 (mdebug_expand_psymtab): ... this.
9341 (parse_partial_symbols): Update.
9342 (new_psymtab): Update.
9343 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9344 (xcoff_expand_psymtab): ... this.
9345 (xcoff_start_psymtab): Update.
9346
48993951
SM
93472020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9348
9349 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9350 <expand_dependencies>: ... this.
9351 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9352 (partial_symtab::expand_dependencies): ... this.
9353 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9354 Update.
9355 (dwarf2_psymtab::expand_psymtab): Update.
9356 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9357 * mdebugread.c (psymtab_to_symtab_1): Update.
9358 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9359
3ad83046
SM
93602020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9361
9362 * psympriv.h (discard_psymtab): Remove.
9363 * dbxread.c (dbx_end_psymtab): Update.
9364 * xcoffread.c (xcoff_end_psymtab): Update.
9365
4d1b9ab6
TT
93662020-03-28 Tom Tromey <tom@tromey.com>
9367
9368 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9369 comment.
9370
f1749218
TT
93712020-03-28 Tom Tromey <tom@tromey.com>
9372
9373 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9374
ebea7626
HD
93752020-03-27 Hannes Domani <ssbssa@yahoo.de>
9376
9377 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9378
a879b4d5
JB
93792020-03-26 John Baldwin <jhb@FreeBSD.org>
9380
9381 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9382
0826b30a
TT
93832020-03-26 Tom Tromey <tom@tromey.com>
9384
9385 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9386 (mark_common_block_symbol_computed, read_tag_string_type)
9387 (attr_to_dynamic_prop, read_subrange_type): Update.
9388 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9389 to be methods on struct attribute.
9390 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9391 (read_call_site_scope, partial_die_info::read)
9392 (partial_die_info::read, lookup_die_type, follow_die_ref):
9393 Update.
9394 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9395 from dwarf2_get_ref_die_offset.
9396 (attribute::constant_value): New method, from
9397 dwarf2_get_attr_constant_value.
9398 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9399 Declare method.
9400 <constant_value>: New method.
9401
2b2558bf
TT
94022020-03-26 Tom Tromey <tom@tromey.com>
9403
9404 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9405 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9406 (dwarf_type_encoding_name): Move to stringify.c.
9407 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9408 * dwarf2/stringify.c: New file.
9409 * dwarf2/stringify.h: New file.
9410
eeb64781
TT
94112020-03-26 Tom Tromey <tom@tromey.com>
9412
9413 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9414 Rewrite.
9415
a39fdb41
TT
94162020-03-26 Tom Tromey <tom@tromey.com>
9417
9418 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9419 methods.
9420 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9421 (lookup_ranges_base): Likewise.
9422 (read_cutu_die_from_dwo, read_full_die_1): Update.
9423
436c571c
TT
94242020-03-26 Tom Tromey <tom@tromey.com>
9425
9426 * dwarf2/read.c (read_import_statement, read_file_scope)
9427 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9428 (read_lexical_block_scope, read_call_site_scope)
9429 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9430 (handle_struct_member_die, process_structure_scope)
9431 (update_enumeration_type_from_children)
9432 (process_enumeration_scope, read_array_type, read_common_block)
9433 (read_namespace, read_module, read_subroutine_type): Update.
9434 (sibling_die): Remove.
9435
052c8bb8
TT
94362020-03-26 Tom Tromey <tom@tromey.com>
9437
9438 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9439 (build_type_psymtabs_reader, read_structure_type)
9440 (read_enumeration_type, read_full_die_1): Update.
9441 (dwarf2_attr_no_follow): Move to die.h.
9442 * dwarf2/die.h (struct die_info) <attr>: New method.
9443
2b24b6e4
TT
94442020-03-26 Tom Tromey <tom@tromey.com>
9445
9446 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9447 <base_address>: Now an optional.
9448 (dwarf2_find_base_address, dwarf2_rnglists_process)
9449 (dwarf2_ranges_process, fill_in_loclist_baton)
9450 (dwarf2_symbol_mark_computed): Update.
9451
c2d50fd0
TT
94522020-03-26 Tom Tromey <tom@tromey.com>
9453
9454 * dwarf2/read.c (struct die_info): Move to die.h.
9455 * dwarf2/die.h: New file.
9456
0df7ad3a
TT
94572020-03-26 Tom Tromey <tom@tromey.com>
9458
9459 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9460 * dwarf2/read.c
9461 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9462 Move to line-header.c.
9463 (read_checked_initial_length_and_offset, read_formatted_entries):
9464 Likewise.
9465 (dwarf_decode_line_header): Split into two.
9466 * dwarf2/line-header.c
9467 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9468 Move from read.c.
9469 (read_checked_initial_length_and_offset, read_formatted_entries):
9470 Likewise.
9471 (dwarf_decode_line_header): New function, split from read.c.
9472
86c0bb4c
TT
94732020-03-26 Tom Tromey <tom@tromey.com>
9474
9475 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9476 Declare method.
9477 * dwarf2/read.c (read_attribute_value): Update.
9478 (dwarf2_per_objfile::read_line_string): Rename from
9479 read_indirect_line_string.
9480 (read_formatted_entries): Update.
9481
2ef46c2f
TT
94822020-03-26 Tom Tromey <tom@tromey.com>
9483
9484 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9485 variable.
9486
4f9c1eda
TT
94872020-03-26 Tom Tromey <tom@tromey.com>
9488
9489 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9490 const.
9491 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9492 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9493 parameter const.
9494
5a0e026f
TT
94952020-03-26 Tom Tromey <tom@tromey.com>
9496
9497 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9498 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9499 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9500 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9501
8844c11b
TT
95022020-03-26 Tom Tromey <tom@tromey.com>
9503
9504 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9505 file_names_size, file_full_name, file_file_name>: Use const.
9506 <file_name_at, file_names>: Add const overload.
9507 * dwarf2/line-header.c (line_header::file_file_name)
9508 (line_header::file_full_name): Update.
9509
c90ec28a
TT
95102020-03-26 Tom Tromey <tom@tromey.com>
9511
9512 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9513 (macro_start_file, consume_improper_spaces)
9514 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9515 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9516 (dwarf_decode_macros): Move to macro.c.
9517 * dwarf2/macro.c: New file.
9518 * dwarf2/macro.h: New file.
9519 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9520
4f44ae6c
TT
95212020-03-26 Tom Tromey <tom@tromey.com>
9522
9523 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9524 method.
9525 * dwarf2/section.c: New method. From
9526 read_indirect_string_at_offset_from.
9527 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9528 (read_indirect_string_at_offset_from): Move to section.c.
9529 (read_indirect_string_at_offset): Rewrite.
9530 (read_indirect_line_string_at_offset): Remove.
9531 (read_indirect_string, read_indirect_line_string)
9532 (dwarf_decode_macro_bytes): Update.
9533
a0194fa8
TT
95342020-03-26 Tom Tromey <tom@tromey.com>
9535
9536 * dwarf2/section.h (struct dwarf2_section_info)
9537 <overload_complaint>: Declare.
9538 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9539 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9540 Rename from dwarf2_section_buffer_overflow_complaint.
9541 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9542 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9543
3d27bbdb
TT
95442020-03-26 Tom Tromey <tom@tromey.com>
9545
9546 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9547 Declare.
9548 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9549 Move from read.c.
9550 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9551 to section.c.
9552
9eac9650
TT
95532020-03-26 Tom Tromey <tom@tromey.com>
9554
9555 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9556
bf80d710
TT
95572020-03-26 Tom Tromey <tom@tromey.com>
9558
9559 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9560 "builder".
9561 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9562 parameter.
9563 (dwarf_decode_macros): Update.
9564
0314b390
TT
95652020-03-26 Tom Tromey <tom@tromey.com>
9566
9567 * dwarf2/read.c (read_attribute_value): Update.
9568 (read_indirect_string_from_dwz): Move to dwz.c; change into
9569 method.
9570 (dwarf_decode_macro_bytes): Update.
9571 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9572 * dwarf2/dwz.c: New file.
9573 * Makefile.in (COMMON_SFILES): Add dwz.c.
9574
9fda78b6
TT
95752020-03-26 Tom Tromey <tom@tromey.com>
9576
9577 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9578 * dwarf2/read.c: Add include.
9579 * dwarf2/index-write.c: Add include.
9580 * dwarf2/index-cache.c: Add include.
9581 * dwarf2/dwz.h: New file.
9582
33aa3c10
TT
95832020-03-25 Tom Tromey <tom@tromey.com>
9584
9585 * compile/compile-object-load.c (get_out_value_type): Mention
9586 correct symbol name in error message.
9587
d503b685
HD
95882020-03-25 Hannes Domani <ssbssa@yahoo.de>
9589
9590 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9591
7b1eff95
TV
95922020-03-25 Tom de Vries <tdevries@suse.de>
9593
9594 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9595 * symmisc.c (dump_symtab_1): Print user and includes fields.
9596 (maintenance_info_symtabs): Same.
9597
dd895392
AB
95982020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9599
9600 PR gdb/25534
9601 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9602 (riscv_regcache_cooked_write): New function.
9603 (riscv_push_dummy_call): Use new function.
9604 (riscv_return_value): Likewise.
9605
5ab2fbf1
SM
96062020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9607
9608 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9609 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9610 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9611 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9612 * infrun.c (follow_fork): Likewise.
9613 (follow_fork_inferior): Likewise.
9614 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9615 * linux-nat.h (class linux_nat_target): Likewise.
9616 * remote.c (class remote_target) <follow_fork>: Likewise.
9617 (remote_target::follow_fork): Likewise.
9618 * target-delegates.c: Re-generate.
9619 * target.c (default_follow_fork): Likewise.
9620 (target_follow_fork): Likewise.
9621 * target.h (struct target_ops) <follow_fork>: Likewise.
9622 (target_follow_fork): Likewise.
9623
a64fafb5
TV
96242020-03-24 Tom de Vries <tdevries@suse.de>
9625
9626 * psymtab.c (maintenance_info_psymtabs): Print user field.
9627
fe26d3a3
TT
96282020-03-20 Tom Tromey <tromey@adacore.com>
9629
9630 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9631 const.
9632 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9633 const.
9634
c884cc46
SM
96352020-03-20 Simon Marchi <simon.marchi@efficios.com>
9636
9637 * ptrace.m4: Don't check for ptrace declaration.
9638 * config.in: Re-generate.
9639 * configure: Re-generate.
9640 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9641 not defined.
9642
1ff700c2
KR
96432020-03-20 Kamil Rytarowski <n54@gmx.com>
9644
9645 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9646 `PTRACE_TYPE_RET'.
9647 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9648 * sparc-nat.c (gdb_ptrace): Likewise.
9649 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9650
f7d4f0b1
TT
96512020-03-20 Tom Tromey <tromey@adacore.com>
9652
9653 * c-exp.y (lex_one_token): Fix assert.
9654
f67210ff
TT
96552020-03-20 Tom Tromey <tromey@adacore.com>
9656
9657 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9658 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9659 strncpy call.
9660
1773be9e
TT
96612020-03-20 Tom Tromey <tromey@adacore.com>
9662
9663 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9664
70304be9
TT
96652020-03-20 Tom Tromey <tromey@adacore.com>
9666
9667 * ada-valprint.c (print_variant_part): Remove parameters; switch
9668 to value-based API.
9669 (print_field_values): Likewise.
9670 (ada_val_print_struct_union): Likewise.
9671 (ada_value_print_1): Update.
9672
9faa006d
KR
96732020-03-20 Kamil Rytarowski <n54@gmx.com>
9674
9675 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9676 nbsd_nat_target instead of inf_ptrace_target.
9677 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9678 nbsd_nat_target.
9679
4a90f062
KR
96802020-03-20 Kamil Rytarowski <n54@gmx.com>
9681
9682 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9683 it to the ptrace call.
9684 * (store_registers): Likewise.
9685
96862020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9687
9688 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9689 it to the ptrace call.
9690 * (store_registers): Likewise.
9691
2d07da27
LM
96922020-03-19 Luis Machado <luis.machado@linaro.org>
9693
9694 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9695 valid, fetch vg value from ptrace.
9696
f09db380
KR
96972020-03-19 Kamil Rytarowski <n54@gmx.com>
9698 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9699 * inf-ptrace.c: Likewise.
9700 * (gdb_ptrace): Add.
9701 * (inf_ptrace_target::resume): Update.
9702 * (inf_ptrace_target::xfer_partial): Likewise.
9703 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9704 * (inf_ptrace_peek_poke): Update.
9705
fcc7376e
KR
97062020-03-19 Kamil Rytarowski <n54@gmx.com>
9707
9708 * x86-bsd-nat.c (gdb_ptrace): New.
9709 * (x86bsd_dr_set): Add new argument `ptid'.
9710 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9711 x86bsd_dr_set_addr): Update.
9712
cada5fc9
AB
97132020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9714
9715 * remote.c (remote_target::process_stop_reply): Handle events for
9716 all threads differently.
9717
19a2740f
AB
97182020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9719
9720 * completer.c (completion_tracker::remove_completion): Define new
9721 function.
9722 * completer.h (completion_tracker::remove_completion): Declare new
9723 function.
9724 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9725 when adding a C++ function symbol.
9726
724fd9ba
AB
97272020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9728
9729 * completer.c (completion_tracker::completion_hash_entry): Define
9730 new class.
9731 (advance_to_filename_complete_word_point): Call
9732 recompute_lowest_common_denominator.
9733 (completion_tracker::completion_tracker): Call discard_completions
9734 to setup the hash table.
9735 (completion_tracker::discard_completions): Allow for being called
9736 from the constructor, pass new equal function, and element deleter
9737 when constructing the hash table. Initialise new class member
9738 variables.
9739 (completion_tracker::maybe_add_completion): Remove use of
9740 m_entries_vec, and store more information into m_entries_hash.
9741 (completion_tracker::recompute_lcd_visitor): New function, most
9742 content taken from...
9743 (completion_tracker::recompute_lowest_common_denominator):
9744 ...here, this now just visits each item in the hash calling the
9745 above visitor.
9746 (completion_tracker::build_completion_result): Remove use of
9747 m_entries_vec, call recompute_lowest_common_denominator.
9748 * completer.h (completion_tracker::have_completions): Remove use
9749 of m_entries_vec.
9750 (completion_tracker::completion_hash_entry): Declare new class.
9751 (completion_tracker::recompute_lowest_common_denominator): Change
9752 function signature.
9753 (completion_tracker::recompute_lcd_visitor): Declare new function.
9754 (completion_tracker::m_entries_vec): Delete.
9755 (completion_tracker::m_entries_hash): Initialize to NULL.
9756 (completion_tracker::m_lowest_common_denominator_valid): New
9757 member variable.
9758 (completion_tracker::m_lowest_common_denominator_max_length): New
9759 member variable.
9760
5a82b8a1
KR
97612020-03-17 Kamil Rytarowski <n54@gmx.com>
9762
9763 * regformats/regdef.h: Put reg in gdb namespace.
9764
fb516a69
KR
97652020-03-17 Kamil Rytarowski <n54@gmx.com>
9766
9767 * i386-bsd-nat.c (gdb_ptrace): New.
9768 * (i386bsd_fetch_inferior_registers,
9769 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9770 * (i386bsd_fetch_inferior_registers,
9771 i386bsd_store_inferior_registers) Use gdb_ptrace.
9772
1c0aa1fb
KR
97732020-03-17 Kamil Rytarowski <n54@gmx.com>
9774
9775 * amd64-bsd-nat.c (gdb_ptrace): New.
9776 * (amd64bsd_fetch_inferior_registers,
9777 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9778 * (amd64bsd_fetch_inferior_registers,
9779 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9780
5ccd2fb7
KR
97812020-03-17 Kamil Rytarowski <n54@gmx.com>
9782
9783 * user-regs.c (user_reg::read): Rename to...
9784 (user_reg::xread): ...this.
9785 * (append_user_reg): Rename argument `read' to `xread'.
9786 * (user_reg_add_builtin): Likewise.
9787 * (user_reg_add): Likewise.
9788 * (value_of_user_reg): Likewise.
9789
2108a63a
KR
97902020-03-17 Kamil Rytarowski <n54@gmx.com>
9791
9792 * sparc-nat.c (gdb_ptrace): New.
9793 * sparc-nat.c (sparc_fetch_inferior_registers)
9794 (sparc_store_inferior_registers) Remove obsolete comment.
9795 * sparc-nat.c (sparc_fetch_inferior_registers)
9796 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9797 * sparc-nat.c (sparc_fetch_inferior_registers)
9798 (sparc_store_inferior_registers) Use gdb_ptrace.
9799
a225c9a8
KR
98002020-03-17 Kamil Rytarowski <n54@gmx.com>
9801
9802 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9803 it to the ptrace call.
9804 * sh-nbsd-nat.c (store_registers): Likewise.
9805
98097623
KR
98062020-03-17 Kamil Rytarowski <n54@gmx.com>
9807
9808 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9809 nbsd_nat_target instead of inf_ptrace_target.
9810 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9811 nbsd_nat_target.
9812
9e38d619
KR
98132020-03-17 Kamil Rytarowski <n54@gmx.com>
9814
9815 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9816
a2ecbe9f
KR
98172020-03-17 Kamil Rytarowski <n54@gmx.com>
9818
9819 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9820 <sys/sysctl.h>.
9821 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9822
58990295
TV
98232020-03-17 Tom de Vries <tdevries@suse.de>
9824
9825 PR gdb/23710
9826 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9827 fields.
9828 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9829 fields.
9830 (process_imported_unit_die): Skip import of c++ CUs.
9831
771dd3a8
TT
98322020-03-16 Tom Tromey <tom@tromey.com>
9833
9834 * p-valprint.c (pascal_object_print_value): Initialize
9835 base_value.
9836
817a7585
AK
98372020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9838 Shahab Vahedi <shahab@synopsys.com>
9839
9840 * Makefile.in: Add arch/arc.o
9841 * configure.tgt: Likewise.
9842 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9843 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9844 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9845 * arc-tdep.h (arc_read_description): Add proto type.
9846 * arch/arc.c: New file.
9847 * arch/arc.h: Likewise.
9848 * features/Makefile: Replace old target descriptions with new.
9849 * features/arc-arcompact.c: Remove.
9850 * features/arc-arcompact.xml: Likewise.
9851 * features/arc-v2.c: Likewise
9852 * features/arc-v2.xml: Likewise
9853 * features/arc/aux-arcompact.xml: New file.
9854 * features/arc/aux-v2.xml: Likewise.
9855 * features/arc/core-arcompact.xml: Likewise.
9856 * features/arc/core-v2.xml: Likewise.
9857 * features/arc/aux-arcompact.c: Generate.
9858 * features/arc/aux-v2.c: Likewise.
9859 * features/arc/core-arcompact.c: Likewise.
9860 * features/arc/core-v2.c: Likewise.
9861 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9862
67430cd0
TT
98632020-03-16 Tom Tromey <tromey@adacore.com>
9864
9865 PR gdb/25663:
9866 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9867 putting value into bcache.
9868
30efb6c7
SM
98692020-03-16 Simon Marchi <simon.marchi@efficios.com>
9870
9871 PR gdb/21500
9872 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9873 to...
9874 (amd64_windows_init_abi_common): ... this. Don't set size of
9875 long type.
9876 (amd64_windows_init_abi): New function.
9877 (amd64_cygwin_init_abi): New function.
9878 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9879 the Cygwin OS ABI.
9880 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9881 comment.
9882
8db52437
SM
98832020-03-16 Simon Marchi <simon.marchi@efficios.com>
9884
9885 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9886 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9887 (pe_import_directory_entry): New struct type.
9888 (is_linked_with_cygwin_dll): New function.
9889 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9890 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9891 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9892
5982a56a
SM
98932020-03-16 Simon Marchi <simon.marchi@efficios.com>
9894
9895 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9896 i386_cygwin_core_osabi_sniffer.
9897
7a1998df
SM
98982020-03-16 Simon Marchi <simon.marchi@efficios.com>
9899
9900 * i386-cygwin-tdep.c: Rename to...
9901 * i386-windows-tdep.c: ... this.
9902 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9903 i386-windows-tdep.c.
9904 * configure.tgt: Likewise.
9905
053205cc
SM
99062020-03-16 Simon Marchi <simon.marchi@efficios.com>
9907
9908 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9909 * osabi.c (gdb_osabi_names): Add "Windows".
9910 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9911 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9912 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9913 i386_cygwin_osabi_sniffer.
9914 (_initialize_i386_cygwin_tdep): Register OS ABI
9915 GDB_OSABI_WINDOWS for i386.
9916 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9917 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9918 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9919 for x86-64.
9920 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9921 when the target matches '*-*-mingw*'.
9922
fe4b2ee6
SM
99232020-03-16 Simon Marchi <simon.marchi@efficios.com>
9924
9925 * defs.h (enum gdb_osabi): Move to...
9926 * osabi.h (enum gdb_osabi): ... here.
9927 * gdbarch.sh: Include osabi.h in gdbarch.h.
9928 * gdbarch.h: Re-generate.
9929
cb9b645d
SM
99302020-03-16 Simon Marchi <simon.marchi@efficios.com>
9931
9932 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9933 function.
9934 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9935
3293bbaf
TT
99362020-03-14 Tom Tromey <tom@tromey.com>
9937
9938 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9939 for C++.
9940 (c_type_print_modifier): Likewise. Add "language" parameter.
9941 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9942 (c_type_print_base_1): Update.
9943 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9944 constants.
9945 * type-stack.c (type_stack::insert): Handle tp_atomic and
9946 tp_restrict.
9947 (type_stack::follow_type_instance_flags): Likewise.
9948 (type_stack::follow_types): Likewise. Merge type-following code.
9949 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9950 (space_identifier, cv_with_space_id)
9951 (const_or_volatile_or_space_identifier_noopt)
9952 (const_or_volatile_or_space_identifier): Remove.
9953 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9954 rules.
9955 (ptr_operator, typebase): Update.
9956 (enum token_flag) <FLAG_C>: New constant.
9957 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9958 "_Atomic".
9959 (lex_one_token): Handle FLAG_C.
9960
154151a6
KR
99612020-03-14 Kamil Rytarowski <n54@gmx.com>
9962
9963 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9964 it to the ptrace call.
9965 * m68k-bsd-nat.c (store_registers): Likewise.
9966
bc107784
KR
99672020-03-14 Kamil Rytarowski <n54@gmx.com>
9968
9969 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9970 gdb_byte *.
9971 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9972 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9973 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9974
01a80117
KR
99752020-03-14 Kamil Rytarowski <n54@gmx.com>
9976
9977 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9978 nbsd_nat_target instead of inf_ptrace_target.
9979 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9980 nbsd_nat_target.
9981
f90280ca
KR
99822020-03-14 Kamil Rytarowski <n54@gmx.com>
9983
9984 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9985 register_t.
9986
6def66f1
KR
99872020-03-14 Kamil Rytarowski <n54@gmx.com>
9988
9989 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9990 it to the ptrace call.
9991 * alpha-bsd-nat.c (store_registers): Likewise.
9992
66eaca97
KR
99932020-03-14 Kamil Rytarowski <n54@gmx.com>
9994
9995 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9996 includes.
9997 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9998 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9999 fill_fpregset): Likewise.
10000
4fed520b
KR
100012020-03-14 Kamil Rytarowski <n54@gmx.com>
10002
10003 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10004 nbsd_nat_target instead of inf_ptrace_target.
10005 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10006 nbsd_nat_target.
10007
2190cf06
KR
100082020-03-14 Kamil Rytarowski <n54@gmx.com>
10009
10010 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10011 register_t.
10012
75c56d3d
KR
100132020-03-14 Kamil Rytarowski <n54@gmx.com>
10014
10015 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10016 it to the ptrace call.
10017 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10018 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10019 * arm-nbsd-nat.c (store_register): Likewise.
10020 * arm-nbsd-nat.c (store_regs): Likewise.
10021 * arm-nbsd-nat.c (store_fp_register): Likewise.
10022 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10023
6018d381
KR
100242020-03-14 Kamil Rytarowski <n54@gmx.com>
10025
10026 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10027 nbsd_nat_target instead of inf_ptrace_target.
10028 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10029 nbsd_nat_target.
10030
013f99f0
KR
100312020-03-14 Kamil Rytarowski <n54@gmx.com>
10032
10033 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10034 it to the ptrace call.
10035 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10036
12753073
KR
100372020-03-14 Kamil Rytarowski <n54@gmx.com>
10038
6227b330
KR
10039 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10040 it to the ptrace call.
10041 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10042
100432020-03-14 Kamil Rytarowski <n54@gmx.com>
10044
10045 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10046 gdb_byte *.
12753073
KR
10047 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10048
d5be5fa4
KR
100492020-03-14 Kamil Rytarowski <n54@gmx.com>
10050
10051 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10052 instead of inf_ptrace_target.
10053 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10054 nbsd_nat_target.
10055
8110f842
KR
100562020-03-14 Kamil Rytarowski <n54@gmx.com>
10057
10058 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10059 register_t.
10060
52feded7
KR
100612020-03-14 Kamil Rytarowski <n54@gmx.com>
10062
10063 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10064 register_t.
10065
25567eee
KR
100662020-03-14 Kamil Rytarowski <n54@gmx.com>
10067
10068 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10069 register_t.
10070
426a9c18
TT
100712020-03-13 Tom Tromey <tom@tromey.com>
10072
10073 * value.h (val_print): Don't declare.
10074 * valprint.h (val_print_array_elements)
10075 (val_print_scalar_formatted, generic_val_print): Don't declare.
10076 * valprint.c (generic_val_print_array): Take a struct value.
10077 (generic_val_print_ptr, generic_val_print_memberptr)
10078 (generic_val_print_bool, generic_val_print_int)
10079 (generic_val_print_char, generic_val_print_complex)
10080 (generic_val_print): Remove.
10081 (generic_value_print): Update.
10082 (do_val_print): Remove unused parameters. Don't call
10083 la_val_print.
10084 (val_print): Remove.
10085 (common_val_print): Update. Don't call value_check_printable.
10086 (val_print_scalar_formatted, val_print_array_elements): Remove.
10087 * rust-lang.c (rust_val_print): Remove.
10088 (rust_language_defn): Update.
10089 * p-valprint.c (pascal_val_print): Remove.
10090 (pascal_value_print_inner): Update.
10091 (pascal_object_print_val_fields, pascal_object_print_val):
10092 Remove.
10093 (pascal_object_print_static_field): Update.
10094 * p-lang.h (pascal_val_print): Don't declare.
10095 * p-lang.c (pascal_language_defn): Update.
10096 * opencl-lang.c (opencl_language_defn): Update.
10097 * objc-lang.c (objc_language_defn): Update.
10098 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10099 * m2-lang.h (m2_val_print): Don't declare.
10100 * m2-lang.c (m2_language_defn): Update.
10101 * language.h (struct language_defn) <la_val_print>: Remove.
10102 * language.c (unk_lang_value_print_inner): Rename. Change
10103 argument types.
10104 (unknown_language_defn, auto_language_defn): Update.
10105 * go-valprint.c (go_val_print): Remove.
10106 * go-lang.h (go_val_print): Don't declare.
10107 * go-lang.c (go_language_defn): Update.
10108 * f-valprint.c (f_val_print): Remove.
10109 * f-lang.h (f_value_print): Don't declare.
10110 * f-lang.c (f_language_defn): Update.
10111 * d-valprint.c (d_val_print): Remove.
10112 * d-lang.h (d_value_print): Don't declare.
10113 * d-lang.c (d_language_defn): Update.
10114 * cp-valprint.c (cp_print_value_fields)
10115 (cp_print_value_fields_rtti, cp_print_value): Remove.
10116 (cp_print_static_field): Update.
10117 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10118 (c_val_print_struct, c_val_print_union, c_val_print_int)
10119 (c_val_print_memberptr, c_val_print): Remove.
10120 * c-lang.h (c_val_print_array, cp_print_value_fields)
10121 (cp_print_value_fields_rtti): Don't declare.
10122 * c-lang.c (c_language_defn, cplus_language_defn)
10123 (asm_language_defn, minimal_language_defn): Update.
10124 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10125 (ada_val_print_enum): Take a struct value.
10126 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10127 (ada_val_print): Remove.
10128 (ada_value_print_1): Update.
10129 (printable_val_type): Remove.
10130 * ada-lang.h (ada_val_print): Don't declare.
10131 * ada-lang.c (ada_language_defn): Update.
10132
42331a1e
TT
101332020-03-13 Tom Tromey <tom@tromey.com>
10134
10135 * valprint.c (do_val_print): Update.
10136 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10137 a struct value.
10138 (value_to_value_object_no_release): Declare.
10139 * python/py-value.c (value_to_value_object_no_release): New
10140 function.
10141 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10142 struct value.
10143 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10144 function.
10145 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10146 a struct value.
10147 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10148 Declare.
10149 (gdbscm_apply_val_pretty_printer): Take a struct value.
10150 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10151 value.
10152 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10153 value.
10154 * extension-priv.h (struct extension_language_ops)
10155 <apply_val_pretty_printer>: Take a struct value.
10156 * cp-valprint.c (cp_print_value): Create a struct value.
10157 (cp_print_value): Update.
10158
3a916a97
TT
101592020-03-13 Tom Tromey <tom@tromey.com>
10160
10161 * ada-valprint.c (print_field_values): Call common_val_print.
10162
b59eac37
TT
101632020-03-13 Tom Tromey <tom@tromey.com>
10164
10165 * ada-valprint.c (val_print_packed_array_elements): Remove
10166 bitoffset and val parameters. Call common_val_print.
10167 (ada_val_print_string): Remove offset, address, and original_value
10168 parameters.
10169 (ada_val_print_array): Update.
10170 (ada_value_print_array): New function.
10171 (ada_value_print_1): Call it.
10172
03371129
TT
101732020-03-13 Tom Tromey <tom@tromey.com>
10174
10175 * ada-valprint.c (ada_value_print): Use common_val_print.
10176
2e088f8b
TT
101772020-03-13 Tom Tromey <tom@tromey.com>
10178
10179 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10180
39ef85a8
TT
101812020-03-13 Tom Tromey <tom@tromey.com>
10182
10183 * ada-valprint.c (ada_value_print_num): New function.
10184 (ada_value_print_1): Use it.
10185
b9fa6e07
TT
101862020-03-13 Tom Tromey <tom@tromey.com>
10187
10188 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10189
416595d6
TT
101902020-03-13 Tom Tromey <tom@tromey.com>
10191
10192 * ada-valprint.c (ada_value_print_ptr): New function.
10193 (ada_value_print_1): Use it.
10194
5b5e15ec
TT
101952020-03-13 Tom Tromey <tom@tromey.com>
10196
10197 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10198 call common_val_print.
10199 (ada_val_print_1): Update.
10200 (ada_value_print_1): New function.
10201 (ada_value_print_inner): Rewrite.
10202
fbf54e75
TT
102032020-03-13 Tom Tromey <tom@tromey.com>
10204
10205 * cp-valprint.c (cp_print_value_fields): Update.
10206 (cp_print_value): New function.
10207
64b653ca
TT
102082020-03-13 Tom Tromey <tom@tromey.com>
10209
10210 * m2-valprint.c (m2_value_print_inner): Use
10211 cp_print_value_fields.
10212 * cp-valprint.c (cp_print_value_fields): New function.
10213 * c-valprint.c (c_value_print_struct): New function.
10214 (c_value_print_inner): Use c_value_print_struct.
10215 * c-lang.h (cp_print_value_fields): Declare.
10216
6999f067
TT
102172020-03-13 Tom Tromey <tom@tromey.com>
10218
10219 * c-valprint.c (c_value_print_array): New function.
10220 (c_value_print_inner): Use it.
10221
ce80b8bd
TT
102222020-03-13 Tom Tromey <tom@tromey.com>
10223
10224 * c-valprint.c (c_value_print_memberptr): New function.
10225 (c_value_print_inner): Use it.
10226
2faac269
TT
102272020-03-13 Tom Tromey <tom@tromey.com>
10228
10229 * c-valprint.c (c_value_print_int): New function.
10230 (c_value_print_inner): Use it.
10231
da3e2c29
TT
102322020-03-13 Tom Tromey <tom@tromey.com>
10233
10234 * c-valprint.c (c_value_print_ptr): New function.
10235 (c_value_print_inner): Use it.
10236
50836231
TT
102372020-03-13 Tom Tromey <tom@tromey.com>
10238
10239 * c-valprint.c (c_value_print_inner): Rewrite.
10240
4f412b6e
TT
102412020-03-13 Tom Tromey <tom@tromey.com>
10242
10243 * valprint.c (generic_value_print_complex): New function.
10244 (generic_value_print): Use it.
10245
f5354008
TT
102462020-03-13 Tom Tromey <tom@tromey.com>
10247
10248 * valprint.c (generic_val_print_float): Don't call
10249 val_print_scalar_formatted.
10250 (generic_val_print, generic_value_print): Update.
10251
3eec3b05
TT
102522020-03-13 Tom Tromey <tom@tromey.com>
10253
10254 * valprint.c (generic_value_print_char): New function
10255 (generic_value_print): Use it.
10256
fdddfccb
TT
102572020-03-13 Tom Tromey <tom@tromey.com>
10258
10259 * valprint.c (generic_value_print_int): New function.
10260 (generic_value_print): Use it.
10261
6dde7521
TT
102622020-03-13 Tom Tromey <tom@tromey.com>
10263
10264 * valprint.c (generic_value_print_bool): New function.
10265 (generic_value_print): Use it.
10266
4112d2e6
TT
102672020-03-13 Tom Tromey <tom@tromey.com>
10268
10269 * valprint.c (generic_val_print_func): Simplify.
10270 (generic_val_print, generic_value_print): Update.
10271
65786af6
TT
102722020-03-13 Tom Tromey <tom@tromey.com>
10273
10274 * valprint.c (generic_val_print_flags): Remove.
10275 (generic_val_print, generic_value_print): Update.
10276 (val_print_type_code_flags): Add original_value parameter.
10277
40f3ce18
TT
102782020-03-13 Tom Tromey <tom@tromey.com>
10279
10280 * valprint.c (generic_val_print): Update.
10281 (generic_value_print): Update.
10282 * valprint.c (generic_val_print_enum): Don't call
10283 val_print_scalar_formatted.
10284
2a5b130b
TT
102852020-03-13 Tom Tromey <tom@tromey.com>
10286
10287 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10288 * valprint.c (generic_value_print_ptr): New function.
10289
abc66ce9
TT
102902020-03-13 Tom Tromey <tom@tromey.com>
10291
10292 * valprint.c (generic_value_print): Rewrite.
10293
07a32858
TT
102942020-03-13 Tom Tromey <tom@tromey.com>
10295
10296 * p-valprint.c (pascal_object_print_value_fields)
10297 (pascal_object_print_value): New functions.
10298
64d64d3a
TT
102992020-03-13 Tom Tromey <tom@tromey.com>
10300
10301 * p-valprint.c (pascal_value_print_inner): Rewrite.
10302
6a95a1f5
TT
103032020-03-13 Tom Tromey <tom@tromey.com>
10304
10305 * f-valprint.c (f_value_print_innner): Rewrite.
10306
59fcdac6
TT
103072020-03-13 Tom Tromey <tom@tromey.com>
10308
10309 * m2-valprint.c (m2_print_unbounded_array): New overload.
10310 (m2_print_unbounded_array): Update.
10311 (m2_print_array_contents): Take a struct value.
10312 (m2_value_print_inner): Rewrite.
10313
d133c3e1
TT
103142020-03-13 Tom Tromey <tom@tromey.com>
10315
10316 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10317 (d_value_print_inner): New function.
10318 * d-lang.h (d_value_print_inner): Declare.
10319 * d-lang.c (d_language_defn): Use d_value_print_inner.
10320
23b0f06b
TT
103212020-03-13 Tom Tromey <tom@tromey.com>
10322
10323 * go-valprint.c (go_value_print_inner): New function.
10324 * go-lang.h (go_value_print_inner): Declare.
10325 * go-lang.c (go_language_defn): Use go_value_print_inner.
10326
5f56f7cb
TT
103272020-03-13 Tom Tromey <tom@tromey.com>
10328
10329 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10330 API.
10331 (rust_val_print): Rewrite.
10332 (rust_value_print_inner): New function, from rust_val_print.
10333 (rust_language_defn): Use rust_value_print_inner.
10334
26792ee0
TT
103352020-03-13 Tom Tromey <tom@tromey.com>
10336
10337 * ada-valprint.c (ada_value_print_inner): New function.
10338 * ada-lang.h (ada_value_print_inner): Declare.
10339 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10340
24051bbe
TT
103412020-03-13 Tom Tromey <tom@tromey.com>
10342
10343 * f-valprint.c (f_value_print_innner): New function.
10344 * f-lang.h (f_value_print_innner): Declare.
10345 * f-lang.c (f_language_defn): Use f_value_print_innner.
10346
c0941be6
TT
103472020-03-13 Tom Tromey <tom@tromey.com>
10348
10349 * p-valprint.c (pascal_value_print_inner): New function.
10350 * p-lang.h (pascal_value_print_inner): Declare.
10351 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10352
62c4663d
TT
103532020-03-13 Tom Tromey <tom@tromey.com>
10354
10355 * m2-valprint.c (m2_value_print_inner): New function.
10356 * m2-lang.h (m2_value_print_inner): Declare.
10357 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10358
62182190
TT
103592020-03-13 Tom Tromey <tom@tromey.com>
10360
10361 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10362 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10363 * c-valprint.c (c_value_print_inner): New function.
10364 * c-lang.h (c_value_print_inner): Declare.
10365 * c-lang.c (c_language_defn, cplus_language_defn)
10366 (asm_language_defn, minimal_language_defn): Use
10367 c_value_print_inner.
10368
1e592a8a
TT
103692020-03-13 Tom Tromey <tom@tromey.com>
10370
10371 * p-valprint.c (pascal_object_print_value_fields): Now static.
10372 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10373
7fe471e9
TT
103742020-03-13 Tom Tromey <tom@tromey.com>
10375
10376 * c-valprint.c (c_val_print_array): Simplify.
10377
d121c6ce
TT
103782020-03-13 Tom Tromey <tom@tromey.com>
10379
10380 * valprint.c (value_print_array_elements): New function.
10381 * valprint.h (value_print_array_elements): Declare.
10382
4dba70ee
TT
103832020-03-13 Tom Tromey <tom@tromey.com>
10384
10385 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10386 * mips-tdep.c (mips_print_register): Use
10387 value_print_scalar_formatted.
10388
4f9ae810
TT
103892020-03-13 Tom Tromey <tom@tromey.com>
10390
10391 * valprint.h (value_print_scalar_formatted): Declare.
10392 * valprint.c (value_print_scalar_formatted): New function.
10393
156bfec9
TT
103942020-03-13 Tom Tromey <tom@tromey.com>
10395
10396 * valprint.h (generic_value_print): Declare.
10397 * valprint.c (generic_value_print): New function.
10398
2b4e573d
TT
103992020-03-13 Tom Tromey <tom@tromey.com>
10400
10401 * valprint.c (do_val_print): Call la_value_print_inner, if
10402 available.
10403 * rust-lang.c (rust_language_defn): Update.
10404 * p-lang.c (pascal_language_defn): Update.
10405 * opencl-lang.c (opencl_language_defn): Update.
10406 * objc-lang.c (objc_language_defn): Update.
10407 * m2-lang.c (m2_language_defn): Update.
10408 * language.h (struct language_defn) <la_value_print_inner>: New
10409 member.
10410 * language.c (unknown_language_defn, auto_language_defn): Update.
10411 * go-lang.c (go_language_defn): Update.
10412 * f-lang.c (f_language_defn): Update.
10413 * d-lang.c (d_language_defn): Update.
10414 * c-lang.c (c_language_defn, cplus_language_defn)
10415 (asm_language_defn, minimal_language_defn): Update.
10416 * ada-lang.c (ada_language_defn): Update.
10417
a1f6a07c
TT
104182020-03-13 Tom Tromey <tom@tromey.com>
10419
10420 * c-valprint.c (c_value_print): Use common_val_print.
10421
410cf315
TT
104222020-03-13 Tom Tromey <tom@tromey.com>
10423
10424 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10425
72a45c93
TT
104262020-03-13 Tom Tromey <tom@tromey.com>
10427
10428 * f-valprint.c (f77_print_array_1, f_val_print): Use
10429 common_val_print.
10430
040f66bd
TT
104312020-03-13 Tom Tromey <tom@tromey.com>
10432
10433 * riscv-tdep.c (riscv_print_one_register_info): Use
10434 common_val_print.
10435
a6e05a6c
TT
104362020-03-13 Tom Tromey <tom@tromey.com>
10437
10438 * mi/mi-main.c (output_register): Use common_val_print.
10439
3444c526
TT
104402020-03-13 Tom Tromey <tom@tromey.com>
10441
10442 * infcmd.c (default_print_one_register_info): Use
10443 common_val_print.
10444
c2a44efe
TT
104452020-03-13 Tom Tromey <tom@tromey.com>
10446
10447 * valprint.h (common_val_print_checked): Declare.
10448 * valprint.c (common_val_print_checked): New function.
10449 * stack.c (print_frame_arg): Use common_val_print_checked.
10450
b0c26e99
TT
104512020-03-13 Tom Tromey <tom@tromey.com>
10452
10453 * valprint.c (do_val_print): New function, from val_print.
10454 (val_print): Use do_val_print.
10455 (common_val_print): Use do_val_print.
10456
ce3acbe9
TT
104572020-03-13 Tom Tromey <tom@tromey.com>
10458
10459 * valprint.c (value_print): Use scoped_value_mark.
10460
96c7f873
TV
104612020-03-13 Tom de Vries <tdevries@suse.de>
10462
10463 PR symtab/25646
10464 * psymtab.c (partial_symtab::partial_symtab): Don't set
10465 globals_offset and statics_offset. Push element onto
10466 current_global_psymbols and current_static_psymbols stacks.
10467 (concat): New function.
10468 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10469 element from current_global_psymbols and current_static_psymbols
10470 stacks. Concat popped elements to global_psymbols and
10471 static_symbols.
10472 (add_psymbol_to_list): Use current_global_psymbols and
10473 current_static_psymbols stacks.
10474 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10475 current_static_psymbols fields.
10476
6ba0a321
CB
104772020-03-12 Christian Biesinger <cbiesinger@google.com>
10478
10479 * corelow.c (sniff_core_bfd): Remove.
10480 (class core_target) <m_core_vec>: Remove.
10481 (core_target::core_target): Update.
10482 (core_file_fns): Remove.
10483 (deprecated_add_core_fns): Remove.
10484 (default_core_sniffer): Remove.
10485 (sniff_core_bfd): Remove.
10486 (default_check_format): Remove.
10487 (gdb_check_format): Remove.
10488 (core_target_open): Update.
10489 (core_target::get_core_register_section): Update.
10490 (get_core_registers_cb): Update.
10491 (core_target::fetch_registers): Update.
10492 * gdbcore.h (struct core_fns): Remove.
10493 (deprecated_add_core_fns): Remove.
10494 (default_core_sniffer): Remove.
10495 (default_check_format): Remove.
10496
227031b2
TT
104972020-03-12 Tom Tromey <tom@tromey.com>
10498
10499 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10500 CORE_ADDR.
10501 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10502
53807e9f
TT
105032020-03-12 Tom Tromey <tom@tromey.com>
10504
10505 * remote.c (remote_target::download_tracepoint)
10506 (remote_target::enable_tracepoint)
10507 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10508 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10509 sprintf_vma.
10510
64f25102
TT
105112020-03-12 Tom Tromey <tom@tromey.com>
10512
10513 * symfile-mem.c: Update CORE_ADDR size assert.
10514
272cd5a3
SM
105152020-03-12 Simon Marchi <simon.marchi@efficios.com>
10516
10517 * selftest.m4: Move to gdbsupport/.
10518 * acinclude.m4: Update path to selftest.m4.
10519
74cd3f9d
SM
105202020-03-12 Simon Marchi <simon.marchi@efficios.com>
10521
10522 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10523 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10524 gdbarch-selfselftests.c and selftest-arch.c.
10525 (SUBDIR_UNITTESTS_OBS): Rename to...
10526 (SELFTESTS_OBS): ... this.
10527 (COMMON_SFILES): Remove disasm-selftests.c and
10528 gdbarch-selftests.c.
10529 * configure.ac: Don't add selftest-arch.{c,o} to
10530 CONFIG_{SRCS,OBS}.
10531 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10532 preprocessor conditions.
10533
db6878ac
SM
105342020-03-12 Simon Marchi <simon.marchi@efficios.com>
10535
10536 * configure.ac: Don't source bfd/development.sh.
10537 * selftest.m4: Modify comment.
10538 * configure: Re-generate.
10539
4d696a5c
SM
105402020-03-12 Simon Marchi <simon.marchi@efficios.com>
10541
10542 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10543 not "true" or "false".
10544 * configure: Re-generate.
10545
8dd8e1c7
CB
105462020-03-12 Christian Biesinger <cbiesinger@google.com>
10547
10548 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10549 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10550 renamed to arm_nbsd_supply_gregset.
10551 (fetch_register): Update to call arm_nbsd_supply_gregset.
10552 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10553 (arm_netbsd_nat_target::fetch_registers): Update.
10554 (fetch_elfcore_registers): Removed.
10555 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10556 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10557 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10558 not require NetBSD system headers.
10559 (arm_nbsd_regset): New struct.
10560 (arm_nbsd_iterate_over_regset_sections): New function.
10561 (arm_netbsd_init_abi_common): Updated to call
10562 set_gdbarch_iterate_over_regset_sections.
10563 * arm-nbsd-tdep.h: New file.
10564
dd69bf7a
KB
105652020-03-11 Kevin Buettner <kevinb@redhat.com>
10566
10567 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10568 recursion.
10569
a0761e34
SM
105702020-03-11 Simon Marchi <simon.marchi@efficios.com>
10571
10572 * configure: Re-generate.
10573
e7a82140
TT
105742020-03-11 Tom Tromey <tromey@adacore.com>
10575
10576 * ada-typeprint.c (print_choices): Fix comment.
10577
dcc050c8
AB
105782020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10579
10580 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10581 previous item in the list, when the list has no items.
10582
1c33af77
TV
105832020-03-11 Tom de Vries <tdevries@suse.de>
10584
10585 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10586 PROP_LOCLIST handling code.
10587
8c95582d
AB
105882020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10589
10590 * buildsym-legacy.c (record_line): Pass extra parameter to
10591 record_line.
10592 * buildsym.c (buildsym_compunit::record_line): Take an extra
10593 parameter, reduce duplication in the line table, and record the
10594 is_stmt flag in the line table.
10595 * buildsym.h (buildsym_compunit::record_line): Add extra
10596 parameter.
10597 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10598 non-statement lines.
10599 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10600 this to the symtab builder.
10601 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10602 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10603 through to dwarf_record_line_1.
10604 * infrun.c (process_event_stop_test): When stepping, don't stop at
10605 a non-statement instruction, and only refresh the step info when
10606 we land in the middle of a line's range. Also add an extra
10607 comment.
10608 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10609 field.
10610 * record-btrace.c (btrace_find_line_range): Only record lines
10611 marked as is-statement.
10612 * stack.c (frame_show_address): Show the frame address if we are
10613 in a non-statement sal.
10614 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10615 (maintenance_print_one_line_table): Print a header for the is_stmt
10616 column, and include is_stmt information in the output.
10617 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10618 preference to non-statements.
10619 (find_pcs_for_symtab_line): Prefer is-statement entries.
10620 (find_line_common): Likewise.
10621 * symtab.h (struct linetable_entry): Add is_stmt field.
10622 (struct symtab_and_line): Likewise.
10623 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10624 arranging the line table.
10625
e4003a34
TV
106262020-03-07 Tom de Vries <tdevries@suse.de>
10627
10628 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10629 DIE.
10630
e8932576
TT
106312020-03-07 Tom Tromey <tom@tromey.com>
10632
10633 * valops.c (value_literal_complex): Remove obsolete comment.
10634 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10635 comment.
10636
29734269
SM
106372020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10638
10639 * infrun.h: Forward-declare thread_info.
10640 (set_step_info): Add thread_info parameter, add doc.
10641 * infrun.c (set_step_info): Add thread_info parameter, move doc
10642 to header.
10643 * infrun.c (process_event_stop_test): Pass thread to
10644 set_step_info call.
10645 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10646 set_step_info.
10647 (prepare_one_step): Add thread_info parameter, pass it to
10648 set_step_frame and prepare_one_step (recursive) call.
10649 (step_1): Pass thread to prepare_one_step call.
10650 (step_command_fsm::should_stop): Pass thread to
10651 prepare_one_step.
10652 (until_next_fsm): Pass thread to set_step_frame call.
10653 (finish_command): Pass thread to set_step_info call.
10654
b7d64b29
HD
106552020-03-06 Hannes Domani <ssbssa@yahoo.de>
10656
10657 * windows-tdep.c (windows_solib_create_inferior_hook):
10658 Check if inferior is running.
10659
09f2921c
TV
106602020-03-06 Tom de Vries <tdevries@suse.de>
10661
10662 * NEWS: Fix "the the".
10663 * ctfread.c: Same.
10664
fd760e79
TV
106652020-03-06 Tom de Vries <tdevries@suse.de>
10666
10667 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10668
20ea4a60
AB
106692020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10670
10671 * .dir-locals.el: Add a comment referencing the other copies of
10672 this file.
10673
0afbabf0
JB
106742020-03-05 John Baldwin <jhb@FreeBSD.org>
10675
10676 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10677 psargs.
10678
842806cb
TBA
106792020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10680
10681 * .gitattributes: New file.
10682
be1e3d3e
TT
106832020-03-04 Tom Tromey <tom@tromey.com>
10684
10685 * symmisc.c (print_symbol_bcache_statistics)
10686 (print_objfile_statistics): Update.
10687 * symfile.c (allocate_symtab): Use intern.
10688 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10689 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10690 macro_cache>: Remove.
10691 <string_cache>: New member.
10692 (struct objfile) <intern>: New methods.
10693 * elfread.c (elf_symtab_read): Use intern.
10694 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10695 (dwarf2_compute_name, dwarf2_physname)
10696 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10697 names.
10698 (guess_partial_die_structure_name): Update.
10699 (partial_die_info::fixup): Intern name.
10700 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10701 name.
10702 (dwarf2_name): Intern name. Update.
10703 * buildsym.c (buildsym_compunit::get_macro_table): Use
10704 string_cache.
10705
4e7625fd
TT
107062020-03-04 Tom Tromey <tom@tromey.com>
10707
10708 * jit.c (bfd_open_from_target_memory): Make "target" const.
10709 * corefile.c (gnutarget): Now const.
10710 * gdbcore.h (gnutarget): Now const.
10711
46f9f931
HD
107122020-03-04 Hannes Domani <ssbssa@yahoo.de>
10713
10714 * NEWS: Mention support for WOW64 processes.
10715 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10716 (amd64_windows_segment_register_p): Remove static.
10717 (_initialize_amd64_windows_nat): Update.
10718 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10719 * i386-windows-nat.c (context_offset): Update.
10720 (i386_mappings): Rename and remove static.
10721 (i386_windows_segment_register_p): Remove static.
10722 (_initialize_i386_windows_nat): Update.
10723 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10724 (STATUS_WX86_SINGLE_STEP): New macro.
10725 (EnumProcessModulesEx): New macro.
10726 (Wow64SuspendThread): New macro.
10727 (Wow64GetThreadContext): New macro.
10728 (Wow64SetThreadContext): New macro.
10729 (Wow64GetThreadSelectorEntry): New macro.
10730 (windows_set_context_register_offsets): Add static.
10731 (windows_set_segment_register_p): Likewise.
10732 (windows_add_thread): Adapt for WOW64 processes.
10733 (windows_fetch_one_register): Likewise.
10734 (windows_nat_target::fetch_registers): Likewise.
10735 (windows_store_one_register): Likewise.
10736 (display_selector): Likewise.
10737 (display_selectors): Likewise.
10738 (handle_exception): Likewise.
10739 (windows_continue): Likewise.
10740 (windows_nat_target::resume): Likewise.
10741 (windows_add_all_dlls): Likewise.
10742 (do_initial_windows_stuff): Likewise.
10743 (windows_nat_target::attach): Likewise.
10744 (windows_get_exec_module_filename): Likewise.
10745 (windows_nat_target::create_inferior): Likewise.
10746 (windows_xfer_siginfo): Likewise.
10747 (_initialize_loadable): Initialize Wow64SuspendThread,
10748 Wow64GetThreadContext, Wow64SetThreadContext,
10749 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10750 * windows-nat.h (windows_set_context_register_offsets):
10751 Remove declaration.
10752 (windows_set_segment_register_p): Likewise.
10753 (i386_windows_segment_register_p): Add declaration.
10754 (amd64_windows_segment_register_p): Likewise.
10755
440cf44e
LM
107562020-03-04 Luis Machado <luis.machado@linaro.org>
10757
10758 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10759 in "info registers" for AArch64/ARM.
10760
10761 The change caused "info registers" to not print GPR's.
10762
10763 gdb/ChangeLog:
10764
10765 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10766
10767 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10768 when reg->group is empty and reggroup is not.
10769
1009d92f
TT
107702020-03-03 Tom Tromey <tromey@adacore.com>
10771
10772 * dwarf2/frame.c (struct dwarf2_frame_cache)
10773 <checked_tailcall_bottom, entry_cfa_sp_offset,
10774 entry_cfa_sp_offset_p>: Remove members.
10775 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10776 (dwarf2_frame_prev_register): Don't call
10777 dwarf2_tailcall_sniffer_first.
10778 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10779 * frame-unwind.c (add_unwinder): New fuction.
10780 (frame_unwind_init): Use it. Add tailcall unwinder.
10781
5e5d66b6
AB
107822020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10783 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10784
10785 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10786 value should be printed as true.
10787
584cf46d
HD
107882020-03-03 Hannes Domani <ssbssa@yahoo.de>
10789
10790 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10791 (windows_init_abi): Set and use windows_so_ops.
10792
7b973adc
SDJ
107932020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10794
10795 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10796 when verifying if dealing with a convenience variable.
10797
bb7b70ab
LM
107982020-03-03 Luis Machado <luis.machado@linaro.org>
10799
10800 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10801
9822cb57
SM
108022020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10803
10804 * infrun.c (gdbarch_supports_displaced_stepping): New.
10805 (use_displaced_stepping): Break up conditions in smaller pieces.
10806 Use gdbarch_supports_displaced_stepping.
10807 (displaced_step_prepare_throw): Use
10808 gdbarch_supports_displaced_stepping.
10809
63e163f2
AB
108102020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10811
10812 * NEWS: Mention new behaviour of the history filename.
10813 * top.c (write_history_p): Add comment.
10814 (show_write_history_p): Add header comment, give a different
10815 message when history writing is on, but the history filename is
10816 empty.
10817 (history_filename): Add comment.
10818 (history_filename_empty): New function.
10819 (show_history_filename): Add header comment, give a different
10820 message when the filename is empty.
10821 (init_history): Compare history_filename against nullptr, and only
10822 read history if the filename is not empty.
10823 (set_history_filename): Add header comment, and only make
10824 non-empty filenames absolute.
10825 (init_main): Make the filename argument to 'set history filename'
10826 optional.
10827
81b86b97
CB
108282020-03-02 Christian Biesinger <cbiesinger@google.com>
10829
10830 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10831 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10832 (fetch_fp_register): Update.
10833 (fetch_fp_regs): Update.
10834 (store_fp_register): Update.
10835 (store_fp_regs): Update.
10836 (arm_netbsd_nat_target::read_description): New function.
10837 (fetch_elfcore_registers): Update.
10838
24ed6739
AB
108392020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10840
10841 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10842 general_thread if the stop reply is missing a thread-id.
10843 (remote_target::process_stop_reply): Use the first non-exited
10844 thread if the target didn't pass a thread-id.
10845 * infrun.c (do_target_wait): Move call to
10846 switch_to_inferior_no_thread to ....
10847 (do_target_wait_1): ... here.
10848
a84bb2a0
JT
108492020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10850
10851 * debuginfod-support.c: Include defs.h first.
10852
658dadf0
TV
108532020-02-28 Tom de Vries <tdevries@suse.de>
10854
10855 * symfile.c (set_initial_language): Use default language for lookup.
10856
4ebe4877
SM
108572020-02-28 Simon Marchi <simon.marchi@efficios.com>
10858
10859 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10860 reader variable, pass `this` to read_cutu_die_from_dwo.
10861
e5da1139
AM
108622020-02-27 Aaron Merey <amerey@redhat.com>
10863
10864 * source.c (open_source_file): Check for nullptr when computing
10865 srcpath.
10866
317f7127
TT
108672020-02-27 Tom Tromey <tromey@adacore.com>
10868
10869 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10870 member.
10871 (dwarf2_add_field): Don't update nfields.
10872 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10873
3104d9ee
AB
108742020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10875
10876 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10877 abs.
10878
b83470bf
TT
108792020-02-26 Tom Tromey <tom@tromey.com>
10880
10881 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10882 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10883 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10884 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10885 per_cu_data.
10886
edfe0a0c
TT
108872020-02-26 Tom Tromey <tom@tromey.com>
10888
10889 * dwarf2/index-write.c (psym_index_map): Change type.
10890 (add_address_entry_worker, write_one_signatured_type)
10891 (recursively_count_psymbols, recursively_write_psymbols)
10892 (class debug_names, psyms_seen_size, write_gdbindex)
10893 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10894
0d79cdc4
AM
108952020-02-26 Aaron Merey <amerey@redhat.com>
10896
10897 * Makefile.in: Handle optional debuginfod support.
10898 * NEWS: Update.
10899 * README: Add --with-debuginfod summary.
10900 * config.in: Regenerate.
10901 * configure: Regenerate.
10902 * configure.ac: Handle optional debuginfod support.
10903 * debuginfod-support.c: debuginfod helper functions.
10904 * debuginfod-support.h: Ditto.
10905 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10906 summary.
10907 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10908 when a dwz file cannot be found.
10909 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10910 debuginfo file cannot be found.
10911 * source.c (open_source_file): Query debuginfod servers when a
10912 source file cannot be found.
10913 * top.c (print_gdb_configuration): Include
10914 --{with,without}-debuginfod in the output.
10915
b65ce565
JG
109162020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10917
10918 * thread.c (thr_try_catch_cmd): Print thread name.
10919
d4c9a4f8
SM
109202020-02-26 Simon Marchi <simon.marchi@efficios.com>
10921
10922 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10923 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10924 dwarf2_fetch_die_type_sect_off): Move to...
10925 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10926 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10927 dwarf2_fetch_die_type_sect_off): ... here.
10928 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10929 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10930 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10931
0dce4280
TV
109322020-02-26 Tom de Vries <tdevries@suse.de>
10933
10934 PR gdb/25603
10935 * symfile.c (set_initial_language): Exit-early if
10936 language_mode == language_mode_manual.
10937
450a1bfc
SM
109382020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10939
10940 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10941 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10942 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10943
9e80cfa1
AB
109442020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10945
10946 * gdbtypes.c (create_array_type_with_stride): Handle negative
10947 array strides.
10948 * valarith.c (value_subscripted_rvalue): Likewise.
10949
09624f1f
LM
109502020-02-25 Luis Machado <luis.machado@linaro.org>
10951
10952 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10953
8cb5117c
SM
109542020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10955
10956 * loc.h (dwarf2_get_die_type): Move to...
10957 * read.h (dwarf2_get_die_type): ... here.
10958 * read.c (dwarf2_get_die_type): Move doc to header.
10959
c325c44e
JB
109602020-02-25 Joel Brobecker <brobecker@adacore.com>
10961
10962 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10963 'gnulib/Makefile.in' to the list.
10964
4ac93832
TT
109652020-02-24 Tom Tromey <tom@tromey.com>
10966
10967 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10968 Remove.
10969 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10970 XOBNEWVEC.
10971
197400e8
TT
109722020-02-24 Tom Tromey <tom@tromey.com>
10973
10974 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10975 New method.
10976 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10977 (dw2_do_instantiate_symtab, dw2_get_file_names)
10978 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10979
76935768
TT
109802020-02-24 Tom Tromey <tom@tromey.com>
10981
10982 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10983 make_scoped_restore.
10984 (dwarf2_psymtab::read_symtab): Don't clear
10985 reading_partial_symbols.
10986
a88ef40d
TV
109872020-02-24 Tom de Vries <tdevries@suse.de>
10988
10989 PR gdb/25592
10990 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10991
c9af6521
TV
109922020-02-24 Tom de Vries <tdevries@suse.de>
10993
10994 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10995 commands layout next/prev/regs.
10996
5707a07a
TT
109972020-02-22 Tom Tromey <tom@tromey.com>
10998
10999 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11000 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11001
3b0fb49e
TT
110022020-02-22 Tom Tromey <tom@tromey.com>
11003
11004 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11005
283be8bf
TT
110062020-02-22 Tom Tromey <tom@tromey.com>
11007
11008 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11009 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11010 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11011 * tui/tui.c (_initialize_tui): Add usage text.
11012
ca793b96
TT
110132020-02-22 Tom Tromey <tom@tromey.com>
11014
11015 * tui/tui-win.c (tui_set_focus_command)
11016 (tui_set_win_height_command): Use error_no_arg.
11017 (_initialize_tui_win): Update help text.
11018 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11019
432b5c40
TT
110202020-02-22 Tom Tromey <tom@tromey.com>
11021
11022 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11023 * tui/tui-disasm.h (struct tui_disasm_window)
11024 <display_start_addr>: Declare.
11025 * tui/tui-source.h (struct tui_source_window)
11026 <display_start_addr>: Declare.
11027 * tui/tui-winsource.h (struct tui_source_window_base)
11028 <show_source_line, display_start_addr>: New methods.
11029 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11030 Rename and move to protected section.
11031 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11032 (tui_source_window_base::do_erase_source_content): Update.
11033 (tui_source_window_base::show_source_line): Now a method.
11034 (tui_source_window_base::show_source_content)
11035 (tui_source_window_base::tui_source_window_base)
11036 (tui_source_window_base::rerender)
11037 (tui_source_window_base::refill)
11038 (tui_source_window_base::do_scroll_horizontal)
11039 (tui_source_window_base::set_is_exec_point_at)
11040 (tui_source_window_base::update_breakpoint_info)
11041 (tui_source_window_base::update_exec_info): Update.
11042 * tui/tui-source.c (tui_source_window::set_contents)
11043 (tui_source_window::showing_source_p)
11044 (tui_source_window::do_scroll_vertical)
11045 (tui_source_window::location_matches_p)
11046 (tui_source_window::line_is_displayed): Update.
11047 (tui_source_window::display_start_addr): New method.
11048 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11049 (tui_disasm_window::do_scroll_vertical)
11050 (tui_disasm_window::location_matches_p): Update.
11051 (tui_disasm_window::display_start_addr): New method.
11052
01b1af32
TT
110532020-02-22 Tom Tromey <tom@tromey.com>
11054
11055 * NEWS: Add entry for gdb.register_window_type.
11056 * tui/tui-layout.h (window_factory): New typedef.
11057 (tui_register_window): Declare.
11058 * tui/tui-layout.c (saved_tui_windows): New global.
11059 (tui_apply_current_layout): Use it.
11060 (tui_register_window): New function.
11061 * python/python.c (do_start_initialization): Call
11062 gdbpy_initialize_tui.
11063 (python_GdbMethods): Add "register_window_type" function.
11064 * python/python-internal.h (gdbpy_register_tui_window)
11065 (gdbpy_initialize_tui): Declare.
11066 * python/py-tui.c: New file.
11067 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11068
fc96d20b
TT
110692020-02-22 Tom Tromey <tom@tromey.com>
11070
11071 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11072
935c78c0
TT
110732020-02-22 Tom Tromey <tom@tromey.com>
11074
11075 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11076 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11077 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11078 (tui_set_win_focus_to): Move from tui-win.c.
11079
0240c8f1
TT
110802020-02-22 Tom Tromey <tom@tromey.com>
11081
11082 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11083 functions.
11084 (known_window_types): New global.
11085 (tui_get_window_by_name): Reimplement.
11086 (initialize_known_windows): New function.
11087 (validate_window_name): Rewrite.
11088 (_initialize_tui_layout): Call initialize_known_windows.
11089
fdb01f0c
TT
110902020-02-22 Tom Tromey <tom@tromey.com>
11091
11092 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11093 Remove constants.
11094 * tui/tui-winsource.h (struct tui_source_window_base)
11095 <tui_source_window_base>: Remove parameter.
11096 * tui/tui-winsource.c
11097 (tui_source_window_base::tui_source_window_base): Remove
11098 parameter.
11099 (tui_source_window_base::refill): Update.
11100 * tui/tui-stack.h (struct tui_locator_window)
11101 <tui_locator_window>: Update.
11102 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11103 Default the constructor.
11104 * tui/tui-regs.h (struct tui_data_item_window)
11105 <tui_data_item_window>: Default the constructor.
11106 (struct tui_data_window) <tui_data_window>: Likewise.
11107 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11108 Default the constructor.
11109 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11110 Default the constructor.
11111 <type>: Remove.
11112 (struct tui_win_info) <tui_win_info>: Default the constructor.
11113 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11114 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11115 Default the constructor.
11116
865a5aec
TT
111172020-02-22 Tom Tromey <tom@tromey.com>
11118
11119 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11120 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11121 * tui/tui-win.c (tui_resize_all): Don't call
11122 tui_delete_invisible_windows.
11123 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11124 done.
11125 (tui_set_layout): Update.
11126 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11127 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11128 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11129
e098d18c
TT
111302020-02-22 Tom Tromey <tom@tromey.com>
11131
11132 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11133 correctly.
11134
eb9c8874
TT
111352020-02-22 Tom Tromey <tom@tromey.com>
11136
11137 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11138
7eed1a8e
TT
111392020-02-22 Tom Tromey <tom@tromey.com>
11140
11141 * tui/tui-winsource.h (struct tui_source_window_iterator)
11142 <inner_iterator>: New etytypedef.
11143 <tui_source_window_iterator>: Take "end" parameter.
11144 <tui_source_window_iterator>: Take iterator.
11145 <operator*, advance>: Update.
11146 <m_iter>: Change type.
11147 <m_end>: New field.
11148 (struct tui_source_windows) <begin, end>: Update.
11149 * tui/tui-layout.c (tui_windows): New global.
11150 (tui_apply_current_layout): Clear tui_windows.
11151 (tui_layout_window::apply): Update tui_windows.
11152 * tui/tui-data.h (tui_windows): Declare.
11153 (all_tui_windows): Now inline function.
11154 (class tui_window_iterator, struct all_tui_windows): Remove.
11155
7c043ba6
TT
111562020-02-22 Tom Tromey <tom@tromey.com>
11157
11158 PR tui/17850:
11159 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11160 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11161 "height" argument.
11162 (class tui_layout_window) <get_sizes>: Likewise.
11163 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11164 argument.
11165 <get_sizes>: Add "height" argument.
11166 <m_vertical>: New field.
11167 * tui/tui-layout.c (tui_layout_split::clone): Update.
11168 (tui_layout_split::get_sizes): Add "height" argument.
11169 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11170 (tui_new_layout_command): Parse "-horizontal".
11171 (_initialize_tui_layout): Update help string.
11172 (tui_layout_split::specification): Add "-horizontal" when needed.
11173 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11174 argument.
11175 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11176 New methods.
11177
6bc56648
TT
111782020-02-22 Tom Tromey <tom@tromey.com>
11179
11180 * tui/tui-layout.h (enum tui_adjust_result): New.
11181 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11182 (class tui_layout_window) <adjust_size>: Return
11183 tui_adjust_result. Rewrite.
11184 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11185 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11186
c22fef7e
TT
111872020-02-22 Tom Tromey <tom@tromey.com>
11188
11189 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11190 parameter and return types.
11191 (class tui_layout_base) <specification>: Add "depth".
11192 (class tui_layout_window) <specification>: Add "depth".
11193 (class tui_layout_split) <specification>: Add "depth".
11194 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11195 and return types.
11196 (tui_new_layout_command): Parse sub-layouts.
11197 (_initialize_tui_layout): Update help string.
11198 (tui_layout_window::specification): Add "depth".
11199 (add_layout_command): Update.
11200
ee325b61
TT
112012020-02-22 Tom Tromey <tom@tromey.com>
11202
11203 * NEWS: Add "tui new-layout" item.
11204 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11205 Add new-layout command to help text.
11206 (validate_window_name): New function.
11207 (tui_new_layout_command): New function.
11208 (_initialize_tui_layout): Register "new-layout".
11209 (tui_layout_window::specification): New method.
11210 (tui_layout_window::specification): New method.
11211 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11212 method.
11213 (class tui_layout_window) <specification>: New method.
11214 (class tui_layout_split) <specification>: New method.
11215
416eb92d
TT
112162020-02-22 Tom Tromey <tom@tromey.com>
11217
11218 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11219 * tui/tui-win.c (window_name_completer): Update comment.
11220 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11221 Declare method.
11222 (class tui_layout_window) <replace_window>: Likewise.
11223 (class tui_layout_split) <replace_window>: Likewise.
11224 (tui_set_layout): Don't declare.
11225 (tui_set_initial_layout): Declare function.
11226 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11227 (asm_regs_layout): New globals.
11228 (tui_current_layout, show_layout): Remove.
11229 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11230 (find_layout, tui_apply_layout): New function.
11231 (layout_completer): Remove.
11232 (tui_next_layout): Reimplement.
11233 (tui_next_layout_command): New function.
11234 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11235 (tui_regs_layout): Reimplement.
11236 (tui_regs_layout_command): New function.
11237 (extract_display_start_addr): Rewrite.
11238 (next_layout, prev_layout): Remove.
11239 (tui_layout_window::replace_window): New method.
11240 (tui_layout_split::replace_window): New method.
11241 (destroy_layout): New function.
11242 (layout_list): New global.
11243 (add_layout_command): New function.
11244 (initialize_layouts): Update.
11245 (tui_layout_command): New function.
11246 (_initialize_tui_layout): Install "layout" commands.
11247 * tui/tui-data.h (enum tui_layout_type): Remove.
11248 (tui_current_layout): Don't declare.
11249
0dbc2fc7
TT
112502020-02-22 Tom Tromey <tom@tromey.com>
11251
11252 * tui/tui-regs.c (tui_reg_layout): Remove.
11253 (tui_reg_command): Use tui_regs_layout.
11254 * tui/tui-layout.h (tui_reg_command): Declare.
11255 * tui/tui-layout.c (tui_reg_command): New function.
11256
5afe342e
TT
112572020-02-22 Tom Tromey <tom@tromey.com>
11258
11259 * tui/tui.c (tui_rl_delete_other_windows): Call
11260 tui_remove_some_windows.
11261 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11262 Declare method.
11263 (class tui_layout_window) <remove_windows>: New method.
11264 (class tui_layout_split) <remove_windows>: Declare.
11265 (tui_remove_some_windows): Declare.
11266 * tui/tui-layout.c (tui_remove_some_windows): New function.
11267 (tui_layout_split::remove_windows): New method.
11268
427326a8
TT
112692020-02-22 Tom Tromey <tom@tromey.com>
11270
11271 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11272 * tui/tui-layout.h (tui_next_layout): Declare.
11273 * tui/tui-layout.c (tui_next_layout): New function.
11274
3fe12b6d
TT
112752020-02-22 Tom Tromey <tom@tromey.com>
11276
11277 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11278 correct coordinates.
11279
59b8b5d2
TT
112802020-02-22 Tom Tromey <tom@tromey.com>
11281
11282 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11283 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11284 DATA_WIN case.
11285
2a3d458b
TT
112862020-02-22 Tom Tromey <tom@tromey.com>
11287
11288 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11289 TUI_DISASM_WIN, not tui_win_list.
11290
3f0cbb04
TT
112912020-02-22 Tom Tromey <tom@tromey.com>
11292
11293 * valprint.c (generic_val_print_enum_1)
11294 (val_print_type_code_flags): Style member names.
11295 * rust-lang.c (val_print_struct, rust_print_enum)
11296 (rust_print_struct_def, rust_internal_print_type): Style member
11297 names.
11298 * p-valprint.c (pascal_object_print_value_fields): Style member
11299 names. Only call fprintf_symbol_filtered for static members.
11300 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11301 * f-valprint.c (f_val_print): Style member names.
11302 * f-typeprint.c (f_type_print_base): Style member names.
11303 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11304 call fprintf_symbol_filtered for static members.
11305 (cp_print_class_member): Style member names.
11306 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11307 member names.
11308 * ada-valprint.c (ada_print_scalar): Style enum names.
11309 (ada_val_print_enum): Likewise.
11310 * ada-typeprint.c (print_enum_type): Style enum names.
11311
d4d947ae
TT
113122020-02-21 Tom Tromey <tom@tromey.com>
11313
11314 * psympriv.h (struct partial_symtab): Update comment.
11315
e94e944b
TT
113162020-02-21 Tom Tromey <tromey@adacore.com>
11317
11318 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11319 type is CORE_ADDR.
11320
1eb73179
TV
113212020-02-21 Tom de Vries <tdevries@suse.de>
11322
11323 PR gdb/25534
11324 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11325 if dependencies[i]->user != NULL.
11326
4f180d53
AT
113272020-02-21 Ali Tamur <tamur@google.com>
11328
11329 * dwarf2/read.c (dwarf2_name): Add null check.
11330
22b6cd70
TT
113312020-02-20 Tom Tromey <tom@tromey.com>
11332
11333 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11334 ">=", in binary search.
11335 (dwarf2_find_containing_comp_unit): New overload.
11336 (run_test): New self-test.
11337 (_initialize_dwarf2_read): Register new test.
11338
bd0cf5a6
NC
113392020-02-20 Nelson Chu <nelson.chu@sifive.com>
11340
11341 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11342 * riscv-tdep.h: Likewise.
11343 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11344 rv32-only CSR.
11345 * features/riscv/64bit-csr.xml: Regenerated.
11346
3f702acd
SDJ
113472020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11348 Tom Tromey <tom@tromey.com>
11349
11350 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11351 of 'fputc_unfiltered'.
11352 (putchar_unfiltered): Call 'fputc_unfiltered'.
11353 (fputc_unfiltered): Call 'fputs_unfiltered'.
11354
d13c7322
AB
113552020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11356
11357 * config.in: Regenerate.
11358 * configure: Regenerate.
11359 * configure.ac: Add --with-python-libdir option.
11360 * main.c: Use WITH_PYTHON_LIBDIR.
11361
869d8950
TT
113622020-02-19 Tom Tromey <tom@tromey.com>
11363
11364 * symtab.c (general_symbol_info::compute_and_set_names): Use
11365 obstack_strndup. Simplify call to symbol_set_demangled_name.
11366
298e9637
SM
113672020-02-19 Simon Marchi <simon.marchi@efficios.com>
11368
11369 * dwarf2/read.c (allocate_signatured_type_table,
11370 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11371 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11372 Remove objfile parameter, update all callers.
11373
08410482
DE
113742020-02-19 Doug Evans <dje@google.com>
11375
11376 PR rust/25535
11377 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11378 rust_enum_variant calculation.
11379
dfdeeca1
TT
113802020-02-19 Tom Tromey <tromey@adacore.com>
11381
11382 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11383
2ef5453b
TT
113842020-02-19 Tom Tromey <tromey@adacore.com>
11385
11386 * ada-lang.c (cache_symbol): Use obstack_strdup.
11387
9f1528a1
AB
113882020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11389
11390 * configure: Regenerate.
11391
d3c22fa8
TT
113922020-02-19 Tom Tromey <tromey@adacore.com>
11393
11394 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11395 NULL check.
11396
bf84f706
MR
113972020-02-19 Maciej W. Rozycki <macro@wdc.com>
11398
11399 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11400
d1c9b20f
AB
114012020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11402
11403 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11404 if GDBSERVER is not defined.
11405 (riscv_tdesc_cache): Likewise, also store const target_desc.
11406 (STATIC_IN_GDB): Define.
11407 (riscv_create_target_description): Update declaration with
11408 STATIC_IN_GDB.
11409 (riscv_lookup_target_description): New function, only define if
11410 GDBSERVER is not defined.
11411 * arch/riscv.h (riscv_create_target_description): Declare only
11412 when GDBSERVER is defined.
11413 (riscv_lookup_target_description): New declaration when GDBSERVER
11414 is not defined.
11415 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11416 (riscv_linux_read_features): ...this, and return
11417 riscv_gdbarch_features instead of target_desc.
11418 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11419 (riscv_linux_read_description): Rename to...
11420 (riscv_linux_read_features): ...this.
11421 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11422 Update to use riscv_gdbarch_features and
11423 riscv_lookup_target_description.
11424 * riscv-tdep.c (riscv_find_default_target_description): Use
11425 riscv_lookup_target_description instead of
11426 riscv_create_target_description.
11427
373d7ac0
SM
114282020-02-18 Simon Marchi <simon.marchi@efficios.com>
11429
11430 * valprint.c (generic_val_print_enum_1): When printing a flag
11431 enum with value 0 and there is no enumerator with value 0, print
11432 just "0" instead of "(unknown: 0x0)".
11433
b29a2df0
SM
114342020-02-18 Simon Marchi <simon.marchi@efficios.com>
11435
11436 * valprint.c (generic_val_print_enum_1): Print unknown part of
11437 flag enum in hex.
11438
6740f0cc
SM
114392020-02-18 Simon Marchi <simon.marchi@efficios.com>
11440
11441 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11442 flag enums to contain duplicate enumerators.
11443 * valprint.c (generic_val_print_enum_1): Update comment.
11444
edd45eb0
SM
114452020-02-18 Simon Marchi <simon.marchi@efficios.com>
11446
11447 * dwarf2/read.c: Include "count-one-bits.h".
11448 (update_enumeration_type_from_children): If an enumerator has
11449 multiple bits set, don't treat the enumeration as a "flag enum".
11450 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11451 of flag enums have 0 or 1 bit set.
11452
6d0cf446
BE
114532020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11454
11455 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11456 conversion.
11457 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11458 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11459 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11460 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11461 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11462
7001c1b7
SM
114632020-02-18 Simon Marchi <simon.marchi@efficios.com>
11464
11465 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11466
fdb61c6c
SM
114672020-02-14 Simon Marchi <simon.marchi@efficios.com>
11468
11469 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11470 displaced_step_closure_up.
11471 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11472 (struct displaced_step_closure_up):
11473 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11474 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11475 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11476 Likewise.
11477 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11478 * gdbarch.c, gdbarch.h: Re-generate.
11479 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11480 displaced_step_closure_up.
11481 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11482 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11483 * infrun.h (displaced_step_closure_up): New type alias.
11484 (struct displaced_step_inferior_state) <step_closure>: Change
11485 type to displaced_step_closure_up.
11486 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11487 displaced_step_closure_up.
11488 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11489
a4a38eb4
TT
114902020-02-14 Tom Tromey <tom@tromey.com>
11491
11492 * minidebug.c (gnu_debug_key): New global.
11493 (find_separate_debug_file_in_section): Use it.
11494
e8217e61
SM
114952020-02-14 Simon Marchi <simon.marchi@efficios.com>
11496
11497 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11498 std::unique_ptr.
11499 * gdbarch.c: Re-generate.
11500 * gdbarch.h: Re-generate.
11501 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11502 change.
11503 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11504 type to std::unique_ptr.
11505 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11506 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11507 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11508 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11509 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11510 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11511 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11512 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11513 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11514
d8d83535
SM
115152020-02-14 Simon Marchi <simon.marchi@efficios.com>
11516
11517 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11518 std::unique_ptr.
11519 (displaced_step_clear): Rename to...
11520 (displaced_step_reset): ... this. Just call displaced->reset ().
11521 (displaced_step_clear_cleanup): Rename to...
11522 (displaced_step_reset_cleanup): ... this.
11523 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11524 (displaced_step_fixup): Likewise.
11525 (resume_1): Likewise.
11526 (handle_inferior_event): Restore child's memory before calling
11527 displaced_step_fixup on the parent.
11528 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11529 to std::unique_ptr.
11530 <step_closure>: Change type to std::unique_ptr.
11531
5f661e03
SM
115322020-02-14 Simon Marchi <simon.marchi@efficios.com>
11533
11534 * arm-tdep.c: Include count-one-bits.h.
11535 (cleanup_block_store_pc): Use count_one_bits.
11536 (cleanup_block_load_pc): Use count_one_bits.
11537 (arm_copy_block_xfer): Use count_one_bits.
11538 (thumb2_copy_block_xfer): Use count_one_bits.
11539 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11540 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11541 (thumb_get_next_pcs_raw): Use count_one_bits.
11542 (arm_get_next_pcs_raw): Use count_one_bits_l.
11543 * arch/arm.c (bitcount): Remove.
11544 * arch/arm.h (bitcount): Remove.
11545
8084e579
TT
115462020-02-14 Tom Tromey <tromey@adacore.com>
11547
11548 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11549 Update.
11550 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11551 * dwarf2/loc.c (call_site_find_chain_1): Return
11552 unique_xmalloc_ptr.
11553 (call_site_find_chain): Likewise.
11554
258bf0ee
RB
115552020-02-14 Richard Biener <rguenther@suse.de>
11556
11557 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11558 on expression with division operators.
11559
f98a8458
AKS
115602020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11561
11562 * MAINTAINERS (Write After Approval): Adding myself.
11563
d1437c0e
TT
115642020-02-12 Tom Tromey <tom@tromey.com>
11565
11566 * event-loop.c (event_data, gdb_event, event_handler_func):
11567 Remove.
11568
3d4560f7
TT
115692020-02-12 Tom Tromey <tom@tromey.com>
11570
11571 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11572 (dwarf2_frame_objfile_data): Add comment.
11573 (find_comp_unit, set_comp_unit): New functions.
11574 (dwarf2_frame_find_fde): Use find_comp_unit.
11575 (dwarf2_build_frame_info): Use set_comp_unit.
11576
21982304
TT
115772020-02-12 Tom Tromey <tom@tromey.com>
11578
11579 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11580 (comp_unit): Don't initialize objfile.
11581 (execute_cfa_program): Add text_offset parameter.
11582 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11583 (dwarf2_frame_cache): Update.
11584 (dwarf2_build_frame_info): Don't set "objfile" member.
11585
4debb237
TT
115862020-02-12 Tom Tromey <tom@tromey.com>
11587
11588 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11589 (decode_frame_entry): Likewise.
11590 (dwarf2_build_frame_info): Update.
11591
0d404d44
TT
115922020-02-12 Tom Tromey <tom@tromey.com>
11593
11594 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11595 (decode_frame_entry_1): Use the comp_unit obstack.
11596
a7a3ae5c
TT
115972020-02-12 Tom Tromey <tom@tromey.com>
11598
11599 * dwarf2/frame.c (struct comp_unit): Add initializers and
11600 constructor.
11601 (dwarf2_frame_objfile_data): Store a comp_unit.
11602 (dwarf2_frame_find_fde): Update.
11603 (dwarf2_build_frame_info): Use "new".
11604
a9d65418
TT
116052020-02-12 Tom Tromey <tom@tromey.com>
11606
11607 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11608 (dwarf2_fde_table): Typedef for std::vector.
11609 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11610 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11611 (decode_frame_entry): Update.
11612 (dwarf2_build_frame_info): Use "new".
11613
7559c217
CB
116142020-02-12 Christian Biesinger <cbiesinger@google.com>
11615
11616 * arm-tdep.c (arm_gdbarch_init): Update.
11617 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11618 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11619 have_neon, is_m>: Change to bool.
11620
aeefc73c
CB
116212020-02-12 Christian Biesinger <cbiesinger@google.com>
11622
11623 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11624
d27b8e5f
TT
116252020-02-12 Tom Tromey <tom@tromey.com>
11626
11627 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11628
cd5900f3
HD
116292020-02-12 Hannes Domani <ssbssa@yahoo.de>
11630
11631 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11632 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11633
f056b22b
TT
116342020-02-11 Tom Tromey <tom@tromey.com>
11635
11636 * psymtab.h: Update comment.
11637
f92ff6b5
TT
116382020-02-11 Tom Tromey <tom@tromey.com>
11639
11640 * gdb_obstack.h (struct auto_obstack): Use
11641 DISABLE_COPY_AND_ASSIGN.
11642
3fd6912b
TT
116432020-02-11 Tom Tromey <tom@tromey.com>
11644
11645 * dwarf2/frame.h (struct objfile): Don't forward declare.
11646
69ed9b74
CB
116472020-02-11 Christian Biesinger <cbiesinger@google.com>
11648
11649 * cris-tdep.c (cris_supply_gregset): Change signature to match
11650 what struct regset expects.
11651 (cris_regset): New struct.
11652 (fetch_core_registers): Remove.
11653 (cris_iterate_over_regset_sections): New function.
11654 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11655 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11656
bda874f6
CB
116572020-02-11 Christian Biesinger <cbiesinger@google.com>
11658
11659 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11660 registers.
11661
754e1564
CB
116622020-02-11 Christian Biesinger <cbiesinger@google.com>
11663
11664 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11665
8ddd8e0e
SM
116662020-02-11 Simon Marchi <simon.marchi@efficios.com>
11667
11668 * configure: Re-generate.
11669
898e7f60
SM
116702020-02-11 Simon Marchi <simon.marchi@efficios.com>
11671
11672 * configure: Re-generate.
11673
58df732b
SM
116742020-02-11 Simon Marchi <simon.marchi@efficios.com>
11675
11676 * acinclude: Update warning.m4 path.
11677 * warning.m4: Move to gdbsupport.
11678
da5bd37e
TT
116792020-02-11 Tom Tromey <tromey@adacore.com>
11680
11681 * remote.c (remote_console_output): Update.
11682 * printcmd.c (printf_command): Update.
11683 * event-loop.c (gdb_wait_for_event): Update.
11684 * linux-nat.c (sigchld_handler): Update.
11685 * remote-sim.c (gdb_os_write_stdout): Update.
11686 (gdb_os_flush_stdout): Update.
11687 (gdb_os_flush_stderr): Update.
11688 (gdb_os_write_stderr): Update.
11689 * exceptions.c (print_exception): Update.
11690 * remote-fileio.c (remote_fileio_func_read): Update.
11691 (remote_fileio_func_write): Update.
11692 * tui/tui.c (tui_enable): Update.
11693 * tui/tui-interp.c (tui_interp::init): Update.
11694 * utils.c (init_page_info): Update.
11695 (putchar_unfiltered, fputc_unfiltered): Update.
11696 (gdb_flush): Update.
11697 (emit_style_escape): Update.
11698 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11699 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11700 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11701 (stderr_file::write): Update.
11702 (stderr_file::puts): Update.
11703 * ui-file.h (ui_file_isatty, ui_file_write)
11704 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11705 (ui_file_puts): Don't declare.
11706
85f0dd3c
TV
117072020-02-10 Tom de Vries <tdevries@suse.de>
11708
11709 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11710 sentinel to char *.
11711
2e927613
TV
117122020-02-09 Tom de Vries <tdevries@suse.de>
11713
11714 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11715 filename if it matches "<artificial>".
11716
6bafc845
HD
117172020-02-09 Hannes Domani <ssbssa@yahoo.de>
11718
11719 * windows-tdep.c (struct enum_value_name): New struct.
11720 (create_enum): New function.
11721 (windows_get_siginfo_type): Create and use enum types.
11722
7928d571
HD
117232020-02-09 Hannes Domani <ssbssa@yahoo.de>
11724
11725 * NEWS: Mention $_siginfo support for Windows.
11726 * windows-nat.c (handle_exception): Set siginfo_er.
11727 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11728 (windows_xfer_siginfo): New function.
11729 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11730 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11731 (init_windows_gdbarch_data): New function.
11732 (get_windows_gdbarch_data): New function.
11733 (windows_get_siginfo_type): New function.
11734 (windows_init_abi): Register windows_get_siginfo_type.
11735 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11736
6751ebae
TT
117372020-02-08 Tom Tromey <tom@tromey.com>
11738
11739 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11740 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11741 <keep>: Declare method.
11742 <m_keep>: Remove member.
11743 <~cutu_reader>: Remove.
11744 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11745 (cutu_reader::cutu_reader): Update.
11746 (cutu_reader::keep): Rename from ~cutu_reader.
11747 (process_psymtab_comp_unit, build_type_psymtabs_1)
11748 (process_skeletonless_type_unit, load_partial_comp_unit)
11749 (load_full_comp_unit, dwarf2_read_addr_index)
11750 (read_signatured_type): Update.
11751
135f5437
TT
117522020-02-08 Tom Tromey <tom@tromey.com>
11753
11754 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11755 "want_partial_unit" parameter.
11756 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11757 Inline check for DW_TAG_partial_unit.
11758 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11759
9f66ff1c
TT
117602020-02-08 Tom Tromey <tom@tromey.com>
11761
11762 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11763 read.c.
11764 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11765 read.c.
11766
c8a7a66f
TT
117672020-02-08 Tom Tromey <tom@tromey.com>
11768
11769 * dwarf2/read.c (read_address): Move to comp-unit.c.
11770 (dwarf2_rnglists_process, dwarf2_ranges_process)
11771 (read_attribute_value, dwarf_decode_lines_1)
11772 (var_decode_location, decode_locdesc): Update.
11773 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11774 read.c. Remove "cu" parameter.
11775 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11776 method.
11777
8266302d
TT
117782020-02-08 Tom Tromey <tom@tromey.com>
11779
11780 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11781 (read_indirect_line_string): Update.
11782 * dwarf2/comp-unit.c (read_offset): Remove.
11783 (read_comp_unit_head): Update.
11784 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11785 method.
11786 (read_offset): Don't declare.
11787
4057dfde
TT
117882020-02-08 Tom Tromey <tom@tromey.com>
11789
11790 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11791 * dwarf2/read.c (struct comp_unit_head): Move to
11792 dwarf2/comp-unit.h.
11793 (enum class rcuh_kind): Move to comp-unit.h.
11794 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11795 (read_comp_unit_head, error_check_comp_unit_head)
11796 (read_and_check_comp_unit_head): Move to comp-unit.c.
11797 (read_offset, dwarf_unit_type_name): Likewise.
11798 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11799 (cutu_reader::cutu_reader, read_call_site_scope)
11800 (find_partial_die, follow_die_offset): Update.
11801 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11802
24aa364d
TT
118032020-02-08 Tom Tromey <tom@tromey.com>
11804
11805 * dwarf2/read.c (read_offset_1): Move to leb.c.
11806 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11807 (dwarf_decode_macro_bytes): Update.
11808 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11809 * dwarf2/leb.h (read_offset): Declare.
11810
2c7d5afc
TT
118112020-02-08 Tom Tromey <tom@tromey.com>
11812
11813 * dwarf2/read.c (dwarf2_section_size): Remove.
11814 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11815 Update.
11816 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11817
4075cb26
TT
118182020-02-08 Tom Tromey <tom@tromey.com>
11819
11820 * dwarf2/read.c (read_initial_length): Move to leb.c.
11821 * dwarf2/leb.h (read_initial_length): Declare.
11822 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11823 handle_nonstd parameter.
11824 * dwarf2/frame.c (read_initial_length): Remove.
11825 (decode_frame_entry_1): Update.
11826
09ba997f
TT
118272020-02-08 Tom Tromey <tom@tromey.com>
11828
11829 * dwarf2/loc.c (dwarf2_find_location_expression)
11830 (dwarf_evaluate_loc_desc::get_tls_address)
11831 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11832 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11833 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11834 (dwarf2_compile_property_to_c)
11835 (dwarf2_loc_desc_get_symbol_read_needs)
11836 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11837 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11838 (loclist_describe_location, loclist_tracepoint_var_ref)
11839 (loclist_generate_c_location): Update.
11840 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11841 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11842 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11843 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11844 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11845 (dwarf2_per_cu_data::addr_size)
11846 (dwarf2_per_cu_data::ref_addr_size)
11847 (dwarf2_per_cu_data::text_offset)
11848 (dwarf2_per_cu_data::addr_type): Now methods.
11849 (per_cu_header_read_in): Make per_cu "const".
11850 (dwarf2_version): Remove.
11851 (dwarf2_per_cu_data::int_type): Now a method.
11852 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11853 (set_die_type, read_array_type, read_subrange_index_type)
11854 (read_tag_string_type, read_subrange_type): Update.
11855 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11856 offset_size, ref_addr_size, text_offset, addr_type, version,
11857 objfile, int_type, addr_sized_int_type>: Declare methods.
11858
96c738c0
TT
118592020-02-08 Tom Tromey <tom@tromey.com>
11860
11861 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11862 Move earlier.
11863
8fdd972c
TT
118642020-02-08 Tom Tromey <tom@tromey.com>
11865
11866 * dwarf2/read.h (dwarf_line_debug): Declare.
11867 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11868 * dwarf2/read.c: Move line_header code to new files.
11869 (dwarf_line_debug): No longer static.
11870 * dwarf2/line-header.c: New file.
11871 * dwarf2/line-header.h: New file.
11872
03075812
TT
118732020-02-08 Tom Tromey <tom@tromey.com>
11874
11875 * dwarf2/read.c (struct line_header) <file_full_name,
11876 file_file_name>: Return unique_xmalloc_ptr.
11877 (line_header::file_file_name): Update.
11878 (line_header::file_full_name): Update.
11879 (dw2_get_file_names_reader): Update.
11880 (macro_start_file): Update.
11881
bb822404
TT
118822020-02-08 Tom Tromey <tom@tromey.com>
11883
11884 * dwarf2/read.c (struct line_header) <file_full_name,
11885 file_file_name>: Declare methods.
11886 (dw2_get_file_names_reader): Update.
11887 (file_file_name): Now a method.
11888 (file_full_name): Likewise.
11889 (macro_start_file): Update.
11890
009b64fc
TT
118912020-02-08 Tom Tromey <tom@tromey.com>
11892
11893 * dwarf2/read.c (dwarf_always_disassemble)
11894 (show_dwarf_always_disassemble): Move to loc.c.
11895 (_initialize_dwarf2_read): Move "always-disassemble" registration
11896 to loc.c.
11897 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11898 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11899 static.
11900 (show_dwarf_always_disassemble): Move from read.c.
11901 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11902
5895093f
TT
119032020-02-08 Tom Tromey <tom@tromey.com>
11904
11905 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11906 (create_quick_file_names_table): Return htab_up.
11907 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11908 Update.
11909 * dwarf2/read.h (struct dwarf2_per_objfile)
11910 <quick_file_names_table>: Now htab_up.
11911
b3b32279
TT
119122020-02-08 Tom Tromey <tom@tromey.com>
11913
11914 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11915
1d33d811
TT
119162020-02-08 Tom Tromey <tom@tromey.com>
11917
11918 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11919 Rewrite.
11920 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11921 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11922 (abbrev_table::abbrev_table): No longer inline.
11923 (ABBREV_HASH_SIZE): Remove.
11924 (abbrev_table::m_abbrevs): Now an htab_up.
11925
86de1d91
TT
119262020-02-08 Tom Tromey <tom@tromey.com>
11927
11928 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11929 (cutu_reader): Update.
11930 (build_type_psymtabs_1): Update.
11931 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11932 (abbrev_table::alloc_abbrev): Update.
11933 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11934 (abbrev_table::read): New static method, renamed from
11935 abbrev_table_read_table.
11936 (abbrev_table::alloc_abbrev)
11937 (abbrev_table::add_abbrev): Now private.
11938 (abbrev_table::abbrev_table): Now private.
11939 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11940
0335378b
TT
119412020-02-08 Tom Tromey <tom@tromey.com>
11942
11943 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11944 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11945 htab_up.
11946
48b490f2
TT
119472020-02-08 Tom Tromey <tom@tromey.com>
11948
11949 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11950 htab_up.
11951 (lookup_dwo_unit_in_dwp): Update.
11952 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11953 on obstack.
11954
bc68fb19
TT
119552020-02-08 Tom Tromey <tom@tromey.com>
11956
11957 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11958 obstack.
11959
d15acc42
TT
119602020-02-08 Tom Tromey <tom@tromey.com>
11961
11962 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11963 line_header_hash.
11964 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11965 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11966 Change type to htab_up.
11967
eaa5fa8b
TT
119682020-02-08 Tom Tromey <tom@tromey.com>
11969
11970 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11971 htab_up. Don't allocate on obstack.
11972 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11973 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11974 Change type to htab_up.
11975
b0b6a987
TT
119762020-02-08 Tom Tromey <tom@tromey.com>
11977
11978 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11979 Change type to htab_up.
11980 * dwarf2/read.c (create_signatured_type_table_from_index)
11981 (create_signatured_type_table_from_debug_names)
11982 (create_all_type_units, add_type_unit)
11983 (lookup_dwo_signatured_type, lookup_signatured_type)
11984 (process_skeletonless_type_unit): Update.
11985 (create_debug_type_hash_table, create_debug_types_hash_table):
11986 Change type of types_htab.
11987 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11988 htab_up. Don't allocate on obstack.
11989 (create_cus_hash_table): Change type of cus_htab parameter.
11990 (struct dwo_file) <cus, tus>: Now htab_up.
11991 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11992 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11993 (queue_and_load_all_dwo_tus): Update.
11994 * dwarf2/index-write.c (write_gdbindex): Update.
11995 (write_debug_names): Update.
11996
39856def
TT
119972020-02-08 Tom Tromey <tom@tromey.com>
11998
11999 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12000 dwarf2/read.c. Remove "next" member. Add constructor ntad
12001 destructor.
12002 (struct dwarf2_per_objfile) <queue>: New member.
12003 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12004 dwarf2/read.h.
12005 (dwarf2_queue, dwarf2_queue_tail): Remove.
12006 (class dwarf2_queue_guard): Add parameter to constructor. Use
12007 DISABLE_COPY_AND_ASSIGN.
12008 <m_per_objfile>: New member.
12009 <~dwarf2_queue_guard>: Rewrite.
12010 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12011 Update.
12012 (~dwarf2_queue_item): New.
12013
3e225074
TT
120142020-02-08 Tom Tromey <tom@tromey.com>
12015
12016 * dwarf2/read.c (struct die_info) <has_children>: New member.
12017 (dw2_get_file_names_reader): Remove has_children.
12018 (dw2_get_file_names): Update.
12019 (read_cutu_die_from_dwo): Remove has_children.
12020 (cutu_reader::init_tu_and_read_dwo_dies)
12021 (cutu_reader::cutu_reader): Update.
12022 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12023 Remove has_children.
12024 (build_type_psymtabs_1, process_skeletonless_type_unit)
12025 (load_partial_comp_unit, load_full_comp_unit): Update.
12026 (create_dwo_cu_reader): Remove has_children.
12027 (create_cus_hash_table, read_die_and_children): Update.
12028 (read_full_die_1,read_full_die): Remove has_children.
12029 (read_signatured_type): Update.
12030 (class cutu_reader) <has_children>: Remove.
12031
82ca8957
TT
120322020-02-08 Tom Tromey <tom@tromey.com>
12033
12034 * dwarf2/expr.c: Rename from dwarf2expr.c.
12035 * dwarf2/expr.h: Rename from dwarf2expr.h.
12036 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12037 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12038 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12039 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12040 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12041 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12042 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12043 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12044 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12045 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12046 * dwarf2/loc.c: Rename from dwarf2loc.c.
12047 * dwarf2/loc.h: Rename from dwarf2loc.h.
12048 * dwarf2/read.c: Rename from dwarf2read.c.
12049 * dwarf2/read.h: Rename from dwarf2read.h.
12050 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12051 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12052 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12053 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12054 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12055 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12056 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12057 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12058 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12059 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12060 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12061 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12062 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12063 Update.
12064 * Makefile.in (COMMON_SFILES): Update.
12065 (HFILES_NO_SRCDIR): Update.
12066
9e35d499
TT
120672020-02-08 Tom Tromey <tom@tromey.com>
12068
12069 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12070 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12071
1eba2311
TT
120722020-02-08 Tom Tromey <tom@tromey.com>
12073
12074 * dwarf2read.h (struct die_info): Don't declare.
12075
e41c2da2
TT
120762020-02-08 Tom Tromey <tom@tromey.com>
12077
12078 * dwarf2read.h (die_info_ptr): Remove typedef.
12079
4fc6c0d5
TT
120802020-02-08 Tom Tromey <tom@tromey.com>
12081
12082 * dwarf2read.c (read_call_site_scope)
12083 (handle_data_member_location, dwarf2_add_member_fn)
12084 (mark_common_block_symbol_computed, read_common_block)
12085 (attr_to_dynamic_prop, partial_die_info::read)
12086 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12087 (dwarf2_symbol_mark_computed, set_die_type): Update.
12088 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12089 method.
12090 (attr_form_is_block): Don't declare.
12091 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12092
cd6c91b4
TT
120932020-02-08 Tom Tromey <tom@tromey.com>
12094
12095 * dwarf2read.c (dwarf2_find_base_address, )
12096 (read_call_site_scope, rust_containing_type)
12097 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12098 (handle_data_member_location, dwarf2_add_member_fn)
12099 (get_alignment, read_structure_type, process_structure_scope)
12100 (mark_common_block_symbol_computed, read_common_block)
12101 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12102 (partial_die_info::read, read_attribute_value, new_symbol)
12103 (lookup_die_type, dwarf2_get_ref_die_offset)
12104 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12105 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12106 (dwarf2_symbol_mark_computed): Update.
12107 * dwarf2/attribute.h (struct attribute) <value_as_address,
12108 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12109 methods.
12110 (value_as_address, attr_form_is_section_offset)
12111 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12112 * dwarf2/attribute.c (attribute::value_as_address)
12113 (attribute::form_is_section_offset, attribute::form_is_constant)
12114 (attribute::form_is_ref): Now methods.
12115
162dce55
TT
121162020-02-08 Tom Tromey <tom@tromey.com>
12117
12118 * dwarf2read.c (struct attribute, DW_STRING)
12119 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12120 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12121 (attr_form_is_block, attr_form_is_section_offset)
12122 (attr_form_is_constant, attr_form_is_ref): Move.
12123 * dwarf2/attribute.h: New file.
12124 * dwarf2/attribute.c: New file, from dwarf2read.c.
12125 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12126
3054dd54
TT
121272020-02-08 Tom Tromey <tom@tromey.com>
12128
12129 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12130 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12131 Move.
12132 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12133 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12134 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12135 abbrev.c.
12136 * dwarf2/abbrev.h: New file.
12137 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12138 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12139
96b79293
TT
121402020-02-08 Tom Tromey <tom@tromey.com>
12141
12142 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12143 (dwarf2_section_size, dwarf2_get_section_info)
12144 (create_signatured_type_table_from_debug_names)
12145 (create_addrmap_from_aranges, read_debug_names_from_section)
12146 (get_gdb_index_contents_from_section, read_comp_unit_head)
12147 (error_check_comp_unit_head, read_abbrev_offset)
12148 (create_debug_type_hash_table, init_cu_die_reader)
12149 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12150 (read_comp_units_from_section, create_cus_hash_table)
12151 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12152 (create_dwp_v2_section, dwarf2_rnglists_process)
12153 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12154 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12155 (read_indirect_string_from_dwz, read_addr_index_1)
12156 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12157 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12158 (fill_in_loclist_baton): Update.
12159 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12160 get_containing_section, get_bfd_owner, get_bfd_section,
12161 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12162 (dwarf2_read_section, get_section_name, get_section_file_name)
12163 (get_containing_section, get_section_bfd_owner)
12164 (get_section_bfd_section, get_section_name, get_section_file_name)
12165 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12166 declare.
12167 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12168 (dwarf2_section_info::get_bfd_owner)
12169 (dwarf2_section_info::get_bfd_section)
12170 (dwarf2_section_info::get_name)
12171 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12172 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12173 (dwarf2_section_info::read): Now methods.
12174 * dwarf-index-write.c (class debug_names): Update.
12175
2c86cff9
TT
121762020-02-08 Tom Tromey <tom@tromey.com>
12177
12178 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12179 Move to dwarf2/section.h.
12180 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12181 (get_section_bfd_section, get_section_name)
12182 (get_section_file_name, get_section_id, get_section_flags)
12183 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12184 dwarf2/section.c.
12185 * dwarf2/section.h: New file.
12186 * dwarf2/section.c: New file, from dwarf2read.c.
12187 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12188
f4382c45
TT
121892020-02-08 Tom Tromey <tom@tromey.com>
12190
12191 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12192 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12193 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12194 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12195 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12196 * dwarf2/leb.h: New file, from dwarf2read.c.
12197 * dwarf2/leb.c: New file, from dwarf2read.c.
12198 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12199 Remove.
12200 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12201 (COMMON_SFILES): Add dwarf2/leb.c.
12202
01840b7a
JB
122032020-02-08 Joel Brobecker <brobecker@adacore.com>
12204
12205 GDB 9.1 released.
12206
dfcb27e4
IB
122072020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12208
12209 PR gdb/25190:
aac66a4c
SM
12210 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12211 * gdb/remote.c (remote_console_output): Update.
12212 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12213 (ui_file_puts): ...this.
12214 * gdb/ui-file.h (ui_file_puts): Add declaration.
12215 * gdb/utils.c (emit_style_escape): Update.
12216 (flush_wrap_buffer): Update.
12217 (fputs_maybe_filtered): Update.
12218 (fputs_unfiltered): Add function.
dfcb27e4 12219
faa17681
IB
122202020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12221
aac66a4c
SM
12222 * gdb/event-loop.c (gdb_wait_for_event): Update.
12223 * gdb/printcmd.c (printf_command): Update.
12224 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12225 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12226 (gdb_os_flush_stderr): Update.
12227 * gdb/remote.c (remote_console_output): Update.
12228 * gdb/ui-file.c (gdb_flush): Rename to...
12229 (ui_file_flush): ...this.
12230 (stderr_file::write): Update.
12231 (stderr_file::puts): Update.
12232 * gdb/ui-file.h (gdb_flush): Rename to...
12233 (ui_file_flush): ...this.
12234 * gdb/utils.c (gdb_flush): Add function.
12235 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12236
5abbbe1d
TT
122372020-02-07 Tom Tromey <tromey@adacore.com>
12238
12239 PR breakpoints/24915:
12240 * source.c (find_and_open_source): Do not check basenames_may_differ.
12241
919adfe8
TT
122422020-02-07 Tom Tromey <tom@tromey.com>
12243
12244 * README: Update gdbserver documentation.
12245 * gdbserver: Move to top level.
12246 * configure.tgt (build_gdbserver): Remove.
12247 * configure.ac: Remove --enable-gdbserver.
12248 * configure: Rebuild.
12249 * Makefile.in (distclean): Don't mention gdbserver.
12250
1d5d29e7
SV
122512020-02-06 Shahab Vahedi <shahab@synopsys.com>
12252
12253 * source-cache.c (source_cache::ensure): Surround
12254 get_plain_source_lines with a try/catch.
12255 (source_cache::get_line_charpos): Get rid of try/catch
12256 and only check for the return value of "ensure".
12257 * tui/tui-source.c (tui_source_window::set_contents):
12258 Simplify "nlines" calculation.
12259
6eb1129c
SV
122602020-02-06 Shahab Vahedi <shahab@synopsys.com>
12261
12262 * MAINTAINERS (Write After Approval): Add myself.
12263
c6a42d11
CB
122642020-02-05 Christian Biesinger <cbiesinger@google.com>
12265
12266 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12267 function call.
12268
c8ecdda6
CB
122692020-02-05 Christian Biesinger <cbiesinger@google.com>
12270
12271 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12272
f6480e70
MR
122732020-02-05 Maciej W. Rozycki <macro@wdc.com>
12274
12275 * nat/riscv-linux-tdesc.h: New file.
12276 * nat/riscv-linux-tdesc.c: New file, taking code from...
12277 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12278 ... here.
12279 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12280 NATDEPFILES.
12281
dcc9fbc6
AB
122822020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12283
12284 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12285 we don't set the fake simulator ptid to the null_ptid.
12286
719546c4
SM
122872020-02-03 Simon Marchi <simon.marchi@efficios.com>
12288
12289 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12290 * gdbthread.h (class thread_info) <resumed>: Likewise.
12291 * infrun.c (resume_1): Likewise.
12292 (proceed): Likewise.
12293 (infrun_thread_stop_requested): Likewise.
12294 (stop_all_threads): Likewise.
12295 (handle_inferior_event): Likewise.
12296 (restart_threads): Likewise.
12297 (finish_step_over): Likewise.
12298 (keep_going_stepped_thread): Likewise.
12299 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12300 (linux_handle_extended_wait): Likewise.
12301 * record-btrace.c (get_thread_current_frame_id): Likewise.
12302 * record-full.c (record_full_wait_1): Likewise.
12303 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12304 * target.c (target_resume): Likewise.
12305 * thread.c (set_running_thread): Likewise.
12306
e409c542
AKS
123072020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12308
12309 * f-valprint.c (f77_print_array_1): Changed datatype of index
12310 variable to LONGEST from int to enable it to contain bound
12311 values correctly.
12312
ee98c0da
MR
123132020-02-03 Maciej W. Rozycki <macro@wdc.com>
12314
12315 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12316 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12317 offsets according to FLEN determined.
12318 (riscv_linux_nat_target::read_description): Determine FLEN
12319 dynamically.
12320 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12321 according to FLEN determined.
12322 (riscv_linux_nat_target::store_registers): Likewise.
12323
aa66aac4
SV
123242020-02-01 Shahab Vahedi <shahab@synopsys.com>
12325
12326 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12327 when reg->group is empty and reggroup is not.
12328
fd9faca8
TT
123292020-01-31 Tom Tromey <tromey@adacore.com>
12330
12331 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12332 Call beneath target's mourn_inferior after unpushing.
12333
42330a68
AB
123342020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12335
12336 PR tui/9765
12337 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12338 have enough lines to fill the screen, still return the lowest
12339 address we found.
12340
7a27a45b
AB
123412020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12342
12343 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12344 '-', '<', and '>' commands.
12345
c47f70e2
PA
123462020-01-29 Pedro Alves <palves@redhat.com>
12347 Sergio Durigan Junior <sergiodj@redhat.com>
12348
12349 * infcmd.c (construct_inferior_arguments): Assert that
12350 'argc' is greater than 0.
12351
5133a315
LM
123522020-01-29 Luis Machado <luis.machado@linaro.org>
12353
12354 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12355 (BRK_INSN_MASK): Define to 0xd4200000.
12356 (aarch64_program_breakpoint_here_p): New function.
12357 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12358 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12359 breakpoint.c.
12360 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12361 breakpoint.h
12362 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12363 call gdbarch_program_breakpoint_here_p.
12364 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12365 default_program_breakpoint_here_p, changed return type to bool and
12366 simplified.
12367 * breakpoint.h (program_breakpoint_here): Moved prototype to
12368 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12369 return type to bool.
12370 * gdbarch.c: Regenerate.
12371 * gdbarch.h: Regenerate.
12372 * gdbarch.sh (program_breakpoint_here_p): New method.
12373 * infrun.c (handle_signal_stop): Call
12374 gdbarch_program_breakpoint_here_p.
12375
168f8c6b
TT
123762020-01-26 Tom Tromey <tom@tromey.com>
12377
12378 * ctfread.c (struct ctf_fp_info): Reindent.
12379 (_initialize_ctfread): Remove.
12380
128a391f
TT
123812020-01-26 Tom Tromey <tom@tromey.com>
12382
12383 * psymtab.c (partial_map_expand_apply)
12384 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12385 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12386 (psym_print_stats, psym_expand_symtabs_for_function)
12387 (psym_map_symbol_filenames, psym_map_matching_symbols)
12388 (psym_expand_symtabs_matching)
12389 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12390 (maintenance_check_psymtabs): Use new methods.
12391 * psympriv.h (struct partial_symtab) <readin_p,
12392 get_compunit_symtab>: New methods.
12393 <readin, compunit_symtab>: Remove members.
12394 (struct standard_psymtab): New.
12395 (struct legacy_psymtab): Derive from standard_psymtab.
12396 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12397 standard_psymtab.
12398 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12399
0494dbec
TT
124002020-01-26 Tom Tromey <tom@tromey.com>
12401
12402 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12403 read_dependencies. Add assert.
12404 * psymtab.c (partial_symtab::read_dependencies): New method.
12405 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12406 method.
12407 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12408 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12409 read_dependencies.
12410 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12411 Add assert.
12412
8566b89b
TT
124132020-01-26 Tom Tromey <tom@tromey.com>
12414
12415 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12416 Call expand_psymtab.
12417 (xcoff_read_symtab): Call expand_psymtab.
12418 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12419 legacy_expand_psymtab.
12420 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12421 method.
12422 (struct legacy_psymtab) <expand_psymtab>: Implement.
12423 <legacy_expand_psymtab>: New member.
12424 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12425 (parse_partial_symbols): Set legacy_expand_psymtab.
12426 (psymtab_to_symtab_1): Change argument order. Call
12427 expand_psymtab.
12428 (new_psymtab): Set legacy_expand_psymtab.
12429 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12430 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12431 expand_psymtab.
12432 (dwarf2_psymtab::expand_psymtab): Rename from
12433 psymtab_to_symtab_1. Call expand_psymtab.
12434 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12435 (dbx_end_psymtab): Likewise.
12436 (dbx_psymtab_to_symtab_1): Change argument order. Call
12437 expand_psymtab.
12438 (dbx_read_symtab): Call expand_psymtab.
12439 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12440 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12441 (ctf_psymtab::read_symtab): Call expand_psymtab.
12442
077cbab2
TT
124432020-01-26 Tom Tromey <tom@tromey.com>
12444
12445 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12446 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12447 messages.
12448 * mdebugread.c (mdebug_read_symtab): Remove prints.
12449 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12450 assert.
12451 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12452
891813be
TT
124532020-01-26 Tom Tromey <tom@tromey.com>
12454
12455 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12456 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12457 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12458 legacy_symtab.
12459 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12460 * psymtab.c (psymtab_to_symtab): Call method.
12461 (dump_psymtab): Update.
12462 * psympriv.h (struct partial_symtab): Add virtual destructor.
12463 <read_symtab>: New method.
12464 (struct legacy_symtab): New.
12465 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12466 (struct pst_map) <pst>: Now a legacy_psymtab.
12467 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12468 (new_psymtab): Use legacy_psymtab.
12469 * dwarf2read.h (struct dwarf2_psymtab): New.
12470 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12471 * dwarf2read.c (dwarf2_create_include_psymtab)
12472 (dwarf2_build_include_psymtabs, create_type_unit_group)
12473 (create_partial_symtab, process_psymtab_comp_unit_reader)
12474 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12475 (set_partial_user): Use dwarf2_psymtab.
12476 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12477 (psymtab_to_symtab_1, process_full_comp_unit)
12478 (process_full_type_unit, dwarf2_ranges_read)
12479 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12480 (dwarf_decode_lines): Use dwarf2_psymtab.
12481 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12482 (add_address_entry_worker, write_one_signatured_type)
12483 (recursively_count_psymbols, recursively_write_psymbols)
12484 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12485 (write_debug_names): Likewise.
12486 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12487 <pst>: Now a legacy_psymtab.
12488 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12489 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12490 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12491 * ctfread.c (struct ctf_psymtab): New.
12492 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12493 ctf_psymtab.
12494 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12495 (create_partial_symtab): Return a ctf_psymtab.
12496 (scan_partial_symbols): Update.
12497
c3693a1d
TT
124982020-01-26 Tom Tromey <tom@tromey.com>
12499
12500 * xcoffread.c (xcoff_start_psymtab): Use new.
12501 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12502 renamed from start_psymtab_common.
12503 * psympriv.h (struct partial_symtab): Add new constructor.
12504 (start_psymtab_common): Don't declare.
12505 * mdebugread.c (parse_partial_symbols): Use new.
12506 * dwarf2read.c (create_partial_symtab): Use new.
12507 * dbxread.c (start_psymtab): Use new.
12508 * ctfread.c (create_partial_symtab): Use new.
12509
32caafd0
TT
125102020-01-26 Tom Tromey <tom@tromey.com>
12511
12512 * xcoffread.c (xcoff_end_psymtab): Use new.
12513 * psymtab.c (start_psymtab_common): Use new.
12514 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12515 Update.
12516 * psympriv.h (struct partial_symtab): Add parameters to
12517 constructor. Don't inline.
12518 (allocate_psymtab): Don't declare.
12519 * mdebugread.c (new_psymtab): Use new.
12520 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12521 * dbxread.c (dbx_end_psymtab): Use new.
12522
abaa2f23
TT
125232020-01-26 Tom Tromey <tom@tromey.com>
12524
12525 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12526 allocate_psymtab. Update documentation.
12527 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12528 allocate_psymtab. Do not use new.
12529 (allocate_psymtab): Use new. Update.
12530
6d94535f
TT
125312020-01-26 Tom Tromey <tom@tromey.com>
12532
12533 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12534 * psymtab.c (psym_print_stats): Update.
12535 * psympriv.h (struct partial_symtab) <readin,
12536 psymtabs_addrmap_supported, anonymous>: Now bool.
12537 * mdebugread.c (psymtab_to_symtab_1): Update.
12538 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12539 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12540 (process_full_comp_unit, process_full_type_unit): Update.
12541 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12542 * ctfread.c (psymtab_to_symtab): Update.
12543
6f17252b
TT
125442020-01-26 Tom Tromey <tom@tromey.com>
12545
12546 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12547 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12548 * psymtab.c (psymtab_storage): Delete psymtabs.
12549 (psymtab_storage::allocate_psymtab): Use new.
12550 (psymtab_storage::discard_psymtab): Use delete.
12551 * psympriv.h (struct partial_symtab): Add constructor and
12552 initializers.
12553
f6f1cebc
TT
125542020-01-26 Tom Tromey <tom@tromey.com>
12555
12556 * machoread.c: Do not include psympriv.h.
12557
e47e48f6
PW
125582020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12559
12560 * NEWS: Mention the new option and the set/show commands.
12561
a2fedca9
PW
125622020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12563
12564 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12565 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12566 (validate_exec_file): New variables, enums, functions.
12567 (exec_file_locate_attach, print_section_info): Style the filenames.
12568 (_initialize_exec): Install show_exec_file_mismatch_command and
12569 set_exec_file_mismatch_command.
12570 * gdbcore.h (validate_exec_file): Declare.
12571 * infcmd.c (attach_command): Call validate_exec_file.
12572 * remote.c ( remote_target::remote_add_inferior): Likewise.
12573
7ffa82e1
AB
125742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12575
12576 * frame.c (find_frame_sal): Move call to get_next_frame into more
12577 inner scope.
12578 * inline-frame.c (inilne_state) <inline_state>: Update argument
12579 types.
12580 (inilne_state) <skipped_symbol>: Rename to...
12581 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12582 (skip_inline_frames): Build vector of skipped symbols and use this
12583 to reate the inline_state.
12584 (inline_skipped_symbol): Add a comment and some assertions, fetch
12585 skipped symbol from the list.
12586
3d92a3e3
AB
125872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12588
12589 * buildsym.c (lte_is_less_than): Delete.
12590 (buildsym_compunit::end_symtab_with_blockvector): Create local
12591 lambda function to sort line table entries, and use
12592 std::stable_sort instead of std::sort.
12593 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12594 markers when looking for a previous line.
12595
94a72be7
AB
125962020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12597
12598 * dwarf2read.c (lnp_state_machine::record_line): Include
12599 end_sequence parameter in debug print out. Record the line if we
12600 are at an end_sequence marker even if it's not the start of a
12601 statement.
12602 * symmisc.c (maintenance_print_one_line_table): Print end of
12603 sequence markers with 'END' not '0'.
12604
53af73bf
PA
126052020-01-24 Pedro Alves <palves@redhat.com>
12606
12607 PR gdb/25410
12608 * thread.c (scoped_restore_current_thread::restore): Use
12609 switch_to_inferior_no_thread.
12610 * exec.c: Include "progspace-and-thread.h".
12611 (add_target_sections, remove_target_sections):
12612 scoped_restore_current_pspace_and_thread instead of
12613 scoped_restore_current_thread.
12614 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12615 and aspace to the inferior before calling clone_program_space.
12616 Remove stale comment.
12617
3050c6f4
CB
126182020-01-24 Christian Biesinger <cbiesinger@google.com>
12619
12620 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12621 (arm_netbsd_nat_target::fetch_registers): ...this.
12622 (arm_nbsd_nat_target::store_registers): Rename to...
12623 (arm_netbsd_nat_target::store_registers): ...this.
12624
73685c7e
CB
126252020-01-24 Christian Biesinger <cbiesinger@google.com>
12626
12627 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12628 register_t.
12629
89203d40
CB
126302020-01-24 Christian Biesinger <cbiesinger@google.com>
12631
12632 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12633 Update comment.
12634 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12635 Likewise.
12636 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12637 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12638 the correct replacement (iterate_over_regset_sections).
12639 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12640 Update comment.
12641
1ba1ac88
AB
126422020-01-24 Graham Markall <graham.markall@embecosm.com>
12643
12644 PR gdb/23718
12645 * gdb/python/python.c (execute_gdb_command): Call
12646 async_enable_stdin in catch block.
12647
f3364a6d
AB
126482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12649
12650 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12651 SWITCH_THRU_ALL_UIS.
12652
733d0a67
AB
126532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12654
12655 PR tui/9765
12656 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12657 comment, add extra parameter, and update to store previous symbol
12658 when appropriate.
12659 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12660 add extra parameter.
12661 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12662 remove unneeded parameter, add try/catch around gdb_print_insn,
12663 rewrite to add items to asm_lines vector.
12664 (tui_find_backward_disassembly_start_address): New function.
12665 (tui_find_disassembly_address): Updated throughout.
12666 (tui_disasm_window::set_contents): Update for changes to
12667 tui_disassemble.
12668 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12669 number of lines to scroll.
12670
b3b3bada
SM
126712020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12672
12673 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12674 (SECT_OFF_DATA): Likewise.
12675 (SECT_OFF_RODATA): Likewise.
12676 (SECT_OFF_TEXT): Likewise.
12677 (SECT_OFF_BSS): Likewise.
12678 (struct objfile) <text_section_offset, data_section_offset>: New
12679 methods.
12680 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12681 objfile::text_section_offset.
12682 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12683 * coffread.c (coff_symtab_read): Likewise.
12684 (enter_linenos): Likewise.
12685 (process_coff_symbol): Likewise.
12686 * ctfread.c (get_objfile_text_range): Likewise.
12687 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12688 Use objfile::data_section_offset.
12689 * dwarf2-frame.c (execute_cfa_program): Use
12690 objfile::text_section_offset.
12691 (dwarf2_frame_find_fde): Likewise.
12692 * dwarf2read.c (create_addrmap_from_index): Likewise.
12693 (create_addrmap_from_aranges): Likewise.
12694 (dw2_find_pc_sect_compunit_symtab): Likewise.
12695 (process_psymtab_comp_unit_reader): Likewise.
12696 (add_partial_symbol): Likewise.
12697 (add_partial_subprogram): Likewise.
12698 (process_full_comp_unit): Likewise.
12699 (read_file_scope): Likewise.
12700 (read_func_scope): Likewise.
12701 (read_lexical_block_scope): Likewise.
12702 (read_call_site_scope): Likewise.
12703 (dwarf2_rnglists_process): Likewise.
12704 (dwarf2_ranges_process): Likewise.
12705 (dwarf2_ranges_read): Likewise.
12706 (dwarf_decode_lines_1): Likewise.
12707 (new_symbol): Likewise.
12708 (dwarf2_fetch_die_loc_sect_off): Likewise.
12709 (dwarf2_per_cu_text_offset): Likewise.
12710 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12711 * hppa-tdep.c (read_unwind_info): Likewise.
12712 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12713 * psympriv.h (struct partial_symtab): Likewise.
12714 * psymtab.c (find_pc_sect_psymtab): Likewise.
12715 * solib-svr4.c (enable_break): Likewise.
12716 * stap-probe.c (relocate_address): Use
12717 objfile::data_section_offset.
12718 * xcoffread.c (enter_line_range): Use
12719 objfile::text_section_offset.
12720 (read_xcoff_symtab): Likewise.
12721
ab53f382
SM
127222020-01-23 Simon Marchi <simon.marchi@efficios.com>
12723
12724 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12725 declaration to narrower scopes.
12726
e7eee665
SM
127272020-01-23 Simon Marchi <simon.marchi@efficios.com>
12728
12729 * darwin-nat.h (struct darwin_exception_msg, enum
12730 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12731 Move up.
12732 (class darwin_nat_target) <wait_1, check_new_threads,
12733 decode_exception_message, decode_message, stop_inferior,
12734 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12735 * darwin-nat.c (darwin_check_new_threads): Rename to...
12736 (darwin_nat_target::check_new_threads): ... this.
12737 (darwin_suspend_inferior_it): Remove.
12738 (darwin_decode_exception_message): Rename to...
12739 (darwin_nat_target::decode_exception_message): ... this.
12740 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12741 (darwin_decode_message): Rename to...
12742 (darwin_nat_target::decode_message): ... this.
12743 (cancel_breakpoint): Rename to...
12744 (darwin_nat_target::cancel_breakpoint): ... this.
12745 (darwin_wait): Rename to...
12746 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12747 instead of iterate_over_inferiors.
12748 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12749 (darwin_stop_inferior): Rename to...
12750 (darwin_nat_target::stop_inferior): ... this.
12751 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12752 (darwin_init_thread_list): Rename to...
12753 (darwin_nat_target::init_thread_list): ... this.
12754 (darwin_ptrace_him): Rename to...
12755 (darwin_nat_target::ptrace_him): ... this.
12756 (darwin_nat_target::create_inferior): Pass lambda function to
12757 fork_inferior.
12758 (darwin_nat_target::detach): Call stop_inferior instead of
12759 darwin_stop_inferior.
12760 * fork-inferior.h (fork_inferior): Change init_trace_fun
12761 parameter to gdb::function_view.
12762 * fork-inferior.c (fork_inferior): Likewise.
12763
c162ed3e
HD
127642020-01-23 Hannes Domani <ssbssa@yahoo.de>
12765
12766 * i386-cygwin-tdep.c (core_process_module_section): Update.
12767 * windows-nat.c (struct lm_info_windows): Add text_offset.
12768 (windows_xfer_shared_libraries): Update.
12769 * windows-tdep.c (windows_xfer_shared_library):
12770 Add text_offset_cached argument.
12771 * windows-tdep.h (windows_xfer_shared_library): Update.
12772
a1237872
SM
127732020-01-21 Simon Marchi <simon.marchi@efficios.com>
12774
12775 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12776
b3ee6dd9
SM
127772020-01-21 Simon Marchi <simon.marchi@efficios.com>
12778
12779 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12780 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12781 replace with range-based for.
12782 (gdbsim_interrupt_inferior): Remove.
12783 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12784 with a range-based for. Inline code from
12785 gdbsim_interrupt_inferior.
12786
f9fac3c8
SM
127872020-01-21 Simon Marchi <simon.marchi@efficios.com>
12788
12789 * infrun.c (proceed): Fix indentation.
12790
f6474de9
TT
127912020-01-21 Tom Tromey <tromey@adacore.com>
12792
12793 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12794 * python/python.c (python_extension_ops): Update.
12795 (gdbpy_colorize): New function.
12796 * python/lib/gdb/__init__.py (colorize): New function.
12797 * extension.h (ext_lang_colorize): Declare.
12798 * extension.c (ext_lang_colorize): New function.
12799 * extension-priv.h (struct extension_language_ops) <colorize>: New
12800 member.
12801 * cli/cli-style.c (_initialize_cli_style): Update help text.
12802
f0c702d4
LM
128032020-01-21 Luis Machado <luis.machado@linaro.org>
12804
12805 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12806 <cond>: Change type to bool.
12807 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12808 (aarch64_displaced_step_cb): Likewise.
12809 (aarch64_displaced_step_tb): Likewise.
12810
1ab139e5
LM
128112020-01-21 Luis Machado <luis.machado@linaro.org>
12812
12813 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12814 output.
12815
0c271889
LM
128162020-01-21 Luis Machado <luis.machado@linaro.org>
12817
12818 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12819 <pc_adjust>: Adjust the documentation.
12820 (aarch64_displaced_step_fixup): Check if PC really moved before
12821 adjusting it.
12822
4d89c1c7
TT
128232020-01-19 Tom Tromey <tom@tromey.com>
12824
12825 * disasm.c (~gdb_disassembler): New destructor.
12826 (gdb_buffered_insn_length): Call disassemble_free_target.
12827 * disasm.h (class gdb_disassembler): Declare destructor. Use
12828 DISABLE_COPY_AND_ASSIGN.
12829
c0ab21c2
TT
128302020-01-19 Tom Tromey <tom@tromey.com>
12831
12832 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12833 (die_reader_func_ftype): Remove.
12834 (cutu_reader): New class.
12835 (dw2_get_file_names_reader): Remove "data" parameter.
12836 (dw2_get_file_names): Use cutu_reader.
12837 (create_debug_type_hash_table): Update.
12838 (read_cutu_die_from_dwo): Update comment.
12839 (lookup_dwo_unit): Add dwo_name parameter.
12840 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12841 die_reader_func_ftype and data parameters.
12842 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12843 Remove die_reader_func_ftype and data parameters.
12844 (~cutu_reader): New; from init_cutu_and_read_dies.
12845 (cutu_reader::cutu_reader): Rename from
12846 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12847 and data parameters.
12848 (init_cutu_and_read_dies_simple): Remove.
12849 (struct process_psymtab_comp_unit_data): Remove.
12850 (process_psymtab_comp_unit_reader): Remove data parameter; add
12851 want_partial_unit and pretend_language parameters.
12852 (process_psymtab_comp_unit): Use cutu_reader.
12853 (build_type_psymtabs_reader): Remove data parameter.
12854 (build_type_psymtabs_1): Use cutu_reader.
12855 (process_skeletonless_type_unit): Likewise.
12856 (load_partial_comp_unit_reader): Remove.
12857 (load_partial_comp_unit): Use cutu_reader.
12858 (load_full_comp_unit_reader): Remove.
12859 (load_full_comp_unit): Use cutu_reader.
12860 (struct create_dwo_cu_data): Remove.
12861 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12862 dwo_unit parameters.
12863 (create_cus_hash_table): Use cutu_reader.
12864 (struct dwarf2_read_addr_index_data): Remove.
12865 (dwarf2_read_addr_index_reader): Remove.
12866 (dwarf2_read_addr_index): Use cutu_reader.
12867 (read_signatured_type_reader): Remove.
12868 (read_signatured_type): Use cutu_reader.
12869
45bbae5c
TT
128702020-01-19 Tom Tromey <tom@tromey.com>
12871
12872 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12873 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12874 (tui_wrefresh): Declare.
12875 * tui/tui-wingeneral.c (suppress_output): New global.
12876 (tui_suppress_output, ~tui_suppress_output): New constructor and
12877 destructor.
12878 (tui_wrefresh): New function.
12879 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12880 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12881 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12882 method.
12883 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12884 tui_wrefresh.
12885 (tui_data_window::no_refresh): New method.
12886 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12887 (tui_reg_command): Use tui_suppress_output
12888 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12889 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12890 method.
12891 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12892
4f13c1c0
TT
128932020-01-19 Tom Tromey <tom@tromey.com>
12894
12895 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12896 Handle case where symtab is null.
12897
fa47e446
SM
128982020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12899
12900 * linux-fork.c (one_fork_p): Simplify.
12901
26f42329
SM
129022020-01-17 Simon Marchi <simon.marchi@efficios.com>
12903
12904 * top.c (struct qt_args): Remove.
12905 (kill_or_detach): Change return type to void, replace `void *`
12906 parameter with a proper one.
12907 (print_inferior_quit_action): Likewise.
12908 (quit_confirm): Use range-based for loop to iterate over inferiors.
12909 (quit_force): Likewise.
12910
a9ac81b1
SM
129112020-01-17 Simon Marchi <simon.marchi@efficios.com>
12912
12913 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12914 `void *` parameter with proper parameters.
12915 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12916 (print_one_inferior): Change return type to void, replace `void *`
12917 parameter with proper parameters.
12918 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12919 inferiors.
12920 (get_other_inferior): Remove.
12921 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12922 inferiors.
12923
788eca49
SM
129242020-01-17 Simon Marchi <simon.marchi@efficios.com>
12925
12926 * mi/mi-interp.c (report_initial_inferior): Remove.
12927 (mi_interp::init): Use range-based for to iterate over inferiors.
12928
d9bc85b6
SM
129292020-01-17 Simon Marchi <simon.marchi@efficios.com>
12930
12931 * python/py-inferior.c (build_inferior_list): Remove.
12932 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12933
40c94099
CB
129342020-01-16 Christian Biesinger <cbiesinger@google.com>
12935
12936 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12937 (btrace_stitch_trace): Likewise.
12938 * charset.c (intermediate_encoding): Likewise (vaild).
12939 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12940 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12941 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12942
e0cdfe3c
HD
129432020-01-16 Hannes Domani <ssbssa@yahoo.de>
12944
12945 * windows-tdep.c (windows_get_tlb_type):
12946 Add rtl_user_process_parameters type.
12947
790f1718 129482020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12949 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12950
12951 PR build/24805
12952 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12953 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12954 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12955 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12956 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12957 (ps_plog): Redeclare exported functions with default visibility.
12958
3112ed97
NA
129592020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12960
12961 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12962 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12963
8dc3273e
SM
129642020-01-15 Simon Marchi <simon.marchi@efficios.com>
12965
12966 * infcmd.c (post_create_inferior): Use get_thread_regcache
12967 instead of get_current_regcache.
12968
ff47f4f0
TT
129692020-01-14 Tom Tromey <tom@tromey.com>
12970
12971 PR symtab/12535:
12972 * python/python.c (gdbpy_decode_line): Treat empty string the same
12973 as no argument.
12974
975f45b7
TT
129752020-01-14 Tom Tromey <tom@tromey.com>
12976
12977 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12978
25e57356
TT
129792020-01-14 Tom Tromey <tom@tromey.com>
12980
12981 * nat/linux-btrace.c: Don't include <config.h>.
12982 * nat/linux-ptrace.c: Don't include <config.h>.
12983 * nat/x86-linux-dregs.c: Don't include <config.h>.
12984
05ea2a05
TT
129852020-01-14 Tom Tromey <tom@tromey.com>
12986
12987 * configure: Rebuild.
12988 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12989
01027315
TT
129902020-01-14 Tom Tromey <tom@tromey.com>
12991
12992 * nat/x86-linux-dregs.c: Include configh.h.
12993 * nat/linux-ptrace.c: Include configh.h.
12994 * nat/linux-btrace.c: Include configh.h.
12995 * defs.h: Include config.h, bfd.h.
12996 * configure.ac: Don't source common.host.
12997 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12998 * configure: Rebuild.
12999 * acinclude.m4: Update path.
13000 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13001 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13002 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13003 (CLIBS): Add LIBSUPPORT.
13004 (CDEPS): Likewise.
13005 (COMMON_SFILES): Remove gdbsupport files.
13006 (HFILES_NO_SRCDIR): Likewise.
13007 (stamp-version): Update path to create-version.sh.
13008 (ALLDEPFILES): Remove gdbsupport files.
13009
b2ceabe8
TT
130102020-01-14 Tom Tromey <tom@tromey.com>
13011
13012 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13013 USE_WIN32API when needed.
13014 * configure.ac (USE_WIN32API): Don't define.
13015 (WIN32LIBS): Use WIN32APILIBS.
13016 * configure: Rebuild.
13017
25c51f71
TT
130182020-01-14 Tom Tromey <tom@tromey.com>
13019
13020 * configure: Rebuild.
13021 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13022
717c684d
BE
130232020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13024
13025 * skip.c (skip_function_command): Make skip w/o arguments use the
13026 name of the inlined function if pc is inside any inlined function.
13027
7da6a5b9
LM
130282020-01-14 Luis Machado <luis.machado@linaro.org>
13029
13030 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13031 * infrun.c (resume_1): Likewise.
13032 (handle_inferior_event): Remove stale comment.
13033 * linux-nat.c (linux_nat_target::resume): Update comments.
13034 (save_stop_reason): Likewise.
13035 (linux_nat_filter_event): Likewise.
13036 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13037
44e4c775
AB
130382020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13039
13040 * elfread.c (record_minimal_symbol): Set section index to 0 for
13041 non-allocatable sections.
13042
18a8505e
AT
13043
130442020-01-13 Ali Tamur <tamur@google.com>
13045
13046 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13047 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13048 to gdb::optional. Update comments.
13049 (dwo_file): Update comments.
13050 (read_attribute): Update API to take an additional out parameter,
13051 need_reprocess. This is used to mark attributes that need other
13052 attributes (e.g. str_offsets_base) for correct computation which may not
13053 have been read yet.
13054 (read_attribute_reprocess): New function declaration.
13055 (read_addr_index): Likewise.
13056 (read_dwo_str_index): Likewise.
13057 (read_stub_str_index): Likewise.
13058 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13059 (lookup_addr_base): New function definition.
13060 (lookup_ranges_base): Likewise.
13061 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13062 lookup_ranges_base.
13063 (init_cutu_and_read_dies): Update comments.
13064 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13065 unit. This is used to inherit parent's str_offsets_base and addr_base.
13066 Update comments.
13067 (init_cutu_and_read_dies_simple): Reflect API changes.
13068 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13069 (create_cus_hash_table): Change API to take parent compile unit.
13070 Reflect API changes.
13071 (open_and_init_dwo_file): Reflect API changes.
13072 (dwarf2_get_pc_bounds): Update comments.
13073 (dwarf2_record_block_ranges): Likewise.
13074 (read_full_die_1): Change implementation to reprocess attributes that
13075 need str_offsets_base and addr_base.
13076 (partial_die_info::read): Likewise.
13077 (read_attribute_reprocess): New function definition.
13078 (read_attribute_value): Change API to take an additional out parameter,
13079 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13080 when a non-dwo compile unit has index based attributes.
13081 (read_attribute): Reflect API changes.
13082 (read_addr_index_1): Reflect API changes. Update comments.
13083 (dwarf2_read_addr_index_data): Reflect API changes.
13084 (dwarf2_read_addr_index): Likewise.
13085 (read_str_index): Change API and implementation. This becomes a helper
13086 to be used by the new string index related methods. Update error
13087 message and comments.
13088 (read_dwo_str_index): New function definition.
13089 (read_stub_str_index): Likewise.
13090 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13091 * symfile.h (dwarf2_debug_sections): Likewise.
13092 * xcoffread.c (dwarf2_debug_sections): Likewise.
13093
0cac9354
SM
130942020-01-13 Simon Marchi <simon.marchi@efficios.com>
13095
13096 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13097 core_reg_sect type to gdb_byte *.
13098 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13099 * cris-tdep.c (fetch_core_registers): Likewise.
13100 * corelow.c (core_target::get_core_register_section): Change
13101 type of `contents` to gdb::byte_vector.
13102
9a6d629c
AB
131032020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13104
13105 * tui/tui-wingeneral.c (box_win): Position the title in the center
13106 of the border.
13107
d8b2f9e3
SM
131082020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13109
13110 * corelow.c (core_target::get_core_register_section): Use
13111 std::vector instead of alloca.
13112
bb564c58
SM
131132020-01-13 Simon Marchi <simon.marchi@efficios.com>
13114
13115 * warning.m4: Add -Wmissing-declarations to build_warnings.
13116 * configure: Re-generate.
13117
6b366111
SM
131182020-01-13 Simon Marchi <simon.marchi@efficios.com>
13119
13120 * python/python.c (init__gdb_module): Add declaration.
13121
6c265988
SM
131222020-01-13 Simon Marchi <simon.marchi@efficios.com>
13123
13124 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13125 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13126 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13127 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13128 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13129 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13130 * ada-exp.y (_initialize_ada_exp): Add declaration.
13131 * ada-lang.c (_initialize_ada_language): Add declaration.
13132 * ada-tasks.c (_initialize_tasks): Add declaration.
13133 * agent.c (_initialize_agent): Add declaration.
13134 * aix-thread.c (_initialize_aix_thread): Add declaration.
13135 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13136 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13137 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13138 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13139 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13140 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13141 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13142 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13143 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13144 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13145 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13146 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13147 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13148 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13149 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13150 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13151 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13152 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13153 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13154 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13155 * annotate.c (_initialize_annotate): Add declaration.
13156 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13157 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13158 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13159 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13160 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13161 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13162 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13163 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13164 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13165 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13166 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13167 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13168 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13169 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13170 * auto-load.c (_initialize_auto_load): Add declaration.
13171 * auxv.c (_initialize_auxv): Add declaration.
13172 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13173 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13174 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13175 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13176 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13177 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13178 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13179 * breakpoint.c (_initialize_breakpoint): Add declaration.
13180 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13181 * btrace.c (_initialize_btrace): Add declaration.
13182 * charset.c (_initialize_charset): Add declaration.
13183 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13184 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13185 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13186 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13187 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13188 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13189 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13190 * coffread.c (_initialize_coffread): Add declaration.
13191 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13192 * compile/compile.c (_initialize_compile): Add declaration.
13193 * complaints.c (_initialize_complaints): Add declaration.
13194 * completer.c (_initialize_completer): Add declaration.
13195 * copying.c (_initialize_copying): Add declaration.
13196 * corefile.c (_initialize_core): Add declaration.
13197 * corelow.c (_initialize_corelow): Add declaration.
13198 * cp-abi.c (_initialize_cp_abi): Add declaration.
13199 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13200 * cp-support.c (_initialize_cp_support): Add declaration.
13201 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13202 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13203 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13204 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13205 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13206 * ctfread.c (_initialize_ctfread): Add declaration.
13207 * d-lang.c (_initialize_d_language): Add declaration.
13208 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13209 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13210 * dbxread.c (_initialize_dbxread): Add declaration.
13211 * dcache.c (_initialize_dcache): Add declaration.
13212 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13213 * disasm.c (_initialize_disasm): Add declaration.
13214 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13215 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13216 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13217 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13218 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13219 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13220 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13221 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13222 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13223 * elfread.c (_initialize_elfread): Add declaration.
13224 * exec.c (_initialize_exec): Add declaration.
13225 * extension.c (_initialize_extension): Add declaration.
13226 * f-lang.c (_initialize_f_language): Add declaration.
13227 * f-valprint.c (_initialize_f_valprint): Add declaration.
13228 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13229 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13230 * filesystem.c (_initialize_filesystem): Add declaration.
13231 * findcmd.c (_initialize_mem_search): Add declaration.
13232 * findvar.c (_initialize_findvar): Add declaration.
13233 * fork-child.c (_initialize_fork_child): Add declaration.
13234 * frame-base.c (_initialize_frame_base): Add declaration.
13235 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13236 * frame.c (_initialize_frame): Add declaration.
13237 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13238 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13239 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13240 * gcore.c (_initialize_gcore): Add declaration.
13241 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13242 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13243 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13244 * gdbarch.c (_initialize_gdbarch): Add declaration.
13245 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13246 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13247 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13248 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13249 * go-lang.c (_initialize_go_language): Add declaration.
13250 * go32-nat.c (_initialize_go32_nat): Add declaration.
13251 * guile/guile.c (_initialize_guile): Add declaration.
13252 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13253 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13254 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13255 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13256 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13257 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13258 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13259 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13260 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13261 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13262 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13263 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13264 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13265 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13266 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13267 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13268 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13269 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13270 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13271 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13272 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13273 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13274 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13275 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13276 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13277 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13278 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13279 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13280 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13281 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13282 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13283 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13284 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13285 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13286 * infcall.c (_initialize_infcall): Add declaration.
13287 * infcmd.c (_initialize_infcmd): Add declaration.
13288 * inflow.c (_initialize_inflow): Add declaration.
13289 * infrun.c (_initialize_infrun): Add declaration.
13290 * interps.c (_initialize_interpreter): Add declaration.
13291 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13292 * jit.c (_initialize_jit): Add declaration.
13293 * language.c (_initialize_language): Add declaration.
13294 * linux-fork.c (_initialize_linux_fork): Add declaration.
13295 * linux-nat.c (_initialize_linux_nat): Add declaration.
13296 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13297 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13298 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13299 * m2-lang.c (_initialize_m2_language): Add declaration.
13300 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13301 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13302 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13303 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13304 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13305 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13306 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13307 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13308 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13309 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13310 * machoread.c (_initialize_machoread): Add declaration.
13311 * macrocmd.c (_initialize_macrocmd): Add declaration.
13312 * macroscope.c (_initialize_macroscope): Add declaration.
13313 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13314 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13315 * maint.c (_initialize_maint_cmds): Add declaration.
13316 * mdebugread.c (_initialize_mdebugread): Add declaration.
13317 * memattr.c (_initialize_mem): Add declaration.
13318 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13319 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13320 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13321 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13322 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13323 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13324 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13325 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13326 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13327 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13328 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13329 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13330 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13331 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13332 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13333 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13334 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13335 * mipsread.c (_initialize_mipsread): Add declaration.
13336 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13337 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13338 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13339 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13340 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13341 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13342 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13343 * nto-procfs.c (_initialize_procfs): Add declaration.
13344 * objc-lang.c (_initialize_objc_language): Add declaration.
13345 * observable.c (_initialize_observer): Add declaration.
13346 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13347 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13348 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13349 * osabi.c (_initialize_gdb_osabi): Add declaration.
13350 * osdata.c (_initialize_osdata): Add declaration.
13351 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13352 * parse.c (_initialize_parse): Add declaration.
13353 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13354 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13355 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13356 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13357 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13358 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13359 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13360 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13361 * printcmd.c (_initialize_printcmd): Add declaration.
13362 * probe.c (_initialize_probe): Add declaration.
13363 * proc-api.c (_initialize_proc_api): Add declaration.
13364 * proc-events.c (_initialize_proc_events): Add declaration.
13365 * proc-service.c (_initialize_proc_service): Add declaration.
13366 * procfs.c (_initialize_procfs): Add declaration.
13367 * producer.c (_initialize_producer): Add declaration.
13368 * psymtab.c (_initialize_psymtab): Add declaration.
13369 * python/python.c (_initialize_python): Add declaration.
13370 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13371 * record-btrace.c (_initialize_record_btrace): Add declaration.
13372 * record-full.c (_initialize_record_full): Add declaration.
13373 * record.c (_initialize_record): Add declaration.
13374 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13375 * regcache.c (_initialize_regcache): Add declaration.
13376 * reggroups.c (_initialize_reggroup): Add declaration.
13377 * remote-notif.c (_initialize_notif): Add declaration.
13378 * remote-sim.c (_initialize_remote_sim): Add declaration.
13379 * remote.c (_initialize_remote): Add declaration.
13380 * reverse.c (_initialize_reverse): Add declaration.
13381 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13382 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13383 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13384 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13385 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13386 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13387 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13388 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13389 Add declaration.
13390 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13391 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13392 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13393 * rust-exp.y (_initialize_rust_exp): Add declaration.
13394 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13395 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13396 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13397 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13398 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13399 * score-tdep.c (_initialize_score_tdep): Add declaration.
13400 * ser-go32.c (_initialize_ser_dos): Add declaration.
13401 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13402 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13403 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13404 * ser-uds.c (_initialize_ser_socket): Add declaration.
13405 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13406 * serial.c (_initialize_serial): Add declaration.
13407 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13408 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13409 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13410 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13411 * skip.c (_initialize_step_skip): Add declaration.
13412 * sol-thread.c (_initialize_sol_thread): Add declaration.
13413 * solib-aix.c (_initialize_solib_aix): Add declaration.
13414 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13415 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13416 * solib-frv.c (_initialize_frv_solib): Add declaration.
13417 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13418 * solib-target.c (_initialize_solib_target): Add declaration.
13419 * solib.c (_initialize_solib): Add declaration.
13420 * source-cache.c (_initialize_source_cache): Add declaration.
13421 * source.c (_initialize_source): Add declaration.
13422 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13423 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13424 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13425 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13426 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13427 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13428 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13429 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13430 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13431 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13432 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13433 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13434 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13435 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13436 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13437 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13438 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13439 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13440 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13441 * stabsread.c (_initialize_stabsread): Add declaration.
13442 * stack.c (_initialize_stack): Add declaration.
13443 * stap-probe.c (_initialize_stap_probe): Add declaration.
13444 * std-regs.c (_initialize_frame_reg): Add declaration.
13445 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13446 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13447 * symfile.c (_initialize_symfile): Add declaration.
13448 * symmisc.c (_initialize_symmisc): Add declaration.
13449 * symtab.c (_initialize_symtab): Add declaration.
13450 * target.c (_initialize_target): Add declaration.
13451 * target-connection.c (_initialize_target_connection): Add
13452 declaration.
13453 * target-dcache.c (_initialize_target_dcache): Add declaration.
13454 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13455 * thread.c (_initialize_thread): Add declaration.
13456 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13457 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13458 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13459 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13460 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13461 * tracectf.c (_initialize_ctf): Add declaration.
13462 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13463 * tracefile.c (_initialize_tracefile): Add declaration.
13464 * tracepoint.c (_initialize_tracepoint): Add declaration.
13465 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13466 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13467 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13468 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13469 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13470 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13471 * tui/tui.c (_initialize_tui): Add declaration.
13472 * typeprint.c (_initialize_typeprint): Add declaration.
13473 * ui-style.c (_initialize_ui_style): Add declaration.
13474 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13475 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13476 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13477 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13478 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13479 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13480 * unittests/filtered_iterator-selftests.c
13481 (_initialize_filtered_iterator_selftests): Add declaration.
13482 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13483 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13484 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13485 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13486 * unittests/main-thread-selftests.c
13487 (_initialize_main_thread_selftests): Add declaration.
13488 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13489 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13490 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13491 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13492 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13493 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13494 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13495 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13496 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13497 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13498 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13499 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13500 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13501 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13502 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13503 declaration.
13504 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13505 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13506 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13507 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13508 * user-regs.c (_initialize_user_regs): Add declaration.
13509 * utils.c (_initialize_utils): Add declaration.
13510 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13511 * valops.c (_initialize_valops): Add declaration.
13512 * valprint.c (_initialize_valprint): Add declaration.
13513 * value.c (_initialize_values): Add declaration.
13514 * varobj.c (_initialize_varobj): Add declaration.
13515 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13516 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13517 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13518 * windows-nat.c (_initialize_windows_nat): Add declaration.
13519 (_initialize_check_for_gdb_ini): Add declaration.
13520 (_initialize_loadable): Add declaration.
13521 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13522 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13523 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13524 * xcoffread.c (_initialize_xcoffread): Add declaration.
13525 * xml-support.c (_initialize_xml_support): Add declaration.
13526 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13527 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13528 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13529 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13530
e2de1eec
SM
135312020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13532
13533 * regformats/regdat.sh: Generate declaration for init function.
13534
e0037b4c
SM
135352020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13536
13537 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13538 up.
13539 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13540 close_one_inferior>: New methods.
13541 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13542 pass down target to find_inferior_pid.
13543 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13544 Pass down target to find_inferior_ptid.
13545 (gdbsim_target::create_inferior): Pass down target to
13546 add_thread_silent.
13547 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13548 target down to find_inferior_ptid and switch_to_thread.
13549 (gdbsim_target::close): Update to call close_one_inferior.
13550 (struct resume_data): Remove.
13551 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13552 directly, rather than through a void pointer.
13553 (gdbsim_target::resume): Update to call resume_one_inferior.
13554
58920b5b
SM
135552020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13556
13557 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13558
4ec89149
PA
135592020-01-12 Pedro Alves <palves@redhat.com>
13560
13561 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13562 directly for the current inferior instead of
13563 discard_all_inferiors.
13564 (discard_all_inferiors): Delete.
13565
7c392d1d
TT
135662020-01-11 Tom Tromey <tom@tromey.com>
13567
13568 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13569 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13570 deprecated_safe_get_selected_frame.
13571
d9ebdab7
TBA
135722020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13573
13574 * inferior.c (print_inferior): Switch inferior before printing it.
13575
f3c469b9
PA
135762020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13577 Pedro Alves <palves@redhat.com>
13578
13579 * progspace-and-thread.c (switch_to_program_space_and_thread):
13580 Assert there's an inferior for PSPACE. Use
13581 switch_to_inferior_no_thread to switch the inferior too.
13582 * progspace.c (program_space::~program_space): Call
13583 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13584 (program_space::free_all_objfiles): Don't call clear_symtab_users
13585 here.
13586 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13587
65c574f6
PA
135882020-01-10 Pedro Alves <palves@redhat.com>
13589
13590 * NEWS: Mention multi-target debugging, "info connections", and
13591 "add-inferior -no-connection".
13592
2f4fcf00
PA
135932020-01-10 Pedro Alves <palves@redhat.com>
13594
13595 * infrun.c: Include "target-connection.h".
13596 (check_multi_target_resumption): New.
13597 (proceed): Call it.
13598 * target-connection.c (make_target_connection_string): Make
13599 extern.
13600 * target-connection.h (make_target_connection_string): Declare.
13601
121b3efd
PA
136022020-01-10 Pedro Alves <palves@redhat.com>
13603
13604 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13605 * inferior.c (uiout_field_connection): New function.
13606 (print_inferior): Add new "connection-id" column.
13607 (add_inferior_command): Show connection number/string of added
13608 inferior.
13609 * process-stratum-target.h
13610 (process_stratum_target::connection_string): New virtual method.
13611 (process_stratum_target::connection_number): New field.
13612 * remote.c (remote_target::connection_string): New override.
13613 * target-connection.c: New file.
13614 * target-connection.h: New file.
13615 * target.c (decref_target): Remove process_stratum targets from
13616 the connection list.
13617 (target_stack::push): Add process_stratum targets to the
13618 connection list.
13619
4f837581
PA
136202020-01-10 Pedro Alves <palves@redhat.com>
13621
13622 Revert:
13623 2016-04-12 Pedro Alves <palves@redhat.com>
13624 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13625 Remove references to name.
13626 * serial.h (struct serial) <name>: Delete.
13627
f4ec508e
PA
136282020-01-10 Pedro Alves <palves@redhat.com>
13629
13630 * gdbarch-selftests.c (register_to_value_test): Remove "target
13631 already pushed" check.
13632
5b6d1e4f
PA
136332020-01-10 Pedro Alves <palves@redhat.com>
13634 John Baldwin <jhb@FreeBSD.org>
13635
13636 * aarch64-linux-nat.c
13637 (aarch64_linux_nat_target::thread_architecture): Adjust.
13638 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13639 (task_command_1): Likewise.
13640 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13641 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13642 (aix_thread_target::store_registers)
13643 (aix_thread_target::thread_alive): Adjust.
13644 * amd64-fbsd-tdep.c: Include "inferior.h".
13645 (amd64fbsd_get_thread_local_address): Pass down target.
13646 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13647 thread's gdbarch instead of target_gdbarch.
13648 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13649 get_last_target_status.
13650 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13651 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13652 inferiors.
13653 (update_inserted_breakpoint_locations): Skip if inferiors with no
13654 execution.
13655 (update_global_location_list): When handling moribund locations,
13656 find representative inferior for location's pspace, and use thread
13657 count of its process_stratum target.
13658 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13659 * bsd-uthread.c (bsd_uthread_target::wait): Use
13660 as_process_stratum_target and adjust thread_change_ptid and
13661 add_thread calls.
13662 (bsd_uthread_target::update_thread_list): Use
13663 as_process_stratum_target and adjust find_thread_ptid,
13664 thread_change_ptid and add_thread calls.
13665 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13666 find_thread_ptid call.
13667 * corelow.c (add_to_thread_list): Adjust add_thread call.
13668 (core_target_open): Adjust add_thread_silent and thread_count
13669 calls.
13670 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13671 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13672 * event-top.c (async_disconnect): Pop targets from all inferiors.
13673 * exec.c (add_target_sections): Push exec target on all inferiors
13674 sharing the program space.
13675 (remove_target_sections): Remove the exec target from all
13676 inferiors sharing the program space.
13677 (exec_on_vfork): New.
13678 * exec.h (exec_on_vfork): Declare.
13679 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13680 Pass it down.
13681 (fbsd_nat_target::update_thread_list): Adjust.
13682 (fbsd_nat_target::resume): Adjust.
13683 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13684 down.
13685 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13686 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13687 get_thread_arch_regcache call.
13688 * fork-child.c (gdb_startup_inferior): Pass target down to
13689 startup_inferior and set_executing.
13690 * gdbthread.h (struct process_stratum_target): Forward declare.
13691 (add_thread, add_thread_silent, add_thread_with_info)
13692 (in_thread_list): Add process_stratum_target parameter.
13693 (find_thread_ptid(inferior*, ptid_t)): New overload.
13694 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13695 parameter.
13696 (all_threads()): Delete overload.
13697 (all_threads, all_non_exited_threads): Add process_stratum_target
13698 parameter.
13699 (all_threads_safe): Use brace initialization.
13700 (thread_count): Add process_stratum_target parameter.
13701 (set_resumed, set_running, set_stop_requested, set_executing)
13702 (threads_are_executing, finish_thread_state): Add
13703 process_stratum_target parameter.
13704 (switch_to_thread): Use is_current_thread.
13705 * i386-fbsd-tdep.c: Include "inferior.h".
13706 (i386fbsd_get_thread_local_address): Pass down target.
13707 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13708 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13709 have_inferiors check.
13710 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13711 (inf_ptrace_target::attach): Adjust.
13712 * infcall.c (run_inferior_call): Adjust.
13713 * infcmd.c (run_command_1): Pass target to
13714 scoped_finish_thread_state.
13715 (proceed_thread_callback): Skip inferiors with no execution.
13716 (continue_command): Rename 'all_threads' local to avoid hiding
13717 'all_threads' function. Adjust get_last_target_status call.
13718 (prepare_one_step): Adjust set_running call.
13719 (signal_command): Use user_visible_resume_target. Compare thread
13720 pointers instead of inferior_ptid.
13721 (info_program_command): Adjust to pass down target.
13722 (attach_command): Mark target's 'thread_executing' flag.
13723 (stop_current_target_threads_ns): New, factored out from ...
13724 (interrupt_target_1): ... this. Switch inferior before making
13725 target calls.
13726 * inferior-iter.h
13727 (struct all_inferiors_iterator, struct all_inferiors_range)
13728 (struct all_inferiors_safe_range)
13729 (struct all_non_exited_inferiors_range): Filter on
13730 process_stratum_target too. Remove explicit.
13731 * inferior.c (inferior::inferior): Push dummy target on target
13732 stack.
13733 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13734 Add process_stratum_target parameter, and pass it down.
13735 (have_live_inferiors): Adjust.
13736 (switch_to_inferior_and_push_target): New.
13737 (add_inferior_command, clone_inferior_command): Handle
13738 "-no-connection" parameter. Use
13739 switch_to_inferior_and_push_target.
13740 (_initialize_inferior): Mention "-no-connection" option in
13741 the help of "add-inferior" and "clone-inferior" commands.
13742 * inferior.h: Include "process-stratum-target.h".
13743 (interrupt_target_1): Use bool.
13744 (struct inferior) <push_target, unpush_target, target_is_pushed,
13745 find_target_beneath, top_target, process_target, target_at,
13746 m_stack>: New.
13747 (discard_all_inferiors): Delete.
13748 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13749 (all_inferiors, all_non_exited_inferiors): Add
13750 process_stratum_target parameter.
13751 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13752 (target_last_proc_target): New global.
13753 (follow_fork_inferior): Push target on new inferior. Pass target
13754 to add_thread_silent. Call exec_on_vfork. Handle target's
13755 reference count.
13756 (follow_fork): Adjust get_last_target_status call. Also consider
13757 target.
13758 (follow_exec): Push target on new inferior.
13759 (struct execution_control_state) <target>: New field.
13760 (user_visible_resume_target): New.
13761 (do_target_resume): Call target_async.
13762 (resume_1): Set target's threads_executing flag. Consider resume
13763 target.
13764 (commit_resume_all_targets): New.
13765 (proceed): Also consider resume target. Skip threads of inferiors
13766 with no execution. Commit resumtion in all targets.
13767 (start_remote): Pass current inferior to wait_for_inferior.
13768 (infrun_thread_stop_requested): Consider target as well. Pass
13769 thread_info pointer to clear_inline_frame_state instead of ptid.
13770 (infrun_thread_thread_exit): Consider target as well.
13771 (random_pending_event_thread): New inferior parameter. Use it.
13772 (do_target_wait): Rename to ...
13773 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13774 down.
13775 (threads_are_resumed_pending_p, do_target_wait): New.
13776 (prepare_for_detach): Adjust calls.
13777 (wait_for_inferior): New inferior parameter. Handle it. Use
13778 do_target_wait_1 instead of do_target_wait.
13779 (fetch_inferior_event): Adjust. Switch to representative
13780 inferior. Pass target down.
13781 (set_last_target_status): Add process_stratum_target parameter.
13782 Save target in global.
13783 (get_last_target_status): Add process_stratum_target parameter and
13784 handle it.
13785 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13786 (context_switch): Check inferior_ptid == null_ptid before calling
13787 inferior_thread().
13788 (get_inferior_stop_soon): Pass down target.
13789 (wait_one): Rename to ...
13790 (poll_one_curr_target): ... this.
13791 (struct wait_one_event): New.
13792 (wait_one): New.
13793 (stop_all_threads): Adjust.
13794 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13795 event's target.
13796 (switch_back_to_stepped_thread): Also consider target.
13797 (print_stop_event): Update.
13798 (normal_stop): Update. Also consider the resume target.
13799 * infrun.h (wait_for_inferior): Remove declaration.
13800 (user_visible_resume_target): New declaration.
13801 (get_last_target_status, set_last_target_status): New
13802 process_stratum_target parameter.
13803 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13804 process_stratum_target parameter, and use it.
13805 (clear_inline_frame_state (thread_info*)): New.
13806 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13807 process_stratum_target parameter.
13808 (clear_inline_frame_state (thread_info*)): Declare.
13809 * linux-fork.c (delete_checkpoint_command): Pass target down to
13810 find_thread_ptid.
13811 (checkpoint_command): Adjust.
13812 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13813 instead of just tweaking inferior_ptid.
13814 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13815 (exit_lwp): Pass target down to find_thread_ptid.
13816 (attach_proc_task_lwp_callback): Pass target down to
13817 add_thread/set_running/set_executing.
13818 (linux_nat_target::attach): Pass target down to
13819 thread_change_ptid.
13820 (get_detach_signal): Pass target down to find_thread_ptid.
13821 Consider last target status's target.
13822 (linux_resume_one_lwp_throw, resume_lwp)
13823 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13824 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13825 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13826 (linux_nat_target::async_wait_fd): New.
13827 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13828 target down.
13829 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13830 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13831 * linux-thread-db.c (struct thread_db_info::process_target): New
13832 field.
13833 (add_thread_db_info): Save target.
13834 (get_thread_db_info): New process_stratum_target parameter. Also
13835 match target.
13836 (delete_thread_db_info): New process_stratum_target parameter.
13837 Also match target.
13838 (thread_from_lwp): Adjust to pass down target.
13839 (thread_db_notice_clone): Pass down target.
13840 (check_thread_db_callback): Pass down target.
13841 (try_thread_db_load_1): Always push the thread_db target.
13842 (try_thread_db_load, record_thread): Pass target down.
13843 (thread_db_target::detach): Pass target down. Always unpush the
13844 thread_db target.
13845 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13846 target down. Always unpush the thread_db target.
13847 (find_new_threads_callback, thread_db_find_new_threads_2)
13848 (thread_db_target::update_thread_list): Pass target down.
13849 (thread_db_target::pid_to_str): Pass current inferior down.
13850 (thread_db_target::get_thread_local_address): Pass target down.
13851 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13852 target down.
13853 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13854 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13855 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13856 (procfs_init_inferior): Rename to ...
13857 (procfs_target::procfs_init_inferior): ... this and adjust.
13858 (procfs_target::create_inferior, procfs_notice_thread)
13859 (procfs_do_thread_registers): Adjust.
13860 * ppc-fbsd-tdep.c: Include "inferior.h".
13861 (ppcfbsd_get_thread_local_address): Pass down target.
13862 * proc-service.c (ps_xfer_memory): Switch current inferior and
13863 program space as well.
13864 (get_ps_regcache): Pass target down.
13865 * process-stratum-target.c
13866 (process_stratum_target::thread_address_space)
13867 (process_stratum_target::thread_architecture): Pass target down.
13868 * process-stratum-target.h
13869 (process_stratum_target::threads_executing): New field.
13870 (as_process_stratum_target): New.
13871 * ravenscar-thread.c
13872 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13873 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13874 down.
13875 * record-btrace.c (record_btrace_target::info_record): Adjust.
13876 (record_btrace_target::record_method)
13877 (record_btrace_target::record_is_replaying)
13878 (record_btrace_target::fetch_registers)
13879 (get_thread_current_frame_id, record_btrace_target::resume)
13880 (record_btrace_target::wait, record_btrace_target::stop): Pass
13881 target down.
13882 * record-full.c (record_full_wait_1): Switch to event thread.
13883 Pass target down.
13884 * regcache.c (regcache::regcache)
13885 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13886 process_stratum_target parameter and handle it.
13887 (current_thread_target): New global.
13888 (get_thread_regcache): Add process_stratum_target parameter and
13889 handle it. Switch inferior before calling target method.
13890 (get_thread_regcache): Pass target down.
13891 (get_thread_regcache_for_ptid): Pass target down.
13892 (registers_changed_ptid): Add process_stratum_target parameter and
13893 handle it.
13894 (registers_changed_thread, registers_changed): Pass target down.
13895 (test_get_thread_arch_aspace_regcache): New.
13896 (current_regcache_test): Define a couple local test_target_ops
13897 instances and use them for testing.
13898 (readwrite_regcache): Pass process_stratum_target parameter.
13899 (cooked_read_test, cooked_write_test): Pass mock_target down.
13900 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13901 (get_thread_arch_aspace_regcache): Add process_stratum_target
13902 parameter.
13903 (regcache::target): New method.
13904 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13905 (regcache::registers_changed_ptid): Add process_stratum_target
13906 parameter.
13907 (regcache::m_target): New field.
13908 (registers_changed_ptid): Add process_stratum_target parameter.
13909 * remote.c (remote_state::supports_vCont_probed): New field.
13910 (remote_target::async_wait_fd): New method.
13911 (remote_unpush_and_throw): Add remote_target parameter.
13912 (get_current_remote_target): Adjust.
13913 (remote_target::remote_add_inferior): Push target.
13914 (remote_target::remote_add_thread)
13915 (remote_target::remote_notice_new_inferior)
13916 (get_remote_thread_info): Pass target down.
13917 (remote_target::update_thread_list): Skip threads of inferiors
13918 bound to other targets. (remote_target::close): Don't discard
13919 inferiors. (remote_target::add_current_inferior_and_thread)
13920 (remote_target::process_initial_stop_replies)
13921 (remote_target::start_remote)
13922 (remote_target::remote_serial_quit_handler): Pass down target.
13923 (remote_target::remote_unpush_target): New remote_target
13924 parameter. Unpush the target from all inferiors.
13925 (remote_target::remote_unpush_and_throw): New remote_target
13926 parameter. Pass it down.
13927 (remote_target::open_1): Check whether the current inferior has
13928 execution instead of checking whether any inferior is live. Pass
13929 target down.
13930 (remote_target::remote_detach_1): Pass down target. Use
13931 remote_unpush_target.
13932 (extended_remote_target::attach): Pass down target.
13933 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13934 (remote_target::append_resumption): Pass down target.
13935 (remote_target::append_pending_thread_resumptions)
13936 (remote_target::remote_resume_with_hc, remote_target::resume)
13937 (remote_target::commit_resume): Pass down target.
13938 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13939 (remote_target::interrupt_query)
13940 (remote_target::remove_new_fork_children)
13941 (remote_target::check_pending_events_prevent_wildcard_vcont)
13942 (remote_target::remote_parse_stop_reply)
13943 (remote_target::process_stop_reply): Pass down target.
13944 (first_remote_resumed_thread): New remote_target parameter. Pass
13945 it down.
13946 (remote_target::wait_as): Pass down target.
13947 (unpush_and_perror): New remote_target parameter. Pass it down.
13948 (remote_target::readchar, remote_target::remote_serial_write)
13949 (remote_target::getpkt_or_notif_sane_1)
13950 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13951 down target.
13952 (remote_target::mourn_inferior): Pass down target. Use
13953 remote_unpush_target.
13954 (remote_target::core_of_thread)
13955 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13956 (remote_target::pid_to_exec_file)
13957 (remote_target::thread_handle_to_thread_info): Pass down target.
13958 (remote_target::async_wait_fd): New.
13959 * riscv-fbsd-tdep.c: Include "inferior.h".
13960 (riscv_fbsd_get_thread_local_address): Pass down target.
13961 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13962 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13963 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13964 Adjust.
13965 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13966 * solib-svr4.c (enable_break): Pass down target.
13967 * spu-multiarch.c (parse_spufs_run): Pass down target.
13968 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13969 * target-delegates.c: Regenerate.
13970 * target.c (g_target_stack): Delete.
13971 (current_top_target): Return the current inferior's top target.
13972 (target_has_execution_1): Refer to the passed-in inferior's top
13973 target.
13974 (target_supports_terminal_ours): Check whether the initial
13975 inferior was already created.
13976 (decref_target): New.
13977 (target_stack::push): Incref/decref the target.
13978 (push_target, push_target, unpush_target): Adjust.
13979 (target_stack::unpush): Defref target.
13980 (target_is_pushed): Return bool. Adjust to refer to the current
13981 inferior's target stack.
13982 (dispose_inferior): Delete, and inline parts ...
13983 (target_preopen): ... here. Only dispose of the current inferior.
13984 (target_detach): Hold strong target reference while detaching.
13985 Pass target down.
13986 (target_thread_name): Add assertion.
13987 (target_resume): Pass down target.
13988 (target_ops::beneath, find_target_at): Adjust to refer to the
13989 current inferior's target stack.
13990 (get_dummy_target): New.
13991 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13992 has a thread running.
13993 (initialize_targets): Rename to ...
13994 (_initialize_target): ... this.
13995 * target.h: Include "gdbsupport/refcounted-object.h".
13996 (struct target_ops): Inherit refcounted_object.
13997 (target_ops::shortname, target_ops::longname): Make const.
13998 (target_ops::async_wait_fd): New method.
13999 (decref_target): Declare.
14000 (struct target_ops_ref_policy): New.
14001 (target_ops_ref): New typedef.
14002 (get_dummy_target): Declare function.
14003 (target_is_pushed): Return bool.
14004 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14005 (all_matching_threads_iterator::all_matching_threads_iterator):
14006 Handle filter target.
14007 * thread-iter.h (struct all_matching_threads_iterator, struct
14008 all_matching_threads_range, class all_non_exited_threads_range):
14009 Filter by target too. Remove explicit.
14010 * thread.c (threads_executing): Delete.
14011 (inferior_thread): Pass down current inferior.
14012 (clear_thread_inferior_resources): Pass down thread pointer
14013 instead of ptid_t.
14014 (add_thread_silent, add_thread_with_info, add_thread): Add
14015 process_stratum_target parameter. Use it for thread and inferior
14016 searches.
14017 (is_current_thread): New.
14018 (thread_info::deletable): Use it.
14019 (find_thread_ptid, thread_count, in_thread_list)
14020 (thread_change_ptid, set_resumed, set_running): New
14021 process_stratum_target parameter. Pass it down.
14022 (set_executing): New process_stratum_target parameter. Pass it
14023 down. Adjust reference to 'threads_executing'.
14024 (threads_are_executing): New process_stratum_target parameter.
14025 Adjust reference to 'threads_executing'.
14026 (set_stop_requested, finish_thread_state): New
14027 process_stratum_target parameter. Pass it down.
14028 (switch_to_thread): Also match inferior.
14029 (switch_to_thread): New process_stratum_target parameter. Pass it
14030 down.
14031 (update_threads_executing): Reimplement.
14032 * top.c (quit_force): Pop targets from all inferior.
14033 (gdb_init): Don't call initialize_targets.
14034 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14035 Declare.
14036 (windows_add_thread, windows_delete_thread): Adjust.
14037 (get_windows_debug_event): Rename to ...
14038 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14039 * tracefile-tfile.c (tfile_target_open): Pass down target.
14040 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14041 Forward declare.
14042 (switch_to_thread): Add process_stratum_target parameter.
14043 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14044 parameter. Use it.
14045 (mi_on_resume): Pass target down.
14046 * nat/fork-inferior.c (startup_inferior): Add
14047 process_stratum_target parameter. Pass it down.
14048 * nat/fork-inferior.h (startup_inferior): Add
14049 process_stratum_target parameter.
14050 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14051
75c6c844
PA
140522020-01-10 Pedro Alves <palves@redhat.com>
14053
14054 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14055 directly. Instead find the first thread in the thread list and
14056 use switch_to_thread.
14057
78f2c40a
PA
140582020-01-10 Pedro Alves <palves@redhat.com>
14059
14060 * remote.c (remote_target::remote_add_inferior): Don't bind a
14061 process to the current inferior if the current inferior is already
14062 bound to a process.
14063
e7af6c70
TBA
140642020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14065 Pedro Alves <palves@redhat.com>
14066
14067 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14068 If no process is specified, return null_ptid instead of
14069 inferior_ptid.
14070 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14071 TARGET_WAITKIND_SIGNALLED with no pid.
14072
31ba933e
PA
140732020-01-10 Pedro Alves <palves@redhat.com>
14074
14075 * remote.c (first_remote_resumed_thread): New.
14076 (remote_target::wait_as): Use it as default event_ptid instead of
14077 inferior_ptid.
14078
735fc2ca
PA
140792020-01-10 Pedro Alves <palves@redhat.com>
14080
14081 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14082
c17e02e1
PA
140832020-01-10 Pedro Alves <palves@redhat.com>
14084
14085 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14086 not -1.
14087
ab1ddbcf
PA
140882020-01-10 Pedro Alves <palves@redhat.com>
14089
14090 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14091 ptid to get_last_target_status.
14092 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14093 ptid to get_last_target_status.
14094 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14095 get_last_target_status.
14096 (info_program_command): Don't pass a target_waitstatus to
14097 get_last_target_status.
14098 * infrun.c (init_wait_for_inferior): Use
14099 nullify_last_target_wait_ptid.
14100 (get_last_target_status): Handle nullptr arguments.
14101 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14102 (print_stop_event): Don't pass a ptid to get_last_target_status.
14103 (normal_stop): Don't pass a ptid to get_last_target_status.
14104 * infrun.h (get_last_target_status, set_last_target_status): Move
14105 comments here and update.
14106 (nullify_last_target_wait_ptid): Declare.
14107 * linux-fork.c (fork_load_infrun_state): Remove local extern
14108 declaration of nullify_last_target_wait_ptid.
14109 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14110 to get_last_target_status.
14111
f3f8ece4
PA
141122020-01-10 Pedro Alves <palves@redhat.com>
14113
14114 * gdbthread.h (scoped_restore_current_thread)
14115 <dont_restore, restore, m_dont_restore>: Declare.
14116 * thread.c (thread_alive): Add assertion. Return bool.
14117 (switch_to_thread_if_alive): New.
14118 (prune_threads): Switch inferior/thread.
14119 (print_thread_info_1): Switch thread before calling target methods.
14120 (scoped_restore_current_thread::restore): New, factored out from
14121 ...
14122 (scoped_restore_current_thread::~scoped_restore_current_thread):
14123 ... this.
14124 (scoped_restore_current_thread::scoped_restore_current_thread):
14125 Add assertion.
14126 (thread_apply_all_command, thread_select): Use
14127 switch_to_thread_if_alive.
14128 * infrun.c (proceed, restart_threads, handle_signal_stop)
14129 (switch_back_to_stepped_thread): Switch current thread before
14130 calling target methods.
14131
db2d40f7
PA
141322020-01-10 Pedro Alves <palves@redhat.com>
14133
14134 * inferior.c (switch_to_inferior_no_thread): New function,
14135 factored out from ...
14136 (inferior_command): ... here.
14137 * inferior.h (switch_to_inferior_no_thread): Declare.
14138 * mi/mi-main.c (run_one_inferior): Use
14139 switch_to_inferior_no_thread.
14140
bd420a2d
PA
141412020-01-10 Pedro Alves <palves@redhat.com>
14142
14143 * infcmd.c (kill_command): Remove dead code.
14144
ddf5db90
PA
141452020-01-10 Pedro Alves <palves@redhat.com>
14146
14147 * remote.c (remote_target::mourn_inferior): No longer check
14148 whether the target is running.
14149
5018ce90
PA
141502020-01-10 Pedro Alves <palves@redhat.com>
14151
14152 * corelow.c (core_target::has_execution): Change parameter type to
14153 inferior pointer.
14154 * inferior.c (number_of_live_inferiors): Use
14155 inferior::has_execution instead of target_has_execution_1.
14156 * inferior.h (inferior::has_execution): New.
14157 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14158 inferior::has_execution instead of target_has_execution_1.
14159 * process-stratum-target.c
14160 (process_stratum_target::has_execution): Change parameter type to
14161 inferior pointer. Check the inferior's PID instead of
14162 inferior_ptid.
14163 * process-stratum-target.h
14164 (process_stratum_target::has_execution): Change parameter type to
14165 inferior pointer.
14166 * record-full.c (record_full_core_target::has_execution): Change
14167 parameter type to inferior pointer.
14168 * target.c (target_has_execution_1): Change parameter type to
14169 inferior pointer.
14170 (target_has_execution_current): Adjust.
14171 * target.h (target_ops::has_execution): Change parameter type to
14172 inferior pointer.
14173 (target_has_execution_1): Change parameter type to inferior
14174 pointer. Change return type to bool.
14175 * tracefile.h (tracefile_target::has_execution): Change parameter
14176 type to inferior pointer.
14177
74375d18
PA
141782020-01-10 Pedro Alves <palves@redhat.com>
14179
14180 * exceptions.c (print_flush): Remove current_top_target() check.
14181
acdf84a6
PA
141822020-01-10 Pedro Alves <palves@redhat.com>
14183
14184 * remote.c (show_remote_exec_file): Show the current inferior's
14185 exec-file instead of the command variable's value.
14186
ec506636
PA
141872020-01-10 Pedro Alves <palves@redhat.com>
14188
14189 * record-full.c (record_full_resume_ptid): New global.
14190 (record_full_target::resume): Set it.
14191 (record_full_wait_1): Use record_full_resume_ptid instead of
14192 inferior_ptid.
14193
873657b9
PA
141942020-01-10 Pedro Alves <palves@redhat.com>
14195
14196 * gdbthread.h (scoped_restore_current_thread)
14197 <dont_restore, restore, m_dont_restore>: Declare.
14198 * thread.c (thread_alive): Add assertion. Return bool.
14199 (switch_to_thread_if_alive): New.
14200 (prune_threads): Switch inferior/thread.
14201 (print_thread_info_1): Switch thread before calling target methods.
14202 (scoped_restore_current_thread::restore): New, factored out from
14203 ...
14204 (scoped_restore_current_thread::~scoped_restore_current_thread):
14205 ... this.
14206 (scoped_restore_current_thread::scoped_restore_current_thread):
14207 Add assertion.
14208 (thread_apply_all_command, thread_select): Use
14209 switch_to_thread_if_alive.
14210
7f0ae84c
GB
142112020-01-10 George Barrett <bob@bob131.so>
14212
14213 * stap-probe.c (stap_modify_semaphore): Don't check for null
14214 semaphores.
14215 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14216 for null semaphores.
14217
f5a7c406
AB
142182020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14219
14220 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14221 all source windows, and maintain horizontal scroll status while
14222 doing so.
14223
9ae6bf64
TT
142242020-01-09 Tom Tromey <tom@tromey.com>
14225
14226 PR tui/18932:
14227 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14228 update_source_window, not print_source_lines.
14229
b2efe70c
AB
142302020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14231
14232 * tui/tui.c (tui_enable): Register tui hooks after calling
14233 tui_display_main.
14234
5f23a082
CB
142352020-01-09 Christian Biesinger <cbiesinger@google.com>
14236
14237 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14238
3061113b
SM
142392020-01-08 Simon Marchi <simon.marchi@efficios.com>
14240
14241 * thread.c (print_thread_info_1): Fix indentation.
14242
57d75002
CB
142432020-01-09 Christian Biesinger <cbiesinger@google.com>
14244
14245 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14246 unique_xmalloc_ptr outside the if to always free the demangled name.
14247
6a053cb1
TT
142482020-01-08 Tom Tromey <tromey@adacore.com>
14249
14250 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14251 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14252 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14253 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14254 Remove.
14255 (section_offsets): New typedef.
14256 * symtab.c (fixup_section, get_msymbol_address): Update.
14257 * symmisc.c (dump_msymbols): Update.
14258 * symfile.h (relative_addr_info_to_section_offsets)
14259 (symfile_map_offsets_to_segments): Update.
14260 * symfile.c (build_section_addr_info_from_objfile)
14261 (init_objfile_sect_indices): Update.
14262 (struct place_section_arg): Change type of "offsets".
14263 (place_section): Update.
14264 (relative_addr_info_to_section_offsets): Change type of
14265 "section_offsets". Remove "num_sections" parameter.
14266 (default_symfile_offsets, syms_from_objfile_1)
14267 (set_objfile_default_section_offset): Update.
14268 (reread_symbols): No need to preserve section offsets by hand.
14269 (symfile_map_offsets_to_segments): Change type of "offsets".
14270 * stap-probe.c (relocate_address): Update.
14271 * stabsread.h (process_one_symbol): Update.
14272 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14273 (solib_target_relocate_section_addresses): Update.
14274 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14275 Update.
14276 * solib-frv.c (frv_relocate_main_executable): Update.
14277 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14278 * solib-aix.c (solib_aix_get_section_offsets): Change return
14279 type.
14280 (solib_aix_solib_create_inferior_hook): Update.
14281 * remote.c (remote_target::get_offsets): Update.
14282 * psymtab.c (find_pc_sect_psymtab): Update.
14283 * psympriv.h (struct partial_symbol) <address, text_low,
14284 text_high>: Update.
14285 * objfiles.h (obj_section_offset): Update.
14286 (struct objfile) <section_offsets>: Change type.
14287 <num_sections>: Remove.
14288 (objfile_relocate): Update.
14289 * objfiles.c (entry_point_address_query): Update
14290 (relocate_one_symbol): Change type of "section_offsets".
14291 (objfile_relocate1, objfile_relocate1): Change type of
14292 "new_offsets".
14293 (objfile_rebase1): Update.
14294 * mipsread.c (mipscoff_symfile_read): Update.
14295 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14296 parameter.
14297 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14298 (parse_external, psymtab_to_symtab_1): Update.
14299 * machoread.c (macho_symfile_offsets): Update.
14300 * ia64-tdep.c (ia64_find_unwind_table): Update.
14301 * hppa-tdep.c (read_unwind_info): Update.
14302 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14303 * dwarf2read.c (create_addrmap_from_index)
14304 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14305 (process_psymtab_comp_unit_reader, add_partial_symbol)
14306 (add_partial_subprogram, process_full_comp_unit)
14307 (read_file_scope, read_func_scope, read_lexical_block_scope)
14308 (read_call_site_scope, dwarf2_rnglists_process)
14309 (dwarf2_ranges_process, dwarf2_ranges_read)
14310 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14311 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14312 Update.
14313 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14314 Update.
14315 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14316 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14317 (process_one_symbol): Change type of "section_offsets".
14318 * ctfread.c (get_objfile_text_range): Update.
14319 * coffread.c (coff_symtab_read, enter_linenos)
14320 (process_coff_symbol): Update.
14321 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14322 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14323
456e800a
TT
143242020-01-08 Tom Tromey <tromey@adacore.com>
14325
14326 * dwarf2read.c (parse_macro_definition): Use std::string.
14327 (parse_macro_definition): Likewise.
14328
6dfa2fc2
TT
143292020-01-08 Tom Tromey <tromey@adacore.com>
14330
14331 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14332 (ATTR_ALLOC_CHUNK): Remove.
14333
421d1616
TT
143342020-01-08 Tom Tromey <tromey@adacore.com>
14335
14336 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14337
43816ebc
TT
143382020-01-08 Tom Tromey <tromey@adacore.com>
14339
14340 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14341 (dwarf2_compute_name, open_dwo_file): Likewise.
14342 (process_enumeration_scope): Use std::vector.
14343 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14344 (partial_die_info::fixup, dwarf2_start_subfile)
14345 (guess_full_die_structure_name, dwarf2_name): Likewise.
14346 (determine_prefix): Update.
14347 (guess_full_die_structure_name): Make return type const.
14348 (partial_die_full_name): Return unique_xmalloc_ptr.
14349 (DW_FIELD_ALLOC_CHUNK): Remove.
14350
4212d509
TT
143512020-01-07 Tom Tromey <tromey@adacore.com>
14352
14353 PR build/24937:
14354 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14355
06a6207a
JT
143562020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14357
14358 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14359
153d79c4
AB
143602020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14361
14362 * stack.c (print_frame_info): Move disassemble_next_line code
14363 inside source_print block.
14364
66182876
EZ
143652020-01-06 Eli Zaretskii <eliz@gnu.org>
14366
14367 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14368 gdb/signals.h, as we are now using native signal symbols.
14369
cbfa8581
SV
143702020-01-06 Shahab Vahedi <shahab@synopsys.com>
14371
14372 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14373 overflow by an early check of content vs threshold.
aac66a4c 14374 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14375 Likewise.
14376
3f602821
EZ
143772020-01-06 Eli Zaretskii <eliz@gnu.org>
14378
14379 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14380
a08c904d
JT
143812020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14382
14383 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14384 export table if no section contains it's RVA.
14385
89a65580
EZ
143862020-01-06 Eli Zaretskii <eliz@gnu.org>
14387
14388 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14389
8b7fcda2
HD
143902020-01-06 Hannes Domani <ssbssa@yahoo.de>
14391
14392 * source.c (print_source_lines_base): Set last_line_listed.
14393
a61b4f69
SV
143942020-01-06 Shahab Vahedi <shahab@synopsys.com>
14395
14396 * tui/tui-disasm.c: Remove trailing spaces.
14397
559e7e50
EZ
143982020-01-06 Eli Zaretskii <eliz@gnu.org>
14399 Pedro Alves <palves@redhat.com>
14400
14401 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14402 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14403 (windows_gdb_signal_to_target): New function, uses the above
14404 enumeration to convert GDB internal signal codes to equivalent
14405 Windows codes.
14406 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14407 * windows-nat.c: Include "gdb_wait.h".
14408 (get_windows_debug_event): Extract the fatal exception from the
14409 exit status and convert to the equivalent Posix signal number.
14410 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14411 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14412 * gdbsupport/gdb_wait.c: New file, implements
14413 windows_status_to_termsig.
14414 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14415 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14416
f2302a34
AB
144172020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14418
14419 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14420 show_layout.
14421
6a5206eb
LM
144222020-01-05 Luis Machado <luis.machado@linaro.org>
14423
14424 * aarch64-linux-nat.c
14425 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14426 and bfd_mach_aarch64.
14427
6ec1d75e
PW
144282020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14429
14430 * ui-file.c (stdio_file::can_emit_style_escape)
14431 (tee_file::can_emit_style_escape): Ensure style is used also on
14432 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14433 to gdb_stdout.
14434 * main.c (set_gdb_data_directory): Use file style to output the
14435 warning that the given pathname is not a directory.
14436 * top.c (show_history_filename, gdb_safe_append_history)
14437 (show_gdb_datadir): Use file style.
14438
44f81a76
HD
144392020-01-03 Hannes Domani <ssbssa@yahoo.de>
14440
14441 * solib-target.c (struct lm_info_target):
14442 Change offsets to be a unique_xmalloc_ptr.
14443 (solib_target_relocate_section_addresses): Update.
14444
25057eb0
HD
144452020-01-03 Hannes Domani <ssbssa@yahoo.de>
14446
14447 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14448
6e2118f5
BE
144492020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14450
14451 * MAINTAINERS (Write After Approval): Add myself.
14452
8133c7dc
LM
144532020-01-02 Luis Machado <luis.machado@linaro.org>
14454
14455 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14456 Cell BE architecture.
14457 * target.h (struct target_ops) <thread_architecture>: Likewise.
14458
48189bec
HD
144592020-01-01 Hannes Domani <ssbssa@yahoo.de>
14460
14461 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14462
ead1063b
HD
144632020-01-01 Hannes Domani <ssbssa@yahoo.de>
14464
14465 * MAINTAINERS (Write After Approval): Add myself.
14466
e5d78223
JB
144672020-01-01 Joel Brobecker <brobecker@adacore.com>
14468
14469 * gdbarch.sh: Update copyright year range of generated files.
14470
b811d2c2
JB
144712020-01-01 Joel Brobecker <brobecker@adacore.com>
14472
14473 Update copyright year range in all GDB files.
14474
5f4def5c
JB
144752020-01-01 Joel Brobecker <brobecker@adacore.com>
14476
14477 * copyright.py: Convert to Python 3.
14478
51fd4002
JB
144792020-01-01 Joel Brobecker <brobecker@adacore.com>
14480
14481 * copyright.py: Adapt after move of gnulib directory from gdb
14482 directory to toplevel directory.
14483
5fb651f2
JB
144842020-01-01 Joel Brobecker <brobecker@adacore.com>
14485
14486 * copyright.py (main): Exit if run from the wrong directory.
14487
5dd8bf88
JB
144882020-01-01 Joel Brobecker <brobecker@adacore.com>
14489
14490 * top.c (print_gdb_version): Change copyright year to 2020.
14491
9f71dacb 144922020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14493
9f71dacb 14494 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14495
9f71dacb 14496For older changes see ChangeLog-2019.
c906108c
SS
14497\f
14498Local Variables:
14499mode: change-log
14500left-margin: 8
14501fill-column: 74
14502version-control: never
57da7796 14503coding: utf-8
c906108c 14504End:
This page took 3.828727 seconds and 4 git commands to generate.