sim/bpf: re-generate configure
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ae7754b2
TT
12020-11-01 Tom Tromey <tom@tromey.com>
2
3 * dbxread.c (dbx_end_psymtab): Update.
4 * dwarf2/read.c (process_psymtab_comp_unit_reader)
5 (build_type_psymtabs_reader): Update.
6 * xcoffread.c (xcoff_end_psymtab): Update.
7 * ctfread.c (scan_partial_symbols): Update.
8 * psymtab.c (sort_pst_symbols): Remove.
9 (partial_symtab::end): Rename from end_psymtab_common. Inline
10 sort_pst_symbols.
11 * psympriv.h (struct partial_symtab) <end>: New method.
12 (end_psymtab_common): Don't declare.
13
0684bb51
TT
142020-11-01 Tom Tromey <tom@tromey.com>
15
16 * symmisc.c (count_psyms): New function.
17 (print_objfile_statistics): Use it.
18 * psymtab.c (append_psymbol_to_list): Remove.
19 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
20 * objfiles.h (struct objstats) <n_psyms>: Remove.
21
089002bb
TT
222020-11-01 Tom Tromey <tom@tromey.com>
23
24 * dbxread.c (dbx_end_psymtab): Update.
25 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
26 (build_type_psymtabs_reader): Update.
27 * xcoffread.c (xcoff_end_psymtab): Update.
28 * ctfread.c (scan_partial_symbols): Update.
29 * psympriv.h (end_psymtab_common): Update.
30 * psymtab.c (end_psymtab_common): Remove objfile parameter.
31 (sort_pst_symbols): Likewise.
32
525454d6
TT
332020-11-01 Tom Tromey <tom@tromey.com>
34
35 * dbxread.c (dbx_symfile_read): Update.
36 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
37 * xcoffread.c (xcoff_initial_scan): Update.
38 * psympriv.h (init_psymbol_list): Don't declare.
39 * psymtab.c (init_psymbol_list): Remove.
40
60bd1d53
JB
412020-11-01 Joel Brobecker <brobecker@adacore.com>
42
43 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
44 gnat_encoded_fixed_type_info. Update all callers.
45
db99d0d0
JB
462020-11-01 Joel Brobecker <brobecker@adacore.com>
47
48 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
49 line too long.
50
75f24e86
JB
512020-11-01 Joel Brobecker <brobecker@adacore.com>
52
53 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
54 cast_from_fixed. Update all callers.
55 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
56 Update all callers.
57 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
58 Update all callers.
59 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
60 ada_scaling_factor.
61 * ada-typeprint.c: Replace call to ada_scaling_factor by call
62 to print_gnat_encoded_fixed_point_type.
63 * ada-valprint.c: Likewise.
64
4f0469cd
AB
652020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
66
67 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
68 (debug_prefixed_printf): Add check of debug_displaced flag.
69 * linux-nat.c (linux_nat_debug_printf): Add check of
70 debug_linux_nat flag.
71
17417fb0
SM
722020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
73
74 * infrun.c (infrun_debug_printf_1): Remove.
75 (displaced_debug_printf_1): Remove.
76 (stop_all_threads): Use debug_prefixed_printf.
77 * infrun.h (infrun_debug_printf_1): Remove.
78 (infrun_debug_printf): Use debug_prefixed_printf.
79 (displaced_debug_printf_1): Remove.
80 (displaced_debug_printf): Use debug_prefixed_printf.
81 * linux-nat.c (linux_nat_debug_printf_1): Remove.
82 (linux_nat_debug_printf): Use debug_prefixed_printf.
83
ad6dba1c
SM
842020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
85
86 * configure: Re-generate.
87 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
88 AC_LANG_PROGRAM.
89
b6fb30ed
SM
902020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
91
92 * configure: Re-generate.
93
5164c117
SM
942020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
95
96 * configure: Re-generate.
97
864ca435
SM
982020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
99
100 * configure: Re-generate.
101
b9442ec1
SM
1022020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
103
104 * configure: Re-generate.
105
294f2697
SM
1062020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
107
108 * acinclude.m4: Modernize.
109 * configure: Re-generate.
110
5593a99a
SM
1112020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
112
113 * configure.ac: Modernize.
114 * configure: Re-generate.
115
e41fda1d
SM
1162020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
117
118 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
119 * configure: Re-generate.
120 * configure.ac: Remove AM_PROG_CC_STDC.
121
91e1a0ed
SM
1222020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
123
124 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
125 AC_CANONICAL_SYSTEM.
126 * configure: Re-generate.
127
136821d9
SM
1282020-10-30 Simon Marchi <simon.marchi@efficios.com>
129
130 * infrun.h (displaced_debug_printf): New macro. Replace
131 displaced debug prints throughout to use it.
132 (displaced_debug_printf_1): New declaration.
133 (displaced_step_dump_bytes): Return string, remove ui_file
134 parameter, update all callers.
135 * infrun.c (displaced_debug_printf_1): New function.
136 (displaced_step_dump_bytes): Return string, remove ui_file
137 parameter
138
aa2045e7
SM
1392020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
140
141 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
142
b1ec2735
TT
1432020-10-30 Tom Tromey <tromey@adacore.com>
144
145 * Makefile.in (stamp-init): Depend on config.status.
146
b78b3a29
TBA
1472020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
148
149 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
150
d70bdd3c
PA
1512020-10-30 Pedro Alves <pedro@palves.net>
152
153 * thread.c (lookup_selected_frame): Move ...
154 * frame.c (lookup_selected_frame): ... here.
155
79952e69
PA
1562020-10-30 Pedro Alves <pedro@palves.net>
157
158 * blockframe.c (block_innermost_frame): Use get_selected_frame.
159 * frame.c
160 (scoped_restore_selected_frame::scoped_restore_selected_frame):
161 Use save_selected_frame. Save language as well.
162 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
163 Use restore_selected_frame, and restore language as well.
164 (selected_frame_id, selected_frame_level): New.
165 (selected_frame): Update comments.
166 (save_selected_frame, restore_selected_frame): New.
167 (get_selected_frame): Use lookup_selected_frame.
168 (get_selected_frame_if_set): Delete.
169 (select_frame): Record selected_frame_level and selected_frame_id.
170 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
171 fields.
172 (get_selected_frame): Make 'message' parameter optional.
173 (get_selected_frame_if_set): Delete declaration.
174 (select_frame): Update comments.
175 (save_selected_frame, restore_selected_frame)
176 (lookup_selected_frame): Declare.
177 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
178 * infrun.c (struct infcall_control_state) <selected_frame_level>:
179 New field.
180 (save_infcall_control_state): Use save_selected_frame.
181 (restore_selected_frame): Delete.
182 (restore_infcall_control_state): Use restore_selected_frame.
183 * stack.c (select_frame_command_core, frame_command_core): Use
184 get_selected_frame.
185 * thread.c (restore_selected_frame): Rename to ...
186 (lookup_selected_frame): ... this and make extern. Select the
187 current frame if the frame level is -1.
188 (scoped_restore_current_thread::restore): Also restore the
189 language.
190 (scoped_restore_current_thread::~scoped_restore_current_thread):
191 Don't try/catch.
192 (scoped_restore_current_thread::scoped_restore_current_thread):
193 Save the language as well. Use save_selected_frame.
194
58103c33
SM
1952020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
196
197 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
198 documentation.
199 * gdbarch.h: Re-generate.
200
40a53766
SM
2012020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
202
203 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
204 parameter.
205 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
206 Likewise.
207 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
208 Likewise.
209 * arch-utils.c (default_displaced_step_hw_singlestep):
210 Likewise.
211 * arch-utils.h (default_displaced_step_hw_singlestep):
212 Likewise.
213 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
214 Likewise.
215 * s390-tdep.c (s390_displaced_step_hw_singlestep):
216 Likewise.
217 * gdbarch.c: Re-generate.
218 * gdbarch.h: Re-generate.
219 * infrun.c (resume_1): Adjust.
220
8407f91b
TT
2212020-10-29 Tom Tromey <tom@tromey.com>
222
223 * progspace.c (program_space::~program_space): Don't call
224 exec_close.
225
5008b3b2
TT
2262020-10-29 Tom Tromey <tom@tromey.com>
227
228 * exec.c (exec_target::close): Don't change current program
229 space.
230
d9eebde0
TT
2312020-10-29 Tom Tromey <tom@tromey.com>
232
233 * symfile.c (add_symbol_file_command): Update.
234 * exec.c (program_space::add_target_sections): Rename.
235 * symfile-mem.c (symbol_file_add_from_memory): Update.
236 * progspace.h (struct program_space) <add_target_sections>:
237 Declare new overload.
238 * exec.h (add_target_sections_of_objfile): Don't declare.
239
3769e227
TT
2402020-10-29 Tom Tromey <tom@tromey.com>
241
242 * solib.c (solib_map_sections): Update.
243 * exec.c (program_space::add_target_sections): Now a method.
244 (exec_file_attach): Update.
245 * exec.h (add_target_sections): Don't declare.
246 * progspace.h (struct program_space) <add_target_sections>:
247 Declare.
248
2a3f84af
TT
2492020-10-29 Tom Tromey <tom@tromey.com>
250
251 * progspace.h (struct program_space) <remove_target_sections>:
252 Declare.
253 * exec.c (program_space::remove_target_sections): Now a method.
254 * exec.h (remove_target_sections): Don't declare.
255
004eecfd
TT
2562020-10-29 Tom Tromey <tom@tromey.com>
257
258 * inferior.c (delete_inferior): Update.
259 * progspace.c (program_space::empty): Rename from
260 program_space_empty_p. Return bool.
261 * progspace.h (struct program_space) <empty>: New method.
262 (program_space_empty_p): Don't declare.
263
e39fb971
TT
2642020-10-29 Tom Tromey <tom@tromey.com>
265
266 * progspace.c (program_space::~program_space): Don't call
267 clear_program_space_solib_cache.
268 (program_space::clear_solib_cache): Rename from
269 clear_solib_cache.
270 * solib.c (handle_solib_event): Update.
271 * progspace.h (struct program_space) <clear_solib_cache>: New
272 method.
273 (clear_program_space_solib_cache): Don't declare.
274
a42d7dd8
TT
2752020-10-29 Tom Tromey <tom@tromey.com>
276
277 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
278 * target.c (info_target_command): Update.
279 * symfile.c (syms_from_objfile_1, finish_new_objfile)
280 (symbol_file_clear, reread_symbols): Update.
281 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
282 * stabsread.c (scan_file_globals): Update.
283 * solib.c (update_solib_list): Update.
284 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
285 (svr4_fetch_objfile_link_map, enable_break)
286 (svr4_relocate_main_executable)
287 (svr4_iterate_over_objfiles_in_search_order): Update.
288 * solib-frv.c (lm_base, enable_break)
289 (frv_relocate_main_executable): Update.
290 (main_got, frv_fdpic_find_canonical_descriptor): Update.
291 (frv_fetch_objfile_link_map): Update.
292 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
293 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
294 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
295 * remote.c (remote_target::get_offsets): Update.
296 (remote_target::start_remote)
297 (extended_remote_target::post_attach): Update.
298 * objfiles.c (entry_point_address_query): Update.
299 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
300 * minsyms.c (get_symbol_leading_char): Update.
301 * frame.c (inside_main_func): Update.
302 * progspace.h (symfile_objfile): Remove macro.
303
19f6550e
TT
3042020-10-29 Tom Tromey <tom@tromey.com>
305
306 * exec.c (exec_file_attach): Update.
307 * progspace.c (program_space::exec_close): Update.
308 * progspace.h (struct program_space) <ebfd>: Now a
309 gdb_bfd_ref_ptr.
310 <set_exec_bfd>: Change argument type.
311 <exec_bfd>: Update.
312
7e10abd1
TT
3132020-10-29 Tom Tromey <tom@tromey.com>
314
315 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
316 * symfile.c (reread_symbols): Update.
317 * symfile-mem.c (add_symbol_file_from_memory_command)
318 (add_vsyscall_page): Update.
319 * source-cache.c (source_cache::get_plain_source_lines): Update.
320 * solib-svr4.c (find_program_interpreter, elf_locate_base)
321 (svr4_current_sos_direct, svr4_exec_displacement)
322 (svr4_relocate_main_executable): Update.
323 (svr4_iterate_over_objfiles_in_search_order): Update.
324 * solib-frv.c (enable_break2, enable_break): Update.
325 * solib-dsbt.c (lm_base, enable_break): Update.
326 * solib-darwin.c (find_program_interpreter)
327 (darwin_solib_create_inferior_hook): Update.
328 * sol-thread.c (rw_common, ps_pdmodel): Update.
329 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
330 * remote.c (compare_sections_command)
331 (remote_target::trace_set_readonly_regions): Update.
332 * remote-sim.c (get_sim_inferior_data)
333 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
334 (gdbsim_target_open, gdbsim_target::files_info): Update.
335 * exec.h (exec_bfd): Remove macro.
336 * progspace.c (initialize_progspace): Update.
337 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
338 Update.
339 * nto-procfs.c (nto_procfs_target::post_attach)
340 (nto_procfs_target::create_inferior): Update.
341 * maint.c (maintenance_info_sections): Update.
342 * linux-thread-db.c (thread_db_target::get_thread_local_address):
343 Update.
344 * infcmd.c (post_create_inferior): Update.
345 * gcore.c (default_gcore_arch, default_gcore_target): Update.
346 (objfile_find_memory_regions): Update.
347 * exec.c (validate_exec_file, exec_file_attach)
348 (exec_read_partial_read_only, print_section_info): Update.
349 * corelow.c (core_target_open): Update.
350 * corefile.c (reopen_exec_file, validate_files): Update.
351 * arm-tdep.c (gdb_print_insn_arm): Update.
352 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
353 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
354 methods.
355
b55221ab
TT
3562020-10-29 Tom Tromey <tom@tromey.com>
357
358 * progspace.h (current_target_sections): Remove macro.
359 * solib-svr4.c (scan_dyntag): Update.
360 * solib-dsbt.c (scan_dyntag): Update.
361 * exec.c (exec_target::close): Update.
362 (add_target_sections, add_target_sections_of_objfile)
363 (remove_target_sections, exec_target::get_section_table)
364 (exec_target::files_info, set_section_command)
365 (exec_set_section_address, exec_target::has_memory)
366 (exec_target::has_memory): Update.
367
5a36e715
TT
3682020-10-29 Tom Tromey <tom@tromey.com>
369
370 * source-cache.c (source_cache::get_plain_source_lines): Use
371 current_program_space.
372 * corefile.c (reopen_exec_file): Use current_program_space.
373 * exec.c (exec_file_attach): Use current_program_space.
374 * exec.h (exec_bfd_mtime): Remove.
375
784c8592
TT
3762020-10-29 Tom Tromey <tom@tromey.com>
377
378 * gcore.c (default_gcore_mach): Remove.
379 (create_gcore_bfd): Update.
380
8a4f1402
TT
3812020-10-29 Tom Tromey <tom@tromey.com>
382
383 * progspace.c (program_space::exec_close): New method, from
384 exec_close in exec.c.
385 * exec.c (exec_close): Move to progspace.c.
386 (exec_target::close, exec_file_attach): Update.
387 * progspace.h (struct program_space) <exec_close>: Declare
388 method.
389
c20cb686
TT
3902020-10-29 Tom Tromey <tom@tromey.com>
391
392 * progspace.h (struct program_space) <exec_filename>: Rename from
393 pspace_exec_filename. Now a unique_xmalloc_ptr.
394 * inferior.c (print_selected_inferior): Update.
395 (print_inferior): Update.
396 * mi/mi-main.c (print_one_inferior): Update.
397 * exec.h (exec_filename): Remove macro.
398 * corefile.c (get_exec_file): Update.
399 * exec.c (exec_close): Update.
400 (exec_file_attach): Update.
401 * progspace.c (clone_program_space): Update.
402 (print_program_space): Update.
403
6be2a9ab
TT
4042020-10-29 Tom Tromey <tom@tromey.com>
405
406 * target-section.h (struct target_section): Add constructor.
407 * exec.c (build_section_table, add_target_sections_of_objfile):
408 Update.
409 * corelow.c (core_target::build_file_mappings): Update.
410
cfaa8f76
TBA
4112020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
412
413 PR gdb/19318
414 * inferior.c (detach_inferior_command): Restore the current thread.
415 (kill_inferior_command): Ditto.
416
1b00ef06
TV
4172020-10-28 Tom de Vries <tdevries@suse.de>
418
419 PR symtab/26772
420 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
421 map, check it in the "best match" loop.
422
7f40ce1a
SM
4232020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
424
425 * m32c-tdep.c: Remove unused includes.
426
5eb9e3f5
SM
4272020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
428
429 * xtensa-tdep.c: Remove includes.
430
b1d4d8d1
TBA
4312020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
432
433 * breakpoint.c (struct condition_command_opts): New struct.
434 (condition_command_option_defs): New static global.
435 (make_condition_command_options_def_group): New function.
436 (condition_completer): Update to consider the '-force' flag.
437 (condition_command): Use gdb::option for the '-force' flag.
438
bd24c5d6
TV
4392020-10-27 Tom de Vries <tdevries@suse.de>
440
441 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
442 symbols in section check.
443
61eb46a4
TV
4442020-10-27 Tom de Vries <tdevries@suse.de>
445
446 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
447
733d554a
TBA
4482020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
449
450 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
451 * breakpoint.c: Update the help text of the 'condition' and 'break'
452 commands.
453 (set_breakpoint_condition): Take a new bool parameter
454 to control whether condition definition should be forced even when
455 the condition expression is invalid in all of the current locations.
456 (condition_command): Update the call to 'set_breakpoint_condition'.
457 (find_condition_and_thread): Take the "-force-condition" flag into
458 account.
459 * linespec.c (linespec_keywords): Add "-force-condition" as an
460 element.
461 (FORCE_KEYWORD_INDEX): New #define.
462 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
463 as a keyword.
464 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
465 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
466 * python/py-breakpoint.c (bppy_set_condition): Ditto.
467 * NEWS: Mention the changes to the 'break' and 'condition' commands.
468
b5fa468f
TBA
4692020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
470
471 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
472 * breakpoint.c (set_breakpoint_location_condition): New function.
473 (set_breakpoint_condition): Disable a breakpoint location if parsing
474 the condition string gives an error.
475 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
476 (build_target_condition_list): Ditto.
477 (build_target_command_list): Ditto.
478 (build_bpstat_chain): Ditto.
479 (print_one_breakpoint_location): Ditto.
480 (print_one_breakpoint): Ditto.
481 (breakpoint_1): Ditto.
482 (bp_location::bp_location): Ditto.
483 (locations_are_equal): Ditto.
484 (update_breakpoint_locations): Ditto.
485 (enable_disable_bp_num_loc): Ditto.
486 (init_breakpoint_sal): Use set_breakpoint_location_condition.
487 (find_condition_and_thread_for_sals): New static function.
488 (create_breakpoint): Call find_condition_and_thread_for_sals.
489 (location_to_sals): Call find_condition_and_thread_for_sals instead
490 of find_condition_and_thread.
491
1c47ec3e
TV
4922020-10-26 Tom de Vries <tdevries@suse.de>
493
494 * dwarf2/read.c (process_full_comp_unit): Call
495 dwarf2_find_base_address.
496
6390859c
TT
4972020-10-26 Tom Tromey <tromey@adacore.com>
498
499 * gdbtypes.c (create_range_type): Revert previous patch. Add
500 comment.
501
d744f0f9
PA
5022020-10-26 Pedro Alves <pedro@palves.net>
503
504 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
505 (my_waitpid): Use gdb::handle_eintr.
506
006811bc
SM
5072020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
508
509 * acinclude.m4: Update ptrace.m4 path.
510 * ptrace.m4: Moved to gdbsupport.
511
c75e31a1
SM
5122020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
513
514 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
515 instead of target_gdbarch.
516
32495661
SM
5172020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
518
519 * jit.c (jit_reader_load_command): Pass current inferior.
520 (jit_inferior_init): Change parameter type to inferior, use it.
521 (jit_inferior_created): Remove.
522 (jit_inferior_created_hook): Pass inferior parameter down.
523 (_initialize_jit): Use jit_inferior_created_hook instead of
524 jit_inferior_created.
525 * jit.h (jit_inferior_created_hook): Add inferior parameter.
526 * infrun.c (follow_exec): Pass inferior to
527 jit_inferior_created_hook.
528
3f66685e
SM
5292020-10-24 Simon Marchi <simon.marchi@efficios.com>
530
531 * linux-thread-db.c (check_pid_namespace_match): Add inferior
532 parameter and use it.
533 (thread_db_inferior_created): Pass inferior argument.
534
a0ff652f
SM
5352020-10-24 Simon Marchi <simon.marchi@efficios.com>
536
537 * aix-thread.c (aix_thread_inferior_created): Add inferior
538 parameter.
539 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
540 * dummy-frame.c (cleanup_dummy_frames): Likewise.
541 * jit.c (jit_inferior_created): Likewise.
542 * linux-thread-db.c (thread_db_inferior_created): Likewise.
543 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
544 * observable.h (inferior_created): Likewise.
545 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
546 * symfile-mem.c (add_vsyscall_page): Likewise.
547 * infcmd.c (post_create_inferior): Pass inferior argument.
548
3c67532c
JB
5492020-10-24 Joel Brobecker <brobecker@adacore.com>
550
551 GDB 10.1 released.
552
8747316e
JB
5532020-10-23 Joel Brobecker <brobecker@adacore.com>
554
555 * ada-typeprint.c (ada_print_type): Remove superfluous second call
556 to ada_check_typedef.
557
1a0ea399
AB
5582020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
559
560 * f-exp.y (f_parse): Rename to...
561 (f_language::parser): ...this.
562 * f-lang.c (f_get_encoding): Rename to...
563 (f_language::get_encoding): ...this.
564 (f_op_print_tab): Rename to...
565 (f_language::op_print_tab): ...this.
566 (exp_descriptor_f): Rename to...
567 (f_language::exp_descriptor_tab): ...this.
568 (class f_language): Moved to f-lang.h.
569 (f_language::language_arch_info): New function, moved out of class
570 declaration.
571 (f_language::search_name_hash): Likewise.
572 (f_language::lookup_symbol_nonlocal): Likewise.
573 (f_language::get_symbol_name_matcher_inner): Likewise.
574 * f-lang.h: Add 'valprint.h' include.
575 (class f_language): Moved here from f-lang.c.
576 * f-typeprint.c (f_type_print_args): Delete commented out
577 declaration.
578 (f_print_typedef): Rename to...
579 (f_language::print_typedef): ...this.
580 (f_print_type): Rename to...
581 (f_language::print_type): ...this.
582 (f_type_print_varspec_prefix): Delete declaration and rename to...
583 (f_language::f_type_print_varspec_prefix): ...this.
584 (f_type_print_varspec_suffix): Delete declaration and rename to...
585 (f_language::f_type_print_varspec_suffix): ...this.
586 (f_type_print_base): Delete declaration and rename to...
587 (f_language::f_type_print_base): ...this.
588 * f-valprint.c (f_value_print_inner): Rename to...
589 (f_language::value_print_inner): ...this.
590 * parse.c: Delete 'f-lang.h' include.
591
88cefd9b
AB
5922020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
593
594 * language.h (language_defn::print_type): Add variable names in
595 declaration, and update header comment.
596
5399db93
AB
5972020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
598
599 * ada-lang.c (ada_language::demangle): Rename to...
600 (ada_language::demangle_symbol): ...this.
601 * c-lang.c (cplus_language::demangle): Rename to...
602 (cplus_language::demangle_symbol): ...this.
603 * d-lang.c (d_language::demangle): Rename to...
604 (d_language::demangle_symbol): ...this.
605 * f-lang.c (f_language::demangle): Rename to...
606 (f_language::demangle_symbol): ...this.
607 * go-lang.c (go_language::demangle): Rename to...
608 (go_language::demangle_symbol): ...this.
609 * language.c (language_demangle): Update call to demangle_symbol.
610 (auto_or_unknown_language::demangle): Rename to...
611 (auto_or_unknown_language::demangle_symbol): ...this.
612 * language.h (language_defn::demangle): Rename to...
613 (language_defn::demangle_symbol): ...this.
614 * objc-lang.c (objc_language::demangle): Rename to...
615 (objc_language::demangle_symbol): ...this.
616 * rust-lang.c (rust_language::demangle): Rename to...
617 (rust_language::demangle_symbol): ...this.
618
4b2f86ef
AB
6192020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
620
621 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
622 (iterate_over_file_blocks): Replace use of macro with the macros
623 definition.
624
e74b39de
AB
6252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
626
627 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
628 * valprint.c (maybe_print_array_index): Replace use of macro with
629 the macros definition.
630
00c696a6
AB
6312020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
632
633 * ada-lang.c (ada_language::print_array_index): Call value_print
634 directly.
635 * language.c (language_defn::print_array_index): Likewise.
636 * language.h (LA_VALUE_PRINT): Delete.
637 * valprint.c (value_print): Call value_print on the
638 current_language directly.
639
d3b67c56
AB
6402020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
641
642 * language.h (LA_PRINT_TYPEDEF): Delete.
643 * typeprint.c (typedef_print): Call print_typedef directly on the
644 current_language object.
645
790e2a12
AB
6462020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
647
648 * m2-exp.y (m2_parse): Rename to...
649 (m2_language::parser): ...this. Update function signature.
650 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
651 (m2_op_print): Rename to...
652 (m2_language::op_print_tab): ...this, and make const.
653 (exp_descriptor_modula2): Rename to...
654 (m2_language::exp_descriptor_modula2): ...this.
655 (class m2_language): Move to m2-lang.h.
656 (m2_language::language_arch_info): New function, moved out of
657 class declaration.
658 (m2_language::printchar): New function, body from m2_printchar.
659 (m2_language::printstr): New function, moved out of class
660 declaration.
661 (m2_language::emitchar): Likewise.
662 * m2-lang.h (m2_parse): Delete declaration.
663 (m2_print_typedef): Delete declaration.
664 (m2_value_print_inner): Delete declaration.
665 (class m2_language): Class declaration moved from m2-lang.c,
666 larger functions are left in m2-lang.c.
667 * m2-typeprint.c (m2_print_typedef): Rename to...
668 (m2_language::print_typedef): ...this, and update function
669 signature.
670 * m2-valprint.c (m2_value_print_inner): Rename to...
671 (m2_language::value_print_inner): ...this, replace use of
672 LA_PRINT_STRING with a direct call to printstr member function,
673 and update recursive call.
674
b01175fc
AB
6752020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
676
677 * language.c (default_is_string_type_p): Delete, implementation
678 moved into auto_or_unknown_language::is_string_type_p.
679 (unk_op_print_tab): Moved into
680 auto_or_unknown_language::opcode_print_table.
681 (unknown_language_arch_info): Delete, implementation moved into
682 auto_or_unknown_language::language_arch_info.
683 (class auto_or_unknown_language): New class, member functions
684 copied from unknown_language class, with some updates.
685 (class unknown_language): Most member functions moved into
686 auto_or_unknown_language class. Inherit from
687 auto_or_unknown_language class.
688 (class auto_language): Inherit from auto_or_unknown_language.
689 Delete most member functions.
690
1a97fe8c
HD
6912020-10-22 Hannes Domani <ssbssa@yahoo.de>
692
693 * stabsread.c (read_member_functions): Remove gdb_assert.
694
6b9d0dfd
HD
6952020-10-22 Hannes Domani <ssbssa@yahoo.de>
696
697 * gdbtypes.c (init_complex_type): Check target type name.
698
4b4bb603
SM
6992020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
700
701 * target-debug.h (target_debug_print_struct_target_ops_p):
702 Remove.
703 (target_debug_print_async_callback_ftype_p): Remove.
704 (target_debug_print_struct_trace_state_variable_p): Remove.
705 (target_debug_print_struct_traceframe_info_p): Remove.
706 (target_debug_print_VEC__btrace_block_s__pp): Remove.
707 (target_debug_print_enum_btrace_format): Remove.
708 (target_debug_print_enum_info_proc_what): Remove.
709 (target_debug_print_thread_info_pp): Remove.
710
24f5300a
SM
7112020-10-22 Simon Marchi <simon.marchi@efficios.com>
712
713 * target.h (struct target_ops) <make_corefile_notes>:
714 Change return type to unique pointer.
715 * target.c (dummy_make_corefile_notes): Likewise.
716 * exec.c (struct exec_target) <make_corefile_notes>:
717 Likewise.
718 (exec_target::make_corefile_notes): Likewise.
719 * procfs.c (class procfs_target) <make_corefile_notes>:
720 Likewise.
721 (procfs_do_thread_registers): Adjust to unique pointer.
722 (struct procfs_corefile_thread_data): Add constructor.
723 <note_data>: Change type to unique pointer.
724 (procfs_corefile_thread_callback): Adjust to unique pointer.
725 (procfs_target::make_corefile_notes): Change return type to
726 unique pointer.
727 * target-delegates.c: Re-generate.
728 * gcore.c (write_gcore_file_1): Adjust.
729 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
730 New.
731
5fb4027f
TV
7322020-10-22 Tom de Vries <tdevries@suse.de>
733
734 * block.c (find_block_in_blockvector): Make sure the returned block
735 contains pc.
736
4a636814
SM
7372020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
738
739 PR gdb/26693
740 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
741 parameter.
742 (load_cu): Pass existing CU.
743 (process_imported_unit_die): Likewise.
744 (follow_die_offset): Likewise.
745
1bd57575
LM
7462020-10-22 Luis Machado <luis.machado@linaro.org>
747
748 * corelow.c (core_target::xfer_partial): Also check for an empty
749 m_core_unavailable_mappings vector.
750
6b4c676c
AB
7512020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
752
753 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
754 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
755 * f-exp.y (arglist): Allow for a series of subranges.
756 (subrange): Add cases for subranges with strides.
757 * f-lang.c (value_f90_subarray): Catch use of array strides and
758 throw an error.
759 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
760
f2d8e4c5
AB
7612020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
762
763 * expprint.c (print_subexp_standard): Change enum range_type to
764 range_flag and rename variables to match.
765 (dump_subexp_body_standard): Likewise.
766 * expression.h (enum range_type): Rename to...
767 (enum range_flag): ...this.
768 (range_types): Rename to...
769 (range_flags): ...this.
770 * f-lang.c (value_f90_subarray): Change enum range_type to
771 range_flag and rename variables to match.
772 * parse.c (operator_length_standard): Likewise.
773 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
774 range_type to range_flag.
775 * rust-lang.c (rust_evaluate_funcall): Likewise.
776 (rust_range): Likewise.
777 (rust_compute_range): Likewise.
778 (rust_subscript): Likewise.
779
2f1b18db
AB
7802020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
781
782 * expprint.c (print_subexp_standard): Update to reflect changes to
783 enum range_type.
784 (dump_subexp_body_standard): Likewise.
785 * expression.h (enum range_type): Convert to a bit field enum, and
786 make the enum unsigned.
787 * f-exp.y (subrange): Update to reflect changes to enum
788 range_type.
789 * f-lang.c (value_f90_subarray): Likewise.
790 * parse.c (operator_length_standard): Likewise.
791 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
792 * rust-lang.c (rust_range): Likewise.
793 (rust_compute_range): Likewise.
794 (rust_subscript): Likewise.
795
a46d1843
SM
7962020-10-21 Simon Marchi <simon.marchi@efficios.com>
797
798 * infrun.c (displaced_step_in_progress_thread): Fix comment.
799 (displaced_step_in_progress): Fix comment.
800
c21f37a8
SM
8012020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
802
803 * gdbarch.sh (make_corefile_notes): Return unique pointer.
804 * gdbarch.c: Re-generate.
805 * gdbarch.h: Re-generate.
806 * gcore.c (write_gcore_file_1): Adjust.
807 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
808 constructor.
809 <note_data>: Change type to unique pointer.
810 <abort_iteration>: Change type to bool.
811 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
812 (fbsd_collect_thread_registers): Return void, adjust.
813 (struct fbsd_corefile_thread_data): Add construtor.
814 <note_data>: Change type to unique pointer.
815 (fbsd_corefile_thread): Adjust.
816 (fbsd_make_corefile_notes): Return unique pointer, adjust.
817 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
818 to unique pointer, adjust.
819 (struct linux_collect_regset_section_cb_data): Add constructor.
820 <note_data>: Change type to unique pointer.
821 <abort_iteration>: Change type to bool.
822 (linux_collect_thread_registers): Return void, adjust.
823 (struct linux_corefile_thread_data): Add constructor.
824 <note_data>: Change type to unique pointer.
825 (linux_corefile_thread): Adjust.
826 (linux_make_corefile_notes): Return unique pointer, adjust.
827
07fbbd01
SM
8282020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
829
830 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
831 * gdbarch.c: Re-generate.
832 * gdbarch.h: Re-generate.
833 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
834 bool.
835 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
836 Likewise.
837 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
838 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
839 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
840 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
841
39535193
SM
8422020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
843
844 * gdbarch.sh: Make generated predicates return bool.
845 * gdbarch.c: Re-generate.
846 * gdbarch.h: Re-generate.
847
ad523d01
TT
8482020-10-20 Tom Tromey <tom@tromey.com>
849
850 * varobj-iter.h (struct varobj_item): Remove typedef.
851
c4464ade
SM
8522020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
853
854 * infrun.c (currently_stepping): Change int to bool
855 (maybe_software_singlestep): Likewise.
856 (show_stop_on_solib_events): Likewise.
857 (stepping_past_nonsteppable_watchpoint): Likewise.
858 (displaced_step_in_progress_any_inferior): Likewise.
859 (displaced_step_in_progress_thread): Likewise.
860 (keep_going_stepped_thread): Likewise.
861 (thread_still_needs_step_over): Likewise.
862 (start_step_over): Likewise.
863 (do_target_resume): Likewise.
864 (resume_1): Likewise.
865 (clear_proceed_status): Likewise.
866 (thread_still_needs_step_over_bp): Likewise.
867 (proceed): Likewise.
868 (switch_back_to_stepped_thread): Likewise.
869 (adjust_pc_after_break): Likewise.
870 (stepped_in_from): Likewise.
871 (handle_stop_requested): Likewise.
872 (handle_syscall_event): Likewise.
873 (handle_no_resumed): Likewise.
874 (handle_inferior_event): Likewise.
875 (finish_step_over): Likewise.
876 (handle_signal_stop): Likewise.
877 (process_event_stop_test): Likewise.
878
2eb20436
SM
8792020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
880
881 * infrun.c (get_displaced_stepping_state): Fix comment.
882
e0c45ded
AS
8832020-10-20 Andreas Schwab <schwab@linux-m68k.org>
884
885 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
886
22cc388e
TT
8872020-10-19 Tom Tromey <tromey@adacore.com>
888
889 PR tui/26719
890 * tui/tui-winsource.h (struct tui_source_window_base)
891 <refresh_window>: Rename from refresh_pad.
892 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
893 Rename from refresh_pad.
894 (tui_source_window_base::show_source_content)
895 (tui_source_window_base::do_scroll_horizontal): Update.
896
3c6eb4d4
TBA
8972020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
898
899 * thread.c (_initialize_thread): Fine-tune the help text of
900 'info threads'.
901
26703721
TBA
9022020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
903
904 * frame.c: Remove the unused 'uinteger_option_def' type alias.
905
61c26be8
MS
9062020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
907
908 * breakpoint.c (handle_jit_event): Add an argument, change how
909 `jit_event_handler` is called.
910
932539d7
TT
9112020-10-17 Tom Tromey <tom@tromey.com>
912
913 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
914 (scan_xcoff_symtab): Update.
915 * psymtab.h (class psymtab_storage) <global_psymbols,
916 static_psymbols, current_global_psymbols,
917 current_static_psymbols>: Remove.
918 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
919 (match_partial_symbol, lookup_partial_symbol): Update.
920 (print_partial_symbols): Change parameters.
921 (dump_psymtab, recursively_search_psymtabs)
922 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
923 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
924 (concat): Remove.
925 (end_psymtab_common): Simplify.
926 (append_psymbol_to_list): Change parameters.
927 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
928 (init_psymbol_list): Simplify.
929 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
930 * psympriv.h (struct partial_symtab) <empty>: New method.
931 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
932 Remove.
933 <global_psymbols, static_psymbols>: New members.
934 <add_psymbol>: New methods.
935 (add_psymbol_to_list): Don't declare.
936 (psymbol_placement): Move earlier.
937 * mdebugread.c (parse_partial_symbols): Update.
938 (handle_psymbol_enumerators): Change parameters.
939 (mdebug_expand_psymtab): Update.
940 * dwarf2/read.c (process_psymtab_comp_unit_reader)
941 (add_partial_symbol): Update.
942 * dwarf2/index-write.c (write_psymbols): Change parameters.
943 (write_one_signatured_type): Update.
944 (recursively_count_psymbols): Update.
945 (recursively_write_psymbols): Update.
946 (class debug_names) <recursively_write_psymbols>: Update.
947 <write_psymbols>: Change parameters.
948 <write_one_signatured_type>: Update.
949 * dbxread.c (read_dbx_symtab): Update.
950 (dbx_end_psymtab): Use partial_symtab::empty.
951 * ctfread.c (struct ctf_context) <pst>: New member.
952 (create_partial_symtab): Set it.
953 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
954 (scan_partial_symbols): Use the psymtab's context. Update.
955
cfabbd35
TT
9562020-10-17 Tom Tromey <tom@tromey.com>
957
958 * valprint.c (generic_value_print): Remove comment.
959 * m2-valprint.c (m2_value_print_inner): Remove comment.
960 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
961 type.
962
520596f2
TV
9632020-10-17 Tom de Vries <tdevries@suse.de>
964
965 PR symtab/26317
966 * source.c (select_source_symtab): Handling sal.symtab == NULL for
967 symbol main.
968
76547ab3
TV
9692020-10-14 Tom de Vries <tdevries@suse.de>
970
971 PR gdb/26733
972 * solib.c (solib_contains_address_p): Handle
973 'solib->sections == nullptr'.
974
d3a07122
SM
9752020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
976
977 PR gdb/26642
978 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
979 target can't do async.
980 * target.c (target_wait): Assert that we don't pass
981 TARGET_WNOHANG to a target that can't async.
982
1b71cfcf
KR
9832020-10-13 Kamil Rytarowski <n54@gmx.com>
984
985 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
986 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
987 * alpha-bsd-nat.c: Adjust include.
988 * alpha-bsd-tdep.h: Adjust comment.
989 * alpha-nbsd-tdep.c: Rename to ...
990 * alpha-netbsd-tdep.c: ... this, adjust include.
991 * amd64-nbsd-nat.c: Rename to ...
992 * amd64-netbsd-nat.c: ... this, adjust include.
993 * amd64-nbsd-tdep.c: Rename to ...
994 * amd64-netbsd-tdep.c: ... this, adjust include.
995 * amd64-tdep.h: Adjust include.
996 * arm-nbsd-nat.c: Rename to ...
997 * arm-netbsd-nat.c: ... this, adjust include.
998 * arm-nbsd-tdep.c: Rename to ...
999 * arm-netbsd-tdep.c: ... this, adjust include.
1000 * arm-nbsd-tdep.h: Rename to ...
1001 * arm-netbsd-tdep.h: ... this, adjust include.
1002 * configure.nat: Adjust file lists.
1003 * configure.tgt: Likewise.
1004 * hppa-nbsd-nat.c: Rename to ...
1005 * hppa-netbsd-nat.c: ... this, adjust include.
1006 * hppa-nbsd-tdep.c: Rename to ...
1007 * hppa-netbsd-tdep.c: ... this, adjust include.
1008 * i386-nbsd-nat.c: Rename to ...
1009 * i386-netbsd-nat.c: ... this, adjust include.
1010 * i386-nbsd-tdep.c: Rename to ...
1011 * i386-netbsd-tdep.c: ... this, adjust include.
1012 * m68k-bsd-nat.c: Adjust include.
1013 * mips-nbsd-nat.c: Rename to ...
1014 * mips-netbsd-nat.c: ... this, adjust include.
1015 * mips-nbsd-tdep.c: Rename to ...
1016 * mips-netbsd-tdep.c: ... this, adjust include.
1017 * mips-nbsd-tdep.h: Rename to ...
1018 * mips-netbsd-tdep.h: ... this.
1019 * nbsd-nat.c: Rename to ...
1020 * netbsd-nat.c: ... this, adjust include.
1021 * nbsd-nat.h: Rename to ...
1022 * netbsd-nat.h: ... this, adjust include.
1023 * nbsd-tdep.c: Rename to ...
1024 * netbsd-tdep.c: ... this, adjust include.
1025 * nbsd-tdep.h: Rename to ...
1026 * netbsd-tdep.h: ... this.
1027 * ppc-nbsd-nat.c: Rename to ...
1028 * ppc-netbsd-nat.c: ... this, adjust include.
1029 * ppc-nbsd-tdep.c: Rename to ...
1030 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1031 * ppc-nbsd-tdep.h: Rename to ...
1032 * ppc-netbsd-tdep.h: ... this.
1033 * sh-nbsd-nat.c: Rename to ...
1034 * sh-netbsd-nat.c: ... this, adjust include.
1035 * sh-nbsd-tdep.c: Rename to ...
1036 * sh-netbsd-tdep.c: ... this, adjust include.
1037 * sparc-nbsd-nat.c: Rename to ...
1038 * sparc-netbsd-nat.c: ... this.
1039 * sparc-nbsd-tdep.c: Rename to ...
1040 * sparc-netbsd-tdep.c: ... this, adjust include.
1041 * sparc64-nbsd-nat.c: Rename to ...
1042 * sparc64-netbsd-nat.c: ... this.
1043 * sparc64-nbsd-tdep.c: Rename to ...
1044 * sparc64-netbsd-tdep.c: ... this, adjust include.
1045 * sparc64-tdep.h: Adjust comment.
1046 * vax-bsd-nat.c: Adjust include.
1047 * vax-nbsd-tdep.c: Rename to ...
1048 * vax-netbsd-tdep.c: ... this, adjust include.
1049
d7a78e5c
TT
10502020-10-12 Tom Tromey <tom@tromey.com>
1051
1052 * target.h (struct target_ops) <get_section_table>: Update.
1053 (target_get_section_table): Update.
1054 * target.c (target_get_section_table, target_section_by_addr)
1055 (memory_xfer_partial_1): Update.
1056 * target-section.h (target_section_table): Now an alias.
1057 * target-delegates.c: Rebuild.
1058 * target-debug.h (target_debug_print_target_section_table_p):
1059 Rename from target_debug_print_struct_target_section_table_p.
1060 * symfile.c (build_section_addr_info_from_section_table): Update.
1061 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1062 * solib-svr4.c (scan_dyntag): Update.
1063 * solib-dsbt.c (scan_dyntag): Update.
1064 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1065 Update.
1066 * record-full.c (record_full_core_target::xfer_partial): Update.
1067 * progspace.h (struct program_space) <target_sections>: Update.
1068 * exec.h (print_section_info): Update.
1069 * exec.c (exec_target::close, build_section_table)
1070 (add_target_sections, add_target_sections_of_objfile)
1071 (remove_target_sections, exec_on_vfork)
1072 (section_table_available_memory)
1073 (section_table_xfer_memory_partial)
1074 (exec_target::get_section_table, exec_target::xfer_partial)
1075 (print_section_info, set_section_command)
1076 (exec_set_section_address, exec_target::has_memory): Update.
1077 * corelow.c (core_target::build_file_mappings)
1078 (core_target::xfer_partial, core_target::info_proc_mappings)
1079 (core_target::info_proc_mappings): Update.
1080 * bfd-target.c (class target_bfd): Update
1081
eda214ce
TT
10822020-10-12 Tom Tromey <tom@tromey.com>
1083
1084 * progspace.c (program_space::~program_space): Don't call
1085 clear_section_table.
1086 * exec.h (clear_section_table): Don't declare.
1087 * exec.c (exec_target::close): Update.
1088 (clear_section_table): Remove.
1089
91840ee3
TT
10902020-10-12 Tom Tromey <tom@tromey.com>
1091
1092 * exec.c (add_target_sections_of_objfile): Simplify.
1093
2d128614
TT
10942020-10-12 Tom Tromey <tom@tromey.com>
1095
1096 * solib.c (solib_map_sections): Update.
1097 * record-full.c (record_full_core_open_1): Update.
1098 * exec.h (build_section_table): Return a target_section_table.
1099 * exec.c (exec_file_attach): Update.
1100 (build_section_table): Return a target_section_table.
1101 * corelow.c (core_target::core_target): Update.
1102 * bfd-target.c (target_bfd::target_bfd): Update.
1103
bb2a6777
TT
11042020-10-12 Tom Tromey <tom@tromey.com>
1105
1106 * target.c (target_section_by_addr, memory_xfer_partial_1):
1107 Update.
1108 * target-section.h (struct target_section_table): Use
1109 std::vector.
1110 * symfile.h (build_section_addr_info_from_section_table): Take a
1111 target_section_table.
1112 * symfile.c (build_section_addr_info_from_section_table): Take a
1113 target_section_table.
1114 * solist.h (struct so_list) <sections>: Change type.
1115 <sections_end>: Remove.
1116 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1117 (solib_contains_address_p): Update.
1118 * solib-svr4.c (scan_dyntag): Update.
1119 * solib-dsbt.c (scan_dyntag): Update.
1120 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1121 Update.
1122 * record-full.c (record_full_core_start, record_full_core_end):
1123 Remove.
1124 (record_full_core_sections): New global.
1125 (record_full_core_open_1, record_full_core_target::xfer_partial):
1126 Update.
1127 * exec.h (build_section_table, section_table_xfer_memory_partial)
1128 (add_target_sections): Take a target_section_table.
1129 * exec.c (exec_file_attach, clear_section_table): Update.
1130 (resize_section_table): Remove.
1131 (build_section_table, add_target_sections): Take a
1132 target_section_table.
1133 (add_target_sections_of_objfile, remove_target_sections)
1134 (exec_on_vfork): Update.
1135 (section_table_available_memory): Take a target_section_table.
1136 (section_table_read_available_memory): Update.
1137 (section_table_xfer_memory_partial): Take a target_section_table.
1138 (print_section_info, set_section_command)
1139 (exec_set_section_address, exec_target::has_memory): Update.
1140 * corelow.c (class core_target) <m_core_section_table,
1141 m_core_file_mappings>: Remove braces.
1142 <~core_target>: Remove.
1143 (core_target::core_target): Update.
1144 (core_target::~core_target): Remove.
1145 (core_target::build_file_mappings)
1146 (core_target::xfer_memory_via_mappings)
1147 (core_target::xfer_partial, core_target::info_proc_mappings):
1148 Update.
1149 * bfd-target.c (target_bfd::xfer_partial): Update.
1150 (target_bfd::target_bfd): Update.
1151 (target_bfd::~target_bfd): Remove.
1152
7b466b10
TT
11532020-10-12 Tom Tromey <tom@tromey.com>
1154
1155 * target.h (struct target_section, struct target_section_table):
1156 Move to target-section.h.
1157 * target-section.h: New file.
1158
87a37e5e
PA
11592020-10-12 Pedro Alves <pedro@palves.net>
1160
1161 PR exp/26602
1162 * valops.c (struct struct_field_searcher): New.
1163 (update_search_result): Rename to ...
1164 (struct_field_searcher::update_result): ... this. Simplify
1165 prototype. Record all found fields.
1166 (do_search_struct_field): Rename to ...
1167 (struct_field_searcher::search): ... this. Simplify prototype.
1168 Maintain stack of visited baseclass path. Call update_result for
1169 fields too. Keep searching fields in baseclasses instead of
1170 stopping at the first found field.
1171 (search_struct_field): Use struct_field_searcher. When looking
1172 for fields, report ambiguous access attempts.
1173
9370fd51
AB
11742020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1175
1176 * frame.c (inside_main_func): Check full symbols as well as
1177 minimal symbols.
1178
59c8a30b
JB
11792020-10-09 Joel Brobecker <brobecker@adacore.com>
1180
1181 * ada-lang.c (advance_wild_match): Rewrite the function's
1182 description. Change the type of target0, t0 and t1 to char.
1183
7c184d33
TT
11842020-10-09 Tom Tromey <tromey@adacore.com>
1185
1186 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1187
5c4258f4
TT
11882020-10-09 Tom Tromey <tromey@adacore.com>
1189
1190 * ada-lang.h (ada_encode): Return std::string.
1191 * ada-lang.c (ada_encode_1): Return std::string.
1192 (ada_encode): Likewise.
1193 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1194 Update.
1195 * ada-exp.y (block_lookup, write_var_or_type): Update.
1196
3d87245c
HD
11972020-10-09 Hannes Domani <ssbssa@yahoo.de>
1198
1199 PR exp/26714
1200 * printcmd.c (print_formatted): Handle void results as
1201 unformatted prints.
1202
bbb826f5
AB
12032020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1204
1205 * arch/aarch32.c (aarch32_create_target_description): Release the
1206 target_desc_up as late as possible.
1207 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1208 * arch/amd64.c (amd64_create_target_description): Likewise.
1209 * arch/arc.c (arc_create_target_description): Return a
1210 target_desc_up, don't release it.
1211 * arch/arc.h (arc_create_target_description): Update declaration.
1212 (arc_lookup_target_description): Move target_desc_up into the
1213 cache, and return a borrowed pointer.
1214 * arch/arm.c (arm_create_target_description): Release the
1215 target_desc_up as late as possible.
1216 * arch/i386.c (i386_create_target_description): Likewise.
1217 * arch/riscv.h (riscv_create_target_description): Update
1218 declaration to match definition.
1219 * arch/tic6x.c (tic6x_create_target_description): Release the
1220 target_desc_up as late as possible.
1221
361cb219
AB
12222020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1223
1224 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1225 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1226
f5c4b229
JV
12272020-10-09 Jan Vrany <jan.vrany@labware.com>
1228
1229 * source.c (directory_command): Notify observers that "directories"
1230 parameter has changed.
1231
b2701685
TT
12322020-10-08 Tom Tromey <tom@tromey.com>
1233
1234 * cli/cli-cmds.c (print_disassembly): Style function name and
1235 addresses. Add _() wrappers.
1236
ada508b6
SV
12372020-10-08 Shahab Vahedi <shahab@synopsys.com>
1238
1239 * NEWS: Mention ARC support in GDBserver.
1240
51a948fd
AB
12412020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1242
1243 * arch/aarch32.c (aarch32_create_target_description): Release
1244 unique_ptr returned from allocate_target_description.
1245 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1246 * arch/amd64.c (amd64_create_target_description): Likewise.
1247 * arch/arc.c (arc_create_target_description): Likewise.
1248 * arch/arm.c (arm_create_target_description): Likewise.
1249 * arch/i386.c (i386_create_target_description): Likewise.
1250 * arch/riscv.c (riscv_create_target_description): Update return
1251 type. Handle allocate_target_description returning a unique_ptr.
1252 (riscv_lookup_target_description): Update to handle unique_ptr.
1253 * arch/tic6x.c (tic6x_create_target_description): Release
1254 unique_ptr returned from allocate_target_description.
1255 * features/microblaze-with-stack-protect.c: Regenerate.
1256 * features/microblaze.c: Regenerate.
1257 * features/mips-dsp-linux.c: Regenerate.
1258 * features/mips-linux.c: Regenerate.
1259 * features/mips64-dsp-linux.c: Regenerate.
1260 * features/mips64-linux.c: Regenerate.
1261 * features/nds32.c: Regenerate.
1262 * features/nios2.c: Regenerate.
1263 * features/or1k.c: Regenerate.
1264 * features/rs6000/powerpc-32.c: Regenerate.
1265 * features/rs6000/powerpc-32l.c: Regenerate.
1266 * features/rs6000/powerpc-403.c: Regenerate.
1267 * features/rs6000/powerpc-403gc.c: Regenerate.
1268 * features/rs6000/powerpc-405.c: Regenerate.
1269 * features/rs6000/powerpc-505.c: Regenerate.
1270 * features/rs6000/powerpc-601.c: Regenerate.
1271 * features/rs6000/powerpc-602.c: Regenerate.
1272 * features/rs6000/powerpc-603.c: Regenerate.
1273 * features/rs6000/powerpc-604.c: Regenerate.
1274 * features/rs6000/powerpc-64.c: Regenerate.
1275 * features/rs6000/powerpc-64l.c: Regenerate.
1276 * features/rs6000/powerpc-7400.c: Regenerate.
1277 * features/rs6000/powerpc-750.c: Regenerate.
1278 * features/rs6000/powerpc-860.c: Regenerate.
1279 * features/rs6000/powerpc-altivec32.c: Regenerate.
1280 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1281 * features/rs6000/powerpc-altivec64.c: Regenerate.
1282 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1283 * features/rs6000/powerpc-e500.c: Regenerate.
1284 * features/rs6000/powerpc-e500l.c: Regenerate.
1285 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1286 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1287 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1288 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1289 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1290 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1291 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1292 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1293 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1294 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1295 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1296 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1297 * features/rs6000/powerpc-vsx32.c: Regenerate.
1298 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1299 * features/rs6000/powerpc-vsx64.c: Regenerate.
1300 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1301 * features/rs6000/rs6000.c: Regenerate.
1302 * features/rx.c: Regenerate.
1303 * features/s390-gs-linux64.c: Regenerate.
1304 * features/s390-linux32.c: Regenerate.
1305 * features/s390-linux32v1.c: Regenerate.
1306 * features/s390-linux32v2.c: Regenerate.
1307 * features/s390-linux64.c: Regenerate.
1308 * features/s390-linux64v1.c: Regenerate.
1309 * features/s390-linux64v2.c: Regenerate.
1310 * features/s390-te-linux64.c: Regenerate.
1311 * features/s390-tevx-linux64.c: Regenerate.
1312 * features/s390-vx-linux64.c: Regenerate.
1313 * features/s390x-gs-linux64.c: Regenerate.
1314 * features/s390x-linux64.c: Regenerate.
1315 * features/s390x-linux64v1.c: Regenerate.
1316 * features/s390x-linux64v2.c: Regenerate.
1317 * features/s390x-te-linux64.c: Regenerate.
1318 * features/s390x-tevx-linux64.c: Regenerate.
1319 * features/s390x-vx-linux64.c: Regenerate.
1320 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1321 from allocate_target_description.
1322 * target-descriptions.c (allocate_target_description): Update
1323 return type.
1324 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1325 allocate_target_description.
1326
485c47e5
TT
13272020-10-07 Tom Tromey <tromey@adacore.com>
1328
1329 * unittests/search-memory-selftests.c: New file.
1330 * Makefile.in (SELFTESTS_SRCS): Add
1331 unittests/search-memory-selftests.c.
1332
3a135a91
TT
13332020-10-07 Tom Tromey <tromey@adacore.com>
1334
1335 PR gdb/16930:
1336 * findcmd.c (_initialize_mem_search): Mention that the range is
1337 inclusive.
1338
4a72de73
TT
13392020-10-07 Tom Tromey <tromey@adacore.com>
1340
1341 * target.h (simple_search_memory): Don't declare.
1342 * target.c (simple_search_memory): Move to gdbsupport.
1343 (default_search_memory): Update.
1344 * remote.c (remote_target::search_memory): Update.
1345
a038ffd8
SM
13462020-10-07 Simon Marchi <simon.marchi@efficios.com>
1347
1348 * Makefile.in (COMPILE): Add CXXFLAGS.
1349 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1350 (check-headers): Add CXXFLAGS.
1351
cc463201
AK
13522020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1353
1354 * arc-linux-tdep.h: New file.
1355 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1356 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1357 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1358 arc_linux_gregset, arc_linux_v2_regset,
1359 arc_linux_iterate_over_regset_sections,
1360 arc_linux_core_read_description): Implement.
1361 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1362 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1363 (arc_gdbarch_features_create): Add.
1364 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1365
e4bd363f
SV
13662020-10-07 Shahab Vahedi <shahab@synopsys.com>
1367
1368 * arch/arc.h: Rename "arc_gdbarch_features" to
1369 "arc_arch_features".
1370 * arc-tdep.h: Likewise.
1371 * arc-tdep.c: Likewise.
1372
b68bef99
TBA
13732020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1374
1375 * infcmd.c (attach_command): Remove the redundant call to
1376 `clear_proceed_status`.
1377
4641551a
KR
13782020-10-07 Kamil Rytarowski <n54@gmx.com>
1379
1380 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1381
91e5e8db
KR
13822020-10-07 Kamil Rytarowski <n54@gmx.com>
1383
1384 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1385 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1386 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1387
64c03bdb
SM
13882020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1389
1390 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1391 (_initialize_break_catch_sig): Don't allocate array.
1392
31a8f60f
AB
13932020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1394
1395 * symtab.c (find_pc_line): Return unmapped addresses when the
1396 requested address is also unmapped.
1397
9e6dbd8b
SM
13982020-10-05 Simon Marchi <simon.marchi@efficios.com>
1399
1400 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1401 tui/tui-out.h.
1402
a1d217e8
SM
14032020-10-05 Simon Marchi <simon.marchi@efficios.com>
1404
1405 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1406 type::is_vector instead of TYPE_VECTOR.
1407
7d144117
SM
14082020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1409
1410 * auto-load.c (auto_load_objfile_script_1): Don't use
1411 debugfile_holder as temporary variable when stripping drive
1412 letter.
1413
cd096ec8
HD
14142020-10-05 Hannes Domani <ssbssa@yahoo.de>
1415
1416 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1417 Add TYPE_CODE_COMPLEX.
1418 (amd64_windows_return_value): Fix types returned via XMM0.
1419
b58e7f72
AH
14202020-10-05 Alan Hayward <alan.hayward@arm.com>
1421
1422 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1423 AArch64/ARM maintainers.
1424
8d378f27
SM
14252020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1426
1427 * NEWS: Mention set/show debug event-loop.
1428
d5519913
TT
14292020-10-02 Tom Tromey <tromey@adacore.com>
1430
1431 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1432 REG_EXTENDED.
1433
18b67edc
SM
14342020-10-02 Simon Marchi <simon.marchi@efficios.com>
1435
1436 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1437 * procfs.c (procfs_inferior_created): Remove.
1438 (_initialize_procfs): Don't register procfs_inferior_created.
1439
6b01403b
SM
14402020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1441
1442 * async-event.c (invoke_async_signal_handlers): Add debug
1443 print.
1444 (check_async_event_handlers): Likewise.
1445 * event-top.c (show_debug_event_loop): New function.
1446 (_initialize_event_top): Register "set debug event-loop"
1447 setting.
1448
ba988419
SM
14492020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1450
1451 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1452 * debug.h: Remove.
1453 * infrun.c: Include gdbsupport/common-debug.h.
1454 * linux-nat.c: Likewise.
1455
db20ebdf
SM
14562020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1457
1458 * async-event.h (create_async_signal_handler): Add name
1459 parameter.
1460 (create_async_event_handler): Likewise.
1461 * async-event.c (struct async_signal_handler) <name>: New field.
1462 (struct async_event_handler) <name>: New field.
1463 (create_async_signal_handler): Assign name.
1464 (create_async_event_handler): Assign name.
1465 * event-top.c (async_init_signals): Pass name when creating
1466 handler.
1467 * infrun.c (_initialize_infrun): Likewise.
1468 * record-btrace.c (record_btrace_push_target): Likewise.
1469 * record-full.c (record_full_open): Likewise.
1470 * remote-notif.c (remote_notif_state_allocate): Likewise.
1471 * remote.c (remote_target::open_1): Likewise.
1472 * tui/tui-win.c (tui_initialize_win): Likewise.
1473
2554f6f5
SM
14742020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1475
1476 * async-event.c (initialize_async_signal_handlers): Pass name to
1477 add_file_handler
1478 * event-top.c (ui_register_input_event_handler): Likewise.
1479 * linux-nat.c (linux_nat_target::async): Likewise.
1480 * run-on-main-thread.c (_initialize_run_on_main_thread):
1481 Likewise
1482 * ser-base.c (reschedule): Likewise.
1483 (ser_base_async): Likewise.
1484 * tui/tui-io.c: Likewise.
1485 * top.h (struct ui) <num>: New field.
1486 * top.c (highest_ui_num): New variable.
1487 (ui::ui): Initialize num.
1488
a7aba266
SM
14892020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1490
1491 * observable.h <inferior_created>: Remove parameters. Update all
1492 listeners.
1493 * inferior.h (post_create_inferior): Remove target parameter.
1494 Update all callers.
1495
048fde1e 14962020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1497
1498 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1499 and DW_MACRO_undef_strx.
1500 (dwarf_decode_macros): Likewise
1501 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1502 which is the value of DW_AT_str_offsets_base.
1503 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1504 str_offsets_base.
1505
064280be
KR
15062020-10-01 Kamil Rytarowski <n54@gmx.com>
1507
1508 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1509
6ff33035
KR
15102020-10-01 Kamil Rytarowski <n54@gmx.com>
1511
1512 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1513 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1514
1eb6eb79
KR
15152020-10-01 Kamil Rytarowski <n54@gmx.com>
1516
1517 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1518
95eb9e54
TV
15192020-09-30 Tom de Vries <tdevries@suse.de>
1520
1521 PR symtab/26683
1522 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1523
cae21f8e
TT
15242020-09-30 Tom Tromey <tromey@adacore.com>
1525
1526 * dwarf2/read.c (handle_variant): Use constant_value.
1527
529908cb
TT
15282020-09-29 Tom Tromey <tom@tromey.com>
1529
1530 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1531 (read_file_scope, dwarf2_get_pc_bounds)
1532 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1533 (read_structure_type, handle_struct_member_die)
1534 (read_enumeration_type, read_array_type, read_set_type)
1535 (read_tag_pointer_type, read_tag_reference_type)
1536 (read_subroutine_type, read_base_type, read_subrange_type)
1537 (read_full_die_1, partial_die_info::read)
1538 (partial_die_info::read, by, new_symbol)
1539 (dwarf2_const_value_data, dwarf2_const_value_attr)
1540 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1541 (prepare_one_comp_unit): Update.
1542 * dwarf2/attribute.h (DW_UNSND): Remove.
1543
c45bc3f8
TT
15442020-09-29 Tom Tromey <tom@tromey.com>
1545
1546 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1547 (read_subroutine_type, partial_die_info::read)
1548 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1549 (dwarf2_add_member_fn): Update.
1550 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1551 * dwarf2/attribute.c (attribute::as_boolean): New method.
1552
23dca5c3
TT
15532020-09-29 Tom Tromey <tom@tromey.com>
1554
1555 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1556 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1557 method.
1558 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1559
52c14d11
TT
15602020-09-29 Tom Tromey <tom@tromey.com>
1561
1562 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1563 the attribute's form.
1564
e8e5c158
TT
15652020-09-29 Tom Tromey <tom@tromey.com>
1566
1567 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1568 (dwarf2_add_member_fn): Update.
1569 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1570 * dwarf2/attribute.c (attribute::defaulted): New method, from
1571 is_valid_DW_AT_defaulted.
1572
d4df075e
TT
15732020-09-29 Tom Tromey <tom@tromey.com>
1574
1575 * dwarf2/read.c (dw2_get_file_names_reader)
1576 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1577 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1578 (dwarf2_symbol_mark_computed): Use as_unsigned.
1579 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1580 method.
1581 <form_is_section_offset>: Update comment.
1582
bf23a268
TT
15832020-09-29 Tom Tromey <tom@tromey.com>
1584
1585 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1586 dwarf2_default_access_attribute. Look up attribute.
1587 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1588 Update.
1589
7a5f294d
TT
15902020-09-29 Tom Tromey <tom@tromey.com>
1591
1592 * dwarf2/read.c (skip_one_die): Update.
1593 (read_full_die_1): Change how reprocessing is done.
1594 (partial_die_info::read): Update.
1595 (read_attribute_value): Remove need_reprocess parameter.
1596 (read_attribute): Likewise.
1597 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1598 New method.
1599
36d378cf
TT
16002020-09-29 Tom Tromey <tom@tromey.com>
1601
1602 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1603 (dwarf2_const_value_attr, dump_die_shallow)
1604 (dwarf2_fetch_constant_bytes): Update.
1605 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1606 comment.
1607 <set_address>: New method.
1608 (DW_ADDR): Remove.
1609 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1610 (attribute::as_string, attribute::as_address): Add assert.
1611
fe56917a
TT
16122020-09-29 Tom Tromey <tom@tromey.com>
1613
1614 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1615 (read_attribute_reprocess, read_attribute_value): Update.
1616 (read_attribute): Clear requires_reprocessing.
1617 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1618 form_requires_reprocessing>: New methods.
1619 <string_init>: Clear requires_reprocessing.
1620 <set_unsigned_reprocess>: New method.
1621 <name>: Shrink by one bit.
1622 <requires_reprocessing>: New member.
1623 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1624 method.
1625
414ad644
TT
16262020-09-29 Tom Tromey <tom@tromey.com>
1627
1628 * dwarf2/read.c (read_attribute_value): Update.
1629 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1630 set_unsigned>: New methods.
1631 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1632
1bc397c5
TT
16332020-09-29 Tom Tromey <tom@tromey.com>
1634
1635 * dwarf2/read.c (get_alignment, read_array_order)
1636 (read_attribute_value, dwarf2_const_value_attr)
1637 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1638 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1639 New methods.
1640 (DW_SND): Remove.
1641
630ed6b9
TT
16422020-09-29 Tom Tromey <tom@tromey.com>
1643
1644 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1645 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1646 Update.
1647 * dwarf2/attribute.h (struct attribute) <as_signature,
1648 set_signature>: New methods.
1649 (DW_SIGNATURE): Remove.
1650
9d2246fc
TT
16512020-09-29 Tom Tromey <tom@tromey.com>
1652
1653 * dwarf2/read.c (read_call_site_scope)
1654 (handle_data_member_location, dwarf2_add_member_fn)
1655 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1656 (partial_die_info::read, read_attribute_value)
1657 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1658 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1659 (dwarf2_symbol_mark_computed): Update.
1660 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1661 methods.
1662 (DW_BLOCK): Remove.
1663 * dwarf2/attribute.c (attribute::form_is_block): Add
1664 DW_FORM_data16.
1665
c6481205
TT
16662020-09-29 Tom Tromey <tom@tromey.com>
1667
1668 * dwarf2/read.c (read_cutu_die_from_dwo)
1669 (read_attribute_reprocess, read_attribute_value, read_attribute)
1670 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1671 (dwarf2_fetch_constant_bytes): Update.
1672 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1673 <set_string_noncanonical, set_string_canonical>: New methods.
1674 <string_is_canonical>: Update comment.
1675 <canonical_string_p>: Add assert.
1676 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1677 * dwarf2/attribute.c (attribute::form_is_string): New method.
1678 (attribute::string): Use it.
1679
3b64bf15
TT
16802020-09-29 Tom Tromey <tom@tromey.com>
1681
1682 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1683 (dump_die_shallow): Use canonical_string_p.
1684 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1685 method.
1686
2c830f54
TT
16872020-09-29 Tom Tromey <tom@tromey.com>
1688
1689 * dwarf2/read.c (partial_die_info::read)
1690 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1691 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1692 attribute::as_string.
1693
6c412691
TT
16942020-09-29 Tom Tromey <tom@tromey.com>
1695
1696 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1697 DW_ADDR.
1698 (attribute::string): Don't use DW_STRING.
1699 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1700 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1701
95f982e5
TT
17022020-09-29 Tom Tromey <tom@tromey.com>
1703
1704 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1705 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1706 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1707 * dwarf2/attribute.h (struct attribute): Rename methods.
1708 * dwarf2/attribute.c (attribute::as_address): Rename from
1709 value_as_address.
1710 (attribute::as_string): Rename from value_as_string.
1711
f800b00e
TT
17122020-09-29 Tom Tromey <tom@tromey.com>
1713
1714 * dwarf2/read.c (partial_die_info::read) <case
1715 DW_AT_linkage_name>: Use value_as_string.
1716 (dwarf2_string_attr): Use value_as_string.
1717 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1718 method.
1719 * dwarf2/attribute.c (attribute::value_as_string): New method.
1720
de38d64a
PA
17212020-09-29 Pedro Alves <pedro@palves.net>
1722
1723 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1724 defined before using '#pragma GCC diagnostic' instead of checking
1725 __clang__.
1726
9aed480c
TT
17272020-09-28 Tom Tromey <tom@tromey.com>
1728
1729 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1730 (handle_signal_stop): Update.
1731 * procfs.c (procfs_target::insert_watchpoint): Update.
1732 * target.h (target_have_steppable_watchpoint): Now a function.
1733
8a3ecb79
TT
17342020-09-28 Tom Tromey <tom@tromey.com>
1735
1736 * infrun.c (set_schedlock_func): Update.
1737 * target.h (target_can_lock_scheduler): Now a function.
1738
55f6301a
TT
17392020-09-28 Tom Tromey <tom@tromey.com>
1740
1741 * inferior.h (class inferior) <has_execution>: Update.
1742 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1743 * valops.c (find_function_in_inferior)
1744 (value_allocate_space_in_inferior): Update.
1745 * top.c (kill_or_detach): Update.
1746 * target.c (target_preopen, set_target_permissions): Update.
1747 (target_has_execution_current): Remove.
1748 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1749 Update.
1750 * solib.c (update_solib_list, reload_shared_libraries): Update.
1751 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1752 * solib-dsbt.c (enable_break): Update.
1753 * score-tdep.c (score7_fetch_inst): Update.
1754 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1755 Update.
1756 * remote.c (remote_target::start_remote)
1757 (remote_target::remote_check_symbols, remote_target::open_1)
1758 (remote_target::remote_detach_1, remote_target::verify_memory)
1759 (remote_target::xfer_partial, remote_target::read_description)
1760 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1761 * record-full.c (record_full_open_1): Update.
1762 * record-btrace.c (record_btrace_target_open): Update.
1763 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1764 (value_nsstring): Update.
1765 * linux-thread-db.c (add_thread_db_info)
1766 (thread_db_find_new_threads_silently, check_thread_db_callback)
1767 (try_thread_db_load_1, record_thread): Update.
1768 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1769 Update.
1770 * linux-fork.c (checkpoint_command): Update.
1771 * infrun.c (set_non_stop, set_observer_mode)
1772 (check_multi_target_resumption, for_each_just_stopped_thread)
1773 (maybe_remove_breakpoints, normal_stop)
1774 (class infcall_suspend_state): Update.
1775 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1776 (info_program_command, attach_command): Update.
1777 * infcall.c (call_function_by_hand_dummy): Update.
1778 * inf-loop.c (inferior_event_handler): Update.
1779 * gcore.c (gcore_command, derive_heap_segment): Update.
1780 * exec.c (exec_file_command): Update.
1781 * eval.c (evaluate_subexp): Update.
1782 * compile/compile.c (compile_to_object): Update.
1783 * cli/cli-dump.c (restore_command): Update.
1784 * breakpoint.c (update_watchpoint)
1785 (update_inserted_breakpoint_locations)
1786 (insert_breakpoint_locations, get_bpstat_thread): Update.
1787 * target.h (target_has_execution): Remove macro.
1788 (target_has_execution_current): Don't declare.
1789 (target_has_execution): Rename from target_has_execution_1. Add
1790 argument default.
1791
05374cfd
TT
17922020-09-28 Tom Tromey <tom@tromey.com>
1793
1794 * mi/mi-main.c (exec_reverse_continue)
1795 (mi_cmd_list_target_features): Update.
1796 * infrun.c (set_exec_direction_func): Update.
1797 * target.c (default_execution_direction): Update.
1798 * reverse.c (exec_reverse_once): Update.
1799 * target.h (target_can_execute_reverse): Now a function.
1800
9dccd06e
TT
18012020-09-28 Tom Tromey <tom@tromey.com>
1802
1803 * tui/tui-regs.c (tui_get_register)
1804 (tui_data_window::show_registers): Update.
1805 * thread.c (scoped_restore_current_thread::restore)
1806 (scoped_restore_current_thread::scoped_restore_current_thread):
1807 Update.
1808 * regcache-dump.c (regcache_print): Update.
1809 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1810 Update.
1811 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1812 * mep-tdep.c (current_me_module, current_options): Update.
1813 * linux-thread-db.c (thread_db_load): Update.
1814 * infcmd.c (registers_info, info_vector_command)
1815 (info_float_command): Update.
1816 * ia64-tdep.c (ia64_frame_prev_register)
1817 (ia64_sigtramp_frame_prev_register): Update.
1818 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1819 * gcore.c (derive_stack_segment): Update.
1820 * frame.c (get_current_frame, has_stack_frames): Update.
1821 * findvar.c (language_defn::read_var_value): Update.
1822 * arm-tdep.c (arm_pc_is_thumb): Update.
1823 * target.c (target_has_registers): Rename from
1824 target_has_registers_1.
1825 * target.h (target_has_registers): Remove macro.
1826 (target_has_registers): Rename from target_has_registers_1.
1827
841de120
TT
18282020-09-28 Tom Tromey <tom@tromey.com>
1829
1830 * windows-tdep.c (tlb_make_value): Update.
1831 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1832 * thread.c (scoped_restore_current_thread::restore)
1833 (scoped_restore_current_thread::scoped_restore_current_thread)
1834 (thread_command): Update.
1835 * stack.c (backtrace_command_1, frame_apply_level_command)
1836 (frame_apply_all_command, frame_apply_command): Update.
1837 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1838 Update.
1839 * gcore.c (derive_stack_segment): Update.
1840 * frame.c (get_current_frame, has_stack_frames): Update.
1841 * auxv.c (info_auxv_command): Update.
1842 * ada-tasks.c (ada_build_task_list): Update.
1843 * target.c (target_has_stack): Rename from target_has_stack_1.
1844 * target.h (target_has_stack): Remove macro.
1845 (target_has_stack): Rename from target_has_stack_1.
1846
a739972c
TT
18472020-09-28 Tom Tromey <tom@tromey.com>
1848
1849 * target.c (target_has_memory): Rename from target_has_memory_1.
1850 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1851 * thread.c (scoped_restore_current_thread::restore)
1852 (scoped_restore_current_thread::scoped_restore_current_thread):
1853 Update.
1854 * frame.c (get_current_frame, has_stack_frames): Update.
1855 * target.h (target_has_memory): Remove macro.
1856 (target_has_memory): Rename from target_has_memory_1.
1857
5b8a4776
TT
18582020-09-28 Tom Tromey <tom@tromey.com>
1859
1860 * target.c (target_has_all_memory_1): Remove.
1861 * target.h (target_has_all_memory): Remove define.
1862 (target_has_all_memory_1): Don't declare.
1863
bd356ec6
SM
18642020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1865
1866 * ser-base.c: Adjust comments formatting.
1867
2c72d5e5
TT
18682020-09-27 Tom Tromey <tom@tromey.com>
1869
1870 PR tui/25342:
1871 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1872
35a98237
TT
18732020-09-27 Tom Tromey <tom@tromey.com>
1874
1875 PR tui/25342:
1876 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1877
9e820dec
TT
18782020-09-27 Tom Tromey <tom@tromey.com>
1879
1880 * unittests/tui-selftests.c: Update.
1881 * tui/tui-winsource.h (struct tui_source_window_base)
1882 <extra_margin, show_line_number, refresh_pad>: New methods.
1883 <m_max_length, m_pad>: New members.
1884 (tui_copy_source_line): Update.
1885 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1886 first_col, line_width, ndigits parameters. Add length.
1887 (tui_source_window_base::show_source_line): Write to pad. Line
1888 number now 0-based.
1889 (tui_source_window_base::refresh_pad): New method.
1890 (tui_source_window_base::show_source_content): Write to pad. Call
1891 refresh_pad.
1892 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1893 not refill.
1894 (tui_source_window_base::update_exec_info): Call
1895 show_line_number.
1896 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1897 method.
1898 <m_digits>: New member.
1899 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1900 and m_max_length.
1901 (tui_source_window::show_line_number): New method.
1902 * tui/tui-io.h (tui_puts): Fix comment.
1903 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1904 m_max_length.
1905
c15c15c8
TT
19062020-09-27 Tom Tromey <tom@tromey.com>
1907
1908 * tui/tui-winsource.c
1909 (tui_source_window_base::set_is_exec_point_at): Don't call
1910 show_source_line.
1911
149830c1
TT
19122020-09-27 Tom Tromey <tom@tromey.com>
1913
1914 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1915 method.
1916 <erase>: Update.
1917 <cursor_x, cursor_y>: Remove.
1918 <m_inner_window>: New member.
1919 (tui_py_window::rerender): Create inner window.
1920 (tui_py_window::output): Write to inner window.
1921
8f9929bb
GR
19222020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1923
1924 PR python/26586
1925 * cli/cli-script.c (execute_control_commands): don't set
1926 instream to nullptr here as this breaks the from_tty argument
1927 to gdb.execute in Python.
1928 (execute_user_command): set instream to nullptr here instead.
1929
956bdb59
SM
19302020-09-25 Simon Marchi <simon.marchi@efficios.com>
1931
1932 * infrun.h (infrun_debug_printf): Fix formatting.
1933 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1934
3b93626b
SJ
19352020-09-25 Saagar Jha <saagar@saagarjha.com>
1936
1937 * compile/compile-object-load.h (struct munmap_list): Add
1938 explicitly-defined move constructor.
1939
b551a89f
TT
19402020-09-24 Tom Tromey <tromey@adacore.com>
1941
1942 PR tui/26638:
1943 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1944 method.
1945 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1946 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1947 (tui_prev_win): Rewrite.
1948
99bb393f
HD
19492020-09-23 Hannes Domani <ssbssa@yahoo.de>
1950
1951 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1952 in WOW64 processes as SIGINT.
1953 * nat/windows-nat.h: Make wow64_process a shared variable.
1954 * windows-nat.c: Remove static wow64_process variable.
1955
20a5fcbd
TT
19562020-09-23 Tom Tromey <tom@tromey.com>
1957
1958 PR symtab/25470:
1959 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1960 offset and bit size.
1961 * printcmd.c (print_scalar_formatted): Handle zero-length
1962 integer.
1963 (print_scalar_formatted): Use bit_size_differs_p.
1964 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1965 constant.
1966 (union type_specific): <int_stuff>: New member.
1967 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1968 methods.
1969 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1970 TYPE_SPECIFIC_FIELD.
1971 (recursive_dump_type, copy_type_recursive): Update.
1972 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1973 DW_AT_data_bit_offset.
1974
bac51ab7
TT
19752020-09-23 Tom Tromey <tom@tromey.com>
1976
1977 * utils.h (class gdb_argv): Add move operators.
1978 <append>: New methods.
1979 * compile/compile.c (build_argc_argv): Remove.
1980 (compile_args_argc): Remove.
1981 (compile_args_argv): Change type.
1982 (set_compile_args): Simplify.
1983 (append_args): Remove.
1984 (filter_args): Remove argcp parameter.
1985 (get_args): Return gdb_argv. Simplify.
1986 (compile_to_object): Update.
1987
92677124
TT
19882020-09-23 Tom Tromey <tom@tromey.com>
1989
1990 * compile/compile-object-run.c (do_module_cleanup)
1991 <~do_module_cleanup> :Remove.
1992 (do_module_cleanup): Update.
1993 * compile/compile-object-load.h (struct munmap_list): Add move
1994 assignment operator.
1995 <source_file>: Now a std::string.
1996 <munmap_list>: Rename. No longer a pointer.
1997 * compile/compile-object-load.c (struct setup_sections_data): Add
1998 constructor.
1999 <setup_one_section>: Declare.
2000 <munmap_list>: Move earlier.
2001 <m_bfd>: New member.
2002 <m_last_size, m_last_section_first, m_last_prot,
2003 m_last_max_alignment>: Rename, add initializers where needed.
2004 (setup_sections_data::setup_one_section): Rename from
2005 setup_sections. Update.
2006 (compile_object_load): Update. Don't use bfd_map_over_sections.
2007
e616f60a
TT
20082020-09-23 Tom Tromey <tom@tromey.com>
2009
2010 * compile/compile-object-run.c (struct do_module_cleanup): Add
2011 parameters to constructor. Update destructor.
2012 <source_file, scope, scope_data, out_value_type, out_value_addr,
2013 munmap_list_head, objfile_name_string>: Remove.
2014 <module>: New member.
2015 (do_module_cleanup): Update.
2016 (compile_object_run): Update.
2017
e947a848
TT
20182020-09-23 Tom Tromey <tom@tromey.com>
2019
2020 * compile/compile.c (eval_compile_command): Update.
2021 * compile/compile-object-run.h (compile_object_run): Take a
2022 compile_module_up.
2023 * compile/compile-object-run.c (compile_object_run): Take a
2024 compile_module_up.
2025 * compile/compile-object-load.h (struct compile_module): Add
2026 constructor, destructor.
2027 (compile_module_up): New typedef.
2028 (compile_object_load): Return compile_object_up.
2029 * compile/compile-object-load.c (compile_object_load): Return
2030 compile_module_up.
2031
0dbf6ee6
TT
20322020-09-23 Tom Tromey <tom@tromey.com>
2033
2034 * compile/compile-object-run.c (struct do_module_cleanup): Add
2035 constructor, destructor.
2036 <objfile_name_string>: Don't use struct hack.
2037 (do_module_cleanup): Use delete.
2038 (compile_object_run): Use new.
2039
ebe824f5
TT
20402020-09-23 Tom Tromey <tom@tromey.com>
2041
2042 * compile/compile-cplus-types.c
2043 (compile_cplus_convert_struct_or_union): Use std::vector.
2044 (compile_cplus_convert_func): Likewise.
2045 * compile/compile-c-types.c (convert_func): Use std::vector.
2046
5dd918d9
TT
20472020-09-21 Tom Tromey <tromey@adacore.com>
2048
2049 * sparc-tdep.c (sparc32_skip_prologue): Use
2050 skip_prologue_using_sal.
2051
5486c517
TT
20522020-09-19 Tom Tromey <tom@tromey.com>
2053
2054 * symfile.c (add_section_size_callback): Remove.
2055 (load_one_section): Rename from load_section_callback. Change
2056 parameters.
2057 (generic_load): Use foreach.
2058
8a6bb1d1
TT
20592020-09-19 Tom Tromey <tom@tromey.com>
2060
2061 * exec.c (add_to_section_table): Remove.
2062 (build_section_table): Use foreach.
2063
08f93a1a
TT
20642020-09-19 Tom Tromey <tom@tromey.com>
2065
2066 * elfread.c (elf_locate_sections): Change parameters.
2067 (elf_symfile_read): Use foreach.
2068
03cd72b8
TT
20692020-09-19 Tom Tromey <tom@tromey.com>
2070
2071 * cli/cli-dump.c (struct callback_data): Remove.
2072 (restore_one_section): Rename from restore_section_callback.
2073 Change parameters.
2074 (restore_binary_file): Change parameters.
2075 (restore_command): Use foreach.
2076
f4f2b85f
TT
20772020-09-19 Tom Tromey <tom@tromey.com>
2078
2079 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2080 (gcore_copy_callback): Likewise.
2081 (gcore_memory_sections): Use foreach.
2082
b35c1d1c
TT
20832020-09-19 Tom Tromey <tom@tromey.com>
2084
2085 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2086 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2087 parameters.
2088 (generic_elf_osabi_sniffer): Use foreach.
2089 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2090 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2091
5bb6e9dd
TT
20922020-09-19 Tom Tromey <tom@tromey.com>
2093
2094 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2095 (dwarf2_get_dwz_file): Use foreach.
2096 (dwarf2_locate_dwo_sections): Change parameters.
2097 (open_and_init_dwo_file): Use foreach.
2098 (dwarf2_locate_common_dwp_sections): Change parameters.
2099 (open_and_init_dwp_file): Use foreach.
2100
ad7277da
TT
21012020-09-19 Tom Tromey <tom@tromey.com>
2102
2103 * symfile.h: (find_lowest_section): Don't declare.
2104 * symfile.c (find_lowest_section): Now static. Change
2105 parameters.
2106 (struct place_section_arg): Remove.
2107 (place_section): Change parameters.
2108 (addr_info_make_relative): Use foreach.
2109 (symfile_dummy_outputs): Remove.
2110 (default_symfile_relocate): Use foreach.
2111
cb814f2e
TT
21122020-09-19 Tom Tromey <tom@tromey.com>
2113
2114 * objfiles.c (add_to_objfile_sections): Rename from
2115 add_to_objfile_sections_full.
2116 (add_to_objfile_sections): Remove.
2117 (build_objfile_section_table): Use foreach.
2118
3cabfd26
TT
21192020-09-19 Tom Tromey <tom@tromey.com>
2120
2121 * stap-probe.c (get_stap_base_address_1): Remove.
2122 (get_stap_base_address): Use foreach.
2123
1ce51eb5
TT
21242020-09-19 Tom Tromey <tom@tromey.com>
2125
2126 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2127 parameters.
2128 (gdb_bfd_close_or_warn): Use foreach.
2129
a190fabb
TT
21302020-09-19 Tom Tromey <tom@tromey.com>
2131
2132 * corelow.c (add_to_thread_list): Change parameters.
2133 (core_target_open): Use foreach.
2134
cafb0d81
TT
21352020-09-19 Tom Tromey <tom@tromey.com>
2136
2137 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2138 existing function.
2139
c8d5abea
AB
21402020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2141
2142 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2143 for arrays.
2144
6d816919
AB
21452020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2146
2147 * eval.c: Remove 'f-lang.h' include.
2148 (value_f90_subarray): Moved to f-lang.c.
2149 (eval_call): Renamed to...
2150 (evaluate_subexp_do_call): ...this, is no longer static, header
2151 comment moved into header file.
2152 (evaluate_funcall): Update call to eval_call.
2153 (skip_undetermined_arglist): Moved to f-lang.c.
2154 (fortran_value_subarray): Likewise.
2155 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2156 moved to evaluate_subexp_f.
2157 (calc_f77_array_dims): Moved to f-lang.c
2158 * expprint.c (print_subexp_funcall): New function.
2159 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2160 moved to print_subexp_f, OP_FUNCALL uses new function.
2161 (dump_subexp_body_funcall): New function.
2162 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2163 moved to dump_subexp_f, OP_FUNCALL uses new function.
2164 * expression.h (evaluate_subexp_do_call): Declare.
2165 * f-lang.c (value_f90_subarray): Moved from eval.c.
2166 (skip_undetermined_arglist): Likewise.
2167 (calc_f77_array_dims): Likewise.
2168 (fortran_value_subarray): Likewise.
2169 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2170 (operator_length_f): Likewise.
2171 (print_subexp_f): Likewise.
2172 (dump_subexp_body_f): Likewise.
2173 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2174 declaration of this operation to here.
2175 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2176 support moved to operator_length_f.
2177 * parser-defs.h (dump_subexp_body_funcall): Declare.
2178 (print_subexp_funcall): Declare.
2179 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2180 fortran-operator.def.
2181
8c37706a
AB
21822020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2183
2184 * eval.c (fortran_value_subarray): New function, content is taken
2185 from...
2186 (evaluate_subexp_standard): ...here, in two places. Now arrays
2187 and strings both call the new function.
2188 (calc_f77_array_dims): Add header comment, handle strings.
2189
14f9473c
VC
21902020-09-18 Victor Collod <vcollod@nvidia.com>
2191
2192 PR gdb/26635
2193 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2194 (i386_analyze_prologue): Call i386_skip_endbr.
2195
b60cea74
TT
21962020-09-18 Tom Tromey <tromey@adacore.com>
2197
2198 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2199 (windows_nat_target::wait): Update.
2200 * target/wait.h (enum target_wait_flag): New. Use
2201 DEF_ENUM_FLAGS_TYPE.
2202 * target/target.h (target_wait): Change type of options.
2203 * target.h (target_options_to_string, default_target_wait):
2204 Update.
2205 (struct target_ops) <wait>: Change type of options.
2206 * target.c (target_wait, default_target_wait, do_option): Change
2207 type of "options".
2208 (target_options_to_string): Likewise.
2209 * target-delegates.c: Rebuild.
2210 * target-debug.h (target_debug_print_target_wait_flags): Rename
2211 from target_debug_print_options.
2212 * sol-thread.c (class sol_thread_target) <wait>: Update.
2213 (sol_thread_target::wait): Update.
2214 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2215 (rs6000_nat_target::wait): Update.
2216 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2217 Update.
2218 (remote_target::wait_ns, remote_target::wait_as): Change type of
2219 "options".
2220 (remote_target::wait): Update.
2221 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2222 (gdbsim_target::wait): Update.
2223 * record-full.c (class record_full_base_target) <wait>: Update.
2224 (record_full_wait_1): Change type of "options".
2225 (record_full_base_target::wait): Update.
2226 * record-btrace.c (class record_btrace_target) <wait>: Update.
2227 (record_btrace_target::wait): Update.
2228 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2229 Update.
2230 (ravenscar_thread_target::wait): Update.
2231 * procfs.c (class procfs_target) <wait>: Update.
2232 (procfs_target::wait): Update.
2233 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2234 * obsd-nat.c (obsd_nat_target::wait): Update.
2235 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2236 (nto_procfs_target::wait): Update.
2237 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2238 * nbsd-nat.c (nbsd_wait): Change type of "options".
2239 (nbsd_nat_target::wait): Update.
2240 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2241 (thread_db_target::wait): Update.
2242 * linux-nat.h (class linux_nat_target) <wait>: Update.
2243 * linux-nat.c (linux_nat_target::wait): Update.
2244 (linux_nat_wait_1): Update.
2245 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2246 "options".
2247 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2248 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2249 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2250 (go32_nat_target::wait): Update.
2251 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2252 * gnu-nat.c (gnu_nat_target::wait): Update.
2253 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2254 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2255 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2256 * darwin-nat.c (darwin_nat_target::wait): Update.
2257 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2258 (bsd_uthread_target::wait): Update.
2259 * aix-thread.c (class aix_thread_target) <wait>: Update.
2260 (aix_thread_target::wait): Update.
2261
0295dde6
AB
22622020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2263
2264 * compile/compile-object-run.c (create_copied_type_recursive): New
2265 function.
2266 (compile_object_run): Use new function.
2267
d3483b43
JT
22682020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2269
2270 * NEWS: Mention x86_64 Cygwin core file support.
2271
e7d612ad
JT
22722020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2273
2274 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2275 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2276
aff9d387
JT
22772020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2278
62a5151b
JT
2279 * windows-tdep.h: Add prototypes.
2280 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2281 (i386_windows_core_pid_to_str): Move and rename ...
2282 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2283 (windows_core_pid_to_str): ... and here.
2284 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2285
22862020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2287 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2288 (amd64_windows_init_abi_common): ... and register.
2289
7d155da3
JT
22902020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2291
2292 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2293 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2294
e8ef12b9
PA
22952020-09-18 Pedro Alves <pedro@palves.net>
2296
2297 PR gdb/26631
2298 * thread.c (thread_find_command): Switch inferior before calling
2299 target methods.
2300
c1e1314d
TT
23012020-09-17 Tom Tromey <tromey@adacore.com>
2302
2303 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2304 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2305 (tdesc_arch_data_up): New typedef.
2306 (tdesc_use_registers, tdesc_data_alloc): Update.
2307 (tdesc_data_cleanup): Don't declare.
2308 * target-descriptions.c (tdesc_data_alloc): Return a
2309 tdesc_arch_data_up.
2310 (tdesc_arch_data_deleter::operator()): Rename from
2311 tdesc_data_cleanup. Change argument type.
2312 (tdesc_use_registers): Change early_data to an rvalue reference.
2313 (tdesc_use_registers): Don't use delete.
2314 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2315 * s390-tdep.c (s390_gdbarch_init): Update.
2316 * rx-tdep.c (rx_gdbarch_init): Update.
2317 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2318 * riscv-tdep.c (riscv_gdbarch_init): Update.
2319 * or1k-tdep.c (or1k_gdbarch_init): Update.
2320 * nios2-tdep.c (nios2_gdbarch_init): Update.
2321 * nds32-tdep.c (nds32_gdbarch_init): Update.
2322 * mips-tdep.c (mips_gdbarch_init): Update.
2323 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2324 * m68k-tdep.c (m68k_gdbarch_init): Update.
2325 * i386-tdep.c (i386_gdbarch_init): Update.
2326 * arm-tdep.c (arm_gdbarch_init): Update.
2327 * arc-tdep.c (arc_tdesc_init): Update.
2328 (arc_gdbarch_init): Update.
2329 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2330
0363df3d
HD
23312020-09-17 Hannes Domani <ssbssa@yahoo.de>
2332
2333 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2334 for WOW64 processes.
2335
280a9412
TT
23362020-09-17 Tom Tromey <tom@tromey.com>
2337
2338 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2339
6108fd18
TT
23402020-09-17 Tom Tromey <tom@tromey.com>
2341
2342 * value.c (preserve_values): Update.
2343 * python/py-type.c (save_objfile_types): Update.
2344 * guile/scm-type.c (save_objfile_types): Update.
2345 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2346 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2347 * compile/compile-object-run.c (compile_object_run): Update.
2348
fa9b1164
TT
23492020-09-17 Tom Tromey <tom@tromey.com>
2350
2351 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2352 Remove.
2353 <m_table>: Now htab_up.
2354 * typeprint.c (typedef_hash_table::recursively_update)
2355 (typedef_hash_table::add_template_parameters)
2356 (typedef_hash_table::typedef_hash_table): Update.
2357 (typedef_hash_table::~typedef_hash_table): Remove.
2358 (typedef_hash_table::typedef_hash_table)
2359 (typedef_hash_table::find_global_typedef)
2360 (typedef_hash_table::find_typedef): Update.
2361
eb53f105
TT
23622020-09-17 Tom Tromey <tom@tromey.com>
2363
2364 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2365
7a8a5d47
TT
23662020-09-17 Tom Tromey <tom@tromey.com>
2367
2368 * linespec.c (class decode_compound_collector)
2369 <~decode_compound_collector>: Remove.
2370 <m_unique_syms>: Now htab_up.
2371 (decode_compound_collector::operator ()): Update.
2372 (class symtab_collector) <~symtab_collector>: Remove.
2373 <m_symtab_table>: Now htab_up.
2374 (symtab_collector::operator ()): Update.
2375
99032cfc
TT
23762020-09-17 Tom Tromey <tom@tromey.com>
2377
2378 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2379 (filename_seen_cache::clear): Update.
2380 (~filename_seen_cache): Remove.
2381 (filename_seen_cache::seen): Update.
2382 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2383 htab_up.
2384 <~filename_seen_cache>: Remove.
2385 <traverse>: Update.
2386
32580f6d
TT
23872020-09-17 Tom Tromey <tom@tromey.com>
2388
2389 * completer.c (completion_tracker::discard_completions)
2390 (completion_tracker::~completion_tracker)
2391 (completion_tracker::maybe_add_completion)
2392 (completion_tracker::remove_completion)
2393 (completion_tracker::recompute_lowest_common_denominator)
2394 (completion_tracker::build_completion_result): Update.
2395 * completer.h (class completion_tracker) <have_completions>:
2396 Update.
2397 <m_entries_hash>: Now htab_up.
2398
c1fb9836
TT
23992020-09-17 Tom Tromey <tom@tromey.com>
2400
2401 * breakpoint.c (ambiguous_names_p): Use htab_up.
2402
88f07206
TT
24032020-09-17 Tom Tromey <tom@tromey.com>
2404
2405 * auto-load.c (struct auto_load_pspace_info)
2406 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2407 <loaded_script_files, loaded_script_texts>: Change type to
2408 htab_up.
2409 (~auto_load_pspace_info) Remove.
2410 (init_loaded_scripts_info, maybe_add_script_file)
2411 (maybe_add_script_text, auto_load_info_scripts): Update.
2412
9519b2ee
TT
24132020-09-17 Tom Tromey <tromey@adacore.com>
2414
2415 * c-exp.y (name_obstack): Now static.
2416
d2cd4113
CC
24172020-09-17 Chungyi Chi <demonic@csie.io>
2418
2419 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2420
b650a282
SM
24212020-09-16 Simon Marchi <simon.marchi@efficios.com>
2422
2423 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2424 (add_solib_catchpoint): Likewise.
2425 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2426 to bool.
2427 (add_solib_catchpoint): Change int parameter/variable to bool.
2428 (catch_load_or_unload): Likewise.
2429 (init_catchpoint): Likewise.
2430 (create_fork_vfork_event_catchpoint): Likewise.
2431 (catch_fork_command_1): Likewise.
2432 (catch_exec_command_1): Likewise.
2433
4d0bcfcf
SM
24342020-09-16 Simon Marchi <simon.marchi@efficios.com>
2435
2436 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2437 Change instance_flags to m_instance_flags.
2438
fe830662
TT
24392020-09-16 Tom Tromey <tromey@adacore.com>
2440
2441 PR gdb/26598:
2442 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2443
fe5ddfc3
JB
24442020-09-16 John Baldwin <jhb@FreeBSD.org>
2445
2446 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2447 PL_FLAG_EXEC.
2448 (fbsd_nat_target::insert_exec_catchpoint)
2449 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2450 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2451 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2452
e911c666
JB
24532020-09-16 John Baldwin <jhb@FreeBSD.org>
2454
2455 * configure.ac: Remove check for kinfo_getvmmap().
2456 * configure, config.in: Regenerate.
2457 * fbsd-nat.c (fbsd_read_mapping): Remove
2458 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2459 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2460 kinfo_get_vmmap() are always present.
2461
1f17d372
JB
24622020-09-16 John Baldwin <jhb@FreeBSD.org>
2463
2464 * fbsd-nat.c: Always include support for
2465 TARGET_OBJECT_SIGNAL_INFO.
2466
bcb1da7f
JB
24672020-09-16 John Baldwin <jhb@FreeBSD.org>
2468
2469 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2470 sysctl and remove procfs fallback.
2471
5515f729
JB
24722020-09-16 John Baldwin <jhb@FreeBSD.org>
2473
2474 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2475 * fbsd-nat.h: Likewise.
2476
da1df1db
TBA
24772020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2478
2479 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2480 argument.
2481
0e25e767
AB
24822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2483
2484 * ada-lang.c (ada_language_data): Delete.
2485 (ada_language): Remove references to ada_language_data.
2486 * c-lang.c (c_language_data): Delete.
2487 (c_language): Remove references to c_language_data.
2488 (cplus_language_data): Delete.
2489 (cplus_language): Remove references to cplus_language_data.
2490 (asm_language_data): Delete.
2491 (asm_language): Remove references to asm_language_data.
2492 (minimal_language_data): Delete.
2493 (minimal_language): Remove references to minimal_language_data.
2494 * d-lang.c (d_language_data): Delete.
2495 (d_language): Remove references to d_language_data.
2496 * f-lang.c (f_language_data): Delete.
2497 (f_language): Remove references to f_language_data.
2498 * go-lang.c (go_language_data): Delete.
2499 (go_language): Remove references to go_language_data.
2500 * language.c (unknown_language_data): Delete.
2501 (unknown_language): Remove references to unknown_language_data.
2502 (auto_language_data): Delete.
2503 (auto_language): Remove references to auto_language_data.
2504 * language.h (language_data): Delete struct.
2505 (language_defn): No longer inherit from language_data.
2506 * m2-lang.c (m2_language_data): Delete.
2507 (m2_language): Remove references to m2_language_data.
2508 * objc-lang.c (objc_language_data): Delete.
2509 (objc_language): Remove references to objc_language_data.
2510 * opencl-lang.c (opencl_language_data): Delete.
2511 (opencl_language): Remove references to opencl_language_data.
2512 * p-lang.c (pascal_language_data): Delete.
2513 (pascal_language): Remove references to pascal_language_data.
2514 * rust-lang.c (rust_language_data): Delete.
2515 (rust_language): Remove references to rust_language_data.
2516
b7c6e27d
AB
25172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2518
2519 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2520 initializer.
2521 (ada_language::opcode_print_table): New member function.
2522 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2523 (c_language::opcode_print_table): New member function.
2524 (cplus_language_data): Remove la_op_print_tab initializer.
2525 (cplus_language::opcode_print_table): New member function.
2526 (asm_language_data): Remove la_op_print_tab initializer.
2527 (asm_language::opcode_print_table): New member function.
2528 (minimal_language_data): Remove la_op_print_tab initializer.
2529 (minimal_language::opcode_print_table): New member function.
2530 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2531 (d_language::opcode_print_table): New member function.
2532 * expprint.c (print_subexp_standard): Update call to
2533 opcode_print_table.
2534 (op_string): Likewise.
2535 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2536 (f_language::opcode_print_table): New member function.
2537 * go-lang.c (go_language_data): Remove la_op_print_tab
2538 initializer.
2539 (go_language::opcode_print_table): New member function.
2540 * language.c (unknown_language_data): Remove la_op_print_tab
2541 initializer.
2542 (unknown_language::opcode_print_table): New member function.
2543 (auto_language_data): Remove la_op_print_tab initializer.
2544 (auto_language::opcode_print_table): New member function.
2545 * language.h (language_data): Remove la_op_print_tab field.
2546 (language_defn::opcode_print_table): Declare new member function.
2547 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2548 initializer.
2549 (m2_language::opcode_print_table): New member function.
2550 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2551 initializer.
2552 (objc_language::opcode_print_table): New member function.
2553 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2554 initializer.
2555 (opencl_language::opcode_print_table): New member function.
2556 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2557 initializer.
2558 (pascal_language::opcode_print_table): New member function.
2559 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2560 initializer.
2561 (rust_language::opcode_print_table): New member function.
2562
5aba6ebe
AB
25632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2564
2565 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2566 (ada_language::expression_ops): New member function.
2567 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2568 (c_language::expression_ops): New member function.
2569 (cplus_language_data): Remove la_exp_desc initializer.
2570 (cplus_language::expression_ops): New member function.
2571 (asm_language_data): Remove la_exp_desc initializer.
2572 (asm_language::expression_ops): New member function.
2573 (minimal_language_data): Remove la_exp_desc initializer.
2574 (minimal_language::expression_ops): New member function.
2575 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2576 (d_language::expression_ops): New member function.
2577 * eval.c (evaluate_subexp): Update call to expression_ops.
2578 * expprint.c (print_subexp): Likewise.
2579 (op_name): Likewise.
2580 (dump_subexp_body): Likewise.
2581 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2582 (f_language::expression_ops): New member function.
2583 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2584 (go_language::expression_ops): New member function.
2585 * language.c (language_defn::expression_ops): New function.
2586 (unknown_language_data): Remove la_exp_desc initializer.
2587 (auto_language_data): Likewise.
2588 * language.h (language_data): Remove la_exp_desc field.
2589 (language_defn::expression_ops): Declare new member function.
2590 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2591 (m2_language::expression_ops): New member function.
2592 * objc-lang.c (objc_language_data): Remove la_exp_desc
2593 initializer.
2594 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2595 initializer.
2596 (opencl_language::expression_ops): New member function.
2597 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2598 * parse.c (operator_length): Update call to expression_ops.
2599 (exp_iterate): Likewise.
2600 * rust-lang.c (rust_language_data): Remove la_exp_desc
2601 initializer.
2602 (ruse_language::expression_ops): New member function.
2603
b63a3f3f
AB
26042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2605
2606 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2607 initializer.
2608 (ada_language::varobj_ops): New member function.
2609 * c-lang.c (c_language_data): Remove la_varobj_ops
2610 initializer.
2611 (cplus_language_data): Likewise.
2612 (cplus_language::varobj_ops): New member function.
2613 (asm_language_data): Remove la_varobj_ops initializer.
2614 (minimal_language_data): Likewise.
2615 * d-lang.c (d_language_data): Likewise.
2616 * f-lang.c (f_language_data): Likewise.
2617 * go-lang.c (go_language_data): Likewise.
2618 * language.c (language_defn::varobj_ops): New function.
2619 (unknown_language_data): Remove la_varobj_ops
2620 initializer.
2621 (auto_language_data): Likewise.
2622 * language.h (language_data): Remove la_varobj_ops field.
2623 (language_defn::varobj_ops): Declare new member function.
2624 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2625 * objc-lang.c (objc_language_data): Likewise.
2626 * opencl-lang.c (opencl_language_data): Likewise.
2627 * p-lang.c (pascal_language_data): Likewise.
2628 * rust-lang.c (rust_language_data): Likewise.
2629 * varobj.c (varobj_create): Update call to varobj_ops.
2630 * varobj.h (default_varobj_ops): Delete define.
2631
1ac14a04
AB
26322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2633
2634 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2635 initializer.
2636 * c-lang.c (c_language_data): Likewise.
2637 (c_language::macro_expansion): New member function.
2638 (cplus_language_data): Likewise.
2639 (cplus_language::macro_expansion): New member function.
2640 (asm_language_data): Likewise.
2641 (asm_language::macro_expansion): New member function.
2642 (minimal_language_data): Likewise.
2643 (minimal_language::macro_expansion): New member function.
2644 * d-lang.c (d_language_data): Remove la_macro_expansion
2645 initializer.
2646 * f-lang.c (f_language_data): Likewise.
2647 * go-lang.c (go_language_data): Likewise.
2648 * language.c (unknown_language_data): Likewise.
2649 (auto_language_data): Likewise.
2650 * language.h (language_data): Remove la_macro_expansion field.
2651 (language_defn::macro_expansion): New member function.
2652 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2653 initializer.
2654 * objc-lang.c (objc_language_data): Likewise.
2655 (objc_language::macro_expansion): New member function.
2656 * opencl-lang.c (opencl_language_data): Likewise.
2657 (opencl_language::macro_expansion): New member function.
2658 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2659 initializer.
2660 * rust-lang.c (rust_language_data): Likewise.
2661 * symtab.c (default_collect_symbol_completion_matches_break_on):
2662 Update call to macro_expansion.
2663
3a3440fb
AB
26642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2665
2666 * ada-lang.c (ada_language_data): Remove la_array_ordering
2667 initializer.
2668 * c-lang.c (c_language_data): Likewise.
2669 (cplus_language_data): Likewise.
2670 (asm_language_data): Likewise.
2671 (minimal_language_data): Likewise.
2672 * d-lang.c (d_language_data): Likewise.
2673 * dwarf2/read.c (read_array_order): Update for call to
2674 array_ordering.
2675 * f-lang.c (f_language_data): Remove la_array_ordering
2676 initializer.
2677 (f_language::array_ordering): New member function.
2678 * go-lang.c (go_language_data): Remove la_array_ordering
2679 initializer.
2680 * language.c (unknown_language_data): Likewise.
2681 (auto_language_data): Likewise.
2682 * language.h (language_data): Delete la_array_ordering field.
2683 (language_defn::array_ordering): New member function.
2684 * m2-lang.c (m2_language_data): Remove la_array_ordering
2685 initializer.
2686 * objc-lang.c (objc_language_data): Likewise.
2687 * opencl-lang.c (opencl_language_data): Likewise.
2688 * p-lang.c (pascal_language_data): Likewise.
2689 * rust-lang.c (rust_language_data): Likewise.
2690
0d201fa4
AB
26912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2692
2693 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2694 initializer.
2695 * c-lang.c (c_language_data): Likewise.
2696 (cplus_language_data): Likewise.
2697 (asm_language_data): Likewise.
2698 (minimal_language_data): Likewise.
2699 * d-lang.c (d_language_data): Likewise.
2700 * f-lang.c (f_language_data): Likewise.
2701 (f_language::case_sensitivity): New member function.
2702 * go-lang.c (go_language_data): Remove la_case_sensitivity
2703 initializer.
2704 * language.c (enum case_mode): Moved here from language.h.
2705 (case_mode): Make static.
2706 (show_case_command): Update for case_sensitivity being a method.
2707 (set_case_command): Likewise.
2708 (set_range_case): Likewise.
2709 (unknown_language_data): Remove la_case_sensitivity initializer.
2710 (auto_language_data): Likewise.
2711 * language.h (case_mode): Delete, move enum declaration to
2712 language.c.
2713 (language_data): Delete la_case_sensitivity field.
2714 (language_defn::case_sensitivity): New member function.
2715 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2716 initializer.
2717 * objc-lang.c (objc_language_data): Likewise.
2718 * opencl-lang.c (opencl_language_data): Likewise.
2719 * p-lang.c (pascal_language_data): Likewise.
2720 * rust-lang.c (rust_language_data): Likewise.
2721
efdf6a73
AB
27222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2723
2724 * ada-lang.c (ada_language_data): Remove la_range_check
2725 initializer.
2726 * c-lang.c (c_language_data): Likewise.
2727 (cplus_language_data): Likewise.
2728 (asm_language_data): Likewise.
2729 (minimal_language_data): Likewise.
2730 * d-lang.c (d_language_data): Likewise.
2731 * f-lang.c (f_language_data): Likewise.
2732 (f_language::range_checking_on_by_default): New member function.
2733 * go-lang.c (go_language_data): Remove la_range_check initializer.
2734 * language.c (enum range_mode): Moved here from language.h.
2735 (range_mode): Made static.
2736 (show_range_command): Update to use
2737 range_checking_on_by_default.
2738 (set_range_command): Likewise.
2739 (set_range_case): Likewise.
2740 (unknown_language_data): Remove la_range_check initializer.
2741 (auto_language_data): Likewise.
2742 * language.h (range_mode): Delete. Enum definition moved to
2743 language.c.
2744 (language_data): Remove la_range_check field.
2745 (language_defn::range_checking_on_by_default): New member
2746 function.
2747 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2748 (m2_language::range_checking_on_by_default): New member function.
2749 * objc-lang.c (objc_language_data): Remove la_range_check
2750 initializer.
2751 * opencl-lang.c (opencl_language_data): Likewise.
2752 * p-lang.c (pascal_language_data): Likewise.
2753 (pascal_language::range_checking_on_by_default): New member
2754 function.
2755 * rust-lang.c (rust_language_data): Remove la_range_check
2756 initializer.
2757 (rust_language::range_checking_on_by_default): New member
2758 function.
2759
bf92aec5
AB
27602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2761
2762 * dwarf2/read.c (dwarf2_physname): Remove special case for
2763 language_go.
2764 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2765 member function.
2766
d3355e4d
AB
27672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2768
2769 * ada-lang.c (ada_language_data): Remove
2770 la_store_sym_names_in_linkage_form_p initializer.
2771 (ada_language::store_sym_names_in_linkage_form_p): New member
2772 function.
2773 * c-lang.c (c_language_data): Remove
2774 la_store_sym_names_in_linkage_form_p initializer.
2775 (c_language::store_sym_names_in_linkage_form_p): New member
2776 function.
2777 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2778 initializer.
2779 (asm_language_data): Likewise.
2780 (asm_language::store_sym_names_in_linkage_form_p): New member
2781 function.
2782 (minimal_language_data): Remove
2783 la_store_sym_names_in_linkage_form_p initializer.
2784 (minimal_language::store_sym_names_in_linkage_form_p): New member
2785 function.
2786 * d-lang.c (d_language_data): Remove
2787 la_store_sym_names_in_linkage_form_p initializer.
2788 * dwarf2/read.c (dwarf2_physname): Update call to
2789 store_sym_names_in_linkage_form_p.
2790 * f-lang.c (f_language_data): Remove
2791 la_store_sym_names_in_linkage_form_p initializer.
2792 * go-lang.c (go_language_data): Remove
2793 la_store_sym_names_in_linkage_form_p initializer.
2794 * language.c (unknown_language_data): Remove
2795 la_store_sym_names_in_linkage_form_p initializer.
2796 (unknown_language::store_sym_names_in_linkage_form_p): New member
2797 function.
2798 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2799 initializer.
2800 (auto_language::store_sym_names_in_linkage_form_p): New member
2801 function.
2802 * language.h (language_data): Remove
2803 la_store_sym_names_in_linkage_form_p member variable.
2804 (language_defn::store_sym_names_in_linkage_form_p): New member
2805 function.
2806 * m2-lang.c (m2_language_data): Remove
2807 la_store_sym_names_in_linkage_form_p initializer.
2808 * objc-lang.c (objc_language_data): Likewise.
2809 * opencl-lang.c (opencl_language_data): Likewise.
2810 * p-lang.c (pascal_language_data): Likewise.
2811 * rust-lang.c (rust_language_data): Likewise.
2812
22c12a6c
AB
28132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2814
2815 * ada-lang.c (ada_language_data): Remove string_lower_bound
2816 initializer.
2817 * c-lang.c (c_language_data): Likewise.
2818 (cplus_language_data): Likewise.
2819 (asm_language_data): Likewise.
2820 (minimal_language_data): Likewise.
2821 * d-lang.c (d_language_data): Likewise.
2822 * f-lang.c (f_language_data): Likewise.
2823 * go-lang.c (go_language_data): Likewise.
2824 * language.c (unknown_language_data): Likewise.
2825 (auto_language_data): Likewise.
2826 * language.h (language_data): Remove string_lower_bound field.
2827 (language_defn::string_lower_bound): New member function.
2828 * m2-lang.c (m2_language_data): Remove string_lower_bound
2829 initializer.
2830 (m2_language::string_lower_bound): New member function.
2831 * objc-lang.c (objc_language_data): Remove string_lower_bound
2832 initializer.
2833 * opencl-lang.c (opencl_language_data): Likewise.
2834 * p-lang.c (pascal_language_data): Likewise.
2835 * rust-lang.c (rust_language_data): Likewise.
2836 * valops.c (value_cstring): Update call to string_lower_bound.
2837 (value_string): Likewise.
2838 * value.c (allocate_repeated_value): Likewise.
2839
1c236ddd
AB
28402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2841
2842 * valops.c (value_repeat): Fix incorrect argument name in comment.
2843
67bd3fd5
AB
28442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2845
2846 * ada-lang.c (ada_language_data): Remove c_style_arrays
2847 initializer.
2848 (ada_language::c_style_arrays_p): New member fuction.
2849 * c-lang.c (c_language_data): Remove c_style_arrays
2850 initializer.
2851 (cplus_language_data): Likewise.
2852 (asm_language_data): Likewise.
2853 (minimal_language_data): Likewise.
2854 * d-lang.c (d_language_data): Likewise.
2855 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2856 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2857 (f_language::c_style_arrays_p): New member function.
2858 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2859 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2860 * language.c (unknown_language_data): Remove c_style_arrays
2861 initializer.
2862 (auto_language_data): Likewise.
2863 * language.h (language_data): Remove c_style_arrays field.
2864 (language_defn::c_style_arrays_p): New member function.
2865 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2866 (m2_language::c_style_arrays_p): New member function.
2867 * objc-lang.c (objc_language_data): Remove c_style_arrays
2868 initializer.
2869 * opencl-lang.c (opencl_language_data): Likewise.
2870 * p-lang.c (pascal_language_data): Likewise.
2871 * rust-lang.c (rust_language_data): Likewise.
2872 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2873 and update local variable to a bool.
2874 * valops.c (value_cast): Update call to c_style_arrays_p.
2875 (value_array): Likewise.
2876 * value.c (coerce_array): Likewise.
2877
85967615
AB
28782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2879
2880 * ada-lang.c (ada_language_data): Remove la_language initializer.
2881 * c-lang.c (c_language_data): Likewise.
2882 (cplus_language_data): Likewise.
2883 (asm_language_data): Likewise.
2884 (minimal_language_data): Likewise.
2885 * d-lang.c (d_language_data): Likewise.
2886 * f-lang.c (f_language_data): Likewise.
2887 * go-lang.c (go_language_data): Likewise.
2888 * language.c (unknown_language_data): Likewise.
2889 (auto_language_data): Likewise.
2890 * language.h (language_data): Remove la_language field.
2891 (language_defn::language_defn): Initialise la_language field.
2892 (language_defn::la_language): New member variable.
2893 * m2-lang.c (m2_language_data): Remove la_language field.
2894 * objc-lang.c (objc_language_data): Likewise.
2895 * opencl-lang.c (opencl_language_data): Likewise.
2896 * p-lang.c (pascal_language_data): Likewise.
2897 * rust-lang.c (rust_language_data): Likewise.
2898
e171d6f1
AB
28992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2900
2901 * ada-lang.c (ada_extensions): Delete, moved into
2902 ada_language::filename_extensions.
2903 (ada_language_data): Remove la_filename_extensions initializer.
2904 (ada_language::filename_extensions): New member function.
2905 * c-lang.c (c_extensions): Delete, moved into
2906 c_language::filename_extensions.
2907 (c_language_data): Remove la_filename_extensions initializer.
2908 (c_language::filename_extensions): New member function.
2909 (cplus_extensions): Delete, moved into
2910 cplus_language::filename_extensions.
2911 (cplus_language_data): Remove la_filename_extensions initializer.
2912 (cplus_language::filename_extensions): New member function.
2913 (asm_extensions): Delete, moved into
2914 asm_language::filename_extensions.
2915 (asm_language_data): Remove la_filename_extensions initializer.
2916 (asm_language::filename_extensions): New member function.
2917 (minimal_language_data): Remove la_filename_extensions
2918 initializer.
2919 * d-lang.c (d_extensions): Delete, moved into
2920 d_language::filename_extensions.
2921 (d_language_data): Remove la_filename_extensions initializer.
2922 (d_language::filename_extensions): New member function.
2923 * f-lang.c (f_extensions): Delete, moved into
2924 f_language::filename_extensions.
2925 (f_language_data): Remove la_filename_extensions initializer.
2926 (f_language::filename_extensions): New member function.
2927 * go-lang.c (go_language_data): Remove la_filename_extensions
2928 initializer.
2929 * language.c (add_set_language_command): Update now that
2930 filename_extensions returns a vector.
2931 (unknown_language_data): Remove la_filename_extensions
2932 initializer.
2933 (auto_language_data): Likewise.
2934 * language.h (language_data): Remove la_filename_extensions field.
2935 (language_defn::filename_extensions): New member function.
2936 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2937 initializer.
2938 * objc-lang.c (objc_extensions): Delete, moved into
2939 objc_language::filename_extensions.
2940 (objc_language_data): Remove la_filename_extensions initializer.
2941 (objc_language::filename_extensions): New member function.
2942 * opencl-lang.c (opencl_language_data): Remove
2943 la_filename_extensions initializer.
2944 * p-lang.c (pascal_extensions): Delete, moved into
2945 pascal_language::filename_extensions.
2946 (pascal_language_data): Remove la_filename_extensions initializer.
2947 (pascal_language::filename_extensions): New member function.
2948 * rust-lang.c (rust_extensions): Delete, moved into
2949 rust_language::filename_extensions.
2950 (rust_language_data): Remove la_filename_extensions initializer.
2951 (rust_language::filename_extensions): New member function.
2952 * symfile.c (add_filename_language): Add new assert.
2953
6f7664a9
AB
29542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2955
2956 * ada-lang.c (ada_language_data): Remove la_name and
2957 la_natural_name initializers.
2958 (ada_language::name): New member function.
2959 (ada_language::natural_name): New member function.
2960 * c-lang.c (c_language_data): Remove la_name and
2961 la_natural_name initializers.
2962 (c_language::name): New member function.
2963 (c_language::natural_name): New member function.
2964 (cplus_language_data): Remove la_name and
2965 la_natural_name initializers.
2966 (cplus_language::name): New member function.
2967 (cplus_language::natural_name): New member function.
2968 (asm_language_data): Remove la_name and
2969 la_natural_name initializers.
2970 (asm_language::name): New member function.
2971 (asm_language::natural_name): New member function.
2972 (minimal_language_data): Remove la_name and
2973 la_natural_name initializers.
2974 (minimal_language::name): New member function.
2975 (minimal_language::natural_name): New member function.
2976 * compile/compile.c (compile_to_object): Update call to
2977 lanugage_defn::name.
2978 * d-lang.c (d_language_data): Remove la_name and
2979 la_natural_name initializers.
2980 (d_language::name): New member function.
2981 (d_language::natural_name): New member function.
2982 * expprint.c (print_subexp_standard): Update call to
2983 language_defn::name.
2984 (dump_raw_expression): Likewise
2985 (dump_prefix_expression): Likewise.
2986 * f-lang.c (f_language_data): Remove la_name and
2987 la_natural_name initializers.
2988 (f_language::name): New member function.
2989 (f_language::natural_name): New member function.
2990 * go-lang.c (go_language_data): Remove la_name and
2991 la_natural_name initializers.
2992 (go_language::name): New member function.
2993 (go_language::natural_name): New member function.
2994 * language.c (show_language_command): Update call to
2995 language_defn::name.
2996 (set_language_command): Likewise.
2997 (language_enum): Likewise.
2998 (language_str): Likewise.
2999 (add_set_language_command): Likewise, use
3000 language_defn::natural_name in the doc string.
3001 (unknown_language_data): Remove la_name and
3002 la_natural_name initializers.
3003 (unknown_language::name): New member function.
3004 (unknown_language::natural_name): New member function.
3005 (auto_language_data): Remove la_name and
3006 la_natural_name initializers.
3007 (auto_language::name): New member function.
3008 (auto_language::natural_name): New member function.
3009 (language_lookup_primitive_type_as_symbol): Update call to
3010 language_defn::name.
3011 * language.h (language_data): Remove la_name and la_natural_name
3012 member variables.
3013 (language_defn::name): New member function.
3014 (language_defn::natural_name): New member function.
3015 * m2-lang.c (m2_language_data): Remove la_name and
3016 la_natural_name initializers.
3017 (m2_language::name): New member function.
3018 (m2_language::natural_name): New member function.
3019 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3020 language_defn::natural_name.
3021 * objc-lang.c (objc_language_data): Remove la_name and
3022 la_natural_name initializers.
3023 (objc_language::name): New member function.
3024 (objc_language::natural_name): New member function.
3025 * opencl-lang.c (opencl_language_data): Remove la_name and
3026 la_natural_name initializers.
3027 (opencl_language::name): New member function.
3028 (opencl_language::natural_name): New member function.
3029 * p-lang.c (pascal_language_data): Remove la_name and
3030 la_natural_name initializers.
3031 (pascal_language::name): New member function.
3032 (pascal_language::natural_name): New member function.
3033 * rust-lang.c (rust_language_data): Remove la_name and
3034 la_natural_name initializers.
3035 (rust_language::name): New member function.
3036 (rust_language::natural_name): New member function.
3037 * symtab.c (lookup_language_this): Update call to
3038 language_defn::name.
3039
5bae7c4e
AB
30402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3041
3042 * ada-lang.c (ada_language_data): Remove la_name_of_this
3043 initializer.
3044 * ax-gdb.c (gen_expr): Update call to name_of_this.
3045 * c-exp.y (classify_name): Likewise.
3046 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3047 (cplus_language_data): Likewise.
3048 (cplus_language::name_of_this): New member function.
3049 (asm_language_data): Remove la_name_of_this initializer.
3050 (minimal_language_data): Likewise.
3051 * d-lang.c (d_language_data): Likewise.
3052 (d_language::name_of_this): New member function.
3053 * expprint.c (print_subexp_standard): Update call to name_of_this.
3054 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3055 * go-lang.c (go_language_data): Likewise.
3056 * language.c (unknown_language_data): Likewise.
3057 (unknown_language::name_of_this): New member function.
3058 (auto_language_data): Remove la_name_of_this initializer.
3059 (auto_language::name_of_this): New member function.
3060 * language.h (language_data): Delete la_name_of_this member
3061 variable.
3062 (language_defn::name_of_this): New member function.
3063 * m2-lang.c (m2_language_data): Remove la_name_of_this
3064 initializer.
3065 * objc-lang.c (objc_language_data): Likewise.
3066 (objc_language::name_of_this): New member function.
3067 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3068 initializer.
3069 * p-lang.c (pascal_language_data): Likewise.
3070 (pascal_language::name_of_this): New member function.
3071 * rust-lang.c (rust_language_data): Remove la_name_of_this
3072 initializer.
3073 * symtab.c (lookup_language_this): Update call to name_of_this.
3074 (lookup_symbol_aux): Likewise.
3075 * valops.c (value_of_this): Likewise.
3076
22e3f3ed
AB
30772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3078
3079 * ada-lang.c (ada_language_data): Remove
3080 la_struct_too_deep_ellipsis initializer.
3081 (ada_language::struct_too_deep_ellipsis): New member function.
3082 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3083 initializer.
3084 (cplus_language_data): Likewise.
3085 (asm_language_data): Likewise.
3086 (minimal_language_data): Likewise.
3087 * cp-valprint.c (cp_print_value): Update call to
3088 struct_too_deep_ellipsis.
3089 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3090 initializer.
3091 * f-lang.c (f_language_data): Likewise.
3092 (f_language::struct_too_deep_ellipsis): New member function.
3093 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3094 initializer.
3095 * language.c (unknown_language_data): Likewise.
3096 (auto_language_data): Likewise.
3097 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3098 member variable.
3099 (language_defn::struct_too_deep_ellipsis): New member function.
3100 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3101 initializer.Q
3102 * objc-lang.c (objc_language_data): Likewise.
3103 * opencl-lang.c (opencl_language_data): Likewise.
3104 * p-lang.c (pascal_language_data): Likewise.
3105 * rust-lang.c (rust_language_data): Likewise.
3106 * valprint.c (val_print_check_max_depth): Update call to
3107 struct_too_deep_ellipsis.
3108
ed29e1c7
FW
31092020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3110
3111 * MAINTAINERS (Write After Approval): Add myself.
3112
12d8f940
TT
31132020-09-15 Tom Tromey <tom@tromey.com>
3114
3115 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3116 Remove.
3117
6b5a7bc7
TT
31182020-09-15 Tom Tromey <tom@tromey.com>
3119
3120 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3121 and TYPE_CODE_METHODPTR cases.
3122 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3123 (c_value_print_inner): Update.
3124 * valprint.c (generic_value_print_memberptr): New function, from
3125 c_value_print_memberptr.
3126 (generic_value_print): Use it. Call cplus_print_method_ptr.
3127
47f0e2ff
TT
31282020-09-15 Tom Tromey <tromey@adacore.com>
3129
3130 * python/python-internal.h (PyInt_FromLong): Remove define.
3131 * python/py-value.c (convert_value_from_python): Use
3132 gdb_py_object_from_longest.
3133 * python/py-type.c (typy_get_code): Use
3134 gdb_py_object_from_longest.
3135 * python/py-symtab.c (salpy_get_line): Use
3136 gdb_py_object_from_longest.
3137 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3138 gdb_py_object_from_longest.
3139 * python/py-record.c (recpy_gap_reason_code): Use
3140 gdb_py_object_from_longest.
3141 * python/py-record-btrace.c (recpy_bt_insn_size)
3142 (recpy_bt_func_level, btpy_list_count): Use
3143 gdb_py_object_from_longest.
3144 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3145 gdb_py_object_from_longest. Fix error handling.
3146 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3147 gdb_py_object_from_longest.
3148 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3149 gdb_py_object_from_longest.
3150 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3151 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3152 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3153
512116ce
TT
31542020-09-15 Tom Tromey <tromey@adacore.com>
3155
3156 * python/python.c (gdbpy_parameter_value): Use
3157 gdb_py_object_from_ulongest.
3158
4ab1029c
TT
31592020-09-15 Tom Tromey <tromey@adacore.com>
3160
3161 * python/py-infevents.c (create_register_changed_event_object):
3162 Use gdb_py_object_from_longest.
3163 * python/py-exitedevent.c (create_exited_event_object): Use
3164 gdb_py_object_from_longest.
3165
062534d4
TT
31662020-09-15 Tom Tromey <tromey@adacore.com>
3167
3168 * python/python.c (gdbpy_parameter_value): Use
3169 gdb_py_object_from_longest.
3170 * python/py-type.c (convert_field, typy_range): Use
3171 gdb_py_object_from_longest.
3172 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3173 gdb_py_object_from_longest.
3174 * python/py-lazy-string.c (stpy_get_length): Use
3175 gdb_py_object_from_longest.
3176 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3177 gdb_py_object_from_longest.
3178 * python/py-infevents.c (create_memory_changed_event_object): Use
3179 gdb_py_object_from_longest.
3180 * python/py-inferior.c (infpy_get_num): Use
3181 gdb_py_object_from_longest.
3182 (infpy_get_pid): Likewise.
3183
d1cab987
TT
31842020-09-15 Tom Tromey <tromey@adacore.com>
3185
3186 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3187 defines.
3188 * python/py-value.c (valpy_long): Use
3189 gdb_py_object_from_ulongest.
3190 * python/py-symtab.c (salpy_get_pc): Use
3191 gdb_py_object_from_ulongest.
3192 (salpy_get_last): Likewise.
3193 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3194 gdb_py_object_from_ulongest.
3195 * python/py-lazy-string.c (stpy_get_address): Use
3196 gdb_py_object_from_ulongest.
3197 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3198 * python/py-arch.c (archpy_disassemble): Use
3199 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3200 error handling.
3201
4bde49dc
TT
32022020-09-15 Tom Tromey <tromey@adacore.com>
3203
3204 * python/python-internal.h (gdb_py_long_from_longest): Remove
3205 defines.
3206 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3207 * python/py-type.c (convert_field, typy_get_sizeof): Use
3208 gdb_py_object_from_longest.
3209 * python/py-record-btrace.c (btpy_list_index): Use
3210 gdb_py_object_from_longest.
3211
37431074
TT
32122020-09-15 Tom Tromey <tromey@adacore.com>
3213
3214 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3215 * python/py-record.c (recpy_element_number): Use
3216 gdb_py_object_from_longest.
3217 (recpy_gap_number): Likewise.
3218
cbe25684
TT
32192020-09-15 Tom Tromey <tromey@adacore.com>
3220
3221 * top.c (ui::ui): Update.
3222 (highest_ui_num): Remove.
3223 * top.h (struct ui) <num>: Remove.
3224
db92ac45
TT
32252020-09-15 Tom Tromey <tromey@adacore.com>
3226
3227 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3228 * ui-style.c (ansi_regex_text): Now array.
3229 * rust-exp.y (number_regex_text): Now array.
3230 * linespec.c (linespec_quote_characters): Now array.
3231 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3232 Now arrays.
3233
d2b31b67
SM
32342020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3235
3236 * debuginfod-support.c (debuginfod_client_deleter): New.
3237 (debuginfod_client_up): New.
3238 (debuginfod_init): Return debuginfod_client_up.
3239 (debuginfod_source_query): Adjust.
3240 (debuginfod_debuginfo_query): Adjust.
3241
3246bd8e
SM
32422020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3243
3244 * debuginfod-support.c (debuginfod_source_query): Use
3245 make_unique_xstrdup.
3246
10242f36
SM
32472020-09-14 Simon Marchi <simon.marchi@efficios.com>
3248
3249 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3250 with `type::instance_flags`.
3251
e1044e6a
MM
32522020-09-14 Michael Mullin <masmullin@gmail.com>
3253
3254 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3255 Remove baton parameter.
3256
04902b09
PA
32572020-09-14 Pedro Alves <pedro@palves.net>
3258
3259 * Makefile.in (SELFTESTS_SRCS): Add
3260 unittests/enum-flags-selftests.c.
3261 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3262 btrace_function_flags instead of enum btrace_function_flag.
3263 * compile/compile-c-types.c (convert_qualified): Use
3264 enum_flags::raw.
3265 * compile/compile-cplus-symbols.c (convert_one_symbol)
3266 (convert_symbol_bmsym):
3267 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3268 (compile_cplus_convert_struct_or_union_methods)
3269 (compile_cplus_instance::convert_qualified_base):
3270 * go-exp.y (parse_string_or_char): Add cast to int.
3271 * unittests/enum-flags-selftests.c: New file.
3272 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3273 type to btrace_thread_flags from btrace_thread_flag.
3274 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3275 local's type to btrace_thread_flags from btrace_thread_flag. Add
3276 cast in DEBUG call.
3277
69896a2c
PA
32782020-09-14 Pedro Alves <pedro@palves.net>
3279
3280 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3281 * gdbtypes.c (address_space_name_to_int): Rename to ...
3282 (address_space_name_to_type_instance_flags): ... this.
3283 (address_space_int_to_name): Rename to ...
3284 (address_space_type_instance_flags_to_name): ... this.
3285 * gdbtypes.h (address_space_name_to_int): Rename to ...
3286 (address_space_name_to_type_instance_flags): ... this.
3287 (address_space_int_to_name): Rename to ...
3288 (address_space_type_instance_flags_to_name): ... this.
3289 * type-stack.c (type_stack::insert): Adjust to rename.
3290 * type-stack.h (type_stack::insert): Likewise.
3291
314ad88d
PA
32922020-09-14 Pedro Alves <pedro@palves.net>
3293 Andrew Burgess <andrew.burgess@embecosm.com>
3294
3295 * avr-tdep.c (avr_address_class_type_flags): Return
3296 type_instance_flags.
3297 (avr_address_class_type_flags_to_name): Take a
3298 type_instance_flags.
3299 (avr_address_class_name_to_type_flags): Return bool and take a
3300 type_instance_flags.
3301 * d-lang.c (build_d_types): Use type::set_instance_flags.
3302 * ft32-tdep.c (ft32_address_class_type_flags): Return
3303 type_instance_flags.
3304 (ft32_address_class_type_flags_to_name): Take a
3305 type_instance_flags.
3306 (ft32_address_class_name_to_type_flags): Return bool and take a
3307 type_instance_flags.
3308 (ft32_gdbarch_init): Use type::set_instance_flags.
3309 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3310 * gdbarch.h, gdbarch.c: Regenerate.
3311 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3312 (address_class_name_to_type_flags): Use type_instance_flags and
3313 bool.
3314 * gdbtypes.c (address_space_name_to_int)
3315 (address_space_int_to_name, make_qualified_type): Use
3316 type_instance_flags.
3317 (make_qualified_type): Use type_instance_flags and
3318 type::set_instance_flags.
3319 (make_type_with_address_space, make_cv_type, make_vector_type)
3320 (check_typedef): Use type_instance_flags.
3321 (recursive_dump_type): Cast type_instance_flags to unsigned for
3322 printing.
3323 (copy_type_recursive): Use type::set_instance_flags.
3324 (gdbtypes_post_init): Use type::set_instance_flags.
3325 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3326 <m_instance_flags>: ... this.
3327 <instance_flags, set_instance_flags>: New methods.
3328 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3329 (SET_TYPE_INSTANCE_FLAGS): New.
3330 (address_space_name_to_int, address_space_int_to_name)
3331 (make_type_with_address_space): Pass flags using
3332 type_instance_flags instead of int.
3333 * stabsread.c (cleanup_undefined_types_noname): Use
3334 type::set_instance_flags.
3335 * s390-tdep.c (s390_address_class_type_flags): Return
3336 type_instance_flags.
3337 (s390_address_class_type_flags_to_name): Take a
3338 type_instance_flags.
3339 (s390_address_class_name_to_type_flags): Return bool and take a
3340 type_instance_flags.
3341 * type-stack.c (type_stack::follow_types): Use
3342 type_instance_flags.
3343 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3344
27087b7f
TT
33452020-09-14 Tom Tromey <tromey@adacore.com>
3346
3347 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3348 * x86-tdep.c (x86_is_thunk_register_name)
3349 (x86_in_indirect_branch_thunk): Update.
3350 * sparc64-tdep.c (sparc64_fpu_register_names)
3351 (sparc64_cp0_register_names, sparc64_register_names)
3352 (sparc64_pseudo_register_names): Now const.
3353 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3354 cp0_registers_num>: Now const.
3355 * sparc-tdep.c (sparc_core_register_names)
3356 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3357 (sparc32_pseudo_register_names): Now const.
3358 (validate_tdesc_registers): Update.
3359 * rust-lang.c (rust_extensions): Now const.
3360 * p-lang.c (p_extensions): Now const.
3361 * objc-lang.c (objc_extensions): Now const.
3362 * nto-tdep.c (nto_thread_state_str): Now const.
3363 * moxie-tdep.c (moxie_register_names): Now const.
3364 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3365 Now const.
3366 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3367 (mips_linux_reg_names): Now const.
3368 (mips_gdbarch_init): Update.
3369 * microblaze-tdep.c (microblaze_register_names): Now const.
3370 * m68k-tdep.c (m68k_register_names): Now const.
3371 * m32r-tdep.c (m32r_register_names): Now const.
3372 * ia64-tdep.c (ia64_register_names): Now const.
3373 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3374 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3375 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3376 ymm_avx512_register_names, pkeys_register_names>: Now const.
3377 * i386-tdep.c (i386_register_names, i386_zmm_names)
3378 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3379 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3380 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3381 * f-lang.c (f_extensions): Now const.
3382 * d-lang.c (d_extensions): Now const.
3383 * csky-tdep.c (csky_register_names): Now const.
3384 * charset.c (default_charset_names, charset_enum): Now const.
3385 (_initialize_charset): Update.
3386 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3387 const.
3388 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3389 (bsd_uthread_solib_loaded): Update.
3390 (bsd_uthread_state): Now const.
3391 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3392 (amd64_ymm_avx512_names, amd64_ymmh_names)
3393 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3394 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3395 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3396 (amd64_dword_names): Now const.
3397 * agent.c (can_use_agent_enum): Now const.
3398 * ada-tasks.c (task_states, long_task_states): Now const.
3399 * ada-lang.c (known_runtime_file_name_patterns)
3400 (known_auxiliary_function_name_patterns, attribute_names)
3401 (standard_exc, ada_extensions): Now const.
3402
89806626
SM
34032020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3404
3405 * bcache.h (struct bcache) <bcache>: Remove constructor.
3406 <m_hash_function, m_compare_function>: Remove.
3407 <~bcache>: Make virtual.
3408 <compare>: Remove static method, introduce virtual method.
3409 <default_hash>: Remove.
3410 <hash>: New virtual method.
3411 * bcache.c (bcache::expand_hash_table): Update.
3412 (bcache::insert): Update.
3413 (bcache::hash): New.
3414 (bcache::compare): Update comment and parameter names.
3415 * gdbtypes.c (types_deeply_equal): Update.
3416 * psymtab.h (struct psymbol_bcache): New struct.
3417 (class psymtab_storage) <psymtab_storage>: Make default.
3418 <psymbol_cache>: Change type to psymbol_bcache.
3419 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3420 (psymbol_hash): Change to...
3421 (psymbol_bcache::hash): ... this.
3422 (psymbol_compare): Change to...
3423 (psymbol_bcache::compare): ... this.
3424
677c92fe
SM
34252020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3426
3427 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3428 checking for initial lwp.
3429
3eba3a01
TT
34302020-09-14 Tom Tromey <tromey@adacore.com>
3431
3432 * m68k-tdep.c (m68k_extract_return_value): Use
3433 pointer_result_regnum.
3434 (m68k_store_return_value): Likewise.
3435 (m68k_reg_struct_return_p): Handle vectors and arrays.
3436 (m68k_return_value): Handle arrays.
3437 (m68k_svr4_return_value): Fix single-element aggregate handling.
3438 Handle long double. Adjust for embedded ABI.
3439 (m68k_svr4_init_abi): Set pointer_result_regnum.
3440 (m68k_embedded_init_abi): New function.
3441 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3442 (m68k_osabi_sniffer): New function.
3443 (_initialize_m68k_tdep): Register osabi sniffer.
3444 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3445 member.
3446
33f4dd48
SM
34472020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3448
3449 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3450 with gdb::unique_xmalloc_ptr<char>.
3451
8400a90d
SM
34522020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3453
3454 * xml-support.h (xml_fetch_another): Change type to be a
3455 function_view.
3456 (xml_process_xincludes): Remove baton parameter.
3457 (xml_fetch_content_from_file): Change baton parameter to
3458 dirname.
3459 * xml-support.c (struct xinclude_parsing_data)
3460 <xinclude_parsing_data>: Remove baton parameter.
3461 <fetcher_baton>: Remove.
3462 (xinclude_start_include): Adjust.
3463 (xml_process_xincludes): Adjust.
3464 (xml_fetch_content_from_file): Replace baton parameter with
3465 dirname.
3466 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3467 (xml_init_syscalls_info): Use a lambda.
3468 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3469 (file_read_description_xml): Use a lambda.
3470 (fetch_available_features_from_target): Change baton parameter
3471 to target_ops.
3472 (target_read_description_xml): Use a lambda.
3473 (target_fetch_description_xml): Use a lambda.
3474 (string_read_description_xml): Update.
3475
04f5bab2
SM
34762020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3477
3478 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3479 uses with type::endianity_is_not_default.
3480
db558e34
SM
34812020-09-14 Simon Marchi <simon.marchi@efficios.com>
3482
3483 * gdbtypes.h (struct type) <endianity_is_not_default,
3484 set_endianity_is_not_default>: New methods.
3485 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3486 type::endianity_is_not_default, change all write call sites to
3487 use type::set_endianity_is_not_default.
3488
22c4c60c
SM
34892020-09-14 Simon Marchi <simon.marchi@efficios.com>
3490
3491 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3492 uses with type::is_fixed_instance.
3493
9cdd0d12
SM
34942020-09-14 Simon Marchi <simon.marchi@efficios.com>
3495
3496 * gdbtypes.h (struct type) <is_fixed_instance,
3497 set_is_fixed_instance>: New methods.
3498 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3499 write call sites to use type::set_is_fixed_instance.
3500
0becda7a
SM
35012020-09-14 Simon Marchi <simon.marchi@efficios.com>
3502
3503 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3504 uses with type::is_gnu_ifunc.
3505
03cc7249
SM
35062020-09-14 Simon Marchi <simon.marchi@efficios.com>
3507
3508 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3509 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3510 use type::set_is_gnu_ifunc.
3511
3f46044c
SM
35122020-09-14 Simon Marchi <simon.marchi@efficios.com>
3513
3514 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3515 uses with type::stub_is_supported.
3516
9baccff6
SM
35172020-09-14 Simon Marchi <simon.marchi@efficios.com>
3518
3519 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3520 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3521 use type::set_stub_is_supported.
3522
bd63c870
SM
35232020-09-14 Simon Marchi <simon.marchi@efficios.com>
3524
3525 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3526 uses with type::is_vector.
3527
2062087b
SM
35282020-09-14 Simon Marchi <simon.marchi@efficios.com>
3529
3530 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3531 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3532 use type::set_is_vector.
3533
a409645d
SM
35342020-09-14 Simon Marchi <simon.marchi@efficios.com>
3535
3536 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3537 uses with type::has_varargs.
3538
1d6286ed
SM
35392020-09-14 Simon Marchi <simon.marchi@efficios.com>
3540
3541 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3542 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3543 use type::set_has_varargs.
3544
7f9f399b
SM
35452020-09-14 Simon Marchi <simon.marchi@efficios.com>
3546
3547 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3548 uses with type::is_prototyped.
3549
27e69b7a
SM
35502020-09-14 Simon Marchi <simon.marchi@efficios.com>
3551
3552 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3553 New methods.
3554 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3555 call sites to use type::set_is_prototyped.
3556
d2183968
SM
35572020-09-14 Simon Marchi <simon.marchi@efficios.com>
3558
3559 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3560 uses with type::target_is_stub.
3561
8f53807e
SM
35622020-09-14 Simon Marchi <simon.marchi@efficios.com>
3563
3564 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3565 New methods.
3566 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3567 sites to use type::set_target_is_stub.
3568
e46d3488
SM
35692020-09-14 Simon Marchi <simon.marchi@efficios.com>
3570
3571 * gdbtypes.h (TYPE_STUB): Remove, replace all
3572 uses with type::is_stub.
3573
b4b73759
SM
35742020-09-14 Simon Marchi <simon.marchi@efficios.com>
3575
3576 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3577 (TYPE_STUB): Use type::is_stub, change all write call sites to
3578 use type::set_is_stub.
3579
20ce4123
SM
35802020-09-14 Simon Marchi <simon.marchi@efficios.com>
3581
3582 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3583 type::has_no_signedness.
3584
15152a54
SM
35852020-09-14 Simon Marchi <simon.marchi@efficios.com>
3586
3587 * gdbtypes.h (struct type) <has_no_signedness,
3588 set_has_no_signedness>: New methods.
3589 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3590 call sites to use type::set_has_no_signedness.
3591
c6d940a9
SM
35922020-09-14 Simon Marchi <simon.marchi@efficios.com>
3593
3594 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3595 type::is_unsigned.
3596
653223d3
SM
35972020-09-14 Simon Marchi <simon.marchi@efficios.com>
3598
3599 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3600 methods.
3601 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3602 sites to use type::set_is_unsigned.
3603
55ea94da 36042020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3605 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3606
e851246a
SM
3607 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3608 pointer and stack frame offset when unwinding.
55ea94da 3609
6791b117
PA
36102020-09-13 Pedro Alves <pedro@palves.net>
3611
3612 * NEWS: Document "-break-insert --qualified".
3613 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3614
77f2120b
PA
36152020-09-13 Pedro Alves <pedro@palves.net>
3616
3617 * linespec.c (classify_mtype, compare_msyms): Delete.
3618 (search_minsyms_for_name): Remove classification logic. Instead
3619 filter out trampoline symbols if we also found an external
3620 function of the same name.
3621
ed6a896c
JB
36222020-09-13 Joel Brobecker <brobecker@adacore.com>
3623
3624 * NEWS: Create a new section for the next release branch.
3625 Rename the section of the current branch, now that it has
3626 been cut.
3627
32aea73e
JB
36282020-09-13 Joel Brobecker <brobecker@adacore.com>
3629
3630 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3631 * version.in: Bump version to 11.0.50.DATE-git.
3632
8087c3fa
JB
36332020-09-12 Joel Brobecker <brobecker@adacore.com>
3634
3635 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3636
2a67f09d
FW
36372020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3638 Felix Willgerodt <Felix.Willgerodt@intel.com>
3639
3640 * gdbarch.sh: Added bfloat16 type.
3641 * gdbarch.c: Regenerated.
3642 * gdbarch.h: Regenerated.
3643 * gdbtypes.c (floatformats_bfloat16): New struct.
3644 (gdbtypes_post_init): Add builtin_bfloat16.
3645 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3646 (floatformats_bfloat16): New struct.
3647 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3648 (i386_ymm_type): Add field "v16_bfloat16"
3649 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3650 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3651 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3652 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3653 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3654 * features/i386/64bit-avx512.c: Regenerated.
3655 * features/i386/64bit-sse.xml: Add bfloat16 type.
3656 * features/i386/64bit-sse.c: Regenerated.
3657
1347d111
FW
36582020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3659
3660 * i386-tdep.c (i386_zmm_type): Fix field names.
3661 (i386_ymm_type): Fix field names.
3662
7a4e8e7d
TBA
36632020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3664
3665 * breakpoint.c: Fix typo in the help message of the
3666 "set breakpoint condition-evaluation" command.
3667
cf4ac4be
KR
36682020-09-10 Kamil Rytarowski <n54@gmx.com>
3669
3670 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3671 * (nbsd_nat_target::pid_to_exec_file)
3672 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3673 (nbsd_nat_target::post_startup_inferior)
3674 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3675 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3676 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3677 * (nbsd_thread_lister): Remove.
3678
f404573e
KR
36792020-09-10 Kamil Rytarowski <n54@gmx.com>
3680
3681 * fork-inferior.c (startup_inferior): Avoid double free.
3682
1ccb2c17
KR
36832020-09-10 Kamil Rytarowski <n54@gmx.com>
3684
3685 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3686 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3687
feedfcc7
KR
36882020-09-10 Kamil Rytarowski <n54@gmx.com>
3689
3690 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3691 * netbsd-nat.c: Include <sys/ptrace.h>.
3692 * (netbsd_nat::enable_proc_events): Add.
3693
c489f8c6
KR
36942020-09-10 Kamil Rytarowski <n54@gmx.com>
3695
3696 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3697 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3698 (netbsd_nat::for_each_thread): Add.
3699 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3700 "gdbsupport/common-debug.h".
3701 * (netbsd_nat::netbsd_thread_lister)
3702 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3703 (netbsd_nat::for_each_thread): Add.
3704
330662f6
KR
37052020-09-10 Kamil Rytarowski <n54@gmx.com>
3706
3707 * netbsd-nat.h: Include <unistd.h>.
3708 * (netbsd_nat::pid_to_exec_file): Add.
3709 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3710 * (netbsd_nat::pid_to_exec_file) Add.
3711
70b67307
KR
37122020-09-10 Kamil Rytarowski <n54@gmx.com>
3713
3714 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3715
99cf6da6
KR
37162020-09-10 Kamil Rytarowski <n54@gmx.com>
3717
3718 * netbsd-nat.h: New file.
3719 * netbsd-nat.c: Likewise.
3720
1b788fb6
TT
37212020-09-09 Tom Tromey <tromey@adacore.com>
3722
3723 * ada-lang.c (remove_extra_symbols): Do not increment when
3724 removing an element
3725
03b0a45f
TT
37262020-09-08 Tom Tromey <tromey@adacore.com>
3727
3728 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3729
3cae4447
TT
37302020-09-08 Tom Tromey <tromey@adacore.com>
3731
3732 PR win32/25302:
3733 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3734 (gdb_bfd_init_data): New function.
3735 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3736
7f08fd51
TBA
37372020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3738
3739 * infrun.c (fetch_inferior_event): Use
3740 `switch_to_target_no_thread` to switch the target.
3741
3e6ff933
TT
37422020-09-06 Tom Tromey <tom@tromey.com>
3743
3744 * symfile.h (dwarf2_free_objfile): Don't declare.
3745
e56798df
AKS
37462020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3747
3748 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3749 to match 16 byte real/complex type generated by Flang compiler.
3750
8f5c6526
TV
37512020-09-03 Tom de Vries <tdevries@suse.de>
3752
3753 PR breakpoint/26546
3754 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3755 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3756
c5065df0
SM
37572020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3758
3759 * maint.c (index_digits): New function.
3760 (struct maint_print_section_data): Remove.
3761 (print_bfd_section_info): Remove print_data parameter, add arg
3762 and index_digits.
3763 (print_objfile_section_info): Likewise.
3764 (print_bfd_section_info_maybe_relocated): Likewise (plus
3765 objfile).
3766 (maintenance_info_sections): Adjust calls.
3767
02c6f3f1
TT
37682020-09-02 Tom Tromey <tromey@adacore.com>
3769
3770 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3771 for null pointers.
3772 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3773
ef5e5b0b
SM
37742020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3775
3776 * bcache.h (struct bcache) <insert>: Change type of `added` to
3777 pointer to bool.
3778 * bcache.c (bcache::insert): Likewise.
3779 * gdbtypes.c (check_types_worklist): Adjust.
3780 * psymtab.c (add_psymbol_to_bcache): Adjust.
3781
973695d6
KB
37822020-08-31 Kevin Buettner <kevinb@redhat.com>
3783
3784 * corelow.c (unordered_set): Include.
3785 (class core_target): Add field 'm_core_unavailable_mappings'.
3786 (core_target::build_file_mappings): Print only one warning
3787 per inaccessible file. Add unavailable/broken mappings
3788 to m_core_unavailable_mappings.
3789 (core_target::xfer_partial): Call...
3790 (core_target::xfer_memory_via_mappings): New method.
3791
264fc0e2
SM
37922020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3793
3794 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3795 type to bool.
3796
2de01bdb
SM
37972020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3798
3799 * dwarf2/read.c (struct field_info): Fix indentation.
3800
f3bd50f1
SM
38012020-08-31 Simon Marchi <simon.marchi@efficios.com>
3802
3803 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3804 ordering in comment.
3805 * frame.c (frame_id_eq): Fix indentation.
3806
22b9b4b0
SL
38072020-08-31 Scott Linder <scott@scottlinder.com>
3808 Simon Marchi <simon.marchi@efficios.com>
3809
3810 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3811 inline frame ids in outer frame.
3812
84154d16
SM
38132020-08-31 Simon Marchi <simon.marchi@efficios.com>
3814
3815 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3816 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3817 (outer_frame_id): Use FID_STACK_OUTER instead of
3818 FID_STACK_INVALID.
3819 (frame_id_p): Don't check for outer_frame_id.
3820
8efaf6b3
SM
38212020-08-31 Simon Marchi <simon.marchi@efficios.com>
3822
3823 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3824 regnum/frame in value. Call allocate_value_lazy.
3825 * frame.c (frame_unwind_register_value): Use
3826 val_print_not_saved.
3827
fe1fe7ea
SM
38282020-08-31 Simon Marchi <simon.marchi@efficios.com>
3829
3830 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3831
f7c7700d
PA
38322020-08-29 Pedro Alves <pedro@palves.net>
3833
3834 * progspace.c (print_program_space): Use all_inferiors. Switch to
3835 the inferior before calling target_pid_to_str.
3836
e0814aae
TT
38372020-08-28 Tom Tromey <tom@tromey.com>
3838
3839 * xcoffread.c (xcoff_end_psymtab): Update comment.
3840 * dbxread.c (dbx_end_psymtab): Update comment.
3841
626d2320
TV
38422020-08-28 Tom de Vries <tdevries@suse.de>
3843
3844 PR breakpoint/26544
3845 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3846 event_location.
3847 (create_breakpoint): Same.
3848 (base_breakpoint_decode_location): Same.
3849 (bkpt_create_sals_from_location): Same.
3850 (bkpt_decode_location): Same.
3851 (bkpt_probe_create_sals_from_location): Same.
3852 (bkpt_probe_decode_location): Same.
3853 (tracepoint_create_sals_from_location): Same.
3854 (tracepoint_decode_location): Same.
3855 (tracepoint_probe_decode_location): Same.
3856 (strace_marker_create_sals_from_location): Same.
3857 (strace_marker_decode_location): Same.
3858 (create_sals_from_location_default): Same.
3859 (decode_location_default): Same.
3860 * breakpoint.h (struct breakpoint_ops): Same.
3861 (create_breakpoint): Same.
3862 * linespec.h (decode_line_full): Same.
3863 * linespec.c (decode_line_full): Same. Throw error if
3864 result.size () == 0.
3865
df631783
PA
38662020-08-27 Pedro Alves <pedro@palves.net>
3867
3868 PR gdb/26524
3869 * breakpoint.c (until_break_fsm) <location_breakpoint,
3870 caller_breakpoint>: Delete fields.
3871 <breakpoints>: New field.
3872 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3873 two individual breakpoints.
3874 (until_break_fsm::should_stop): Loop over breakpoints in the
3875 breakpoint vector.
3876 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3877 vector.
3878 (until_break_command): Handle location expanding into multiple
3879 sals.
3880
b2b38aa4
PA
38812020-08-27 Pedro Alves <pedro@palves.net>
3882
3883 PR gdb/26523
3884 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3885 bp_until breakpoints user-specified locations. Update intro
3886 comment.
3887
b886559f
SM
38882020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3889
3890 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3891 gdb_bfd_sections): New.
3892 * maint.c (print_bfd_section_info): Change param type to
3893 maint_print_section_data.
3894 (print_objfile_section_info): Likewise.
3895 (print_bfd_section_info_maybe_relocated): Likewise.
3896 (maintenance_info_sections): Use gdb_bfd_sections.
3897
4c6e63bf
SV
38982020-08-25 Shahab Vahedi <shahab@synopsys.com>
3899
3900 * MAINTAINERS: Add ARC target and maintainer.
3901
8d7f0635
AK
39022020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3903
3904 * configure.tgt: ARC support for GNU/Linux.
3905 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3906 * arc-linux-tdep.c: New file.
3907 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3908 * arc-tdep.c (arc_write_pc): Use it.
3909
fdd8731b
SV
39102020-08-25 Shahab Vahedi <shahab@synopsys.com>
3911
3912 * arc-tdep.c (arc_check_for_hardware_loop): New.
3913 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3914
22459524
SV
39152020-08-25 Shahab Vahedi <shahab@synopsys.com>
3916
3917 * arc-tdep.h: Include "gdbarch.h".
3918
995d3a19
SV
39192020-08-25 Shahab Vahedi <shahab@synopsys.com>
3920
3921 * arch/arc.h
3922 (arc_gdbarch_features): New class to stir the selection of target XML.
3923 (arc_create_target_description): Use FEATURES to choose XML target.
3924 (arc_lookup_target_description): Use arc_create_target_description
3925 to create _new_ target descriptions or return the already created
3926 ones if the FEATURES is the same.
3927 * arch/arc.c: Implementation of prototypes described above.
3928 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3929 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3930 * arc-tdep.c (*_feature_name): Make feature names consistent.
3931 (arc_register_feature): A new struct to hold information about
3932 registers of a particular target/feature.
3933 (arc_check_tdesc_feature): Check if XML provides registers in
3934 compliance with ARC_REGISTER_FEATURE structs.
3935 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3936 (determine_*_reg_feature_set): Which feature name to look for.
3937 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3938 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3939 to expected ISA enums to be used in arc_gdbarch_features structs.
3940 * features/Makefile (FEATURE_XMLFILES): Add new files.
3941 * gdb/features/arc/v1-aux.c: New file.
3942 * gdb/features/arc/v1-aux.xml: Likewise.
3943 * gdb/features/arc/v1-core.c: Likewise.
3944 * gdb/features/arc/v1-core.xml: Likewise.
3945 * gdb/features/arc/v2-aux.c: Likewise.
3946 * gdb/features/arc/v2-aux.xml: Likewise.
3947 * gdb/features/arc/v2-core.c: Likewise.
3948 * gdb/features/arc/v2-core.xml: Likewise.
3949 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3950
3945d2d7
GM
39512020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3952 Andrew Burgess <andrew.burgess@embecosm.com>
3953
3954 PR m2/26372
fc5d6901 3955 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3956 an assert. Remove single element array indexing pattern as the
3957 MULTI_SUBSCRIPT support will handle this case too.
3958
2677f2d3
SM
39592020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3960
3961 * value.h (valprint_check_validity): Move declaration from
3962 here...
3963 * valprint.h (valprint_check_validity): ... to here.
3964
c426fddb
SM
39652020-08-24 Simon Marchi <simon.marchi@efficios.com>
3966
3967 * debug.h: New file.
3968 * debug.c (debug_prefixed_vprintf): New function.
3969 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3970 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3971
1eb8556f
SM
39722020-08-24 Simon Marchi <simon.marchi@efficios.com>
3973
3974 * infrun.h (infrun_debug_printf_1): New function declaration.
3975 (infrun_debug_printf): New macro.
3976 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3977 throughout.
3978 (infrun_debug_printf): New function.
3979 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3980 (handle_jit_event): Likewise.
3981
b8fff44e
MW
39822020-08-21 Mark Wielaard <mark@klomp.org>
3983
3984 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3985
d19c3068
SM
39862020-08-22 Simon Marchi <simon.marchi@efficios.com>
3987
3988 * frame.c (enum class frame_id_status): New.
3989 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3990 (fprintf_frame): Update.
3991 (compute_frame_id): Set frame id status to "computing" on entry.
3992 Set it back to "not_computed" on failure and to "computed" on
3993 success.
3994 (get_frame_id): Assert the frame id is not being computed.
3995 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3996 (create_new_frame): Likewise.
3997 (frame_cleanup_after_sniffer): Update assert.
3998
b70e516e
SM
39992020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4000
4001 * regcache.c (pid_ptid_regcache_map): New type.
4002 (target_ptid_regcache_map): Remove.
4003 (target_pid_ptid_regcache_map): New type.
4004 (regcaches): Change type to target_pid_ptid_regcache_map.
4005 (get_thread_arch_aspace_regcache): Update.
4006 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4007 case.
4008 (regcaches_size): Update.
4009 (regcache_count): Update.
4010 (registers_changed_ptid_target_pid_test): New.
4011 (_initialize_regcache): Register new test.
4012
cdd9148a
SM
40132020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4014
4015 * regcache.c (regcache_count): New.
4016 (struct regcache_test_data): New.
4017 (regcache_test_data_up): New.
4018 (populate_regcaches_for_test): New.
4019 (regcaches_test): Remove.
4020 (get_thread_arch_aspace_regcache_test): New.
4021 (registers_changed_ptid_all_test): New.
4022 (registers_changed_ptid_target_test): New.
4023 (registers_changed_ptid_target_ptid_test): New.
4024 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4025 (_initialize_regcache): Register new tests.
4026
dd125343
SM
40272020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4028
4029 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4030 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4031 gdbarch and aspace parameter. Use current inferior's aspace.
4032 Validate regcache's arch value.
4033 (regcaches_test): Update.
4034
3ee93972
SM
40352020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4036
4037 * regcache.c (regcaches_test): Call registers_changed.
4038
33bf4c5c
TBA
40392020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4040
4041 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4042
c2fd7fae
AKS
40432020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4044
4045 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4046 to find the end of prologue for flang compiled binaries.
4047 * arm-tdep.c (arm_skip_prologue): Likewise.
4048 * i386-tdep.c (i386_skip_prologue): Likewise.
4049 * producer.c (producer_is_llvm): New function.
4050 (producer_parsing_tests): Added new tests for clang/flang.
4051 * producer.h (producer_is_llvm): New declaration.
4052
9327494e
SM
40532020-08-18 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * linux-nat.c (linux_nat_debug_printf): New function.
4056 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4057
d138725a
AM
40582020-08-18 Aaron Merey <amerey@redhat.com>
4059
4060 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4061 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4062 (CLIBS): Add DEBUGINFOD_LIBS.
4063
f9b11e6b
ST
40642020-08-17 Sergei Trofimovich <siarheit@google.com>
4065
4066 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4067 'gdbarch_num_regs'.
4068
3ae7ab99
TT
40692020-08-17 Tom Tromey <tromey@adacore.com>
4070
4071 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4072 ada_get_decoded_value returns NULL.
4073
b017825f
TT
40742020-08-17 Tom Tromey <tromey@adacore.com>
4075
4076 * python/py-inferior.c (infpy_search_memory): Use
4077 gdb_py_object_from_ulongest.
4078 * python/py-infevents.c (create_inferior_call_event_object)
4079 (create_memory_changed_event_object): Use
4080 gdb_py_object_from_ulongest.
4081 * python/py-linetable.c (ltpy_entry_get_pc): Use
4082 gdb_py_object_from_ulongest.
4083
7635cf79
SM
40842020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4085
4086 * loc.c (class symbol_needs_eval_context): Fix indentation.
4087
f54be24b
SM
40882020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4089
4090 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4091 bool.
4092
53d5a2a5
TV
40932020-08-17 Tom de Vries <tdevries@suse.de>
4094
4095 PR gdb/26393
4096 * gdbtypes.c (dump_dynamic_prop): New function.
4097 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4098
547ce8f0
TV
40992020-08-15 Tom de Vries <tdevries@suse.de>
4100
4101 PR backtrace/26390
4102 * stack.c (print_frame_args): Temporarily set the selected
4103 frame to FRAME while printing the frame's arguments.
4104
6ea815e7
PFC
41052020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4106
4107 PR breakpoints/26385
4108 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4109 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4110
6e562fa3
PFC
41112020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4112
4113 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4114 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4115 and >= to check return value instead of == -1 and != -1.
4116
d369b608
SM
41172020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4118
4119 * utils.h (class gdb_argv) <as_array_view>: New method.
4120 * utils.c (gdb_argv_as_array_view_test): New.
4121 (_initialize_utils): Register selftest.
4122 * maint.c (maintenance_selftest): Use the new method.
4123
b31488a3
KR
41242020-08-13 Kamil Rytarowski <n54@gmx.com>
4125
4126 * target.h (supports_dumpcore, dumpcore): New
4127 function declarations.
4128 * target.c (supports_dumpcore, dumpcore): New
4129 functions.
4130 * target-delegates.c: Rebuild.
4131 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4132 and target_dumpcore ().
4133
002a3166
AM
41342020-08-13 Aaron Merey <amerey@redhat.com>
4135
4136 * debuginfod-support.c: Replace global variables with user_data.
4137
ece5bc8a
SM
41382020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4139
4140 * maint.c (maintenance_selftest): Split args and pass array_view
4141 to run_tests.
4142
6d8a0a5e
LM
41432020-08-12 Luis Machado <luis.machado@linaro.org>
4144
4145 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4146 type's length.
4147 Use %s and pulongest to print the length.
4148
7cf663a9
PA
41492020-08-12 Pedro Alves <palves@redhat.com>
4150
4151 * NEWS: Move "Multi-target debugging support" item to the
4152 "Changes since GDB 9" section.
4153
27c7b875
PA
41542020-08-12 Pedro Alves <palves@redhat.com>
4155
4156 PR gdb/26336
4157 * progspace.c (program_space::remove_objfile): Invalidate the
4158 frame cache.
4159
1796a2a1
TV
41602020-08-11 Tom de Vries <tdevries@suse.de>
4161
4162 * MAINTAINERS: Mark ms1 as deleted.
4163
f8e3fe0d
LM
41642020-08-10 Luis Machado <luis.machado@linaro.org>
4165
4166 PR gdb/26310
4167
4168 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4169 act accordingly.
4170 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4171 movz/str/stur/stp skipping behavior.
4172
cc308722
LM
41732020-08-10 Luis Machado <luis.machado@linaro.org>
4174
4175 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4176 struct user_sve_header instead of struct sve_context.
4177
041d9819
SM
41782020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4179
4180 * read.h (dwarf2_fetch_die_loc_sect_off,
4181 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4182 `void *` parameter with function_view.
4183 * read.c (dwarf2_fetch_die_loc_sect_off,
4184 dwarf2_fetch_die_loc_cu_off): Likewise.
4185 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4186 (per_cu_dwarf_call): Adjust.
4187 (get_frame_address_in_block_wrapper): Remove.
4188 (indirect_synthetic_pointer): Adjust.
4189 (get_ax_pc): Remove.
4190 (dwarf2_compile_expr_to_ax): Adjust.
4191
38f8aa06
TV
41922020-08-08 Tom de Vries <tdevries@suse.de>
4193
4194 PR build/26344
4195 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4196 constructor.
4197 * regcache.c (get_thread_arch_aspace_regcache): Same.
4198
a52b3ae2
TT
41992020-08-07 Tom Tromey <tromey@adacore.com>
4200
4201 * ravenscar-thread.c
4202 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4203 New method.
4204 (ravenscar_thread_target::wait): Check
4205 runtime_initialized.
4206 (ravenscar_thread_target::prepare_to_store)
4207 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4208 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4209 (ravenscar_thread_target::stopped_by_watchpoint)
4210 (ravenscar_thread_target::stopped_data_address)
4211 (ravenscar_thread_target::core_of_thread): Use
4212 scoped_restore_current_thread and
4213 set_base_thread_from_ravenscar_task.
4214
0e29517d
TT
42152020-08-07 Tom Tromey <tromey@adacore.com>
4216
4217 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4218
592f9bd7
TT
42192020-08-07 Tom Tromey <tromey@adacore.com>
4220
4221 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4222 update_inferior_ptid before update_thread_list.
4223 (temporarily_change_regcache_ptid): New class.
4224 (ravenscar_thread_target::fetch_registers)
4225 (ravenscar_thread_target::store_registers)
4226 (ravenscar_thread_target::prepare_to_store): Use base thread when
4227 forwarding operation.
4228
39e2018a
TT
42292020-08-07 Tom Tromey <tromey@adacore.com>
4230
4231 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4232 "is_pid" case.
4233
2080266b
TT
42342020-08-07 Tom Tromey <tromey@adacore.com>
4235
4236 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4237 New methods.
4238 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4239 first.
4240 (ravenscar_thread_target::add_thread): Rename from
4241 ravenscar_add_thread.
4242 (ravenscar_thread_target::update_thread_list): Use a lambda.
4243 (ravenscar_thread_target::xfer_partial): New method.
4244
78c02f21
TT
42452020-08-07 Tom Tromey <tromey@adacore.com>
4246
4247 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4248 gdb::function_view.
4249 (iterate_over_live_ada_tasks): Change type of argument.
4250 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4251 of argument.
4252
d5d833af
TT
42532020-08-07 Tom Tromey <tromey@adacore.com>
4254
4255 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4256 Remove.
4257 (ravenscar_thread_target::extra_thread_info): Remove.
4258 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4259 defer to target beneath for non-Ravenscar threads.
4260
a8ac85bb
TT
42612020-08-07 Tom Tromey <tromey@adacore.com>
4262
4263 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4264 get_base_thread_from_ravenscar_task>: Now methods.
4265 <m_cpu_map>: New member.
4266 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4267 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4268 (ravenscar_thread_target::task_is_currently_active): Update.
4269 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4270 Now a method.
4271 (ravenscar_thread_target::add_active_thread): Put initial thread
4272 into the m_cpu_map.
4273
550ab58d
TT
42742020-08-07 Tom Tromey <tromey@adacore.com>
4275
4276 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4277 event_ptid.
4278
e9546579
TT
42792020-08-07 Tom Tromey <tromey@adacore.com>
4280
4281 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4282 runtime_initialized.
4283
3d4470e5
TT
42842020-08-07 Tom Tromey <tromey@adacore.com>
4285
4286 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4287 add_active_thread.
4288 (ravenscar_thread_target::add_active_thread): Now public.
4289 (ravenscar_inferior_created): Call add_active_thread after pushing
4290 the target.
4291
888bdb2b
SM
42922020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4293
4294 * regcache.c (ptid_regcache_map): New type.
4295 (target_ptid_regcache_map): New type.
4296 (regcaches): Change type to target_ptid_regcache_map.
4297 (get_thread_arch_aspace_regcache): Update to regcaches' new
4298 type.
4299 (regcache_thread_ptid_changed): Likewise.
4300 (registers_changed_ptid): Likewise.
4301 (regcaches_size): Likewise.
4302 (regcaches_test): Update.
4303 (regcache_thread_ptid_changed): Update.
4304 * regcache.h (regcache_up): New type.
4305 * gdbsupport/ptid.h (hash_ptid): New struct.
4306
b161a60d
SM
43072020-08-07 Simon Marchi <simon.marchi@efficios.com>
4308
4309 * observable.h (thread_ptid_changed): Add parameter
4310 `process_stratum_target *`.
4311 * infrun.c (infrun_thread_ptid_changed): Add parameter
4312 `process_stratum_target *` and use it.
4313 (selftests): New namespace.
4314 (infrun_thread_ptid_changed): New function.
4315 (_initialize_infrun): Register selftest.
4316 * regcache.c (regcache_thread_ptid_changed): Add parameter
4317 `process_stratum_target *` and use it.
4318 (regcache_thread_ptid_changed): New function.
4319 (_initialize_regcache): Register selftest.
4320 * thread.c (thread_change_ptid): Pass target to
4321 thread_ptid_changed observable.
4322
d2854d8d
CT
43232020-08-06 Caroline Tice <cmtice@google.com>
4324
fe4c3d43
SM
4325 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4326 (struct dwp_sections): Update field comments. Add loclists and
4327 rnglists fields.
4328 (struct virtual_v2_dwo_sections): Rename struct to
4329 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4330 size & offset fields for loclists and rnglists.
4331 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4332 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4333 skipping dummy type units.
4334 (create_dwp_hash_table): Update the large comment above the function to
4335 discuss Version 5 DWP files as well, with references. Update all the
4336 version checks in the function to check for version 5 as well. Add new
4337 section at the end to create dwp hash table for version 5.
4338 (create_dwp_v2_section): Rename function to
4339 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4340 Add V5 to error message text.
4341 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4342 into calls to create_dwp_v2_or_v5_section.
4343 (create_dwo_unit_in_dwp_v5): New function.
4344 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4345 check for version2; add else clause to handle version 5.
4346 (open_and_init_dwo_file): Add code to check dwarf version & only call
4347 create_debug_types_hash_table (with sections.types) if version is not 5;
4348 else call create_debug_type_hash_table, with sections.info.
4349 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4350 version 5.
4351 (dwarf2_locate_v5_dwp_sections): New function.
4352 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4353 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4354
159ed7d9
SM
43552020-08-06 Simon Marchi <simon.marchi@efficios.com>
4356
4357 * regcache.h (class regcache): Remove friend
4358 registers_changed_ptid.
4359 <regcache_thread_ptid_changed>: Remove.
4360 <regcaches>: Remove.
4361 * regcache.c (regcache::regcaches): Rename to...
4362 (regcaches): ... this. Make static.
4363 (get_thread_arch_aspace_regcache): Update.
4364 (regcache::regcache_thread_ptid_changed): Rename to...
4365 (regcache_thread_ptid_changed): ... this. Update.
4366 (class regcache_access): Remove.
4367 (regcaches_test): Update.
4368 (_initialize_regcache): Update.
4369 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4370 <forward_list>.
4371
174981ae
SM
43722020-08-06 Simon Marchi <simon.marchi@efficios.com>
4373
4374 * regcache.h (class regcache) <current_regcache>: Rename to...
4375 <regcaches>: ... this. Move doc here.
4376 * regcache.c (regcache::current_regcache) Rename to...
4377 (regcache::regcaches): ... this. Move doc to header.
4378 (get_thread_arch_aspace_regcache): Update.
4379 (regcache::regcache_thread_ptid_changed): Update.
4380 (registers_changed_ptid): Update.
4381 (class regcache_access) <current_regcache_size>: Rename to...
4382 <regcaches_size>: ... this.
4383 (current_regcache_test): Rename to...
4384 (regcaches_test): ... this.
4385 (_initialize_regcache): Update.
4386
ed908db6
VC
43872020-08-06 Victor Collod <vcollod@nvidia.com>
4388
4389 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4390
b5582ab7
KB
43912020-08-05 Kevin Buettner <kevinb@redhat.com>
4392
4393 * corelow.c (core_target::build_file_mappings): Don't output
4394 null pathname in warning.
4395
ea946b86
SM
43962020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4397
4398 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4399 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4400 gdb.dwarf2/dw2-single-line-discriminators.exp,
4401 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4402
57d02173
TT
44032020-08-05 Tom Tromey <tromey@adacore.com>
4404
4405 PR rust/26197:
4406 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4407 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4408 Fix off-by-one and type size errors in ordinary case.
4409
5555c86d
TV
44102020-08-05 Tom de Vries <tdevries@suse.de>
4411
4412 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4413 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4414
97916bfe
SM
44152020-08-04 Simon Marchi <simon.marchi@efficios.com>
4416
4417 * frame.h (frame_id_p): Return bool.
4418 (frame_id_artificial_p): Return bool.
4419 (frame_id_eq): Return bool.
4420 (has_stack_frames): Return bool.
4421 (get_selected_frame): Fix typo in comment.
4422 (get_frame_pc_if_available): Return bool.
4423 (get_frame_address_in_block_if_available): Return bool.
4424 (get_frame_func_if_available): Return bool.
4425 (read_frame_register_unsigned): Return bool.
4426 (get_frame_register_bytes): Return bool.
4427 (safe_frame_unwind_memory): Return bool.
4428 (deprecated_frame_register_read): Return bool.
4429 (frame_unwinder_is): Return bool.
4430 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4431 bool.
4432 <this_id::p>: Likewise.
4433 <prev_p>: Likewise.
4434 (frame_stash_add): Return bool.
4435 (get_frame_id): Use bool.
4436 (frame_id_build_special) Use bool.
4437 (frame_id_build_unavailable_stack): Use bool.
4438 (frame_id_build): Use bool.
4439 (frame_id_p): Return bool, use true/false instead of 1/0.
4440 (frame_id_artificial_p): Likewise.
4441 (frame_id_eq): Likewise.
4442 (frame_id_inner): Likewise.
4443 (get_frame_func_if_available): Likewise.
4444 (read_frame_register_unsigned): Likewise.
4445 (deprecated_frame_register_read): Likewise.
4446 (get_frame_register_bytes): Likewise.
4447 (has_stack_frames): Likewise.
4448 (inside_main_func): Likewise.
4449 (inside_entry_func): Likewise.
4450 (get_frame_pc_if_available): Likewise.
4451 (get_frame_address_in_block_if_available): Likewise.
4452 (frame_unwinder_is): Likewise.
4453 (safe_frame_unwind_memory): Likewise.
4454 (frame_unwind_arch): Likewise.
4455
fedfee88
SM
44562020-08-04 Simon Marchi <simon.marchi@efficios.com>
4457
4458 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4459 type to cached_copy_status.
4460 (fprintf_frame): Adjust.
4461 (get_frame_func_if_available): Adjust.
4462 (frame_cleanup_after_sniffer): Adjust.
4463
6cfa9b59
MW
44642020-08-04 Mark Wielaard <mark@klomp.org>
4465
4466 * MAINTAINERS (Write After Approval): Update email address.
4467
66d6346b
SM
44682020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4469
4470 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4471 dynamic_prop::const_val.
4472
8a6d5e35
SM
44732020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4474
4475 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4476 dynamic_prop::kind.
4477
51d6067d
SM
44782020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4479
4480 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4481
b26e2ae7
JM
44822020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4483
4484 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4485
39791af2
JM
44862020-08-04 Weimin Pan <weimin.pan@oracle.com>
4487 Jose E. Marchesi <jose.marchesi@oracle.com>
4488
4489 * configure.tgt: Add entry for bpf-*-*.
4490 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4491 (ALLDEPFILES): Add bpf-tdep.c.
4492 * bpf-tdep.c: New file.
4493 * MAINTAINERS: Add bpf target and maintainer.
4494 * NEWS: Mention the support for the new target.
4495
521894aa
TV
44962020-08-04 Tom de Vries <tdevries@suse.de>
4497
4498 PR symtab/23270
4499 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4500 Error.
4501
5d6356e9
JB
45022020-08-03 John Baldwin <jhb@FreeBSD.org>
4503
4504 * syscalls/freebsd.xml: Regenerate.
4505
0cf82b81
JB
45062020-08-03 John Baldwin <jhb@FreeBSD.org>
4507
4508 * syscalls/update-freebsd.sh: Fix usage and year range.
4509
8f34b746
TV
45102020-08-03 Tom de Vries <tdevries@suse.de>
4511
4512 PR symtab/26333
4513 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4514 DW_LNE_lo_user/DW_LNE_hi_user range.
4515
5e500d33
SM
45162020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4517
4518 PR ada/26318
4519 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4520 kind.
4521
78319c15
TBA
45222020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4523
4524 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4525
4c55e970
TBA
45262020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4527
4528 * breakpoint.c (set_breakpoint_condition): Update the condition
4529 expressions after checking that the input condition string parses
4530 successfully and does not contain junk at the end.
4531
1e620590
TBA
45322020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4533
4534 * breakpoint.c (set_breakpoint_condition): Update the
4535 condition string after parsing the new condition successfully.
4536
c8693053
RO
45372020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4538
4539 * proc-api.c (_STRUCTURED_PROC): Don't define.
4540 * proc-events.c: Likewise.
4541 * proc-flags.c: Likewise.
4542 * proc-why.c: Likewise.
4543 * procfs.c: Likewise.
4544
4545 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4546 * configure, config.in: Regenerate.
4547
5a99adb8
TV
45482020-07-30 Tom de Vries <tdevries@suse.de>
4549
4550 PR build/26320
4551 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4552 m_red/m_green/m_blue in a union.
4553
8ba83e91
TV
45542020-07-29 Tom de Vries <tdevries@suse.de>
4555
4556 PR tdep/26280
4557 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4558
f75a0693
AB
45592020-07-28 Tom Tromey <tromey@adacore.com>
4560
4561 PR symtab/26270:
4562 * symtab.h (find_pc_partial_function_sym): Declare.
4563 * cli/cli-cmds.c (disassemble_command): Use
4564 find_pc_partial_function_sym. Check asm_demangle.
4565 * blockframe.c (cache_pc_function_sym): New global.
4566 (cache_pc_function_name): Remove.
4567 (clear_pc_function_cache): Update.
4568 (find_pc_partial_function_sym): New function, from
4569 find_pc_partial_function.
4570 (find_pc_partial_function): Rewrite using
4571 find_pc_partial_function_sym.
4572
16f3242c
TT
45732020-07-28 Tom Tromey <tromey@adacore.com>
4574
4575 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4576 help. Add usage.
4577
4888741a
TT
45782020-07-28 Tom Tromey <tromey@adacore.com>
4579
4580 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4581 <DW_OP_GNU_variable_value>: Cast to address type.
4582
4d46f402
KR
45832020-07-28 Kamil Rytarowski <n54@gmx.com>
4584
4585 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4586 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4587 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4588 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4589 (nbsd_get_siginfo_type): New.
4590 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4591 (_initialize_nbsd_tdep): New.
4592
d70f978b
L
45932020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4594
4595 PR binutils/26301
4596 * configure: Regenerated.
4597
377170fa
L
45982020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4599
4600 PR binutils/26301
4601 * configure: Regenerated.
4602
43d5901d
AB
46032020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4604
4605 * python/py-frame.c: Remove 'user-regs.h' include.
4606 (frapy_read_register): Rewrite to make use of
4607 gdbpy_parse_register_id.
4608 * python/py-registers.c (gdbpy_parse_register_id): New function,
4609 moved here from python/py-unwind.c. Updated the return type, and
4610 also accepts register descriptor objects.
4611 * python/py-unwind.c: Remove 'user-regs.h' include.
4612 (pyuw_parse_register_id): Moved to python/py-registers.c.
4613 (unwind_infopy_add_saved_register): Update to use
4614 gdbpy_parse_register_id.
4615 (pending_framepy_read_register): Likewise.
4616 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4617
14fa8fb3
AB
46182020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4619
4620 * python/py-registers.c: Add 'user-regs.h' include.
4621 (register_descriptor_iter_find): New function.
4622 (register_descriptor_iterator_object_methods): New static global
4623 methods array.
4624 (register_descriptor_iterator_object_type): Add pointer to methods
4625 array.
4626
ddce1758
JB
46272020-07-27 John Baldwin <jhb@FreeBSD.org>
4628
4629 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4630 for all architectures on FreeBSD 11.3 and later.
4631
a4089f52
TT
46322020-07-27 Tom Tromey <tromey@adacore.com>
4633
4634 * gcore.h (load_corefile): Don't declare.
4635
95420d30
TV
46362020-07-27 Tom de Vries <tdevries@suse.de>
4637
4638 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4639 * config.in: Regenerate.
4640 * configure: Regenerate.
4641
05a6b8c2
EZ
46422020-07-26 Eli Zaretskii <eliz@gnu.org>
4643
4644 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4645 ws2tcpip.h. When checking whether socklen_t type is defined, use
4646 ws2tcpip.h if it is available and sys/socket.h isn't.
4647 * configure: Regenerate.
4648 * config.in: Regenerate.
4649
e79eb02f
AB
46502020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4651
4652 PR fortran/23051
4653 PR fortran/26139
4654 * valops.c (value_ind): Pass address to
4655 readjust_indirect_value_type.
4656 * value.c (readjust_indirect_value_type): Make parameter
4657 non-const, and add extra address parameter. Resolve original type
4658 before using it.
4659 * value.h (readjust_indirect_value_type): Update function
4660 signature and comment.
4661
876518dd
TV
46622020-07-25 Tom de Vries <tdevries@suse.de>
4663
4664 PR symtab/26243
4665 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4666 entries.
4667
f6720b1c
AM
46682020-07-24 Aaron Merey <amerey@redhat.com>
4669
4670 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4671 * configure: Rebuild.
4672
513487e1
KB
46732020-07-23 Kevin Buettner <kevinb@redhat.com>
4674
4675 PR corefiles/26294
4676 * corelow.c (_initialize_corelow): Add period to help text
4677 for "maintenance print core-file-backed-mappings".
4678
e7bc9db8
PA
46792020-07-23 Pedro Alves <pedro@palves.net>
4680
4681 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4682 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4683 meanwhile.
4684 * frame.c (frame_cache_generation, get_frame_cache_generation):
4685 New.
4686 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4687 (get_prev_frame_if_no_cycle): On exception, don't touch
4688 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4689 * frame.h (get_frame_cache_generation): Declare.
4690
90fcc466
TV
46912020-07-23 Tom de Vries <tdevries@suse.de>
4692
4693 PR tui/26282
4694 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4695 New default constructor.
4696
78344df7
AB
46972020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4698
4699 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4700 exclude non-statement entries.
4701
b089853a
KB
47022020-07-22 Kevin Buettner <kevinb@redhat.com>
4703
4704 * NEWS (New commands): Mention new command
4705 "maintenance print core-file-backed-mappings".
4706
09c2f5d4
KB
47072020-07-22 Kevin Buettner <kevinb@redhat.com>
4708
4709 * corelow.c (gdbcmd.h): Include.
4710 (core_target::info_proc_mappings): New method.
4711 (get_current_core_target): New function.
4712 (maintenance_print_core_file_backed_mappings): New function.
4713 (_initialize_corelow): Add core-file-backed-mappings to
4714 "maint print" commands.
4715
9c5ec5c2 47162020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4717
9c5ec5c2
KB
4718 * linux-tdep.c (dump_note_entry_p): New function.
4719 (linux_dump_mapping_p_ftype): New typedef.
4720 (linux_find_memory_regions_full): Add new parameter,
4721 should_dump_mapping_p.
4722 (linux_find_memory_regions): Adjust call to
4723 linux_find_memory_regions_full.
4724 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4725 call to linux_find_memory_regions_full.
4726
db082f59
KB
47272020-07-22 Kevin Buettner <kevinb@redhat.com>
4728
4729 * corelow.c (solist.h, unordered_map): Include.
4730 (class core_target): Add field m_core_file_mappings and
4731 method build_file_mappings.
4732 (core_target::core_target): Call build_file_mappings.
4733 (core_target::~core_target): Free memory associated with
4734 m_core_file_mappings.
4735 (core_target::build_file_mappings): New method.
4736 (core_target::xfer_partial): Use m_core_file_mappings
4737 for memory transfers.
4738 * linux-tdep.c (linux_read_core_file_mappings): New
4739 function.
4740 (linux_core_info_proc_mappings): Rewrite to use
4741 linux_read_core_file_mappings.
4742 (linux_init_abi): Register linux_read_core_file_mappings.
4743
7e183d27
KB
47442020-07-22 Kevin Buettner <kevinb@redhat.com>
4745
4746 * arch-utils.c (default_read_core_file_mappings): New function.
4747 * arch-utils.c (default_read_core_file_mappings): Declare.
4748 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4749 * gdbarch.h, gdbarch.c: Regenerate.
4750
2735d421
KB
47512020-07-22 Kevin Buettner <kevinb@redhat.com>
4752
4753 PR corefiles/25631
4754 * corelow.c (core_target:xfer_partial): Revise
4755 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4756 case after first checking the stratum beneath the core
4757 target.
4758 (has_all_memory): Return true.
4759 * target.c (raw_memory_xfer_partial): Revise comment
4760 regarding use of has_all_memory.
4761
e56cb451
KB
47622020-07-22 Kevin Buettner <kevinb@redhat.com>
4763
4764 * exec.h (section_table_xfer_memory): Revise declaration,
4765 replacing section name parameter with an optional callback
4766 predicate.
4767 * exec.c (section_table_xfer_memory): Likewise.
4768 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4769 of section_table_xfer_memory.
4770
32fa152e
TT
47712020-07-22 Tom Tromey <tromey@adacore.com>
4772
4773 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4774 lookup_symbol_search_name.
4775
a67a1c41
AB
47762020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4777
4778 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4779 redundant local variable.
4780 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4781 reference, not pointer, update code accordingly.
4782
a7b4ff4f
SM
47832020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4784 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4785
4786 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4787 * jit.c (jit_breakpoint_re_set_internal): Use the
4788 `skip_jit_symbol_lookup` field.
4789
2340e834
SM
47902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4791 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4792
4793 * jit.c (jit_read_descriptor): Define the descriptor address once,
4794 use twice.
4795 (jit_breakpoint_deleted): Move the declaration of the loop variable
4796 `iter` into the loop header.
4797 (jit_breakpoint_re_set_internal): Move the declaration of the local
4798 variable `objf_data` to the first point of definition.
4799 (jit_event_handler): Move the declaration of local variables
4800 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4801 Rename `objf` to `jited`.
4802
c1072906
SM
48032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4804
4805 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4806 Remove.
4807 * jit.c (get_jiter_objfile_data): Update.
4808
c8474dc3
TBA
48092020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4810 Simon Marchi <simon.marchi@polymtl.ca>
4811
4812 * jit.c (struct jit_program_space_data): Remove.
4813 (jit_program_space_key): Remove.
4814 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4815 stuff.
4816 (get_jit_program_space_data): Remove.
4817 (jit_breakpoint_deleted): Iterate on all of the program space's
4818 objfiles.
4819 (jit_inferior_init): Likewise.
4820 (jit_breakpoint_re_set_internal): Likewise. Also change return
4821 type to void.
4822 (jit_breakpoint_re_set): Pass current_program_space to
4823 jit_breakpoint_re_set_internal.
4824
77208eb7
SM
48252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4826
4827 * jit.h (struct jiter_objfile_data) <cached_code_address,
4828 jit_breakpoint>: Move to here from ...
4829 * jit.c (jit_program_space_data): ... here.
4830 (jiter_objfile_data::~jiter_objfile_data): Update.
4831 (jit_breakpoint_deleted): Update.
4832 (jit_breakpoint_re_set_internal): Update.
4833
8c1c720f
SM
48342020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4835
4836 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4837 checks.
4838 (jit_read_descriptor): Remove NULL check.
4839 (jit_event_handler): Add an assertion.
4840
0e74a041
SM
48412020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4842
4843 * jit.h (struct jit_objfile_data): Split into...
4844 (struct jiter_objfile_data): ... this ...
4845 (struct jited_objfile_data): ... and this.
4846 * objfiles.h (struct objfile) <jit_data>: Remove.
4847 <jiter_data, jited_data>: New fields.
4848 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4849 (jiter_objfile_data::~jiter_objfile_data): ... this.
4850 (get_jit_objfile_data): Rename to ...
4851 (get_jiter_objfile_data): ... this.
4852 (add_objfile_entry): Update.
4853 (jit_read_descriptor): Use get_jiter_objfile_data.
4854 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4855 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4856 (jit_inferior_exit_hook): Use objfile's jited_data field.
4857
238b5c9f
SM
48582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4859
4860 * jit.h: Forward-declare `struct minimal_symbol`.
4861 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4862 constructor, destructor, and an objfile* field.
4863 * jit.c (jit_objfile_data): Remove.
4864 (struct jit_objfile_data): Migrate from here to jit.h.
4865 (jit_objfile_data::~jit_objfile_data): New destructor
4866 implementation with code moved from free_objfile_data.
4867 (free_objfile_data): Delete.
4868 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4869 (jit_find_objf_with_entry_addr): Ditto.
4870 (jit_inferior_exit_hook): Ditto.
4871 (_initialize_jit): Remove the call to
4872 register_objfile_data_with_cleanup.
4873 * objfiles.h (struct objfile) <jit_data>: New field.
4874
fe053b9e
TBA
48752020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4876
4877 * jit.h: Forward-declare `struct objfile`.
4878 (jit_event_handler): Add a second parameter, the JITer objfile.
4879 * jit.c (jit_read_descriptor): Change the signature to take the
4880 JITer objfile as an argument instead of the jit_program_space_data.
4881 (jit_inferior_init): Update the call to jit_read_descriptor.
4882 (jit_event_handler): Use the new JITer objfile argument when calling
4883 jit_read_descriptor.
4884 * breakpoint.c (handle_jit_event): Update the call to
4885 jit_event_handler to pass the JITer objfile.
4886
4cec0c66
JB
48872020-07-21 John Baldwin <jhb@FreeBSD.org>
4888
4889 * gdbarch.c: Regenerate.
4890 * gdbarch.h: Regenerate.
4891 * gdbarch.sh (handle_segmentation_fault): Remove method.
4892 * infrun.c (handle_segmentation_fault): Remove.
4893 (print_signal_received_reason): Remove call to
4894 handle_segmentation_fault.
4895
0e42f66a
JB
48962020-07-21 John Baldwin <jhb@FreeBSD.org>
4897
4898 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4899 Rename to sparc64_linux_report_signal_info and add siggnal
4900 argument.
4901 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4902 instead of sparc64_linux_handle_segmentation_fault.
4903
77bdfeb2
JB
49042020-07-21 John Baldwin <jhb@FreeBSD.org>
4905
4906 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4907 i386_linux_report_signal_info instead of
4908 i386_linux_handle_segmentation_fault.
4909 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4910 to i386_linux_report_signal_info and add siggnal argument.
4911 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4912 of i386_linux_handle_segmentation_fault.
4913 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4914 to i386_linux_report_signal_info and add siggnal argument.
4915
ad97bfc5
JB
49162020-07-21 John Baldwin <jhb@FreeBSD.org>
4917
4918 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4919 hook if present.
4920
272bb05c
JB
49212020-07-21 John Baldwin <jhb@FreeBSD.org>
4922
4923 * gdbarch.c: Regenerate.
4924 * gdbarch.h: Regenerate.
4925 * gdbarch.sh (report_signal_info): New method.
4926 * infrun.c (print_signal_received_reason): Invoke gdbarch
4927 report_signal_info hook if present.
4928
baf8791e
AB
49292020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4930
4931 * python/py-registers.c : Add 'unordered_map' include.
4932 (gdbpy_new_reggroup): Renamed to...
4933 (gdbpy_get_reggroup): ...this. Update to only create register
4934 group descriptors when needed.
4935 (gdbpy_reggroup_iter_next): Update.
4936
f7306dac
AB
49372020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4938
4939 * python/py-registers.c (gdbpy_register_object_data): New static
4940 global.
4941 (gdbpy_register_object_data_init): New function.
4942 (gdbpy_new_register_descriptor): Renamed to...
4943 (gdbpy_get_register_descriptor): ...this, and update to reuse
4944 existing register descriptors where possible.
4945 (gdbpy_register_descriptor_iter_next): Update.
4946 (gdbpy_initialize_registers): Register new gdbarch data.
4947
05c309a8
SM
49482020-07-21 Simon Marchi <simon.marchi@efficios.com>
4949
4950 * linux-nat.c (stopped_pids): Make static.
4951
d1fd641e
SM
49522020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4953
4954 PR ada/26235
4955 * gdbtypes.c (ada_discrete_type_low_bound,
4956 ada_discrete_type_high_bound): Handle undefined bounds.
4957
1de14d77
KR
49582020-07-21 Kamil Rytarowski <n54@gmx.com>
4959
4960 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4961 declaration.
4962 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4963 function.
4964
ed810cc7
JB
49652020-07-20 John Baldwin <jhb@FreeBSD.org>
4966
4967 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4968 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4969 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4970 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4971 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4972 method.
4973
ae5369e7
LC
49742020-07-20 Ludovic Courtès <ludo@gnu.org>
4975
4976 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4977 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4978 which are deprecated in Guile 3.0.
4979 * configure.ac (try_guile_versions): Add "guile-3.0".
4980 * configure (try_guile_versions): Regenerate.
4981 * NEWS: Update entry.
4982
68cf161c
LC
49832020-07-20 Ludovic Courtès <ludo@gnu.org>
4984 Doug Evans <dje@google.com>
4985
4986 PR gdb/21104
4987 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4988 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4989 USING_GUILE_BEFORE_2_2.
4990 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4991 Change type to 'scm_t_port_type *'.
4992 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4993 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4994 parameter and honor it. Update callers.
4995 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4996 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4997 functions.
4998 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4999 USING_GUILE_BEFORE_2_2.
5000 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5001 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5002 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5003 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5004 and 'SCM_PORT_TYPE'.
5005 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5006 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5007 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5008 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5009 [!USING_GUILE_BEFORE_2_2]: New functions.
5010 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5011 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5012 'gdbscm_memory_port_read'.
5013 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5014 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5015 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5016 function.
5017 (ioscm_init_memory_port): Remove.
5018 (ioscm_init_memory_port_stream): New function
5019 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5020 function.
5021 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5022 Return scm_from_uint (0).
5023 (gdbscm_set_memory_port_read_buffer_size_x)
5024 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5025 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5026 Return scm_from_uint (0).
5027 (gdbscm_set_memory_port_write_buffer_size_x)
5028 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5029 * configure.ac (try_guile_versions): Add "guile-2.2".
5030 * configure: Regenerate.
5031 * NEWS: Add entry.
5032
aee91db3
TT
50332020-07-18 Tom Tromey <tom@tromey.com>
5034
5035 * linux-nat.c (linux_multi_process): Remove.
5036 (linux_nat_target::supports_multi_process): Return true.
5037
0e267416
AB
50382020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5039
5040 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5041 (riscv_lookup_target_description): Return pointer out of
5042 unique_ptr.
5043 * target-descriptions.c (allocate_target_description): Add
5044 comment.
5045 (target_desc_deleter::operator()): Likewise.
5046 * target-descriptions.h (struct target_desc_deleter): Moved to
5047 gdbsupport/tdesc.h.
5048 (target_desc_up): Likewise.
5049
f80c8ec4
TT
50502020-07-17 Tom Tromey <tromey@adacore.com>
5051
5052 * linux-nat.c (linux_nat_target::supports_non_stop)
5053 (linux_nat_target::always_non_stop_p): Use "true".
5054 (linux_nat_target::supports_disable_randomization): Use "true" and
5055 "false".
5056
d0ce17d8
CT
50572020-07-16 Caroline Tice <cmtice@google.com>
5058
5059 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5060 (RNGLIST_HEADER_SIZE64): New constant definition.
5061 (struct dwop_section_names): Add rnglists_dwo.
5062 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5063 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5064 (struct dwo_sections): Add rnglists field.
5065 (read_attribut_reprocess): Add tag parameter.
5066 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5067 (cu_debug_rnglists_section): New function (decl & definition).
5068 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5069 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5070 die whose range is being checked; get rnglist section from
5071 cu_debug_rnglists_section, to get from either objfile or dwo file as
5072 appropriate. Add cases for DW_RLE_base_addressx,
5073 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5074 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5075 test inside if-condition and updating complaint message.
5076 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5077 dwarf2_rnglists_process.
5078 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5079 dwarf2_ranges_process.
5080 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5081 need_ranges_base and update comment appropriately. Also pass die tag
5082 to dwarf2_ranges_read.
5083 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5084 need_ranges_base and update comment appropriately. Also pass die tag
5085 to dwarf2_ranges_process.
5086 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5087 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5088 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5089 need_ranges_base and update comment appropriately. Also pass die tag
5090 to read_attribute_reprocess and dwarf2_ranges_read.
5091 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5092 and update function comment appropriately.
5093 (read_loclist_index): Call read_loclists_rnglists_header instead of
5094 read_loclist_header.
5095 (read_rnglist_index): New function.
5096 (read_attribute_reprocess): Add tag parameter. Add code for
5097 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5098 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5099
3dcc261c
AB
51002020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5101
5102 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5103 being resolved.
5104
ccb9eba6
AB
51052020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5106
5107 * arch-utils.c (show_architecture): Update formatting of messages.
5108
cf88be68
SM
51092020-07-12 Simon Marchi <simon.marchi@efficios.com>
5110
5111 * gdbtypes.h (struct type) <bounds>: Handle array and string
5112 types.
5113 * ada-lang.c (assign_aggregate): Use type::bounds on
5114 array/string type.
5115 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5116 * c-varobj.c (c_number_of_children): Likewise.
5117 (c_describe_child): Likewise.
5118 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5119 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5120 (f_type_print_base): Likewise.
5121 * f-valprint.c (f77_array_offset_tbl): Likewise.
5122 (f77_get_upperbound): Likewise.
5123 (f77_print_array_1): Likewise.
5124 * guile/scm-type.c (gdbscm_type_range): Likewise.
5125 * m2-typeprint.c (m2_array): Likewise.
5126 (m2_is_long_set_of_type): Likewise.
5127 * m2-valprint.c (get_long_set_bounds): Likewise.
5128 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5129 * python/py-type.c (typy_range): Likewise.
5130 * rust-lang.c (rust_internal_print_type): Likewise.
5131 * type-stack.c (type_stack::follow_types): Likewise.
5132 * valarith.c (value_subscripted_rvalue): Likewise.
5133 * valops.c (value_cast): Likewise.
5134
509971ae
SM
51352020-07-12 Simon Marchi <simon.marchi@efficios.com>
5136
5137 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5138 callers to use the equivalent accessor methods.
5139
107406b7
SM
51402020-07-12 Simon Marchi <simon.marchi@efficios.com>
5141
5142 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5143 (struct type) <bit_stride>: New method.
5144 (TYPE_BIT_STRIDE): Remove.
5145 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5146
bb789949
SM
51472020-07-12 Simon Marchi <simon.marchi@efficios.com>
5148
5149 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5150 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5151 callers to use the equivalent accessor methods instead.
5152
39498edb
SM
51532020-07-12 Simon Marchi <simon.marchi@efficios.com>
5154
5155 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5156 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5157 callers to use the equivalent accessor methods instead.
5158
3b606f38
SM
51592020-07-12 Simon Marchi <simon.marchi@efficios.com>
5160
5161 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5162 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5163 to use dynamic_prop::kind.
5164
064d9cb9
SM
51652020-07-12 Simon Marchi <simon.marchi@efficios.com>
5166
5167 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5168 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5169 to get the bound property's kind and check against
5170 PROP_UNDEFINED.
5171
5537ddd0
SM
51722020-07-12 Simon Marchi <simon.marchi@efficios.com>
5173
5174 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5175 all callers to use type::range_bounds followed by
5176 dynamic_prop::{low,high}.
5177
8c2e4e06
SM
51782020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5179
5180 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5181 const_val, set_const_val, baton, set_locexpr, set_loclist,
5182 set_addr_offset, variant_parts, set_variant_parts,
5183 original_type, set_original_type>: New methods.
5184 <kind>: Rename to...
5185 <m_kind>: ... this. Update all users to use the new methods
5186 instead.
5187 <data>: Rename to...
5188 <m_data>: ... this. Update all users to use the new methods
5189 instead.
5190
7c6f2712
SM
51912020-07-12 Simon Marchi <simon.marchi@efficios.com>
5192
5193 * gdbtypes.c (get_discrete_bounds): Return failure if
5194 the range type's bounds are not both defined and constant
5195 values.
5196 (get_array_bounds): Update comment. Remove undefined bound check.
5197
599088e3
SM
51982020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5199
5200 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5201 the type::bounds method directly.
5202
c4dfcb36
SM
52032020-07-12 Simon Marchi <simon.marchi@efficios.com>
5204
5205 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5206 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5207 are used to set the range type's bounds to use set_bounds.
5208
0a278aa7
PW
52092020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5210
5211 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5212
cce20f10
PA
52132020-07-10 Pedro Alves <pedro@palves.net>
5214
5215 * gdbthread.h (inferior_ref): Define.
5216 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5217 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5218 * thread.c
5219 (scoped_restore_current_thread::restore):
5220 Adjust to gdb::ref_ptr.
5221 (scoped_restore_current_thread::~scoped_restore_current_thread):
5222 Remove manual decref handling.
5223 (scoped_restore_current_thread::scoped_restore_current_thread):
5224 Adjust to use
5225 inferior_ref::new_reference/thread_info_ref::new_reference.
5226 Incref the thread before calling get_frame_id instead of after.
5227 Let TARGET_CLOSE_ERROR propagate.
5228
6d7aa592
PA
52292020-07-10 Pedro Alves <pedro@palves.net>
5230
5231 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5232 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5233 NOT_AVAILABLE_ERROR.
5234 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5235 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5236
b3e3a4c1
SM
52372020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5238 Pedro Alves <pedro@palves.net>
5239
5240 PR gdb/26199
5241 * infrun.c (threads_are_resumed_pending_p): Delete.
5242 (do_target_wait): Remove threads_are_executing and
5243 threads_are_resumed_pending_p checks from the inferior_matches
5244 lambda. Update comments.
5245
d6cc5d98
PA
52462020-07-10 Pedro Alves <pedro@palves.net>
5247
5248 PR gdb/26199
5249 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5250 executing threads.
5251
7d3badc6
PA
52522020-07-10 Pedro Alves <pedro@palves.net>
5253
5254 PR gdb/26199
5255 * infrun.c (handle_no_resumed): Handle multiple targets.
5256
42bd97a6
PA
52572020-07-10 Pedro Alves <pedro@palves.net>
5258
5259 PR gdb/26199
5260 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5261 target_is_async_p.
5262
43667cc6
PA
52632020-07-10 Pedro Alves <pedro@palves.net>
5264
5265 PR gdb/26199
5266 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5267 threads, not all threads.
5268
96118d11
PA
52692020-07-10 Pedro Alves <pedro@palves.net>
5270
5271 PR gdb/26199
5272 * remote.c (remote_target::open_1): Pass remote target pointer as
5273 data to create_async_event_handler.
5274 (remote_async_inferior_event_handler): Mark async event handler
5275 before returning if the remote target still has either pending
5276 events or unacknowledged notifications.
5277
54904d81
JB
52782020-07-10 John Baldwin <jhb@FreeBSD.org>
5279
5280 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5281 declaration.
5282 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5283 function.
5284
f37e5866
JB
52852020-07-09 John Baldwin <jhb@FreeBSD.org>
5286
5287 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5288 inferior_ptid.
5289
fc238d4a
JB
52902020-07-09 John Baldwin <jhb@FreeBSD.org>
5291
5292 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5293 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5294 AT_FREEBSD_PS_STRINGS.
5295
6e2469ff
HD
52962020-07-08 Hannes Domani <ssbssa@yahoo.de>
5297
5298 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5299 of debugfile path on Windows.
5300
d1076c41
JB
53012020-07-08 John Baldwin <jhb@FreeBSD.org>
5302
5303 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5304 argument to 'data'.
5305
15f3b077
TT
53062020-07-08 Tom Tromey <tromey@adacore.com>
5307
5308 * ada-lang.c (ada_exception_message_1): Use read_memory.
5309
9fc501fd
AB
53102020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5311
5312 PR python/22748
5313 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5314 special handling for inline frames.
5315 * findvar.c (value_of_register_lazy): Skip inline frames when
5316 creating lazy register values.
5317 * frame.c (frame_id_computed_p): Delete definition.
5318 * frame.h (frame_id_computed_p): Delete declaration.
5319
64cb3757
AB
53202020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5321
5322 * NEWS: Mention additions to Python API.
5323 * python/py-arch.c (archpy_register_groups): New function.
5324 (arch_object_methods): Add 'register_groups' method.
5325 * python/py-registers.c (reggroup_iterator_object): New struct.
5326 (reggroup_object): New struct.
5327 (gdbpy_new_reggroup): New function.
5328 (gdbpy_reggroup_to_string): New function.
5329 (gdbpy_reggroup_name): New function.
5330 (gdbpy_reggroup_iter): New function.
5331 (gdbpy_reggroup_iter_next): New function.
5332 (gdbpy_new_reggroup_iterator): New function
5333 (gdbpy_initialize_registers): Register new types.
5334 (reggroup_iterator_object_type): Define new Python type.
5335 (gdbpy_reggroup_getset): New static global.
5336 (reggroup_object_type): Define new Python type.
5337 * python/python-internal.h
5338
0f767f94
AB
53392020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5340
5341 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5342 * python/py-arch.c (archpy_registers): New function.
5343 (arch_object_methods): Add 'registers' method.
5344 * python/py-registers.c: New file.
5345 * python/python-internal.h
5346 (gdbpy_new_register_descriptor_iterator): Declare.
5347 (gdbpy_initialize_registers): Declare.
5348 * python/python.c (do_start_initialization): Call
5349 gdbpy_initialize_registers.
5350 * NEWS: Mention additions to the Python API.
5351
87dbc774
AB
53522020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5353
5354 * NEWS: Mention new Python API method.
5355 * python/py-unwind.c (pending_framepy_architecture): New function.
5356 (pending_frame_object_methods): Add architecture method.
5357
3bc98c0c
AB
53582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5359
5360 * gdbarch.c: Regenerate.
5361 * gdbarch.h: Regenerate.
5362 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5363 (gdbarch_data): Use internal_error for the case where
5364 deprecated_set_gdbarch_data was originally needed.
5365 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5366 and use passed in obstack.
5367 (libunwind_frame_set_descr): Should no longer get back NULL from
5368 gdbarch_data.
5369 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5370 type.
5371 * user-regs.c (user_regs_init): Update parameters, and use passed
5372 in obstack.
5373 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5374 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5375
d8cc8af6
TV
53762020-07-06 Tom de Vries <tdevries@suse.de>
5377
5378 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5379 End-Of-Sequence in lte_is_less_than.
5380 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5381 "gdb: Don't reorder line table entries too much when sorting".
5382
947f7597
TV
53832020-07-06 Tom de Vries <tdevries@suse.de>
5384
5385 PR tui/26205
5386 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5387
1e7c1b22
TV
53882020-07-05 Tom de Vries <tdevries@suse.de>
5389
5390 PR build/26187
5391 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5392 std::uncaught_exceptions instead of deprecated
5393 std::uncaught_exception.
5394
a36158ec
SM
53952020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5396
5397 * macroexp.h (macro_stringify): Return
5398 gdb::unique_xmalloc_ptr<char>.
5399 * macroexp.c (macro_stringify): Likewise.
5400 * macrotab.c (fixup_definition): Update.
5401
14d960c8
SM
54022020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5403
5404 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5405 (lex_one_token): Update.
5406 * macroexp.c (struct macro_buffer) <release>: Return
5407 gdb::unique_xmalloc_ptr<char>.
5408 (macro_stringify): Update.
5409 (macro_expand): Update.
5410 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5411 * macroexp.h (macro_expand_next): Likewise.
5412
211d5b1c
SM
54132020-07-02 Simon Marchi <simon.marchi@efficios.com>
5414
5415 * macroexp.h (macro_lookup_ftype): Remove.
5416 (macro_expand, macro_expand_once, macro_expand_next): Remove
5417 lookup function parameters, add scope parameter.
5418 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5419 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5420 * macroscope.h (standard_macro_lookup): Change parameter type
5421 to macro_scope.
5422 * macroscope.c (standard_macro_lookup): Likewise.
5423 * c-exp.y (lex_one_token): Update.
5424 * macrocmd.c (macro_expand_command): Likewise.
5425 (macro_expand_once_command): Likewise.
5426
b1a35af2
SM
54272020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5428
5429 * inf-loop.c (inferior_event_handler): Remove client_data param.
5430 * inf-loop.h (inferior_event_handler): Likewise.
5431 * infcmd.c (step_1): Adjust.
5432 * infrun.c (proceed): Adjust.
5433 (fetch_inferior_event): Remove client_data param.
5434 (infrun_async_inferior_event_handler): Adjust.
5435 * infrun.h (fetch_inferior_event): Remove `void *` param.
5436 * linux-nat.c (handle_target_event): Adjust.
5437 * record-btrace.c (record_btrace_handle_async_inferior_event):
5438 Adjust.
5439 * record-full.c (record_full_async_inferior_event_handler):
5440 Adjust.
5441 * remote.c (remote_async_inferior_event_handler): Adjust.
5442
1cdf9e33
TT
54432020-07-01 Tom Tromey <tom@tromey.com>
5444
5445 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5446 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5447
32c1e210
TT
54482020-07-01 Tom Tromey <tom@tromey.com>
5449
5450 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5451 tui_gen_win_info.
5452 (tui_win_info::make_window): Merge with
5453 tui_gen_win_info::make_window.
5454 (tui_win_info::make_visible): Move from tui_gen_win_info.
5455 * tui/tui-win.c (tui_win_info::max_width): Move from
5456 tui_gen_win_info.
5457 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5458 type.
5459 <window_factory>: Likewise.
5460 * tui/tui-layout.c (tui_win_info::resize): Move from
5461 tui_gen_win_info.
5462 (make_standard_window): Change return type.
5463 (get_locator_window, tui_get_window_by_name): Likewise.
5464 (tui_layout_window::apply): Remove a cast.
5465 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5466 (struct tui_win_info): Merge with tui_gen_win_info.
5467 (struct tui_gen_win_info): Remove.
5468
a30cb6da
TT
54692020-07-01 Tom Tromey <tom@tromey.com>
5470
5471 * tui/tui-stack.h (struct tui_locator_window): Derive from
5472 tui_win_info.
5473 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5474 <can_box>: New method.
5475
1eb2161f
TT
54762020-07-01 Tom Tromey <tom@tromey.com>
5477
5478 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5479
7134f2eb
TT
54802020-07-01 Tom Tromey <tom@tromey.com>
5481
5482 * tui/tui-regs.c (tui_data_window::display_registers_from)
5483 (tui_data_window::display_registers_from)
5484 (tui_data_window::first_data_item_displayed)
5485 (tui_data_window::delete_data_content_windows): Update.
5486 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5487 Remove.
5488 (tui_data_window::check_register_values): Update.
5489 (tui_data_item_window::rerender): Add parameters. Update.
5490 (tui_data_item_window::refresh_window): Remove.
5491 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5492 virtual.
5493 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5494 tui_gen_win_info.
5495 <refresh_window, max_height, min_height>: Remove.
5496 <rerender>: Add parameters.
5497 <x, y, visible>: New members.
5498 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5499 <m_item_width>: New member.
5500
22b7b041
TT
55012020-07-01 Tom Tromey <tom@tromey.com>
5502
5503 * tui/tui-regs.c (tui_data_window::show_register_group)
5504 (tui_data_window::check_register_values): Update.
5505 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5506 from item_no.
5507
c9753adb
TT
55082020-07-01 Tom Tromey <tom@tromey.com>
5509
5510 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5511 useless "if".
5512
9ab26b4a
TT
55132020-07-01 Tom Tromey <tom@tromey.com>
5514
5515 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5516 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5517
e555083f
TT
55182020-07-01 Tom Tromey <tom@tromey.com>
5519
5520 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5521 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5522 (struct tui_line_or_address): Move from tui-data.h.
5523 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5524 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5525 (tui_cmd_window, tui_source_window_base, tui_source_window)
5526 (tui_disasm_window): Don't declare.
5527 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5528 to tui-winsource.h.
5529 (SINGLE_KEY): Move to tui-stack.c.
5530
7a02bab7
TT
55312020-07-01 Tom Tromey <tom@tromey.com>
5532
5533 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5534 std::string.
5535 * tui/tui-regs.c (class tab_expansion_file): New.
5536 (tab_expansion_file::write): New method.
5537 (tui_register_format): Change return type. Use
5538 tab_expansion_file.
5539 (tui_get_register, tui_data_window::display_registers_from)
5540 (tui_data_item_window::rerender): Update.
5541 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5542 * tui/tui-io.c (tui_expand_tabs): Remove.
5543
ea68593b
TT
55442020-07-01 Tom Tromey <tom@tromey.com>
5545
5546 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5547
a8caed5d
FS
55482020-07-01 Fangrui Song <maskray@google.com>
5549
5550 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5551
9cdf9820
AKS
55522020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5553
5554 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5555 forms for DW_AT_associated and DW_AT_allocated attributes,
5556 which is already checked in function attr_to_dynamic_prop.
5557
a1520ad8
TT
55582020-06-30 Tom Tromey <tromey@adacore.com>
5559
5560 * dwarf2/read.c (quirk_rust_enum): Correctly call
5561 alloc_rust_variant for default-less enum.
5562
5ac58899
TT
55632020-06-30 Tom Tromey <tromey@adacore.com>
5564
5565 PR build/26183:
5566 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5567 gdb::to_string.
5568
19b187a9
SM
55692020-06-29 Simon Marchi <simon.marchi@efficios.com>
5570
5571 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5572 * gdbarch.h: Re-generate.
5573
cd4c4c07
TT
55742020-06-28 Tom Tromey <tom@tromey.com>
5575
5576 * command.h (cmd_types): Remove.
5577 (cmd_type): Don't declare.
5578 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5579 typedef.
5580 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5581 * cli/cli-decode.c (cmd_type): Remove.
5582
05779d57
PA
55832020-06-27 Pedro Alves <palves@redhat.com>
5584
5585 * fork-child.c (prefork_hook): Adjust.
5586 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5587 Delete.
5588 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5589 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5590 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5591 Remove declarations.
5592 (struct inferior) <set_tty, tty>: New methods.
5593 (struct inferior) <terminal>: Rename to ...
5594 (struct inferior) <m_terminal>: ... this and make private.
5595 * main.c (captured_main_1): Adjust.
5596 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5597 (mi_cmd_inferior_tty_show): Adjust.
5598 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5599 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5600
1776e3e5
NA
56012020-06-26 Nick Alcock <nick.alcock@oracle.com>
5602
5603 * configure.ac: Add --enable-libctf: handle --disable-static
5604 properly.
5605 * acinclude.m4: sinclude ../config/enable.m4.
5606 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5607 (LIBCTF): Substitute in.
5608 (CTF_DEPS): New, likewise.
5609 (CLIBS): libctf needs symbols from libbfd: move earlier.
5610 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5611 flags.
5612 * ctfread.c: Surround in ENABLE_LIBCTF.
5613 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5614 * configure: Regenerate.
5615 * config.in: Likewise.
5616
58373b80
SM
56172020-06-25 Simon Marchi <simon.marchi@efficios.com>
5618
5619 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5620
277474ee
SM
56212020-06-25 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * inferior.h (struct inferior) <terminal>: Change type to
5624 gdb::unique_xmalloc_ptr<char>.
5625 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5626 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5627 field, adjust to unique pointer.
5628 (get_inferior_io_terminal): Adjust to unique pointer.
5629
6d74da72
AB
56302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5631
5632 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5633 registers, not just the known core set of registers.
5634
2e52d038
AB
56352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5636
5637 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5638 fflags, frm, and fcsr registers.
5639 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5640 restore groups.
5641 (riscv_tdesc_unknown_reg): New function.
5642 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5643 tdesc_use_registers.
5644 * riscv-tdep.h (struct gdbarch_tdep): Add
5645 unknown_csrs_first_regnum, unknown_csrs_count,
5646 duplicate_fflags_regnum, duplicate_frm_regnum, and
5647 duplicate_fcsr_regnum fields.
5648
be64fd07
AB
56492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5650
5651 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5652 callback, use the callback (when not null) to help number unknown
5653 registers.
5654 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5655 (tdesc_use_registers): Add extra parameter to declaration.
5656
3b9fce96
AB
56572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5658
5659 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5660 in the file.
5661 (class riscv_pending_register_alias): Likewise.
5662 (riscv_register_feature::register_info): Change 'required_p' field
5663 to 'required', and change its type. Add 'check' member function.
5664 (riscv_register_feature::register_info::check): Define new member
5665 function.
5666 (riscv_xreg_feature): Change initialisation of 'required' field.
5667 (riscv_freg_feature): Likewise.
5668 (riscv_virtual_feature): Likewise.
5669 (riscv_csr_feature): Likewise.
5670 (riscv_check_tdesc_feature): Take extra parameter, the csr
5671 tdesc_feature, rewrite the function to use the new
5672 riscv_register_feature::register_info::check function.
5673 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5674
865bad26
AB
56752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5676
5677 * features/Makefile: Remove all references to the deleted files
5678 below.
5679 * features/riscv/32bit-csr.c: Deleted.
5680 * features/riscv/32bit-csr.xml: Deleted.
5681 * features/riscv/64bit-csr.c: Deleted.
5682 * features/riscv/64bit-csr.xml: Deleted.
5683 * features/riscv/rebuild-csr-xml.sh: Deleted.
5684
ed69cbc8
AB
56852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5686
5687 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5688 whitespace error for declaration of names member variable.
5689 (struct riscv_register_feature): Add new prefer_first_name member
5690 variable, and fix whitespace error in declaration of registers.
5691 (riscv_xreg_feature): Initialize prefer_first_name field.
5692 (riscv_freg_feature): Likewise.
5693 (riscv_virtual_feature): Likewise.
5694 (riscv_csr_feature): Likewise.
5695 (riscv_register_name): Expand on comments. Remove register name
5696 modifications for CSR and virtual registers.
5697
4445e8f5
AB
56982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5699
5700 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5701 errors.
5702
767a879e
AB
57032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5704
5705 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5706 riscv-opc.h.
5707 (class riscv_pending_register_alias): New class.
5708 (riscv_check_tdesc_feature): Take vector of pending aliases and
5709 populate it as appropriate.
5710 (riscv_setup_register_aliases): Delete.
5711 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5712 to riscv_check_tdesc_feature in all cases. Use the vector to
5713 create the register aliases.
5714
bb6e55f3
RO
57152020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5716
5717 * sol2-tdep.c (sol2_static_transform_name): Remove.
5718 (sol2_init_abi): Don't register it.
5719 * gdbarch.sh (static_transform_name): Remove.
5720 * gdbarch.c, gdbarch.h: Regenerate.
5721
5722 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5723 gdbarch_static_transform_name.
5724 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5725 * stabsread.c (define_symbol) <'X'>: Remove.
5726 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5727 handling.
5728 <'V'>: Likewise.
5729 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5730 <'S'>: Remove call to gdbarch_static_transform_name.
5731
c6d36836
RO
57322020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5733
5734 * procfs.c (procfs_pre_trace): New function.
5735 (procfs_target::create_inferior): Pass it to fork_inferior.
5736
a7e6196b
RO
57372020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5738
5739 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5740 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5741 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5742 sol2-tdep.o, sparc-sol2-tdep.o.
5743 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5744 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5745 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5746 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5747
d412e696
RO
57482020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5749
5750 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5751 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5752 Call sol2_init_abi.
5753 Remove calls to set_gdbarch_skip_solib_resolver,
5754 set_gdbarch_core_pid_to_str.
5755 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5756 (i386_sol2_static_transform_name): Remove.
5757 (i386_sol2_init_abi): Call sol2_init_abi.
5758 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5759 set_gdbarch_static_transform_name,
5760 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5761 Use sol2_sigtramp_p.
5762 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5763 (sol2_sigtramp_p): New function.
5764 (sol2_static_transform_name): New function.
5765 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5766 (sol2_init_abi): New function.
5767 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5768 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5769 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5770 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5771 (sparc_sol2_static_transform_name): Remove.
5772 (sparc32_sol2_init_abi): Call sol2_init_abi.
5773 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5774 set_gdbarch_static_transform_name,
5775 set_gdbarch_skip_solib_resolver,
5776 set_gdbarch_core_pid_to_str.
5777 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5778 (sparc_sol2_static_transform_name): Remove
5779 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5780 call sol2_sigtramp_p.
5781 (sparc64_sol2_init_abi): Call sol2_init_abi.
5782 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5783 set_gdbarch_static_transform_name,
5784 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5785
a8654e7d
PW
57862020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5787
5788 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5789 * exec.c (validate_exec_file): If from_tty, set both
5790 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5791 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5792 and from_tty, unconditionally ask a confirmation.
5793
caa7fd04
AB
57942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5795
5796 * target-descriptions.c (tdesc_architecture_name): Protect against
5797 NULL pointer dereference.
5798 (maint_print_xml_tdesc_cmd): New function.
5799 (_initialize_target_descriptions): Register new 'maint print
5800 xml-tdesc' command and give it the filename completer.
5801 * NEWS: Mention new 'maint print xml-tdesc' command.
5802
fbf42f4e
AB
58032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5804
5805 * target-descriptions.c (class tdesc_compatible_info): New class.
5806 (struct target_desc): Change type of compatible vector.
5807 (tdesc_compatible_p): Update for change in type of
5808 target_desc::compatible.
5809 (tdesc_compatible_info_list): New function.
5810 (tdesc_compatible_info_arch_name): New function.
5811 (tdesc_add_compatible): Update for change in type of
5812 target_desc::compatible.
5813 (print_c_tdesc::visit_pre): Likewise.
5814
20821f4e
AB
58152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5816
5817 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5818 whitespace to underscore.
5819 (maint_print_c_tdesc_cmd): Use fake filename for target
5820 descriptions that came from the target.
5821 (_initialize_target_descriptions): Add filename command completion
5822 for 'maint print c-tdesc'.
5823
1fb5ee62
SM
58242020-06-23 Simon Marchi <simon.marchi@efficios.com>
5825
5826 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5827 lines.
5828
fc3ecb3e
SM
58292020-06-23 Simon Marchi <simon.marchi@efficios.com>
5830
5831 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5832 lines.
5833 (dwarf2_find_location_expression): Likewise.
5834 (call_site_parameter_matches): Likewise.
5835 (dwarf2_compile_expr_to_ax): Likewise.
5836 (disassemble_dwarf_expression): Likewise.
5837 (loclist_describe_location): Likewise.
5838
236ef034
PA
58392020-06-23 Pedro Alves <palves@redhat.com>
5840
5841 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5842 progspace-and-thread.h. Include scoped-mock-context.h instead.
5843 (register_to_value_test): Use scoped_mock_context.
5844 * regcache.c: Include "scoped-mock-context.h".
5845 (cooked_read_test): Don't error out if a target is already pushed.
5846 Use scoped_mock_context. Adjust.
5847 * scoped-mock-context.h: New file.
5848
39e7ecca
AB
58492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5850
5851 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5852 initializer.
5853 (ada_language::is_string_type_p): New member function.
5854 * c-lang.c (c_language_data): Delete la_is_string_type_p
5855 initializer.
5856 (cplus_language_data): Likewise.
5857 (asm_language_data): Likewise.
5858 (minimal_language_data): Likewise.
5859 * d-lang.c (d_language_data): Likewise.
5860 * f-lang.c (f_is_string_type_p): Delete function, implementation
5861 moved to f_language::is_string_type_p.
5862 (f_language_data): Delete la_is_string_type_p initializer.
5863 (f_language::is_string_type_p): New member function,
5864 implementation from f_is_string_type_p.
5865 * go-lang.c (go_is_string_type_p): Delete function, implementation
5866 moved to go_language::is_string_type_p.
5867 (go_language_data): Delete la_is_string_type_p initializer.
5868 (go_language::is_string_type_p): New member function,
5869 implementation from go_is_string_type_p.
5870 * language.c (language_defn::is_string_type_p): Define new member
5871 function.
5872 (default_is_string_type_p): Make static, add comment copied from
5873 header file.
5874 (unknown_language_data): Delete la_is_string_type_p initializer.
5875 (unknown_language::is_string_type_p): New member function.
5876 (auto_language_data): Delete la_is_string_type_p initializer.
5877 (auto_language::is_string_type_p): New member function.
5878 * language.h (language_data): Delete la_is_string_type_p field.
5879 (language_defn::is_string_type_p): Declare new function.
5880 (default_is_string_type_p): Delete desclaration, move comment to
5881 definition.
5882 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5883 moved to m2_language::is_string_type_p.
5884 (m2_language_data): Delete la_is_string_type_p initializer.
5885 (m2_language::is_string_type_p): New member function,
5886 implementation from m2_is_string_type_p.
5887 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5888 initializer.
5889 * opencl-lang.c (opencl_language_data): Likewise.
5890 * p-lang.c (pascal_is_string_type_p): Delete function,
5891 implementation moved to pascal_language::is_string_type_p.
5892 (pascal_language_data): Delete la_is_string_type_p initializer.
5893 (pascal_language::is_string_type_p): New member function,
5894 implementation from pascal_is_string_type_p.
5895 * rust-lang.c (rust_is_string_type_p): Delete function,
5896 implementation moved to rust_language::is_string_type_p.
5897 (rust_language_data): Delete la_is_string_type_p initializer.
5898 (rust_language::is_string_type_p): New member function,
5899 implementation from rust_is_string_type_p.
5900 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5901 is_string_type_p.
5902
4ffc13fb
AB
59032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5904
5905 * ada-lang.c (ada_language_data): Delete la_print_typedef
5906 initializer.
5907 (ada_language::print_typedef): New member function.
5908 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5909 (cplus_language_data): Likewise.
5910 (asm_language_data): Likewise.
5911 (minimal_language_data): Likewise.
5912 * d-lang.c (d_language_data): Likewise.
5913 * f-lang.c (f_language_data): Likewise.
5914 (f_language::print_typedef): New member function.
5915 * go-lang.c (go_language_data): Delete la_print_typedef
5916 initializer.
5917 * language.c (language_defn::print_typedef): Define member
5918 function.
5919 (unknown_language_data): Delete la_print_typedef initializer.
5920 (unknown_language::print_typedef): New member function.
5921 (auto_language_data): Delete la_print_typedef initializer.
5922 (auto_language::print_typedef): New member function.
5923 * language.h (language_data): Delete la_print_typedef field.
5924 (language_defn::print_typedef): Declare new member function.
5925 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5926 (default_print_typedef): Delete declaration.
5927 * m2-lang.c (m2_language_data): Delete la_print_typedef
5928 initializer.
5929 (m2_language::print_typedef): New member function.
5930 * objc-lang.c (objc_language_data): Delete la_print_typedef
5931 initializer.
5932 * opencl-lang.c (opencl_language_data): Likewise.
5933 * p-lang.c (pascal_language_data): Likewise.
5934 (pascal_language::print_typedef): New member function.
5935 * rust-lang.c (rust_print_typedef): Delete function,
5936 implementation moved to rust_language::print_typedef.
5937 (rust_language): Delete la_print_typedef initializer.
5938 (rust_language::print_typedef): New member function,
5939 implementation from rust_print_typedef.
5940 * typeprint.c (default_print_typedef): Delete.
5941
d711ee67
AB
59422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5943
5944 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5945 (ada_language::printstr): New member function.
5946 * c-lang.c (c_language_data): Delete la_printstr 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_printstr): Rename to f_language::printstr.
5952 (f_language_data): Delete la_printstr initializer.
5953 (f_language::printstr): New member function, implementation from
5954 f_printstr.
5955 * go-lang.c (go_language_data): Delete la_printstr initializer.
5956 * language.c (language_defn::printstr): Define new member
5957 function.
5958 (unk_lang_printstr): Delete.
5959 (unknown_language_data): Delete la_printstr initializer.
5960 (unknown_language::printstr): New member function.
5961 (auto_language_data): Delete la_printstr initializer.
5962 (auto_language::printstr): New member function.
5963 * language.h (language_data): Delete la_printstr field.
5964 (language_defn::printstr): Declare new member function.
5965 (LA_PRINT_STRING): Update call to printstr.
5966 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5967 (m2_language_data): Delete la_printstr initializer.
5968 (m2_language::printstr): New member function, implementation from
5969 m2_printstr.
5970 * objc-lang.c (objc_language_data): Delete la_printstr
5971 initializer.
5972 * opencl-lang.c (opencl_language_data): Likewise.
5973 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5974 (pascal_language_data): Delete la_printstr initializer.
5975 (pascal_language::printstr): New member function, implementation
5976 from pascal_printstr.
5977 * p-lang.h (pascal_printstr): Delete declaration.
5978 * rust-lang.c (rust_printstr): Update header comment.
5979 (rust_language_data): Delete la_printstr initializer.
5980 (rust_language::printstr): New member function.
5981
52b50f2c
AB
59822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5983
5984 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5985 (ada_language::printchar): New member function.
5986 * c-lang.c (c_language_data): Delete la_printchar initializer.
5987 (cplus_language_data): Likewise.
5988 (asm_language_data): Likewise.
5989 (minimal_language_data): Likewise.
5990 * d-lang.c (d_language_data): Likewise.
5991 * f-lang.c (f_printchar): Rename to f_language::printchar.
5992 (f_language_data): Delete la_printchar initializer.
5993 (f_language::printchar): New member function, implementation from
5994 f_printchar.
5995 * go-lang.c (go_language_data): Delete la_printchar initializer.
5996 * language.c (unk_lang_printchar): Delete.
5997 (language_defn::printchar): Define new member function.
5998 (unknown_language_data): Delete la_printchar initializer.
5999 (unknown_language::printchar): New member function.
6000 (auto_language_data): Delete la_printchar initializer.
6001 (auto_language::printchar): New member function.
6002 * language.h (language_data): Delete la_printchar field.
6003 (language_defn::printchar): Declare new member function.
6004 (LA_PRINT_CHAR): Update call to printchar.
6005 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6006 (m2_language::printchar): New member function.
6007 * objc-lang.c (objc_language_data): Delete la_printchar
6008 initializer.
6009 * opencl-lang.c (opencl_language_data): Likewise.
6010 * p-lang.c (pascal_language_data): Delete la_printchar
6011 initializer.
6012 (pascal_language::printchar): New member function.
6013 * rust-lang.c (rust_printchar): Rename to
6014 rust_language::printchar.
6015 (rust_language_data): Delete la_printchar initializer.
6016 (rust_language::printchar): New member function, implementation
6017 from rust_printchar.
6018
ec8cec5b
AB
60192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6020
6021 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6022 (ada_language_data): Delete la_emitchar initializer.
6023 (ada_language::emitchar): New member function, implementation from
6024 emit_char.
6025 * c-lang.c (c_language_data): Delete la_emitchar 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_emit_char): Rename to f_language::emitchar.
6031 (f_language_data): Delete la_emitchar initializer.
6032 (f_language::emitchar): New member function, implementation from
6033 f_emit_char.
6034 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6035 * language.c (unk_lang_emit_char): Delete.
6036 (language_defn::emitchar): New member function definition.
6037 (unknown_language_data): Delete la_emitchar initializer.
6038 (unknown_language::emitchar): New member function.
6039 (auto_language_data): Delete la_emitchar initializer.
6040 (auto_language::emitchar): New member function.
6041 * language.h (language_data): Delete la_emitchar field.
6042 (language_defn::emitchar): New member field declaration.
6043 (LA_EMIT_CHAR): Update call to emitchar.
6044 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6045 (m2_language_data): Delete la_emitchar initializer.
6046 (m2_language::emitchar): New member function, implementation from
6047 m2_emit_char.
6048 * objc-lang.c (objc_language_data): Delete la_emitchar
6049 initializer.
6050 * opencl-lang.c (opencl_language_data): Likewise.
6051 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6052 (pascal_language_data): Delete la_emitchar initializer.
6053 (pascal_language::emitchar): New member function, implementation
6054 from pascal_emit_char.
6055 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6056 (rust_language_data): Delete la_emitchar initializer.
6057 (rust_language::emitchar): New member function, implementation
6058 from rust_emitchar.
6059
1bf9c363
AB
60602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6061
6062 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6063 (ada_language_data): Delete la_post_parser initializer.
6064 (ada_language::post_parser): New member function.
6065 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6066 (cplus_language_data): Likewise.
6067 (asm_language_data): Likewise.
6068 (minimal_language_data): Likewise.
6069 * d-lang.c (d_language_data): Likewise.
6070 * f-lang.c (f_language_data): Likewise.
6071 * go-lang.c (go_language_data): Likewise.
6072 * language.c (unknown_language_data): Likewise.
6073 (auto_language_data): Likewise.
6074 * language.h (language_data): Delete la_post_parser field.
6075 (language_defn::post_parser): New member function.
6076 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6077 * objc-lang.c (objc_language_data): Likewise.
6078 * opencl-lang.c (opencl_language_data): Likewise.
6079 * p-lang.c (pascal_language_data): Likewise.
6080 * parse.c (parse_exp_in_context): Update call to post_parser.
6081 (null_post_parser): Delete definition.
6082 * parser-defs.h (null_post_parser): Delete declaration.
6083 * rust-lang.c (rust_language_data): Delete la_post_parser
6084 initializer.
6085
87afa652
AB
60862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6087
6088 * ada-lang.c (parse): Rename to ada_language::parser.
6089 (ada_language_data): Delete la_parser initializer.
6090 (ada_language::parser): New member function, implementation from
6091 parse.
6092 * c-lang.c (c_language_data): Delete la_parser initializer.
6093 (cplus_language_data): Likewise.
6094 (asm_language_data): Likewise.
6095 (minimal_language_data): Likewise.
6096 * d-lang.c (d_language_data): Likewise.
6097 (d_language::parser): New member function.
6098 * f-lang.c (f_language_data): Delete la_parser initializer.
6099 (f_language::parser): New member function.
6100 * go-lang.c (go_language_data): Delete la_parser initializer.
6101 (go_language::parser): New member function.
6102 * language.c (unk_lang_parser): Delete.
6103 (language_defn::parser): Define new member function.
6104 (unknown_language_data): Delete la_parser initializer.
6105 (unknown_language::parser): New member function.
6106 (auto_language_data): Delete la_parser initializer.
6107 (auto_language::parser): New member function.
6108 * language.h (language_data): Delete la_parser field.
6109 (language_defn::parser): Declare new member function.
6110 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6111 (m2_language::parser): New member function.
6112 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6113 * opencl-lang.c (opencl_language_data): Likewise.
6114 * p-lang.c (pascal_language_data): Likewise.
6115 (pascal_language::parser): New member function.
6116 * parse.c (parse_exp_in_context): Update call to parser.
6117 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6118 (rust_language::parser): New member function.
6119
37825800
AB
61202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6121
6122 * top.c (print_gdb_configuration): Print --with-python-libdir
6123 configuration value.
6124
5b860c93
PW
61252020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6126
6127 * NEWS: Mention change to the alias command.
6128
cf00cd6f
PW
61292020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6130
6131 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6132 (alias_command_completer)
6133 (make_alias_options_def_group): New functions.
6134 (alias_opts, alias_option_defs): New struct and array.
6135 (alias_usage_error): Update usage.
6136 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6137 Use option framework.
6138 (_initialize_cli_cmds): Update alias command help.
6139 Update aliases command help.
6140 (show_user):
6141 Add NULL for new default_args lookup_cmd argument.
6142 (valid_command_p): Rename to validate_aliased_command.
6143 Add NULL for new default_args lookup_cmd argument. Verify that the
6144 aliased_command has no default args.
6145 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6146 (lookup_cmd_1, lookup_cmd): New argument default_args.
6147 (add_alias_cmd):
6148 Add NULL for new default_args lookup_cmd argument.
6149 (print_help_for_command): Show default args under the layout
6150 alias some_alias = some_aliased_cmd some_alias_default_arg.
6151 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6152 xfree default_args in destructor.
6153 * cli/cli-script.c (process_next_line, do_define_command):
6154 Add NULL for new default_args lookup_cmd argument.
6155 * command.h: Declare new default_args argument in lookup_cmd
6156 and lookup_cmd_1.
6157 * completer.c (complete_line_internal_1):
6158 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6159 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6160 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6161 Likewise.
6162 * infcmd.c (_initialize_infcmd): Likewise.
6163 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6164 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6165 * python/py-param.c (add_setshow_generic): Likewise.
6166 * remote.c (_initialize_remote): Likewise.
6167 * top.c (execute_command): Prepend default_args if command has some.
6168 (set_verbose):
6169 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6170 * tracepoint.c (validate_actionline, encode_actions_1):
6171 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6172
bd920864
TBA
61732020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6174
6175 * jit.c (jit_read_descriptor): Use bool as the return type.
6176 (jit_breakpoint_re_set_internal): Use bool as the return type.
6177 Invert the return value logic; return true if the jit breakpoint
6178 has been successfully initialized.
6179 (jit_inferior_init): Update the call to
6180 jit_breakpoint_re_set_internal.
6181
f8098322
PA
61822020-06-22 Pedro Alves <palves@redhat.com>
6183
6184 PR gdb/25939
6185 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6186 Use the current inferior instead. Don't return
6187 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6188 wait again.
6189 * sol-thread.c (sol_thread_target::wait): Don't reference
6190 inferior_ptid.
6191 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6192 (sol_update_thread_list_callback): Use the current inferior's pid
6193 instead of inferior_ptid.
6194
196535a6
RO
61952020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6196
6197 * procfs.c: Cleanup many comments.
6198
6199 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6200 (AFTER_WATCHFLAG): Replace by value.
6201
6202 (MAIN_PROC_NAME_FORMAT): Inline ...
6203 (create_procinfo): ... here.
6204
6205 (procfs_debug_inferior): Remove SYS_exec handling.
6206 (syscall_is_exec): Likewise.
6207 (procfs_set_exec_trap): Likewise.
6208
6209 (syscall_is_lwp_exit): Inline in callers.
6210 (syscall_is_exit): Likewise.
6211 (syscall_is_exec): Likewise.
6212 (syscall_is_lwp_create): Likewise.
6213
6214 (invalidate_cache): Remove #if 0 code.
6215
6216 (make_signal_thread_runnable): Remove.
6217 (procfs_target::resume): Remove #if 0 code.
6218
cf6f3e86
RO
62192020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6220
6221 PR gdb/25939
6222 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6223 call ...
6224 (procfs_target::create_inferior): ... here.
6225
48e9cc84
PW
62262020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6227
6228 * exec.c (validate_exec_file): Ensure the build-id is up to
6229 date by calling reopen_exec_file (that checks file timestamp
6230 to decide to re-read the file).
6231
3922b302
PA
62322020-06-18 Pedro Alves <palves@redhat.com>
6233
6234 PR gdb/25412
6235 * gdbthread.h (delete_thread, delete_thread_silent)
6236 (find_thread_ptid): Update comments.
6237 * thread.c (current_thread_): New global.
6238 (is_current_thread): Move higher, and reimplement.
6239 (inferior_thread): Reimplement.
6240 (set_thread_exited): Use bool. Add assertions.
6241 (add_thread_silent): Simplify thread-reuse handling by always
6242 calling delete_thread.
6243 (delete_thread): Remove intro comment.
6244 (find_thread_ptid): Skip exited threads.
6245 (switch_to_thread_no_regs): Write to current_thread_.
6246 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6247 INFERIOR_PTID. Clear current_thread_.
6248
6dbdab44
PA
62492020-06-18 Pedro Alves <palves@redhat.com>
6250
6251 * aix-thread.c (pd_update): Use switch_to_thread.
6252
2da4b788
PA
62532020-06-18 Pedro Alves <palves@redhat.com>
6254
6255 * ravenscar-thread.c (ravenscar_thread_target): Update.
6256 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6257 (ravenscar_thread_target::add_active_thread): ... this. Don't
6258 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6259 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6260
50838d1b
PA
62612020-06-18 Pedro Alves <palves@redhat.com>
6262
6263 * nat/windows-nat.c (current_windows_thread): Remove.
6264 * nat/windows-nat.h (current_windows_thread): Remove.
6265 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6266 Adjust.
6267 (display_selectors): Adjust to fetch the current
6268 windows_thread_info based on inferior_ptid.
6269 (fake_create_process): No longer write to current_windows_thread.
6270 (windows_nat_target::get_windows_debug_event):
6271 Don't set inferior_ptid or current_windows_thread.
6272 (windows_nat_target::wait): Adjust to not rely on
6273 current_windows_thread.
6274 (do_initial_windows_stuff): Now a method of windows_nat_target.
6275 Switch to the last_ptid thread.
6276 (windows_nat_target::attach): Adjust.
6277 (windows_nat_target::detach): Use switch_to_no_thread instead of
6278 writing to inferior_ptid directly.
6279 (windows_nat_target::create_inferior): Adjust.
6280
31ce04e9
PA
62812020-06-18 Pedro Alves <palves@redhat.com>
6282
6283 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6284
1ee1a363
PA
62852020-06-18 Pedro Alves <palves@redhat.com>
6286
6287 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6288 after creating it, instead of writing to inferior_ptid. Don't
6289 write to inferior_ptid.
6290
6d350754
PA
62912020-06-18 Pedro Alves <palves@redhat.com>
6292
6293 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6294
5d971d48
PA
62952020-06-18 Pedro Alves <palves@redhat.com>
6296
6297 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6298 it, instead of writing to inferior_ptid.
6299
86e57d1b
PA
63002020-06-18 Pedro Alves <palves@redhat.com>
6301
6302 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6303 to inferior_ptid.
6304
f2e1c129
PA
63052020-06-18 Pedro Alves <palves@redhat.com>
6306
6307 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6308 instead of writing to inferior_ptid directly.
6309
60db1b85
PA
63102020-06-18 Pedro Alves <palves@redhat.com>
6311
6312 * corelow.c (core_target::close): Use switch_to_no_thread instead
6313 of writing to inferior_ptid directly.
6314 (add_to_thread_list, core_target_open): Use switch_to_thread
6315 instead of writing to inferior_ptid directly.
6316
fe7d6a8d
PA
63172020-06-18 Pedro Alves <palves@redhat.com>
6318
6319 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6320 inferior_ptid.
6321 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6322 inferior_ptid.
6323 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6324 inferior_ptid directly.
6325 (darwin_nat_target::init_thread_list): Switch to thread, instead
6326 of writing to inferior_ptid.
6327 (darwin_nat_target::attach): Don't write to inferior_ptid.
6328 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6329
975f8708
PA
63302020-06-18 Pedro Alves <palves@redhat.com>
6331
6332 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6333 thread.
6334 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6335 Instead use switch_to_thread.
6336 (gnu_nat_target::detach): Use switch_to_no_thread
6337 instead of writing to inferior_ptid directly. Used passed-in
6338 inferior instead of looking up the inferior by pid.
6339
1a204730
PA
63402020-06-18 Pedro Alves <palves@redhat.com>
6341
6342 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6343 inferior_ptid.
6344
ebe84f23
PA
63452020-06-18 Pedro Alves <palves@redhat.com>
6346
6347 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6348 inferior_ptid.
6349 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6350 thread.
6351 (nto_procfs_target::detach): Avoid referencing
6352 inferior_ptid. Use switch_to_no_thread instead of writing to
6353 inferior_ptid directly.
6354 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6355 instead of writing to inferior_ptid directly.
6356 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6357 to thread.
6358
191f02e5
PA
63592020-06-18 Pedro Alves <palves@redhat.com>
6360
6361 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6362 after creating it, instead of writing to inferior_ptid.
6363 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6364 to inferior_ptid directly.
6365 (gdbsim_target::wait): Don't write to inferior_ptid.
6366
0ac55310
PA
63672020-06-18 Pedro Alves <palves@redhat.com>
6368
6369 * remote.c (remote_target::remote_notice_new_inferior): Use
6370 switch_to_thread instead of writing to inferior_ptid directly.
6371 (remote_target::add_current_inferior_and_thread): Use
6372 switch_to_no_thread instead of writing to inferior_ptid directly.
6373 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6374 and switch_to_thread instead of using set_current_inferior or
6375 writing to inferior_ptid directly.
6376
5233f39b
PA
63772020-06-18 Pedro Alves <palves@redhat.com>
6378
6379 * tracectf.c (ctf_target_open): Switch to added thread instead of
6380 writing to inferior_ptid directly.
6381 (ctf_target::close): Use switch_to_no_thread instead of writing to
6382 inferior_ptid directly.
6383
087e161b
PA
63842020-06-18 Pedro Alves <palves@redhat.com>
6385
6386 * tracefile-tfile.c (tfile_target_open): Don't write to
6387 inferior_ptid directly, instead switch to added thread.
6388 (tfile_target::close): Use switch_to_no_thread instead of writing
6389 to inferior_ptid directly.
6390
7fb43e53
PA
63912020-06-18 Pedro Alves <palves@redhat.com>
6392
6393 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6394 (procfs_target::detach): Use switch_to_no_thread
6395 instead of writing to inferior_ptid directly.
6396 (do_attach): Change return type to void. Switch to the added
6397 thread.
6398 (procfs_target::create_inferior): Switch to the added thread.
6399 (procfs_do_thread_registers): Don't write to inferior_ptid.
6400
18493a00
PA
64012020-06-18 Pedro Alves <palves@redhat.com>
6402
6403 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6404 of writing to inferior_ptid.
6405 (scoped_restore_exited_inferior): Delete.
6406 (handle_vfork_child_exec_or_exit): Simplify using
6407 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6408 instead of writing to inferior_ptid.
6409 (THREAD_STOPPED_BY): Delete.
6410 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6411 (thread_stopped_by_hw_breakpoint): Delete.
6412 (save_waitstatus): Use
6413 scoped_restore_current_thread+switch_to_thread, and call
6414 target_stopped_by_watchpoint instead of
6415 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6416 instead of thread_stopped_by_sw_breakpoint, and
6417 target_stopped_by_hw_breakpoint instead of
6418 thread_stopped_by_hw_breakpoint.
6419 (handle_inferior_event)
6420 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6421 inferior_ptid directly, nor
6422 set_current_inferior/set_current_program_space. Use
6423 switch_to_thread / switch_to_inferior_no_thread instead.
6424
a0776b13
PA
64252020-06-18 Pedro Alves <palves@redhat.com>
6426
6427 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6428 instead of writing to inferior_ptid.
6429
6155c136
PA
64302020-06-18 Pedro Alves <palves@redhat.com>
6431
6432 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6433 added thread.
6434 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6435 to the added thread.
6436 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6437 instead of writing to inferior_ptid.
6438
c5316fc6
PA
64392020-06-18 Pedro Alves <palves@redhat.com>
6440
6441 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6442 (register_to_value_test): Mock a program_space too. Heap-allocate
6443 the address space. Don't write to inferior_ptid. Use
6444 switch_to_thread instead.
6445
8df01799
PA
64462020-06-18 Pedro Alves <palves@redhat.com>
6447
6448 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6449 Delete.
6450 (find_signalled_thread()): New, factored out from
6451 linux_make_corefile_notes and adjusted to handle exited threads.
6452 (linux_make_corefile_notes): Adjust to use the new
6453 find_signalled_thread.
6454
41792d68
PA
64552020-06-18 Pedro Alves <palves@redhat.com>
6456
6457 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6458 of saving/restoring inferior_ptid.
6459
612f258a
TT
64602020-06-17 Tom Tromey <tom@tromey.com>
6461
6462 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6463 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6464 declare.
6465 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6466
efb763a5
SM
64672020-06-15 Simon Marchi <simon.marchi@efficios.com>
6468
6469 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6470 of partial symtabs.
6471
2951f6c0
SM
64722020-06-17 Simon Marchi <simon.marchi@efficios.com>
6473
6474 * regformats/reg-arm.dat: Remove.
6475 * regformats/reg-bfin.dat: Remove.
6476 * regformats/reg-cris.dat: Remove.
6477 * regformats/reg-crisv32.dat: Remove.
6478 * regformats/reg-m32r.dat: Remove.
6479 * regformats/reg-tilegx.dat: Remove.
6480 * regformats/reg-tilegx32.dat: Remove.
6481
7d458ea5
SM
64822020-06-17 Simon Marchi <simon.marchi@efficios.com>
6483
6484 * features/Makefile (WHICH): Remove arm files.
6485 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6486 * regformats/arm/arm-with-neon.dat: Remove.
6487 * regformats/arm/arm-with-vfpv2.dat: Remove.
6488 * regformats/arm/arm-with-vfpv3.dat: Remove.
6489
3af96c0d
SM
64902020-06-17 Simon Marchi <simon.marchi@efficios.com>
6491
6492 * features/Makefile (XMLTOC): Remove rx.xml.
6493
b25e22fd
PA
64942020-06-17 Pedro Alves <palves@redhat.com>
6495
6496 * gdbthread.h (thread_control_state) <trap_expected> Update
6497 comments.
6498
a78a19b1
AB
64992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6500
6501 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6502 ada_language::lookup_symbol_nonlocal.
6503 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6504 (ada_language::lookup_symbol_nonlocal): New member function,
6505 implementation from ada_lookup_symbol_nonlocal.
6506 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6507 initializer.
6508 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6509 initializer.
6510 (cplus_language::lookup_symbol_nonlocal): New member function.
6511 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6512 (minimal_language_data) Likewise.
6513 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6514 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6515 initializer.
6516 (d_language::lookup_symbol_nonlocal): New member function.
6517 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6518 initializer.
6519 (f_language::lookup_symbol_nonlocal): New member function.
6520 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6521 initializer.
6522 * language.c (unknown_language_data): Likewise.
6523 (auto_language_data): Likewise.
6524 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6525 field.
6526 (language_defn::lookup_symbol_nonlocal): New member function.
6527 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6528 initializer.
6529 * objc-lang.c (objc_language_data): Likewise.
6530 * opencl-lang.c (opencl_language_data): Likewise.
6531 * p-lang.c (pascal_language_data): Likewise.
6532 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6533 rust_language::lookup_symbol_nonlocal.
6534 (rust_language_data): Delete la_lookup_symbol_nonlocal
6535 initializer.
6536 (rust_language::lookup_symbol_nonlocal): New member function,
6537 implementation from rust_lookup_symbol_nonlocal.
6538 * symtab.c (lookup_symbol_aux): Update call to
6539 lookup_symbol_nonlocal.
6540 (basic_lookup_symbol_nonlocal): Rename to...
6541 (language_defn::lookup_symbol_nonlocal): ...this, and update
6542 header comment. Remove language_defn parameter, and replace with
6543 uses of `this'.
6544 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6545
ebe2334e
AB
65462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6547
6548 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6549 initializer.
6550 (ada_language::value_print_inner): New member function.
6551 * c-lang.c (c_language_data): Delete la_value_print_inner
6552 initializer.
6553 (cplus_language_data): Likewise.
6554 (asm_language_data): Likewise.
6555 (minimal_language_data): Likewise.
6556 * d-lang.c (d_language_data): Likewise.
6557 (d_language::value_print_inner): New member function.
6558 * f-lang.c (f_language_data): Delete la_value_print_inner
6559 initializer.
6560 (f_language::value_print_inner): New member function.
6561 * f-lang.h (f_value_print_innner): Rename to...
6562 (f_value_print_inner): ...this (note spelling of 'inner').
6563 * f-valprint.c (f_value_print_innner): Rename to...
6564 (f_value_print_inner): ...this (note spelling of 'inner').
6565 * go-lang.c (go_language_data): Delete la_value_print_inner
6566 initializer.
6567 (go_language::value_print_inner): New member function.
6568 * language.c (language_defn::value_print_inner): Define new member
6569 function.
6570 (unk_lang_value_print_inner): Delete.
6571 (unknown_language_data): Delete la_value_print_inner initializer.
6572 (unknown_language::value_print_inner): New member function.
6573 (auto_language_data): Delete la_value_print_inner initializer.
6574 (auto_language::value_print_inner): New member function.
6575 * language.h (language_data): Delete la_value_print_inner field.
6576 (language_defn::value_print_inner): Delcare new member function.
6577 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6578 initializer.
6579 (m2_language::value_print_inner): New member function.
6580 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6581 initializer.
6582 * opencl-lang.c (opencl_language_data): Likewise.
6583 * p-lang.c (pascal_language_data): Likewise.
6584 (pascal_language::value_print_inner): New member function.
6585 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6586 initializer.
6587 (rust_language::value_print_inner): New member function.
6588 * valprint.c (do_val_print): Update call to value_print_inner.
6589
a1d1fa3e
AB
65902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6591
6592 * ada-lang.c (ada_language_data): Delete la_value_print
6593 initializer.
6594 (ada_language::value_print): New member function.
6595 * c-lang.c (c_language_data): Delete la_value_print initializer.
6596 (cplus_language_data): Likewise.
6597 (asm_language_data): Likewise.
6598 (minimal_language_data): Likewise.
6599 * d-lang.c (d_language_data): Likewise.
6600 * f-lang.c (f_language_data): Likewise.
6601 * go-lang.c (go_language_data): Likewise.
6602 * language.c (unk_lang_value_print): Delete.
6603 (language_defn::value_print): Define new member function.
6604 (unknown_language_data): Delete la_value_print initializer.
6605 (unknown_language::value_print): New member function.
6606 (auto_language_data): Delete la_value_print initializer.
6607 (auto_language::value_print): New member function.
6608 * language.h (language_data): Delete la_value_print field.
6609 (language_defn::value_print): Declare new member function.
6610 (LA_VALUE_PRINT): Update call to value_print.
6611 * m2-lang.c (m2_language_data): Delete la_value_print 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 (pascal_language::value_print): New member function.
6616 * rust-lang.c (rust_language_data): Delete la_value_print
6617 initializer.
6618
f16a9f57
AB
66192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6620
6621 * ada-lang.c (ada_watch_location_expression): Rename to
6622 ada_language::watch_location_expression.
6623 (ada_language_data): Delete la_watch_location_expression
6624 initializer.
6625 (ada_language::watch_location_expression): New member function,
6626 implementation from ada_watch_location_expression.
6627 * breakpoint.c (watch_command_1): Update call to
6628 watch_location_expression.
6629 * c-lang.c (c_watch_location_expression): Rename to
6630 language_defn::watch_location_expression.
6631 (c_language_data): Delete la_watch_location_expression
6632 initializer.
6633 (cplus_language_data): Likewise.
6634 (asm_language_data): Likewise.
6635 (minimal_language_data): Likewise.
6636 * c-lang.h (c_watch_location_expression): Delete declaration.
6637 * d-lang.c (d_language_data): Delete la_watch_location_expression
6638 initializer.
6639 * f-lang.c (f_language_data): Likewise.
6640 * go-lang.c (go_language_data): Likewise.
6641 * language.c (language_defn::watch_location_expression): Member
6642 function implementation from c_watch_location_expression.
6643 (unknown_language_data): Delete la_watch_location_expression
6644 initializer.
6645 (auto_language_data): Likewise.
6646 * language.h (language_data): Delete la_watch_location_expression
6647 field.
6648 (language_defn::watch_location_expression): Declare new member
6649 function.
6650 * m2-lang.c (m2_language_data): Delete
6651 la_watch_location_expression initializer.
6652 * objc-lang.c (objc_language_data): Likewise.
6653 * opencl-lang.c (opencl_language_data): Likewise.
6654 * p-lang.c (pascal_language_data): Likewise.
6655 * rust-lang.c (rust_watch_location_expression): Rename to
6656 rust_language::watch_location_expression.
6657 (rust_language_data): Delete la_watch_location_expression
6658 initializer.
6659 (rust_language::watch_location_expression): New member function,
6660 implementation from rust_watch_location_expression.
6661
7e56227d
AB
66622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6663
6664 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6665 ada_language::collect_symbol_completion_matches.
6666 (ada_language_data): Delete la_collect_symbol_completion_matches
6667 initializer.
6668 (ada_language::collect_symbol_completion_matches): New member
6669 function, implementation from
6670 ada_collect_symbol_completion_matches.
6671 * c-lang.c (c_language_data): Delete
6672 la_collect_symbol_completion_matches initializer.
6673 (cplus_language_data): Likewise.
6674 (asm_language_data): Likewise.
6675 (minimal_language_data): Likewise.
6676 * d-lang.c (d_language_data): Likewise.
6677 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6678 f_language::collect_symbol_completion_matches.
6679 (f_language_data): Delete la_collect_symbol_completion_matches
6680 initializer.
6681 (f_language::collect_symbol_completion_matches) New member
6682 function, implementation from f_collect_symbol_completion_matches.
6683 * go-lang.c (go_language_data): Delete
6684 la_collect_symbol_completion_matches initializer.
6685 * language.c (unknown_language_data): Likewise.
6686 (auto_language_data): Likewise.
6687 * language.h (language_data): Delete
6688 la_collect_symbol_completion_matches field.
6689 (language_defn::collect_symbol_completion_matches): New member
6690 function.
6691 * m2-lang.c (m2_language_data): Delete
6692 la_collect_symbol_completion_matches initializer.
6693 * objc-lang.c (objc_language_data): Likewise.
6694 * opencl-lang.c (opencl_language_data): Likewise.
6695 * p-lang.c (pascal_language_data): Likewise.
6696 * rust-lang.c (rust_language_data): Likewise.
6697 * symtab.c (default_collect_symbol_completion_matches): Delete.
6698 (collect_symbol_completion_matches): Update call to
6699 collect_symbol_completion_matches.
6700 (collect_symbol_completion_matches_type): Likewise.
6701 * symtab.h (default_collect_symbol_completion_matches): Delete
6702 declaration.
6703
53fc67f8
AB
67042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6705
6706 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6707 (ada_language_data): Delete la_word_break_characters initializer.
6708 (ada_language::word_break_characters): New member function.
6709 * c-lang.c (c_language_data): Delete la_word_break_characters
6710 initializer.
6711 (cplus_language_data): Likewise.
6712 (asm_language_data): Likewise.
6713 (minimal_language_data): Likewise.
6714 * completer.c: Update global comment.
6715 (advance_to_expression_complete_word_point): Update call to
6716 word_break_characters.
6717 (complete_files_symbols): Likewise.
6718 (complete_line_internal_1): Likewise.
6719 (default_completer_handle_brkchars): Likewise.
6720 (skip_quoted_chars): Likewise.
6721 * d-lang.c (d_language_data): Delete la_word_break_characters
6722 initializer.
6723 * f-lang.c (f_word_break_characters): Delete.
6724 (f_language_data): Delete la_word_break_characters initializer.
6725 (f_language::word_break_characters): New member function.
6726 * go-lang.c (go_language_data): Delete la_word_break_characters
6727 initializer.
6728 * language.c (unknown_language_data): Likewise.
6729 (auto_language_data): Likewise.
6730 * language.h (default_word_break_characters): Move declaration to
6731 earlier in the file.
6732 (language_data): Delete la_word_break_characters field.
6733 (language_defn::word_break_characters): New member function.
6734 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6735 initializer.
6736 * objc-lang.c (objc_language_data): Likewise.
6737 * opencl-lang.c (opencl_language_data): Likewise.
6738 * p-lang.c (pascal_language_data): Likewise.
6739 * rust-lang.c (rust_language_data): Likewise.
6740
c9debfb9
AB
67412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6742
6743 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6744 (ada_language_data): Delete la_get_symbol_name_matcher
6745 initializer.
6746 (language_defn::get_symbol_name_matcher_inner): New member
6747 function.
6748 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6749 initializer.
6750 (cplus_language_data): Likewise.
6751 (cplus_language::get_symbol_name_matcher_inner): New member
6752 function.
6753 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6754 (minimal_language_data): Likewise.
6755 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6756 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6757 initializer.
6758 * dictionary.c (iter_match_first_hashed): Update call to
6759 get_symbol_name_matcher.
6760 (iter_match_next_hashed): Likewise.
6761 (iter_match_next_linear): Likewise.
6762 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6763 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6764 initializer.
6765 (f_language::get_symbol_name_matcher_inner): New member function.
6766 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6767 initializer.
6768 * language.c (default_symbol_name_matcher): Update header comment,
6769 make static.
6770 (language_defn::get_symbol_name_matcher): New definition.
6771 (language_defn::get_symbol_name_matcher_inner): Likewise.
6772 (get_symbol_name_matcher): Delete.
6773 (unknown_language_data): Delete la_get_symbol_name_matcher
6774 initializer.
6775 (auto_language_data): Likewise.
6776 * language.h (language_data): Delete la_get_symbol_name_matcher
6777 field.
6778 (language_defn::get_symbol_name_matcher): New member function.
6779 (language_defn::get_symbol_name_matcher_inner): Likewise.
6780 (default_symbol_name_matcher): Delete declaration.
6781 * linespec.c (find_methods): Update call to
6782 get_symbol_name_matcher.
6783 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6784 initializer.
6785 * minsyms.c (lookup_minimal_symbol): Update call to
6786 get_symbol_name_matcher.
6787 (iterate_over_minimal_symbols): Likewise.
6788 * objc-lang.c (objc_language_data): Delete
6789 la_get_symbol_name_matcher initializer.
6790 * opencl-lang.c (opencl_language_data): Likewise.
6791 * p-lang.c (pascal_language_data): Likewise.
6792 * psymtab.c (psymbol_name_matches): Update call to
6793 get_symbol_name_matcher.
6794 * rust-lang.c (rust_language_data): Delete
6795 la_get_symbol_name_matcher initializer.
6796 * symtab.c (symbol_matches_search_name): Update call to
6797 get_symbol_name_matcher.
6798 (compare_symbol_name): Likewise.
6799
9a49ad8c
AB
68002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6801
6802 * ada-lang.c (ada_language_data): Delete la_compute_program
6803 initializer.
6804 * c-lang.c (c_language_data): Likewise.
6805 (c_language::compute_program): New member function.
6806 (cplus_language_data): Delete la_compute_program initializer.
6807 (cplus_language::compute_program): New member function.
6808 (asm_language_data): Delete la_compute_program initializer.
6809 (minimal_language_data): Likewise.
6810 * c-lang.h (c_compute_program): Update comment.
6811 (cplus_compute_program): Likewise.
6812 * compile/compile-c-support.c (c_compute_program): Likewise.
6813 (cplus_compute_program): Likewise.
6814 * compile/compile.c (compile_to_object): Update call to
6815 la_compute_program.
6816 * d-lang.c (d_language_data): Delete la_compute_program
6817 initializer.
6818 * f-lang.c (f_language_data): Likewise.
6819 * go-lang.c (go_language_data): Likewise.
6820 * language.c (unknown_language_data): Likewise.
6821 (auto_language_data): Likewise.
6822 * language.h (language_data): Delete la_compute_program field.
6823 (language_defn::compute_program): New member function.
6824 * m2-lang.c (m2_language_data): Delete la_compute_program
6825 initializer.
6826 * objc-lang.c (objc_language_data): Likewise.
6827 * opencl-lang.c (opencl_language_data): Likewise.
6828 * p-lang.c (pascal_language_data): Likewise.
6829 * rust-lang.c (rust_language_data): Likewise.
6830
eff93b4d
AB
68312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6832
6833 * ada-lang.c (ada_language_data) Delete
6834 la_class_name_from_physname initializer.
6835 * c-lang.c (c_language_data): Likewise.
6836 (cplus_language_data): Likewise.
6837 (cplus_language::class_name_from_physname): New member function.
6838 (asm_language_data): Delete la_class_name_from_physname
6839 initializer.
6840 (minimal_language_data): Likewise.
6841 * d-lang.c (d_language_data): Likewise.
6842 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6843 method on language_defn class.
6844 (guess_full_die_structure_name): Likewise.
6845 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6846 initializer.
6847 * go-lang.c (go_language_data): Likewise.
6848 * language.c (language_class_name_from_physname): Delete.
6849 (unk_lang_class_name): Delete.
6850 (unknown_language_data): Delete la_class_name_from_physname
6851 initializer.
6852 (auto_language_data): Likewise.
6853 * language.h (language_data): Delete la_class_name_from_physname
6854 field.
6855 (language_defn::class_name_from_physname): New function.
6856 (language_class_name_from_physname): Delete declaration.
6857 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6858 initializer.
6859 * objc-lang.c (objc_language_data): Likewise.
6860 * opencl-lang.c (opencl_language_data): Likewise.
6861 * p-lang.c (pascal_language_data): Likewise.
6862 * rust-lang.c (rust_language_data): Likewise.
6863
de543742
TT
68642020-06-16 Tom Tromey <tom@tromey.com>
6865
6866 * tui/tui-data.h (STATUS_NAME): New macro.
6867 * tui/tui-layout.c (tui_remove_some_windows)
6868 (initialize_known_windows, tui_register_window)
6869 (tui_layout_split::remove_windows, initialize_layouts)
6870 (tui_new_layout_command): Don't use hard-coded window names.
6871
a350efd4
TT
68722020-06-16 Tom Tromey <tom@tromey.com>
6873
6874 PR tui/25348:
6875 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6876 tui_initialize_readline. Only run once. Call rl_initialize.
6877 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6878 tui_initialize_readline.
6879 * tui/tui-io.c (tui_setup_io): Call
6880 tui_ensure_readline_initialized.
6881 * tui/tui-interp.c (tui_interp::init): Update.
6882
39ec0490
TT
68832020-06-16 Tom Tromey <tom@tromey.com>
6884
6885 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6886 Also preserve the status window.
6887
d2d1ea20
TT
68882020-06-16 Tom Tromey <tom@tromey.com>
6889
6890 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6891 where m_window==nullptr.
6892
66920317
TT
68932020-06-15 Tom Tromey <tromey@adacore.com>
6894
6895 * windows-nat.c (windows_nat::handle_output_debug_string):
6896 Update.
6897 (windows_nat::handle_ms_vc_exception): Update.
6898 * target.h (target_read_string): Change API.
6899 * target.c (target_read_string): Change API.
6900 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6901 Update.
6902 * solib-frv.c (frv_current_sos): Update.
6903 * solib-dsbt.c (dsbt_current_sos): Update.
6904 * solib-darwin.c (darwin_current_sos): Update.
6905 * linux-thread-db.c (inferior_has_bug): Update.
6906 * expprint.c (print_subexp_standard): Update.
6907 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6908 (ada_exception_message_1): Update.
6909
a5d871dd
TT
69102020-06-15 Tom Tromey <tromey@adacore.com>
6911
6912 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6913
670e35fa
TT
69142020-06-15 Tom Tromey <tromey@adacore.com>
6915
6916 * valprint.c (read_string): Update comment.
6917 * target.c (MIN): Remove.
6918 (target_read_string): Rewrite.
6919
f5272a3b
TT
69202020-06-15 Tom Tromey <tromey@adacore.com>
6921
6922 * corefile.c (read_memory_string): Remove.
6923 * ada-valprint.c (ada_value_print_ptr): Update.
6924 * ada-lang.h (ada_tag_name): Change return type.
6925 * ada-lang.c (type_from_tag): Update.
6926 (ada_tag_name_from_tsd): Change return type. Use
6927 target_read_string.
6928 (ada_tag_name): Likewise.
6929 * gdbcore.h (read_memory_string): Don't declare.
6930
2c074f49
HD
69312020-06-14 Hannes Domani <ssbssa@yahoo.de>
6932
6933 * symtab.c (rbreak_command): Ignore Windows drive colon.
6934
6a17d503
SM
69352020-06-12 Simon Marchi <simon.marchi@efficios.com>
6936
6937 * NEWS: Mention removed GDBserver host support.
6938
453c733f
NC
69392020-06-12 Nelson Chu <nelson.chu@sifive.com>
6940
6941 * features/riscv/rebuild-csr-xml.sh: Updated.
6942
2b4e6a3f
TT
69432020-06-11 Tom Tromey <tom@tromey.com>
6944
6945 PR gdb/18318:
6946 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6947
4412332f
JG
69482020-06-09 Jonny Grant <jg@jguk.org>
69492020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6950
6951 * main.c (captured_main_1): Don't print new line after help.
6952 (print_gdb_help): add mailing list and IRC channel information
6953 to --help. Add new lines between items in the footer. Remove
6954 quotes around bug url.
6955
2f33032a
KS
69562020-06-11 Keith Seitz <keiths@redhat.com>
6957
6958 PR gdb/21356
6959 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6960 Resolve typedefs for type length calculations.
6961
7ab96794
TV
69622020-06-10 Tom de Vries <tdevries@suse.de>
6963
6964 PR ada/24713
6965 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6966 (write_psymbols): Enable .gdb_index for ada.
6967 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6968 ada.
6969
e5f3ece2
TV
69702020-06-10 Tom de Vries <tdevries@suse.de>
6971
6972 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6973 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6974 namei" instead of "const char *name" argument.
6975 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6976 dw2_symtab_iter_init.
6977
940da03e
SM
69782020-06-08 Simon Marchi <simon.marchi@efficios.com>
6979
6980 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6981 to use type::field and field::type instead.
6982
b6cdac4b
SM
69832020-06-08 Simon Marchi <simon.marchi@efficios.com>
6984
6985 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6986 to use field::type instead.
6987
5d14b6e5
SM
69882020-06-08 Simon Marchi <simon.marchi@efficios.com>
6989
6990 * gdbtypes.h (struct field) <type, set_type>: New methods.
6991 Rename `type` field to...
6992 <m_type>: ... this. Change references throughout to use type or
6993 set_type methods.
6994 (FIELD_TYPE): Use field::type. Change call sites that modify
6995 the field's type to use field::set_type instead.
6996
3d967001
SM
69972020-06-08 Simon Marchi <simon.marchi@efficios.com>
6998
6999 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7000 to use type::index_type instead.
7001
262abc0d
SM
70022020-06-08 Simon Marchi <simon.marchi@efficios.com>
7003
7004 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7005 methods.
7006 (TYPE_INDEX_TYPE): Use type::index_type.
7007 * gdbtypes.c (create_array_type_with_stride): Likewise.
7008
82836c92
TT
70092020-06-07 Tom Tromey <tom@tromey.com>
7010
7011 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7012 parameter.
7013 (generic_value_print): Update.
7014
940dace9
AB
70152020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7016
7017 Revert commit 982a38f60b0.
7018 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7019
982a38f6
AB
70202020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7021
7022 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7023 avoid use after free.
7024
82f06518
TV
70252020-06-05 Tom de Vries <tdevries@suse.de>
7026
7027 * NEWS: Fix typos.
7028
f8c41851
SM
70292020-06-04 Simon Marchi <simon.marchi@efficios.com>
7030
7031 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7032 the per_bfd object.
7033 (dwarf2_read_debug_names): Likewise.
7034 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7035 object when re-using a per_bfd object with an index.
7036
f9b5d5ea
TV
70372020-06-03 Tom de Vries <tdevries@suse.de>
7038
7039 PR symtab/26046
7040 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7041 children for C++.
7042 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7043 DW_TAG_subprogram.
7044
f6eee2d0
AB
70452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7046
7047 * ada-lang.c (ada_language_data): Delete skip_trampoline
7048 initializer.
7049 * c-lang.c (c_language_data): Likewise.
7050 (cplus_language_data): Likewise.
7051 (cplus_language::skip_trampoline): New member function.
7052 (asm_language_data): Delete skip_trampoline initializer.
7053 (minimal_language_data): Likewise.
7054 * d-lang.c (d_language_data): Likewise.
7055 * f-lang.c (f_language_data): Likewise.
7056 * go-lang.c (go_language_data): Likewise.
7057 * language.c (unk_lang_trampoline): Delete function.
7058 (skip_language_trampoline): Update.
7059 (unknown_language_data): Delete skip_trampoline initializer.
7060 (auto_language_data): Likewise.
7061 * language.h (language_data): Delete skip_trampoline field.
7062 (language_defn::skip_trampoline): New function.
7063 * m2-lang.c (m2_language_data): Delete skip_trampoline
7064 initializer.
7065 * objc-lang.c (objc_skip_trampoline): Delete function, move
7066 implementation to objc_language::skip_trampoline.
7067 (objc_language_data): Delete skip_trampoline initializer.
7068 (objc_language::skip_trampoline): New member function with
7069 implementation from objc_skip_trampoline.
7070 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7071 initializer.
7072 * p-lang.c (pascal_language_data): Likewise.
7073 * rust-lang.c (rust_language_data): Likewise.
7074
0a50df5d
AB
70752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7076
7077 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7078 (ada_language::demangle): New member function.
7079 * c-lang.c (c_language_data): Delete la_demangle initializer.
7080 (cplus_language_data): Delete la_demangle initializer.
7081 (cplus_language::demangle): New member function.
7082 (asm_language_data): Delete la_demangle initializer.
7083 (minimal_language_data): Delete la_demangle initializer.
7084 * d-lang.c (d_language_data): Delete la_demangle initializer.
7085 (d_language::demangle): New member function.
7086 * f-lang.c (f_language_data): Delete la_demangle initializer.
7087 (f_language::demangle): New member function.
7088 * go-lang.c (go_language_data): Delete la_demangle initializer.
7089 (go_language::demangle): New member function.
7090 * language.c (language_demangle): Update.
7091 (unk_lang_demangle): Delete.
7092 (unknown_language_data): Delete la_demangle initializer.
7093 (unknown_language::demangle): New member function.
7094 (auto_language_data): Delete la_demangle initializer.
7095 (auto_language::demangle): New member function.
7096 * language.h (language_data): Delete la_demangle field.
7097 (language_defn::demangle): New function.
7098 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7099 * objc-lang.c (objc_language_data): Delete la_demangle
7100 initializer.
7101 (objc_language::demangle): New member function.
7102 * opencl-lang.c (opencl_language_data): Delete la_demangle
7103 initializer.
7104 * p-lang.c (pascal_language_data): Likewise.
7105 * rust-lang.c (rust_language_data): Likewise.
7106 (rust_language::demangle): New member function.
7107
fbfb0a46
AB
71082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7109
7110 * ada-lang.c (ada_language_data): Delete la_print_type
7111 initializer.
7112 (ada_language::print_type): New member function.
7113 * c-lang.c (c_language_data): Delete la_print_type initializer.
7114 (c_language::print_type): New member function.
7115 (cplus_language_data): Delete la_print_type initializer.
7116 (cplus_language::print_type): New member function.
7117 (asm_language_data): Delete la_print_type initializer.
7118 (asm_language::print_type): New member function.
7119 (minimal_language_data): Delete la_print_type initializer.
7120 (minimal_language::print_type): New member function.
7121 * d-lang.c (d_language_data): Delete la_print_type initializer.
7122 (d_language::print_type): New member function.
7123 * f-lang.c (f_language_data): Delete la_print_type initializer.
7124 (f_language::print_type): New member function.
7125 * go-lang.c (go_language_data): Delete la_print_type initializer.
7126 (go_language::print_type): New member function.
7127 * language.c (unk_lang_print_type): Delete.
7128 (unknown_language_data): Delete la_print_type initializer.
7129 (unknown_language::print_type): New member function.
7130 (auto_language_data): Delete la_print_type initializer.
7131 (auto_language::print_type): New member function.
7132 * language.h (language_data): Delete la_print_type field.
7133 (language_defn::print_type): New function.
7134 (LA_PRINT_TYPE): Update.
7135 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7136 (m2_language::print_type): New member function.
7137 * objc-lang.c (objc_language_data): Delete la_print_type
7138 initializer.
7139 (objc_language::print_type): New member function.
7140 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7141 to opencl_language::print_type.
7142 (opencl_language_data): Delete la_print_type initializer.
7143 (opencl_language::print_type): New member function, implementation
7144 from opencl_print_type.
7145 * p-lang.c (pascal_language_data): Delete la_print_type
7146 initializer.
7147 (pascal_language::print_type): New member function.
7148 * rust-lang.c (rust_print_type): Delete, implementation moved to
7149 rust_language::print_type.
7150 (rust_language_data): Delete la_print_type initializer.
7151 (rust_language::print_type): New member function, implementation
7152 from rust_print_type.
7153
6f827019
AB
71542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7155
7156 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7157 implementation moves to...
7158 (ada_language::sniff_from_mangled_name): ...here. Update return
7159 type.
7160 (ada_language_data): Delete la_sniff_from_mangled_name
7161 initializer.
7162 * c-lang.c (c_language_data): Likewise.
7163 (cplus_language_data): Likewise.
7164 (cplus_language::sniff_from_mangled_name): New member function,
7165 implementation taken from gdb_sniff_from_mangled_name.
7166 (asm_language_data): Delete la_sniff_from_mangled_name
7167 initializer.
7168 (minimal_language_data): Likewise.
7169 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7170 implementation moves to cplus_language::sniff_from_mangled_name.
7171 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7172 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7173 moves to...
7174 (d_language::sniff_from_mangled_name): ...here.
7175 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7176 * f-lang.c (f_language_data): Likewise.
7177 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7178 moves to...
7179 (go_language::sniff_from_mangled_name): ...here.
7180 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7181 * language.c (language_sniff_from_mangled_name): Delete.
7182 (unknown_language_data): Delete la_sniff_from_mangled_name
7183 initializer.
7184 (auto_language_data): Likewise.
7185 * language.h (language_data): Delete la_sniff_from_mangled_name
7186 field.
7187 (language_defn::sniff_from_mangled_name): New function.
7188 (language_sniff_from_mangled_name): Delete declaration.
7189 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7190 field.
7191 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7192 implementation moves to...
7193 (objc_language::sniff_from_mangled_name): ...here.
7194 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7195 * opencl-lang.c (opencl_language_data): Likewise.
7196 * p-lang.c (pascal_language_data): Likewise.
7197 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7198 implementation moves to...
7199 (rust_language::sniff_from_mangled_name): ...here.
7200 (rust_language_data): Delete la_sniff_from_mangled_name
7201 initializer.
7202 * symtab.c (symbol_find_demangled_name): Call
7203 sniff_from_mangled_name member function.
7204
fb8006fd
AB
72052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7206
7207 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7208 initializer.
7209 * c-lang.c (c_language_data): Likewise.
7210 (cplus_language_data): Likewise.
7211 (cplus_language::search_name_hash): New member function.
7212 (asm_language_data): Delete la_search_name_hash initializer.
7213 (minimal_language_data): Likewise.
7214 * d-lang.c (d_language_data): Likewise.
7215 * dictionary.c (default_search_name_hash): Rename to...
7216 (language_defn::search_name_hash): ...this.
7217 * f-lang.c (f_language_data): Likewise.
7218 (f_language::search_name_hash): New member function.
7219 * go-lang.c (go_language_data): Delete la_search_name_hash
7220 initializer.
7221 * language.c (unknown_language_data): Likewise.
7222 (auto_language_data): Likewise.
7223 * language.h (struct language_data): Delete la_search_name_hash
7224 field.
7225 (language_defn::search_name_hash): Declare new member function.
7226 (default_search_name_hash): Delete declaration.
7227 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7228 initializer.
7229 * objc-lang.c (objc_language_data): Likewise.
7230 * opencl-lang.c (opencl_language_data): Likewise.
7231 * p-lang.c (pascal_language_data): Likewise.
7232 * rust-lang.c (rust_language_data): Likewise.
7233 * symtab.c (search_name_hash): Update call.
7234
8e25bafe
AB
72352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7236
7237 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7238 initializer.
7239 * c-lang.c (class compile_instance): Declare.
7240 (c_language_data): Delete la_get_compile_instance initializer.
7241 (c_language::get_compile_instance): New member function.
7242 (cplus_language_data): Delete la_get_compile_instance initializer.
7243 (cplus_language::get_compile_instance): New member function.
7244 (asm_language_data): Delete la_get_compile_instance initializer.
7245 (minimal_language_data): Likewise.
7246 * c-lang.h (c_get_compile_context): Update comment.
7247 (cplus_get_compile_context): Update comment.
7248 * compile/compile.c (compile_to_object): Update calls, don't rely
7249 on function pointer being NULL.
7250 * d-lang.c (d_language_data): Delete la_get_compile_instance
7251 initializer.
7252 * f-lang.c (f_language_data): Likewise.
7253 * go-lang.c (go_language_data): Likewise.
7254 * language.c (unknown_language_data): Likewise.
7255 (auto_language_data): Likewise.
7256 * language.h (language_data): Delete la_get_compile_instance field.
7257 (language_defn::get_compile_instance): New member function.
7258 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7259 initializer.
7260 * objc-lang.c (objc_language_data): Likewise.
7261 * opencl-lang.c (opencl_language_data): Likewise.
7262 * p-lang.c (pascal_language_data): Likewise.
7263 * rust-lang.c (rust_language_data): Likewise.
7264
4009ee92
AB
72652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7266
7267 * ada-lang.c (ada_add_all_symbols): Update comment.
7268 (ada_iterate_over_symbols): Delete, move implementation to...
7269 (ada_language::iterate_over_symbols): ...here, a new member
7270 function, rewrite to use range based for loop.
7271 (ada_language_data): Delete la_iterate_over_symbols initializer.
7272 * c-lang.c (c_language_data): Likewise.
7273 (cplus_language_data): Likewise.
7274 (asm_language_data): Likewise.
7275 (minimal_language_data): Likewise.
7276 * d-lang.c (d_language_data): Likewise.
7277 * f-lang.c (f_language_data): Likewise.
7278 * go-lang.c (go_language_data): Likewise.
7279 * language.c (unknown_language_data): Likewise.
7280 (auto_language_data): Likewise.
7281 * language.h (language_data): Delete la_iterate_over_symbols field.
7282 (language_defn::iterate_over_symbols): New member function.
7283 (LA_ITERATE_OVER_SYMBOLS): Update.
7284 * linespec.c (iterate_over_all_matching_symtabs): Update.
7285 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7286 initializer.
7287 * objc-lang.c (objc_language_data): Likewise.
7288 * opencl-lang.c (opencl_language_data): Likewise.
7289 * p-lang.c (pascal_language_data): Likewise.
7290 * rust-lang.c (rust_language_data): Likewise.
7291
54f4ca46
AB
72922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7293
7294 * ada-lang.c (ada_language_data): Delete
7295 la_lookup_transparent_type initializer.
7296 * c-lang.c (c_language_data): Likewise.
7297 (cplus_language_data): Likewise.
7298 (cplus_language::lookup_transparent_type): New member function.
7299 (asm_language_data): Delete la_lookup_transparent_type
7300 initializer.
7301 (minimal_language_data): Likewise.
7302 * d-lang.c (d_language_data): Likewise.
7303 * f-lang.c (f_language_data): Likewise.
7304 * go-lang.c (go_language_data): Likewise.
7305 * language.c (unknown_language_data): Likewise.
7306 (auto_language_data): Likewise.
7307 * language.h (struct language_data): Delete
7308 la_lookup_transparent_type field.
7309 (language_defn::lookup_transparent_type): New member function.
7310 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7311 initializer.
7312 * objc-lang.c (objc_language_data): Likewise.
7313 * opencl-lang.c (opencl_language_data): Likewise.
7314 * p-lang.c (pascal_language_data): Likewise.
7315 * rust-lang.c (rust_language_data): Likewise.
7316 * symtab.c (symbol_matches_domain): Update call.
7317
1fb314aa
AB
73182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7319
7320 * ada-lang.c (ada_language_arch_info): Delete function, move
7321 implementation to...
7322 (ada_language::language_arch_info): ...here, a new member
7323 function.
7324 (ada_language_data): Delete la_language_arch_info.
7325 * c-lang.c (c_language_data): Likewise.
7326 (c_language::language_arch_info): New member function.
7327 (cplus_language_arch_info): Delete function, move
7328 implementation to...
7329 (cplus_language::language_arch_info): ...here, a new member
7330 function.
7331 (cplus_language_data): Delete la_language_arch_info.
7332 (asm_language_data): Likewise.
7333 (asm_language::language_arch_info): New member function.
7334 (minimal_language_data): Delete la_language_arch_info.
7335 (minimal_language::language_arch_info): New member function.
7336 * d-lang.c (d_language_arch_info): Delete function, move
7337 implementation to...
7338 (d_language::language_arch_info): ...here, a new member
7339 function.
7340 (d_language_data): Delete la_language_arch_info.
7341 * f-lang.c (f_language_arch_info): Delete function, move
7342 implementation to...
7343 (f_language::language_arch_info): ...here, a new member
7344 function.
7345 (f_language_data): Delete la_language_arch_info.
7346 * go-lang.c (go_language_arch_info): Delete function, move
7347 implementation to...
7348 (go_language::language_arch_info): ...here, a new member
7349 function.
7350 (go_language_data): Delete la_language_arch_info.
7351 * language.c (unknown_language_data): Likewise.
7352 (unknown_language::language_arch_info): New member function.
7353 (auto_language_data): Delete la_language_arch_info.
7354 (auto_language::language_arch_info): New member function.
7355 (language_gdbarch_post_init): Update call to
7356 la_language_arch_info.
7357 * language.h (language_data): Delete la_language_arch_info
7358 function pointer.
7359 (language_defn::language_arch_info): New function.
7360 * m2-lang.c (m2_language_arch_info): Delete function, move
7361 implementation to...
7362 (m2_language::language_arch_info): ...here, a new member
7363 function.
7364 (m2_language_data): Delete la_language_arch_info.
7365 * objc-lang.c (objc_language_arch_info): Delete function, move
7366 implementation to...
7367 (objc_language::language_arch_info): ...here, a new member
7368 function.
7369 (objc_language_data): Delete la_language_arch_info.
7370 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7371 implementation to...
7372 (opencl_language::language_arch_info): ...here, a new member
7373 function.
7374 (opencl_language_data): Delete la_language_arch_info.
7375 * p-lang.c (pascal_language_arch_info): Delete function, move
7376 implementation to...
7377 (pascal_language::language_arch_info): ...here, a new member
7378 function.
7379 (pascal_language_data): Delete la_language_arch_info.
7380 * rust-lang.c (rust_language_arch_info): Delete function, move
7381 implementation to...
7382 (rust_language::language_arch_info): ...here, a new member
7383 function.
7384 (rust_language_data): Delete la_language_arch_info.
7385
48448202
AB
73862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7387
7388 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7389 initializer.
7390 * c-lang.c (c_language_data): Likewise.
7391 (cplus_language_data): Likewise.
7392 (cplus_language::pass_by_reference_info): New method.
7393 (asm_language_data): Delete la_pass_by_reference initializer.
7394 (minimal_language_data): Likewise.
7395 * cp-abi.c (cp_pass_by_reference): Remove use of
7396 default_pass_by_reference.
7397 * d-lang.c (d_language_data): Likewise.
7398 * f-lang.c (f_language_data): Likewise.
7399 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7400 default_pass_by_reference.
7401 * go-lang.c (go_language_data): Likewise.
7402 * language.c (language_pass_by_reference): Update.
7403 (default_pass_by_reference): Delete.
7404 (unknown_language_data): Delete la_pass_by_reference
7405 initializer.
7406 (auto_language_data): Likewise.
7407 * language.h (struct language_data): Delete la_pass_by_reference
7408 field.
7409 (language_defn::pass_by_reference_info): New member function.
7410 (default_pass_by_reference): Delete declaration.
7411 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7412 initializer.
7413 * objc-lang.c (objc_language_data): Likewise.
7414 * opencl-lang.c (opencl_language_data): Likewise.
7415 * p-lang.c (pascal_language_data): Likewise.
7416 * rust-lang.c (rust_language_data): Likewise.
7417
15e5fd35
AB
74182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7419
7420 * ada-lang.c (ada_read_var_value): Delete function, move
7421 implementation to...
7422 (ada_language::read_var_value): ...here.
7423 (ada_language_data): Delete la_read_var_value initializer.
7424 * c-lang.c (c_language_data): Likewise.
7425 (cplus_language_data): Likewise.
7426 (minimal_language_data): Likewise.
7427 * d-lang.c (d_language_data): Likewise.
7428 * f-lang.c (f_language_data): Likewise.
7429 * findvar.c (default_read_var_value): Rename to...
7430 (language_defn::read_var_value): ...this.
7431 * findvar.c (read_var_value): Update header comment, and change to
7432 call member function instead of function pointer.
7433 * go-lang.c (go_language_data): Likewise.
7434 * language.c (unknown_language_data): Delete la_read_var_value
7435 initializer.
7436 (auto_language_data): Likewise.
7437 * language.h (struct language_data): Delete la_read_var_value
7438 field.
7439 (language_defn::read_var_value): New member function.
7440 (default_read_var_value): Delete declaration.
7441 * m2-lang.c (m2_language_data): Delete la_read_var_value
7442 initializer.
7443 * objc-lang.c (objc_language_data): Likewise.
7444 * opencl-lang.c (opencl_language_data): Likewise.
7445 * p-lang.c (pascal_language_data): Likewise.
7446 * rust-lang.c (rust_language_data): Likewise.
7447 * value.h (default_read_var_value): Delete declaration.
7448
5bd40f2a
AB
74492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7450
7451 * ada-lang.c (ada_print_array_index): Delete function, move
7452 implementation to...
7453 (ada_language::print_array_index): ...here.
7454 (ada_language_data): Delete la_print_array_index initializer.
7455 * c-lang.c (c_language_data): Likewise.
7456 (cplus_language_data): Likewise.
7457 (minimal_language_data): Likewise.
7458 * d-lang.c (d_language_data): Likewise.
7459 * f-lang.c (f_language_data): Likewise.
7460 * go-lang.c (go_language_data): Likewise.
7461 * language.c (default_print_array_index): Delete function, move
7462 implementation to...
7463 (language_defn::print_array_index): ...here.
7464 (unknown_language_data): Delete la_print_array_index initializer.
7465 (auto_language_data): Likewise.
7466 * language.h (struct language_data): Delete la_print_array_index
7467 field.
7468 (language_defn::print_array_index): New member function.
7469 (LA_PRINT_ARRAY_INDEX): Update.
7470 (default_print_array_index): Delete declaration.
7471 * m2-lang.c (m2_language_data): Delete la_print_array_index
7472 initializer.
7473 * objc-lang.c (objc_language_data): Likewise.
7474 * opencl-lang.c (opencl_language_data): Likewise.
7475 * p-lang.c (pascal_language_data): Likewise.
7476 * rust-lang.c (rust_language_data): Likewise.
7477
0874fd07
AB
74782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7479
7480 * gdb/ada-lang.c (ada_language_defn): Convert to...
7481 (ada_language_data): ...this.
7482 (class ada_language): New class.
7483 (ada_language_defn): New static global.
7484 * gdb/c-lang.c (c_language_defn): Convert to...
7485 (c_language_data): ...this.
7486 (class c_language): New class.
7487 (c_language_defn): New static global.
7488 (cplus_language_defn): Convert to...
7489 (cplus_language_data): ...this.
7490 (class cplus_language): New class.
7491 (cplus_language_defn): New static global.
7492 (asm_language_defn): Convert to...
7493 (asm_language_data): ...this.
7494 (class asm_language): New class.
7495 (asm_language_defn): New static global.
7496 (minimal_language_defn): Convert to...
7497 (minimal_language_data): ...this.
7498 (class minimal_language): New class.
7499 (minimal_language_defn): New static global.
7500 * gdb/d-lang.c (d_language_defn): Convert to...
7501 (d_language_data): ...this.
7502 (class d_language): New class.
7503 (d_language_defn): New static global.
7504 * gdb/f-lang.c (f_language_defn): Convert to...
7505 (f_language_data): ...this.
7506 (class f_language): New class.
7507 (f_language_defn): New static global.
7508 * gdb/go-lang.c (go_language_defn): Convert to...
7509 (go_language_data): ...this.
7510 (class go_language): New class.
7511 (go_language_defn): New static global.
7512 * gdb/language.c (unknown_language_defn): Remove declaration.
7513 (current_language): Initialize to nullptr, real initialization is
7514 moved to _initialize_language.
7515 (languages): Delete global.
7516 (language_defn::languages): Define.
7517 (set_language_command): Use language_defn::languages.
7518 (set_language): Likewise.
7519 (range_error): Likewise.
7520 (language_enum): Likewise.
7521 (language_def): Likewise.
7522 (add_set_language_command): Use language_def::languages for the
7523 language list, and language_def to lookup language pointers.
7524 (skip_language_trampoline): Use language_defn::languages.
7525 (unknown_language_defn): Convert to...
7526 (unknown_language_data): ...this.
7527 (class unknown_language): New class.
7528 (unknown_language_defn): New static global.
7529 (auto_language_defn): Convert to...
7530 (auto_language_data): ...this.
7531 (class auto_language): New class.
7532 (auto_language_defn): New static global.
7533 (language_gdbarch_post_init): Use language_defn::languages.
7534 (_initialize_language): Initialize current_language.
7535 * gdb/language.h (struct language_defn): Rename to...
7536 (struct language_data): ...this.
7537 (struct language_defn): New.
7538 (auto_language_defn): Delete.
7539 (unknown_language_defn): Delete.
7540 (minimal_language_defn): Delete.
7541 (ada_language_defn): Delete.
7542 (asm_language_defn): Delete.
7543 (c_language_defn): Delete.
7544 (cplus_language_defn): Delete.
7545 (d_language_defn): Delete.
7546 (f_language_defn): Delete.
7547 (go_language_defn): Delete.
7548 (m2_language_defn): Delete.
7549 (objc_language_defn): Delete.
7550 (opencl_language_defn): Delete.
7551 (pascal_language_defn): Delete.
7552 (rust_language_defn): Delete.
7553 * gdb/m2-lang.c (m2_language_defn): Convert to...
7554 (m2_language_data): ...this.
7555 (class m2_language): New class.
7556 (m2_language_defn): New static global.
7557 * gdb/objc-lang.c (objc_language_defn): Convert to...
7558 (objc_language_data): ...this.
7559 (class objc_language): New class.
7560 (objc_language_defn): New static global.
7561 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7562 (opencl_language_data): ...this.
7563 (class opencl_language): New class.
7564 (opencl_language_defn): New static global.
7565 * gdb/p-lang.c (pascal_language_defn): Convert to...
7566 (pascal_language_data): ...this.
7567 (class pascal_language): New class.
7568 (pascal_language_defn): New static global.
7569 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7570 language pointer, update comment format.
7571 * gdb/rust-lang.c (rust_language_defn): Convert to...
7572 (rust_language_data): ...this.
7573 (class rust_language): New class.
7574 (rust_language_defn): New static global.
7575
1313c56e
AB
75762020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7577
7578 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7579 member variable.
7580 <m_stmt_at_address>: New member variable.
7581 (lnp_state_machine::record_line): Don't record some lines, update
7582 tracking of is_stmt at the same address.
7583 (lnp_state_machine::lnp_state_machine): Initialise new member
7584 variables.
7585
b7ed9f3d
ST
75862020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7587
7588 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7589 "-include gnu-nat-mig.h".
7590 * gnu-nat-mig.h: New file.
7591 * gnu-nat.c: Include "gnu-nat-mig.h".
7592 (exc_server, msg_reply_server, notify_server,
7593 process_reply_server): Remove declarations.
7594
14a8ad62
ST
75952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7596
7597 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7598 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7599 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7600 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7601 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7602 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7603 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7604 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7605 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7606 to gnu_nat_target class.
7607 * gnu-nat.c: Likewise.
7608 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7609 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7610 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7611 object.
7612 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7613 instead of `gnu_target'.
7614
0af5e106
ST
76152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7616
7617 * i386-gnu-tdep.c: Include "gdbcore.h"
7618 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7619 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7620 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7621 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7622 i386_gnu_sigcontext_addr): New functions
7623 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7624 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7625 tdep.
7626
078f2fc9
ST
76272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7628
7629 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7630 before fork_inferior call. Avoid calling it if target_is_pushed returns
7631 true.
7632
53dff92c
ST
76332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7634
7635 * gnu-nat.h (gnu_target): New variable declaration.
7636 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7637 gnu_target.
7638 * gnu-nat.c (gnu_target): New variable.
7639 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7640 add_thread_silent, and add_thread calls.
7641 (gnu_nat_target::create_inferior): Pass gnu_target to
7642 add_thread_silent, thread_change_ptid call.
7643 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7644 call.
7645
5a8b8627
ST
76462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7647
7648 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7649 (gnu_nat_target::find_memory_regions): Remove unused
7650 `old_address' variable.
7651
366f550a
ST
76522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7653
7654 * gnu-nat.c: Include "gdbarch.h".
7655
f14871bf
ST
76562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7657
7658 * reply_mig_hack.awk (Error return): Cast function through
7659 void *, to bypass compiler function call check.
7660
c6887cfb
ST
76612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7662
7663 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7664 $(srcdir)/reply_mig_hack.awk.
7665
6930bffe
ST
76662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7667
7668 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7669
112c22ed
JG
76702020-05-30 Jonny Grant <jg@jguk.org>
7671
7672 * configure.ac (ACX_BUGURL): change bug URL to https.
7673
f68f85b5
PA
76742020-05-30 Pedro Alves <palves@redhat.com>
7675
7676 * cp-support.c (replace_typedefs_template): New.
7677 (replace_typedefs_qualified_name): Handle
7678 DEMANGLE_COMPONENT_TEMPLATE.
7679
976ca316
SM
76802020-05-29 Simon Marchi <simon.marchi@efficios.com>
7681
7682 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7683 dwarf2/index-cache.h, dwarf2/index-write.c,
7684 dwarf2/index-write.h, dwarf2/line-header.c,
7685 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7686 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7687 variables and fields from `dwarf2_per_objfile` to just
7688 `per_objfile` throughout.
7689
989ade05
SM
76902020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7691
7692 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7693 <push_dwarf_reg_entry_value>: Add comment.
7694
c47bae85
KB
76952020-05-28 Kevin Buettner <kevinb@redhat.com>
7696 Keith Seitz <keiths@redhat.com>
7697
7698 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7699 instead of PyEval_ReleaseLock.
7700 (class gdbpy_gil): Move to earlier in file.
7701 (finalize_python): Set gdb_python_initialized.
7702 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7703 when not initialized.
7704
44486dcf
SM
77052020-05-28 Simon Marchi <simon.marchi@efficios.com>
7706
7707 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7708 <push_dwarf_reg_entry_value>: Remove assert. Override
7709 per_objfile with caller_per_objfile.
7710
f030440d
TV
77112020-05-28 Tom de Vries <tdevries@suse.de>
7712
7713 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7714 PR gold/15646 workaround to symbol kind "type".
7715
f0fbb768
TT
77162020-05-27 Tom Tromey <tromey@adacore.com>
7717
7718 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7719
af0b2a3e
TT
77202020-05-27 Tom Tromey <tromey@adacore.com>
7721
7722 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7723 Use htab_find_with_hash.
7724 <add_abbrev>: Remove "abbrev_number" parameter.
7725 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7726 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7727 (hash_abbrev): Add comment.
7728 (abbrev_table::lookup_abbrev): Move to header file.
7729 (abbrev_table::read): Update.
7730
7d00ffec
TT
77312020-05-27 Tom Tromey <tromey@adacore.com>
7732
7733 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7734 method.
7735 <canonical_name>: New member.
7736 <raw_name>: Rename from "name".
7737 (partial_die_info): Initialize canonical_name.
7738 (scan_partial_symbols): Check raw_name.
7739 (partial_die_parent_scope, partial_die_full_name)
7740 (add_partial_symbol, add_partial_subprogram)
7741 (add_partial_enumeration, load_partial_dies): Use "name" method.
7742 (partial_die_info::name): New method.
7743 (partial_die_info::read, guess_partial_die_structure_name)
7744 (partial_die_info::fixup): Update.
7745
697bba18
TT
77462020-05-27 Tom Tromey <tromey@adacore.com>
7747
7748 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7749 <get_ref_die_offset>: Inline.
7750 <get_ref_die_offset_complaint>: New method.
7751 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7752 (attribute::get_ref_die_offset_complaint): Rename from
7753 get_ref_die_offset. Just issue complaint.
7754
c17ace43
HD
77552020-05-27 Hannes Domani <ssbssa@yahoo.de>
7756
7757 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7758
96445f0b
HD
77592020-05-27 Hannes Domani <ssbssa@yahoo.de>
7760
7761 * exec.c (exec_file_attach): Use errno value of first openp failure.
7762
ac637ec3
HD
77632020-05-27 Hannes Domani <ssbssa@yahoo.de>
7764
7765 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7766 Don't close thread handle.
7767
17ee85fc
TT
77682020-05-27 Tom Tromey <tom@tromey.com>
7769 Simon Marchi <simon.marchi@efficios.com>
7770
7771 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7772 shared_ptr.
7773 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7774 member.
7775 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7776 dwarf2_per_bfd_objfile_data_key>: New globals.
7777 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7778 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7779 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7780 shared.
7781 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7782 short-circuit when sharing.
7783 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7784 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7785
39b16f87
SM
77862020-05-27 Simon Marchi <simon.marchi@efficios.com>
7787
7788 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7789 to...
7790 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7791 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7792
fcf23d5b
SM
77932020-05-27 Simon Marchi <simon.marchi@efficios.com>
7794
7795 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7796 build_name_components, find_name_components_bounds>:
7797 Add per_objfile parameter.
7798 (struct mapped_index) <symbol_name_at>: Likewise.
7799 (struct mapped_debug_names): Remove constructor.
7800 <dwarf2_per_objfile>: Remove field.
7801 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7802 (mapped_index_base::find_name_components_bounds,
7803 mapped_index_base::build_name_components,
7804 dw2_expand_symtabs_matching_symbol): Likewise.
7805 (class mock_mapped_index) <symbol_name_at>: Likewise.
7806 (check_match): Likewise.
7807 (check_find_bounds_finds): Likewise.
7808 (test_mapped_index_find_name_component_bounds): Update.
7809 (CHECK_MATCH): Update.
7810 (dw2_expand_symtabs_matching): Update.
7811 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7812 per_objfile parameter.
7813 <find_vec_in_debug_names>: Likewise.
7814 <m_per_objfile>: New field.
7815 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7816 parameter.
7817 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7818 (dw2_debug_names_iterator::next): Update.
7819 (dw2_debug_names_lookup_symbol): Update.
7820 (dw2_debug_names_expand_symtabs_for_function): Update.
7821 (dw2_debug_names_map_matching_symbols): Update.
7822 (dw2_debug_names_expand_symtabs_matching): Update.
7823 (dwarf2_read_debug_names): Update.
7824
7188ed02
SM
78252020-05-27 Simon Marchi <simon.marchi@efficios.com>
7826
7827 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7828 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7829 move to dwarf2_per_objfile.
7830 <read_in_chain>: Remove.
7831 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7832 remove_all_cus, age_comp_units>: New methods.
7833 <m_dwarf2_cus>: New member.
7834 (struct dwarf2_per_cu_data) <cu>: Remove.
7835 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7836 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7837 moved to methods of dwarf2_per_objfile.
7838 (dwarf2_clear_marks): Remove.
7839 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7840 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7841 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7842 (dwarf2_per_objfile::remove_all_cus): New.
7843 (class free_cached_comp_units) <~free_cached_comp_units>:
7844 Update.
7845 (load_cu): Update.
7846 (dw2_do_instantiate_symtab): Adjust.
7847 (fill_in_sig_entry_from_dwo_entry): Adjust.
7848 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7849 (cutu_reader::cutu_reader): Likewise.
7850 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7851 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7852 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7853 and dwarf2_per_objfile::age_comp_units.
7854 (load_partial_comp_unit): Update.
7855 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7856 (process_queue): Likewise.
7857 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7858 backlink.
7859 (dwarf2_read_addr_index): Likewise.
7860 (follow_die_offset): Likewise.
7861 (dwarf2_fetch_die_loc_sect_off): Likewise.
7862 (dwarf2_fetch_constant_bytes): Likewise.
7863 (dwarf2_fetch_die_type_sect_off): Likewise.
7864 (follow_die_sig_1): Likewise.
7865 (load_full_type_unit): Likewise.
7866 (read_signatured_type): Likewise.
7867 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7868 (dwarf2_cu::~dwarf2_cu): Remove.
7869 (dwarf2_per_objfile::get_cu): New.
7870 (dwarf2_per_objfile::set_cu): New.
7871 (age_cached_comp_units): Rename to...
7872 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7873 to std::unordered_map.
7874 (free_one_cached_comp_unit): Rename to...
7875 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7876 to std::unordered_map.
7877 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7878 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7879 a dwarf2_per_objfile in data.
7880 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7881 (dwarf2_clear_marks): Remove.
7882
2e671100
SM
78832020-05-27 Simon Marchi <simon.marchi@efficios.com>
7884
7885 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7886 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7887 (init_tu_and_read_dwo_dies): Likewise.
7888 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7889 (cutu_reader::cutu_reader): Likewise.
7890 (load_partial_comp_unit): Likewise.
7891 (process_psymtab_comp_unit): Update.
7892 (build_type_psymtabs_1): Update.
7893 (process_skeletonless_type_unit): Update.
7894 (load_full_comp_unit): Update.
7895 (find_partial_die): Update.
7896 (dwarf2_read_addr_index): Update.
7897 (read_signatured_type): Update.
7898
2e6a9f79
SM
78992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7900
7901 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7902 m_header_read_in>: New fields.
7903 <get_header>: New method.
7904 * dwarf2/read.c (per_cu_header_read_in): Remove.
7905 (dwarf2_per_cu_data::get_header): New.
7906 (dwarf2_per_cu_data::addr_size): Update.
7907 (dwarf2_per_cu_data::offset_size): Update.
7908 (dwarf2_per_cu_data::ref_addr_size): Update.
7909
1b555f17
SM
79102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7911
7912 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7913 (dw2_do_instantiate_symtab): Update.
7914 (queue_and_load_all_dwo_tus): Change parameter from
7915 dwarf2_per_cu_data to dwarf2_cu.
7916 (dwarf2_fetch_die_loc_sect_off): Update.
7917 (dwarf2_fetch_constant_bytes): Update.
7918 (dwarf2_fetch_die_type_sect_off): Update.
7919
8fc0b21d
SM
79202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7921
7922 * dwarf2/read.c (process_full_comp_unit,
7923 process_full_type_unit): Remove per_cu, per_objfile paramters.
7924 Add dwarf2_cu parameter.
7925 (process_queue): Update.
7926
168c9250
SM
79272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7928
7929 * dwarf2/read.c (create_cu_from_index_list): Replace
7930 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7931 (create_cus_from_index_list): Likewise.
7932 (create_cus_from_index): Likewise.
7933 (create_signatured_type_table_from_index): Likewise.
7934 (create_cus_from_debug_names_list): Likewise.
7935 (create_cus_from_debug_names): Likewise.
7936 (dwarf2_read_gdb_index): Update.
7937 (dwarf2_read_debug_names): Update.
7938
e286671b
TT
79392020-05-27 Tom Tromey <tom@tromey.com>
7940 Simon Marchi <simon.marchi@efficios.com>
7941
7942 * dwarf2/read.h (struct dwarf2_per_objfile)
7943 <get_type_for_signatured_type, set_type_for_signatured_type>:
7944 New methods.
7945 <m_type_map>: New member.
7946 (struct signatured_type) <type>: Remove.
7947 * dwarf2/read.c
7948 (dwarf2_per_objfile::get_type_for_signatured_type,
7949 dwarf2_per_objfile::set_type_for_signatured_type): New.
7950 (get_signatured_type): Use new methods.
7951
8adb8487
TT
79522020-05-27 Tom Tromey <tom@tromey.com>
7953 Simon Marchi <simon.marchi@efficios.com>
7954
7955 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7956 (struct dwarf2_per_objfile) <type_units>: New member.
7957 <get_type_unit_group_unshareable>: New method.
7958 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7959 num_symtabs, symtabs>: Remove; move to
7960 type_unit_group_unshareable.
7961 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7962 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7963 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7964
127bbf4b
SM
79652020-05-27 Simon Marchi <simon.marchi@efficios.com>
7966
7967 * dwarf2/read.h (struct dwarf2_per_cu_data):
7968 <dwarf2_per_objfile>: Remove.
7969 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7970 dwarf2_per_objfile.
7971 (create_signatured_type_table_from_index): Likewise.
7972 (create_signatured_type_table_from_debug_names): Likewise.
7973 (create_debug_type_hash_table): Likewise.
7974 (fill_in_sig_entry_from_dwo_entry): Likewise.
7975 (create_type_unit_group): Likewise.
7976 (read_comp_units_from_section): Likewise.
7977 (create_cus_hash_table): Likewise.
7978
f6e649dd
SM
79792020-05-27 Simon Marchi <simon.marchi@efficios.com>
7980
7981 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7982 dwarf2_per_cu_data::dwarf2_per_objfile.
7983 (compute_compunit_symtab_includes): Likewise.
7984 (dwarf2_cu::start_symtab): Likewise.
7985
aa66c379
SM
79862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7987
7988 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7989 parameter.
7990 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7991 (read_namespace_alias): Update.
7992 (lookup_die_type): Update.
7993 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7994 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7995 Update.
7996 (disassemble_dwarf_expression): Update.
7997
120ce1b5
SM
79982020-05-27 Simon Marchi <simon.marchi@efficios.com>
7999
8000 * dwarf2/read.h (struct dwarf2_queue_item): Add
8001 dwarf2_per_objfile parameter, assign new parameter.
8002 <per_objfile>: New field.
8003 * dwarf2/read.c (free_one_cached_comp_unit): Add
8004 dwarf2_per_objfile parameter.
8005 (queue_comp_unit): Likewise.
8006 (dw2_do_instantiate_symtab): Update.
8007 (process_psymtab_comp_unit): Update.
8008 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8009 (process_imported_unit_die): Update.
8010 (queue_and_load_dwo_tu): Update.
8011 (follow_die_offset): Update.
8012 (follow_die_sig_1): Update.
8013
9f47c707
SM
80142020-05-27 Simon Marchi <simon.marchi@efficios.com>
8015
8016 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8017 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8018 (read_call_site_scope): Assign per_objfile.
8019 (dwarf2_per_cu_data::objfile): Remove.
8020 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8021 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8022 dwarf2_per_objfile parameter.
8023 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8024 dwarf2_per_objfile parameter.
8025 (dwarf_expr_reg_to_entry_parameter): Add output
8026 dwarf2_per_objfile parameter.
8027 (locexpr_get_frame_base): Update.
8028 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8029 <push_dwarf_reg_entry_value>: Update.
8030 <call_site_to_target_addr>: Update.
8031 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8032 parameter.
8033 (value_of_dwarf_reg_entry): Update.
8034 (rw_pieced_value): Update.
8035 (indirect_synthetic_pointer): Update.
8036 (dwarf2_evaluate_property): Update.
8037 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8038 parameter.
8039 (locexpr_read_variable): Update.
8040 (locexpr_get_symbol_read_needs): Update.
8041 (loclist_read_variable): Update.
8042
14095eb3
SM
80432020-05-27 Simon Marchi <simon.marchi@efficios.com>
8044
8045 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8046 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8047 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8048 parameter.
8049 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8050 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8051 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8052 parameter.
8053 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8054 sect_variable_value): Add dwarf2_per_objfile parameter.
8055 (class dwarf_evaluate_loc_desc) <dwarf_call,
8056 dwarf_variable_value>: Update.
8057 (fetch_const_value_from_synthetic_pointer): Add
8058 dwarf2_per_objfile parameter.
8059 (fetch_const_value_from_synthetic_pointer): Update.
8060 (coerced_pieced_ref): Update.
8061 (class symbol_needs_eval_context) <dwarf_call,
8062 dwarf_variable_value>: Update.
8063 (dwarf2_compile_expr_to_ax): Update.
8064
3c3cd3d4
SM
80652020-05-27 Simon Marchi <simon.marchi@efficios.com>
8066
8067 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8068 parameter.
8069 (dwarf2_evaluate_loc_desc_full): Update.
8070
82ca3f51
SM
80712020-05-27 Simon Marchi <simon.marchi@efficios.com>
8072
8073 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8074 parameter.
8075 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8076 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8077 dwarf2_per_objfile parameter.
8078 (decode_debug_loc_dwo_addresses): Likewise.
8079 (dwarf2_find_location_expression): Update.
8080 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8081 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8082 parameter.
8083 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8084 parameter.
8085 (locexpr_describe_location_1): Likewise.
8086 (locexpr_describe_location): Update.
8087
4b167ea1
SM
80882020-05-27 Simon Marchi <simon.marchi@efficios.com>
8089
8090 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8091 Remove.
8092 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8093 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8094 (dwarf2_compile_property_to_c): Update.
8095 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8096 use text offset from objfile.
8097 (locexpr_tracepoint_var_ref): Update.
8098 (locexpr_generate_c_location): Update.
8099 (loclist_describe_location): Update.
8100 (loclist_tracepoint_var_ref): Update.
8101 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8102 dwarf2_per_objfile parameter.
8103 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8104 use text offset from objfile.
8105 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8106
89b07335
SM
81072020-05-27 Simon Marchi <simon.marchi@efficios.com>
8108
8109 * dwarf2/expr.h (struct dwarf_expr_context)
8110 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8111 <offset>: Remove.
8112 <per_objfile>: New member.
8113 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8114 dwarf2_per_objfile parameter. Don't set offset, set
8115 per_objfile.
8116 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8117 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8118 a dwarf2_per_objfile object instead of an offset.
8119 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8120 constructor.
8121 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8122 to dwarf2_expr_executor constructor. Don't set offset.
8123 (dwarf2_fetch_cfa_info): Update.
8124 (struct dwarf2_frame_cache) <text_offset>: Remove.
8125 <per_objfile>: New field.
8126 (dwarf2_frame_cache): Update.
8127 (dwarf2_frame_prev_register): Update.
8128 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8129 <dwarf_evaluate_loc_desc>: Add constructor.
8130 (dwarf2_evaluate_loc_desc_full): Update.
8131 (dwarf2_locexpr_baton_eval): Update.
8132 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8133 Add constructor.
8134 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8135
293e7e51
SM
81362020-05-27 Simon Marchi <simon.marchi@efficios.com>
8137
8138 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8139 addr_sized_int_type>: Move to dwarf2_cu.
8140 <int_type>: Move to dwarf2_per_objfile.
8141 (struct dwarf2_per_objfile) <int_type>: Move here.
8142 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8143 addr_sized_int_type>: Move here.
8144 (read_func_scope): Update.
8145 (read_array_type): Update.
8146 (read_tag_string_type): Update.
8147 (attr_to_dynamic_prop): Update.
8148 (dwarf2_per_cu_data::int_type): Rename to...
8149 (dwarf2_per_objfile::int_type): ... this.
8150 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8151 (dwarf2_cu::addr_sized_int_type): ... this.
8152 (read_subrange_type): Update.
8153 (dwarf2_per_cu_data::addr_type): Rename to...
8154 (dwarf2_cu::addr_type): ... this.
8155 (set_die_type): Update.
8156
64874a40
SM
81572020-05-27 Simon Marchi <simon.marchi@efficios.com>
8158
8159 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8160 data through per_cu->cu.
8161
4ab09049
SM
81622020-05-27 Simon Marchi <simon.marchi@efficios.com>
8163
8164 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8165 dwarf2_per_cu_data parameter fo dwarf2_cu.
8166 (lookup_dwo_type_unit): Likewise.
8167 (read_cutu_die_from_dwo): Likewise.
8168 (lookup_dwo_unit): Likewise.
8169 (open_and_init_dwo_file): Likewise.
8170 (lookup_dwo_cutu): Likewise.
8171 (lookup_dwo_comp_unit): Likewise.
8172 (lookup_dwo_type_unit): Likewise.
8173 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8174 (cutu_reader::cutu_reader): Update.
8175
47b14e86
SM
81762020-05-27 Simon Marchi <simon.marchi@efficios.com>
8177
8178 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8179 parameter.
8180 (process_full_type_unit): Likewise.
8181 (process_queue): Update.
8182
43182c09
SM
81832020-05-27 Simon Marchi <simon.marchi@efficios.com>
8184
8185 * dwarf2/read.c (recursively_compute_inclusions): Add
8186 dwarf2_per_objfile parameter.
8187 (compute_compunit_symtab_includes): Likewise.
8188 (process_cu_includes): Update.
8189
7aa104c4
SM
81902020-05-27 Simon Marchi <simon.marchi@efficios.com>
8191
8192 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8193 parameter.
8194 (create_type_unit_group): Update.
8195 (process_psymtab_comp_unit_reader): Update.
8196 (build_type_psymtabs_reader): Update.
8197
e3beb21d
SM
81982020-05-27 Simon Marchi <simon.marchi@efficios.com>
8199
8200 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8201 object through m_this_cu->cu.
8202
d460f660
SM
82032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8204
8205 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8206 the info parameter.
8207 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8208
ab432490
SM
82092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8210
8211 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8212 per_objfile parameter.
8213 (load_full_type_unit): Add per_objfile parameter.
8214 (read_signatured_type): Likewise.
8215 (load_full_comp_unit): Likewise.
8216 (load_cu): Likewise.
8217 (dw2_do_instantiate_symtab): Likewise.
8218 (dw2_get_file_names): Likewise.
8219 (dw2_map_symtabs_matching_filename): Update.
8220 (dw_expand_symtabs_matching_file_matcher): Update.
8221 (dw2_map_symbol_filenames): Update.
8222 (process_psymtab_comp_unit): Add per_objfile parameter.
8223 (build_type_psymtabs_1): Update.
8224 (process_skeletonless_type_unit): Update.
8225 (dwarf2_build_psymtabs_hard): Update.
8226 (load_partial_comp_unit): Add per_objfile parameter.
8227 (scan_partial_symbols): Update.
8228 (load_full_comp_unit): Add per_objfile parameter.
8229 (process_imported_unit_die): Update.
8230 (create_cus_hash_table): Update.
8231 (find_partial_die): Update.
8232 (dwarf2_read_addr_index): Update.
8233 (follow_die_offset): Update.
8234 (dwarf2_fetch_die_loc_sect_off): Update.
8235 (dwarf2_fetch_constant_bytes): Update.
8236 (dwarf2_fetch_die_type_sect_off): Update.
8237 (follow_die_sig_1): Update.
8238 (load_full_type_unit): Add per_objfile parameter.
8239 (read_signatured_type): Likewise.
8240
313bad1b
SM
82412020-05-27 Simon Marchi <simon.marchi@efficios.com>
8242
8243 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8244 of objfile_name.
8245
c3699833
SM
82462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8247
8248 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8249 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8250 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8251 field.
8252 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8253 (create_cus_from_index): Update.
8254 (dwarf2_read_gdb_index): Update.
8255 (create_cus_from_debug_names): Update.
8256 (dwarf2_read_debug_names): Update.
8257 (get_abbrev_section_for_cu): Update.
8258 (create_all_comp_units): Update.
8259 (read_attribute_value): Update.
8260 (get_debug_line_section): Update.
8261 * dwarf2/index-cache.c (index_cache::store): Update.
8262 * dwarf2/index-write.c (save_gdb_index_command): Update.
8263 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8264
1859c670
SM
82652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8266
8267 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8268 member.
8269 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8270 dwarf2_per_cu_data::per_bfd.
8271 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8272 (create_type_unit_group): Likewise.
8273 (queue_comp_unit): Remove reference to
8274 per_cu->dwarf2_per_objfile.
8275 (maybe_queue_comp_unit): Likewise.
8276 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8277 (create_cus_hash_table): Assign new field.
8278
5e22e966
SM
82792020-05-27 Simon Marchi <simon.marchi@efficios.com>
8280
8281 * dwarf2/read.c: Replace
8282 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8283 dwarf2_cu->per_objfile throughout.
8284
97a1449a
SM
82852020-05-27 Simon Marchi <simon.marchi@efficios.com>
8286
8287 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8288 parameter, don't use per_cu->dwarf2_per_objfile.
8289 (dw2_instantiate_symtab): Likewise.
8290 (dw2_find_last_source_symtab): Update.
8291 (dw2_map_expand_apply): Update.
8292 (dw2_lookup_symbol): Update.
8293 (dw2_expand_symtabs_for_function): Update.
8294 (dw2_expand_all_symtabs): Update.
8295 (dw2_expand_symtabs_with_fullname): Update.
8296 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8297 don't use per_cu->dwarf2_per_objfile.
8298 (dw2_expand_marked_cus): Update.
8299 (dw2_find_pc_sect_compunit_symtab): Update.
8300 (dw2_debug_names_lookup_symbol): Update.
8301 (dw2_debug_names_expand_symtabs_for_function): Update.
8302 (dw2_debug_names_map_matching_symbols): Update.
8303 (dwarf2_psymtab::expand_psymtab): Update.
8304
9e021579
SM
83052020-05-27 Simon Marchi <simon.marchi@efficios.com>
8306
8307 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8308 <per_objfile>: New member.
8309 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8310 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8311 call to dwarf2_cu.
8312 (cutu_reader::cutu_reader): Update.
8313 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8314
ae090bdb
SM
83152020-05-27 Simon Marchi <simon.marchi@efficios.com>
8316
8317 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8318 struct dwarf2_per_objfile.
8319 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8320 dwarf2_per_bfd.
8321 * dwarf2/read.c (set_die_type): Update.
8322 (get_die_type_at_offset): Update.
8323
af758d11
SM
83242020-05-27 Tom Tromey <tom@tromey.com>
8325 Simon Marchi <simon.marchi@efficios.com>
8326
8327 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8328 method.
8329 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8330 get_symtab, set_symtab>: New methods.
8331 <m_symtabs>: New field.
8332 (struct dwarf2_psymtab): Derive from partial_symtab.
8333 <readin_p, get_compunit_symtab>: Declare methods.
8334 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8335 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8336 New methods.
8337 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8338 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8339 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8340 (dw2_symtab_iter_next, dw2_print_stats)
8341 (dw2_expand_symtabs_with_fullname)
8342 (dw2_expand_symtabs_matching_one)
8343 (dw_expand_symtabs_matching_file_matcher)
8344 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8345 (dw2_debug_names_iterator::next)
8346 (dw2_debug_names_map_matching_symbols)
8347 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8348 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8349 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8350 New methods.
8351 (get_compunit_symtab, process_full_comp_unit)
8352 (process_full_type_unit): Update.
8353 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8354
5989a64e
SM
83552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8356
8357 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8358 then introduce a new dwarf2_per_objfile type.
8359 <read_line_string>: Move to the new dwarf2_per_objfile type.
8360 <objfile>: Likewise.
8361 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8362 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8363 dwarf2_per_objfile->per_bfd.
8364 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8365 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8366 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8367 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8368 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8369 (dwarf2_per_objfile::locate_sections): Rename to...
8370 (dwarf2_per_bfd::locate_sections): ... this.
8371 (dwarf2_per_objfile::get_cutu): Rename to...
8372 (dwarf2_per_bfd::get_cutu): ... this.
8373 (dwarf2_per_objfile::get_cu): Rename to...
8374 (dwarf2_per_bfd::get_cu): ... this.
8375 (dwarf2_per_objfile::get_tu): Rename to...
8376 (dwarf2_per_bfd::get_tu): ... this.
8377 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8378 (dwarf2_per_bfd::allocate_per_cu): ... this.
8379 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8380 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8381 (get_gdb_index_contents_ftype): Change parameter from
8382 dwarf2_per_objfile to dwarf2_per_bfd.
8383 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8384 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8385
a50264ba
TT
83862020-05-27 Tom Tromey <tom@tromey.com>
8387 Simon Marchi <simon.marchi@efficios.com>
8388
8389 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8390 (allocate_piece_closure): Set "per_objfile" member.
8391 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8392 (locexpr_describe_location, loclist_describe_location): Use new
8393 member.
8394 * dwarf2/read.c (read_call_site_scope)
8395 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8396 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8397 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8398 handle_data_member_location): Set per_objfile member.
8399 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8400 member.
8401 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8402
d3473f0c
TT
84032020-05-27 Tom Tromey <tom@tromey.com>
8404
8405 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8406 allocate_signatured_type>: Declare new methods.
8407 <m_num_psymtabs>: New member.
8408 (struct dwarf2_per_cu_data) <index>: New member.
8409 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8410 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8411 (create_cu_from_index_list): Use allocate_per_cu.
8412 (create_signatured_type_table_from_index)
8413 (create_signatured_type_table_from_debug_names)
8414 (create_debug_type_hash_table, add_type_unit)
8415 (read_comp_units_from_section): Use allocate_signatured_type.
8416
5717c425
TT
84172020-05-27 Tom Tromey <tom@tromey.com>
8418
8419 * psymtab.c (partial_map_expand_apply)
8420 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8421 (psym_lookup_global_symbol_language)
8422 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8423 (psym_print_stats, psym_expand_symtabs_for_function)
8424 (psym_map_symbol_filenames, psym_map_matching_symbols)
8425 (psym_expand_symtabs_matching)
8426 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8427 (maintenance_check_psymtabs): Update.
8428 * psympriv.h (struct partial_symtab) <readin_p,
8429 get_compunit_symtab>: Add objfile parameter.
8430 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8431 Likewise.
8432 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8433 get_compunit_symtab>: Likewise.
8434 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8435
45940949
TT
84362020-05-27 Tom Tromey <tom@tromey.com>
8437
8438 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8439 member.
8440 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8441 (create_cu_from_index_list)
8442 (create_signatured_type_table_from_index)
8443 (create_signatured_type_table_from_debug_names)
8444 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8445 (dwarf2_create_include_psymtab)
8446 (create_debug_type_hash_table, add_type_unit)
8447 (create_type_unit_group, read_comp_units_from_section)
8448 (dwarf2_compute_name, create_cus_hash_table)
8449 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8450 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8451 obstack.
8452 (dw2_get_real_path): Likewise. Change argument to
8453 dwarf2_per_objfile.
8454
f8c6d152
LM
84552020-05-27 Luis Machado <luis.machado@linaro.org>
8456
8457 PR tdep/26000
8458 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8459 for ldrd (immediate).
8460
e98d2e6d
PW
84612020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8462
8463 * command.h: Add comment giving the name of class_tui.
8464 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8465 create the fake command for the help for class_tui.
8466
53a47a3e
TT
84672020-05-26 Tom Tromey <tromey@adacore.com>
8468
8469 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8470 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8471 (val_atr): New function.
8472 (value_val_atr): Use it.
8473 * ada-valprint.c (print_optional_low_bound): Change low bound
8474 handling for enums.
8475 (val_print_packed_array_elements): Don't call discrete_position.
8476 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8477 discrete_position for enum types.
8478 * language.c (default_print_array_index): Change type.
8479 * language.h (struct language_defn) <la_print_array_index>: Add
8480 index_type parameter, change type of index_value.
8481 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8482 (default_print_array_index): Update.
8483 * valprint.c (maybe_print_array_index): Don't call
8484 value_from_longest. Update.
8485 (value_print_array_elements): Don't call discrete_position.
8486
0bc2354b
TT
84872020-05-26 Tom Tromey <tromey@adacore.com>
8488
8489 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8490 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8491
1218a4bf
CDA
84922020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8493
8494 PR gdb/13519
8495 * avr-tdep.c (avr_integer_to_address): Return data or code
8496 address accordingly to the second 'type' argument of the
8497 function.
8498
92651b1d
MW
84992020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8500
8501 * infcmd.c, inferior.h: (construct_inferior_arguments):
8502 Moved function from here to gdbsupport/common-inferior.{h,cc}
8503
0a4f5f8c
TT
85042020-05-23 Tom Tromey <tom@tromey.com>
8505
8506 Revert commit eca1f90c:
8507 * NEWS: Remove entry for completion styling.
8508 * completer.c (_rl_completion_prefix_display_length): Move
8509 declaration later.
8510 (gdb_fnprint): Revert.
8511 (gdb_display_match_list_1): Likewise.
8512 * cli/cli-style.c (completion_prefix_style)
8513 (completion_difference_style, completion_suffix_style): Remove.
8514 (_initialize_cli_style): Revert.
8515 * cli/cli-style.h (completion_prefix_style)
8516 (completion_difference_style, completion_suffix_style): Don't
8517 declare.
8518
e08bd6c5
PA
85192020-05-24 Pedro Alves <palves@redhat.com>
8520
8521 * symtab.c (completion_list_add_name): Return boolean indication
8522 of whether the symbol matched.
8523 (completion_list_add_symbol): Don't try to remove C++ aliases if
8524 the symbol didn't match in the first place.
8525 * symtab.h (completion_list_add_name): Return bool.
8526
ceacbf6e
SM
85272020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8528
8529 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8530 type::field.
8531
26f16254
JB
85322020-05-23 Joel Brobecker <brobecker@adacore.com>
8533
8534 GDB 9.2 released.
8535
eca1f90c
TT
85362020-05-23 Tom Tromey <tom@tromey.com>
8537
8538 * NEWS: Add entry for completion styling.
8539 * completer.c (_rl_completion_prefix_display_length): Move
8540 declaration earlier.
8541 (gdb_fnprint): Use completion_style.
8542 (gdb_display_match_list_1): Likewise.
8543 * cli/cli-style.c (completion_prefix_style)
8544 (completion_difference_style, completion_suffix_style): New
8545 globals.
8546 (_initialize_cli_style): Register new globals.
8547 * cli/cli-style.h (completion_prefix_style)
8548 (completion_difference_style, completion_suffix_style): Declare.
8549
51e2cfa2
PA
85502020-05-23 Pedro Alves <palves@redhat.com>
8551
8552 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8553 (parse_escape): Use ISDIGIT instead of isdigit.
8554 (puts_debug): Use gdb_isprint instead of isprint.
8555 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8556 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8557 ISSPACE instead of isspace.
8558 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8559 instead of isspace.
8560 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8561 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8562 instead of isxdigit and ISDIGIT instead of isdigit.
8563
80fc5e77
SM
85642020-05-22 Simon Marchi <simon.marchi@efficios.com>
8565
8566 * gdbtypes.h (struct type) <field>: New method.
8567 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8568 or type::field.
8569
3cabb6b0
SM
85702020-05-22 Simon Marchi <simon.marchi@efficios.com>
8571
8572 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8573 (TYPE_FIELDS): Use type::fields. Change all call sites that
8574 modify the propery to use type::set_fields instead.
8575
1f704f76
SM
85762020-05-22 Simon Marchi <simon.marchi@efficios.com>
8577
8578 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8579 type::num_fields instead.
8580
5e33d5f4
SM
85812020-05-22 Simon Marchi <simon.marchi@efficios.com>
8582
8583 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8584 methods.
8585 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8586 that modify the number of fields to use type::set_num_fields
8587 instead.
8588
9392ebb3
TT
85892020-05-22 Tom Tromey <tromey@adacore.com>
8590
8591 * compile/compile-object-load.h (munmap_list_free): Don't
8592 declare.
8593
7c13f4e8
AB
85942020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8595
8596 * annotate.c (annotate_source_line): Update return type, add call
8597 to update current symtab and line.
8598 * annotate.h (annotate_source_line): Update return type, and
8599 extend header comment.
8600 * source.c (info_line_command): Check annotation_level before
8601 calling annotate_source_line.
8602 * stack.c (print_frame_info): If calling annotate_source_line
8603 returns true, then don't print any other source line information.
8604
aa370940
SM
86052020-05-21 Simon Marchi <simon.marchi@efficios.com>
8606
8607 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8608
84d53fa9
SM
86092020-05-21 Simon Marchi <simon.marchi@efficios.com>
8610
8611 * coffread.c (patch_type): Remove NULL check before xfree.
8612 * corefile.c (set_gnutarget): Likewise.
8613 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8614 * exec.c (build_section_table): Likewise.
8615 * remote.c (remote_target::pass_signals): Likewise.
8616 * utils.c (n_spaces): Likewise.
8617 * cli/cli-script.c (document_command): Likewise.
8618 * i386-windows-tdep.c (core_process_module_section): Likewise.
8619 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8620
9d428aae
SM
86212020-05-20 Simon Marchi <simon.marchi@efficios.com>
8622
8623 * symfile.c (reread_symbols): Clear objfile's section_offsets
8624 vector and section indices, re-compute them by calling
8625 sym_offsets.
8626
250106a7
TT
86272020-05-20 Tom Tromey <tromey@adacore.com>
8628
8629 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8630 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8631
9a0bacfb
TV
86322020-05-20 Tom de Vries <tdevries@suse.de>
8633
8634 PR symtab/25833
8635 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8636
7b958a48
AM
86372020-05-20 Alan Modra <amodra@gmail.com>
8638
8639 PR 25993
8640 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8641 bfd_set_filename.
8642 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8643 passed to bfd_set_filename.
8644 * symfile-mem.c (add_vsyscall_page): Likewise for string
8645 passed to symbol_file_add_from_memory.
8646 (symbol_file_add_from_memory): Make name param a const char* and
8647 don't strdup.
8648
c7e97679
AM
86492020-05-20 Alan Modra <amodra@gmail.com>
8650
8651 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8652 rather than accessing bfd->filename directly.
8653 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8654 and use bfd_section_name.
8655 * dwarf2/frame.c (decode_frame_entry): Likewise.
8656 * exec.c (exec_set_section_address): Likewise.
8657 * solib-aix.c (solib_aix_bfd_open): Likewise.
8658 * stap-probe.c (get_stap_base_address): Likewise.
8659 * symfile.c (reread_symbols): Likewise.
8660
563c591b
TT
86612020-05-19 Tom Tromey <tromey@adacore.com>
8662
8663 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8664
f408d82c
SM
86652020-05-19 Simon Marchi <simon.marchi@efficios.com>
8666
8667 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8668
98c59b52
PA
86692020-05-19 Pedro Alves <palves@redhat.com>
8670
8671 * NEWS (set exec-file-mismatch): Adjust entry.
8672 * exec.c: Include "build-id.h".
8673 (validate_exec_file): Try to match build IDs instead of filenames.
8674 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8675 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8676 and pass down 'warn_if_slow'.
8677 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8678 gdb_bfd_open_closure to pass it down.
8679 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8680
4111f652
PA
86812020-05-19 Pedro Alves <palves@redhat.com>
8682
8683 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8684 * target.c (target_fileio_open_1): Rename to target_fileio_open
8685 and make extern. Use bool.
8686 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8687 (target_fileio_read_alloc_1): Adjust.
8688 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8689 (target_fileio_open_warn_if_slow): Delete declaration.
8690
ad80db5b
PA
86912020-05-19 Pedro Alves <palves@redhat.com>
8692
8693 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8694 Adjust all callers.
8695
1d6ce4d3
YS
86962020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8697
8698 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8699 whether disp is negative.
8700
9005fbbb
SM
87012020-05-19 Simon Marchi <simon.marchi@efficios.com>
8702
8703 * symfile.h (struct symfile_segment_data)
8704 <~symfile_segment_data>: Remove.
8705 <segment_info>: Change to std::vector.
8706 * symfile.c (default_symfile_segments): Update.
8707 * elfread.c (elf_symfile_segments): Update.
8708
68b888ff
SM
87092020-05-19 Simon Marchi <simon.marchi@efficios.com>
8710
8711 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8712 <segments>: New.
8713 <segment_bases, segment_sizes>: Remove.
8714 * symfile.c (default_symfile_segments): Update.
8715 * elfread.c (elf_symfile_segments): Update.
8716 * remote.c (remote_target::get_offsets): Update.
8717 * solib-target.c (solib_target_relocate_section_addresses):
8718 Update.
8719
62982abd
SM
87202020-05-19 Simon Marchi <simon.marchi@efficios.com>
8721
8722 * symfile.h (struct symfile_segment_data): Initialize fields.
8723 <~symfile_segment_data>: Add.
8724 (symfile_segment_data_up): New.
8725 (struct sym_fns) <sym_segments>: Return a
8726 symfile_segment_data_up.
8727 (default_symfile_segments): Return a symfile_segment_data_up.
8728 (free_symfile_segment_data): Remove.
8729 (get_symfile_segment_data): Return a symfile_segment_data_up.
8730 * symfile.c (default_symfile_segments): Likewise.
8731 (get_symfile_segment_data): Likewise.
8732 (free_symfile_segment_data): Remove.
8733 (symfile_find_segment_sections): Update.
8734 * elfread.c (elf_symfile_segments): Return a
8735 symfile_segment_data_up.
8736 * remote.c (remote_target::get_offsets): Update.
8737 * solib-target.c (solib_target_relocate_section_addresses):
8738 Update.
8739 * symfile-debug.c (debug_sym_segments): Return a
8740 symfile_segment_data_up.
8741
7f204339
RO
87422020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8743
e52a0f1b
RO
8744 PR build/25981
8745 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8746 Hardcode register numbers.
8747
7f204339
RO
8748 PR build/25981
8749 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8750 procfs_find_LDT_entry): Remove.
8751 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8752 procfs_find_LDT_entry): Remove.
8753 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8754 Remove.
8755
7f32a4d5
PA
87562020-05-17 Pedro Alves <palves@redhat.com>
8757 Andrew Burgess <andrew.burgess@embecosm.com>
8758 Keno Fischer <keno@juliacomputing.com>
8759
8760 PR gdb/25741
8761 * breakpoint.c (build_target_condition_list): Update comments.
8762 (build_target_command_list): Update comments and skip matching
8763 locations.
8764 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8765 a separate function. Simplify "set breakpoint auto-hw off"
8766 handling.
8767 (insert_breakpoints): Update comment.
8768 (tracepoint_locations_match): New parameter. For breakpoints,
8769 compare location types too, if the caller wants to.
8770 (handle_automatic_hardware_breakpoints): New functions.
8771 (bp_location_is_less_than): Also sort by location type and
8772 hardware breakpoint length.
8773 (update_global_location_list): Handle "set breakpoint auto-hw on"
8774 here.
8775 (update_breakpoint_locations): Ask breakpoint_locations_match to
8776 ignore location types.
8777
7d93a1e0
SM
87782020-05-16 Simon Marchi <simon.marchi@efficios.com>
8779
8780 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8781 type::name instead.
8782
d0e39ea2
SM
87832020-05-16 Simon Marchi <simon.marchi@efficios.com>
8784
8785 * gdbtypes.h (struct type) <name, set_name>: New methods.
8786 (TYPE_CODE): Use type::name. Change all call sites used to set
8787 the name to use type::set_name instead.
8788
2dab0c7b
TT
87892020-05-16 Tom Tromey <tom@tromey.com>
8790
8791 * top.c (quit_force): Update.
8792 * infrun.c (handle_no_resumed): Update.
8793 * top.h (all_uis): New function.
8794 (ALL_UIS): Remove.
8795
59f7bd8d
SM
87962020-05-16 Simon Marchi <simon.marchi@efficios.com>
8797
8798 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8799
9bf058f0
PA
88002020-05-16 Pedro Alves <palves@redhat.com>
8801
8802 * ia64-linux-nat.c
8803 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8804 Declare method.
8805 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8806
8f86ae1a
SM
88072020-05-15 Simon Marchi <simon.marchi@efficios.com>
8808
8809 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8810 (sparc64_adi_info): Likewise.
8811
d6bc0792
TT
88122020-05-15 Tom Tromey <tom@tromey.com>
8813
8814 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8815 block_objfile.
8816 (lookup_objfile_from_block): Remove.
8817 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8818 (lookup_global_symbol): Use block_objfile.
8819 * symtab.h (lookup_objfile_from_block): Don't declare.
8820 * printcmd.c (clear_dangling_display_expressions): Use
8821 block_objfile.
8822 * parse.c (operator_check_standard): Use block_objfile.
8823
8c14c3a3
TT
88242020-05-15 Tom Tromey <tom@tromey.com>
8825
8826 * language.c (language_alloc_type_symbol): Set
8827 SYMBOL_SECTION.
8828 * symtab.c (initialize_objfile_symbol): Remove.
8829 (allocate_symbol): Remove.
8830 (allocate_template_symbol): Remove.
8831 * dwarf2/read.c (fixup_go_packaging): Use "new".
8832 (new_symbol): Use "new".
8833 (read_variable): Don't call initialize_objfile_symbol. Use
8834 "new".
8835 (read_func_scope): Use "new".
8836 * xcoffread.c (process_xcoff_symbol): Don't call
8837 initialize_objfile_symbol.
8838 (SYMBOL_DUP): Remove.
8839 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8840 "new".
8841 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8842 (allocate_template_symbol): Don't declare.
8843 (struct symbol): Add copy constructor. Change defaults.
8844 * jit.c (finalize_symtab): Use "new".
8845 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8846 Use "new".
8847 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8848 (common_block_end): Use "new".
8849 * mdebugread.c (parse_symbol): Use "new".
8850 (new_symbol): Likewise.
8851
5b4a1a8d
PW
88522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8853
8854 * NEWS: Mention changes to help and apropos.
8855
57b4f16e
PW
88562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8857
8858 * command.h (enum command_class): Improve comments, document
8859 that class_alias is for user-defined aliases, give the class
8860 name for each class, remove unused class_xdb.
8861 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8862 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8863 by a precise class.
8864 * infcmd.c (_initialize_infcmd): Likewise.
8865 * reverse.c (_initialize_reverse): Likewise.
8866 * stack.c (_initialize_stack): Likewise.
8867 * symfile.c (_initialize_symfile): Likewise.
8868 * tracepoint.c (_initialize_tracepoint): Likewise.
8869
7c05caf7
PW
88702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8871
8872 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8873 when their aliased command is traversed.
8874 (help_cmd): Add fput_command_names_styled call to
8875 output command name and aliases when command has an alias.
8876
3b3aaacb
PW
88772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8878
8879 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8880 * cli/cli-decode.c (help_cmd_list): Declare as static,
8881 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8882 a command together with the command.
8883 (fput_command_name_styled, fput_command_names_styled): New functions.
8884 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8885 fput_command_name_styled.
8886 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8887 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8888
7aa1b46f
PW
88892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8890
8891 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8892 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8893 * command.h (cmd_show_list): Likewise.
8894 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8895 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8896
89bcba74
PW
88972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8898
8899 * unittests/command-def-selftests.c (traverse_command_structure):
8900 Verify all commands of a list have the same prefix command and
8901 that only the top cmdlist commands have a null prefix.
8902
3f4d92eb
PW
89032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8904
8905 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8906 as prefix, not one of its aliases.
8907 (set_cmd_prefix): Remove.
8908 (do_add_cmd): Centralize the setting of the prefix of a command, when
8909 command is defined after its full chain of prefix commands.
8910 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8911 (add_setshow_cmd_full): Likewise.
8912 (update_prefix_field_of_prefixed_commands): New function.
8913 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8914 update_prefix_field_of_prefixed_commands.
8915 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8916 addresses of remote_set_cmdlist and remote_show_cmdlist given
8917 as argument, not the address of an argument.
8918 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8919 * gdb/remote.c (_initialize_remote): Likewise.
8920
0605465f
PW
89212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8922
8923 * cli/cli-cmds.c (alias_command): Check for an existing alias
8924 using lookup_cmd_composition, as valid_command_p is too strict
8925 and forbids aliases that are the prefix of an existing alias
8926 or command.
8927 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8928 command is properly recognised as a valid command.
8929
58e6ac70
PW
89302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8931
8932 * unittests/help-doc-selftests.c: Rename to
8933 unittests/command-def-selftests.c
8934 * unittests/command-def-selftests.c (help_doc_tests): Update some
8935 comments.
8936 (command_structure_tests, traverse_command_structure): New namespace
8937 and function.
8938 (command_structure_invariants_tests): New function.
8939 (_initialize_command_def_selftests) Renamed from
8940 _initialize_help_doc_selftests, register command_structure_invariants
8941 selftest.
8942
a7b9ceb8
PW
89432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8944
8945 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8946 an alias of 'show'.
8947
b2188a06
JB
89482020-05-15 Joel Brobecker <brobecker@adacore.com>
8949
8950 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8951 ada_is_fixed_point_type. Update all callers.
8952 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8953 all callers.
8954 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8955 Update all callers.
8956 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8957 print_fixed_point_type. Update all callers.
8958 * ada-valprint.c (ada_value_print_num): Replace call to
8959 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8960
a51951c2
KB
89612020-05-14 Kevin Buettner <kevinb@redhat.com>
8962
8963 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8964 processors.
8965 (cpu_supports_bts): Add CV_AMD case.
8966
29d6859f
LM
89672020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8968 Simon Marchi <simon.marchi@efficios.com>
8969
8970 * infrun.c (stop_all_threads): Collect multiple wait events at
8971 each pass.
8972
78134374
SM
89732020-05-14 Simon Marchi <simon.marchi@efficios.com>
8974
8975 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8976 type::code instead.
8977
67607e24
SM
89782020-05-14 Simon Marchi <simon.marchi@efficios.com>
8979
8980 * gdbtypes.h (struct type) <code, set_code>: New methods.
8981 (TYPE_CODE): Use type::code. Change all call sites used to set
8982 the code to use type::set_code instead.
8983
a05575d3
TBA
89842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8985 Tom de Vries <tdevries@suse.de>
8986 Pedro Alves <palves@redhat.com>
8987
8988 PR threads/25478
8989 * infrun.c (stop_all_threads): Do NOT ignore
8990 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8991 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8992 received.
8993 (handle_no_resumed): Remove code handling a live inferior with no
8994 threads.
8995 * remote.c (has_single_non_exited_thread): New.
8996 (remote_target::update_thread_list): Do not delete a thread if is
8997 the last thread of the process.
8998 * thread.c (thread_select): Call delete_exited_threads instead of
8999 prune_threads.
9000
6ad82919
TBA
90012020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9002
9003 * infrun.c (stop_all_threads): Enable/disable thread events of all
9004 targets. Move a debug message denoting the end of the function
9005 into the SCOPED_EXIT block.
9006
d890404b
TBA
90072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9008
9009 * process-stratum-target.h: Include <set>.
9010 (all_non_exited_process_targets, switch_to_target_no_thread): New
9011 function declarations.
9012 * process-stratum-target.c (all_non_exited_process_targets)
9013 (switch_to_target_no_thread): New function implementations.
9014
293b3ebc
TBA
90152020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9016
9017 * infrun.c (handle_inferior_event): Extract out a piece of code
9018 into...
9019 (mark_non_executing_threads): ...this new function.
9020
7ca9b62a
TBA
90212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9022
9023 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9024 use.
9025
fc75c28b
TBA
90262020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9027
9028 * regcache.c (regcache_read_pc_protected): New function
9029 implementation that returns 0 if the PC cannot read via
9030 'regcache_read_pc'.
9031 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9032 instead of 'regcache_read_pc'.
9033 (keep_going_pass_signal): Ditto.
9034
a89febbd
TT
90352020-05-13 Tom Tromey <tromey@adacore.com>
9036
9037 * ada-lang.c (align_value): Remove.
9038 (ada_template_to_fixed_record_type_1): Use align_up.
9039
f7e23710
TBA
90402020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9041
9042 * async-event.c: Update the copyright year.
9043 * async-event.h: Update the copyright year.
9044
02ff80c2
SM
90452020-05-12 Simon Marchi <simon.marchi@efficios.com>
9046
9047 * objfiles.h (is_addr_in_objfile,
9048 shared_objfile_contains_address_p): Return bool.
9049 * objfile.c (is_addr_in_objfile,
9050 shared_objfile_contains_address_p): Return bool.
9051
4fd6c7e8
TT
90522020-05-11 Tom Tromey <tromey@adacore.com>
9053
9054 * cli/cli-cmds.c (info_command): Restore.
9055 (_initialize_cli_cmds): Use add_prefix_command for "info".
9056 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9057
5eb68a39
TT
90582020-05-11 Tom Tromey <tromey@adacore.com>
9059
9060 * ada-lang.c (ada_value_primitive_field): Now public.
9061 * ada-lang.h (ada_value_primitive_field): Declare.
9062 * ada-valprint.c (print_field_values): Use
9063 ada_value_primitive_field for wrapper fields.
9064
7666722f
TV
90652020-05-11 Tom de Vries <tdevries@suse.de>
9066
9067 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9068 MODULE_DOMAIN.
9069
3ee6bb11
TV
90702020-05-11 Tom de Vries <tdevries@suse.de>
9071
9072 PR symtab/25941
9073 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9074 with length 0, if not gdb-produced.
9075 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9076
43434996
TV
90772020-05-09 Tom de Vries <tdevries@suse.de>
9078
9079 PR gdb/25955
9080 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9081 calculation.
9082
2f78cffc
TT
90832020-05-09 Tom Tromey <tom@tromey.com>
9084
9085 * top.c (server_command): Now bool.
9086 * top.h (server_command): Now bool.
9087
4f7bc5ed
TT
90882020-05-08 Tom Tromey <tromey@adacore.com>
9089
9090 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9091 already being processed.
9092
8be4b118
TT
90932020-05-08 Tom Tromey <tom@tromey.com>
9094
9095 * printcmd.c (struct display) <next>: Remove.
9096 <display>: New constructor.
9097 <exp_string>: Now a std::string.
9098 <enabled_p>: Now a bool.
9099 (display_number): Move definition earlier.
9100 (displays): Rename from display_chain. Now a std::vector.
9101 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9102 (display_command): Update.
9103 (do_one_display, disable_display)
9104 (enable_disable_display_command, do_enable_disable_display):
9105 Update.
9106 (free_display): Remove.
9107 (clear_displays): Rewrite.
9108 (delete_display): Update.
9109 (map_display_numbers): Use function_view. Remove "data"
9110 parameter. Update.
9111 (do_delete_display): Remove.
9112 (undisplay_command): Update.
9113 (do_one_display, do_displays, disable_display)
9114 (info_display_command): Update.
9115 (do_enable_disable_display): Remove.
9116 (enable_disable_display_command)
9117 (clear_dangling_display_expressions): Update.
9118
94c93c35
TT
91192020-05-08 Tom Tromey <tom@tromey.com>
9120
9121 * symtab.c (set_symbol_cache_size)
9122 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9123 (maintenance_print_symbol_cache_statistics): Update.
9124 * symmisc.c (print_symbol_bcache_statistics)
9125 (print_objfile_statistics, maintenance_print_objfiles)
9126 (maintenance_info_symtabs, maintenance_check_symtabs)
9127 (maintenance_expand_symtabs, maintenance_info_line_tables):
9128 Update.
9129 * symfile-debug.c (set_debug_symfile): Update.
9130 * source.c (forget_cached_source_info): Update.
9131 * python/python.c (gdbpy_progspaces): Update.
9132 * psymtab.c (maintenance_info_psymtabs): Update.
9133 * probe.c (parse_probes): Update.
9134 * linespec.c (iterate_over_all_matching_symtabs)
9135 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9136 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9137 * exec.c (exec_target::close): Update.
9138 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9139 * breakpoint.c (print_one_breakpoint_location)
9140 (create_longjmp_master_breakpoint)
9141 (create_std_terminate_master_breakpoint): Update.
9142 * progspace.c (program_spaces): Now a std::vector.
9143 (maybe_new_address_space): Update.
9144 (add_program_space): Remove.
9145 (program_space::program_space): Update.
9146 (remove_program_space): Update.
9147 (number_of_program_spaces): Remove.
9148 (print_program_space, update_address_spaces): Update.
9149 * progspace.h (program_spaces): Change type.
9150 (ALL_PSPACES): Remove.
9151 (number_of_program_spaces): Don't declare.
9152 (struct program_space) <next>: Remove.
9153
a1fd1ac9
TT
91542020-05-08 Tom Tromey <tom@tromey.com>
9155
9156 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9157 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9158 (enable_break): Update.
9159 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9160 (frv_fdpic_find_canonical_descriptor): Update.
9161 (frv_fetch_objfile_link_map): Update.
9162 * progspace.c (program_space::free_all_objfiles): Update.
9163 (program_space::solibs): New method.
9164 * progspace.h (struct program_space) <solibs>: New method.
9165 * solist.h (master_so_list): Don't declare.
9166 (ALL_SO_LIBS): Remove.
9167 * solib.h (so_list_head): Remove.
9168 (update_solib_list): Update comment.
9169 * solib.c (master_so_list): Remove.
9170 (solib_used, update_solib_list, solib_add)
9171 (info_sharedlibrary_command, clear_solib)
9172 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9173
38eae084
TT
91742020-05-08 Tom Tromey <tom@tromey.com>
9175
9176 * extension.c (extension_languages): Now a std::array.
9177 (ALL_EXTENSION_LANGUAGES): Remove.
9178 (get_ext_lang_defn, get_ext_lang_of_file)
9179 (eval_ext_lang_from_control_command): Update.
9180 (finish_ext_lang_initialization)
9181 (auto_load_ext_lang_scripts_for_objfile)
9182 (ext_lang_type_printers::ext_lang_type_printers)
9183 (apply_ext_lang_type_printers)
9184 (ext_lang_type_printers::~ext_lang_type_printers)
9185 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9186 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9187 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9188 (get_matching_xmethod_workers, ext_lang_colorize)
9189 (ext_lang_before_prompt): Update.
9190 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9191
596dc4ad
TT
91922020-05-08 Tom Tromey <tom@tromey.com>
9193
9194 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9195 overload.
9196 <swap_string, m_string>: Remove.
9197 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9198 Update.
9199 * stabsread.c (define_symbol, read_type): Update.
9200 * linespec.c (find_linespec_symbols): Update.
9201 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9202 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9203 * dbxread.c (read_dbx_symtab): Update.
9204 * cp-support.h (cp_canonicalize_string_full)
9205 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9206 Return unique_xmalloc_ptr.
9207 * cp-support.c (inspect_type): Update.
9208 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9209 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9210 Likewise.
9211 * c-typeprint.c (print_name_maybe_canonical): Update.
9212 * break-catch-throw.c (check_status_exception_catchpoint):
9213 Update.
9214
bf4cb9be
TV
92152020-05-08 Tom de Vries <tdevries@suse.de>
9216
9217 * infrun.c (follow_fork): Copy current_line and current_symtab to
9218 child thread.
9219
a1b68f28
SM
92202020-05-07 Simon Marchi <simon.marchi@efficios.com>
9221
9222 * async-event.c (struct async_signal_handler, struct
9223 async_event_handler): Reformat, remove typedef.
9224
98d48915
SM
92252020-05-07 Simon Marchi <simon.marchi@efficios.com>
9226
9227 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9228 access thistype->main_type->dyn_prop_list directly.
9229
7aa91313
SM
92302020-05-07 Simon Marchi <simon.marchi@efficios.com>
9231
9232 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9233 (remove_dyn_prop): Remove. Update all users to use
9234 type::remove_dyn_prop.
9235 * gdbtypes.c (remove_dyn_prop): Rename to...
9236 (type::remove_dyn_prop): ... this.
9237
5c54719c
SM
92382020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9239
9240 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9241 (add_dyn_prop): Remove. Update all users to use
9242 type::add_dyn_prop.
9243 * gdbtypes.c (add_dyn_prop): Rename to...
9244 (type::add_dyn_prop): ... this.
9245
24e99c6c
SM
92462020-05-07 Simon Marchi <simon.marchi@efficios.com>
9247
9248 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9249 (get_dyn_prop): Remove. Update all users to use
9250 type::dyn_prop.
9251 * gdbtypes.c (get_dyn_prop): Rename to...
9252 (type::dyn_prop): ... this.
9253
0d4bf016
SM
92542020-05-06 Simon Marchi <simon.marchi@efficios.com>
9255
9256 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9257
ac4a4f1c
SM
92582020-05-06 Simon Marchi <simon.marchi@efficios.com>
9259
9260 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9261 instruction, skip it if it's there.
9262
a3bbacc1
SM
92632020-05-05 Simon Marchi <simon.marchi@efficios.com>
9264
9265 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9266
c3236f84
SM
92672020-05-04 Simon Marchi <simon.marchi@efficios.com>
9268
9269 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9270 * gdbtypes.c (recursive_dump_type): Remove use of
9271 TYPE_INCOMPLETE.
9272
3b6acaee
TT
92732020-05-03 Tom Tromey <tom@tromey.com>
9274
9275 * breakpoint.c (catch_command, tcatch_command): Remove.
9276 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9277 add_show_prefix_cmd.
9278 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9279 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9280 Remove.
9281 (add_internal_problem_command): Use add_basic_prefix_cmd,
9282 add_show_prefix_cmd.
9283 * mips-tdep.c (set_mipsfpu_command): Remove.
9284 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9285 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9286 (_initialize_index_cache): Use add_basic_prefix_cmd.
9287 * memattr.c (dummy_cmd): Remove.
9288 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9289 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9290 (_initialize_tui_win): Use add_basic_prefix_cmd,
9291 add_show_prefix_cmd.
9292 * cli/cli-logging.c (set_logging_command): Remove.
9293 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9294 add_show_prefix_cmd.
9295 (show_logging_command): Remove.
9296 * target.c (target_command): Remove.
9297 (add_target): Use add_basic_prefix_cmd.
9298
a51119cd
HD
92992020-05-02 Hannes Domani <ssbssa@yahoo.de>
9300
9301 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9302
652fc23a 93032020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9304
652fc23a
PW
9305 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9306 info_command.
9307
117539e6
KR
93082020-04-30 Kamil Rytarowski <n54@gmx.com>
9309
9310 * nbsd-nat.c (nbsd_enable_proc_events)
9311 (nbsd_nat_target::post_startup_inferior): Add.
9312 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9313 (nbsd_nat_target::update_thread_list): Rewrite.
9314 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9315 "PTRACE_LWP_CREATE".
9316 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9317
102e38eb 93182020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9319
102e38eb
PW
9320 * stack.c (_initialize_stack): Remove duplicated creation
9321 of "frame" command and "f" alias.
9322
ee9d1e5f
HD
93232020-04-30 Hannes Domani <ssbssa@yahoo.de>
9324
9325 PR gdb/18706
9326 * gdbtypes.c (check_typedef): Calculate size of array of
9327 stubbed type.
9328
627c7fb8
HD
93292020-04-30 Hannes Domani <ssbssa@yahoo.de>
9330
9331 PR gdb/15559
9332 * i386-tdep.c (i386_push_dummy_call): Call
9333 i386_thiscall_push_dummy_call.
9334 (i386_thiscall_push_dummy_call): New function.
9335 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9336 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9337 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9338
ffc2844e
SM
93392020-04-29 Simon Marchi <simon.marchi@efficios.com>
9340
9341 * gdbarch.sh (do_read): Add shellcheck disable directive for
9342 warning SC2162.
9343
1207375d
SM
93442020-04-29 Simon Marchi <simon.marchi@efficios.com>
9345
9346 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9347 "referenced but not assigned" warning.
9348
9fdb2916
SM
93492020-04-29 Simon Marchi <simon.marchi@efficios.com>
9350
9351 * gdbarch.sh: Remove code that sets fallbackdefault.
9352
759cea5e
SM
93532020-04-29 Simon Marchi <simon.marchi@efficios.com>
9354
9355 * gdbarch.sh: Use shell operators && and || instead of
9356 -a and -o.
9357
cb02ab24
SM
93582020-04-29 Simon Marchi <simon.marchi@efficios.com>
9359
9360 * gdbarch.sh: Use $(...) instead of `...`.
9361
a6fc5ffc
SM
93622020-04-29 Simon Marchi <simon.marchi@efficios.com>
9363
9364 * gdbarch.sh: Use double quotes around variables.
9365
8d113d13
SM
93662020-04-29 Simon Marchi <simon.marchi@efficios.com>
9367
9368 * gdbarch.sh: Use %s with printf, instead of variables in the
9369 format string.
9370
ed6acedd
TT
93712020-04-29 Tom Tromey <tromey@adacore.com>
9372
9373 PR ada/25875:
9374 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9375 type fields here.
9376 (read_enumeration_type): Call
9377 update_enumeration_type_from_children later. Update comments.
9378 (process_enumeration_scope): Don't create type fields.
9379
b68b1b58
KR
93802020-04-29 Kamil Rytarowski <n54@gmx.com>
9381
9382 * nbsd-tdep.c: Include "xml-syscall.h".
9383 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9384
f94b2e03
KR
93852020-04-29 Kamil Rytarowski <n54@gmx.com>
9386
9387 * nbsd-nat.c: Include "sys/wait.h".
9388 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9389 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9390 (nbsd_nat_target::remove_exec_catchpoint)
9391 (nbsd_nat_target::set_syscall_catchpoint): Add.
9392 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9393 (nbsd_nat_target::insert_exec_catchpoint)
9394 (nbsd_nat_target::remove_exec_catchpoint)
9395 (nbsd_nat_target::set_syscall_catchpoint): Add.
9396 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9397 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9398 `nbsd_get_syscall_number'.
9399
fc49bc72
TT
94002020-04-29 Tom Tromey <tom@tromey.com>
9401
9402 * stack.c (print_block_frame_labels): Remove.
9403
d642b692
HD
94042020-04-29 Hannes Domani <ssbssa@yahoo.de>
9405
9406 PR gdb/17320
9407 * ada-valprint.c (val_print_packed_array_elements): Move array
9408 end bracket to new line.
9409 (ada_val_print_string): Remove extra spaces before first array
9410 element.
9411 * c-valprint.c (c_value_print_array): Likewise.
9412 * m2-valprint.c (m2_print_array_contents): Likewise.
9413 (m2_value_print_inner): Likewise.
9414 * p-valprint.c (pascal_value_print_inner): Likewise.
9415 * valprint.c (generic_val_print_array): Likewise.
9416 (value_print_array_elements): Move first array element and array
9417 end bracket to new line.
9418
ea90f227
TV
94192020-04-29 Tom de Vries <tdevries@suse.de>
9420
9421 PR symtab/25889
9422 * linespec.c (find_method): Fix ix calculation.
9423
4498ef4f
KR
94242020-04-28 Kamil Rytarowski <n54@gmx.com>
9425
9426 * syscalls/update-netbsd.sh: New file.
9427 * syscalls/netbsd.xml: Regenerate.
9428 * data-directory/Makefile.in: Register `netbsd.xml' in
9429 `SYSCALLS_FILES'.
9430
a55e30b5
SM
94312020-04-28 Simon Marchi <simon.marchi@efficios.com>
9432
9433 * syscalls/update-freebsd.sh: Add double quotes.
9434
2b2fbab8
TT
94352020-04-28 Tom Tromey <tom@tromey.com>
9436
9437 * NEWS: Update.
9438 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9439 (cmdpy_init): Allow class_tui.
9440
a65189c9
TV
94412020-04-28 Mark Williams <mark@myosotissp.com>
9442
9443 PR gdb/24480
9444 * dwarf2read.c: Add missing assingments to list_in_scope when
9445 start_symtab was already called.
9446
1b95cdb7
SM
94472020-04-28 Simon Marchi <simon.marchi@efficios.com>
9448
9449 PR gdb/25881
9450 * dwarf2/read.c (offset_map_type): Use
9451 gdb:hash_enum<sect_offset> as hash function.
9452
15cd93d0
TV
94532020-04-28 Tom de Vries <tdevries@suse.de>
9454
9455 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9456 with DW_AT_signature.
9457
1eb39914
SM
94582020-04-27 Simon Marchi <simon.marchi@efficios.com>
9459
9460 * configure.ac: Remove check for fs_base/gs_base in
9461 user_regs_struct.
9462 * configure: Re-generate.
9463 * config.in: Re-generate.
9464 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9465 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9466 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9467
991a3e2e
LM
94682020-04-27 Luis Machado <luis.machado@linaro.org>
9469
9470 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9471 problematic inline frame unwinding situation.
9472 * frame.c (frame_id_computed_p): New function.
9473 * frame.h (frame_id_computed_p): New prototype.
9474
361ba0e8
TT
94752020-04-26 Tom Tromey <tom@tromey.com>
9476
9477 * command.h (enum command_class) <class_pseudo>: Remove.
9478
bc3609fd
PW
94792020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9480
9481 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9482 and whitespace.
9483
b9771db7
KR
94842020-04-25 Kamil Rytarowski <n54@gmx.com>
9485
ec16513e
SM
9486 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9487 `PT_GET_PROCESS_STATE' block.
b9771db7 9488
7151c1af
TT
94892020-04-24 Tom Tromey <tom@tromey.com>
9490
9491 * symtab.h (symbol_get_demangled_name): Don't declare.
9492 * symtab.c (symbol_get_demangled_name): Remove.
9493 (general_symbol_info::natural_name)
9494 (general_symbol_info::demangled_name): Update.
9495
906bb4c5
TT
94962020-04-24 Tom Tromey <tom@tromey.com>
9497
9498 PR rust/25025:
9499 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9500
bcfe6157
TT
95012020-04-24 Tom Tromey <tom@tromey.com>
9502
9503 PR symtab/12707:
9504 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9505 exists.
9506 (new_symbol): Likewise.
9507 * compile/compile-object-load.c (get_out_value_type): Use
9508 symbol_matches_search_name.
9509
f049a313
TT
95102020-04-24 Tom Tromey <tom@tromey.com>
9511
9512 * dwarf2/read.c (add_partial_symbol): Do not call
9513 compute_and_set_names.
9514
76e288d1
TT
95152020-04-24 Tom Tromey <tom@tromey.com>
9516
9517 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9518 overload.
9519
2467f4f6
TT
95202020-04-24 Tom Tromey <tom@tromey.com>
9521
9522 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9523 (add_psymbol_to_list): New overload. Make old overload call new
9524 one.
9525 * psympriv.h (add_psymbol_to_list): New overload.
9526
e61108c9
TT
95272020-04-24 Tom Tromey <tom@tromey.com>
9528
9529 * dwarf2/read.c (partial_die_info::read) <case
9530 DW_AT_linkage_name>: Use value_as_string.
9531 (dwarf2_string_attr): Use value_as_string.
9532 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9533 method.
9534 * dwarf2/attribute.c (attribute::value_as_string): New method.
9535
8c87a452
TT
95362020-04-24 Tom Tromey <tom@tromey.com>
9537
9538 * symtab.c (general_symbol_info::natural_name)
9539 (general_symbol_info::demangled_name): Check for language_rust.
9540
787de330
TT
95412020-04-24 Tom Tromey <tom@tromey.com>
9542
9543 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9544 (dwarf2_physname): ... from here.
9545 (partial_die_info::read): Add Rust "{" hack.
9546
ff985671
TT
95472020-04-24 Tom Tromey <tom@tromey.com>
9548
9549 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9550 method.
9551 (symbol_set_demangled_name): Don't declare.
9552 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9553 symbol_set_demangled_name.
9554 (general_symbol_info::set_language)
9555 (general_symbol_info::compute_and_set_names): Update.
9556 * minsyms.c (minimal_symbol_reader::install): Update.
9557 * dwarf2/read.c (new_symbol): Update.
9558
1acda803
TT
95592020-04-24 Tom Tromey <tromey@adacore.com>
9560
9561 PR python/23662:
9562 * python/py-type.c (convert_field): Handle
9563 FIELD_LOC_KIND_DWARF_BLOCK.
9564 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9565 (typy_get_dynamic): Nw function.
9566 (type_object_getset): Add "dynamic".
9567 * NEWS: Add entry.
9568
d656f129
TT
95692020-04-24 Tom Tromey <tromey@adacore.com>
9570
9571 * ada-typeprint.c (print_choices, print_variant_part)
9572 (print_record_field_types_dynamic): New functions.
9573 (print_record_field_types): Use print_record_field_types_dynamic.
9574
7d79de9a
TT
95752020-04-24 Tom Tromey <tromey@adacore.com>
9576
9577 * dwarf2/read.c (handle_data_member_location): New overload.
9578 (dwarf2_add_field): Use it.
9579 (decode_locdesc): Add "computed" parameter. Update comment.
9580 * gdbtypes.c (is_dynamic_type_internal): Also look for
9581 FIELD_LOC_KIND_DWARF_BLOCK.
9582 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9583 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9584 virtual base classes.
9585 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9586 FIELD_LOC_KIND_DWARF_BLOCK.
9587
f8e89861
TT
95882020-04-24 Tom Tromey <tromey@adacore.com>
9589
9590 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9591 * gdbtypes.c (is_dynamic_type_internal): Check
9592 TYPE_HAS_DYNAMIC_LENGTH.
9593 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9594 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9595 New macros.
9596 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9597 constant.
9598
9c6a1327
TT
95992020-04-24 Tom Tromey <tromey@adacore.com>
9600
9601 * dwarf2/read.c (struct variant_field): Rewrite.
9602 (struct variant_part_builder): New.
9603 (struct nextfield): Remove "variant" field. Add "offset".
9604 (struct field_info): Add "current_variant_part" and
9605 "variant_parts".
9606 (alloc_discriminant_info): Remove.
9607 (alloc_rust_variant): New function.
9608 (quirk_rust_enum): Update.
9609 (dwarf2_add_field): Set "offset" member. Don't handle
9610 DW_TAG_variant_part.
9611 (offset_map_type): New typedef.
9612 (convert_variant_range, create_one_variant)
9613 (create_one_variant_part, create_variant_parts)
9614 (add_variant_property): New functions.
9615 (dwarf2_attach_fields_to_type): Call add_variant_property.
9616 (read_structure_type): Don't handle DW_TAG_variant_part.
9617 (handle_variant_part, handle_variant): New functions.
9618 (handle_struct_member_die): Use them.
9619 (process_structure_scope): Don't handle variant parts.
9620 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9621 (struct discriminant_info): Remove.
9622 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9623 (struct main_type) <flag_discriminated_union>: Remove.
9624 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9625 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9626 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9627 Update.
9628 * valops.c (value_union_variant): Remove.
9629 * value.h (value_union_variant): Don't declare.
9630
b249d2c2
TT
96312020-04-24 Tom Tromey <tromey@adacore.com>
9632
9633 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9634 (ada_value_primitive_packed_val): Update.
9635 * ada-valprint.c (ada_value_print_1): Update.
9636 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9637 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9638 just an address. Use evaluate_for_locexpr_baton.
9639 (dwarf2_evaluate_property): Update.
9640 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9641 array_view.
9642 * findvar.c (default_read_var_value): Update.
9643 * gdbtypes.c (compute_variant_fields_inner)
9644 (resolve_dynamic_type_internal): Update.
9645 (resolve_dynamic_type): Change type of valaddr parameter.
9646 * gdbtypes.h (resolve_dynamic_type): Update.
9647 * valarith.c (value_subscripted_rvalue): Update.
9648 * value.c (value_from_contents_and_address): Update.
9649
61122aa9
TT
96502020-04-24 Tom Tromey <tromey@adacore.com>
9651
9652 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9653 "push_initial_value" parameter.
9654 (dwarf2_evaluate_property): Likewise.
9655 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9656
ef83a141
TT
96572020-04-24 Tom Tromey <tromey@adacore.com>
9658
9659 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9660 (variant::matches, compute_variant_fields_recurse)
9661 (compute_variant_fields_inner, compute_variant_fields): New
9662 functions.
9663 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9664 Use resolved_type after type is made.
9665 (operator==): Add new cases.
9666 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9667 (struct discriminant_range, struct variant, struct variant_part):
9668 New.
9669 (union dynamic_prop_data) <variant_parts, original_type>: New
9670 members.
9671 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9672 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9673 constants.
9674 * value.c (unpack_bits_as_long): Now public.
9675 * value.h (unpack_bits_as_long): Declare.
9676
675127ec
TT
96772020-04-24 Tom Tromey <tromey@adacore.com>
9678
9679 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9680 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9681
9852ceef
HD
96822020-04-24 Hannes Domani <ssbssa@yahoo.de>
9683
9684 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9685
7632c6ce
KR
96862020-04-24 Kamil Rytarowski <n54@gmx.com>
9687
9688 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9689 (remove_fork_catchpoint, post_startup_inferior)
9690 (post_attach): Move...
9691 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9692 (remove_fork_catchpoint, post_startup_inferior)
9693 (post_attach): ...here.
9694 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9695 (remove_fork_catchpoint, post_startup_inferior)
9696 (post_attach): Move...
9697 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9698 (remove_fork_catchpoint, post_startup_inferior)
9699 (post_attach): ...here.
9700
7be2bb4f
TT
97012020-04-24 Tom Tromey <tromey@adacore.com>
9702
9703 * nat/windows-nat.h (struct windows_thread_info)
9704 <pc_adjusted>: New member.
9705 * windows-nat.c (windows_fetch_one_register): Check
9706 pc_adjusted.
9707 (windows_nat_target::get_windows_debug_event)
9708 (windows_nat_target::wait): Set pc_adjusted.
9709
f80cb3b4
TV
97102020-04-24 Tom de Vries <tdevries@suse.de>
9711
9712 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9713 Run gdb-add-index inside temp dir.
9714
29514b87
TT
97152020-04-23 Tom Tromey <tromey@adacore.com>
9716
9717 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9718 in loop.
9719
5939967b
LM
97202020-04-23 Luis Machado <luis.machado@linaro.org>
9721
9722 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9723 get_frame_register instead of gdbarch_unwind_pc.
9724
70bc38f5
TV
97252020-04-23 Tom de Vries <tdevries@suse.de>
9726
9727 * symtab.c (lookup_global_symbol): Prefer def over decl.
9728
de82891c
TV
97292020-04-23 Tom de Vries <tdevries@suse.de>
9730
9731 PR symtab/25807
9732 * block.c (best_symbol, better_symbol): Promote to external.
9733 * block.h (best_symbol, better_symbol): Declare.
9734 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9735 decl.
9736
ecc6c606
TT
97372020-04-23 Tom Tromey <tromey@adacore.com>
9738
9739 PR ada/25837:
9740 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9741 "const char *", not a "const std::string &".
9742 <name_and_matcher::operator==>: Update.
9743 * unittests/lookup_name_info-selftests.c: Change type of
9744 "result".
9745
740480b8
TT
97462020-04-23 Tom Tromey <tom@tromey.com>
9747
9748 * inferior.h (iterate_over_inferiors): Don't declare.
9749 * inferior.c (iterate_over_inferiors): Remove.
9750 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9751 Remove.
9752 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9753 use iterate_over_inferiors.
9754 (darwin_resume_inferior_it)
9755 (struct resume_inferior_threads_param)
9756 (darwin_resume_inferior_threads_it): Remove.
9757 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9758
ae3ab1f0
TV
97592020-04-23 Tom de Vries <tdevries@suse.de>
9760
9761 * blockframe.c (find_pc_partial_function): Use
9762 find_pc_sect_compunit_symtab rather than
9763 objfile->sf->qf->find_pc_sect_compunit_symtab.
9764
317d2668
TV
97652020-04-22 Tom de Vries <tdevries@suse.de>
9766
9767 PR symtab/25764
9768 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9769 in psymtabs.
9770
eea9e357
TV
97712020-04-22 Tom de Vries <tdevries@suse.de>
9772
9773 PR symtab/25801
9774 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9775 symtabs.
9776
3d5afab3
TV
97772020-04-22 Tom de Vries <tdevries@suse.de>
9778
9779 PR symtab/25700
9780 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9781 CU if already created.
9782
d43b7a2d
TBA
97832020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9784
9785 * infrun.c (displaced_step_fixup): Switch to the event_thread
9786 before calling displaced_step_restore, not after.
9787
d89edf9b
MM
97882020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9789
9790 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9791 its inferior is not recorded by us.
9792 (record_btrace_target_open): Replace call to
9793 all_non_exited_threads () with call to current_inferior
9794 ()->non_exited_threads ().
9795 (record_btrace_target::stop_recording): Likewise.
9796 (record_btrace_target::close): Likewise.
9797 (record_btrace_target::wait): Likewise.
9798 (record_btrace_target::record_stop_replaying): Likewise.
9799
5897fd49
MM
98002020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9801
9802 * btrace.c (btrace_enable): Throw an error on double enables and
9803 when enabling recording fails.
9804 (btrace_disable): Throw an error if the thread is not recorded.
9805
1a476b6d
MM
98062020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9807
9808 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9809 request if we do not have a thread_info.
9810
4778a5f8
TV
98112020-04-21 Tom de Vries <tdevries@suse.de>
9812
9813 PR gdb/25471
9814 * thread.c
9815 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9816 exception in get_frame_id.
9817
0fa7617d
TT
98182020-04-20 Tom Tromey <tromey@adacore.com>
9819
9820 * python/python.c (struct gdbpy_event): Mark move constructor as
9821 noexcept.
9822 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9823 constructor as noexcept.
9824 * completer.h (struct completion_result): Mark move constructor as
9825 noexcept.
9826 * completer.c (completion_result::completion_result): Use
9827 initialization style. Don't call reset_match_list.
9828
ad23bda0
MS
98292020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9830
9831 * MAINTAINERS (Write After Approval): Add myself.
9832
45e1f031
TT
98332020-04-18 Tom Tromey <tom@tromey.com>
9834
9835 * windows-tdep.c (init_w32_command_list)
9836 (w32_prefix_command_valid): Restore.
9837 (_initialize_windows_tdep): Call init_w32_command_list.
9838
08feed99
TT
98392020-04-18 Tom Tromey <tom@tromey.com>
9840
9841 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9842 * value.c (value_fn_field): Update.
9843 * valops.c (find_function_in_inferior)
9844 (value_allocate_space_in_inferior): Update.
9845 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9846 Update.
9847 * tui/tui-source.c (tui_source_window::set_contents): Update.
9848 * symtab.c (lookup_global_or_static_symbol)
9849 (find_function_start_sal_1, skip_prologue_sal)
9850 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9851 * symmisc.c (dump_msymbols, dump_symtab_1)
9852 (maintenance_print_one_line_table): Update.
9853 * symfile.c (init_entry_point_info, section_is_mapped)
9854 (list_overlays_command, simple_read_overlay_table)
9855 (simple_overlay_update_1): Update.
9856 * stap-probe.c (handle_stap_probe): Update.
9857 * stabsread.c (dbx_init_float_type, define_symbol)
9858 (read_one_struct_field, read_enum_type, read_range_type): Update.
9859 * source.c (info_line_command): Update.
9860 * python/python.c (gdbpy_source_objfile_script)
9861 (gdbpy_execute_objfile_script): Update.
9862 * python/py-type.c (save_objfile_types): Update.
9863 * python/py-objfile.c (py_free_objfile): Update.
9864 * python/py-inferior.c (python_new_objfile): Update.
9865 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9866 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9867 (maintenance_check_psymtabs): Update.
9868 * printcmd.c (info_address_command): Update.
9869 * objfiles.h (struct objfile) <arch>: New method, from
9870 get_objfile_arch.
9871 (get_objfile_arch): Don't declare.
9872 * objfiles.c (get_objfile_arch): Remove.
9873 (filter_overlapping_sections): Update.
9874 * minsyms.c (msymbol_is_function): Update.
9875 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9876 (output_nondebug_symbol): Update.
9877 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9878 (mdebug_expand_psymtab): Update.
9879 * machoread.c (macho_add_oso_symfile): Update.
9880 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9881 Update.
9882 * linux-fork.c (checkpoint_command): Update.
9883 * linespec.c (convert_linespec_to_sals): Update.
9884 * jit.c (finalize_symtab): Update.
9885 * infrun.c (insert_exception_resume_from_probe): Update.
9886 * ia64-tdep.c (ia64_find_unwind_table): Update.
9887 * hppa-tdep.c (internalize_unwinds): Update.
9888 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9889 Update.
9890 * gcore.c (call_target_sbrk): Update.
9891 * elfread.c (record_minimal_symbol, elf_symtab_read)
9892 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9893 (elf_gnu_ifunc_resolve_by_got): Update.
9894 * dwarf2/read.c (create_addrmap_from_index)
9895 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9896 (read_debug_names_from_section)
9897 (process_psymtab_comp_unit_reader, add_partial_symbol)
9898 (add_partial_subprogram, process_full_comp_unit)
9899 (read_file_scope, read_func_scope, read_lexical_block_scope)
9900 (read_call_site_scope, dwarf2_ranges_read)
9901 (dwarf2_record_block_ranges, dwarf2_add_field)
9902 (mark_common_block_symbol_computed, read_tag_pointer_type)
9903 (read_tag_string_type, dwarf2_init_float_type)
9904 (dwarf2_init_complex_target_type, read_base_type)
9905 (partial_die_info::read, partial_die_info::read)
9906 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9907 (dwarf2_fetch_die_loc_sect_off): Update.
9908 * dwarf2/loc.c (dwarf2_find_location_expression)
9909 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9910 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9911 (dwarf2_loc_desc_get_symbol_read_needs)
9912 (locexpr_describe_location_piece, locexpr_describe_location_1)
9913 (loclist_describe_location): Update.
9914 * dwarf2/index-write.c (write_debug_names): Update.
9915 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9916 * dtrace-probe.c (dtrace_process_dof): Update.
9917 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9918 (process_one_symbol): Update.
9919 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9920 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9921 (coff_read_enum_type): Update.
9922 * cli/cli-cmds.c (edit_command, list_command): Update.
9923 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9924 * breakpoint.c (create_overlay_event_breakpoint)
9925 (create_longjmp_master_breakpoint)
9926 (create_std_terminate_master_breakpoint)
9927 (create_exception_master_breakpoint, get_sal_arch): Update.
9928 * block.c (block_gdbarch): Update.
9929 * annotate.c (annotate_source_line): Update.
9930
0743fc83
TT
99312020-04-17 Tom Tromey <tromey@adacore.com>
9932
9933 * auto-load.c (show_auto_load_cmd): Remove.
9934 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9935 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9936 (maintenance_print_arc_command): Remove.
9937 * tui/tui-win.c (tui_command): Remove.
9938 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9939 * tui/tui-layout.c (tui_layout_command): Remove.
9940 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9941 * python/python.c (user_set_python, user_show_python): Remove.
9942 (_initialize_python): Use add_basic_prefix_cmd,
9943 add_show_prefix_cmd.
9944 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9945 (install_gdb_commands): Use add_basic_prefix_cmd,
9946 add_show_prefix_cmd.
9947 (info_guile_command): Remove.
9948 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9949 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9950 add_show_prefix_cmd.
9951 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9952 Remove do_set and do_show parameters.
9953 * cli/cli-style.c (set_style, show_style): Remove.
9954 (_initialize_cli_style): Use add_basic_prefix_cmd,
9955 add_show_prefix_cmd.
9956 (cli_style_option::add_setshow_commands): Remove do_set and
9957 do_show parameters.
9958 (cli_style_option::add_setshow_commands): Use
9959 add_basic_prefix_cmd, add_show_prefix_cmd.
9960 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9961 (set_style_name): Remove.
9962 * cli/cli-dump.c (dump_command, append_command): Remove.
9963 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9964 (tekhex_dump_command, binary_dump_command)
9965 (binary_append_command): Remove.
9966 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9967 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9968 (init_w32_command_list): Remove; move into ...
9969 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9970 * valprint.c (set_print, show_print, set_print_raw)
9971 (show_print_raw): Remove.
9972 (_initialize_valprint): Use add_basic_prefix_cmd,
9973 add_show_prefix_cmd.
9974 * typeprint.c (set_print_type, show_print_type): Remove.
9975 (_initialize_typeprint): Use add_basic_prefix_cmd,
9976 add_show_prefix_cmd.
9977 * record.c (set_record_command, show_record_command): Remove.
9978 (_initialize_record): Use add_basic_prefix_cmd,
9979 add_show_prefix_cmd.
9980 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9981 add_show_prefix_cmd.
9982 (info_command, show_command, set_debug, show_debug): Remove.
9983 * top.h (set_history, show_history): Don't declare.
9984 * top.c (set_history, show_history): Remove.
9985 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9986 (unset_tdesc_cmd): Remove.
9987 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9988 add_show_prefix_cmd.
9989 * symtab.c (info_module_command): Remove.
9990 (_initialize_symtab): Use add_basic_prefix_cmd.
9991 * symfile.c (overlay_command): Remove.
9992 (_initialize_symfile): Use add_basic_prefix_cmd.
9993 * sparc64-tdep.c (info_adi_command): Remove.
9994 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9995 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9996 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9997 add_show_prefix_cmd.
9998 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9999 (_initialize_serial): Use add_basic_prefix_cmd,
10000 add_show_prefix_cmd.
10001 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10002 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10003 add_show_prefix_cmd.
10004 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10005 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10006 add_show_prefix_cmd.
10007 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10008 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10009 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10010 add_show_prefix_cmd.
10011 * remote.c (remote_command, set_remote_cmd): Remove.
10012 (_initialize_remote): Use add_basic_prefix_cmd.
10013 * record-full.c (set_record_full_command)
10014 (show_record_full_command): Remove.
10015 (_initialize_record_full): Use add_basic_prefix_cmd,
10016 add_show_prefix_cmd.
10017 * record-btrace.c (cmd_set_record_btrace)
10018 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10019 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10020 (cmd_show_record_btrace_pt): Remove.
10021 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10022 add_show_prefix_cmd.
10023 * ravenscar-thread.c (set_ravenscar_command)
10024 (show_ravenscar_command): Remove.
10025 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10026 add_show_prefix_cmd.
10027 * mips-tdep.c (show_mips_command, set_mips_command)
10028 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10029 add_show_prefix_cmd.
10030 * maint.c (maintenance_command, maintenance_info_command)
10031 (maintenance_check_command, maintenance_print_command)
10032 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10033 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10034 add_show_prefix_cmd.
10035 (show_per_command_cmd): Remove.
10036 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10037 Remove.
10038 (maintenance_show_test_settings_cmd): Remove.
10039 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10040 add_show_prefix_cmd.
10041 * maint-test-options.c (maintenance_test_options_command):
10042 Remove.
10043 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10044 * macrocmd.c (macro_command): Remove
10045 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10046 * language.c (set_check, show_check): Remove.
10047 (_initialize_language): Use add_basic_prefix_cmd,
10048 add_show_prefix_cmd.
10049 * infcmd.c (unset_command): Remove.
10050 (_initialize_infcmd): Use add_basic_prefix_cmd.
10051 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10052 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10053 add_show_prefix_cmd.
10054 * go32-nat.c (go32_info_dos_command): Remove.
10055 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10056 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10057 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10058 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10059 (_initialize_frame): Use add_basic_prefix_cmd,
10060 add_show_prefix_cmd.
10061 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10062 (_initialize_dcache): Use add_basic_prefix_cmd,
10063 add_show_prefix_cmd.
10064 * cp-support.c (maint_cplus_command): Remove.
10065 (_initialize_cp_support): Use add_basic_prefix_cmd.
10066 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10067 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10068 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10069 add_basic_prefix_cmd, add_show_prefix_cmd.
10070 * breakpoint.c (save_command): Remove.
10071 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10072 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10073 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10074 add_show_prefix_cmd.
10075 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10076 (set_ada_command, show_ada_command): Remove.
10077 (_initialize_ada_language): Use add_basic_prefix_cmd,
10078 add_show_prefix_cmd.
10079 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10080
3557f442
KR
100812020-04-16 Kamil Rytarowski <n54@gmx.com>
10082
10083 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10084 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10085
16197208
SM
100862020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10087
10088 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10089 warning messages.
10090
00ac85d3
SM
100912020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10092
10093 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10094 import table is not at beginning of .idata section.
10095
381ce63f
PA
100962020-04-16 Pedro Alves <palves@redhat.com>
10097
10098 * inferior.c (delete_inferior): Use delete operator directly
10099 instead of delete_program_space.
10100 * progspace.c (add_program_space): New, factored out from
10101 program_space::program_space.
10102 (remove_program_space): New, factored out from
10103 delete_program_space.
10104 (program_space::program_space): Remove intro comment. Rewrite.
10105 (program_space::~program_space): Remove intro comment. Call
10106 remove_program_space.
10107 (delete_program_space): Delete.
10108 * progspace.h (program_space::program_space): Make explicit. Move
10109 intro comment here, adjusted.
10110 (program_space::~program_space): Move intro comment here,
10111 adjusted.
10112 (delete_program_space): Remove.
10113
a010605f
TT
101142020-04-16 Tom Tromey <tromey@adacore.com>
10115
10116 * windows-nat.c (windows_nat::handle_access_violation): New
10117 function.
10118 * nat/windows-nat.h (handle_access_violation): Declare.
10119 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10120 windows-nat.c. Call handle_access_violation.
10121
efba5c23
TV
101222020-04-16 Tom de Vries <tdevries@suse.de>
10123
10124 PR symtab/25791
10125 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10126 CUs without psymtab.
10127
97ed802d
KB
101282020-04-16 Kevin Buettner <kevinb@redhat.com>
10129
10130 * python/python.c (do_start_initialization): Don't call
10131 PyEval_InitThreads for Python 3.9 and beyond.
10132
c7d64809
KR
101332020-04-15 Kamil Rytarowski <n54@gmx.com>
10134
10135 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10136 thread functions.
10137 (obsd_nat_target::wait): Likewise.
10138
ce127a96
TT
101392020-04-15 Tom Tromey <tromey@adacore.com>
10140
10141 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10142 (DEBUG_EXCEPT): Use debug_printf.
10143
99f1bc6a
AB
101442020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10145
10146 * completer.c (class completion_tracker::completion_hash_entry)
10147 <hash_name>: New member function.
10148 (completion_tracker::discard_completions): New callback to hash a
10149 completion_hash_entry, pass this to htab_create_alloc.
10150
a0e9b532
JT
101512016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10152
10153 * windows-nat.c (windows_make_so): Warn rather than stopping with
10154 an error if realpath() fails.
10155
06ca5dd4
KR
101562020-04-14 Kamil Rytarowski <n54@gmx.com>
10157
10158 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10159 (nbsd_nat_target::info_proc): Add do_status.
10160
194d088f
TV
101612020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10162 Tom de Vries <tdevries@suse.de>
10163
10164 PR symtab/25718
10165 * psympriv.h (struct partial_symtab::read_symtab)
10166 (struct partial_symtab::expand_psymtab)
10167 (struct partial_symtab::read_dependencies): Update comments.
10168 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10169 read_symtab for includer.
10170 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10171 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10172 (struct dwarf2_include_psymtab::m_readin): Remove.
10173 (struct dwarf2_include_psymtab::includer): New member function.
10174 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10175
c1a66c06
TV
101762020-04-14 Tom de Vries <tdevries@suse.de>
10177
10178 PR symtab/25720
10179 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10180 with NULL symbol_matcher and lookup_name.
10181 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10182 and lookup_name.
10183 * dwarf2/read.c (dw2_expand_symtabs_matching)
10184 (dw2_debug_names_expand_symtabs_matching): Same.
10185 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10186 Make lookup_name a pointer. Update comment.
10187 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10188 lookup_name being a pointer.
10189 * symfile.c (expand_symtabs_matching): Same.
10190 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10191 * linespec.c (iterate_over_all_matching_symtabs): Same.
10192
400b5eca
TT
101932020-04-13 Tom Tromey <tom@tromey.com>
10194
10195 * run-on-main-thread.c: Update include.
10196 * unittests/main-thread-selftests.c: Update include.
10197 * tui/tui-win.c: Update include.
10198 * tui/tui-io.c: Update include.
10199 * tui/tui-interp.c: Update include.
10200 * tui/tui-hooks.c: Update include.
10201 * top.h: Update include.
10202 * top.c: Update include.
10203 * ser-base.c: Update include.
10204 * remote.c: Update include.
10205 * remote-notif.c: Update include.
10206 * remote-fileio.c: Update include.
10207 * record-full.c: Update include.
10208 * record-btrace.c: Update include.
10209 * python/python.c: Update include.
10210 * posix-hdep.c: Update include.
10211 * mingw-hdep.c: Update include.
10212 * mi/mi-main.c: Update include.
10213 * mi/mi-interp.c: Update include.
10214 * main.c: Update include.
10215 * linux-nat.c: Update include.
10216 * interps.c: Update include.
10217 * infrun.c: Update include.
10218 * inf-loop.c: Update include.
10219 * event-top.c: Update include.
10220 * event-loop.c: Move to ../gdbsupport/.
10221 * event-loop.h: Move to ../gdbsupport/.
10222 * async-event.h: Update include.
10223 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10224
93b54c8e
TT
102252020-04-13 Tom Tromey <tom@tromey.com>
10226
10227 * tui/tui-win.c: Include async-event.h.
10228 * remote.c: Include async-event.h.
10229 * remote-notif.c: Include async-event.h.
10230 * record-full.c: Include async-event.h.
10231 * record-btrace.c: Include async-event.h.
10232 * infrun.c: Include async-event.h.
10233 * event-top.c: Include async-event.h.
10234 * event-loop.h: Move some declarations to async-event.h.
10235 * event-loop.c: Don't include ser-event.h or top.h. Move some
10236 code to async-event.c.
10237 * async-event.h: New file.
10238 * async-event.c: New file.
10239 * Makefile.in (COMMON_SFILES): Add async-event.c.
10240 (HFILES_NO_SRCDIR): Add async-event.h.
10241
c1cd3163
TT
102422020-04-13 Tom Tromey <tom@tromey.com>
10243
10244 * utils.c (flush_streams): New function.
10245 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10246
29f2bf4f
TT
102472020-04-13 Tom Tromey <tom@tromey.com>
10248
10249 * event-loop.c (handle_file_event): Use warning, not
10250 printf_unfiltered.
10251
98029d02
TT
102522020-04-13 Tom Tromey <tom@tromey.com>
10253
10254 * event-loop.c: Include <chrono>.
10255
06cc9596
TT
102562020-04-13 Tom Tromey <tom@tromey.com>
10257
10258 * gdb_select.h: Move to ../gdbsupport/.
10259 * event-loop.c: Update include path.
10260 * top.c: Update include path.
10261 * ser-base.c: Update include path.
10262 * ui-file.c: Update include path.
10263 * ser-tcp.c: Update include path.
10264 * guile/scm-ports.c: Update include path.
10265 * posix-hdep.c: Update include path.
10266 * ser-unix.c: Update include path.
10267 * gdb_usleep.c: Update include path.
10268 * mingw-hdep.c: Update include path.
10269 * inflow.c: Update include path.
10270 * infrun.c: Update include path.
10271 * event-top.c: Update include path.
10272
8ae8e197
TT
102732020-04-13 Tom Tromey <tom@tromey.com>
10274
10275 * configure: Rebuild.
10276 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10277
58cf28e8
TT
102782020-04-13 Tom Tromey <tom@tromey.com>
10279
10280 * event-loop.h (start_event_loop): Don't declare.
10281 * event-loop.c (start_event_loop): Move...
10282 * main.c (start_event_loop): ...here. Now static.
10283
b7f999ae
SDJ
102842020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10285
10286 * MAINTAINERS: Update my email address.
10287
1085dfd4
KR
102882020-04-12 Kamil Rytarowski <n54@gmx.com>
10289
10290 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10291 IP_ALL.
10292
49d1d1f5
KR
102932020-04-12 Kamil Rytarowski <n54@gmx.com>
10294
10295 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10296 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10297
b4848d2a
KR
102982020-04-12 Kamil Rytarowski <n54@gmx.com>
10299
10300 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10301 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10302
51c133d5
KR
103032020-04-12 Kamil Rytarowski <n54@gmx.com>
10304
10305 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10306
54b8cbd0
KR
103072020-04-11 Kamil Rytarowski <n54@gmx.com>
10308
10309 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10310 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10311 (nbsd_nat_target::info_proc): New functions.
10312 * nbsd-nat.c (kinfo_get_vmmap): New function.
10313 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10314 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10315 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10316 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10317 functions.
10318 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10319 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10320 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10321 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10322 (KINFO_VME_FLAG_GROWS_DOWN): New.
10323
cf83625d
AS
103242020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10325
10326 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10327 bit shift.
10328
0c4311ab
TT
103292020-04-10 Tom Tromey <tromey@adacore.com>
10330
10331 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10332
3e65b3e9
TT
103332020-04-10 Tom Tromey <tromey@adacore.com>
10334
10335 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10336 separate debug files.
10337
13302e95
HD
103382020-04-10 Hannes Domani <ssbssa@yahoo.de>
10339
10340 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10341 Move to...
10342 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10343 ... here.
10344 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10345 Check for STATUS_WX86_BREAKPOINT.
10346 (windows_nat_target::wait): Same.
10347
bdfc1e8a
TV
103482020-04-10 Tom de Vries <tdevries@suse.de>
10349
10350 PR cli/25808
10351 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10352
f4460aec
SM
103532020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10354
10355 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10356 (Write After Approval): Remove Tom de Vries.
10357
a25198bb
BE
103582020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10359
10360 revert partially:
10361 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10362
aac66a4c
SM
10363 * buildsym.c (record_line): Fix undefined behavior and preserve
10364 lines at eof.
a25198bb 10365
206c98a6
KR
103662020-04-09 Kamil Rytarowski <n54@gmx.com>
10367
10368 * auxv.h (svr4_auxv_parse): New.
10369 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10370 and generic_auxv_parse.
10371 (svr4_auxv_parse): Add.
10372 * obsd-tdep.c: Include "auxv.h".
10373 (obsd_auxv_parse): Remove.
10374 (obsd_init_abi): Remove comment.
10375 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10376 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10377 * nbsd-tdep.c: Include "auxv.h".
10378 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10379
71fbdbaf
TT
103802020-04-08 Tom Tromey <tromey@adacore.com>
10381
10382 * nat/windows-nat.h (last_wait_event): Don't declare.
10383 (wait_for_debug_event): Update comment.
10384 * nat/windows-nat.c (last_wait_event): Now static.
10385
2c1d95e8
TT
103862020-04-08 Tom Tromey <tromey@adacore.com>
10387
10388 * windows-nat.c (wait_for_debug_event): Move to
10389 nat/windows-nat.c.
10390 * nat/windows-nat.h (wait_for_debug_event): Declare.
10391 * nat/windows-nat.c (wait_for_debug_event): Move from
10392 windows-nat.c. No longer static.
10393
d2977bc4
TT
103942020-04-08 Tom Tromey <tromey@adacore.com>
10395
10396 * windows-nat.c (get_windows_debug_event): Use
10397 fetch_pending_stop.
10398 * nat/windows-nat.h (fetch_pending_stop): Declare.
10399 * nat/windows-nat.c (fetch_pending_stop): New function.
10400
e758e19c
TT
104012020-04-08 Tom Tromey <tromey@adacore.com>
10402
10403 * windows-nat.c (windows_continue): Use matching_pending_stop and
10404 continue_last_debug_event.
10405 * nat/windows-nat.h (matching_pending_stop)
10406 (continue_last_debug_event): Declare.
10407 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10408 (matching_pending_stop, continue_last_debug_event): New
10409 functions.
10410
8d30e395
TT
104112020-04-08 Tom Tromey <tromey@adacore.com>
10412
10413 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10414 (handle_exception_result): Move to nat/windows-nat.h.
10415 (DEBUG_EXCEPTION_SIMPLE): Remove.
10416 (windows_nat::handle_ms_vc_exception): New function.
10417 (handle_exception): Move to nat/windows-nat.c.
10418 (get_windows_debug_event): Update.
10419 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10420 nat/windows-nat.c.
10421 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10422 (handle_exception_result): Move from windows-nat.c.
10423 (handle_exception): Declare.
10424 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10425 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10426 windows-nat.c.
10427
29de418d
TT
104282020-04-08 Tom Tromey <tromey@adacore.com>
10429
10430 * windows-nat.c (exception_count, event_count): Remove.
10431 (handle_exception, get_windows_debug_event)
10432 (do_initial_windows_stuff): Update.
10433
a816ba18
TT
104342020-04-08 Tom Tromey <tromey@adacore.com>
10435
10436 * windows-nat.c (windows_nat::handle_load_dll)
10437 (windows_nat::handle_unload_dll): Rename. No longer static.
10438 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10439 Declare.
10440
a00caa12
TT
104412020-04-08 Tom Tromey <tromey@adacore.com>
10442
10443 * complaints.h (stop_whining): Declare at top-level.
10444 (complaint): Don't declare stop_whining.
10445
d41b524f
TT
104462020-04-08 Tom Tromey <tromey@adacore.com>
10447
10448 * windows-nat.c (windows_nat::handle_output_debug_string):
10449 Rename. No longer static.
10450 * nat/windows-nat.h (handle_output_debug_string): Declare.
10451
3c76026d
TT
104522020-04-08 Tom Tromey <tromey@adacore.com>
10453
10454 * windows-nat.c (current_process_handle, current_process_id)
10455 (main_thread_id, last_sig, current_event, last_wait_event)
10456 (current_windows_thread, desired_stop_thread_id, pending_stops)
10457 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10458 (display_selectors, fake_create_process)
10459 (get_windows_debug_event): Update.
10460 * nat/windows-nat.h (current_process_handle, current_process_id)
10461 (main_thread_id, last_sig, current_event, last_wait_event)
10462 (current_windows_thread, desired_stop_thread_id, pending_stops)
10463 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10464 * nat/windows-nat.c (current_process_handle, current_process_id)
10465 (main_thread_id, last_sig, current_event, last_wait_event)
10466 (current_windows_thread, desired_stop_thread_id, pending_stops)
10467 (siginfo_er): New globals. Move from windows-nat.c.
10468
9d8679cc
TT
104692020-04-08 Tom Tromey <tromey@adacore.com>
10470
10471 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10472 (handle_load_dll): Update.
10473 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10474
28688adf
TT
104752020-04-08 Tom Tromey <tromey@adacore.com>
10476
10477 * windows-nat.c (enum thread_disposition_type): Move to
10478 nat/windows-nat.h.
10479 (windows_nat::thread_rec): Rename from thread_rec. No longer
10480 static.
10481 (windows_add_thread, windows_nat_target::fetch_registers)
10482 (windows_nat_target::store_registers, handle_exception)
10483 (windows_nat_target::resume, get_windows_debug_event)
10484 (windows_nat_target::get_tib_address)
10485 (windows_nat_target::thread_name)
10486 (windows_nat_target::thread_alive): Update.
10487 * nat/windows-nat.h (enum thread_disposition_type): Move from
10488 windows-nat.c.
10489 (thread_rec): Declare.
10490
4834dad0
TT
104912020-04-08 Tom Tromey <tromey@adacore.com>
10492
10493 * windows-nat.c: Add "using namespace".
10494 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10495 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10496
65bafd5b
TT
104972020-04-08 Tom Tromey <tromey@adacore.com>
10498
10499 * nat/windows-nat.h (struct windows_thread_info): Declare
10500 destructor.
10501 * nat/windows-nat.c (~windows_thread_info): New.
10502
0a4afda3
TT
105032020-04-08 Tom Tromey <tromey@adacore.com>
10504
10505 PR gdb/22992
10506 * windows-nat.c (current_event): Update comment.
10507 (last_wait_event, desired_stop_thread_id): New globals.
10508 (struct pending_stop): New.
10509 (pending_stops): New global.
10510 (windows_nat_target) <stopped_by_sw_breakpoint>
10511 <supports_stopped_by_sw_breakpoint>: New methods.
10512 (windows_fetch_one_register): Add assertions. Adjust PC.
10513 (windows_continue): Handle pending stops. Suspend other threads
10514 when stepping. Use last_wait_event
10515 (wait_for_debug_event): New function.
10516 (get_windows_debug_event): Use wait_for_debug_event. Handle
10517 pending stops. Queue spurious stops.
10518 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10519 (windows_nat_target::kill): Use wait_for_debug_event.
10520 * nat/windows-nat.h (struct windows_thread_info)
10521 <stopped_at_software_breakpoint>: New field.
10522 * nat/windows-nat.c (windows_thread_info::resume): Clear
10523 stopped_at_software_breakpoint.
10524
8e61ebec
TT
105252020-04-08 Tom Tromey <tromey@adacore.com>
10526
10527 * windows-nat.c (enum thread_disposition_type): New.
10528 (thread_rec): Replace "get_context" parameter with "disposition";
10529 change type.
10530 (windows_add_thread, windows_nat_target::fetch_registers)
10531 (windows_nat_target::store_registers, handle_exception)
10532 (windows_nat_target::resume, get_windows_debug_event)
10533 (windows_nat_target::get_tib_address)
10534 (windows_nat_target::thread_name)
10535 (windows_nat_target::thread_alive): Update.
10536
98a03287
TT
105372020-04-08 Tom Tromey <tromey@adacore.com>
10538
10539 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10540 (windows_continue): Use windows_continue::resume.
10541 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10542 resume>: Declare new methods.
10543 * nat/windows-nat.c: New file.
10544 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10545
7c7411bc
TT
105462020-04-08 Tom Tromey <tromey@adacore.com>
10547
10548 * windows-nat.c (windows_add_thread, windows_delete_thread)
10549 (windows_nat_target::fetch_registers)
10550 (windows_nat_target::store_registers, fake_create_process)
10551 (windows_nat_target::resume, windows_nat_target::resume)
10552 (get_windows_debug_event, windows_nat_target::wait)
10553 (windows_nat_target::pid_to_str)
10554 (windows_nat_target::get_tib_address)
10555 (windows_nat_target::get_ada_task_ptid)
10556 (windows_nat_target::thread_name)
10557 (windows_nat_target::thread_alive): Use lwp, not tid.
10558
2950fdf7
TT
105592020-04-08 Tom Tromey <tromey@adacore.com>
10560
10561 * windows-nat.c (handle_exception)
10562 (windows_nat_target::thread_name): Update.
10563 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10564 <name>: Now unique_xmalloc_ptr.
10565
62fe396b
TT
105662020-04-08 Tom Tromey <tromey@adacore.com>
10567
10568 * windows-nat.c (thread_rec)
10569 (windows_nat_target::fetch_registers): Update.
10570 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10571 Update comment.
10572 <debug_registers_changed, reload_context>: Now bool.
10573
e9534bd2
TT
105742020-04-08 Tom Tromey <tromey@adacore.com>
10575
10576 * windows-nat.c (windows_add_thread): Use new.
10577 (windows_init_thread_list, windows_delete_thread): Use delete.
10578 (get_windows_debug_event): Update.
10579 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10580 destructor, and initializers.
10581
ae1f8880
TT
105822020-04-08 Tom Tromey <tromey@adacore.com>
10583
10584 * windows-nat.c (struct windows_thread_info): Remove.
10585 * nat/windows-nat.h: New file.
10586
55a1e039
TT
105872020-04-08 Tom Tromey <tromey@adacore.com>
10588
10589 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10590 (thread_rec, windows_add_thread, windows_delete_thread)
10591 (windows_continue): Update.
10592
93366324
TT
105932020-04-08 Tom Tromey <tromey@adacore.com>
10594
10595 * windows-nat.c (struct windows_thread_info): Remove typedef.
10596 (thread_head): Remove.
10597 (thread_list): New global.
10598 (thread_rec, windows_add_thread, windows_init_thread_list)
10599 (windows_delete_thread, windows_continue): Update.
10600
0f2265e2
SM
106012020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10602
10603 * windows-tdep.h (windows_init_abi): Add comment.
10604 (cygwin_init_abi): New declaration.
10605 * windows-tdep.c: Split signal enumeration in two, one for
10606 Windows and one for Cygwin.
10607 (windows_gdb_signal_to_target): Only deal with signal of the
10608 Windows OS ABI.
10609 (cygwin_gdb_signal_to_target): New function.
10610 (windows_init_abi): Rename to windows_init_abi_common, don't set
10611 gdb_signal_to_target gdbarch method. Add new new function with
10612 this name.
10613 (cygwin_init_abi): New function.
10614 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10615 comment. Don't call windows_init_abi.
10616 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10617 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10618 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10619 i386_windows_init_abi_common, don't call windows_init_abi. Add
10620 a new function of this name.
10621 (i386_cygwin_init_abi): New function.
10622 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10623 OS ABI Cygwin.
10624
3810f182
SM
106252020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10626
10627 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10628 parameter.c.
10629 (dwarf2_read_gdb_index): Update.
10630
063f8e80
KR
106312020-04-07 Kamil Rytarowski <n54@gmx.com>
10632
10633 * nbsd-tdep.c: Include "objfiles.h".
10634 (nbsd_skip_solib_resolver): New.
10635 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10636
85a9510c 106372020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10638
10639 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10640 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10641 with DW_LLE_base_addressx are being emitted in DWARFv5.
10642 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10643 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10644 unsigned integer.
10645
9fc3eaae 106462020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10647
10648 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10649 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10650 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10651 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10652 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10653 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10654 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10655
10656
41144253 106572020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10658
10659 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10660 (read_loclist_index): New function definition.
10661 (lookup_loclist_base): New function definition.
10662 (read_loclist_header): New function definition.
10663 (dwarf2_cu): Add loclist_base and loclist_header field.
10664 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10665 (read_full_die_1): Read the value of DW_AT_loclists_base.
10666 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10667 (read_attribute_value): Handle DW_FORM_loclistx.
10668 (skip_one_die): Handle DW_FORM_loclistx.
10669 (loclist_header): New structure declaration.
10670 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10671
9f4e76a4
SM
106722020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10673
10674 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10675 constructor. Remove `addr` parameter from other constructor and
10676 add `per_cu` parameter.
10677 * dwarf2/read.c (create_partial_symtab): Update.
10678
25c11aca
TV
106792020-04-07 Tom de Vries <tdevries@suse.de>
10680
10681 PR symtab/25796
10682 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10683 (partial_die_info::fixup): Inherit has_const_value.
10684
5707e24b
TV
106852020-04-07 Tom de Vries <tdevries@suse.de>
10686
10687 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10688 symbols without address.
10689
05f00e22
KR
106902020-04-06 Kamil Rytarowski <n54@gmx.com>
10691
10692 * nbsd-nat.h (struct thread_info): Add forward declaration.
10693 (nbsd_nat_target::thread_alive): Add.
10694 (nbsd_nat_target::thread_name): Likewise.
10695 (nbsd_nat_target::update_thread_list): Likewise.
10696 (update_thread_list::post_attach): Likewise.
10697 (post_attach::pid_to_str): Likewise.
10698 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10699 (nbsd_thread_lister): Add.
10700 (nbsd_nat_target::thread_alive): Likewise.
10701 (nbsd_nat_target::thread_name): Likewise.
10702 (nbsd_add_threads): Likewise.
10703 (update_thread_list::post_attach): Likewise.
10704 (nbsd_nat_target::update_thread_list): Likewise.
10705 (post_attach::pid_to_str): Likewise.
10706
6ee448cc
TT
107072020-04-06 Tom Tromey <tromey@adacore.com>
10708
10709 * ada-valprint.c (print_variant_part): Extract the variant field.
10710 (print_field_values): Use the field as the outer value when
10711 recursing.
10712
dea34e8c
TT
107132020-04-06 Tom Tromey <tromey@adacore.com>
10714
10715 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10716 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10717 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10718 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10719 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10720
93689ce9
TT
107212020-04-06 Tom Tromey <tromey@adacore.com>
10722
10723 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10724 TYPE_CODE_ERROR.
10725
79743962
KR
107262020-04-06 Kamil Rytarowski <n54@gmx.com>
10727
10728 * nbsd-tdep.c: Include "gdbarch.h".
10729 Define enum with NetBSD signal numbers.
10730 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10731 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10732 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10733 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10734 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10735 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10736 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10737 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10738 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10739 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10740 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10741 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10742
9e7c9a03
HD
107432020-04-03 Hannes Domani <ssbssa@yahoo.de>
10744
10745 PR gdb/25325
10746 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10747
d9e49b61
TT
107482020-04-03 Tom Tromey <tromey@adacore.com>
10749
10750 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10751 Read constant block.
10752
e0fc5c3f
SM
107532020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10754
10755 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10756 (gdb_bfd_get_full_section_contents): New declaration.
10757 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10758 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10759 gdb_bfd_get_full_section_contents.
10760
e2ff18a0
SM
107612020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10762
10763 * exec.c (build_section_table): Replace internal_error with
10764 gdb_assert.
10765 (section_table_xfer_memory_partial): Likewise.
10766 * mdebugread.c (parse_partial_symbols): Likewise.
10767 * psymtab.c (lookup_partial_symbol): Likewise.
10768 * utils.c (wrap_here): Likewise.
10769
0830d301
TT
107702020-04-02 Tom Tromey <tromey@adacore.com>
10771
10772 * f-lang.c (build_fortran_types): Use arch_type to initialize
10773 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10774
e7da7f8f
TT
107752020-04-02 Tom Tromey <tromey@adacore.com>
10776
10777 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10778 of attributes.
10779
c90d28ac
AB
107802020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10781 Bernd Edlinger <bernd.edlinger@hotmail.de>
10782 Tom Tromey <tromey@adacore.com>
10783
10784 * buildsym.c (buildsym_compunit::record_line): Remove
10785 deduplication code.
10786
1aa98955
TV
107872020-04-02 Tom de Vries <tdevries@suse.de>
10788
10789 PR ada/24671
10790 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10791
d3214198
TV
107922020-04-02 Tom de Vries <tdevries@suse.de>
10793
10794 * dwarf2/read.c (dwarf2_gdb_index_functions,
10795 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10796 NULL.
10797 * psymtab.c (psym_lookup_global_symbol_language): New function.
10798 (psym_functions): Init psym_lookup_global_symbol_language with
10799 psym_lookup_global_symbol_language.
10800 * symfile-debug.c (debug_sym_quick_functions): Init
10801 lookup_global_symbol_language with NULL.
10802 * symfile.c (set_initial_language): Remove fixme comment.
10803 * symfile.h (struct quick_symbol_functions): Add
10804 lookup_global_symbol_language.
10805 * symtab.c (find_quick_global_symbol_language): New function.
10806 (find_main_name): Use find_quick_global_symbol_language.
10807
2836752f
SM
108082020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10809
10810 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10811
64dc2d4b
BE
108122020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10813
10814 * buildsym.c (record_line): Fix undefined behavior and preserve
10815 lines at eof.
10816
bbe3dc41
BE
108172020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10818
10819 * buildsym.c (record_line): Fix the resizing condition.
10820
6b4a335b
TT
108212020-04-01 Tom Tromey <tom@tromey.com>
10822
10823 * value.h (value_literal_complex): Add comment.
10824 * valops.c (value_literal_complex): Refer to value.h.
10825
3638a098
TT
108262020-04-01 Tom Tromey <tom@tromey.com>
10827
10828 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10829 (scalar_type): New rule, from typebase.
10830 (typebase): Use scalar_type. Recognize complex types.
10831 (field_name): Handle FLOAT_KEYWORD.
10832 (ident_tokens): Add _Complex and __complex__.
10833
c34e8714
TT
108342020-04-01 Tom Tromey <tom@tromey.com>
10835
10836 PR exp/25299:
10837 * valarith.c (promotion_type, complex_binop): New functions.
10838 (scalar_binop): Handle complex numbers. Use promotion_type.
10839 (value_pos, value_neg, value_complement): Handle complex numbers.
10840
fa649bb7
TT
108412020-04-01 Tom Tromey <tom@tromey.com>
10842
10843 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10844 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10845 (parse_number): Handle complex numbers.
10846
981c08ce
TT
108472020-04-01 Tom Tromey <tom@tromey.com>
10848
10849 * c-valprint.c (c_decorations): Change complex suffix to "i".
10850
4c99290d
TT
108512020-04-01 Tom Tromey <tom@tromey.com>
10852
10853 * valprint.c (generic_value_print_complex): Use accessors.
10854 * value.h (value_real_part, value_imaginary_part): Declare.
10855 * valops.c (value_real_part, value_imaginary_part): New
10856 functions.
10857 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10858
5b930b45
TT
108592020-04-01 Tom Tromey <tom@tromey.com>
10860
10861 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10862 (read_range_type): Update.
10863 * mdebugread.c (basic_type): Update.
10864 * go-lang.c (build_go_types): Use init_complex_type.
10865 * gdbtypes.h (struct main_type) <complex_type>: New member.
10866 (init_complex_type): Update.
10867 (arch_complex_type): Don't declare.
10868 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10869 Make name if none given. Use alloc_type_copy. Look for cached
10870 complex type.
10871 (arch_complex_type): Remove.
10872 (gdbtypes_post_init): Use init_complex_type.
10873 * f-lang.c (build_fortran_types): Use init_complex_type.
10874 * dwarf2/read.c (read_base_type): Update.
10875 * d-lang.c (build_d_types): Use init_complex_type.
10876 * ctfread.c (read_base_type): Update.
10877
53cccef1
TBA
108782020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10879
10880 * infrun.c (stop_all_threads): Update assertion, plus when
10881 stopping threads, take into account that we might be trying
10882 to stop an all-stop target.
10883 (stop_waiting): Call 'stop_all_threads' if there exists a
10884 non-stop target.
10885
a0714d30
TBA
108862020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10887
10888 * target.h (exists_non_stop_target): New function declaration.
10889 * target.c (exists_non_stop_target): New function.
10890
60e22c1e
HD
108912020-04-01 Hannes Domani <ssbssa@yahoo.de>
10892
10893 PR gdb/24789
10894 * eval.c (is_integral_or_integral_reference): New function.
10895 (evaluate_subexp_standard): Allow integer references in
10896 pointer arithmetic.
10897
e139a727
TBA
108982020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10899
10900 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10901 check for no ptid in the stop reply when the target is non-stop.
10902
e0802d59
TT
109032020-04-01 Tom Tromey <tromey@adacore.com>
10904
10905 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10906 "name" parameter to rvalue reference. Initialize m_name_holder.
10907 <lookup_name_info>: New overloads.
10908 <name>: Return gdb::string_view.
10909 <c_str>: New method.
10910 <make_ignore_params>: Update.
10911 <search_name_hash>: Update.
10912 <language_lookup_name>: Return const char *.
10913 <m_name>: Change type.
10914 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10915 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10916 (lookup_name_info::match_any): Update.
10917 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10918 Update.
10919 * minsyms.c (linkage_name_str): Update.
10920 * language.c (default_symbol_name_matcher): Update.
10921 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10922 Update.
10923 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10924 (ada_lookup_name_info::ada_lookup_name_info): Update.
10925 (literal_symbol_name_matcher): Update.
10926
8c072cb6
TT
109272020-04-01 Tom Tromey <tromey@adacore.com>
10928
10929 * psymtab.c (psymtab_search_name): Remove function.
10930 (psym_lookup_symbol): Create search name and lookup name here.
10931 (lookup_partial_symbol): Remove "name" parameter; add
10932 lookup_name.
10933 (psym_expand_symtabs_for_function): Update.
10934
6f29a534
TT
109352020-03-31 Joel Jones <joelkevinjones@gmail.com>
10936
10937 PR tui/25597:
10938 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10939
af62665e
TT
109402020-03-31 Tom Tromey <tromey@adacore.com>
10941
10942 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10943 memcpy.
10944
d1a89da5
NC
109452020-03-30 Nelson Chu <nelson.chu@sifive.com>
10946
10947 * features/riscv/32bit-csr.xml: Regenerated.
10948 * features/riscv/64bit-csr.xml: Regenerated.
10949
d8af9068
TT
109502020-03-30 Tom Tromey <tromey@adacore.com>
10951
10952 * ada-valprint.c (print_variant_part): Update.
10953 * ada-lang.h (ada_which_variant_applies): Update.
10954 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10955 outer_valaddr parameters; replace with "outer" value parameter.
10956 (to_fixed_variant_branch_type): Update.
10957
227c0bf4
PFC
109582020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10959
10960 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10961 <list>. Remove inclusion of observable.h.
10962 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10963 (struct arch_lwp_info): New struct.
10964 (class ppc_linux_dreg_interface): New class.
10965 (struct ppc_linux_process_info): New struct.
10966 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10967 <low_new_clone, low_forget_process, low_prepare_to_resume>
10968 <copy_thread_dreg_state, mark_thread_stale>
10969 <mark_debug_registers_changed, register_hw_breakpoint>
10970 <clear_hw_breakpoint, register_wp, clear_wp>
10971 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10972 <num_memory_accesses, get_trigger_type>
10973 <create_watchpoint_request, hwdebug_point_cmp>
10974 <init_arch_lwp_info, get_arch_lwp_info>
10975 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10976 methods.
10977 <struct ptid_hash>: New inner struct.
10978 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10979 members.
10980 (saved_dabr_value, hwdebug_info, max_slots_number)
10981 (struct hw_break_tuple, struct thread_points, ppc_threads)
10982 (have_ptrace_hwdebug_interface)
10983 (hwdebug_find_thread_points_by_tid)
10984 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10985 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10986 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10987 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10988 use m_dreg_interface.
10989 (hwdebug_point_cmp): Change to...
10990 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10991 reference arguments instead of pointers.
10992 (ppc_linux_nat_target::ranged_break_num_registers): Use
10993 m_dreg_interface.
10994 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10995 m_dreg_interface. Call register_hw_breakpoint.
10996 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10997 m_dreg_interface. Call clear_hw_breakpoint.
10998 (get_trigger_type): Change to...
10999 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11000 comment.
11001 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11002 use m_dreg_interface. Call register_hw_breakpoint.
11003 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11004 use m_dreg_interface. Call clear_hw_breakpoint.
11005 (can_use_watchpoint_cond_accel): Change to...
11006 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11007 method. Update comment, use m_dreg_interface and
11008 m_process_info.
11009 (calculate_dvc): Change to...
11010 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11011 m_dreg_interface.
11012 (num_memory_accesses): Change to...
11013 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11014 (check_condition): Change to...
11015 (ppc_linux_nat_target::check_condition): ...this method.
11016 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11017 comment, use m_dreg_interface.
11018 (create_watchpoint_request): Change to...
11019 (ppc_linux_nat_target::create_watchpoint_request): ...this
11020 method. Use m_dreg_interface.
11021 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11022 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11023 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11024 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11025 (ppc_linux_nat_target::low_forget_process)
11026 (ppc_linux_nat_target::low_new_fork)
11027 (ppc_linux_nat_target::low_new_clone)
11028 (ppc_linux_nat_target::low_delete_thread)
11029 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11030 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11031 only call mark_thread_stale.
11032 (ppc_linux_thread_exit): Remove.
11033 (ppc_linux_nat_target::stopped_data_address): Change to...
11034 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11035 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11036 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11037 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11038 comment. Call low_stopped_data_address.
11039 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11040 m_dreg_interface.
11041 (ppc_linux_nat_target::masked_watch_num_registers): Use
11042 m_dreg_interface.
11043 (ppc_linux_nat_target::copy_thread_dreg_state)
11044 (ppc_linux_nat_target::mark_thread_stale)
11045 (ppc_linux_nat_target::mark_debug_registers_changed)
11046 (ppc_linux_nat_target::register_hw_breakpoint)
11047 (ppc_linux_nat_target::clear_hw_breakpoint)
11048 (ppc_linux_nat_target::register_wp)
11049 (ppc_linux_nat_target::clear_wp)
11050 (ppc_linux_nat_target::init_arch_lwp_info)
11051 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11052 (_initialize_ppc_linux_nat): Remove observer callback.
11053
4db10d8f
PFC
110542020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11055
11056 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11057 (ppc_linux_nat_target::auxv_parse)
11058 (ppc_linux_nat_target::read_description)
11059 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11060 Move up.
11061
1310c1b0
PFC
110622020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11063
11064 * linux-nat.h (low_new_clone): New method.
11065 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11066
69b037c3
SM
110672020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11068
11069 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11070 (dbx_expand_psymtab): ... this.
11071 (start_psymtab): Update.
11072 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11073 (mdebug_expand_psymtab): ... this.
11074 (parse_partial_symbols): Update.
11075 (new_psymtab): Update.
11076 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11077 (xcoff_expand_psymtab): ... this.
11078 (xcoff_start_psymtab): Update.
11079
48993951
SM
110802020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11081
11082 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11083 <expand_dependencies>: ... this.
11084 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11085 (partial_symtab::expand_dependencies): ... this.
11086 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11087 Update.
11088 (dwarf2_psymtab::expand_psymtab): Update.
11089 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11090 * mdebugread.c (psymtab_to_symtab_1): Update.
11091 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11092
3ad83046
SM
110932020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11094
11095 * psympriv.h (discard_psymtab): Remove.
11096 * dbxread.c (dbx_end_psymtab): Update.
11097 * xcoffread.c (xcoff_end_psymtab): Update.
11098
4d1b9ab6
TT
110992020-03-28 Tom Tromey <tom@tromey.com>
11100
11101 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11102 comment.
11103
f1749218
TT
111042020-03-28 Tom Tromey <tom@tromey.com>
11105
11106 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11107
ebea7626
HD
111082020-03-27 Hannes Domani <ssbssa@yahoo.de>
11109
11110 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11111
a879b4d5
JB
111122020-03-26 John Baldwin <jhb@FreeBSD.org>
11113
11114 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11115
0826b30a
TT
111162020-03-26 Tom Tromey <tom@tromey.com>
11117
11118 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11119 (mark_common_block_symbol_computed, read_tag_string_type)
11120 (attr_to_dynamic_prop, read_subrange_type): Update.
11121 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11122 to be methods on struct attribute.
11123 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11124 (read_call_site_scope, partial_die_info::read)
11125 (partial_die_info::read, lookup_die_type, follow_die_ref):
11126 Update.
11127 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11128 from dwarf2_get_ref_die_offset.
11129 (attribute::constant_value): New method, from
11130 dwarf2_get_attr_constant_value.
11131 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11132 Declare method.
11133 <constant_value>: New method.
11134
2b2558bf
TT
111352020-03-26 Tom Tromey <tom@tromey.com>
11136
11137 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11138 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11139 (dwarf_type_encoding_name): Move to stringify.c.
11140 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11141 * dwarf2/stringify.c: New file.
11142 * dwarf2/stringify.h: New file.
11143
eeb64781
TT
111442020-03-26 Tom Tromey <tom@tromey.com>
11145
11146 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11147 Rewrite.
11148
a39fdb41
TT
111492020-03-26 Tom Tromey <tom@tromey.com>
11150
11151 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11152 methods.
11153 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11154 (lookup_ranges_base): Likewise.
11155 (read_cutu_die_from_dwo, read_full_die_1): Update.
11156
436c571c
TT
111572020-03-26 Tom Tromey <tom@tromey.com>
11158
11159 * dwarf2/read.c (read_import_statement, read_file_scope)
11160 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11161 (read_lexical_block_scope, read_call_site_scope)
11162 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11163 (handle_struct_member_die, process_structure_scope)
11164 (update_enumeration_type_from_children)
11165 (process_enumeration_scope, read_array_type, read_common_block)
11166 (read_namespace, read_module, read_subroutine_type): Update.
11167 (sibling_die): Remove.
11168
052c8bb8
TT
111692020-03-26 Tom Tromey <tom@tromey.com>
11170
11171 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11172 (build_type_psymtabs_reader, read_structure_type)
11173 (read_enumeration_type, read_full_die_1): Update.
11174 (dwarf2_attr_no_follow): Move to die.h.
11175 * dwarf2/die.h (struct die_info) <attr>: New method.
11176
2b24b6e4
TT
111772020-03-26 Tom Tromey <tom@tromey.com>
11178
11179 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11180 <base_address>: Now an optional.
11181 (dwarf2_find_base_address, dwarf2_rnglists_process)
11182 (dwarf2_ranges_process, fill_in_loclist_baton)
11183 (dwarf2_symbol_mark_computed): Update.
11184
c2d50fd0
TT
111852020-03-26 Tom Tromey <tom@tromey.com>
11186
11187 * dwarf2/read.c (struct die_info): Move to die.h.
11188 * dwarf2/die.h: New file.
11189
0df7ad3a
TT
111902020-03-26 Tom Tromey <tom@tromey.com>
11191
11192 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11193 * dwarf2/read.c
11194 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11195 Move to line-header.c.
11196 (read_checked_initial_length_and_offset, read_formatted_entries):
11197 Likewise.
11198 (dwarf_decode_line_header): Split into two.
11199 * dwarf2/line-header.c
11200 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11201 Move from read.c.
11202 (read_checked_initial_length_and_offset, read_formatted_entries):
11203 Likewise.
11204 (dwarf_decode_line_header): New function, split from read.c.
11205
86c0bb4c
TT
112062020-03-26 Tom Tromey <tom@tromey.com>
11207
11208 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11209 Declare method.
11210 * dwarf2/read.c (read_attribute_value): Update.
11211 (dwarf2_per_objfile::read_line_string): Rename from
11212 read_indirect_line_string.
11213 (read_formatted_entries): Update.
11214
2ef46c2f
TT
112152020-03-26 Tom Tromey <tom@tromey.com>
11216
11217 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11218 variable.
11219
4f9c1eda
TT
112202020-03-26 Tom Tromey <tom@tromey.com>
11221
11222 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11223 const.
11224 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11225 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11226 parameter const.
11227
5a0e026f
TT
112282020-03-26 Tom Tromey <tom@tromey.com>
11229
11230 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11231 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11232 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11233 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11234
8844c11b
TT
112352020-03-26 Tom Tromey <tom@tromey.com>
11236
11237 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11238 file_names_size, file_full_name, file_file_name>: Use const.
11239 <file_name_at, file_names>: Add const overload.
11240 * dwarf2/line-header.c (line_header::file_file_name)
11241 (line_header::file_full_name): Update.
11242
c90ec28a
TT
112432020-03-26 Tom Tromey <tom@tromey.com>
11244
11245 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11246 (macro_start_file, consume_improper_spaces)
11247 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11248 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11249 (dwarf_decode_macros): Move to macro.c.
11250 * dwarf2/macro.c: New file.
11251 * dwarf2/macro.h: New file.
11252 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11253
4f44ae6c
TT
112542020-03-26 Tom Tromey <tom@tromey.com>
11255
11256 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11257 method.
11258 * dwarf2/section.c: New method. From
11259 read_indirect_string_at_offset_from.
11260 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11261 (read_indirect_string_at_offset_from): Move to section.c.
11262 (read_indirect_string_at_offset): Rewrite.
11263 (read_indirect_line_string_at_offset): Remove.
11264 (read_indirect_string, read_indirect_line_string)
11265 (dwarf_decode_macro_bytes): Update.
11266
a0194fa8
TT
112672020-03-26 Tom Tromey <tom@tromey.com>
11268
11269 * dwarf2/section.h (struct dwarf2_section_info)
11270 <overload_complaint>: Declare.
11271 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11272 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11273 Rename from dwarf2_section_buffer_overflow_complaint.
11274 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11275 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11276
3d27bbdb
TT
112772020-03-26 Tom Tromey <tom@tromey.com>
11278
11279 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11280 Declare.
11281 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11282 Move from read.c.
11283 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11284 to section.c.
11285
9eac9650
TT
112862020-03-26 Tom Tromey <tom@tromey.com>
11287
11288 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11289
bf80d710
TT
112902020-03-26 Tom Tromey <tom@tromey.com>
11291
11292 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11293 "builder".
11294 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11295 parameter.
11296 (dwarf_decode_macros): Update.
11297
0314b390
TT
112982020-03-26 Tom Tromey <tom@tromey.com>
11299
11300 * dwarf2/read.c (read_attribute_value): Update.
11301 (read_indirect_string_from_dwz): Move to dwz.c; change into
11302 method.
11303 (dwarf_decode_macro_bytes): Update.
11304 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11305 * dwarf2/dwz.c: New file.
11306 * Makefile.in (COMMON_SFILES): Add dwz.c.
11307
9fda78b6
TT
113082020-03-26 Tom Tromey <tom@tromey.com>
11309
11310 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11311 * dwarf2/read.c: Add include.
11312 * dwarf2/index-write.c: Add include.
11313 * dwarf2/index-cache.c: Add include.
11314 * dwarf2/dwz.h: New file.
11315
33aa3c10
TT
113162020-03-25 Tom Tromey <tom@tromey.com>
11317
11318 * compile/compile-object-load.c (get_out_value_type): Mention
11319 correct symbol name in error message.
11320
d503b685
HD
113212020-03-25 Hannes Domani <ssbssa@yahoo.de>
11322
11323 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11324
7b1eff95
TV
113252020-03-25 Tom de Vries <tdevries@suse.de>
11326
11327 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11328 * symmisc.c (dump_symtab_1): Print user and includes fields.
11329 (maintenance_info_symtabs): Same.
11330
dd895392
AB
113312020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11332
11333 PR gdb/25534
11334 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11335 (riscv_regcache_cooked_write): New function.
11336 (riscv_push_dummy_call): Use new function.
11337 (riscv_return_value): Likewise.
11338
5ab2fbf1
SM
113392020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11340
11341 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11342 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11343 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11344 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11345 * infrun.c (follow_fork): Likewise.
11346 (follow_fork_inferior): Likewise.
11347 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11348 * linux-nat.h (class linux_nat_target): Likewise.
11349 * remote.c (class remote_target) <follow_fork>: Likewise.
11350 (remote_target::follow_fork): Likewise.
11351 * target-delegates.c: Re-generate.
11352 * target.c (default_follow_fork): Likewise.
11353 (target_follow_fork): Likewise.
11354 * target.h (struct target_ops) <follow_fork>: Likewise.
11355 (target_follow_fork): Likewise.
11356
a64fafb5
TV
113572020-03-24 Tom de Vries <tdevries@suse.de>
11358
11359 * psymtab.c (maintenance_info_psymtabs): Print user field.
11360
fe26d3a3
TT
113612020-03-20 Tom Tromey <tromey@adacore.com>
11362
11363 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11364 const.
11365 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11366 const.
11367
c884cc46
SM
113682020-03-20 Simon Marchi <simon.marchi@efficios.com>
11369
11370 * ptrace.m4: Don't check for ptrace declaration.
11371 * config.in: Re-generate.
11372 * configure: Re-generate.
11373 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11374 not defined.
11375
1ff700c2
KR
113762020-03-20 Kamil Rytarowski <n54@gmx.com>
11377
11378 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11379 `PTRACE_TYPE_RET'.
11380 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11381 * sparc-nat.c (gdb_ptrace): Likewise.
11382 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11383
f7d4f0b1
TT
113842020-03-20 Tom Tromey <tromey@adacore.com>
11385
11386 * c-exp.y (lex_one_token): Fix assert.
11387
f67210ff
TT
113882020-03-20 Tom Tromey <tromey@adacore.com>
11389
11390 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11391 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11392 strncpy call.
11393
1773be9e
TT
113942020-03-20 Tom Tromey <tromey@adacore.com>
11395
11396 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11397
70304be9
TT
113982020-03-20 Tom Tromey <tromey@adacore.com>
11399
11400 * ada-valprint.c (print_variant_part): Remove parameters; switch
11401 to value-based API.
11402 (print_field_values): Likewise.
11403 (ada_val_print_struct_union): Likewise.
11404 (ada_value_print_1): Update.
11405
9faa006d
KR
114062020-03-20 Kamil Rytarowski <n54@gmx.com>
11407
11408 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11409 nbsd_nat_target instead of inf_ptrace_target.
11410 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11411 nbsd_nat_target.
11412
4a90f062
KR
114132020-03-20 Kamil Rytarowski <n54@gmx.com>
11414
11415 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11416 it to the ptrace call.
11417 * (store_registers): Likewise.
11418
114192020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11420
11421 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11422 it to the ptrace call.
11423 * (store_registers): Likewise.
11424
2d07da27
LM
114252020-03-19 Luis Machado <luis.machado@linaro.org>
11426
11427 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11428 valid, fetch vg value from ptrace.
11429
f09db380
KR
114302020-03-19 Kamil Rytarowski <n54@gmx.com>
11431 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11432 * inf-ptrace.c: Likewise.
11433 * (gdb_ptrace): Add.
11434 * (inf_ptrace_target::resume): Update.
11435 * (inf_ptrace_target::xfer_partial): Likewise.
11436 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11437 * (inf_ptrace_peek_poke): Update.
11438
fcc7376e
KR
114392020-03-19 Kamil Rytarowski <n54@gmx.com>
11440
11441 * x86-bsd-nat.c (gdb_ptrace): New.
11442 * (x86bsd_dr_set): Add new argument `ptid'.
11443 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11444 x86bsd_dr_set_addr): Update.
11445
cada5fc9
AB
114462020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11447
11448 * remote.c (remote_target::process_stop_reply): Handle events for
11449 all threads differently.
11450
19a2740f
AB
114512020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11452
11453 * completer.c (completion_tracker::remove_completion): Define new
11454 function.
11455 * completer.h (completion_tracker::remove_completion): Declare new
11456 function.
11457 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11458 when adding a C++ function symbol.
11459
724fd9ba
AB
114602020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11461
11462 * completer.c (completion_tracker::completion_hash_entry): Define
11463 new class.
11464 (advance_to_filename_complete_word_point): Call
11465 recompute_lowest_common_denominator.
11466 (completion_tracker::completion_tracker): Call discard_completions
11467 to setup the hash table.
11468 (completion_tracker::discard_completions): Allow for being called
11469 from the constructor, pass new equal function, and element deleter
11470 when constructing the hash table. Initialise new class member
11471 variables.
11472 (completion_tracker::maybe_add_completion): Remove use of
11473 m_entries_vec, and store more information into m_entries_hash.
11474 (completion_tracker::recompute_lcd_visitor): New function, most
11475 content taken from...
11476 (completion_tracker::recompute_lowest_common_denominator):
11477 ...here, this now just visits each item in the hash calling the
11478 above visitor.
11479 (completion_tracker::build_completion_result): Remove use of
11480 m_entries_vec, call recompute_lowest_common_denominator.
11481 * completer.h (completion_tracker::have_completions): Remove use
11482 of m_entries_vec.
11483 (completion_tracker::completion_hash_entry): Declare new class.
11484 (completion_tracker::recompute_lowest_common_denominator): Change
11485 function signature.
11486 (completion_tracker::recompute_lcd_visitor): Declare new function.
11487 (completion_tracker::m_entries_vec): Delete.
11488 (completion_tracker::m_entries_hash): Initialize to NULL.
11489 (completion_tracker::m_lowest_common_denominator_valid): New
11490 member variable.
11491 (completion_tracker::m_lowest_common_denominator_max_length): New
11492 member variable.
11493
5a82b8a1
KR
114942020-03-17 Kamil Rytarowski <n54@gmx.com>
11495
11496 * regformats/regdef.h: Put reg in gdb namespace.
11497
fb516a69
KR
114982020-03-17 Kamil Rytarowski <n54@gmx.com>
11499
11500 * i386-bsd-nat.c (gdb_ptrace): New.
11501 * (i386bsd_fetch_inferior_registers,
11502 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11503 * (i386bsd_fetch_inferior_registers,
11504 i386bsd_store_inferior_registers) Use gdb_ptrace.
11505
1c0aa1fb
KR
115062020-03-17 Kamil Rytarowski <n54@gmx.com>
11507
11508 * amd64-bsd-nat.c (gdb_ptrace): New.
11509 * (amd64bsd_fetch_inferior_registers,
11510 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11511 * (amd64bsd_fetch_inferior_registers,
11512 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11513
5ccd2fb7
KR
115142020-03-17 Kamil Rytarowski <n54@gmx.com>
11515
11516 * user-regs.c (user_reg::read): Rename to...
11517 (user_reg::xread): ...this.
11518 * (append_user_reg): Rename argument `read' to `xread'.
11519 * (user_reg_add_builtin): Likewise.
11520 * (user_reg_add): Likewise.
11521 * (value_of_user_reg): Likewise.
11522
2108a63a
KR
115232020-03-17 Kamil Rytarowski <n54@gmx.com>
11524
11525 * sparc-nat.c (gdb_ptrace): New.
11526 * sparc-nat.c (sparc_fetch_inferior_registers)
11527 (sparc_store_inferior_registers) Remove obsolete comment.
11528 * sparc-nat.c (sparc_fetch_inferior_registers)
11529 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11530 * sparc-nat.c (sparc_fetch_inferior_registers)
11531 (sparc_store_inferior_registers) Use gdb_ptrace.
11532
a225c9a8
KR
115332020-03-17 Kamil Rytarowski <n54@gmx.com>
11534
11535 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11536 it to the ptrace call.
11537 * sh-nbsd-nat.c (store_registers): Likewise.
11538
98097623
KR
115392020-03-17 Kamil Rytarowski <n54@gmx.com>
11540
11541 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11542 nbsd_nat_target instead of inf_ptrace_target.
11543 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11544 nbsd_nat_target.
11545
9e38d619
KR
115462020-03-17 Kamil Rytarowski <n54@gmx.com>
11547
11548 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11549
a2ecbe9f
KR
115502020-03-17 Kamil Rytarowski <n54@gmx.com>
11551
11552 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11553 <sys/sysctl.h>.
11554 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11555
58990295
TV
115562020-03-17 Tom de Vries <tdevries@suse.de>
11557
11558 PR gdb/23710
11559 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11560 fields.
11561 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11562 fields.
11563 (process_imported_unit_die): Skip import of c++ CUs.
11564
771dd3a8
TT
115652020-03-16 Tom Tromey <tom@tromey.com>
11566
11567 * p-valprint.c (pascal_object_print_value): Initialize
11568 base_value.
11569
817a7585
AK
115702020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11571 Shahab Vahedi <shahab@synopsys.com>
11572
11573 * Makefile.in: Add arch/arc.o
11574 * configure.tgt: Likewise.
11575 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11576 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11577 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11578 * arc-tdep.h (arc_read_description): Add proto type.
11579 * arch/arc.c: New file.
11580 * arch/arc.h: Likewise.
11581 * features/Makefile: Replace old target descriptions with new.
11582 * features/arc-arcompact.c: Remove.
11583 * features/arc-arcompact.xml: Likewise.
11584 * features/arc-v2.c: Likewise
11585 * features/arc-v2.xml: Likewise
11586 * features/arc/aux-arcompact.xml: New file.
11587 * features/arc/aux-v2.xml: Likewise.
11588 * features/arc/core-arcompact.xml: Likewise.
11589 * features/arc/core-v2.xml: Likewise.
11590 * features/arc/aux-arcompact.c: Generate.
11591 * features/arc/aux-v2.c: Likewise.
11592 * features/arc/core-arcompact.c: Likewise.
11593 * features/arc/core-v2.c: Likewise.
11594 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11595
67430cd0
TT
115962020-03-16 Tom Tromey <tromey@adacore.com>
11597
11598 PR gdb/25663:
11599 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11600 putting value into bcache.
11601
30efb6c7
SM
116022020-03-16 Simon Marchi <simon.marchi@efficios.com>
11603
11604 PR gdb/21500
11605 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11606 to...
11607 (amd64_windows_init_abi_common): ... this. Don't set size of
11608 long type.
11609 (amd64_windows_init_abi): New function.
11610 (amd64_cygwin_init_abi): New function.
11611 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11612 the Cygwin OS ABI.
11613 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11614 comment.
11615
8db52437
SM
116162020-03-16 Simon Marchi <simon.marchi@efficios.com>
11617
11618 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11619 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11620 (pe_import_directory_entry): New struct type.
11621 (is_linked_with_cygwin_dll): New function.
11622 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11623 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11624 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11625
5982a56a
SM
116262020-03-16 Simon Marchi <simon.marchi@efficios.com>
11627
11628 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11629 i386_cygwin_core_osabi_sniffer.
11630
7a1998df
SM
116312020-03-16 Simon Marchi <simon.marchi@efficios.com>
11632
11633 * i386-cygwin-tdep.c: Rename to...
11634 * i386-windows-tdep.c: ... this.
11635 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11636 i386-windows-tdep.c.
11637 * configure.tgt: Likewise.
11638
053205cc
SM
116392020-03-16 Simon Marchi <simon.marchi@efficios.com>
11640
11641 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11642 * osabi.c (gdb_osabi_names): Add "Windows".
11643 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11644 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11645 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11646 i386_cygwin_osabi_sniffer.
11647 (_initialize_i386_cygwin_tdep): Register OS ABI
11648 GDB_OSABI_WINDOWS for i386.
11649 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11650 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11651 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11652 for x86-64.
11653 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11654 when the target matches '*-*-mingw*'.
11655
fe4b2ee6
SM
116562020-03-16 Simon Marchi <simon.marchi@efficios.com>
11657
11658 * defs.h (enum gdb_osabi): Move to...
11659 * osabi.h (enum gdb_osabi): ... here.
11660 * gdbarch.sh: Include osabi.h in gdbarch.h.
11661 * gdbarch.h: Re-generate.
11662
cb9b645d
SM
116632020-03-16 Simon Marchi <simon.marchi@efficios.com>
11664
11665 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11666 function.
11667 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11668
3293bbaf
TT
116692020-03-14 Tom Tromey <tom@tromey.com>
11670
11671 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11672 for C++.
11673 (c_type_print_modifier): Likewise. Add "language" parameter.
11674 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11675 (c_type_print_base_1): Update.
11676 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11677 constants.
11678 * type-stack.c (type_stack::insert): Handle tp_atomic and
11679 tp_restrict.
11680 (type_stack::follow_type_instance_flags): Likewise.
11681 (type_stack::follow_types): Likewise. Merge type-following code.
11682 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11683 (space_identifier, cv_with_space_id)
11684 (const_or_volatile_or_space_identifier_noopt)
11685 (const_or_volatile_or_space_identifier): Remove.
11686 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11687 rules.
11688 (ptr_operator, typebase): Update.
11689 (enum token_flag) <FLAG_C>: New constant.
11690 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11691 "_Atomic".
11692 (lex_one_token): Handle FLAG_C.
11693
154151a6
KR
116942020-03-14 Kamil Rytarowski <n54@gmx.com>
11695
11696 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11697 it to the ptrace call.
11698 * m68k-bsd-nat.c (store_registers): Likewise.
11699
bc107784
KR
117002020-03-14 Kamil Rytarowski <n54@gmx.com>
11701
11702 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11703 gdb_byte *.
11704 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11705 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11706 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11707
01a80117
KR
117082020-03-14 Kamil Rytarowski <n54@gmx.com>
11709
11710 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11711 nbsd_nat_target instead of inf_ptrace_target.
11712 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11713 nbsd_nat_target.
11714
f90280ca
KR
117152020-03-14 Kamil Rytarowski <n54@gmx.com>
11716
11717 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11718 register_t.
11719
6def66f1
KR
117202020-03-14 Kamil Rytarowski <n54@gmx.com>
11721
11722 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11723 it to the ptrace call.
11724 * alpha-bsd-nat.c (store_registers): Likewise.
11725
66eaca97
KR
117262020-03-14 Kamil Rytarowski <n54@gmx.com>
11727
11728 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11729 includes.
11730 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11731 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11732 fill_fpregset): Likewise.
11733
4fed520b
KR
117342020-03-14 Kamil Rytarowski <n54@gmx.com>
11735
11736 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11737 nbsd_nat_target instead of inf_ptrace_target.
11738 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11739 nbsd_nat_target.
11740
2190cf06
KR
117412020-03-14 Kamil Rytarowski <n54@gmx.com>
11742
11743 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11744 register_t.
11745
75c56d3d
KR
117462020-03-14 Kamil Rytarowski <n54@gmx.com>
11747
11748 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11749 it to the ptrace call.
11750 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11751 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11752 * arm-nbsd-nat.c (store_register): Likewise.
11753 * arm-nbsd-nat.c (store_regs): Likewise.
11754 * arm-nbsd-nat.c (store_fp_register): Likewise.
11755 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11756
6018d381
KR
117572020-03-14 Kamil Rytarowski <n54@gmx.com>
11758
11759 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11760 nbsd_nat_target instead of inf_ptrace_target.
11761 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11762 nbsd_nat_target.
11763
013f99f0
KR
117642020-03-14 Kamil Rytarowski <n54@gmx.com>
11765
11766 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11767 it to the ptrace call.
11768 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11769
12753073
KR
117702020-03-14 Kamil Rytarowski <n54@gmx.com>
11771
6227b330
KR
11772 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11773 it to the ptrace call.
11774 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11775
117762020-03-14 Kamil Rytarowski <n54@gmx.com>
11777
11778 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11779 gdb_byte *.
12753073
KR
11780 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11781
d5be5fa4
KR
117822020-03-14 Kamil Rytarowski <n54@gmx.com>
11783
11784 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11785 instead of inf_ptrace_target.
11786 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11787 nbsd_nat_target.
11788
8110f842
KR
117892020-03-14 Kamil Rytarowski <n54@gmx.com>
11790
11791 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11792 register_t.
11793
52feded7
KR
117942020-03-14 Kamil Rytarowski <n54@gmx.com>
11795
11796 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11797 register_t.
11798
25567eee
KR
117992020-03-14 Kamil Rytarowski <n54@gmx.com>
11800
11801 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11802 register_t.
11803
426a9c18
TT
118042020-03-13 Tom Tromey <tom@tromey.com>
11805
11806 * value.h (val_print): Don't declare.
11807 * valprint.h (val_print_array_elements)
11808 (val_print_scalar_formatted, generic_val_print): Don't declare.
11809 * valprint.c (generic_val_print_array): Take a struct value.
11810 (generic_val_print_ptr, generic_val_print_memberptr)
11811 (generic_val_print_bool, generic_val_print_int)
11812 (generic_val_print_char, generic_val_print_complex)
11813 (generic_val_print): Remove.
11814 (generic_value_print): Update.
11815 (do_val_print): Remove unused parameters. Don't call
11816 la_val_print.
11817 (val_print): Remove.
11818 (common_val_print): Update. Don't call value_check_printable.
11819 (val_print_scalar_formatted, val_print_array_elements): Remove.
11820 * rust-lang.c (rust_val_print): Remove.
11821 (rust_language_defn): Update.
11822 * p-valprint.c (pascal_val_print): Remove.
11823 (pascal_value_print_inner): Update.
11824 (pascal_object_print_val_fields, pascal_object_print_val):
11825 Remove.
11826 (pascal_object_print_static_field): Update.
11827 * p-lang.h (pascal_val_print): Don't declare.
11828 * p-lang.c (pascal_language_defn): Update.
11829 * opencl-lang.c (opencl_language_defn): Update.
11830 * objc-lang.c (objc_language_defn): Update.
11831 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11832 * m2-lang.h (m2_val_print): Don't declare.
11833 * m2-lang.c (m2_language_defn): Update.
11834 * language.h (struct language_defn) <la_val_print>: Remove.
11835 * language.c (unk_lang_value_print_inner): Rename. Change
11836 argument types.
11837 (unknown_language_defn, auto_language_defn): Update.
11838 * go-valprint.c (go_val_print): Remove.
11839 * go-lang.h (go_val_print): Don't declare.
11840 * go-lang.c (go_language_defn): Update.
11841 * f-valprint.c (f_val_print): Remove.
11842 * f-lang.h (f_value_print): Don't declare.
11843 * f-lang.c (f_language_defn): Update.
11844 * d-valprint.c (d_val_print): Remove.
11845 * d-lang.h (d_value_print): Don't declare.
11846 * d-lang.c (d_language_defn): Update.
11847 * cp-valprint.c (cp_print_value_fields)
11848 (cp_print_value_fields_rtti, cp_print_value): Remove.
11849 (cp_print_static_field): Update.
11850 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11851 (c_val_print_struct, c_val_print_union, c_val_print_int)
11852 (c_val_print_memberptr, c_val_print): Remove.
11853 * c-lang.h (c_val_print_array, cp_print_value_fields)
11854 (cp_print_value_fields_rtti): Don't declare.
11855 * c-lang.c (c_language_defn, cplus_language_defn)
11856 (asm_language_defn, minimal_language_defn): Update.
11857 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11858 (ada_val_print_enum): Take a struct value.
11859 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11860 (ada_val_print): Remove.
11861 (ada_value_print_1): Update.
11862 (printable_val_type): Remove.
11863 * ada-lang.h (ada_val_print): Don't declare.
11864 * ada-lang.c (ada_language_defn): Update.
11865
42331a1e
TT
118662020-03-13 Tom Tromey <tom@tromey.com>
11867
11868 * valprint.c (do_val_print): Update.
11869 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11870 a struct value.
11871 (value_to_value_object_no_release): Declare.
11872 * python/py-value.c (value_to_value_object_no_release): New
11873 function.
11874 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11875 struct value.
11876 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11877 function.
11878 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11879 a struct value.
11880 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11881 Declare.
11882 (gdbscm_apply_val_pretty_printer): Take a struct value.
11883 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11884 value.
11885 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11886 value.
11887 * extension-priv.h (struct extension_language_ops)
11888 <apply_val_pretty_printer>: Take a struct value.
11889 * cp-valprint.c (cp_print_value): Create a struct value.
11890 (cp_print_value): Update.
11891
3a916a97
TT
118922020-03-13 Tom Tromey <tom@tromey.com>
11893
11894 * ada-valprint.c (print_field_values): Call common_val_print.
11895
b59eac37
TT
118962020-03-13 Tom Tromey <tom@tromey.com>
11897
11898 * ada-valprint.c (val_print_packed_array_elements): Remove
11899 bitoffset and val parameters. Call common_val_print.
11900 (ada_val_print_string): Remove offset, address, and original_value
11901 parameters.
11902 (ada_val_print_array): Update.
11903 (ada_value_print_array): New function.
11904 (ada_value_print_1): Call it.
11905
03371129
TT
119062020-03-13 Tom Tromey <tom@tromey.com>
11907
11908 * ada-valprint.c (ada_value_print): Use common_val_print.
11909
2e088f8b
TT
119102020-03-13 Tom Tromey <tom@tromey.com>
11911
11912 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11913
39ef85a8
TT
119142020-03-13 Tom Tromey <tom@tromey.com>
11915
11916 * ada-valprint.c (ada_value_print_num): New function.
11917 (ada_value_print_1): Use it.
11918
b9fa6e07
TT
119192020-03-13 Tom Tromey <tom@tromey.com>
11920
11921 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11922
416595d6
TT
119232020-03-13 Tom Tromey <tom@tromey.com>
11924
11925 * ada-valprint.c (ada_value_print_ptr): New function.
11926 (ada_value_print_1): Use it.
11927
5b5e15ec
TT
119282020-03-13 Tom Tromey <tom@tromey.com>
11929
11930 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11931 call common_val_print.
11932 (ada_val_print_1): Update.
11933 (ada_value_print_1): New function.
11934 (ada_value_print_inner): Rewrite.
11935
fbf54e75
TT
119362020-03-13 Tom Tromey <tom@tromey.com>
11937
11938 * cp-valprint.c (cp_print_value_fields): Update.
11939 (cp_print_value): New function.
11940
64b653ca
TT
119412020-03-13 Tom Tromey <tom@tromey.com>
11942
11943 * m2-valprint.c (m2_value_print_inner): Use
11944 cp_print_value_fields.
11945 * cp-valprint.c (cp_print_value_fields): New function.
11946 * c-valprint.c (c_value_print_struct): New function.
11947 (c_value_print_inner): Use c_value_print_struct.
11948 * c-lang.h (cp_print_value_fields): Declare.
11949
6999f067
TT
119502020-03-13 Tom Tromey <tom@tromey.com>
11951
11952 * c-valprint.c (c_value_print_array): New function.
11953 (c_value_print_inner): Use it.
11954
ce80b8bd
TT
119552020-03-13 Tom Tromey <tom@tromey.com>
11956
11957 * c-valprint.c (c_value_print_memberptr): New function.
11958 (c_value_print_inner): Use it.
11959
2faac269
TT
119602020-03-13 Tom Tromey <tom@tromey.com>
11961
11962 * c-valprint.c (c_value_print_int): New function.
11963 (c_value_print_inner): Use it.
11964
da3e2c29
TT
119652020-03-13 Tom Tromey <tom@tromey.com>
11966
11967 * c-valprint.c (c_value_print_ptr): New function.
11968 (c_value_print_inner): Use it.
11969
50836231
TT
119702020-03-13 Tom Tromey <tom@tromey.com>
11971
11972 * c-valprint.c (c_value_print_inner): Rewrite.
11973
4f412b6e
TT
119742020-03-13 Tom Tromey <tom@tromey.com>
11975
11976 * valprint.c (generic_value_print_complex): New function.
11977 (generic_value_print): Use it.
11978
f5354008
TT
119792020-03-13 Tom Tromey <tom@tromey.com>
11980
11981 * valprint.c (generic_val_print_float): Don't call
11982 val_print_scalar_formatted.
11983 (generic_val_print, generic_value_print): Update.
11984
3eec3b05
TT
119852020-03-13 Tom Tromey <tom@tromey.com>
11986
11987 * valprint.c (generic_value_print_char): New function
11988 (generic_value_print): Use it.
11989
fdddfccb
TT
119902020-03-13 Tom Tromey <tom@tromey.com>
11991
11992 * valprint.c (generic_value_print_int): New function.
11993 (generic_value_print): Use it.
11994
6dde7521
TT
119952020-03-13 Tom Tromey <tom@tromey.com>
11996
11997 * valprint.c (generic_value_print_bool): New function.
11998 (generic_value_print): Use it.
11999
4112d2e6
TT
120002020-03-13 Tom Tromey <tom@tromey.com>
12001
12002 * valprint.c (generic_val_print_func): Simplify.
12003 (generic_val_print, generic_value_print): Update.
12004
65786af6
TT
120052020-03-13 Tom Tromey <tom@tromey.com>
12006
12007 * valprint.c (generic_val_print_flags): Remove.
12008 (generic_val_print, generic_value_print): Update.
12009 (val_print_type_code_flags): Add original_value parameter.
12010
40f3ce18
TT
120112020-03-13 Tom Tromey <tom@tromey.com>
12012
12013 * valprint.c (generic_val_print): Update.
12014 (generic_value_print): Update.
12015 * valprint.c (generic_val_print_enum): Don't call
12016 val_print_scalar_formatted.
12017
2a5b130b
TT
120182020-03-13 Tom Tromey <tom@tromey.com>
12019
12020 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12021 * valprint.c (generic_value_print_ptr): New function.
12022
abc66ce9
TT
120232020-03-13 Tom Tromey <tom@tromey.com>
12024
12025 * valprint.c (generic_value_print): Rewrite.
12026
07a32858
TT
120272020-03-13 Tom Tromey <tom@tromey.com>
12028
12029 * p-valprint.c (pascal_object_print_value_fields)
12030 (pascal_object_print_value): New functions.
12031
64d64d3a
TT
120322020-03-13 Tom Tromey <tom@tromey.com>
12033
12034 * p-valprint.c (pascal_value_print_inner): Rewrite.
12035
6a95a1f5
TT
120362020-03-13 Tom Tromey <tom@tromey.com>
12037
12038 * f-valprint.c (f_value_print_innner): Rewrite.
12039
59fcdac6
TT
120402020-03-13 Tom Tromey <tom@tromey.com>
12041
12042 * m2-valprint.c (m2_print_unbounded_array): New overload.
12043 (m2_print_unbounded_array): Update.
12044 (m2_print_array_contents): Take a struct value.
12045 (m2_value_print_inner): Rewrite.
12046
d133c3e1
TT
120472020-03-13 Tom Tromey <tom@tromey.com>
12048
12049 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12050 (d_value_print_inner): New function.
12051 * d-lang.h (d_value_print_inner): Declare.
12052 * d-lang.c (d_language_defn): Use d_value_print_inner.
12053
23b0f06b
TT
120542020-03-13 Tom Tromey <tom@tromey.com>
12055
12056 * go-valprint.c (go_value_print_inner): New function.
12057 * go-lang.h (go_value_print_inner): Declare.
12058 * go-lang.c (go_language_defn): Use go_value_print_inner.
12059
5f56f7cb
TT
120602020-03-13 Tom Tromey <tom@tromey.com>
12061
12062 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12063 API.
12064 (rust_val_print): Rewrite.
12065 (rust_value_print_inner): New function, from rust_val_print.
12066 (rust_language_defn): Use rust_value_print_inner.
12067
26792ee0
TT
120682020-03-13 Tom Tromey <tom@tromey.com>
12069
12070 * ada-valprint.c (ada_value_print_inner): New function.
12071 * ada-lang.h (ada_value_print_inner): Declare.
12072 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12073
24051bbe
TT
120742020-03-13 Tom Tromey <tom@tromey.com>
12075
12076 * f-valprint.c (f_value_print_innner): New function.
12077 * f-lang.h (f_value_print_innner): Declare.
12078 * f-lang.c (f_language_defn): Use f_value_print_innner.
12079
c0941be6
TT
120802020-03-13 Tom Tromey <tom@tromey.com>
12081
12082 * p-valprint.c (pascal_value_print_inner): New function.
12083 * p-lang.h (pascal_value_print_inner): Declare.
12084 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12085
62c4663d
TT
120862020-03-13 Tom Tromey <tom@tromey.com>
12087
12088 * m2-valprint.c (m2_value_print_inner): New function.
12089 * m2-lang.h (m2_value_print_inner): Declare.
12090 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12091
62182190
TT
120922020-03-13 Tom Tromey <tom@tromey.com>
12093
12094 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12095 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12096 * c-valprint.c (c_value_print_inner): New function.
12097 * c-lang.h (c_value_print_inner): Declare.
12098 * c-lang.c (c_language_defn, cplus_language_defn)
12099 (asm_language_defn, minimal_language_defn): Use
12100 c_value_print_inner.
12101
1e592a8a
TT
121022020-03-13 Tom Tromey <tom@tromey.com>
12103
12104 * p-valprint.c (pascal_object_print_value_fields): Now static.
12105 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12106
7fe471e9
TT
121072020-03-13 Tom Tromey <tom@tromey.com>
12108
12109 * c-valprint.c (c_val_print_array): Simplify.
12110
d121c6ce
TT
121112020-03-13 Tom Tromey <tom@tromey.com>
12112
12113 * valprint.c (value_print_array_elements): New function.
12114 * valprint.h (value_print_array_elements): Declare.
12115
4dba70ee
TT
121162020-03-13 Tom Tromey <tom@tromey.com>
12117
12118 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12119 * mips-tdep.c (mips_print_register): Use
12120 value_print_scalar_formatted.
12121
4f9ae810
TT
121222020-03-13 Tom Tromey <tom@tromey.com>
12123
12124 * valprint.h (value_print_scalar_formatted): Declare.
12125 * valprint.c (value_print_scalar_formatted): New function.
12126
156bfec9
TT
121272020-03-13 Tom Tromey <tom@tromey.com>
12128
12129 * valprint.h (generic_value_print): Declare.
12130 * valprint.c (generic_value_print): New function.
12131
2b4e573d
TT
121322020-03-13 Tom Tromey <tom@tromey.com>
12133
12134 * valprint.c (do_val_print): Call la_value_print_inner, if
12135 available.
12136 * rust-lang.c (rust_language_defn): Update.
12137 * p-lang.c (pascal_language_defn): Update.
12138 * opencl-lang.c (opencl_language_defn): Update.
12139 * objc-lang.c (objc_language_defn): Update.
12140 * m2-lang.c (m2_language_defn): Update.
12141 * language.h (struct language_defn) <la_value_print_inner>: New
12142 member.
12143 * language.c (unknown_language_defn, auto_language_defn): Update.
12144 * go-lang.c (go_language_defn): Update.
12145 * f-lang.c (f_language_defn): Update.
12146 * d-lang.c (d_language_defn): Update.
12147 * c-lang.c (c_language_defn, cplus_language_defn)
12148 (asm_language_defn, minimal_language_defn): Update.
12149 * ada-lang.c (ada_language_defn): Update.
12150
a1f6a07c
TT
121512020-03-13 Tom Tromey <tom@tromey.com>
12152
12153 * c-valprint.c (c_value_print): Use common_val_print.
12154
410cf315
TT
121552020-03-13 Tom Tromey <tom@tromey.com>
12156
12157 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12158
72a45c93
TT
121592020-03-13 Tom Tromey <tom@tromey.com>
12160
12161 * f-valprint.c (f77_print_array_1, f_val_print): Use
12162 common_val_print.
12163
040f66bd
TT
121642020-03-13 Tom Tromey <tom@tromey.com>
12165
12166 * riscv-tdep.c (riscv_print_one_register_info): Use
12167 common_val_print.
12168
a6e05a6c
TT
121692020-03-13 Tom Tromey <tom@tromey.com>
12170
12171 * mi/mi-main.c (output_register): Use common_val_print.
12172
3444c526
TT
121732020-03-13 Tom Tromey <tom@tromey.com>
12174
12175 * infcmd.c (default_print_one_register_info): Use
12176 common_val_print.
12177
c2a44efe
TT
121782020-03-13 Tom Tromey <tom@tromey.com>
12179
12180 * valprint.h (common_val_print_checked): Declare.
12181 * valprint.c (common_val_print_checked): New function.
12182 * stack.c (print_frame_arg): Use common_val_print_checked.
12183
b0c26e99
TT
121842020-03-13 Tom Tromey <tom@tromey.com>
12185
12186 * valprint.c (do_val_print): New function, from val_print.
12187 (val_print): Use do_val_print.
12188 (common_val_print): Use do_val_print.
12189
ce3acbe9
TT
121902020-03-13 Tom Tromey <tom@tromey.com>
12191
12192 * valprint.c (value_print): Use scoped_value_mark.
12193
96c7f873
TV
121942020-03-13 Tom de Vries <tdevries@suse.de>
12195
12196 PR symtab/25646
12197 * psymtab.c (partial_symtab::partial_symtab): Don't set
12198 globals_offset and statics_offset. Push element onto
12199 current_global_psymbols and current_static_psymbols stacks.
12200 (concat): New function.
12201 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12202 element from current_global_psymbols and current_static_psymbols
12203 stacks. Concat popped elements to global_psymbols and
12204 static_symbols.
12205 (add_psymbol_to_list): Use current_global_psymbols and
12206 current_static_psymbols stacks.
12207 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12208 current_static_psymbols fields.
12209
6ba0a321
CB
122102020-03-12 Christian Biesinger <cbiesinger@google.com>
12211
12212 * corelow.c (sniff_core_bfd): Remove.
12213 (class core_target) <m_core_vec>: Remove.
12214 (core_target::core_target): Update.
12215 (core_file_fns): Remove.
12216 (deprecated_add_core_fns): Remove.
12217 (default_core_sniffer): Remove.
12218 (sniff_core_bfd): Remove.
12219 (default_check_format): Remove.
12220 (gdb_check_format): Remove.
12221 (core_target_open): Update.
12222 (core_target::get_core_register_section): Update.
12223 (get_core_registers_cb): Update.
12224 (core_target::fetch_registers): Update.
12225 * gdbcore.h (struct core_fns): Remove.
12226 (deprecated_add_core_fns): Remove.
12227 (default_core_sniffer): Remove.
12228 (default_check_format): Remove.
12229
227031b2
TT
122302020-03-12 Tom Tromey <tom@tromey.com>
12231
12232 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12233 CORE_ADDR.
12234 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12235
53807e9f
TT
122362020-03-12 Tom Tromey <tom@tromey.com>
12237
12238 * remote.c (remote_target::download_tracepoint)
12239 (remote_target::enable_tracepoint)
12240 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12241 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12242 sprintf_vma.
12243
64f25102
TT
122442020-03-12 Tom Tromey <tom@tromey.com>
12245
12246 * symfile-mem.c: Update CORE_ADDR size assert.
12247
272cd5a3
SM
122482020-03-12 Simon Marchi <simon.marchi@efficios.com>
12249
12250 * selftest.m4: Move to gdbsupport/.
12251 * acinclude.m4: Update path to selftest.m4.
12252
74cd3f9d
SM
122532020-03-12 Simon Marchi <simon.marchi@efficios.com>
12254
12255 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12256 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12257 gdbarch-selfselftests.c and selftest-arch.c.
12258 (SUBDIR_UNITTESTS_OBS): Rename to...
12259 (SELFTESTS_OBS): ... this.
12260 (COMMON_SFILES): Remove disasm-selftests.c and
12261 gdbarch-selftests.c.
12262 * configure.ac: Don't add selftest-arch.{c,o} to
12263 CONFIG_{SRCS,OBS}.
12264 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12265 preprocessor conditions.
12266
db6878ac
SM
122672020-03-12 Simon Marchi <simon.marchi@efficios.com>
12268
12269 * configure.ac: Don't source bfd/development.sh.
12270 * selftest.m4: Modify comment.
12271 * configure: Re-generate.
12272
4d696a5c
SM
122732020-03-12 Simon Marchi <simon.marchi@efficios.com>
12274
12275 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12276 not "true" or "false".
12277 * configure: Re-generate.
12278
8dd8e1c7
CB
122792020-03-12 Christian Biesinger <cbiesinger@google.com>
12280
12281 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12282 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12283 renamed to arm_nbsd_supply_gregset.
12284 (fetch_register): Update to call arm_nbsd_supply_gregset.
12285 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12286 (arm_netbsd_nat_target::fetch_registers): Update.
12287 (fetch_elfcore_registers): Removed.
12288 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12289 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12290 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12291 not require NetBSD system headers.
12292 (arm_nbsd_regset): New struct.
12293 (arm_nbsd_iterate_over_regset_sections): New function.
12294 (arm_netbsd_init_abi_common): Updated to call
12295 set_gdbarch_iterate_over_regset_sections.
12296 * arm-nbsd-tdep.h: New file.
12297
dd69bf7a
KB
122982020-03-11 Kevin Buettner <kevinb@redhat.com>
12299
12300 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12301 recursion.
12302
a0761e34
SM
123032020-03-11 Simon Marchi <simon.marchi@efficios.com>
12304
12305 * configure: Re-generate.
12306
e7a82140
TT
123072020-03-11 Tom Tromey <tromey@adacore.com>
12308
12309 * ada-typeprint.c (print_choices): Fix comment.
12310
dcc050c8
AB
123112020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12312
12313 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12314 previous item in the list, when the list has no items.
12315
1c33af77
TV
123162020-03-11 Tom de Vries <tdevries@suse.de>
12317
12318 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12319 PROP_LOCLIST handling code.
12320
8c95582d
AB
123212020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12322
12323 * buildsym-legacy.c (record_line): Pass extra parameter to
12324 record_line.
12325 * buildsym.c (buildsym_compunit::record_line): Take an extra
12326 parameter, reduce duplication in the line table, and record the
12327 is_stmt flag in the line table.
12328 * buildsym.h (buildsym_compunit::record_line): Add extra
12329 parameter.
12330 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12331 non-statement lines.
12332 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12333 this to the symtab builder.
12334 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12335 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12336 through to dwarf_record_line_1.
12337 * infrun.c (process_event_stop_test): When stepping, don't stop at
12338 a non-statement instruction, and only refresh the step info when
12339 we land in the middle of a line's range. Also add an extra
12340 comment.
12341 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12342 field.
12343 * record-btrace.c (btrace_find_line_range): Only record lines
12344 marked as is-statement.
12345 * stack.c (frame_show_address): Show the frame address if we are
12346 in a non-statement sal.
12347 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12348 (maintenance_print_one_line_table): Print a header for the is_stmt
12349 column, and include is_stmt information in the output.
12350 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12351 preference to non-statements.
12352 (find_pcs_for_symtab_line): Prefer is-statement entries.
12353 (find_line_common): Likewise.
12354 * symtab.h (struct linetable_entry): Add is_stmt field.
12355 (struct symtab_and_line): Likewise.
12356 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12357 arranging the line table.
12358
e4003a34
TV
123592020-03-07 Tom de Vries <tdevries@suse.de>
12360
12361 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12362 DIE.
12363
e8932576
TT
123642020-03-07 Tom Tromey <tom@tromey.com>
12365
12366 * valops.c (value_literal_complex): Remove obsolete comment.
12367 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12368 comment.
12369
29734269
SM
123702020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12371
12372 * infrun.h: Forward-declare thread_info.
12373 (set_step_info): Add thread_info parameter, add doc.
12374 * infrun.c (set_step_info): Add thread_info parameter, move doc
12375 to header.
12376 * infrun.c (process_event_stop_test): Pass thread to
12377 set_step_info call.
12378 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12379 set_step_info.
12380 (prepare_one_step): Add thread_info parameter, pass it to
12381 set_step_frame and prepare_one_step (recursive) call.
12382 (step_1): Pass thread to prepare_one_step call.
12383 (step_command_fsm::should_stop): Pass thread to
12384 prepare_one_step.
12385 (until_next_fsm): Pass thread to set_step_frame call.
12386 (finish_command): Pass thread to set_step_info call.
12387
b7d64b29
HD
123882020-03-06 Hannes Domani <ssbssa@yahoo.de>
12389
12390 * windows-tdep.c (windows_solib_create_inferior_hook):
12391 Check if inferior is running.
12392
09f2921c
TV
123932020-03-06 Tom de Vries <tdevries@suse.de>
12394
12395 * NEWS: Fix "the the".
12396 * ctfread.c: Same.
12397
fd760e79
TV
123982020-03-06 Tom de Vries <tdevries@suse.de>
12399
12400 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12401
20ea4a60
AB
124022020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12403
12404 * .dir-locals.el: Add a comment referencing the other copies of
12405 this file.
12406
0afbabf0
JB
124072020-03-05 John Baldwin <jhb@FreeBSD.org>
12408
12409 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12410 psargs.
12411
842806cb
TBA
124122020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12413
12414 * .gitattributes: New file.
12415
be1e3d3e
TT
124162020-03-04 Tom Tromey <tom@tromey.com>
12417
12418 * symmisc.c (print_symbol_bcache_statistics)
12419 (print_objfile_statistics): Update.
12420 * symfile.c (allocate_symtab): Use intern.
12421 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12422 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12423 macro_cache>: Remove.
12424 <string_cache>: New member.
12425 (struct objfile) <intern>: New methods.
12426 * elfread.c (elf_symtab_read): Use intern.
12427 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12428 (dwarf2_compute_name, dwarf2_physname)
12429 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12430 names.
12431 (guess_partial_die_structure_name): Update.
12432 (partial_die_info::fixup): Intern name.
12433 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12434 name.
12435 (dwarf2_name): Intern name. Update.
12436 * buildsym.c (buildsym_compunit::get_macro_table): Use
12437 string_cache.
12438
4e7625fd
TT
124392020-03-04 Tom Tromey <tom@tromey.com>
12440
12441 * jit.c (bfd_open_from_target_memory): Make "target" const.
12442 * corefile.c (gnutarget): Now const.
12443 * gdbcore.h (gnutarget): Now const.
12444
46f9f931
HD
124452020-03-04 Hannes Domani <ssbssa@yahoo.de>
12446
12447 * NEWS: Mention support for WOW64 processes.
12448 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12449 (amd64_windows_segment_register_p): Remove static.
12450 (_initialize_amd64_windows_nat): Update.
12451 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12452 * i386-windows-nat.c (context_offset): Update.
12453 (i386_mappings): Rename and remove static.
12454 (i386_windows_segment_register_p): Remove static.
12455 (_initialize_i386_windows_nat): Update.
12456 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12457 (STATUS_WX86_SINGLE_STEP): New macro.
12458 (EnumProcessModulesEx): New macro.
12459 (Wow64SuspendThread): New macro.
12460 (Wow64GetThreadContext): New macro.
12461 (Wow64SetThreadContext): New macro.
12462 (Wow64GetThreadSelectorEntry): New macro.
12463 (windows_set_context_register_offsets): Add static.
12464 (windows_set_segment_register_p): Likewise.
12465 (windows_add_thread): Adapt for WOW64 processes.
12466 (windows_fetch_one_register): Likewise.
12467 (windows_nat_target::fetch_registers): Likewise.
12468 (windows_store_one_register): Likewise.
12469 (display_selector): Likewise.
12470 (display_selectors): Likewise.
12471 (handle_exception): Likewise.
12472 (windows_continue): Likewise.
12473 (windows_nat_target::resume): Likewise.
12474 (windows_add_all_dlls): Likewise.
12475 (do_initial_windows_stuff): Likewise.
12476 (windows_nat_target::attach): Likewise.
12477 (windows_get_exec_module_filename): Likewise.
12478 (windows_nat_target::create_inferior): Likewise.
12479 (windows_xfer_siginfo): Likewise.
12480 (_initialize_loadable): Initialize Wow64SuspendThread,
12481 Wow64GetThreadContext, Wow64SetThreadContext,
12482 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12483 * windows-nat.h (windows_set_context_register_offsets):
12484 Remove declaration.
12485 (windows_set_segment_register_p): Likewise.
12486 (i386_windows_segment_register_p): Add declaration.
12487 (amd64_windows_segment_register_p): Likewise.
12488
440cf44e
LM
124892020-03-04 Luis Machado <luis.machado@linaro.org>
12490
12491 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12492 in "info registers" for AArch64/ARM.
12493
12494 The change caused "info registers" to not print GPR's.
12495
12496 gdb/ChangeLog:
12497
12498 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12499
12500 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12501 when reg->group is empty and reggroup is not.
12502
1009d92f
TT
125032020-03-03 Tom Tromey <tromey@adacore.com>
12504
12505 * dwarf2/frame.c (struct dwarf2_frame_cache)
12506 <checked_tailcall_bottom, entry_cfa_sp_offset,
12507 entry_cfa_sp_offset_p>: Remove members.
12508 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12509 (dwarf2_frame_prev_register): Don't call
12510 dwarf2_tailcall_sniffer_first.
12511 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12512 * frame-unwind.c (add_unwinder): New fuction.
12513 (frame_unwind_init): Use it. Add tailcall unwinder.
12514
5e5d66b6
AB
125152020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12516 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12517
12518 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12519 value should be printed as true.
12520
584cf46d
HD
125212020-03-03 Hannes Domani <ssbssa@yahoo.de>
12522
12523 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12524 (windows_init_abi): Set and use windows_so_ops.
12525
7b973adc
SDJ
125262020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12527
12528 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12529 when verifying if dealing with a convenience variable.
12530
bb7b70ab
LM
125312020-03-03 Luis Machado <luis.machado@linaro.org>
12532
12533 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12534
9822cb57
SM
125352020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12536
12537 * infrun.c (gdbarch_supports_displaced_stepping): New.
12538 (use_displaced_stepping): Break up conditions in smaller pieces.
12539 Use gdbarch_supports_displaced_stepping.
12540 (displaced_step_prepare_throw): Use
12541 gdbarch_supports_displaced_stepping.
12542
63e163f2
AB
125432020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12544
12545 * NEWS: Mention new behaviour of the history filename.
12546 * top.c (write_history_p): Add comment.
12547 (show_write_history_p): Add header comment, give a different
12548 message when history writing is on, but the history filename is
12549 empty.
12550 (history_filename): Add comment.
12551 (history_filename_empty): New function.
12552 (show_history_filename): Add header comment, give a different
12553 message when the filename is empty.
12554 (init_history): Compare history_filename against nullptr, and only
12555 read history if the filename is not empty.
12556 (set_history_filename): Add header comment, and only make
12557 non-empty filenames absolute.
12558 (init_main): Make the filename argument to 'set history filename'
12559 optional.
12560
81b86b97
CB
125612020-03-02 Christian Biesinger <cbiesinger@google.com>
12562
12563 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12564 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12565 (fetch_fp_register): Update.
12566 (fetch_fp_regs): Update.
12567 (store_fp_register): Update.
12568 (store_fp_regs): Update.
12569 (arm_netbsd_nat_target::read_description): New function.
12570 (fetch_elfcore_registers): Update.
12571
24ed6739
AB
125722020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12573
12574 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12575 general_thread if the stop reply is missing a thread-id.
12576 (remote_target::process_stop_reply): Use the first non-exited
12577 thread if the target didn't pass a thread-id.
12578 * infrun.c (do_target_wait): Move call to
12579 switch_to_inferior_no_thread to ....
12580 (do_target_wait_1): ... here.
12581
a84bb2a0
JT
125822020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12583
12584 * debuginfod-support.c: Include defs.h first.
12585
658dadf0
TV
125862020-02-28 Tom de Vries <tdevries@suse.de>
12587
12588 * symfile.c (set_initial_language): Use default language for lookup.
12589
4ebe4877
SM
125902020-02-28 Simon Marchi <simon.marchi@efficios.com>
12591
12592 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12593 reader variable, pass `this` to read_cutu_die_from_dwo.
12594
e5da1139
AM
125952020-02-27 Aaron Merey <amerey@redhat.com>
12596
12597 * source.c (open_source_file): Check for nullptr when computing
12598 srcpath.
12599
317f7127
TT
126002020-02-27 Tom Tromey <tromey@adacore.com>
12601
12602 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12603 member.
12604 (dwarf2_add_field): Don't update nfields.
12605 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12606
3104d9ee
AB
126072020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12608
12609 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12610 abs.
12611
b83470bf
TT
126122020-02-26 Tom Tromey <tom@tromey.com>
12613
12614 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12615 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12616 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12617 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12618 per_cu_data.
12619
edfe0a0c
TT
126202020-02-26 Tom Tromey <tom@tromey.com>
12621
12622 * dwarf2/index-write.c (psym_index_map): Change type.
12623 (add_address_entry_worker, write_one_signatured_type)
12624 (recursively_count_psymbols, recursively_write_psymbols)
12625 (class debug_names, psyms_seen_size, write_gdbindex)
12626 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12627
0d79cdc4
AM
126282020-02-26 Aaron Merey <amerey@redhat.com>
12629
12630 * Makefile.in: Handle optional debuginfod support.
12631 * NEWS: Update.
12632 * README: Add --with-debuginfod summary.
12633 * config.in: Regenerate.
12634 * configure: Regenerate.
12635 * configure.ac: Handle optional debuginfod support.
12636 * debuginfod-support.c: debuginfod helper functions.
12637 * debuginfod-support.h: Ditto.
12638 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12639 summary.
12640 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12641 when a dwz file cannot be found.
12642 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12643 debuginfo file cannot be found.
12644 * source.c (open_source_file): Query debuginfod servers when a
12645 source file cannot be found.
12646 * top.c (print_gdb_configuration): Include
12647 --{with,without}-debuginfod in the output.
12648
b65ce565
JG
126492020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12650
12651 * thread.c (thr_try_catch_cmd): Print thread name.
12652
d4c9a4f8
SM
126532020-02-26 Simon Marchi <simon.marchi@efficios.com>
12654
12655 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12656 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12657 dwarf2_fetch_die_type_sect_off): Move to...
12658 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12659 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12660 dwarf2_fetch_die_type_sect_off): ... here.
12661 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12662 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12663 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12664
0dce4280
TV
126652020-02-26 Tom de Vries <tdevries@suse.de>
12666
12667 PR gdb/25603
12668 * symfile.c (set_initial_language): Exit-early if
12669 language_mode == language_mode_manual.
12670
450a1bfc
SM
126712020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12672
12673 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12674 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12675 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12676
9e80cfa1
AB
126772020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12678
12679 * gdbtypes.c (create_array_type_with_stride): Handle negative
12680 array strides.
12681 * valarith.c (value_subscripted_rvalue): Likewise.
12682
09624f1f
LM
126832020-02-25 Luis Machado <luis.machado@linaro.org>
12684
12685 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12686
8cb5117c
SM
126872020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12688
12689 * loc.h (dwarf2_get_die_type): Move to...
12690 * read.h (dwarf2_get_die_type): ... here.
12691 * read.c (dwarf2_get_die_type): Move doc to header.
12692
c325c44e
JB
126932020-02-25 Joel Brobecker <brobecker@adacore.com>
12694
12695 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12696 'gnulib/Makefile.in' to the list.
12697
4ac93832
TT
126982020-02-24 Tom Tromey <tom@tromey.com>
12699
12700 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12701 Remove.
12702 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12703 XOBNEWVEC.
12704
197400e8
TT
127052020-02-24 Tom Tromey <tom@tromey.com>
12706
12707 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12708 New method.
12709 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12710 (dw2_do_instantiate_symtab, dw2_get_file_names)
12711 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12712
76935768
TT
127132020-02-24 Tom Tromey <tom@tromey.com>
12714
12715 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12716 make_scoped_restore.
12717 (dwarf2_psymtab::read_symtab): Don't clear
12718 reading_partial_symbols.
12719
a88ef40d
TV
127202020-02-24 Tom de Vries <tdevries@suse.de>
12721
12722 PR gdb/25592
12723 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12724
c9af6521
TV
127252020-02-24 Tom de Vries <tdevries@suse.de>
12726
12727 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12728 commands layout next/prev/regs.
12729
5707a07a
TT
127302020-02-22 Tom Tromey <tom@tromey.com>
12731
12732 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12733 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12734
3b0fb49e
TT
127352020-02-22 Tom Tromey <tom@tromey.com>
12736
12737 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12738
283be8bf
TT
127392020-02-22 Tom Tromey <tom@tromey.com>
12740
12741 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12742 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12743 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12744 * tui/tui.c (_initialize_tui): Add usage text.
12745
ca793b96
TT
127462020-02-22 Tom Tromey <tom@tromey.com>
12747
12748 * tui/tui-win.c (tui_set_focus_command)
12749 (tui_set_win_height_command): Use error_no_arg.
12750 (_initialize_tui_win): Update help text.
12751 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12752
432b5c40
TT
127532020-02-22 Tom Tromey <tom@tromey.com>
12754
12755 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12756 * tui/tui-disasm.h (struct tui_disasm_window)
12757 <display_start_addr>: Declare.
12758 * tui/tui-source.h (struct tui_source_window)
12759 <display_start_addr>: Declare.
12760 * tui/tui-winsource.h (struct tui_source_window_base)
12761 <show_source_line, display_start_addr>: New methods.
12762 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12763 Rename and move to protected section.
12764 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12765 (tui_source_window_base::do_erase_source_content): Update.
12766 (tui_source_window_base::show_source_line): Now a method.
12767 (tui_source_window_base::show_source_content)
12768 (tui_source_window_base::tui_source_window_base)
12769 (tui_source_window_base::rerender)
12770 (tui_source_window_base::refill)
12771 (tui_source_window_base::do_scroll_horizontal)
12772 (tui_source_window_base::set_is_exec_point_at)
12773 (tui_source_window_base::update_breakpoint_info)
12774 (tui_source_window_base::update_exec_info): Update.
12775 * tui/tui-source.c (tui_source_window::set_contents)
12776 (tui_source_window::showing_source_p)
12777 (tui_source_window::do_scroll_vertical)
12778 (tui_source_window::location_matches_p)
12779 (tui_source_window::line_is_displayed): Update.
12780 (tui_source_window::display_start_addr): New method.
12781 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12782 (tui_disasm_window::do_scroll_vertical)
12783 (tui_disasm_window::location_matches_p): Update.
12784 (tui_disasm_window::display_start_addr): New method.
12785
01b1af32
TT
127862020-02-22 Tom Tromey <tom@tromey.com>
12787
12788 * NEWS: Add entry for gdb.register_window_type.
12789 * tui/tui-layout.h (window_factory): New typedef.
12790 (tui_register_window): Declare.
12791 * tui/tui-layout.c (saved_tui_windows): New global.
12792 (tui_apply_current_layout): Use it.
12793 (tui_register_window): New function.
12794 * python/python.c (do_start_initialization): Call
12795 gdbpy_initialize_tui.
12796 (python_GdbMethods): Add "register_window_type" function.
12797 * python/python-internal.h (gdbpy_register_tui_window)
12798 (gdbpy_initialize_tui): Declare.
12799 * python/py-tui.c: New file.
12800 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12801
fc96d20b
TT
128022020-02-22 Tom Tromey <tom@tromey.com>
12803
12804 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12805
935c78c0
TT
128062020-02-22 Tom Tromey <tom@tromey.com>
12807
12808 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12809 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12810 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12811 (tui_set_win_focus_to): Move from tui-win.c.
12812
0240c8f1
TT
128132020-02-22 Tom Tromey <tom@tromey.com>
12814
12815 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12816 functions.
12817 (known_window_types): New global.
12818 (tui_get_window_by_name): Reimplement.
12819 (initialize_known_windows): New function.
12820 (validate_window_name): Rewrite.
12821 (_initialize_tui_layout): Call initialize_known_windows.
12822
fdb01f0c
TT
128232020-02-22 Tom Tromey <tom@tromey.com>
12824
12825 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12826 Remove constants.
12827 * tui/tui-winsource.h (struct tui_source_window_base)
12828 <tui_source_window_base>: Remove parameter.
12829 * tui/tui-winsource.c
12830 (tui_source_window_base::tui_source_window_base): Remove
12831 parameter.
12832 (tui_source_window_base::refill): Update.
12833 * tui/tui-stack.h (struct tui_locator_window)
12834 <tui_locator_window>: Update.
12835 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12836 Default the constructor.
12837 * tui/tui-regs.h (struct tui_data_item_window)
12838 <tui_data_item_window>: Default the constructor.
12839 (struct tui_data_window) <tui_data_window>: Likewise.
12840 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12841 Default the constructor.
12842 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12843 Default the constructor.
12844 <type>: Remove.
12845 (struct tui_win_info) <tui_win_info>: Default the constructor.
12846 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12847 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12848 Default the constructor.
12849
865a5aec
TT
128502020-02-22 Tom Tromey <tom@tromey.com>
12851
12852 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12853 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12854 * tui/tui-win.c (tui_resize_all): Don't call
12855 tui_delete_invisible_windows.
12856 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12857 done.
12858 (tui_set_layout): Update.
12859 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12860 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12861 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12862
e098d18c
TT
128632020-02-22 Tom Tromey <tom@tromey.com>
12864
12865 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12866 correctly.
12867
eb9c8874
TT
128682020-02-22 Tom Tromey <tom@tromey.com>
12869
12870 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12871
7eed1a8e
TT
128722020-02-22 Tom Tromey <tom@tromey.com>
12873
12874 * tui/tui-winsource.h (struct tui_source_window_iterator)
12875 <inner_iterator>: New etytypedef.
12876 <tui_source_window_iterator>: Take "end" parameter.
12877 <tui_source_window_iterator>: Take iterator.
12878 <operator*, advance>: Update.
12879 <m_iter>: Change type.
12880 <m_end>: New field.
12881 (struct tui_source_windows) <begin, end>: Update.
12882 * tui/tui-layout.c (tui_windows): New global.
12883 (tui_apply_current_layout): Clear tui_windows.
12884 (tui_layout_window::apply): Update tui_windows.
12885 * tui/tui-data.h (tui_windows): Declare.
12886 (all_tui_windows): Now inline function.
12887 (class tui_window_iterator, struct all_tui_windows): Remove.
12888
7c043ba6
TT
128892020-02-22 Tom Tromey <tom@tromey.com>
12890
12891 PR tui/17850:
12892 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12893 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12894 "height" argument.
12895 (class tui_layout_window) <get_sizes>: Likewise.
12896 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12897 argument.
12898 <get_sizes>: Add "height" argument.
12899 <m_vertical>: New field.
12900 * tui/tui-layout.c (tui_layout_split::clone): Update.
12901 (tui_layout_split::get_sizes): Add "height" argument.
12902 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12903 (tui_new_layout_command): Parse "-horizontal".
12904 (_initialize_tui_layout): Update help string.
12905 (tui_layout_split::specification): Add "-horizontal" when needed.
12906 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12907 argument.
12908 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12909 New methods.
12910
6bc56648
TT
129112020-02-22 Tom Tromey <tom@tromey.com>
12912
12913 * tui/tui-layout.h (enum tui_adjust_result): New.
12914 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12915 (class tui_layout_window) <adjust_size>: Return
12916 tui_adjust_result. Rewrite.
12917 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12918 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12919
c22fef7e
TT
129202020-02-22 Tom Tromey <tom@tromey.com>
12921
12922 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12923 parameter and return types.
12924 (class tui_layout_base) <specification>: Add "depth".
12925 (class tui_layout_window) <specification>: Add "depth".
12926 (class tui_layout_split) <specification>: Add "depth".
12927 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12928 and return types.
12929 (tui_new_layout_command): Parse sub-layouts.
12930 (_initialize_tui_layout): Update help string.
12931 (tui_layout_window::specification): Add "depth".
12932 (add_layout_command): Update.
12933
ee325b61
TT
129342020-02-22 Tom Tromey <tom@tromey.com>
12935
12936 * NEWS: Add "tui new-layout" item.
12937 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12938 Add new-layout command to help text.
12939 (validate_window_name): New function.
12940 (tui_new_layout_command): New function.
12941 (_initialize_tui_layout): Register "new-layout".
12942 (tui_layout_window::specification): New method.
12943 (tui_layout_window::specification): New method.
12944 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12945 method.
12946 (class tui_layout_window) <specification>: New method.
12947 (class tui_layout_split) <specification>: New method.
12948
416eb92d
TT
129492020-02-22 Tom Tromey <tom@tromey.com>
12950
12951 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12952 * tui/tui-win.c (window_name_completer): Update comment.
12953 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12954 Declare method.
12955 (class tui_layout_window) <replace_window>: Likewise.
12956 (class tui_layout_split) <replace_window>: Likewise.
12957 (tui_set_layout): Don't declare.
12958 (tui_set_initial_layout): Declare function.
12959 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12960 (asm_regs_layout): New globals.
12961 (tui_current_layout, show_layout): Remove.
12962 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12963 (find_layout, tui_apply_layout): New function.
12964 (layout_completer): Remove.
12965 (tui_next_layout): Reimplement.
12966 (tui_next_layout_command): New function.
12967 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12968 (tui_regs_layout): Reimplement.
12969 (tui_regs_layout_command): New function.
12970 (extract_display_start_addr): Rewrite.
12971 (next_layout, prev_layout): Remove.
12972 (tui_layout_window::replace_window): New method.
12973 (tui_layout_split::replace_window): New method.
12974 (destroy_layout): New function.
12975 (layout_list): New global.
12976 (add_layout_command): New function.
12977 (initialize_layouts): Update.
12978 (tui_layout_command): New function.
12979 (_initialize_tui_layout): Install "layout" commands.
12980 * tui/tui-data.h (enum tui_layout_type): Remove.
12981 (tui_current_layout): Don't declare.
12982
0dbc2fc7
TT
129832020-02-22 Tom Tromey <tom@tromey.com>
12984
12985 * tui/tui-regs.c (tui_reg_layout): Remove.
12986 (tui_reg_command): Use tui_regs_layout.
12987 * tui/tui-layout.h (tui_reg_command): Declare.
12988 * tui/tui-layout.c (tui_reg_command): New function.
12989
5afe342e
TT
129902020-02-22 Tom Tromey <tom@tromey.com>
12991
12992 * tui/tui.c (tui_rl_delete_other_windows): Call
12993 tui_remove_some_windows.
12994 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12995 Declare method.
12996 (class tui_layout_window) <remove_windows>: New method.
12997 (class tui_layout_split) <remove_windows>: Declare.
12998 (tui_remove_some_windows): Declare.
12999 * tui/tui-layout.c (tui_remove_some_windows): New function.
13000 (tui_layout_split::remove_windows): New method.
13001
427326a8
TT
130022020-02-22 Tom Tromey <tom@tromey.com>
13003
13004 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13005 * tui/tui-layout.h (tui_next_layout): Declare.
13006 * tui/tui-layout.c (tui_next_layout): New function.
13007
3fe12b6d
TT
130082020-02-22 Tom Tromey <tom@tromey.com>
13009
13010 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13011 correct coordinates.
13012
59b8b5d2
TT
130132020-02-22 Tom Tromey <tom@tromey.com>
13014
13015 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13016 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13017 DATA_WIN case.
13018
2a3d458b
TT
130192020-02-22 Tom Tromey <tom@tromey.com>
13020
13021 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13022 TUI_DISASM_WIN, not tui_win_list.
13023
3f0cbb04
TT
130242020-02-22 Tom Tromey <tom@tromey.com>
13025
13026 * valprint.c (generic_val_print_enum_1)
13027 (val_print_type_code_flags): Style member names.
13028 * rust-lang.c (val_print_struct, rust_print_enum)
13029 (rust_print_struct_def, rust_internal_print_type): Style member
13030 names.
13031 * p-valprint.c (pascal_object_print_value_fields): Style member
13032 names. Only call fprintf_symbol_filtered for static members.
13033 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13034 * f-valprint.c (f_val_print): Style member names.
13035 * f-typeprint.c (f_type_print_base): Style member names.
13036 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13037 call fprintf_symbol_filtered for static members.
13038 (cp_print_class_member): Style member names.
13039 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13040 member names.
13041 * ada-valprint.c (ada_print_scalar): Style enum names.
13042 (ada_val_print_enum): Likewise.
13043 * ada-typeprint.c (print_enum_type): Style enum names.
13044
d4d947ae
TT
130452020-02-21 Tom Tromey <tom@tromey.com>
13046
13047 * psympriv.h (struct partial_symtab): Update comment.
13048
e94e944b
TT
130492020-02-21 Tom Tromey <tromey@adacore.com>
13050
13051 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13052 type is CORE_ADDR.
13053
1eb73179
TV
130542020-02-21 Tom de Vries <tdevries@suse.de>
13055
13056 PR gdb/25534
13057 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13058 if dependencies[i]->user != NULL.
13059
4f180d53
AT
130602020-02-21 Ali Tamur <tamur@google.com>
13061
13062 * dwarf2/read.c (dwarf2_name): Add null check.
13063
22b6cd70
TT
130642020-02-20 Tom Tromey <tom@tromey.com>
13065
13066 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13067 ">=", in binary search.
13068 (dwarf2_find_containing_comp_unit): New overload.
13069 (run_test): New self-test.
13070 (_initialize_dwarf2_read): Register new test.
13071
bd0cf5a6
NC
130722020-02-20 Nelson Chu <nelson.chu@sifive.com>
13073
13074 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13075 * riscv-tdep.h: Likewise.
13076 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13077 rv32-only CSR.
13078 * features/riscv/64bit-csr.xml: Regenerated.
13079
3f702acd
SDJ
130802020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13081 Tom Tromey <tom@tromey.com>
13082
13083 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13084 of 'fputc_unfiltered'.
13085 (putchar_unfiltered): Call 'fputc_unfiltered'.
13086 (fputc_unfiltered): Call 'fputs_unfiltered'.
13087
d13c7322
AB
130882020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13089
13090 * config.in: Regenerate.
13091 * configure: Regenerate.
13092 * configure.ac: Add --with-python-libdir option.
13093 * main.c: Use WITH_PYTHON_LIBDIR.
13094
869d8950
TT
130952020-02-19 Tom Tromey <tom@tromey.com>
13096
13097 * symtab.c (general_symbol_info::compute_and_set_names): Use
13098 obstack_strndup. Simplify call to symbol_set_demangled_name.
13099
298e9637
SM
131002020-02-19 Simon Marchi <simon.marchi@efficios.com>
13101
13102 * dwarf2/read.c (allocate_signatured_type_table,
13103 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13104 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13105 Remove objfile parameter, update all callers.
13106
08410482
DE
131072020-02-19 Doug Evans <dje@google.com>
13108
13109 PR rust/25535
13110 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13111 rust_enum_variant calculation.
13112
dfdeeca1
TT
131132020-02-19 Tom Tromey <tromey@adacore.com>
13114
13115 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13116
2ef5453b
TT
131172020-02-19 Tom Tromey <tromey@adacore.com>
13118
13119 * ada-lang.c (cache_symbol): Use obstack_strdup.
13120
9f1528a1
AB
131212020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13122
13123 * configure: Regenerate.
13124
d3c22fa8
TT
131252020-02-19 Tom Tromey <tromey@adacore.com>
13126
13127 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13128 NULL check.
13129
bf84f706
MR
131302020-02-19 Maciej W. Rozycki <macro@wdc.com>
13131
13132 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13133
d1c9b20f
AB
131342020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13135
13136 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13137 if GDBSERVER is not defined.
13138 (riscv_tdesc_cache): Likewise, also store const target_desc.
13139 (STATIC_IN_GDB): Define.
13140 (riscv_create_target_description): Update declaration with
13141 STATIC_IN_GDB.
13142 (riscv_lookup_target_description): New function, only define if
13143 GDBSERVER is not defined.
13144 * arch/riscv.h (riscv_create_target_description): Declare only
13145 when GDBSERVER is defined.
13146 (riscv_lookup_target_description): New declaration when GDBSERVER
13147 is not defined.
13148 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13149 (riscv_linux_read_features): ...this, and return
13150 riscv_gdbarch_features instead of target_desc.
13151 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13152 (riscv_linux_read_description): Rename to...
13153 (riscv_linux_read_features): ...this.
13154 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13155 Update to use riscv_gdbarch_features and
13156 riscv_lookup_target_description.
13157 * riscv-tdep.c (riscv_find_default_target_description): Use
13158 riscv_lookup_target_description instead of
13159 riscv_create_target_description.
13160
373d7ac0
SM
131612020-02-18 Simon Marchi <simon.marchi@efficios.com>
13162
13163 * valprint.c (generic_val_print_enum_1): When printing a flag
13164 enum with value 0 and there is no enumerator with value 0, print
13165 just "0" instead of "(unknown: 0x0)".
13166
b29a2df0
SM
131672020-02-18 Simon Marchi <simon.marchi@efficios.com>
13168
13169 * valprint.c (generic_val_print_enum_1): Print unknown part of
13170 flag enum in hex.
13171
6740f0cc
SM
131722020-02-18 Simon Marchi <simon.marchi@efficios.com>
13173
13174 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13175 flag enums to contain duplicate enumerators.
13176 * valprint.c (generic_val_print_enum_1): Update comment.
13177
edd45eb0
SM
131782020-02-18 Simon Marchi <simon.marchi@efficios.com>
13179
13180 * dwarf2/read.c: Include "count-one-bits.h".
13181 (update_enumeration_type_from_children): If an enumerator has
13182 multiple bits set, don't treat the enumeration as a "flag enum".
13183 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13184 of flag enums have 0 or 1 bit set.
13185
6d0cf446
BE
131862020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13187
13188 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13189 conversion.
13190 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13191 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13192 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13193 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13194 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13195
7001c1b7
SM
131962020-02-18 Simon Marchi <simon.marchi@efficios.com>
13197
13198 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13199
fdb61c6c
SM
132002020-02-14 Simon Marchi <simon.marchi@efficios.com>
13201
13202 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13203 displaced_step_closure_up.
13204 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13205 (struct displaced_step_closure_up):
13206 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13207 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13208 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13209 Likewise.
13210 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13211 * gdbarch.c, gdbarch.h: Re-generate.
13212 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13213 displaced_step_closure_up.
13214 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13215 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13216 * infrun.h (displaced_step_closure_up): New type alias.
13217 (struct displaced_step_inferior_state) <step_closure>: Change
13218 type to displaced_step_closure_up.
13219 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13220 displaced_step_closure_up.
13221 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13222
a4a38eb4
TT
132232020-02-14 Tom Tromey <tom@tromey.com>
13224
13225 * minidebug.c (gnu_debug_key): New global.
13226 (find_separate_debug_file_in_section): Use it.
13227
e8217e61
SM
132282020-02-14 Simon Marchi <simon.marchi@efficios.com>
13229
13230 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13231 std::unique_ptr.
13232 * gdbarch.c: Re-generate.
13233 * gdbarch.h: Re-generate.
13234 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13235 change.
13236 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13237 type to std::unique_ptr.
13238 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13239 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13240 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13241 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13242 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13243 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13244 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13245 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13246 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13247
d8d83535
SM
132482020-02-14 Simon Marchi <simon.marchi@efficios.com>
13249
13250 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13251 std::unique_ptr.
13252 (displaced_step_clear): Rename to...
13253 (displaced_step_reset): ... this. Just call displaced->reset ().
13254 (displaced_step_clear_cleanup): Rename to...
13255 (displaced_step_reset_cleanup): ... this.
13256 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13257 (displaced_step_fixup): Likewise.
13258 (resume_1): Likewise.
13259 (handle_inferior_event): Restore child's memory before calling
13260 displaced_step_fixup on the parent.
13261 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13262 to std::unique_ptr.
13263 <step_closure>: Change type to std::unique_ptr.
13264
5f661e03
SM
132652020-02-14 Simon Marchi <simon.marchi@efficios.com>
13266
13267 * arm-tdep.c: Include count-one-bits.h.
13268 (cleanup_block_store_pc): Use count_one_bits.
13269 (cleanup_block_load_pc): Use count_one_bits.
13270 (arm_copy_block_xfer): Use count_one_bits.
13271 (thumb2_copy_block_xfer): Use count_one_bits.
13272 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13273 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13274 (thumb_get_next_pcs_raw): Use count_one_bits.
13275 (arm_get_next_pcs_raw): Use count_one_bits_l.
13276 * arch/arm.c (bitcount): Remove.
13277 * arch/arm.h (bitcount): Remove.
13278
8084e579
TT
132792020-02-14 Tom Tromey <tromey@adacore.com>
13280
13281 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13282 Update.
13283 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13284 * dwarf2/loc.c (call_site_find_chain_1): Return
13285 unique_xmalloc_ptr.
13286 (call_site_find_chain): Likewise.
13287
258bf0ee
RB
132882020-02-14 Richard Biener <rguenther@suse.de>
13289
13290 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13291 on expression with division operators.
13292
f98a8458
AKS
132932020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13294
13295 * MAINTAINERS (Write After Approval): Adding myself.
13296
d1437c0e
TT
132972020-02-12 Tom Tromey <tom@tromey.com>
13298
13299 * event-loop.c (event_data, gdb_event, event_handler_func):
13300 Remove.
13301
3d4560f7
TT
133022020-02-12 Tom Tromey <tom@tromey.com>
13303
13304 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13305 (dwarf2_frame_objfile_data): Add comment.
13306 (find_comp_unit, set_comp_unit): New functions.
13307 (dwarf2_frame_find_fde): Use find_comp_unit.
13308 (dwarf2_build_frame_info): Use set_comp_unit.
13309
21982304
TT
133102020-02-12 Tom Tromey <tom@tromey.com>
13311
13312 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13313 (comp_unit): Don't initialize objfile.
13314 (execute_cfa_program): Add text_offset parameter.
13315 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13316 (dwarf2_frame_cache): Update.
13317 (dwarf2_build_frame_info): Don't set "objfile" member.
13318
4debb237
TT
133192020-02-12 Tom Tromey <tom@tromey.com>
13320
13321 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13322 (decode_frame_entry): Likewise.
13323 (dwarf2_build_frame_info): Update.
13324
0d404d44
TT
133252020-02-12 Tom Tromey <tom@tromey.com>
13326
13327 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13328 (decode_frame_entry_1): Use the comp_unit obstack.
13329
a7a3ae5c
TT
133302020-02-12 Tom Tromey <tom@tromey.com>
13331
13332 * dwarf2/frame.c (struct comp_unit): Add initializers and
13333 constructor.
13334 (dwarf2_frame_objfile_data): Store a comp_unit.
13335 (dwarf2_frame_find_fde): Update.
13336 (dwarf2_build_frame_info): Use "new".
13337
a9d65418
TT
133382020-02-12 Tom Tromey <tom@tromey.com>
13339
13340 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13341 (dwarf2_fde_table): Typedef for std::vector.
13342 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13343 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13344 (decode_frame_entry): Update.
13345 (dwarf2_build_frame_info): Use "new".
13346
7559c217
CB
133472020-02-12 Christian Biesinger <cbiesinger@google.com>
13348
13349 * arm-tdep.c (arm_gdbarch_init): Update.
13350 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13351 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13352 have_neon, is_m>: Change to bool.
13353
aeefc73c
CB
133542020-02-12 Christian Biesinger <cbiesinger@google.com>
13355
13356 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13357
d27b8e5f
TT
133582020-02-12 Tom Tromey <tom@tromey.com>
13359
13360 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13361
cd5900f3
HD
133622020-02-12 Hannes Domani <ssbssa@yahoo.de>
13363
13364 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13365 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13366
f056b22b
TT
133672020-02-11 Tom Tromey <tom@tromey.com>
13368
13369 * psymtab.h: Update comment.
13370
f92ff6b5
TT
133712020-02-11 Tom Tromey <tom@tromey.com>
13372
13373 * gdb_obstack.h (struct auto_obstack): Use
13374 DISABLE_COPY_AND_ASSIGN.
13375
3fd6912b
TT
133762020-02-11 Tom Tromey <tom@tromey.com>
13377
13378 * dwarf2/frame.h (struct objfile): Don't forward declare.
13379
69ed9b74
CB
133802020-02-11 Christian Biesinger <cbiesinger@google.com>
13381
13382 * cris-tdep.c (cris_supply_gregset): Change signature to match
13383 what struct regset expects.
13384 (cris_regset): New struct.
13385 (fetch_core_registers): Remove.
13386 (cris_iterate_over_regset_sections): New function.
13387 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13388 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13389
bda874f6
CB
133902020-02-11 Christian Biesinger <cbiesinger@google.com>
13391
13392 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13393 registers.
13394
754e1564
CB
133952020-02-11 Christian Biesinger <cbiesinger@google.com>
13396
13397 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13398
8ddd8e0e
SM
133992020-02-11 Simon Marchi <simon.marchi@efficios.com>
13400
13401 * configure: Re-generate.
13402
898e7f60
SM
134032020-02-11 Simon Marchi <simon.marchi@efficios.com>
13404
13405 * configure: Re-generate.
13406
58df732b
SM
134072020-02-11 Simon Marchi <simon.marchi@efficios.com>
13408
13409 * acinclude: Update warning.m4 path.
13410 * warning.m4: Move to gdbsupport.
13411
da5bd37e
TT
134122020-02-11 Tom Tromey <tromey@adacore.com>
13413
13414 * remote.c (remote_console_output): Update.
13415 * printcmd.c (printf_command): Update.
13416 * event-loop.c (gdb_wait_for_event): Update.
13417 * linux-nat.c (sigchld_handler): Update.
13418 * remote-sim.c (gdb_os_write_stdout): Update.
13419 (gdb_os_flush_stdout): Update.
13420 (gdb_os_flush_stderr): Update.
13421 (gdb_os_write_stderr): Update.
13422 * exceptions.c (print_exception): Update.
13423 * remote-fileio.c (remote_fileio_func_read): Update.
13424 (remote_fileio_func_write): Update.
13425 * tui/tui.c (tui_enable): Update.
13426 * tui/tui-interp.c (tui_interp::init): Update.
13427 * utils.c (init_page_info): Update.
13428 (putchar_unfiltered, fputc_unfiltered): Update.
13429 (gdb_flush): Update.
13430 (emit_style_escape): Update.
13431 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13432 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13433 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13434 (stderr_file::write): Update.
13435 (stderr_file::puts): Update.
13436 * ui-file.h (ui_file_isatty, ui_file_write)
13437 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13438 (ui_file_puts): Don't declare.
13439
85f0dd3c
TV
134402020-02-10 Tom de Vries <tdevries@suse.de>
13441
13442 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13443 sentinel to char *.
13444
2e927613
TV
134452020-02-09 Tom de Vries <tdevries@suse.de>
13446
13447 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13448 filename if it matches "<artificial>".
13449
6bafc845
HD
134502020-02-09 Hannes Domani <ssbssa@yahoo.de>
13451
13452 * windows-tdep.c (struct enum_value_name): New struct.
13453 (create_enum): New function.
13454 (windows_get_siginfo_type): Create and use enum types.
13455
7928d571
HD
134562020-02-09 Hannes Domani <ssbssa@yahoo.de>
13457
13458 * NEWS: Mention $_siginfo support for Windows.
13459 * windows-nat.c (handle_exception): Set siginfo_er.
13460 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13461 (windows_xfer_siginfo): New function.
13462 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13463 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13464 (init_windows_gdbarch_data): New function.
13465 (get_windows_gdbarch_data): New function.
13466 (windows_get_siginfo_type): New function.
13467 (windows_init_abi): Register windows_get_siginfo_type.
13468 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13469
6751ebae
TT
134702020-02-08 Tom Tromey <tom@tromey.com>
13471
13472 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13473 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13474 <keep>: Declare method.
13475 <m_keep>: Remove member.
13476 <~cutu_reader>: Remove.
13477 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13478 (cutu_reader::cutu_reader): Update.
13479 (cutu_reader::keep): Rename from ~cutu_reader.
13480 (process_psymtab_comp_unit, build_type_psymtabs_1)
13481 (process_skeletonless_type_unit, load_partial_comp_unit)
13482 (load_full_comp_unit, dwarf2_read_addr_index)
13483 (read_signatured_type): Update.
13484
135f5437
TT
134852020-02-08 Tom Tromey <tom@tromey.com>
13486
13487 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13488 "want_partial_unit" parameter.
13489 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13490 Inline check for DW_TAG_partial_unit.
13491 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13492
9f66ff1c
TT
134932020-02-08 Tom Tromey <tom@tromey.com>
13494
13495 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13496 read.c.
13497 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13498 read.c.
13499
c8a7a66f
TT
135002020-02-08 Tom Tromey <tom@tromey.com>
13501
13502 * dwarf2/read.c (read_address): Move to comp-unit.c.
13503 (dwarf2_rnglists_process, dwarf2_ranges_process)
13504 (read_attribute_value, dwarf_decode_lines_1)
13505 (var_decode_location, decode_locdesc): Update.
13506 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13507 read.c. Remove "cu" parameter.
13508 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13509 method.
13510
8266302d
TT
135112020-02-08 Tom Tromey <tom@tromey.com>
13512
13513 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13514 (read_indirect_line_string): Update.
13515 * dwarf2/comp-unit.c (read_offset): Remove.
13516 (read_comp_unit_head): Update.
13517 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13518 method.
13519 (read_offset): Don't declare.
13520
4057dfde
TT
135212020-02-08 Tom Tromey <tom@tromey.com>
13522
13523 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13524 * dwarf2/read.c (struct comp_unit_head): Move to
13525 dwarf2/comp-unit.h.
13526 (enum class rcuh_kind): Move to comp-unit.h.
13527 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13528 (read_comp_unit_head, error_check_comp_unit_head)
13529 (read_and_check_comp_unit_head): Move to comp-unit.c.
13530 (read_offset, dwarf_unit_type_name): Likewise.
13531 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13532 (cutu_reader::cutu_reader, read_call_site_scope)
13533 (find_partial_die, follow_die_offset): Update.
13534 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13535
24aa364d
TT
135362020-02-08 Tom Tromey <tom@tromey.com>
13537
13538 * dwarf2/read.c (read_offset_1): Move to leb.c.
13539 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13540 (dwarf_decode_macro_bytes): Update.
13541 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13542 * dwarf2/leb.h (read_offset): Declare.
13543
2c7d5afc
TT
135442020-02-08 Tom Tromey <tom@tromey.com>
13545
13546 * dwarf2/read.c (dwarf2_section_size): Remove.
13547 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13548 Update.
13549 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13550
4075cb26
TT
135512020-02-08 Tom Tromey <tom@tromey.com>
13552
13553 * dwarf2/read.c (read_initial_length): Move to leb.c.
13554 * dwarf2/leb.h (read_initial_length): Declare.
13555 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13556 handle_nonstd parameter.
13557 * dwarf2/frame.c (read_initial_length): Remove.
13558 (decode_frame_entry_1): Update.
13559
09ba997f
TT
135602020-02-08 Tom Tromey <tom@tromey.com>
13561
13562 * dwarf2/loc.c (dwarf2_find_location_expression)
13563 (dwarf_evaluate_loc_desc::get_tls_address)
13564 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13565 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13566 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13567 (dwarf2_compile_property_to_c)
13568 (dwarf2_loc_desc_get_symbol_read_needs)
13569 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13570 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13571 (loclist_describe_location, loclist_tracepoint_var_ref)
13572 (loclist_generate_c_location): Update.
13573 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13574 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13575 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13576 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13577 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13578 (dwarf2_per_cu_data::addr_size)
13579 (dwarf2_per_cu_data::ref_addr_size)
13580 (dwarf2_per_cu_data::text_offset)
13581 (dwarf2_per_cu_data::addr_type): Now methods.
13582 (per_cu_header_read_in): Make per_cu "const".
13583 (dwarf2_version): Remove.
13584 (dwarf2_per_cu_data::int_type): Now a method.
13585 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13586 (set_die_type, read_array_type, read_subrange_index_type)
13587 (read_tag_string_type, read_subrange_type): Update.
13588 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13589 offset_size, ref_addr_size, text_offset, addr_type, version,
13590 objfile, int_type, addr_sized_int_type>: Declare methods.
13591
96c738c0
TT
135922020-02-08 Tom Tromey <tom@tromey.com>
13593
13594 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13595 Move earlier.
13596
8fdd972c
TT
135972020-02-08 Tom Tromey <tom@tromey.com>
13598
13599 * dwarf2/read.h (dwarf_line_debug): Declare.
13600 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13601 * dwarf2/read.c: Move line_header code to new files.
13602 (dwarf_line_debug): No longer static.
13603 * dwarf2/line-header.c: New file.
13604 * dwarf2/line-header.h: New file.
13605
03075812
TT
136062020-02-08 Tom Tromey <tom@tromey.com>
13607
13608 * dwarf2/read.c (struct line_header) <file_full_name,
13609 file_file_name>: Return unique_xmalloc_ptr.
13610 (line_header::file_file_name): Update.
13611 (line_header::file_full_name): Update.
13612 (dw2_get_file_names_reader): Update.
13613 (macro_start_file): Update.
13614
bb822404
TT
136152020-02-08 Tom Tromey <tom@tromey.com>
13616
13617 * dwarf2/read.c (struct line_header) <file_full_name,
13618 file_file_name>: Declare methods.
13619 (dw2_get_file_names_reader): Update.
13620 (file_file_name): Now a method.
13621 (file_full_name): Likewise.
13622 (macro_start_file): Update.
13623
009b64fc
TT
136242020-02-08 Tom Tromey <tom@tromey.com>
13625
13626 * dwarf2/read.c (dwarf_always_disassemble)
13627 (show_dwarf_always_disassemble): Move to loc.c.
13628 (_initialize_dwarf2_read): Move "always-disassemble" registration
13629 to loc.c.
13630 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13631 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13632 static.
13633 (show_dwarf_always_disassemble): Move from read.c.
13634 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13635
5895093f
TT
136362020-02-08 Tom Tromey <tom@tromey.com>
13637
13638 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13639 (create_quick_file_names_table): Return htab_up.
13640 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13641 Update.
13642 * dwarf2/read.h (struct dwarf2_per_objfile)
13643 <quick_file_names_table>: Now htab_up.
13644
b3b32279
TT
136452020-02-08 Tom Tromey <tom@tromey.com>
13646
13647 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13648
1d33d811
TT
136492020-02-08 Tom Tromey <tom@tromey.com>
13650
13651 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13652 Rewrite.
13653 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13654 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13655 (abbrev_table::abbrev_table): No longer inline.
13656 (ABBREV_HASH_SIZE): Remove.
13657 (abbrev_table::m_abbrevs): Now an htab_up.
13658
86de1d91
TT
136592020-02-08 Tom Tromey <tom@tromey.com>
13660
13661 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13662 (cutu_reader): Update.
13663 (build_type_psymtabs_1): Update.
13664 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13665 (abbrev_table::alloc_abbrev): Update.
13666 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13667 (abbrev_table::read): New static method, renamed from
13668 abbrev_table_read_table.
13669 (abbrev_table::alloc_abbrev)
13670 (abbrev_table::add_abbrev): Now private.
13671 (abbrev_table::abbrev_table): Now private.
13672 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13673
0335378b
TT
136742020-02-08 Tom Tromey <tom@tromey.com>
13675
13676 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13677 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13678 htab_up.
13679
48b490f2
TT
136802020-02-08 Tom Tromey <tom@tromey.com>
13681
13682 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13683 htab_up.
13684 (lookup_dwo_unit_in_dwp): Update.
13685 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13686 on obstack.
13687
bc68fb19
TT
136882020-02-08 Tom Tromey <tom@tromey.com>
13689
13690 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13691 obstack.
13692
d15acc42
TT
136932020-02-08 Tom Tromey <tom@tromey.com>
13694
13695 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13696 line_header_hash.
13697 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13698 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13699 Change type to htab_up.
13700
eaa5fa8b
TT
137012020-02-08 Tom Tromey <tom@tromey.com>
13702
13703 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13704 htab_up. Don't allocate on obstack.
13705 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13706 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13707 Change type to htab_up.
13708
b0b6a987
TT
137092020-02-08 Tom Tromey <tom@tromey.com>
13710
13711 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13712 Change type to htab_up.
13713 * dwarf2/read.c (create_signatured_type_table_from_index)
13714 (create_signatured_type_table_from_debug_names)
13715 (create_all_type_units, add_type_unit)
13716 (lookup_dwo_signatured_type, lookup_signatured_type)
13717 (process_skeletonless_type_unit): Update.
13718 (create_debug_type_hash_table, create_debug_types_hash_table):
13719 Change type of types_htab.
13720 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13721 htab_up. Don't allocate on obstack.
13722 (create_cus_hash_table): Change type of cus_htab parameter.
13723 (struct dwo_file) <cus, tus>: Now htab_up.
13724 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13725 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13726 (queue_and_load_all_dwo_tus): Update.
13727 * dwarf2/index-write.c (write_gdbindex): Update.
13728 (write_debug_names): Update.
13729
39856def
TT
137302020-02-08 Tom Tromey <tom@tromey.com>
13731
13732 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13733 dwarf2/read.c. Remove "next" member. Add constructor ntad
13734 destructor.
13735 (struct dwarf2_per_objfile) <queue>: New member.
13736 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13737 dwarf2/read.h.
13738 (dwarf2_queue, dwarf2_queue_tail): Remove.
13739 (class dwarf2_queue_guard): Add parameter to constructor. Use
13740 DISABLE_COPY_AND_ASSIGN.
13741 <m_per_objfile>: New member.
13742 <~dwarf2_queue_guard>: Rewrite.
13743 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13744 Update.
13745 (~dwarf2_queue_item): New.
13746
3e225074
TT
137472020-02-08 Tom Tromey <tom@tromey.com>
13748
13749 * dwarf2/read.c (struct die_info) <has_children>: New member.
13750 (dw2_get_file_names_reader): Remove has_children.
13751 (dw2_get_file_names): Update.
13752 (read_cutu_die_from_dwo): Remove has_children.
13753 (cutu_reader::init_tu_and_read_dwo_dies)
13754 (cutu_reader::cutu_reader): Update.
13755 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13756 Remove has_children.
13757 (build_type_psymtabs_1, process_skeletonless_type_unit)
13758 (load_partial_comp_unit, load_full_comp_unit): Update.
13759 (create_dwo_cu_reader): Remove has_children.
13760 (create_cus_hash_table, read_die_and_children): Update.
13761 (read_full_die_1,read_full_die): Remove has_children.
13762 (read_signatured_type): Update.
13763 (class cutu_reader) <has_children>: Remove.
13764
82ca8957
TT
137652020-02-08 Tom Tromey <tom@tromey.com>
13766
13767 * dwarf2/expr.c: Rename from dwarf2expr.c.
13768 * dwarf2/expr.h: Rename from dwarf2expr.h.
13769 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13770 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13771 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13772 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13773 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13774 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13775 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13776 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13777 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13778 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13779 * dwarf2/loc.c: Rename from dwarf2loc.c.
13780 * dwarf2/loc.h: Rename from dwarf2loc.h.
13781 * dwarf2/read.c: Rename from dwarf2read.c.
13782 * dwarf2/read.h: Rename from dwarf2read.h.
13783 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13784 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13785 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13786 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13787 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13788 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13789 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13790 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13791 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13792 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13793 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13794 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13795 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13796 Update.
13797 * Makefile.in (COMMON_SFILES): Update.
13798 (HFILES_NO_SRCDIR): Update.
13799
9e35d499
TT
138002020-02-08 Tom Tromey <tom@tromey.com>
13801
13802 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13803 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13804
1eba2311
TT
138052020-02-08 Tom Tromey <tom@tromey.com>
13806
13807 * dwarf2read.h (struct die_info): Don't declare.
13808
e41c2da2
TT
138092020-02-08 Tom Tromey <tom@tromey.com>
13810
13811 * dwarf2read.h (die_info_ptr): Remove typedef.
13812
4fc6c0d5
TT
138132020-02-08 Tom Tromey <tom@tromey.com>
13814
13815 * dwarf2read.c (read_call_site_scope)
13816 (handle_data_member_location, dwarf2_add_member_fn)
13817 (mark_common_block_symbol_computed, read_common_block)
13818 (attr_to_dynamic_prop, partial_die_info::read)
13819 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13820 (dwarf2_symbol_mark_computed, set_die_type): Update.
13821 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13822 method.
13823 (attr_form_is_block): Don't declare.
13824 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13825
cd6c91b4
TT
138262020-02-08 Tom Tromey <tom@tromey.com>
13827
13828 * dwarf2read.c (dwarf2_find_base_address, )
13829 (read_call_site_scope, rust_containing_type)
13830 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13831 (handle_data_member_location, dwarf2_add_member_fn)
13832 (get_alignment, read_structure_type, process_structure_scope)
13833 (mark_common_block_symbol_computed, read_common_block)
13834 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13835 (partial_die_info::read, read_attribute_value, new_symbol)
13836 (lookup_die_type, dwarf2_get_ref_die_offset)
13837 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13838 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13839 (dwarf2_symbol_mark_computed): Update.
13840 * dwarf2/attribute.h (struct attribute) <value_as_address,
13841 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13842 methods.
13843 (value_as_address, attr_form_is_section_offset)
13844 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13845 * dwarf2/attribute.c (attribute::value_as_address)
13846 (attribute::form_is_section_offset, attribute::form_is_constant)
13847 (attribute::form_is_ref): Now methods.
13848
162dce55
TT
138492020-02-08 Tom Tromey <tom@tromey.com>
13850
13851 * dwarf2read.c (struct attribute, DW_STRING)
13852 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13853 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13854 (attr_form_is_block, attr_form_is_section_offset)
13855 (attr_form_is_constant, attr_form_is_ref): Move.
13856 * dwarf2/attribute.h: New file.
13857 * dwarf2/attribute.c: New file, from dwarf2read.c.
13858 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13859
3054dd54
TT
138602020-02-08 Tom Tromey <tom@tromey.com>
13861
13862 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13863 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13864 Move.
13865 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13866 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13867 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13868 abbrev.c.
13869 * dwarf2/abbrev.h: New file.
13870 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13871 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13872
96b79293
TT
138732020-02-08 Tom Tromey <tom@tromey.com>
13874
13875 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13876 (dwarf2_section_size, dwarf2_get_section_info)
13877 (create_signatured_type_table_from_debug_names)
13878 (create_addrmap_from_aranges, read_debug_names_from_section)
13879 (get_gdb_index_contents_from_section, read_comp_unit_head)
13880 (error_check_comp_unit_head, read_abbrev_offset)
13881 (create_debug_type_hash_table, init_cu_die_reader)
13882 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13883 (read_comp_units_from_section, create_cus_hash_table)
13884 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13885 (create_dwp_v2_section, dwarf2_rnglists_process)
13886 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13887 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13888 (read_indirect_string_from_dwz, read_addr_index_1)
13889 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13890 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13891 (fill_in_loclist_baton): Update.
13892 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13893 get_containing_section, get_bfd_owner, get_bfd_section,
13894 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13895 (dwarf2_read_section, get_section_name, get_section_file_name)
13896 (get_containing_section, get_section_bfd_owner)
13897 (get_section_bfd_section, get_section_name, get_section_file_name)
13898 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13899 declare.
13900 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13901 (dwarf2_section_info::get_bfd_owner)
13902 (dwarf2_section_info::get_bfd_section)
13903 (dwarf2_section_info::get_name)
13904 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13905 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13906 (dwarf2_section_info::read): Now methods.
13907 * dwarf-index-write.c (class debug_names): Update.
13908
2c86cff9
TT
139092020-02-08 Tom Tromey <tom@tromey.com>
13910
13911 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13912 Move to dwarf2/section.h.
13913 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13914 (get_section_bfd_section, get_section_name)
13915 (get_section_file_name, get_section_id, get_section_flags)
13916 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13917 dwarf2/section.c.
13918 * dwarf2/section.h: New file.
13919 * dwarf2/section.c: New file, from dwarf2read.c.
13920 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13921
f4382c45
TT
139222020-02-08 Tom Tromey <tom@tromey.com>
13923
13924 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13925 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13926 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13927 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13928 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13929 * dwarf2/leb.h: New file, from dwarf2read.c.
13930 * dwarf2/leb.c: New file, from dwarf2read.c.
13931 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13932 Remove.
13933 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13934 (COMMON_SFILES): Add dwarf2/leb.c.
13935
01840b7a
JB
139362020-02-08 Joel Brobecker <brobecker@adacore.com>
13937
13938 GDB 9.1 released.
13939
dfcb27e4
IB
139402020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13941
13942 PR gdb/25190:
aac66a4c
SM
13943 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13944 * gdb/remote.c (remote_console_output): Update.
13945 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13946 (ui_file_puts): ...this.
13947 * gdb/ui-file.h (ui_file_puts): Add declaration.
13948 * gdb/utils.c (emit_style_escape): Update.
13949 (flush_wrap_buffer): Update.
13950 (fputs_maybe_filtered): Update.
13951 (fputs_unfiltered): Add function.
dfcb27e4 13952
faa17681
IB
139532020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13954
aac66a4c
SM
13955 * gdb/event-loop.c (gdb_wait_for_event): Update.
13956 * gdb/printcmd.c (printf_command): Update.
13957 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13958 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13959 (gdb_os_flush_stderr): Update.
13960 * gdb/remote.c (remote_console_output): Update.
13961 * gdb/ui-file.c (gdb_flush): Rename to...
13962 (ui_file_flush): ...this.
13963 (stderr_file::write): Update.
13964 (stderr_file::puts): Update.
13965 * gdb/ui-file.h (gdb_flush): Rename to...
13966 (ui_file_flush): ...this.
13967 * gdb/utils.c (gdb_flush): Add function.
13968 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13969
5abbbe1d
TT
139702020-02-07 Tom Tromey <tromey@adacore.com>
13971
13972 PR breakpoints/24915:
13973 * source.c (find_and_open_source): Do not check basenames_may_differ.
13974
919adfe8
TT
139752020-02-07 Tom Tromey <tom@tromey.com>
13976
13977 * README: Update gdbserver documentation.
13978 * gdbserver: Move to top level.
13979 * configure.tgt (build_gdbserver): Remove.
13980 * configure.ac: Remove --enable-gdbserver.
13981 * configure: Rebuild.
13982 * Makefile.in (distclean): Don't mention gdbserver.
13983
1d5d29e7
SV
139842020-02-06 Shahab Vahedi <shahab@synopsys.com>
13985
13986 * source-cache.c (source_cache::ensure): Surround
13987 get_plain_source_lines with a try/catch.
13988 (source_cache::get_line_charpos): Get rid of try/catch
13989 and only check for the return value of "ensure".
13990 * tui/tui-source.c (tui_source_window::set_contents):
13991 Simplify "nlines" calculation.
13992
6eb1129c
SV
139932020-02-06 Shahab Vahedi <shahab@synopsys.com>
13994
13995 * MAINTAINERS (Write After Approval): Add myself.
13996
c6a42d11
CB
139972020-02-05 Christian Biesinger <cbiesinger@google.com>
13998
13999 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14000 function call.
14001
c8ecdda6
CB
140022020-02-05 Christian Biesinger <cbiesinger@google.com>
14003
14004 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14005
f6480e70
MR
140062020-02-05 Maciej W. Rozycki <macro@wdc.com>
14007
14008 * nat/riscv-linux-tdesc.h: New file.
14009 * nat/riscv-linux-tdesc.c: New file, taking code from...
14010 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14011 ... here.
14012 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14013 NATDEPFILES.
14014
dcc9fbc6
AB
140152020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14016
14017 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14018 we don't set the fake simulator ptid to the null_ptid.
14019
719546c4
SM
140202020-02-03 Simon Marchi <simon.marchi@efficios.com>
14021
14022 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14023 * gdbthread.h (class thread_info) <resumed>: Likewise.
14024 * infrun.c (resume_1): Likewise.
14025 (proceed): Likewise.
14026 (infrun_thread_stop_requested): Likewise.
14027 (stop_all_threads): Likewise.
14028 (handle_inferior_event): Likewise.
14029 (restart_threads): Likewise.
14030 (finish_step_over): Likewise.
14031 (keep_going_stepped_thread): Likewise.
14032 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14033 (linux_handle_extended_wait): Likewise.
14034 * record-btrace.c (get_thread_current_frame_id): Likewise.
14035 * record-full.c (record_full_wait_1): Likewise.
14036 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14037 * target.c (target_resume): Likewise.
14038 * thread.c (set_running_thread): Likewise.
14039
e409c542
AKS
140402020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14041
14042 * f-valprint.c (f77_print_array_1): Changed datatype of index
14043 variable to LONGEST from int to enable it to contain bound
14044 values correctly.
14045
ee98c0da
MR
140462020-02-03 Maciej W. Rozycki <macro@wdc.com>
14047
14048 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14049 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14050 offsets according to FLEN determined.
14051 (riscv_linux_nat_target::read_description): Determine FLEN
14052 dynamically.
14053 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14054 according to FLEN determined.
14055 (riscv_linux_nat_target::store_registers): Likewise.
14056
aa66aac4
SV
140572020-02-01 Shahab Vahedi <shahab@synopsys.com>
14058
14059 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14060 when reg->group is empty and reggroup is not.
14061
fd9faca8
TT
140622020-01-31 Tom Tromey <tromey@adacore.com>
14063
14064 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14065 Call beneath target's mourn_inferior after unpushing.
14066
42330a68
AB
140672020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14068
14069 PR tui/9765
14070 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14071 have enough lines to fill the screen, still return the lowest
14072 address we found.
14073
7a27a45b
AB
140742020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14075
14076 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14077 '-', '<', and '>' commands.
14078
c47f70e2
PA
140792020-01-29 Pedro Alves <palves@redhat.com>
14080 Sergio Durigan Junior <sergiodj@redhat.com>
14081
14082 * infcmd.c (construct_inferior_arguments): Assert that
14083 'argc' is greater than 0.
14084
5133a315
LM
140852020-01-29 Luis Machado <luis.machado@linaro.org>
14086
14087 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14088 (BRK_INSN_MASK): Define to 0xd4200000.
14089 (aarch64_program_breakpoint_here_p): New function.
14090 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14091 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14092 breakpoint.c.
14093 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14094 breakpoint.h
14095 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14096 call gdbarch_program_breakpoint_here_p.
14097 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14098 default_program_breakpoint_here_p, changed return type to bool and
14099 simplified.
14100 * breakpoint.h (program_breakpoint_here): Moved prototype to
14101 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14102 return type to bool.
14103 * gdbarch.c: Regenerate.
14104 * gdbarch.h: Regenerate.
14105 * gdbarch.sh (program_breakpoint_here_p): New method.
14106 * infrun.c (handle_signal_stop): Call
14107 gdbarch_program_breakpoint_here_p.
14108
168f8c6b
TT
141092020-01-26 Tom Tromey <tom@tromey.com>
14110
14111 * ctfread.c (struct ctf_fp_info): Reindent.
14112 (_initialize_ctfread): Remove.
14113
128a391f
TT
141142020-01-26 Tom Tromey <tom@tromey.com>
14115
14116 * psymtab.c (partial_map_expand_apply)
14117 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14118 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14119 (psym_print_stats, psym_expand_symtabs_for_function)
14120 (psym_map_symbol_filenames, psym_map_matching_symbols)
14121 (psym_expand_symtabs_matching)
14122 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14123 (maintenance_check_psymtabs): Use new methods.
14124 * psympriv.h (struct partial_symtab) <readin_p,
14125 get_compunit_symtab>: New methods.
14126 <readin, compunit_symtab>: Remove members.
14127 (struct standard_psymtab): New.
14128 (struct legacy_psymtab): Derive from standard_psymtab.
14129 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14130 standard_psymtab.
14131 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14132
0494dbec
TT
141332020-01-26 Tom Tromey <tom@tromey.com>
14134
14135 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14136 read_dependencies. Add assert.
14137 * psymtab.c (partial_symtab::read_dependencies): New method.
14138 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14139 method.
14140 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14141 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14142 read_dependencies.
14143 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14144 Add assert.
14145
8566b89b
TT
141462020-01-26 Tom Tromey <tom@tromey.com>
14147
14148 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14149 Call expand_psymtab.
14150 (xcoff_read_symtab): Call expand_psymtab.
14151 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14152 legacy_expand_psymtab.
14153 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14154 method.
14155 (struct legacy_psymtab) <expand_psymtab>: Implement.
14156 <legacy_expand_psymtab>: New member.
14157 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14158 (parse_partial_symbols): Set legacy_expand_psymtab.
14159 (psymtab_to_symtab_1): Change argument order. Call
14160 expand_psymtab.
14161 (new_psymtab): Set legacy_expand_psymtab.
14162 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14163 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14164 expand_psymtab.
14165 (dwarf2_psymtab::expand_psymtab): Rename from
14166 psymtab_to_symtab_1. Call expand_psymtab.
14167 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14168 (dbx_end_psymtab): Likewise.
14169 (dbx_psymtab_to_symtab_1): Change argument order. Call
14170 expand_psymtab.
14171 (dbx_read_symtab): Call expand_psymtab.
14172 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14173 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14174 (ctf_psymtab::read_symtab): Call expand_psymtab.
14175
077cbab2
TT
141762020-01-26 Tom Tromey <tom@tromey.com>
14177
14178 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14179 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14180 messages.
14181 * mdebugread.c (mdebug_read_symtab): Remove prints.
14182 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14183 assert.
14184 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14185
891813be
TT
141862020-01-26 Tom Tromey <tom@tromey.com>
14187
14188 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14189 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14190 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14191 legacy_symtab.
14192 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14193 * psymtab.c (psymtab_to_symtab): Call method.
14194 (dump_psymtab): Update.
14195 * psympriv.h (struct partial_symtab): Add virtual destructor.
14196 <read_symtab>: New method.
14197 (struct legacy_symtab): New.
14198 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14199 (struct pst_map) <pst>: Now a legacy_psymtab.
14200 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14201 (new_psymtab): Use legacy_psymtab.
14202 * dwarf2read.h (struct dwarf2_psymtab): New.
14203 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14204 * dwarf2read.c (dwarf2_create_include_psymtab)
14205 (dwarf2_build_include_psymtabs, create_type_unit_group)
14206 (create_partial_symtab, process_psymtab_comp_unit_reader)
14207 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14208 (set_partial_user): Use dwarf2_psymtab.
14209 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14210 (psymtab_to_symtab_1, process_full_comp_unit)
14211 (process_full_type_unit, dwarf2_ranges_read)
14212 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14213 (dwarf_decode_lines): Use dwarf2_psymtab.
14214 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14215 (add_address_entry_worker, write_one_signatured_type)
14216 (recursively_count_psymbols, recursively_write_psymbols)
14217 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14218 (write_debug_names): Likewise.
14219 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14220 <pst>: Now a legacy_psymtab.
14221 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14222 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14223 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14224 * ctfread.c (struct ctf_psymtab): New.
14225 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14226 ctf_psymtab.
14227 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14228 (create_partial_symtab): Return a ctf_psymtab.
14229 (scan_partial_symbols): Update.
14230
c3693a1d
TT
142312020-01-26 Tom Tromey <tom@tromey.com>
14232
14233 * xcoffread.c (xcoff_start_psymtab): Use new.
14234 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14235 renamed from start_psymtab_common.
14236 * psympriv.h (struct partial_symtab): Add new constructor.
14237 (start_psymtab_common): Don't declare.
14238 * mdebugread.c (parse_partial_symbols): Use new.
14239 * dwarf2read.c (create_partial_symtab): Use new.
14240 * dbxread.c (start_psymtab): Use new.
14241 * ctfread.c (create_partial_symtab): Use new.
14242
32caafd0
TT
142432020-01-26 Tom Tromey <tom@tromey.com>
14244
14245 * xcoffread.c (xcoff_end_psymtab): Use new.
14246 * psymtab.c (start_psymtab_common): Use new.
14247 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14248 Update.
14249 * psympriv.h (struct partial_symtab): Add parameters to
14250 constructor. Don't inline.
14251 (allocate_psymtab): Don't declare.
14252 * mdebugread.c (new_psymtab): Use new.
14253 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14254 * dbxread.c (dbx_end_psymtab): Use new.
14255
abaa2f23
TT
142562020-01-26 Tom Tromey <tom@tromey.com>
14257
14258 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14259 allocate_psymtab. Update documentation.
14260 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14261 allocate_psymtab. Do not use new.
14262 (allocate_psymtab): Use new. Update.
14263
6d94535f
TT
142642020-01-26 Tom Tromey <tom@tromey.com>
14265
14266 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14267 * psymtab.c (psym_print_stats): Update.
14268 * psympriv.h (struct partial_symtab) <readin,
14269 psymtabs_addrmap_supported, anonymous>: Now bool.
14270 * mdebugread.c (psymtab_to_symtab_1): Update.
14271 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14272 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14273 (process_full_comp_unit, process_full_type_unit): Update.
14274 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14275 * ctfread.c (psymtab_to_symtab): Update.
14276
6f17252b
TT
142772020-01-26 Tom Tromey <tom@tromey.com>
14278
14279 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14280 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14281 * psymtab.c (psymtab_storage): Delete psymtabs.
14282 (psymtab_storage::allocate_psymtab): Use new.
14283 (psymtab_storage::discard_psymtab): Use delete.
14284 * psympriv.h (struct partial_symtab): Add constructor and
14285 initializers.
14286
f6f1cebc
TT
142872020-01-26 Tom Tromey <tom@tromey.com>
14288
14289 * machoread.c: Do not include psympriv.h.
14290
e47e48f6
PW
142912020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14292
14293 * NEWS: Mention the new option and the set/show commands.
14294
a2fedca9
PW
142952020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14296
14297 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14298 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14299 (validate_exec_file): New variables, enums, functions.
14300 (exec_file_locate_attach, print_section_info): Style the filenames.
14301 (_initialize_exec): Install show_exec_file_mismatch_command and
14302 set_exec_file_mismatch_command.
14303 * gdbcore.h (validate_exec_file): Declare.
14304 * infcmd.c (attach_command): Call validate_exec_file.
14305 * remote.c ( remote_target::remote_add_inferior): Likewise.
14306
7ffa82e1
AB
143072020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14308
14309 * frame.c (find_frame_sal): Move call to get_next_frame into more
14310 inner scope.
14311 * inline-frame.c (inilne_state) <inline_state>: Update argument
14312 types.
14313 (inilne_state) <skipped_symbol>: Rename to...
14314 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14315 (skip_inline_frames): Build vector of skipped symbols and use this
14316 to reate the inline_state.
14317 (inline_skipped_symbol): Add a comment and some assertions, fetch
14318 skipped symbol from the list.
14319
3d92a3e3
AB
143202020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14321
14322 * buildsym.c (lte_is_less_than): Delete.
14323 (buildsym_compunit::end_symtab_with_blockvector): Create local
14324 lambda function to sort line table entries, and use
14325 std::stable_sort instead of std::sort.
14326 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14327 markers when looking for a previous line.
14328
94a72be7
AB
143292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14330
14331 * dwarf2read.c (lnp_state_machine::record_line): Include
14332 end_sequence parameter in debug print out. Record the line if we
14333 are at an end_sequence marker even if it's not the start of a
14334 statement.
14335 * symmisc.c (maintenance_print_one_line_table): Print end of
14336 sequence markers with 'END' not '0'.
14337
53af73bf
PA
143382020-01-24 Pedro Alves <palves@redhat.com>
14339
14340 PR gdb/25410
14341 * thread.c (scoped_restore_current_thread::restore): Use
14342 switch_to_inferior_no_thread.
14343 * exec.c: Include "progspace-and-thread.h".
14344 (add_target_sections, remove_target_sections):
14345 scoped_restore_current_pspace_and_thread instead of
14346 scoped_restore_current_thread.
14347 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14348 and aspace to the inferior before calling clone_program_space.
14349 Remove stale comment.
14350
3050c6f4
CB
143512020-01-24 Christian Biesinger <cbiesinger@google.com>
14352
14353 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14354 (arm_netbsd_nat_target::fetch_registers): ...this.
14355 (arm_nbsd_nat_target::store_registers): Rename to...
14356 (arm_netbsd_nat_target::store_registers): ...this.
14357
73685c7e
CB
143582020-01-24 Christian Biesinger <cbiesinger@google.com>
14359
14360 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14361 register_t.
14362
89203d40
CB
143632020-01-24 Christian Biesinger <cbiesinger@google.com>
14364
14365 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14366 Update comment.
14367 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14368 Likewise.
14369 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14370 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14371 the correct replacement (iterate_over_regset_sections).
14372 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14373 Update comment.
14374
1ba1ac88
AB
143752020-01-24 Graham Markall <graham.markall@embecosm.com>
14376
14377 PR gdb/23718
14378 * gdb/python/python.c (execute_gdb_command): Call
14379 async_enable_stdin in catch block.
14380
f3364a6d
AB
143812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14382
14383 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14384 SWITCH_THRU_ALL_UIS.
14385
733d0a67
AB
143862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14387
14388 PR tui/9765
14389 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14390 comment, add extra parameter, and update to store previous symbol
14391 when appropriate.
14392 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14393 add extra parameter.
14394 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14395 remove unneeded parameter, add try/catch around gdb_print_insn,
14396 rewrite to add items to asm_lines vector.
14397 (tui_find_backward_disassembly_start_address): New function.
14398 (tui_find_disassembly_address): Updated throughout.
14399 (tui_disasm_window::set_contents): Update for changes to
14400 tui_disassemble.
14401 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14402 number of lines to scroll.
14403
b3b3bada
SM
144042020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14405
14406 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14407 (SECT_OFF_DATA): Likewise.
14408 (SECT_OFF_RODATA): Likewise.
14409 (SECT_OFF_TEXT): Likewise.
14410 (SECT_OFF_BSS): Likewise.
14411 (struct objfile) <text_section_offset, data_section_offset>: New
14412 methods.
14413 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14414 objfile::text_section_offset.
14415 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14416 * coffread.c (coff_symtab_read): Likewise.
14417 (enter_linenos): Likewise.
14418 (process_coff_symbol): Likewise.
14419 * ctfread.c (get_objfile_text_range): Likewise.
14420 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14421 Use objfile::data_section_offset.
14422 * dwarf2-frame.c (execute_cfa_program): Use
14423 objfile::text_section_offset.
14424 (dwarf2_frame_find_fde): Likewise.
14425 * dwarf2read.c (create_addrmap_from_index): Likewise.
14426 (create_addrmap_from_aranges): Likewise.
14427 (dw2_find_pc_sect_compunit_symtab): Likewise.
14428 (process_psymtab_comp_unit_reader): Likewise.
14429 (add_partial_symbol): Likewise.
14430 (add_partial_subprogram): Likewise.
14431 (process_full_comp_unit): Likewise.
14432 (read_file_scope): Likewise.
14433 (read_func_scope): Likewise.
14434 (read_lexical_block_scope): Likewise.
14435 (read_call_site_scope): Likewise.
14436 (dwarf2_rnglists_process): Likewise.
14437 (dwarf2_ranges_process): Likewise.
14438 (dwarf2_ranges_read): Likewise.
14439 (dwarf_decode_lines_1): Likewise.
14440 (new_symbol): Likewise.
14441 (dwarf2_fetch_die_loc_sect_off): Likewise.
14442 (dwarf2_per_cu_text_offset): Likewise.
14443 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14444 * hppa-tdep.c (read_unwind_info): Likewise.
14445 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14446 * psympriv.h (struct partial_symtab): Likewise.
14447 * psymtab.c (find_pc_sect_psymtab): Likewise.
14448 * solib-svr4.c (enable_break): Likewise.
14449 * stap-probe.c (relocate_address): Use
14450 objfile::data_section_offset.
14451 * xcoffread.c (enter_line_range): Use
14452 objfile::text_section_offset.
14453 (read_xcoff_symtab): Likewise.
14454
ab53f382
SM
144552020-01-23 Simon Marchi <simon.marchi@efficios.com>
14456
14457 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14458 declaration to narrower scopes.
14459
e7eee665
SM
144602020-01-23 Simon Marchi <simon.marchi@efficios.com>
14461
14462 * darwin-nat.h (struct darwin_exception_msg, enum
14463 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14464 Move up.
14465 (class darwin_nat_target) <wait_1, check_new_threads,
14466 decode_exception_message, decode_message, stop_inferior,
14467 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14468 * darwin-nat.c (darwin_check_new_threads): Rename to...
14469 (darwin_nat_target::check_new_threads): ... this.
14470 (darwin_suspend_inferior_it): Remove.
14471 (darwin_decode_exception_message): Rename to...
14472 (darwin_nat_target::decode_exception_message): ... this.
14473 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14474 (darwin_decode_message): Rename to...
14475 (darwin_nat_target::decode_message): ... this.
14476 (cancel_breakpoint): Rename to...
14477 (darwin_nat_target::cancel_breakpoint): ... this.
14478 (darwin_wait): Rename to...
14479 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14480 instead of iterate_over_inferiors.
14481 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14482 (darwin_stop_inferior): Rename to...
14483 (darwin_nat_target::stop_inferior): ... this.
14484 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14485 (darwin_init_thread_list): Rename to...
14486 (darwin_nat_target::init_thread_list): ... this.
14487 (darwin_ptrace_him): Rename to...
14488 (darwin_nat_target::ptrace_him): ... this.
14489 (darwin_nat_target::create_inferior): Pass lambda function to
14490 fork_inferior.
14491 (darwin_nat_target::detach): Call stop_inferior instead of
14492 darwin_stop_inferior.
14493 * fork-inferior.h (fork_inferior): Change init_trace_fun
14494 parameter to gdb::function_view.
14495 * fork-inferior.c (fork_inferior): Likewise.
14496
c162ed3e
HD
144972020-01-23 Hannes Domani <ssbssa@yahoo.de>
14498
14499 * i386-cygwin-tdep.c (core_process_module_section): Update.
14500 * windows-nat.c (struct lm_info_windows): Add text_offset.
14501 (windows_xfer_shared_libraries): Update.
14502 * windows-tdep.c (windows_xfer_shared_library):
14503 Add text_offset_cached argument.
14504 * windows-tdep.h (windows_xfer_shared_library): Update.
14505
a1237872
SM
145062020-01-21 Simon Marchi <simon.marchi@efficios.com>
14507
14508 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14509
b3ee6dd9
SM
145102020-01-21 Simon Marchi <simon.marchi@efficios.com>
14511
14512 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14513 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14514 replace with range-based for.
14515 (gdbsim_interrupt_inferior): Remove.
14516 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14517 with a range-based for. Inline code from
14518 gdbsim_interrupt_inferior.
14519
f9fac3c8
SM
145202020-01-21 Simon Marchi <simon.marchi@efficios.com>
14521
14522 * infrun.c (proceed): Fix indentation.
14523
f6474de9
TT
145242020-01-21 Tom Tromey <tromey@adacore.com>
14525
14526 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14527 * python/python.c (python_extension_ops): Update.
14528 (gdbpy_colorize): New function.
14529 * python/lib/gdb/__init__.py (colorize): New function.
14530 * extension.h (ext_lang_colorize): Declare.
14531 * extension.c (ext_lang_colorize): New function.
14532 * extension-priv.h (struct extension_language_ops) <colorize>: New
14533 member.
14534 * cli/cli-style.c (_initialize_cli_style): Update help text.
14535
f0c702d4
LM
145362020-01-21 Luis Machado <luis.machado@linaro.org>
14537
14538 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14539 <cond>: Change type to bool.
14540 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14541 (aarch64_displaced_step_cb): Likewise.
14542 (aarch64_displaced_step_tb): Likewise.
14543
1ab139e5
LM
145442020-01-21 Luis Machado <luis.machado@linaro.org>
14545
14546 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14547 output.
14548
0c271889
LM
145492020-01-21 Luis Machado <luis.machado@linaro.org>
14550
14551 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14552 <pc_adjust>: Adjust the documentation.
14553 (aarch64_displaced_step_fixup): Check if PC really moved before
14554 adjusting it.
14555
4d89c1c7
TT
145562020-01-19 Tom Tromey <tom@tromey.com>
14557
14558 * disasm.c (~gdb_disassembler): New destructor.
14559 (gdb_buffered_insn_length): Call disassemble_free_target.
14560 * disasm.h (class gdb_disassembler): Declare destructor. Use
14561 DISABLE_COPY_AND_ASSIGN.
14562
c0ab21c2
TT
145632020-01-19 Tom Tromey <tom@tromey.com>
14564
14565 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14566 (die_reader_func_ftype): Remove.
14567 (cutu_reader): New class.
14568 (dw2_get_file_names_reader): Remove "data" parameter.
14569 (dw2_get_file_names): Use cutu_reader.
14570 (create_debug_type_hash_table): Update.
14571 (read_cutu_die_from_dwo): Update comment.
14572 (lookup_dwo_unit): Add dwo_name parameter.
14573 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14574 die_reader_func_ftype and data parameters.
14575 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14576 Remove die_reader_func_ftype and data parameters.
14577 (~cutu_reader): New; from init_cutu_and_read_dies.
14578 (cutu_reader::cutu_reader): Rename from
14579 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14580 and data parameters.
14581 (init_cutu_and_read_dies_simple): Remove.
14582 (struct process_psymtab_comp_unit_data): Remove.
14583 (process_psymtab_comp_unit_reader): Remove data parameter; add
14584 want_partial_unit and pretend_language parameters.
14585 (process_psymtab_comp_unit): Use cutu_reader.
14586 (build_type_psymtabs_reader): Remove data parameter.
14587 (build_type_psymtabs_1): Use cutu_reader.
14588 (process_skeletonless_type_unit): Likewise.
14589 (load_partial_comp_unit_reader): Remove.
14590 (load_partial_comp_unit): Use cutu_reader.
14591 (load_full_comp_unit_reader): Remove.
14592 (load_full_comp_unit): Use cutu_reader.
14593 (struct create_dwo_cu_data): Remove.
14594 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14595 dwo_unit parameters.
14596 (create_cus_hash_table): Use cutu_reader.
14597 (struct dwarf2_read_addr_index_data): Remove.
14598 (dwarf2_read_addr_index_reader): Remove.
14599 (dwarf2_read_addr_index): Use cutu_reader.
14600 (read_signatured_type_reader): Remove.
14601 (read_signatured_type): Use cutu_reader.
14602
45bbae5c
TT
146032020-01-19 Tom Tromey <tom@tromey.com>
14604
14605 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14606 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14607 (tui_wrefresh): Declare.
14608 * tui/tui-wingeneral.c (suppress_output): New global.
14609 (tui_suppress_output, ~tui_suppress_output): New constructor and
14610 destructor.
14611 (tui_wrefresh): New function.
14612 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14613 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14614 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14615 method.
14616 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14617 tui_wrefresh.
14618 (tui_data_window::no_refresh): New method.
14619 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14620 (tui_reg_command): Use tui_suppress_output
14621 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14622 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14623 method.
14624 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14625
4f13c1c0
TT
146262020-01-19 Tom Tromey <tom@tromey.com>
14627
14628 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14629 Handle case where symtab is null.
14630
fa47e446
SM
146312020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14632
14633 * linux-fork.c (one_fork_p): Simplify.
14634
26f42329
SM
146352020-01-17 Simon Marchi <simon.marchi@efficios.com>
14636
14637 * top.c (struct qt_args): Remove.
14638 (kill_or_detach): Change return type to void, replace `void *`
14639 parameter with a proper one.
14640 (print_inferior_quit_action): Likewise.
14641 (quit_confirm): Use range-based for loop to iterate over inferiors.
14642 (quit_force): Likewise.
14643
a9ac81b1
SM
146442020-01-17 Simon Marchi <simon.marchi@efficios.com>
14645
14646 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14647 `void *` parameter with proper parameters.
14648 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14649 (print_one_inferior): Change return type to void, replace `void *`
14650 parameter with proper parameters.
14651 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14652 inferiors.
14653 (get_other_inferior): Remove.
14654 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14655 inferiors.
14656
788eca49
SM
146572020-01-17 Simon Marchi <simon.marchi@efficios.com>
14658
14659 * mi/mi-interp.c (report_initial_inferior): Remove.
14660 (mi_interp::init): Use range-based for to iterate over inferiors.
14661
d9bc85b6
SM
146622020-01-17 Simon Marchi <simon.marchi@efficios.com>
14663
14664 * python/py-inferior.c (build_inferior_list): Remove.
14665 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14666
40c94099
CB
146672020-01-16 Christian Biesinger <cbiesinger@google.com>
14668
14669 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14670 (btrace_stitch_trace): Likewise.
14671 * charset.c (intermediate_encoding): Likewise (vaild).
14672 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14673 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14674 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14675
e0cdfe3c
HD
146762020-01-16 Hannes Domani <ssbssa@yahoo.de>
14677
14678 * windows-tdep.c (windows_get_tlb_type):
14679 Add rtl_user_process_parameters type.
14680
790f1718 146812020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14682 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14683
14684 PR build/24805
14685 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14686 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14687 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14688 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14689 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14690 (ps_plog): Redeclare exported functions with default visibility.
14691
3112ed97
NA
146922020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14693
14694 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14695 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14696
8dc3273e
SM
146972020-01-15 Simon Marchi <simon.marchi@efficios.com>
14698
14699 * infcmd.c (post_create_inferior): Use get_thread_regcache
14700 instead of get_current_regcache.
14701
ff47f4f0
TT
147022020-01-14 Tom Tromey <tom@tromey.com>
14703
14704 PR symtab/12535:
14705 * python/python.c (gdbpy_decode_line): Treat empty string the same
14706 as no argument.
14707
975f45b7
TT
147082020-01-14 Tom Tromey <tom@tromey.com>
14709
14710 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14711
25e57356
TT
147122020-01-14 Tom Tromey <tom@tromey.com>
14713
14714 * nat/linux-btrace.c: Don't include <config.h>.
14715 * nat/linux-ptrace.c: Don't include <config.h>.
14716 * nat/x86-linux-dregs.c: Don't include <config.h>.
14717
05ea2a05
TT
147182020-01-14 Tom Tromey <tom@tromey.com>
14719
14720 * configure: Rebuild.
14721 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14722
01027315
TT
147232020-01-14 Tom Tromey <tom@tromey.com>
14724
14725 * nat/x86-linux-dregs.c: Include configh.h.
14726 * nat/linux-ptrace.c: Include configh.h.
14727 * nat/linux-btrace.c: Include configh.h.
14728 * defs.h: Include config.h, bfd.h.
14729 * configure.ac: Don't source common.host.
14730 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14731 * configure: Rebuild.
14732 * acinclude.m4: Update path.
14733 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14734 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14735 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14736 (CLIBS): Add LIBSUPPORT.
14737 (CDEPS): Likewise.
14738 (COMMON_SFILES): Remove gdbsupport files.
14739 (HFILES_NO_SRCDIR): Likewise.
14740 (stamp-version): Update path to create-version.sh.
14741 (ALLDEPFILES): Remove gdbsupport files.
14742
b2ceabe8
TT
147432020-01-14 Tom Tromey <tom@tromey.com>
14744
14745 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14746 USE_WIN32API when needed.
14747 * configure.ac (USE_WIN32API): Don't define.
14748 (WIN32LIBS): Use WIN32APILIBS.
14749 * configure: Rebuild.
14750
25c51f71
TT
147512020-01-14 Tom Tromey <tom@tromey.com>
14752
14753 * configure: Rebuild.
14754 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14755
717c684d
BE
147562020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14757
14758 * skip.c (skip_function_command): Make skip w/o arguments use the
14759 name of the inlined function if pc is inside any inlined function.
14760
7da6a5b9
LM
147612020-01-14 Luis Machado <luis.machado@linaro.org>
14762
14763 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14764 * infrun.c (resume_1): Likewise.
14765 (handle_inferior_event): Remove stale comment.
14766 * linux-nat.c (linux_nat_target::resume): Update comments.
14767 (save_stop_reason): Likewise.
14768 (linux_nat_filter_event): Likewise.
14769 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14770
44e4c775
AB
147712020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14772
14773 * elfread.c (record_minimal_symbol): Set section index to 0 for
14774 non-allocatable sections.
14775
18a8505e
AT
14776
147772020-01-13 Ali Tamur <tamur@google.com>
14778
14779 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14780 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14781 to gdb::optional. Update comments.
14782 (dwo_file): Update comments.
14783 (read_attribute): Update API to take an additional out parameter,
14784 need_reprocess. This is used to mark attributes that need other
14785 attributes (e.g. str_offsets_base) for correct computation which may not
14786 have been read yet.
14787 (read_attribute_reprocess): New function declaration.
14788 (read_addr_index): Likewise.
14789 (read_dwo_str_index): Likewise.
14790 (read_stub_str_index): Likewise.
14791 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14792 (lookup_addr_base): New function definition.
14793 (lookup_ranges_base): Likewise.
14794 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14795 lookup_ranges_base.
14796 (init_cutu_and_read_dies): Update comments.
14797 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14798 unit. This is used to inherit parent's str_offsets_base and addr_base.
14799 Update comments.
14800 (init_cutu_and_read_dies_simple): Reflect API changes.
14801 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14802 (create_cus_hash_table): Change API to take parent compile unit.
14803 Reflect API changes.
14804 (open_and_init_dwo_file): Reflect API changes.
14805 (dwarf2_get_pc_bounds): Update comments.
14806 (dwarf2_record_block_ranges): Likewise.
14807 (read_full_die_1): Change implementation to reprocess attributes that
14808 need str_offsets_base and addr_base.
14809 (partial_die_info::read): Likewise.
14810 (read_attribute_reprocess): New function definition.
14811 (read_attribute_value): Change API to take an additional out parameter,
14812 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14813 when a non-dwo compile unit has index based attributes.
14814 (read_attribute): Reflect API changes.
14815 (read_addr_index_1): Reflect API changes. Update comments.
14816 (dwarf2_read_addr_index_data): Reflect API changes.
14817 (dwarf2_read_addr_index): Likewise.
14818 (read_str_index): Change API and implementation. This becomes a helper
14819 to be used by the new string index related methods. Update error
14820 message and comments.
14821 (read_dwo_str_index): New function definition.
14822 (read_stub_str_index): Likewise.
14823 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14824 * symfile.h (dwarf2_debug_sections): Likewise.
14825 * xcoffread.c (dwarf2_debug_sections): Likewise.
14826
0cac9354
SM
148272020-01-13 Simon Marchi <simon.marchi@efficios.com>
14828
14829 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14830 core_reg_sect type to gdb_byte *.
14831 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14832 * cris-tdep.c (fetch_core_registers): Likewise.
14833 * corelow.c (core_target::get_core_register_section): Change
14834 type of `contents` to gdb::byte_vector.
14835
9a6d629c
AB
148362020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14837
14838 * tui/tui-wingeneral.c (box_win): Position the title in the center
14839 of the border.
14840
d8b2f9e3
SM
148412020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14842
14843 * corelow.c (core_target::get_core_register_section): Use
14844 std::vector instead of alloca.
14845
bb564c58
SM
148462020-01-13 Simon Marchi <simon.marchi@efficios.com>
14847
14848 * warning.m4: Add -Wmissing-declarations to build_warnings.
14849 * configure: Re-generate.
14850
6b366111
SM
148512020-01-13 Simon Marchi <simon.marchi@efficios.com>
14852
14853 * python/python.c (init__gdb_module): Add declaration.
14854
6c265988
SM
148552020-01-13 Simon Marchi <simon.marchi@efficios.com>
14856
14857 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14858 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14859 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14860 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14861 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14862 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14863 * ada-exp.y (_initialize_ada_exp): Add declaration.
14864 * ada-lang.c (_initialize_ada_language): Add declaration.
14865 * ada-tasks.c (_initialize_tasks): Add declaration.
14866 * agent.c (_initialize_agent): Add declaration.
14867 * aix-thread.c (_initialize_aix_thread): Add declaration.
14868 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14869 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14870 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14871 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14872 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14873 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14874 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14875 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14876 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14877 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14878 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14879 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14880 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14881 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14882 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14883 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14884 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14885 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14886 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14887 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14888 * annotate.c (_initialize_annotate): Add declaration.
14889 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14890 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14891 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14892 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14893 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14894 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14895 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14896 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14897 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14898 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14899 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14900 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14901 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14902 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14903 * auto-load.c (_initialize_auto_load): Add declaration.
14904 * auxv.c (_initialize_auxv): Add declaration.
14905 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14906 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14907 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14908 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14909 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14910 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14911 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14912 * breakpoint.c (_initialize_breakpoint): Add declaration.
14913 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14914 * btrace.c (_initialize_btrace): Add declaration.
14915 * charset.c (_initialize_charset): Add declaration.
14916 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14917 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14918 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14919 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14920 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14921 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14922 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14923 * coffread.c (_initialize_coffread): Add declaration.
14924 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14925 * compile/compile.c (_initialize_compile): Add declaration.
14926 * complaints.c (_initialize_complaints): Add declaration.
14927 * completer.c (_initialize_completer): Add declaration.
14928 * copying.c (_initialize_copying): Add declaration.
14929 * corefile.c (_initialize_core): Add declaration.
14930 * corelow.c (_initialize_corelow): Add declaration.
14931 * cp-abi.c (_initialize_cp_abi): Add declaration.
14932 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14933 * cp-support.c (_initialize_cp_support): Add declaration.
14934 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14935 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14936 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14937 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14938 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14939 * ctfread.c (_initialize_ctfread): Add declaration.
14940 * d-lang.c (_initialize_d_language): Add declaration.
14941 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14942 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14943 * dbxread.c (_initialize_dbxread): Add declaration.
14944 * dcache.c (_initialize_dcache): Add declaration.
14945 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14946 * disasm.c (_initialize_disasm): Add declaration.
14947 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14948 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14949 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14950 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14951 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14952 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14953 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14954 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14955 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14956 * elfread.c (_initialize_elfread): Add declaration.
14957 * exec.c (_initialize_exec): Add declaration.
14958 * extension.c (_initialize_extension): Add declaration.
14959 * f-lang.c (_initialize_f_language): Add declaration.
14960 * f-valprint.c (_initialize_f_valprint): Add declaration.
14961 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14962 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14963 * filesystem.c (_initialize_filesystem): Add declaration.
14964 * findcmd.c (_initialize_mem_search): Add declaration.
14965 * findvar.c (_initialize_findvar): Add declaration.
14966 * fork-child.c (_initialize_fork_child): Add declaration.
14967 * frame-base.c (_initialize_frame_base): Add declaration.
14968 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14969 * frame.c (_initialize_frame): Add declaration.
14970 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14971 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14972 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14973 * gcore.c (_initialize_gcore): Add declaration.
14974 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14975 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14976 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14977 * gdbarch.c (_initialize_gdbarch): Add declaration.
14978 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14979 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14980 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14981 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14982 * go-lang.c (_initialize_go_language): Add declaration.
14983 * go32-nat.c (_initialize_go32_nat): Add declaration.
14984 * guile/guile.c (_initialize_guile): Add declaration.
14985 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14986 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14987 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14988 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14989 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14990 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14991 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14992 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14993 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14994 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14995 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14996 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14997 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14998 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14999 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15000 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15001 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15002 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15003 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15004 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15005 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15006 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15007 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15008 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15009 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15010 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15011 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15012 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15013 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15014 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15015 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15016 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15017 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15018 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15019 * infcall.c (_initialize_infcall): Add declaration.
15020 * infcmd.c (_initialize_infcmd): Add declaration.
15021 * inflow.c (_initialize_inflow): Add declaration.
15022 * infrun.c (_initialize_infrun): Add declaration.
15023 * interps.c (_initialize_interpreter): Add declaration.
15024 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15025 * jit.c (_initialize_jit): Add declaration.
15026 * language.c (_initialize_language): Add declaration.
15027 * linux-fork.c (_initialize_linux_fork): Add declaration.
15028 * linux-nat.c (_initialize_linux_nat): Add declaration.
15029 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15030 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15031 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15032 * m2-lang.c (_initialize_m2_language): Add declaration.
15033 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15034 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15035 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15036 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15037 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15038 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15039 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15040 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15041 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15042 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15043 * machoread.c (_initialize_machoread): Add declaration.
15044 * macrocmd.c (_initialize_macrocmd): Add declaration.
15045 * macroscope.c (_initialize_macroscope): Add declaration.
15046 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15047 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15048 * maint.c (_initialize_maint_cmds): Add declaration.
15049 * mdebugread.c (_initialize_mdebugread): Add declaration.
15050 * memattr.c (_initialize_mem): Add declaration.
15051 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15052 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15053 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15054 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15055 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15056 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15057 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15058 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15059 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15060 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15061 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15062 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15063 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15064 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15065 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15066 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15067 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15068 * mipsread.c (_initialize_mipsread): Add declaration.
15069 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15070 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15071 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15072 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15073 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15074 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15075 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15076 * nto-procfs.c (_initialize_procfs): Add declaration.
15077 * objc-lang.c (_initialize_objc_language): Add declaration.
15078 * observable.c (_initialize_observer): Add declaration.
15079 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15080 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15081 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15082 * osabi.c (_initialize_gdb_osabi): Add declaration.
15083 * osdata.c (_initialize_osdata): Add declaration.
15084 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15085 * parse.c (_initialize_parse): Add declaration.
15086 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15087 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15088 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15089 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15090 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15091 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15092 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15093 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15094 * printcmd.c (_initialize_printcmd): Add declaration.
15095 * probe.c (_initialize_probe): Add declaration.
15096 * proc-api.c (_initialize_proc_api): Add declaration.
15097 * proc-events.c (_initialize_proc_events): Add declaration.
15098 * proc-service.c (_initialize_proc_service): Add declaration.
15099 * procfs.c (_initialize_procfs): Add declaration.
15100 * producer.c (_initialize_producer): Add declaration.
15101 * psymtab.c (_initialize_psymtab): Add declaration.
15102 * python/python.c (_initialize_python): Add declaration.
15103 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15104 * record-btrace.c (_initialize_record_btrace): Add declaration.
15105 * record-full.c (_initialize_record_full): Add declaration.
15106 * record.c (_initialize_record): Add declaration.
15107 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15108 * regcache.c (_initialize_regcache): Add declaration.
15109 * reggroups.c (_initialize_reggroup): Add declaration.
15110 * remote-notif.c (_initialize_notif): Add declaration.
15111 * remote-sim.c (_initialize_remote_sim): Add declaration.
15112 * remote.c (_initialize_remote): Add declaration.
15113 * reverse.c (_initialize_reverse): Add declaration.
15114 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15115 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15116 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15117 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15118 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15119 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15120 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15121 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15122 Add declaration.
15123 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15124 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15125 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15126 * rust-exp.y (_initialize_rust_exp): Add declaration.
15127 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15128 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15129 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15130 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15131 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15132 * score-tdep.c (_initialize_score_tdep): Add declaration.
15133 * ser-go32.c (_initialize_ser_dos): Add declaration.
15134 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15135 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15136 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15137 * ser-uds.c (_initialize_ser_socket): Add declaration.
15138 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15139 * serial.c (_initialize_serial): Add declaration.
15140 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15141 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15142 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15143 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15144 * skip.c (_initialize_step_skip): Add declaration.
15145 * sol-thread.c (_initialize_sol_thread): Add declaration.
15146 * solib-aix.c (_initialize_solib_aix): Add declaration.
15147 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15148 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15149 * solib-frv.c (_initialize_frv_solib): Add declaration.
15150 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15151 * solib-target.c (_initialize_solib_target): Add declaration.
15152 * solib.c (_initialize_solib): Add declaration.
15153 * source-cache.c (_initialize_source_cache): Add declaration.
15154 * source.c (_initialize_source): Add declaration.
15155 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15156 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15157 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15158 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15159 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15160 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15161 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15162 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15163 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15164 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15165 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15166 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15167 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15168 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15169 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15170 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15171 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15172 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15173 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15174 * stabsread.c (_initialize_stabsread): Add declaration.
15175 * stack.c (_initialize_stack): Add declaration.
15176 * stap-probe.c (_initialize_stap_probe): Add declaration.
15177 * std-regs.c (_initialize_frame_reg): Add declaration.
15178 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15179 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15180 * symfile.c (_initialize_symfile): Add declaration.
15181 * symmisc.c (_initialize_symmisc): Add declaration.
15182 * symtab.c (_initialize_symtab): Add declaration.
15183 * target.c (_initialize_target): Add declaration.
15184 * target-connection.c (_initialize_target_connection): Add
15185 declaration.
15186 * target-dcache.c (_initialize_target_dcache): Add declaration.
15187 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15188 * thread.c (_initialize_thread): Add declaration.
15189 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15190 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15191 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15192 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15193 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15194 * tracectf.c (_initialize_ctf): Add declaration.
15195 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15196 * tracefile.c (_initialize_tracefile): Add declaration.
15197 * tracepoint.c (_initialize_tracepoint): Add declaration.
15198 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15199 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15200 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15201 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15202 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15203 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15204 * tui/tui.c (_initialize_tui): Add declaration.
15205 * typeprint.c (_initialize_typeprint): Add declaration.
15206 * ui-style.c (_initialize_ui_style): Add declaration.
15207 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15208 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15209 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15210 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15211 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15212 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15213 * unittests/filtered_iterator-selftests.c
15214 (_initialize_filtered_iterator_selftests): Add declaration.
15215 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15216 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15217 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15218 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15219 * unittests/main-thread-selftests.c
15220 (_initialize_main_thread_selftests): Add declaration.
15221 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15222 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15223 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15224 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15225 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15226 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15227 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15228 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15229 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15230 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15231 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15232 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15233 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15234 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15235 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15236 declaration.
15237 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15238 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15239 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15240 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15241 * user-regs.c (_initialize_user_regs): Add declaration.
15242 * utils.c (_initialize_utils): Add declaration.
15243 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15244 * valops.c (_initialize_valops): Add declaration.
15245 * valprint.c (_initialize_valprint): Add declaration.
15246 * value.c (_initialize_values): Add declaration.
15247 * varobj.c (_initialize_varobj): Add declaration.
15248 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15249 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15250 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15251 * windows-nat.c (_initialize_windows_nat): Add declaration.
15252 (_initialize_check_for_gdb_ini): Add declaration.
15253 (_initialize_loadable): Add declaration.
15254 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15255 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15256 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15257 * xcoffread.c (_initialize_xcoffread): Add declaration.
15258 * xml-support.c (_initialize_xml_support): Add declaration.
15259 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15260 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15261 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15262 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15263
e2de1eec
SM
152642020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15265
15266 * regformats/regdat.sh: Generate declaration for init function.
15267
e0037b4c
SM
152682020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15269
15270 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15271 up.
15272 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15273 close_one_inferior>: New methods.
15274 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15275 pass down target to find_inferior_pid.
15276 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15277 Pass down target to find_inferior_ptid.
15278 (gdbsim_target::create_inferior): Pass down target to
15279 add_thread_silent.
15280 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15281 target down to find_inferior_ptid and switch_to_thread.
15282 (gdbsim_target::close): Update to call close_one_inferior.
15283 (struct resume_data): Remove.
15284 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15285 directly, rather than through a void pointer.
15286 (gdbsim_target::resume): Update to call resume_one_inferior.
15287
58920b5b
SM
152882020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15289
15290 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15291
4ec89149
PA
152922020-01-12 Pedro Alves <palves@redhat.com>
15293
15294 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15295 directly for the current inferior instead of
15296 discard_all_inferiors.
15297 (discard_all_inferiors): Delete.
15298
7c392d1d
TT
152992020-01-11 Tom Tromey <tom@tromey.com>
15300
15301 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15302 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15303 deprecated_safe_get_selected_frame.
15304
d9ebdab7
TBA
153052020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15306
15307 * inferior.c (print_inferior): Switch inferior before printing it.
15308
f3c469b9
PA
153092020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15310 Pedro Alves <palves@redhat.com>
15311
15312 * progspace-and-thread.c (switch_to_program_space_and_thread):
15313 Assert there's an inferior for PSPACE. Use
15314 switch_to_inferior_no_thread to switch the inferior too.
15315 * progspace.c (program_space::~program_space): Call
15316 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15317 (program_space::free_all_objfiles): Don't call clear_symtab_users
15318 here.
15319 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15320
65c574f6
PA
153212020-01-10 Pedro Alves <palves@redhat.com>
15322
15323 * NEWS: Mention multi-target debugging, "info connections", and
15324 "add-inferior -no-connection".
15325
2f4fcf00
PA
153262020-01-10 Pedro Alves <palves@redhat.com>
15327
15328 * infrun.c: Include "target-connection.h".
15329 (check_multi_target_resumption): New.
15330 (proceed): Call it.
15331 * target-connection.c (make_target_connection_string): Make
15332 extern.
15333 * target-connection.h (make_target_connection_string): Declare.
15334
121b3efd
PA
153352020-01-10 Pedro Alves <palves@redhat.com>
15336
15337 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15338 * inferior.c (uiout_field_connection): New function.
15339 (print_inferior): Add new "connection-id" column.
15340 (add_inferior_command): Show connection number/string of added
15341 inferior.
15342 * process-stratum-target.h
15343 (process_stratum_target::connection_string): New virtual method.
15344 (process_stratum_target::connection_number): New field.
15345 * remote.c (remote_target::connection_string): New override.
15346 * target-connection.c: New file.
15347 * target-connection.h: New file.
15348 * target.c (decref_target): Remove process_stratum targets from
15349 the connection list.
15350 (target_stack::push): Add process_stratum targets to the
15351 connection list.
15352
4f837581
PA
153532020-01-10 Pedro Alves <palves@redhat.com>
15354
15355 Revert:
15356 2016-04-12 Pedro Alves <palves@redhat.com>
15357 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15358 Remove references to name.
15359 * serial.h (struct serial) <name>: Delete.
15360
f4ec508e
PA
153612020-01-10 Pedro Alves <palves@redhat.com>
15362
15363 * gdbarch-selftests.c (register_to_value_test): Remove "target
15364 already pushed" check.
15365
5b6d1e4f
PA
153662020-01-10 Pedro Alves <palves@redhat.com>
15367 John Baldwin <jhb@FreeBSD.org>
15368
15369 * aarch64-linux-nat.c
15370 (aarch64_linux_nat_target::thread_architecture): Adjust.
15371 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15372 (task_command_1): Likewise.
15373 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15374 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15375 (aix_thread_target::store_registers)
15376 (aix_thread_target::thread_alive): Adjust.
15377 * amd64-fbsd-tdep.c: Include "inferior.h".
15378 (amd64fbsd_get_thread_local_address): Pass down target.
15379 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15380 thread's gdbarch instead of target_gdbarch.
15381 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15382 get_last_target_status.
15383 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15384 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15385 inferiors.
15386 (update_inserted_breakpoint_locations): Skip if inferiors with no
15387 execution.
15388 (update_global_location_list): When handling moribund locations,
15389 find representative inferior for location's pspace, and use thread
15390 count of its process_stratum target.
15391 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15392 * bsd-uthread.c (bsd_uthread_target::wait): Use
15393 as_process_stratum_target and adjust thread_change_ptid and
15394 add_thread calls.
15395 (bsd_uthread_target::update_thread_list): Use
15396 as_process_stratum_target and adjust find_thread_ptid,
15397 thread_change_ptid and add_thread calls.
15398 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15399 find_thread_ptid call.
15400 * corelow.c (add_to_thread_list): Adjust add_thread call.
15401 (core_target_open): Adjust add_thread_silent and thread_count
15402 calls.
15403 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15404 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15405 * event-top.c (async_disconnect): Pop targets from all inferiors.
15406 * exec.c (add_target_sections): Push exec target on all inferiors
15407 sharing the program space.
15408 (remove_target_sections): Remove the exec target from all
15409 inferiors sharing the program space.
15410 (exec_on_vfork): New.
15411 * exec.h (exec_on_vfork): Declare.
15412 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15413 Pass it down.
15414 (fbsd_nat_target::update_thread_list): Adjust.
15415 (fbsd_nat_target::resume): Adjust.
15416 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15417 down.
15418 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15419 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15420 get_thread_arch_regcache call.
15421 * fork-child.c (gdb_startup_inferior): Pass target down to
15422 startup_inferior and set_executing.
15423 * gdbthread.h (struct process_stratum_target): Forward declare.
15424 (add_thread, add_thread_silent, add_thread_with_info)
15425 (in_thread_list): Add process_stratum_target parameter.
15426 (find_thread_ptid(inferior*, ptid_t)): New overload.
15427 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15428 parameter.
15429 (all_threads()): Delete overload.
15430 (all_threads, all_non_exited_threads): Add process_stratum_target
15431 parameter.
15432 (all_threads_safe): Use brace initialization.
15433 (thread_count): Add process_stratum_target parameter.
15434 (set_resumed, set_running, set_stop_requested, set_executing)
15435 (threads_are_executing, finish_thread_state): Add
15436 process_stratum_target parameter.
15437 (switch_to_thread): Use is_current_thread.
15438 * i386-fbsd-tdep.c: Include "inferior.h".
15439 (i386fbsd_get_thread_local_address): Pass down target.
15440 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15441 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15442 have_inferiors check.
15443 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15444 (inf_ptrace_target::attach): Adjust.
15445 * infcall.c (run_inferior_call): Adjust.
15446 * infcmd.c (run_command_1): Pass target to
15447 scoped_finish_thread_state.
15448 (proceed_thread_callback): Skip inferiors with no execution.
15449 (continue_command): Rename 'all_threads' local to avoid hiding
15450 'all_threads' function. Adjust get_last_target_status call.
15451 (prepare_one_step): Adjust set_running call.
15452 (signal_command): Use user_visible_resume_target. Compare thread
15453 pointers instead of inferior_ptid.
15454 (info_program_command): Adjust to pass down target.
15455 (attach_command): Mark target's 'thread_executing' flag.
15456 (stop_current_target_threads_ns): New, factored out from ...
15457 (interrupt_target_1): ... this. Switch inferior before making
15458 target calls.
15459 * inferior-iter.h
15460 (struct all_inferiors_iterator, struct all_inferiors_range)
15461 (struct all_inferiors_safe_range)
15462 (struct all_non_exited_inferiors_range): Filter on
15463 process_stratum_target too. Remove explicit.
15464 * inferior.c (inferior::inferior): Push dummy target on target
15465 stack.
15466 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15467 Add process_stratum_target parameter, and pass it down.
15468 (have_live_inferiors): Adjust.
15469 (switch_to_inferior_and_push_target): New.
15470 (add_inferior_command, clone_inferior_command): Handle
15471 "-no-connection" parameter. Use
15472 switch_to_inferior_and_push_target.
15473 (_initialize_inferior): Mention "-no-connection" option in
15474 the help of "add-inferior" and "clone-inferior" commands.
15475 * inferior.h: Include "process-stratum-target.h".
15476 (interrupt_target_1): Use bool.
15477 (struct inferior) <push_target, unpush_target, target_is_pushed,
15478 find_target_beneath, top_target, process_target, target_at,
15479 m_stack>: New.
15480 (discard_all_inferiors): Delete.
15481 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15482 (all_inferiors, all_non_exited_inferiors): Add
15483 process_stratum_target parameter.
15484 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15485 (target_last_proc_target): New global.
15486 (follow_fork_inferior): Push target on new inferior. Pass target
15487 to add_thread_silent. Call exec_on_vfork. Handle target's
15488 reference count.
15489 (follow_fork): Adjust get_last_target_status call. Also consider
15490 target.
15491 (follow_exec): Push target on new inferior.
15492 (struct execution_control_state) <target>: New field.
15493 (user_visible_resume_target): New.
15494 (do_target_resume): Call target_async.
15495 (resume_1): Set target's threads_executing flag. Consider resume
15496 target.
15497 (commit_resume_all_targets): New.
15498 (proceed): Also consider resume target. Skip threads of inferiors
15499 with no execution. Commit resumtion in all targets.
15500 (start_remote): Pass current inferior to wait_for_inferior.
15501 (infrun_thread_stop_requested): Consider target as well. Pass
15502 thread_info pointer to clear_inline_frame_state instead of ptid.
15503 (infrun_thread_thread_exit): Consider target as well.
15504 (random_pending_event_thread): New inferior parameter. Use it.
15505 (do_target_wait): Rename to ...
15506 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15507 down.
15508 (threads_are_resumed_pending_p, do_target_wait): New.
15509 (prepare_for_detach): Adjust calls.
15510 (wait_for_inferior): New inferior parameter. Handle it. Use
15511 do_target_wait_1 instead of do_target_wait.
15512 (fetch_inferior_event): Adjust. Switch to representative
15513 inferior. Pass target down.
15514 (set_last_target_status): Add process_stratum_target parameter.
15515 Save target in global.
15516 (get_last_target_status): Add process_stratum_target parameter and
15517 handle it.
15518 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15519 (context_switch): Check inferior_ptid == null_ptid before calling
15520 inferior_thread().
15521 (get_inferior_stop_soon): Pass down target.
15522 (wait_one): Rename to ...
15523 (poll_one_curr_target): ... this.
15524 (struct wait_one_event): New.
15525 (wait_one): New.
15526 (stop_all_threads): Adjust.
15527 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15528 event's target.
15529 (switch_back_to_stepped_thread): Also consider target.
15530 (print_stop_event): Update.
15531 (normal_stop): Update. Also consider the resume target.
15532 * infrun.h (wait_for_inferior): Remove declaration.
15533 (user_visible_resume_target): New declaration.
15534 (get_last_target_status, set_last_target_status): New
15535 process_stratum_target parameter.
15536 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15537 process_stratum_target parameter, and use it.
15538 (clear_inline_frame_state (thread_info*)): New.
15539 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15540 process_stratum_target parameter.
15541 (clear_inline_frame_state (thread_info*)): Declare.
15542 * linux-fork.c (delete_checkpoint_command): Pass target down to
15543 find_thread_ptid.
15544 (checkpoint_command): Adjust.
15545 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15546 instead of just tweaking inferior_ptid.
15547 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15548 (exit_lwp): Pass target down to find_thread_ptid.
15549 (attach_proc_task_lwp_callback): Pass target down to
15550 add_thread/set_running/set_executing.
15551 (linux_nat_target::attach): Pass target down to
15552 thread_change_ptid.
15553 (get_detach_signal): Pass target down to find_thread_ptid.
15554 Consider last target status's target.
15555 (linux_resume_one_lwp_throw, resume_lwp)
15556 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15557 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15558 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15559 (linux_nat_target::async_wait_fd): New.
15560 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15561 target down.
15562 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15563 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15564 * linux-thread-db.c (struct thread_db_info::process_target): New
15565 field.
15566 (add_thread_db_info): Save target.
15567 (get_thread_db_info): New process_stratum_target parameter. Also
15568 match target.
15569 (delete_thread_db_info): New process_stratum_target parameter.
15570 Also match target.
15571 (thread_from_lwp): Adjust to pass down target.
15572 (thread_db_notice_clone): Pass down target.
15573 (check_thread_db_callback): Pass down target.
15574 (try_thread_db_load_1): Always push the thread_db target.
15575 (try_thread_db_load, record_thread): Pass target down.
15576 (thread_db_target::detach): Pass target down. Always unpush the
15577 thread_db target.
15578 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15579 target down. Always unpush the thread_db target.
15580 (find_new_threads_callback, thread_db_find_new_threads_2)
15581 (thread_db_target::update_thread_list): Pass target down.
15582 (thread_db_target::pid_to_str): Pass current inferior down.
15583 (thread_db_target::get_thread_local_address): Pass target down.
15584 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15585 target down.
15586 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15587 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15588 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15589 (procfs_init_inferior): Rename to ...
15590 (procfs_target::procfs_init_inferior): ... this and adjust.
15591 (procfs_target::create_inferior, procfs_notice_thread)
15592 (procfs_do_thread_registers): Adjust.
15593 * ppc-fbsd-tdep.c: Include "inferior.h".
15594 (ppcfbsd_get_thread_local_address): Pass down target.
15595 * proc-service.c (ps_xfer_memory): Switch current inferior and
15596 program space as well.
15597 (get_ps_regcache): Pass target down.
15598 * process-stratum-target.c
15599 (process_stratum_target::thread_address_space)
15600 (process_stratum_target::thread_architecture): Pass target down.
15601 * process-stratum-target.h
15602 (process_stratum_target::threads_executing): New field.
15603 (as_process_stratum_target): New.
15604 * ravenscar-thread.c
15605 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15606 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15607 down.
15608 * record-btrace.c (record_btrace_target::info_record): Adjust.
15609 (record_btrace_target::record_method)
15610 (record_btrace_target::record_is_replaying)
15611 (record_btrace_target::fetch_registers)
15612 (get_thread_current_frame_id, record_btrace_target::resume)
15613 (record_btrace_target::wait, record_btrace_target::stop): Pass
15614 target down.
15615 * record-full.c (record_full_wait_1): Switch to event thread.
15616 Pass target down.
15617 * regcache.c (regcache::regcache)
15618 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15619 process_stratum_target parameter and handle it.
15620 (current_thread_target): New global.
15621 (get_thread_regcache): Add process_stratum_target parameter and
15622 handle it. Switch inferior before calling target method.
15623 (get_thread_regcache): Pass target down.
15624 (get_thread_regcache_for_ptid): Pass target down.
15625 (registers_changed_ptid): Add process_stratum_target parameter and
15626 handle it.
15627 (registers_changed_thread, registers_changed): Pass target down.
15628 (test_get_thread_arch_aspace_regcache): New.
15629 (current_regcache_test): Define a couple local test_target_ops
15630 instances and use them for testing.
15631 (readwrite_regcache): Pass process_stratum_target parameter.
15632 (cooked_read_test, cooked_write_test): Pass mock_target down.
15633 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15634 (get_thread_arch_aspace_regcache): Add process_stratum_target
15635 parameter.
15636 (regcache::target): New method.
15637 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15638 (regcache::registers_changed_ptid): Add process_stratum_target
15639 parameter.
15640 (regcache::m_target): New field.
15641 (registers_changed_ptid): Add process_stratum_target parameter.
15642 * remote.c (remote_state::supports_vCont_probed): New field.
15643 (remote_target::async_wait_fd): New method.
15644 (remote_unpush_and_throw): Add remote_target parameter.
15645 (get_current_remote_target): Adjust.
15646 (remote_target::remote_add_inferior): Push target.
15647 (remote_target::remote_add_thread)
15648 (remote_target::remote_notice_new_inferior)
15649 (get_remote_thread_info): Pass target down.
15650 (remote_target::update_thread_list): Skip threads of inferiors
15651 bound to other targets. (remote_target::close): Don't discard
15652 inferiors. (remote_target::add_current_inferior_and_thread)
15653 (remote_target::process_initial_stop_replies)
15654 (remote_target::start_remote)
15655 (remote_target::remote_serial_quit_handler): Pass down target.
15656 (remote_target::remote_unpush_target): New remote_target
15657 parameter. Unpush the target from all inferiors.
15658 (remote_target::remote_unpush_and_throw): New remote_target
15659 parameter. Pass it down.
15660 (remote_target::open_1): Check whether the current inferior has
15661 execution instead of checking whether any inferior is live. Pass
15662 target down.
15663 (remote_target::remote_detach_1): Pass down target. Use
15664 remote_unpush_target.
15665 (extended_remote_target::attach): Pass down target.
15666 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15667 (remote_target::append_resumption): Pass down target.
15668 (remote_target::append_pending_thread_resumptions)
15669 (remote_target::remote_resume_with_hc, remote_target::resume)
15670 (remote_target::commit_resume): Pass down target.
15671 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15672 (remote_target::interrupt_query)
15673 (remote_target::remove_new_fork_children)
15674 (remote_target::check_pending_events_prevent_wildcard_vcont)
15675 (remote_target::remote_parse_stop_reply)
15676 (remote_target::process_stop_reply): Pass down target.
15677 (first_remote_resumed_thread): New remote_target parameter. Pass
15678 it down.
15679 (remote_target::wait_as): Pass down target.
15680 (unpush_and_perror): New remote_target parameter. Pass it down.
15681 (remote_target::readchar, remote_target::remote_serial_write)
15682 (remote_target::getpkt_or_notif_sane_1)
15683 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15684 down target.
15685 (remote_target::mourn_inferior): Pass down target. Use
15686 remote_unpush_target.
15687 (remote_target::core_of_thread)
15688 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15689 (remote_target::pid_to_exec_file)
15690 (remote_target::thread_handle_to_thread_info): Pass down target.
15691 (remote_target::async_wait_fd): New.
15692 * riscv-fbsd-tdep.c: Include "inferior.h".
15693 (riscv_fbsd_get_thread_local_address): Pass down target.
15694 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15695 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15696 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15697 Adjust.
15698 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15699 * solib-svr4.c (enable_break): Pass down target.
15700 * spu-multiarch.c (parse_spufs_run): Pass down target.
15701 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15702 * target-delegates.c: Regenerate.
15703 * target.c (g_target_stack): Delete.
15704 (current_top_target): Return the current inferior's top target.
15705 (target_has_execution_1): Refer to the passed-in inferior's top
15706 target.
15707 (target_supports_terminal_ours): Check whether the initial
15708 inferior was already created.
15709 (decref_target): New.
15710 (target_stack::push): Incref/decref the target.
15711 (push_target, push_target, unpush_target): Adjust.
15712 (target_stack::unpush): Defref target.
15713 (target_is_pushed): Return bool. Adjust to refer to the current
15714 inferior's target stack.
15715 (dispose_inferior): Delete, and inline parts ...
15716 (target_preopen): ... here. Only dispose of the current inferior.
15717 (target_detach): Hold strong target reference while detaching.
15718 Pass target down.
15719 (target_thread_name): Add assertion.
15720 (target_resume): Pass down target.
15721 (target_ops::beneath, find_target_at): Adjust to refer to the
15722 current inferior's target stack.
15723 (get_dummy_target): New.
15724 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15725 has a thread running.
15726 (initialize_targets): Rename to ...
15727 (_initialize_target): ... this.
15728 * target.h: Include "gdbsupport/refcounted-object.h".
15729 (struct target_ops): Inherit refcounted_object.
15730 (target_ops::shortname, target_ops::longname): Make const.
15731 (target_ops::async_wait_fd): New method.
15732 (decref_target): Declare.
15733 (struct target_ops_ref_policy): New.
15734 (target_ops_ref): New typedef.
15735 (get_dummy_target): Declare function.
15736 (target_is_pushed): Return bool.
15737 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15738 (all_matching_threads_iterator::all_matching_threads_iterator):
15739 Handle filter target.
15740 * thread-iter.h (struct all_matching_threads_iterator, struct
15741 all_matching_threads_range, class all_non_exited_threads_range):
15742 Filter by target too. Remove explicit.
15743 * thread.c (threads_executing): Delete.
15744 (inferior_thread): Pass down current inferior.
15745 (clear_thread_inferior_resources): Pass down thread pointer
15746 instead of ptid_t.
15747 (add_thread_silent, add_thread_with_info, add_thread): Add
15748 process_stratum_target parameter. Use it for thread and inferior
15749 searches.
15750 (is_current_thread): New.
15751 (thread_info::deletable): Use it.
15752 (find_thread_ptid, thread_count, in_thread_list)
15753 (thread_change_ptid, set_resumed, set_running): New
15754 process_stratum_target parameter. Pass it down.
15755 (set_executing): New process_stratum_target parameter. Pass it
15756 down. Adjust reference to 'threads_executing'.
15757 (threads_are_executing): New process_stratum_target parameter.
15758 Adjust reference to 'threads_executing'.
15759 (set_stop_requested, finish_thread_state): New
15760 process_stratum_target parameter. Pass it down.
15761 (switch_to_thread): Also match inferior.
15762 (switch_to_thread): New process_stratum_target parameter. Pass it
15763 down.
15764 (update_threads_executing): Reimplement.
15765 * top.c (quit_force): Pop targets from all inferior.
15766 (gdb_init): Don't call initialize_targets.
15767 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15768 Declare.
15769 (windows_add_thread, windows_delete_thread): Adjust.
15770 (get_windows_debug_event): Rename to ...
15771 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15772 * tracefile-tfile.c (tfile_target_open): Pass down target.
15773 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15774 Forward declare.
15775 (switch_to_thread): Add process_stratum_target parameter.
15776 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15777 parameter. Use it.
15778 (mi_on_resume): Pass target down.
15779 * nat/fork-inferior.c (startup_inferior): Add
15780 process_stratum_target parameter. Pass it down.
15781 * nat/fork-inferior.h (startup_inferior): Add
15782 process_stratum_target parameter.
15783 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15784
75c6c844
PA
157852020-01-10 Pedro Alves <palves@redhat.com>
15786
15787 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15788 directly. Instead find the first thread in the thread list and
15789 use switch_to_thread.
15790
78f2c40a
PA
157912020-01-10 Pedro Alves <palves@redhat.com>
15792
15793 * remote.c (remote_target::remote_add_inferior): Don't bind a
15794 process to the current inferior if the current inferior is already
15795 bound to a process.
15796
e7af6c70
TBA
157972020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15798 Pedro Alves <palves@redhat.com>
15799
15800 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15801 If no process is specified, return null_ptid instead of
15802 inferior_ptid.
15803 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15804 TARGET_WAITKIND_SIGNALLED with no pid.
15805
31ba933e
PA
158062020-01-10 Pedro Alves <palves@redhat.com>
15807
15808 * remote.c (first_remote_resumed_thread): New.
15809 (remote_target::wait_as): Use it as default event_ptid instead of
15810 inferior_ptid.
15811
735fc2ca
PA
158122020-01-10 Pedro Alves <palves@redhat.com>
15813
15814 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15815
c17e02e1
PA
158162020-01-10 Pedro Alves <palves@redhat.com>
15817
15818 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15819 not -1.
15820
ab1ddbcf
PA
158212020-01-10 Pedro Alves <palves@redhat.com>
15822
15823 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15824 ptid to get_last_target_status.
15825 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15826 ptid to get_last_target_status.
15827 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15828 get_last_target_status.
15829 (info_program_command): Don't pass a target_waitstatus to
15830 get_last_target_status.
15831 * infrun.c (init_wait_for_inferior): Use
15832 nullify_last_target_wait_ptid.
15833 (get_last_target_status): Handle nullptr arguments.
15834 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15835 (print_stop_event): Don't pass a ptid to get_last_target_status.
15836 (normal_stop): Don't pass a ptid to get_last_target_status.
15837 * infrun.h (get_last_target_status, set_last_target_status): Move
15838 comments here and update.
15839 (nullify_last_target_wait_ptid): Declare.
15840 * linux-fork.c (fork_load_infrun_state): Remove local extern
15841 declaration of nullify_last_target_wait_ptid.
15842 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15843 to get_last_target_status.
15844
f3f8ece4
PA
158452020-01-10 Pedro Alves <palves@redhat.com>
15846
15847 * gdbthread.h (scoped_restore_current_thread)
15848 <dont_restore, restore, m_dont_restore>: Declare.
15849 * thread.c (thread_alive): Add assertion. Return bool.
15850 (switch_to_thread_if_alive): New.
15851 (prune_threads): Switch inferior/thread.
15852 (print_thread_info_1): Switch thread before calling target methods.
15853 (scoped_restore_current_thread::restore): New, factored out from
15854 ...
15855 (scoped_restore_current_thread::~scoped_restore_current_thread):
15856 ... this.
15857 (scoped_restore_current_thread::scoped_restore_current_thread):
15858 Add assertion.
15859 (thread_apply_all_command, thread_select): Use
15860 switch_to_thread_if_alive.
15861 * infrun.c (proceed, restart_threads, handle_signal_stop)
15862 (switch_back_to_stepped_thread): Switch current thread before
15863 calling target methods.
15864
db2d40f7
PA
158652020-01-10 Pedro Alves <palves@redhat.com>
15866
15867 * inferior.c (switch_to_inferior_no_thread): New function,
15868 factored out from ...
15869 (inferior_command): ... here.
15870 * inferior.h (switch_to_inferior_no_thread): Declare.
15871 * mi/mi-main.c (run_one_inferior): Use
15872 switch_to_inferior_no_thread.
15873
bd420a2d
PA
158742020-01-10 Pedro Alves <palves@redhat.com>
15875
15876 * infcmd.c (kill_command): Remove dead code.
15877
ddf5db90
PA
158782020-01-10 Pedro Alves <palves@redhat.com>
15879
15880 * remote.c (remote_target::mourn_inferior): No longer check
15881 whether the target is running.
15882
5018ce90
PA
158832020-01-10 Pedro Alves <palves@redhat.com>
15884
15885 * corelow.c (core_target::has_execution): Change parameter type to
15886 inferior pointer.
15887 * inferior.c (number_of_live_inferiors): Use
15888 inferior::has_execution instead of target_has_execution_1.
15889 * inferior.h (inferior::has_execution): New.
15890 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15891 inferior::has_execution instead of target_has_execution_1.
15892 * process-stratum-target.c
15893 (process_stratum_target::has_execution): Change parameter type to
15894 inferior pointer. Check the inferior's PID instead of
15895 inferior_ptid.
15896 * process-stratum-target.h
15897 (process_stratum_target::has_execution): Change parameter type to
15898 inferior pointer.
15899 * record-full.c (record_full_core_target::has_execution): Change
15900 parameter type to inferior pointer.
15901 * target.c (target_has_execution_1): Change parameter type to
15902 inferior pointer.
15903 (target_has_execution_current): Adjust.
15904 * target.h (target_ops::has_execution): Change parameter type to
15905 inferior pointer.
15906 (target_has_execution_1): Change parameter type to inferior
15907 pointer. Change return type to bool.
15908 * tracefile.h (tracefile_target::has_execution): Change parameter
15909 type to inferior pointer.
15910
74375d18
PA
159112020-01-10 Pedro Alves <palves@redhat.com>
15912
15913 * exceptions.c (print_flush): Remove current_top_target() check.
15914
acdf84a6
PA
159152020-01-10 Pedro Alves <palves@redhat.com>
15916
15917 * remote.c (show_remote_exec_file): Show the current inferior's
15918 exec-file instead of the command variable's value.
15919
ec506636
PA
159202020-01-10 Pedro Alves <palves@redhat.com>
15921
15922 * record-full.c (record_full_resume_ptid): New global.
15923 (record_full_target::resume): Set it.
15924 (record_full_wait_1): Use record_full_resume_ptid instead of
15925 inferior_ptid.
15926
873657b9
PA
159272020-01-10 Pedro Alves <palves@redhat.com>
15928
15929 * gdbthread.h (scoped_restore_current_thread)
15930 <dont_restore, restore, m_dont_restore>: Declare.
15931 * thread.c (thread_alive): Add assertion. Return bool.
15932 (switch_to_thread_if_alive): New.
15933 (prune_threads): Switch inferior/thread.
15934 (print_thread_info_1): Switch thread before calling target methods.
15935 (scoped_restore_current_thread::restore): New, factored out from
15936 ...
15937 (scoped_restore_current_thread::~scoped_restore_current_thread):
15938 ... this.
15939 (scoped_restore_current_thread::scoped_restore_current_thread):
15940 Add assertion.
15941 (thread_apply_all_command, thread_select): Use
15942 switch_to_thread_if_alive.
15943
7f0ae84c
GB
159442020-01-10 George Barrett <bob@bob131.so>
15945
15946 * stap-probe.c (stap_modify_semaphore): Don't check for null
15947 semaphores.
15948 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15949 for null semaphores.
15950
f5a7c406
AB
159512020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15952
15953 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15954 all source windows, and maintain horizontal scroll status while
15955 doing so.
15956
9ae6bf64
TT
159572020-01-09 Tom Tromey <tom@tromey.com>
15958
15959 PR tui/18932:
15960 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15961 update_source_window, not print_source_lines.
15962
b2efe70c
AB
159632020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15964
15965 * tui/tui.c (tui_enable): Register tui hooks after calling
15966 tui_display_main.
15967
5f23a082
CB
159682020-01-09 Christian Biesinger <cbiesinger@google.com>
15969
15970 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15971
3061113b
SM
159722020-01-08 Simon Marchi <simon.marchi@efficios.com>
15973
15974 * thread.c (print_thread_info_1): Fix indentation.
15975
57d75002
CB
159762020-01-09 Christian Biesinger <cbiesinger@google.com>
15977
15978 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15979 unique_xmalloc_ptr outside the if to always free the demangled name.
15980
6a053cb1
TT
159812020-01-08 Tom Tromey <tromey@adacore.com>
15982
15983 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15984 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15985 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15986 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15987 Remove.
15988 (section_offsets): New typedef.
15989 * symtab.c (fixup_section, get_msymbol_address): Update.
15990 * symmisc.c (dump_msymbols): Update.
15991 * symfile.h (relative_addr_info_to_section_offsets)
15992 (symfile_map_offsets_to_segments): Update.
15993 * symfile.c (build_section_addr_info_from_objfile)
15994 (init_objfile_sect_indices): Update.
15995 (struct place_section_arg): Change type of "offsets".
15996 (place_section): Update.
15997 (relative_addr_info_to_section_offsets): Change type of
15998 "section_offsets". Remove "num_sections" parameter.
15999 (default_symfile_offsets, syms_from_objfile_1)
16000 (set_objfile_default_section_offset): Update.
16001 (reread_symbols): No need to preserve section offsets by hand.
16002 (symfile_map_offsets_to_segments): Change type of "offsets".
16003 * stap-probe.c (relocate_address): Update.
16004 * stabsread.h (process_one_symbol): Update.
16005 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16006 (solib_target_relocate_section_addresses): Update.
16007 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16008 Update.
16009 * solib-frv.c (frv_relocate_main_executable): Update.
16010 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16011 * solib-aix.c (solib_aix_get_section_offsets): Change return
16012 type.
16013 (solib_aix_solib_create_inferior_hook): Update.
16014 * remote.c (remote_target::get_offsets): Update.
16015 * psymtab.c (find_pc_sect_psymtab): Update.
16016 * psympriv.h (struct partial_symbol) <address, text_low,
16017 text_high>: Update.
16018 * objfiles.h (obj_section_offset): Update.
16019 (struct objfile) <section_offsets>: Change type.
16020 <num_sections>: Remove.
16021 (objfile_relocate): Update.
16022 * objfiles.c (entry_point_address_query): Update
16023 (relocate_one_symbol): Change type of "section_offsets".
16024 (objfile_relocate1, objfile_relocate1): Change type of
16025 "new_offsets".
16026 (objfile_rebase1): Update.
16027 * mipsread.c (mipscoff_symfile_read): Update.
16028 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16029 parameter.
16030 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16031 (parse_external, psymtab_to_symtab_1): Update.
16032 * machoread.c (macho_symfile_offsets): Update.
16033 * ia64-tdep.c (ia64_find_unwind_table): Update.
16034 * hppa-tdep.c (read_unwind_info): Update.
16035 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16036 * dwarf2read.c (create_addrmap_from_index)
16037 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16038 (process_psymtab_comp_unit_reader, add_partial_symbol)
16039 (add_partial_subprogram, process_full_comp_unit)
16040 (read_file_scope, read_func_scope, read_lexical_block_scope)
16041 (read_call_site_scope, dwarf2_rnglists_process)
16042 (dwarf2_ranges_process, dwarf2_ranges_read)
16043 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16044 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16045 Update.
16046 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16047 Update.
16048 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16049 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16050 (process_one_symbol): Change type of "section_offsets".
16051 * ctfread.c (get_objfile_text_range): Update.
16052 * coffread.c (coff_symtab_read, enter_linenos)
16053 (process_coff_symbol): Update.
16054 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16055 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16056
456e800a
TT
160572020-01-08 Tom Tromey <tromey@adacore.com>
16058
16059 * dwarf2read.c (parse_macro_definition): Use std::string.
16060 (parse_macro_definition): Likewise.
16061
6dfa2fc2
TT
160622020-01-08 Tom Tromey <tromey@adacore.com>
16063
16064 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16065 (ATTR_ALLOC_CHUNK): Remove.
16066
421d1616
TT
160672020-01-08 Tom Tromey <tromey@adacore.com>
16068
16069 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16070
43816ebc
TT
160712020-01-08 Tom Tromey <tromey@adacore.com>
16072
16073 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16074 (dwarf2_compute_name, open_dwo_file): Likewise.
16075 (process_enumeration_scope): Use std::vector.
16076 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16077 (partial_die_info::fixup, dwarf2_start_subfile)
16078 (guess_full_die_structure_name, dwarf2_name): Likewise.
16079 (determine_prefix): Update.
16080 (guess_full_die_structure_name): Make return type const.
16081 (partial_die_full_name): Return unique_xmalloc_ptr.
16082 (DW_FIELD_ALLOC_CHUNK): Remove.
16083
4212d509
TT
160842020-01-07 Tom Tromey <tromey@adacore.com>
16085
16086 PR build/24937:
16087 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16088
06a6207a
JT
160892020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16090
16091 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16092
153d79c4
AB
160932020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16094
16095 * stack.c (print_frame_info): Move disassemble_next_line code
16096 inside source_print block.
16097
66182876
EZ
160982020-01-06 Eli Zaretskii <eliz@gnu.org>
16099
16100 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16101 gdb/signals.h, as we are now using native signal symbols.
16102
cbfa8581
SV
161032020-01-06 Shahab Vahedi <shahab@synopsys.com>
16104
16105 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16106 overflow by an early check of content vs threshold.
aac66a4c 16107 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16108 Likewise.
16109
3f602821
EZ
161102020-01-06 Eli Zaretskii <eliz@gnu.org>
16111
16112 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16113
a08c904d
JT
161142020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16115
16116 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16117 export table if no section contains it's RVA.
16118
89a65580
EZ
161192020-01-06 Eli Zaretskii <eliz@gnu.org>
16120
16121 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16122
8b7fcda2
HD
161232020-01-06 Hannes Domani <ssbssa@yahoo.de>
16124
16125 * source.c (print_source_lines_base): Set last_line_listed.
16126
a61b4f69
SV
161272020-01-06 Shahab Vahedi <shahab@synopsys.com>
16128
16129 * tui/tui-disasm.c: Remove trailing spaces.
16130
559e7e50
EZ
161312020-01-06 Eli Zaretskii <eliz@gnu.org>
16132 Pedro Alves <palves@redhat.com>
16133
16134 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16135 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16136 (windows_gdb_signal_to_target): New function, uses the above
16137 enumeration to convert GDB internal signal codes to equivalent
16138 Windows codes.
16139 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16140 * windows-nat.c: Include "gdb_wait.h".
16141 (get_windows_debug_event): Extract the fatal exception from the
16142 exit status and convert to the equivalent Posix signal number.
16143 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16144 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16145 * gdbsupport/gdb_wait.c: New file, implements
16146 windows_status_to_termsig.
16147 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16148 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16149
f2302a34
AB
161502020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16151
16152 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16153 show_layout.
16154
6a5206eb
LM
161552020-01-05 Luis Machado <luis.machado@linaro.org>
16156
16157 * aarch64-linux-nat.c
16158 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16159 and bfd_mach_aarch64.
16160
6ec1d75e
PW
161612020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16162
16163 * ui-file.c (stdio_file::can_emit_style_escape)
16164 (tee_file::can_emit_style_escape): Ensure style is used also on
16165 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16166 to gdb_stdout.
16167 * main.c (set_gdb_data_directory): Use file style to output the
16168 warning that the given pathname is not a directory.
16169 * top.c (show_history_filename, gdb_safe_append_history)
16170 (show_gdb_datadir): Use file style.
16171
44f81a76
HD
161722020-01-03 Hannes Domani <ssbssa@yahoo.de>
16173
16174 * solib-target.c (struct lm_info_target):
16175 Change offsets to be a unique_xmalloc_ptr.
16176 (solib_target_relocate_section_addresses): Update.
16177
25057eb0
HD
161782020-01-03 Hannes Domani <ssbssa@yahoo.de>
16179
16180 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16181
6e2118f5
BE
161822020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16183
16184 * MAINTAINERS (Write After Approval): Add myself.
16185
8133c7dc
LM
161862020-01-02 Luis Machado <luis.machado@linaro.org>
16187
16188 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16189 Cell BE architecture.
16190 * target.h (struct target_ops) <thread_architecture>: Likewise.
16191
48189bec
HD
161922020-01-01 Hannes Domani <ssbssa@yahoo.de>
16193
16194 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16195
ead1063b
HD
161962020-01-01 Hannes Domani <ssbssa@yahoo.de>
16197
16198 * MAINTAINERS (Write After Approval): Add myself.
16199
e5d78223
JB
162002020-01-01 Joel Brobecker <brobecker@adacore.com>
16201
16202 * gdbarch.sh: Update copyright year range of generated files.
16203
b811d2c2
JB
162042020-01-01 Joel Brobecker <brobecker@adacore.com>
16205
16206 Update copyright year range in all GDB files.
16207
5f4def5c
JB
162082020-01-01 Joel Brobecker <brobecker@adacore.com>
16209
16210 * copyright.py: Convert to Python 3.
16211
51fd4002
JB
162122020-01-01 Joel Brobecker <brobecker@adacore.com>
16213
16214 * copyright.py: Adapt after move of gnulib directory from gdb
16215 directory to toplevel directory.
16216
5fb651f2
JB
162172020-01-01 Joel Brobecker <brobecker@adacore.com>
16218
16219 * copyright.py (main): Exit if run from the wrong directory.
16220
5dd8bf88
JB
162212020-01-01 Joel Brobecker <brobecker@adacore.com>
16222
16223 * top.c (print_gdb_version): Change copyright year to 2020.
16224
9f71dacb 162252020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16226
9f71dacb 16227 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16228
9f71dacb 16229For older changes see ChangeLog-2019.
c906108c
SS
16230\f
16231Local Variables:
16232mode: change-log
16233left-margin: 8
16234fill-column: 74
16235version-control: never
57da7796 16236coding: utf-8
c906108c 16237End:
This page took 3.252917 seconds and 4 git commands to generate.