avoid unwarranted assumption in gdb.ada/fixed_points/fixed_points.adb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
60bd1d53
JB
12020-11-01 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
4 gnat_encoded_fixed_type_info. Update all callers.
5
db99d0d0
JB
62020-11-01 Joel Brobecker <brobecker@adacore.com>
7
8 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
9 line too long.
10
75f24e86
JB
112020-11-01 Joel Brobecker <brobecker@adacore.com>
12
13 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
14 cast_from_fixed. Update all callers.
15 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
16 Update all callers.
17 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
18 Update all callers.
19 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
20 ada_scaling_factor.
21 * ada-typeprint.c: Replace call to ada_scaling_factor by call
22 to print_gnat_encoded_fixed_point_type.
23 * ada-valprint.c: Likewise.
24
4f0469cd
AB
252020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
26
27 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
28 (debug_prefixed_printf): Add check of debug_displaced flag.
29 * linux-nat.c (linux_nat_debug_printf): Add check of
30 debug_linux_nat flag.
31
17417fb0
SM
322020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
33
34 * infrun.c (infrun_debug_printf_1): Remove.
35 (displaced_debug_printf_1): Remove.
36 (stop_all_threads): Use debug_prefixed_printf.
37 * infrun.h (infrun_debug_printf_1): Remove.
38 (infrun_debug_printf): Use debug_prefixed_printf.
39 (displaced_debug_printf_1): Remove.
40 (displaced_debug_printf): Use debug_prefixed_printf.
41 * linux-nat.c (linux_nat_debug_printf_1): Remove.
42 (linux_nat_debug_printf): Use debug_prefixed_printf.
43
ad6dba1c
SM
442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
45
46 * configure: Re-generate.
47 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
48 AC_LANG_PROGRAM.
49
b6fb30ed
SM
502020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * configure: Re-generate.
53
5164c117
SM
542020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
55
56 * configure: Re-generate.
57
864ca435
SM
582020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
59
60 * configure: Re-generate.
61
b9442ec1
SM
622020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
63
64 * configure: Re-generate.
65
294f2697
SM
662020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
67
68 * acinclude.m4: Modernize.
69 * configure: Re-generate.
70
5593a99a
SM
712020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
72
73 * configure.ac: Modernize.
74 * configure: Re-generate.
75
e41fda1d
SM
762020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
77
78 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
79 * configure: Re-generate.
80 * configure.ac: Remove AM_PROG_CC_STDC.
81
91e1a0ed
SM
822020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
83
84 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
85 AC_CANONICAL_SYSTEM.
86 * configure: Re-generate.
87
136821d9
SM
882020-10-30 Simon Marchi <simon.marchi@efficios.com>
89
90 * infrun.h (displaced_debug_printf): New macro. Replace
91 displaced debug prints throughout to use it.
92 (displaced_debug_printf_1): New declaration.
93 (displaced_step_dump_bytes): Return string, remove ui_file
94 parameter, update all callers.
95 * infrun.c (displaced_debug_printf_1): New function.
96 (displaced_step_dump_bytes): Return string, remove ui_file
97 parameter
98
aa2045e7
SM
992020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
100
101 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
102
b1ec2735
TT
1032020-10-30 Tom Tromey <tromey@adacore.com>
104
105 * Makefile.in (stamp-init): Depend on config.status.
106
b78b3a29
TBA
1072020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
108
109 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
110
d70bdd3c
PA
1112020-10-30 Pedro Alves <pedro@palves.net>
112
113 * thread.c (lookup_selected_frame): Move ...
114 * frame.c (lookup_selected_frame): ... here.
115
79952e69
PA
1162020-10-30 Pedro Alves <pedro@palves.net>
117
118 * blockframe.c (block_innermost_frame): Use get_selected_frame.
119 * frame.c
120 (scoped_restore_selected_frame::scoped_restore_selected_frame):
121 Use save_selected_frame. Save language as well.
122 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
123 Use restore_selected_frame, and restore language as well.
124 (selected_frame_id, selected_frame_level): New.
125 (selected_frame): Update comments.
126 (save_selected_frame, restore_selected_frame): New.
127 (get_selected_frame): Use lookup_selected_frame.
128 (get_selected_frame_if_set): Delete.
129 (select_frame): Record selected_frame_level and selected_frame_id.
130 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
131 fields.
132 (get_selected_frame): Make 'message' parameter optional.
133 (get_selected_frame_if_set): Delete declaration.
134 (select_frame): Update comments.
135 (save_selected_frame, restore_selected_frame)
136 (lookup_selected_frame): Declare.
137 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
138 * infrun.c (struct infcall_control_state) <selected_frame_level>:
139 New field.
140 (save_infcall_control_state): Use save_selected_frame.
141 (restore_selected_frame): Delete.
142 (restore_infcall_control_state): Use restore_selected_frame.
143 * stack.c (select_frame_command_core, frame_command_core): Use
144 get_selected_frame.
145 * thread.c (restore_selected_frame): Rename to ...
146 (lookup_selected_frame): ... this and make extern. Select the
147 current frame if the frame level is -1.
148 (scoped_restore_current_thread::restore): Also restore the
149 language.
150 (scoped_restore_current_thread::~scoped_restore_current_thread):
151 Don't try/catch.
152 (scoped_restore_current_thread::scoped_restore_current_thread):
153 Save the language as well. Use save_selected_frame.
154
58103c33
SM
1552020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
156
157 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
158 documentation.
159 * gdbarch.h: Re-generate.
160
40a53766
SM
1612020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
162
163 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
164 parameter.
165 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
166 Likewise.
167 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
168 Likewise.
169 * arch-utils.c (default_displaced_step_hw_singlestep):
170 Likewise.
171 * arch-utils.h (default_displaced_step_hw_singlestep):
172 Likewise.
173 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
174 Likewise.
175 * s390-tdep.c (s390_displaced_step_hw_singlestep):
176 Likewise.
177 * gdbarch.c: Re-generate.
178 * gdbarch.h: Re-generate.
179 * infrun.c (resume_1): Adjust.
180
8407f91b
TT
1812020-10-29 Tom Tromey <tom@tromey.com>
182
183 * progspace.c (program_space::~program_space): Don't call
184 exec_close.
185
5008b3b2
TT
1862020-10-29 Tom Tromey <tom@tromey.com>
187
188 * exec.c (exec_target::close): Don't change current program
189 space.
190
d9eebde0
TT
1912020-10-29 Tom Tromey <tom@tromey.com>
192
193 * symfile.c (add_symbol_file_command): Update.
194 * exec.c (program_space::add_target_sections): Rename.
195 * symfile-mem.c (symbol_file_add_from_memory): Update.
196 * progspace.h (struct program_space) <add_target_sections>:
197 Declare new overload.
198 * exec.h (add_target_sections_of_objfile): Don't declare.
199
3769e227
TT
2002020-10-29 Tom Tromey <tom@tromey.com>
201
202 * solib.c (solib_map_sections): Update.
203 * exec.c (program_space::add_target_sections): Now a method.
204 (exec_file_attach): Update.
205 * exec.h (add_target_sections): Don't declare.
206 * progspace.h (struct program_space) <add_target_sections>:
207 Declare.
208
2a3f84af
TT
2092020-10-29 Tom Tromey <tom@tromey.com>
210
211 * progspace.h (struct program_space) <remove_target_sections>:
212 Declare.
213 * exec.c (program_space::remove_target_sections): Now a method.
214 * exec.h (remove_target_sections): Don't declare.
215
004eecfd
TT
2162020-10-29 Tom Tromey <tom@tromey.com>
217
218 * inferior.c (delete_inferior): Update.
219 * progspace.c (program_space::empty): Rename from
220 program_space_empty_p. Return bool.
221 * progspace.h (struct program_space) <empty>: New method.
222 (program_space_empty_p): Don't declare.
223
e39fb971
TT
2242020-10-29 Tom Tromey <tom@tromey.com>
225
226 * progspace.c (program_space::~program_space): Don't call
227 clear_program_space_solib_cache.
228 (program_space::clear_solib_cache): Rename from
229 clear_solib_cache.
230 * solib.c (handle_solib_event): Update.
231 * progspace.h (struct program_space) <clear_solib_cache>: New
232 method.
233 (clear_program_space_solib_cache): Don't declare.
234
a42d7dd8
TT
2352020-10-29 Tom Tromey <tom@tromey.com>
236
237 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
238 * target.c (info_target_command): Update.
239 * symfile.c (syms_from_objfile_1, finish_new_objfile)
240 (symbol_file_clear, reread_symbols): Update.
241 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
242 * stabsread.c (scan_file_globals): Update.
243 * solib.c (update_solib_list): Update.
244 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
245 (svr4_fetch_objfile_link_map, enable_break)
246 (svr4_relocate_main_executable)
247 (svr4_iterate_over_objfiles_in_search_order): Update.
248 * solib-frv.c (lm_base, enable_break)
249 (frv_relocate_main_executable): Update.
250 (main_got, frv_fdpic_find_canonical_descriptor): Update.
251 (frv_fetch_objfile_link_map): Update.
252 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
253 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
254 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
255 * remote.c (remote_target::get_offsets): Update.
256 (remote_target::start_remote)
257 (extended_remote_target::post_attach): Update.
258 * objfiles.c (entry_point_address_query): Update.
259 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
260 * minsyms.c (get_symbol_leading_char): Update.
261 * frame.c (inside_main_func): Update.
262 * progspace.h (symfile_objfile): Remove macro.
263
19f6550e
TT
2642020-10-29 Tom Tromey <tom@tromey.com>
265
266 * exec.c (exec_file_attach): Update.
267 * progspace.c (program_space::exec_close): Update.
268 * progspace.h (struct program_space) <ebfd>: Now a
269 gdb_bfd_ref_ptr.
270 <set_exec_bfd>: Change argument type.
271 <exec_bfd>: Update.
272
7e10abd1
TT
2732020-10-29 Tom Tromey <tom@tromey.com>
274
275 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
276 * symfile.c (reread_symbols): Update.
277 * symfile-mem.c (add_symbol_file_from_memory_command)
278 (add_vsyscall_page): Update.
279 * source-cache.c (source_cache::get_plain_source_lines): Update.
280 * solib-svr4.c (find_program_interpreter, elf_locate_base)
281 (svr4_current_sos_direct, svr4_exec_displacement)
282 (svr4_relocate_main_executable): Update.
283 (svr4_iterate_over_objfiles_in_search_order): Update.
284 * solib-frv.c (enable_break2, enable_break): Update.
285 * solib-dsbt.c (lm_base, enable_break): Update.
286 * solib-darwin.c (find_program_interpreter)
287 (darwin_solib_create_inferior_hook): Update.
288 * sol-thread.c (rw_common, ps_pdmodel): Update.
289 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
290 * remote.c (compare_sections_command)
291 (remote_target::trace_set_readonly_regions): Update.
292 * remote-sim.c (get_sim_inferior_data)
293 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
294 (gdbsim_target_open, gdbsim_target::files_info): Update.
295 * exec.h (exec_bfd): Remove macro.
296 * progspace.c (initialize_progspace): Update.
297 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
298 Update.
299 * nto-procfs.c (nto_procfs_target::post_attach)
300 (nto_procfs_target::create_inferior): Update.
301 * maint.c (maintenance_info_sections): Update.
302 * linux-thread-db.c (thread_db_target::get_thread_local_address):
303 Update.
304 * infcmd.c (post_create_inferior): Update.
305 * gcore.c (default_gcore_arch, default_gcore_target): Update.
306 (objfile_find_memory_regions): Update.
307 * exec.c (validate_exec_file, exec_file_attach)
308 (exec_read_partial_read_only, print_section_info): Update.
309 * corelow.c (core_target_open): Update.
310 * corefile.c (reopen_exec_file, validate_files): Update.
311 * arm-tdep.c (gdb_print_insn_arm): Update.
312 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
313 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
314 methods.
315
b55221ab
TT
3162020-10-29 Tom Tromey <tom@tromey.com>
317
318 * progspace.h (current_target_sections): Remove macro.
319 * solib-svr4.c (scan_dyntag): Update.
320 * solib-dsbt.c (scan_dyntag): Update.
321 * exec.c (exec_target::close): Update.
322 (add_target_sections, add_target_sections_of_objfile)
323 (remove_target_sections, exec_target::get_section_table)
324 (exec_target::files_info, set_section_command)
325 (exec_set_section_address, exec_target::has_memory)
326 (exec_target::has_memory): Update.
327
5a36e715
TT
3282020-10-29 Tom Tromey <tom@tromey.com>
329
330 * source-cache.c (source_cache::get_plain_source_lines): Use
331 current_program_space.
332 * corefile.c (reopen_exec_file): Use current_program_space.
333 * exec.c (exec_file_attach): Use current_program_space.
334 * exec.h (exec_bfd_mtime): Remove.
335
784c8592
TT
3362020-10-29 Tom Tromey <tom@tromey.com>
337
338 * gcore.c (default_gcore_mach): Remove.
339 (create_gcore_bfd): Update.
340
8a4f1402
TT
3412020-10-29 Tom Tromey <tom@tromey.com>
342
343 * progspace.c (program_space::exec_close): New method, from
344 exec_close in exec.c.
345 * exec.c (exec_close): Move to progspace.c.
346 (exec_target::close, exec_file_attach): Update.
347 * progspace.h (struct program_space) <exec_close>: Declare
348 method.
349
c20cb686
TT
3502020-10-29 Tom Tromey <tom@tromey.com>
351
352 * progspace.h (struct program_space) <exec_filename>: Rename from
353 pspace_exec_filename. Now a unique_xmalloc_ptr.
354 * inferior.c (print_selected_inferior): Update.
355 (print_inferior): Update.
356 * mi/mi-main.c (print_one_inferior): Update.
357 * exec.h (exec_filename): Remove macro.
358 * corefile.c (get_exec_file): Update.
359 * exec.c (exec_close): Update.
360 (exec_file_attach): Update.
361 * progspace.c (clone_program_space): Update.
362 (print_program_space): Update.
363
6be2a9ab
TT
3642020-10-29 Tom Tromey <tom@tromey.com>
365
366 * target-section.h (struct target_section): Add constructor.
367 * exec.c (build_section_table, add_target_sections_of_objfile):
368 Update.
369 * corelow.c (core_target::build_file_mappings): Update.
370
cfaa8f76
TBA
3712020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
372
373 PR gdb/19318
374 * inferior.c (detach_inferior_command): Restore the current thread.
375 (kill_inferior_command): Ditto.
376
1b00ef06
TV
3772020-10-28 Tom de Vries <tdevries@suse.de>
378
379 PR symtab/26772
380 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
381 map, check it in the "best match" loop.
382
7f40ce1a
SM
3832020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
384
385 * m32c-tdep.c: Remove unused includes.
386
5eb9e3f5
SM
3872020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
388
389 * xtensa-tdep.c: Remove includes.
390
b1d4d8d1
TBA
3912020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
392
393 * breakpoint.c (struct condition_command_opts): New struct.
394 (condition_command_option_defs): New static global.
395 (make_condition_command_options_def_group): New function.
396 (condition_completer): Update to consider the '-force' flag.
397 (condition_command): Use gdb::option for the '-force' flag.
398
bd24c5d6
TV
3992020-10-27 Tom de Vries <tdevries@suse.de>
400
401 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
402 symbols in section check.
403
61eb46a4
TV
4042020-10-27 Tom de Vries <tdevries@suse.de>
405
406 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
407
733d554a
TBA
4082020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
409
410 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
411 * breakpoint.c: Update the help text of the 'condition' and 'break'
412 commands.
413 (set_breakpoint_condition): Take a new bool parameter
414 to control whether condition definition should be forced even when
415 the condition expression is invalid in all of the current locations.
416 (condition_command): Update the call to 'set_breakpoint_condition'.
417 (find_condition_and_thread): Take the "-force-condition" flag into
418 account.
419 * linespec.c (linespec_keywords): Add "-force-condition" as an
420 element.
421 (FORCE_KEYWORD_INDEX): New #define.
422 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
423 as a keyword.
424 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
425 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
426 * python/py-breakpoint.c (bppy_set_condition): Ditto.
427 * NEWS: Mention the changes to the 'break' and 'condition' commands.
428
b5fa468f
TBA
4292020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
430
431 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
432 * breakpoint.c (set_breakpoint_location_condition): New function.
433 (set_breakpoint_condition): Disable a breakpoint location if parsing
434 the condition string gives an error.
435 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
436 (build_target_condition_list): Ditto.
437 (build_target_command_list): Ditto.
438 (build_bpstat_chain): Ditto.
439 (print_one_breakpoint_location): Ditto.
440 (print_one_breakpoint): Ditto.
441 (breakpoint_1): Ditto.
442 (bp_location::bp_location): Ditto.
443 (locations_are_equal): Ditto.
444 (update_breakpoint_locations): Ditto.
445 (enable_disable_bp_num_loc): Ditto.
446 (init_breakpoint_sal): Use set_breakpoint_location_condition.
447 (find_condition_and_thread_for_sals): New static function.
448 (create_breakpoint): Call find_condition_and_thread_for_sals.
449 (location_to_sals): Call find_condition_and_thread_for_sals instead
450 of find_condition_and_thread.
451
1c47ec3e
TV
4522020-10-26 Tom de Vries <tdevries@suse.de>
453
454 * dwarf2/read.c (process_full_comp_unit): Call
455 dwarf2_find_base_address.
456
6390859c
TT
4572020-10-26 Tom Tromey <tromey@adacore.com>
458
459 * gdbtypes.c (create_range_type): Revert previous patch. Add
460 comment.
461
d744f0f9
PA
4622020-10-26 Pedro Alves <pedro@palves.net>
463
464 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
465 (my_waitpid): Use gdb::handle_eintr.
466
006811bc
SM
4672020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
468
469 * acinclude.m4: Update ptrace.m4 path.
470 * ptrace.m4: Moved to gdbsupport.
471
c75e31a1
SM
4722020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
473
474 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
475 instead of target_gdbarch.
476
32495661
SM
4772020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
478
479 * jit.c (jit_reader_load_command): Pass current inferior.
480 (jit_inferior_init): Change parameter type to inferior, use it.
481 (jit_inferior_created): Remove.
482 (jit_inferior_created_hook): Pass inferior parameter down.
483 (_initialize_jit): Use jit_inferior_created_hook instead of
484 jit_inferior_created.
485 * jit.h (jit_inferior_created_hook): Add inferior parameter.
486 * infrun.c (follow_exec): Pass inferior to
487 jit_inferior_created_hook.
488
3f66685e
SM
4892020-10-24 Simon Marchi <simon.marchi@efficios.com>
490
491 * linux-thread-db.c (check_pid_namespace_match): Add inferior
492 parameter and use it.
493 (thread_db_inferior_created): Pass inferior argument.
494
a0ff652f
SM
4952020-10-24 Simon Marchi <simon.marchi@efficios.com>
496
497 * aix-thread.c (aix_thread_inferior_created): Add inferior
498 parameter.
499 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
500 * dummy-frame.c (cleanup_dummy_frames): Likewise.
501 * jit.c (jit_inferior_created): Likewise.
502 * linux-thread-db.c (thread_db_inferior_created): Likewise.
503 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
504 * observable.h (inferior_created): Likewise.
505 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
506 * symfile-mem.c (add_vsyscall_page): Likewise.
507 * infcmd.c (post_create_inferior): Pass inferior argument.
508
3c67532c
JB
5092020-10-24 Joel Brobecker <brobecker@adacore.com>
510
511 GDB 10.1 released.
512
8747316e
JB
5132020-10-23 Joel Brobecker <brobecker@adacore.com>
514
515 * ada-typeprint.c (ada_print_type): Remove superfluous second call
516 to ada_check_typedef.
517
1a0ea399
AB
5182020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
519
520 * f-exp.y (f_parse): Rename to...
521 (f_language::parser): ...this.
522 * f-lang.c (f_get_encoding): Rename to...
523 (f_language::get_encoding): ...this.
524 (f_op_print_tab): Rename to...
525 (f_language::op_print_tab): ...this.
526 (exp_descriptor_f): Rename to...
527 (f_language::exp_descriptor_tab): ...this.
528 (class f_language): Moved to f-lang.h.
529 (f_language::language_arch_info): New function, moved out of class
530 declaration.
531 (f_language::search_name_hash): Likewise.
532 (f_language::lookup_symbol_nonlocal): Likewise.
533 (f_language::get_symbol_name_matcher_inner): Likewise.
534 * f-lang.h: Add 'valprint.h' include.
535 (class f_language): Moved here from f-lang.c.
536 * f-typeprint.c (f_type_print_args): Delete commented out
537 declaration.
538 (f_print_typedef): Rename to...
539 (f_language::print_typedef): ...this.
540 (f_print_type): Rename to...
541 (f_language::print_type): ...this.
542 (f_type_print_varspec_prefix): Delete declaration and rename to...
543 (f_language::f_type_print_varspec_prefix): ...this.
544 (f_type_print_varspec_suffix): Delete declaration and rename to...
545 (f_language::f_type_print_varspec_suffix): ...this.
546 (f_type_print_base): Delete declaration and rename to...
547 (f_language::f_type_print_base): ...this.
548 * f-valprint.c (f_value_print_inner): Rename to...
549 (f_language::value_print_inner): ...this.
550 * parse.c: Delete 'f-lang.h' include.
551
88cefd9b
AB
5522020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
553
554 * language.h (language_defn::print_type): Add variable names in
555 declaration, and update header comment.
556
5399db93
AB
5572020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
558
559 * ada-lang.c (ada_language::demangle): Rename to...
560 (ada_language::demangle_symbol): ...this.
561 * c-lang.c (cplus_language::demangle): Rename to...
562 (cplus_language::demangle_symbol): ...this.
563 * d-lang.c (d_language::demangle): Rename to...
564 (d_language::demangle_symbol): ...this.
565 * f-lang.c (f_language::demangle): Rename to...
566 (f_language::demangle_symbol): ...this.
567 * go-lang.c (go_language::demangle): Rename to...
568 (go_language::demangle_symbol): ...this.
569 * language.c (language_demangle): Update call to demangle_symbol.
570 (auto_or_unknown_language::demangle): Rename to...
571 (auto_or_unknown_language::demangle_symbol): ...this.
572 * language.h (language_defn::demangle): Rename to...
573 (language_defn::demangle_symbol): ...this.
574 * objc-lang.c (objc_language::demangle): Rename to...
575 (objc_language::demangle_symbol): ...this.
576 * rust-lang.c (rust_language::demangle): Rename to...
577 (rust_language::demangle_symbol): ...this.
578
4b2f86ef
AB
5792020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
580
581 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
582 (iterate_over_file_blocks): Replace use of macro with the macros
583 definition.
584
e74b39de
AB
5852020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
586
587 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
588 * valprint.c (maybe_print_array_index): Replace use of macro with
589 the macros definition.
590
00c696a6
AB
5912020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
592
593 * ada-lang.c (ada_language::print_array_index): Call value_print
594 directly.
595 * language.c (language_defn::print_array_index): Likewise.
596 * language.h (LA_VALUE_PRINT): Delete.
597 * valprint.c (value_print): Call value_print on the
598 current_language directly.
599
d3b67c56
AB
6002020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
601
602 * language.h (LA_PRINT_TYPEDEF): Delete.
603 * typeprint.c (typedef_print): Call print_typedef directly on the
604 current_language object.
605
790e2a12
AB
6062020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
607
608 * m2-exp.y (m2_parse): Rename to...
609 (m2_language::parser): ...this. Update function signature.
610 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
611 (m2_op_print): Rename to...
612 (m2_language::op_print_tab): ...this, and make const.
613 (exp_descriptor_modula2): Rename to...
614 (m2_language::exp_descriptor_modula2): ...this.
615 (class m2_language): Move to m2-lang.h.
616 (m2_language::language_arch_info): New function, moved out of
617 class declaration.
618 (m2_language::printchar): New function, body from m2_printchar.
619 (m2_language::printstr): New function, moved out of class
620 declaration.
621 (m2_language::emitchar): Likewise.
622 * m2-lang.h (m2_parse): Delete declaration.
623 (m2_print_typedef): Delete declaration.
624 (m2_value_print_inner): Delete declaration.
625 (class m2_language): Class declaration moved from m2-lang.c,
626 larger functions are left in m2-lang.c.
627 * m2-typeprint.c (m2_print_typedef): Rename to...
628 (m2_language::print_typedef): ...this, and update function
629 signature.
630 * m2-valprint.c (m2_value_print_inner): Rename to...
631 (m2_language::value_print_inner): ...this, replace use of
632 LA_PRINT_STRING with a direct call to printstr member function,
633 and update recursive call.
634
b01175fc
AB
6352020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
636
637 * language.c (default_is_string_type_p): Delete, implementation
638 moved into auto_or_unknown_language::is_string_type_p.
639 (unk_op_print_tab): Moved into
640 auto_or_unknown_language::opcode_print_table.
641 (unknown_language_arch_info): Delete, implementation moved into
642 auto_or_unknown_language::language_arch_info.
643 (class auto_or_unknown_language): New class, member functions
644 copied from unknown_language class, with some updates.
645 (class unknown_language): Most member functions moved into
646 auto_or_unknown_language class. Inherit from
647 auto_or_unknown_language class.
648 (class auto_language): Inherit from auto_or_unknown_language.
649 Delete most member functions.
650
1a97fe8c
HD
6512020-10-22 Hannes Domani <ssbssa@yahoo.de>
652
653 * stabsread.c (read_member_functions): Remove gdb_assert.
654
6b9d0dfd
HD
6552020-10-22 Hannes Domani <ssbssa@yahoo.de>
656
657 * gdbtypes.c (init_complex_type): Check target type name.
658
4b4bb603
SM
6592020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
660
661 * target-debug.h (target_debug_print_struct_target_ops_p):
662 Remove.
663 (target_debug_print_async_callback_ftype_p): Remove.
664 (target_debug_print_struct_trace_state_variable_p): Remove.
665 (target_debug_print_struct_traceframe_info_p): Remove.
666 (target_debug_print_VEC__btrace_block_s__pp): Remove.
667 (target_debug_print_enum_btrace_format): Remove.
668 (target_debug_print_enum_info_proc_what): Remove.
669 (target_debug_print_thread_info_pp): Remove.
670
24f5300a
SM
6712020-10-22 Simon Marchi <simon.marchi@efficios.com>
672
673 * target.h (struct target_ops) <make_corefile_notes>:
674 Change return type to unique pointer.
675 * target.c (dummy_make_corefile_notes): Likewise.
676 * exec.c (struct exec_target) <make_corefile_notes>:
677 Likewise.
678 (exec_target::make_corefile_notes): Likewise.
679 * procfs.c (class procfs_target) <make_corefile_notes>:
680 Likewise.
681 (procfs_do_thread_registers): Adjust to unique pointer.
682 (struct procfs_corefile_thread_data): Add constructor.
683 <note_data>: Change type to unique pointer.
684 (procfs_corefile_thread_callback): Adjust to unique pointer.
685 (procfs_target::make_corefile_notes): Change return type to
686 unique pointer.
687 * target-delegates.c: Re-generate.
688 * gcore.c (write_gcore_file_1): Adjust.
689 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
690 New.
691
5fb4027f
TV
6922020-10-22 Tom de Vries <tdevries@suse.de>
693
694 * block.c (find_block_in_blockvector): Make sure the returned block
695 contains pc.
696
4a636814
SM
6972020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
698
699 PR gdb/26693
700 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
701 parameter.
702 (load_cu): Pass existing CU.
703 (process_imported_unit_die): Likewise.
704 (follow_die_offset): Likewise.
705
1bd57575
LM
7062020-10-22 Luis Machado <luis.machado@linaro.org>
707
708 * corelow.c (core_target::xfer_partial): Also check for an empty
709 m_core_unavailable_mappings vector.
710
6b4c676c
AB
7112020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
712
713 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
714 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
715 * f-exp.y (arglist): Allow for a series of subranges.
716 (subrange): Add cases for subranges with strides.
717 * f-lang.c (value_f90_subarray): Catch use of array strides and
718 throw an error.
719 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
720
f2d8e4c5
AB
7212020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 * expprint.c (print_subexp_standard): Change enum range_type to
724 range_flag and rename variables to match.
725 (dump_subexp_body_standard): Likewise.
726 * expression.h (enum range_type): Rename to...
727 (enum range_flag): ...this.
728 (range_types): Rename to...
729 (range_flags): ...this.
730 * f-lang.c (value_f90_subarray): Change enum range_type to
731 range_flag and rename variables to match.
732 * parse.c (operator_length_standard): Likewise.
733 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
734 range_type to range_flag.
735 * rust-lang.c (rust_evaluate_funcall): Likewise.
736 (rust_range): Likewise.
737 (rust_compute_range): Likewise.
738 (rust_subscript): Likewise.
739
2f1b18db
AB
7402020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
741
742 * expprint.c (print_subexp_standard): Update to reflect changes to
743 enum range_type.
744 (dump_subexp_body_standard): Likewise.
745 * expression.h (enum range_type): Convert to a bit field enum, and
746 make the enum unsigned.
747 * f-exp.y (subrange): Update to reflect changes to enum
748 range_type.
749 * f-lang.c (value_f90_subarray): Likewise.
750 * parse.c (operator_length_standard): Likewise.
751 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
752 * rust-lang.c (rust_range): Likewise.
753 (rust_compute_range): Likewise.
754 (rust_subscript): Likewise.
755
a46d1843
SM
7562020-10-21 Simon Marchi <simon.marchi@efficios.com>
757
758 * infrun.c (displaced_step_in_progress_thread): Fix comment.
759 (displaced_step_in_progress): Fix comment.
760
c21f37a8
SM
7612020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
762
763 * gdbarch.sh (make_corefile_notes): Return unique pointer.
764 * gdbarch.c: Re-generate.
765 * gdbarch.h: Re-generate.
766 * gcore.c (write_gcore_file_1): Adjust.
767 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
768 constructor.
769 <note_data>: Change type to unique pointer.
770 <abort_iteration>: Change type to bool.
771 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
772 (fbsd_collect_thread_registers): Return void, adjust.
773 (struct fbsd_corefile_thread_data): Add construtor.
774 <note_data>: Change type to unique pointer.
775 (fbsd_corefile_thread): Adjust.
776 (fbsd_make_corefile_notes): Return unique pointer, adjust.
777 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
778 to unique pointer, adjust.
779 (struct linux_collect_regset_section_cb_data): Add constructor.
780 <note_data>: Change type to unique pointer.
781 <abort_iteration>: Change type to bool.
782 (linux_collect_thread_registers): Return void, adjust.
783 (struct linux_corefile_thread_data): Add constructor.
784 <note_data>: Change type to unique pointer.
785 (linux_corefile_thread): Adjust.
786 (linux_make_corefile_notes): Return unique pointer, adjust.
787
07fbbd01
SM
7882020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
789
790 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
791 * gdbarch.c: Re-generate.
792 * gdbarch.h: Re-generate.
793 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
794 bool.
795 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
796 Likewise.
797 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
798 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
799 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
800 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
801
39535193
SM
8022020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
803
804 * gdbarch.sh: Make generated predicates return bool.
805 * gdbarch.c: Re-generate.
806 * gdbarch.h: Re-generate.
807
ad523d01
TT
8082020-10-20 Tom Tromey <tom@tromey.com>
809
810 * varobj-iter.h (struct varobj_item): Remove typedef.
811
c4464ade
SM
8122020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
813
814 * infrun.c (currently_stepping): Change int to bool
815 (maybe_software_singlestep): Likewise.
816 (show_stop_on_solib_events): Likewise.
817 (stepping_past_nonsteppable_watchpoint): Likewise.
818 (displaced_step_in_progress_any_inferior): Likewise.
819 (displaced_step_in_progress_thread): Likewise.
820 (keep_going_stepped_thread): Likewise.
821 (thread_still_needs_step_over): Likewise.
822 (start_step_over): Likewise.
823 (do_target_resume): Likewise.
824 (resume_1): Likewise.
825 (clear_proceed_status): Likewise.
826 (thread_still_needs_step_over_bp): Likewise.
827 (proceed): Likewise.
828 (switch_back_to_stepped_thread): Likewise.
829 (adjust_pc_after_break): Likewise.
830 (stepped_in_from): Likewise.
831 (handle_stop_requested): Likewise.
832 (handle_syscall_event): Likewise.
833 (handle_no_resumed): Likewise.
834 (handle_inferior_event): Likewise.
835 (finish_step_over): Likewise.
836 (handle_signal_stop): Likewise.
837 (process_event_stop_test): Likewise.
838
2eb20436
SM
8392020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
840
841 * infrun.c (get_displaced_stepping_state): Fix comment.
842
e0c45ded
AS
8432020-10-20 Andreas Schwab <schwab@linux-m68k.org>
844
845 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
846
22cc388e
TT
8472020-10-19 Tom Tromey <tromey@adacore.com>
848
849 PR tui/26719
850 * tui/tui-winsource.h (struct tui_source_window_base)
851 <refresh_window>: Rename from refresh_pad.
852 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
853 Rename from refresh_pad.
854 (tui_source_window_base::show_source_content)
855 (tui_source_window_base::do_scroll_horizontal): Update.
856
3c6eb4d4
TBA
8572020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
858
859 * thread.c (_initialize_thread): Fine-tune the help text of
860 'info threads'.
861
26703721
TBA
8622020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
863
864 * frame.c: Remove the unused 'uinteger_option_def' type alias.
865
61c26be8
MS
8662020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
867
868 * breakpoint.c (handle_jit_event): Add an argument, change how
869 `jit_event_handler` is called.
870
932539d7
TT
8712020-10-17 Tom Tromey <tom@tromey.com>
872
873 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
874 (scan_xcoff_symtab): Update.
875 * psymtab.h (class psymtab_storage) <global_psymbols,
876 static_psymbols, current_global_psymbols,
877 current_static_psymbols>: Remove.
878 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
879 (match_partial_symbol, lookup_partial_symbol): Update.
880 (print_partial_symbols): Change parameters.
881 (dump_psymtab, recursively_search_psymtabs)
882 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
883 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
884 (concat): Remove.
885 (end_psymtab_common): Simplify.
886 (append_psymbol_to_list): Change parameters.
887 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
888 (init_psymbol_list): Simplify.
889 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
890 * psympriv.h (struct partial_symtab) <empty>: New method.
891 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
892 Remove.
893 <global_psymbols, static_psymbols>: New members.
894 <add_psymbol>: New methods.
895 (add_psymbol_to_list): Don't declare.
896 (psymbol_placement): Move earlier.
897 * mdebugread.c (parse_partial_symbols): Update.
898 (handle_psymbol_enumerators): Change parameters.
899 (mdebug_expand_psymtab): Update.
900 * dwarf2/read.c (process_psymtab_comp_unit_reader)
901 (add_partial_symbol): Update.
902 * dwarf2/index-write.c (write_psymbols): Change parameters.
903 (write_one_signatured_type): Update.
904 (recursively_count_psymbols): Update.
905 (recursively_write_psymbols): Update.
906 (class debug_names) <recursively_write_psymbols>: Update.
907 <write_psymbols>: Change parameters.
908 <write_one_signatured_type>: Update.
909 * dbxread.c (read_dbx_symtab): Update.
910 (dbx_end_psymtab): Use partial_symtab::empty.
911 * ctfread.c (struct ctf_context) <pst>: New member.
912 (create_partial_symtab): Set it.
913 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
914 (scan_partial_symbols): Use the psymtab's context. Update.
915
cfabbd35
TT
9162020-10-17 Tom Tromey <tom@tromey.com>
917
918 * valprint.c (generic_value_print): Remove comment.
919 * m2-valprint.c (m2_value_print_inner): Remove comment.
920 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
921 type.
922
520596f2
TV
9232020-10-17 Tom de Vries <tdevries@suse.de>
924
925 PR symtab/26317
926 * source.c (select_source_symtab): Handling sal.symtab == NULL for
927 symbol main.
928
76547ab3
TV
9292020-10-14 Tom de Vries <tdevries@suse.de>
930
931 PR gdb/26733
932 * solib.c (solib_contains_address_p): Handle
933 'solib->sections == nullptr'.
934
d3a07122
SM
9352020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
936
937 PR gdb/26642
938 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
939 target can't do async.
940 * target.c (target_wait): Assert that we don't pass
941 TARGET_WNOHANG to a target that can't async.
942
1b71cfcf
KR
9432020-10-13 Kamil Rytarowski <n54@gmx.com>
944
945 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
946 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
947 * alpha-bsd-nat.c: Adjust include.
948 * alpha-bsd-tdep.h: Adjust comment.
949 * alpha-nbsd-tdep.c: Rename to ...
950 * alpha-netbsd-tdep.c: ... this, adjust include.
951 * amd64-nbsd-nat.c: Rename to ...
952 * amd64-netbsd-nat.c: ... this, adjust include.
953 * amd64-nbsd-tdep.c: Rename to ...
954 * amd64-netbsd-tdep.c: ... this, adjust include.
955 * amd64-tdep.h: Adjust include.
956 * arm-nbsd-nat.c: Rename to ...
957 * arm-netbsd-nat.c: ... this, adjust include.
958 * arm-nbsd-tdep.c: Rename to ...
959 * arm-netbsd-tdep.c: ... this, adjust include.
960 * arm-nbsd-tdep.h: Rename to ...
961 * arm-netbsd-tdep.h: ... this, adjust include.
962 * configure.nat: Adjust file lists.
963 * configure.tgt: Likewise.
964 * hppa-nbsd-nat.c: Rename to ...
965 * hppa-netbsd-nat.c: ... this, adjust include.
966 * hppa-nbsd-tdep.c: Rename to ...
967 * hppa-netbsd-tdep.c: ... this, adjust include.
968 * i386-nbsd-nat.c: Rename to ...
969 * i386-netbsd-nat.c: ... this, adjust include.
970 * i386-nbsd-tdep.c: Rename to ...
971 * i386-netbsd-tdep.c: ... this, adjust include.
972 * m68k-bsd-nat.c: Adjust include.
973 * mips-nbsd-nat.c: Rename to ...
974 * mips-netbsd-nat.c: ... this, adjust include.
975 * mips-nbsd-tdep.c: Rename to ...
976 * mips-netbsd-tdep.c: ... this, adjust include.
977 * mips-nbsd-tdep.h: Rename to ...
978 * mips-netbsd-tdep.h: ... this.
979 * nbsd-nat.c: Rename to ...
980 * netbsd-nat.c: ... this, adjust include.
981 * nbsd-nat.h: Rename to ...
982 * netbsd-nat.h: ... this, adjust include.
983 * nbsd-tdep.c: Rename to ...
984 * netbsd-tdep.c: ... this, adjust include.
985 * nbsd-tdep.h: Rename to ...
986 * netbsd-tdep.h: ... this.
987 * ppc-nbsd-nat.c: Rename to ...
988 * ppc-netbsd-nat.c: ... this, adjust include.
989 * ppc-nbsd-tdep.c: Rename to ...
990 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
991 * ppc-nbsd-tdep.h: Rename to ...
992 * ppc-netbsd-tdep.h: ... this.
993 * sh-nbsd-nat.c: Rename to ...
994 * sh-netbsd-nat.c: ... this, adjust include.
995 * sh-nbsd-tdep.c: Rename to ...
996 * sh-netbsd-tdep.c: ... this, adjust include.
997 * sparc-nbsd-nat.c: Rename to ...
998 * sparc-netbsd-nat.c: ... this.
999 * sparc-nbsd-tdep.c: Rename to ...
1000 * sparc-netbsd-tdep.c: ... this, adjust include.
1001 * sparc64-nbsd-nat.c: Rename to ...
1002 * sparc64-netbsd-nat.c: ... this.
1003 * sparc64-nbsd-tdep.c: Rename to ...
1004 * sparc64-netbsd-tdep.c: ... this, adjust include.
1005 * sparc64-tdep.h: Adjust comment.
1006 * vax-bsd-nat.c: Adjust include.
1007 * vax-nbsd-tdep.c: Rename to ...
1008 * vax-netbsd-tdep.c: ... this, adjust include.
1009
d7a78e5c
TT
10102020-10-12 Tom Tromey <tom@tromey.com>
1011
1012 * target.h (struct target_ops) <get_section_table>: Update.
1013 (target_get_section_table): Update.
1014 * target.c (target_get_section_table, target_section_by_addr)
1015 (memory_xfer_partial_1): Update.
1016 * target-section.h (target_section_table): Now an alias.
1017 * target-delegates.c: Rebuild.
1018 * target-debug.h (target_debug_print_target_section_table_p):
1019 Rename from target_debug_print_struct_target_section_table_p.
1020 * symfile.c (build_section_addr_info_from_section_table): Update.
1021 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1022 * solib-svr4.c (scan_dyntag): Update.
1023 * solib-dsbt.c (scan_dyntag): Update.
1024 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1025 Update.
1026 * record-full.c (record_full_core_target::xfer_partial): Update.
1027 * progspace.h (struct program_space) <target_sections>: Update.
1028 * exec.h (print_section_info): Update.
1029 * exec.c (exec_target::close, build_section_table)
1030 (add_target_sections, add_target_sections_of_objfile)
1031 (remove_target_sections, exec_on_vfork)
1032 (section_table_available_memory)
1033 (section_table_xfer_memory_partial)
1034 (exec_target::get_section_table, exec_target::xfer_partial)
1035 (print_section_info, set_section_command)
1036 (exec_set_section_address, exec_target::has_memory): Update.
1037 * corelow.c (core_target::build_file_mappings)
1038 (core_target::xfer_partial, core_target::info_proc_mappings)
1039 (core_target::info_proc_mappings): Update.
1040 * bfd-target.c (class target_bfd): Update
1041
eda214ce
TT
10422020-10-12 Tom Tromey <tom@tromey.com>
1043
1044 * progspace.c (program_space::~program_space): Don't call
1045 clear_section_table.
1046 * exec.h (clear_section_table): Don't declare.
1047 * exec.c (exec_target::close): Update.
1048 (clear_section_table): Remove.
1049
91840ee3
TT
10502020-10-12 Tom Tromey <tom@tromey.com>
1051
1052 * exec.c (add_target_sections_of_objfile): Simplify.
1053
2d128614
TT
10542020-10-12 Tom Tromey <tom@tromey.com>
1055
1056 * solib.c (solib_map_sections): Update.
1057 * record-full.c (record_full_core_open_1): Update.
1058 * exec.h (build_section_table): Return a target_section_table.
1059 * exec.c (exec_file_attach): Update.
1060 (build_section_table): Return a target_section_table.
1061 * corelow.c (core_target::core_target): Update.
1062 * bfd-target.c (target_bfd::target_bfd): Update.
1063
bb2a6777
TT
10642020-10-12 Tom Tromey <tom@tromey.com>
1065
1066 * target.c (target_section_by_addr, memory_xfer_partial_1):
1067 Update.
1068 * target-section.h (struct target_section_table): Use
1069 std::vector.
1070 * symfile.h (build_section_addr_info_from_section_table): Take a
1071 target_section_table.
1072 * symfile.c (build_section_addr_info_from_section_table): Take a
1073 target_section_table.
1074 * solist.h (struct so_list) <sections>: Change type.
1075 <sections_end>: Remove.
1076 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1077 (solib_contains_address_p): Update.
1078 * solib-svr4.c (scan_dyntag): Update.
1079 * solib-dsbt.c (scan_dyntag): Update.
1080 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1081 Update.
1082 * record-full.c (record_full_core_start, record_full_core_end):
1083 Remove.
1084 (record_full_core_sections): New global.
1085 (record_full_core_open_1, record_full_core_target::xfer_partial):
1086 Update.
1087 * exec.h (build_section_table, section_table_xfer_memory_partial)
1088 (add_target_sections): Take a target_section_table.
1089 * exec.c (exec_file_attach, clear_section_table): Update.
1090 (resize_section_table): Remove.
1091 (build_section_table, add_target_sections): Take a
1092 target_section_table.
1093 (add_target_sections_of_objfile, remove_target_sections)
1094 (exec_on_vfork): Update.
1095 (section_table_available_memory): Take a target_section_table.
1096 (section_table_read_available_memory): Update.
1097 (section_table_xfer_memory_partial): Take a target_section_table.
1098 (print_section_info, set_section_command)
1099 (exec_set_section_address, exec_target::has_memory): Update.
1100 * corelow.c (class core_target) <m_core_section_table,
1101 m_core_file_mappings>: Remove braces.
1102 <~core_target>: Remove.
1103 (core_target::core_target): Update.
1104 (core_target::~core_target): Remove.
1105 (core_target::build_file_mappings)
1106 (core_target::xfer_memory_via_mappings)
1107 (core_target::xfer_partial, core_target::info_proc_mappings):
1108 Update.
1109 * bfd-target.c (target_bfd::xfer_partial): Update.
1110 (target_bfd::target_bfd): Update.
1111 (target_bfd::~target_bfd): Remove.
1112
7b466b10
TT
11132020-10-12 Tom Tromey <tom@tromey.com>
1114
1115 * target.h (struct target_section, struct target_section_table):
1116 Move to target-section.h.
1117 * target-section.h: New file.
1118
87a37e5e
PA
11192020-10-12 Pedro Alves <pedro@palves.net>
1120
1121 PR exp/26602
1122 * valops.c (struct struct_field_searcher): New.
1123 (update_search_result): Rename to ...
1124 (struct_field_searcher::update_result): ... this. Simplify
1125 prototype. Record all found fields.
1126 (do_search_struct_field): Rename to ...
1127 (struct_field_searcher::search): ... this. Simplify prototype.
1128 Maintain stack of visited baseclass path. Call update_result for
1129 fields too. Keep searching fields in baseclasses instead of
1130 stopping at the first found field.
1131 (search_struct_field): Use struct_field_searcher. When looking
1132 for fields, report ambiguous access attempts.
1133
9370fd51
AB
11342020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1135
1136 * frame.c (inside_main_func): Check full symbols as well as
1137 minimal symbols.
1138
59c8a30b
JB
11392020-10-09 Joel Brobecker <brobecker@adacore.com>
1140
1141 * ada-lang.c (advance_wild_match): Rewrite the function's
1142 description. Change the type of target0, t0 and t1 to char.
1143
7c184d33
TT
11442020-10-09 Tom Tromey <tromey@adacore.com>
1145
1146 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1147
5c4258f4
TT
11482020-10-09 Tom Tromey <tromey@adacore.com>
1149
1150 * ada-lang.h (ada_encode): Return std::string.
1151 * ada-lang.c (ada_encode_1): Return std::string.
1152 (ada_encode): Likewise.
1153 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1154 Update.
1155 * ada-exp.y (block_lookup, write_var_or_type): Update.
1156
3d87245c
HD
11572020-10-09 Hannes Domani <ssbssa@yahoo.de>
1158
1159 PR exp/26714
1160 * printcmd.c (print_formatted): Handle void results as
1161 unformatted prints.
1162
bbb826f5
AB
11632020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1164
1165 * arch/aarch32.c (aarch32_create_target_description): Release the
1166 target_desc_up as late as possible.
1167 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1168 * arch/amd64.c (amd64_create_target_description): Likewise.
1169 * arch/arc.c (arc_create_target_description): Return a
1170 target_desc_up, don't release it.
1171 * arch/arc.h (arc_create_target_description): Update declaration.
1172 (arc_lookup_target_description): Move target_desc_up into the
1173 cache, and return a borrowed pointer.
1174 * arch/arm.c (arm_create_target_description): Release the
1175 target_desc_up as late as possible.
1176 * arch/i386.c (i386_create_target_description): Likewise.
1177 * arch/riscv.h (riscv_create_target_description): Update
1178 declaration to match definition.
1179 * arch/tic6x.c (tic6x_create_target_description): Release the
1180 target_desc_up as late as possible.
1181
361cb219
AB
11822020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1183
1184 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1185 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1186
f5c4b229
JV
11872020-10-09 Jan Vrany <jan.vrany@labware.com>
1188
1189 * source.c (directory_command): Notify observers that "directories"
1190 parameter has changed.
1191
b2701685
TT
11922020-10-08 Tom Tromey <tom@tromey.com>
1193
1194 * cli/cli-cmds.c (print_disassembly): Style function name and
1195 addresses. Add _() wrappers.
1196
ada508b6
SV
11972020-10-08 Shahab Vahedi <shahab@synopsys.com>
1198
1199 * NEWS: Mention ARC support in GDBserver.
1200
51a948fd
AB
12012020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1202
1203 * arch/aarch32.c (aarch32_create_target_description): Release
1204 unique_ptr returned from allocate_target_description.
1205 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1206 * arch/amd64.c (amd64_create_target_description): Likewise.
1207 * arch/arc.c (arc_create_target_description): Likewise.
1208 * arch/arm.c (arm_create_target_description): Likewise.
1209 * arch/i386.c (i386_create_target_description): Likewise.
1210 * arch/riscv.c (riscv_create_target_description): Update return
1211 type. Handle allocate_target_description returning a unique_ptr.
1212 (riscv_lookup_target_description): Update to handle unique_ptr.
1213 * arch/tic6x.c (tic6x_create_target_description): Release
1214 unique_ptr returned from allocate_target_description.
1215 * features/microblaze-with-stack-protect.c: Regenerate.
1216 * features/microblaze.c: Regenerate.
1217 * features/mips-dsp-linux.c: Regenerate.
1218 * features/mips-linux.c: Regenerate.
1219 * features/mips64-dsp-linux.c: Regenerate.
1220 * features/mips64-linux.c: Regenerate.
1221 * features/nds32.c: Regenerate.
1222 * features/nios2.c: Regenerate.
1223 * features/or1k.c: Regenerate.
1224 * features/rs6000/powerpc-32.c: Regenerate.
1225 * features/rs6000/powerpc-32l.c: Regenerate.
1226 * features/rs6000/powerpc-403.c: Regenerate.
1227 * features/rs6000/powerpc-403gc.c: Regenerate.
1228 * features/rs6000/powerpc-405.c: Regenerate.
1229 * features/rs6000/powerpc-505.c: Regenerate.
1230 * features/rs6000/powerpc-601.c: Regenerate.
1231 * features/rs6000/powerpc-602.c: Regenerate.
1232 * features/rs6000/powerpc-603.c: Regenerate.
1233 * features/rs6000/powerpc-604.c: Regenerate.
1234 * features/rs6000/powerpc-64.c: Regenerate.
1235 * features/rs6000/powerpc-64l.c: Regenerate.
1236 * features/rs6000/powerpc-7400.c: Regenerate.
1237 * features/rs6000/powerpc-750.c: Regenerate.
1238 * features/rs6000/powerpc-860.c: Regenerate.
1239 * features/rs6000/powerpc-altivec32.c: Regenerate.
1240 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1241 * features/rs6000/powerpc-altivec64.c: Regenerate.
1242 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1243 * features/rs6000/powerpc-e500.c: Regenerate.
1244 * features/rs6000/powerpc-e500l.c: Regenerate.
1245 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1246 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1247 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1248 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1249 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1250 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1251 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1252 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1253 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1254 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1255 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1256 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1257 * features/rs6000/powerpc-vsx32.c: Regenerate.
1258 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1259 * features/rs6000/powerpc-vsx64.c: Regenerate.
1260 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1261 * features/rs6000/rs6000.c: Regenerate.
1262 * features/rx.c: Regenerate.
1263 * features/s390-gs-linux64.c: Regenerate.
1264 * features/s390-linux32.c: Regenerate.
1265 * features/s390-linux32v1.c: Regenerate.
1266 * features/s390-linux32v2.c: Regenerate.
1267 * features/s390-linux64.c: Regenerate.
1268 * features/s390-linux64v1.c: Regenerate.
1269 * features/s390-linux64v2.c: Regenerate.
1270 * features/s390-te-linux64.c: Regenerate.
1271 * features/s390-tevx-linux64.c: Regenerate.
1272 * features/s390-vx-linux64.c: Regenerate.
1273 * features/s390x-gs-linux64.c: Regenerate.
1274 * features/s390x-linux64.c: Regenerate.
1275 * features/s390x-linux64v1.c: Regenerate.
1276 * features/s390x-linux64v2.c: Regenerate.
1277 * features/s390x-te-linux64.c: Regenerate.
1278 * features/s390x-tevx-linux64.c: Regenerate.
1279 * features/s390x-vx-linux64.c: Regenerate.
1280 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1281 from allocate_target_description.
1282 * target-descriptions.c (allocate_target_description): Update
1283 return type.
1284 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1285 allocate_target_description.
1286
485c47e5
TT
12872020-10-07 Tom Tromey <tromey@adacore.com>
1288
1289 * unittests/search-memory-selftests.c: New file.
1290 * Makefile.in (SELFTESTS_SRCS): Add
1291 unittests/search-memory-selftests.c.
1292
3a135a91
TT
12932020-10-07 Tom Tromey <tromey@adacore.com>
1294
1295 PR gdb/16930:
1296 * findcmd.c (_initialize_mem_search): Mention that the range is
1297 inclusive.
1298
4a72de73
TT
12992020-10-07 Tom Tromey <tromey@adacore.com>
1300
1301 * target.h (simple_search_memory): Don't declare.
1302 * target.c (simple_search_memory): Move to gdbsupport.
1303 (default_search_memory): Update.
1304 * remote.c (remote_target::search_memory): Update.
1305
a038ffd8
SM
13062020-10-07 Simon Marchi <simon.marchi@efficios.com>
1307
1308 * Makefile.in (COMPILE): Add CXXFLAGS.
1309 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1310 (check-headers): Add CXXFLAGS.
1311
cc463201
AK
13122020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1313
1314 * arc-linux-tdep.h: New file.
1315 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1316 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1317 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1318 arc_linux_gregset, arc_linux_v2_regset,
1319 arc_linux_iterate_over_regset_sections,
1320 arc_linux_core_read_description): Implement.
1321 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1322 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1323 (arc_gdbarch_features_create): Add.
1324 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1325
e4bd363f
SV
13262020-10-07 Shahab Vahedi <shahab@synopsys.com>
1327
1328 * arch/arc.h: Rename "arc_gdbarch_features" to
1329 "arc_arch_features".
1330 * arc-tdep.h: Likewise.
1331 * arc-tdep.c: Likewise.
1332
b68bef99
TBA
13332020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1334
1335 * infcmd.c (attach_command): Remove the redundant call to
1336 `clear_proceed_status`.
1337
4641551a
KR
13382020-10-07 Kamil Rytarowski <n54@gmx.com>
1339
1340 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1341
91e5e8db
KR
13422020-10-07 Kamil Rytarowski <n54@gmx.com>
1343
1344 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1345 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1346 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1347
64c03bdb
SM
13482020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1349
1350 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1351 (_initialize_break_catch_sig): Don't allocate array.
1352
31a8f60f
AB
13532020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1354
1355 * symtab.c (find_pc_line): Return unmapped addresses when the
1356 requested address is also unmapped.
1357
9e6dbd8b
SM
13582020-10-05 Simon Marchi <simon.marchi@efficios.com>
1359
1360 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1361 tui/tui-out.h.
1362
a1d217e8
SM
13632020-10-05 Simon Marchi <simon.marchi@efficios.com>
1364
1365 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1366 type::is_vector instead of TYPE_VECTOR.
1367
7d144117
SM
13682020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1369
1370 * auto-load.c (auto_load_objfile_script_1): Don't use
1371 debugfile_holder as temporary variable when stripping drive
1372 letter.
1373
cd096ec8
HD
13742020-10-05 Hannes Domani <ssbssa@yahoo.de>
1375
1376 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1377 Add TYPE_CODE_COMPLEX.
1378 (amd64_windows_return_value): Fix types returned via XMM0.
1379
b58e7f72
AH
13802020-10-05 Alan Hayward <alan.hayward@arm.com>
1381
1382 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1383 AArch64/ARM maintainers.
1384
8d378f27
SM
13852020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1386
1387 * NEWS: Mention set/show debug event-loop.
1388
d5519913
TT
13892020-10-02 Tom Tromey <tromey@adacore.com>
1390
1391 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1392 REG_EXTENDED.
1393
18b67edc
SM
13942020-10-02 Simon Marchi <simon.marchi@efficios.com>
1395
1396 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1397 * procfs.c (procfs_inferior_created): Remove.
1398 (_initialize_procfs): Don't register procfs_inferior_created.
1399
6b01403b
SM
14002020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1401
1402 * async-event.c (invoke_async_signal_handlers): Add debug
1403 print.
1404 (check_async_event_handlers): Likewise.
1405 * event-top.c (show_debug_event_loop): New function.
1406 (_initialize_event_top): Register "set debug event-loop"
1407 setting.
1408
ba988419
SM
14092020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1410
1411 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1412 * debug.h: Remove.
1413 * infrun.c: Include gdbsupport/common-debug.h.
1414 * linux-nat.c: Likewise.
1415
db20ebdf
SM
14162020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1417
1418 * async-event.h (create_async_signal_handler): Add name
1419 parameter.
1420 (create_async_event_handler): Likewise.
1421 * async-event.c (struct async_signal_handler) <name>: New field.
1422 (struct async_event_handler) <name>: New field.
1423 (create_async_signal_handler): Assign name.
1424 (create_async_event_handler): Assign name.
1425 * event-top.c (async_init_signals): Pass name when creating
1426 handler.
1427 * infrun.c (_initialize_infrun): Likewise.
1428 * record-btrace.c (record_btrace_push_target): Likewise.
1429 * record-full.c (record_full_open): Likewise.
1430 * remote-notif.c (remote_notif_state_allocate): Likewise.
1431 * remote.c (remote_target::open_1): Likewise.
1432 * tui/tui-win.c (tui_initialize_win): Likewise.
1433
2554f6f5
SM
14342020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1435
1436 * async-event.c (initialize_async_signal_handlers): Pass name to
1437 add_file_handler
1438 * event-top.c (ui_register_input_event_handler): Likewise.
1439 * linux-nat.c (linux_nat_target::async): Likewise.
1440 * run-on-main-thread.c (_initialize_run_on_main_thread):
1441 Likewise
1442 * ser-base.c (reschedule): Likewise.
1443 (ser_base_async): Likewise.
1444 * tui/tui-io.c: Likewise.
1445 * top.h (struct ui) <num>: New field.
1446 * top.c (highest_ui_num): New variable.
1447 (ui::ui): Initialize num.
1448
a7aba266
SM
14492020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1450
1451 * observable.h <inferior_created>: Remove parameters. Update all
1452 listeners.
1453 * inferior.h (post_create_inferior): Remove target parameter.
1454 Update all callers.
1455
048fde1e 14562020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1457
1458 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1459 and DW_MACRO_undef_strx.
1460 (dwarf_decode_macros): Likewise
1461 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1462 which is the value of DW_AT_str_offsets_base.
1463 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1464 str_offsets_base.
1465
064280be
KR
14662020-10-01 Kamil Rytarowski <n54@gmx.com>
1467
1468 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1469
6ff33035
KR
14702020-10-01 Kamil Rytarowski <n54@gmx.com>
1471
1472 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1473 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1474
1eb6eb79
KR
14752020-10-01 Kamil Rytarowski <n54@gmx.com>
1476
1477 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1478
95eb9e54
TV
14792020-09-30 Tom de Vries <tdevries@suse.de>
1480
1481 PR symtab/26683
1482 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1483
cae21f8e
TT
14842020-09-30 Tom Tromey <tromey@adacore.com>
1485
1486 * dwarf2/read.c (handle_variant): Use constant_value.
1487
529908cb
TT
14882020-09-29 Tom Tromey <tom@tromey.com>
1489
1490 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1491 (read_file_scope, dwarf2_get_pc_bounds)
1492 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1493 (read_structure_type, handle_struct_member_die)
1494 (read_enumeration_type, read_array_type, read_set_type)
1495 (read_tag_pointer_type, read_tag_reference_type)
1496 (read_subroutine_type, read_base_type, read_subrange_type)
1497 (read_full_die_1, partial_die_info::read)
1498 (partial_die_info::read, by, new_symbol)
1499 (dwarf2_const_value_data, dwarf2_const_value_attr)
1500 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1501 (prepare_one_comp_unit): Update.
1502 * dwarf2/attribute.h (DW_UNSND): Remove.
1503
c45bc3f8
TT
15042020-09-29 Tom Tromey <tom@tromey.com>
1505
1506 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1507 (read_subroutine_type, partial_die_info::read)
1508 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1509 (dwarf2_add_member_fn): Update.
1510 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1511 * dwarf2/attribute.c (attribute::as_boolean): New method.
1512
23dca5c3
TT
15132020-09-29 Tom Tromey <tom@tromey.com>
1514
1515 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1516 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1517 method.
1518 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1519
52c14d11
TT
15202020-09-29 Tom Tromey <tom@tromey.com>
1521
1522 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1523 the attribute's form.
1524
e8e5c158
TT
15252020-09-29 Tom Tromey <tom@tromey.com>
1526
1527 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1528 (dwarf2_add_member_fn): Update.
1529 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1530 * dwarf2/attribute.c (attribute::defaulted): New method, from
1531 is_valid_DW_AT_defaulted.
1532
d4df075e
TT
15332020-09-29 Tom Tromey <tom@tromey.com>
1534
1535 * dwarf2/read.c (dw2_get_file_names_reader)
1536 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1537 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1538 (dwarf2_symbol_mark_computed): Use as_unsigned.
1539 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1540 method.
1541 <form_is_section_offset>: Update comment.
1542
bf23a268
TT
15432020-09-29 Tom Tromey <tom@tromey.com>
1544
1545 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1546 dwarf2_default_access_attribute. Look up attribute.
1547 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1548 Update.
1549
7a5f294d
TT
15502020-09-29 Tom Tromey <tom@tromey.com>
1551
1552 * dwarf2/read.c (skip_one_die): Update.
1553 (read_full_die_1): Change how reprocessing is done.
1554 (partial_die_info::read): Update.
1555 (read_attribute_value): Remove need_reprocess parameter.
1556 (read_attribute): Likewise.
1557 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1558 New method.
1559
36d378cf
TT
15602020-09-29 Tom Tromey <tom@tromey.com>
1561
1562 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1563 (dwarf2_const_value_attr, dump_die_shallow)
1564 (dwarf2_fetch_constant_bytes): Update.
1565 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1566 comment.
1567 <set_address>: New method.
1568 (DW_ADDR): Remove.
1569 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1570 (attribute::as_string, attribute::as_address): Add assert.
1571
fe56917a
TT
15722020-09-29 Tom Tromey <tom@tromey.com>
1573
1574 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1575 (read_attribute_reprocess, read_attribute_value): Update.
1576 (read_attribute): Clear requires_reprocessing.
1577 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1578 form_requires_reprocessing>: New methods.
1579 <string_init>: Clear requires_reprocessing.
1580 <set_unsigned_reprocess>: New method.
1581 <name>: Shrink by one bit.
1582 <requires_reprocessing>: New member.
1583 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1584 method.
1585
414ad644
TT
15862020-09-29 Tom Tromey <tom@tromey.com>
1587
1588 * dwarf2/read.c (read_attribute_value): Update.
1589 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1590 set_unsigned>: New methods.
1591 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1592
1bc397c5
TT
15932020-09-29 Tom Tromey <tom@tromey.com>
1594
1595 * dwarf2/read.c (get_alignment, read_array_order)
1596 (read_attribute_value, dwarf2_const_value_attr)
1597 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1598 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1599 New methods.
1600 (DW_SND): Remove.
1601
630ed6b9
TT
16022020-09-29 Tom Tromey <tom@tromey.com>
1603
1604 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1605 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1606 Update.
1607 * dwarf2/attribute.h (struct attribute) <as_signature,
1608 set_signature>: New methods.
1609 (DW_SIGNATURE): Remove.
1610
9d2246fc
TT
16112020-09-29 Tom Tromey <tom@tromey.com>
1612
1613 * dwarf2/read.c (read_call_site_scope)
1614 (handle_data_member_location, dwarf2_add_member_fn)
1615 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1616 (partial_die_info::read, read_attribute_value)
1617 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1618 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1619 (dwarf2_symbol_mark_computed): Update.
1620 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1621 methods.
1622 (DW_BLOCK): Remove.
1623 * dwarf2/attribute.c (attribute::form_is_block): Add
1624 DW_FORM_data16.
1625
c6481205
TT
16262020-09-29 Tom Tromey <tom@tromey.com>
1627
1628 * dwarf2/read.c (read_cutu_die_from_dwo)
1629 (read_attribute_reprocess, read_attribute_value, read_attribute)
1630 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1631 (dwarf2_fetch_constant_bytes): Update.
1632 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1633 <set_string_noncanonical, set_string_canonical>: New methods.
1634 <string_is_canonical>: Update comment.
1635 <canonical_string_p>: Add assert.
1636 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1637 * dwarf2/attribute.c (attribute::form_is_string): New method.
1638 (attribute::string): Use it.
1639
3b64bf15
TT
16402020-09-29 Tom Tromey <tom@tromey.com>
1641
1642 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1643 (dump_die_shallow): Use canonical_string_p.
1644 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1645 method.
1646
2c830f54
TT
16472020-09-29 Tom Tromey <tom@tromey.com>
1648
1649 * dwarf2/read.c (partial_die_info::read)
1650 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1651 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1652 attribute::as_string.
1653
6c412691
TT
16542020-09-29 Tom Tromey <tom@tromey.com>
1655
1656 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1657 DW_ADDR.
1658 (attribute::string): Don't use DW_STRING.
1659 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1660 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1661
95f982e5
TT
16622020-09-29 Tom Tromey <tom@tromey.com>
1663
1664 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1665 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1666 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1667 * dwarf2/attribute.h (struct attribute): Rename methods.
1668 * dwarf2/attribute.c (attribute::as_address): Rename from
1669 value_as_address.
1670 (attribute::as_string): Rename from value_as_string.
1671
f800b00e
TT
16722020-09-29 Tom Tromey <tom@tromey.com>
1673
1674 * dwarf2/read.c (partial_die_info::read) <case
1675 DW_AT_linkage_name>: Use value_as_string.
1676 (dwarf2_string_attr): Use value_as_string.
1677 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1678 method.
1679 * dwarf2/attribute.c (attribute::value_as_string): New method.
1680
de38d64a
PA
16812020-09-29 Pedro Alves <pedro@palves.net>
1682
1683 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1684 defined before using '#pragma GCC diagnostic' instead of checking
1685 __clang__.
1686
9aed480c
TT
16872020-09-28 Tom Tromey <tom@tromey.com>
1688
1689 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1690 (handle_signal_stop): Update.
1691 * procfs.c (procfs_target::insert_watchpoint): Update.
1692 * target.h (target_have_steppable_watchpoint): Now a function.
1693
8a3ecb79
TT
16942020-09-28 Tom Tromey <tom@tromey.com>
1695
1696 * infrun.c (set_schedlock_func): Update.
1697 * target.h (target_can_lock_scheduler): Now a function.
1698
55f6301a
TT
16992020-09-28 Tom Tromey <tom@tromey.com>
1700
1701 * inferior.h (class inferior) <has_execution>: Update.
1702 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1703 * valops.c (find_function_in_inferior)
1704 (value_allocate_space_in_inferior): Update.
1705 * top.c (kill_or_detach): Update.
1706 * target.c (target_preopen, set_target_permissions): Update.
1707 (target_has_execution_current): Remove.
1708 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1709 Update.
1710 * solib.c (update_solib_list, reload_shared_libraries): Update.
1711 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1712 * solib-dsbt.c (enable_break): Update.
1713 * score-tdep.c (score7_fetch_inst): Update.
1714 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1715 Update.
1716 * remote.c (remote_target::start_remote)
1717 (remote_target::remote_check_symbols, remote_target::open_1)
1718 (remote_target::remote_detach_1, remote_target::verify_memory)
1719 (remote_target::xfer_partial, remote_target::read_description)
1720 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1721 * record-full.c (record_full_open_1): Update.
1722 * record-btrace.c (record_btrace_target_open): Update.
1723 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1724 (value_nsstring): Update.
1725 * linux-thread-db.c (add_thread_db_info)
1726 (thread_db_find_new_threads_silently, check_thread_db_callback)
1727 (try_thread_db_load_1, record_thread): Update.
1728 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1729 Update.
1730 * linux-fork.c (checkpoint_command): Update.
1731 * infrun.c (set_non_stop, set_observer_mode)
1732 (check_multi_target_resumption, for_each_just_stopped_thread)
1733 (maybe_remove_breakpoints, normal_stop)
1734 (class infcall_suspend_state): Update.
1735 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1736 (info_program_command, attach_command): Update.
1737 * infcall.c (call_function_by_hand_dummy): Update.
1738 * inf-loop.c (inferior_event_handler): Update.
1739 * gcore.c (gcore_command, derive_heap_segment): Update.
1740 * exec.c (exec_file_command): Update.
1741 * eval.c (evaluate_subexp): Update.
1742 * compile/compile.c (compile_to_object): Update.
1743 * cli/cli-dump.c (restore_command): Update.
1744 * breakpoint.c (update_watchpoint)
1745 (update_inserted_breakpoint_locations)
1746 (insert_breakpoint_locations, get_bpstat_thread): Update.
1747 * target.h (target_has_execution): Remove macro.
1748 (target_has_execution_current): Don't declare.
1749 (target_has_execution): Rename from target_has_execution_1. Add
1750 argument default.
1751
05374cfd
TT
17522020-09-28 Tom Tromey <tom@tromey.com>
1753
1754 * mi/mi-main.c (exec_reverse_continue)
1755 (mi_cmd_list_target_features): Update.
1756 * infrun.c (set_exec_direction_func): Update.
1757 * target.c (default_execution_direction): Update.
1758 * reverse.c (exec_reverse_once): Update.
1759 * target.h (target_can_execute_reverse): Now a function.
1760
9dccd06e
TT
17612020-09-28 Tom Tromey <tom@tromey.com>
1762
1763 * tui/tui-regs.c (tui_get_register)
1764 (tui_data_window::show_registers): Update.
1765 * thread.c (scoped_restore_current_thread::restore)
1766 (scoped_restore_current_thread::scoped_restore_current_thread):
1767 Update.
1768 * regcache-dump.c (regcache_print): Update.
1769 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1770 Update.
1771 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1772 * mep-tdep.c (current_me_module, current_options): Update.
1773 * linux-thread-db.c (thread_db_load): Update.
1774 * infcmd.c (registers_info, info_vector_command)
1775 (info_float_command): Update.
1776 * ia64-tdep.c (ia64_frame_prev_register)
1777 (ia64_sigtramp_frame_prev_register): Update.
1778 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1779 * gcore.c (derive_stack_segment): Update.
1780 * frame.c (get_current_frame, has_stack_frames): Update.
1781 * findvar.c (language_defn::read_var_value): Update.
1782 * arm-tdep.c (arm_pc_is_thumb): Update.
1783 * target.c (target_has_registers): Rename from
1784 target_has_registers_1.
1785 * target.h (target_has_registers): Remove macro.
1786 (target_has_registers): Rename from target_has_registers_1.
1787
841de120
TT
17882020-09-28 Tom Tromey <tom@tromey.com>
1789
1790 * windows-tdep.c (tlb_make_value): Update.
1791 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1792 * thread.c (scoped_restore_current_thread::restore)
1793 (scoped_restore_current_thread::scoped_restore_current_thread)
1794 (thread_command): Update.
1795 * stack.c (backtrace_command_1, frame_apply_level_command)
1796 (frame_apply_all_command, frame_apply_command): Update.
1797 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1798 Update.
1799 * gcore.c (derive_stack_segment): Update.
1800 * frame.c (get_current_frame, has_stack_frames): Update.
1801 * auxv.c (info_auxv_command): Update.
1802 * ada-tasks.c (ada_build_task_list): Update.
1803 * target.c (target_has_stack): Rename from target_has_stack_1.
1804 * target.h (target_has_stack): Remove macro.
1805 (target_has_stack): Rename from target_has_stack_1.
1806
a739972c
TT
18072020-09-28 Tom Tromey <tom@tromey.com>
1808
1809 * target.c (target_has_memory): Rename from target_has_memory_1.
1810 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1811 * thread.c (scoped_restore_current_thread::restore)
1812 (scoped_restore_current_thread::scoped_restore_current_thread):
1813 Update.
1814 * frame.c (get_current_frame, has_stack_frames): Update.
1815 * target.h (target_has_memory): Remove macro.
1816 (target_has_memory): Rename from target_has_memory_1.
1817
5b8a4776
TT
18182020-09-28 Tom Tromey <tom@tromey.com>
1819
1820 * target.c (target_has_all_memory_1): Remove.
1821 * target.h (target_has_all_memory): Remove define.
1822 (target_has_all_memory_1): Don't declare.
1823
bd356ec6
SM
18242020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1825
1826 * ser-base.c: Adjust comments formatting.
1827
2c72d5e5
TT
18282020-09-27 Tom Tromey <tom@tromey.com>
1829
1830 PR tui/25342:
1831 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1832
35a98237
TT
18332020-09-27 Tom Tromey <tom@tromey.com>
1834
1835 PR tui/25342:
1836 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1837
9e820dec
TT
18382020-09-27 Tom Tromey <tom@tromey.com>
1839
1840 * unittests/tui-selftests.c: Update.
1841 * tui/tui-winsource.h (struct tui_source_window_base)
1842 <extra_margin, show_line_number, refresh_pad>: New methods.
1843 <m_max_length, m_pad>: New members.
1844 (tui_copy_source_line): Update.
1845 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1846 first_col, line_width, ndigits parameters. Add length.
1847 (tui_source_window_base::show_source_line): Write to pad. Line
1848 number now 0-based.
1849 (tui_source_window_base::refresh_pad): New method.
1850 (tui_source_window_base::show_source_content): Write to pad. Call
1851 refresh_pad.
1852 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1853 not refill.
1854 (tui_source_window_base::update_exec_info): Call
1855 show_line_number.
1856 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1857 method.
1858 <m_digits>: New member.
1859 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1860 and m_max_length.
1861 (tui_source_window::show_line_number): New method.
1862 * tui/tui-io.h (tui_puts): Fix comment.
1863 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1864 m_max_length.
1865
c15c15c8
TT
18662020-09-27 Tom Tromey <tom@tromey.com>
1867
1868 * tui/tui-winsource.c
1869 (tui_source_window_base::set_is_exec_point_at): Don't call
1870 show_source_line.
1871
149830c1
TT
18722020-09-27 Tom Tromey <tom@tromey.com>
1873
1874 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1875 method.
1876 <erase>: Update.
1877 <cursor_x, cursor_y>: Remove.
1878 <m_inner_window>: New member.
1879 (tui_py_window::rerender): Create inner window.
1880 (tui_py_window::output): Write to inner window.
1881
8f9929bb
GR
18822020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1883
1884 PR python/26586
1885 * cli/cli-script.c (execute_control_commands): don't set
1886 instream to nullptr here as this breaks the from_tty argument
1887 to gdb.execute in Python.
1888 (execute_user_command): set instream to nullptr here instead.
1889
956bdb59
SM
18902020-09-25 Simon Marchi <simon.marchi@efficios.com>
1891
1892 * infrun.h (infrun_debug_printf): Fix formatting.
1893 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1894
3b93626b
SJ
18952020-09-25 Saagar Jha <saagar@saagarjha.com>
1896
1897 * compile/compile-object-load.h (struct munmap_list): Add
1898 explicitly-defined move constructor.
1899
b551a89f
TT
19002020-09-24 Tom Tromey <tromey@adacore.com>
1901
1902 PR tui/26638:
1903 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1904 method.
1905 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1906 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1907 (tui_prev_win): Rewrite.
1908
99bb393f
HD
19092020-09-23 Hannes Domani <ssbssa@yahoo.de>
1910
1911 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1912 in WOW64 processes as SIGINT.
1913 * nat/windows-nat.h: Make wow64_process a shared variable.
1914 * windows-nat.c: Remove static wow64_process variable.
1915
20a5fcbd
TT
19162020-09-23 Tom Tromey <tom@tromey.com>
1917
1918 PR symtab/25470:
1919 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1920 offset and bit size.
1921 * printcmd.c (print_scalar_formatted): Handle zero-length
1922 integer.
1923 (print_scalar_formatted): Use bit_size_differs_p.
1924 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1925 constant.
1926 (union type_specific): <int_stuff>: New member.
1927 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1928 methods.
1929 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1930 TYPE_SPECIFIC_FIELD.
1931 (recursive_dump_type, copy_type_recursive): Update.
1932 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1933 DW_AT_data_bit_offset.
1934
bac51ab7
TT
19352020-09-23 Tom Tromey <tom@tromey.com>
1936
1937 * utils.h (class gdb_argv): Add move operators.
1938 <append>: New methods.
1939 * compile/compile.c (build_argc_argv): Remove.
1940 (compile_args_argc): Remove.
1941 (compile_args_argv): Change type.
1942 (set_compile_args): Simplify.
1943 (append_args): Remove.
1944 (filter_args): Remove argcp parameter.
1945 (get_args): Return gdb_argv. Simplify.
1946 (compile_to_object): Update.
1947
92677124
TT
19482020-09-23 Tom Tromey <tom@tromey.com>
1949
1950 * compile/compile-object-run.c (do_module_cleanup)
1951 <~do_module_cleanup> :Remove.
1952 (do_module_cleanup): Update.
1953 * compile/compile-object-load.h (struct munmap_list): Add move
1954 assignment operator.
1955 <source_file>: Now a std::string.
1956 <munmap_list>: Rename. No longer a pointer.
1957 * compile/compile-object-load.c (struct setup_sections_data): Add
1958 constructor.
1959 <setup_one_section>: Declare.
1960 <munmap_list>: Move earlier.
1961 <m_bfd>: New member.
1962 <m_last_size, m_last_section_first, m_last_prot,
1963 m_last_max_alignment>: Rename, add initializers where needed.
1964 (setup_sections_data::setup_one_section): Rename from
1965 setup_sections. Update.
1966 (compile_object_load): Update. Don't use bfd_map_over_sections.
1967
e616f60a
TT
19682020-09-23 Tom Tromey <tom@tromey.com>
1969
1970 * compile/compile-object-run.c (struct do_module_cleanup): Add
1971 parameters to constructor. Update destructor.
1972 <source_file, scope, scope_data, out_value_type, out_value_addr,
1973 munmap_list_head, objfile_name_string>: Remove.
1974 <module>: New member.
1975 (do_module_cleanup): Update.
1976 (compile_object_run): Update.
1977
e947a848
TT
19782020-09-23 Tom Tromey <tom@tromey.com>
1979
1980 * compile/compile.c (eval_compile_command): Update.
1981 * compile/compile-object-run.h (compile_object_run): Take a
1982 compile_module_up.
1983 * compile/compile-object-run.c (compile_object_run): Take a
1984 compile_module_up.
1985 * compile/compile-object-load.h (struct compile_module): Add
1986 constructor, destructor.
1987 (compile_module_up): New typedef.
1988 (compile_object_load): Return compile_object_up.
1989 * compile/compile-object-load.c (compile_object_load): Return
1990 compile_module_up.
1991
0dbf6ee6
TT
19922020-09-23 Tom Tromey <tom@tromey.com>
1993
1994 * compile/compile-object-run.c (struct do_module_cleanup): Add
1995 constructor, destructor.
1996 <objfile_name_string>: Don't use struct hack.
1997 (do_module_cleanup): Use delete.
1998 (compile_object_run): Use new.
1999
ebe824f5
TT
20002020-09-23 Tom Tromey <tom@tromey.com>
2001
2002 * compile/compile-cplus-types.c
2003 (compile_cplus_convert_struct_or_union): Use std::vector.
2004 (compile_cplus_convert_func): Likewise.
2005 * compile/compile-c-types.c (convert_func): Use std::vector.
2006
5dd918d9
TT
20072020-09-21 Tom Tromey <tromey@adacore.com>
2008
2009 * sparc-tdep.c (sparc32_skip_prologue): Use
2010 skip_prologue_using_sal.
2011
5486c517
TT
20122020-09-19 Tom Tromey <tom@tromey.com>
2013
2014 * symfile.c (add_section_size_callback): Remove.
2015 (load_one_section): Rename from load_section_callback. Change
2016 parameters.
2017 (generic_load): Use foreach.
2018
8a6bb1d1
TT
20192020-09-19 Tom Tromey <tom@tromey.com>
2020
2021 * exec.c (add_to_section_table): Remove.
2022 (build_section_table): Use foreach.
2023
08f93a1a
TT
20242020-09-19 Tom Tromey <tom@tromey.com>
2025
2026 * elfread.c (elf_locate_sections): Change parameters.
2027 (elf_symfile_read): Use foreach.
2028
03cd72b8
TT
20292020-09-19 Tom Tromey <tom@tromey.com>
2030
2031 * cli/cli-dump.c (struct callback_data): Remove.
2032 (restore_one_section): Rename from restore_section_callback.
2033 Change parameters.
2034 (restore_binary_file): Change parameters.
2035 (restore_command): Use foreach.
2036
f4f2b85f
TT
20372020-09-19 Tom Tromey <tom@tromey.com>
2038
2039 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2040 (gcore_copy_callback): Likewise.
2041 (gcore_memory_sections): Use foreach.
2042
b35c1d1c
TT
20432020-09-19 Tom Tromey <tom@tromey.com>
2044
2045 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2046 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2047 parameters.
2048 (generic_elf_osabi_sniffer): Use foreach.
2049 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2050 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2051
5bb6e9dd
TT
20522020-09-19 Tom Tromey <tom@tromey.com>
2053
2054 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2055 (dwarf2_get_dwz_file): Use foreach.
2056 (dwarf2_locate_dwo_sections): Change parameters.
2057 (open_and_init_dwo_file): Use foreach.
2058 (dwarf2_locate_common_dwp_sections): Change parameters.
2059 (open_and_init_dwp_file): Use foreach.
2060
ad7277da
TT
20612020-09-19 Tom Tromey <tom@tromey.com>
2062
2063 * symfile.h: (find_lowest_section): Don't declare.
2064 * symfile.c (find_lowest_section): Now static. Change
2065 parameters.
2066 (struct place_section_arg): Remove.
2067 (place_section): Change parameters.
2068 (addr_info_make_relative): Use foreach.
2069 (symfile_dummy_outputs): Remove.
2070 (default_symfile_relocate): Use foreach.
2071
cb814f2e
TT
20722020-09-19 Tom Tromey <tom@tromey.com>
2073
2074 * objfiles.c (add_to_objfile_sections): Rename from
2075 add_to_objfile_sections_full.
2076 (add_to_objfile_sections): Remove.
2077 (build_objfile_section_table): Use foreach.
2078
3cabfd26
TT
20792020-09-19 Tom Tromey <tom@tromey.com>
2080
2081 * stap-probe.c (get_stap_base_address_1): Remove.
2082 (get_stap_base_address): Use foreach.
2083
1ce51eb5
TT
20842020-09-19 Tom Tromey <tom@tromey.com>
2085
2086 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2087 parameters.
2088 (gdb_bfd_close_or_warn): Use foreach.
2089
a190fabb
TT
20902020-09-19 Tom Tromey <tom@tromey.com>
2091
2092 * corelow.c (add_to_thread_list): Change parameters.
2093 (core_target_open): Use foreach.
2094
cafb0d81
TT
20952020-09-19 Tom Tromey <tom@tromey.com>
2096
2097 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2098 existing function.
2099
c8d5abea
AB
21002020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2101
2102 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2103 for arrays.
2104
6d816919
AB
21052020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2106
2107 * eval.c: Remove 'f-lang.h' include.
2108 (value_f90_subarray): Moved to f-lang.c.
2109 (eval_call): Renamed to...
2110 (evaluate_subexp_do_call): ...this, is no longer static, header
2111 comment moved into header file.
2112 (evaluate_funcall): Update call to eval_call.
2113 (skip_undetermined_arglist): Moved to f-lang.c.
2114 (fortran_value_subarray): Likewise.
2115 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2116 moved to evaluate_subexp_f.
2117 (calc_f77_array_dims): Moved to f-lang.c
2118 * expprint.c (print_subexp_funcall): New function.
2119 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2120 moved to print_subexp_f, OP_FUNCALL uses new function.
2121 (dump_subexp_body_funcall): New function.
2122 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2123 moved to dump_subexp_f, OP_FUNCALL uses new function.
2124 * expression.h (evaluate_subexp_do_call): Declare.
2125 * f-lang.c (value_f90_subarray): Moved from eval.c.
2126 (skip_undetermined_arglist): Likewise.
2127 (calc_f77_array_dims): Likewise.
2128 (fortran_value_subarray): Likewise.
2129 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2130 (operator_length_f): Likewise.
2131 (print_subexp_f): Likewise.
2132 (dump_subexp_body_f): Likewise.
2133 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2134 declaration of this operation to here.
2135 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2136 support moved to operator_length_f.
2137 * parser-defs.h (dump_subexp_body_funcall): Declare.
2138 (print_subexp_funcall): Declare.
2139 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2140 fortran-operator.def.
2141
8c37706a
AB
21422020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2143
2144 * eval.c (fortran_value_subarray): New function, content is taken
2145 from...
2146 (evaluate_subexp_standard): ...here, in two places. Now arrays
2147 and strings both call the new function.
2148 (calc_f77_array_dims): Add header comment, handle strings.
2149
14f9473c
VC
21502020-09-18 Victor Collod <vcollod@nvidia.com>
2151
2152 PR gdb/26635
2153 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2154 (i386_analyze_prologue): Call i386_skip_endbr.
2155
b60cea74
TT
21562020-09-18 Tom Tromey <tromey@adacore.com>
2157
2158 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2159 (windows_nat_target::wait): Update.
2160 * target/wait.h (enum target_wait_flag): New. Use
2161 DEF_ENUM_FLAGS_TYPE.
2162 * target/target.h (target_wait): Change type of options.
2163 * target.h (target_options_to_string, default_target_wait):
2164 Update.
2165 (struct target_ops) <wait>: Change type of options.
2166 * target.c (target_wait, default_target_wait, do_option): Change
2167 type of "options".
2168 (target_options_to_string): Likewise.
2169 * target-delegates.c: Rebuild.
2170 * target-debug.h (target_debug_print_target_wait_flags): Rename
2171 from target_debug_print_options.
2172 * sol-thread.c (class sol_thread_target) <wait>: Update.
2173 (sol_thread_target::wait): Update.
2174 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2175 (rs6000_nat_target::wait): Update.
2176 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2177 Update.
2178 (remote_target::wait_ns, remote_target::wait_as): Change type of
2179 "options".
2180 (remote_target::wait): Update.
2181 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2182 (gdbsim_target::wait): Update.
2183 * record-full.c (class record_full_base_target) <wait>: Update.
2184 (record_full_wait_1): Change type of "options".
2185 (record_full_base_target::wait): Update.
2186 * record-btrace.c (class record_btrace_target) <wait>: Update.
2187 (record_btrace_target::wait): Update.
2188 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2189 Update.
2190 (ravenscar_thread_target::wait): Update.
2191 * procfs.c (class procfs_target) <wait>: Update.
2192 (procfs_target::wait): Update.
2193 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2194 * obsd-nat.c (obsd_nat_target::wait): Update.
2195 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2196 (nto_procfs_target::wait): Update.
2197 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2198 * nbsd-nat.c (nbsd_wait): Change type of "options".
2199 (nbsd_nat_target::wait): Update.
2200 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2201 (thread_db_target::wait): Update.
2202 * linux-nat.h (class linux_nat_target) <wait>: Update.
2203 * linux-nat.c (linux_nat_target::wait): Update.
2204 (linux_nat_wait_1): Update.
2205 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2206 "options".
2207 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2208 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2209 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2210 (go32_nat_target::wait): Update.
2211 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2212 * gnu-nat.c (gnu_nat_target::wait): Update.
2213 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2214 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2215 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2216 * darwin-nat.c (darwin_nat_target::wait): Update.
2217 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2218 (bsd_uthread_target::wait): Update.
2219 * aix-thread.c (class aix_thread_target) <wait>: Update.
2220 (aix_thread_target::wait): Update.
2221
0295dde6
AB
22222020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2223
2224 * compile/compile-object-run.c (create_copied_type_recursive): New
2225 function.
2226 (compile_object_run): Use new function.
2227
d3483b43
JT
22282020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2229
2230 * NEWS: Mention x86_64 Cygwin core file support.
2231
e7d612ad
JT
22322020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2233
2234 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2235 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2236
aff9d387
JT
22372020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2238
62a5151b
JT
2239 * windows-tdep.h: Add prototypes.
2240 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2241 (i386_windows_core_pid_to_str): Move and rename ...
2242 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2243 (windows_core_pid_to_str): ... and here.
2244 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2245
22462020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2247 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2248 (amd64_windows_init_abi_common): ... and register.
2249
7d155da3
JT
22502020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2251
2252 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2253 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2254
e8ef12b9
PA
22552020-09-18 Pedro Alves <pedro@palves.net>
2256
2257 PR gdb/26631
2258 * thread.c (thread_find_command): Switch inferior before calling
2259 target methods.
2260
c1e1314d
TT
22612020-09-17 Tom Tromey <tromey@adacore.com>
2262
2263 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2264 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2265 (tdesc_arch_data_up): New typedef.
2266 (tdesc_use_registers, tdesc_data_alloc): Update.
2267 (tdesc_data_cleanup): Don't declare.
2268 * target-descriptions.c (tdesc_data_alloc): Return a
2269 tdesc_arch_data_up.
2270 (tdesc_arch_data_deleter::operator()): Rename from
2271 tdesc_data_cleanup. Change argument type.
2272 (tdesc_use_registers): Change early_data to an rvalue reference.
2273 (tdesc_use_registers): Don't use delete.
2274 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2275 * s390-tdep.c (s390_gdbarch_init): Update.
2276 * rx-tdep.c (rx_gdbarch_init): Update.
2277 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2278 * riscv-tdep.c (riscv_gdbarch_init): Update.
2279 * or1k-tdep.c (or1k_gdbarch_init): Update.
2280 * nios2-tdep.c (nios2_gdbarch_init): Update.
2281 * nds32-tdep.c (nds32_gdbarch_init): Update.
2282 * mips-tdep.c (mips_gdbarch_init): Update.
2283 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2284 * m68k-tdep.c (m68k_gdbarch_init): Update.
2285 * i386-tdep.c (i386_gdbarch_init): Update.
2286 * arm-tdep.c (arm_gdbarch_init): Update.
2287 * arc-tdep.c (arc_tdesc_init): Update.
2288 (arc_gdbarch_init): Update.
2289 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2290
0363df3d
HD
22912020-09-17 Hannes Domani <ssbssa@yahoo.de>
2292
2293 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2294 for WOW64 processes.
2295
280a9412
TT
22962020-09-17 Tom Tromey <tom@tromey.com>
2297
2298 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2299
6108fd18
TT
23002020-09-17 Tom Tromey <tom@tromey.com>
2301
2302 * value.c (preserve_values): Update.
2303 * python/py-type.c (save_objfile_types): Update.
2304 * guile/scm-type.c (save_objfile_types): Update.
2305 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2306 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2307 * compile/compile-object-run.c (compile_object_run): Update.
2308
fa9b1164
TT
23092020-09-17 Tom Tromey <tom@tromey.com>
2310
2311 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2312 Remove.
2313 <m_table>: Now htab_up.
2314 * typeprint.c (typedef_hash_table::recursively_update)
2315 (typedef_hash_table::add_template_parameters)
2316 (typedef_hash_table::typedef_hash_table): Update.
2317 (typedef_hash_table::~typedef_hash_table): Remove.
2318 (typedef_hash_table::typedef_hash_table)
2319 (typedef_hash_table::find_global_typedef)
2320 (typedef_hash_table::find_typedef): Update.
2321
eb53f105
TT
23222020-09-17 Tom Tromey <tom@tromey.com>
2323
2324 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2325
7a8a5d47
TT
23262020-09-17 Tom Tromey <tom@tromey.com>
2327
2328 * linespec.c (class decode_compound_collector)
2329 <~decode_compound_collector>: Remove.
2330 <m_unique_syms>: Now htab_up.
2331 (decode_compound_collector::operator ()): Update.
2332 (class symtab_collector) <~symtab_collector>: Remove.
2333 <m_symtab_table>: Now htab_up.
2334 (symtab_collector::operator ()): Update.
2335
99032cfc
TT
23362020-09-17 Tom Tromey <tom@tromey.com>
2337
2338 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2339 (filename_seen_cache::clear): Update.
2340 (~filename_seen_cache): Remove.
2341 (filename_seen_cache::seen): Update.
2342 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2343 htab_up.
2344 <~filename_seen_cache>: Remove.
2345 <traverse>: Update.
2346
32580f6d
TT
23472020-09-17 Tom Tromey <tom@tromey.com>
2348
2349 * completer.c (completion_tracker::discard_completions)
2350 (completion_tracker::~completion_tracker)
2351 (completion_tracker::maybe_add_completion)
2352 (completion_tracker::remove_completion)
2353 (completion_tracker::recompute_lowest_common_denominator)
2354 (completion_tracker::build_completion_result): Update.
2355 * completer.h (class completion_tracker) <have_completions>:
2356 Update.
2357 <m_entries_hash>: Now htab_up.
2358
c1fb9836
TT
23592020-09-17 Tom Tromey <tom@tromey.com>
2360
2361 * breakpoint.c (ambiguous_names_p): Use htab_up.
2362
88f07206
TT
23632020-09-17 Tom Tromey <tom@tromey.com>
2364
2365 * auto-load.c (struct auto_load_pspace_info)
2366 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2367 <loaded_script_files, loaded_script_texts>: Change type to
2368 htab_up.
2369 (~auto_load_pspace_info) Remove.
2370 (init_loaded_scripts_info, maybe_add_script_file)
2371 (maybe_add_script_text, auto_load_info_scripts): Update.
2372
9519b2ee
TT
23732020-09-17 Tom Tromey <tromey@adacore.com>
2374
2375 * c-exp.y (name_obstack): Now static.
2376
d2cd4113
CC
23772020-09-17 Chungyi Chi <demonic@csie.io>
2378
2379 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2380
b650a282
SM
23812020-09-16 Simon Marchi <simon.marchi@efficios.com>
2382
2383 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2384 (add_solib_catchpoint): Likewise.
2385 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2386 to bool.
2387 (add_solib_catchpoint): Change int parameter/variable to bool.
2388 (catch_load_or_unload): Likewise.
2389 (init_catchpoint): Likewise.
2390 (create_fork_vfork_event_catchpoint): Likewise.
2391 (catch_fork_command_1): Likewise.
2392 (catch_exec_command_1): Likewise.
2393
4d0bcfcf
SM
23942020-09-16 Simon Marchi <simon.marchi@efficios.com>
2395
2396 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2397 Change instance_flags to m_instance_flags.
2398
fe830662
TT
23992020-09-16 Tom Tromey <tromey@adacore.com>
2400
2401 PR gdb/26598:
2402 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2403
fe5ddfc3
JB
24042020-09-16 John Baldwin <jhb@FreeBSD.org>
2405
2406 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2407 PL_FLAG_EXEC.
2408 (fbsd_nat_target::insert_exec_catchpoint)
2409 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2410 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2411 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2412
e911c666
JB
24132020-09-16 John Baldwin <jhb@FreeBSD.org>
2414
2415 * configure.ac: Remove check for kinfo_getvmmap().
2416 * configure, config.in: Regenerate.
2417 * fbsd-nat.c (fbsd_read_mapping): Remove
2418 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2419 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2420 kinfo_get_vmmap() are always present.
2421
1f17d372
JB
24222020-09-16 John Baldwin <jhb@FreeBSD.org>
2423
2424 * fbsd-nat.c: Always include support for
2425 TARGET_OBJECT_SIGNAL_INFO.
2426
bcb1da7f
JB
24272020-09-16 John Baldwin <jhb@FreeBSD.org>
2428
2429 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2430 sysctl and remove procfs fallback.
2431
5515f729
JB
24322020-09-16 John Baldwin <jhb@FreeBSD.org>
2433
2434 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2435 * fbsd-nat.h: Likewise.
2436
da1df1db
TBA
24372020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2438
2439 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2440 argument.
2441
0e25e767
AB
24422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2443
2444 * ada-lang.c (ada_language_data): Delete.
2445 (ada_language): Remove references to ada_language_data.
2446 * c-lang.c (c_language_data): Delete.
2447 (c_language): Remove references to c_language_data.
2448 (cplus_language_data): Delete.
2449 (cplus_language): Remove references to cplus_language_data.
2450 (asm_language_data): Delete.
2451 (asm_language): Remove references to asm_language_data.
2452 (minimal_language_data): Delete.
2453 (minimal_language): Remove references to minimal_language_data.
2454 * d-lang.c (d_language_data): Delete.
2455 (d_language): Remove references to d_language_data.
2456 * f-lang.c (f_language_data): Delete.
2457 (f_language): Remove references to f_language_data.
2458 * go-lang.c (go_language_data): Delete.
2459 (go_language): Remove references to go_language_data.
2460 * language.c (unknown_language_data): Delete.
2461 (unknown_language): Remove references to unknown_language_data.
2462 (auto_language_data): Delete.
2463 (auto_language): Remove references to auto_language_data.
2464 * language.h (language_data): Delete struct.
2465 (language_defn): No longer inherit from language_data.
2466 * m2-lang.c (m2_language_data): Delete.
2467 (m2_language): Remove references to m2_language_data.
2468 * objc-lang.c (objc_language_data): Delete.
2469 (objc_language): Remove references to objc_language_data.
2470 * opencl-lang.c (opencl_language_data): Delete.
2471 (opencl_language): Remove references to opencl_language_data.
2472 * p-lang.c (pascal_language_data): Delete.
2473 (pascal_language): Remove references to pascal_language_data.
2474 * rust-lang.c (rust_language_data): Delete.
2475 (rust_language): Remove references to rust_language_data.
2476
b7c6e27d
AB
24772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2478
2479 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2480 initializer.
2481 (ada_language::opcode_print_table): New member function.
2482 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2483 (c_language::opcode_print_table): New member function.
2484 (cplus_language_data): Remove la_op_print_tab initializer.
2485 (cplus_language::opcode_print_table): New member function.
2486 (asm_language_data): Remove la_op_print_tab initializer.
2487 (asm_language::opcode_print_table): New member function.
2488 (minimal_language_data): Remove la_op_print_tab initializer.
2489 (minimal_language::opcode_print_table): New member function.
2490 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2491 (d_language::opcode_print_table): New member function.
2492 * expprint.c (print_subexp_standard): Update call to
2493 opcode_print_table.
2494 (op_string): Likewise.
2495 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2496 (f_language::opcode_print_table): New member function.
2497 * go-lang.c (go_language_data): Remove la_op_print_tab
2498 initializer.
2499 (go_language::opcode_print_table): New member function.
2500 * language.c (unknown_language_data): Remove la_op_print_tab
2501 initializer.
2502 (unknown_language::opcode_print_table): New member function.
2503 (auto_language_data): Remove la_op_print_tab initializer.
2504 (auto_language::opcode_print_table): New member function.
2505 * language.h (language_data): Remove la_op_print_tab field.
2506 (language_defn::opcode_print_table): Declare new member function.
2507 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2508 initializer.
2509 (m2_language::opcode_print_table): New member function.
2510 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2511 initializer.
2512 (objc_language::opcode_print_table): New member function.
2513 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2514 initializer.
2515 (opencl_language::opcode_print_table): New member function.
2516 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2517 initializer.
2518 (pascal_language::opcode_print_table): New member function.
2519 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2520 initializer.
2521 (rust_language::opcode_print_table): New member function.
2522
5aba6ebe
AB
25232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2524
2525 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2526 (ada_language::expression_ops): New member function.
2527 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2528 (c_language::expression_ops): New member function.
2529 (cplus_language_data): Remove la_exp_desc initializer.
2530 (cplus_language::expression_ops): New member function.
2531 (asm_language_data): Remove la_exp_desc initializer.
2532 (asm_language::expression_ops): New member function.
2533 (minimal_language_data): Remove la_exp_desc initializer.
2534 (minimal_language::expression_ops): New member function.
2535 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2536 (d_language::expression_ops): New member function.
2537 * eval.c (evaluate_subexp): Update call to expression_ops.
2538 * expprint.c (print_subexp): Likewise.
2539 (op_name): Likewise.
2540 (dump_subexp_body): Likewise.
2541 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2542 (f_language::expression_ops): New member function.
2543 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2544 (go_language::expression_ops): New member function.
2545 * language.c (language_defn::expression_ops): New function.
2546 (unknown_language_data): Remove la_exp_desc initializer.
2547 (auto_language_data): Likewise.
2548 * language.h (language_data): Remove la_exp_desc field.
2549 (language_defn::expression_ops): Declare new member function.
2550 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2551 (m2_language::expression_ops): New member function.
2552 * objc-lang.c (objc_language_data): Remove la_exp_desc
2553 initializer.
2554 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2555 initializer.
2556 (opencl_language::expression_ops): New member function.
2557 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2558 * parse.c (operator_length): Update call to expression_ops.
2559 (exp_iterate): Likewise.
2560 * rust-lang.c (rust_language_data): Remove la_exp_desc
2561 initializer.
2562 (ruse_language::expression_ops): New member function.
2563
b63a3f3f
AB
25642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2565
2566 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2567 initializer.
2568 (ada_language::varobj_ops): New member function.
2569 * c-lang.c (c_language_data): Remove la_varobj_ops
2570 initializer.
2571 (cplus_language_data): Likewise.
2572 (cplus_language::varobj_ops): New member function.
2573 (asm_language_data): Remove la_varobj_ops initializer.
2574 (minimal_language_data): Likewise.
2575 * d-lang.c (d_language_data): Likewise.
2576 * f-lang.c (f_language_data): Likewise.
2577 * go-lang.c (go_language_data): Likewise.
2578 * language.c (language_defn::varobj_ops): New function.
2579 (unknown_language_data): Remove la_varobj_ops
2580 initializer.
2581 (auto_language_data): Likewise.
2582 * language.h (language_data): Remove la_varobj_ops field.
2583 (language_defn::varobj_ops): Declare new member function.
2584 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2585 * objc-lang.c (objc_language_data): Likewise.
2586 * opencl-lang.c (opencl_language_data): Likewise.
2587 * p-lang.c (pascal_language_data): Likewise.
2588 * rust-lang.c (rust_language_data): Likewise.
2589 * varobj.c (varobj_create): Update call to varobj_ops.
2590 * varobj.h (default_varobj_ops): Delete define.
2591
1ac14a04
AB
25922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2593
2594 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2595 initializer.
2596 * c-lang.c (c_language_data): Likewise.
2597 (c_language::macro_expansion): New member function.
2598 (cplus_language_data): Likewise.
2599 (cplus_language::macro_expansion): New member function.
2600 (asm_language_data): Likewise.
2601 (asm_language::macro_expansion): New member function.
2602 (minimal_language_data): Likewise.
2603 (minimal_language::macro_expansion): New member function.
2604 * d-lang.c (d_language_data): Remove la_macro_expansion
2605 initializer.
2606 * f-lang.c (f_language_data): Likewise.
2607 * go-lang.c (go_language_data): Likewise.
2608 * language.c (unknown_language_data): Likewise.
2609 (auto_language_data): Likewise.
2610 * language.h (language_data): Remove la_macro_expansion field.
2611 (language_defn::macro_expansion): New member function.
2612 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2613 initializer.
2614 * objc-lang.c (objc_language_data): Likewise.
2615 (objc_language::macro_expansion): New member function.
2616 * opencl-lang.c (opencl_language_data): Likewise.
2617 (opencl_language::macro_expansion): New member function.
2618 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2619 initializer.
2620 * rust-lang.c (rust_language_data): Likewise.
2621 * symtab.c (default_collect_symbol_completion_matches_break_on):
2622 Update call to macro_expansion.
2623
3a3440fb
AB
26242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2625
2626 * ada-lang.c (ada_language_data): Remove la_array_ordering
2627 initializer.
2628 * c-lang.c (c_language_data): Likewise.
2629 (cplus_language_data): Likewise.
2630 (asm_language_data): Likewise.
2631 (minimal_language_data): Likewise.
2632 * d-lang.c (d_language_data): Likewise.
2633 * dwarf2/read.c (read_array_order): Update for call to
2634 array_ordering.
2635 * f-lang.c (f_language_data): Remove la_array_ordering
2636 initializer.
2637 (f_language::array_ordering): New member function.
2638 * go-lang.c (go_language_data): Remove la_array_ordering
2639 initializer.
2640 * language.c (unknown_language_data): Likewise.
2641 (auto_language_data): Likewise.
2642 * language.h (language_data): Delete la_array_ordering field.
2643 (language_defn::array_ordering): New member function.
2644 * m2-lang.c (m2_language_data): Remove la_array_ordering
2645 initializer.
2646 * objc-lang.c (objc_language_data): Likewise.
2647 * opencl-lang.c (opencl_language_data): Likewise.
2648 * p-lang.c (pascal_language_data): Likewise.
2649 * rust-lang.c (rust_language_data): Likewise.
2650
0d201fa4
AB
26512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2652
2653 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2654 initializer.
2655 * c-lang.c (c_language_data): Likewise.
2656 (cplus_language_data): Likewise.
2657 (asm_language_data): Likewise.
2658 (minimal_language_data): Likewise.
2659 * d-lang.c (d_language_data): Likewise.
2660 * f-lang.c (f_language_data): Likewise.
2661 (f_language::case_sensitivity): New member function.
2662 * go-lang.c (go_language_data): Remove la_case_sensitivity
2663 initializer.
2664 * language.c (enum case_mode): Moved here from language.h.
2665 (case_mode): Make static.
2666 (show_case_command): Update for case_sensitivity being a method.
2667 (set_case_command): Likewise.
2668 (set_range_case): Likewise.
2669 (unknown_language_data): Remove la_case_sensitivity initializer.
2670 (auto_language_data): Likewise.
2671 * language.h (case_mode): Delete, move enum declaration to
2672 language.c.
2673 (language_data): Delete la_case_sensitivity field.
2674 (language_defn::case_sensitivity): New member function.
2675 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2676 initializer.
2677 * objc-lang.c (objc_language_data): Likewise.
2678 * opencl-lang.c (opencl_language_data): Likewise.
2679 * p-lang.c (pascal_language_data): Likewise.
2680 * rust-lang.c (rust_language_data): Likewise.
2681
efdf6a73
AB
26822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2683
2684 * ada-lang.c (ada_language_data): Remove la_range_check
2685 initializer.
2686 * c-lang.c (c_language_data): Likewise.
2687 (cplus_language_data): Likewise.
2688 (asm_language_data): Likewise.
2689 (minimal_language_data): Likewise.
2690 * d-lang.c (d_language_data): Likewise.
2691 * f-lang.c (f_language_data): Likewise.
2692 (f_language::range_checking_on_by_default): New member function.
2693 * go-lang.c (go_language_data): Remove la_range_check initializer.
2694 * language.c (enum range_mode): Moved here from language.h.
2695 (range_mode): Made static.
2696 (show_range_command): Update to use
2697 range_checking_on_by_default.
2698 (set_range_command): Likewise.
2699 (set_range_case): Likewise.
2700 (unknown_language_data): Remove la_range_check initializer.
2701 (auto_language_data): Likewise.
2702 * language.h (range_mode): Delete. Enum definition moved to
2703 language.c.
2704 (language_data): Remove la_range_check field.
2705 (language_defn::range_checking_on_by_default): New member
2706 function.
2707 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2708 (m2_language::range_checking_on_by_default): New member function.
2709 * objc-lang.c (objc_language_data): Remove la_range_check
2710 initializer.
2711 * opencl-lang.c (opencl_language_data): Likewise.
2712 * p-lang.c (pascal_language_data): Likewise.
2713 (pascal_language::range_checking_on_by_default): New member
2714 function.
2715 * rust-lang.c (rust_language_data): Remove la_range_check
2716 initializer.
2717 (rust_language::range_checking_on_by_default): New member
2718 function.
2719
bf92aec5
AB
27202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2721
2722 * dwarf2/read.c (dwarf2_physname): Remove special case for
2723 language_go.
2724 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2725 member function.
2726
d3355e4d
AB
27272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2728
2729 * ada-lang.c (ada_language_data): Remove
2730 la_store_sym_names_in_linkage_form_p initializer.
2731 (ada_language::store_sym_names_in_linkage_form_p): New member
2732 function.
2733 * c-lang.c (c_language_data): Remove
2734 la_store_sym_names_in_linkage_form_p initializer.
2735 (c_language::store_sym_names_in_linkage_form_p): New member
2736 function.
2737 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2738 initializer.
2739 (asm_language_data): Likewise.
2740 (asm_language::store_sym_names_in_linkage_form_p): New member
2741 function.
2742 (minimal_language_data): Remove
2743 la_store_sym_names_in_linkage_form_p initializer.
2744 (minimal_language::store_sym_names_in_linkage_form_p): New member
2745 function.
2746 * d-lang.c (d_language_data): Remove
2747 la_store_sym_names_in_linkage_form_p initializer.
2748 * dwarf2/read.c (dwarf2_physname): Update call to
2749 store_sym_names_in_linkage_form_p.
2750 * f-lang.c (f_language_data): Remove
2751 la_store_sym_names_in_linkage_form_p initializer.
2752 * go-lang.c (go_language_data): Remove
2753 la_store_sym_names_in_linkage_form_p initializer.
2754 * language.c (unknown_language_data): Remove
2755 la_store_sym_names_in_linkage_form_p initializer.
2756 (unknown_language::store_sym_names_in_linkage_form_p): New member
2757 function.
2758 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2759 initializer.
2760 (auto_language::store_sym_names_in_linkage_form_p): New member
2761 function.
2762 * language.h (language_data): Remove
2763 la_store_sym_names_in_linkage_form_p member variable.
2764 (language_defn::store_sym_names_in_linkage_form_p): New member
2765 function.
2766 * m2-lang.c (m2_language_data): Remove
2767 la_store_sym_names_in_linkage_form_p initializer.
2768 * objc-lang.c (objc_language_data): Likewise.
2769 * opencl-lang.c (opencl_language_data): Likewise.
2770 * p-lang.c (pascal_language_data): Likewise.
2771 * rust-lang.c (rust_language_data): Likewise.
2772
22c12a6c
AB
27732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2774
2775 * ada-lang.c (ada_language_data): Remove string_lower_bound
2776 initializer.
2777 * c-lang.c (c_language_data): Likewise.
2778 (cplus_language_data): Likewise.
2779 (asm_language_data): Likewise.
2780 (minimal_language_data): Likewise.
2781 * d-lang.c (d_language_data): Likewise.
2782 * f-lang.c (f_language_data): Likewise.
2783 * go-lang.c (go_language_data): Likewise.
2784 * language.c (unknown_language_data): Likewise.
2785 (auto_language_data): Likewise.
2786 * language.h (language_data): Remove string_lower_bound field.
2787 (language_defn::string_lower_bound): New member function.
2788 * m2-lang.c (m2_language_data): Remove string_lower_bound
2789 initializer.
2790 (m2_language::string_lower_bound): New member function.
2791 * objc-lang.c (objc_language_data): Remove string_lower_bound
2792 initializer.
2793 * opencl-lang.c (opencl_language_data): Likewise.
2794 * p-lang.c (pascal_language_data): Likewise.
2795 * rust-lang.c (rust_language_data): Likewise.
2796 * valops.c (value_cstring): Update call to string_lower_bound.
2797 (value_string): Likewise.
2798 * value.c (allocate_repeated_value): Likewise.
2799
1c236ddd
AB
28002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2801
2802 * valops.c (value_repeat): Fix incorrect argument name in comment.
2803
67bd3fd5
AB
28042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2805
2806 * ada-lang.c (ada_language_data): Remove c_style_arrays
2807 initializer.
2808 (ada_language::c_style_arrays_p): New member fuction.
2809 * c-lang.c (c_language_data): Remove c_style_arrays
2810 initializer.
2811 (cplus_language_data): Likewise.
2812 (asm_language_data): Likewise.
2813 (minimal_language_data): Likewise.
2814 * d-lang.c (d_language_data): Likewise.
2815 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2816 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2817 (f_language::c_style_arrays_p): New member function.
2818 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2819 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2820 * language.c (unknown_language_data): Remove c_style_arrays
2821 initializer.
2822 (auto_language_data): Likewise.
2823 * language.h (language_data): Remove c_style_arrays field.
2824 (language_defn::c_style_arrays_p): New member function.
2825 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2826 (m2_language::c_style_arrays_p): New member function.
2827 * objc-lang.c (objc_language_data): Remove c_style_arrays
2828 initializer.
2829 * opencl-lang.c (opencl_language_data): Likewise.
2830 * p-lang.c (pascal_language_data): Likewise.
2831 * rust-lang.c (rust_language_data): Likewise.
2832 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2833 and update local variable to a bool.
2834 * valops.c (value_cast): Update call to c_style_arrays_p.
2835 (value_array): Likewise.
2836 * value.c (coerce_array): Likewise.
2837
85967615
AB
28382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2839
2840 * ada-lang.c (ada_language_data): Remove la_language initializer.
2841 * c-lang.c (c_language_data): Likewise.
2842 (cplus_language_data): Likewise.
2843 (asm_language_data): Likewise.
2844 (minimal_language_data): Likewise.
2845 * d-lang.c (d_language_data): Likewise.
2846 * f-lang.c (f_language_data): Likewise.
2847 * go-lang.c (go_language_data): Likewise.
2848 * language.c (unknown_language_data): Likewise.
2849 (auto_language_data): Likewise.
2850 * language.h (language_data): Remove la_language field.
2851 (language_defn::language_defn): Initialise la_language field.
2852 (language_defn::la_language): New member variable.
2853 * m2-lang.c (m2_language_data): Remove la_language field.
2854 * objc-lang.c (objc_language_data): Likewise.
2855 * opencl-lang.c (opencl_language_data): Likewise.
2856 * p-lang.c (pascal_language_data): Likewise.
2857 * rust-lang.c (rust_language_data): Likewise.
2858
e171d6f1
AB
28592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2860
2861 * ada-lang.c (ada_extensions): Delete, moved into
2862 ada_language::filename_extensions.
2863 (ada_language_data): Remove la_filename_extensions initializer.
2864 (ada_language::filename_extensions): New member function.
2865 * c-lang.c (c_extensions): Delete, moved into
2866 c_language::filename_extensions.
2867 (c_language_data): Remove la_filename_extensions initializer.
2868 (c_language::filename_extensions): New member function.
2869 (cplus_extensions): Delete, moved into
2870 cplus_language::filename_extensions.
2871 (cplus_language_data): Remove la_filename_extensions initializer.
2872 (cplus_language::filename_extensions): New member function.
2873 (asm_extensions): Delete, moved into
2874 asm_language::filename_extensions.
2875 (asm_language_data): Remove la_filename_extensions initializer.
2876 (asm_language::filename_extensions): New member function.
2877 (minimal_language_data): Remove la_filename_extensions
2878 initializer.
2879 * d-lang.c (d_extensions): Delete, moved into
2880 d_language::filename_extensions.
2881 (d_language_data): Remove la_filename_extensions initializer.
2882 (d_language::filename_extensions): New member function.
2883 * f-lang.c (f_extensions): Delete, moved into
2884 f_language::filename_extensions.
2885 (f_language_data): Remove la_filename_extensions initializer.
2886 (f_language::filename_extensions): New member function.
2887 * go-lang.c (go_language_data): Remove la_filename_extensions
2888 initializer.
2889 * language.c (add_set_language_command): Update now that
2890 filename_extensions returns a vector.
2891 (unknown_language_data): Remove la_filename_extensions
2892 initializer.
2893 (auto_language_data): Likewise.
2894 * language.h (language_data): Remove la_filename_extensions field.
2895 (language_defn::filename_extensions): New member function.
2896 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2897 initializer.
2898 * objc-lang.c (objc_extensions): Delete, moved into
2899 objc_language::filename_extensions.
2900 (objc_language_data): Remove la_filename_extensions initializer.
2901 (objc_language::filename_extensions): New member function.
2902 * opencl-lang.c (opencl_language_data): Remove
2903 la_filename_extensions initializer.
2904 * p-lang.c (pascal_extensions): Delete, moved into
2905 pascal_language::filename_extensions.
2906 (pascal_language_data): Remove la_filename_extensions initializer.
2907 (pascal_language::filename_extensions): New member function.
2908 * rust-lang.c (rust_extensions): Delete, moved into
2909 rust_language::filename_extensions.
2910 (rust_language_data): Remove la_filename_extensions initializer.
2911 (rust_language::filename_extensions): New member function.
2912 * symfile.c (add_filename_language): Add new assert.
2913
6f7664a9
AB
29142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2915
2916 * ada-lang.c (ada_language_data): Remove la_name and
2917 la_natural_name initializers.
2918 (ada_language::name): New member function.
2919 (ada_language::natural_name): New member function.
2920 * c-lang.c (c_language_data): Remove la_name and
2921 la_natural_name initializers.
2922 (c_language::name): New member function.
2923 (c_language::natural_name): New member function.
2924 (cplus_language_data): Remove la_name and
2925 la_natural_name initializers.
2926 (cplus_language::name): New member function.
2927 (cplus_language::natural_name): New member function.
2928 (asm_language_data): Remove la_name and
2929 la_natural_name initializers.
2930 (asm_language::name): New member function.
2931 (asm_language::natural_name): New member function.
2932 (minimal_language_data): Remove la_name and
2933 la_natural_name initializers.
2934 (minimal_language::name): New member function.
2935 (minimal_language::natural_name): New member function.
2936 * compile/compile.c (compile_to_object): Update call to
2937 lanugage_defn::name.
2938 * d-lang.c (d_language_data): Remove la_name and
2939 la_natural_name initializers.
2940 (d_language::name): New member function.
2941 (d_language::natural_name): New member function.
2942 * expprint.c (print_subexp_standard): Update call to
2943 language_defn::name.
2944 (dump_raw_expression): Likewise
2945 (dump_prefix_expression): Likewise.
2946 * f-lang.c (f_language_data): Remove la_name and
2947 la_natural_name initializers.
2948 (f_language::name): New member function.
2949 (f_language::natural_name): New member function.
2950 * go-lang.c (go_language_data): Remove la_name and
2951 la_natural_name initializers.
2952 (go_language::name): New member function.
2953 (go_language::natural_name): New member function.
2954 * language.c (show_language_command): Update call to
2955 language_defn::name.
2956 (set_language_command): Likewise.
2957 (language_enum): Likewise.
2958 (language_str): Likewise.
2959 (add_set_language_command): Likewise, use
2960 language_defn::natural_name in the doc string.
2961 (unknown_language_data): Remove la_name and
2962 la_natural_name initializers.
2963 (unknown_language::name): New member function.
2964 (unknown_language::natural_name): New member function.
2965 (auto_language_data): Remove la_name and
2966 la_natural_name initializers.
2967 (auto_language::name): New member function.
2968 (auto_language::natural_name): New member function.
2969 (language_lookup_primitive_type_as_symbol): Update call to
2970 language_defn::name.
2971 * language.h (language_data): Remove la_name and la_natural_name
2972 member variables.
2973 (language_defn::name): New member function.
2974 (language_defn::natural_name): New member function.
2975 * m2-lang.c (m2_language_data): Remove la_name and
2976 la_natural_name initializers.
2977 (m2_language::name): New member function.
2978 (m2_language::natural_name): New member function.
2979 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2980 language_defn::natural_name.
2981 * objc-lang.c (objc_language_data): Remove la_name and
2982 la_natural_name initializers.
2983 (objc_language::name): New member function.
2984 (objc_language::natural_name): New member function.
2985 * opencl-lang.c (opencl_language_data): Remove la_name and
2986 la_natural_name initializers.
2987 (opencl_language::name): New member function.
2988 (opencl_language::natural_name): New member function.
2989 * p-lang.c (pascal_language_data): Remove la_name and
2990 la_natural_name initializers.
2991 (pascal_language::name): New member function.
2992 (pascal_language::natural_name): New member function.
2993 * rust-lang.c (rust_language_data): Remove la_name and
2994 la_natural_name initializers.
2995 (rust_language::name): New member function.
2996 (rust_language::natural_name): New member function.
2997 * symtab.c (lookup_language_this): Update call to
2998 language_defn::name.
2999
5bae7c4e
AB
30002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3001
3002 * ada-lang.c (ada_language_data): Remove la_name_of_this
3003 initializer.
3004 * ax-gdb.c (gen_expr): Update call to name_of_this.
3005 * c-exp.y (classify_name): Likewise.
3006 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3007 (cplus_language_data): Likewise.
3008 (cplus_language::name_of_this): New member function.
3009 (asm_language_data): Remove la_name_of_this initializer.
3010 (minimal_language_data): Likewise.
3011 * d-lang.c (d_language_data): Likewise.
3012 (d_language::name_of_this): New member function.
3013 * expprint.c (print_subexp_standard): Update call to name_of_this.
3014 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3015 * go-lang.c (go_language_data): Likewise.
3016 * language.c (unknown_language_data): Likewise.
3017 (unknown_language::name_of_this): New member function.
3018 (auto_language_data): Remove la_name_of_this initializer.
3019 (auto_language::name_of_this): New member function.
3020 * language.h (language_data): Delete la_name_of_this member
3021 variable.
3022 (language_defn::name_of_this): New member function.
3023 * m2-lang.c (m2_language_data): Remove la_name_of_this
3024 initializer.
3025 * objc-lang.c (objc_language_data): Likewise.
3026 (objc_language::name_of_this): New member function.
3027 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3028 initializer.
3029 * p-lang.c (pascal_language_data): Likewise.
3030 (pascal_language::name_of_this): New member function.
3031 * rust-lang.c (rust_language_data): Remove la_name_of_this
3032 initializer.
3033 * symtab.c (lookup_language_this): Update call to name_of_this.
3034 (lookup_symbol_aux): Likewise.
3035 * valops.c (value_of_this): Likewise.
3036
22e3f3ed
AB
30372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3038
3039 * ada-lang.c (ada_language_data): Remove
3040 la_struct_too_deep_ellipsis initializer.
3041 (ada_language::struct_too_deep_ellipsis): New member function.
3042 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3043 initializer.
3044 (cplus_language_data): Likewise.
3045 (asm_language_data): Likewise.
3046 (minimal_language_data): Likewise.
3047 * cp-valprint.c (cp_print_value): Update call to
3048 struct_too_deep_ellipsis.
3049 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3050 initializer.
3051 * f-lang.c (f_language_data): Likewise.
3052 (f_language::struct_too_deep_ellipsis): New member function.
3053 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3054 initializer.
3055 * language.c (unknown_language_data): Likewise.
3056 (auto_language_data): Likewise.
3057 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3058 member variable.
3059 (language_defn::struct_too_deep_ellipsis): New member function.
3060 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3061 initializer.Q
3062 * objc-lang.c (objc_language_data): Likewise.
3063 * opencl-lang.c (opencl_language_data): Likewise.
3064 * p-lang.c (pascal_language_data): Likewise.
3065 * rust-lang.c (rust_language_data): Likewise.
3066 * valprint.c (val_print_check_max_depth): Update call to
3067 struct_too_deep_ellipsis.
3068
ed29e1c7
FW
30692020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3070
3071 * MAINTAINERS (Write After Approval): Add myself.
3072
12d8f940
TT
30732020-09-15 Tom Tromey <tom@tromey.com>
3074
3075 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3076 Remove.
3077
6b5a7bc7
TT
30782020-09-15 Tom Tromey <tom@tromey.com>
3079
3080 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3081 and TYPE_CODE_METHODPTR cases.
3082 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3083 (c_value_print_inner): Update.
3084 * valprint.c (generic_value_print_memberptr): New function, from
3085 c_value_print_memberptr.
3086 (generic_value_print): Use it. Call cplus_print_method_ptr.
3087
47f0e2ff
TT
30882020-09-15 Tom Tromey <tromey@adacore.com>
3089
3090 * python/python-internal.h (PyInt_FromLong): Remove define.
3091 * python/py-value.c (convert_value_from_python): Use
3092 gdb_py_object_from_longest.
3093 * python/py-type.c (typy_get_code): Use
3094 gdb_py_object_from_longest.
3095 * python/py-symtab.c (salpy_get_line): Use
3096 gdb_py_object_from_longest.
3097 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3098 gdb_py_object_from_longest.
3099 * python/py-record.c (recpy_gap_reason_code): Use
3100 gdb_py_object_from_longest.
3101 * python/py-record-btrace.c (recpy_bt_insn_size)
3102 (recpy_bt_func_level, btpy_list_count): Use
3103 gdb_py_object_from_longest.
3104 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3105 gdb_py_object_from_longest. Fix error handling.
3106 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3107 gdb_py_object_from_longest.
3108 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3109 gdb_py_object_from_longest.
3110 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3111 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3112 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3113
512116ce
TT
31142020-09-15 Tom Tromey <tromey@adacore.com>
3115
3116 * python/python.c (gdbpy_parameter_value): Use
3117 gdb_py_object_from_ulongest.
3118
4ab1029c
TT
31192020-09-15 Tom Tromey <tromey@adacore.com>
3120
3121 * python/py-infevents.c (create_register_changed_event_object):
3122 Use gdb_py_object_from_longest.
3123 * python/py-exitedevent.c (create_exited_event_object): Use
3124 gdb_py_object_from_longest.
3125
062534d4
TT
31262020-09-15 Tom Tromey <tromey@adacore.com>
3127
3128 * python/python.c (gdbpy_parameter_value): Use
3129 gdb_py_object_from_longest.
3130 * python/py-type.c (convert_field, typy_range): Use
3131 gdb_py_object_from_longest.
3132 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3133 gdb_py_object_from_longest.
3134 * python/py-lazy-string.c (stpy_get_length): Use
3135 gdb_py_object_from_longest.
3136 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3137 gdb_py_object_from_longest.
3138 * python/py-infevents.c (create_memory_changed_event_object): Use
3139 gdb_py_object_from_longest.
3140 * python/py-inferior.c (infpy_get_num): Use
3141 gdb_py_object_from_longest.
3142 (infpy_get_pid): Likewise.
3143
d1cab987
TT
31442020-09-15 Tom Tromey <tromey@adacore.com>
3145
3146 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3147 defines.
3148 * python/py-value.c (valpy_long): Use
3149 gdb_py_object_from_ulongest.
3150 * python/py-symtab.c (salpy_get_pc): Use
3151 gdb_py_object_from_ulongest.
3152 (salpy_get_last): Likewise.
3153 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3154 gdb_py_object_from_ulongest.
3155 * python/py-lazy-string.c (stpy_get_address): Use
3156 gdb_py_object_from_ulongest.
3157 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3158 * python/py-arch.c (archpy_disassemble): Use
3159 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3160 error handling.
3161
4bde49dc
TT
31622020-09-15 Tom Tromey <tromey@adacore.com>
3163
3164 * python/python-internal.h (gdb_py_long_from_longest): Remove
3165 defines.
3166 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3167 * python/py-type.c (convert_field, typy_get_sizeof): Use
3168 gdb_py_object_from_longest.
3169 * python/py-record-btrace.c (btpy_list_index): Use
3170 gdb_py_object_from_longest.
3171
37431074
TT
31722020-09-15 Tom Tromey <tromey@adacore.com>
3173
3174 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3175 * python/py-record.c (recpy_element_number): Use
3176 gdb_py_object_from_longest.
3177 (recpy_gap_number): Likewise.
3178
cbe25684
TT
31792020-09-15 Tom Tromey <tromey@adacore.com>
3180
3181 * top.c (ui::ui): Update.
3182 (highest_ui_num): Remove.
3183 * top.h (struct ui) <num>: Remove.
3184
db92ac45
TT
31852020-09-15 Tom Tromey <tromey@adacore.com>
3186
3187 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3188 * ui-style.c (ansi_regex_text): Now array.
3189 * rust-exp.y (number_regex_text): Now array.
3190 * linespec.c (linespec_quote_characters): Now array.
3191 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3192 Now arrays.
3193
d2b31b67
SM
31942020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3195
3196 * debuginfod-support.c (debuginfod_client_deleter): New.
3197 (debuginfod_client_up): New.
3198 (debuginfod_init): Return debuginfod_client_up.
3199 (debuginfod_source_query): Adjust.
3200 (debuginfod_debuginfo_query): Adjust.
3201
3246bd8e
SM
32022020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3203
3204 * debuginfod-support.c (debuginfod_source_query): Use
3205 make_unique_xstrdup.
3206
10242f36
SM
32072020-09-14 Simon Marchi <simon.marchi@efficios.com>
3208
3209 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3210 with `type::instance_flags`.
3211
e1044e6a
MM
32122020-09-14 Michael Mullin <masmullin@gmail.com>
3213
3214 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3215 Remove baton parameter.
3216
04902b09
PA
32172020-09-14 Pedro Alves <pedro@palves.net>
3218
3219 * Makefile.in (SELFTESTS_SRCS): Add
3220 unittests/enum-flags-selftests.c.
3221 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3222 btrace_function_flags instead of enum btrace_function_flag.
3223 * compile/compile-c-types.c (convert_qualified): Use
3224 enum_flags::raw.
3225 * compile/compile-cplus-symbols.c (convert_one_symbol)
3226 (convert_symbol_bmsym):
3227 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3228 (compile_cplus_convert_struct_or_union_methods)
3229 (compile_cplus_instance::convert_qualified_base):
3230 * go-exp.y (parse_string_or_char): Add cast to int.
3231 * unittests/enum-flags-selftests.c: New file.
3232 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3233 type to btrace_thread_flags from btrace_thread_flag.
3234 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3235 local's type to btrace_thread_flags from btrace_thread_flag. Add
3236 cast in DEBUG call.
3237
69896a2c
PA
32382020-09-14 Pedro Alves <pedro@palves.net>
3239
3240 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3241 * gdbtypes.c (address_space_name_to_int): Rename to ...
3242 (address_space_name_to_type_instance_flags): ... this.
3243 (address_space_int_to_name): Rename to ...
3244 (address_space_type_instance_flags_to_name): ... this.
3245 * gdbtypes.h (address_space_name_to_int): Rename to ...
3246 (address_space_name_to_type_instance_flags): ... this.
3247 (address_space_int_to_name): Rename to ...
3248 (address_space_type_instance_flags_to_name): ... this.
3249 * type-stack.c (type_stack::insert): Adjust to rename.
3250 * type-stack.h (type_stack::insert): Likewise.
3251
314ad88d
PA
32522020-09-14 Pedro Alves <pedro@palves.net>
3253 Andrew Burgess <andrew.burgess@embecosm.com>
3254
3255 * avr-tdep.c (avr_address_class_type_flags): Return
3256 type_instance_flags.
3257 (avr_address_class_type_flags_to_name): Take a
3258 type_instance_flags.
3259 (avr_address_class_name_to_type_flags): Return bool and take a
3260 type_instance_flags.
3261 * d-lang.c (build_d_types): Use type::set_instance_flags.
3262 * ft32-tdep.c (ft32_address_class_type_flags): Return
3263 type_instance_flags.
3264 (ft32_address_class_type_flags_to_name): Take a
3265 type_instance_flags.
3266 (ft32_address_class_name_to_type_flags): Return bool and take a
3267 type_instance_flags.
3268 (ft32_gdbarch_init): Use type::set_instance_flags.
3269 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3270 * gdbarch.h, gdbarch.c: Regenerate.
3271 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3272 (address_class_name_to_type_flags): Use type_instance_flags and
3273 bool.
3274 * gdbtypes.c (address_space_name_to_int)
3275 (address_space_int_to_name, make_qualified_type): Use
3276 type_instance_flags.
3277 (make_qualified_type): Use type_instance_flags and
3278 type::set_instance_flags.
3279 (make_type_with_address_space, make_cv_type, make_vector_type)
3280 (check_typedef): Use type_instance_flags.
3281 (recursive_dump_type): Cast type_instance_flags to unsigned for
3282 printing.
3283 (copy_type_recursive): Use type::set_instance_flags.
3284 (gdbtypes_post_init): Use type::set_instance_flags.
3285 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3286 <m_instance_flags>: ... this.
3287 <instance_flags, set_instance_flags>: New methods.
3288 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3289 (SET_TYPE_INSTANCE_FLAGS): New.
3290 (address_space_name_to_int, address_space_int_to_name)
3291 (make_type_with_address_space): Pass flags using
3292 type_instance_flags instead of int.
3293 * stabsread.c (cleanup_undefined_types_noname): Use
3294 type::set_instance_flags.
3295 * s390-tdep.c (s390_address_class_type_flags): Return
3296 type_instance_flags.
3297 (s390_address_class_type_flags_to_name): Take a
3298 type_instance_flags.
3299 (s390_address_class_name_to_type_flags): Return bool and take a
3300 type_instance_flags.
3301 * type-stack.c (type_stack::follow_types): Use
3302 type_instance_flags.
3303 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3304
27087b7f
TT
33052020-09-14 Tom Tromey <tromey@adacore.com>
3306
3307 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3308 * x86-tdep.c (x86_is_thunk_register_name)
3309 (x86_in_indirect_branch_thunk): Update.
3310 * sparc64-tdep.c (sparc64_fpu_register_names)
3311 (sparc64_cp0_register_names, sparc64_register_names)
3312 (sparc64_pseudo_register_names): Now const.
3313 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3314 cp0_registers_num>: Now const.
3315 * sparc-tdep.c (sparc_core_register_names)
3316 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3317 (sparc32_pseudo_register_names): Now const.
3318 (validate_tdesc_registers): Update.
3319 * rust-lang.c (rust_extensions): Now const.
3320 * p-lang.c (p_extensions): Now const.
3321 * objc-lang.c (objc_extensions): Now const.
3322 * nto-tdep.c (nto_thread_state_str): Now const.
3323 * moxie-tdep.c (moxie_register_names): Now const.
3324 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3325 Now const.
3326 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3327 (mips_linux_reg_names): Now const.
3328 (mips_gdbarch_init): Update.
3329 * microblaze-tdep.c (microblaze_register_names): Now const.
3330 * m68k-tdep.c (m68k_register_names): Now const.
3331 * m32r-tdep.c (m32r_register_names): Now const.
3332 * ia64-tdep.c (ia64_register_names): Now const.
3333 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3334 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3335 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3336 ymm_avx512_register_names, pkeys_register_names>: Now const.
3337 * i386-tdep.c (i386_register_names, i386_zmm_names)
3338 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3339 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3340 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3341 * f-lang.c (f_extensions): Now const.
3342 * d-lang.c (d_extensions): Now const.
3343 * csky-tdep.c (csky_register_names): Now const.
3344 * charset.c (default_charset_names, charset_enum): Now const.
3345 (_initialize_charset): Update.
3346 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3347 const.
3348 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3349 (bsd_uthread_solib_loaded): Update.
3350 (bsd_uthread_state): Now const.
3351 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3352 (amd64_ymm_avx512_names, amd64_ymmh_names)
3353 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3354 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3355 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3356 (amd64_dword_names): Now const.
3357 * agent.c (can_use_agent_enum): Now const.
3358 * ada-tasks.c (task_states, long_task_states): Now const.
3359 * ada-lang.c (known_runtime_file_name_patterns)
3360 (known_auxiliary_function_name_patterns, attribute_names)
3361 (standard_exc, ada_extensions): Now const.
3362
89806626
SM
33632020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3364
3365 * bcache.h (struct bcache) <bcache>: Remove constructor.
3366 <m_hash_function, m_compare_function>: Remove.
3367 <~bcache>: Make virtual.
3368 <compare>: Remove static method, introduce virtual method.
3369 <default_hash>: Remove.
3370 <hash>: New virtual method.
3371 * bcache.c (bcache::expand_hash_table): Update.
3372 (bcache::insert): Update.
3373 (bcache::hash): New.
3374 (bcache::compare): Update comment and parameter names.
3375 * gdbtypes.c (types_deeply_equal): Update.
3376 * psymtab.h (struct psymbol_bcache): New struct.
3377 (class psymtab_storage) <psymtab_storage>: Make default.
3378 <psymbol_cache>: Change type to psymbol_bcache.
3379 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3380 (psymbol_hash): Change to...
3381 (psymbol_bcache::hash): ... this.
3382 (psymbol_compare): Change to...
3383 (psymbol_bcache::compare): ... this.
3384
677c92fe
SM
33852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3386
3387 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3388 checking for initial lwp.
3389
3eba3a01
TT
33902020-09-14 Tom Tromey <tromey@adacore.com>
3391
3392 * m68k-tdep.c (m68k_extract_return_value): Use
3393 pointer_result_regnum.
3394 (m68k_store_return_value): Likewise.
3395 (m68k_reg_struct_return_p): Handle vectors and arrays.
3396 (m68k_return_value): Handle arrays.
3397 (m68k_svr4_return_value): Fix single-element aggregate handling.
3398 Handle long double. Adjust for embedded ABI.
3399 (m68k_svr4_init_abi): Set pointer_result_regnum.
3400 (m68k_embedded_init_abi): New function.
3401 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3402 (m68k_osabi_sniffer): New function.
3403 (_initialize_m68k_tdep): Register osabi sniffer.
3404 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3405 member.
3406
33f4dd48
SM
34072020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3408
3409 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3410 with gdb::unique_xmalloc_ptr<char>.
3411
8400a90d
SM
34122020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3413
3414 * xml-support.h (xml_fetch_another): Change type to be a
3415 function_view.
3416 (xml_process_xincludes): Remove baton parameter.
3417 (xml_fetch_content_from_file): Change baton parameter to
3418 dirname.
3419 * xml-support.c (struct xinclude_parsing_data)
3420 <xinclude_parsing_data>: Remove baton parameter.
3421 <fetcher_baton>: Remove.
3422 (xinclude_start_include): Adjust.
3423 (xml_process_xincludes): Adjust.
3424 (xml_fetch_content_from_file): Replace baton parameter with
3425 dirname.
3426 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3427 (xml_init_syscalls_info): Use a lambda.
3428 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3429 (file_read_description_xml): Use a lambda.
3430 (fetch_available_features_from_target): Change baton parameter
3431 to target_ops.
3432 (target_read_description_xml): Use a lambda.
3433 (target_fetch_description_xml): Use a lambda.
3434 (string_read_description_xml): Update.
3435
04f5bab2
SM
34362020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3437
3438 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3439 uses with type::endianity_is_not_default.
3440
db558e34
SM
34412020-09-14 Simon Marchi <simon.marchi@efficios.com>
3442
3443 * gdbtypes.h (struct type) <endianity_is_not_default,
3444 set_endianity_is_not_default>: New methods.
3445 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3446 type::endianity_is_not_default, change all write call sites to
3447 use type::set_endianity_is_not_default.
3448
22c4c60c
SM
34492020-09-14 Simon Marchi <simon.marchi@efficios.com>
3450
3451 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3452 uses with type::is_fixed_instance.
3453
9cdd0d12
SM
34542020-09-14 Simon Marchi <simon.marchi@efficios.com>
3455
3456 * gdbtypes.h (struct type) <is_fixed_instance,
3457 set_is_fixed_instance>: New methods.
3458 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3459 write call sites to use type::set_is_fixed_instance.
3460
0becda7a
SM
34612020-09-14 Simon Marchi <simon.marchi@efficios.com>
3462
3463 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3464 uses with type::is_gnu_ifunc.
3465
03cc7249
SM
34662020-09-14 Simon Marchi <simon.marchi@efficios.com>
3467
3468 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3469 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3470 use type::set_is_gnu_ifunc.
3471
3f46044c
SM
34722020-09-14 Simon Marchi <simon.marchi@efficios.com>
3473
3474 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3475 uses with type::stub_is_supported.
3476
9baccff6
SM
34772020-09-14 Simon Marchi <simon.marchi@efficios.com>
3478
3479 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3480 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3481 use type::set_stub_is_supported.
3482
bd63c870
SM
34832020-09-14 Simon Marchi <simon.marchi@efficios.com>
3484
3485 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3486 uses with type::is_vector.
3487
2062087b
SM
34882020-09-14 Simon Marchi <simon.marchi@efficios.com>
3489
3490 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3491 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3492 use type::set_is_vector.
3493
a409645d
SM
34942020-09-14 Simon Marchi <simon.marchi@efficios.com>
3495
3496 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3497 uses with type::has_varargs.
3498
1d6286ed
SM
34992020-09-14 Simon Marchi <simon.marchi@efficios.com>
3500
3501 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3502 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3503 use type::set_has_varargs.
3504
7f9f399b
SM
35052020-09-14 Simon Marchi <simon.marchi@efficios.com>
3506
3507 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3508 uses with type::is_prototyped.
3509
27e69b7a
SM
35102020-09-14 Simon Marchi <simon.marchi@efficios.com>
3511
3512 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3513 New methods.
3514 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3515 call sites to use type::set_is_prototyped.
3516
d2183968
SM
35172020-09-14 Simon Marchi <simon.marchi@efficios.com>
3518
3519 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3520 uses with type::target_is_stub.
3521
8f53807e
SM
35222020-09-14 Simon Marchi <simon.marchi@efficios.com>
3523
3524 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3525 New methods.
3526 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3527 sites to use type::set_target_is_stub.
3528
e46d3488
SM
35292020-09-14 Simon Marchi <simon.marchi@efficios.com>
3530
3531 * gdbtypes.h (TYPE_STUB): Remove, replace all
3532 uses with type::is_stub.
3533
b4b73759
SM
35342020-09-14 Simon Marchi <simon.marchi@efficios.com>
3535
3536 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3537 (TYPE_STUB): Use type::is_stub, change all write call sites to
3538 use type::set_is_stub.
3539
20ce4123
SM
35402020-09-14 Simon Marchi <simon.marchi@efficios.com>
3541
3542 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3543 type::has_no_signedness.
3544
15152a54
SM
35452020-09-14 Simon Marchi <simon.marchi@efficios.com>
3546
3547 * gdbtypes.h (struct type) <has_no_signedness,
3548 set_has_no_signedness>: New methods.
3549 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3550 call sites to use type::set_has_no_signedness.
3551
c6d940a9
SM
35522020-09-14 Simon Marchi <simon.marchi@efficios.com>
3553
3554 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3555 type::is_unsigned.
3556
653223d3
SM
35572020-09-14 Simon Marchi <simon.marchi@efficios.com>
3558
3559 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3560 methods.
3561 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3562 sites to use type::set_is_unsigned.
3563
55ea94da 35642020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3565 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3566
e851246a
SM
3567 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3568 pointer and stack frame offset when unwinding.
55ea94da 3569
6791b117
PA
35702020-09-13 Pedro Alves <pedro@palves.net>
3571
3572 * NEWS: Document "-break-insert --qualified".
3573 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3574
77f2120b
PA
35752020-09-13 Pedro Alves <pedro@palves.net>
3576
3577 * linespec.c (classify_mtype, compare_msyms): Delete.
3578 (search_minsyms_for_name): Remove classification logic. Instead
3579 filter out trampoline symbols if we also found an external
3580 function of the same name.
3581
ed6a896c
JB
35822020-09-13 Joel Brobecker <brobecker@adacore.com>
3583
3584 * NEWS: Create a new section for the next release branch.
3585 Rename the section of the current branch, now that it has
3586 been cut.
3587
32aea73e
JB
35882020-09-13 Joel Brobecker <brobecker@adacore.com>
3589
3590 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3591 * version.in: Bump version to 11.0.50.DATE-git.
3592
8087c3fa
JB
35932020-09-12 Joel Brobecker <brobecker@adacore.com>
3594
3595 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3596
2a67f09d
FW
35972020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3598 Felix Willgerodt <Felix.Willgerodt@intel.com>
3599
3600 * gdbarch.sh: Added bfloat16 type.
3601 * gdbarch.c: Regenerated.
3602 * gdbarch.h: Regenerated.
3603 * gdbtypes.c (floatformats_bfloat16): New struct.
3604 (gdbtypes_post_init): Add builtin_bfloat16.
3605 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3606 (floatformats_bfloat16): New struct.
3607 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3608 (i386_ymm_type): Add field "v16_bfloat16"
3609 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3610 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3611 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3612 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3613 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3614 * features/i386/64bit-avx512.c: Regenerated.
3615 * features/i386/64bit-sse.xml: Add bfloat16 type.
3616 * features/i386/64bit-sse.c: Regenerated.
3617
1347d111
FW
36182020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3619
3620 * i386-tdep.c (i386_zmm_type): Fix field names.
3621 (i386_ymm_type): Fix field names.
3622
7a4e8e7d
TBA
36232020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3624
3625 * breakpoint.c: Fix typo in the help message of the
3626 "set breakpoint condition-evaluation" command.
3627
cf4ac4be
KR
36282020-09-10 Kamil Rytarowski <n54@gmx.com>
3629
3630 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3631 * (nbsd_nat_target::pid_to_exec_file)
3632 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3633 (nbsd_nat_target::post_startup_inferior)
3634 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3635 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3636 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3637 * (nbsd_thread_lister): Remove.
3638
f404573e
KR
36392020-09-10 Kamil Rytarowski <n54@gmx.com>
3640
3641 * fork-inferior.c (startup_inferior): Avoid double free.
3642
1ccb2c17
KR
36432020-09-10 Kamil Rytarowski <n54@gmx.com>
3644
3645 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3646 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3647
feedfcc7
KR
36482020-09-10 Kamil Rytarowski <n54@gmx.com>
3649
3650 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3651 * netbsd-nat.c: Include <sys/ptrace.h>.
3652 * (netbsd_nat::enable_proc_events): Add.
3653
c489f8c6
KR
36542020-09-10 Kamil Rytarowski <n54@gmx.com>
3655
3656 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3657 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3658 (netbsd_nat::for_each_thread): Add.
3659 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3660 "gdbsupport/common-debug.h".
3661 * (netbsd_nat::netbsd_thread_lister)
3662 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3663 (netbsd_nat::for_each_thread): Add.
3664
330662f6
KR
36652020-09-10 Kamil Rytarowski <n54@gmx.com>
3666
3667 * netbsd-nat.h: Include <unistd.h>.
3668 * (netbsd_nat::pid_to_exec_file): Add.
3669 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3670 * (netbsd_nat::pid_to_exec_file) Add.
3671
70b67307
KR
36722020-09-10 Kamil Rytarowski <n54@gmx.com>
3673
3674 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3675
99cf6da6
KR
36762020-09-10 Kamil Rytarowski <n54@gmx.com>
3677
3678 * netbsd-nat.h: New file.
3679 * netbsd-nat.c: Likewise.
3680
1b788fb6
TT
36812020-09-09 Tom Tromey <tromey@adacore.com>
3682
3683 * ada-lang.c (remove_extra_symbols): Do not increment when
3684 removing an element
3685
03b0a45f
TT
36862020-09-08 Tom Tromey <tromey@adacore.com>
3687
3688 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3689
3cae4447
TT
36902020-09-08 Tom Tromey <tromey@adacore.com>
3691
3692 PR win32/25302:
3693 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3694 (gdb_bfd_init_data): New function.
3695 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3696
7f08fd51
TBA
36972020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3698
3699 * infrun.c (fetch_inferior_event): Use
3700 `switch_to_target_no_thread` to switch the target.
3701
3e6ff933
TT
37022020-09-06 Tom Tromey <tom@tromey.com>
3703
3704 * symfile.h (dwarf2_free_objfile): Don't declare.
3705
e56798df
AKS
37062020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3707
3708 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3709 to match 16 byte real/complex type generated by Flang compiler.
3710
8f5c6526
TV
37112020-09-03 Tom de Vries <tdevries@suse.de>
3712
3713 PR breakpoint/26546
3714 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3715 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3716
c5065df0
SM
37172020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3718
3719 * maint.c (index_digits): New function.
3720 (struct maint_print_section_data): Remove.
3721 (print_bfd_section_info): Remove print_data parameter, add arg
3722 and index_digits.
3723 (print_objfile_section_info): Likewise.
3724 (print_bfd_section_info_maybe_relocated): Likewise (plus
3725 objfile).
3726 (maintenance_info_sections): Adjust calls.
3727
02c6f3f1
TT
37282020-09-02 Tom Tromey <tromey@adacore.com>
3729
3730 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3731 for null pointers.
3732 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3733
ef5e5b0b
SM
37342020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3735
3736 * bcache.h (struct bcache) <insert>: Change type of `added` to
3737 pointer to bool.
3738 * bcache.c (bcache::insert): Likewise.
3739 * gdbtypes.c (check_types_worklist): Adjust.
3740 * psymtab.c (add_psymbol_to_bcache): Adjust.
3741
973695d6
KB
37422020-08-31 Kevin Buettner <kevinb@redhat.com>
3743
3744 * corelow.c (unordered_set): Include.
3745 (class core_target): Add field 'm_core_unavailable_mappings'.
3746 (core_target::build_file_mappings): Print only one warning
3747 per inaccessible file. Add unavailable/broken mappings
3748 to m_core_unavailable_mappings.
3749 (core_target::xfer_partial): Call...
3750 (core_target::xfer_memory_via_mappings): New method.
3751
264fc0e2
SM
37522020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3753
3754 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3755 type to bool.
3756
2de01bdb
SM
37572020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3758
3759 * dwarf2/read.c (struct field_info): Fix indentation.
3760
f3bd50f1
SM
37612020-08-31 Simon Marchi <simon.marchi@efficios.com>
3762
3763 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3764 ordering in comment.
3765 * frame.c (frame_id_eq): Fix indentation.
3766
22b9b4b0
SL
37672020-08-31 Scott Linder <scott@scottlinder.com>
3768 Simon Marchi <simon.marchi@efficios.com>
3769
3770 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3771 inline frame ids in outer frame.
3772
84154d16
SM
37732020-08-31 Simon Marchi <simon.marchi@efficios.com>
3774
3775 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3776 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3777 (outer_frame_id): Use FID_STACK_OUTER instead of
3778 FID_STACK_INVALID.
3779 (frame_id_p): Don't check for outer_frame_id.
3780
8efaf6b3
SM
37812020-08-31 Simon Marchi <simon.marchi@efficios.com>
3782
3783 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3784 regnum/frame in value. Call allocate_value_lazy.
3785 * frame.c (frame_unwind_register_value): Use
3786 val_print_not_saved.
3787
fe1fe7ea
SM
37882020-08-31 Simon Marchi <simon.marchi@efficios.com>
3789
3790 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3791
f7c7700d
PA
37922020-08-29 Pedro Alves <pedro@palves.net>
3793
3794 * progspace.c (print_program_space): Use all_inferiors. Switch to
3795 the inferior before calling target_pid_to_str.
3796
e0814aae
TT
37972020-08-28 Tom Tromey <tom@tromey.com>
3798
3799 * xcoffread.c (xcoff_end_psymtab): Update comment.
3800 * dbxread.c (dbx_end_psymtab): Update comment.
3801
626d2320
TV
38022020-08-28 Tom de Vries <tdevries@suse.de>
3803
3804 PR breakpoint/26544
3805 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3806 event_location.
3807 (create_breakpoint): Same.
3808 (base_breakpoint_decode_location): Same.
3809 (bkpt_create_sals_from_location): Same.
3810 (bkpt_decode_location): Same.
3811 (bkpt_probe_create_sals_from_location): Same.
3812 (bkpt_probe_decode_location): Same.
3813 (tracepoint_create_sals_from_location): Same.
3814 (tracepoint_decode_location): Same.
3815 (tracepoint_probe_decode_location): Same.
3816 (strace_marker_create_sals_from_location): Same.
3817 (strace_marker_decode_location): Same.
3818 (create_sals_from_location_default): Same.
3819 (decode_location_default): Same.
3820 * breakpoint.h (struct breakpoint_ops): Same.
3821 (create_breakpoint): Same.
3822 * linespec.h (decode_line_full): Same.
3823 * linespec.c (decode_line_full): Same. Throw error if
3824 result.size () == 0.
3825
df631783
PA
38262020-08-27 Pedro Alves <pedro@palves.net>
3827
3828 PR gdb/26524
3829 * breakpoint.c (until_break_fsm) <location_breakpoint,
3830 caller_breakpoint>: Delete fields.
3831 <breakpoints>: New field.
3832 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3833 two individual breakpoints.
3834 (until_break_fsm::should_stop): Loop over breakpoints in the
3835 breakpoint vector.
3836 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3837 vector.
3838 (until_break_command): Handle location expanding into multiple
3839 sals.
3840
b2b38aa4
PA
38412020-08-27 Pedro Alves <pedro@palves.net>
3842
3843 PR gdb/26523
3844 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3845 bp_until breakpoints user-specified locations. Update intro
3846 comment.
3847
b886559f
SM
38482020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3849
3850 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3851 gdb_bfd_sections): New.
3852 * maint.c (print_bfd_section_info): Change param type to
3853 maint_print_section_data.
3854 (print_objfile_section_info): Likewise.
3855 (print_bfd_section_info_maybe_relocated): Likewise.
3856 (maintenance_info_sections): Use gdb_bfd_sections.
3857
4c6e63bf
SV
38582020-08-25 Shahab Vahedi <shahab@synopsys.com>
3859
3860 * MAINTAINERS: Add ARC target and maintainer.
3861
8d7f0635
AK
38622020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3863
3864 * configure.tgt: ARC support for GNU/Linux.
3865 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3866 * arc-linux-tdep.c: New file.
3867 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3868 * arc-tdep.c (arc_write_pc): Use it.
3869
fdd8731b
SV
38702020-08-25 Shahab Vahedi <shahab@synopsys.com>
3871
3872 * arc-tdep.c (arc_check_for_hardware_loop): New.
3873 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3874
22459524
SV
38752020-08-25 Shahab Vahedi <shahab@synopsys.com>
3876
3877 * arc-tdep.h: Include "gdbarch.h".
3878
995d3a19
SV
38792020-08-25 Shahab Vahedi <shahab@synopsys.com>
3880
3881 * arch/arc.h
3882 (arc_gdbarch_features): New class to stir the selection of target XML.
3883 (arc_create_target_description): Use FEATURES to choose XML target.
3884 (arc_lookup_target_description): Use arc_create_target_description
3885 to create _new_ target descriptions or return the already created
3886 ones if the FEATURES is the same.
3887 * arch/arc.c: Implementation of prototypes described above.
3888 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3889 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3890 * arc-tdep.c (*_feature_name): Make feature names consistent.
3891 (arc_register_feature): A new struct to hold information about
3892 registers of a particular target/feature.
3893 (arc_check_tdesc_feature): Check if XML provides registers in
3894 compliance with ARC_REGISTER_FEATURE structs.
3895 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3896 (determine_*_reg_feature_set): Which feature name to look for.
3897 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3898 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3899 to expected ISA enums to be used in arc_gdbarch_features structs.
3900 * features/Makefile (FEATURE_XMLFILES): Add new files.
3901 * gdb/features/arc/v1-aux.c: New file.
3902 * gdb/features/arc/v1-aux.xml: Likewise.
3903 * gdb/features/arc/v1-core.c: Likewise.
3904 * gdb/features/arc/v1-core.xml: Likewise.
3905 * gdb/features/arc/v2-aux.c: Likewise.
3906 * gdb/features/arc/v2-aux.xml: Likewise.
3907 * gdb/features/arc/v2-core.c: Likewise.
3908 * gdb/features/arc/v2-core.xml: Likewise.
3909 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3910
3945d2d7
GM
39112020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3912 Andrew Burgess <andrew.burgess@embecosm.com>
3913
3914 PR m2/26372
fc5d6901 3915 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3916 an assert. Remove single element array indexing pattern as the
3917 MULTI_SUBSCRIPT support will handle this case too.
3918
2677f2d3
SM
39192020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3920
3921 * value.h (valprint_check_validity): Move declaration from
3922 here...
3923 * valprint.h (valprint_check_validity): ... to here.
3924
c426fddb
SM
39252020-08-24 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * debug.h: New file.
3928 * debug.c (debug_prefixed_vprintf): New function.
3929 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3930 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3931
1eb8556f
SM
39322020-08-24 Simon Marchi <simon.marchi@efficios.com>
3933
3934 * infrun.h (infrun_debug_printf_1): New function declaration.
3935 (infrun_debug_printf): New macro.
3936 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3937 throughout.
3938 (infrun_debug_printf): New function.
3939 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3940 (handle_jit_event): Likewise.
3941
b8fff44e
MW
39422020-08-21 Mark Wielaard <mark@klomp.org>
3943
3944 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3945
d19c3068
SM
39462020-08-22 Simon Marchi <simon.marchi@efficios.com>
3947
3948 * frame.c (enum class frame_id_status): New.
3949 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3950 (fprintf_frame): Update.
3951 (compute_frame_id): Set frame id status to "computing" on entry.
3952 Set it back to "not_computed" on failure and to "computed" on
3953 success.
3954 (get_frame_id): Assert the frame id is not being computed.
3955 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3956 (create_new_frame): Likewise.
3957 (frame_cleanup_after_sniffer): Update assert.
3958
b70e516e
SM
39592020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3960
3961 * regcache.c (pid_ptid_regcache_map): New type.
3962 (target_ptid_regcache_map): Remove.
3963 (target_pid_ptid_regcache_map): New type.
3964 (regcaches): Change type to target_pid_ptid_regcache_map.
3965 (get_thread_arch_aspace_regcache): Update.
3966 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3967 case.
3968 (regcaches_size): Update.
3969 (regcache_count): Update.
3970 (registers_changed_ptid_target_pid_test): New.
3971 (_initialize_regcache): Register new test.
3972
cdd9148a
SM
39732020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3974
3975 * regcache.c (regcache_count): New.
3976 (struct regcache_test_data): New.
3977 (regcache_test_data_up): New.
3978 (populate_regcaches_for_test): New.
3979 (regcaches_test): Remove.
3980 (get_thread_arch_aspace_regcache_test): New.
3981 (registers_changed_ptid_all_test): New.
3982 (registers_changed_ptid_target_test): New.
3983 (registers_changed_ptid_target_ptid_test): New.
3984 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3985 (_initialize_regcache): Register new tests.
3986
dd125343
SM
39872020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3988
3989 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3990 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3991 gdbarch and aspace parameter. Use current inferior's aspace.
3992 Validate regcache's arch value.
3993 (regcaches_test): Update.
3994
3ee93972
SM
39952020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3996
3997 * regcache.c (regcaches_test): Call registers_changed.
3998
33bf4c5c
TBA
39992020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4000
4001 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4002
c2fd7fae
AKS
40032020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4004
4005 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4006 to find the end of prologue for flang compiled binaries.
4007 * arm-tdep.c (arm_skip_prologue): Likewise.
4008 * i386-tdep.c (i386_skip_prologue): Likewise.
4009 * producer.c (producer_is_llvm): New function.
4010 (producer_parsing_tests): Added new tests for clang/flang.
4011 * producer.h (producer_is_llvm): New declaration.
4012
9327494e
SM
40132020-08-18 Simon Marchi <simon.marchi@efficios.com>
4014
4015 * linux-nat.c (linux_nat_debug_printf): New function.
4016 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4017
d138725a
AM
40182020-08-18 Aaron Merey <amerey@redhat.com>
4019
4020 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4021 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4022 (CLIBS): Add DEBUGINFOD_LIBS.
4023
f9b11e6b
ST
40242020-08-17 Sergei Trofimovich <siarheit@google.com>
4025
4026 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4027 'gdbarch_num_regs'.
4028
3ae7ab99
TT
40292020-08-17 Tom Tromey <tromey@adacore.com>
4030
4031 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4032 ada_get_decoded_value returns NULL.
4033
b017825f
TT
40342020-08-17 Tom Tromey <tromey@adacore.com>
4035
4036 * python/py-inferior.c (infpy_search_memory): Use
4037 gdb_py_object_from_ulongest.
4038 * python/py-infevents.c (create_inferior_call_event_object)
4039 (create_memory_changed_event_object): Use
4040 gdb_py_object_from_ulongest.
4041 * python/py-linetable.c (ltpy_entry_get_pc): Use
4042 gdb_py_object_from_ulongest.
4043
7635cf79
SM
40442020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4045
4046 * loc.c (class symbol_needs_eval_context): Fix indentation.
4047
f54be24b
SM
40482020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4049
4050 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4051 bool.
4052
53d5a2a5
TV
40532020-08-17 Tom de Vries <tdevries@suse.de>
4054
4055 PR gdb/26393
4056 * gdbtypes.c (dump_dynamic_prop): New function.
4057 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4058
547ce8f0
TV
40592020-08-15 Tom de Vries <tdevries@suse.de>
4060
4061 PR backtrace/26390
4062 * stack.c (print_frame_args): Temporarily set the selected
4063 frame to FRAME while printing the frame's arguments.
4064
6ea815e7
PFC
40652020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4066
4067 PR breakpoints/26385
4068 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4069 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4070
6e562fa3
PFC
40712020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4072
4073 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4074 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4075 and >= to check return value instead of == -1 and != -1.
4076
d369b608
SM
40772020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4078
4079 * utils.h (class gdb_argv) <as_array_view>: New method.
4080 * utils.c (gdb_argv_as_array_view_test): New.
4081 (_initialize_utils): Register selftest.
4082 * maint.c (maintenance_selftest): Use the new method.
4083
b31488a3
KR
40842020-08-13 Kamil Rytarowski <n54@gmx.com>
4085
4086 * target.h (supports_dumpcore, dumpcore): New
4087 function declarations.
4088 * target.c (supports_dumpcore, dumpcore): New
4089 functions.
4090 * target-delegates.c: Rebuild.
4091 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4092 and target_dumpcore ().
4093
002a3166
AM
40942020-08-13 Aaron Merey <amerey@redhat.com>
4095
4096 * debuginfod-support.c: Replace global variables with user_data.
4097
ece5bc8a
SM
40982020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4099
4100 * maint.c (maintenance_selftest): Split args and pass array_view
4101 to run_tests.
4102
6d8a0a5e
LM
41032020-08-12 Luis Machado <luis.machado@linaro.org>
4104
4105 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4106 type's length.
4107 Use %s and pulongest to print the length.
4108
7cf663a9
PA
41092020-08-12 Pedro Alves <palves@redhat.com>
4110
4111 * NEWS: Move "Multi-target debugging support" item to the
4112 "Changes since GDB 9" section.
4113
27c7b875
PA
41142020-08-12 Pedro Alves <palves@redhat.com>
4115
4116 PR gdb/26336
4117 * progspace.c (program_space::remove_objfile): Invalidate the
4118 frame cache.
4119
1796a2a1
TV
41202020-08-11 Tom de Vries <tdevries@suse.de>
4121
4122 * MAINTAINERS: Mark ms1 as deleted.
4123
f8e3fe0d
LM
41242020-08-10 Luis Machado <luis.machado@linaro.org>
4125
4126 PR gdb/26310
4127
4128 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4129 act accordingly.
4130 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4131 movz/str/stur/stp skipping behavior.
4132
cc308722
LM
41332020-08-10 Luis Machado <luis.machado@linaro.org>
4134
4135 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4136 struct user_sve_header instead of struct sve_context.
4137
041d9819
SM
41382020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4139
4140 * read.h (dwarf2_fetch_die_loc_sect_off,
4141 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4142 `void *` parameter with function_view.
4143 * read.c (dwarf2_fetch_die_loc_sect_off,
4144 dwarf2_fetch_die_loc_cu_off): Likewise.
4145 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4146 (per_cu_dwarf_call): Adjust.
4147 (get_frame_address_in_block_wrapper): Remove.
4148 (indirect_synthetic_pointer): Adjust.
4149 (get_ax_pc): Remove.
4150 (dwarf2_compile_expr_to_ax): Adjust.
4151
38f8aa06
TV
41522020-08-08 Tom de Vries <tdevries@suse.de>
4153
4154 PR build/26344
4155 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4156 constructor.
4157 * regcache.c (get_thread_arch_aspace_regcache): Same.
4158
a52b3ae2
TT
41592020-08-07 Tom Tromey <tromey@adacore.com>
4160
4161 * ravenscar-thread.c
4162 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4163 New method.
4164 (ravenscar_thread_target::wait): Check
4165 runtime_initialized.
4166 (ravenscar_thread_target::prepare_to_store)
4167 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4168 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4169 (ravenscar_thread_target::stopped_by_watchpoint)
4170 (ravenscar_thread_target::stopped_data_address)
4171 (ravenscar_thread_target::core_of_thread): Use
4172 scoped_restore_current_thread and
4173 set_base_thread_from_ravenscar_task.
4174
0e29517d
TT
41752020-08-07 Tom Tromey <tromey@adacore.com>
4176
4177 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4178
592f9bd7
TT
41792020-08-07 Tom Tromey <tromey@adacore.com>
4180
4181 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4182 update_inferior_ptid before update_thread_list.
4183 (temporarily_change_regcache_ptid): New class.
4184 (ravenscar_thread_target::fetch_registers)
4185 (ravenscar_thread_target::store_registers)
4186 (ravenscar_thread_target::prepare_to_store): Use base thread when
4187 forwarding operation.
4188
39e2018a
TT
41892020-08-07 Tom Tromey <tromey@adacore.com>
4190
4191 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4192 "is_pid" case.
4193
2080266b
TT
41942020-08-07 Tom Tromey <tromey@adacore.com>
4195
4196 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4197 New methods.
4198 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4199 first.
4200 (ravenscar_thread_target::add_thread): Rename from
4201 ravenscar_add_thread.
4202 (ravenscar_thread_target::update_thread_list): Use a lambda.
4203 (ravenscar_thread_target::xfer_partial): New method.
4204
78c02f21
TT
42052020-08-07 Tom Tromey <tromey@adacore.com>
4206
4207 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4208 gdb::function_view.
4209 (iterate_over_live_ada_tasks): Change type of argument.
4210 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4211 of argument.
4212
d5d833af
TT
42132020-08-07 Tom Tromey <tromey@adacore.com>
4214
4215 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4216 Remove.
4217 (ravenscar_thread_target::extra_thread_info): Remove.
4218 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4219 defer to target beneath for non-Ravenscar threads.
4220
a8ac85bb
TT
42212020-08-07 Tom Tromey <tromey@adacore.com>
4222
4223 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4224 get_base_thread_from_ravenscar_task>: Now methods.
4225 <m_cpu_map>: New member.
4226 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4227 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4228 (ravenscar_thread_target::task_is_currently_active): Update.
4229 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4230 Now a method.
4231 (ravenscar_thread_target::add_active_thread): Put initial thread
4232 into the m_cpu_map.
4233
550ab58d
TT
42342020-08-07 Tom Tromey <tromey@adacore.com>
4235
4236 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4237 event_ptid.
4238
e9546579
TT
42392020-08-07 Tom Tromey <tromey@adacore.com>
4240
4241 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4242 runtime_initialized.
4243
3d4470e5
TT
42442020-08-07 Tom Tromey <tromey@adacore.com>
4245
4246 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4247 add_active_thread.
4248 (ravenscar_thread_target::add_active_thread): Now public.
4249 (ravenscar_inferior_created): Call add_active_thread after pushing
4250 the target.
4251
888bdb2b
SM
42522020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4253
4254 * regcache.c (ptid_regcache_map): New type.
4255 (target_ptid_regcache_map): New type.
4256 (regcaches): Change type to target_ptid_regcache_map.
4257 (get_thread_arch_aspace_regcache): Update to regcaches' new
4258 type.
4259 (regcache_thread_ptid_changed): Likewise.
4260 (registers_changed_ptid): Likewise.
4261 (regcaches_size): Likewise.
4262 (regcaches_test): Update.
4263 (regcache_thread_ptid_changed): Update.
4264 * regcache.h (regcache_up): New type.
4265 * gdbsupport/ptid.h (hash_ptid): New struct.
4266
b161a60d
SM
42672020-08-07 Simon Marchi <simon.marchi@efficios.com>
4268
4269 * observable.h (thread_ptid_changed): Add parameter
4270 `process_stratum_target *`.
4271 * infrun.c (infrun_thread_ptid_changed): Add parameter
4272 `process_stratum_target *` and use it.
4273 (selftests): New namespace.
4274 (infrun_thread_ptid_changed): New function.
4275 (_initialize_infrun): Register selftest.
4276 * regcache.c (regcache_thread_ptid_changed): Add parameter
4277 `process_stratum_target *` and use it.
4278 (regcache_thread_ptid_changed): New function.
4279 (_initialize_regcache): Register selftest.
4280 * thread.c (thread_change_ptid): Pass target to
4281 thread_ptid_changed observable.
4282
d2854d8d
CT
42832020-08-06 Caroline Tice <cmtice@google.com>
4284
fe4c3d43
SM
4285 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4286 (struct dwp_sections): Update field comments. Add loclists and
4287 rnglists fields.
4288 (struct virtual_v2_dwo_sections): Rename struct to
4289 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4290 size & offset fields for loclists and rnglists.
4291 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4292 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4293 skipping dummy type units.
4294 (create_dwp_hash_table): Update the large comment above the function to
4295 discuss Version 5 DWP files as well, with references. Update all the
4296 version checks in the function to check for version 5 as well. Add new
4297 section at the end to create dwp hash table for version 5.
4298 (create_dwp_v2_section): Rename function to
4299 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4300 Add V5 to error message text.
4301 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4302 into calls to create_dwp_v2_or_v5_section.
4303 (create_dwo_unit_in_dwp_v5): New function.
4304 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4305 check for version2; add else clause to handle version 5.
4306 (open_and_init_dwo_file): Add code to check dwarf version & only call
4307 create_debug_types_hash_table (with sections.types) if version is not 5;
4308 else call create_debug_type_hash_table, with sections.info.
4309 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4310 version 5.
4311 (dwarf2_locate_v5_dwp_sections): New function.
4312 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4313 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4314
159ed7d9
SM
43152020-08-06 Simon Marchi <simon.marchi@efficios.com>
4316
4317 * regcache.h (class regcache): Remove friend
4318 registers_changed_ptid.
4319 <regcache_thread_ptid_changed>: Remove.
4320 <regcaches>: Remove.
4321 * regcache.c (regcache::regcaches): Rename to...
4322 (regcaches): ... this. Make static.
4323 (get_thread_arch_aspace_regcache): Update.
4324 (regcache::regcache_thread_ptid_changed): Rename to...
4325 (regcache_thread_ptid_changed): ... this. Update.
4326 (class regcache_access): Remove.
4327 (regcaches_test): Update.
4328 (_initialize_regcache): Update.
4329 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4330 <forward_list>.
4331
174981ae
SM
43322020-08-06 Simon Marchi <simon.marchi@efficios.com>
4333
4334 * regcache.h (class regcache) <current_regcache>: Rename to...
4335 <regcaches>: ... this. Move doc here.
4336 * regcache.c (regcache::current_regcache) Rename to...
4337 (regcache::regcaches): ... this. Move doc to header.
4338 (get_thread_arch_aspace_regcache): Update.
4339 (regcache::regcache_thread_ptid_changed): Update.
4340 (registers_changed_ptid): Update.
4341 (class regcache_access) <current_regcache_size>: Rename to...
4342 <regcaches_size>: ... this.
4343 (current_regcache_test): Rename to...
4344 (regcaches_test): ... this.
4345 (_initialize_regcache): Update.
4346
ed908db6
VC
43472020-08-06 Victor Collod <vcollod@nvidia.com>
4348
4349 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4350
b5582ab7
KB
43512020-08-05 Kevin Buettner <kevinb@redhat.com>
4352
4353 * corelow.c (core_target::build_file_mappings): Don't output
4354 null pathname in warning.
4355
ea946b86
SM
43562020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4357
4358 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4359 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4360 gdb.dwarf2/dw2-single-line-discriminators.exp,
4361 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4362
57d02173
TT
43632020-08-05 Tom Tromey <tromey@adacore.com>
4364
4365 PR rust/26197:
4366 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4367 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4368 Fix off-by-one and type size errors in ordinary case.
4369
5555c86d
TV
43702020-08-05 Tom de Vries <tdevries@suse.de>
4371
4372 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4373 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4374
97916bfe
SM
43752020-08-04 Simon Marchi <simon.marchi@efficios.com>
4376
4377 * frame.h (frame_id_p): Return bool.
4378 (frame_id_artificial_p): Return bool.
4379 (frame_id_eq): Return bool.
4380 (has_stack_frames): Return bool.
4381 (get_selected_frame): Fix typo in comment.
4382 (get_frame_pc_if_available): Return bool.
4383 (get_frame_address_in_block_if_available): Return bool.
4384 (get_frame_func_if_available): Return bool.
4385 (read_frame_register_unsigned): Return bool.
4386 (get_frame_register_bytes): Return bool.
4387 (safe_frame_unwind_memory): Return bool.
4388 (deprecated_frame_register_read): Return bool.
4389 (frame_unwinder_is): Return bool.
4390 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4391 bool.
4392 <this_id::p>: Likewise.
4393 <prev_p>: Likewise.
4394 (frame_stash_add): Return bool.
4395 (get_frame_id): Use bool.
4396 (frame_id_build_special) Use bool.
4397 (frame_id_build_unavailable_stack): Use bool.
4398 (frame_id_build): Use bool.
4399 (frame_id_p): Return bool, use true/false instead of 1/0.
4400 (frame_id_artificial_p): Likewise.
4401 (frame_id_eq): Likewise.
4402 (frame_id_inner): Likewise.
4403 (get_frame_func_if_available): Likewise.
4404 (read_frame_register_unsigned): Likewise.
4405 (deprecated_frame_register_read): Likewise.
4406 (get_frame_register_bytes): Likewise.
4407 (has_stack_frames): Likewise.
4408 (inside_main_func): Likewise.
4409 (inside_entry_func): Likewise.
4410 (get_frame_pc_if_available): Likewise.
4411 (get_frame_address_in_block_if_available): Likewise.
4412 (frame_unwinder_is): Likewise.
4413 (safe_frame_unwind_memory): Likewise.
4414 (frame_unwind_arch): Likewise.
4415
fedfee88
SM
44162020-08-04 Simon Marchi <simon.marchi@efficios.com>
4417
4418 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4419 type to cached_copy_status.
4420 (fprintf_frame): Adjust.
4421 (get_frame_func_if_available): Adjust.
4422 (frame_cleanup_after_sniffer): Adjust.
4423
6cfa9b59
MW
44242020-08-04 Mark Wielaard <mark@klomp.org>
4425
4426 * MAINTAINERS (Write After Approval): Update email address.
4427
66d6346b
SM
44282020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4429
4430 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4431 dynamic_prop::const_val.
4432
8a6d5e35
SM
44332020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4434
4435 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4436 dynamic_prop::kind.
4437
51d6067d
SM
44382020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4439
4440 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4441
b26e2ae7
JM
44422020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4443
4444 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4445
39791af2
JM
44462020-08-04 Weimin Pan <weimin.pan@oracle.com>
4447 Jose E. Marchesi <jose.marchesi@oracle.com>
4448
4449 * configure.tgt: Add entry for bpf-*-*.
4450 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4451 (ALLDEPFILES): Add bpf-tdep.c.
4452 * bpf-tdep.c: New file.
4453 * MAINTAINERS: Add bpf target and maintainer.
4454 * NEWS: Mention the support for the new target.
4455
521894aa
TV
44562020-08-04 Tom de Vries <tdevries@suse.de>
4457
4458 PR symtab/23270
4459 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4460 Error.
4461
5d6356e9
JB
44622020-08-03 John Baldwin <jhb@FreeBSD.org>
4463
4464 * syscalls/freebsd.xml: Regenerate.
4465
0cf82b81
JB
44662020-08-03 John Baldwin <jhb@FreeBSD.org>
4467
4468 * syscalls/update-freebsd.sh: Fix usage and year range.
4469
8f34b746
TV
44702020-08-03 Tom de Vries <tdevries@suse.de>
4471
4472 PR symtab/26333
4473 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4474 DW_LNE_lo_user/DW_LNE_hi_user range.
4475
5e500d33
SM
44762020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4477
4478 PR ada/26318
4479 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4480 kind.
4481
78319c15
TBA
44822020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4483
4484 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4485
4c55e970
TBA
44862020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4487
4488 * breakpoint.c (set_breakpoint_condition): Update the condition
4489 expressions after checking that the input condition string parses
4490 successfully and does not contain junk at the end.
4491
1e620590
TBA
44922020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4493
4494 * breakpoint.c (set_breakpoint_condition): Update the
4495 condition string after parsing the new condition successfully.
4496
c8693053
RO
44972020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4498
4499 * proc-api.c (_STRUCTURED_PROC): Don't define.
4500 * proc-events.c: Likewise.
4501 * proc-flags.c: Likewise.
4502 * proc-why.c: Likewise.
4503 * procfs.c: Likewise.
4504
4505 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4506 * configure, config.in: Regenerate.
4507
5a99adb8
TV
45082020-07-30 Tom de Vries <tdevries@suse.de>
4509
4510 PR build/26320
4511 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4512 m_red/m_green/m_blue in a union.
4513
8ba83e91
TV
45142020-07-29 Tom de Vries <tdevries@suse.de>
4515
4516 PR tdep/26280
4517 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4518
f75a0693
AB
45192020-07-28 Tom Tromey <tromey@adacore.com>
4520
4521 PR symtab/26270:
4522 * symtab.h (find_pc_partial_function_sym): Declare.
4523 * cli/cli-cmds.c (disassemble_command): Use
4524 find_pc_partial_function_sym. Check asm_demangle.
4525 * blockframe.c (cache_pc_function_sym): New global.
4526 (cache_pc_function_name): Remove.
4527 (clear_pc_function_cache): Update.
4528 (find_pc_partial_function_sym): New function, from
4529 find_pc_partial_function.
4530 (find_pc_partial_function): Rewrite using
4531 find_pc_partial_function_sym.
4532
16f3242c
TT
45332020-07-28 Tom Tromey <tromey@adacore.com>
4534
4535 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4536 help. Add usage.
4537
4888741a
TT
45382020-07-28 Tom Tromey <tromey@adacore.com>
4539
4540 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4541 <DW_OP_GNU_variable_value>: Cast to address type.
4542
4d46f402
KR
45432020-07-28 Kamil Rytarowski <n54@gmx.com>
4544
4545 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4546 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4547 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4548 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4549 (nbsd_get_siginfo_type): New.
4550 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4551 (_initialize_nbsd_tdep): New.
4552
d70f978b
L
45532020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4554
4555 PR binutils/26301
4556 * configure: Regenerated.
4557
377170fa
L
45582020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4559
4560 PR binutils/26301
4561 * configure: Regenerated.
4562
43d5901d
AB
45632020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4564
4565 * python/py-frame.c: Remove 'user-regs.h' include.
4566 (frapy_read_register): Rewrite to make use of
4567 gdbpy_parse_register_id.
4568 * python/py-registers.c (gdbpy_parse_register_id): New function,
4569 moved here from python/py-unwind.c. Updated the return type, and
4570 also accepts register descriptor objects.
4571 * python/py-unwind.c: Remove 'user-regs.h' include.
4572 (pyuw_parse_register_id): Moved to python/py-registers.c.
4573 (unwind_infopy_add_saved_register): Update to use
4574 gdbpy_parse_register_id.
4575 (pending_framepy_read_register): Likewise.
4576 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4577
14fa8fb3
AB
45782020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4579
4580 * python/py-registers.c: Add 'user-regs.h' include.
4581 (register_descriptor_iter_find): New function.
4582 (register_descriptor_iterator_object_methods): New static global
4583 methods array.
4584 (register_descriptor_iterator_object_type): Add pointer to methods
4585 array.
4586
ddce1758
JB
45872020-07-27 John Baldwin <jhb@FreeBSD.org>
4588
4589 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4590 for all architectures on FreeBSD 11.3 and later.
4591
a4089f52
TT
45922020-07-27 Tom Tromey <tromey@adacore.com>
4593
4594 * gcore.h (load_corefile): Don't declare.
4595
95420d30
TV
45962020-07-27 Tom de Vries <tdevries@suse.de>
4597
4598 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4599 * config.in: Regenerate.
4600 * configure: Regenerate.
4601
05a6b8c2
EZ
46022020-07-26 Eli Zaretskii <eliz@gnu.org>
4603
4604 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4605 ws2tcpip.h. When checking whether socklen_t type is defined, use
4606 ws2tcpip.h if it is available and sys/socket.h isn't.
4607 * configure: Regenerate.
4608 * config.in: Regenerate.
4609
e79eb02f
AB
46102020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4611
4612 PR fortran/23051
4613 PR fortran/26139
4614 * valops.c (value_ind): Pass address to
4615 readjust_indirect_value_type.
4616 * value.c (readjust_indirect_value_type): Make parameter
4617 non-const, and add extra address parameter. Resolve original type
4618 before using it.
4619 * value.h (readjust_indirect_value_type): Update function
4620 signature and comment.
4621
876518dd
TV
46222020-07-25 Tom de Vries <tdevries@suse.de>
4623
4624 PR symtab/26243
4625 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4626 entries.
4627
f6720b1c
AM
46282020-07-24 Aaron Merey <amerey@redhat.com>
4629
4630 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4631 * configure: Rebuild.
4632
513487e1
KB
46332020-07-23 Kevin Buettner <kevinb@redhat.com>
4634
4635 PR corefiles/26294
4636 * corelow.c (_initialize_corelow): Add period to help text
4637 for "maintenance print core-file-backed-mappings".
4638
e7bc9db8
PA
46392020-07-23 Pedro Alves <pedro@palves.net>
4640
4641 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4642 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4643 meanwhile.
4644 * frame.c (frame_cache_generation, get_frame_cache_generation):
4645 New.
4646 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4647 (get_prev_frame_if_no_cycle): On exception, don't touch
4648 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4649 * frame.h (get_frame_cache_generation): Declare.
4650
90fcc466
TV
46512020-07-23 Tom de Vries <tdevries@suse.de>
4652
4653 PR tui/26282
4654 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4655 New default constructor.
4656
78344df7
AB
46572020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4658
4659 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4660 exclude non-statement entries.
4661
b089853a
KB
46622020-07-22 Kevin Buettner <kevinb@redhat.com>
4663
4664 * NEWS (New commands): Mention new command
4665 "maintenance print core-file-backed-mappings".
4666
09c2f5d4
KB
46672020-07-22 Kevin Buettner <kevinb@redhat.com>
4668
4669 * corelow.c (gdbcmd.h): Include.
4670 (core_target::info_proc_mappings): New method.
4671 (get_current_core_target): New function.
4672 (maintenance_print_core_file_backed_mappings): New function.
4673 (_initialize_corelow): Add core-file-backed-mappings to
4674 "maint print" commands.
4675
9c5ec5c2 46762020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4677
9c5ec5c2
KB
4678 * linux-tdep.c (dump_note_entry_p): New function.
4679 (linux_dump_mapping_p_ftype): New typedef.
4680 (linux_find_memory_regions_full): Add new parameter,
4681 should_dump_mapping_p.
4682 (linux_find_memory_regions): Adjust call to
4683 linux_find_memory_regions_full.
4684 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4685 call to linux_find_memory_regions_full.
4686
db082f59
KB
46872020-07-22 Kevin Buettner <kevinb@redhat.com>
4688
4689 * corelow.c (solist.h, unordered_map): Include.
4690 (class core_target): Add field m_core_file_mappings and
4691 method build_file_mappings.
4692 (core_target::core_target): Call build_file_mappings.
4693 (core_target::~core_target): Free memory associated with
4694 m_core_file_mappings.
4695 (core_target::build_file_mappings): New method.
4696 (core_target::xfer_partial): Use m_core_file_mappings
4697 for memory transfers.
4698 * linux-tdep.c (linux_read_core_file_mappings): New
4699 function.
4700 (linux_core_info_proc_mappings): Rewrite to use
4701 linux_read_core_file_mappings.
4702 (linux_init_abi): Register linux_read_core_file_mappings.
4703
7e183d27
KB
47042020-07-22 Kevin Buettner <kevinb@redhat.com>
4705
4706 * arch-utils.c (default_read_core_file_mappings): New function.
4707 * arch-utils.c (default_read_core_file_mappings): Declare.
4708 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4709 * gdbarch.h, gdbarch.c: Regenerate.
4710
2735d421
KB
47112020-07-22 Kevin Buettner <kevinb@redhat.com>
4712
4713 PR corefiles/25631
4714 * corelow.c (core_target:xfer_partial): Revise
4715 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4716 case after first checking the stratum beneath the core
4717 target.
4718 (has_all_memory): Return true.
4719 * target.c (raw_memory_xfer_partial): Revise comment
4720 regarding use of has_all_memory.
4721
e56cb451
KB
47222020-07-22 Kevin Buettner <kevinb@redhat.com>
4723
4724 * exec.h (section_table_xfer_memory): Revise declaration,
4725 replacing section name parameter with an optional callback
4726 predicate.
4727 * exec.c (section_table_xfer_memory): Likewise.
4728 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4729 of section_table_xfer_memory.
4730
32fa152e
TT
47312020-07-22 Tom Tromey <tromey@adacore.com>
4732
4733 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4734 lookup_symbol_search_name.
4735
a67a1c41
AB
47362020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4737
4738 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4739 redundant local variable.
4740 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4741 reference, not pointer, update code accordingly.
4742
a7b4ff4f
SM
47432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4744 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4745
4746 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4747 * jit.c (jit_breakpoint_re_set_internal): Use the
4748 `skip_jit_symbol_lookup` field.
4749
2340e834
SM
47502020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4751 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4752
4753 * jit.c (jit_read_descriptor): Define the descriptor address once,
4754 use twice.
4755 (jit_breakpoint_deleted): Move the declaration of the loop variable
4756 `iter` into the loop header.
4757 (jit_breakpoint_re_set_internal): Move the declaration of the local
4758 variable `objf_data` to the first point of definition.
4759 (jit_event_handler): Move the declaration of local variables
4760 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4761 Rename `objf` to `jited`.
4762
c1072906
SM
47632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4764
4765 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4766 Remove.
4767 * jit.c (get_jiter_objfile_data): Update.
4768
c8474dc3
TBA
47692020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4770 Simon Marchi <simon.marchi@polymtl.ca>
4771
4772 * jit.c (struct jit_program_space_data): Remove.
4773 (jit_program_space_key): Remove.
4774 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4775 stuff.
4776 (get_jit_program_space_data): Remove.
4777 (jit_breakpoint_deleted): Iterate on all of the program space's
4778 objfiles.
4779 (jit_inferior_init): Likewise.
4780 (jit_breakpoint_re_set_internal): Likewise. Also change return
4781 type to void.
4782 (jit_breakpoint_re_set): Pass current_program_space to
4783 jit_breakpoint_re_set_internal.
4784
77208eb7
SM
47852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4786
4787 * jit.h (struct jiter_objfile_data) <cached_code_address,
4788 jit_breakpoint>: Move to here from ...
4789 * jit.c (jit_program_space_data): ... here.
4790 (jiter_objfile_data::~jiter_objfile_data): Update.
4791 (jit_breakpoint_deleted): Update.
4792 (jit_breakpoint_re_set_internal): Update.
4793
8c1c720f
SM
47942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4795
4796 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4797 checks.
4798 (jit_read_descriptor): Remove NULL check.
4799 (jit_event_handler): Add an assertion.
4800
0e74a041
SM
48012020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4802
4803 * jit.h (struct jit_objfile_data): Split into...
4804 (struct jiter_objfile_data): ... this ...
4805 (struct jited_objfile_data): ... and this.
4806 * objfiles.h (struct objfile) <jit_data>: Remove.
4807 <jiter_data, jited_data>: New fields.
4808 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4809 (jiter_objfile_data::~jiter_objfile_data): ... this.
4810 (get_jit_objfile_data): Rename to ...
4811 (get_jiter_objfile_data): ... this.
4812 (add_objfile_entry): Update.
4813 (jit_read_descriptor): Use get_jiter_objfile_data.
4814 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4815 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4816 (jit_inferior_exit_hook): Use objfile's jited_data field.
4817
238b5c9f
SM
48182020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4819
4820 * jit.h: Forward-declare `struct minimal_symbol`.
4821 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4822 constructor, destructor, and an objfile* field.
4823 * jit.c (jit_objfile_data): Remove.
4824 (struct jit_objfile_data): Migrate from here to jit.h.
4825 (jit_objfile_data::~jit_objfile_data): New destructor
4826 implementation with code moved from free_objfile_data.
4827 (free_objfile_data): Delete.
4828 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4829 (jit_find_objf_with_entry_addr): Ditto.
4830 (jit_inferior_exit_hook): Ditto.
4831 (_initialize_jit): Remove the call to
4832 register_objfile_data_with_cleanup.
4833 * objfiles.h (struct objfile) <jit_data>: New field.
4834
fe053b9e
TBA
48352020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4836
4837 * jit.h: Forward-declare `struct objfile`.
4838 (jit_event_handler): Add a second parameter, the JITer objfile.
4839 * jit.c (jit_read_descriptor): Change the signature to take the
4840 JITer objfile as an argument instead of the jit_program_space_data.
4841 (jit_inferior_init): Update the call to jit_read_descriptor.
4842 (jit_event_handler): Use the new JITer objfile argument when calling
4843 jit_read_descriptor.
4844 * breakpoint.c (handle_jit_event): Update the call to
4845 jit_event_handler to pass the JITer objfile.
4846
4cec0c66
JB
48472020-07-21 John Baldwin <jhb@FreeBSD.org>
4848
4849 * gdbarch.c: Regenerate.
4850 * gdbarch.h: Regenerate.
4851 * gdbarch.sh (handle_segmentation_fault): Remove method.
4852 * infrun.c (handle_segmentation_fault): Remove.
4853 (print_signal_received_reason): Remove call to
4854 handle_segmentation_fault.
4855
0e42f66a
JB
48562020-07-21 John Baldwin <jhb@FreeBSD.org>
4857
4858 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4859 Rename to sparc64_linux_report_signal_info and add siggnal
4860 argument.
4861 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4862 instead of sparc64_linux_handle_segmentation_fault.
4863
77bdfeb2
JB
48642020-07-21 John Baldwin <jhb@FreeBSD.org>
4865
4866 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4867 i386_linux_report_signal_info instead of
4868 i386_linux_handle_segmentation_fault.
4869 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4870 to i386_linux_report_signal_info and add siggnal argument.
4871 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4872 of i386_linux_handle_segmentation_fault.
4873 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4874 to i386_linux_report_signal_info and add siggnal argument.
4875
ad97bfc5
JB
48762020-07-21 John Baldwin <jhb@FreeBSD.org>
4877
4878 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4879 hook if present.
4880
272bb05c
JB
48812020-07-21 John Baldwin <jhb@FreeBSD.org>
4882
4883 * gdbarch.c: Regenerate.
4884 * gdbarch.h: Regenerate.
4885 * gdbarch.sh (report_signal_info): New method.
4886 * infrun.c (print_signal_received_reason): Invoke gdbarch
4887 report_signal_info hook if present.
4888
baf8791e
AB
48892020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4890
4891 * python/py-registers.c : Add 'unordered_map' include.
4892 (gdbpy_new_reggroup): Renamed to...
4893 (gdbpy_get_reggroup): ...this. Update to only create register
4894 group descriptors when needed.
4895 (gdbpy_reggroup_iter_next): Update.
4896
f7306dac
AB
48972020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4898
4899 * python/py-registers.c (gdbpy_register_object_data): New static
4900 global.
4901 (gdbpy_register_object_data_init): New function.
4902 (gdbpy_new_register_descriptor): Renamed to...
4903 (gdbpy_get_register_descriptor): ...this, and update to reuse
4904 existing register descriptors where possible.
4905 (gdbpy_register_descriptor_iter_next): Update.
4906 (gdbpy_initialize_registers): Register new gdbarch data.
4907
05c309a8
SM
49082020-07-21 Simon Marchi <simon.marchi@efficios.com>
4909
4910 * linux-nat.c (stopped_pids): Make static.
4911
d1fd641e
SM
49122020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4913
4914 PR ada/26235
4915 * gdbtypes.c (ada_discrete_type_low_bound,
4916 ada_discrete_type_high_bound): Handle undefined bounds.
4917
1de14d77
KR
49182020-07-21 Kamil Rytarowski <n54@gmx.com>
4919
4920 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4921 declaration.
4922 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4923 function.
4924
ed810cc7
JB
49252020-07-20 John Baldwin <jhb@FreeBSD.org>
4926
4927 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4928 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4929 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4930 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4931 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4932 method.
4933
ae5369e7
LC
49342020-07-20 Ludovic Courtès <ludo@gnu.org>
4935
4936 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4937 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4938 which are deprecated in Guile 3.0.
4939 * configure.ac (try_guile_versions): Add "guile-3.0".
4940 * configure (try_guile_versions): Regenerate.
4941 * NEWS: Update entry.
4942
68cf161c
LC
49432020-07-20 Ludovic Courtès <ludo@gnu.org>
4944 Doug Evans <dje@google.com>
4945
4946 PR gdb/21104
4947 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4948 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4949 USING_GUILE_BEFORE_2_2.
4950 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4951 Change type to 'scm_t_port_type *'.
4952 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4953 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4954 parameter and honor it. Update callers.
4955 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4956 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4957 functions.
4958 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4959 USING_GUILE_BEFORE_2_2.
4960 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4961 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4962 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4963 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4964 and 'SCM_PORT_TYPE'.
4965 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4966 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4967 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4968 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4969 [!USING_GUILE_BEFORE_2_2]: New functions.
4970 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4971 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4972 'gdbscm_memory_port_read'.
4973 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4974 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4975 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4976 function.
4977 (ioscm_init_memory_port): Remove.
4978 (ioscm_init_memory_port_stream): New function
4979 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4980 function.
4981 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4982 Return scm_from_uint (0).
4983 (gdbscm_set_memory_port_read_buffer_size_x)
4984 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4985 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4986 Return scm_from_uint (0).
4987 (gdbscm_set_memory_port_write_buffer_size_x)
4988 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4989 * configure.ac (try_guile_versions): Add "guile-2.2".
4990 * configure: Regenerate.
4991 * NEWS: Add entry.
4992
aee91db3
TT
49932020-07-18 Tom Tromey <tom@tromey.com>
4994
4995 * linux-nat.c (linux_multi_process): Remove.
4996 (linux_nat_target::supports_multi_process): Return true.
4997
0e267416
AB
49982020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4999
5000 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5001 (riscv_lookup_target_description): Return pointer out of
5002 unique_ptr.
5003 * target-descriptions.c (allocate_target_description): Add
5004 comment.
5005 (target_desc_deleter::operator()): Likewise.
5006 * target-descriptions.h (struct target_desc_deleter): Moved to
5007 gdbsupport/tdesc.h.
5008 (target_desc_up): Likewise.
5009
f80c8ec4
TT
50102020-07-17 Tom Tromey <tromey@adacore.com>
5011
5012 * linux-nat.c (linux_nat_target::supports_non_stop)
5013 (linux_nat_target::always_non_stop_p): Use "true".
5014 (linux_nat_target::supports_disable_randomization): Use "true" and
5015 "false".
5016
d0ce17d8
CT
50172020-07-16 Caroline Tice <cmtice@google.com>
5018
5019 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5020 (RNGLIST_HEADER_SIZE64): New constant definition.
5021 (struct dwop_section_names): Add rnglists_dwo.
5022 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5023 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5024 (struct dwo_sections): Add rnglists field.
5025 (read_attribut_reprocess): Add tag parameter.
5026 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5027 (cu_debug_rnglists_section): New function (decl & definition).
5028 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5029 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5030 die whose range is being checked; get rnglist section from
5031 cu_debug_rnglists_section, to get from either objfile or dwo file as
5032 appropriate. Add cases for DW_RLE_base_addressx,
5033 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5034 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5035 test inside if-condition and updating complaint message.
5036 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5037 dwarf2_rnglists_process.
5038 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5039 dwarf2_ranges_process.
5040 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5041 need_ranges_base and update comment appropriately. Also pass die tag
5042 to dwarf2_ranges_read.
5043 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5044 need_ranges_base and update comment appropriately. Also pass die tag
5045 to dwarf2_ranges_process.
5046 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5047 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5048 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5049 need_ranges_base and update comment appropriately. Also pass die tag
5050 to read_attribute_reprocess and dwarf2_ranges_read.
5051 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5052 and update function comment appropriately.
5053 (read_loclist_index): Call read_loclists_rnglists_header instead of
5054 read_loclist_header.
5055 (read_rnglist_index): New function.
5056 (read_attribute_reprocess): Add tag parameter. Add code for
5057 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5058 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5059
3dcc261c
AB
50602020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5061
5062 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5063 being resolved.
5064
ccb9eba6
AB
50652020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5066
5067 * arch-utils.c (show_architecture): Update formatting of messages.
5068
cf88be68
SM
50692020-07-12 Simon Marchi <simon.marchi@efficios.com>
5070
5071 * gdbtypes.h (struct type) <bounds>: Handle array and string
5072 types.
5073 * ada-lang.c (assign_aggregate): Use type::bounds on
5074 array/string type.
5075 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5076 * c-varobj.c (c_number_of_children): Likewise.
5077 (c_describe_child): Likewise.
5078 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5079 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5080 (f_type_print_base): Likewise.
5081 * f-valprint.c (f77_array_offset_tbl): Likewise.
5082 (f77_get_upperbound): Likewise.
5083 (f77_print_array_1): Likewise.
5084 * guile/scm-type.c (gdbscm_type_range): Likewise.
5085 * m2-typeprint.c (m2_array): Likewise.
5086 (m2_is_long_set_of_type): Likewise.
5087 * m2-valprint.c (get_long_set_bounds): Likewise.
5088 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5089 * python/py-type.c (typy_range): Likewise.
5090 * rust-lang.c (rust_internal_print_type): Likewise.
5091 * type-stack.c (type_stack::follow_types): Likewise.
5092 * valarith.c (value_subscripted_rvalue): Likewise.
5093 * valops.c (value_cast): Likewise.
5094
509971ae
SM
50952020-07-12 Simon Marchi <simon.marchi@efficios.com>
5096
5097 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5098 callers to use the equivalent accessor methods.
5099
107406b7
SM
51002020-07-12 Simon Marchi <simon.marchi@efficios.com>
5101
5102 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5103 (struct type) <bit_stride>: New method.
5104 (TYPE_BIT_STRIDE): Remove.
5105 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5106
bb789949
SM
51072020-07-12 Simon Marchi <simon.marchi@efficios.com>
5108
5109 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5110 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5111 callers to use the equivalent accessor methods instead.
5112
39498edb
SM
51132020-07-12 Simon Marchi <simon.marchi@efficios.com>
5114
5115 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5116 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5117 callers to use the equivalent accessor methods instead.
5118
3b606f38
SM
51192020-07-12 Simon Marchi <simon.marchi@efficios.com>
5120
5121 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5122 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5123 to use dynamic_prop::kind.
5124
064d9cb9
SM
51252020-07-12 Simon Marchi <simon.marchi@efficios.com>
5126
5127 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5128 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5129 to get the bound property's kind and check against
5130 PROP_UNDEFINED.
5131
5537ddd0
SM
51322020-07-12 Simon Marchi <simon.marchi@efficios.com>
5133
5134 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5135 all callers to use type::range_bounds followed by
5136 dynamic_prop::{low,high}.
5137
8c2e4e06
SM
51382020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5139
5140 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5141 const_val, set_const_val, baton, set_locexpr, set_loclist,
5142 set_addr_offset, variant_parts, set_variant_parts,
5143 original_type, set_original_type>: New methods.
5144 <kind>: Rename to...
5145 <m_kind>: ... this. Update all users to use the new methods
5146 instead.
5147 <data>: Rename to...
5148 <m_data>: ... this. Update all users to use the new methods
5149 instead.
5150
7c6f2712
SM
51512020-07-12 Simon Marchi <simon.marchi@efficios.com>
5152
5153 * gdbtypes.c (get_discrete_bounds): Return failure if
5154 the range type's bounds are not both defined and constant
5155 values.
5156 (get_array_bounds): Update comment. Remove undefined bound check.
5157
599088e3
SM
51582020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5159
5160 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5161 the type::bounds method directly.
5162
c4dfcb36
SM
51632020-07-12 Simon Marchi <simon.marchi@efficios.com>
5164
5165 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5166 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5167 are used to set the range type's bounds to use set_bounds.
5168
0a278aa7
PW
51692020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5170
5171 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5172
cce20f10
PA
51732020-07-10 Pedro Alves <pedro@palves.net>
5174
5175 * gdbthread.h (inferior_ref): Define.
5176 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5177 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5178 * thread.c
5179 (scoped_restore_current_thread::restore):
5180 Adjust to gdb::ref_ptr.
5181 (scoped_restore_current_thread::~scoped_restore_current_thread):
5182 Remove manual decref handling.
5183 (scoped_restore_current_thread::scoped_restore_current_thread):
5184 Adjust to use
5185 inferior_ref::new_reference/thread_info_ref::new_reference.
5186 Incref the thread before calling get_frame_id instead of after.
5187 Let TARGET_CLOSE_ERROR propagate.
5188
6d7aa592
PA
51892020-07-10 Pedro Alves <pedro@palves.net>
5190
5191 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5192 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5193 NOT_AVAILABLE_ERROR.
5194 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5195 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5196
b3e3a4c1
SM
51972020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5198 Pedro Alves <pedro@palves.net>
5199
5200 PR gdb/26199
5201 * infrun.c (threads_are_resumed_pending_p): Delete.
5202 (do_target_wait): Remove threads_are_executing and
5203 threads_are_resumed_pending_p checks from the inferior_matches
5204 lambda. Update comments.
5205
d6cc5d98
PA
52062020-07-10 Pedro Alves <pedro@palves.net>
5207
5208 PR gdb/26199
5209 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5210 executing threads.
5211
7d3badc6
PA
52122020-07-10 Pedro Alves <pedro@palves.net>
5213
5214 PR gdb/26199
5215 * infrun.c (handle_no_resumed): Handle multiple targets.
5216
42bd97a6
PA
52172020-07-10 Pedro Alves <pedro@palves.net>
5218
5219 PR gdb/26199
5220 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5221 target_is_async_p.
5222
43667cc6
PA
52232020-07-10 Pedro Alves <pedro@palves.net>
5224
5225 PR gdb/26199
5226 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5227 threads, not all threads.
5228
96118d11
PA
52292020-07-10 Pedro Alves <pedro@palves.net>
5230
5231 PR gdb/26199
5232 * remote.c (remote_target::open_1): Pass remote target pointer as
5233 data to create_async_event_handler.
5234 (remote_async_inferior_event_handler): Mark async event handler
5235 before returning if the remote target still has either pending
5236 events or unacknowledged notifications.
5237
54904d81
JB
52382020-07-10 John Baldwin <jhb@FreeBSD.org>
5239
5240 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5241 declaration.
5242 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5243 function.
5244
f37e5866
JB
52452020-07-09 John Baldwin <jhb@FreeBSD.org>
5246
5247 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5248 inferior_ptid.
5249
fc238d4a
JB
52502020-07-09 John Baldwin <jhb@FreeBSD.org>
5251
5252 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5253 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5254 AT_FREEBSD_PS_STRINGS.
5255
6e2469ff
HD
52562020-07-08 Hannes Domani <ssbssa@yahoo.de>
5257
5258 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5259 of debugfile path on Windows.
5260
d1076c41
JB
52612020-07-08 John Baldwin <jhb@FreeBSD.org>
5262
5263 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5264 argument to 'data'.
5265
15f3b077
TT
52662020-07-08 Tom Tromey <tromey@adacore.com>
5267
5268 * ada-lang.c (ada_exception_message_1): Use read_memory.
5269
9fc501fd
AB
52702020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5271
5272 PR python/22748
5273 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5274 special handling for inline frames.
5275 * findvar.c (value_of_register_lazy): Skip inline frames when
5276 creating lazy register values.
5277 * frame.c (frame_id_computed_p): Delete definition.
5278 * frame.h (frame_id_computed_p): Delete declaration.
5279
64cb3757
AB
52802020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5281
5282 * NEWS: Mention additions to Python API.
5283 * python/py-arch.c (archpy_register_groups): New function.
5284 (arch_object_methods): Add 'register_groups' method.
5285 * python/py-registers.c (reggroup_iterator_object): New struct.
5286 (reggroup_object): New struct.
5287 (gdbpy_new_reggroup): New function.
5288 (gdbpy_reggroup_to_string): New function.
5289 (gdbpy_reggroup_name): New function.
5290 (gdbpy_reggroup_iter): New function.
5291 (gdbpy_reggroup_iter_next): New function.
5292 (gdbpy_new_reggroup_iterator): New function
5293 (gdbpy_initialize_registers): Register new types.
5294 (reggroup_iterator_object_type): Define new Python type.
5295 (gdbpy_reggroup_getset): New static global.
5296 (reggroup_object_type): Define new Python type.
5297 * python/python-internal.h
5298
0f767f94
AB
52992020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5300
5301 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5302 * python/py-arch.c (archpy_registers): New function.
5303 (arch_object_methods): Add 'registers' method.
5304 * python/py-registers.c: New file.
5305 * python/python-internal.h
5306 (gdbpy_new_register_descriptor_iterator): Declare.
5307 (gdbpy_initialize_registers): Declare.
5308 * python/python.c (do_start_initialization): Call
5309 gdbpy_initialize_registers.
5310 * NEWS: Mention additions to the Python API.
5311
87dbc774
AB
53122020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5313
5314 * NEWS: Mention new Python API method.
5315 * python/py-unwind.c (pending_framepy_architecture): New function.
5316 (pending_frame_object_methods): Add architecture method.
5317
3bc98c0c
AB
53182020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5319
5320 * gdbarch.c: Regenerate.
5321 * gdbarch.h: Regenerate.
5322 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5323 (gdbarch_data): Use internal_error for the case where
5324 deprecated_set_gdbarch_data was originally needed.
5325 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5326 and use passed in obstack.
5327 (libunwind_frame_set_descr): Should no longer get back NULL from
5328 gdbarch_data.
5329 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5330 type.
5331 * user-regs.c (user_regs_init): Update parameters, and use passed
5332 in obstack.
5333 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5334 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5335
d8cc8af6
TV
53362020-07-06 Tom de Vries <tdevries@suse.de>
5337
5338 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5339 End-Of-Sequence in lte_is_less_than.
5340 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5341 "gdb: Don't reorder line table entries too much when sorting".
5342
947f7597
TV
53432020-07-06 Tom de Vries <tdevries@suse.de>
5344
5345 PR tui/26205
5346 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5347
1e7c1b22
TV
53482020-07-05 Tom de Vries <tdevries@suse.de>
5349
5350 PR build/26187
5351 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5352 std::uncaught_exceptions instead of deprecated
5353 std::uncaught_exception.
5354
a36158ec
SM
53552020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5356
5357 * macroexp.h (macro_stringify): Return
5358 gdb::unique_xmalloc_ptr<char>.
5359 * macroexp.c (macro_stringify): Likewise.
5360 * macrotab.c (fixup_definition): Update.
5361
14d960c8
SM
53622020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5363
5364 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5365 (lex_one_token): Update.
5366 * macroexp.c (struct macro_buffer) <release>: Return
5367 gdb::unique_xmalloc_ptr<char>.
5368 (macro_stringify): Update.
5369 (macro_expand): Update.
5370 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5371 * macroexp.h (macro_expand_next): Likewise.
5372
211d5b1c
SM
53732020-07-02 Simon Marchi <simon.marchi@efficios.com>
5374
5375 * macroexp.h (macro_lookup_ftype): Remove.
5376 (macro_expand, macro_expand_once, macro_expand_next): Remove
5377 lookup function parameters, add scope parameter.
5378 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5379 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5380 * macroscope.h (standard_macro_lookup): Change parameter type
5381 to macro_scope.
5382 * macroscope.c (standard_macro_lookup): Likewise.
5383 * c-exp.y (lex_one_token): Update.
5384 * macrocmd.c (macro_expand_command): Likewise.
5385 (macro_expand_once_command): Likewise.
5386
b1a35af2
SM
53872020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5388
5389 * inf-loop.c (inferior_event_handler): Remove client_data param.
5390 * inf-loop.h (inferior_event_handler): Likewise.
5391 * infcmd.c (step_1): Adjust.
5392 * infrun.c (proceed): Adjust.
5393 (fetch_inferior_event): Remove client_data param.
5394 (infrun_async_inferior_event_handler): Adjust.
5395 * infrun.h (fetch_inferior_event): Remove `void *` param.
5396 * linux-nat.c (handle_target_event): Adjust.
5397 * record-btrace.c (record_btrace_handle_async_inferior_event):
5398 Adjust.
5399 * record-full.c (record_full_async_inferior_event_handler):
5400 Adjust.
5401 * remote.c (remote_async_inferior_event_handler): Adjust.
5402
1cdf9e33
TT
54032020-07-01 Tom Tromey <tom@tromey.com>
5404
5405 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5406 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5407
32c1e210
TT
54082020-07-01 Tom Tromey <tom@tromey.com>
5409
5410 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5411 tui_gen_win_info.
5412 (tui_win_info::make_window): Merge with
5413 tui_gen_win_info::make_window.
5414 (tui_win_info::make_visible): Move from tui_gen_win_info.
5415 * tui/tui-win.c (tui_win_info::max_width): Move from
5416 tui_gen_win_info.
5417 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5418 type.
5419 <window_factory>: Likewise.
5420 * tui/tui-layout.c (tui_win_info::resize): Move from
5421 tui_gen_win_info.
5422 (make_standard_window): Change return type.
5423 (get_locator_window, tui_get_window_by_name): Likewise.
5424 (tui_layout_window::apply): Remove a cast.
5425 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5426 (struct tui_win_info): Merge with tui_gen_win_info.
5427 (struct tui_gen_win_info): Remove.
5428
a30cb6da
TT
54292020-07-01 Tom Tromey <tom@tromey.com>
5430
5431 * tui/tui-stack.h (struct tui_locator_window): Derive from
5432 tui_win_info.
5433 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5434 <can_box>: New method.
5435
1eb2161f
TT
54362020-07-01 Tom Tromey <tom@tromey.com>
5437
5438 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5439
7134f2eb
TT
54402020-07-01 Tom Tromey <tom@tromey.com>
5441
5442 * tui/tui-regs.c (tui_data_window::display_registers_from)
5443 (tui_data_window::display_registers_from)
5444 (tui_data_window::first_data_item_displayed)
5445 (tui_data_window::delete_data_content_windows): Update.
5446 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5447 Remove.
5448 (tui_data_window::check_register_values): Update.
5449 (tui_data_item_window::rerender): Add parameters. Update.
5450 (tui_data_item_window::refresh_window): Remove.
5451 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5452 virtual.
5453 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5454 tui_gen_win_info.
5455 <refresh_window, max_height, min_height>: Remove.
5456 <rerender>: Add parameters.
5457 <x, y, visible>: New members.
5458 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5459 <m_item_width>: New member.
5460
22b7b041
TT
54612020-07-01 Tom Tromey <tom@tromey.com>
5462
5463 * tui/tui-regs.c (tui_data_window::show_register_group)
5464 (tui_data_window::check_register_values): Update.
5465 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5466 from item_no.
5467
c9753adb
TT
54682020-07-01 Tom Tromey <tom@tromey.com>
5469
5470 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5471 useless "if".
5472
9ab26b4a
TT
54732020-07-01 Tom Tromey <tom@tromey.com>
5474
5475 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5476 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5477
e555083f
TT
54782020-07-01 Tom Tromey <tom@tromey.com>
5479
5480 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5481 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5482 (struct tui_line_or_address): Move from tui-data.h.
5483 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5484 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5485 (tui_cmd_window, tui_source_window_base, tui_source_window)
5486 (tui_disasm_window): Don't declare.
5487 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5488 to tui-winsource.h.
5489 (SINGLE_KEY): Move to tui-stack.c.
5490
7a02bab7
TT
54912020-07-01 Tom Tromey <tom@tromey.com>
5492
5493 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5494 std::string.
5495 * tui/tui-regs.c (class tab_expansion_file): New.
5496 (tab_expansion_file::write): New method.
5497 (tui_register_format): Change return type. Use
5498 tab_expansion_file.
5499 (tui_get_register, tui_data_window::display_registers_from)
5500 (tui_data_item_window::rerender): Update.
5501 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5502 * tui/tui-io.c (tui_expand_tabs): Remove.
5503
ea68593b
TT
55042020-07-01 Tom Tromey <tom@tromey.com>
5505
5506 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5507
a8caed5d
FS
55082020-07-01 Fangrui Song <maskray@google.com>
5509
5510 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5511
9cdf9820
AKS
55122020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5513
5514 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5515 forms for DW_AT_associated and DW_AT_allocated attributes,
5516 which is already checked in function attr_to_dynamic_prop.
5517
a1520ad8
TT
55182020-06-30 Tom Tromey <tromey@adacore.com>
5519
5520 * dwarf2/read.c (quirk_rust_enum): Correctly call
5521 alloc_rust_variant for default-less enum.
5522
5ac58899
TT
55232020-06-30 Tom Tromey <tromey@adacore.com>
5524
5525 PR build/26183:
5526 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5527 gdb::to_string.
5528
19b187a9
SM
55292020-06-29 Simon Marchi <simon.marchi@efficios.com>
5530
5531 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5532 * gdbarch.h: Re-generate.
5533
cd4c4c07
TT
55342020-06-28 Tom Tromey <tom@tromey.com>
5535
5536 * command.h (cmd_types): Remove.
5537 (cmd_type): Don't declare.
5538 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5539 typedef.
5540 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5541 * cli/cli-decode.c (cmd_type): Remove.
5542
05779d57
PA
55432020-06-27 Pedro Alves <palves@redhat.com>
5544
5545 * fork-child.c (prefork_hook): Adjust.
5546 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5547 Delete.
5548 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5549 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5550 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5551 Remove declarations.
5552 (struct inferior) <set_tty, tty>: New methods.
5553 (struct inferior) <terminal>: Rename to ...
5554 (struct inferior) <m_terminal>: ... this and make private.
5555 * main.c (captured_main_1): Adjust.
5556 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5557 (mi_cmd_inferior_tty_show): Adjust.
5558 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5559 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5560
1776e3e5
NA
55612020-06-26 Nick Alcock <nick.alcock@oracle.com>
5562
5563 * configure.ac: Add --enable-libctf: handle --disable-static
5564 properly.
5565 * acinclude.m4: sinclude ../config/enable.m4.
5566 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5567 (LIBCTF): Substitute in.
5568 (CTF_DEPS): New, likewise.
5569 (CLIBS): libctf needs symbols from libbfd: move earlier.
5570 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5571 flags.
5572 * ctfread.c: Surround in ENABLE_LIBCTF.
5573 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5574 * configure: Regenerate.
5575 * config.in: Likewise.
5576
58373b80
SM
55772020-06-25 Simon Marchi <simon.marchi@efficios.com>
5578
5579 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5580
277474ee
SM
55812020-06-25 Simon Marchi <simon.marchi@efficios.com>
5582
5583 * inferior.h (struct inferior) <terminal>: Change type to
5584 gdb::unique_xmalloc_ptr<char>.
5585 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5586 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5587 field, adjust to unique pointer.
5588 (get_inferior_io_terminal): Adjust to unique pointer.
5589
6d74da72
AB
55902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5591
5592 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5593 registers, not just the known core set of registers.
5594
2e52d038
AB
55952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5596
5597 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5598 fflags, frm, and fcsr registers.
5599 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5600 restore groups.
5601 (riscv_tdesc_unknown_reg): New function.
5602 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5603 tdesc_use_registers.
5604 * riscv-tdep.h (struct gdbarch_tdep): Add
5605 unknown_csrs_first_regnum, unknown_csrs_count,
5606 duplicate_fflags_regnum, duplicate_frm_regnum, and
5607 duplicate_fcsr_regnum fields.
5608
be64fd07
AB
56092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5610
5611 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5612 callback, use the callback (when not null) to help number unknown
5613 registers.
5614 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5615 (tdesc_use_registers): Add extra parameter to declaration.
5616
3b9fce96
AB
56172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5618
5619 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5620 in the file.
5621 (class riscv_pending_register_alias): Likewise.
5622 (riscv_register_feature::register_info): Change 'required_p' field
5623 to 'required', and change its type. Add 'check' member function.
5624 (riscv_register_feature::register_info::check): Define new member
5625 function.
5626 (riscv_xreg_feature): Change initialisation of 'required' field.
5627 (riscv_freg_feature): Likewise.
5628 (riscv_virtual_feature): Likewise.
5629 (riscv_csr_feature): Likewise.
5630 (riscv_check_tdesc_feature): Take extra parameter, the csr
5631 tdesc_feature, rewrite the function to use the new
5632 riscv_register_feature::register_info::check function.
5633 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5634
865bad26
AB
56352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5636
5637 * features/Makefile: Remove all references to the deleted files
5638 below.
5639 * features/riscv/32bit-csr.c: Deleted.
5640 * features/riscv/32bit-csr.xml: Deleted.
5641 * features/riscv/64bit-csr.c: Deleted.
5642 * features/riscv/64bit-csr.xml: Deleted.
5643 * features/riscv/rebuild-csr-xml.sh: Deleted.
5644
ed69cbc8
AB
56452020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5646
5647 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5648 whitespace error for declaration of names member variable.
5649 (struct riscv_register_feature): Add new prefer_first_name member
5650 variable, and fix whitespace error in declaration of registers.
5651 (riscv_xreg_feature): Initialize prefer_first_name field.
5652 (riscv_freg_feature): Likewise.
5653 (riscv_virtual_feature): Likewise.
5654 (riscv_csr_feature): Likewise.
5655 (riscv_register_name): Expand on comments. Remove register name
5656 modifications for CSR and virtual registers.
5657
4445e8f5
AB
56582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5659
5660 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5661 errors.
5662
767a879e
AB
56632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5664
5665 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5666 riscv-opc.h.
5667 (class riscv_pending_register_alias): New class.
5668 (riscv_check_tdesc_feature): Take vector of pending aliases and
5669 populate it as appropriate.
5670 (riscv_setup_register_aliases): Delete.
5671 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5672 to riscv_check_tdesc_feature in all cases. Use the vector to
5673 create the register aliases.
5674
bb6e55f3
RO
56752020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5676
5677 * sol2-tdep.c (sol2_static_transform_name): Remove.
5678 (sol2_init_abi): Don't register it.
5679 * gdbarch.sh (static_transform_name): Remove.
5680 * gdbarch.c, gdbarch.h: Regenerate.
5681
5682 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5683 gdbarch_static_transform_name.
5684 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5685 * stabsread.c (define_symbol) <'X'>: Remove.
5686 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5687 handling.
5688 <'V'>: Likewise.
5689 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5690 <'S'>: Remove call to gdbarch_static_transform_name.
5691
c6d36836
RO
56922020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5693
5694 * procfs.c (procfs_pre_trace): New function.
5695 (procfs_target::create_inferior): Pass it to fork_inferior.
5696
a7e6196b
RO
56972020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5698
5699 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5700 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5701 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5702 sol2-tdep.o, sparc-sol2-tdep.o.
5703 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5704 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5705 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5706 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5707
d412e696
RO
57082020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5709
5710 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5711 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5712 Call sol2_init_abi.
5713 Remove calls to set_gdbarch_skip_solib_resolver,
5714 set_gdbarch_core_pid_to_str.
5715 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5716 (i386_sol2_static_transform_name): Remove.
5717 (i386_sol2_init_abi): Call sol2_init_abi.
5718 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5719 set_gdbarch_static_transform_name,
5720 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5721 Use sol2_sigtramp_p.
5722 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5723 (sol2_sigtramp_p): New function.
5724 (sol2_static_transform_name): New function.
5725 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5726 (sol2_init_abi): New function.
5727 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5728 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5729 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5730 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5731 (sparc_sol2_static_transform_name): Remove.
5732 (sparc32_sol2_init_abi): Call sol2_init_abi.
5733 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5734 set_gdbarch_static_transform_name,
5735 set_gdbarch_skip_solib_resolver,
5736 set_gdbarch_core_pid_to_str.
5737 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5738 (sparc_sol2_static_transform_name): Remove
5739 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5740 call sol2_sigtramp_p.
5741 (sparc64_sol2_init_abi): Call sol2_init_abi.
5742 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5743 set_gdbarch_static_transform_name,
5744 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5745
a8654e7d
PW
57462020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5747
5748 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5749 * exec.c (validate_exec_file): If from_tty, set both
5750 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5751 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5752 and from_tty, unconditionally ask a confirmation.
5753
caa7fd04
AB
57542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5755
5756 * target-descriptions.c (tdesc_architecture_name): Protect against
5757 NULL pointer dereference.
5758 (maint_print_xml_tdesc_cmd): New function.
5759 (_initialize_target_descriptions): Register new 'maint print
5760 xml-tdesc' command and give it the filename completer.
5761 * NEWS: Mention new 'maint print xml-tdesc' command.
5762
fbf42f4e
AB
57632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5764
5765 * target-descriptions.c (class tdesc_compatible_info): New class.
5766 (struct target_desc): Change type of compatible vector.
5767 (tdesc_compatible_p): Update for change in type of
5768 target_desc::compatible.
5769 (tdesc_compatible_info_list): New function.
5770 (tdesc_compatible_info_arch_name): New function.
5771 (tdesc_add_compatible): Update for change in type of
5772 target_desc::compatible.
5773 (print_c_tdesc::visit_pre): Likewise.
5774
20821f4e
AB
57752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5776
5777 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5778 whitespace to underscore.
5779 (maint_print_c_tdesc_cmd): Use fake filename for target
5780 descriptions that came from the target.
5781 (_initialize_target_descriptions): Add filename command completion
5782 for 'maint print c-tdesc'.
5783
1fb5ee62
SM
57842020-06-23 Simon Marchi <simon.marchi@efficios.com>
5785
5786 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5787 lines.
5788
fc3ecb3e
SM
57892020-06-23 Simon Marchi <simon.marchi@efficios.com>
5790
5791 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5792 lines.
5793 (dwarf2_find_location_expression): Likewise.
5794 (call_site_parameter_matches): Likewise.
5795 (dwarf2_compile_expr_to_ax): Likewise.
5796 (disassemble_dwarf_expression): Likewise.
5797 (loclist_describe_location): Likewise.
5798
236ef034
PA
57992020-06-23 Pedro Alves <palves@redhat.com>
5800
5801 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5802 progspace-and-thread.h. Include scoped-mock-context.h instead.
5803 (register_to_value_test): Use scoped_mock_context.
5804 * regcache.c: Include "scoped-mock-context.h".
5805 (cooked_read_test): Don't error out if a target is already pushed.
5806 Use scoped_mock_context. Adjust.
5807 * scoped-mock-context.h: New file.
5808
39e7ecca
AB
58092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5810
5811 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5812 initializer.
5813 (ada_language::is_string_type_p): New member function.
5814 * c-lang.c (c_language_data): Delete la_is_string_type_p
5815 initializer.
5816 (cplus_language_data): Likewise.
5817 (asm_language_data): Likewise.
5818 (minimal_language_data): Likewise.
5819 * d-lang.c (d_language_data): Likewise.
5820 * f-lang.c (f_is_string_type_p): Delete function, implementation
5821 moved to f_language::is_string_type_p.
5822 (f_language_data): Delete la_is_string_type_p initializer.
5823 (f_language::is_string_type_p): New member function,
5824 implementation from f_is_string_type_p.
5825 * go-lang.c (go_is_string_type_p): Delete function, implementation
5826 moved to go_language::is_string_type_p.
5827 (go_language_data): Delete la_is_string_type_p initializer.
5828 (go_language::is_string_type_p): New member function,
5829 implementation from go_is_string_type_p.
5830 * language.c (language_defn::is_string_type_p): Define new member
5831 function.
5832 (default_is_string_type_p): Make static, add comment copied from
5833 header file.
5834 (unknown_language_data): Delete la_is_string_type_p initializer.
5835 (unknown_language::is_string_type_p): New member function.
5836 (auto_language_data): Delete la_is_string_type_p initializer.
5837 (auto_language::is_string_type_p): New member function.
5838 * language.h (language_data): Delete la_is_string_type_p field.
5839 (language_defn::is_string_type_p): Declare new function.
5840 (default_is_string_type_p): Delete desclaration, move comment to
5841 definition.
5842 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5843 moved to m2_language::is_string_type_p.
5844 (m2_language_data): Delete la_is_string_type_p initializer.
5845 (m2_language::is_string_type_p): New member function,
5846 implementation from m2_is_string_type_p.
5847 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5848 initializer.
5849 * opencl-lang.c (opencl_language_data): Likewise.
5850 * p-lang.c (pascal_is_string_type_p): Delete function,
5851 implementation moved to pascal_language::is_string_type_p.
5852 (pascal_language_data): Delete la_is_string_type_p initializer.
5853 (pascal_language::is_string_type_p): New member function,
5854 implementation from pascal_is_string_type_p.
5855 * rust-lang.c (rust_is_string_type_p): Delete function,
5856 implementation moved to rust_language::is_string_type_p.
5857 (rust_language_data): Delete la_is_string_type_p initializer.
5858 (rust_language::is_string_type_p): New member function,
5859 implementation from rust_is_string_type_p.
5860 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5861 is_string_type_p.
5862
4ffc13fb
AB
58632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5864
5865 * ada-lang.c (ada_language_data): Delete la_print_typedef
5866 initializer.
5867 (ada_language::print_typedef): New member function.
5868 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5869 (cplus_language_data): Likewise.
5870 (asm_language_data): Likewise.
5871 (minimal_language_data): Likewise.
5872 * d-lang.c (d_language_data): Likewise.
5873 * f-lang.c (f_language_data): Likewise.
5874 (f_language::print_typedef): New member function.
5875 * go-lang.c (go_language_data): Delete la_print_typedef
5876 initializer.
5877 * language.c (language_defn::print_typedef): Define member
5878 function.
5879 (unknown_language_data): Delete la_print_typedef initializer.
5880 (unknown_language::print_typedef): New member function.
5881 (auto_language_data): Delete la_print_typedef initializer.
5882 (auto_language::print_typedef): New member function.
5883 * language.h (language_data): Delete la_print_typedef field.
5884 (language_defn::print_typedef): Declare new member function.
5885 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5886 (default_print_typedef): Delete declaration.
5887 * m2-lang.c (m2_language_data): Delete la_print_typedef
5888 initializer.
5889 (m2_language::print_typedef): New member function.
5890 * objc-lang.c (objc_language_data): Delete la_print_typedef
5891 initializer.
5892 * opencl-lang.c (opencl_language_data): Likewise.
5893 * p-lang.c (pascal_language_data): Likewise.
5894 (pascal_language::print_typedef): New member function.
5895 * rust-lang.c (rust_print_typedef): Delete function,
5896 implementation moved to rust_language::print_typedef.
5897 (rust_language): Delete la_print_typedef initializer.
5898 (rust_language::print_typedef): New member function,
5899 implementation from rust_print_typedef.
5900 * typeprint.c (default_print_typedef): Delete.
5901
d711ee67
AB
59022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5903
5904 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5905 (ada_language::printstr): New member function.
5906 * c-lang.c (c_language_data): Delete la_printstr initializer.
5907 (cplus_language_data): Likewise.
5908 (asm_language_data): Likewise.
5909 (minimal_language_data): Likewise.
5910 * d-lang.c (d_language_data): Likewise.
5911 * f-lang.c (f_printstr): Rename to f_language::printstr.
5912 (f_language_data): Delete la_printstr initializer.
5913 (f_language::printstr): New member function, implementation from
5914 f_printstr.
5915 * go-lang.c (go_language_data): Delete la_printstr initializer.
5916 * language.c (language_defn::printstr): Define new member
5917 function.
5918 (unk_lang_printstr): Delete.
5919 (unknown_language_data): Delete la_printstr initializer.
5920 (unknown_language::printstr): New member function.
5921 (auto_language_data): Delete la_printstr initializer.
5922 (auto_language::printstr): New member function.
5923 * language.h (language_data): Delete la_printstr field.
5924 (language_defn::printstr): Declare new member function.
5925 (LA_PRINT_STRING): Update call to printstr.
5926 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5927 (m2_language_data): Delete la_printstr initializer.
5928 (m2_language::printstr): New member function, implementation from
5929 m2_printstr.
5930 * objc-lang.c (objc_language_data): Delete la_printstr
5931 initializer.
5932 * opencl-lang.c (opencl_language_data): Likewise.
5933 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5934 (pascal_language_data): Delete la_printstr initializer.
5935 (pascal_language::printstr): New member function, implementation
5936 from pascal_printstr.
5937 * p-lang.h (pascal_printstr): Delete declaration.
5938 * rust-lang.c (rust_printstr): Update header comment.
5939 (rust_language_data): Delete la_printstr initializer.
5940 (rust_language::printstr): New member function.
5941
52b50f2c
AB
59422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5943
5944 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5945 (ada_language::printchar): New member function.
5946 * c-lang.c (c_language_data): Delete la_printchar initializer.
5947 (cplus_language_data): Likewise.
5948 (asm_language_data): Likewise.
5949 (minimal_language_data): Likewise.
5950 * d-lang.c (d_language_data): Likewise.
5951 * f-lang.c (f_printchar): Rename to f_language::printchar.
5952 (f_language_data): Delete la_printchar initializer.
5953 (f_language::printchar): New member function, implementation from
5954 f_printchar.
5955 * go-lang.c (go_language_data): Delete la_printchar initializer.
5956 * language.c (unk_lang_printchar): Delete.
5957 (language_defn::printchar): Define new member function.
5958 (unknown_language_data): Delete la_printchar initializer.
5959 (unknown_language::printchar): New member function.
5960 (auto_language_data): Delete la_printchar initializer.
5961 (auto_language::printchar): New member function.
5962 * language.h (language_data): Delete la_printchar field.
5963 (language_defn::printchar): Declare new member function.
5964 (LA_PRINT_CHAR): Update call to printchar.
5965 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5966 (m2_language::printchar): New member function.
5967 * objc-lang.c (objc_language_data): Delete la_printchar
5968 initializer.
5969 * opencl-lang.c (opencl_language_data): Likewise.
5970 * p-lang.c (pascal_language_data): Delete la_printchar
5971 initializer.
5972 (pascal_language::printchar): New member function.
5973 * rust-lang.c (rust_printchar): Rename to
5974 rust_language::printchar.
5975 (rust_language_data): Delete la_printchar initializer.
5976 (rust_language::printchar): New member function, implementation
5977 from rust_printchar.
5978
ec8cec5b
AB
59792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5980
5981 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5982 (ada_language_data): Delete la_emitchar initializer.
5983 (ada_language::emitchar): New member function, implementation from
5984 emit_char.
5985 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5986 (cplus_language_data): Likewise.
5987 (asm_language_data): Likewise.
5988 (minimal_language_data): Likewise.
5989 * d-lang.c (d_language_data): Likewise.
5990 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5991 (f_language_data): Delete la_emitchar initializer.
5992 (f_language::emitchar): New member function, implementation from
5993 f_emit_char.
5994 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5995 * language.c (unk_lang_emit_char): Delete.
5996 (language_defn::emitchar): New member function definition.
5997 (unknown_language_data): Delete la_emitchar initializer.
5998 (unknown_language::emitchar): New member function.
5999 (auto_language_data): Delete la_emitchar initializer.
6000 (auto_language::emitchar): New member function.
6001 * language.h (language_data): Delete la_emitchar field.
6002 (language_defn::emitchar): New member field declaration.
6003 (LA_EMIT_CHAR): Update call to emitchar.
6004 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6005 (m2_language_data): Delete la_emitchar initializer.
6006 (m2_language::emitchar): New member function, implementation from
6007 m2_emit_char.
6008 * objc-lang.c (objc_language_data): Delete la_emitchar
6009 initializer.
6010 * opencl-lang.c (opencl_language_data): Likewise.
6011 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6012 (pascal_language_data): Delete la_emitchar initializer.
6013 (pascal_language::emitchar): New member function, implementation
6014 from pascal_emit_char.
6015 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6016 (rust_language_data): Delete la_emitchar initializer.
6017 (rust_language::emitchar): New member function, implementation
6018 from rust_emitchar.
6019
1bf9c363
AB
60202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6021
6022 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6023 (ada_language_data): Delete la_post_parser initializer.
6024 (ada_language::post_parser): New member function.
6025 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6026 (cplus_language_data): Likewise.
6027 (asm_language_data): Likewise.
6028 (minimal_language_data): Likewise.
6029 * d-lang.c (d_language_data): Likewise.
6030 * f-lang.c (f_language_data): Likewise.
6031 * go-lang.c (go_language_data): Likewise.
6032 * language.c (unknown_language_data): Likewise.
6033 (auto_language_data): Likewise.
6034 * language.h (language_data): Delete la_post_parser field.
6035 (language_defn::post_parser): New member function.
6036 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6037 * objc-lang.c (objc_language_data): Likewise.
6038 * opencl-lang.c (opencl_language_data): Likewise.
6039 * p-lang.c (pascal_language_data): Likewise.
6040 * parse.c (parse_exp_in_context): Update call to post_parser.
6041 (null_post_parser): Delete definition.
6042 * parser-defs.h (null_post_parser): Delete declaration.
6043 * rust-lang.c (rust_language_data): Delete la_post_parser
6044 initializer.
6045
87afa652
AB
60462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6047
6048 * ada-lang.c (parse): Rename to ada_language::parser.
6049 (ada_language_data): Delete la_parser initializer.
6050 (ada_language::parser): New member function, implementation from
6051 parse.
6052 * c-lang.c (c_language_data): Delete la_parser initializer.
6053 (cplus_language_data): Likewise.
6054 (asm_language_data): Likewise.
6055 (minimal_language_data): Likewise.
6056 * d-lang.c (d_language_data): Likewise.
6057 (d_language::parser): New member function.
6058 * f-lang.c (f_language_data): Delete la_parser initializer.
6059 (f_language::parser): New member function.
6060 * go-lang.c (go_language_data): Delete la_parser initializer.
6061 (go_language::parser): New member function.
6062 * language.c (unk_lang_parser): Delete.
6063 (language_defn::parser): Define new member function.
6064 (unknown_language_data): Delete la_parser initializer.
6065 (unknown_language::parser): New member function.
6066 (auto_language_data): Delete la_parser initializer.
6067 (auto_language::parser): New member function.
6068 * language.h (language_data): Delete la_parser field.
6069 (language_defn::parser): Declare new member function.
6070 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6071 (m2_language::parser): New member function.
6072 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6073 * opencl-lang.c (opencl_language_data): Likewise.
6074 * p-lang.c (pascal_language_data): Likewise.
6075 (pascal_language::parser): New member function.
6076 * parse.c (parse_exp_in_context): Update call to parser.
6077 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6078 (rust_language::parser): New member function.
6079
37825800
AB
60802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6081
6082 * top.c (print_gdb_configuration): Print --with-python-libdir
6083 configuration value.
6084
5b860c93
PW
60852020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6086
6087 * NEWS: Mention change to the alias command.
6088
cf00cd6f
PW
60892020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6090
6091 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6092 (alias_command_completer)
6093 (make_alias_options_def_group): New functions.
6094 (alias_opts, alias_option_defs): New struct and array.
6095 (alias_usage_error): Update usage.
6096 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6097 Use option framework.
6098 (_initialize_cli_cmds): Update alias command help.
6099 Update aliases command help.
6100 (show_user):
6101 Add NULL for new default_args lookup_cmd argument.
6102 (valid_command_p): Rename to validate_aliased_command.
6103 Add NULL for new default_args lookup_cmd argument. Verify that the
6104 aliased_command has no default args.
6105 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6106 (lookup_cmd_1, lookup_cmd): New argument default_args.
6107 (add_alias_cmd):
6108 Add NULL for new default_args lookup_cmd argument.
6109 (print_help_for_command): Show default args under the layout
6110 alias some_alias = some_aliased_cmd some_alias_default_arg.
6111 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6112 xfree default_args in destructor.
6113 * cli/cli-script.c (process_next_line, do_define_command):
6114 Add NULL for new default_args lookup_cmd argument.
6115 * command.h: Declare new default_args argument in lookup_cmd
6116 and lookup_cmd_1.
6117 * completer.c (complete_line_internal_1):
6118 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6119 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6120 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6121 Likewise.
6122 * infcmd.c (_initialize_infcmd): Likewise.
6123 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6124 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6125 * python/py-param.c (add_setshow_generic): Likewise.
6126 * remote.c (_initialize_remote): Likewise.
6127 * top.c (execute_command): Prepend default_args if command has some.
6128 (set_verbose):
6129 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6130 * tracepoint.c (validate_actionline, encode_actions_1):
6131 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6132
bd920864
TBA
61332020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6134
6135 * jit.c (jit_read_descriptor): Use bool as the return type.
6136 (jit_breakpoint_re_set_internal): Use bool as the return type.
6137 Invert the return value logic; return true if the jit breakpoint
6138 has been successfully initialized.
6139 (jit_inferior_init): Update the call to
6140 jit_breakpoint_re_set_internal.
6141
f8098322
PA
61422020-06-22 Pedro Alves <palves@redhat.com>
6143
6144 PR gdb/25939
6145 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6146 Use the current inferior instead. Don't return
6147 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6148 wait again.
6149 * sol-thread.c (sol_thread_target::wait): Don't reference
6150 inferior_ptid.
6151 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6152 (sol_update_thread_list_callback): Use the current inferior's pid
6153 instead of inferior_ptid.
6154
196535a6
RO
61552020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6156
6157 * procfs.c: Cleanup many comments.
6158
6159 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6160 (AFTER_WATCHFLAG): Replace by value.
6161
6162 (MAIN_PROC_NAME_FORMAT): Inline ...
6163 (create_procinfo): ... here.
6164
6165 (procfs_debug_inferior): Remove SYS_exec handling.
6166 (syscall_is_exec): Likewise.
6167 (procfs_set_exec_trap): Likewise.
6168
6169 (syscall_is_lwp_exit): Inline in callers.
6170 (syscall_is_exit): Likewise.
6171 (syscall_is_exec): Likewise.
6172 (syscall_is_lwp_create): Likewise.
6173
6174 (invalidate_cache): Remove #if 0 code.
6175
6176 (make_signal_thread_runnable): Remove.
6177 (procfs_target::resume): Remove #if 0 code.
6178
cf6f3e86
RO
61792020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6180
6181 PR gdb/25939
6182 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6183 call ...
6184 (procfs_target::create_inferior): ... here.
6185
48e9cc84
PW
61862020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6187
6188 * exec.c (validate_exec_file): Ensure the build-id is up to
6189 date by calling reopen_exec_file (that checks file timestamp
6190 to decide to re-read the file).
6191
3922b302
PA
61922020-06-18 Pedro Alves <palves@redhat.com>
6193
6194 PR gdb/25412
6195 * gdbthread.h (delete_thread, delete_thread_silent)
6196 (find_thread_ptid): Update comments.
6197 * thread.c (current_thread_): New global.
6198 (is_current_thread): Move higher, and reimplement.
6199 (inferior_thread): Reimplement.
6200 (set_thread_exited): Use bool. Add assertions.
6201 (add_thread_silent): Simplify thread-reuse handling by always
6202 calling delete_thread.
6203 (delete_thread): Remove intro comment.
6204 (find_thread_ptid): Skip exited threads.
6205 (switch_to_thread_no_regs): Write to current_thread_.
6206 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6207 INFERIOR_PTID. Clear current_thread_.
6208
6dbdab44
PA
62092020-06-18 Pedro Alves <palves@redhat.com>
6210
6211 * aix-thread.c (pd_update): Use switch_to_thread.
6212
2da4b788
PA
62132020-06-18 Pedro Alves <palves@redhat.com>
6214
6215 * ravenscar-thread.c (ravenscar_thread_target): Update.
6216 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6217 (ravenscar_thread_target::add_active_thread): ... this. Don't
6218 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6219 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6220
50838d1b
PA
62212020-06-18 Pedro Alves <palves@redhat.com>
6222
6223 * nat/windows-nat.c (current_windows_thread): Remove.
6224 * nat/windows-nat.h (current_windows_thread): Remove.
6225 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6226 Adjust.
6227 (display_selectors): Adjust to fetch the current
6228 windows_thread_info based on inferior_ptid.
6229 (fake_create_process): No longer write to current_windows_thread.
6230 (windows_nat_target::get_windows_debug_event):
6231 Don't set inferior_ptid or current_windows_thread.
6232 (windows_nat_target::wait): Adjust to not rely on
6233 current_windows_thread.
6234 (do_initial_windows_stuff): Now a method of windows_nat_target.
6235 Switch to the last_ptid thread.
6236 (windows_nat_target::attach): Adjust.
6237 (windows_nat_target::detach): Use switch_to_no_thread instead of
6238 writing to inferior_ptid directly.
6239 (windows_nat_target::create_inferior): Adjust.
6240
31ce04e9
PA
62412020-06-18 Pedro Alves <palves@redhat.com>
6242
6243 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6244
1ee1a363
PA
62452020-06-18 Pedro Alves <palves@redhat.com>
6246
6247 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6248 after creating it, instead of writing to inferior_ptid. Don't
6249 write to inferior_ptid.
6250
6d350754
PA
62512020-06-18 Pedro Alves <palves@redhat.com>
6252
6253 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6254
5d971d48
PA
62552020-06-18 Pedro Alves <palves@redhat.com>
6256
6257 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6258 it, instead of writing to inferior_ptid.
6259
86e57d1b
PA
62602020-06-18 Pedro Alves <palves@redhat.com>
6261
6262 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6263 to inferior_ptid.
6264
f2e1c129
PA
62652020-06-18 Pedro Alves <palves@redhat.com>
6266
6267 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6268 instead of writing to inferior_ptid directly.
6269
60db1b85
PA
62702020-06-18 Pedro Alves <palves@redhat.com>
6271
6272 * corelow.c (core_target::close): Use switch_to_no_thread instead
6273 of writing to inferior_ptid directly.
6274 (add_to_thread_list, core_target_open): Use switch_to_thread
6275 instead of writing to inferior_ptid directly.
6276
fe7d6a8d
PA
62772020-06-18 Pedro Alves <palves@redhat.com>
6278
6279 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6280 inferior_ptid.
6281 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6282 inferior_ptid.
6283 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6284 inferior_ptid directly.
6285 (darwin_nat_target::init_thread_list): Switch to thread, instead
6286 of writing to inferior_ptid.
6287 (darwin_nat_target::attach): Don't write to inferior_ptid.
6288 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6289
975f8708
PA
62902020-06-18 Pedro Alves <palves@redhat.com>
6291
6292 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6293 thread.
6294 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6295 Instead use switch_to_thread.
6296 (gnu_nat_target::detach): Use switch_to_no_thread
6297 instead of writing to inferior_ptid directly. Used passed-in
6298 inferior instead of looking up the inferior by pid.
6299
1a204730
PA
63002020-06-18 Pedro Alves <palves@redhat.com>
6301
6302 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6303 inferior_ptid.
6304
ebe84f23
PA
63052020-06-18 Pedro Alves <palves@redhat.com>
6306
6307 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6308 inferior_ptid.
6309 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6310 thread.
6311 (nto_procfs_target::detach): Avoid referencing
6312 inferior_ptid. Use switch_to_no_thread instead of writing to
6313 inferior_ptid directly.
6314 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6315 instead of writing to inferior_ptid directly.
6316 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6317 to thread.
6318
191f02e5
PA
63192020-06-18 Pedro Alves <palves@redhat.com>
6320
6321 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6322 after creating it, instead of writing to inferior_ptid.
6323 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6324 to inferior_ptid directly.
6325 (gdbsim_target::wait): Don't write to inferior_ptid.
6326
0ac55310
PA
63272020-06-18 Pedro Alves <palves@redhat.com>
6328
6329 * remote.c (remote_target::remote_notice_new_inferior): Use
6330 switch_to_thread instead of writing to inferior_ptid directly.
6331 (remote_target::add_current_inferior_and_thread): Use
6332 switch_to_no_thread instead of writing to inferior_ptid directly.
6333 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6334 and switch_to_thread instead of using set_current_inferior or
6335 writing to inferior_ptid directly.
6336
5233f39b
PA
63372020-06-18 Pedro Alves <palves@redhat.com>
6338
6339 * tracectf.c (ctf_target_open): Switch to added thread instead of
6340 writing to inferior_ptid directly.
6341 (ctf_target::close): Use switch_to_no_thread instead of writing to
6342 inferior_ptid directly.
6343
087e161b
PA
63442020-06-18 Pedro Alves <palves@redhat.com>
6345
6346 * tracefile-tfile.c (tfile_target_open): Don't write to
6347 inferior_ptid directly, instead switch to added thread.
6348 (tfile_target::close): Use switch_to_no_thread instead of writing
6349 to inferior_ptid directly.
6350
7fb43e53
PA
63512020-06-18 Pedro Alves <palves@redhat.com>
6352
6353 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6354 (procfs_target::detach): Use switch_to_no_thread
6355 instead of writing to inferior_ptid directly.
6356 (do_attach): Change return type to void. Switch to the added
6357 thread.
6358 (procfs_target::create_inferior): Switch to the added thread.
6359 (procfs_do_thread_registers): Don't write to inferior_ptid.
6360
18493a00
PA
63612020-06-18 Pedro Alves <palves@redhat.com>
6362
6363 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6364 of writing to inferior_ptid.
6365 (scoped_restore_exited_inferior): Delete.
6366 (handle_vfork_child_exec_or_exit): Simplify using
6367 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6368 instead of writing to inferior_ptid.
6369 (THREAD_STOPPED_BY): Delete.
6370 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6371 (thread_stopped_by_hw_breakpoint): Delete.
6372 (save_waitstatus): Use
6373 scoped_restore_current_thread+switch_to_thread, and call
6374 target_stopped_by_watchpoint instead of
6375 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6376 instead of thread_stopped_by_sw_breakpoint, and
6377 target_stopped_by_hw_breakpoint instead of
6378 thread_stopped_by_hw_breakpoint.
6379 (handle_inferior_event)
6380 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6381 inferior_ptid directly, nor
6382 set_current_inferior/set_current_program_space. Use
6383 switch_to_thread / switch_to_inferior_no_thread instead.
6384
a0776b13
PA
63852020-06-18 Pedro Alves <palves@redhat.com>
6386
6387 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6388 instead of writing to inferior_ptid.
6389
6155c136
PA
63902020-06-18 Pedro Alves <palves@redhat.com>
6391
6392 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6393 added thread.
6394 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6395 to the added thread.
6396 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6397 instead of writing to inferior_ptid.
6398
c5316fc6
PA
63992020-06-18 Pedro Alves <palves@redhat.com>
6400
6401 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6402 (register_to_value_test): Mock a program_space too. Heap-allocate
6403 the address space. Don't write to inferior_ptid. Use
6404 switch_to_thread instead.
6405
8df01799
PA
64062020-06-18 Pedro Alves <palves@redhat.com>
6407
6408 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6409 Delete.
6410 (find_signalled_thread()): New, factored out from
6411 linux_make_corefile_notes and adjusted to handle exited threads.
6412 (linux_make_corefile_notes): Adjust to use the new
6413 find_signalled_thread.
6414
41792d68
PA
64152020-06-18 Pedro Alves <palves@redhat.com>
6416
6417 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6418 of saving/restoring inferior_ptid.
6419
612f258a
TT
64202020-06-17 Tom Tromey <tom@tromey.com>
6421
6422 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6423 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6424 declare.
6425 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6426
efb763a5
SM
64272020-06-15 Simon Marchi <simon.marchi@efficios.com>
6428
6429 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6430 of partial symtabs.
6431
2951f6c0
SM
64322020-06-17 Simon Marchi <simon.marchi@efficios.com>
6433
6434 * regformats/reg-arm.dat: Remove.
6435 * regformats/reg-bfin.dat: Remove.
6436 * regformats/reg-cris.dat: Remove.
6437 * regformats/reg-crisv32.dat: Remove.
6438 * regformats/reg-m32r.dat: Remove.
6439 * regformats/reg-tilegx.dat: Remove.
6440 * regformats/reg-tilegx32.dat: Remove.
6441
7d458ea5
SM
64422020-06-17 Simon Marchi <simon.marchi@efficios.com>
6443
6444 * features/Makefile (WHICH): Remove arm files.
6445 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6446 * regformats/arm/arm-with-neon.dat: Remove.
6447 * regformats/arm/arm-with-vfpv2.dat: Remove.
6448 * regformats/arm/arm-with-vfpv3.dat: Remove.
6449
3af96c0d
SM
64502020-06-17 Simon Marchi <simon.marchi@efficios.com>
6451
6452 * features/Makefile (XMLTOC): Remove rx.xml.
6453
b25e22fd
PA
64542020-06-17 Pedro Alves <palves@redhat.com>
6455
6456 * gdbthread.h (thread_control_state) <trap_expected> Update
6457 comments.
6458
a78a19b1
AB
64592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6460
6461 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6462 ada_language::lookup_symbol_nonlocal.
6463 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6464 (ada_language::lookup_symbol_nonlocal): New member function,
6465 implementation from ada_lookup_symbol_nonlocal.
6466 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6467 initializer.
6468 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6469 initializer.
6470 (cplus_language::lookup_symbol_nonlocal): New member function.
6471 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6472 (minimal_language_data) Likewise.
6473 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6474 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6475 initializer.
6476 (d_language::lookup_symbol_nonlocal): New member function.
6477 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6478 initializer.
6479 (f_language::lookup_symbol_nonlocal): New member function.
6480 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6481 initializer.
6482 * language.c (unknown_language_data): Likewise.
6483 (auto_language_data): Likewise.
6484 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6485 field.
6486 (language_defn::lookup_symbol_nonlocal): New member function.
6487 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6488 initializer.
6489 * objc-lang.c (objc_language_data): Likewise.
6490 * opencl-lang.c (opencl_language_data): Likewise.
6491 * p-lang.c (pascal_language_data): Likewise.
6492 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6493 rust_language::lookup_symbol_nonlocal.
6494 (rust_language_data): Delete la_lookup_symbol_nonlocal
6495 initializer.
6496 (rust_language::lookup_symbol_nonlocal): New member function,
6497 implementation from rust_lookup_symbol_nonlocal.
6498 * symtab.c (lookup_symbol_aux): Update call to
6499 lookup_symbol_nonlocal.
6500 (basic_lookup_symbol_nonlocal): Rename to...
6501 (language_defn::lookup_symbol_nonlocal): ...this, and update
6502 header comment. Remove language_defn parameter, and replace with
6503 uses of `this'.
6504 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6505
ebe2334e
AB
65062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6507
6508 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6509 initializer.
6510 (ada_language::value_print_inner): New member function.
6511 * c-lang.c (c_language_data): Delete la_value_print_inner
6512 initializer.
6513 (cplus_language_data): Likewise.
6514 (asm_language_data): Likewise.
6515 (minimal_language_data): Likewise.
6516 * d-lang.c (d_language_data): Likewise.
6517 (d_language::value_print_inner): New member function.
6518 * f-lang.c (f_language_data): Delete la_value_print_inner
6519 initializer.
6520 (f_language::value_print_inner): New member function.
6521 * f-lang.h (f_value_print_innner): Rename to...
6522 (f_value_print_inner): ...this (note spelling of 'inner').
6523 * f-valprint.c (f_value_print_innner): Rename to...
6524 (f_value_print_inner): ...this (note spelling of 'inner').
6525 * go-lang.c (go_language_data): Delete la_value_print_inner
6526 initializer.
6527 (go_language::value_print_inner): New member function.
6528 * language.c (language_defn::value_print_inner): Define new member
6529 function.
6530 (unk_lang_value_print_inner): Delete.
6531 (unknown_language_data): Delete la_value_print_inner initializer.
6532 (unknown_language::value_print_inner): New member function.
6533 (auto_language_data): Delete la_value_print_inner initializer.
6534 (auto_language::value_print_inner): New member function.
6535 * language.h (language_data): Delete la_value_print_inner field.
6536 (language_defn::value_print_inner): Delcare new member function.
6537 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6538 initializer.
6539 (m2_language::value_print_inner): New member function.
6540 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6541 initializer.
6542 * opencl-lang.c (opencl_language_data): Likewise.
6543 * p-lang.c (pascal_language_data): Likewise.
6544 (pascal_language::value_print_inner): New member function.
6545 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6546 initializer.
6547 (rust_language::value_print_inner): New member function.
6548 * valprint.c (do_val_print): Update call to value_print_inner.
6549
a1d1fa3e
AB
65502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6551
6552 * ada-lang.c (ada_language_data): Delete la_value_print
6553 initializer.
6554 (ada_language::value_print): New member function.
6555 * c-lang.c (c_language_data): Delete la_value_print initializer.
6556 (cplus_language_data): Likewise.
6557 (asm_language_data): Likewise.
6558 (minimal_language_data): Likewise.
6559 * d-lang.c (d_language_data): Likewise.
6560 * f-lang.c (f_language_data): Likewise.
6561 * go-lang.c (go_language_data): Likewise.
6562 * language.c (unk_lang_value_print): Delete.
6563 (language_defn::value_print): Define new member function.
6564 (unknown_language_data): Delete la_value_print initializer.
6565 (unknown_language::value_print): New member function.
6566 (auto_language_data): Delete la_value_print initializer.
6567 (auto_language::value_print): New member function.
6568 * language.h (language_data): Delete la_value_print field.
6569 (language_defn::value_print): Declare new member function.
6570 (LA_VALUE_PRINT): Update call to value_print.
6571 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6572 * objc-lang.c (objc_language_data): Likewise.
6573 * opencl-lang.c (opencl_language_data): Likewise.
6574 * p-lang.c (pascal_language_data): Likewise.
6575 (pascal_language::value_print): New member function.
6576 * rust-lang.c (rust_language_data): Delete la_value_print
6577 initializer.
6578
f16a9f57
AB
65792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6580
6581 * ada-lang.c (ada_watch_location_expression): Rename to
6582 ada_language::watch_location_expression.
6583 (ada_language_data): Delete la_watch_location_expression
6584 initializer.
6585 (ada_language::watch_location_expression): New member function,
6586 implementation from ada_watch_location_expression.
6587 * breakpoint.c (watch_command_1): Update call to
6588 watch_location_expression.
6589 * c-lang.c (c_watch_location_expression): Rename to
6590 language_defn::watch_location_expression.
6591 (c_language_data): Delete la_watch_location_expression
6592 initializer.
6593 (cplus_language_data): Likewise.
6594 (asm_language_data): Likewise.
6595 (minimal_language_data): Likewise.
6596 * c-lang.h (c_watch_location_expression): Delete declaration.
6597 * d-lang.c (d_language_data): Delete la_watch_location_expression
6598 initializer.
6599 * f-lang.c (f_language_data): Likewise.
6600 * go-lang.c (go_language_data): Likewise.
6601 * language.c (language_defn::watch_location_expression): Member
6602 function implementation from c_watch_location_expression.
6603 (unknown_language_data): Delete la_watch_location_expression
6604 initializer.
6605 (auto_language_data): Likewise.
6606 * language.h (language_data): Delete la_watch_location_expression
6607 field.
6608 (language_defn::watch_location_expression): Declare new member
6609 function.
6610 * m2-lang.c (m2_language_data): Delete
6611 la_watch_location_expression initializer.
6612 * objc-lang.c (objc_language_data): Likewise.
6613 * opencl-lang.c (opencl_language_data): Likewise.
6614 * p-lang.c (pascal_language_data): Likewise.
6615 * rust-lang.c (rust_watch_location_expression): Rename to
6616 rust_language::watch_location_expression.
6617 (rust_language_data): Delete la_watch_location_expression
6618 initializer.
6619 (rust_language::watch_location_expression): New member function,
6620 implementation from rust_watch_location_expression.
6621
7e56227d
AB
66222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6623
6624 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6625 ada_language::collect_symbol_completion_matches.
6626 (ada_language_data): Delete la_collect_symbol_completion_matches
6627 initializer.
6628 (ada_language::collect_symbol_completion_matches): New member
6629 function, implementation from
6630 ada_collect_symbol_completion_matches.
6631 * c-lang.c (c_language_data): Delete
6632 la_collect_symbol_completion_matches initializer.
6633 (cplus_language_data): Likewise.
6634 (asm_language_data): Likewise.
6635 (minimal_language_data): Likewise.
6636 * d-lang.c (d_language_data): Likewise.
6637 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6638 f_language::collect_symbol_completion_matches.
6639 (f_language_data): Delete la_collect_symbol_completion_matches
6640 initializer.
6641 (f_language::collect_symbol_completion_matches) New member
6642 function, implementation from f_collect_symbol_completion_matches.
6643 * go-lang.c (go_language_data): Delete
6644 la_collect_symbol_completion_matches initializer.
6645 * language.c (unknown_language_data): Likewise.
6646 (auto_language_data): Likewise.
6647 * language.h (language_data): Delete
6648 la_collect_symbol_completion_matches field.
6649 (language_defn::collect_symbol_completion_matches): New member
6650 function.
6651 * m2-lang.c (m2_language_data): Delete
6652 la_collect_symbol_completion_matches initializer.
6653 * objc-lang.c (objc_language_data): Likewise.
6654 * opencl-lang.c (opencl_language_data): Likewise.
6655 * p-lang.c (pascal_language_data): Likewise.
6656 * rust-lang.c (rust_language_data): Likewise.
6657 * symtab.c (default_collect_symbol_completion_matches): Delete.
6658 (collect_symbol_completion_matches): Update call to
6659 collect_symbol_completion_matches.
6660 (collect_symbol_completion_matches_type): Likewise.
6661 * symtab.h (default_collect_symbol_completion_matches): Delete
6662 declaration.
6663
53fc67f8
AB
66642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6665
6666 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6667 (ada_language_data): Delete la_word_break_characters initializer.
6668 (ada_language::word_break_characters): New member function.
6669 * c-lang.c (c_language_data): Delete la_word_break_characters
6670 initializer.
6671 (cplus_language_data): Likewise.
6672 (asm_language_data): Likewise.
6673 (minimal_language_data): Likewise.
6674 * completer.c: Update global comment.
6675 (advance_to_expression_complete_word_point): Update call to
6676 word_break_characters.
6677 (complete_files_symbols): Likewise.
6678 (complete_line_internal_1): Likewise.
6679 (default_completer_handle_brkchars): Likewise.
6680 (skip_quoted_chars): Likewise.
6681 * d-lang.c (d_language_data): Delete la_word_break_characters
6682 initializer.
6683 * f-lang.c (f_word_break_characters): Delete.
6684 (f_language_data): Delete la_word_break_characters initializer.
6685 (f_language::word_break_characters): New member function.
6686 * go-lang.c (go_language_data): Delete la_word_break_characters
6687 initializer.
6688 * language.c (unknown_language_data): Likewise.
6689 (auto_language_data): Likewise.
6690 * language.h (default_word_break_characters): Move declaration to
6691 earlier in the file.
6692 (language_data): Delete la_word_break_characters field.
6693 (language_defn::word_break_characters): New member function.
6694 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6695 initializer.
6696 * objc-lang.c (objc_language_data): Likewise.
6697 * opencl-lang.c (opencl_language_data): Likewise.
6698 * p-lang.c (pascal_language_data): Likewise.
6699 * rust-lang.c (rust_language_data): Likewise.
6700
c9debfb9
AB
67012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6702
6703 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6704 (ada_language_data): Delete la_get_symbol_name_matcher
6705 initializer.
6706 (language_defn::get_symbol_name_matcher_inner): New member
6707 function.
6708 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6709 initializer.
6710 (cplus_language_data): Likewise.
6711 (cplus_language::get_symbol_name_matcher_inner): New member
6712 function.
6713 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6714 (minimal_language_data): Likewise.
6715 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6716 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6717 initializer.
6718 * dictionary.c (iter_match_first_hashed): Update call to
6719 get_symbol_name_matcher.
6720 (iter_match_next_hashed): Likewise.
6721 (iter_match_next_linear): Likewise.
6722 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6723 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6724 initializer.
6725 (f_language::get_symbol_name_matcher_inner): New member function.
6726 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6727 initializer.
6728 * language.c (default_symbol_name_matcher): Update header comment,
6729 make static.
6730 (language_defn::get_symbol_name_matcher): New definition.
6731 (language_defn::get_symbol_name_matcher_inner): Likewise.
6732 (get_symbol_name_matcher): Delete.
6733 (unknown_language_data): Delete la_get_symbol_name_matcher
6734 initializer.
6735 (auto_language_data): Likewise.
6736 * language.h (language_data): Delete la_get_symbol_name_matcher
6737 field.
6738 (language_defn::get_symbol_name_matcher): New member function.
6739 (language_defn::get_symbol_name_matcher_inner): Likewise.
6740 (default_symbol_name_matcher): Delete declaration.
6741 * linespec.c (find_methods): Update call to
6742 get_symbol_name_matcher.
6743 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6744 initializer.
6745 * minsyms.c (lookup_minimal_symbol): Update call to
6746 get_symbol_name_matcher.
6747 (iterate_over_minimal_symbols): Likewise.
6748 * objc-lang.c (objc_language_data): Delete
6749 la_get_symbol_name_matcher initializer.
6750 * opencl-lang.c (opencl_language_data): Likewise.
6751 * p-lang.c (pascal_language_data): Likewise.
6752 * psymtab.c (psymbol_name_matches): Update call to
6753 get_symbol_name_matcher.
6754 * rust-lang.c (rust_language_data): Delete
6755 la_get_symbol_name_matcher initializer.
6756 * symtab.c (symbol_matches_search_name): Update call to
6757 get_symbol_name_matcher.
6758 (compare_symbol_name): Likewise.
6759
9a49ad8c
AB
67602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6761
6762 * ada-lang.c (ada_language_data): Delete la_compute_program
6763 initializer.
6764 * c-lang.c (c_language_data): Likewise.
6765 (c_language::compute_program): New member function.
6766 (cplus_language_data): Delete la_compute_program initializer.
6767 (cplus_language::compute_program): New member function.
6768 (asm_language_data): Delete la_compute_program initializer.
6769 (minimal_language_data): Likewise.
6770 * c-lang.h (c_compute_program): Update comment.
6771 (cplus_compute_program): Likewise.
6772 * compile/compile-c-support.c (c_compute_program): Likewise.
6773 (cplus_compute_program): Likewise.
6774 * compile/compile.c (compile_to_object): Update call to
6775 la_compute_program.
6776 * d-lang.c (d_language_data): Delete la_compute_program
6777 initializer.
6778 * f-lang.c (f_language_data): Likewise.
6779 * go-lang.c (go_language_data): Likewise.
6780 * language.c (unknown_language_data): Likewise.
6781 (auto_language_data): Likewise.
6782 * language.h (language_data): Delete la_compute_program field.
6783 (language_defn::compute_program): New member function.
6784 * m2-lang.c (m2_language_data): Delete la_compute_program
6785 initializer.
6786 * objc-lang.c (objc_language_data): Likewise.
6787 * opencl-lang.c (opencl_language_data): Likewise.
6788 * p-lang.c (pascal_language_data): Likewise.
6789 * rust-lang.c (rust_language_data): Likewise.
6790
eff93b4d
AB
67912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6792
6793 * ada-lang.c (ada_language_data) Delete
6794 la_class_name_from_physname initializer.
6795 * c-lang.c (c_language_data): Likewise.
6796 (cplus_language_data): Likewise.
6797 (cplus_language::class_name_from_physname): New member function.
6798 (asm_language_data): Delete la_class_name_from_physname
6799 initializer.
6800 (minimal_language_data): Likewise.
6801 * d-lang.c (d_language_data): Likewise.
6802 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6803 method on language_defn class.
6804 (guess_full_die_structure_name): Likewise.
6805 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6806 initializer.
6807 * go-lang.c (go_language_data): Likewise.
6808 * language.c (language_class_name_from_physname): Delete.
6809 (unk_lang_class_name): Delete.
6810 (unknown_language_data): Delete la_class_name_from_physname
6811 initializer.
6812 (auto_language_data): Likewise.
6813 * language.h (language_data): Delete la_class_name_from_physname
6814 field.
6815 (language_defn::class_name_from_physname): New function.
6816 (language_class_name_from_physname): Delete declaration.
6817 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6818 initializer.
6819 * objc-lang.c (objc_language_data): Likewise.
6820 * opencl-lang.c (opencl_language_data): Likewise.
6821 * p-lang.c (pascal_language_data): Likewise.
6822 * rust-lang.c (rust_language_data): Likewise.
6823
de543742
TT
68242020-06-16 Tom Tromey <tom@tromey.com>
6825
6826 * tui/tui-data.h (STATUS_NAME): New macro.
6827 * tui/tui-layout.c (tui_remove_some_windows)
6828 (initialize_known_windows, tui_register_window)
6829 (tui_layout_split::remove_windows, initialize_layouts)
6830 (tui_new_layout_command): Don't use hard-coded window names.
6831
a350efd4
TT
68322020-06-16 Tom Tromey <tom@tromey.com>
6833
6834 PR tui/25348:
6835 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6836 tui_initialize_readline. Only run once. Call rl_initialize.
6837 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6838 tui_initialize_readline.
6839 * tui/tui-io.c (tui_setup_io): Call
6840 tui_ensure_readline_initialized.
6841 * tui/tui-interp.c (tui_interp::init): Update.
6842
39ec0490
TT
68432020-06-16 Tom Tromey <tom@tromey.com>
6844
6845 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6846 Also preserve the status window.
6847
d2d1ea20
TT
68482020-06-16 Tom Tromey <tom@tromey.com>
6849
6850 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6851 where m_window==nullptr.
6852
66920317
TT
68532020-06-15 Tom Tromey <tromey@adacore.com>
6854
6855 * windows-nat.c (windows_nat::handle_output_debug_string):
6856 Update.
6857 (windows_nat::handle_ms_vc_exception): Update.
6858 * target.h (target_read_string): Change API.
6859 * target.c (target_read_string): Change API.
6860 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6861 Update.
6862 * solib-frv.c (frv_current_sos): Update.
6863 * solib-dsbt.c (dsbt_current_sos): Update.
6864 * solib-darwin.c (darwin_current_sos): Update.
6865 * linux-thread-db.c (inferior_has_bug): Update.
6866 * expprint.c (print_subexp_standard): Update.
6867 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6868 (ada_exception_message_1): Update.
6869
a5d871dd
TT
68702020-06-15 Tom Tromey <tromey@adacore.com>
6871
6872 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6873
670e35fa
TT
68742020-06-15 Tom Tromey <tromey@adacore.com>
6875
6876 * valprint.c (read_string): Update comment.
6877 * target.c (MIN): Remove.
6878 (target_read_string): Rewrite.
6879
f5272a3b
TT
68802020-06-15 Tom Tromey <tromey@adacore.com>
6881
6882 * corefile.c (read_memory_string): Remove.
6883 * ada-valprint.c (ada_value_print_ptr): Update.
6884 * ada-lang.h (ada_tag_name): Change return type.
6885 * ada-lang.c (type_from_tag): Update.
6886 (ada_tag_name_from_tsd): Change return type. Use
6887 target_read_string.
6888 (ada_tag_name): Likewise.
6889 * gdbcore.h (read_memory_string): Don't declare.
6890
2c074f49
HD
68912020-06-14 Hannes Domani <ssbssa@yahoo.de>
6892
6893 * symtab.c (rbreak_command): Ignore Windows drive colon.
6894
6a17d503
SM
68952020-06-12 Simon Marchi <simon.marchi@efficios.com>
6896
6897 * NEWS: Mention removed GDBserver host support.
6898
453c733f
NC
68992020-06-12 Nelson Chu <nelson.chu@sifive.com>
6900
6901 * features/riscv/rebuild-csr-xml.sh: Updated.
6902
2b4e6a3f
TT
69032020-06-11 Tom Tromey <tom@tromey.com>
6904
6905 PR gdb/18318:
6906 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6907
4412332f
JG
69082020-06-09 Jonny Grant <jg@jguk.org>
69092020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6910
6911 * main.c (captured_main_1): Don't print new line after help.
6912 (print_gdb_help): add mailing list and IRC channel information
6913 to --help. Add new lines between items in the footer. Remove
6914 quotes around bug url.
6915
2f33032a
KS
69162020-06-11 Keith Seitz <keiths@redhat.com>
6917
6918 PR gdb/21356
6919 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6920 Resolve typedefs for type length calculations.
6921
7ab96794
TV
69222020-06-10 Tom de Vries <tdevries@suse.de>
6923
6924 PR ada/24713
6925 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6926 (write_psymbols): Enable .gdb_index for ada.
6927 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6928 ada.
6929
e5f3ece2
TV
69302020-06-10 Tom de Vries <tdevries@suse.de>
6931
6932 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6933 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6934 namei" instead of "const char *name" argument.
6935 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6936 dw2_symtab_iter_init.
6937
940da03e
SM
69382020-06-08 Simon Marchi <simon.marchi@efficios.com>
6939
6940 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6941 to use type::field and field::type instead.
6942
b6cdac4b
SM
69432020-06-08 Simon Marchi <simon.marchi@efficios.com>
6944
6945 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6946 to use field::type instead.
6947
5d14b6e5
SM
69482020-06-08 Simon Marchi <simon.marchi@efficios.com>
6949
6950 * gdbtypes.h (struct field) <type, set_type>: New methods.
6951 Rename `type` field to...
6952 <m_type>: ... this. Change references throughout to use type or
6953 set_type methods.
6954 (FIELD_TYPE): Use field::type. Change call sites that modify
6955 the field's type to use field::set_type instead.
6956
3d967001
SM
69572020-06-08 Simon Marchi <simon.marchi@efficios.com>
6958
6959 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6960 to use type::index_type instead.
6961
262abc0d
SM
69622020-06-08 Simon Marchi <simon.marchi@efficios.com>
6963
6964 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6965 methods.
6966 (TYPE_INDEX_TYPE): Use type::index_type.
6967 * gdbtypes.c (create_array_type_with_stride): Likewise.
6968
82836c92
TT
69692020-06-07 Tom Tromey <tom@tromey.com>
6970
6971 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6972 parameter.
6973 (generic_value_print): Update.
6974
940dace9
AB
69752020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6976
6977 Revert commit 982a38f60b0.
6978 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6979
982a38f6
AB
69802020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6981
6982 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6983 avoid use after free.
6984
82f06518
TV
69852020-06-05 Tom de Vries <tdevries@suse.de>
6986
6987 * NEWS: Fix typos.
6988
f8c41851
SM
69892020-06-04 Simon Marchi <simon.marchi@efficios.com>
6990
6991 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6992 the per_bfd object.
6993 (dwarf2_read_debug_names): Likewise.
6994 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6995 object when re-using a per_bfd object with an index.
6996
f9b5d5ea
TV
69972020-06-03 Tom de Vries <tdevries@suse.de>
6998
6999 PR symtab/26046
7000 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7001 children for C++.
7002 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7003 DW_TAG_subprogram.
7004
f6eee2d0
AB
70052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7006
7007 * ada-lang.c (ada_language_data): Delete skip_trampoline
7008 initializer.
7009 * c-lang.c (c_language_data): Likewise.
7010 (cplus_language_data): Likewise.
7011 (cplus_language::skip_trampoline): New member function.
7012 (asm_language_data): Delete skip_trampoline initializer.
7013 (minimal_language_data): Likewise.
7014 * d-lang.c (d_language_data): Likewise.
7015 * f-lang.c (f_language_data): Likewise.
7016 * go-lang.c (go_language_data): Likewise.
7017 * language.c (unk_lang_trampoline): Delete function.
7018 (skip_language_trampoline): Update.
7019 (unknown_language_data): Delete skip_trampoline initializer.
7020 (auto_language_data): Likewise.
7021 * language.h (language_data): Delete skip_trampoline field.
7022 (language_defn::skip_trampoline): New function.
7023 * m2-lang.c (m2_language_data): Delete skip_trampoline
7024 initializer.
7025 * objc-lang.c (objc_skip_trampoline): Delete function, move
7026 implementation to objc_language::skip_trampoline.
7027 (objc_language_data): Delete skip_trampoline initializer.
7028 (objc_language::skip_trampoline): New member function with
7029 implementation from objc_skip_trampoline.
7030 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7031 initializer.
7032 * p-lang.c (pascal_language_data): Likewise.
7033 * rust-lang.c (rust_language_data): Likewise.
7034
0a50df5d
AB
70352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7036
7037 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7038 (ada_language::demangle): New member function.
7039 * c-lang.c (c_language_data): Delete la_demangle initializer.
7040 (cplus_language_data): Delete la_demangle initializer.
7041 (cplus_language::demangle): New member function.
7042 (asm_language_data): Delete la_demangle initializer.
7043 (minimal_language_data): Delete la_demangle initializer.
7044 * d-lang.c (d_language_data): Delete la_demangle initializer.
7045 (d_language::demangle): New member function.
7046 * f-lang.c (f_language_data): Delete la_demangle initializer.
7047 (f_language::demangle): New member function.
7048 * go-lang.c (go_language_data): Delete la_demangle initializer.
7049 (go_language::demangle): New member function.
7050 * language.c (language_demangle): Update.
7051 (unk_lang_demangle): Delete.
7052 (unknown_language_data): Delete la_demangle initializer.
7053 (unknown_language::demangle): New member function.
7054 (auto_language_data): Delete la_demangle initializer.
7055 (auto_language::demangle): New member function.
7056 * language.h (language_data): Delete la_demangle field.
7057 (language_defn::demangle): New function.
7058 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7059 * objc-lang.c (objc_language_data): Delete la_demangle
7060 initializer.
7061 (objc_language::demangle): New member function.
7062 * opencl-lang.c (opencl_language_data): Delete la_demangle
7063 initializer.
7064 * p-lang.c (pascal_language_data): Likewise.
7065 * rust-lang.c (rust_language_data): Likewise.
7066 (rust_language::demangle): New member function.
7067
fbfb0a46
AB
70682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7069
7070 * ada-lang.c (ada_language_data): Delete la_print_type
7071 initializer.
7072 (ada_language::print_type): New member function.
7073 * c-lang.c (c_language_data): Delete la_print_type initializer.
7074 (c_language::print_type): New member function.
7075 (cplus_language_data): Delete la_print_type initializer.
7076 (cplus_language::print_type): New member function.
7077 (asm_language_data): Delete la_print_type initializer.
7078 (asm_language::print_type): New member function.
7079 (minimal_language_data): Delete la_print_type initializer.
7080 (minimal_language::print_type): New member function.
7081 * d-lang.c (d_language_data): Delete la_print_type initializer.
7082 (d_language::print_type): New member function.
7083 * f-lang.c (f_language_data): Delete la_print_type initializer.
7084 (f_language::print_type): New member function.
7085 * go-lang.c (go_language_data): Delete la_print_type initializer.
7086 (go_language::print_type): New member function.
7087 * language.c (unk_lang_print_type): Delete.
7088 (unknown_language_data): Delete la_print_type initializer.
7089 (unknown_language::print_type): New member function.
7090 (auto_language_data): Delete la_print_type initializer.
7091 (auto_language::print_type): New member function.
7092 * language.h (language_data): Delete la_print_type field.
7093 (language_defn::print_type): New function.
7094 (LA_PRINT_TYPE): Update.
7095 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7096 (m2_language::print_type): New member function.
7097 * objc-lang.c (objc_language_data): Delete la_print_type
7098 initializer.
7099 (objc_language::print_type): New member function.
7100 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7101 to opencl_language::print_type.
7102 (opencl_language_data): Delete la_print_type initializer.
7103 (opencl_language::print_type): New member function, implementation
7104 from opencl_print_type.
7105 * p-lang.c (pascal_language_data): Delete la_print_type
7106 initializer.
7107 (pascal_language::print_type): New member function.
7108 * rust-lang.c (rust_print_type): Delete, implementation moved to
7109 rust_language::print_type.
7110 (rust_language_data): Delete la_print_type initializer.
7111 (rust_language::print_type): New member function, implementation
7112 from rust_print_type.
7113
6f827019
AB
71142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7115
7116 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7117 implementation moves to...
7118 (ada_language::sniff_from_mangled_name): ...here. Update return
7119 type.
7120 (ada_language_data): Delete la_sniff_from_mangled_name
7121 initializer.
7122 * c-lang.c (c_language_data): Likewise.
7123 (cplus_language_data): Likewise.
7124 (cplus_language::sniff_from_mangled_name): New member function,
7125 implementation taken from gdb_sniff_from_mangled_name.
7126 (asm_language_data): Delete la_sniff_from_mangled_name
7127 initializer.
7128 (minimal_language_data): Likewise.
7129 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7130 implementation moves to cplus_language::sniff_from_mangled_name.
7131 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7132 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7133 moves to...
7134 (d_language::sniff_from_mangled_name): ...here.
7135 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7136 * f-lang.c (f_language_data): Likewise.
7137 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7138 moves to...
7139 (go_language::sniff_from_mangled_name): ...here.
7140 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7141 * language.c (language_sniff_from_mangled_name): Delete.
7142 (unknown_language_data): Delete la_sniff_from_mangled_name
7143 initializer.
7144 (auto_language_data): Likewise.
7145 * language.h (language_data): Delete la_sniff_from_mangled_name
7146 field.
7147 (language_defn::sniff_from_mangled_name): New function.
7148 (language_sniff_from_mangled_name): Delete declaration.
7149 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7150 field.
7151 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7152 implementation moves to...
7153 (objc_language::sniff_from_mangled_name): ...here.
7154 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7155 * opencl-lang.c (opencl_language_data): Likewise.
7156 * p-lang.c (pascal_language_data): Likewise.
7157 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7158 implementation moves to...
7159 (rust_language::sniff_from_mangled_name): ...here.
7160 (rust_language_data): Delete la_sniff_from_mangled_name
7161 initializer.
7162 * symtab.c (symbol_find_demangled_name): Call
7163 sniff_from_mangled_name member function.
7164
fb8006fd
AB
71652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7166
7167 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7168 initializer.
7169 * c-lang.c (c_language_data): Likewise.
7170 (cplus_language_data): Likewise.
7171 (cplus_language::search_name_hash): New member function.
7172 (asm_language_data): Delete la_search_name_hash initializer.
7173 (minimal_language_data): Likewise.
7174 * d-lang.c (d_language_data): Likewise.
7175 * dictionary.c (default_search_name_hash): Rename to...
7176 (language_defn::search_name_hash): ...this.
7177 * f-lang.c (f_language_data): Likewise.
7178 (f_language::search_name_hash): New member function.
7179 * go-lang.c (go_language_data): Delete la_search_name_hash
7180 initializer.
7181 * language.c (unknown_language_data): Likewise.
7182 (auto_language_data): Likewise.
7183 * language.h (struct language_data): Delete la_search_name_hash
7184 field.
7185 (language_defn::search_name_hash): Declare new member function.
7186 (default_search_name_hash): Delete declaration.
7187 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7188 initializer.
7189 * objc-lang.c (objc_language_data): Likewise.
7190 * opencl-lang.c (opencl_language_data): Likewise.
7191 * p-lang.c (pascal_language_data): Likewise.
7192 * rust-lang.c (rust_language_data): Likewise.
7193 * symtab.c (search_name_hash): Update call.
7194
8e25bafe
AB
71952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7196
7197 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7198 initializer.
7199 * c-lang.c (class compile_instance): Declare.
7200 (c_language_data): Delete la_get_compile_instance initializer.
7201 (c_language::get_compile_instance): New member function.
7202 (cplus_language_data): Delete la_get_compile_instance initializer.
7203 (cplus_language::get_compile_instance): New member function.
7204 (asm_language_data): Delete la_get_compile_instance initializer.
7205 (minimal_language_data): Likewise.
7206 * c-lang.h (c_get_compile_context): Update comment.
7207 (cplus_get_compile_context): Update comment.
7208 * compile/compile.c (compile_to_object): Update calls, don't rely
7209 on function pointer being NULL.
7210 * d-lang.c (d_language_data): Delete la_get_compile_instance
7211 initializer.
7212 * f-lang.c (f_language_data): Likewise.
7213 * go-lang.c (go_language_data): Likewise.
7214 * language.c (unknown_language_data): Likewise.
7215 (auto_language_data): Likewise.
7216 * language.h (language_data): Delete la_get_compile_instance field.
7217 (language_defn::get_compile_instance): New member function.
7218 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7219 initializer.
7220 * objc-lang.c (objc_language_data): Likewise.
7221 * opencl-lang.c (opencl_language_data): Likewise.
7222 * p-lang.c (pascal_language_data): Likewise.
7223 * rust-lang.c (rust_language_data): Likewise.
7224
4009ee92
AB
72252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7226
7227 * ada-lang.c (ada_add_all_symbols): Update comment.
7228 (ada_iterate_over_symbols): Delete, move implementation to...
7229 (ada_language::iterate_over_symbols): ...here, a new member
7230 function, rewrite to use range based for loop.
7231 (ada_language_data): Delete la_iterate_over_symbols initializer.
7232 * c-lang.c (c_language_data): Likewise.
7233 (cplus_language_data): Likewise.
7234 (asm_language_data): Likewise.
7235 (minimal_language_data): Likewise.
7236 * d-lang.c (d_language_data): Likewise.
7237 * f-lang.c (f_language_data): Likewise.
7238 * go-lang.c (go_language_data): Likewise.
7239 * language.c (unknown_language_data): Likewise.
7240 (auto_language_data): Likewise.
7241 * language.h (language_data): Delete la_iterate_over_symbols field.
7242 (language_defn::iterate_over_symbols): New member function.
7243 (LA_ITERATE_OVER_SYMBOLS): Update.
7244 * linespec.c (iterate_over_all_matching_symtabs): Update.
7245 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7246 initializer.
7247 * objc-lang.c (objc_language_data): Likewise.
7248 * opencl-lang.c (opencl_language_data): Likewise.
7249 * p-lang.c (pascal_language_data): Likewise.
7250 * rust-lang.c (rust_language_data): Likewise.
7251
54f4ca46
AB
72522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7253
7254 * ada-lang.c (ada_language_data): Delete
7255 la_lookup_transparent_type initializer.
7256 * c-lang.c (c_language_data): Likewise.
7257 (cplus_language_data): Likewise.
7258 (cplus_language::lookup_transparent_type): New member function.
7259 (asm_language_data): Delete la_lookup_transparent_type
7260 initializer.
7261 (minimal_language_data): Likewise.
7262 * d-lang.c (d_language_data): Likewise.
7263 * f-lang.c (f_language_data): Likewise.
7264 * go-lang.c (go_language_data): Likewise.
7265 * language.c (unknown_language_data): Likewise.
7266 (auto_language_data): Likewise.
7267 * language.h (struct language_data): Delete
7268 la_lookup_transparent_type field.
7269 (language_defn::lookup_transparent_type): New member function.
7270 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7271 initializer.
7272 * objc-lang.c (objc_language_data): Likewise.
7273 * opencl-lang.c (opencl_language_data): Likewise.
7274 * p-lang.c (pascal_language_data): Likewise.
7275 * rust-lang.c (rust_language_data): Likewise.
7276 * symtab.c (symbol_matches_domain): Update call.
7277
1fb314aa
AB
72782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7279
7280 * ada-lang.c (ada_language_arch_info): Delete function, move
7281 implementation to...
7282 (ada_language::language_arch_info): ...here, a new member
7283 function.
7284 (ada_language_data): Delete la_language_arch_info.
7285 * c-lang.c (c_language_data): Likewise.
7286 (c_language::language_arch_info): New member function.
7287 (cplus_language_arch_info): Delete function, move
7288 implementation to...
7289 (cplus_language::language_arch_info): ...here, a new member
7290 function.
7291 (cplus_language_data): Delete la_language_arch_info.
7292 (asm_language_data): Likewise.
7293 (asm_language::language_arch_info): New member function.
7294 (minimal_language_data): Delete la_language_arch_info.
7295 (minimal_language::language_arch_info): New member function.
7296 * d-lang.c (d_language_arch_info): Delete function, move
7297 implementation to...
7298 (d_language::language_arch_info): ...here, a new member
7299 function.
7300 (d_language_data): Delete la_language_arch_info.
7301 * f-lang.c (f_language_arch_info): Delete function, move
7302 implementation to...
7303 (f_language::language_arch_info): ...here, a new member
7304 function.
7305 (f_language_data): Delete la_language_arch_info.
7306 * go-lang.c (go_language_arch_info): Delete function, move
7307 implementation to...
7308 (go_language::language_arch_info): ...here, a new member
7309 function.
7310 (go_language_data): Delete la_language_arch_info.
7311 * language.c (unknown_language_data): Likewise.
7312 (unknown_language::language_arch_info): New member function.
7313 (auto_language_data): Delete la_language_arch_info.
7314 (auto_language::language_arch_info): New member function.
7315 (language_gdbarch_post_init): Update call to
7316 la_language_arch_info.
7317 * language.h (language_data): Delete la_language_arch_info
7318 function pointer.
7319 (language_defn::language_arch_info): New function.
7320 * m2-lang.c (m2_language_arch_info): Delete function, move
7321 implementation to...
7322 (m2_language::language_arch_info): ...here, a new member
7323 function.
7324 (m2_language_data): Delete la_language_arch_info.
7325 * objc-lang.c (objc_language_arch_info): Delete function, move
7326 implementation to...
7327 (objc_language::language_arch_info): ...here, a new member
7328 function.
7329 (objc_language_data): Delete la_language_arch_info.
7330 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7331 implementation to...
7332 (opencl_language::language_arch_info): ...here, a new member
7333 function.
7334 (opencl_language_data): Delete la_language_arch_info.
7335 * p-lang.c (pascal_language_arch_info): Delete function, move
7336 implementation to...
7337 (pascal_language::language_arch_info): ...here, a new member
7338 function.
7339 (pascal_language_data): Delete la_language_arch_info.
7340 * rust-lang.c (rust_language_arch_info): Delete function, move
7341 implementation to...
7342 (rust_language::language_arch_info): ...here, a new member
7343 function.
7344 (rust_language_data): Delete la_language_arch_info.
7345
48448202
AB
73462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7347
7348 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7349 initializer.
7350 * c-lang.c (c_language_data): Likewise.
7351 (cplus_language_data): Likewise.
7352 (cplus_language::pass_by_reference_info): New method.
7353 (asm_language_data): Delete la_pass_by_reference initializer.
7354 (minimal_language_data): Likewise.
7355 * cp-abi.c (cp_pass_by_reference): Remove use of
7356 default_pass_by_reference.
7357 * d-lang.c (d_language_data): Likewise.
7358 * f-lang.c (f_language_data): Likewise.
7359 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7360 default_pass_by_reference.
7361 * go-lang.c (go_language_data): Likewise.
7362 * language.c (language_pass_by_reference): Update.
7363 (default_pass_by_reference): Delete.
7364 (unknown_language_data): Delete la_pass_by_reference
7365 initializer.
7366 (auto_language_data): Likewise.
7367 * language.h (struct language_data): Delete la_pass_by_reference
7368 field.
7369 (language_defn::pass_by_reference_info): New member function.
7370 (default_pass_by_reference): Delete declaration.
7371 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7372 initializer.
7373 * objc-lang.c (objc_language_data): Likewise.
7374 * opencl-lang.c (opencl_language_data): Likewise.
7375 * p-lang.c (pascal_language_data): Likewise.
7376 * rust-lang.c (rust_language_data): Likewise.
7377
15e5fd35
AB
73782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7379
7380 * ada-lang.c (ada_read_var_value): Delete function, move
7381 implementation to...
7382 (ada_language::read_var_value): ...here.
7383 (ada_language_data): Delete la_read_var_value initializer.
7384 * c-lang.c (c_language_data): Likewise.
7385 (cplus_language_data): Likewise.
7386 (minimal_language_data): Likewise.
7387 * d-lang.c (d_language_data): Likewise.
7388 * f-lang.c (f_language_data): Likewise.
7389 * findvar.c (default_read_var_value): Rename to...
7390 (language_defn::read_var_value): ...this.
7391 * findvar.c (read_var_value): Update header comment, and change to
7392 call member function instead of function pointer.
7393 * go-lang.c (go_language_data): Likewise.
7394 * language.c (unknown_language_data): Delete la_read_var_value
7395 initializer.
7396 (auto_language_data): Likewise.
7397 * language.h (struct language_data): Delete la_read_var_value
7398 field.
7399 (language_defn::read_var_value): New member function.
7400 (default_read_var_value): Delete declaration.
7401 * m2-lang.c (m2_language_data): Delete la_read_var_value
7402 initializer.
7403 * objc-lang.c (objc_language_data): Likewise.
7404 * opencl-lang.c (opencl_language_data): Likewise.
7405 * p-lang.c (pascal_language_data): Likewise.
7406 * rust-lang.c (rust_language_data): Likewise.
7407 * value.h (default_read_var_value): Delete declaration.
7408
5bd40f2a
AB
74092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7410
7411 * ada-lang.c (ada_print_array_index): Delete function, move
7412 implementation to...
7413 (ada_language::print_array_index): ...here.
7414 (ada_language_data): Delete la_print_array_index initializer.
7415 * c-lang.c (c_language_data): Likewise.
7416 (cplus_language_data): Likewise.
7417 (minimal_language_data): Likewise.
7418 * d-lang.c (d_language_data): Likewise.
7419 * f-lang.c (f_language_data): Likewise.
7420 * go-lang.c (go_language_data): Likewise.
7421 * language.c (default_print_array_index): Delete function, move
7422 implementation to...
7423 (language_defn::print_array_index): ...here.
7424 (unknown_language_data): Delete la_print_array_index initializer.
7425 (auto_language_data): Likewise.
7426 * language.h (struct language_data): Delete la_print_array_index
7427 field.
7428 (language_defn::print_array_index): New member function.
7429 (LA_PRINT_ARRAY_INDEX): Update.
7430 (default_print_array_index): Delete declaration.
7431 * m2-lang.c (m2_language_data): Delete la_print_array_index
7432 initializer.
7433 * objc-lang.c (objc_language_data): Likewise.
7434 * opencl-lang.c (opencl_language_data): Likewise.
7435 * p-lang.c (pascal_language_data): Likewise.
7436 * rust-lang.c (rust_language_data): Likewise.
7437
0874fd07
AB
74382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7439
7440 * gdb/ada-lang.c (ada_language_defn): Convert to...
7441 (ada_language_data): ...this.
7442 (class ada_language): New class.
7443 (ada_language_defn): New static global.
7444 * gdb/c-lang.c (c_language_defn): Convert to...
7445 (c_language_data): ...this.
7446 (class c_language): New class.
7447 (c_language_defn): New static global.
7448 (cplus_language_defn): Convert to...
7449 (cplus_language_data): ...this.
7450 (class cplus_language): New class.
7451 (cplus_language_defn): New static global.
7452 (asm_language_defn): Convert to...
7453 (asm_language_data): ...this.
7454 (class asm_language): New class.
7455 (asm_language_defn): New static global.
7456 (minimal_language_defn): Convert to...
7457 (minimal_language_data): ...this.
7458 (class minimal_language): New class.
7459 (minimal_language_defn): New static global.
7460 * gdb/d-lang.c (d_language_defn): Convert to...
7461 (d_language_data): ...this.
7462 (class d_language): New class.
7463 (d_language_defn): New static global.
7464 * gdb/f-lang.c (f_language_defn): Convert to...
7465 (f_language_data): ...this.
7466 (class f_language): New class.
7467 (f_language_defn): New static global.
7468 * gdb/go-lang.c (go_language_defn): Convert to...
7469 (go_language_data): ...this.
7470 (class go_language): New class.
7471 (go_language_defn): New static global.
7472 * gdb/language.c (unknown_language_defn): Remove declaration.
7473 (current_language): Initialize to nullptr, real initialization is
7474 moved to _initialize_language.
7475 (languages): Delete global.
7476 (language_defn::languages): Define.
7477 (set_language_command): Use language_defn::languages.
7478 (set_language): Likewise.
7479 (range_error): Likewise.
7480 (language_enum): Likewise.
7481 (language_def): Likewise.
7482 (add_set_language_command): Use language_def::languages for the
7483 language list, and language_def to lookup language pointers.
7484 (skip_language_trampoline): Use language_defn::languages.
7485 (unknown_language_defn): Convert to...
7486 (unknown_language_data): ...this.
7487 (class unknown_language): New class.
7488 (unknown_language_defn): New static global.
7489 (auto_language_defn): Convert to...
7490 (auto_language_data): ...this.
7491 (class auto_language): New class.
7492 (auto_language_defn): New static global.
7493 (language_gdbarch_post_init): Use language_defn::languages.
7494 (_initialize_language): Initialize current_language.
7495 * gdb/language.h (struct language_defn): Rename to...
7496 (struct language_data): ...this.
7497 (struct language_defn): New.
7498 (auto_language_defn): Delete.
7499 (unknown_language_defn): Delete.
7500 (minimal_language_defn): Delete.
7501 (ada_language_defn): Delete.
7502 (asm_language_defn): Delete.
7503 (c_language_defn): Delete.
7504 (cplus_language_defn): Delete.
7505 (d_language_defn): Delete.
7506 (f_language_defn): Delete.
7507 (go_language_defn): Delete.
7508 (m2_language_defn): Delete.
7509 (objc_language_defn): Delete.
7510 (opencl_language_defn): Delete.
7511 (pascal_language_defn): Delete.
7512 (rust_language_defn): Delete.
7513 * gdb/m2-lang.c (m2_language_defn): Convert to...
7514 (m2_language_data): ...this.
7515 (class m2_language): New class.
7516 (m2_language_defn): New static global.
7517 * gdb/objc-lang.c (objc_language_defn): Convert to...
7518 (objc_language_data): ...this.
7519 (class objc_language): New class.
7520 (objc_language_defn): New static global.
7521 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7522 (opencl_language_data): ...this.
7523 (class opencl_language): New class.
7524 (opencl_language_defn): New static global.
7525 * gdb/p-lang.c (pascal_language_defn): Convert to...
7526 (pascal_language_data): ...this.
7527 (class pascal_language): New class.
7528 (pascal_language_defn): New static global.
7529 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7530 language pointer, update comment format.
7531 * gdb/rust-lang.c (rust_language_defn): Convert to...
7532 (rust_language_data): ...this.
7533 (class rust_language): New class.
7534 (rust_language_defn): New static global.
7535
1313c56e
AB
75362020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7537
7538 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7539 member variable.
7540 <m_stmt_at_address>: New member variable.
7541 (lnp_state_machine::record_line): Don't record some lines, update
7542 tracking of is_stmt at the same address.
7543 (lnp_state_machine::lnp_state_machine): Initialise new member
7544 variables.
7545
b7ed9f3d
ST
75462020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7547
7548 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7549 "-include gnu-nat-mig.h".
7550 * gnu-nat-mig.h: New file.
7551 * gnu-nat.c: Include "gnu-nat-mig.h".
7552 (exc_server, msg_reply_server, notify_server,
7553 process_reply_server): Remove declarations.
7554
14a8ad62
ST
75552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7556
7557 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7558 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7559 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7560 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7561 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7562 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7563 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7564 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7565 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7566 to gnu_nat_target class.
7567 * gnu-nat.c: Likewise.
7568 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7569 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7570 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7571 object.
7572 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7573 instead of `gnu_target'.
7574
0af5e106
ST
75752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7576
7577 * i386-gnu-tdep.c: Include "gdbcore.h"
7578 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7579 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7580 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7581 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7582 i386_gnu_sigcontext_addr): New functions
7583 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7584 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7585 tdep.
7586
078f2fc9
ST
75872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7588
7589 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7590 before fork_inferior call. Avoid calling it if target_is_pushed returns
7591 true.
7592
53dff92c
ST
75932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7594
7595 * gnu-nat.h (gnu_target): New variable declaration.
7596 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7597 gnu_target.
7598 * gnu-nat.c (gnu_target): New variable.
7599 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7600 add_thread_silent, and add_thread calls.
7601 (gnu_nat_target::create_inferior): Pass gnu_target to
7602 add_thread_silent, thread_change_ptid call.
7603 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7604 call.
7605
5a8b8627
ST
76062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7607
7608 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7609 (gnu_nat_target::find_memory_regions): Remove unused
7610 `old_address' variable.
7611
366f550a
ST
76122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7613
7614 * gnu-nat.c: Include "gdbarch.h".
7615
f14871bf
ST
76162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7617
7618 * reply_mig_hack.awk (Error return): Cast function through
7619 void *, to bypass compiler function call check.
7620
c6887cfb
ST
76212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7622
7623 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7624 $(srcdir)/reply_mig_hack.awk.
7625
6930bffe
ST
76262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7627
7628 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7629
112c22ed
JG
76302020-05-30 Jonny Grant <jg@jguk.org>
7631
7632 * configure.ac (ACX_BUGURL): change bug URL to https.
7633
f68f85b5
PA
76342020-05-30 Pedro Alves <palves@redhat.com>
7635
7636 * cp-support.c (replace_typedefs_template): New.
7637 (replace_typedefs_qualified_name): Handle
7638 DEMANGLE_COMPONENT_TEMPLATE.
7639
976ca316
SM
76402020-05-29 Simon Marchi <simon.marchi@efficios.com>
7641
7642 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7643 dwarf2/index-cache.h, dwarf2/index-write.c,
7644 dwarf2/index-write.h, dwarf2/line-header.c,
7645 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7646 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7647 variables and fields from `dwarf2_per_objfile` to just
7648 `per_objfile` throughout.
7649
989ade05
SM
76502020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7651
7652 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7653 <push_dwarf_reg_entry_value>: Add comment.
7654
c47bae85
KB
76552020-05-28 Kevin Buettner <kevinb@redhat.com>
7656 Keith Seitz <keiths@redhat.com>
7657
7658 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7659 instead of PyEval_ReleaseLock.
7660 (class gdbpy_gil): Move to earlier in file.
7661 (finalize_python): Set gdb_python_initialized.
7662 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7663 when not initialized.
7664
44486dcf
SM
76652020-05-28 Simon Marchi <simon.marchi@efficios.com>
7666
7667 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7668 <push_dwarf_reg_entry_value>: Remove assert. Override
7669 per_objfile with caller_per_objfile.
7670
f030440d
TV
76712020-05-28 Tom de Vries <tdevries@suse.de>
7672
7673 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7674 PR gold/15646 workaround to symbol kind "type".
7675
f0fbb768
TT
76762020-05-27 Tom Tromey <tromey@adacore.com>
7677
7678 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7679
af0b2a3e
TT
76802020-05-27 Tom Tromey <tromey@adacore.com>
7681
7682 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7683 Use htab_find_with_hash.
7684 <add_abbrev>: Remove "abbrev_number" parameter.
7685 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7686 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7687 (hash_abbrev): Add comment.
7688 (abbrev_table::lookup_abbrev): Move to header file.
7689 (abbrev_table::read): Update.
7690
7d00ffec
TT
76912020-05-27 Tom Tromey <tromey@adacore.com>
7692
7693 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7694 method.
7695 <canonical_name>: New member.
7696 <raw_name>: Rename from "name".
7697 (partial_die_info): Initialize canonical_name.
7698 (scan_partial_symbols): Check raw_name.
7699 (partial_die_parent_scope, partial_die_full_name)
7700 (add_partial_symbol, add_partial_subprogram)
7701 (add_partial_enumeration, load_partial_dies): Use "name" method.
7702 (partial_die_info::name): New method.
7703 (partial_die_info::read, guess_partial_die_structure_name)
7704 (partial_die_info::fixup): Update.
7705
697bba18
TT
77062020-05-27 Tom Tromey <tromey@adacore.com>
7707
7708 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7709 <get_ref_die_offset>: Inline.
7710 <get_ref_die_offset_complaint>: New method.
7711 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7712 (attribute::get_ref_die_offset_complaint): Rename from
7713 get_ref_die_offset. Just issue complaint.
7714
c17ace43
HD
77152020-05-27 Hannes Domani <ssbssa@yahoo.de>
7716
7717 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7718
96445f0b
HD
77192020-05-27 Hannes Domani <ssbssa@yahoo.de>
7720
7721 * exec.c (exec_file_attach): Use errno value of first openp failure.
7722
ac637ec3
HD
77232020-05-27 Hannes Domani <ssbssa@yahoo.de>
7724
7725 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7726 Don't close thread handle.
7727
17ee85fc
TT
77282020-05-27 Tom Tromey <tom@tromey.com>
7729 Simon Marchi <simon.marchi@efficios.com>
7730
7731 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7732 shared_ptr.
7733 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7734 member.
7735 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7736 dwarf2_per_bfd_objfile_data_key>: New globals.
7737 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7738 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7739 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7740 shared.
7741 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7742 short-circuit when sharing.
7743 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7744 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7745
39b16f87
SM
77462020-05-27 Simon Marchi <simon.marchi@efficios.com>
7747
7748 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7749 to...
7750 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7751 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7752
fcf23d5b
SM
77532020-05-27 Simon Marchi <simon.marchi@efficios.com>
7754
7755 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7756 build_name_components, find_name_components_bounds>:
7757 Add per_objfile parameter.
7758 (struct mapped_index) <symbol_name_at>: Likewise.
7759 (struct mapped_debug_names): Remove constructor.
7760 <dwarf2_per_objfile>: Remove field.
7761 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7762 (mapped_index_base::find_name_components_bounds,
7763 mapped_index_base::build_name_components,
7764 dw2_expand_symtabs_matching_symbol): Likewise.
7765 (class mock_mapped_index) <symbol_name_at>: Likewise.
7766 (check_match): Likewise.
7767 (check_find_bounds_finds): Likewise.
7768 (test_mapped_index_find_name_component_bounds): Update.
7769 (CHECK_MATCH): Update.
7770 (dw2_expand_symtabs_matching): Update.
7771 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7772 per_objfile parameter.
7773 <find_vec_in_debug_names>: Likewise.
7774 <m_per_objfile>: New field.
7775 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7776 parameter.
7777 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7778 (dw2_debug_names_iterator::next): Update.
7779 (dw2_debug_names_lookup_symbol): Update.
7780 (dw2_debug_names_expand_symtabs_for_function): Update.
7781 (dw2_debug_names_map_matching_symbols): Update.
7782 (dw2_debug_names_expand_symtabs_matching): Update.
7783 (dwarf2_read_debug_names): Update.
7784
7188ed02
SM
77852020-05-27 Simon Marchi <simon.marchi@efficios.com>
7786
7787 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7788 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7789 move to dwarf2_per_objfile.
7790 <read_in_chain>: Remove.
7791 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7792 remove_all_cus, age_comp_units>: New methods.
7793 <m_dwarf2_cus>: New member.
7794 (struct dwarf2_per_cu_data) <cu>: Remove.
7795 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7796 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7797 moved to methods of dwarf2_per_objfile.
7798 (dwarf2_clear_marks): Remove.
7799 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7800 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7801 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7802 (dwarf2_per_objfile::remove_all_cus): New.
7803 (class free_cached_comp_units) <~free_cached_comp_units>:
7804 Update.
7805 (load_cu): Update.
7806 (dw2_do_instantiate_symtab): Adjust.
7807 (fill_in_sig_entry_from_dwo_entry): Adjust.
7808 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7809 (cutu_reader::cutu_reader): Likewise.
7810 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7811 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7812 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7813 and dwarf2_per_objfile::age_comp_units.
7814 (load_partial_comp_unit): Update.
7815 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7816 (process_queue): Likewise.
7817 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7818 backlink.
7819 (dwarf2_read_addr_index): Likewise.
7820 (follow_die_offset): Likewise.
7821 (dwarf2_fetch_die_loc_sect_off): Likewise.
7822 (dwarf2_fetch_constant_bytes): Likewise.
7823 (dwarf2_fetch_die_type_sect_off): Likewise.
7824 (follow_die_sig_1): Likewise.
7825 (load_full_type_unit): Likewise.
7826 (read_signatured_type): Likewise.
7827 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7828 (dwarf2_cu::~dwarf2_cu): Remove.
7829 (dwarf2_per_objfile::get_cu): New.
7830 (dwarf2_per_objfile::set_cu): New.
7831 (age_cached_comp_units): Rename to...
7832 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7833 to std::unordered_map.
7834 (free_one_cached_comp_unit): Rename to...
7835 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7836 to std::unordered_map.
7837 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7838 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7839 a dwarf2_per_objfile in data.
7840 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7841 (dwarf2_clear_marks): Remove.
7842
2e671100
SM
78432020-05-27 Simon Marchi <simon.marchi@efficios.com>
7844
7845 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7846 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7847 (init_tu_and_read_dwo_dies): Likewise.
7848 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7849 (cutu_reader::cutu_reader): Likewise.
7850 (load_partial_comp_unit): Likewise.
7851 (process_psymtab_comp_unit): Update.
7852 (build_type_psymtabs_1): Update.
7853 (process_skeletonless_type_unit): Update.
7854 (load_full_comp_unit): Update.
7855 (find_partial_die): Update.
7856 (dwarf2_read_addr_index): Update.
7857 (read_signatured_type): Update.
7858
2e6a9f79
SM
78592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7860
7861 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7862 m_header_read_in>: New fields.
7863 <get_header>: New method.
7864 * dwarf2/read.c (per_cu_header_read_in): Remove.
7865 (dwarf2_per_cu_data::get_header): New.
7866 (dwarf2_per_cu_data::addr_size): Update.
7867 (dwarf2_per_cu_data::offset_size): Update.
7868 (dwarf2_per_cu_data::ref_addr_size): Update.
7869
1b555f17
SM
78702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7871
7872 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7873 (dw2_do_instantiate_symtab): Update.
7874 (queue_and_load_all_dwo_tus): Change parameter from
7875 dwarf2_per_cu_data to dwarf2_cu.
7876 (dwarf2_fetch_die_loc_sect_off): Update.
7877 (dwarf2_fetch_constant_bytes): Update.
7878 (dwarf2_fetch_die_type_sect_off): Update.
7879
8fc0b21d
SM
78802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7881
7882 * dwarf2/read.c (process_full_comp_unit,
7883 process_full_type_unit): Remove per_cu, per_objfile paramters.
7884 Add dwarf2_cu parameter.
7885 (process_queue): Update.
7886
168c9250
SM
78872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7888
7889 * dwarf2/read.c (create_cu_from_index_list): Replace
7890 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7891 (create_cus_from_index_list): Likewise.
7892 (create_cus_from_index): Likewise.
7893 (create_signatured_type_table_from_index): Likewise.
7894 (create_cus_from_debug_names_list): Likewise.
7895 (create_cus_from_debug_names): Likewise.
7896 (dwarf2_read_gdb_index): Update.
7897 (dwarf2_read_debug_names): Update.
7898
e286671b
TT
78992020-05-27 Tom Tromey <tom@tromey.com>
7900 Simon Marchi <simon.marchi@efficios.com>
7901
7902 * dwarf2/read.h (struct dwarf2_per_objfile)
7903 <get_type_for_signatured_type, set_type_for_signatured_type>:
7904 New methods.
7905 <m_type_map>: New member.
7906 (struct signatured_type) <type>: Remove.
7907 * dwarf2/read.c
7908 (dwarf2_per_objfile::get_type_for_signatured_type,
7909 dwarf2_per_objfile::set_type_for_signatured_type): New.
7910 (get_signatured_type): Use new methods.
7911
8adb8487
TT
79122020-05-27 Tom Tromey <tom@tromey.com>
7913 Simon Marchi <simon.marchi@efficios.com>
7914
7915 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7916 (struct dwarf2_per_objfile) <type_units>: New member.
7917 <get_type_unit_group_unshareable>: New method.
7918 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7919 num_symtabs, symtabs>: Remove; move to
7920 type_unit_group_unshareable.
7921 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7922 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7923 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7924
127bbf4b
SM
79252020-05-27 Simon Marchi <simon.marchi@efficios.com>
7926
7927 * dwarf2/read.h (struct dwarf2_per_cu_data):
7928 <dwarf2_per_objfile>: Remove.
7929 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7930 dwarf2_per_objfile.
7931 (create_signatured_type_table_from_index): Likewise.
7932 (create_signatured_type_table_from_debug_names): Likewise.
7933 (create_debug_type_hash_table): Likewise.
7934 (fill_in_sig_entry_from_dwo_entry): Likewise.
7935 (create_type_unit_group): Likewise.
7936 (read_comp_units_from_section): Likewise.
7937 (create_cus_hash_table): Likewise.
7938
f6e649dd
SM
79392020-05-27 Simon Marchi <simon.marchi@efficios.com>
7940
7941 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7942 dwarf2_per_cu_data::dwarf2_per_objfile.
7943 (compute_compunit_symtab_includes): Likewise.
7944 (dwarf2_cu::start_symtab): Likewise.
7945
aa66c379
SM
79462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7947
7948 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7949 parameter.
7950 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7951 (read_namespace_alias): Update.
7952 (lookup_die_type): Update.
7953 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7954 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7955 Update.
7956 (disassemble_dwarf_expression): Update.
7957
120ce1b5
SM
79582020-05-27 Simon Marchi <simon.marchi@efficios.com>
7959
7960 * dwarf2/read.h (struct dwarf2_queue_item): Add
7961 dwarf2_per_objfile parameter, assign new parameter.
7962 <per_objfile>: New field.
7963 * dwarf2/read.c (free_one_cached_comp_unit): Add
7964 dwarf2_per_objfile parameter.
7965 (queue_comp_unit): Likewise.
7966 (dw2_do_instantiate_symtab): Update.
7967 (process_psymtab_comp_unit): Update.
7968 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7969 (process_imported_unit_die): Update.
7970 (queue_and_load_dwo_tu): Update.
7971 (follow_die_offset): Update.
7972 (follow_die_sig_1): Update.
7973
9f47c707
SM
79742020-05-27 Simon Marchi <simon.marchi@efficios.com>
7975
7976 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7977 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7978 (read_call_site_scope): Assign per_objfile.
7979 (dwarf2_per_cu_data::objfile): Remove.
7980 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7981 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7982 dwarf2_per_objfile parameter.
7983 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7984 dwarf2_per_objfile parameter.
7985 (dwarf_expr_reg_to_entry_parameter): Add output
7986 dwarf2_per_objfile parameter.
7987 (locexpr_get_frame_base): Update.
7988 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7989 <push_dwarf_reg_entry_value>: Update.
7990 <call_site_to_target_addr>: Update.
7991 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7992 parameter.
7993 (value_of_dwarf_reg_entry): Update.
7994 (rw_pieced_value): Update.
7995 (indirect_synthetic_pointer): Update.
7996 (dwarf2_evaluate_property): Update.
7997 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7998 parameter.
7999 (locexpr_read_variable): Update.
8000 (locexpr_get_symbol_read_needs): Update.
8001 (loclist_read_variable): Update.
8002
14095eb3
SM
80032020-05-27 Simon Marchi <simon.marchi@efficios.com>
8004
8005 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8006 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8007 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8008 parameter.
8009 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8010 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8011 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8012 parameter.
8013 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8014 sect_variable_value): Add dwarf2_per_objfile parameter.
8015 (class dwarf_evaluate_loc_desc) <dwarf_call,
8016 dwarf_variable_value>: Update.
8017 (fetch_const_value_from_synthetic_pointer): Add
8018 dwarf2_per_objfile parameter.
8019 (fetch_const_value_from_synthetic_pointer): Update.
8020 (coerced_pieced_ref): Update.
8021 (class symbol_needs_eval_context) <dwarf_call,
8022 dwarf_variable_value>: Update.
8023 (dwarf2_compile_expr_to_ax): Update.
8024
3c3cd3d4
SM
80252020-05-27 Simon Marchi <simon.marchi@efficios.com>
8026
8027 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8028 parameter.
8029 (dwarf2_evaluate_loc_desc_full): Update.
8030
82ca3f51
SM
80312020-05-27 Simon Marchi <simon.marchi@efficios.com>
8032
8033 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8034 parameter.
8035 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8036 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8037 dwarf2_per_objfile parameter.
8038 (decode_debug_loc_dwo_addresses): Likewise.
8039 (dwarf2_find_location_expression): Update.
8040 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8041 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8042 parameter.
8043 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8044 parameter.
8045 (locexpr_describe_location_1): Likewise.
8046 (locexpr_describe_location): Update.
8047
4b167ea1
SM
80482020-05-27 Simon Marchi <simon.marchi@efficios.com>
8049
8050 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8051 Remove.
8052 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8053 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8054 (dwarf2_compile_property_to_c): Update.
8055 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8056 use text offset from objfile.
8057 (locexpr_tracepoint_var_ref): Update.
8058 (locexpr_generate_c_location): Update.
8059 (loclist_describe_location): Update.
8060 (loclist_tracepoint_var_ref): Update.
8061 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8062 dwarf2_per_objfile parameter.
8063 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8064 use text offset from objfile.
8065 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8066
89b07335
SM
80672020-05-27 Simon Marchi <simon.marchi@efficios.com>
8068
8069 * dwarf2/expr.h (struct dwarf_expr_context)
8070 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8071 <offset>: Remove.
8072 <per_objfile>: New member.
8073 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8074 dwarf2_per_objfile parameter. Don't set offset, set
8075 per_objfile.
8076 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8077 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8078 a dwarf2_per_objfile object instead of an offset.
8079 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8080 constructor.
8081 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8082 to dwarf2_expr_executor constructor. Don't set offset.
8083 (dwarf2_fetch_cfa_info): Update.
8084 (struct dwarf2_frame_cache) <text_offset>: Remove.
8085 <per_objfile>: New field.
8086 (dwarf2_frame_cache): Update.
8087 (dwarf2_frame_prev_register): Update.
8088 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8089 <dwarf_evaluate_loc_desc>: Add constructor.
8090 (dwarf2_evaluate_loc_desc_full): Update.
8091 (dwarf2_locexpr_baton_eval): Update.
8092 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8093 Add constructor.
8094 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8095
293e7e51
SM
80962020-05-27 Simon Marchi <simon.marchi@efficios.com>
8097
8098 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8099 addr_sized_int_type>: Move to dwarf2_cu.
8100 <int_type>: Move to dwarf2_per_objfile.
8101 (struct dwarf2_per_objfile) <int_type>: Move here.
8102 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8103 addr_sized_int_type>: Move here.
8104 (read_func_scope): Update.
8105 (read_array_type): Update.
8106 (read_tag_string_type): Update.
8107 (attr_to_dynamic_prop): Update.
8108 (dwarf2_per_cu_data::int_type): Rename to...
8109 (dwarf2_per_objfile::int_type): ... this.
8110 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8111 (dwarf2_cu::addr_sized_int_type): ... this.
8112 (read_subrange_type): Update.
8113 (dwarf2_per_cu_data::addr_type): Rename to...
8114 (dwarf2_cu::addr_type): ... this.
8115 (set_die_type): Update.
8116
64874a40
SM
81172020-05-27 Simon Marchi <simon.marchi@efficios.com>
8118
8119 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8120 data through per_cu->cu.
8121
4ab09049
SM
81222020-05-27 Simon Marchi <simon.marchi@efficios.com>
8123
8124 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8125 dwarf2_per_cu_data parameter fo dwarf2_cu.
8126 (lookup_dwo_type_unit): Likewise.
8127 (read_cutu_die_from_dwo): Likewise.
8128 (lookup_dwo_unit): Likewise.
8129 (open_and_init_dwo_file): Likewise.
8130 (lookup_dwo_cutu): Likewise.
8131 (lookup_dwo_comp_unit): Likewise.
8132 (lookup_dwo_type_unit): Likewise.
8133 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8134 (cutu_reader::cutu_reader): Update.
8135
47b14e86
SM
81362020-05-27 Simon Marchi <simon.marchi@efficios.com>
8137
8138 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8139 parameter.
8140 (process_full_type_unit): Likewise.
8141 (process_queue): Update.
8142
43182c09
SM
81432020-05-27 Simon Marchi <simon.marchi@efficios.com>
8144
8145 * dwarf2/read.c (recursively_compute_inclusions): Add
8146 dwarf2_per_objfile parameter.
8147 (compute_compunit_symtab_includes): Likewise.
8148 (process_cu_includes): Update.
8149
7aa104c4
SM
81502020-05-27 Simon Marchi <simon.marchi@efficios.com>
8151
8152 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8153 parameter.
8154 (create_type_unit_group): Update.
8155 (process_psymtab_comp_unit_reader): Update.
8156 (build_type_psymtabs_reader): Update.
8157
e3beb21d
SM
81582020-05-27 Simon Marchi <simon.marchi@efficios.com>
8159
8160 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8161 object through m_this_cu->cu.
8162
d460f660
SM
81632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8164
8165 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8166 the info parameter.
8167 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8168
ab432490
SM
81692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8170
8171 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8172 per_objfile parameter.
8173 (load_full_type_unit): Add per_objfile parameter.
8174 (read_signatured_type): Likewise.
8175 (load_full_comp_unit): Likewise.
8176 (load_cu): Likewise.
8177 (dw2_do_instantiate_symtab): Likewise.
8178 (dw2_get_file_names): Likewise.
8179 (dw2_map_symtabs_matching_filename): Update.
8180 (dw_expand_symtabs_matching_file_matcher): Update.
8181 (dw2_map_symbol_filenames): Update.
8182 (process_psymtab_comp_unit): Add per_objfile parameter.
8183 (build_type_psymtabs_1): Update.
8184 (process_skeletonless_type_unit): Update.
8185 (dwarf2_build_psymtabs_hard): Update.
8186 (load_partial_comp_unit): Add per_objfile parameter.
8187 (scan_partial_symbols): Update.
8188 (load_full_comp_unit): Add per_objfile parameter.
8189 (process_imported_unit_die): Update.
8190 (create_cus_hash_table): Update.
8191 (find_partial_die): Update.
8192 (dwarf2_read_addr_index): Update.
8193 (follow_die_offset): Update.
8194 (dwarf2_fetch_die_loc_sect_off): Update.
8195 (dwarf2_fetch_constant_bytes): Update.
8196 (dwarf2_fetch_die_type_sect_off): Update.
8197 (follow_die_sig_1): Update.
8198 (load_full_type_unit): Add per_objfile parameter.
8199 (read_signatured_type): Likewise.
8200
313bad1b
SM
82012020-05-27 Simon Marchi <simon.marchi@efficios.com>
8202
8203 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8204 of objfile_name.
8205
c3699833
SM
82062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8207
8208 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8209 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8210 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8211 field.
8212 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8213 (create_cus_from_index): Update.
8214 (dwarf2_read_gdb_index): Update.
8215 (create_cus_from_debug_names): Update.
8216 (dwarf2_read_debug_names): Update.
8217 (get_abbrev_section_for_cu): Update.
8218 (create_all_comp_units): Update.
8219 (read_attribute_value): Update.
8220 (get_debug_line_section): Update.
8221 * dwarf2/index-cache.c (index_cache::store): Update.
8222 * dwarf2/index-write.c (save_gdb_index_command): Update.
8223 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8224
1859c670
SM
82252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8226
8227 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8228 member.
8229 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8230 dwarf2_per_cu_data::per_bfd.
8231 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8232 (create_type_unit_group): Likewise.
8233 (queue_comp_unit): Remove reference to
8234 per_cu->dwarf2_per_objfile.
8235 (maybe_queue_comp_unit): Likewise.
8236 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8237 (create_cus_hash_table): Assign new field.
8238
5e22e966
SM
82392020-05-27 Simon Marchi <simon.marchi@efficios.com>
8240
8241 * dwarf2/read.c: Replace
8242 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8243 dwarf2_cu->per_objfile throughout.
8244
97a1449a
SM
82452020-05-27 Simon Marchi <simon.marchi@efficios.com>
8246
8247 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8248 parameter, don't use per_cu->dwarf2_per_objfile.
8249 (dw2_instantiate_symtab): Likewise.
8250 (dw2_find_last_source_symtab): Update.
8251 (dw2_map_expand_apply): Update.
8252 (dw2_lookup_symbol): Update.
8253 (dw2_expand_symtabs_for_function): Update.
8254 (dw2_expand_all_symtabs): Update.
8255 (dw2_expand_symtabs_with_fullname): Update.
8256 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8257 don't use per_cu->dwarf2_per_objfile.
8258 (dw2_expand_marked_cus): Update.
8259 (dw2_find_pc_sect_compunit_symtab): Update.
8260 (dw2_debug_names_lookup_symbol): Update.
8261 (dw2_debug_names_expand_symtabs_for_function): Update.
8262 (dw2_debug_names_map_matching_symbols): Update.
8263 (dwarf2_psymtab::expand_psymtab): Update.
8264
9e021579
SM
82652020-05-27 Simon Marchi <simon.marchi@efficios.com>
8266
8267 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8268 <per_objfile>: New member.
8269 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8270 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8271 call to dwarf2_cu.
8272 (cutu_reader::cutu_reader): Update.
8273 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8274
ae090bdb
SM
82752020-05-27 Simon Marchi <simon.marchi@efficios.com>
8276
8277 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8278 struct dwarf2_per_objfile.
8279 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8280 dwarf2_per_bfd.
8281 * dwarf2/read.c (set_die_type): Update.
8282 (get_die_type_at_offset): Update.
8283
af758d11
SM
82842020-05-27 Tom Tromey <tom@tromey.com>
8285 Simon Marchi <simon.marchi@efficios.com>
8286
8287 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8288 method.
8289 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8290 get_symtab, set_symtab>: New methods.
8291 <m_symtabs>: New field.
8292 (struct dwarf2_psymtab): Derive from partial_symtab.
8293 <readin_p, get_compunit_symtab>: Declare methods.
8294 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8295 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8296 New methods.
8297 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8298 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8299 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8300 (dw2_symtab_iter_next, dw2_print_stats)
8301 (dw2_expand_symtabs_with_fullname)
8302 (dw2_expand_symtabs_matching_one)
8303 (dw_expand_symtabs_matching_file_matcher)
8304 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8305 (dw2_debug_names_iterator::next)
8306 (dw2_debug_names_map_matching_symbols)
8307 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8308 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8309 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8310 New methods.
8311 (get_compunit_symtab, process_full_comp_unit)
8312 (process_full_type_unit): Update.
8313 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8314
5989a64e
SM
83152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8316
8317 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8318 then introduce a new dwarf2_per_objfile type.
8319 <read_line_string>: Move to the new dwarf2_per_objfile type.
8320 <objfile>: Likewise.
8321 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8322 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8323 dwarf2_per_objfile->per_bfd.
8324 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8325 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8326 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8327 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8328 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8329 (dwarf2_per_objfile::locate_sections): Rename to...
8330 (dwarf2_per_bfd::locate_sections): ... this.
8331 (dwarf2_per_objfile::get_cutu): Rename to...
8332 (dwarf2_per_bfd::get_cutu): ... this.
8333 (dwarf2_per_objfile::get_cu): Rename to...
8334 (dwarf2_per_bfd::get_cu): ... this.
8335 (dwarf2_per_objfile::get_tu): Rename to...
8336 (dwarf2_per_bfd::get_tu): ... this.
8337 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8338 (dwarf2_per_bfd::allocate_per_cu): ... this.
8339 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8340 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8341 (get_gdb_index_contents_ftype): Change parameter from
8342 dwarf2_per_objfile to dwarf2_per_bfd.
8343 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8344 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8345
a50264ba
TT
83462020-05-27 Tom Tromey <tom@tromey.com>
8347 Simon Marchi <simon.marchi@efficios.com>
8348
8349 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8350 (allocate_piece_closure): Set "per_objfile" member.
8351 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8352 (locexpr_describe_location, loclist_describe_location): Use new
8353 member.
8354 * dwarf2/read.c (read_call_site_scope)
8355 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8356 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8357 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8358 handle_data_member_location): Set per_objfile member.
8359 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8360 member.
8361 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8362
d3473f0c
TT
83632020-05-27 Tom Tromey <tom@tromey.com>
8364
8365 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8366 allocate_signatured_type>: Declare new methods.
8367 <m_num_psymtabs>: New member.
8368 (struct dwarf2_per_cu_data) <index>: New member.
8369 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8370 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8371 (create_cu_from_index_list): Use allocate_per_cu.
8372 (create_signatured_type_table_from_index)
8373 (create_signatured_type_table_from_debug_names)
8374 (create_debug_type_hash_table, add_type_unit)
8375 (read_comp_units_from_section): Use allocate_signatured_type.
8376
5717c425
TT
83772020-05-27 Tom Tromey <tom@tromey.com>
8378
8379 * psymtab.c (partial_map_expand_apply)
8380 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8381 (psym_lookup_global_symbol_language)
8382 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8383 (psym_print_stats, psym_expand_symtabs_for_function)
8384 (psym_map_symbol_filenames, psym_map_matching_symbols)
8385 (psym_expand_symtabs_matching)
8386 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8387 (maintenance_check_psymtabs): Update.
8388 * psympriv.h (struct partial_symtab) <readin_p,
8389 get_compunit_symtab>: Add objfile parameter.
8390 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8391 Likewise.
8392 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8393 get_compunit_symtab>: Likewise.
8394 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8395
45940949
TT
83962020-05-27 Tom Tromey <tom@tromey.com>
8397
8398 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8399 member.
8400 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8401 (create_cu_from_index_list)
8402 (create_signatured_type_table_from_index)
8403 (create_signatured_type_table_from_debug_names)
8404 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8405 (dwarf2_create_include_psymtab)
8406 (create_debug_type_hash_table, add_type_unit)
8407 (create_type_unit_group, read_comp_units_from_section)
8408 (dwarf2_compute_name, create_cus_hash_table)
8409 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8410 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8411 obstack.
8412 (dw2_get_real_path): Likewise. Change argument to
8413 dwarf2_per_objfile.
8414
f8c6d152
LM
84152020-05-27 Luis Machado <luis.machado@linaro.org>
8416
8417 PR tdep/26000
8418 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8419 for ldrd (immediate).
8420
e98d2e6d
PW
84212020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8422
8423 * command.h: Add comment giving the name of class_tui.
8424 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8425 create the fake command for the help for class_tui.
8426
53a47a3e
TT
84272020-05-26 Tom Tromey <tromey@adacore.com>
8428
8429 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8430 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8431 (val_atr): New function.
8432 (value_val_atr): Use it.
8433 * ada-valprint.c (print_optional_low_bound): Change low bound
8434 handling for enums.
8435 (val_print_packed_array_elements): Don't call discrete_position.
8436 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8437 discrete_position for enum types.
8438 * language.c (default_print_array_index): Change type.
8439 * language.h (struct language_defn) <la_print_array_index>: Add
8440 index_type parameter, change type of index_value.
8441 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8442 (default_print_array_index): Update.
8443 * valprint.c (maybe_print_array_index): Don't call
8444 value_from_longest. Update.
8445 (value_print_array_elements): Don't call discrete_position.
8446
0bc2354b
TT
84472020-05-26 Tom Tromey <tromey@adacore.com>
8448
8449 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8450 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8451
1218a4bf
CDA
84522020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8453
8454 PR gdb/13519
8455 * avr-tdep.c (avr_integer_to_address): Return data or code
8456 address accordingly to the second 'type' argument of the
8457 function.
8458
92651b1d
MW
84592020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8460
8461 * infcmd.c, inferior.h: (construct_inferior_arguments):
8462 Moved function from here to gdbsupport/common-inferior.{h,cc}
8463
0a4f5f8c
TT
84642020-05-23 Tom Tromey <tom@tromey.com>
8465
8466 Revert commit eca1f90c:
8467 * NEWS: Remove entry for completion styling.
8468 * completer.c (_rl_completion_prefix_display_length): Move
8469 declaration later.
8470 (gdb_fnprint): Revert.
8471 (gdb_display_match_list_1): Likewise.
8472 * cli/cli-style.c (completion_prefix_style)
8473 (completion_difference_style, completion_suffix_style): Remove.
8474 (_initialize_cli_style): Revert.
8475 * cli/cli-style.h (completion_prefix_style)
8476 (completion_difference_style, completion_suffix_style): Don't
8477 declare.
8478
e08bd6c5
PA
84792020-05-24 Pedro Alves <palves@redhat.com>
8480
8481 * symtab.c (completion_list_add_name): Return boolean indication
8482 of whether the symbol matched.
8483 (completion_list_add_symbol): Don't try to remove C++ aliases if
8484 the symbol didn't match in the first place.
8485 * symtab.h (completion_list_add_name): Return bool.
8486
ceacbf6e
SM
84872020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8488
8489 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8490 type::field.
8491
26f16254
JB
84922020-05-23 Joel Brobecker <brobecker@adacore.com>
8493
8494 GDB 9.2 released.
8495
eca1f90c
TT
84962020-05-23 Tom Tromey <tom@tromey.com>
8497
8498 * NEWS: Add entry for completion styling.
8499 * completer.c (_rl_completion_prefix_display_length): Move
8500 declaration earlier.
8501 (gdb_fnprint): Use completion_style.
8502 (gdb_display_match_list_1): Likewise.
8503 * cli/cli-style.c (completion_prefix_style)
8504 (completion_difference_style, completion_suffix_style): New
8505 globals.
8506 (_initialize_cli_style): Register new globals.
8507 * cli/cli-style.h (completion_prefix_style)
8508 (completion_difference_style, completion_suffix_style): Declare.
8509
51e2cfa2
PA
85102020-05-23 Pedro Alves <palves@redhat.com>
8511
8512 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8513 (parse_escape): Use ISDIGIT instead of isdigit.
8514 (puts_debug): Use gdb_isprint instead of isprint.
8515 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8516 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8517 ISSPACE instead of isspace.
8518 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8519 instead of isspace.
8520 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8521 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8522 instead of isxdigit and ISDIGIT instead of isdigit.
8523
80fc5e77
SM
85242020-05-22 Simon Marchi <simon.marchi@efficios.com>
8525
8526 * gdbtypes.h (struct type) <field>: New method.
8527 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8528 or type::field.
8529
3cabb6b0
SM
85302020-05-22 Simon Marchi <simon.marchi@efficios.com>
8531
8532 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8533 (TYPE_FIELDS): Use type::fields. Change all call sites that
8534 modify the propery to use type::set_fields instead.
8535
1f704f76
SM
85362020-05-22 Simon Marchi <simon.marchi@efficios.com>
8537
8538 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8539 type::num_fields instead.
8540
5e33d5f4
SM
85412020-05-22 Simon Marchi <simon.marchi@efficios.com>
8542
8543 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8544 methods.
8545 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8546 that modify the number of fields to use type::set_num_fields
8547 instead.
8548
9392ebb3
TT
85492020-05-22 Tom Tromey <tromey@adacore.com>
8550
8551 * compile/compile-object-load.h (munmap_list_free): Don't
8552 declare.
8553
7c13f4e8
AB
85542020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8555
8556 * annotate.c (annotate_source_line): Update return type, add call
8557 to update current symtab and line.
8558 * annotate.h (annotate_source_line): Update return type, and
8559 extend header comment.
8560 * source.c (info_line_command): Check annotation_level before
8561 calling annotate_source_line.
8562 * stack.c (print_frame_info): If calling annotate_source_line
8563 returns true, then don't print any other source line information.
8564
aa370940
SM
85652020-05-21 Simon Marchi <simon.marchi@efficios.com>
8566
8567 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8568
84d53fa9
SM
85692020-05-21 Simon Marchi <simon.marchi@efficios.com>
8570
8571 * coffread.c (patch_type): Remove NULL check before xfree.
8572 * corefile.c (set_gnutarget): Likewise.
8573 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8574 * exec.c (build_section_table): Likewise.
8575 * remote.c (remote_target::pass_signals): Likewise.
8576 * utils.c (n_spaces): Likewise.
8577 * cli/cli-script.c (document_command): Likewise.
8578 * i386-windows-tdep.c (core_process_module_section): Likewise.
8579 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8580
9d428aae
SM
85812020-05-20 Simon Marchi <simon.marchi@efficios.com>
8582
8583 * symfile.c (reread_symbols): Clear objfile's section_offsets
8584 vector and section indices, re-compute them by calling
8585 sym_offsets.
8586
250106a7
TT
85872020-05-20 Tom Tromey <tromey@adacore.com>
8588
8589 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8590 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8591
9a0bacfb
TV
85922020-05-20 Tom de Vries <tdevries@suse.de>
8593
8594 PR symtab/25833
8595 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8596
7b958a48
AM
85972020-05-20 Alan Modra <amodra@gmail.com>
8598
8599 PR 25993
8600 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8601 bfd_set_filename.
8602 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8603 passed to bfd_set_filename.
8604 * symfile-mem.c (add_vsyscall_page): Likewise for string
8605 passed to symbol_file_add_from_memory.
8606 (symbol_file_add_from_memory): Make name param a const char* and
8607 don't strdup.
8608
c7e97679
AM
86092020-05-20 Alan Modra <amodra@gmail.com>
8610
8611 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8612 rather than accessing bfd->filename directly.
8613 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8614 and use bfd_section_name.
8615 * dwarf2/frame.c (decode_frame_entry): Likewise.
8616 * exec.c (exec_set_section_address): Likewise.
8617 * solib-aix.c (solib_aix_bfd_open): Likewise.
8618 * stap-probe.c (get_stap_base_address): Likewise.
8619 * symfile.c (reread_symbols): Likewise.
8620
563c591b
TT
86212020-05-19 Tom Tromey <tromey@adacore.com>
8622
8623 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8624
f408d82c
SM
86252020-05-19 Simon Marchi <simon.marchi@efficios.com>
8626
8627 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8628
98c59b52
PA
86292020-05-19 Pedro Alves <palves@redhat.com>
8630
8631 * NEWS (set exec-file-mismatch): Adjust entry.
8632 * exec.c: Include "build-id.h".
8633 (validate_exec_file): Try to match build IDs instead of filenames.
8634 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8635 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8636 and pass down 'warn_if_slow'.
8637 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8638 gdb_bfd_open_closure to pass it down.
8639 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8640
4111f652
PA
86412020-05-19 Pedro Alves <palves@redhat.com>
8642
8643 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8644 * target.c (target_fileio_open_1): Rename to target_fileio_open
8645 and make extern. Use bool.
8646 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8647 (target_fileio_read_alloc_1): Adjust.
8648 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8649 (target_fileio_open_warn_if_slow): Delete declaration.
8650
ad80db5b
PA
86512020-05-19 Pedro Alves <palves@redhat.com>
8652
8653 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8654 Adjust all callers.
8655
1d6ce4d3
YS
86562020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8657
8658 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8659 whether disp is negative.
8660
9005fbbb
SM
86612020-05-19 Simon Marchi <simon.marchi@efficios.com>
8662
8663 * symfile.h (struct symfile_segment_data)
8664 <~symfile_segment_data>: Remove.
8665 <segment_info>: Change to std::vector.
8666 * symfile.c (default_symfile_segments): Update.
8667 * elfread.c (elf_symfile_segments): Update.
8668
68b888ff
SM
86692020-05-19 Simon Marchi <simon.marchi@efficios.com>
8670
8671 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8672 <segments>: New.
8673 <segment_bases, segment_sizes>: Remove.
8674 * symfile.c (default_symfile_segments): Update.
8675 * elfread.c (elf_symfile_segments): Update.
8676 * remote.c (remote_target::get_offsets): Update.
8677 * solib-target.c (solib_target_relocate_section_addresses):
8678 Update.
8679
62982abd
SM
86802020-05-19 Simon Marchi <simon.marchi@efficios.com>
8681
8682 * symfile.h (struct symfile_segment_data): Initialize fields.
8683 <~symfile_segment_data>: Add.
8684 (symfile_segment_data_up): New.
8685 (struct sym_fns) <sym_segments>: Return a
8686 symfile_segment_data_up.
8687 (default_symfile_segments): Return a symfile_segment_data_up.
8688 (free_symfile_segment_data): Remove.
8689 (get_symfile_segment_data): Return a symfile_segment_data_up.
8690 * symfile.c (default_symfile_segments): Likewise.
8691 (get_symfile_segment_data): Likewise.
8692 (free_symfile_segment_data): Remove.
8693 (symfile_find_segment_sections): Update.
8694 * elfread.c (elf_symfile_segments): Return a
8695 symfile_segment_data_up.
8696 * remote.c (remote_target::get_offsets): Update.
8697 * solib-target.c (solib_target_relocate_section_addresses):
8698 Update.
8699 * symfile-debug.c (debug_sym_segments): Return a
8700 symfile_segment_data_up.
8701
7f204339
RO
87022020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8703
e52a0f1b
RO
8704 PR build/25981
8705 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8706 Hardcode register numbers.
8707
7f204339
RO
8708 PR build/25981
8709 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8710 procfs_find_LDT_entry): Remove.
8711 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8712 procfs_find_LDT_entry): Remove.
8713 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8714 Remove.
8715
7f32a4d5
PA
87162020-05-17 Pedro Alves <palves@redhat.com>
8717 Andrew Burgess <andrew.burgess@embecosm.com>
8718 Keno Fischer <keno@juliacomputing.com>
8719
8720 PR gdb/25741
8721 * breakpoint.c (build_target_condition_list): Update comments.
8722 (build_target_command_list): Update comments and skip matching
8723 locations.
8724 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8725 a separate function. Simplify "set breakpoint auto-hw off"
8726 handling.
8727 (insert_breakpoints): Update comment.
8728 (tracepoint_locations_match): New parameter. For breakpoints,
8729 compare location types too, if the caller wants to.
8730 (handle_automatic_hardware_breakpoints): New functions.
8731 (bp_location_is_less_than): Also sort by location type and
8732 hardware breakpoint length.
8733 (update_global_location_list): Handle "set breakpoint auto-hw on"
8734 here.
8735 (update_breakpoint_locations): Ask breakpoint_locations_match to
8736 ignore location types.
8737
7d93a1e0
SM
87382020-05-16 Simon Marchi <simon.marchi@efficios.com>
8739
8740 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8741 type::name instead.
8742
d0e39ea2
SM
87432020-05-16 Simon Marchi <simon.marchi@efficios.com>
8744
8745 * gdbtypes.h (struct type) <name, set_name>: New methods.
8746 (TYPE_CODE): Use type::name. Change all call sites used to set
8747 the name to use type::set_name instead.
8748
2dab0c7b
TT
87492020-05-16 Tom Tromey <tom@tromey.com>
8750
8751 * top.c (quit_force): Update.
8752 * infrun.c (handle_no_resumed): Update.
8753 * top.h (all_uis): New function.
8754 (ALL_UIS): Remove.
8755
59f7bd8d
SM
87562020-05-16 Simon Marchi <simon.marchi@efficios.com>
8757
8758 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8759
9bf058f0
PA
87602020-05-16 Pedro Alves <palves@redhat.com>
8761
8762 * ia64-linux-nat.c
8763 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8764 Declare method.
8765 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8766
8f86ae1a
SM
87672020-05-15 Simon Marchi <simon.marchi@efficios.com>
8768
8769 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8770 (sparc64_adi_info): Likewise.
8771
d6bc0792
TT
87722020-05-15 Tom Tromey <tom@tromey.com>
8773
8774 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8775 block_objfile.
8776 (lookup_objfile_from_block): Remove.
8777 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8778 (lookup_global_symbol): Use block_objfile.
8779 * symtab.h (lookup_objfile_from_block): Don't declare.
8780 * printcmd.c (clear_dangling_display_expressions): Use
8781 block_objfile.
8782 * parse.c (operator_check_standard): Use block_objfile.
8783
8c14c3a3
TT
87842020-05-15 Tom Tromey <tom@tromey.com>
8785
8786 * language.c (language_alloc_type_symbol): Set
8787 SYMBOL_SECTION.
8788 * symtab.c (initialize_objfile_symbol): Remove.
8789 (allocate_symbol): Remove.
8790 (allocate_template_symbol): Remove.
8791 * dwarf2/read.c (fixup_go_packaging): Use "new".
8792 (new_symbol): Use "new".
8793 (read_variable): Don't call initialize_objfile_symbol. Use
8794 "new".
8795 (read_func_scope): Use "new".
8796 * xcoffread.c (process_xcoff_symbol): Don't call
8797 initialize_objfile_symbol.
8798 (SYMBOL_DUP): Remove.
8799 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8800 "new".
8801 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8802 (allocate_template_symbol): Don't declare.
8803 (struct symbol): Add copy constructor. Change defaults.
8804 * jit.c (finalize_symtab): Use "new".
8805 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8806 Use "new".
8807 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8808 (common_block_end): Use "new".
8809 * mdebugread.c (parse_symbol): Use "new".
8810 (new_symbol): Likewise.
8811
5b4a1a8d
PW
88122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8813
8814 * NEWS: Mention changes to help and apropos.
8815
57b4f16e
PW
88162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8817
8818 * command.h (enum command_class): Improve comments, document
8819 that class_alias is for user-defined aliases, give the class
8820 name for each class, remove unused class_xdb.
8821 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8822 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8823 by a precise class.
8824 * infcmd.c (_initialize_infcmd): Likewise.
8825 * reverse.c (_initialize_reverse): Likewise.
8826 * stack.c (_initialize_stack): Likewise.
8827 * symfile.c (_initialize_symfile): Likewise.
8828 * tracepoint.c (_initialize_tracepoint): Likewise.
8829
7c05caf7
PW
88302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8831
8832 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8833 when their aliased command is traversed.
8834 (help_cmd): Add fput_command_names_styled call to
8835 output command name and aliases when command has an alias.
8836
3b3aaacb
PW
88372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8838
8839 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8840 * cli/cli-decode.c (help_cmd_list): Declare as static,
8841 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8842 a command together with the command.
8843 (fput_command_name_styled, fput_command_names_styled): New functions.
8844 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8845 fput_command_name_styled.
8846 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8847 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8848
7aa1b46f
PW
88492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8850
8851 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8852 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8853 * command.h (cmd_show_list): Likewise.
8854 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8855 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8856
89bcba74
PW
88572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8858
8859 * unittests/command-def-selftests.c (traverse_command_structure):
8860 Verify all commands of a list have the same prefix command and
8861 that only the top cmdlist commands have a null prefix.
8862
3f4d92eb
PW
88632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8864
8865 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8866 as prefix, not one of its aliases.
8867 (set_cmd_prefix): Remove.
8868 (do_add_cmd): Centralize the setting of the prefix of a command, when
8869 command is defined after its full chain of prefix commands.
8870 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8871 (add_setshow_cmd_full): Likewise.
8872 (update_prefix_field_of_prefixed_commands): New function.
8873 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8874 update_prefix_field_of_prefixed_commands.
8875 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8876 addresses of remote_set_cmdlist and remote_show_cmdlist given
8877 as argument, not the address of an argument.
8878 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8879 * gdb/remote.c (_initialize_remote): Likewise.
8880
0605465f
PW
88812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8882
8883 * cli/cli-cmds.c (alias_command): Check for an existing alias
8884 using lookup_cmd_composition, as valid_command_p is too strict
8885 and forbids aliases that are the prefix of an existing alias
8886 or command.
8887 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8888 command is properly recognised as a valid command.
8889
58e6ac70
PW
88902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8891
8892 * unittests/help-doc-selftests.c: Rename to
8893 unittests/command-def-selftests.c
8894 * unittests/command-def-selftests.c (help_doc_tests): Update some
8895 comments.
8896 (command_structure_tests, traverse_command_structure): New namespace
8897 and function.
8898 (command_structure_invariants_tests): New function.
8899 (_initialize_command_def_selftests) Renamed from
8900 _initialize_help_doc_selftests, register command_structure_invariants
8901 selftest.
8902
a7b9ceb8
PW
89032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8904
8905 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8906 an alias of 'show'.
8907
b2188a06
JB
89082020-05-15 Joel Brobecker <brobecker@adacore.com>
8909
8910 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8911 ada_is_fixed_point_type. Update all callers.
8912 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8913 all callers.
8914 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8915 Update all callers.
8916 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8917 print_fixed_point_type. Update all callers.
8918 * ada-valprint.c (ada_value_print_num): Replace call to
8919 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8920
a51951c2
KB
89212020-05-14 Kevin Buettner <kevinb@redhat.com>
8922
8923 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8924 processors.
8925 (cpu_supports_bts): Add CV_AMD case.
8926
29d6859f
LM
89272020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8928 Simon Marchi <simon.marchi@efficios.com>
8929
8930 * infrun.c (stop_all_threads): Collect multiple wait events at
8931 each pass.
8932
78134374
SM
89332020-05-14 Simon Marchi <simon.marchi@efficios.com>
8934
8935 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8936 type::code instead.
8937
67607e24
SM
89382020-05-14 Simon Marchi <simon.marchi@efficios.com>
8939
8940 * gdbtypes.h (struct type) <code, set_code>: New methods.
8941 (TYPE_CODE): Use type::code. Change all call sites used to set
8942 the code to use type::set_code instead.
8943
a05575d3
TBA
89442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8945 Tom de Vries <tdevries@suse.de>
8946 Pedro Alves <palves@redhat.com>
8947
8948 PR threads/25478
8949 * infrun.c (stop_all_threads): Do NOT ignore
8950 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8951 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8952 received.
8953 (handle_no_resumed): Remove code handling a live inferior with no
8954 threads.
8955 * remote.c (has_single_non_exited_thread): New.
8956 (remote_target::update_thread_list): Do not delete a thread if is
8957 the last thread of the process.
8958 * thread.c (thread_select): Call delete_exited_threads instead of
8959 prune_threads.
8960
6ad82919
TBA
89612020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8962
8963 * infrun.c (stop_all_threads): Enable/disable thread events of all
8964 targets. Move a debug message denoting the end of the function
8965 into the SCOPED_EXIT block.
8966
d890404b
TBA
89672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8968
8969 * process-stratum-target.h: Include <set>.
8970 (all_non_exited_process_targets, switch_to_target_no_thread): New
8971 function declarations.
8972 * process-stratum-target.c (all_non_exited_process_targets)
8973 (switch_to_target_no_thread): New function implementations.
8974
293b3ebc
TBA
89752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8976
8977 * infrun.c (handle_inferior_event): Extract out a piece of code
8978 into...
8979 (mark_non_executing_threads): ...this new function.
8980
7ca9b62a
TBA
89812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8982
8983 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8984 use.
8985
fc75c28b
TBA
89862020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8987
8988 * regcache.c (regcache_read_pc_protected): New function
8989 implementation that returns 0 if the PC cannot read via
8990 'regcache_read_pc'.
8991 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8992 instead of 'regcache_read_pc'.
8993 (keep_going_pass_signal): Ditto.
8994
a89febbd
TT
89952020-05-13 Tom Tromey <tromey@adacore.com>
8996
8997 * ada-lang.c (align_value): Remove.
8998 (ada_template_to_fixed_record_type_1): Use align_up.
8999
f7e23710
TBA
90002020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9001
9002 * async-event.c: Update the copyright year.
9003 * async-event.h: Update the copyright year.
9004
02ff80c2
SM
90052020-05-12 Simon Marchi <simon.marchi@efficios.com>
9006
9007 * objfiles.h (is_addr_in_objfile,
9008 shared_objfile_contains_address_p): Return bool.
9009 * objfile.c (is_addr_in_objfile,
9010 shared_objfile_contains_address_p): Return bool.
9011
4fd6c7e8
TT
90122020-05-11 Tom Tromey <tromey@adacore.com>
9013
9014 * cli/cli-cmds.c (info_command): Restore.
9015 (_initialize_cli_cmds): Use add_prefix_command for "info".
9016 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9017
5eb68a39
TT
90182020-05-11 Tom Tromey <tromey@adacore.com>
9019
9020 * ada-lang.c (ada_value_primitive_field): Now public.
9021 * ada-lang.h (ada_value_primitive_field): Declare.
9022 * ada-valprint.c (print_field_values): Use
9023 ada_value_primitive_field for wrapper fields.
9024
7666722f
TV
90252020-05-11 Tom de Vries <tdevries@suse.de>
9026
9027 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9028 MODULE_DOMAIN.
9029
3ee6bb11
TV
90302020-05-11 Tom de Vries <tdevries@suse.de>
9031
9032 PR symtab/25941
9033 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9034 with length 0, if not gdb-produced.
9035 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9036
43434996
TV
90372020-05-09 Tom de Vries <tdevries@suse.de>
9038
9039 PR gdb/25955
9040 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9041 calculation.
9042
2f78cffc
TT
90432020-05-09 Tom Tromey <tom@tromey.com>
9044
9045 * top.c (server_command): Now bool.
9046 * top.h (server_command): Now bool.
9047
4f7bc5ed
TT
90482020-05-08 Tom Tromey <tromey@adacore.com>
9049
9050 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9051 already being processed.
9052
8be4b118
TT
90532020-05-08 Tom Tromey <tom@tromey.com>
9054
9055 * printcmd.c (struct display) <next>: Remove.
9056 <display>: New constructor.
9057 <exp_string>: Now a std::string.
9058 <enabled_p>: Now a bool.
9059 (display_number): Move definition earlier.
9060 (displays): Rename from display_chain. Now a std::vector.
9061 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9062 (display_command): Update.
9063 (do_one_display, disable_display)
9064 (enable_disable_display_command, do_enable_disable_display):
9065 Update.
9066 (free_display): Remove.
9067 (clear_displays): Rewrite.
9068 (delete_display): Update.
9069 (map_display_numbers): Use function_view. Remove "data"
9070 parameter. Update.
9071 (do_delete_display): Remove.
9072 (undisplay_command): Update.
9073 (do_one_display, do_displays, disable_display)
9074 (info_display_command): Update.
9075 (do_enable_disable_display): Remove.
9076 (enable_disable_display_command)
9077 (clear_dangling_display_expressions): Update.
9078
94c93c35
TT
90792020-05-08 Tom Tromey <tom@tromey.com>
9080
9081 * symtab.c (set_symbol_cache_size)
9082 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9083 (maintenance_print_symbol_cache_statistics): Update.
9084 * symmisc.c (print_symbol_bcache_statistics)
9085 (print_objfile_statistics, maintenance_print_objfiles)
9086 (maintenance_info_symtabs, maintenance_check_symtabs)
9087 (maintenance_expand_symtabs, maintenance_info_line_tables):
9088 Update.
9089 * symfile-debug.c (set_debug_symfile): Update.
9090 * source.c (forget_cached_source_info): Update.
9091 * python/python.c (gdbpy_progspaces): Update.
9092 * psymtab.c (maintenance_info_psymtabs): Update.
9093 * probe.c (parse_probes): Update.
9094 * linespec.c (iterate_over_all_matching_symtabs)
9095 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9096 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9097 * exec.c (exec_target::close): Update.
9098 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9099 * breakpoint.c (print_one_breakpoint_location)
9100 (create_longjmp_master_breakpoint)
9101 (create_std_terminate_master_breakpoint): Update.
9102 * progspace.c (program_spaces): Now a std::vector.
9103 (maybe_new_address_space): Update.
9104 (add_program_space): Remove.
9105 (program_space::program_space): Update.
9106 (remove_program_space): Update.
9107 (number_of_program_spaces): Remove.
9108 (print_program_space, update_address_spaces): Update.
9109 * progspace.h (program_spaces): Change type.
9110 (ALL_PSPACES): Remove.
9111 (number_of_program_spaces): Don't declare.
9112 (struct program_space) <next>: Remove.
9113
a1fd1ac9
TT
91142020-05-08 Tom Tromey <tom@tromey.com>
9115
9116 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9117 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9118 (enable_break): Update.
9119 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9120 (frv_fdpic_find_canonical_descriptor): Update.
9121 (frv_fetch_objfile_link_map): Update.
9122 * progspace.c (program_space::free_all_objfiles): Update.
9123 (program_space::solibs): New method.
9124 * progspace.h (struct program_space) <solibs>: New method.
9125 * solist.h (master_so_list): Don't declare.
9126 (ALL_SO_LIBS): Remove.
9127 * solib.h (so_list_head): Remove.
9128 (update_solib_list): Update comment.
9129 * solib.c (master_so_list): Remove.
9130 (solib_used, update_solib_list, solib_add)
9131 (info_sharedlibrary_command, clear_solib)
9132 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9133
38eae084
TT
91342020-05-08 Tom Tromey <tom@tromey.com>
9135
9136 * extension.c (extension_languages): Now a std::array.
9137 (ALL_EXTENSION_LANGUAGES): Remove.
9138 (get_ext_lang_defn, get_ext_lang_of_file)
9139 (eval_ext_lang_from_control_command): Update.
9140 (finish_ext_lang_initialization)
9141 (auto_load_ext_lang_scripts_for_objfile)
9142 (ext_lang_type_printers::ext_lang_type_printers)
9143 (apply_ext_lang_type_printers)
9144 (ext_lang_type_printers::~ext_lang_type_printers)
9145 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9146 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9147 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9148 (get_matching_xmethod_workers, ext_lang_colorize)
9149 (ext_lang_before_prompt): Update.
9150 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9151
596dc4ad
TT
91522020-05-08 Tom Tromey <tom@tromey.com>
9153
9154 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9155 overload.
9156 <swap_string, m_string>: Remove.
9157 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9158 Update.
9159 * stabsread.c (define_symbol, read_type): Update.
9160 * linespec.c (find_linespec_symbols): Update.
9161 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9162 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9163 * dbxread.c (read_dbx_symtab): Update.
9164 * cp-support.h (cp_canonicalize_string_full)
9165 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9166 Return unique_xmalloc_ptr.
9167 * cp-support.c (inspect_type): Update.
9168 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9169 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9170 Likewise.
9171 * c-typeprint.c (print_name_maybe_canonical): Update.
9172 * break-catch-throw.c (check_status_exception_catchpoint):
9173 Update.
9174
bf4cb9be
TV
91752020-05-08 Tom de Vries <tdevries@suse.de>
9176
9177 * infrun.c (follow_fork): Copy current_line and current_symtab to
9178 child thread.
9179
a1b68f28
SM
91802020-05-07 Simon Marchi <simon.marchi@efficios.com>
9181
9182 * async-event.c (struct async_signal_handler, struct
9183 async_event_handler): Reformat, remove typedef.
9184
98d48915
SM
91852020-05-07 Simon Marchi <simon.marchi@efficios.com>
9186
9187 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9188 access thistype->main_type->dyn_prop_list directly.
9189
7aa91313
SM
91902020-05-07 Simon Marchi <simon.marchi@efficios.com>
9191
9192 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9193 (remove_dyn_prop): Remove. Update all users to use
9194 type::remove_dyn_prop.
9195 * gdbtypes.c (remove_dyn_prop): Rename to...
9196 (type::remove_dyn_prop): ... this.
9197
5c54719c
SM
91982020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9199
9200 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9201 (add_dyn_prop): Remove. Update all users to use
9202 type::add_dyn_prop.
9203 * gdbtypes.c (add_dyn_prop): Rename to...
9204 (type::add_dyn_prop): ... this.
9205
24e99c6c
SM
92062020-05-07 Simon Marchi <simon.marchi@efficios.com>
9207
9208 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9209 (get_dyn_prop): Remove. Update all users to use
9210 type::dyn_prop.
9211 * gdbtypes.c (get_dyn_prop): Rename to...
9212 (type::dyn_prop): ... this.
9213
0d4bf016
SM
92142020-05-06 Simon Marchi <simon.marchi@efficios.com>
9215
9216 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9217
ac4a4f1c
SM
92182020-05-06 Simon Marchi <simon.marchi@efficios.com>
9219
9220 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9221 instruction, skip it if it's there.
9222
a3bbacc1
SM
92232020-05-05 Simon Marchi <simon.marchi@efficios.com>
9224
9225 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9226
c3236f84
SM
92272020-05-04 Simon Marchi <simon.marchi@efficios.com>
9228
9229 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9230 * gdbtypes.c (recursive_dump_type): Remove use of
9231 TYPE_INCOMPLETE.
9232
3b6acaee
TT
92332020-05-03 Tom Tromey <tom@tromey.com>
9234
9235 * breakpoint.c (catch_command, tcatch_command): Remove.
9236 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9237 add_show_prefix_cmd.
9238 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9239 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9240 Remove.
9241 (add_internal_problem_command): Use add_basic_prefix_cmd,
9242 add_show_prefix_cmd.
9243 * mips-tdep.c (set_mipsfpu_command): Remove.
9244 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9245 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9246 (_initialize_index_cache): Use add_basic_prefix_cmd.
9247 * memattr.c (dummy_cmd): Remove.
9248 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9249 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9250 (_initialize_tui_win): Use add_basic_prefix_cmd,
9251 add_show_prefix_cmd.
9252 * cli/cli-logging.c (set_logging_command): Remove.
9253 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9254 add_show_prefix_cmd.
9255 (show_logging_command): Remove.
9256 * target.c (target_command): Remove.
9257 (add_target): Use add_basic_prefix_cmd.
9258
a51119cd
HD
92592020-05-02 Hannes Domani <ssbssa@yahoo.de>
9260
9261 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9262
652fc23a 92632020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9264
652fc23a
PW
9265 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9266 info_command.
9267
117539e6
KR
92682020-04-30 Kamil Rytarowski <n54@gmx.com>
9269
9270 * nbsd-nat.c (nbsd_enable_proc_events)
9271 (nbsd_nat_target::post_startup_inferior): Add.
9272 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9273 (nbsd_nat_target::update_thread_list): Rewrite.
9274 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9275 "PTRACE_LWP_CREATE".
9276 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9277
102e38eb 92782020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9279
102e38eb
PW
9280 * stack.c (_initialize_stack): Remove duplicated creation
9281 of "frame" command and "f" alias.
9282
ee9d1e5f
HD
92832020-04-30 Hannes Domani <ssbssa@yahoo.de>
9284
9285 PR gdb/18706
9286 * gdbtypes.c (check_typedef): Calculate size of array of
9287 stubbed type.
9288
627c7fb8
HD
92892020-04-30 Hannes Domani <ssbssa@yahoo.de>
9290
9291 PR gdb/15559
9292 * i386-tdep.c (i386_push_dummy_call): Call
9293 i386_thiscall_push_dummy_call.
9294 (i386_thiscall_push_dummy_call): New function.
9295 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9296 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9297 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9298
ffc2844e
SM
92992020-04-29 Simon Marchi <simon.marchi@efficios.com>
9300
9301 * gdbarch.sh (do_read): Add shellcheck disable directive for
9302 warning SC2162.
9303
1207375d
SM
93042020-04-29 Simon Marchi <simon.marchi@efficios.com>
9305
9306 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9307 "referenced but not assigned" warning.
9308
9fdb2916
SM
93092020-04-29 Simon Marchi <simon.marchi@efficios.com>
9310
9311 * gdbarch.sh: Remove code that sets fallbackdefault.
9312
759cea5e
SM
93132020-04-29 Simon Marchi <simon.marchi@efficios.com>
9314
9315 * gdbarch.sh: Use shell operators && and || instead of
9316 -a and -o.
9317
cb02ab24
SM
93182020-04-29 Simon Marchi <simon.marchi@efficios.com>
9319
9320 * gdbarch.sh: Use $(...) instead of `...`.
9321
a6fc5ffc
SM
93222020-04-29 Simon Marchi <simon.marchi@efficios.com>
9323
9324 * gdbarch.sh: Use double quotes around variables.
9325
8d113d13
SM
93262020-04-29 Simon Marchi <simon.marchi@efficios.com>
9327
9328 * gdbarch.sh: Use %s with printf, instead of variables in the
9329 format string.
9330
ed6acedd
TT
93312020-04-29 Tom Tromey <tromey@adacore.com>
9332
9333 PR ada/25875:
9334 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9335 type fields here.
9336 (read_enumeration_type): Call
9337 update_enumeration_type_from_children later. Update comments.
9338 (process_enumeration_scope): Don't create type fields.
9339
b68b1b58
KR
93402020-04-29 Kamil Rytarowski <n54@gmx.com>
9341
9342 * nbsd-tdep.c: Include "xml-syscall.h".
9343 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9344
f94b2e03
KR
93452020-04-29 Kamil Rytarowski <n54@gmx.com>
9346
9347 * nbsd-nat.c: Include "sys/wait.h".
9348 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9349 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9350 (nbsd_nat_target::remove_exec_catchpoint)
9351 (nbsd_nat_target::set_syscall_catchpoint): Add.
9352 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9353 (nbsd_nat_target::insert_exec_catchpoint)
9354 (nbsd_nat_target::remove_exec_catchpoint)
9355 (nbsd_nat_target::set_syscall_catchpoint): Add.
9356 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9357 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9358 `nbsd_get_syscall_number'.
9359
fc49bc72
TT
93602020-04-29 Tom Tromey <tom@tromey.com>
9361
9362 * stack.c (print_block_frame_labels): Remove.
9363
d642b692
HD
93642020-04-29 Hannes Domani <ssbssa@yahoo.de>
9365
9366 PR gdb/17320
9367 * ada-valprint.c (val_print_packed_array_elements): Move array
9368 end bracket to new line.
9369 (ada_val_print_string): Remove extra spaces before first array
9370 element.
9371 * c-valprint.c (c_value_print_array): Likewise.
9372 * m2-valprint.c (m2_print_array_contents): Likewise.
9373 (m2_value_print_inner): Likewise.
9374 * p-valprint.c (pascal_value_print_inner): Likewise.
9375 * valprint.c (generic_val_print_array): Likewise.
9376 (value_print_array_elements): Move first array element and array
9377 end bracket to new line.
9378
ea90f227
TV
93792020-04-29 Tom de Vries <tdevries@suse.de>
9380
9381 PR symtab/25889
9382 * linespec.c (find_method): Fix ix calculation.
9383
4498ef4f
KR
93842020-04-28 Kamil Rytarowski <n54@gmx.com>
9385
9386 * syscalls/update-netbsd.sh: New file.
9387 * syscalls/netbsd.xml: Regenerate.
9388 * data-directory/Makefile.in: Register `netbsd.xml' in
9389 `SYSCALLS_FILES'.
9390
a55e30b5
SM
93912020-04-28 Simon Marchi <simon.marchi@efficios.com>
9392
9393 * syscalls/update-freebsd.sh: Add double quotes.
9394
2b2fbab8
TT
93952020-04-28 Tom Tromey <tom@tromey.com>
9396
9397 * NEWS: Update.
9398 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9399 (cmdpy_init): Allow class_tui.
9400
a65189c9
TV
94012020-04-28 Mark Williams <mark@myosotissp.com>
9402
9403 PR gdb/24480
9404 * dwarf2read.c: Add missing assingments to list_in_scope when
9405 start_symtab was already called.
9406
1b95cdb7
SM
94072020-04-28 Simon Marchi <simon.marchi@efficios.com>
9408
9409 PR gdb/25881
9410 * dwarf2/read.c (offset_map_type): Use
9411 gdb:hash_enum<sect_offset> as hash function.
9412
15cd93d0
TV
94132020-04-28 Tom de Vries <tdevries@suse.de>
9414
9415 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9416 with DW_AT_signature.
9417
1eb39914
SM
94182020-04-27 Simon Marchi <simon.marchi@efficios.com>
9419
9420 * configure.ac: Remove check for fs_base/gs_base in
9421 user_regs_struct.
9422 * configure: Re-generate.
9423 * config.in: Re-generate.
9424 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9425 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9426 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9427
991a3e2e
LM
94282020-04-27 Luis Machado <luis.machado@linaro.org>
9429
9430 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9431 problematic inline frame unwinding situation.
9432 * frame.c (frame_id_computed_p): New function.
9433 * frame.h (frame_id_computed_p): New prototype.
9434
361ba0e8
TT
94352020-04-26 Tom Tromey <tom@tromey.com>
9436
9437 * command.h (enum command_class) <class_pseudo>: Remove.
9438
bc3609fd
PW
94392020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9440
9441 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9442 and whitespace.
9443
b9771db7
KR
94442020-04-25 Kamil Rytarowski <n54@gmx.com>
9445
ec16513e
SM
9446 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9447 `PT_GET_PROCESS_STATE' block.
b9771db7 9448
7151c1af
TT
94492020-04-24 Tom Tromey <tom@tromey.com>
9450
9451 * symtab.h (symbol_get_demangled_name): Don't declare.
9452 * symtab.c (symbol_get_demangled_name): Remove.
9453 (general_symbol_info::natural_name)
9454 (general_symbol_info::demangled_name): Update.
9455
906bb4c5
TT
94562020-04-24 Tom Tromey <tom@tromey.com>
9457
9458 PR rust/25025:
9459 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9460
bcfe6157
TT
94612020-04-24 Tom Tromey <tom@tromey.com>
9462
9463 PR symtab/12707:
9464 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9465 exists.
9466 (new_symbol): Likewise.
9467 * compile/compile-object-load.c (get_out_value_type): Use
9468 symbol_matches_search_name.
9469
f049a313
TT
94702020-04-24 Tom Tromey <tom@tromey.com>
9471
9472 * dwarf2/read.c (add_partial_symbol): Do not call
9473 compute_and_set_names.
9474
76e288d1
TT
94752020-04-24 Tom Tromey <tom@tromey.com>
9476
9477 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9478 overload.
9479
2467f4f6
TT
94802020-04-24 Tom Tromey <tom@tromey.com>
9481
9482 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9483 (add_psymbol_to_list): New overload. Make old overload call new
9484 one.
9485 * psympriv.h (add_psymbol_to_list): New overload.
9486
e61108c9
TT
94872020-04-24 Tom Tromey <tom@tromey.com>
9488
9489 * dwarf2/read.c (partial_die_info::read) <case
9490 DW_AT_linkage_name>: Use value_as_string.
9491 (dwarf2_string_attr): Use value_as_string.
9492 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9493 method.
9494 * dwarf2/attribute.c (attribute::value_as_string): New method.
9495
8c87a452
TT
94962020-04-24 Tom Tromey <tom@tromey.com>
9497
9498 * symtab.c (general_symbol_info::natural_name)
9499 (general_symbol_info::demangled_name): Check for language_rust.
9500
787de330
TT
95012020-04-24 Tom Tromey <tom@tromey.com>
9502
9503 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9504 (dwarf2_physname): ... from here.
9505 (partial_die_info::read): Add Rust "{" hack.
9506
ff985671
TT
95072020-04-24 Tom Tromey <tom@tromey.com>
9508
9509 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9510 method.
9511 (symbol_set_demangled_name): Don't declare.
9512 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9513 symbol_set_demangled_name.
9514 (general_symbol_info::set_language)
9515 (general_symbol_info::compute_and_set_names): Update.
9516 * minsyms.c (minimal_symbol_reader::install): Update.
9517 * dwarf2/read.c (new_symbol): Update.
9518
1acda803
TT
95192020-04-24 Tom Tromey <tromey@adacore.com>
9520
9521 PR python/23662:
9522 * python/py-type.c (convert_field): Handle
9523 FIELD_LOC_KIND_DWARF_BLOCK.
9524 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9525 (typy_get_dynamic): Nw function.
9526 (type_object_getset): Add "dynamic".
9527 * NEWS: Add entry.
9528
d656f129
TT
95292020-04-24 Tom Tromey <tromey@adacore.com>
9530
9531 * ada-typeprint.c (print_choices, print_variant_part)
9532 (print_record_field_types_dynamic): New functions.
9533 (print_record_field_types): Use print_record_field_types_dynamic.
9534
7d79de9a
TT
95352020-04-24 Tom Tromey <tromey@adacore.com>
9536
9537 * dwarf2/read.c (handle_data_member_location): New overload.
9538 (dwarf2_add_field): Use it.
9539 (decode_locdesc): Add "computed" parameter. Update comment.
9540 * gdbtypes.c (is_dynamic_type_internal): Also look for
9541 FIELD_LOC_KIND_DWARF_BLOCK.
9542 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9543 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9544 virtual base classes.
9545 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9546 FIELD_LOC_KIND_DWARF_BLOCK.
9547
f8e89861
TT
95482020-04-24 Tom Tromey <tromey@adacore.com>
9549
9550 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9551 * gdbtypes.c (is_dynamic_type_internal): Check
9552 TYPE_HAS_DYNAMIC_LENGTH.
9553 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9554 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9555 New macros.
9556 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9557 constant.
9558
9c6a1327
TT
95592020-04-24 Tom Tromey <tromey@adacore.com>
9560
9561 * dwarf2/read.c (struct variant_field): Rewrite.
9562 (struct variant_part_builder): New.
9563 (struct nextfield): Remove "variant" field. Add "offset".
9564 (struct field_info): Add "current_variant_part" and
9565 "variant_parts".
9566 (alloc_discriminant_info): Remove.
9567 (alloc_rust_variant): New function.
9568 (quirk_rust_enum): Update.
9569 (dwarf2_add_field): Set "offset" member. Don't handle
9570 DW_TAG_variant_part.
9571 (offset_map_type): New typedef.
9572 (convert_variant_range, create_one_variant)
9573 (create_one_variant_part, create_variant_parts)
9574 (add_variant_property): New functions.
9575 (dwarf2_attach_fields_to_type): Call add_variant_property.
9576 (read_structure_type): Don't handle DW_TAG_variant_part.
9577 (handle_variant_part, handle_variant): New functions.
9578 (handle_struct_member_die): Use them.
9579 (process_structure_scope): Don't handle variant parts.
9580 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9581 (struct discriminant_info): Remove.
9582 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9583 (struct main_type) <flag_discriminated_union>: Remove.
9584 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9585 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9586 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9587 Update.
9588 * valops.c (value_union_variant): Remove.
9589 * value.h (value_union_variant): Don't declare.
9590
b249d2c2
TT
95912020-04-24 Tom Tromey <tromey@adacore.com>
9592
9593 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9594 (ada_value_primitive_packed_val): Update.
9595 * ada-valprint.c (ada_value_print_1): Update.
9596 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9597 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9598 just an address. Use evaluate_for_locexpr_baton.
9599 (dwarf2_evaluate_property): Update.
9600 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9601 array_view.
9602 * findvar.c (default_read_var_value): Update.
9603 * gdbtypes.c (compute_variant_fields_inner)
9604 (resolve_dynamic_type_internal): Update.
9605 (resolve_dynamic_type): Change type of valaddr parameter.
9606 * gdbtypes.h (resolve_dynamic_type): Update.
9607 * valarith.c (value_subscripted_rvalue): Update.
9608 * value.c (value_from_contents_and_address): Update.
9609
61122aa9
TT
96102020-04-24 Tom Tromey <tromey@adacore.com>
9611
9612 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9613 "push_initial_value" parameter.
9614 (dwarf2_evaluate_property): Likewise.
9615 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9616
ef83a141
TT
96172020-04-24 Tom Tromey <tromey@adacore.com>
9618
9619 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9620 (variant::matches, compute_variant_fields_recurse)
9621 (compute_variant_fields_inner, compute_variant_fields): New
9622 functions.
9623 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9624 Use resolved_type after type is made.
9625 (operator==): Add new cases.
9626 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9627 (struct discriminant_range, struct variant, struct variant_part):
9628 New.
9629 (union dynamic_prop_data) <variant_parts, original_type>: New
9630 members.
9631 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9632 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9633 constants.
9634 * value.c (unpack_bits_as_long): Now public.
9635 * value.h (unpack_bits_as_long): Declare.
9636
675127ec
TT
96372020-04-24 Tom Tromey <tromey@adacore.com>
9638
9639 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9640 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9641
9852ceef
HD
96422020-04-24 Hannes Domani <ssbssa@yahoo.de>
9643
9644 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9645
7632c6ce
KR
96462020-04-24 Kamil Rytarowski <n54@gmx.com>
9647
9648 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9649 (remove_fork_catchpoint, post_startup_inferior)
9650 (post_attach): Move...
9651 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9652 (remove_fork_catchpoint, post_startup_inferior)
9653 (post_attach): ...here.
9654 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9655 (remove_fork_catchpoint, post_startup_inferior)
9656 (post_attach): Move...
9657 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9658 (remove_fork_catchpoint, post_startup_inferior)
9659 (post_attach): ...here.
9660
7be2bb4f
TT
96612020-04-24 Tom Tromey <tromey@adacore.com>
9662
9663 * nat/windows-nat.h (struct windows_thread_info)
9664 <pc_adjusted>: New member.
9665 * windows-nat.c (windows_fetch_one_register): Check
9666 pc_adjusted.
9667 (windows_nat_target::get_windows_debug_event)
9668 (windows_nat_target::wait): Set pc_adjusted.
9669
f80cb3b4
TV
96702020-04-24 Tom de Vries <tdevries@suse.de>
9671
9672 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9673 Run gdb-add-index inside temp dir.
9674
29514b87
TT
96752020-04-23 Tom Tromey <tromey@adacore.com>
9676
9677 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9678 in loop.
9679
5939967b
LM
96802020-04-23 Luis Machado <luis.machado@linaro.org>
9681
9682 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9683 get_frame_register instead of gdbarch_unwind_pc.
9684
70bc38f5
TV
96852020-04-23 Tom de Vries <tdevries@suse.de>
9686
9687 * symtab.c (lookup_global_symbol): Prefer def over decl.
9688
de82891c
TV
96892020-04-23 Tom de Vries <tdevries@suse.de>
9690
9691 PR symtab/25807
9692 * block.c (best_symbol, better_symbol): Promote to external.
9693 * block.h (best_symbol, better_symbol): Declare.
9694 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9695 decl.
9696
ecc6c606
TT
96972020-04-23 Tom Tromey <tromey@adacore.com>
9698
9699 PR ada/25837:
9700 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9701 "const char *", not a "const std::string &".
9702 <name_and_matcher::operator==>: Update.
9703 * unittests/lookup_name_info-selftests.c: Change type of
9704 "result".
9705
740480b8
TT
97062020-04-23 Tom Tromey <tom@tromey.com>
9707
9708 * inferior.h (iterate_over_inferiors): Don't declare.
9709 * inferior.c (iterate_over_inferiors): Remove.
9710 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9711 Remove.
9712 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9713 use iterate_over_inferiors.
9714 (darwin_resume_inferior_it)
9715 (struct resume_inferior_threads_param)
9716 (darwin_resume_inferior_threads_it): Remove.
9717 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9718
ae3ab1f0
TV
97192020-04-23 Tom de Vries <tdevries@suse.de>
9720
9721 * blockframe.c (find_pc_partial_function): Use
9722 find_pc_sect_compunit_symtab rather than
9723 objfile->sf->qf->find_pc_sect_compunit_symtab.
9724
317d2668
TV
97252020-04-22 Tom de Vries <tdevries@suse.de>
9726
9727 PR symtab/25764
9728 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9729 in psymtabs.
9730
eea9e357
TV
97312020-04-22 Tom de Vries <tdevries@suse.de>
9732
9733 PR symtab/25801
9734 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9735 symtabs.
9736
3d5afab3
TV
97372020-04-22 Tom de Vries <tdevries@suse.de>
9738
9739 PR symtab/25700
9740 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9741 CU if already created.
9742
d43b7a2d
TBA
97432020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9744
9745 * infrun.c (displaced_step_fixup): Switch to the event_thread
9746 before calling displaced_step_restore, not after.
9747
d89edf9b
MM
97482020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9749
9750 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9751 its inferior is not recorded by us.
9752 (record_btrace_target_open): Replace call to
9753 all_non_exited_threads () with call to current_inferior
9754 ()->non_exited_threads ().
9755 (record_btrace_target::stop_recording): Likewise.
9756 (record_btrace_target::close): Likewise.
9757 (record_btrace_target::wait): Likewise.
9758 (record_btrace_target::record_stop_replaying): Likewise.
9759
5897fd49
MM
97602020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9761
9762 * btrace.c (btrace_enable): Throw an error on double enables and
9763 when enabling recording fails.
9764 (btrace_disable): Throw an error if the thread is not recorded.
9765
1a476b6d
MM
97662020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9767
9768 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9769 request if we do not have a thread_info.
9770
4778a5f8
TV
97712020-04-21 Tom de Vries <tdevries@suse.de>
9772
9773 PR gdb/25471
9774 * thread.c
9775 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9776 exception in get_frame_id.
9777
0fa7617d
TT
97782020-04-20 Tom Tromey <tromey@adacore.com>
9779
9780 * python/python.c (struct gdbpy_event): Mark move constructor as
9781 noexcept.
9782 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9783 constructor as noexcept.
9784 * completer.h (struct completion_result): Mark move constructor as
9785 noexcept.
9786 * completer.c (completion_result::completion_result): Use
9787 initialization style. Don't call reset_match_list.
9788
ad23bda0
MS
97892020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9790
9791 * MAINTAINERS (Write After Approval): Add myself.
9792
45e1f031
TT
97932020-04-18 Tom Tromey <tom@tromey.com>
9794
9795 * windows-tdep.c (init_w32_command_list)
9796 (w32_prefix_command_valid): Restore.
9797 (_initialize_windows_tdep): Call init_w32_command_list.
9798
08feed99
TT
97992020-04-18 Tom Tromey <tom@tromey.com>
9800
9801 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9802 * value.c (value_fn_field): Update.
9803 * valops.c (find_function_in_inferior)
9804 (value_allocate_space_in_inferior): Update.
9805 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9806 Update.
9807 * tui/tui-source.c (tui_source_window::set_contents): Update.
9808 * symtab.c (lookup_global_or_static_symbol)
9809 (find_function_start_sal_1, skip_prologue_sal)
9810 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9811 * symmisc.c (dump_msymbols, dump_symtab_1)
9812 (maintenance_print_one_line_table): Update.
9813 * symfile.c (init_entry_point_info, section_is_mapped)
9814 (list_overlays_command, simple_read_overlay_table)
9815 (simple_overlay_update_1): Update.
9816 * stap-probe.c (handle_stap_probe): Update.
9817 * stabsread.c (dbx_init_float_type, define_symbol)
9818 (read_one_struct_field, read_enum_type, read_range_type): Update.
9819 * source.c (info_line_command): Update.
9820 * python/python.c (gdbpy_source_objfile_script)
9821 (gdbpy_execute_objfile_script): Update.
9822 * python/py-type.c (save_objfile_types): Update.
9823 * python/py-objfile.c (py_free_objfile): Update.
9824 * python/py-inferior.c (python_new_objfile): Update.
9825 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9826 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9827 (maintenance_check_psymtabs): Update.
9828 * printcmd.c (info_address_command): Update.
9829 * objfiles.h (struct objfile) <arch>: New method, from
9830 get_objfile_arch.
9831 (get_objfile_arch): Don't declare.
9832 * objfiles.c (get_objfile_arch): Remove.
9833 (filter_overlapping_sections): Update.
9834 * minsyms.c (msymbol_is_function): Update.
9835 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9836 (output_nondebug_symbol): Update.
9837 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9838 (mdebug_expand_psymtab): Update.
9839 * machoread.c (macho_add_oso_symfile): Update.
9840 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9841 Update.
9842 * linux-fork.c (checkpoint_command): Update.
9843 * linespec.c (convert_linespec_to_sals): Update.
9844 * jit.c (finalize_symtab): Update.
9845 * infrun.c (insert_exception_resume_from_probe): Update.
9846 * ia64-tdep.c (ia64_find_unwind_table): Update.
9847 * hppa-tdep.c (internalize_unwinds): Update.
9848 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9849 Update.
9850 * gcore.c (call_target_sbrk): Update.
9851 * elfread.c (record_minimal_symbol, elf_symtab_read)
9852 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9853 (elf_gnu_ifunc_resolve_by_got): Update.
9854 * dwarf2/read.c (create_addrmap_from_index)
9855 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9856 (read_debug_names_from_section)
9857 (process_psymtab_comp_unit_reader, add_partial_symbol)
9858 (add_partial_subprogram, process_full_comp_unit)
9859 (read_file_scope, read_func_scope, read_lexical_block_scope)
9860 (read_call_site_scope, dwarf2_ranges_read)
9861 (dwarf2_record_block_ranges, dwarf2_add_field)
9862 (mark_common_block_symbol_computed, read_tag_pointer_type)
9863 (read_tag_string_type, dwarf2_init_float_type)
9864 (dwarf2_init_complex_target_type, read_base_type)
9865 (partial_die_info::read, partial_die_info::read)
9866 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9867 (dwarf2_fetch_die_loc_sect_off): Update.
9868 * dwarf2/loc.c (dwarf2_find_location_expression)
9869 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9870 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9871 (dwarf2_loc_desc_get_symbol_read_needs)
9872 (locexpr_describe_location_piece, locexpr_describe_location_1)
9873 (loclist_describe_location): Update.
9874 * dwarf2/index-write.c (write_debug_names): Update.
9875 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9876 * dtrace-probe.c (dtrace_process_dof): Update.
9877 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9878 (process_one_symbol): Update.
9879 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9880 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9881 (coff_read_enum_type): Update.
9882 * cli/cli-cmds.c (edit_command, list_command): Update.
9883 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9884 * breakpoint.c (create_overlay_event_breakpoint)
9885 (create_longjmp_master_breakpoint)
9886 (create_std_terminate_master_breakpoint)
9887 (create_exception_master_breakpoint, get_sal_arch): Update.
9888 * block.c (block_gdbarch): Update.
9889 * annotate.c (annotate_source_line): Update.
9890
0743fc83
TT
98912020-04-17 Tom Tromey <tromey@adacore.com>
9892
9893 * auto-load.c (show_auto_load_cmd): Remove.
9894 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9895 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9896 (maintenance_print_arc_command): Remove.
9897 * tui/tui-win.c (tui_command): Remove.
9898 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9899 * tui/tui-layout.c (tui_layout_command): Remove.
9900 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9901 * python/python.c (user_set_python, user_show_python): Remove.
9902 (_initialize_python): Use add_basic_prefix_cmd,
9903 add_show_prefix_cmd.
9904 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9905 (install_gdb_commands): Use add_basic_prefix_cmd,
9906 add_show_prefix_cmd.
9907 (info_guile_command): Remove.
9908 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9909 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9910 add_show_prefix_cmd.
9911 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9912 Remove do_set and do_show parameters.
9913 * cli/cli-style.c (set_style, show_style): Remove.
9914 (_initialize_cli_style): Use add_basic_prefix_cmd,
9915 add_show_prefix_cmd.
9916 (cli_style_option::add_setshow_commands): Remove do_set and
9917 do_show parameters.
9918 (cli_style_option::add_setshow_commands): Use
9919 add_basic_prefix_cmd, add_show_prefix_cmd.
9920 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9921 (set_style_name): Remove.
9922 * cli/cli-dump.c (dump_command, append_command): Remove.
9923 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9924 (tekhex_dump_command, binary_dump_command)
9925 (binary_append_command): Remove.
9926 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9927 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9928 (init_w32_command_list): Remove; move into ...
9929 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9930 * valprint.c (set_print, show_print, set_print_raw)
9931 (show_print_raw): Remove.
9932 (_initialize_valprint): Use add_basic_prefix_cmd,
9933 add_show_prefix_cmd.
9934 * typeprint.c (set_print_type, show_print_type): Remove.
9935 (_initialize_typeprint): Use add_basic_prefix_cmd,
9936 add_show_prefix_cmd.
9937 * record.c (set_record_command, show_record_command): Remove.
9938 (_initialize_record): Use add_basic_prefix_cmd,
9939 add_show_prefix_cmd.
9940 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9941 add_show_prefix_cmd.
9942 (info_command, show_command, set_debug, show_debug): Remove.
9943 * top.h (set_history, show_history): Don't declare.
9944 * top.c (set_history, show_history): Remove.
9945 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9946 (unset_tdesc_cmd): Remove.
9947 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9948 add_show_prefix_cmd.
9949 * symtab.c (info_module_command): Remove.
9950 (_initialize_symtab): Use add_basic_prefix_cmd.
9951 * symfile.c (overlay_command): Remove.
9952 (_initialize_symfile): Use add_basic_prefix_cmd.
9953 * sparc64-tdep.c (info_adi_command): Remove.
9954 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9955 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9956 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9957 add_show_prefix_cmd.
9958 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9959 (_initialize_serial): Use add_basic_prefix_cmd,
9960 add_show_prefix_cmd.
9961 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9962 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9963 add_show_prefix_cmd.
9964 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9965 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9966 add_show_prefix_cmd.
9967 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9968 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9969 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9970 add_show_prefix_cmd.
9971 * remote.c (remote_command, set_remote_cmd): Remove.
9972 (_initialize_remote): Use add_basic_prefix_cmd.
9973 * record-full.c (set_record_full_command)
9974 (show_record_full_command): Remove.
9975 (_initialize_record_full): Use add_basic_prefix_cmd,
9976 add_show_prefix_cmd.
9977 * record-btrace.c (cmd_set_record_btrace)
9978 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9979 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9980 (cmd_show_record_btrace_pt): Remove.
9981 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9982 add_show_prefix_cmd.
9983 * ravenscar-thread.c (set_ravenscar_command)
9984 (show_ravenscar_command): Remove.
9985 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9986 add_show_prefix_cmd.
9987 * mips-tdep.c (show_mips_command, set_mips_command)
9988 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9989 add_show_prefix_cmd.
9990 * maint.c (maintenance_command, maintenance_info_command)
9991 (maintenance_check_command, maintenance_print_command)
9992 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9993 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9994 add_show_prefix_cmd.
9995 (show_per_command_cmd): Remove.
9996 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9997 Remove.
9998 (maintenance_show_test_settings_cmd): Remove.
9999 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10000 add_show_prefix_cmd.
10001 * maint-test-options.c (maintenance_test_options_command):
10002 Remove.
10003 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10004 * macrocmd.c (macro_command): Remove
10005 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10006 * language.c (set_check, show_check): Remove.
10007 (_initialize_language): Use add_basic_prefix_cmd,
10008 add_show_prefix_cmd.
10009 * infcmd.c (unset_command): Remove.
10010 (_initialize_infcmd): Use add_basic_prefix_cmd.
10011 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10012 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10013 add_show_prefix_cmd.
10014 * go32-nat.c (go32_info_dos_command): Remove.
10015 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10016 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10017 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10018 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10019 (_initialize_frame): Use add_basic_prefix_cmd,
10020 add_show_prefix_cmd.
10021 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10022 (_initialize_dcache): Use add_basic_prefix_cmd,
10023 add_show_prefix_cmd.
10024 * cp-support.c (maint_cplus_command): Remove.
10025 (_initialize_cp_support): Use add_basic_prefix_cmd.
10026 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10027 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10028 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10029 add_basic_prefix_cmd, add_show_prefix_cmd.
10030 * breakpoint.c (save_command): Remove.
10031 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10032 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10033 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10034 add_show_prefix_cmd.
10035 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10036 (set_ada_command, show_ada_command): Remove.
10037 (_initialize_ada_language): Use add_basic_prefix_cmd,
10038 add_show_prefix_cmd.
10039 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10040
3557f442
KR
100412020-04-16 Kamil Rytarowski <n54@gmx.com>
10042
10043 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10044 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10045
16197208
SM
100462020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10047
10048 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10049 warning messages.
10050
00ac85d3
SM
100512020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10052
10053 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10054 import table is not at beginning of .idata section.
10055
381ce63f
PA
100562020-04-16 Pedro Alves <palves@redhat.com>
10057
10058 * inferior.c (delete_inferior): Use delete operator directly
10059 instead of delete_program_space.
10060 * progspace.c (add_program_space): New, factored out from
10061 program_space::program_space.
10062 (remove_program_space): New, factored out from
10063 delete_program_space.
10064 (program_space::program_space): Remove intro comment. Rewrite.
10065 (program_space::~program_space): Remove intro comment. Call
10066 remove_program_space.
10067 (delete_program_space): Delete.
10068 * progspace.h (program_space::program_space): Make explicit. Move
10069 intro comment here, adjusted.
10070 (program_space::~program_space): Move intro comment here,
10071 adjusted.
10072 (delete_program_space): Remove.
10073
a010605f
TT
100742020-04-16 Tom Tromey <tromey@adacore.com>
10075
10076 * windows-nat.c (windows_nat::handle_access_violation): New
10077 function.
10078 * nat/windows-nat.h (handle_access_violation): Declare.
10079 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10080 windows-nat.c. Call handle_access_violation.
10081
efba5c23
TV
100822020-04-16 Tom de Vries <tdevries@suse.de>
10083
10084 PR symtab/25791
10085 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10086 CUs without psymtab.
10087
97ed802d
KB
100882020-04-16 Kevin Buettner <kevinb@redhat.com>
10089
10090 * python/python.c (do_start_initialization): Don't call
10091 PyEval_InitThreads for Python 3.9 and beyond.
10092
c7d64809
KR
100932020-04-15 Kamil Rytarowski <n54@gmx.com>
10094
10095 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10096 thread functions.
10097 (obsd_nat_target::wait): Likewise.
10098
ce127a96
TT
100992020-04-15 Tom Tromey <tromey@adacore.com>
10100
10101 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10102 (DEBUG_EXCEPT): Use debug_printf.
10103
99f1bc6a
AB
101042020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10105
10106 * completer.c (class completion_tracker::completion_hash_entry)
10107 <hash_name>: New member function.
10108 (completion_tracker::discard_completions): New callback to hash a
10109 completion_hash_entry, pass this to htab_create_alloc.
10110
a0e9b532
JT
101112016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10112
10113 * windows-nat.c (windows_make_so): Warn rather than stopping with
10114 an error if realpath() fails.
10115
06ca5dd4
KR
101162020-04-14 Kamil Rytarowski <n54@gmx.com>
10117
10118 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10119 (nbsd_nat_target::info_proc): Add do_status.
10120
194d088f
TV
101212020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10122 Tom de Vries <tdevries@suse.de>
10123
10124 PR symtab/25718
10125 * psympriv.h (struct partial_symtab::read_symtab)
10126 (struct partial_symtab::expand_psymtab)
10127 (struct partial_symtab::read_dependencies): Update comments.
10128 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10129 read_symtab for includer.
10130 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10131 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10132 (struct dwarf2_include_psymtab::m_readin): Remove.
10133 (struct dwarf2_include_psymtab::includer): New member function.
10134 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10135
c1a66c06
TV
101362020-04-14 Tom de Vries <tdevries@suse.de>
10137
10138 PR symtab/25720
10139 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10140 with NULL symbol_matcher and lookup_name.
10141 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10142 and lookup_name.
10143 * dwarf2/read.c (dw2_expand_symtabs_matching)
10144 (dw2_debug_names_expand_symtabs_matching): Same.
10145 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10146 Make lookup_name a pointer. Update comment.
10147 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10148 lookup_name being a pointer.
10149 * symfile.c (expand_symtabs_matching): Same.
10150 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10151 * linespec.c (iterate_over_all_matching_symtabs): Same.
10152
400b5eca
TT
101532020-04-13 Tom Tromey <tom@tromey.com>
10154
10155 * run-on-main-thread.c: Update include.
10156 * unittests/main-thread-selftests.c: Update include.
10157 * tui/tui-win.c: Update include.
10158 * tui/tui-io.c: Update include.
10159 * tui/tui-interp.c: Update include.
10160 * tui/tui-hooks.c: Update include.
10161 * top.h: Update include.
10162 * top.c: Update include.
10163 * ser-base.c: Update include.
10164 * remote.c: Update include.
10165 * remote-notif.c: Update include.
10166 * remote-fileio.c: Update include.
10167 * record-full.c: Update include.
10168 * record-btrace.c: Update include.
10169 * python/python.c: Update include.
10170 * posix-hdep.c: Update include.
10171 * mingw-hdep.c: Update include.
10172 * mi/mi-main.c: Update include.
10173 * mi/mi-interp.c: Update include.
10174 * main.c: Update include.
10175 * linux-nat.c: Update include.
10176 * interps.c: Update include.
10177 * infrun.c: Update include.
10178 * inf-loop.c: Update include.
10179 * event-top.c: Update include.
10180 * event-loop.c: Move to ../gdbsupport/.
10181 * event-loop.h: Move to ../gdbsupport/.
10182 * async-event.h: Update include.
10183 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10184
93b54c8e
TT
101852020-04-13 Tom Tromey <tom@tromey.com>
10186
10187 * tui/tui-win.c: Include async-event.h.
10188 * remote.c: Include async-event.h.
10189 * remote-notif.c: Include async-event.h.
10190 * record-full.c: Include async-event.h.
10191 * record-btrace.c: Include async-event.h.
10192 * infrun.c: Include async-event.h.
10193 * event-top.c: Include async-event.h.
10194 * event-loop.h: Move some declarations to async-event.h.
10195 * event-loop.c: Don't include ser-event.h or top.h. Move some
10196 code to async-event.c.
10197 * async-event.h: New file.
10198 * async-event.c: New file.
10199 * Makefile.in (COMMON_SFILES): Add async-event.c.
10200 (HFILES_NO_SRCDIR): Add async-event.h.
10201
c1cd3163
TT
102022020-04-13 Tom Tromey <tom@tromey.com>
10203
10204 * utils.c (flush_streams): New function.
10205 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10206
29f2bf4f
TT
102072020-04-13 Tom Tromey <tom@tromey.com>
10208
10209 * event-loop.c (handle_file_event): Use warning, not
10210 printf_unfiltered.
10211
98029d02
TT
102122020-04-13 Tom Tromey <tom@tromey.com>
10213
10214 * event-loop.c: Include <chrono>.
10215
06cc9596
TT
102162020-04-13 Tom Tromey <tom@tromey.com>
10217
10218 * gdb_select.h: Move to ../gdbsupport/.
10219 * event-loop.c: Update include path.
10220 * top.c: Update include path.
10221 * ser-base.c: Update include path.
10222 * ui-file.c: Update include path.
10223 * ser-tcp.c: Update include path.
10224 * guile/scm-ports.c: Update include path.
10225 * posix-hdep.c: Update include path.
10226 * ser-unix.c: Update include path.
10227 * gdb_usleep.c: Update include path.
10228 * mingw-hdep.c: Update include path.
10229 * inflow.c: Update include path.
10230 * infrun.c: Update include path.
10231 * event-top.c: Update include path.
10232
8ae8e197
TT
102332020-04-13 Tom Tromey <tom@tromey.com>
10234
10235 * configure: Rebuild.
10236 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10237
58cf28e8
TT
102382020-04-13 Tom Tromey <tom@tromey.com>
10239
10240 * event-loop.h (start_event_loop): Don't declare.
10241 * event-loop.c (start_event_loop): Move...
10242 * main.c (start_event_loop): ...here. Now static.
10243
b7f999ae
SDJ
102442020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10245
10246 * MAINTAINERS: Update my email address.
10247
1085dfd4
KR
102482020-04-12 Kamil Rytarowski <n54@gmx.com>
10249
10250 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10251 IP_ALL.
10252
49d1d1f5
KR
102532020-04-12 Kamil Rytarowski <n54@gmx.com>
10254
10255 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10256 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10257
b4848d2a
KR
102582020-04-12 Kamil Rytarowski <n54@gmx.com>
10259
10260 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10261 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10262
51c133d5
KR
102632020-04-12 Kamil Rytarowski <n54@gmx.com>
10264
10265 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10266
54b8cbd0
KR
102672020-04-11 Kamil Rytarowski <n54@gmx.com>
10268
10269 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10270 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10271 (nbsd_nat_target::info_proc): New functions.
10272 * nbsd-nat.c (kinfo_get_vmmap): New function.
10273 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10274 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10275 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10276 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10277 functions.
10278 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10279 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10280 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10281 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10282 (KINFO_VME_FLAG_GROWS_DOWN): New.
10283
cf83625d
AS
102842020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10285
10286 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10287 bit shift.
10288
0c4311ab
TT
102892020-04-10 Tom Tromey <tromey@adacore.com>
10290
10291 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10292
3e65b3e9
TT
102932020-04-10 Tom Tromey <tromey@adacore.com>
10294
10295 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10296 separate debug files.
10297
13302e95
HD
102982020-04-10 Hannes Domani <ssbssa@yahoo.de>
10299
10300 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10301 Move to...
10302 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10303 ... here.
10304 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10305 Check for STATUS_WX86_BREAKPOINT.
10306 (windows_nat_target::wait): Same.
10307
bdfc1e8a
TV
103082020-04-10 Tom de Vries <tdevries@suse.de>
10309
10310 PR cli/25808
10311 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10312
f4460aec
SM
103132020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10314
10315 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10316 (Write After Approval): Remove Tom de Vries.
10317
a25198bb
BE
103182020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10319
10320 revert partially:
10321 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10322
aac66a4c
SM
10323 * buildsym.c (record_line): Fix undefined behavior and preserve
10324 lines at eof.
a25198bb 10325
206c98a6
KR
103262020-04-09 Kamil Rytarowski <n54@gmx.com>
10327
10328 * auxv.h (svr4_auxv_parse): New.
10329 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10330 and generic_auxv_parse.
10331 (svr4_auxv_parse): Add.
10332 * obsd-tdep.c: Include "auxv.h".
10333 (obsd_auxv_parse): Remove.
10334 (obsd_init_abi): Remove comment.
10335 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10336 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10337 * nbsd-tdep.c: Include "auxv.h".
10338 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10339
71fbdbaf
TT
103402020-04-08 Tom Tromey <tromey@adacore.com>
10341
10342 * nat/windows-nat.h (last_wait_event): Don't declare.
10343 (wait_for_debug_event): Update comment.
10344 * nat/windows-nat.c (last_wait_event): Now static.
10345
2c1d95e8
TT
103462020-04-08 Tom Tromey <tromey@adacore.com>
10347
10348 * windows-nat.c (wait_for_debug_event): Move to
10349 nat/windows-nat.c.
10350 * nat/windows-nat.h (wait_for_debug_event): Declare.
10351 * nat/windows-nat.c (wait_for_debug_event): Move from
10352 windows-nat.c. No longer static.
10353
d2977bc4
TT
103542020-04-08 Tom Tromey <tromey@adacore.com>
10355
10356 * windows-nat.c (get_windows_debug_event): Use
10357 fetch_pending_stop.
10358 * nat/windows-nat.h (fetch_pending_stop): Declare.
10359 * nat/windows-nat.c (fetch_pending_stop): New function.
10360
e758e19c
TT
103612020-04-08 Tom Tromey <tromey@adacore.com>
10362
10363 * windows-nat.c (windows_continue): Use matching_pending_stop and
10364 continue_last_debug_event.
10365 * nat/windows-nat.h (matching_pending_stop)
10366 (continue_last_debug_event): Declare.
10367 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10368 (matching_pending_stop, continue_last_debug_event): New
10369 functions.
10370
8d30e395
TT
103712020-04-08 Tom Tromey <tromey@adacore.com>
10372
10373 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10374 (handle_exception_result): Move to nat/windows-nat.h.
10375 (DEBUG_EXCEPTION_SIMPLE): Remove.
10376 (windows_nat::handle_ms_vc_exception): New function.
10377 (handle_exception): Move to nat/windows-nat.c.
10378 (get_windows_debug_event): Update.
10379 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10380 nat/windows-nat.c.
10381 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10382 (handle_exception_result): Move from windows-nat.c.
10383 (handle_exception): Declare.
10384 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10385 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10386 windows-nat.c.
10387
29de418d
TT
103882020-04-08 Tom Tromey <tromey@adacore.com>
10389
10390 * windows-nat.c (exception_count, event_count): Remove.
10391 (handle_exception, get_windows_debug_event)
10392 (do_initial_windows_stuff): Update.
10393
a816ba18
TT
103942020-04-08 Tom Tromey <tromey@adacore.com>
10395
10396 * windows-nat.c (windows_nat::handle_load_dll)
10397 (windows_nat::handle_unload_dll): Rename. No longer static.
10398 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10399 Declare.
10400
a00caa12
TT
104012020-04-08 Tom Tromey <tromey@adacore.com>
10402
10403 * complaints.h (stop_whining): Declare at top-level.
10404 (complaint): Don't declare stop_whining.
10405
d41b524f
TT
104062020-04-08 Tom Tromey <tromey@adacore.com>
10407
10408 * windows-nat.c (windows_nat::handle_output_debug_string):
10409 Rename. No longer static.
10410 * nat/windows-nat.h (handle_output_debug_string): Declare.
10411
3c76026d
TT
104122020-04-08 Tom Tromey <tromey@adacore.com>
10413
10414 * windows-nat.c (current_process_handle, current_process_id)
10415 (main_thread_id, last_sig, current_event, last_wait_event)
10416 (current_windows_thread, desired_stop_thread_id, pending_stops)
10417 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10418 (display_selectors, fake_create_process)
10419 (get_windows_debug_event): Update.
10420 * nat/windows-nat.h (current_process_handle, current_process_id)
10421 (main_thread_id, last_sig, current_event, last_wait_event)
10422 (current_windows_thread, desired_stop_thread_id, pending_stops)
10423 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10424 * nat/windows-nat.c (current_process_handle, current_process_id)
10425 (main_thread_id, last_sig, current_event, last_wait_event)
10426 (current_windows_thread, desired_stop_thread_id, pending_stops)
10427 (siginfo_er): New globals. Move from windows-nat.c.
10428
9d8679cc
TT
104292020-04-08 Tom Tromey <tromey@adacore.com>
10430
10431 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10432 (handle_load_dll): Update.
10433 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10434
28688adf
TT
104352020-04-08 Tom Tromey <tromey@adacore.com>
10436
10437 * windows-nat.c (enum thread_disposition_type): Move to
10438 nat/windows-nat.h.
10439 (windows_nat::thread_rec): Rename from thread_rec. No longer
10440 static.
10441 (windows_add_thread, windows_nat_target::fetch_registers)
10442 (windows_nat_target::store_registers, handle_exception)
10443 (windows_nat_target::resume, get_windows_debug_event)
10444 (windows_nat_target::get_tib_address)
10445 (windows_nat_target::thread_name)
10446 (windows_nat_target::thread_alive): Update.
10447 * nat/windows-nat.h (enum thread_disposition_type): Move from
10448 windows-nat.c.
10449 (thread_rec): Declare.
10450
4834dad0
TT
104512020-04-08 Tom Tromey <tromey@adacore.com>
10452
10453 * windows-nat.c: Add "using namespace".
10454 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10455 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10456
65bafd5b
TT
104572020-04-08 Tom Tromey <tromey@adacore.com>
10458
10459 * nat/windows-nat.h (struct windows_thread_info): Declare
10460 destructor.
10461 * nat/windows-nat.c (~windows_thread_info): New.
10462
0a4afda3
TT
104632020-04-08 Tom Tromey <tromey@adacore.com>
10464
10465 PR gdb/22992
10466 * windows-nat.c (current_event): Update comment.
10467 (last_wait_event, desired_stop_thread_id): New globals.
10468 (struct pending_stop): New.
10469 (pending_stops): New global.
10470 (windows_nat_target) <stopped_by_sw_breakpoint>
10471 <supports_stopped_by_sw_breakpoint>: New methods.
10472 (windows_fetch_one_register): Add assertions. Adjust PC.
10473 (windows_continue): Handle pending stops. Suspend other threads
10474 when stepping. Use last_wait_event
10475 (wait_for_debug_event): New function.
10476 (get_windows_debug_event): Use wait_for_debug_event. Handle
10477 pending stops. Queue spurious stops.
10478 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10479 (windows_nat_target::kill): Use wait_for_debug_event.
10480 * nat/windows-nat.h (struct windows_thread_info)
10481 <stopped_at_software_breakpoint>: New field.
10482 * nat/windows-nat.c (windows_thread_info::resume): Clear
10483 stopped_at_software_breakpoint.
10484
8e61ebec
TT
104852020-04-08 Tom Tromey <tromey@adacore.com>
10486
10487 * windows-nat.c (enum thread_disposition_type): New.
10488 (thread_rec): Replace "get_context" parameter with "disposition";
10489 change type.
10490 (windows_add_thread, windows_nat_target::fetch_registers)
10491 (windows_nat_target::store_registers, handle_exception)
10492 (windows_nat_target::resume, get_windows_debug_event)
10493 (windows_nat_target::get_tib_address)
10494 (windows_nat_target::thread_name)
10495 (windows_nat_target::thread_alive): Update.
10496
98a03287
TT
104972020-04-08 Tom Tromey <tromey@adacore.com>
10498
10499 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10500 (windows_continue): Use windows_continue::resume.
10501 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10502 resume>: Declare new methods.
10503 * nat/windows-nat.c: New file.
10504 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10505
7c7411bc
TT
105062020-04-08 Tom Tromey <tromey@adacore.com>
10507
10508 * windows-nat.c (windows_add_thread, windows_delete_thread)
10509 (windows_nat_target::fetch_registers)
10510 (windows_nat_target::store_registers, fake_create_process)
10511 (windows_nat_target::resume, windows_nat_target::resume)
10512 (get_windows_debug_event, windows_nat_target::wait)
10513 (windows_nat_target::pid_to_str)
10514 (windows_nat_target::get_tib_address)
10515 (windows_nat_target::get_ada_task_ptid)
10516 (windows_nat_target::thread_name)
10517 (windows_nat_target::thread_alive): Use lwp, not tid.
10518
2950fdf7
TT
105192020-04-08 Tom Tromey <tromey@adacore.com>
10520
10521 * windows-nat.c (handle_exception)
10522 (windows_nat_target::thread_name): Update.
10523 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10524 <name>: Now unique_xmalloc_ptr.
10525
62fe396b
TT
105262020-04-08 Tom Tromey <tromey@adacore.com>
10527
10528 * windows-nat.c (thread_rec)
10529 (windows_nat_target::fetch_registers): Update.
10530 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10531 Update comment.
10532 <debug_registers_changed, reload_context>: Now bool.
10533
e9534bd2
TT
105342020-04-08 Tom Tromey <tromey@adacore.com>
10535
10536 * windows-nat.c (windows_add_thread): Use new.
10537 (windows_init_thread_list, windows_delete_thread): Use delete.
10538 (get_windows_debug_event): Update.
10539 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10540 destructor, and initializers.
10541
ae1f8880
TT
105422020-04-08 Tom Tromey <tromey@adacore.com>
10543
10544 * windows-nat.c (struct windows_thread_info): Remove.
10545 * nat/windows-nat.h: New file.
10546
55a1e039
TT
105472020-04-08 Tom Tromey <tromey@adacore.com>
10548
10549 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10550 (thread_rec, windows_add_thread, windows_delete_thread)
10551 (windows_continue): Update.
10552
93366324
TT
105532020-04-08 Tom Tromey <tromey@adacore.com>
10554
10555 * windows-nat.c (struct windows_thread_info): Remove typedef.
10556 (thread_head): Remove.
10557 (thread_list): New global.
10558 (thread_rec, windows_add_thread, windows_init_thread_list)
10559 (windows_delete_thread, windows_continue): Update.
10560
0f2265e2
SM
105612020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10562
10563 * windows-tdep.h (windows_init_abi): Add comment.
10564 (cygwin_init_abi): New declaration.
10565 * windows-tdep.c: Split signal enumeration in two, one for
10566 Windows and one for Cygwin.
10567 (windows_gdb_signal_to_target): Only deal with signal of the
10568 Windows OS ABI.
10569 (cygwin_gdb_signal_to_target): New function.
10570 (windows_init_abi): Rename to windows_init_abi_common, don't set
10571 gdb_signal_to_target gdbarch method. Add new new function with
10572 this name.
10573 (cygwin_init_abi): New function.
10574 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10575 comment. Don't call windows_init_abi.
10576 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10577 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10578 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10579 i386_windows_init_abi_common, don't call windows_init_abi. Add
10580 a new function of this name.
10581 (i386_cygwin_init_abi): New function.
10582 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10583 OS ABI Cygwin.
10584
3810f182
SM
105852020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10586
10587 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10588 parameter.c.
10589 (dwarf2_read_gdb_index): Update.
10590
063f8e80
KR
105912020-04-07 Kamil Rytarowski <n54@gmx.com>
10592
10593 * nbsd-tdep.c: Include "objfiles.h".
10594 (nbsd_skip_solib_resolver): New.
10595 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10596
85a9510c 105972020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10598
10599 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10600 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10601 with DW_LLE_base_addressx are being emitted in DWARFv5.
10602 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10603 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10604 unsigned integer.
10605
9fc3eaae 106062020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10607
10608 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10609 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10610 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10611 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10612 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10613 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10614 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10615
10616
41144253 106172020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10618
10619 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10620 (read_loclist_index): New function definition.
10621 (lookup_loclist_base): New function definition.
10622 (read_loclist_header): New function definition.
10623 (dwarf2_cu): Add loclist_base and loclist_header field.
10624 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10625 (read_full_die_1): Read the value of DW_AT_loclists_base.
10626 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10627 (read_attribute_value): Handle DW_FORM_loclistx.
10628 (skip_one_die): Handle DW_FORM_loclistx.
10629 (loclist_header): New structure declaration.
10630 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10631
9f4e76a4
SM
106322020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10633
10634 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10635 constructor. Remove `addr` parameter from other constructor and
10636 add `per_cu` parameter.
10637 * dwarf2/read.c (create_partial_symtab): Update.
10638
25c11aca
TV
106392020-04-07 Tom de Vries <tdevries@suse.de>
10640
10641 PR symtab/25796
10642 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10643 (partial_die_info::fixup): Inherit has_const_value.
10644
5707e24b
TV
106452020-04-07 Tom de Vries <tdevries@suse.de>
10646
10647 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10648 symbols without address.
10649
05f00e22
KR
106502020-04-06 Kamil Rytarowski <n54@gmx.com>
10651
10652 * nbsd-nat.h (struct thread_info): Add forward declaration.
10653 (nbsd_nat_target::thread_alive): Add.
10654 (nbsd_nat_target::thread_name): Likewise.
10655 (nbsd_nat_target::update_thread_list): Likewise.
10656 (update_thread_list::post_attach): Likewise.
10657 (post_attach::pid_to_str): Likewise.
10658 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10659 (nbsd_thread_lister): Add.
10660 (nbsd_nat_target::thread_alive): Likewise.
10661 (nbsd_nat_target::thread_name): Likewise.
10662 (nbsd_add_threads): Likewise.
10663 (update_thread_list::post_attach): Likewise.
10664 (nbsd_nat_target::update_thread_list): Likewise.
10665 (post_attach::pid_to_str): Likewise.
10666
6ee448cc
TT
106672020-04-06 Tom Tromey <tromey@adacore.com>
10668
10669 * ada-valprint.c (print_variant_part): Extract the variant field.
10670 (print_field_values): Use the field as the outer value when
10671 recursing.
10672
dea34e8c
TT
106732020-04-06 Tom Tromey <tromey@adacore.com>
10674
10675 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10676 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10677 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10678 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10679 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10680
93689ce9
TT
106812020-04-06 Tom Tromey <tromey@adacore.com>
10682
10683 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10684 TYPE_CODE_ERROR.
10685
79743962
KR
106862020-04-06 Kamil Rytarowski <n54@gmx.com>
10687
10688 * nbsd-tdep.c: Include "gdbarch.h".
10689 Define enum with NetBSD signal numbers.
10690 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10691 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10692 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10693 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10694 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10695 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10696 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10697 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10698 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10699 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10700 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10701 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10702
9e7c9a03
HD
107032020-04-03 Hannes Domani <ssbssa@yahoo.de>
10704
10705 PR gdb/25325
10706 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10707
d9e49b61
TT
107082020-04-03 Tom Tromey <tromey@adacore.com>
10709
10710 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10711 Read constant block.
10712
e0fc5c3f
SM
107132020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10714
10715 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10716 (gdb_bfd_get_full_section_contents): New declaration.
10717 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10718 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10719 gdb_bfd_get_full_section_contents.
10720
e2ff18a0
SM
107212020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10722
10723 * exec.c (build_section_table): Replace internal_error with
10724 gdb_assert.
10725 (section_table_xfer_memory_partial): Likewise.
10726 * mdebugread.c (parse_partial_symbols): Likewise.
10727 * psymtab.c (lookup_partial_symbol): Likewise.
10728 * utils.c (wrap_here): Likewise.
10729
0830d301
TT
107302020-04-02 Tom Tromey <tromey@adacore.com>
10731
10732 * f-lang.c (build_fortran_types): Use arch_type to initialize
10733 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10734
e7da7f8f
TT
107352020-04-02 Tom Tromey <tromey@adacore.com>
10736
10737 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10738 of attributes.
10739
c90d28ac
AB
107402020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10741 Bernd Edlinger <bernd.edlinger@hotmail.de>
10742 Tom Tromey <tromey@adacore.com>
10743
10744 * buildsym.c (buildsym_compunit::record_line): Remove
10745 deduplication code.
10746
1aa98955
TV
107472020-04-02 Tom de Vries <tdevries@suse.de>
10748
10749 PR ada/24671
10750 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10751
d3214198
TV
107522020-04-02 Tom de Vries <tdevries@suse.de>
10753
10754 * dwarf2/read.c (dwarf2_gdb_index_functions,
10755 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10756 NULL.
10757 * psymtab.c (psym_lookup_global_symbol_language): New function.
10758 (psym_functions): Init psym_lookup_global_symbol_language with
10759 psym_lookup_global_symbol_language.
10760 * symfile-debug.c (debug_sym_quick_functions): Init
10761 lookup_global_symbol_language with NULL.
10762 * symfile.c (set_initial_language): Remove fixme comment.
10763 * symfile.h (struct quick_symbol_functions): Add
10764 lookup_global_symbol_language.
10765 * symtab.c (find_quick_global_symbol_language): New function.
10766 (find_main_name): Use find_quick_global_symbol_language.
10767
2836752f
SM
107682020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10769
10770 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10771
64dc2d4b
BE
107722020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10773
10774 * buildsym.c (record_line): Fix undefined behavior and preserve
10775 lines at eof.
10776
bbe3dc41
BE
107772020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10778
10779 * buildsym.c (record_line): Fix the resizing condition.
10780
6b4a335b
TT
107812020-04-01 Tom Tromey <tom@tromey.com>
10782
10783 * value.h (value_literal_complex): Add comment.
10784 * valops.c (value_literal_complex): Refer to value.h.
10785
3638a098
TT
107862020-04-01 Tom Tromey <tom@tromey.com>
10787
10788 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10789 (scalar_type): New rule, from typebase.
10790 (typebase): Use scalar_type. Recognize complex types.
10791 (field_name): Handle FLOAT_KEYWORD.
10792 (ident_tokens): Add _Complex and __complex__.
10793
c34e8714
TT
107942020-04-01 Tom Tromey <tom@tromey.com>
10795
10796 PR exp/25299:
10797 * valarith.c (promotion_type, complex_binop): New functions.
10798 (scalar_binop): Handle complex numbers. Use promotion_type.
10799 (value_pos, value_neg, value_complement): Handle complex numbers.
10800
fa649bb7
TT
108012020-04-01 Tom Tromey <tom@tromey.com>
10802
10803 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10804 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10805 (parse_number): Handle complex numbers.
10806
981c08ce
TT
108072020-04-01 Tom Tromey <tom@tromey.com>
10808
10809 * c-valprint.c (c_decorations): Change complex suffix to "i".
10810
4c99290d
TT
108112020-04-01 Tom Tromey <tom@tromey.com>
10812
10813 * valprint.c (generic_value_print_complex): Use accessors.
10814 * value.h (value_real_part, value_imaginary_part): Declare.
10815 * valops.c (value_real_part, value_imaginary_part): New
10816 functions.
10817 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10818
5b930b45
TT
108192020-04-01 Tom Tromey <tom@tromey.com>
10820
10821 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10822 (read_range_type): Update.
10823 * mdebugread.c (basic_type): Update.
10824 * go-lang.c (build_go_types): Use init_complex_type.
10825 * gdbtypes.h (struct main_type) <complex_type>: New member.
10826 (init_complex_type): Update.
10827 (arch_complex_type): Don't declare.
10828 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10829 Make name if none given. Use alloc_type_copy. Look for cached
10830 complex type.
10831 (arch_complex_type): Remove.
10832 (gdbtypes_post_init): Use init_complex_type.
10833 * f-lang.c (build_fortran_types): Use init_complex_type.
10834 * dwarf2/read.c (read_base_type): Update.
10835 * d-lang.c (build_d_types): Use init_complex_type.
10836 * ctfread.c (read_base_type): Update.
10837
53cccef1
TBA
108382020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10839
10840 * infrun.c (stop_all_threads): Update assertion, plus when
10841 stopping threads, take into account that we might be trying
10842 to stop an all-stop target.
10843 (stop_waiting): Call 'stop_all_threads' if there exists a
10844 non-stop target.
10845
a0714d30
TBA
108462020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10847
10848 * target.h (exists_non_stop_target): New function declaration.
10849 * target.c (exists_non_stop_target): New function.
10850
60e22c1e
HD
108512020-04-01 Hannes Domani <ssbssa@yahoo.de>
10852
10853 PR gdb/24789
10854 * eval.c (is_integral_or_integral_reference): New function.
10855 (evaluate_subexp_standard): Allow integer references in
10856 pointer arithmetic.
10857
e139a727
TBA
108582020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10859
10860 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10861 check for no ptid in the stop reply when the target is non-stop.
10862
e0802d59
TT
108632020-04-01 Tom Tromey <tromey@adacore.com>
10864
10865 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10866 "name" parameter to rvalue reference. Initialize m_name_holder.
10867 <lookup_name_info>: New overloads.
10868 <name>: Return gdb::string_view.
10869 <c_str>: New method.
10870 <make_ignore_params>: Update.
10871 <search_name_hash>: Update.
10872 <language_lookup_name>: Return const char *.
10873 <m_name>: Change type.
10874 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10875 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10876 (lookup_name_info::match_any): Update.
10877 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10878 Update.
10879 * minsyms.c (linkage_name_str): Update.
10880 * language.c (default_symbol_name_matcher): Update.
10881 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10882 Update.
10883 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10884 (ada_lookup_name_info::ada_lookup_name_info): Update.
10885 (literal_symbol_name_matcher): Update.
10886
8c072cb6
TT
108872020-04-01 Tom Tromey <tromey@adacore.com>
10888
10889 * psymtab.c (psymtab_search_name): Remove function.
10890 (psym_lookup_symbol): Create search name and lookup name here.
10891 (lookup_partial_symbol): Remove "name" parameter; add
10892 lookup_name.
10893 (psym_expand_symtabs_for_function): Update.
10894
6f29a534
TT
108952020-03-31 Joel Jones <joelkevinjones@gmail.com>
10896
10897 PR tui/25597:
10898 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10899
af62665e
TT
109002020-03-31 Tom Tromey <tromey@adacore.com>
10901
10902 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10903 memcpy.
10904
d1a89da5
NC
109052020-03-30 Nelson Chu <nelson.chu@sifive.com>
10906
10907 * features/riscv/32bit-csr.xml: Regenerated.
10908 * features/riscv/64bit-csr.xml: Regenerated.
10909
d8af9068
TT
109102020-03-30 Tom Tromey <tromey@adacore.com>
10911
10912 * ada-valprint.c (print_variant_part): Update.
10913 * ada-lang.h (ada_which_variant_applies): Update.
10914 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10915 outer_valaddr parameters; replace with "outer" value parameter.
10916 (to_fixed_variant_branch_type): Update.
10917
227c0bf4
PFC
109182020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10919
10920 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10921 <list>. Remove inclusion of observable.h.
10922 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10923 (struct arch_lwp_info): New struct.
10924 (class ppc_linux_dreg_interface): New class.
10925 (struct ppc_linux_process_info): New struct.
10926 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10927 <low_new_clone, low_forget_process, low_prepare_to_resume>
10928 <copy_thread_dreg_state, mark_thread_stale>
10929 <mark_debug_registers_changed, register_hw_breakpoint>
10930 <clear_hw_breakpoint, register_wp, clear_wp>
10931 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10932 <num_memory_accesses, get_trigger_type>
10933 <create_watchpoint_request, hwdebug_point_cmp>
10934 <init_arch_lwp_info, get_arch_lwp_info>
10935 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10936 methods.
10937 <struct ptid_hash>: New inner struct.
10938 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10939 members.
10940 (saved_dabr_value, hwdebug_info, max_slots_number)
10941 (struct hw_break_tuple, struct thread_points, ppc_threads)
10942 (have_ptrace_hwdebug_interface)
10943 (hwdebug_find_thread_points_by_tid)
10944 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10945 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10946 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10947 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10948 use m_dreg_interface.
10949 (hwdebug_point_cmp): Change to...
10950 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10951 reference arguments instead of pointers.
10952 (ppc_linux_nat_target::ranged_break_num_registers): Use
10953 m_dreg_interface.
10954 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10955 m_dreg_interface. Call register_hw_breakpoint.
10956 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10957 m_dreg_interface. Call clear_hw_breakpoint.
10958 (get_trigger_type): Change to...
10959 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10960 comment.
10961 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10962 use m_dreg_interface. Call register_hw_breakpoint.
10963 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10964 use m_dreg_interface. Call clear_hw_breakpoint.
10965 (can_use_watchpoint_cond_accel): Change to...
10966 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10967 method. Update comment, use m_dreg_interface and
10968 m_process_info.
10969 (calculate_dvc): Change to...
10970 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10971 m_dreg_interface.
10972 (num_memory_accesses): Change to...
10973 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10974 (check_condition): Change to...
10975 (ppc_linux_nat_target::check_condition): ...this method.
10976 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10977 comment, use m_dreg_interface.
10978 (create_watchpoint_request): Change to...
10979 (ppc_linux_nat_target::create_watchpoint_request): ...this
10980 method. Use m_dreg_interface.
10981 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10982 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10983 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10984 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10985 (ppc_linux_nat_target::low_forget_process)
10986 (ppc_linux_nat_target::low_new_fork)
10987 (ppc_linux_nat_target::low_new_clone)
10988 (ppc_linux_nat_target::low_delete_thread)
10989 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10990 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10991 only call mark_thread_stale.
10992 (ppc_linux_thread_exit): Remove.
10993 (ppc_linux_nat_target::stopped_data_address): Change to...
10994 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10995 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10996 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10997 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10998 comment. Call low_stopped_data_address.
10999 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11000 m_dreg_interface.
11001 (ppc_linux_nat_target::masked_watch_num_registers): Use
11002 m_dreg_interface.
11003 (ppc_linux_nat_target::copy_thread_dreg_state)
11004 (ppc_linux_nat_target::mark_thread_stale)
11005 (ppc_linux_nat_target::mark_debug_registers_changed)
11006 (ppc_linux_nat_target::register_hw_breakpoint)
11007 (ppc_linux_nat_target::clear_hw_breakpoint)
11008 (ppc_linux_nat_target::register_wp)
11009 (ppc_linux_nat_target::clear_wp)
11010 (ppc_linux_nat_target::init_arch_lwp_info)
11011 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11012 (_initialize_ppc_linux_nat): Remove observer callback.
11013
4db10d8f
PFC
110142020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11015
11016 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11017 (ppc_linux_nat_target::auxv_parse)
11018 (ppc_linux_nat_target::read_description)
11019 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11020 Move up.
11021
1310c1b0
PFC
110222020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11023
11024 * linux-nat.h (low_new_clone): New method.
11025 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11026
69b037c3
SM
110272020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11028
11029 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11030 (dbx_expand_psymtab): ... this.
11031 (start_psymtab): Update.
11032 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11033 (mdebug_expand_psymtab): ... this.
11034 (parse_partial_symbols): Update.
11035 (new_psymtab): Update.
11036 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11037 (xcoff_expand_psymtab): ... this.
11038 (xcoff_start_psymtab): Update.
11039
48993951
SM
110402020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11041
11042 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11043 <expand_dependencies>: ... this.
11044 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11045 (partial_symtab::expand_dependencies): ... this.
11046 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11047 Update.
11048 (dwarf2_psymtab::expand_psymtab): Update.
11049 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11050 * mdebugread.c (psymtab_to_symtab_1): Update.
11051 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11052
3ad83046
SM
110532020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11054
11055 * psympriv.h (discard_psymtab): Remove.
11056 * dbxread.c (dbx_end_psymtab): Update.
11057 * xcoffread.c (xcoff_end_psymtab): Update.
11058
4d1b9ab6
TT
110592020-03-28 Tom Tromey <tom@tromey.com>
11060
11061 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11062 comment.
11063
f1749218
TT
110642020-03-28 Tom Tromey <tom@tromey.com>
11065
11066 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11067
ebea7626
HD
110682020-03-27 Hannes Domani <ssbssa@yahoo.de>
11069
11070 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11071
a879b4d5
JB
110722020-03-26 John Baldwin <jhb@FreeBSD.org>
11073
11074 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11075
0826b30a
TT
110762020-03-26 Tom Tromey <tom@tromey.com>
11077
11078 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11079 (mark_common_block_symbol_computed, read_tag_string_type)
11080 (attr_to_dynamic_prop, read_subrange_type): Update.
11081 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11082 to be methods on struct attribute.
11083 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11084 (read_call_site_scope, partial_die_info::read)
11085 (partial_die_info::read, lookup_die_type, follow_die_ref):
11086 Update.
11087 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11088 from dwarf2_get_ref_die_offset.
11089 (attribute::constant_value): New method, from
11090 dwarf2_get_attr_constant_value.
11091 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11092 Declare method.
11093 <constant_value>: New method.
11094
2b2558bf
TT
110952020-03-26 Tom Tromey <tom@tromey.com>
11096
11097 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11098 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11099 (dwarf_type_encoding_name): Move to stringify.c.
11100 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11101 * dwarf2/stringify.c: New file.
11102 * dwarf2/stringify.h: New file.
11103
eeb64781
TT
111042020-03-26 Tom Tromey <tom@tromey.com>
11105
11106 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11107 Rewrite.
11108
a39fdb41
TT
111092020-03-26 Tom Tromey <tom@tromey.com>
11110
11111 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11112 methods.
11113 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11114 (lookup_ranges_base): Likewise.
11115 (read_cutu_die_from_dwo, read_full_die_1): Update.
11116
436c571c
TT
111172020-03-26 Tom Tromey <tom@tromey.com>
11118
11119 * dwarf2/read.c (read_import_statement, read_file_scope)
11120 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11121 (read_lexical_block_scope, read_call_site_scope)
11122 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11123 (handle_struct_member_die, process_structure_scope)
11124 (update_enumeration_type_from_children)
11125 (process_enumeration_scope, read_array_type, read_common_block)
11126 (read_namespace, read_module, read_subroutine_type): Update.
11127 (sibling_die): Remove.
11128
052c8bb8
TT
111292020-03-26 Tom Tromey <tom@tromey.com>
11130
11131 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11132 (build_type_psymtabs_reader, read_structure_type)
11133 (read_enumeration_type, read_full_die_1): Update.
11134 (dwarf2_attr_no_follow): Move to die.h.
11135 * dwarf2/die.h (struct die_info) <attr>: New method.
11136
2b24b6e4
TT
111372020-03-26 Tom Tromey <tom@tromey.com>
11138
11139 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11140 <base_address>: Now an optional.
11141 (dwarf2_find_base_address, dwarf2_rnglists_process)
11142 (dwarf2_ranges_process, fill_in_loclist_baton)
11143 (dwarf2_symbol_mark_computed): Update.
11144
c2d50fd0
TT
111452020-03-26 Tom Tromey <tom@tromey.com>
11146
11147 * dwarf2/read.c (struct die_info): Move to die.h.
11148 * dwarf2/die.h: New file.
11149
0df7ad3a
TT
111502020-03-26 Tom Tromey <tom@tromey.com>
11151
11152 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11153 * dwarf2/read.c
11154 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11155 Move to line-header.c.
11156 (read_checked_initial_length_and_offset, read_formatted_entries):
11157 Likewise.
11158 (dwarf_decode_line_header): Split into two.
11159 * dwarf2/line-header.c
11160 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11161 Move from read.c.
11162 (read_checked_initial_length_and_offset, read_formatted_entries):
11163 Likewise.
11164 (dwarf_decode_line_header): New function, split from read.c.
11165
86c0bb4c
TT
111662020-03-26 Tom Tromey <tom@tromey.com>
11167
11168 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11169 Declare method.
11170 * dwarf2/read.c (read_attribute_value): Update.
11171 (dwarf2_per_objfile::read_line_string): Rename from
11172 read_indirect_line_string.
11173 (read_formatted_entries): Update.
11174
2ef46c2f
TT
111752020-03-26 Tom Tromey <tom@tromey.com>
11176
11177 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11178 variable.
11179
4f9c1eda
TT
111802020-03-26 Tom Tromey <tom@tromey.com>
11181
11182 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11183 const.
11184 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11185 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11186 parameter const.
11187
5a0e026f
TT
111882020-03-26 Tom Tromey <tom@tromey.com>
11189
11190 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11191 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11192 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11193 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11194
8844c11b
TT
111952020-03-26 Tom Tromey <tom@tromey.com>
11196
11197 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11198 file_names_size, file_full_name, file_file_name>: Use const.
11199 <file_name_at, file_names>: Add const overload.
11200 * dwarf2/line-header.c (line_header::file_file_name)
11201 (line_header::file_full_name): Update.
11202
c90ec28a
TT
112032020-03-26 Tom Tromey <tom@tromey.com>
11204
11205 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11206 (macro_start_file, consume_improper_spaces)
11207 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11208 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11209 (dwarf_decode_macros): Move to macro.c.
11210 * dwarf2/macro.c: New file.
11211 * dwarf2/macro.h: New file.
11212 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11213
4f44ae6c
TT
112142020-03-26 Tom Tromey <tom@tromey.com>
11215
11216 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11217 method.
11218 * dwarf2/section.c: New method. From
11219 read_indirect_string_at_offset_from.
11220 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11221 (read_indirect_string_at_offset_from): Move to section.c.
11222 (read_indirect_string_at_offset): Rewrite.
11223 (read_indirect_line_string_at_offset): Remove.
11224 (read_indirect_string, read_indirect_line_string)
11225 (dwarf_decode_macro_bytes): Update.
11226
a0194fa8
TT
112272020-03-26 Tom Tromey <tom@tromey.com>
11228
11229 * dwarf2/section.h (struct dwarf2_section_info)
11230 <overload_complaint>: Declare.
11231 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11232 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11233 Rename from dwarf2_section_buffer_overflow_complaint.
11234 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11235 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11236
3d27bbdb
TT
112372020-03-26 Tom Tromey <tom@tromey.com>
11238
11239 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11240 Declare.
11241 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11242 Move from read.c.
11243 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11244 to section.c.
11245
9eac9650
TT
112462020-03-26 Tom Tromey <tom@tromey.com>
11247
11248 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11249
bf80d710
TT
112502020-03-26 Tom Tromey <tom@tromey.com>
11251
11252 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11253 "builder".
11254 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11255 parameter.
11256 (dwarf_decode_macros): Update.
11257
0314b390
TT
112582020-03-26 Tom Tromey <tom@tromey.com>
11259
11260 * dwarf2/read.c (read_attribute_value): Update.
11261 (read_indirect_string_from_dwz): Move to dwz.c; change into
11262 method.
11263 (dwarf_decode_macro_bytes): Update.
11264 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11265 * dwarf2/dwz.c: New file.
11266 * Makefile.in (COMMON_SFILES): Add dwz.c.
11267
9fda78b6
TT
112682020-03-26 Tom Tromey <tom@tromey.com>
11269
11270 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11271 * dwarf2/read.c: Add include.
11272 * dwarf2/index-write.c: Add include.
11273 * dwarf2/index-cache.c: Add include.
11274 * dwarf2/dwz.h: New file.
11275
33aa3c10
TT
112762020-03-25 Tom Tromey <tom@tromey.com>
11277
11278 * compile/compile-object-load.c (get_out_value_type): Mention
11279 correct symbol name in error message.
11280
d503b685
HD
112812020-03-25 Hannes Domani <ssbssa@yahoo.de>
11282
11283 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11284
7b1eff95
TV
112852020-03-25 Tom de Vries <tdevries@suse.de>
11286
11287 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11288 * symmisc.c (dump_symtab_1): Print user and includes fields.
11289 (maintenance_info_symtabs): Same.
11290
dd895392
AB
112912020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11292
11293 PR gdb/25534
11294 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11295 (riscv_regcache_cooked_write): New function.
11296 (riscv_push_dummy_call): Use new function.
11297 (riscv_return_value): Likewise.
11298
5ab2fbf1
SM
112992020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11300
11301 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11302 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11303 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11304 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11305 * infrun.c (follow_fork): Likewise.
11306 (follow_fork_inferior): Likewise.
11307 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11308 * linux-nat.h (class linux_nat_target): Likewise.
11309 * remote.c (class remote_target) <follow_fork>: Likewise.
11310 (remote_target::follow_fork): Likewise.
11311 * target-delegates.c: Re-generate.
11312 * target.c (default_follow_fork): Likewise.
11313 (target_follow_fork): Likewise.
11314 * target.h (struct target_ops) <follow_fork>: Likewise.
11315 (target_follow_fork): Likewise.
11316
a64fafb5
TV
113172020-03-24 Tom de Vries <tdevries@suse.de>
11318
11319 * psymtab.c (maintenance_info_psymtabs): Print user field.
11320
fe26d3a3
TT
113212020-03-20 Tom Tromey <tromey@adacore.com>
11322
11323 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11324 const.
11325 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11326 const.
11327
c884cc46
SM
113282020-03-20 Simon Marchi <simon.marchi@efficios.com>
11329
11330 * ptrace.m4: Don't check for ptrace declaration.
11331 * config.in: Re-generate.
11332 * configure: Re-generate.
11333 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11334 not defined.
11335
1ff700c2
KR
113362020-03-20 Kamil Rytarowski <n54@gmx.com>
11337
11338 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11339 `PTRACE_TYPE_RET'.
11340 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11341 * sparc-nat.c (gdb_ptrace): Likewise.
11342 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11343
f7d4f0b1
TT
113442020-03-20 Tom Tromey <tromey@adacore.com>
11345
11346 * c-exp.y (lex_one_token): Fix assert.
11347
f67210ff
TT
113482020-03-20 Tom Tromey <tromey@adacore.com>
11349
11350 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11351 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11352 strncpy call.
11353
1773be9e
TT
113542020-03-20 Tom Tromey <tromey@adacore.com>
11355
11356 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11357
70304be9
TT
113582020-03-20 Tom Tromey <tromey@adacore.com>
11359
11360 * ada-valprint.c (print_variant_part): Remove parameters; switch
11361 to value-based API.
11362 (print_field_values): Likewise.
11363 (ada_val_print_struct_union): Likewise.
11364 (ada_value_print_1): Update.
11365
9faa006d
KR
113662020-03-20 Kamil Rytarowski <n54@gmx.com>
11367
11368 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11369 nbsd_nat_target instead of inf_ptrace_target.
11370 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11371 nbsd_nat_target.
11372
4a90f062
KR
113732020-03-20 Kamil Rytarowski <n54@gmx.com>
11374
11375 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11376 it to the ptrace call.
11377 * (store_registers): Likewise.
11378
113792020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11380
11381 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11382 it to the ptrace call.
11383 * (store_registers): Likewise.
11384
2d07da27
LM
113852020-03-19 Luis Machado <luis.machado@linaro.org>
11386
11387 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11388 valid, fetch vg value from ptrace.
11389
f09db380
KR
113902020-03-19 Kamil Rytarowski <n54@gmx.com>
11391 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11392 * inf-ptrace.c: Likewise.
11393 * (gdb_ptrace): Add.
11394 * (inf_ptrace_target::resume): Update.
11395 * (inf_ptrace_target::xfer_partial): Likewise.
11396 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11397 * (inf_ptrace_peek_poke): Update.
11398
fcc7376e
KR
113992020-03-19 Kamil Rytarowski <n54@gmx.com>
11400
11401 * x86-bsd-nat.c (gdb_ptrace): New.
11402 * (x86bsd_dr_set): Add new argument `ptid'.
11403 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11404 x86bsd_dr_set_addr): Update.
11405
cada5fc9
AB
114062020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11407
11408 * remote.c (remote_target::process_stop_reply): Handle events for
11409 all threads differently.
11410
19a2740f
AB
114112020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11412
11413 * completer.c (completion_tracker::remove_completion): Define new
11414 function.
11415 * completer.h (completion_tracker::remove_completion): Declare new
11416 function.
11417 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11418 when adding a C++ function symbol.
11419
724fd9ba
AB
114202020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11421
11422 * completer.c (completion_tracker::completion_hash_entry): Define
11423 new class.
11424 (advance_to_filename_complete_word_point): Call
11425 recompute_lowest_common_denominator.
11426 (completion_tracker::completion_tracker): Call discard_completions
11427 to setup the hash table.
11428 (completion_tracker::discard_completions): Allow for being called
11429 from the constructor, pass new equal function, and element deleter
11430 when constructing the hash table. Initialise new class member
11431 variables.
11432 (completion_tracker::maybe_add_completion): Remove use of
11433 m_entries_vec, and store more information into m_entries_hash.
11434 (completion_tracker::recompute_lcd_visitor): New function, most
11435 content taken from...
11436 (completion_tracker::recompute_lowest_common_denominator):
11437 ...here, this now just visits each item in the hash calling the
11438 above visitor.
11439 (completion_tracker::build_completion_result): Remove use of
11440 m_entries_vec, call recompute_lowest_common_denominator.
11441 * completer.h (completion_tracker::have_completions): Remove use
11442 of m_entries_vec.
11443 (completion_tracker::completion_hash_entry): Declare new class.
11444 (completion_tracker::recompute_lowest_common_denominator): Change
11445 function signature.
11446 (completion_tracker::recompute_lcd_visitor): Declare new function.
11447 (completion_tracker::m_entries_vec): Delete.
11448 (completion_tracker::m_entries_hash): Initialize to NULL.
11449 (completion_tracker::m_lowest_common_denominator_valid): New
11450 member variable.
11451 (completion_tracker::m_lowest_common_denominator_max_length): New
11452 member variable.
11453
5a82b8a1
KR
114542020-03-17 Kamil Rytarowski <n54@gmx.com>
11455
11456 * regformats/regdef.h: Put reg in gdb namespace.
11457
fb516a69
KR
114582020-03-17 Kamil Rytarowski <n54@gmx.com>
11459
11460 * i386-bsd-nat.c (gdb_ptrace): New.
11461 * (i386bsd_fetch_inferior_registers,
11462 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11463 * (i386bsd_fetch_inferior_registers,
11464 i386bsd_store_inferior_registers) Use gdb_ptrace.
11465
1c0aa1fb
KR
114662020-03-17 Kamil Rytarowski <n54@gmx.com>
11467
11468 * amd64-bsd-nat.c (gdb_ptrace): New.
11469 * (amd64bsd_fetch_inferior_registers,
11470 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11471 * (amd64bsd_fetch_inferior_registers,
11472 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11473
5ccd2fb7
KR
114742020-03-17 Kamil Rytarowski <n54@gmx.com>
11475
11476 * user-regs.c (user_reg::read): Rename to...
11477 (user_reg::xread): ...this.
11478 * (append_user_reg): Rename argument `read' to `xread'.
11479 * (user_reg_add_builtin): Likewise.
11480 * (user_reg_add): Likewise.
11481 * (value_of_user_reg): Likewise.
11482
2108a63a
KR
114832020-03-17 Kamil Rytarowski <n54@gmx.com>
11484
11485 * sparc-nat.c (gdb_ptrace): New.
11486 * sparc-nat.c (sparc_fetch_inferior_registers)
11487 (sparc_store_inferior_registers) Remove obsolete comment.
11488 * sparc-nat.c (sparc_fetch_inferior_registers)
11489 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11490 * sparc-nat.c (sparc_fetch_inferior_registers)
11491 (sparc_store_inferior_registers) Use gdb_ptrace.
11492
a225c9a8
KR
114932020-03-17 Kamil Rytarowski <n54@gmx.com>
11494
11495 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11496 it to the ptrace call.
11497 * sh-nbsd-nat.c (store_registers): Likewise.
11498
98097623
KR
114992020-03-17 Kamil Rytarowski <n54@gmx.com>
11500
11501 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11502 nbsd_nat_target instead of inf_ptrace_target.
11503 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11504 nbsd_nat_target.
11505
9e38d619
KR
115062020-03-17 Kamil Rytarowski <n54@gmx.com>
11507
11508 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11509
a2ecbe9f
KR
115102020-03-17 Kamil Rytarowski <n54@gmx.com>
11511
11512 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11513 <sys/sysctl.h>.
11514 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11515
58990295
TV
115162020-03-17 Tom de Vries <tdevries@suse.de>
11517
11518 PR gdb/23710
11519 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11520 fields.
11521 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11522 fields.
11523 (process_imported_unit_die): Skip import of c++ CUs.
11524
771dd3a8
TT
115252020-03-16 Tom Tromey <tom@tromey.com>
11526
11527 * p-valprint.c (pascal_object_print_value): Initialize
11528 base_value.
11529
817a7585
AK
115302020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11531 Shahab Vahedi <shahab@synopsys.com>
11532
11533 * Makefile.in: Add arch/arc.o
11534 * configure.tgt: Likewise.
11535 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11536 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11537 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11538 * arc-tdep.h (arc_read_description): Add proto type.
11539 * arch/arc.c: New file.
11540 * arch/arc.h: Likewise.
11541 * features/Makefile: Replace old target descriptions with new.
11542 * features/arc-arcompact.c: Remove.
11543 * features/arc-arcompact.xml: Likewise.
11544 * features/arc-v2.c: Likewise
11545 * features/arc-v2.xml: Likewise
11546 * features/arc/aux-arcompact.xml: New file.
11547 * features/arc/aux-v2.xml: Likewise.
11548 * features/arc/core-arcompact.xml: Likewise.
11549 * features/arc/core-v2.xml: Likewise.
11550 * features/arc/aux-arcompact.c: Generate.
11551 * features/arc/aux-v2.c: Likewise.
11552 * features/arc/core-arcompact.c: Likewise.
11553 * features/arc/core-v2.c: Likewise.
11554 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11555
67430cd0
TT
115562020-03-16 Tom Tromey <tromey@adacore.com>
11557
11558 PR gdb/25663:
11559 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11560 putting value into bcache.
11561
30efb6c7
SM
115622020-03-16 Simon Marchi <simon.marchi@efficios.com>
11563
11564 PR gdb/21500
11565 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11566 to...
11567 (amd64_windows_init_abi_common): ... this. Don't set size of
11568 long type.
11569 (amd64_windows_init_abi): New function.
11570 (amd64_cygwin_init_abi): New function.
11571 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11572 the Cygwin OS ABI.
11573 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11574 comment.
11575
8db52437
SM
115762020-03-16 Simon Marchi <simon.marchi@efficios.com>
11577
11578 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11579 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11580 (pe_import_directory_entry): New struct type.
11581 (is_linked_with_cygwin_dll): New function.
11582 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11583 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11584 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11585
5982a56a
SM
115862020-03-16 Simon Marchi <simon.marchi@efficios.com>
11587
11588 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11589 i386_cygwin_core_osabi_sniffer.
11590
7a1998df
SM
115912020-03-16 Simon Marchi <simon.marchi@efficios.com>
11592
11593 * i386-cygwin-tdep.c: Rename to...
11594 * i386-windows-tdep.c: ... this.
11595 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11596 i386-windows-tdep.c.
11597 * configure.tgt: Likewise.
11598
053205cc
SM
115992020-03-16 Simon Marchi <simon.marchi@efficios.com>
11600
11601 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11602 * osabi.c (gdb_osabi_names): Add "Windows".
11603 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11604 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11605 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11606 i386_cygwin_osabi_sniffer.
11607 (_initialize_i386_cygwin_tdep): Register OS ABI
11608 GDB_OSABI_WINDOWS for i386.
11609 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11610 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11611 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11612 for x86-64.
11613 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11614 when the target matches '*-*-mingw*'.
11615
fe4b2ee6
SM
116162020-03-16 Simon Marchi <simon.marchi@efficios.com>
11617
11618 * defs.h (enum gdb_osabi): Move to...
11619 * osabi.h (enum gdb_osabi): ... here.
11620 * gdbarch.sh: Include osabi.h in gdbarch.h.
11621 * gdbarch.h: Re-generate.
11622
cb9b645d
SM
116232020-03-16 Simon Marchi <simon.marchi@efficios.com>
11624
11625 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11626 function.
11627 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11628
3293bbaf
TT
116292020-03-14 Tom Tromey <tom@tromey.com>
11630
11631 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11632 for C++.
11633 (c_type_print_modifier): Likewise. Add "language" parameter.
11634 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11635 (c_type_print_base_1): Update.
11636 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11637 constants.
11638 * type-stack.c (type_stack::insert): Handle tp_atomic and
11639 tp_restrict.
11640 (type_stack::follow_type_instance_flags): Likewise.
11641 (type_stack::follow_types): Likewise. Merge type-following code.
11642 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11643 (space_identifier, cv_with_space_id)
11644 (const_or_volatile_or_space_identifier_noopt)
11645 (const_or_volatile_or_space_identifier): Remove.
11646 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11647 rules.
11648 (ptr_operator, typebase): Update.
11649 (enum token_flag) <FLAG_C>: New constant.
11650 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11651 "_Atomic".
11652 (lex_one_token): Handle FLAG_C.
11653
154151a6
KR
116542020-03-14 Kamil Rytarowski <n54@gmx.com>
11655
11656 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11657 it to the ptrace call.
11658 * m68k-bsd-nat.c (store_registers): Likewise.
11659
bc107784
KR
116602020-03-14 Kamil Rytarowski <n54@gmx.com>
11661
11662 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11663 gdb_byte *.
11664 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11665 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11666 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11667
01a80117
KR
116682020-03-14 Kamil Rytarowski <n54@gmx.com>
11669
11670 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11671 nbsd_nat_target instead of inf_ptrace_target.
11672 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11673 nbsd_nat_target.
11674
f90280ca
KR
116752020-03-14 Kamil Rytarowski <n54@gmx.com>
11676
11677 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11678 register_t.
11679
6def66f1
KR
116802020-03-14 Kamil Rytarowski <n54@gmx.com>
11681
11682 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11683 it to the ptrace call.
11684 * alpha-bsd-nat.c (store_registers): Likewise.
11685
66eaca97
KR
116862020-03-14 Kamil Rytarowski <n54@gmx.com>
11687
11688 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11689 includes.
11690 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11691 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11692 fill_fpregset): Likewise.
11693
4fed520b
KR
116942020-03-14 Kamil Rytarowski <n54@gmx.com>
11695
11696 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11697 nbsd_nat_target instead of inf_ptrace_target.
11698 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11699 nbsd_nat_target.
11700
2190cf06
KR
117012020-03-14 Kamil Rytarowski <n54@gmx.com>
11702
11703 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11704 register_t.
11705
75c56d3d
KR
117062020-03-14 Kamil Rytarowski <n54@gmx.com>
11707
11708 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11709 it to the ptrace call.
11710 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11711 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11712 * arm-nbsd-nat.c (store_register): Likewise.
11713 * arm-nbsd-nat.c (store_regs): Likewise.
11714 * arm-nbsd-nat.c (store_fp_register): Likewise.
11715 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11716
6018d381
KR
117172020-03-14 Kamil Rytarowski <n54@gmx.com>
11718
11719 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11720 nbsd_nat_target instead of inf_ptrace_target.
11721 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11722 nbsd_nat_target.
11723
013f99f0
KR
117242020-03-14 Kamil Rytarowski <n54@gmx.com>
11725
11726 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11727 it to the ptrace call.
11728 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11729
12753073
KR
117302020-03-14 Kamil Rytarowski <n54@gmx.com>
11731
6227b330
KR
11732 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11733 it to the ptrace call.
11734 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11735
117362020-03-14 Kamil Rytarowski <n54@gmx.com>
11737
11738 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11739 gdb_byte *.
12753073
KR
11740 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11741
d5be5fa4
KR
117422020-03-14 Kamil Rytarowski <n54@gmx.com>
11743
11744 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11745 instead of inf_ptrace_target.
11746 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11747 nbsd_nat_target.
11748
8110f842
KR
117492020-03-14 Kamil Rytarowski <n54@gmx.com>
11750
11751 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11752 register_t.
11753
52feded7
KR
117542020-03-14 Kamil Rytarowski <n54@gmx.com>
11755
11756 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11757 register_t.
11758
25567eee
KR
117592020-03-14 Kamil Rytarowski <n54@gmx.com>
11760
11761 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11762 register_t.
11763
426a9c18
TT
117642020-03-13 Tom Tromey <tom@tromey.com>
11765
11766 * value.h (val_print): Don't declare.
11767 * valprint.h (val_print_array_elements)
11768 (val_print_scalar_formatted, generic_val_print): Don't declare.
11769 * valprint.c (generic_val_print_array): Take a struct value.
11770 (generic_val_print_ptr, generic_val_print_memberptr)
11771 (generic_val_print_bool, generic_val_print_int)
11772 (generic_val_print_char, generic_val_print_complex)
11773 (generic_val_print): Remove.
11774 (generic_value_print): Update.
11775 (do_val_print): Remove unused parameters. Don't call
11776 la_val_print.
11777 (val_print): Remove.
11778 (common_val_print): Update. Don't call value_check_printable.
11779 (val_print_scalar_formatted, val_print_array_elements): Remove.
11780 * rust-lang.c (rust_val_print): Remove.
11781 (rust_language_defn): Update.
11782 * p-valprint.c (pascal_val_print): Remove.
11783 (pascal_value_print_inner): Update.
11784 (pascal_object_print_val_fields, pascal_object_print_val):
11785 Remove.
11786 (pascal_object_print_static_field): Update.
11787 * p-lang.h (pascal_val_print): Don't declare.
11788 * p-lang.c (pascal_language_defn): Update.
11789 * opencl-lang.c (opencl_language_defn): Update.
11790 * objc-lang.c (objc_language_defn): Update.
11791 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11792 * m2-lang.h (m2_val_print): Don't declare.
11793 * m2-lang.c (m2_language_defn): Update.
11794 * language.h (struct language_defn) <la_val_print>: Remove.
11795 * language.c (unk_lang_value_print_inner): Rename. Change
11796 argument types.
11797 (unknown_language_defn, auto_language_defn): Update.
11798 * go-valprint.c (go_val_print): Remove.
11799 * go-lang.h (go_val_print): Don't declare.
11800 * go-lang.c (go_language_defn): Update.
11801 * f-valprint.c (f_val_print): Remove.
11802 * f-lang.h (f_value_print): Don't declare.
11803 * f-lang.c (f_language_defn): Update.
11804 * d-valprint.c (d_val_print): Remove.
11805 * d-lang.h (d_value_print): Don't declare.
11806 * d-lang.c (d_language_defn): Update.
11807 * cp-valprint.c (cp_print_value_fields)
11808 (cp_print_value_fields_rtti, cp_print_value): Remove.
11809 (cp_print_static_field): Update.
11810 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11811 (c_val_print_struct, c_val_print_union, c_val_print_int)
11812 (c_val_print_memberptr, c_val_print): Remove.
11813 * c-lang.h (c_val_print_array, cp_print_value_fields)
11814 (cp_print_value_fields_rtti): Don't declare.
11815 * c-lang.c (c_language_defn, cplus_language_defn)
11816 (asm_language_defn, minimal_language_defn): Update.
11817 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11818 (ada_val_print_enum): Take a struct value.
11819 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11820 (ada_val_print): Remove.
11821 (ada_value_print_1): Update.
11822 (printable_val_type): Remove.
11823 * ada-lang.h (ada_val_print): Don't declare.
11824 * ada-lang.c (ada_language_defn): Update.
11825
42331a1e
TT
118262020-03-13 Tom Tromey <tom@tromey.com>
11827
11828 * valprint.c (do_val_print): Update.
11829 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11830 a struct value.
11831 (value_to_value_object_no_release): Declare.
11832 * python/py-value.c (value_to_value_object_no_release): New
11833 function.
11834 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11835 struct value.
11836 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11837 function.
11838 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11839 a struct value.
11840 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11841 Declare.
11842 (gdbscm_apply_val_pretty_printer): Take a struct value.
11843 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11844 value.
11845 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11846 value.
11847 * extension-priv.h (struct extension_language_ops)
11848 <apply_val_pretty_printer>: Take a struct value.
11849 * cp-valprint.c (cp_print_value): Create a struct value.
11850 (cp_print_value): Update.
11851
3a916a97
TT
118522020-03-13 Tom Tromey <tom@tromey.com>
11853
11854 * ada-valprint.c (print_field_values): Call common_val_print.
11855
b59eac37
TT
118562020-03-13 Tom Tromey <tom@tromey.com>
11857
11858 * ada-valprint.c (val_print_packed_array_elements): Remove
11859 bitoffset and val parameters. Call common_val_print.
11860 (ada_val_print_string): Remove offset, address, and original_value
11861 parameters.
11862 (ada_val_print_array): Update.
11863 (ada_value_print_array): New function.
11864 (ada_value_print_1): Call it.
11865
03371129
TT
118662020-03-13 Tom Tromey <tom@tromey.com>
11867
11868 * ada-valprint.c (ada_value_print): Use common_val_print.
11869
2e088f8b
TT
118702020-03-13 Tom Tromey <tom@tromey.com>
11871
11872 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11873
39ef85a8
TT
118742020-03-13 Tom Tromey <tom@tromey.com>
11875
11876 * ada-valprint.c (ada_value_print_num): New function.
11877 (ada_value_print_1): Use it.
11878
b9fa6e07
TT
118792020-03-13 Tom Tromey <tom@tromey.com>
11880
11881 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11882
416595d6
TT
118832020-03-13 Tom Tromey <tom@tromey.com>
11884
11885 * ada-valprint.c (ada_value_print_ptr): New function.
11886 (ada_value_print_1): Use it.
11887
5b5e15ec
TT
118882020-03-13 Tom Tromey <tom@tromey.com>
11889
11890 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11891 call common_val_print.
11892 (ada_val_print_1): Update.
11893 (ada_value_print_1): New function.
11894 (ada_value_print_inner): Rewrite.
11895
fbf54e75
TT
118962020-03-13 Tom Tromey <tom@tromey.com>
11897
11898 * cp-valprint.c (cp_print_value_fields): Update.
11899 (cp_print_value): New function.
11900
64b653ca
TT
119012020-03-13 Tom Tromey <tom@tromey.com>
11902
11903 * m2-valprint.c (m2_value_print_inner): Use
11904 cp_print_value_fields.
11905 * cp-valprint.c (cp_print_value_fields): New function.
11906 * c-valprint.c (c_value_print_struct): New function.
11907 (c_value_print_inner): Use c_value_print_struct.
11908 * c-lang.h (cp_print_value_fields): Declare.
11909
6999f067
TT
119102020-03-13 Tom Tromey <tom@tromey.com>
11911
11912 * c-valprint.c (c_value_print_array): New function.
11913 (c_value_print_inner): Use it.
11914
ce80b8bd
TT
119152020-03-13 Tom Tromey <tom@tromey.com>
11916
11917 * c-valprint.c (c_value_print_memberptr): New function.
11918 (c_value_print_inner): Use it.
11919
2faac269
TT
119202020-03-13 Tom Tromey <tom@tromey.com>
11921
11922 * c-valprint.c (c_value_print_int): New function.
11923 (c_value_print_inner): Use it.
11924
da3e2c29
TT
119252020-03-13 Tom Tromey <tom@tromey.com>
11926
11927 * c-valprint.c (c_value_print_ptr): New function.
11928 (c_value_print_inner): Use it.
11929
50836231
TT
119302020-03-13 Tom Tromey <tom@tromey.com>
11931
11932 * c-valprint.c (c_value_print_inner): Rewrite.
11933
4f412b6e
TT
119342020-03-13 Tom Tromey <tom@tromey.com>
11935
11936 * valprint.c (generic_value_print_complex): New function.
11937 (generic_value_print): Use it.
11938
f5354008
TT
119392020-03-13 Tom Tromey <tom@tromey.com>
11940
11941 * valprint.c (generic_val_print_float): Don't call
11942 val_print_scalar_formatted.
11943 (generic_val_print, generic_value_print): Update.
11944
3eec3b05
TT
119452020-03-13 Tom Tromey <tom@tromey.com>
11946
11947 * valprint.c (generic_value_print_char): New function
11948 (generic_value_print): Use it.
11949
fdddfccb
TT
119502020-03-13 Tom Tromey <tom@tromey.com>
11951
11952 * valprint.c (generic_value_print_int): New function.
11953 (generic_value_print): Use it.
11954
6dde7521
TT
119552020-03-13 Tom Tromey <tom@tromey.com>
11956
11957 * valprint.c (generic_value_print_bool): New function.
11958 (generic_value_print): Use it.
11959
4112d2e6
TT
119602020-03-13 Tom Tromey <tom@tromey.com>
11961
11962 * valprint.c (generic_val_print_func): Simplify.
11963 (generic_val_print, generic_value_print): Update.
11964
65786af6
TT
119652020-03-13 Tom Tromey <tom@tromey.com>
11966
11967 * valprint.c (generic_val_print_flags): Remove.
11968 (generic_val_print, generic_value_print): Update.
11969 (val_print_type_code_flags): Add original_value parameter.
11970
40f3ce18
TT
119712020-03-13 Tom Tromey <tom@tromey.com>
11972
11973 * valprint.c (generic_val_print): Update.
11974 (generic_value_print): Update.
11975 * valprint.c (generic_val_print_enum): Don't call
11976 val_print_scalar_formatted.
11977
2a5b130b
TT
119782020-03-13 Tom Tromey <tom@tromey.com>
11979
11980 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11981 * valprint.c (generic_value_print_ptr): New function.
11982
abc66ce9
TT
119832020-03-13 Tom Tromey <tom@tromey.com>
11984
11985 * valprint.c (generic_value_print): Rewrite.
11986
07a32858
TT
119872020-03-13 Tom Tromey <tom@tromey.com>
11988
11989 * p-valprint.c (pascal_object_print_value_fields)
11990 (pascal_object_print_value): New functions.
11991
64d64d3a
TT
119922020-03-13 Tom Tromey <tom@tromey.com>
11993
11994 * p-valprint.c (pascal_value_print_inner): Rewrite.
11995
6a95a1f5
TT
119962020-03-13 Tom Tromey <tom@tromey.com>
11997
11998 * f-valprint.c (f_value_print_innner): Rewrite.
11999
59fcdac6
TT
120002020-03-13 Tom Tromey <tom@tromey.com>
12001
12002 * m2-valprint.c (m2_print_unbounded_array): New overload.
12003 (m2_print_unbounded_array): Update.
12004 (m2_print_array_contents): Take a struct value.
12005 (m2_value_print_inner): Rewrite.
12006
d133c3e1
TT
120072020-03-13 Tom Tromey <tom@tromey.com>
12008
12009 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12010 (d_value_print_inner): New function.
12011 * d-lang.h (d_value_print_inner): Declare.
12012 * d-lang.c (d_language_defn): Use d_value_print_inner.
12013
23b0f06b
TT
120142020-03-13 Tom Tromey <tom@tromey.com>
12015
12016 * go-valprint.c (go_value_print_inner): New function.
12017 * go-lang.h (go_value_print_inner): Declare.
12018 * go-lang.c (go_language_defn): Use go_value_print_inner.
12019
5f56f7cb
TT
120202020-03-13 Tom Tromey <tom@tromey.com>
12021
12022 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12023 API.
12024 (rust_val_print): Rewrite.
12025 (rust_value_print_inner): New function, from rust_val_print.
12026 (rust_language_defn): Use rust_value_print_inner.
12027
26792ee0
TT
120282020-03-13 Tom Tromey <tom@tromey.com>
12029
12030 * ada-valprint.c (ada_value_print_inner): New function.
12031 * ada-lang.h (ada_value_print_inner): Declare.
12032 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12033
24051bbe
TT
120342020-03-13 Tom Tromey <tom@tromey.com>
12035
12036 * f-valprint.c (f_value_print_innner): New function.
12037 * f-lang.h (f_value_print_innner): Declare.
12038 * f-lang.c (f_language_defn): Use f_value_print_innner.
12039
c0941be6
TT
120402020-03-13 Tom Tromey <tom@tromey.com>
12041
12042 * p-valprint.c (pascal_value_print_inner): New function.
12043 * p-lang.h (pascal_value_print_inner): Declare.
12044 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12045
62c4663d
TT
120462020-03-13 Tom Tromey <tom@tromey.com>
12047
12048 * m2-valprint.c (m2_value_print_inner): New function.
12049 * m2-lang.h (m2_value_print_inner): Declare.
12050 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12051
62182190
TT
120522020-03-13 Tom Tromey <tom@tromey.com>
12053
12054 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12055 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12056 * c-valprint.c (c_value_print_inner): New function.
12057 * c-lang.h (c_value_print_inner): Declare.
12058 * c-lang.c (c_language_defn, cplus_language_defn)
12059 (asm_language_defn, minimal_language_defn): Use
12060 c_value_print_inner.
12061
1e592a8a
TT
120622020-03-13 Tom Tromey <tom@tromey.com>
12063
12064 * p-valprint.c (pascal_object_print_value_fields): Now static.
12065 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12066
7fe471e9
TT
120672020-03-13 Tom Tromey <tom@tromey.com>
12068
12069 * c-valprint.c (c_val_print_array): Simplify.
12070
d121c6ce
TT
120712020-03-13 Tom Tromey <tom@tromey.com>
12072
12073 * valprint.c (value_print_array_elements): New function.
12074 * valprint.h (value_print_array_elements): Declare.
12075
4dba70ee
TT
120762020-03-13 Tom Tromey <tom@tromey.com>
12077
12078 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12079 * mips-tdep.c (mips_print_register): Use
12080 value_print_scalar_formatted.
12081
4f9ae810
TT
120822020-03-13 Tom Tromey <tom@tromey.com>
12083
12084 * valprint.h (value_print_scalar_formatted): Declare.
12085 * valprint.c (value_print_scalar_formatted): New function.
12086
156bfec9
TT
120872020-03-13 Tom Tromey <tom@tromey.com>
12088
12089 * valprint.h (generic_value_print): Declare.
12090 * valprint.c (generic_value_print): New function.
12091
2b4e573d
TT
120922020-03-13 Tom Tromey <tom@tromey.com>
12093
12094 * valprint.c (do_val_print): Call la_value_print_inner, if
12095 available.
12096 * rust-lang.c (rust_language_defn): Update.
12097 * p-lang.c (pascal_language_defn): Update.
12098 * opencl-lang.c (opencl_language_defn): Update.
12099 * objc-lang.c (objc_language_defn): Update.
12100 * m2-lang.c (m2_language_defn): Update.
12101 * language.h (struct language_defn) <la_value_print_inner>: New
12102 member.
12103 * language.c (unknown_language_defn, auto_language_defn): Update.
12104 * go-lang.c (go_language_defn): Update.
12105 * f-lang.c (f_language_defn): Update.
12106 * d-lang.c (d_language_defn): Update.
12107 * c-lang.c (c_language_defn, cplus_language_defn)
12108 (asm_language_defn, minimal_language_defn): Update.
12109 * ada-lang.c (ada_language_defn): Update.
12110
a1f6a07c
TT
121112020-03-13 Tom Tromey <tom@tromey.com>
12112
12113 * c-valprint.c (c_value_print): Use common_val_print.
12114
410cf315
TT
121152020-03-13 Tom Tromey <tom@tromey.com>
12116
12117 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12118
72a45c93
TT
121192020-03-13 Tom Tromey <tom@tromey.com>
12120
12121 * f-valprint.c (f77_print_array_1, f_val_print): Use
12122 common_val_print.
12123
040f66bd
TT
121242020-03-13 Tom Tromey <tom@tromey.com>
12125
12126 * riscv-tdep.c (riscv_print_one_register_info): Use
12127 common_val_print.
12128
a6e05a6c
TT
121292020-03-13 Tom Tromey <tom@tromey.com>
12130
12131 * mi/mi-main.c (output_register): Use common_val_print.
12132
3444c526
TT
121332020-03-13 Tom Tromey <tom@tromey.com>
12134
12135 * infcmd.c (default_print_one_register_info): Use
12136 common_val_print.
12137
c2a44efe
TT
121382020-03-13 Tom Tromey <tom@tromey.com>
12139
12140 * valprint.h (common_val_print_checked): Declare.
12141 * valprint.c (common_val_print_checked): New function.
12142 * stack.c (print_frame_arg): Use common_val_print_checked.
12143
b0c26e99
TT
121442020-03-13 Tom Tromey <tom@tromey.com>
12145
12146 * valprint.c (do_val_print): New function, from val_print.
12147 (val_print): Use do_val_print.
12148 (common_val_print): Use do_val_print.
12149
ce3acbe9
TT
121502020-03-13 Tom Tromey <tom@tromey.com>
12151
12152 * valprint.c (value_print): Use scoped_value_mark.
12153
96c7f873
TV
121542020-03-13 Tom de Vries <tdevries@suse.de>
12155
12156 PR symtab/25646
12157 * psymtab.c (partial_symtab::partial_symtab): Don't set
12158 globals_offset and statics_offset. Push element onto
12159 current_global_psymbols and current_static_psymbols stacks.
12160 (concat): New function.
12161 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12162 element from current_global_psymbols and current_static_psymbols
12163 stacks. Concat popped elements to global_psymbols and
12164 static_symbols.
12165 (add_psymbol_to_list): Use current_global_psymbols and
12166 current_static_psymbols stacks.
12167 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12168 current_static_psymbols fields.
12169
6ba0a321
CB
121702020-03-12 Christian Biesinger <cbiesinger@google.com>
12171
12172 * corelow.c (sniff_core_bfd): Remove.
12173 (class core_target) <m_core_vec>: Remove.
12174 (core_target::core_target): Update.
12175 (core_file_fns): Remove.
12176 (deprecated_add_core_fns): Remove.
12177 (default_core_sniffer): Remove.
12178 (sniff_core_bfd): Remove.
12179 (default_check_format): Remove.
12180 (gdb_check_format): Remove.
12181 (core_target_open): Update.
12182 (core_target::get_core_register_section): Update.
12183 (get_core_registers_cb): Update.
12184 (core_target::fetch_registers): Update.
12185 * gdbcore.h (struct core_fns): Remove.
12186 (deprecated_add_core_fns): Remove.
12187 (default_core_sniffer): Remove.
12188 (default_check_format): Remove.
12189
227031b2
TT
121902020-03-12 Tom Tromey <tom@tromey.com>
12191
12192 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12193 CORE_ADDR.
12194 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12195
53807e9f
TT
121962020-03-12 Tom Tromey <tom@tromey.com>
12197
12198 * remote.c (remote_target::download_tracepoint)
12199 (remote_target::enable_tracepoint)
12200 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12201 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12202 sprintf_vma.
12203
64f25102
TT
122042020-03-12 Tom Tromey <tom@tromey.com>
12205
12206 * symfile-mem.c: Update CORE_ADDR size assert.
12207
272cd5a3
SM
122082020-03-12 Simon Marchi <simon.marchi@efficios.com>
12209
12210 * selftest.m4: Move to gdbsupport/.
12211 * acinclude.m4: Update path to selftest.m4.
12212
74cd3f9d
SM
122132020-03-12 Simon Marchi <simon.marchi@efficios.com>
12214
12215 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12216 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12217 gdbarch-selfselftests.c and selftest-arch.c.
12218 (SUBDIR_UNITTESTS_OBS): Rename to...
12219 (SELFTESTS_OBS): ... this.
12220 (COMMON_SFILES): Remove disasm-selftests.c and
12221 gdbarch-selftests.c.
12222 * configure.ac: Don't add selftest-arch.{c,o} to
12223 CONFIG_{SRCS,OBS}.
12224 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12225 preprocessor conditions.
12226
db6878ac
SM
122272020-03-12 Simon Marchi <simon.marchi@efficios.com>
12228
12229 * configure.ac: Don't source bfd/development.sh.
12230 * selftest.m4: Modify comment.
12231 * configure: Re-generate.
12232
4d696a5c
SM
122332020-03-12 Simon Marchi <simon.marchi@efficios.com>
12234
12235 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12236 not "true" or "false".
12237 * configure: Re-generate.
12238
8dd8e1c7
CB
122392020-03-12 Christian Biesinger <cbiesinger@google.com>
12240
12241 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12242 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12243 renamed to arm_nbsd_supply_gregset.
12244 (fetch_register): Update to call arm_nbsd_supply_gregset.
12245 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12246 (arm_netbsd_nat_target::fetch_registers): Update.
12247 (fetch_elfcore_registers): Removed.
12248 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12249 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12250 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12251 not require NetBSD system headers.
12252 (arm_nbsd_regset): New struct.
12253 (arm_nbsd_iterate_over_regset_sections): New function.
12254 (arm_netbsd_init_abi_common): Updated to call
12255 set_gdbarch_iterate_over_regset_sections.
12256 * arm-nbsd-tdep.h: New file.
12257
dd69bf7a
KB
122582020-03-11 Kevin Buettner <kevinb@redhat.com>
12259
12260 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12261 recursion.
12262
a0761e34
SM
122632020-03-11 Simon Marchi <simon.marchi@efficios.com>
12264
12265 * configure: Re-generate.
12266
e7a82140
TT
122672020-03-11 Tom Tromey <tromey@adacore.com>
12268
12269 * ada-typeprint.c (print_choices): Fix comment.
12270
dcc050c8
AB
122712020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12272
12273 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12274 previous item in the list, when the list has no items.
12275
1c33af77
TV
122762020-03-11 Tom de Vries <tdevries@suse.de>
12277
12278 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12279 PROP_LOCLIST handling code.
12280
8c95582d
AB
122812020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12282
12283 * buildsym-legacy.c (record_line): Pass extra parameter to
12284 record_line.
12285 * buildsym.c (buildsym_compunit::record_line): Take an extra
12286 parameter, reduce duplication in the line table, and record the
12287 is_stmt flag in the line table.
12288 * buildsym.h (buildsym_compunit::record_line): Add extra
12289 parameter.
12290 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12291 non-statement lines.
12292 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12293 this to the symtab builder.
12294 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12295 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12296 through to dwarf_record_line_1.
12297 * infrun.c (process_event_stop_test): When stepping, don't stop at
12298 a non-statement instruction, and only refresh the step info when
12299 we land in the middle of a line's range. Also add an extra
12300 comment.
12301 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12302 field.
12303 * record-btrace.c (btrace_find_line_range): Only record lines
12304 marked as is-statement.
12305 * stack.c (frame_show_address): Show the frame address if we are
12306 in a non-statement sal.
12307 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12308 (maintenance_print_one_line_table): Print a header for the is_stmt
12309 column, and include is_stmt information in the output.
12310 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12311 preference to non-statements.
12312 (find_pcs_for_symtab_line): Prefer is-statement entries.
12313 (find_line_common): Likewise.
12314 * symtab.h (struct linetable_entry): Add is_stmt field.
12315 (struct symtab_and_line): Likewise.
12316 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12317 arranging the line table.
12318
e4003a34
TV
123192020-03-07 Tom de Vries <tdevries@suse.de>
12320
12321 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12322 DIE.
12323
e8932576
TT
123242020-03-07 Tom Tromey <tom@tromey.com>
12325
12326 * valops.c (value_literal_complex): Remove obsolete comment.
12327 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12328 comment.
12329
29734269
SM
123302020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12331
12332 * infrun.h: Forward-declare thread_info.
12333 (set_step_info): Add thread_info parameter, add doc.
12334 * infrun.c (set_step_info): Add thread_info parameter, move doc
12335 to header.
12336 * infrun.c (process_event_stop_test): Pass thread to
12337 set_step_info call.
12338 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12339 set_step_info.
12340 (prepare_one_step): Add thread_info parameter, pass it to
12341 set_step_frame and prepare_one_step (recursive) call.
12342 (step_1): Pass thread to prepare_one_step call.
12343 (step_command_fsm::should_stop): Pass thread to
12344 prepare_one_step.
12345 (until_next_fsm): Pass thread to set_step_frame call.
12346 (finish_command): Pass thread to set_step_info call.
12347
b7d64b29
HD
123482020-03-06 Hannes Domani <ssbssa@yahoo.de>
12349
12350 * windows-tdep.c (windows_solib_create_inferior_hook):
12351 Check if inferior is running.
12352
09f2921c
TV
123532020-03-06 Tom de Vries <tdevries@suse.de>
12354
12355 * NEWS: Fix "the the".
12356 * ctfread.c: Same.
12357
fd760e79
TV
123582020-03-06 Tom de Vries <tdevries@suse.de>
12359
12360 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12361
20ea4a60
AB
123622020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12363
12364 * .dir-locals.el: Add a comment referencing the other copies of
12365 this file.
12366
0afbabf0
JB
123672020-03-05 John Baldwin <jhb@FreeBSD.org>
12368
12369 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12370 psargs.
12371
842806cb
TBA
123722020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12373
12374 * .gitattributes: New file.
12375
be1e3d3e
TT
123762020-03-04 Tom Tromey <tom@tromey.com>
12377
12378 * symmisc.c (print_symbol_bcache_statistics)
12379 (print_objfile_statistics): Update.
12380 * symfile.c (allocate_symtab): Use intern.
12381 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12382 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12383 macro_cache>: Remove.
12384 <string_cache>: New member.
12385 (struct objfile) <intern>: New methods.
12386 * elfread.c (elf_symtab_read): Use intern.
12387 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12388 (dwarf2_compute_name, dwarf2_physname)
12389 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12390 names.
12391 (guess_partial_die_structure_name): Update.
12392 (partial_die_info::fixup): Intern name.
12393 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12394 name.
12395 (dwarf2_name): Intern name. Update.
12396 * buildsym.c (buildsym_compunit::get_macro_table): Use
12397 string_cache.
12398
4e7625fd
TT
123992020-03-04 Tom Tromey <tom@tromey.com>
12400
12401 * jit.c (bfd_open_from_target_memory): Make "target" const.
12402 * corefile.c (gnutarget): Now const.
12403 * gdbcore.h (gnutarget): Now const.
12404
46f9f931
HD
124052020-03-04 Hannes Domani <ssbssa@yahoo.de>
12406
12407 * NEWS: Mention support for WOW64 processes.
12408 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12409 (amd64_windows_segment_register_p): Remove static.
12410 (_initialize_amd64_windows_nat): Update.
12411 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12412 * i386-windows-nat.c (context_offset): Update.
12413 (i386_mappings): Rename and remove static.
12414 (i386_windows_segment_register_p): Remove static.
12415 (_initialize_i386_windows_nat): Update.
12416 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12417 (STATUS_WX86_SINGLE_STEP): New macro.
12418 (EnumProcessModulesEx): New macro.
12419 (Wow64SuspendThread): New macro.
12420 (Wow64GetThreadContext): New macro.
12421 (Wow64SetThreadContext): New macro.
12422 (Wow64GetThreadSelectorEntry): New macro.
12423 (windows_set_context_register_offsets): Add static.
12424 (windows_set_segment_register_p): Likewise.
12425 (windows_add_thread): Adapt for WOW64 processes.
12426 (windows_fetch_one_register): Likewise.
12427 (windows_nat_target::fetch_registers): Likewise.
12428 (windows_store_one_register): Likewise.
12429 (display_selector): Likewise.
12430 (display_selectors): Likewise.
12431 (handle_exception): Likewise.
12432 (windows_continue): Likewise.
12433 (windows_nat_target::resume): Likewise.
12434 (windows_add_all_dlls): Likewise.
12435 (do_initial_windows_stuff): Likewise.
12436 (windows_nat_target::attach): Likewise.
12437 (windows_get_exec_module_filename): Likewise.
12438 (windows_nat_target::create_inferior): Likewise.
12439 (windows_xfer_siginfo): Likewise.
12440 (_initialize_loadable): Initialize Wow64SuspendThread,
12441 Wow64GetThreadContext, Wow64SetThreadContext,
12442 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12443 * windows-nat.h (windows_set_context_register_offsets):
12444 Remove declaration.
12445 (windows_set_segment_register_p): Likewise.
12446 (i386_windows_segment_register_p): Add declaration.
12447 (amd64_windows_segment_register_p): Likewise.
12448
440cf44e
LM
124492020-03-04 Luis Machado <luis.machado@linaro.org>
12450
12451 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12452 in "info registers" for AArch64/ARM.
12453
12454 The change caused "info registers" to not print GPR's.
12455
12456 gdb/ChangeLog:
12457
12458 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12459
12460 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12461 when reg->group is empty and reggroup is not.
12462
1009d92f
TT
124632020-03-03 Tom Tromey <tromey@adacore.com>
12464
12465 * dwarf2/frame.c (struct dwarf2_frame_cache)
12466 <checked_tailcall_bottom, entry_cfa_sp_offset,
12467 entry_cfa_sp_offset_p>: Remove members.
12468 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12469 (dwarf2_frame_prev_register): Don't call
12470 dwarf2_tailcall_sniffer_first.
12471 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12472 * frame-unwind.c (add_unwinder): New fuction.
12473 (frame_unwind_init): Use it. Add tailcall unwinder.
12474
5e5d66b6
AB
124752020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12476 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12477
12478 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12479 value should be printed as true.
12480
584cf46d
HD
124812020-03-03 Hannes Domani <ssbssa@yahoo.de>
12482
12483 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12484 (windows_init_abi): Set and use windows_so_ops.
12485
7b973adc
SDJ
124862020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12487
12488 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12489 when verifying if dealing with a convenience variable.
12490
bb7b70ab
LM
124912020-03-03 Luis Machado <luis.machado@linaro.org>
12492
12493 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12494
9822cb57
SM
124952020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12496
12497 * infrun.c (gdbarch_supports_displaced_stepping): New.
12498 (use_displaced_stepping): Break up conditions in smaller pieces.
12499 Use gdbarch_supports_displaced_stepping.
12500 (displaced_step_prepare_throw): Use
12501 gdbarch_supports_displaced_stepping.
12502
63e163f2
AB
125032020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12504
12505 * NEWS: Mention new behaviour of the history filename.
12506 * top.c (write_history_p): Add comment.
12507 (show_write_history_p): Add header comment, give a different
12508 message when history writing is on, but the history filename is
12509 empty.
12510 (history_filename): Add comment.
12511 (history_filename_empty): New function.
12512 (show_history_filename): Add header comment, give a different
12513 message when the filename is empty.
12514 (init_history): Compare history_filename against nullptr, and only
12515 read history if the filename is not empty.
12516 (set_history_filename): Add header comment, and only make
12517 non-empty filenames absolute.
12518 (init_main): Make the filename argument to 'set history filename'
12519 optional.
12520
81b86b97
CB
125212020-03-02 Christian Biesinger <cbiesinger@google.com>
12522
12523 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12524 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12525 (fetch_fp_register): Update.
12526 (fetch_fp_regs): Update.
12527 (store_fp_register): Update.
12528 (store_fp_regs): Update.
12529 (arm_netbsd_nat_target::read_description): New function.
12530 (fetch_elfcore_registers): Update.
12531
24ed6739
AB
125322020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12533
12534 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12535 general_thread if the stop reply is missing a thread-id.
12536 (remote_target::process_stop_reply): Use the first non-exited
12537 thread if the target didn't pass a thread-id.
12538 * infrun.c (do_target_wait): Move call to
12539 switch_to_inferior_no_thread to ....
12540 (do_target_wait_1): ... here.
12541
a84bb2a0
JT
125422020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12543
12544 * debuginfod-support.c: Include defs.h first.
12545
658dadf0
TV
125462020-02-28 Tom de Vries <tdevries@suse.de>
12547
12548 * symfile.c (set_initial_language): Use default language for lookup.
12549
4ebe4877
SM
125502020-02-28 Simon Marchi <simon.marchi@efficios.com>
12551
12552 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12553 reader variable, pass `this` to read_cutu_die_from_dwo.
12554
e5da1139
AM
125552020-02-27 Aaron Merey <amerey@redhat.com>
12556
12557 * source.c (open_source_file): Check for nullptr when computing
12558 srcpath.
12559
317f7127
TT
125602020-02-27 Tom Tromey <tromey@adacore.com>
12561
12562 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12563 member.
12564 (dwarf2_add_field): Don't update nfields.
12565 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12566
3104d9ee
AB
125672020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12568
12569 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12570 abs.
12571
b83470bf
TT
125722020-02-26 Tom Tromey <tom@tromey.com>
12573
12574 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12575 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12576 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12577 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12578 per_cu_data.
12579
edfe0a0c
TT
125802020-02-26 Tom Tromey <tom@tromey.com>
12581
12582 * dwarf2/index-write.c (psym_index_map): Change type.
12583 (add_address_entry_worker, write_one_signatured_type)
12584 (recursively_count_psymbols, recursively_write_psymbols)
12585 (class debug_names, psyms_seen_size, write_gdbindex)
12586 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12587
0d79cdc4
AM
125882020-02-26 Aaron Merey <amerey@redhat.com>
12589
12590 * Makefile.in: Handle optional debuginfod support.
12591 * NEWS: Update.
12592 * README: Add --with-debuginfod summary.
12593 * config.in: Regenerate.
12594 * configure: Regenerate.
12595 * configure.ac: Handle optional debuginfod support.
12596 * debuginfod-support.c: debuginfod helper functions.
12597 * debuginfod-support.h: Ditto.
12598 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12599 summary.
12600 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12601 when a dwz file cannot be found.
12602 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12603 debuginfo file cannot be found.
12604 * source.c (open_source_file): Query debuginfod servers when a
12605 source file cannot be found.
12606 * top.c (print_gdb_configuration): Include
12607 --{with,without}-debuginfod in the output.
12608
b65ce565
JG
126092020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12610
12611 * thread.c (thr_try_catch_cmd): Print thread name.
12612
d4c9a4f8
SM
126132020-02-26 Simon Marchi <simon.marchi@efficios.com>
12614
12615 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12616 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12617 dwarf2_fetch_die_type_sect_off): Move to...
12618 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12619 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12620 dwarf2_fetch_die_type_sect_off): ... here.
12621 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12622 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12623 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12624
0dce4280
TV
126252020-02-26 Tom de Vries <tdevries@suse.de>
12626
12627 PR gdb/25603
12628 * symfile.c (set_initial_language): Exit-early if
12629 language_mode == language_mode_manual.
12630
450a1bfc
SM
126312020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12632
12633 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12634 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12635 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12636
9e80cfa1
AB
126372020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12638
12639 * gdbtypes.c (create_array_type_with_stride): Handle negative
12640 array strides.
12641 * valarith.c (value_subscripted_rvalue): Likewise.
12642
09624f1f
LM
126432020-02-25 Luis Machado <luis.machado@linaro.org>
12644
12645 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12646
8cb5117c
SM
126472020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12648
12649 * loc.h (dwarf2_get_die_type): Move to...
12650 * read.h (dwarf2_get_die_type): ... here.
12651 * read.c (dwarf2_get_die_type): Move doc to header.
12652
c325c44e
JB
126532020-02-25 Joel Brobecker <brobecker@adacore.com>
12654
12655 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12656 'gnulib/Makefile.in' to the list.
12657
4ac93832
TT
126582020-02-24 Tom Tromey <tom@tromey.com>
12659
12660 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12661 Remove.
12662 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12663 XOBNEWVEC.
12664
197400e8
TT
126652020-02-24 Tom Tromey <tom@tromey.com>
12666
12667 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12668 New method.
12669 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12670 (dw2_do_instantiate_symtab, dw2_get_file_names)
12671 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12672
76935768
TT
126732020-02-24 Tom Tromey <tom@tromey.com>
12674
12675 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12676 make_scoped_restore.
12677 (dwarf2_psymtab::read_symtab): Don't clear
12678 reading_partial_symbols.
12679
a88ef40d
TV
126802020-02-24 Tom de Vries <tdevries@suse.de>
12681
12682 PR gdb/25592
12683 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12684
c9af6521
TV
126852020-02-24 Tom de Vries <tdevries@suse.de>
12686
12687 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12688 commands layout next/prev/regs.
12689
5707a07a
TT
126902020-02-22 Tom Tromey <tom@tromey.com>
12691
12692 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12693 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12694
3b0fb49e
TT
126952020-02-22 Tom Tromey <tom@tromey.com>
12696
12697 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12698
283be8bf
TT
126992020-02-22 Tom Tromey <tom@tromey.com>
12700
12701 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12702 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12703 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12704 * tui/tui.c (_initialize_tui): Add usage text.
12705
ca793b96
TT
127062020-02-22 Tom Tromey <tom@tromey.com>
12707
12708 * tui/tui-win.c (tui_set_focus_command)
12709 (tui_set_win_height_command): Use error_no_arg.
12710 (_initialize_tui_win): Update help text.
12711 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12712
432b5c40
TT
127132020-02-22 Tom Tromey <tom@tromey.com>
12714
12715 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12716 * tui/tui-disasm.h (struct tui_disasm_window)
12717 <display_start_addr>: Declare.
12718 * tui/tui-source.h (struct tui_source_window)
12719 <display_start_addr>: Declare.
12720 * tui/tui-winsource.h (struct tui_source_window_base)
12721 <show_source_line, display_start_addr>: New methods.
12722 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12723 Rename and move to protected section.
12724 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12725 (tui_source_window_base::do_erase_source_content): Update.
12726 (tui_source_window_base::show_source_line): Now a method.
12727 (tui_source_window_base::show_source_content)
12728 (tui_source_window_base::tui_source_window_base)
12729 (tui_source_window_base::rerender)
12730 (tui_source_window_base::refill)
12731 (tui_source_window_base::do_scroll_horizontal)
12732 (tui_source_window_base::set_is_exec_point_at)
12733 (tui_source_window_base::update_breakpoint_info)
12734 (tui_source_window_base::update_exec_info): Update.
12735 * tui/tui-source.c (tui_source_window::set_contents)
12736 (tui_source_window::showing_source_p)
12737 (tui_source_window::do_scroll_vertical)
12738 (tui_source_window::location_matches_p)
12739 (tui_source_window::line_is_displayed): Update.
12740 (tui_source_window::display_start_addr): New method.
12741 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12742 (tui_disasm_window::do_scroll_vertical)
12743 (tui_disasm_window::location_matches_p): Update.
12744 (tui_disasm_window::display_start_addr): New method.
12745
01b1af32
TT
127462020-02-22 Tom Tromey <tom@tromey.com>
12747
12748 * NEWS: Add entry for gdb.register_window_type.
12749 * tui/tui-layout.h (window_factory): New typedef.
12750 (tui_register_window): Declare.
12751 * tui/tui-layout.c (saved_tui_windows): New global.
12752 (tui_apply_current_layout): Use it.
12753 (tui_register_window): New function.
12754 * python/python.c (do_start_initialization): Call
12755 gdbpy_initialize_tui.
12756 (python_GdbMethods): Add "register_window_type" function.
12757 * python/python-internal.h (gdbpy_register_tui_window)
12758 (gdbpy_initialize_tui): Declare.
12759 * python/py-tui.c: New file.
12760 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12761
fc96d20b
TT
127622020-02-22 Tom Tromey <tom@tromey.com>
12763
12764 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12765
935c78c0
TT
127662020-02-22 Tom Tromey <tom@tromey.com>
12767
12768 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12769 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12770 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12771 (tui_set_win_focus_to): Move from tui-win.c.
12772
0240c8f1
TT
127732020-02-22 Tom Tromey <tom@tromey.com>
12774
12775 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12776 functions.
12777 (known_window_types): New global.
12778 (tui_get_window_by_name): Reimplement.
12779 (initialize_known_windows): New function.
12780 (validate_window_name): Rewrite.
12781 (_initialize_tui_layout): Call initialize_known_windows.
12782
fdb01f0c
TT
127832020-02-22 Tom Tromey <tom@tromey.com>
12784
12785 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12786 Remove constants.
12787 * tui/tui-winsource.h (struct tui_source_window_base)
12788 <tui_source_window_base>: Remove parameter.
12789 * tui/tui-winsource.c
12790 (tui_source_window_base::tui_source_window_base): Remove
12791 parameter.
12792 (tui_source_window_base::refill): Update.
12793 * tui/tui-stack.h (struct tui_locator_window)
12794 <tui_locator_window>: Update.
12795 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12796 Default the constructor.
12797 * tui/tui-regs.h (struct tui_data_item_window)
12798 <tui_data_item_window>: Default the constructor.
12799 (struct tui_data_window) <tui_data_window>: Likewise.
12800 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12801 Default the constructor.
12802 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12803 Default the constructor.
12804 <type>: Remove.
12805 (struct tui_win_info) <tui_win_info>: Default the constructor.
12806 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12807 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12808 Default the constructor.
12809
865a5aec
TT
128102020-02-22 Tom Tromey <tom@tromey.com>
12811
12812 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12813 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12814 * tui/tui-win.c (tui_resize_all): Don't call
12815 tui_delete_invisible_windows.
12816 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12817 done.
12818 (tui_set_layout): Update.
12819 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12820 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12821 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12822
e098d18c
TT
128232020-02-22 Tom Tromey <tom@tromey.com>
12824
12825 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12826 correctly.
12827
eb9c8874
TT
128282020-02-22 Tom Tromey <tom@tromey.com>
12829
12830 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12831
7eed1a8e
TT
128322020-02-22 Tom Tromey <tom@tromey.com>
12833
12834 * tui/tui-winsource.h (struct tui_source_window_iterator)
12835 <inner_iterator>: New etytypedef.
12836 <tui_source_window_iterator>: Take "end" parameter.
12837 <tui_source_window_iterator>: Take iterator.
12838 <operator*, advance>: Update.
12839 <m_iter>: Change type.
12840 <m_end>: New field.
12841 (struct tui_source_windows) <begin, end>: Update.
12842 * tui/tui-layout.c (tui_windows): New global.
12843 (tui_apply_current_layout): Clear tui_windows.
12844 (tui_layout_window::apply): Update tui_windows.
12845 * tui/tui-data.h (tui_windows): Declare.
12846 (all_tui_windows): Now inline function.
12847 (class tui_window_iterator, struct all_tui_windows): Remove.
12848
7c043ba6
TT
128492020-02-22 Tom Tromey <tom@tromey.com>
12850
12851 PR tui/17850:
12852 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12853 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12854 "height" argument.
12855 (class tui_layout_window) <get_sizes>: Likewise.
12856 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12857 argument.
12858 <get_sizes>: Add "height" argument.
12859 <m_vertical>: New field.
12860 * tui/tui-layout.c (tui_layout_split::clone): Update.
12861 (tui_layout_split::get_sizes): Add "height" argument.
12862 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12863 (tui_new_layout_command): Parse "-horizontal".
12864 (_initialize_tui_layout): Update help string.
12865 (tui_layout_split::specification): Add "-horizontal" when needed.
12866 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12867 argument.
12868 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12869 New methods.
12870
6bc56648
TT
128712020-02-22 Tom Tromey <tom@tromey.com>
12872
12873 * tui/tui-layout.h (enum tui_adjust_result): New.
12874 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12875 (class tui_layout_window) <adjust_size>: Return
12876 tui_adjust_result. Rewrite.
12877 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12878 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12879
c22fef7e
TT
128802020-02-22 Tom Tromey <tom@tromey.com>
12881
12882 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12883 parameter and return types.
12884 (class tui_layout_base) <specification>: Add "depth".
12885 (class tui_layout_window) <specification>: Add "depth".
12886 (class tui_layout_split) <specification>: Add "depth".
12887 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12888 and return types.
12889 (tui_new_layout_command): Parse sub-layouts.
12890 (_initialize_tui_layout): Update help string.
12891 (tui_layout_window::specification): Add "depth".
12892 (add_layout_command): Update.
12893
ee325b61
TT
128942020-02-22 Tom Tromey <tom@tromey.com>
12895
12896 * NEWS: Add "tui new-layout" item.
12897 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12898 Add new-layout command to help text.
12899 (validate_window_name): New function.
12900 (tui_new_layout_command): New function.
12901 (_initialize_tui_layout): Register "new-layout".
12902 (tui_layout_window::specification): New method.
12903 (tui_layout_window::specification): New method.
12904 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12905 method.
12906 (class tui_layout_window) <specification>: New method.
12907 (class tui_layout_split) <specification>: New method.
12908
416eb92d
TT
129092020-02-22 Tom Tromey <tom@tromey.com>
12910
12911 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12912 * tui/tui-win.c (window_name_completer): Update comment.
12913 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12914 Declare method.
12915 (class tui_layout_window) <replace_window>: Likewise.
12916 (class tui_layout_split) <replace_window>: Likewise.
12917 (tui_set_layout): Don't declare.
12918 (tui_set_initial_layout): Declare function.
12919 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12920 (asm_regs_layout): New globals.
12921 (tui_current_layout, show_layout): Remove.
12922 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12923 (find_layout, tui_apply_layout): New function.
12924 (layout_completer): Remove.
12925 (tui_next_layout): Reimplement.
12926 (tui_next_layout_command): New function.
12927 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12928 (tui_regs_layout): Reimplement.
12929 (tui_regs_layout_command): New function.
12930 (extract_display_start_addr): Rewrite.
12931 (next_layout, prev_layout): Remove.
12932 (tui_layout_window::replace_window): New method.
12933 (tui_layout_split::replace_window): New method.
12934 (destroy_layout): New function.
12935 (layout_list): New global.
12936 (add_layout_command): New function.
12937 (initialize_layouts): Update.
12938 (tui_layout_command): New function.
12939 (_initialize_tui_layout): Install "layout" commands.
12940 * tui/tui-data.h (enum tui_layout_type): Remove.
12941 (tui_current_layout): Don't declare.
12942
0dbc2fc7
TT
129432020-02-22 Tom Tromey <tom@tromey.com>
12944
12945 * tui/tui-regs.c (tui_reg_layout): Remove.
12946 (tui_reg_command): Use tui_regs_layout.
12947 * tui/tui-layout.h (tui_reg_command): Declare.
12948 * tui/tui-layout.c (tui_reg_command): New function.
12949
5afe342e
TT
129502020-02-22 Tom Tromey <tom@tromey.com>
12951
12952 * tui/tui.c (tui_rl_delete_other_windows): Call
12953 tui_remove_some_windows.
12954 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12955 Declare method.
12956 (class tui_layout_window) <remove_windows>: New method.
12957 (class tui_layout_split) <remove_windows>: Declare.
12958 (tui_remove_some_windows): Declare.
12959 * tui/tui-layout.c (tui_remove_some_windows): New function.
12960 (tui_layout_split::remove_windows): New method.
12961
427326a8
TT
129622020-02-22 Tom Tromey <tom@tromey.com>
12963
12964 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12965 * tui/tui-layout.h (tui_next_layout): Declare.
12966 * tui/tui-layout.c (tui_next_layout): New function.
12967
3fe12b6d
TT
129682020-02-22 Tom Tromey <tom@tromey.com>
12969
12970 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12971 correct coordinates.
12972
59b8b5d2
TT
129732020-02-22 Tom Tromey <tom@tromey.com>
12974
12975 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12976 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12977 DATA_WIN case.
12978
2a3d458b
TT
129792020-02-22 Tom Tromey <tom@tromey.com>
12980
12981 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12982 TUI_DISASM_WIN, not tui_win_list.
12983
3f0cbb04
TT
129842020-02-22 Tom Tromey <tom@tromey.com>
12985
12986 * valprint.c (generic_val_print_enum_1)
12987 (val_print_type_code_flags): Style member names.
12988 * rust-lang.c (val_print_struct, rust_print_enum)
12989 (rust_print_struct_def, rust_internal_print_type): Style member
12990 names.
12991 * p-valprint.c (pascal_object_print_value_fields): Style member
12992 names. Only call fprintf_symbol_filtered for static members.
12993 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12994 * f-valprint.c (f_val_print): Style member names.
12995 * f-typeprint.c (f_type_print_base): Style member names.
12996 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12997 call fprintf_symbol_filtered for static members.
12998 (cp_print_class_member): Style member names.
12999 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13000 member names.
13001 * ada-valprint.c (ada_print_scalar): Style enum names.
13002 (ada_val_print_enum): Likewise.
13003 * ada-typeprint.c (print_enum_type): Style enum names.
13004
d4d947ae
TT
130052020-02-21 Tom Tromey <tom@tromey.com>
13006
13007 * psympriv.h (struct partial_symtab): Update comment.
13008
e94e944b
TT
130092020-02-21 Tom Tromey <tromey@adacore.com>
13010
13011 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13012 type is CORE_ADDR.
13013
1eb73179
TV
130142020-02-21 Tom de Vries <tdevries@suse.de>
13015
13016 PR gdb/25534
13017 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13018 if dependencies[i]->user != NULL.
13019
4f180d53
AT
130202020-02-21 Ali Tamur <tamur@google.com>
13021
13022 * dwarf2/read.c (dwarf2_name): Add null check.
13023
22b6cd70
TT
130242020-02-20 Tom Tromey <tom@tromey.com>
13025
13026 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13027 ">=", in binary search.
13028 (dwarf2_find_containing_comp_unit): New overload.
13029 (run_test): New self-test.
13030 (_initialize_dwarf2_read): Register new test.
13031
bd0cf5a6
NC
130322020-02-20 Nelson Chu <nelson.chu@sifive.com>
13033
13034 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13035 * riscv-tdep.h: Likewise.
13036 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13037 rv32-only CSR.
13038 * features/riscv/64bit-csr.xml: Regenerated.
13039
3f702acd
SDJ
130402020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13041 Tom Tromey <tom@tromey.com>
13042
13043 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13044 of 'fputc_unfiltered'.
13045 (putchar_unfiltered): Call 'fputc_unfiltered'.
13046 (fputc_unfiltered): Call 'fputs_unfiltered'.
13047
d13c7322
AB
130482020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13049
13050 * config.in: Regenerate.
13051 * configure: Regenerate.
13052 * configure.ac: Add --with-python-libdir option.
13053 * main.c: Use WITH_PYTHON_LIBDIR.
13054
869d8950
TT
130552020-02-19 Tom Tromey <tom@tromey.com>
13056
13057 * symtab.c (general_symbol_info::compute_and_set_names): Use
13058 obstack_strndup. Simplify call to symbol_set_demangled_name.
13059
298e9637
SM
130602020-02-19 Simon Marchi <simon.marchi@efficios.com>
13061
13062 * dwarf2/read.c (allocate_signatured_type_table,
13063 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13064 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13065 Remove objfile parameter, update all callers.
13066
08410482
DE
130672020-02-19 Doug Evans <dje@google.com>
13068
13069 PR rust/25535
13070 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13071 rust_enum_variant calculation.
13072
dfdeeca1
TT
130732020-02-19 Tom Tromey <tromey@adacore.com>
13074
13075 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13076
2ef5453b
TT
130772020-02-19 Tom Tromey <tromey@adacore.com>
13078
13079 * ada-lang.c (cache_symbol): Use obstack_strdup.
13080
9f1528a1
AB
130812020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13082
13083 * configure: Regenerate.
13084
d3c22fa8
TT
130852020-02-19 Tom Tromey <tromey@adacore.com>
13086
13087 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13088 NULL check.
13089
bf84f706
MR
130902020-02-19 Maciej W. Rozycki <macro@wdc.com>
13091
13092 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13093
d1c9b20f
AB
130942020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13095
13096 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13097 if GDBSERVER is not defined.
13098 (riscv_tdesc_cache): Likewise, also store const target_desc.
13099 (STATIC_IN_GDB): Define.
13100 (riscv_create_target_description): Update declaration with
13101 STATIC_IN_GDB.
13102 (riscv_lookup_target_description): New function, only define if
13103 GDBSERVER is not defined.
13104 * arch/riscv.h (riscv_create_target_description): Declare only
13105 when GDBSERVER is defined.
13106 (riscv_lookup_target_description): New declaration when GDBSERVER
13107 is not defined.
13108 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13109 (riscv_linux_read_features): ...this, and return
13110 riscv_gdbarch_features instead of target_desc.
13111 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13112 (riscv_linux_read_description): Rename to...
13113 (riscv_linux_read_features): ...this.
13114 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13115 Update to use riscv_gdbarch_features and
13116 riscv_lookup_target_description.
13117 * riscv-tdep.c (riscv_find_default_target_description): Use
13118 riscv_lookup_target_description instead of
13119 riscv_create_target_description.
13120
373d7ac0
SM
131212020-02-18 Simon Marchi <simon.marchi@efficios.com>
13122
13123 * valprint.c (generic_val_print_enum_1): When printing a flag
13124 enum with value 0 and there is no enumerator with value 0, print
13125 just "0" instead of "(unknown: 0x0)".
13126
b29a2df0
SM
131272020-02-18 Simon Marchi <simon.marchi@efficios.com>
13128
13129 * valprint.c (generic_val_print_enum_1): Print unknown part of
13130 flag enum in hex.
13131
6740f0cc
SM
131322020-02-18 Simon Marchi <simon.marchi@efficios.com>
13133
13134 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13135 flag enums to contain duplicate enumerators.
13136 * valprint.c (generic_val_print_enum_1): Update comment.
13137
edd45eb0
SM
131382020-02-18 Simon Marchi <simon.marchi@efficios.com>
13139
13140 * dwarf2/read.c: Include "count-one-bits.h".
13141 (update_enumeration_type_from_children): If an enumerator has
13142 multiple bits set, don't treat the enumeration as a "flag enum".
13143 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13144 of flag enums have 0 or 1 bit set.
13145
6d0cf446
BE
131462020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13147
13148 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13149 conversion.
13150 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13151 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13152 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13153 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13154 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13155
7001c1b7
SM
131562020-02-18 Simon Marchi <simon.marchi@efficios.com>
13157
13158 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13159
fdb61c6c
SM
131602020-02-14 Simon Marchi <simon.marchi@efficios.com>
13161
13162 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13163 displaced_step_closure_up.
13164 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13165 (struct displaced_step_closure_up):
13166 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13167 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13168 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13169 Likewise.
13170 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13171 * gdbarch.c, gdbarch.h: Re-generate.
13172 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13173 displaced_step_closure_up.
13174 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13175 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13176 * infrun.h (displaced_step_closure_up): New type alias.
13177 (struct displaced_step_inferior_state) <step_closure>: Change
13178 type to displaced_step_closure_up.
13179 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13180 displaced_step_closure_up.
13181 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13182
a4a38eb4
TT
131832020-02-14 Tom Tromey <tom@tromey.com>
13184
13185 * minidebug.c (gnu_debug_key): New global.
13186 (find_separate_debug_file_in_section): Use it.
13187
e8217e61
SM
131882020-02-14 Simon Marchi <simon.marchi@efficios.com>
13189
13190 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13191 std::unique_ptr.
13192 * gdbarch.c: Re-generate.
13193 * gdbarch.h: Re-generate.
13194 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13195 change.
13196 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13197 type to std::unique_ptr.
13198 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13199 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13200 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13201 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13202 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13203 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13204 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13205 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13206 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13207
d8d83535
SM
132082020-02-14 Simon Marchi <simon.marchi@efficios.com>
13209
13210 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13211 std::unique_ptr.
13212 (displaced_step_clear): Rename to...
13213 (displaced_step_reset): ... this. Just call displaced->reset ().
13214 (displaced_step_clear_cleanup): Rename to...
13215 (displaced_step_reset_cleanup): ... this.
13216 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13217 (displaced_step_fixup): Likewise.
13218 (resume_1): Likewise.
13219 (handle_inferior_event): Restore child's memory before calling
13220 displaced_step_fixup on the parent.
13221 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13222 to std::unique_ptr.
13223 <step_closure>: Change type to std::unique_ptr.
13224
5f661e03
SM
132252020-02-14 Simon Marchi <simon.marchi@efficios.com>
13226
13227 * arm-tdep.c: Include count-one-bits.h.
13228 (cleanup_block_store_pc): Use count_one_bits.
13229 (cleanup_block_load_pc): Use count_one_bits.
13230 (arm_copy_block_xfer): Use count_one_bits.
13231 (thumb2_copy_block_xfer): Use count_one_bits.
13232 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13233 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13234 (thumb_get_next_pcs_raw): Use count_one_bits.
13235 (arm_get_next_pcs_raw): Use count_one_bits_l.
13236 * arch/arm.c (bitcount): Remove.
13237 * arch/arm.h (bitcount): Remove.
13238
8084e579
TT
132392020-02-14 Tom Tromey <tromey@adacore.com>
13240
13241 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13242 Update.
13243 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13244 * dwarf2/loc.c (call_site_find_chain_1): Return
13245 unique_xmalloc_ptr.
13246 (call_site_find_chain): Likewise.
13247
258bf0ee
RB
132482020-02-14 Richard Biener <rguenther@suse.de>
13249
13250 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13251 on expression with division operators.
13252
f98a8458
AKS
132532020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13254
13255 * MAINTAINERS (Write After Approval): Adding myself.
13256
d1437c0e
TT
132572020-02-12 Tom Tromey <tom@tromey.com>
13258
13259 * event-loop.c (event_data, gdb_event, event_handler_func):
13260 Remove.
13261
3d4560f7
TT
132622020-02-12 Tom Tromey <tom@tromey.com>
13263
13264 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13265 (dwarf2_frame_objfile_data): Add comment.
13266 (find_comp_unit, set_comp_unit): New functions.
13267 (dwarf2_frame_find_fde): Use find_comp_unit.
13268 (dwarf2_build_frame_info): Use set_comp_unit.
13269
21982304
TT
132702020-02-12 Tom Tromey <tom@tromey.com>
13271
13272 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13273 (comp_unit): Don't initialize objfile.
13274 (execute_cfa_program): Add text_offset parameter.
13275 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13276 (dwarf2_frame_cache): Update.
13277 (dwarf2_build_frame_info): Don't set "objfile" member.
13278
4debb237
TT
132792020-02-12 Tom Tromey <tom@tromey.com>
13280
13281 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13282 (decode_frame_entry): Likewise.
13283 (dwarf2_build_frame_info): Update.
13284
0d404d44
TT
132852020-02-12 Tom Tromey <tom@tromey.com>
13286
13287 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13288 (decode_frame_entry_1): Use the comp_unit obstack.
13289
a7a3ae5c
TT
132902020-02-12 Tom Tromey <tom@tromey.com>
13291
13292 * dwarf2/frame.c (struct comp_unit): Add initializers and
13293 constructor.
13294 (dwarf2_frame_objfile_data): Store a comp_unit.
13295 (dwarf2_frame_find_fde): Update.
13296 (dwarf2_build_frame_info): Use "new".
13297
a9d65418
TT
132982020-02-12 Tom Tromey <tom@tromey.com>
13299
13300 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13301 (dwarf2_fde_table): Typedef for std::vector.
13302 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13303 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13304 (decode_frame_entry): Update.
13305 (dwarf2_build_frame_info): Use "new".
13306
7559c217
CB
133072020-02-12 Christian Biesinger <cbiesinger@google.com>
13308
13309 * arm-tdep.c (arm_gdbarch_init): Update.
13310 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13311 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13312 have_neon, is_m>: Change to bool.
13313
aeefc73c
CB
133142020-02-12 Christian Biesinger <cbiesinger@google.com>
13315
13316 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13317
d27b8e5f
TT
133182020-02-12 Tom Tromey <tom@tromey.com>
13319
13320 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13321
cd5900f3
HD
133222020-02-12 Hannes Domani <ssbssa@yahoo.de>
13323
13324 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13325 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13326
f056b22b
TT
133272020-02-11 Tom Tromey <tom@tromey.com>
13328
13329 * psymtab.h: Update comment.
13330
f92ff6b5
TT
133312020-02-11 Tom Tromey <tom@tromey.com>
13332
13333 * gdb_obstack.h (struct auto_obstack): Use
13334 DISABLE_COPY_AND_ASSIGN.
13335
3fd6912b
TT
133362020-02-11 Tom Tromey <tom@tromey.com>
13337
13338 * dwarf2/frame.h (struct objfile): Don't forward declare.
13339
69ed9b74
CB
133402020-02-11 Christian Biesinger <cbiesinger@google.com>
13341
13342 * cris-tdep.c (cris_supply_gregset): Change signature to match
13343 what struct regset expects.
13344 (cris_regset): New struct.
13345 (fetch_core_registers): Remove.
13346 (cris_iterate_over_regset_sections): New function.
13347 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13348 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13349
bda874f6
CB
133502020-02-11 Christian Biesinger <cbiesinger@google.com>
13351
13352 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13353 registers.
13354
754e1564
CB
133552020-02-11 Christian Biesinger <cbiesinger@google.com>
13356
13357 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13358
8ddd8e0e
SM
133592020-02-11 Simon Marchi <simon.marchi@efficios.com>
13360
13361 * configure: Re-generate.
13362
898e7f60
SM
133632020-02-11 Simon Marchi <simon.marchi@efficios.com>
13364
13365 * configure: Re-generate.
13366
58df732b
SM
133672020-02-11 Simon Marchi <simon.marchi@efficios.com>
13368
13369 * acinclude: Update warning.m4 path.
13370 * warning.m4: Move to gdbsupport.
13371
da5bd37e
TT
133722020-02-11 Tom Tromey <tromey@adacore.com>
13373
13374 * remote.c (remote_console_output): Update.
13375 * printcmd.c (printf_command): Update.
13376 * event-loop.c (gdb_wait_for_event): Update.
13377 * linux-nat.c (sigchld_handler): Update.
13378 * remote-sim.c (gdb_os_write_stdout): Update.
13379 (gdb_os_flush_stdout): Update.
13380 (gdb_os_flush_stderr): Update.
13381 (gdb_os_write_stderr): Update.
13382 * exceptions.c (print_exception): Update.
13383 * remote-fileio.c (remote_fileio_func_read): Update.
13384 (remote_fileio_func_write): Update.
13385 * tui/tui.c (tui_enable): Update.
13386 * tui/tui-interp.c (tui_interp::init): Update.
13387 * utils.c (init_page_info): Update.
13388 (putchar_unfiltered, fputc_unfiltered): Update.
13389 (gdb_flush): Update.
13390 (emit_style_escape): Update.
13391 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13392 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13393 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13394 (stderr_file::write): Update.
13395 (stderr_file::puts): Update.
13396 * ui-file.h (ui_file_isatty, ui_file_write)
13397 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13398 (ui_file_puts): Don't declare.
13399
85f0dd3c
TV
134002020-02-10 Tom de Vries <tdevries@suse.de>
13401
13402 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13403 sentinel to char *.
13404
2e927613
TV
134052020-02-09 Tom de Vries <tdevries@suse.de>
13406
13407 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13408 filename if it matches "<artificial>".
13409
6bafc845
HD
134102020-02-09 Hannes Domani <ssbssa@yahoo.de>
13411
13412 * windows-tdep.c (struct enum_value_name): New struct.
13413 (create_enum): New function.
13414 (windows_get_siginfo_type): Create and use enum types.
13415
7928d571
HD
134162020-02-09 Hannes Domani <ssbssa@yahoo.de>
13417
13418 * NEWS: Mention $_siginfo support for Windows.
13419 * windows-nat.c (handle_exception): Set siginfo_er.
13420 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13421 (windows_xfer_siginfo): New function.
13422 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13423 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13424 (init_windows_gdbarch_data): New function.
13425 (get_windows_gdbarch_data): New function.
13426 (windows_get_siginfo_type): New function.
13427 (windows_init_abi): Register windows_get_siginfo_type.
13428 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13429
6751ebae
TT
134302020-02-08 Tom Tromey <tom@tromey.com>
13431
13432 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13433 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13434 <keep>: Declare method.
13435 <m_keep>: Remove member.
13436 <~cutu_reader>: Remove.
13437 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13438 (cutu_reader::cutu_reader): Update.
13439 (cutu_reader::keep): Rename from ~cutu_reader.
13440 (process_psymtab_comp_unit, build_type_psymtabs_1)
13441 (process_skeletonless_type_unit, load_partial_comp_unit)
13442 (load_full_comp_unit, dwarf2_read_addr_index)
13443 (read_signatured_type): Update.
13444
135f5437
TT
134452020-02-08 Tom Tromey <tom@tromey.com>
13446
13447 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13448 "want_partial_unit" parameter.
13449 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13450 Inline check for DW_TAG_partial_unit.
13451 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13452
9f66ff1c
TT
134532020-02-08 Tom Tromey <tom@tromey.com>
13454
13455 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13456 read.c.
13457 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13458 read.c.
13459
c8a7a66f
TT
134602020-02-08 Tom Tromey <tom@tromey.com>
13461
13462 * dwarf2/read.c (read_address): Move to comp-unit.c.
13463 (dwarf2_rnglists_process, dwarf2_ranges_process)
13464 (read_attribute_value, dwarf_decode_lines_1)
13465 (var_decode_location, decode_locdesc): Update.
13466 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13467 read.c. Remove "cu" parameter.
13468 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13469 method.
13470
8266302d
TT
134712020-02-08 Tom Tromey <tom@tromey.com>
13472
13473 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13474 (read_indirect_line_string): Update.
13475 * dwarf2/comp-unit.c (read_offset): Remove.
13476 (read_comp_unit_head): Update.
13477 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13478 method.
13479 (read_offset): Don't declare.
13480
4057dfde
TT
134812020-02-08 Tom Tromey <tom@tromey.com>
13482
13483 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13484 * dwarf2/read.c (struct comp_unit_head): Move to
13485 dwarf2/comp-unit.h.
13486 (enum class rcuh_kind): Move to comp-unit.h.
13487 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13488 (read_comp_unit_head, error_check_comp_unit_head)
13489 (read_and_check_comp_unit_head): Move to comp-unit.c.
13490 (read_offset, dwarf_unit_type_name): Likewise.
13491 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13492 (cutu_reader::cutu_reader, read_call_site_scope)
13493 (find_partial_die, follow_die_offset): Update.
13494 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13495
24aa364d
TT
134962020-02-08 Tom Tromey <tom@tromey.com>
13497
13498 * dwarf2/read.c (read_offset_1): Move to leb.c.
13499 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13500 (dwarf_decode_macro_bytes): Update.
13501 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13502 * dwarf2/leb.h (read_offset): Declare.
13503
2c7d5afc
TT
135042020-02-08 Tom Tromey <tom@tromey.com>
13505
13506 * dwarf2/read.c (dwarf2_section_size): Remove.
13507 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13508 Update.
13509 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13510
4075cb26
TT
135112020-02-08 Tom Tromey <tom@tromey.com>
13512
13513 * dwarf2/read.c (read_initial_length): Move to leb.c.
13514 * dwarf2/leb.h (read_initial_length): Declare.
13515 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13516 handle_nonstd parameter.
13517 * dwarf2/frame.c (read_initial_length): Remove.
13518 (decode_frame_entry_1): Update.
13519
09ba997f
TT
135202020-02-08 Tom Tromey <tom@tromey.com>
13521
13522 * dwarf2/loc.c (dwarf2_find_location_expression)
13523 (dwarf_evaluate_loc_desc::get_tls_address)
13524 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13525 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13526 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13527 (dwarf2_compile_property_to_c)
13528 (dwarf2_loc_desc_get_symbol_read_needs)
13529 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13530 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13531 (loclist_describe_location, loclist_tracepoint_var_ref)
13532 (loclist_generate_c_location): Update.
13533 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13534 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13535 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13536 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13537 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13538 (dwarf2_per_cu_data::addr_size)
13539 (dwarf2_per_cu_data::ref_addr_size)
13540 (dwarf2_per_cu_data::text_offset)
13541 (dwarf2_per_cu_data::addr_type): Now methods.
13542 (per_cu_header_read_in): Make per_cu "const".
13543 (dwarf2_version): Remove.
13544 (dwarf2_per_cu_data::int_type): Now a method.
13545 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13546 (set_die_type, read_array_type, read_subrange_index_type)
13547 (read_tag_string_type, read_subrange_type): Update.
13548 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13549 offset_size, ref_addr_size, text_offset, addr_type, version,
13550 objfile, int_type, addr_sized_int_type>: Declare methods.
13551
96c738c0
TT
135522020-02-08 Tom Tromey <tom@tromey.com>
13553
13554 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13555 Move earlier.
13556
8fdd972c
TT
135572020-02-08 Tom Tromey <tom@tromey.com>
13558
13559 * dwarf2/read.h (dwarf_line_debug): Declare.
13560 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13561 * dwarf2/read.c: Move line_header code to new files.
13562 (dwarf_line_debug): No longer static.
13563 * dwarf2/line-header.c: New file.
13564 * dwarf2/line-header.h: New file.
13565
03075812
TT
135662020-02-08 Tom Tromey <tom@tromey.com>
13567
13568 * dwarf2/read.c (struct line_header) <file_full_name,
13569 file_file_name>: Return unique_xmalloc_ptr.
13570 (line_header::file_file_name): Update.
13571 (line_header::file_full_name): Update.
13572 (dw2_get_file_names_reader): Update.
13573 (macro_start_file): Update.
13574
bb822404
TT
135752020-02-08 Tom Tromey <tom@tromey.com>
13576
13577 * dwarf2/read.c (struct line_header) <file_full_name,
13578 file_file_name>: Declare methods.
13579 (dw2_get_file_names_reader): Update.
13580 (file_file_name): Now a method.
13581 (file_full_name): Likewise.
13582 (macro_start_file): Update.
13583
009b64fc
TT
135842020-02-08 Tom Tromey <tom@tromey.com>
13585
13586 * dwarf2/read.c (dwarf_always_disassemble)
13587 (show_dwarf_always_disassemble): Move to loc.c.
13588 (_initialize_dwarf2_read): Move "always-disassemble" registration
13589 to loc.c.
13590 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13591 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13592 static.
13593 (show_dwarf_always_disassemble): Move from read.c.
13594 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13595
5895093f
TT
135962020-02-08 Tom Tromey <tom@tromey.com>
13597
13598 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13599 (create_quick_file_names_table): Return htab_up.
13600 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13601 Update.
13602 * dwarf2/read.h (struct dwarf2_per_objfile)
13603 <quick_file_names_table>: Now htab_up.
13604
b3b32279
TT
136052020-02-08 Tom Tromey <tom@tromey.com>
13606
13607 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13608
1d33d811
TT
136092020-02-08 Tom Tromey <tom@tromey.com>
13610
13611 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13612 Rewrite.
13613 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13614 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13615 (abbrev_table::abbrev_table): No longer inline.
13616 (ABBREV_HASH_SIZE): Remove.
13617 (abbrev_table::m_abbrevs): Now an htab_up.
13618
86de1d91
TT
136192020-02-08 Tom Tromey <tom@tromey.com>
13620
13621 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13622 (cutu_reader): Update.
13623 (build_type_psymtabs_1): Update.
13624 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13625 (abbrev_table::alloc_abbrev): Update.
13626 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13627 (abbrev_table::read): New static method, renamed from
13628 abbrev_table_read_table.
13629 (abbrev_table::alloc_abbrev)
13630 (abbrev_table::add_abbrev): Now private.
13631 (abbrev_table::abbrev_table): Now private.
13632 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13633
0335378b
TT
136342020-02-08 Tom Tromey <tom@tromey.com>
13635
13636 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13637 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13638 htab_up.
13639
48b490f2
TT
136402020-02-08 Tom Tromey <tom@tromey.com>
13641
13642 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13643 htab_up.
13644 (lookup_dwo_unit_in_dwp): Update.
13645 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13646 on obstack.
13647
bc68fb19
TT
136482020-02-08 Tom Tromey <tom@tromey.com>
13649
13650 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13651 obstack.
13652
d15acc42
TT
136532020-02-08 Tom Tromey <tom@tromey.com>
13654
13655 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13656 line_header_hash.
13657 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13658 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13659 Change type to htab_up.
13660
eaa5fa8b
TT
136612020-02-08 Tom Tromey <tom@tromey.com>
13662
13663 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13664 htab_up. Don't allocate on obstack.
13665 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13666 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13667 Change type to htab_up.
13668
b0b6a987
TT
136692020-02-08 Tom Tromey <tom@tromey.com>
13670
13671 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13672 Change type to htab_up.
13673 * dwarf2/read.c (create_signatured_type_table_from_index)
13674 (create_signatured_type_table_from_debug_names)
13675 (create_all_type_units, add_type_unit)
13676 (lookup_dwo_signatured_type, lookup_signatured_type)
13677 (process_skeletonless_type_unit): Update.
13678 (create_debug_type_hash_table, create_debug_types_hash_table):
13679 Change type of types_htab.
13680 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13681 htab_up. Don't allocate on obstack.
13682 (create_cus_hash_table): Change type of cus_htab parameter.
13683 (struct dwo_file) <cus, tus>: Now htab_up.
13684 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13685 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13686 (queue_and_load_all_dwo_tus): Update.
13687 * dwarf2/index-write.c (write_gdbindex): Update.
13688 (write_debug_names): Update.
13689
39856def
TT
136902020-02-08 Tom Tromey <tom@tromey.com>
13691
13692 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13693 dwarf2/read.c. Remove "next" member. Add constructor ntad
13694 destructor.
13695 (struct dwarf2_per_objfile) <queue>: New member.
13696 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13697 dwarf2/read.h.
13698 (dwarf2_queue, dwarf2_queue_tail): Remove.
13699 (class dwarf2_queue_guard): Add parameter to constructor. Use
13700 DISABLE_COPY_AND_ASSIGN.
13701 <m_per_objfile>: New member.
13702 <~dwarf2_queue_guard>: Rewrite.
13703 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13704 Update.
13705 (~dwarf2_queue_item): New.
13706
3e225074
TT
137072020-02-08 Tom Tromey <tom@tromey.com>
13708
13709 * dwarf2/read.c (struct die_info) <has_children>: New member.
13710 (dw2_get_file_names_reader): Remove has_children.
13711 (dw2_get_file_names): Update.
13712 (read_cutu_die_from_dwo): Remove has_children.
13713 (cutu_reader::init_tu_and_read_dwo_dies)
13714 (cutu_reader::cutu_reader): Update.
13715 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13716 Remove has_children.
13717 (build_type_psymtabs_1, process_skeletonless_type_unit)
13718 (load_partial_comp_unit, load_full_comp_unit): Update.
13719 (create_dwo_cu_reader): Remove has_children.
13720 (create_cus_hash_table, read_die_and_children): Update.
13721 (read_full_die_1,read_full_die): Remove has_children.
13722 (read_signatured_type): Update.
13723 (class cutu_reader) <has_children>: Remove.
13724
82ca8957
TT
137252020-02-08 Tom Tromey <tom@tromey.com>
13726
13727 * dwarf2/expr.c: Rename from dwarf2expr.c.
13728 * dwarf2/expr.h: Rename from dwarf2expr.h.
13729 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13730 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13731 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13732 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13733 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13734 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13735 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13736 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13737 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13738 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13739 * dwarf2/loc.c: Rename from dwarf2loc.c.
13740 * dwarf2/loc.h: Rename from dwarf2loc.h.
13741 * dwarf2/read.c: Rename from dwarf2read.c.
13742 * dwarf2/read.h: Rename from dwarf2read.h.
13743 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13744 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13745 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13746 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13747 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13748 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13749 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13750 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13751 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13752 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13753 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13754 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13755 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13756 Update.
13757 * Makefile.in (COMMON_SFILES): Update.
13758 (HFILES_NO_SRCDIR): Update.
13759
9e35d499
TT
137602020-02-08 Tom Tromey <tom@tromey.com>
13761
13762 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13763 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13764
1eba2311
TT
137652020-02-08 Tom Tromey <tom@tromey.com>
13766
13767 * dwarf2read.h (struct die_info): Don't declare.
13768
e41c2da2
TT
137692020-02-08 Tom Tromey <tom@tromey.com>
13770
13771 * dwarf2read.h (die_info_ptr): Remove typedef.
13772
4fc6c0d5
TT
137732020-02-08 Tom Tromey <tom@tromey.com>
13774
13775 * dwarf2read.c (read_call_site_scope)
13776 (handle_data_member_location, dwarf2_add_member_fn)
13777 (mark_common_block_symbol_computed, read_common_block)
13778 (attr_to_dynamic_prop, partial_die_info::read)
13779 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13780 (dwarf2_symbol_mark_computed, set_die_type): Update.
13781 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13782 method.
13783 (attr_form_is_block): Don't declare.
13784 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13785
cd6c91b4
TT
137862020-02-08 Tom Tromey <tom@tromey.com>
13787
13788 * dwarf2read.c (dwarf2_find_base_address, )
13789 (read_call_site_scope, rust_containing_type)
13790 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13791 (handle_data_member_location, dwarf2_add_member_fn)
13792 (get_alignment, read_structure_type, process_structure_scope)
13793 (mark_common_block_symbol_computed, read_common_block)
13794 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13795 (partial_die_info::read, read_attribute_value, new_symbol)
13796 (lookup_die_type, dwarf2_get_ref_die_offset)
13797 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13798 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13799 (dwarf2_symbol_mark_computed): Update.
13800 * dwarf2/attribute.h (struct attribute) <value_as_address,
13801 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13802 methods.
13803 (value_as_address, attr_form_is_section_offset)
13804 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13805 * dwarf2/attribute.c (attribute::value_as_address)
13806 (attribute::form_is_section_offset, attribute::form_is_constant)
13807 (attribute::form_is_ref): Now methods.
13808
162dce55
TT
138092020-02-08 Tom Tromey <tom@tromey.com>
13810
13811 * dwarf2read.c (struct attribute, DW_STRING)
13812 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13813 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13814 (attr_form_is_block, attr_form_is_section_offset)
13815 (attr_form_is_constant, attr_form_is_ref): Move.
13816 * dwarf2/attribute.h: New file.
13817 * dwarf2/attribute.c: New file, from dwarf2read.c.
13818 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13819
3054dd54
TT
138202020-02-08 Tom Tromey <tom@tromey.com>
13821
13822 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13823 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13824 Move.
13825 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13826 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13827 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13828 abbrev.c.
13829 * dwarf2/abbrev.h: New file.
13830 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13831 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13832
96b79293
TT
138332020-02-08 Tom Tromey <tom@tromey.com>
13834
13835 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13836 (dwarf2_section_size, dwarf2_get_section_info)
13837 (create_signatured_type_table_from_debug_names)
13838 (create_addrmap_from_aranges, read_debug_names_from_section)
13839 (get_gdb_index_contents_from_section, read_comp_unit_head)
13840 (error_check_comp_unit_head, read_abbrev_offset)
13841 (create_debug_type_hash_table, init_cu_die_reader)
13842 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13843 (read_comp_units_from_section, create_cus_hash_table)
13844 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13845 (create_dwp_v2_section, dwarf2_rnglists_process)
13846 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13847 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13848 (read_indirect_string_from_dwz, read_addr_index_1)
13849 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13850 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13851 (fill_in_loclist_baton): Update.
13852 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13853 get_containing_section, get_bfd_owner, get_bfd_section,
13854 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13855 (dwarf2_read_section, get_section_name, get_section_file_name)
13856 (get_containing_section, get_section_bfd_owner)
13857 (get_section_bfd_section, get_section_name, get_section_file_name)
13858 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13859 declare.
13860 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13861 (dwarf2_section_info::get_bfd_owner)
13862 (dwarf2_section_info::get_bfd_section)
13863 (dwarf2_section_info::get_name)
13864 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13865 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13866 (dwarf2_section_info::read): Now methods.
13867 * dwarf-index-write.c (class debug_names): Update.
13868
2c86cff9
TT
138692020-02-08 Tom Tromey <tom@tromey.com>
13870
13871 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13872 Move to dwarf2/section.h.
13873 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13874 (get_section_bfd_section, get_section_name)
13875 (get_section_file_name, get_section_id, get_section_flags)
13876 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13877 dwarf2/section.c.
13878 * dwarf2/section.h: New file.
13879 * dwarf2/section.c: New file, from dwarf2read.c.
13880 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13881
f4382c45
TT
138822020-02-08 Tom Tromey <tom@tromey.com>
13883
13884 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13885 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13886 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13887 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13888 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13889 * dwarf2/leb.h: New file, from dwarf2read.c.
13890 * dwarf2/leb.c: New file, from dwarf2read.c.
13891 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13892 Remove.
13893 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13894 (COMMON_SFILES): Add dwarf2/leb.c.
13895
01840b7a
JB
138962020-02-08 Joel Brobecker <brobecker@adacore.com>
13897
13898 GDB 9.1 released.
13899
dfcb27e4
IB
139002020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13901
13902 PR gdb/25190:
aac66a4c
SM
13903 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13904 * gdb/remote.c (remote_console_output): Update.
13905 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13906 (ui_file_puts): ...this.
13907 * gdb/ui-file.h (ui_file_puts): Add declaration.
13908 * gdb/utils.c (emit_style_escape): Update.
13909 (flush_wrap_buffer): Update.
13910 (fputs_maybe_filtered): Update.
13911 (fputs_unfiltered): Add function.
dfcb27e4 13912
faa17681
IB
139132020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13914
aac66a4c
SM
13915 * gdb/event-loop.c (gdb_wait_for_event): Update.
13916 * gdb/printcmd.c (printf_command): Update.
13917 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13918 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13919 (gdb_os_flush_stderr): Update.
13920 * gdb/remote.c (remote_console_output): Update.
13921 * gdb/ui-file.c (gdb_flush): Rename to...
13922 (ui_file_flush): ...this.
13923 (stderr_file::write): Update.
13924 (stderr_file::puts): Update.
13925 * gdb/ui-file.h (gdb_flush): Rename to...
13926 (ui_file_flush): ...this.
13927 * gdb/utils.c (gdb_flush): Add function.
13928 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13929
5abbbe1d
TT
139302020-02-07 Tom Tromey <tromey@adacore.com>
13931
13932 PR breakpoints/24915:
13933 * source.c (find_and_open_source): Do not check basenames_may_differ.
13934
919adfe8
TT
139352020-02-07 Tom Tromey <tom@tromey.com>
13936
13937 * README: Update gdbserver documentation.
13938 * gdbserver: Move to top level.
13939 * configure.tgt (build_gdbserver): Remove.
13940 * configure.ac: Remove --enable-gdbserver.
13941 * configure: Rebuild.
13942 * Makefile.in (distclean): Don't mention gdbserver.
13943
1d5d29e7
SV
139442020-02-06 Shahab Vahedi <shahab@synopsys.com>
13945
13946 * source-cache.c (source_cache::ensure): Surround
13947 get_plain_source_lines with a try/catch.
13948 (source_cache::get_line_charpos): Get rid of try/catch
13949 and only check for the return value of "ensure".
13950 * tui/tui-source.c (tui_source_window::set_contents):
13951 Simplify "nlines" calculation.
13952
6eb1129c
SV
139532020-02-06 Shahab Vahedi <shahab@synopsys.com>
13954
13955 * MAINTAINERS (Write After Approval): Add myself.
13956
c6a42d11
CB
139572020-02-05 Christian Biesinger <cbiesinger@google.com>
13958
13959 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13960 function call.
13961
c8ecdda6
CB
139622020-02-05 Christian Biesinger <cbiesinger@google.com>
13963
13964 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13965
f6480e70
MR
139662020-02-05 Maciej W. Rozycki <macro@wdc.com>
13967
13968 * nat/riscv-linux-tdesc.h: New file.
13969 * nat/riscv-linux-tdesc.c: New file, taking code from...
13970 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13971 ... here.
13972 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13973 NATDEPFILES.
13974
dcc9fbc6
AB
139752020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13976
13977 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13978 we don't set the fake simulator ptid to the null_ptid.
13979
719546c4
SM
139802020-02-03 Simon Marchi <simon.marchi@efficios.com>
13981
13982 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13983 * gdbthread.h (class thread_info) <resumed>: Likewise.
13984 * infrun.c (resume_1): Likewise.
13985 (proceed): Likewise.
13986 (infrun_thread_stop_requested): Likewise.
13987 (stop_all_threads): Likewise.
13988 (handle_inferior_event): Likewise.
13989 (restart_threads): Likewise.
13990 (finish_step_over): Likewise.
13991 (keep_going_stepped_thread): Likewise.
13992 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13993 (linux_handle_extended_wait): Likewise.
13994 * record-btrace.c (get_thread_current_frame_id): Likewise.
13995 * record-full.c (record_full_wait_1): Likewise.
13996 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13997 * target.c (target_resume): Likewise.
13998 * thread.c (set_running_thread): Likewise.
13999
e409c542
AKS
140002020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14001
14002 * f-valprint.c (f77_print_array_1): Changed datatype of index
14003 variable to LONGEST from int to enable it to contain bound
14004 values correctly.
14005
ee98c0da
MR
140062020-02-03 Maciej W. Rozycki <macro@wdc.com>
14007
14008 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14009 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14010 offsets according to FLEN determined.
14011 (riscv_linux_nat_target::read_description): Determine FLEN
14012 dynamically.
14013 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14014 according to FLEN determined.
14015 (riscv_linux_nat_target::store_registers): Likewise.
14016
aa66aac4
SV
140172020-02-01 Shahab Vahedi <shahab@synopsys.com>
14018
14019 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14020 when reg->group is empty and reggroup is not.
14021
fd9faca8
TT
140222020-01-31 Tom Tromey <tromey@adacore.com>
14023
14024 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14025 Call beneath target's mourn_inferior after unpushing.
14026
42330a68
AB
140272020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14028
14029 PR tui/9765
14030 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14031 have enough lines to fill the screen, still return the lowest
14032 address we found.
14033
7a27a45b
AB
140342020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14035
14036 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14037 '-', '<', and '>' commands.
14038
c47f70e2
PA
140392020-01-29 Pedro Alves <palves@redhat.com>
14040 Sergio Durigan Junior <sergiodj@redhat.com>
14041
14042 * infcmd.c (construct_inferior_arguments): Assert that
14043 'argc' is greater than 0.
14044
5133a315
LM
140452020-01-29 Luis Machado <luis.machado@linaro.org>
14046
14047 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14048 (BRK_INSN_MASK): Define to 0xd4200000.
14049 (aarch64_program_breakpoint_here_p): New function.
14050 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14051 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14052 breakpoint.c.
14053 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14054 breakpoint.h
14055 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14056 call gdbarch_program_breakpoint_here_p.
14057 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14058 default_program_breakpoint_here_p, changed return type to bool and
14059 simplified.
14060 * breakpoint.h (program_breakpoint_here): Moved prototype to
14061 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14062 return type to bool.
14063 * gdbarch.c: Regenerate.
14064 * gdbarch.h: Regenerate.
14065 * gdbarch.sh (program_breakpoint_here_p): New method.
14066 * infrun.c (handle_signal_stop): Call
14067 gdbarch_program_breakpoint_here_p.
14068
168f8c6b
TT
140692020-01-26 Tom Tromey <tom@tromey.com>
14070
14071 * ctfread.c (struct ctf_fp_info): Reindent.
14072 (_initialize_ctfread): Remove.
14073
128a391f
TT
140742020-01-26 Tom Tromey <tom@tromey.com>
14075
14076 * psymtab.c (partial_map_expand_apply)
14077 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14078 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14079 (psym_print_stats, psym_expand_symtabs_for_function)
14080 (psym_map_symbol_filenames, psym_map_matching_symbols)
14081 (psym_expand_symtabs_matching)
14082 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14083 (maintenance_check_psymtabs): Use new methods.
14084 * psympriv.h (struct partial_symtab) <readin_p,
14085 get_compunit_symtab>: New methods.
14086 <readin, compunit_symtab>: Remove members.
14087 (struct standard_psymtab): New.
14088 (struct legacy_psymtab): Derive from standard_psymtab.
14089 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14090 standard_psymtab.
14091 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14092
0494dbec
TT
140932020-01-26 Tom Tromey <tom@tromey.com>
14094
14095 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14096 read_dependencies. Add assert.
14097 * psymtab.c (partial_symtab::read_dependencies): New method.
14098 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14099 method.
14100 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14101 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14102 read_dependencies.
14103 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14104 Add assert.
14105
8566b89b
TT
141062020-01-26 Tom Tromey <tom@tromey.com>
14107
14108 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14109 Call expand_psymtab.
14110 (xcoff_read_symtab): Call expand_psymtab.
14111 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14112 legacy_expand_psymtab.
14113 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14114 method.
14115 (struct legacy_psymtab) <expand_psymtab>: Implement.
14116 <legacy_expand_psymtab>: New member.
14117 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14118 (parse_partial_symbols): Set legacy_expand_psymtab.
14119 (psymtab_to_symtab_1): Change argument order. Call
14120 expand_psymtab.
14121 (new_psymtab): Set legacy_expand_psymtab.
14122 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14123 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14124 expand_psymtab.
14125 (dwarf2_psymtab::expand_psymtab): Rename from
14126 psymtab_to_symtab_1. Call expand_psymtab.
14127 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14128 (dbx_end_psymtab): Likewise.
14129 (dbx_psymtab_to_symtab_1): Change argument order. Call
14130 expand_psymtab.
14131 (dbx_read_symtab): Call expand_psymtab.
14132 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14133 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14134 (ctf_psymtab::read_symtab): Call expand_psymtab.
14135
077cbab2
TT
141362020-01-26 Tom Tromey <tom@tromey.com>
14137
14138 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14139 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14140 messages.
14141 * mdebugread.c (mdebug_read_symtab): Remove prints.
14142 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14143 assert.
14144 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14145
891813be
TT
141462020-01-26 Tom Tromey <tom@tromey.com>
14147
14148 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14149 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14150 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14151 legacy_symtab.
14152 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14153 * psymtab.c (psymtab_to_symtab): Call method.
14154 (dump_psymtab): Update.
14155 * psympriv.h (struct partial_symtab): Add virtual destructor.
14156 <read_symtab>: New method.
14157 (struct legacy_symtab): New.
14158 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14159 (struct pst_map) <pst>: Now a legacy_psymtab.
14160 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14161 (new_psymtab): Use legacy_psymtab.
14162 * dwarf2read.h (struct dwarf2_psymtab): New.
14163 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14164 * dwarf2read.c (dwarf2_create_include_psymtab)
14165 (dwarf2_build_include_psymtabs, create_type_unit_group)
14166 (create_partial_symtab, process_psymtab_comp_unit_reader)
14167 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14168 (set_partial_user): Use dwarf2_psymtab.
14169 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14170 (psymtab_to_symtab_1, process_full_comp_unit)
14171 (process_full_type_unit, dwarf2_ranges_read)
14172 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14173 (dwarf_decode_lines): Use dwarf2_psymtab.
14174 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14175 (add_address_entry_worker, write_one_signatured_type)
14176 (recursively_count_psymbols, recursively_write_psymbols)
14177 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14178 (write_debug_names): Likewise.
14179 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14180 <pst>: Now a legacy_psymtab.
14181 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14182 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14183 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14184 * ctfread.c (struct ctf_psymtab): New.
14185 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14186 ctf_psymtab.
14187 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14188 (create_partial_symtab): Return a ctf_psymtab.
14189 (scan_partial_symbols): Update.
14190
c3693a1d
TT
141912020-01-26 Tom Tromey <tom@tromey.com>
14192
14193 * xcoffread.c (xcoff_start_psymtab): Use new.
14194 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14195 renamed from start_psymtab_common.
14196 * psympriv.h (struct partial_symtab): Add new constructor.
14197 (start_psymtab_common): Don't declare.
14198 * mdebugread.c (parse_partial_symbols): Use new.
14199 * dwarf2read.c (create_partial_symtab): Use new.
14200 * dbxread.c (start_psymtab): Use new.
14201 * ctfread.c (create_partial_symtab): Use new.
14202
32caafd0
TT
142032020-01-26 Tom Tromey <tom@tromey.com>
14204
14205 * xcoffread.c (xcoff_end_psymtab): Use new.
14206 * psymtab.c (start_psymtab_common): Use new.
14207 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14208 Update.
14209 * psympriv.h (struct partial_symtab): Add parameters to
14210 constructor. Don't inline.
14211 (allocate_psymtab): Don't declare.
14212 * mdebugread.c (new_psymtab): Use new.
14213 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14214 * dbxread.c (dbx_end_psymtab): Use new.
14215
abaa2f23
TT
142162020-01-26 Tom Tromey <tom@tromey.com>
14217
14218 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14219 allocate_psymtab. Update documentation.
14220 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14221 allocate_psymtab. Do not use new.
14222 (allocate_psymtab): Use new. Update.
14223
6d94535f
TT
142242020-01-26 Tom Tromey <tom@tromey.com>
14225
14226 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14227 * psymtab.c (psym_print_stats): Update.
14228 * psympriv.h (struct partial_symtab) <readin,
14229 psymtabs_addrmap_supported, anonymous>: Now bool.
14230 * mdebugread.c (psymtab_to_symtab_1): Update.
14231 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14232 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14233 (process_full_comp_unit, process_full_type_unit): Update.
14234 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14235 * ctfread.c (psymtab_to_symtab): Update.
14236
6f17252b
TT
142372020-01-26 Tom Tromey <tom@tromey.com>
14238
14239 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14240 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14241 * psymtab.c (psymtab_storage): Delete psymtabs.
14242 (psymtab_storage::allocate_psymtab): Use new.
14243 (psymtab_storage::discard_psymtab): Use delete.
14244 * psympriv.h (struct partial_symtab): Add constructor and
14245 initializers.
14246
f6f1cebc
TT
142472020-01-26 Tom Tromey <tom@tromey.com>
14248
14249 * machoread.c: Do not include psympriv.h.
14250
e47e48f6
PW
142512020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14252
14253 * NEWS: Mention the new option and the set/show commands.
14254
a2fedca9
PW
142552020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14256
14257 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14258 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14259 (validate_exec_file): New variables, enums, functions.
14260 (exec_file_locate_attach, print_section_info): Style the filenames.
14261 (_initialize_exec): Install show_exec_file_mismatch_command and
14262 set_exec_file_mismatch_command.
14263 * gdbcore.h (validate_exec_file): Declare.
14264 * infcmd.c (attach_command): Call validate_exec_file.
14265 * remote.c ( remote_target::remote_add_inferior): Likewise.
14266
7ffa82e1
AB
142672020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14268
14269 * frame.c (find_frame_sal): Move call to get_next_frame into more
14270 inner scope.
14271 * inline-frame.c (inilne_state) <inline_state>: Update argument
14272 types.
14273 (inilne_state) <skipped_symbol>: Rename to...
14274 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14275 (skip_inline_frames): Build vector of skipped symbols and use this
14276 to reate the inline_state.
14277 (inline_skipped_symbol): Add a comment and some assertions, fetch
14278 skipped symbol from the list.
14279
3d92a3e3
AB
142802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14281
14282 * buildsym.c (lte_is_less_than): Delete.
14283 (buildsym_compunit::end_symtab_with_blockvector): Create local
14284 lambda function to sort line table entries, and use
14285 std::stable_sort instead of std::sort.
14286 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14287 markers when looking for a previous line.
14288
94a72be7
AB
142892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14290
14291 * dwarf2read.c (lnp_state_machine::record_line): Include
14292 end_sequence parameter in debug print out. Record the line if we
14293 are at an end_sequence marker even if it's not the start of a
14294 statement.
14295 * symmisc.c (maintenance_print_one_line_table): Print end of
14296 sequence markers with 'END' not '0'.
14297
53af73bf
PA
142982020-01-24 Pedro Alves <palves@redhat.com>
14299
14300 PR gdb/25410
14301 * thread.c (scoped_restore_current_thread::restore): Use
14302 switch_to_inferior_no_thread.
14303 * exec.c: Include "progspace-and-thread.h".
14304 (add_target_sections, remove_target_sections):
14305 scoped_restore_current_pspace_and_thread instead of
14306 scoped_restore_current_thread.
14307 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14308 and aspace to the inferior before calling clone_program_space.
14309 Remove stale comment.
14310
3050c6f4
CB
143112020-01-24 Christian Biesinger <cbiesinger@google.com>
14312
14313 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14314 (arm_netbsd_nat_target::fetch_registers): ...this.
14315 (arm_nbsd_nat_target::store_registers): Rename to...
14316 (arm_netbsd_nat_target::store_registers): ...this.
14317
73685c7e
CB
143182020-01-24 Christian Biesinger <cbiesinger@google.com>
14319
14320 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14321 register_t.
14322
89203d40
CB
143232020-01-24 Christian Biesinger <cbiesinger@google.com>
14324
14325 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14326 Update comment.
14327 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14328 Likewise.
14329 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14330 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14331 the correct replacement (iterate_over_regset_sections).
14332 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14333 Update comment.
14334
1ba1ac88
AB
143352020-01-24 Graham Markall <graham.markall@embecosm.com>
14336
14337 PR gdb/23718
14338 * gdb/python/python.c (execute_gdb_command): Call
14339 async_enable_stdin in catch block.
14340
f3364a6d
AB
143412020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14342
14343 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14344 SWITCH_THRU_ALL_UIS.
14345
733d0a67
AB
143462020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14347
14348 PR tui/9765
14349 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14350 comment, add extra parameter, and update to store previous symbol
14351 when appropriate.
14352 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14353 add extra parameter.
14354 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14355 remove unneeded parameter, add try/catch around gdb_print_insn,
14356 rewrite to add items to asm_lines vector.
14357 (tui_find_backward_disassembly_start_address): New function.
14358 (tui_find_disassembly_address): Updated throughout.
14359 (tui_disasm_window::set_contents): Update for changes to
14360 tui_disassemble.
14361 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14362 number of lines to scroll.
14363
b3b3bada
SM
143642020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14365
14366 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14367 (SECT_OFF_DATA): Likewise.
14368 (SECT_OFF_RODATA): Likewise.
14369 (SECT_OFF_TEXT): Likewise.
14370 (SECT_OFF_BSS): Likewise.
14371 (struct objfile) <text_section_offset, data_section_offset>: New
14372 methods.
14373 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14374 objfile::text_section_offset.
14375 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14376 * coffread.c (coff_symtab_read): Likewise.
14377 (enter_linenos): Likewise.
14378 (process_coff_symbol): Likewise.
14379 * ctfread.c (get_objfile_text_range): Likewise.
14380 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14381 Use objfile::data_section_offset.
14382 * dwarf2-frame.c (execute_cfa_program): Use
14383 objfile::text_section_offset.
14384 (dwarf2_frame_find_fde): Likewise.
14385 * dwarf2read.c (create_addrmap_from_index): Likewise.
14386 (create_addrmap_from_aranges): Likewise.
14387 (dw2_find_pc_sect_compunit_symtab): Likewise.
14388 (process_psymtab_comp_unit_reader): Likewise.
14389 (add_partial_symbol): Likewise.
14390 (add_partial_subprogram): Likewise.
14391 (process_full_comp_unit): Likewise.
14392 (read_file_scope): Likewise.
14393 (read_func_scope): Likewise.
14394 (read_lexical_block_scope): Likewise.
14395 (read_call_site_scope): Likewise.
14396 (dwarf2_rnglists_process): Likewise.
14397 (dwarf2_ranges_process): Likewise.
14398 (dwarf2_ranges_read): Likewise.
14399 (dwarf_decode_lines_1): Likewise.
14400 (new_symbol): Likewise.
14401 (dwarf2_fetch_die_loc_sect_off): Likewise.
14402 (dwarf2_per_cu_text_offset): Likewise.
14403 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14404 * hppa-tdep.c (read_unwind_info): Likewise.
14405 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14406 * psympriv.h (struct partial_symtab): Likewise.
14407 * psymtab.c (find_pc_sect_psymtab): Likewise.
14408 * solib-svr4.c (enable_break): Likewise.
14409 * stap-probe.c (relocate_address): Use
14410 objfile::data_section_offset.
14411 * xcoffread.c (enter_line_range): Use
14412 objfile::text_section_offset.
14413 (read_xcoff_symtab): Likewise.
14414
ab53f382
SM
144152020-01-23 Simon Marchi <simon.marchi@efficios.com>
14416
14417 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14418 declaration to narrower scopes.
14419
e7eee665
SM
144202020-01-23 Simon Marchi <simon.marchi@efficios.com>
14421
14422 * darwin-nat.h (struct darwin_exception_msg, enum
14423 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14424 Move up.
14425 (class darwin_nat_target) <wait_1, check_new_threads,
14426 decode_exception_message, decode_message, stop_inferior,
14427 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14428 * darwin-nat.c (darwin_check_new_threads): Rename to...
14429 (darwin_nat_target::check_new_threads): ... this.
14430 (darwin_suspend_inferior_it): Remove.
14431 (darwin_decode_exception_message): Rename to...
14432 (darwin_nat_target::decode_exception_message): ... this.
14433 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14434 (darwin_decode_message): Rename to...
14435 (darwin_nat_target::decode_message): ... this.
14436 (cancel_breakpoint): Rename to...
14437 (darwin_nat_target::cancel_breakpoint): ... this.
14438 (darwin_wait): Rename to...
14439 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14440 instead of iterate_over_inferiors.
14441 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14442 (darwin_stop_inferior): Rename to...
14443 (darwin_nat_target::stop_inferior): ... this.
14444 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14445 (darwin_init_thread_list): Rename to...
14446 (darwin_nat_target::init_thread_list): ... this.
14447 (darwin_ptrace_him): Rename to...
14448 (darwin_nat_target::ptrace_him): ... this.
14449 (darwin_nat_target::create_inferior): Pass lambda function to
14450 fork_inferior.
14451 (darwin_nat_target::detach): Call stop_inferior instead of
14452 darwin_stop_inferior.
14453 * fork-inferior.h (fork_inferior): Change init_trace_fun
14454 parameter to gdb::function_view.
14455 * fork-inferior.c (fork_inferior): Likewise.
14456
c162ed3e
HD
144572020-01-23 Hannes Domani <ssbssa@yahoo.de>
14458
14459 * i386-cygwin-tdep.c (core_process_module_section): Update.
14460 * windows-nat.c (struct lm_info_windows): Add text_offset.
14461 (windows_xfer_shared_libraries): Update.
14462 * windows-tdep.c (windows_xfer_shared_library):
14463 Add text_offset_cached argument.
14464 * windows-tdep.h (windows_xfer_shared_library): Update.
14465
a1237872
SM
144662020-01-21 Simon Marchi <simon.marchi@efficios.com>
14467
14468 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14469
b3ee6dd9
SM
144702020-01-21 Simon Marchi <simon.marchi@efficios.com>
14471
14472 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14473 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14474 replace with range-based for.
14475 (gdbsim_interrupt_inferior): Remove.
14476 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14477 with a range-based for. Inline code from
14478 gdbsim_interrupt_inferior.
14479
f9fac3c8
SM
144802020-01-21 Simon Marchi <simon.marchi@efficios.com>
14481
14482 * infrun.c (proceed): Fix indentation.
14483
f6474de9
TT
144842020-01-21 Tom Tromey <tromey@adacore.com>
14485
14486 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14487 * python/python.c (python_extension_ops): Update.
14488 (gdbpy_colorize): New function.
14489 * python/lib/gdb/__init__.py (colorize): New function.
14490 * extension.h (ext_lang_colorize): Declare.
14491 * extension.c (ext_lang_colorize): New function.
14492 * extension-priv.h (struct extension_language_ops) <colorize>: New
14493 member.
14494 * cli/cli-style.c (_initialize_cli_style): Update help text.
14495
f0c702d4
LM
144962020-01-21 Luis Machado <luis.machado@linaro.org>
14497
14498 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14499 <cond>: Change type to bool.
14500 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14501 (aarch64_displaced_step_cb): Likewise.
14502 (aarch64_displaced_step_tb): Likewise.
14503
1ab139e5
LM
145042020-01-21 Luis Machado <luis.machado@linaro.org>
14505
14506 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14507 output.
14508
0c271889
LM
145092020-01-21 Luis Machado <luis.machado@linaro.org>
14510
14511 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14512 <pc_adjust>: Adjust the documentation.
14513 (aarch64_displaced_step_fixup): Check if PC really moved before
14514 adjusting it.
14515
4d89c1c7
TT
145162020-01-19 Tom Tromey <tom@tromey.com>
14517
14518 * disasm.c (~gdb_disassembler): New destructor.
14519 (gdb_buffered_insn_length): Call disassemble_free_target.
14520 * disasm.h (class gdb_disassembler): Declare destructor. Use
14521 DISABLE_COPY_AND_ASSIGN.
14522
c0ab21c2
TT
145232020-01-19 Tom Tromey <tom@tromey.com>
14524
14525 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14526 (die_reader_func_ftype): Remove.
14527 (cutu_reader): New class.
14528 (dw2_get_file_names_reader): Remove "data" parameter.
14529 (dw2_get_file_names): Use cutu_reader.
14530 (create_debug_type_hash_table): Update.
14531 (read_cutu_die_from_dwo): Update comment.
14532 (lookup_dwo_unit): Add dwo_name parameter.
14533 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14534 die_reader_func_ftype and data parameters.
14535 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14536 Remove die_reader_func_ftype and data parameters.
14537 (~cutu_reader): New; from init_cutu_and_read_dies.
14538 (cutu_reader::cutu_reader): Rename from
14539 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14540 and data parameters.
14541 (init_cutu_and_read_dies_simple): Remove.
14542 (struct process_psymtab_comp_unit_data): Remove.
14543 (process_psymtab_comp_unit_reader): Remove data parameter; add
14544 want_partial_unit and pretend_language parameters.
14545 (process_psymtab_comp_unit): Use cutu_reader.
14546 (build_type_psymtabs_reader): Remove data parameter.
14547 (build_type_psymtabs_1): Use cutu_reader.
14548 (process_skeletonless_type_unit): Likewise.
14549 (load_partial_comp_unit_reader): Remove.
14550 (load_partial_comp_unit): Use cutu_reader.
14551 (load_full_comp_unit_reader): Remove.
14552 (load_full_comp_unit): Use cutu_reader.
14553 (struct create_dwo_cu_data): Remove.
14554 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14555 dwo_unit parameters.
14556 (create_cus_hash_table): Use cutu_reader.
14557 (struct dwarf2_read_addr_index_data): Remove.
14558 (dwarf2_read_addr_index_reader): Remove.
14559 (dwarf2_read_addr_index): Use cutu_reader.
14560 (read_signatured_type_reader): Remove.
14561 (read_signatured_type): Use cutu_reader.
14562
45bbae5c
TT
145632020-01-19 Tom Tromey <tom@tromey.com>
14564
14565 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14566 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14567 (tui_wrefresh): Declare.
14568 * tui/tui-wingeneral.c (suppress_output): New global.
14569 (tui_suppress_output, ~tui_suppress_output): New constructor and
14570 destructor.
14571 (tui_wrefresh): New function.
14572 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14573 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14574 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14575 method.
14576 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14577 tui_wrefresh.
14578 (tui_data_window::no_refresh): New method.
14579 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14580 (tui_reg_command): Use tui_suppress_output
14581 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14582 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14583 method.
14584 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14585
4f13c1c0
TT
145862020-01-19 Tom Tromey <tom@tromey.com>
14587
14588 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14589 Handle case where symtab is null.
14590
fa47e446
SM
145912020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14592
14593 * linux-fork.c (one_fork_p): Simplify.
14594
26f42329
SM
145952020-01-17 Simon Marchi <simon.marchi@efficios.com>
14596
14597 * top.c (struct qt_args): Remove.
14598 (kill_or_detach): Change return type to void, replace `void *`
14599 parameter with a proper one.
14600 (print_inferior_quit_action): Likewise.
14601 (quit_confirm): Use range-based for loop to iterate over inferiors.
14602 (quit_force): Likewise.
14603
a9ac81b1
SM
146042020-01-17 Simon Marchi <simon.marchi@efficios.com>
14605
14606 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14607 `void *` parameter with proper parameters.
14608 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14609 (print_one_inferior): Change return type to void, replace `void *`
14610 parameter with proper parameters.
14611 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14612 inferiors.
14613 (get_other_inferior): Remove.
14614 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14615 inferiors.
14616
788eca49
SM
146172020-01-17 Simon Marchi <simon.marchi@efficios.com>
14618
14619 * mi/mi-interp.c (report_initial_inferior): Remove.
14620 (mi_interp::init): Use range-based for to iterate over inferiors.
14621
d9bc85b6
SM
146222020-01-17 Simon Marchi <simon.marchi@efficios.com>
14623
14624 * python/py-inferior.c (build_inferior_list): Remove.
14625 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14626
40c94099
CB
146272020-01-16 Christian Biesinger <cbiesinger@google.com>
14628
14629 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14630 (btrace_stitch_trace): Likewise.
14631 * charset.c (intermediate_encoding): Likewise (vaild).
14632 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14633 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14634 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14635
e0cdfe3c
HD
146362020-01-16 Hannes Domani <ssbssa@yahoo.de>
14637
14638 * windows-tdep.c (windows_get_tlb_type):
14639 Add rtl_user_process_parameters type.
14640
790f1718 146412020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14642 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14643
14644 PR build/24805
14645 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14646 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14647 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14648 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14649 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14650 (ps_plog): Redeclare exported functions with default visibility.
14651
3112ed97
NA
146522020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14653
14654 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14655 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14656
8dc3273e
SM
146572020-01-15 Simon Marchi <simon.marchi@efficios.com>
14658
14659 * infcmd.c (post_create_inferior): Use get_thread_regcache
14660 instead of get_current_regcache.
14661
ff47f4f0
TT
146622020-01-14 Tom Tromey <tom@tromey.com>
14663
14664 PR symtab/12535:
14665 * python/python.c (gdbpy_decode_line): Treat empty string the same
14666 as no argument.
14667
975f45b7
TT
146682020-01-14 Tom Tromey <tom@tromey.com>
14669
14670 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14671
25e57356
TT
146722020-01-14 Tom Tromey <tom@tromey.com>
14673
14674 * nat/linux-btrace.c: Don't include <config.h>.
14675 * nat/linux-ptrace.c: Don't include <config.h>.
14676 * nat/x86-linux-dregs.c: Don't include <config.h>.
14677
05ea2a05
TT
146782020-01-14 Tom Tromey <tom@tromey.com>
14679
14680 * configure: Rebuild.
14681 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14682
01027315
TT
146832020-01-14 Tom Tromey <tom@tromey.com>
14684
14685 * nat/x86-linux-dregs.c: Include configh.h.
14686 * nat/linux-ptrace.c: Include configh.h.
14687 * nat/linux-btrace.c: Include configh.h.
14688 * defs.h: Include config.h, bfd.h.
14689 * configure.ac: Don't source common.host.
14690 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14691 * configure: Rebuild.
14692 * acinclude.m4: Update path.
14693 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14694 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14695 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14696 (CLIBS): Add LIBSUPPORT.
14697 (CDEPS): Likewise.
14698 (COMMON_SFILES): Remove gdbsupport files.
14699 (HFILES_NO_SRCDIR): Likewise.
14700 (stamp-version): Update path to create-version.sh.
14701 (ALLDEPFILES): Remove gdbsupport files.
14702
b2ceabe8
TT
147032020-01-14 Tom Tromey <tom@tromey.com>
14704
14705 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14706 USE_WIN32API when needed.
14707 * configure.ac (USE_WIN32API): Don't define.
14708 (WIN32LIBS): Use WIN32APILIBS.
14709 * configure: Rebuild.
14710
25c51f71
TT
147112020-01-14 Tom Tromey <tom@tromey.com>
14712
14713 * configure: Rebuild.
14714 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14715
717c684d
BE
147162020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14717
14718 * skip.c (skip_function_command): Make skip w/o arguments use the
14719 name of the inlined function if pc is inside any inlined function.
14720
7da6a5b9
LM
147212020-01-14 Luis Machado <luis.machado@linaro.org>
14722
14723 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14724 * infrun.c (resume_1): Likewise.
14725 (handle_inferior_event): Remove stale comment.
14726 * linux-nat.c (linux_nat_target::resume): Update comments.
14727 (save_stop_reason): Likewise.
14728 (linux_nat_filter_event): Likewise.
14729 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14730
44e4c775
AB
147312020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14732
14733 * elfread.c (record_minimal_symbol): Set section index to 0 for
14734 non-allocatable sections.
14735
18a8505e
AT
14736
147372020-01-13 Ali Tamur <tamur@google.com>
14738
14739 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14740 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14741 to gdb::optional. Update comments.
14742 (dwo_file): Update comments.
14743 (read_attribute): Update API to take an additional out parameter,
14744 need_reprocess. This is used to mark attributes that need other
14745 attributes (e.g. str_offsets_base) for correct computation which may not
14746 have been read yet.
14747 (read_attribute_reprocess): New function declaration.
14748 (read_addr_index): Likewise.
14749 (read_dwo_str_index): Likewise.
14750 (read_stub_str_index): Likewise.
14751 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14752 (lookup_addr_base): New function definition.
14753 (lookup_ranges_base): Likewise.
14754 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14755 lookup_ranges_base.
14756 (init_cutu_and_read_dies): Update comments.
14757 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14758 unit. This is used to inherit parent's str_offsets_base and addr_base.
14759 Update comments.
14760 (init_cutu_and_read_dies_simple): Reflect API changes.
14761 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14762 (create_cus_hash_table): Change API to take parent compile unit.
14763 Reflect API changes.
14764 (open_and_init_dwo_file): Reflect API changes.
14765 (dwarf2_get_pc_bounds): Update comments.
14766 (dwarf2_record_block_ranges): Likewise.
14767 (read_full_die_1): Change implementation to reprocess attributes that
14768 need str_offsets_base and addr_base.
14769 (partial_die_info::read): Likewise.
14770 (read_attribute_reprocess): New function definition.
14771 (read_attribute_value): Change API to take an additional out parameter,
14772 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14773 when a non-dwo compile unit has index based attributes.
14774 (read_attribute): Reflect API changes.
14775 (read_addr_index_1): Reflect API changes. Update comments.
14776 (dwarf2_read_addr_index_data): Reflect API changes.
14777 (dwarf2_read_addr_index): Likewise.
14778 (read_str_index): Change API and implementation. This becomes a helper
14779 to be used by the new string index related methods. Update error
14780 message and comments.
14781 (read_dwo_str_index): New function definition.
14782 (read_stub_str_index): Likewise.
14783 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14784 * symfile.h (dwarf2_debug_sections): Likewise.
14785 * xcoffread.c (dwarf2_debug_sections): Likewise.
14786
0cac9354
SM
147872020-01-13 Simon Marchi <simon.marchi@efficios.com>
14788
14789 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14790 core_reg_sect type to gdb_byte *.
14791 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14792 * cris-tdep.c (fetch_core_registers): Likewise.
14793 * corelow.c (core_target::get_core_register_section): Change
14794 type of `contents` to gdb::byte_vector.
14795
9a6d629c
AB
147962020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14797
14798 * tui/tui-wingeneral.c (box_win): Position the title in the center
14799 of the border.
14800
d8b2f9e3
SM
148012020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14802
14803 * corelow.c (core_target::get_core_register_section): Use
14804 std::vector instead of alloca.
14805
bb564c58
SM
148062020-01-13 Simon Marchi <simon.marchi@efficios.com>
14807
14808 * warning.m4: Add -Wmissing-declarations to build_warnings.
14809 * configure: Re-generate.
14810
6b366111
SM
148112020-01-13 Simon Marchi <simon.marchi@efficios.com>
14812
14813 * python/python.c (init__gdb_module): Add declaration.
14814
6c265988
SM
148152020-01-13 Simon Marchi <simon.marchi@efficios.com>
14816
14817 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14818 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14819 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14820 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14821 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14822 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14823 * ada-exp.y (_initialize_ada_exp): Add declaration.
14824 * ada-lang.c (_initialize_ada_language): Add declaration.
14825 * ada-tasks.c (_initialize_tasks): Add declaration.
14826 * agent.c (_initialize_agent): Add declaration.
14827 * aix-thread.c (_initialize_aix_thread): Add declaration.
14828 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14829 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14830 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14831 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14832 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14833 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14834 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14835 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14836 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14837 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14838 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14839 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14840 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14841 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14842 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14843 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14844 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14845 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14846 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14847 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14848 * annotate.c (_initialize_annotate): Add declaration.
14849 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14850 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14851 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14852 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14853 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14854 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14855 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14856 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14857 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14858 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14859 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14860 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14861 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14862 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14863 * auto-load.c (_initialize_auto_load): Add declaration.
14864 * auxv.c (_initialize_auxv): Add declaration.
14865 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14866 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14867 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14868 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14869 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14870 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14871 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14872 * breakpoint.c (_initialize_breakpoint): Add declaration.
14873 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14874 * btrace.c (_initialize_btrace): Add declaration.
14875 * charset.c (_initialize_charset): Add declaration.
14876 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14877 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14878 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14879 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14880 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14881 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14882 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14883 * coffread.c (_initialize_coffread): Add declaration.
14884 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14885 * compile/compile.c (_initialize_compile): Add declaration.
14886 * complaints.c (_initialize_complaints): Add declaration.
14887 * completer.c (_initialize_completer): Add declaration.
14888 * copying.c (_initialize_copying): Add declaration.
14889 * corefile.c (_initialize_core): Add declaration.
14890 * corelow.c (_initialize_corelow): Add declaration.
14891 * cp-abi.c (_initialize_cp_abi): Add declaration.
14892 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14893 * cp-support.c (_initialize_cp_support): Add declaration.
14894 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14895 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14896 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14897 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14898 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14899 * ctfread.c (_initialize_ctfread): Add declaration.
14900 * d-lang.c (_initialize_d_language): Add declaration.
14901 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14902 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14903 * dbxread.c (_initialize_dbxread): Add declaration.
14904 * dcache.c (_initialize_dcache): Add declaration.
14905 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14906 * disasm.c (_initialize_disasm): Add declaration.
14907 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14908 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14909 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14910 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14911 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14912 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14913 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14914 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14915 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14916 * elfread.c (_initialize_elfread): Add declaration.
14917 * exec.c (_initialize_exec): Add declaration.
14918 * extension.c (_initialize_extension): Add declaration.
14919 * f-lang.c (_initialize_f_language): Add declaration.
14920 * f-valprint.c (_initialize_f_valprint): Add declaration.
14921 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14922 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14923 * filesystem.c (_initialize_filesystem): Add declaration.
14924 * findcmd.c (_initialize_mem_search): Add declaration.
14925 * findvar.c (_initialize_findvar): Add declaration.
14926 * fork-child.c (_initialize_fork_child): Add declaration.
14927 * frame-base.c (_initialize_frame_base): Add declaration.
14928 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14929 * frame.c (_initialize_frame): Add declaration.
14930 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14931 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14932 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14933 * gcore.c (_initialize_gcore): Add declaration.
14934 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14935 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14936 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14937 * gdbarch.c (_initialize_gdbarch): Add declaration.
14938 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14939 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14940 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14941 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14942 * go-lang.c (_initialize_go_language): Add declaration.
14943 * go32-nat.c (_initialize_go32_nat): Add declaration.
14944 * guile/guile.c (_initialize_guile): Add declaration.
14945 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14946 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14947 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14948 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14949 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14950 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14951 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14952 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14953 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14954 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14955 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14956 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14957 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14958 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14959 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14960 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14961 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14962 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14963 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14964 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14965 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14966 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14967 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14968 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14969 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14970 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14971 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14972 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14973 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14974 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14975 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14976 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14977 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14978 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14979 * infcall.c (_initialize_infcall): Add declaration.
14980 * infcmd.c (_initialize_infcmd): Add declaration.
14981 * inflow.c (_initialize_inflow): Add declaration.
14982 * infrun.c (_initialize_infrun): Add declaration.
14983 * interps.c (_initialize_interpreter): Add declaration.
14984 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14985 * jit.c (_initialize_jit): Add declaration.
14986 * language.c (_initialize_language): Add declaration.
14987 * linux-fork.c (_initialize_linux_fork): Add declaration.
14988 * linux-nat.c (_initialize_linux_nat): Add declaration.
14989 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14990 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14991 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14992 * m2-lang.c (_initialize_m2_language): Add declaration.
14993 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14994 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14995 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14996 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14997 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14998 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14999 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15000 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15001 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15002 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15003 * machoread.c (_initialize_machoread): Add declaration.
15004 * macrocmd.c (_initialize_macrocmd): Add declaration.
15005 * macroscope.c (_initialize_macroscope): Add declaration.
15006 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15007 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15008 * maint.c (_initialize_maint_cmds): Add declaration.
15009 * mdebugread.c (_initialize_mdebugread): Add declaration.
15010 * memattr.c (_initialize_mem): Add declaration.
15011 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15012 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15013 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15014 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15015 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15016 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15017 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15018 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15019 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15020 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15021 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15022 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15023 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15024 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15025 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15026 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15027 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15028 * mipsread.c (_initialize_mipsread): Add declaration.
15029 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15030 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15031 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15032 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15033 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15034 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15035 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15036 * nto-procfs.c (_initialize_procfs): Add declaration.
15037 * objc-lang.c (_initialize_objc_language): Add declaration.
15038 * observable.c (_initialize_observer): Add declaration.
15039 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15040 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15041 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15042 * osabi.c (_initialize_gdb_osabi): Add declaration.
15043 * osdata.c (_initialize_osdata): Add declaration.
15044 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15045 * parse.c (_initialize_parse): Add declaration.
15046 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15047 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15048 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15049 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15050 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15051 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15052 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15053 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15054 * printcmd.c (_initialize_printcmd): Add declaration.
15055 * probe.c (_initialize_probe): Add declaration.
15056 * proc-api.c (_initialize_proc_api): Add declaration.
15057 * proc-events.c (_initialize_proc_events): Add declaration.
15058 * proc-service.c (_initialize_proc_service): Add declaration.
15059 * procfs.c (_initialize_procfs): Add declaration.
15060 * producer.c (_initialize_producer): Add declaration.
15061 * psymtab.c (_initialize_psymtab): Add declaration.
15062 * python/python.c (_initialize_python): Add declaration.
15063 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15064 * record-btrace.c (_initialize_record_btrace): Add declaration.
15065 * record-full.c (_initialize_record_full): Add declaration.
15066 * record.c (_initialize_record): Add declaration.
15067 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15068 * regcache.c (_initialize_regcache): Add declaration.
15069 * reggroups.c (_initialize_reggroup): Add declaration.
15070 * remote-notif.c (_initialize_notif): Add declaration.
15071 * remote-sim.c (_initialize_remote_sim): Add declaration.
15072 * remote.c (_initialize_remote): Add declaration.
15073 * reverse.c (_initialize_reverse): Add declaration.
15074 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15075 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15076 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15077 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15078 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15079 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15080 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15081 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15082 Add declaration.
15083 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15084 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15085 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15086 * rust-exp.y (_initialize_rust_exp): Add declaration.
15087 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15088 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15089 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15090 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15091 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15092 * score-tdep.c (_initialize_score_tdep): Add declaration.
15093 * ser-go32.c (_initialize_ser_dos): Add declaration.
15094 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15095 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15096 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15097 * ser-uds.c (_initialize_ser_socket): Add declaration.
15098 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15099 * serial.c (_initialize_serial): Add declaration.
15100 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15101 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15102 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15103 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15104 * skip.c (_initialize_step_skip): Add declaration.
15105 * sol-thread.c (_initialize_sol_thread): Add declaration.
15106 * solib-aix.c (_initialize_solib_aix): Add declaration.
15107 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15108 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15109 * solib-frv.c (_initialize_frv_solib): Add declaration.
15110 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15111 * solib-target.c (_initialize_solib_target): Add declaration.
15112 * solib.c (_initialize_solib): Add declaration.
15113 * source-cache.c (_initialize_source_cache): Add declaration.
15114 * source.c (_initialize_source): Add declaration.
15115 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15116 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15117 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15118 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15119 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15120 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15121 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15122 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15123 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15124 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15125 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15126 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15127 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15128 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15129 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15130 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15131 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15132 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15133 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15134 * stabsread.c (_initialize_stabsread): Add declaration.
15135 * stack.c (_initialize_stack): Add declaration.
15136 * stap-probe.c (_initialize_stap_probe): Add declaration.
15137 * std-regs.c (_initialize_frame_reg): Add declaration.
15138 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15139 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15140 * symfile.c (_initialize_symfile): Add declaration.
15141 * symmisc.c (_initialize_symmisc): Add declaration.
15142 * symtab.c (_initialize_symtab): Add declaration.
15143 * target.c (_initialize_target): Add declaration.
15144 * target-connection.c (_initialize_target_connection): Add
15145 declaration.
15146 * target-dcache.c (_initialize_target_dcache): Add declaration.
15147 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15148 * thread.c (_initialize_thread): Add declaration.
15149 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15150 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15151 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15152 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15153 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15154 * tracectf.c (_initialize_ctf): Add declaration.
15155 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15156 * tracefile.c (_initialize_tracefile): Add declaration.
15157 * tracepoint.c (_initialize_tracepoint): Add declaration.
15158 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15159 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15160 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15161 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15162 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15163 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15164 * tui/tui.c (_initialize_tui): Add declaration.
15165 * typeprint.c (_initialize_typeprint): Add declaration.
15166 * ui-style.c (_initialize_ui_style): Add declaration.
15167 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15168 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15169 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15170 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15171 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15172 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15173 * unittests/filtered_iterator-selftests.c
15174 (_initialize_filtered_iterator_selftests): Add declaration.
15175 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15176 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15177 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15178 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15179 * unittests/main-thread-selftests.c
15180 (_initialize_main_thread_selftests): Add declaration.
15181 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15182 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15183 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15184 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15185 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15186 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15187 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15188 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15189 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15190 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15191 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15192 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15193 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15194 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15195 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15196 declaration.
15197 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15198 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15199 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15200 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15201 * user-regs.c (_initialize_user_regs): Add declaration.
15202 * utils.c (_initialize_utils): Add declaration.
15203 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15204 * valops.c (_initialize_valops): Add declaration.
15205 * valprint.c (_initialize_valprint): Add declaration.
15206 * value.c (_initialize_values): Add declaration.
15207 * varobj.c (_initialize_varobj): Add declaration.
15208 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15209 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15210 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15211 * windows-nat.c (_initialize_windows_nat): Add declaration.
15212 (_initialize_check_for_gdb_ini): Add declaration.
15213 (_initialize_loadable): Add declaration.
15214 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15215 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15216 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15217 * xcoffread.c (_initialize_xcoffread): Add declaration.
15218 * xml-support.c (_initialize_xml_support): Add declaration.
15219 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15220 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15221 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15222 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15223
e2de1eec
SM
152242020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15225
15226 * regformats/regdat.sh: Generate declaration for init function.
15227
e0037b4c
SM
152282020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15229
15230 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15231 up.
15232 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15233 close_one_inferior>: New methods.
15234 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15235 pass down target to find_inferior_pid.
15236 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15237 Pass down target to find_inferior_ptid.
15238 (gdbsim_target::create_inferior): Pass down target to
15239 add_thread_silent.
15240 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15241 target down to find_inferior_ptid and switch_to_thread.
15242 (gdbsim_target::close): Update to call close_one_inferior.
15243 (struct resume_data): Remove.
15244 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15245 directly, rather than through a void pointer.
15246 (gdbsim_target::resume): Update to call resume_one_inferior.
15247
58920b5b
SM
152482020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15249
15250 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15251
4ec89149
PA
152522020-01-12 Pedro Alves <palves@redhat.com>
15253
15254 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15255 directly for the current inferior instead of
15256 discard_all_inferiors.
15257 (discard_all_inferiors): Delete.
15258
7c392d1d
TT
152592020-01-11 Tom Tromey <tom@tromey.com>
15260
15261 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15262 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15263 deprecated_safe_get_selected_frame.
15264
d9ebdab7
TBA
152652020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15266
15267 * inferior.c (print_inferior): Switch inferior before printing it.
15268
f3c469b9
PA
152692020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15270 Pedro Alves <palves@redhat.com>
15271
15272 * progspace-and-thread.c (switch_to_program_space_and_thread):
15273 Assert there's an inferior for PSPACE. Use
15274 switch_to_inferior_no_thread to switch the inferior too.
15275 * progspace.c (program_space::~program_space): Call
15276 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15277 (program_space::free_all_objfiles): Don't call clear_symtab_users
15278 here.
15279 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15280
65c574f6
PA
152812020-01-10 Pedro Alves <palves@redhat.com>
15282
15283 * NEWS: Mention multi-target debugging, "info connections", and
15284 "add-inferior -no-connection".
15285
2f4fcf00
PA
152862020-01-10 Pedro Alves <palves@redhat.com>
15287
15288 * infrun.c: Include "target-connection.h".
15289 (check_multi_target_resumption): New.
15290 (proceed): Call it.
15291 * target-connection.c (make_target_connection_string): Make
15292 extern.
15293 * target-connection.h (make_target_connection_string): Declare.
15294
121b3efd
PA
152952020-01-10 Pedro Alves <palves@redhat.com>
15296
15297 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15298 * inferior.c (uiout_field_connection): New function.
15299 (print_inferior): Add new "connection-id" column.
15300 (add_inferior_command): Show connection number/string of added
15301 inferior.
15302 * process-stratum-target.h
15303 (process_stratum_target::connection_string): New virtual method.
15304 (process_stratum_target::connection_number): New field.
15305 * remote.c (remote_target::connection_string): New override.
15306 * target-connection.c: New file.
15307 * target-connection.h: New file.
15308 * target.c (decref_target): Remove process_stratum targets from
15309 the connection list.
15310 (target_stack::push): Add process_stratum targets to the
15311 connection list.
15312
4f837581
PA
153132020-01-10 Pedro Alves <palves@redhat.com>
15314
15315 Revert:
15316 2016-04-12 Pedro Alves <palves@redhat.com>
15317 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15318 Remove references to name.
15319 * serial.h (struct serial) <name>: Delete.
15320
f4ec508e
PA
153212020-01-10 Pedro Alves <palves@redhat.com>
15322
15323 * gdbarch-selftests.c (register_to_value_test): Remove "target
15324 already pushed" check.
15325
5b6d1e4f
PA
153262020-01-10 Pedro Alves <palves@redhat.com>
15327 John Baldwin <jhb@FreeBSD.org>
15328
15329 * aarch64-linux-nat.c
15330 (aarch64_linux_nat_target::thread_architecture): Adjust.
15331 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15332 (task_command_1): Likewise.
15333 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15334 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15335 (aix_thread_target::store_registers)
15336 (aix_thread_target::thread_alive): Adjust.
15337 * amd64-fbsd-tdep.c: Include "inferior.h".
15338 (amd64fbsd_get_thread_local_address): Pass down target.
15339 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15340 thread's gdbarch instead of target_gdbarch.
15341 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15342 get_last_target_status.
15343 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15344 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15345 inferiors.
15346 (update_inserted_breakpoint_locations): Skip if inferiors with no
15347 execution.
15348 (update_global_location_list): When handling moribund locations,
15349 find representative inferior for location's pspace, and use thread
15350 count of its process_stratum target.
15351 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15352 * bsd-uthread.c (bsd_uthread_target::wait): Use
15353 as_process_stratum_target and adjust thread_change_ptid and
15354 add_thread calls.
15355 (bsd_uthread_target::update_thread_list): Use
15356 as_process_stratum_target and adjust find_thread_ptid,
15357 thread_change_ptid and add_thread calls.
15358 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15359 find_thread_ptid call.
15360 * corelow.c (add_to_thread_list): Adjust add_thread call.
15361 (core_target_open): Adjust add_thread_silent and thread_count
15362 calls.
15363 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15364 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15365 * event-top.c (async_disconnect): Pop targets from all inferiors.
15366 * exec.c (add_target_sections): Push exec target on all inferiors
15367 sharing the program space.
15368 (remove_target_sections): Remove the exec target from all
15369 inferiors sharing the program space.
15370 (exec_on_vfork): New.
15371 * exec.h (exec_on_vfork): Declare.
15372 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15373 Pass it down.
15374 (fbsd_nat_target::update_thread_list): Adjust.
15375 (fbsd_nat_target::resume): Adjust.
15376 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15377 down.
15378 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15379 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15380 get_thread_arch_regcache call.
15381 * fork-child.c (gdb_startup_inferior): Pass target down to
15382 startup_inferior and set_executing.
15383 * gdbthread.h (struct process_stratum_target): Forward declare.
15384 (add_thread, add_thread_silent, add_thread_with_info)
15385 (in_thread_list): Add process_stratum_target parameter.
15386 (find_thread_ptid(inferior*, ptid_t)): New overload.
15387 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15388 parameter.
15389 (all_threads()): Delete overload.
15390 (all_threads, all_non_exited_threads): Add process_stratum_target
15391 parameter.
15392 (all_threads_safe): Use brace initialization.
15393 (thread_count): Add process_stratum_target parameter.
15394 (set_resumed, set_running, set_stop_requested, set_executing)
15395 (threads_are_executing, finish_thread_state): Add
15396 process_stratum_target parameter.
15397 (switch_to_thread): Use is_current_thread.
15398 * i386-fbsd-tdep.c: Include "inferior.h".
15399 (i386fbsd_get_thread_local_address): Pass down target.
15400 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15401 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15402 have_inferiors check.
15403 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15404 (inf_ptrace_target::attach): Adjust.
15405 * infcall.c (run_inferior_call): Adjust.
15406 * infcmd.c (run_command_1): Pass target to
15407 scoped_finish_thread_state.
15408 (proceed_thread_callback): Skip inferiors with no execution.
15409 (continue_command): Rename 'all_threads' local to avoid hiding
15410 'all_threads' function. Adjust get_last_target_status call.
15411 (prepare_one_step): Adjust set_running call.
15412 (signal_command): Use user_visible_resume_target. Compare thread
15413 pointers instead of inferior_ptid.
15414 (info_program_command): Adjust to pass down target.
15415 (attach_command): Mark target's 'thread_executing' flag.
15416 (stop_current_target_threads_ns): New, factored out from ...
15417 (interrupt_target_1): ... this. Switch inferior before making
15418 target calls.
15419 * inferior-iter.h
15420 (struct all_inferiors_iterator, struct all_inferiors_range)
15421 (struct all_inferiors_safe_range)
15422 (struct all_non_exited_inferiors_range): Filter on
15423 process_stratum_target too. Remove explicit.
15424 * inferior.c (inferior::inferior): Push dummy target on target
15425 stack.
15426 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15427 Add process_stratum_target parameter, and pass it down.
15428 (have_live_inferiors): Adjust.
15429 (switch_to_inferior_and_push_target): New.
15430 (add_inferior_command, clone_inferior_command): Handle
15431 "-no-connection" parameter. Use
15432 switch_to_inferior_and_push_target.
15433 (_initialize_inferior): Mention "-no-connection" option in
15434 the help of "add-inferior" and "clone-inferior" commands.
15435 * inferior.h: Include "process-stratum-target.h".
15436 (interrupt_target_1): Use bool.
15437 (struct inferior) <push_target, unpush_target, target_is_pushed,
15438 find_target_beneath, top_target, process_target, target_at,
15439 m_stack>: New.
15440 (discard_all_inferiors): Delete.
15441 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15442 (all_inferiors, all_non_exited_inferiors): Add
15443 process_stratum_target parameter.
15444 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15445 (target_last_proc_target): New global.
15446 (follow_fork_inferior): Push target on new inferior. Pass target
15447 to add_thread_silent. Call exec_on_vfork. Handle target's
15448 reference count.
15449 (follow_fork): Adjust get_last_target_status call. Also consider
15450 target.
15451 (follow_exec): Push target on new inferior.
15452 (struct execution_control_state) <target>: New field.
15453 (user_visible_resume_target): New.
15454 (do_target_resume): Call target_async.
15455 (resume_1): Set target's threads_executing flag. Consider resume
15456 target.
15457 (commit_resume_all_targets): New.
15458 (proceed): Also consider resume target. Skip threads of inferiors
15459 with no execution. Commit resumtion in all targets.
15460 (start_remote): Pass current inferior to wait_for_inferior.
15461 (infrun_thread_stop_requested): Consider target as well. Pass
15462 thread_info pointer to clear_inline_frame_state instead of ptid.
15463 (infrun_thread_thread_exit): Consider target as well.
15464 (random_pending_event_thread): New inferior parameter. Use it.
15465 (do_target_wait): Rename to ...
15466 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15467 down.
15468 (threads_are_resumed_pending_p, do_target_wait): New.
15469 (prepare_for_detach): Adjust calls.
15470 (wait_for_inferior): New inferior parameter. Handle it. Use
15471 do_target_wait_1 instead of do_target_wait.
15472 (fetch_inferior_event): Adjust. Switch to representative
15473 inferior. Pass target down.
15474 (set_last_target_status): Add process_stratum_target parameter.
15475 Save target in global.
15476 (get_last_target_status): Add process_stratum_target parameter and
15477 handle it.
15478 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15479 (context_switch): Check inferior_ptid == null_ptid before calling
15480 inferior_thread().
15481 (get_inferior_stop_soon): Pass down target.
15482 (wait_one): Rename to ...
15483 (poll_one_curr_target): ... this.
15484 (struct wait_one_event): New.
15485 (wait_one): New.
15486 (stop_all_threads): Adjust.
15487 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15488 event's target.
15489 (switch_back_to_stepped_thread): Also consider target.
15490 (print_stop_event): Update.
15491 (normal_stop): Update. Also consider the resume target.
15492 * infrun.h (wait_for_inferior): Remove declaration.
15493 (user_visible_resume_target): New declaration.
15494 (get_last_target_status, set_last_target_status): New
15495 process_stratum_target parameter.
15496 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15497 process_stratum_target parameter, and use it.
15498 (clear_inline_frame_state (thread_info*)): New.
15499 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15500 process_stratum_target parameter.
15501 (clear_inline_frame_state (thread_info*)): Declare.
15502 * linux-fork.c (delete_checkpoint_command): Pass target down to
15503 find_thread_ptid.
15504 (checkpoint_command): Adjust.
15505 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15506 instead of just tweaking inferior_ptid.
15507 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15508 (exit_lwp): Pass target down to find_thread_ptid.
15509 (attach_proc_task_lwp_callback): Pass target down to
15510 add_thread/set_running/set_executing.
15511 (linux_nat_target::attach): Pass target down to
15512 thread_change_ptid.
15513 (get_detach_signal): Pass target down to find_thread_ptid.
15514 Consider last target status's target.
15515 (linux_resume_one_lwp_throw, resume_lwp)
15516 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15517 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15518 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15519 (linux_nat_target::async_wait_fd): New.
15520 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15521 target down.
15522 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15523 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15524 * linux-thread-db.c (struct thread_db_info::process_target): New
15525 field.
15526 (add_thread_db_info): Save target.
15527 (get_thread_db_info): New process_stratum_target parameter. Also
15528 match target.
15529 (delete_thread_db_info): New process_stratum_target parameter.
15530 Also match target.
15531 (thread_from_lwp): Adjust to pass down target.
15532 (thread_db_notice_clone): Pass down target.
15533 (check_thread_db_callback): Pass down target.
15534 (try_thread_db_load_1): Always push the thread_db target.
15535 (try_thread_db_load, record_thread): Pass target down.
15536 (thread_db_target::detach): Pass target down. Always unpush the
15537 thread_db target.
15538 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15539 target down. Always unpush the thread_db target.
15540 (find_new_threads_callback, thread_db_find_new_threads_2)
15541 (thread_db_target::update_thread_list): Pass target down.
15542 (thread_db_target::pid_to_str): Pass current inferior down.
15543 (thread_db_target::get_thread_local_address): Pass target down.
15544 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15545 target down.
15546 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15547 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15548 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15549 (procfs_init_inferior): Rename to ...
15550 (procfs_target::procfs_init_inferior): ... this and adjust.
15551 (procfs_target::create_inferior, procfs_notice_thread)
15552 (procfs_do_thread_registers): Adjust.
15553 * ppc-fbsd-tdep.c: Include "inferior.h".
15554 (ppcfbsd_get_thread_local_address): Pass down target.
15555 * proc-service.c (ps_xfer_memory): Switch current inferior and
15556 program space as well.
15557 (get_ps_regcache): Pass target down.
15558 * process-stratum-target.c
15559 (process_stratum_target::thread_address_space)
15560 (process_stratum_target::thread_architecture): Pass target down.
15561 * process-stratum-target.h
15562 (process_stratum_target::threads_executing): New field.
15563 (as_process_stratum_target): New.
15564 * ravenscar-thread.c
15565 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15566 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15567 down.
15568 * record-btrace.c (record_btrace_target::info_record): Adjust.
15569 (record_btrace_target::record_method)
15570 (record_btrace_target::record_is_replaying)
15571 (record_btrace_target::fetch_registers)
15572 (get_thread_current_frame_id, record_btrace_target::resume)
15573 (record_btrace_target::wait, record_btrace_target::stop): Pass
15574 target down.
15575 * record-full.c (record_full_wait_1): Switch to event thread.
15576 Pass target down.
15577 * regcache.c (regcache::regcache)
15578 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15579 process_stratum_target parameter and handle it.
15580 (current_thread_target): New global.
15581 (get_thread_regcache): Add process_stratum_target parameter and
15582 handle it. Switch inferior before calling target method.
15583 (get_thread_regcache): Pass target down.
15584 (get_thread_regcache_for_ptid): Pass target down.
15585 (registers_changed_ptid): Add process_stratum_target parameter and
15586 handle it.
15587 (registers_changed_thread, registers_changed): Pass target down.
15588 (test_get_thread_arch_aspace_regcache): New.
15589 (current_regcache_test): Define a couple local test_target_ops
15590 instances and use them for testing.
15591 (readwrite_regcache): Pass process_stratum_target parameter.
15592 (cooked_read_test, cooked_write_test): Pass mock_target down.
15593 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15594 (get_thread_arch_aspace_regcache): Add process_stratum_target
15595 parameter.
15596 (regcache::target): New method.
15597 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15598 (regcache::registers_changed_ptid): Add process_stratum_target
15599 parameter.
15600 (regcache::m_target): New field.
15601 (registers_changed_ptid): Add process_stratum_target parameter.
15602 * remote.c (remote_state::supports_vCont_probed): New field.
15603 (remote_target::async_wait_fd): New method.
15604 (remote_unpush_and_throw): Add remote_target parameter.
15605 (get_current_remote_target): Adjust.
15606 (remote_target::remote_add_inferior): Push target.
15607 (remote_target::remote_add_thread)
15608 (remote_target::remote_notice_new_inferior)
15609 (get_remote_thread_info): Pass target down.
15610 (remote_target::update_thread_list): Skip threads of inferiors
15611 bound to other targets. (remote_target::close): Don't discard
15612 inferiors. (remote_target::add_current_inferior_and_thread)
15613 (remote_target::process_initial_stop_replies)
15614 (remote_target::start_remote)
15615 (remote_target::remote_serial_quit_handler): Pass down target.
15616 (remote_target::remote_unpush_target): New remote_target
15617 parameter. Unpush the target from all inferiors.
15618 (remote_target::remote_unpush_and_throw): New remote_target
15619 parameter. Pass it down.
15620 (remote_target::open_1): Check whether the current inferior has
15621 execution instead of checking whether any inferior is live. Pass
15622 target down.
15623 (remote_target::remote_detach_1): Pass down target. Use
15624 remote_unpush_target.
15625 (extended_remote_target::attach): Pass down target.
15626 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15627 (remote_target::append_resumption): Pass down target.
15628 (remote_target::append_pending_thread_resumptions)
15629 (remote_target::remote_resume_with_hc, remote_target::resume)
15630 (remote_target::commit_resume): Pass down target.
15631 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15632 (remote_target::interrupt_query)
15633 (remote_target::remove_new_fork_children)
15634 (remote_target::check_pending_events_prevent_wildcard_vcont)
15635 (remote_target::remote_parse_stop_reply)
15636 (remote_target::process_stop_reply): Pass down target.
15637 (first_remote_resumed_thread): New remote_target parameter. Pass
15638 it down.
15639 (remote_target::wait_as): Pass down target.
15640 (unpush_and_perror): New remote_target parameter. Pass it down.
15641 (remote_target::readchar, remote_target::remote_serial_write)
15642 (remote_target::getpkt_or_notif_sane_1)
15643 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15644 down target.
15645 (remote_target::mourn_inferior): Pass down target. Use
15646 remote_unpush_target.
15647 (remote_target::core_of_thread)
15648 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15649 (remote_target::pid_to_exec_file)
15650 (remote_target::thread_handle_to_thread_info): Pass down target.
15651 (remote_target::async_wait_fd): New.
15652 * riscv-fbsd-tdep.c: Include "inferior.h".
15653 (riscv_fbsd_get_thread_local_address): Pass down target.
15654 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15655 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15656 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15657 Adjust.
15658 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15659 * solib-svr4.c (enable_break): Pass down target.
15660 * spu-multiarch.c (parse_spufs_run): Pass down target.
15661 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15662 * target-delegates.c: Regenerate.
15663 * target.c (g_target_stack): Delete.
15664 (current_top_target): Return the current inferior's top target.
15665 (target_has_execution_1): Refer to the passed-in inferior's top
15666 target.
15667 (target_supports_terminal_ours): Check whether the initial
15668 inferior was already created.
15669 (decref_target): New.
15670 (target_stack::push): Incref/decref the target.
15671 (push_target, push_target, unpush_target): Adjust.
15672 (target_stack::unpush): Defref target.
15673 (target_is_pushed): Return bool. Adjust to refer to the current
15674 inferior's target stack.
15675 (dispose_inferior): Delete, and inline parts ...
15676 (target_preopen): ... here. Only dispose of the current inferior.
15677 (target_detach): Hold strong target reference while detaching.
15678 Pass target down.
15679 (target_thread_name): Add assertion.
15680 (target_resume): Pass down target.
15681 (target_ops::beneath, find_target_at): Adjust to refer to the
15682 current inferior's target stack.
15683 (get_dummy_target): New.
15684 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15685 has a thread running.
15686 (initialize_targets): Rename to ...
15687 (_initialize_target): ... this.
15688 * target.h: Include "gdbsupport/refcounted-object.h".
15689 (struct target_ops): Inherit refcounted_object.
15690 (target_ops::shortname, target_ops::longname): Make const.
15691 (target_ops::async_wait_fd): New method.
15692 (decref_target): Declare.
15693 (struct target_ops_ref_policy): New.
15694 (target_ops_ref): New typedef.
15695 (get_dummy_target): Declare function.
15696 (target_is_pushed): Return bool.
15697 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15698 (all_matching_threads_iterator::all_matching_threads_iterator):
15699 Handle filter target.
15700 * thread-iter.h (struct all_matching_threads_iterator, struct
15701 all_matching_threads_range, class all_non_exited_threads_range):
15702 Filter by target too. Remove explicit.
15703 * thread.c (threads_executing): Delete.
15704 (inferior_thread): Pass down current inferior.
15705 (clear_thread_inferior_resources): Pass down thread pointer
15706 instead of ptid_t.
15707 (add_thread_silent, add_thread_with_info, add_thread): Add
15708 process_stratum_target parameter. Use it for thread and inferior
15709 searches.
15710 (is_current_thread): New.
15711 (thread_info::deletable): Use it.
15712 (find_thread_ptid, thread_count, in_thread_list)
15713 (thread_change_ptid, set_resumed, set_running): New
15714 process_stratum_target parameter. Pass it down.
15715 (set_executing): New process_stratum_target parameter. Pass it
15716 down. Adjust reference to 'threads_executing'.
15717 (threads_are_executing): New process_stratum_target parameter.
15718 Adjust reference to 'threads_executing'.
15719 (set_stop_requested, finish_thread_state): New
15720 process_stratum_target parameter. Pass it down.
15721 (switch_to_thread): Also match inferior.
15722 (switch_to_thread): New process_stratum_target parameter. Pass it
15723 down.
15724 (update_threads_executing): Reimplement.
15725 * top.c (quit_force): Pop targets from all inferior.
15726 (gdb_init): Don't call initialize_targets.
15727 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15728 Declare.
15729 (windows_add_thread, windows_delete_thread): Adjust.
15730 (get_windows_debug_event): Rename to ...
15731 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15732 * tracefile-tfile.c (tfile_target_open): Pass down target.
15733 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15734 Forward declare.
15735 (switch_to_thread): Add process_stratum_target parameter.
15736 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15737 parameter. Use it.
15738 (mi_on_resume): Pass target down.
15739 * nat/fork-inferior.c (startup_inferior): Add
15740 process_stratum_target parameter. Pass it down.
15741 * nat/fork-inferior.h (startup_inferior): Add
15742 process_stratum_target parameter.
15743 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15744
75c6c844
PA
157452020-01-10 Pedro Alves <palves@redhat.com>
15746
15747 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15748 directly. Instead find the first thread in the thread list and
15749 use switch_to_thread.
15750
78f2c40a
PA
157512020-01-10 Pedro Alves <palves@redhat.com>
15752
15753 * remote.c (remote_target::remote_add_inferior): Don't bind a
15754 process to the current inferior if the current inferior is already
15755 bound to a process.
15756
e7af6c70
TBA
157572020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15758 Pedro Alves <palves@redhat.com>
15759
15760 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15761 If no process is specified, return null_ptid instead of
15762 inferior_ptid.
15763 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15764 TARGET_WAITKIND_SIGNALLED with no pid.
15765
31ba933e
PA
157662020-01-10 Pedro Alves <palves@redhat.com>
15767
15768 * remote.c (first_remote_resumed_thread): New.
15769 (remote_target::wait_as): Use it as default event_ptid instead of
15770 inferior_ptid.
15771
735fc2ca
PA
157722020-01-10 Pedro Alves <palves@redhat.com>
15773
15774 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15775
c17e02e1
PA
157762020-01-10 Pedro Alves <palves@redhat.com>
15777
15778 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15779 not -1.
15780
ab1ddbcf
PA
157812020-01-10 Pedro Alves <palves@redhat.com>
15782
15783 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15784 ptid to get_last_target_status.
15785 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15786 ptid to get_last_target_status.
15787 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15788 get_last_target_status.
15789 (info_program_command): Don't pass a target_waitstatus to
15790 get_last_target_status.
15791 * infrun.c (init_wait_for_inferior): Use
15792 nullify_last_target_wait_ptid.
15793 (get_last_target_status): Handle nullptr arguments.
15794 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15795 (print_stop_event): Don't pass a ptid to get_last_target_status.
15796 (normal_stop): Don't pass a ptid to get_last_target_status.
15797 * infrun.h (get_last_target_status, set_last_target_status): Move
15798 comments here and update.
15799 (nullify_last_target_wait_ptid): Declare.
15800 * linux-fork.c (fork_load_infrun_state): Remove local extern
15801 declaration of nullify_last_target_wait_ptid.
15802 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15803 to get_last_target_status.
15804
f3f8ece4
PA
158052020-01-10 Pedro Alves <palves@redhat.com>
15806
15807 * gdbthread.h (scoped_restore_current_thread)
15808 <dont_restore, restore, m_dont_restore>: Declare.
15809 * thread.c (thread_alive): Add assertion. Return bool.
15810 (switch_to_thread_if_alive): New.
15811 (prune_threads): Switch inferior/thread.
15812 (print_thread_info_1): Switch thread before calling target methods.
15813 (scoped_restore_current_thread::restore): New, factored out from
15814 ...
15815 (scoped_restore_current_thread::~scoped_restore_current_thread):
15816 ... this.
15817 (scoped_restore_current_thread::scoped_restore_current_thread):
15818 Add assertion.
15819 (thread_apply_all_command, thread_select): Use
15820 switch_to_thread_if_alive.
15821 * infrun.c (proceed, restart_threads, handle_signal_stop)
15822 (switch_back_to_stepped_thread): Switch current thread before
15823 calling target methods.
15824
db2d40f7
PA
158252020-01-10 Pedro Alves <palves@redhat.com>
15826
15827 * inferior.c (switch_to_inferior_no_thread): New function,
15828 factored out from ...
15829 (inferior_command): ... here.
15830 * inferior.h (switch_to_inferior_no_thread): Declare.
15831 * mi/mi-main.c (run_one_inferior): Use
15832 switch_to_inferior_no_thread.
15833
bd420a2d
PA
158342020-01-10 Pedro Alves <palves@redhat.com>
15835
15836 * infcmd.c (kill_command): Remove dead code.
15837
ddf5db90
PA
158382020-01-10 Pedro Alves <palves@redhat.com>
15839
15840 * remote.c (remote_target::mourn_inferior): No longer check
15841 whether the target is running.
15842
5018ce90
PA
158432020-01-10 Pedro Alves <palves@redhat.com>
15844
15845 * corelow.c (core_target::has_execution): Change parameter type to
15846 inferior pointer.
15847 * inferior.c (number_of_live_inferiors): Use
15848 inferior::has_execution instead of target_has_execution_1.
15849 * inferior.h (inferior::has_execution): New.
15850 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15851 inferior::has_execution instead of target_has_execution_1.
15852 * process-stratum-target.c
15853 (process_stratum_target::has_execution): Change parameter type to
15854 inferior pointer. Check the inferior's PID instead of
15855 inferior_ptid.
15856 * process-stratum-target.h
15857 (process_stratum_target::has_execution): Change parameter type to
15858 inferior pointer.
15859 * record-full.c (record_full_core_target::has_execution): Change
15860 parameter type to inferior pointer.
15861 * target.c (target_has_execution_1): Change parameter type to
15862 inferior pointer.
15863 (target_has_execution_current): Adjust.
15864 * target.h (target_ops::has_execution): Change parameter type to
15865 inferior pointer.
15866 (target_has_execution_1): Change parameter type to inferior
15867 pointer. Change return type to bool.
15868 * tracefile.h (tracefile_target::has_execution): Change parameter
15869 type to inferior pointer.
15870
74375d18
PA
158712020-01-10 Pedro Alves <palves@redhat.com>
15872
15873 * exceptions.c (print_flush): Remove current_top_target() check.
15874
acdf84a6
PA
158752020-01-10 Pedro Alves <palves@redhat.com>
15876
15877 * remote.c (show_remote_exec_file): Show the current inferior's
15878 exec-file instead of the command variable's value.
15879
ec506636
PA
158802020-01-10 Pedro Alves <palves@redhat.com>
15881
15882 * record-full.c (record_full_resume_ptid): New global.
15883 (record_full_target::resume): Set it.
15884 (record_full_wait_1): Use record_full_resume_ptid instead of
15885 inferior_ptid.
15886
873657b9
PA
158872020-01-10 Pedro Alves <palves@redhat.com>
15888
15889 * gdbthread.h (scoped_restore_current_thread)
15890 <dont_restore, restore, m_dont_restore>: Declare.
15891 * thread.c (thread_alive): Add assertion. Return bool.
15892 (switch_to_thread_if_alive): New.
15893 (prune_threads): Switch inferior/thread.
15894 (print_thread_info_1): Switch thread before calling target methods.
15895 (scoped_restore_current_thread::restore): New, factored out from
15896 ...
15897 (scoped_restore_current_thread::~scoped_restore_current_thread):
15898 ... this.
15899 (scoped_restore_current_thread::scoped_restore_current_thread):
15900 Add assertion.
15901 (thread_apply_all_command, thread_select): Use
15902 switch_to_thread_if_alive.
15903
7f0ae84c
GB
159042020-01-10 George Barrett <bob@bob131.so>
15905
15906 * stap-probe.c (stap_modify_semaphore): Don't check for null
15907 semaphores.
15908 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15909 for null semaphores.
15910
f5a7c406
AB
159112020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15912
15913 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15914 all source windows, and maintain horizontal scroll status while
15915 doing so.
15916
9ae6bf64
TT
159172020-01-09 Tom Tromey <tom@tromey.com>
15918
15919 PR tui/18932:
15920 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15921 update_source_window, not print_source_lines.
15922
b2efe70c
AB
159232020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15924
15925 * tui/tui.c (tui_enable): Register tui hooks after calling
15926 tui_display_main.
15927
5f23a082
CB
159282020-01-09 Christian Biesinger <cbiesinger@google.com>
15929
15930 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15931
3061113b
SM
159322020-01-08 Simon Marchi <simon.marchi@efficios.com>
15933
15934 * thread.c (print_thread_info_1): Fix indentation.
15935
57d75002
CB
159362020-01-09 Christian Biesinger <cbiesinger@google.com>
15937
15938 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15939 unique_xmalloc_ptr outside the if to always free the demangled name.
15940
6a053cb1
TT
159412020-01-08 Tom Tromey <tromey@adacore.com>
15942
15943 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15944 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15945 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15946 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15947 Remove.
15948 (section_offsets): New typedef.
15949 * symtab.c (fixup_section, get_msymbol_address): Update.
15950 * symmisc.c (dump_msymbols): Update.
15951 * symfile.h (relative_addr_info_to_section_offsets)
15952 (symfile_map_offsets_to_segments): Update.
15953 * symfile.c (build_section_addr_info_from_objfile)
15954 (init_objfile_sect_indices): Update.
15955 (struct place_section_arg): Change type of "offsets".
15956 (place_section): Update.
15957 (relative_addr_info_to_section_offsets): Change type of
15958 "section_offsets". Remove "num_sections" parameter.
15959 (default_symfile_offsets, syms_from_objfile_1)
15960 (set_objfile_default_section_offset): Update.
15961 (reread_symbols): No need to preserve section offsets by hand.
15962 (symfile_map_offsets_to_segments): Change type of "offsets".
15963 * stap-probe.c (relocate_address): Update.
15964 * stabsread.h (process_one_symbol): Update.
15965 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15966 (solib_target_relocate_section_addresses): Update.
15967 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15968 Update.
15969 * solib-frv.c (frv_relocate_main_executable): Update.
15970 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15971 * solib-aix.c (solib_aix_get_section_offsets): Change return
15972 type.
15973 (solib_aix_solib_create_inferior_hook): Update.
15974 * remote.c (remote_target::get_offsets): Update.
15975 * psymtab.c (find_pc_sect_psymtab): Update.
15976 * psympriv.h (struct partial_symbol) <address, text_low,
15977 text_high>: Update.
15978 * objfiles.h (obj_section_offset): Update.
15979 (struct objfile) <section_offsets>: Change type.
15980 <num_sections>: Remove.
15981 (objfile_relocate): Update.
15982 * objfiles.c (entry_point_address_query): Update
15983 (relocate_one_symbol): Change type of "section_offsets".
15984 (objfile_relocate1, objfile_relocate1): Change type of
15985 "new_offsets".
15986 (objfile_rebase1): Update.
15987 * mipsread.c (mipscoff_symfile_read): Update.
15988 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15989 parameter.
15990 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15991 (parse_external, psymtab_to_symtab_1): Update.
15992 * machoread.c (macho_symfile_offsets): Update.
15993 * ia64-tdep.c (ia64_find_unwind_table): Update.
15994 * hppa-tdep.c (read_unwind_info): Update.
15995 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15996 * dwarf2read.c (create_addrmap_from_index)
15997 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15998 (process_psymtab_comp_unit_reader, add_partial_symbol)
15999 (add_partial_subprogram, process_full_comp_unit)
16000 (read_file_scope, read_func_scope, read_lexical_block_scope)
16001 (read_call_site_scope, dwarf2_rnglists_process)
16002 (dwarf2_ranges_process, dwarf2_ranges_read)
16003 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16004 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16005 Update.
16006 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16007 Update.
16008 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16009 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16010 (process_one_symbol): Change type of "section_offsets".
16011 * ctfread.c (get_objfile_text_range): Update.
16012 * coffread.c (coff_symtab_read, enter_linenos)
16013 (process_coff_symbol): Update.
16014 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16015 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16016
456e800a
TT
160172020-01-08 Tom Tromey <tromey@adacore.com>
16018
16019 * dwarf2read.c (parse_macro_definition): Use std::string.
16020 (parse_macro_definition): Likewise.
16021
6dfa2fc2
TT
160222020-01-08 Tom Tromey <tromey@adacore.com>
16023
16024 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16025 (ATTR_ALLOC_CHUNK): Remove.
16026
421d1616
TT
160272020-01-08 Tom Tromey <tromey@adacore.com>
16028
16029 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16030
43816ebc
TT
160312020-01-08 Tom Tromey <tromey@adacore.com>
16032
16033 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16034 (dwarf2_compute_name, open_dwo_file): Likewise.
16035 (process_enumeration_scope): Use std::vector.
16036 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16037 (partial_die_info::fixup, dwarf2_start_subfile)
16038 (guess_full_die_structure_name, dwarf2_name): Likewise.
16039 (determine_prefix): Update.
16040 (guess_full_die_structure_name): Make return type const.
16041 (partial_die_full_name): Return unique_xmalloc_ptr.
16042 (DW_FIELD_ALLOC_CHUNK): Remove.
16043
4212d509
TT
160442020-01-07 Tom Tromey <tromey@adacore.com>
16045
16046 PR build/24937:
16047 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16048
06a6207a
JT
160492020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16050
16051 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16052
153d79c4
AB
160532020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16054
16055 * stack.c (print_frame_info): Move disassemble_next_line code
16056 inside source_print block.
16057
66182876
EZ
160582020-01-06 Eli Zaretskii <eliz@gnu.org>
16059
16060 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16061 gdb/signals.h, as we are now using native signal symbols.
16062
cbfa8581
SV
160632020-01-06 Shahab Vahedi <shahab@synopsys.com>
16064
16065 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16066 overflow by an early check of content vs threshold.
aac66a4c 16067 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16068 Likewise.
16069
3f602821
EZ
160702020-01-06 Eli Zaretskii <eliz@gnu.org>
16071
16072 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16073
a08c904d
JT
160742020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16075
16076 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16077 export table if no section contains it's RVA.
16078
89a65580
EZ
160792020-01-06 Eli Zaretskii <eliz@gnu.org>
16080
16081 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16082
8b7fcda2
HD
160832020-01-06 Hannes Domani <ssbssa@yahoo.de>
16084
16085 * source.c (print_source_lines_base): Set last_line_listed.
16086
a61b4f69
SV
160872020-01-06 Shahab Vahedi <shahab@synopsys.com>
16088
16089 * tui/tui-disasm.c: Remove trailing spaces.
16090
559e7e50
EZ
160912020-01-06 Eli Zaretskii <eliz@gnu.org>
16092 Pedro Alves <palves@redhat.com>
16093
16094 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16095 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16096 (windows_gdb_signal_to_target): New function, uses the above
16097 enumeration to convert GDB internal signal codes to equivalent
16098 Windows codes.
16099 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16100 * windows-nat.c: Include "gdb_wait.h".
16101 (get_windows_debug_event): Extract the fatal exception from the
16102 exit status and convert to the equivalent Posix signal number.
16103 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16104 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16105 * gdbsupport/gdb_wait.c: New file, implements
16106 windows_status_to_termsig.
16107 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16108 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16109
f2302a34
AB
161102020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16111
16112 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16113 show_layout.
16114
6a5206eb
LM
161152020-01-05 Luis Machado <luis.machado@linaro.org>
16116
16117 * aarch64-linux-nat.c
16118 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16119 and bfd_mach_aarch64.
16120
6ec1d75e
PW
161212020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16122
16123 * ui-file.c (stdio_file::can_emit_style_escape)
16124 (tee_file::can_emit_style_escape): Ensure style is used also on
16125 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16126 to gdb_stdout.
16127 * main.c (set_gdb_data_directory): Use file style to output the
16128 warning that the given pathname is not a directory.
16129 * top.c (show_history_filename, gdb_safe_append_history)
16130 (show_gdb_datadir): Use file style.
16131
44f81a76
HD
161322020-01-03 Hannes Domani <ssbssa@yahoo.de>
16133
16134 * solib-target.c (struct lm_info_target):
16135 Change offsets to be a unique_xmalloc_ptr.
16136 (solib_target_relocate_section_addresses): Update.
16137
25057eb0
HD
161382020-01-03 Hannes Domani <ssbssa@yahoo.de>
16139
16140 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16141
6e2118f5
BE
161422020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16143
16144 * MAINTAINERS (Write After Approval): Add myself.
16145
8133c7dc
LM
161462020-01-02 Luis Machado <luis.machado@linaro.org>
16147
16148 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16149 Cell BE architecture.
16150 * target.h (struct target_ops) <thread_architecture>: Likewise.
16151
48189bec
HD
161522020-01-01 Hannes Domani <ssbssa@yahoo.de>
16153
16154 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16155
ead1063b
HD
161562020-01-01 Hannes Domani <ssbssa@yahoo.de>
16157
16158 * MAINTAINERS (Write After Approval): Add myself.
16159
e5d78223
JB
161602020-01-01 Joel Brobecker <brobecker@adacore.com>
16161
16162 * gdbarch.sh: Update copyright year range of generated files.
16163
b811d2c2
JB
161642020-01-01 Joel Brobecker <brobecker@adacore.com>
16165
16166 Update copyright year range in all GDB files.
16167
5f4def5c
JB
161682020-01-01 Joel Brobecker <brobecker@adacore.com>
16169
16170 * copyright.py: Convert to Python 3.
16171
51fd4002
JB
161722020-01-01 Joel Brobecker <brobecker@adacore.com>
16173
16174 * copyright.py: Adapt after move of gnulib directory from gdb
16175 directory to toplevel directory.
16176
5fb651f2
JB
161772020-01-01 Joel Brobecker <brobecker@adacore.com>
16178
16179 * copyright.py (main): Exit if run from the wrong directory.
16180
5dd8bf88
JB
161812020-01-01 Joel Brobecker <brobecker@adacore.com>
16182
16183 * top.c (print_gdb_version): Change copyright year to 2020.
16184
9f71dacb 161852020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16186
9f71dacb 16187 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16188
9f71dacb 16189For older changes see ChangeLog-2019.
c906108c
SS
16190\f
16191Local Variables:
16192mode: change-log
16193left-margin: 8
16194fill-column: 74
16195version-control: never
57da7796 16196coding: utf-8
c906108c 16197End:
This page took 3.336485 seconds and 4 git commands to generate.