Fix gdb.base/print-file-var.exp with Clang
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e1f57067
AB
12020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2 Craig Blackmore <craig.blackmore@embecosm.com>
3
4 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
5 as an unsigned value.
6
ae7754b2
TT
72020-11-01 Tom Tromey <tom@tromey.com>
8
9 * dbxread.c (dbx_end_psymtab): Update.
10 * dwarf2/read.c (process_psymtab_comp_unit_reader)
11 (build_type_psymtabs_reader): Update.
12 * xcoffread.c (xcoff_end_psymtab): Update.
13 * ctfread.c (scan_partial_symbols): Update.
14 * psymtab.c (sort_pst_symbols): Remove.
15 (partial_symtab::end): Rename from end_psymtab_common. Inline
16 sort_pst_symbols.
17 * psympriv.h (struct partial_symtab) <end>: New method.
18 (end_psymtab_common): Don't declare.
19
0684bb51
TT
202020-11-01 Tom Tromey <tom@tromey.com>
21
22 * symmisc.c (count_psyms): New function.
23 (print_objfile_statistics): Use it.
24 * psymtab.c (append_psymbol_to_list): Remove.
25 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
26 * objfiles.h (struct objstats) <n_psyms>: Remove.
27
089002bb
TT
282020-11-01 Tom Tromey <tom@tromey.com>
29
30 * dbxread.c (dbx_end_psymtab): Update.
31 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
32 (build_type_psymtabs_reader): Update.
33 * xcoffread.c (xcoff_end_psymtab): Update.
34 * ctfread.c (scan_partial_symbols): Update.
35 * psympriv.h (end_psymtab_common): Update.
36 * psymtab.c (end_psymtab_common): Remove objfile parameter.
37 (sort_pst_symbols): Likewise.
38
525454d6
TT
392020-11-01 Tom Tromey <tom@tromey.com>
40
41 * dbxread.c (dbx_symfile_read): Update.
42 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
43 * xcoffread.c (xcoff_initial_scan): Update.
44 * psympriv.h (init_psymbol_list): Don't declare.
45 * psymtab.c (init_psymbol_list): Remove.
46
60bd1d53
JB
472020-11-01 Joel Brobecker <brobecker@adacore.com>
48
49 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
50 gnat_encoded_fixed_type_info. Update all callers.
51
db99d0d0
JB
522020-11-01 Joel Brobecker <brobecker@adacore.com>
53
54 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
55 line too long.
56
75f24e86
JB
572020-11-01 Joel Brobecker <brobecker@adacore.com>
58
59 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
60 cast_from_fixed. Update all callers.
61 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
62 Update all callers.
63 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
64 Update all callers.
65 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
66 ada_scaling_factor.
67 * ada-typeprint.c: Replace call to ada_scaling_factor by call
68 to print_gnat_encoded_fixed_point_type.
69 * ada-valprint.c: Likewise.
70
4f0469cd
AB
712020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
72
73 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
74 (debug_prefixed_printf): Add check of debug_displaced flag.
75 * linux-nat.c (linux_nat_debug_printf): Add check of
76 debug_linux_nat flag.
77
17417fb0
SM
782020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
79
80 * infrun.c (infrun_debug_printf_1): Remove.
81 (displaced_debug_printf_1): Remove.
82 (stop_all_threads): Use debug_prefixed_printf.
83 * infrun.h (infrun_debug_printf_1): Remove.
84 (infrun_debug_printf): Use debug_prefixed_printf.
85 (displaced_debug_printf_1): Remove.
86 (displaced_debug_printf): Use debug_prefixed_printf.
87 * linux-nat.c (linux_nat_debug_printf_1): Remove.
88 (linux_nat_debug_printf): Use debug_prefixed_printf.
89
ad6dba1c
SM
902020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
91
92 * configure: Re-generate.
93 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
94 AC_LANG_PROGRAM.
95
b6fb30ed
SM
962020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
97
98 * configure: Re-generate.
99
5164c117
SM
1002020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
101
102 * configure: Re-generate.
103
864ca435
SM
1042020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
105
106 * configure: Re-generate.
107
b9442ec1
SM
1082020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
109
110 * configure: Re-generate.
111
294f2697
SM
1122020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
113
114 * acinclude.m4: Modernize.
115 * configure: Re-generate.
116
5593a99a
SM
1172020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
118
119 * configure.ac: Modernize.
120 * configure: Re-generate.
121
e41fda1d
SM
1222020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
123
124 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
125 * configure: Re-generate.
126 * configure.ac: Remove AM_PROG_CC_STDC.
127
91e1a0ed
SM
1282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
129
130 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
131 AC_CANONICAL_SYSTEM.
132 * configure: Re-generate.
133
136821d9
SM
1342020-10-30 Simon Marchi <simon.marchi@efficios.com>
135
136 * infrun.h (displaced_debug_printf): New macro. Replace
137 displaced debug prints throughout to use it.
138 (displaced_debug_printf_1): New declaration.
139 (displaced_step_dump_bytes): Return string, remove ui_file
140 parameter, update all callers.
141 * infrun.c (displaced_debug_printf_1): New function.
142 (displaced_step_dump_bytes): Return string, remove ui_file
143 parameter
144
aa2045e7
SM
1452020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
146
147 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
148
b1ec2735
TT
1492020-10-30 Tom Tromey <tromey@adacore.com>
150
151 * Makefile.in (stamp-init): Depend on config.status.
152
b78b3a29
TBA
1532020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
154
155 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
156
d70bdd3c
PA
1572020-10-30 Pedro Alves <pedro@palves.net>
158
159 * thread.c (lookup_selected_frame): Move ...
160 * frame.c (lookup_selected_frame): ... here.
161
79952e69
PA
1622020-10-30 Pedro Alves <pedro@palves.net>
163
164 * blockframe.c (block_innermost_frame): Use get_selected_frame.
165 * frame.c
166 (scoped_restore_selected_frame::scoped_restore_selected_frame):
167 Use save_selected_frame. Save language as well.
168 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
169 Use restore_selected_frame, and restore language as well.
170 (selected_frame_id, selected_frame_level): New.
171 (selected_frame): Update comments.
172 (save_selected_frame, restore_selected_frame): New.
173 (get_selected_frame): Use lookup_selected_frame.
174 (get_selected_frame_if_set): Delete.
175 (select_frame): Record selected_frame_level and selected_frame_id.
176 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
177 fields.
178 (get_selected_frame): Make 'message' parameter optional.
179 (get_selected_frame_if_set): Delete declaration.
180 (select_frame): Update comments.
181 (save_selected_frame, restore_selected_frame)
182 (lookup_selected_frame): Declare.
183 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
184 * infrun.c (struct infcall_control_state) <selected_frame_level>:
185 New field.
186 (save_infcall_control_state): Use save_selected_frame.
187 (restore_selected_frame): Delete.
188 (restore_infcall_control_state): Use restore_selected_frame.
189 * stack.c (select_frame_command_core, frame_command_core): Use
190 get_selected_frame.
191 * thread.c (restore_selected_frame): Rename to ...
192 (lookup_selected_frame): ... this and make extern. Select the
193 current frame if the frame level is -1.
194 (scoped_restore_current_thread::restore): Also restore the
195 language.
196 (scoped_restore_current_thread::~scoped_restore_current_thread):
197 Don't try/catch.
198 (scoped_restore_current_thread::scoped_restore_current_thread):
199 Save the language as well. Use save_selected_frame.
200
58103c33
SM
2012020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
202
203 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
204 documentation.
205 * gdbarch.h: Re-generate.
206
40a53766
SM
2072020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
208
209 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
210 parameter.
211 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
212 Likewise.
213 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
214 Likewise.
215 * arch-utils.c (default_displaced_step_hw_singlestep):
216 Likewise.
217 * arch-utils.h (default_displaced_step_hw_singlestep):
218 Likewise.
219 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
220 Likewise.
221 * s390-tdep.c (s390_displaced_step_hw_singlestep):
222 Likewise.
223 * gdbarch.c: Re-generate.
224 * gdbarch.h: Re-generate.
225 * infrun.c (resume_1): Adjust.
226
8407f91b
TT
2272020-10-29 Tom Tromey <tom@tromey.com>
228
229 * progspace.c (program_space::~program_space): Don't call
230 exec_close.
231
5008b3b2
TT
2322020-10-29 Tom Tromey <tom@tromey.com>
233
234 * exec.c (exec_target::close): Don't change current program
235 space.
236
d9eebde0
TT
2372020-10-29 Tom Tromey <tom@tromey.com>
238
239 * symfile.c (add_symbol_file_command): Update.
240 * exec.c (program_space::add_target_sections): Rename.
241 * symfile-mem.c (symbol_file_add_from_memory): Update.
242 * progspace.h (struct program_space) <add_target_sections>:
243 Declare new overload.
244 * exec.h (add_target_sections_of_objfile): Don't declare.
245
3769e227
TT
2462020-10-29 Tom Tromey <tom@tromey.com>
247
248 * solib.c (solib_map_sections): Update.
249 * exec.c (program_space::add_target_sections): Now a method.
250 (exec_file_attach): Update.
251 * exec.h (add_target_sections): Don't declare.
252 * progspace.h (struct program_space) <add_target_sections>:
253 Declare.
254
2a3f84af
TT
2552020-10-29 Tom Tromey <tom@tromey.com>
256
257 * progspace.h (struct program_space) <remove_target_sections>:
258 Declare.
259 * exec.c (program_space::remove_target_sections): Now a method.
260 * exec.h (remove_target_sections): Don't declare.
261
004eecfd
TT
2622020-10-29 Tom Tromey <tom@tromey.com>
263
264 * inferior.c (delete_inferior): Update.
265 * progspace.c (program_space::empty): Rename from
266 program_space_empty_p. Return bool.
267 * progspace.h (struct program_space) <empty>: New method.
268 (program_space_empty_p): Don't declare.
269
e39fb971
TT
2702020-10-29 Tom Tromey <tom@tromey.com>
271
272 * progspace.c (program_space::~program_space): Don't call
273 clear_program_space_solib_cache.
274 (program_space::clear_solib_cache): Rename from
275 clear_solib_cache.
276 * solib.c (handle_solib_event): Update.
277 * progspace.h (struct program_space) <clear_solib_cache>: New
278 method.
279 (clear_program_space_solib_cache): Don't declare.
280
a42d7dd8
TT
2812020-10-29 Tom Tromey <tom@tromey.com>
282
283 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
284 * target.c (info_target_command): Update.
285 * symfile.c (syms_from_objfile_1, finish_new_objfile)
286 (symbol_file_clear, reread_symbols): Update.
287 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
288 * stabsread.c (scan_file_globals): Update.
289 * solib.c (update_solib_list): Update.
290 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
291 (svr4_fetch_objfile_link_map, enable_break)
292 (svr4_relocate_main_executable)
293 (svr4_iterate_over_objfiles_in_search_order): Update.
294 * solib-frv.c (lm_base, enable_break)
295 (frv_relocate_main_executable): Update.
296 (main_got, frv_fdpic_find_canonical_descriptor): Update.
297 (frv_fetch_objfile_link_map): Update.
298 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
299 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
300 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
301 * remote.c (remote_target::get_offsets): Update.
302 (remote_target::start_remote)
303 (extended_remote_target::post_attach): Update.
304 * objfiles.c (entry_point_address_query): Update.
305 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
306 * minsyms.c (get_symbol_leading_char): Update.
307 * frame.c (inside_main_func): Update.
308 * progspace.h (symfile_objfile): Remove macro.
309
19f6550e
TT
3102020-10-29 Tom Tromey <tom@tromey.com>
311
312 * exec.c (exec_file_attach): Update.
313 * progspace.c (program_space::exec_close): Update.
314 * progspace.h (struct program_space) <ebfd>: Now a
315 gdb_bfd_ref_ptr.
316 <set_exec_bfd>: Change argument type.
317 <exec_bfd>: Update.
318
7e10abd1
TT
3192020-10-29 Tom Tromey <tom@tromey.com>
320
321 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
322 * symfile.c (reread_symbols): Update.
323 * symfile-mem.c (add_symbol_file_from_memory_command)
324 (add_vsyscall_page): Update.
325 * source-cache.c (source_cache::get_plain_source_lines): Update.
326 * solib-svr4.c (find_program_interpreter, elf_locate_base)
327 (svr4_current_sos_direct, svr4_exec_displacement)
328 (svr4_relocate_main_executable): Update.
329 (svr4_iterate_over_objfiles_in_search_order): Update.
330 * solib-frv.c (enable_break2, enable_break): Update.
331 * solib-dsbt.c (lm_base, enable_break): Update.
332 * solib-darwin.c (find_program_interpreter)
333 (darwin_solib_create_inferior_hook): Update.
334 * sol-thread.c (rw_common, ps_pdmodel): Update.
335 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
336 * remote.c (compare_sections_command)
337 (remote_target::trace_set_readonly_regions): Update.
338 * remote-sim.c (get_sim_inferior_data)
339 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
340 (gdbsim_target_open, gdbsim_target::files_info): Update.
341 * exec.h (exec_bfd): Remove macro.
342 * progspace.c (initialize_progspace): Update.
343 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
344 Update.
345 * nto-procfs.c (nto_procfs_target::post_attach)
346 (nto_procfs_target::create_inferior): Update.
347 * maint.c (maintenance_info_sections): Update.
348 * linux-thread-db.c (thread_db_target::get_thread_local_address):
349 Update.
350 * infcmd.c (post_create_inferior): Update.
351 * gcore.c (default_gcore_arch, default_gcore_target): Update.
352 (objfile_find_memory_regions): Update.
353 * exec.c (validate_exec_file, exec_file_attach)
354 (exec_read_partial_read_only, print_section_info): Update.
355 * corelow.c (core_target_open): Update.
356 * corefile.c (reopen_exec_file, validate_files): Update.
357 * arm-tdep.c (gdb_print_insn_arm): Update.
358 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
359 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
360 methods.
361
b55221ab
TT
3622020-10-29 Tom Tromey <tom@tromey.com>
363
364 * progspace.h (current_target_sections): Remove macro.
365 * solib-svr4.c (scan_dyntag): Update.
366 * solib-dsbt.c (scan_dyntag): Update.
367 * exec.c (exec_target::close): Update.
368 (add_target_sections, add_target_sections_of_objfile)
369 (remove_target_sections, exec_target::get_section_table)
370 (exec_target::files_info, set_section_command)
371 (exec_set_section_address, exec_target::has_memory)
372 (exec_target::has_memory): Update.
373
5a36e715
TT
3742020-10-29 Tom Tromey <tom@tromey.com>
375
376 * source-cache.c (source_cache::get_plain_source_lines): Use
377 current_program_space.
378 * corefile.c (reopen_exec_file): Use current_program_space.
379 * exec.c (exec_file_attach): Use current_program_space.
380 * exec.h (exec_bfd_mtime): Remove.
381
784c8592
TT
3822020-10-29 Tom Tromey <tom@tromey.com>
383
384 * gcore.c (default_gcore_mach): Remove.
385 (create_gcore_bfd): Update.
386
8a4f1402
TT
3872020-10-29 Tom Tromey <tom@tromey.com>
388
389 * progspace.c (program_space::exec_close): New method, from
390 exec_close in exec.c.
391 * exec.c (exec_close): Move to progspace.c.
392 (exec_target::close, exec_file_attach): Update.
393 * progspace.h (struct program_space) <exec_close>: Declare
394 method.
395
c20cb686
TT
3962020-10-29 Tom Tromey <tom@tromey.com>
397
398 * progspace.h (struct program_space) <exec_filename>: Rename from
399 pspace_exec_filename. Now a unique_xmalloc_ptr.
400 * inferior.c (print_selected_inferior): Update.
401 (print_inferior): Update.
402 * mi/mi-main.c (print_one_inferior): Update.
403 * exec.h (exec_filename): Remove macro.
404 * corefile.c (get_exec_file): Update.
405 * exec.c (exec_close): Update.
406 (exec_file_attach): Update.
407 * progspace.c (clone_program_space): Update.
408 (print_program_space): Update.
409
6be2a9ab
TT
4102020-10-29 Tom Tromey <tom@tromey.com>
411
412 * target-section.h (struct target_section): Add constructor.
413 * exec.c (build_section_table, add_target_sections_of_objfile):
414 Update.
415 * corelow.c (core_target::build_file_mappings): Update.
416
cfaa8f76
TBA
4172020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
418
419 PR gdb/19318
420 * inferior.c (detach_inferior_command): Restore the current thread.
421 (kill_inferior_command): Ditto.
422
1b00ef06
TV
4232020-10-28 Tom de Vries <tdevries@suse.de>
424
425 PR symtab/26772
426 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
427 map, check it in the "best match" loop.
428
7f40ce1a
SM
4292020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
430
431 * m32c-tdep.c: Remove unused includes.
432
5eb9e3f5
SM
4332020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
434
435 * xtensa-tdep.c: Remove includes.
436
b1d4d8d1
TBA
4372020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
438
439 * breakpoint.c (struct condition_command_opts): New struct.
440 (condition_command_option_defs): New static global.
441 (make_condition_command_options_def_group): New function.
442 (condition_completer): Update to consider the '-force' flag.
443 (condition_command): Use gdb::option for the '-force' flag.
444
bd24c5d6
TV
4452020-10-27 Tom de Vries <tdevries@suse.de>
446
447 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
448 symbols in section check.
449
61eb46a4
TV
4502020-10-27 Tom de Vries <tdevries@suse.de>
451
452 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
453
733d554a
TBA
4542020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
455
456 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
457 * breakpoint.c: Update the help text of the 'condition' and 'break'
458 commands.
459 (set_breakpoint_condition): Take a new bool parameter
460 to control whether condition definition should be forced even when
461 the condition expression is invalid in all of the current locations.
462 (condition_command): Update the call to 'set_breakpoint_condition'.
463 (find_condition_and_thread): Take the "-force-condition" flag into
464 account.
465 * linespec.c (linespec_keywords): Add "-force-condition" as an
466 element.
467 (FORCE_KEYWORD_INDEX): New #define.
468 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
469 as a keyword.
470 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
471 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
472 * python/py-breakpoint.c (bppy_set_condition): Ditto.
473 * NEWS: Mention the changes to the 'break' and 'condition' commands.
474
b5fa468f
TBA
4752020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
476
477 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
478 * breakpoint.c (set_breakpoint_location_condition): New function.
479 (set_breakpoint_condition): Disable a breakpoint location if parsing
480 the condition string gives an error.
481 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
482 (build_target_condition_list): Ditto.
483 (build_target_command_list): Ditto.
484 (build_bpstat_chain): Ditto.
485 (print_one_breakpoint_location): Ditto.
486 (print_one_breakpoint): Ditto.
487 (breakpoint_1): Ditto.
488 (bp_location::bp_location): Ditto.
489 (locations_are_equal): Ditto.
490 (update_breakpoint_locations): Ditto.
491 (enable_disable_bp_num_loc): Ditto.
492 (init_breakpoint_sal): Use set_breakpoint_location_condition.
493 (find_condition_and_thread_for_sals): New static function.
494 (create_breakpoint): Call find_condition_and_thread_for_sals.
495 (location_to_sals): Call find_condition_and_thread_for_sals instead
496 of find_condition_and_thread.
497
1c47ec3e
TV
4982020-10-26 Tom de Vries <tdevries@suse.de>
499
500 * dwarf2/read.c (process_full_comp_unit): Call
501 dwarf2_find_base_address.
502
6390859c
TT
5032020-10-26 Tom Tromey <tromey@adacore.com>
504
505 * gdbtypes.c (create_range_type): Revert previous patch. Add
506 comment.
507
d744f0f9
PA
5082020-10-26 Pedro Alves <pedro@palves.net>
509
510 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
511 (my_waitpid): Use gdb::handle_eintr.
512
006811bc
SM
5132020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
514
515 * acinclude.m4: Update ptrace.m4 path.
516 * ptrace.m4: Moved to gdbsupport.
517
c75e31a1
SM
5182020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
519
520 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
521 instead of target_gdbarch.
522
32495661
SM
5232020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
524
525 * jit.c (jit_reader_load_command): Pass current inferior.
526 (jit_inferior_init): Change parameter type to inferior, use it.
527 (jit_inferior_created): Remove.
528 (jit_inferior_created_hook): Pass inferior parameter down.
529 (_initialize_jit): Use jit_inferior_created_hook instead of
530 jit_inferior_created.
531 * jit.h (jit_inferior_created_hook): Add inferior parameter.
532 * infrun.c (follow_exec): Pass inferior to
533 jit_inferior_created_hook.
534
3f66685e
SM
5352020-10-24 Simon Marchi <simon.marchi@efficios.com>
536
537 * linux-thread-db.c (check_pid_namespace_match): Add inferior
538 parameter and use it.
539 (thread_db_inferior_created): Pass inferior argument.
540
a0ff652f
SM
5412020-10-24 Simon Marchi <simon.marchi@efficios.com>
542
543 * aix-thread.c (aix_thread_inferior_created): Add inferior
544 parameter.
545 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
546 * dummy-frame.c (cleanup_dummy_frames): Likewise.
547 * jit.c (jit_inferior_created): Likewise.
548 * linux-thread-db.c (thread_db_inferior_created): Likewise.
549 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
550 * observable.h (inferior_created): Likewise.
551 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
552 * symfile-mem.c (add_vsyscall_page): Likewise.
553 * infcmd.c (post_create_inferior): Pass inferior argument.
554
3c67532c
JB
5552020-10-24 Joel Brobecker <brobecker@adacore.com>
556
557 GDB 10.1 released.
558
8747316e
JB
5592020-10-23 Joel Brobecker <brobecker@adacore.com>
560
561 * ada-typeprint.c (ada_print_type): Remove superfluous second call
562 to ada_check_typedef.
563
1a0ea399
AB
5642020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
565
566 * f-exp.y (f_parse): Rename to...
567 (f_language::parser): ...this.
568 * f-lang.c (f_get_encoding): Rename to...
569 (f_language::get_encoding): ...this.
570 (f_op_print_tab): Rename to...
571 (f_language::op_print_tab): ...this.
572 (exp_descriptor_f): Rename to...
573 (f_language::exp_descriptor_tab): ...this.
574 (class f_language): Moved to f-lang.h.
575 (f_language::language_arch_info): New function, moved out of class
576 declaration.
577 (f_language::search_name_hash): Likewise.
578 (f_language::lookup_symbol_nonlocal): Likewise.
579 (f_language::get_symbol_name_matcher_inner): Likewise.
580 * f-lang.h: Add 'valprint.h' include.
581 (class f_language): Moved here from f-lang.c.
582 * f-typeprint.c (f_type_print_args): Delete commented out
583 declaration.
584 (f_print_typedef): Rename to...
585 (f_language::print_typedef): ...this.
586 (f_print_type): Rename to...
587 (f_language::print_type): ...this.
588 (f_type_print_varspec_prefix): Delete declaration and rename to...
589 (f_language::f_type_print_varspec_prefix): ...this.
590 (f_type_print_varspec_suffix): Delete declaration and rename to...
591 (f_language::f_type_print_varspec_suffix): ...this.
592 (f_type_print_base): Delete declaration and rename to...
593 (f_language::f_type_print_base): ...this.
594 * f-valprint.c (f_value_print_inner): Rename to...
595 (f_language::value_print_inner): ...this.
596 * parse.c: Delete 'f-lang.h' include.
597
88cefd9b
AB
5982020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
599
600 * language.h (language_defn::print_type): Add variable names in
601 declaration, and update header comment.
602
5399db93
AB
6032020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
604
605 * ada-lang.c (ada_language::demangle): Rename to...
606 (ada_language::demangle_symbol): ...this.
607 * c-lang.c (cplus_language::demangle): Rename to...
608 (cplus_language::demangle_symbol): ...this.
609 * d-lang.c (d_language::demangle): Rename to...
610 (d_language::demangle_symbol): ...this.
611 * f-lang.c (f_language::demangle): Rename to...
612 (f_language::demangle_symbol): ...this.
613 * go-lang.c (go_language::demangle): Rename to...
614 (go_language::demangle_symbol): ...this.
615 * language.c (language_demangle): Update call to demangle_symbol.
616 (auto_or_unknown_language::demangle): Rename to...
617 (auto_or_unknown_language::demangle_symbol): ...this.
618 * language.h (language_defn::demangle): Rename to...
619 (language_defn::demangle_symbol): ...this.
620 * objc-lang.c (objc_language::demangle): Rename to...
621 (objc_language::demangle_symbol): ...this.
622 * rust-lang.c (rust_language::demangle): Rename to...
623 (rust_language::demangle_symbol): ...this.
624
4b2f86ef
AB
6252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
626
627 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
628 (iterate_over_file_blocks): Replace use of macro with the macros
629 definition.
630
e74b39de
AB
6312020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
632
633 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
634 * valprint.c (maybe_print_array_index): Replace use of macro with
635 the macros definition.
636
00c696a6
AB
6372020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
638
639 * ada-lang.c (ada_language::print_array_index): Call value_print
640 directly.
641 * language.c (language_defn::print_array_index): Likewise.
642 * language.h (LA_VALUE_PRINT): Delete.
643 * valprint.c (value_print): Call value_print on the
644 current_language directly.
645
d3b67c56
AB
6462020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
647
648 * language.h (LA_PRINT_TYPEDEF): Delete.
649 * typeprint.c (typedef_print): Call print_typedef directly on the
650 current_language object.
651
790e2a12
AB
6522020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
653
654 * m2-exp.y (m2_parse): Rename to...
655 (m2_language::parser): ...this. Update function signature.
656 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
657 (m2_op_print): Rename to...
658 (m2_language::op_print_tab): ...this, and make const.
659 (exp_descriptor_modula2): Rename to...
660 (m2_language::exp_descriptor_modula2): ...this.
661 (class m2_language): Move to m2-lang.h.
662 (m2_language::language_arch_info): New function, moved out of
663 class declaration.
664 (m2_language::printchar): New function, body from m2_printchar.
665 (m2_language::printstr): New function, moved out of class
666 declaration.
667 (m2_language::emitchar): Likewise.
668 * m2-lang.h (m2_parse): Delete declaration.
669 (m2_print_typedef): Delete declaration.
670 (m2_value_print_inner): Delete declaration.
671 (class m2_language): Class declaration moved from m2-lang.c,
672 larger functions are left in m2-lang.c.
673 * m2-typeprint.c (m2_print_typedef): Rename to...
674 (m2_language::print_typedef): ...this, and update function
675 signature.
676 * m2-valprint.c (m2_value_print_inner): Rename to...
677 (m2_language::value_print_inner): ...this, replace use of
678 LA_PRINT_STRING with a direct call to printstr member function,
679 and update recursive call.
680
b01175fc
AB
6812020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
682
683 * language.c (default_is_string_type_p): Delete, implementation
684 moved into auto_or_unknown_language::is_string_type_p.
685 (unk_op_print_tab): Moved into
686 auto_or_unknown_language::opcode_print_table.
687 (unknown_language_arch_info): Delete, implementation moved into
688 auto_or_unknown_language::language_arch_info.
689 (class auto_or_unknown_language): New class, member functions
690 copied from unknown_language class, with some updates.
691 (class unknown_language): Most member functions moved into
692 auto_or_unknown_language class. Inherit from
693 auto_or_unknown_language class.
694 (class auto_language): Inherit from auto_or_unknown_language.
695 Delete most member functions.
696
1a97fe8c
HD
6972020-10-22 Hannes Domani <ssbssa@yahoo.de>
698
699 * stabsread.c (read_member_functions): Remove gdb_assert.
700
6b9d0dfd
HD
7012020-10-22 Hannes Domani <ssbssa@yahoo.de>
702
703 * gdbtypes.c (init_complex_type): Check target type name.
704
4b4bb603
SM
7052020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
706
707 * target-debug.h (target_debug_print_struct_target_ops_p):
708 Remove.
709 (target_debug_print_async_callback_ftype_p): Remove.
710 (target_debug_print_struct_trace_state_variable_p): Remove.
711 (target_debug_print_struct_traceframe_info_p): Remove.
712 (target_debug_print_VEC__btrace_block_s__pp): Remove.
713 (target_debug_print_enum_btrace_format): Remove.
714 (target_debug_print_enum_info_proc_what): Remove.
715 (target_debug_print_thread_info_pp): Remove.
716
24f5300a
SM
7172020-10-22 Simon Marchi <simon.marchi@efficios.com>
718
719 * target.h (struct target_ops) <make_corefile_notes>:
720 Change return type to unique pointer.
721 * target.c (dummy_make_corefile_notes): Likewise.
722 * exec.c (struct exec_target) <make_corefile_notes>:
723 Likewise.
724 (exec_target::make_corefile_notes): Likewise.
725 * procfs.c (class procfs_target) <make_corefile_notes>:
726 Likewise.
727 (procfs_do_thread_registers): Adjust to unique pointer.
728 (struct procfs_corefile_thread_data): Add constructor.
729 <note_data>: Change type to unique pointer.
730 (procfs_corefile_thread_callback): Adjust to unique pointer.
731 (procfs_target::make_corefile_notes): Change return type to
732 unique pointer.
733 * target-delegates.c: Re-generate.
734 * gcore.c (write_gcore_file_1): Adjust.
735 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
736 New.
737
5fb4027f
TV
7382020-10-22 Tom de Vries <tdevries@suse.de>
739
740 * block.c (find_block_in_blockvector): Make sure the returned block
741 contains pc.
742
4a636814
SM
7432020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
744
745 PR gdb/26693
746 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
747 parameter.
748 (load_cu): Pass existing CU.
749 (process_imported_unit_die): Likewise.
750 (follow_die_offset): Likewise.
751
1bd57575
LM
7522020-10-22 Luis Machado <luis.machado@linaro.org>
753
754 * corelow.c (core_target::xfer_partial): Also check for an empty
755 m_core_unavailable_mappings vector.
756
6b4c676c
AB
7572020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
758
759 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
760 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
761 * f-exp.y (arglist): Allow for a series of subranges.
762 (subrange): Add cases for subranges with strides.
763 * f-lang.c (value_f90_subarray): Catch use of array strides and
764 throw an error.
765 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
766
f2d8e4c5
AB
7672020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
768
769 * expprint.c (print_subexp_standard): Change enum range_type to
770 range_flag and rename variables to match.
771 (dump_subexp_body_standard): Likewise.
772 * expression.h (enum range_type): Rename to...
773 (enum range_flag): ...this.
774 (range_types): Rename to...
775 (range_flags): ...this.
776 * f-lang.c (value_f90_subarray): Change enum range_type to
777 range_flag and rename variables to match.
778 * parse.c (operator_length_standard): Likewise.
779 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
780 range_type to range_flag.
781 * rust-lang.c (rust_evaluate_funcall): Likewise.
782 (rust_range): Likewise.
783 (rust_compute_range): Likewise.
784 (rust_subscript): Likewise.
785
2f1b18db
AB
7862020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
787
788 * expprint.c (print_subexp_standard): Update to reflect changes to
789 enum range_type.
790 (dump_subexp_body_standard): Likewise.
791 * expression.h (enum range_type): Convert to a bit field enum, and
792 make the enum unsigned.
793 * f-exp.y (subrange): Update to reflect changes to enum
794 range_type.
795 * f-lang.c (value_f90_subarray): Likewise.
796 * parse.c (operator_length_standard): Likewise.
797 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
798 * rust-lang.c (rust_range): Likewise.
799 (rust_compute_range): Likewise.
800 (rust_subscript): Likewise.
801
a46d1843
SM
8022020-10-21 Simon Marchi <simon.marchi@efficios.com>
803
804 * infrun.c (displaced_step_in_progress_thread): Fix comment.
805 (displaced_step_in_progress): Fix comment.
806
c21f37a8
SM
8072020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
808
809 * gdbarch.sh (make_corefile_notes): Return unique pointer.
810 * gdbarch.c: Re-generate.
811 * gdbarch.h: Re-generate.
812 * gcore.c (write_gcore_file_1): Adjust.
813 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
814 constructor.
815 <note_data>: Change type to unique pointer.
816 <abort_iteration>: Change type to bool.
817 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
818 (fbsd_collect_thread_registers): Return void, adjust.
819 (struct fbsd_corefile_thread_data): Add construtor.
820 <note_data>: Change type to unique pointer.
821 (fbsd_corefile_thread): Adjust.
822 (fbsd_make_corefile_notes): Return unique pointer, adjust.
823 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
824 to unique pointer, adjust.
825 (struct linux_collect_regset_section_cb_data): Add constructor.
826 <note_data>: Change type to unique pointer.
827 <abort_iteration>: Change type to bool.
828 (linux_collect_thread_registers): Return void, adjust.
829 (struct linux_corefile_thread_data): Add constructor.
830 <note_data>: Change type to unique pointer.
831 (linux_corefile_thread): Adjust.
832 (linux_make_corefile_notes): Return unique pointer, adjust.
833
07fbbd01
SM
8342020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
835
836 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
837 * gdbarch.c: Re-generate.
838 * gdbarch.h: Re-generate.
839 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
840 bool.
841 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
842 Likewise.
843 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
844 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
845 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
846 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
847
39535193
SM
8482020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
849
850 * gdbarch.sh: Make generated predicates return bool.
851 * gdbarch.c: Re-generate.
852 * gdbarch.h: Re-generate.
853
ad523d01
TT
8542020-10-20 Tom Tromey <tom@tromey.com>
855
856 * varobj-iter.h (struct varobj_item): Remove typedef.
857
c4464ade
SM
8582020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
859
860 * infrun.c (currently_stepping): Change int to bool
861 (maybe_software_singlestep): Likewise.
862 (show_stop_on_solib_events): Likewise.
863 (stepping_past_nonsteppable_watchpoint): Likewise.
864 (displaced_step_in_progress_any_inferior): Likewise.
865 (displaced_step_in_progress_thread): Likewise.
866 (keep_going_stepped_thread): Likewise.
867 (thread_still_needs_step_over): Likewise.
868 (start_step_over): Likewise.
869 (do_target_resume): Likewise.
870 (resume_1): Likewise.
871 (clear_proceed_status): Likewise.
872 (thread_still_needs_step_over_bp): Likewise.
873 (proceed): Likewise.
874 (switch_back_to_stepped_thread): Likewise.
875 (adjust_pc_after_break): Likewise.
876 (stepped_in_from): Likewise.
877 (handle_stop_requested): Likewise.
878 (handle_syscall_event): Likewise.
879 (handle_no_resumed): Likewise.
880 (handle_inferior_event): Likewise.
881 (finish_step_over): Likewise.
882 (handle_signal_stop): Likewise.
883 (process_event_stop_test): Likewise.
884
2eb20436
SM
8852020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
886
887 * infrun.c (get_displaced_stepping_state): Fix comment.
888
e0c45ded
AS
8892020-10-20 Andreas Schwab <schwab@linux-m68k.org>
890
891 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
892
22cc388e
TT
8932020-10-19 Tom Tromey <tromey@adacore.com>
894
895 PR tui/26719
896 * tui/tui-winsource.h (struct tui_source_window_base)
897 <refresh_window>: Rename from refresh_pad.
898 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
899 Rename from refresh_pad.
900 (tui_source_window_base::show_source_content)
901 (tui_source_window_base::do_scroll_horizontal): Update.
902
3c6eb4d4
TBA
9032020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
904
905 * thread.c (_initialize_thread): Fine-tune the help text of
906 'info threads'.
907
26703721
TBA
9082020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
909
910 * frame.c: Remove the unused 'uinteger_option_def' type alias.
911
61c26be8
MS
9122020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
913
914 * breakpoint.c (handle_jit_event): Add an argument, change how
915 `jit_event_handler` is called.
916
932539d7
TT
9172020-10-17 Tom Tromey <tom@tromey.com>
918
919 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
920 (scan_xcoff_symtab): Update.
921 * psymtab.h (class psymtab_storage) <global_psymbols,
922 static_psymbols, current_global_psymbols,
923 current_static_psymbols>: Remove.
924 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
925 (match_partial_symbol, lookup_partial_symbol): Update.
926 (print_partial_symbols): Change parameters.
927 (dump_psymtab, recursively_search_psymtabs)
928 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
929 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
930 (concat): Remove.
931 (end_psymtab_common): Simplify.
932 (append_psymbol_to_list): Change parameters.
933 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
934 (init_psymbol_list): Simplify.
935 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
936 * psympriv.h (struct partial_symtab) <empty>: New method.
937 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
938 Remove.
939 <global_psymbols, static_psymbols>: New members.
940 <add_psymbol>: New methods.
941 (add_psymbol_to_list): Don't declare.
942 (psymbol_placement): Move earlier.
943 * mdebugread.c (parse_partial_symbols): Update.
944 (handle_psymbol_enumerators): Change parameters.
945 (mdebug_expand_psymtab): Update.
946 * dwarf2/read.c (process_psymtab_comp_unit_reader)
947 (add_partial_symbol): Update.
948 * dwarf2/index-write.c (write_psymbols): Change parameters.
949 (write_one_signatured_type): Update.
950 (recursively_count_psymbols): Update.
951 (recursively_write_psymbols): Update.
952 (class debug_names) <recursively_write_psymbols>: Update.
953 <write_psymbols>: Change parameters.
954 <write_one_signatured_type>: Update.
955 * dbxread.c (read_dbx_symtab): Update.
956 (dbx_end_psymtab): Use partial_symtab::empty.
957 * ctfread.c (struct ctf_context) <pst>: New member.
958 (create_partial_symtab): Set it.
959 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
960 (scan_partial_symbols): Use the psymtab's context. Update.
961
cfabbd35
TT
9622020-10-17 Tom Tromey <tom@tromey.com>
963
964 * valprint.c (generic_value_print): Remove comment.
965 * m2-valprint.c (m2_value_print_inner): Remove comment.
966 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
967 type.
968
520596f2
TV
9692020-10-17 Tom de Vries <tdevries@suse.de>
970
971 PR symtab/26317
972 * source.c (select_source_symtab): Handling sal.symtab == NULL for
973 symbol main.
974
76547ab3
TV
9752020-10-14 Tom de Vries <tdevries@suse.de>
976
977 PR gdb/26733
978 * solib.c (solib_contains_address_p): Handle
979 'solib->sections == nullptr'.
980
d3a07122
SM
9812020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
982
983 PR gdb/26642
984 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
985 target can't do async.
986 * target.c (target_wait): Assert that we don't pass
987 TARGET_WNOHANG to a target that can't async.
988
1b71cfcf
KR
9892020-10-13 Kamil Rytarowski <n54@gmx.com>
990
991 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
992 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
993 * alpha-bsd-nat.c: Adjust include.
994 * alpha-bsd-tdep.h: Adjust comment.
995 * alpha-nbsd-tdep.c: Rename to ...
996 * alpha-netbsd-tdep.c: ... this, adjust include.
997 * amd64-nbsd-nat.c: Rename to ...
998 * amd64-netbsd-nat.c: ... this, adjust include.
999 * amd64-nbsd-tdep.c: Rename to ...
1000 * amd64-netbsd-tdep.c: ... this, adjust include.
1001 * amd64-tdep.h: Adjust include.
1002 * arm-nbsd-nat.c: Rename to ...
1003 * arm-netbsd-nat.c: ... this, adjust include.
1004 * arm-nbsd-tdep.c: Rename to ...
1005 * arm-netbsd-tdep.c: ... this, adjust include.
1006 * arm-nbsd-tdep.h: Rename to ...
1007 * arm-netbsd-tdep.h: ... this, adjust include.
1008 * configure.nat: Adjust file lists.
1009 * configure.tgt: Likewise.
1010 * hppa-nbsd-nat.c: Rename to ...
1011 * hppa-netbsd-nat.c: ... this, adjust include.
1012 * hppa-nbsd-tdep.c: Rename to ...
1013 * hppa-netbsd-tdep.c: ... this, adjust include.
1014 * i386-nbsd-nat.c: Rename to ...
1015 * i386-netbsd-nat.c: ... this, adjust include.
1016 * i386-nbsd-tdep.c: Rename to ...
1017 * i386-netbsd-tdep.c: ... this, adjust include.
1018 * m68k-bsd-nat.c: Adjust include.
1019 * mips-nbsd-nat.c: Rename to ...
1020 * mips-netbsd-nat.c: ... this, adjust include.
1021 * mips-nbsd-tdep.c: Rename to ...
1022 * mips-netbsd-tdep.c: ... this, adjust include.
1023 * mips-nbsd-tdep.h: Rename to ...
1024 * mips-netbsd-tdep.h: ... this.
1025 * nbsd-nat.c: Rename to ...
1026 * netbsd-nat.c: ... this, adjust include.
1027 * nbsd-nat.h: Rename to ...
1028 * netbsd-nat.h: ... this, adjust include.
1029 * nbsd-tdep.c: Rename to ...
1030 * netbsd-tdep.c: ... this, adjust include.
1031 * nbsd-tdep.h: Rename to ...
1032 * netbsd-tdep.h: ... this.
1033 * ppc-nbsd-nat.c: Rename to ...
1034 * ppc-netbsd-nat.c: ... this, adjust include.
1035 * ppc-nbsd-tdep.c: Rename to ...
1036 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1037 * ppc-nbsd-tdep.h: Rename to ...
1038 * ppc-netbsd-tdep.h: ... this.
1039 * sh-nbsd-nat.c: Rename to ...
1040 * sh-netbsd-nat.c: ... this, adjust include.
1041 * sh-nbsd-tdep.c: Rename to ...
1042 * sh-netbsd-tdep.c: ... this, adjust include.
1043 * sparc-nbsd-nat.c: Rename to ...
1044 * sparc-netbsd-nat.c: ... this.
1045 * sparc-nbsd-tdep.c: Rename to ...
1046 * sparc-netbsd-tdep.c: ... this, adjust include.
1047 * sparc64-nbsd-nat.c: Rename to ...
1048 * sparc64-netbsd-nat.c: ... this.
1049 * sparc64-nbsd-tdep.c: Rename to ...
1050 * sparc64-netbsd-tdep.c: ... this, adjust include.
1051 * sparc64-tdep.h: Adjust comment.
1052 * vax-bsd-nat.c: Adjust include.
1053 * vax-nbsd-tdep.c: Rename to ...
1054 * vax-netbsd-tdep.c: ... this, adjust include.
1055
d7a78e5c
TT
10562020-10-12 Tom Tromey <tom@tromey.com>
1057
1058 * target.h (struct target_ops) <get_section_table>: Update.
1059 (target_get_section_table): Update.
1060 * target.c (target_get_section_table, target_section_by_addr)
1061 (memory_xfer_partial_1): Update.
1062 * target-section.h (target_section_table): Now an alias.
1063 * target-delegates.c: Rebuild.
1064 * target-debug.h (target_debug_print_target_section_table_p):
1065 Rename from target_debug_print_struct_target_section_table_p.
1066 * symfile.c (build_section_addr_info_from_section_table): Update.
1067 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1068 * solib-svr4.c (scan_dyntag): Update.
1069 * solib-dsbt.c (scan_dyntag): Update.
1070 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1071 Update.
1072 * record-full.c (record_full_core_target::xfer_partial): Update.
1073 * progspace.h (struct program_space) <target_sections>: Update.
1074 * exec.h (print_section_info): Update.
1075 * exec.c (exec_target::close, build_section_table)
1076 (add_target_sections, add_target_sections_of_objfile)
1077 (remove_target_sections, exec_on_vfork)
1078 (section_table_available_memory)
1079 (section_table_xfer_memory_partial)
1080 (exec_target::get_section_table, exec_target::xfer_partial)
1081 (print_section_info, set_section_command)
1082 (exec_set_section_address, exec_target::has_memory): Update.
1083 * corelow.c (core_target::build_file_mappings)
1084 (core_target::xfer_partial, core_target::info_proc_mappings)
1085 (core_target::info_proc_mappings): Update.
1086 * bfd-target.c (class target_bfd): Update
1087
eda214ce
TT
10882020-10-12 Tom Tromey <tom@tromey.com>
1089
1090 * progspace.c (program_space::~program_space): Don't call
1091 clear_section_table.
1092 * exec.h (clear_section_table): Don't declare.
1093 * exec.c (exec_target::close): Update.
1094 (clear_section_table): Remove.
1095
91840ee3
TT
10962020-10-12 Tom Tromey <tom@tromey.com>
1097
1098 * exec.c (add_target_sections_of_objfile): Simplify.
1099
2d128614
TT
11002020-10-12 Tom Tromey <tom@tromey.com>
1101
1102 * solib.c (solib_map_sections): Update.
1103 * record-full.c (record_full_core_open_1): Update.
1104 * exec.h (build_section_table): Return a target_section_table.
1105 * exec.c (exec_file_attach): Update.
1106 (build_section_table): Return a target_section_table.
1107 * corelow.c (core_target::core_target): Update.
1108 * bfd-target.c (target_bfd::target_bfd): Update.
1109
bb2a6777
TT
11102020-10-12 Tom Tromey <tom@tromey.com>
1111
1112 * target.c (target_section_by_addr, memory_xfer_partial_1):
1113 Update.
1114 * target-section.h (struct target_section_table): Use
1115 std::vector.
1116 * symfile.h (build_section_addr_info_from_section_table): Take a
1117 target_section_table.
1118 * symfile.c (build_section_addr_info_from_section_table): Take a
1119 target_section_table.
1120 * solist.h (struct so_list) <sections>: Change type.
1121 <sections_end>: Remove.
1122 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1123 (solib_contains_address_p): Update.
1124 * solib-svr4.c (scan_dyntag): Update.
1125 * solib-dsbt.c (scan_dyntag): Update.
1126 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1127 Update.
1128 * record-full.c (record_full_core_start, record_full_core_end):
1129 Remove.
1130 (record_full_core_sections): New global.
1131 (record_full_core_open_1, record_full_core_target::xfer_partial):
1132 Update.
1133 * exec.h (build_section_table, section_table_xfer_memory_partial)
1134 (add_target_sections): Take a target_section_table.
1135 * exec.c (exec_file_attach, clear_section_table): Update.
1136 (resize_section_table): Remove.
1137 (build_section_table, add_target_sections): Take a
1138 target_section_table.
1139 (add_target_sections_of_objfile, remove_target_sections)
1140 (exec_on_vfork): Update.
1141 (section_table_available_memory): Take a target_section_table.
1142 (section_table_read_available_memory): Update.
1143 (section_table_xfer_memory_partial): Take a target_section_table.
1144 (print_section_info, set_section_command)
1145 (exec_set_section_address, exec_target::has_memory): Update.
1146 * corelow.c (class core_target) <m_core_section_table,
1147 m_core_file_mappings>: Remove braces.
1148 <~core_target>: Remove.
1149 (core_target::core_target): Update.
1150 (core_target::~core_target): Remove.
1151 (core_target::build_file_mappings)
1152 (core_target::xfer_memory_via_mappings)
1153 (core_target::xfer_partial, core_target::info_proc_mappings):
1154 Update.
1155 * bfd-target.c (target_bfd::xfer_partial): Update.
1156 (target_bfd::target_bfd): Update.
1157 (target_bfd::~target_bfd): Remove.
1158
7b466b10
TT
11592020-10-12 Tom Tromey <tom@tromey.com>
1160
1161 * target.h (struct target_section, struct target_section_table):
1162 Move to target-section.h.
1163 * target-section.h: New file.
1164
87a37e5e
PA
11652020-10-12 Pedro Alves <pedro@palves.net>
1166
1167 PR exp/26602
1168 * valops.c (struct struct_field_searcher): New.
1169 (update_search_result): Rename to ...
1170 (struct_field_searcher::update_result): ... this. Simplify
1171 prototype. Record all found fields.
1172 (do_search_struct_field): Rename to ...
1173 (struct_field_searcher::search): ... this. Simplify prototype.
1174 Maintain stack of visited baseclass path. Call update_result for
1175 fields too. Keep searching fields in baseclasses instead of
1176 stopping at the first found field.
1177 (search_struct_field): Use struct_field_searcher. When looking
1178 for fields, report ambiguous access attempts.
1179
9370fd51
AB
11802020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1181
1182 * frame.c (inside_main_func): Check full symbols as well as
1183 minimal symbols.
1184
59c8a30b
JB
11852020-10-09 Joel Brobecker <brobecker@adacore.com>
1186
1187 * ada-lang.c (advance_wild_match): Rewrite the function's
1188 description. Change the type of target0, t0 and t1 to char.
1189
7c184d33
TT
11902020-10-09 Tom Tromey <tromey@adacore.com>
1191
1192 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1193
5c4258f4
TT
11942020-10-09 Tom Tromey <tromey@adacore.com>
1195
1196 * ada-lang.h (ada_encode): Return std::string.
1197 * ada-lang.c (ada_encode_1): Return std::string.
1198 (ada_encode): Likewise.
1199 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1200 Update.
1201 * ada-exp.y (block_lookup, write_var_or_type): Update.
1202
3d87245c
HD
12032020-10-09 Hannes Domani <ssbssa@yahoo.de>
1204
1205 PR exp/26714
1206 * printcmd.c (print_formatted): Handle void results as
1207 unformatted prints.
1208
bbb826f5
AB
12092020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1210
1211 * arch/aarch32.c (aarch32_create_target_description): Release the
1212 target_desc_up as late as possible.
1213 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1214 * arch/amd64.c (amd64_create_target_description): Likewise.
1215 * arch/arc.c (arc_create_target_description): Return a
1216 target_desc_up, don't release it.
1217 * arch/arc.h (arc_create_target_description): Update declaration.
1218 (arc_lookup_target_description): Move target_desc_up into the
1219 cache, and return a borrowed pointer.
1220 * arch/arm.c (arm_create_target_description): Release the
1221 target_desc_up as late as possible.
1222 * arch/i386.c (i386_create_target_description): Likewise.
1223 * arch/riscv.h (riscv_create_target_description): Update
1224 declaration to match definition.
1225 * arch/tic6x.c (tic6x_create_target_description): Release the
1226 target_desc_up as late as possible.
1227
361cb219
AB
12282020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1229
1230 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1231 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1232
f5c4b229
JV
12332020-10-09 Jan Vrany <jan.vrany@labware.com>
1234
1235 * source.c (directory_command): Notify observers that "directories"
1236 parameter has changed.
1237
b2701685
TT
12382020-10-08 Tom Tromey <tom@tromey.com>
1239
1240 * cli/cli-cmds.c (print_disassembly): Style function name and
1241 addresses. Add _() wrappers.
1242
ada508b6
SV
12432020-10-08 Shahab Vahedi <shahab@synopsys.com>
1244
1245 * NEWS: Mention ARC support in GDBserver.
1246
51a948fd
AB
12472020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1248
1249 * arch/aarch32.c (aarch32_create_target_description): Release
1250 unique_ptr returned from allocate_target_description.
1251 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1252 * arch/amd64.c (amd64_create_target_description): Likewise.
1253 * arch/arc.c (arc_create_target_description): Likewise.
1254 * arch/arm.c (arm_create_target_description): Likewise.
1255 * arch/i386.c (i386_create_target_description): Likewise.
1256 * arch/riscv.c (riscv_create_target_description): Update return
1257 type. Handle allocate_target_description returning a unique_ptr.
1258 (riscv_lookup_target_description): Update to handle unique_ptr.
1259 * arch/tic6x.c (tic6x_create_target_description): Release
1260 unique_ptr returned from allocate_target_description.
1261 * features/microblaze-with-stack-protect.c: Regenerate.
1262 * features/microblaze.c: Regenerate.
1263 * features/mips-dsp-linux.c: Regenerate.
1264 * features/mips-linux.c: Regenerate.
1265 * features/mips64-dsp-linux.c: Regenerate.
1266 * features/mips64-linux.c: Regenerate.
1267 * features/nds32.c: Regenerate.
1268 * features/nios2.c: Regenerate.
1269 * features/or1k.c: Regenerate.
1270 * features/rs6000/powerpc-32.c: Regenerate.
1271 * features/rs6000/powerpc-32l.c: Regenerate.
1272 * features/rs6000/powerpc-403.c: Regenerate.
1273 * features/rs6000/powerpc-403gc.c: Regenerate.
1274 * features/rs6000/powerpc-405.c: Regenerate.
1275 * features/rs6000/powerpc-505.c: Regenerate.
1276 * features/rs6000/powerpc-601.c: Regenerate.
1277 * features/rs6000/powerpc-602.c: Regenerate.
1278 * features/rs6000/powerpc-603.c: Regenerate.
1279 * features/rs6000/powerpc-604.c: Regenerate.
1280 * features/rs6000/powerpc-64.c: Regenerate.
1281 * features/rs6000/powerpc-64l.c: Regenerate.
1282 * features/rs6000/powerpc-7400.c: Regenerate.
1283 * features/rs6000/powerpc-750.c: Regenerate.
1284 * features/rs6000/powerpc-860.c: Regenerate.
1285 * features/rs6000/powerpc-altivec32.c: Regenerate.
1286 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1287 * features/rs6000/powerpc-altivec64.c: Regenerate.
1288 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1289 * features/rs6000/powerpc-e500.c: Regenerate.
1290 * features/rs6000/powerpc-e500l.c: Regenerate.
1291 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1292 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1293 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1294 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1295 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1296 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1297 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1298 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1299 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1300 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1301 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1302 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1303 * features/rs6000/powerpc-vsx32.c: Regenerate.
1304 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1305 * features/rs6000/powerpc-vsx64.c: Regenerate.
1306 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1307 * features/rs6000/rs6000.c: Regenerate.
1308 * features/rx.c: Regenerate.
1309 * features/s390-gs-linux64.c: Regenerate.
1310 * features/s390-linux32.c: Regenerate.
1311 * features/s390-linux32v1.c: Regenerate.
1312 * features/s390-linux32v2.c: Regenerate.
1313 * features/s390-linux64.c: Regenerate.
1314 * features/s390-linux64v1.c: Regenerate.
1315 * features/s390-linux64v2.c: Regenerate.
1316 * features/s390-te-linux64.c: Regenerate.
1317 * features/s390-tevx-linux64.c: Regenerate.
1318 * features/s390-vx-linux64.c: Regenerate.
1319 * features/s390x-gs-linux64.c: Regenerate.
1320 * features/s390x-linux64.c: Regenerate.
1321 * features/s390x-linux64v1.c: Regenerate.
1322 * features/s390x-linux64v2.c: Regenerate.
1323 * features/s390x-te-linux64.c: Regenerate.
1324 * features/s390x-tevx-linux64.c: Regenerate.
1325 * features/s390x-vx-linux64.c: Regenerate.
1326 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1327 from allocate_target_description.
1328 * target-descriptions.c (allocate_target_description): Update
1329 return type.
1330 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1331 allocate_target_description.
1332
485c47e5
TT
13332020-10-07 Tom Tromey <tromey@adacore.com>
1334
1335 * unittests/search-memory-selftests.c: New file.
1336 * Makefile.in (SELFTESTS_SRCS): Add
1337 unittests/search-memory-selftests.c.
1338
3a135a91
TT
13392020-10-07 Tom Tromey <tromey@adacore.com>
1340
1341 PR gdb/16930:
1342 * findcmd.c (_initialize_mem_search): Mention that the range is
1343 inclusive.
1344
4a72de73
TT
13452020-10-07 Tom Tromey <tromey@adacore.com>
1346
1347 * target.h (simple_search_memory): Don't declare.
1348 * target.c (simple_search_memory): Move to gdbsupport.
1349 (default_search_memory): Update.
1350 * remote.c (remote_target::search_memory): Update.
1351
a038ffd8
SM
13522020-10-07 Simon Marchi <simon.marchi@efficios.com>
1353
1354 * Makefile.in (COMPILE): Add CXXFLAGS.
1355 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1356 (check-headers): Add CXXFLAGS.
1357
cc463201
AK
13582020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1359
1360 * arc-linux-tdep.h: New file.
1361 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1362 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1363 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1364 arc_linux_gregset, arc_linux_v2_regset,
1365 arc_linux_iterate_over_regset_sections,
1366 arc_linux_core_read_description): Implement.
1367 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1368 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1369 (arc_gdbarch_features_create): Add.
1370 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1371
e4bd363f
SV
13722020-10-07 Shahab Vahedi <shahab@synopsys.com>
1373
1374 * arch/arc.h: Rename "arc_gdbarch_features" to
1375 "arc_arch_features".
1376 * arc-tdep.h: Likewise.
1377 * arc-tdep.c: Likewise.
1378
b68bef99
TBA
13792020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1380
1381 * infcmd.c (attach_command): Remove the redundant call to
1382 `clear_proceed_status`.
1383
4641551a
KR
13842020-10-07 Kamil Rytarowski <n54@gmx.com>
1385
1386 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1387
91e5e8db
KR
13882020-10-07 Kamil Rytarowski <n54@gmx.com>
1389
1390 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1391 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1392 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1393
64c03bdb
SM
13942020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1395
1396 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1397 (_initialize_break_catch_sig): Don't allocate array.
1398
31a8f60f
AB
13992020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1400
1401 * symtab.c (find_pc_line): Return unmapped addresses when the
1402 requested address is also unmapped.
1403
9e6dbd8b
SM
14042020-10-05 Simon Marchi <simon.marchi@efficios.com>
1405
1406 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1407 tui/tui-out.h.
1408
a1d217e8
SM
14092020-10-05 Simon Marchi <simon.marchi@efficios.com>
1410
1411 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1412 type::is_vector instead of TYPE_VECTOR.
1413
7d144117
SM
14142020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1415
1416 * auto-load.c (auto_load_objfile_script_1): Don't use
1417 debugfile_holder as temporary variable when stripping drive
1418 letter.
1419
cd096ec8
HD
14202020-10-05 Hannes Domani <ssbssa@yahoo.de>
1421
1422 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1423 Add TYPE_CODE_COMPLEX.
1424 (amd64_windows_return_value): Fix types returned via XMM0.
1425
b58e7f72
AH
14262020-10-05 Alan Hayward <alan.hayward@arm.com>
1427
1428 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1429 AArch64/ARM maintainers.
1430
8d378f27
SM
14312020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1432
1433 * NEWS: Mention set/show debug event-loop.
1434
d5519913
TT
14352020-10-02 Tom Tromey <tromey@adacore.com>
1436
1437 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1438 REG_EXTENDED.
1439
18b67edc
SM
14402020-10-02 Simon Marchi <simon.marchi@efficios.com>
1441
1442 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1443 * procfs.c (procfs_inferior_created): Remove.
1444 (_initialize_procfs): Don't register procfs_inferior_created.
1445
6b01403b
SM
14462020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1447
1448 * async-event.c (invoke_async_signal_handlers): Add debug
1449 print.
1450 (check_async_event_handlers): Likewise.
1451 * event-top.c (show_debug_event_loop): New function.
1452 (_initialize_event_top): Register "set debug event-loop"
1453 setting.
1454
ba988419
SM
14552020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1456
1457 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1458 * debug.h: Remove.
1459 * infrun.c: Include gdbsupport/common-debug.h.
1460 * linux-nat.c: Likewise.
1461
db20ebdf
SM
14622020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1463
1464 * async-event.h (create_async_signal_handler): Add name
1465 parameter.
1466 (create_async_event_handler): Likewise.
1467 * async-event.c (struct async_signal_handler) <name>: New field.
1468 (struct async_event_handler) <name>: New field.
1469 (create_async_signal_handler): Assign name.
1470 (create_async_event_handler): Assign name.
1471 * event-top.c (async_init_signals): Pass name when creating
1472 handler.
1473 * infrun.c (_initialize_infrun): Likewise.
1474 * record-btrace.c (record_btrace_push_target): Likewise.
1475 * record-full.c (record_full_open): Likewise.
1476 * remote-notif.c (remote_notif_state_allocate): Likewise.
1477 * remote.c (remote_target::open_1): Likewise.
1478 * tui/tui-win.c (tui_initialize_win): Likewise.
1479
2554f6f5
SM
14802020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1481
1482 * async-event.c (initialize_async_signal_handlers): Pass name to
1483 add_file_handler
1484 * event-top.c (ui_register_input_event_handler): Likewise.
1485 * linux-nat.c (linux_nat_target::async): Likewise.
1486 * run-on-main-thread.c (_initialize_run_on_main_thread):
1487 Likewise
1488 * ser-base.c (reschedule): Likewise.
1489 (ser_base_async): Likewise.
1490 * tui/tui-io.c: Likewise.
1491 * top.h (struct ui) <num>: New field.
1492 * top.c (highest_ui_num): New variable.
1493 (ui::ui): Initialize num.
1494
a7aba266
SM
14952020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1496
1497 * observable.h <inferior_created>: Remove parameters. Update all
1498 listeners.
1499 * inferior.h (post_create_inferior): Remove target parameter.
1500 Update all callers.
1501
048fde1e 15022020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1503
1504 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1505 and DW_MACRO_undef_strx.
1506 (dwarf_decode_macros): Likewise
1507 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1508 which is the value of DW_AT_str_offsets_base.
1509 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1510 str_offsets_base.
1511
064280be
KR
15122020-10-01 Kamil Rytarowski <n54@gmx.com>
1513
1514 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1515
6ff33035
KR
15162020-10-01 Kamil Rytarowski <n54@gmx.com>
1517
1518 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1519 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1520
1eb6eb79
KR
15212020-10-01 Kamil Rytarowski <n54@gmx.com>
1522
1523 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1524
95eb9e54
TV
15252020-09-30 Tom de Vries <tdevries@suse.de>
1526
1527 PR symtab/26683
1528 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1529
cae21f8e
TT
15302020-09-30 Tom Tromey <tromey@adacore.com>
1531
1532 * dwarf2/read.c (handle_variant): Use constant_value.
1533
529908cb
TT
15342020-09-29 Tom Tromey <tom@tromey.com>
1535
1536 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1537 (read_file_scope, dwarf2_get_pc_bounds)
1538 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1539 (read_structure_type, handle_struct_member_die)
1540 (read_enumeration_type, read_array_type, read_set_type)
1541 (read_tag_pointer_type, read_tag_reference_type)
1542 (read_subroutine_type, read_base_type, read_subrange_type)
1543 (read_full_die_1, partial_die_info::read)
1544 (partial_die_info::read, by, new_symbol)
1545 (dwarf2_const_value_data, dwarf2_const_value_attr)
1546 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1547 (prepare_one_comp_unit): Update.
1548 * dwarf2/attribute.h (DW_UNSND): Remove.
1549
c45bc3f8
TT
15502020-09-29 Tom Tromey <tom@tromey.com>
1551
1552 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1553 (read_subroutine_type, partial_die_info::read)
1554 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1555 (dwarf2_add_member_fn): Update.
1556 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1557 * dwarf2/attribute.c (attribute::as_boolean): New method.
1558
23dca5c3
TT
15592020-09-29 Tom Tromey <tom@tromey.com>
1560
1561 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1562 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1563 method.
1564 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1565
52c14d11
TT
15662020-09-29 Tom Tromey <tom@tromey.com>
1567
1568 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1569 the attribute's form.
1570
e8e5c158
TT
15712020-09-29 Tom Tromey <tom@tromey.com>
1572
1573 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1574 (dwarf2_add_member_fn): Update.
1575 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1576 * dwarf2/attribute.c (attribute::defaulted): New method, from
1577 is_valid_DW_AT_defaulted.
1578
d4df075e
TT
15792020-09-29 Tom Tromey <tom@tromey.com>
1580
1581 * dwarf2/read.c (dw2_get_file_names_reader)
1582 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1583 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1584 (dwarf2_symbol_mark_computed): Use as_unsigned.
1585 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1586 method.
1587 <form_is_section_offset>: Update comment.
1588
bf23a268
TT
15892020-09-29 Tom Tromey <tom@tromey.com>
1590
1591 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1592 dwarf2_default_access_attribute. Look up attribute.
1593 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1594 Update.
1595
7a5f294d
TT
15962020-09-29 Tom Tromey <tom@tromey.com>
1597
1598 * dwarf2/read.c (skip_one_die): Update.
1599 (read_full_die_1): Change how reprocessing is done.
1600 (partial_die_info::read): Update.
1601 (read_attribute_value): Remove need_reprocess parameter.
1602 (read_attribute): Likewise.
1603 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1604 New method.
1605
36d378cf
TT
16062020-09-29 Tom Tromey <tom@tromey.com>
1607
1608 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1609 (dwarf2_const_value_attr, dump_die_shallow)
1610 (dwarf2_fetch_constant_bytes): Update.
1611 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1612 comment.
1613 <set_address>: New method.
1614 (DW_ADDR): Remove.
1615 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1616 (attribute::as_string, attribute::as_address): Add assert.
1617
fe56917a
TT
16182020-09-29 Tom Tromey <tom@tromey.com>
1619
1620 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1621 (read_attribute_reprocess, read_attribute_value): Update.
1622 (read_attribute): Clear requires_reprocessing.
1623 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1624 form_requires_reprocessing>: New methods.
1625 <string_init>: Clear requires_reprocessing.
1626 <set_unsigned_reprocess>: New method.
1627 <name>: Shrink by one bit.
1628 <requires_reprocessing>: New member.
1629 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1630 method.
1631
414ad644
TT
16322020-09-29 Tom Tromey <tom@tromey.com>
1633
1634 * dwarf2/read.c (read_attribute_value): Update.
1635 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1636 set_unsigned>: New methods.
1637 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1638
1bc397c5
TT
16392020-09-29 Tom Tromey <tom@tromey.com>
1640
1641 * dwarf2/read.c (get_alignment, read_array_order)
1642 (read_attribute_value, dwarf2_const_value_attr)
1643 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1644 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1645 New methods.
1646 (DW_SND): Remove.
1647
630ed6b9
TT
16482020-09-29 Tom Tromey <tom@tromey.com>
1649
1650 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1651 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1652 Update.
1653 * dwarf2/attribute.h (struct attribute) <as_signature,
1654 set_signature>: New methods.
1655 (DW_SIGNATURE): Remove.
1656
9d2246fc
TT
16572020-09-29 Tom Tromey <tom@tromey.com>
1658
1659 * dwarf2/read.c (read_call_site_scope)
1660 (handle_data_member_location, dwarf2_add_member_fn)
1661 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1662 (partial_die_info::read, read_attribute_value)
1663 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1664 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1665 (dwarf2_symbol_mark_computed): Update.
1666 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1667 methods.
1668 (DW_BLOCK): Remove.
1669 * dwarf2/attribute.c (attribute::form_is_block): Add
1670 DW_FORM_data16.
1671
c6481205
TT
16722020-09-29 Tom Tromey <tom@tromey.com>
1673
1674 * dwarf2/read.c (read_cutu_die_from_dwo)
1675 (read_attribute_reprocess, read_attribute_value, read_attribute)
1676 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1677 (dwarf2_fetch_constant_bytes): Update.
1678 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1679 <set_string_noncanonical, set_string_canonical>: New methods.
1680 <string_is_canonical>: Update comment.
1681 <canonical_string_p>: Add assert.
1682 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1683 * dwarf2/attribute.c (attribute::form_is_string): New method.
1684 (attribute::string): Use it.
1685
3b64bf15
TT
16862020-09-29 Tom Tromey <tom@tromey.com>
1687
1688 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1689 (dump_die_shallow): Use canonical_string_p.
1690 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1691 method.
1692
2c830f54
TT
16932020-09-29 Tom Tromey <tom@tromey.com>
1694
1695 * dwarf2/read.c (partial_die_info::read)
1696 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1697 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1698 attribute::as_string.
1699
6c412691
TT
17002020-09-29 Tom Tromey <tom@tromey.com>
1701
1702 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1703 DW_ADDR.
1704 (attribute::string): Don't use DW_STRING.
1705 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1706 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1707
95f982e5
TT
17082020-09-29 Tom Tromey <tom@tromey.com>
1709
1710 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1711 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1712 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1713 * dwarf2/attribute.h (struct attribute): Rename methods.
1714 * dwarf2/attribute.c (attribute::as_address): Rename from
1715 value_as_address.
1716 (attribute::as_string): Rename from value_as_string.
1717
f800b00e
TT
17182020-09-29 Tom Tromey <tom@tromey.com>
1719
1720 * dwarf2/read.c (partial_die_info::read) <case
1721 DW_AT_linkage_name>: Use value_as_string.
1722 (dwarf2_string_attr): Use value_as_string.
1723 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1724 method.
1725 * dwarf2/attribute.c (attribute::value_as_string): New method.
1726
de38d64a
PA
17272020-09-29 Pedro Alves <pedro@palves.net>
1728
1729 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1730 defined before using '#pragma GCC diagnostic' instead of checking
1731 __clang__.
1732
9aed480c
TT
17332020-09-28 Tom Tromey <tom@tromey.com>
1734
1735 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1736 (handle_signal_stop): Update.
1737 * procfs.c (procfs_target::insert_watchpoint): Update.
1738 * target.h (target_have_steppable_watchpoint): Now a function.
1739
8a3ecb79
TT
17402020-09-28 Tom Tromey <tom@tromey.com>
1741
1742 * infrun.c (set_schedlock_func): Update.
1743 * target.h (target_can_lock_scheduler): Now a function.
1744
55f6301a
TT
17452020-09-28 Tom Tromey <tom@tromey.com>
1746
1747 * inferior.h (class inferior) <has_execution>: Update.
1748 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1749 * valops.c (find_function_in_inferior)
1750 (value_allocate_space_in_inferior): Update.
1751 * top.c (kill_or_detach): Update.
1752 * target.c (target_preopen, set_target_permissions): Update.
1753 (target_has_execution_current): Remove.
1754 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1755 Update.
1756 * solib.c (update_solib_list, reload_shared_libraries): Update.
1757 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1758 * solib-dsbt.c (enable_break): Update.
1759 * score-tdep.c (score7_fetch_inst): Update.
1760 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1761 Update.
1762 * remote.c (remote_target::start_remote)
1763 (remote_target::remote_check_symbols, remote_target::open_1)
1764 (remote_target::remote_detach_1, remote_target::verify_memory)
1765 (remote_target::xfer_partial, remote_target::read_description)
1766 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1767 * record-full.c (record_full_open_1): Update.
1768 * record-btrace.c (record_btrace_target_open): Update.
1769 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1770 (value_nsstring): Update.
1771 * linux-thread-db.c (add_thread_db_info)
1772 (thread_db_find_new_threads_silently, check_thread_db_callback)
1773 (try_thread_db_load_1, record_thread): Update.
1774 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1775 Update.
1776 * linux-fork.c (checkpoint_command): Update.
1777 * infrun.c (set_non_stop, set_observer_mode)
1778 (check_multi_target_resumption, for_each_just_stopped_thread)
1779 (maybe_remove_breakpoints, normal_stop)
1780 (class infcall_suspend_state): Update.
1781 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1782 (info_program_command, attach_command): Update.
1783 * infcall.c (call_function_by_hand_dummy): Update.
1784 * inf-loop.c (inferior_event_handler): Update.
1785 * gcore.c (gcore_command, derive_heap_segment): Update.
1786 * exec.c (exec_file_command): Update.
1787 * eval.c (evaluate_subexp): Update.
1788 * compile/compile.c (compile_to_object): Update.
1789 * cli/cli-dump.c (restore_command): Update.
1790 * breakpoint.c (update_watchpoint)
1791 (update_inserted_breakpoint_locations)
1792 (insert_breakpoint_locations, get_bpstat_thread): Update.
1793 * target.h (target_has_execution): Remove macro.
1794 (target_has_execution_current): Don't declare.
1795 (target_has_execution): Rename from target_has_execution_1. Add
1796 argument default.
1797
05374cfd
TT
17982020-09-28 Tom Tromey <tom@tromey.com>
1799
1800 * mi/mi-main.c (exec_reverse_continue)
1801 (mi_cmd_list_target_features): Update.
1802 * infrun.c (set_exec_direction_func): Update.
1803 * target.c (default_execution_direction): Update.
1804 * reverse.c (exec_reverse_once): Update.
1805 * target.h (target_can_execute_reverse): Now a function.
1806
9dccd06e
TT
18072020-09-28 Tom Tromey <tom@tromey.com>
1808
1809 * tui/tui-regs.c (tui_get_register)
1810 (tui_data_window::show_registers): Update.
1811 * thread.c (scoped_restore_current_thread::restore)
1812 (scoped_restore_current_thread::scoped_restore_current_thread):
1813 Update.
1814 * regcache-dump.c (regcache_print): Update.
1815 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1816 Update.
1817 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1818 * mep-tdep.c (current_me_module, current_options): Update.
1819 * linux-thread-db.c (thread_db_load): Update.
1820 * infcmd.c (registers_info, info_vector_command)
1821 (info_float_command): Update.
1822 * ia64-tdep.c (ia64_frame_prev_register)
1823 (ia64_sigtramp_frame_prev_register): Update.
1824 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1825 * gcore.c (derive_stack_segment): Update.
1826 * frame.c (get_current_frame, has_stack_frames): Update.
1827 * findvar.c (language_defn::read_var_value): Update.
1828 * arm-tdep.c (arm_pc_is_thumb): Update.
1829 * target.c (target_has_registers): Rename from
1830 target_has_registers_1.
1831 * target.h (target_has_registers): Remove macro.
1832 (target_has_registers): Rename from target_has_registers_1.
1833
841de120
TT
18342020-09-28 Tom Tromey <tom@tromey.com>
1835
1836 * windows-tdep.c (tlb_make_value): Update.
1837 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1838 * thread.c (scoped_restore_current_thread::restore)
1839 (scoped_restore_current_thread::scoped_restore_current_thread)
1840 (thread_command): Update.
1841 * stack.c (backtrace_command_1, frame_apply_level_command)
1842 (frame_apply_all_command, frame_apply_command): Update.
1843 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1844 Update.
1845 * gcore.c (derive_stack_segment): Update.
1846 * frame.c (get_current_frame, has_stack_frames): Update.
1847 * auxv.c (info_auxv_command): Update.
1848 * ada-tasks.c (ada_build_task_list): Update.
1849 * target.c (target_has_stack): Rename from target_has_stack_1.
1850 * target.h (target_has_stack): Remove macro.
1851 (target_has_stack): Rename from target_has_stack_1.
1852
a739972c
TT
18532020-09-28 Tom Tromey <tom@tromey.com>
1854
1855 * target.c (target_has_memory): Rename from target_has_memory_1.
1856 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1857 * thread.c (scoped_restore_current_thread::restore)
1858 (scoped_restore_current_thread::scoped_restore_current_thread):
1859 Update.
1860 * frame.c (get_current_frame, has_stack_frames): Update.
1861 * target.h (target_has_memory): Remove macro.
1862 (target_has_memory): Rename from target_has_memory_1.
1863
5b8a4776
TT
18642020-09-28 Tom Tromey <tom@tromey.com>
1865
1866 * target.c (target_has_all_memory_1): Remove.
1867 * target.h (target_has_all_memory): Remove define.
1868 (target_has_all_memory_1): Don't declare.
1869
bd356ec6
SM
18702020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1871
1872 * ser-base.c: Adjust comments formatting.
1873
2c72d5e5
TT
18742020-09-27 Tom Tromey <tom@tromey.com>
1875
1876 PR tui/25342:
1877 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1878
35a98237
TT
18792020-09-27 Tom Tromey <tom@tromey.com>
1880
1881 PR tui/25342:
1882 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1883
9e820dec
TT
18842020-09-27 Tom Tromey <tom@tromey.com>
1885
1886 * unittests/tui-selftests.c: Update.
1887 * tui/tui-winsource.h (struct tui_source_window_base)
1888 <extra_margin, show_line_number, refresh_pad>: New methods.
1889 <m_max_length, m_pad>: New members.
1890 (tui_copy_source_line): Update.
1891 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1892 first_col, line_width, ndigits parameters. Add length.
1893 (tui_source_window_base::show_source_line): Write to pad. Line
1894 number now 0-based.
1895 (tui_source_window_base::refresh_pad): New method.
1896 (tui_source_window_base::show_source_content): Write to pad. Call
1897 refresh_pad.
1898 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1899 not refill.
1900 (tui_source_window_base::update_exec_info): Call
1901 show_line_number.
1902 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1903 method.
1904 <m_digits>: New member.
1905 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1906 and m_max_length.
1907 (tui_source_window::show_line_number): New method.
1908 * tui/tui-io.h (tui_puts): Fix comment.
1909 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1910 m_max_length.
1911
c15c15c8
TT
19122020-09-27 Tom Tromey <tom@tromey.com>
1913
1914 * tui/tui-winsource.c
1915 (tui_source_window_base::set_is_exec_point_at): Don't call
1916 show_source_line.
1917
149830c1
TT
19182020-09-27 Tom Tromey <tom@tromey.com>
1919
1920 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1921 method.
1922 <erase>: Update.
1923 <cursor_x, cursor_y>: Remove.
1924 <m_inner_window>: New member.
1925 (tui_py_window::rerender): Create inner window.
1926 (tui_py_window::output): Write to inner window.
1927
8f9929bb
GR
19282020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1929
1930 PR python/26586
1931 * cli/cli-script.c (execute_control_commands): don't set
1932 instream to nullptr here as this breaks the from_tty argument
1933 to gdb.execute in Python.
1934 (execute_user_command): set instream to nullptr here instead.
1935
956bdb59
SM
19362020-09-25 Simon Marchi <simon.marchi@efficios.com>
1937
1938 * infrun.h (infrun_debug_printf): Fix formatting.
1939 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1940
3b93626b
SJ
19412020-09-25 Saagar Jha <saagar@saagarjha.com>
1942
1943 * compile/compile-object-load.h (struct munmap_list): Add
1944 explicitly-defined move constructor.
1945
b551a89f
TT
19462020-09-24 Tom Tromey <tromey@adacore.com>
1947
1948 PR tui/26638:
1949 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1950 method.
1951 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1952 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1953 (tui_prev_win): Rewrite.
1954
99bb393f
HD
19552020-09-23 Hannes Domani <ssbssa@yahoo.de>
1956
1957 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1958 in WOW64 processes as SIGINT.
1959 * nat/windows-nat.h: Make wow64_process a shared variable.
1960 * windows-nat.c: Remove static wow64_process variable.
1961
20a5fcbd
TT
19622020-09-23 Tom Tromey <tom@tromey.com>
1963
1964 PR symtab/25470:
1965 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1966 offset and bit size.
1967 * printcmd.c (print_scalar_formatted): Handle zero-length
1968 integer.
1969 (print_scalar_formatted): Use bit_size_differs_p.
1970 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1971 constant.
1972 (union type_specific): <int_stuff>: New member.
1973 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1974 methods.
1975 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1976 TYPE_SPECIFIC_FIELD.
1977 (recursive_dump_type, copy_type_recursive): Update.
1978 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1979 DW_AT_data_bit_offset.
1980
bac51ab7
TT
19812020-09-23 Tom Tromey <tom@tromey.com>
1982
1983 * utils.h (class gdb_argv): Add move operators.
1984 <append>: New methods.
1985 * compile/compile.c (build_argc_argv): Remove.
1986 (compile_args_argc): Remove.
1987 (compile_args_argv): Change type.
1988 (set_compile_args): Simplify.
1989 (append_args): Remove.
1990 (filter_args): Remove argcp parameter.
1991 (get_args): Return gdb_argv. Simplify.
1992 (compile_to_object): Update.
1993
92677124
TT
19942020-09-23 Tom Tromey <tom@tromey.com>
1995
1996 * compile/compile-object-run.c (do_module_cleanup)
1997 <~do_module_cleanup> :Remove.
1998 (do_module_cleanup): Update.
1999 * compile/compile-object-load.h (struct munmap_list): Add move
2000 assignment operator.
2001 <source_file>: Now a std::string.
2002 <munmap_list>: Rename. No longer a pointer.
2003 * compile/compile-object-load.c (struct setup_sections_data): Add
2004 constructor.
2005 <setup_one_section>: Declare.
2006 <munmap_list>: Move earlier.
2007 <m_bfd>: New member.
2008 <m_last_size, m_last_section_first, m_last_prot,
2009 m_last_max_alignment>: Rename, add initializers where needed.
2010 (setup_sections_data::setup_one_section): Rename from
2011 setup_sections. Update.
2012 (compile_object_load): Update. Don't use bfd_map_over_sections.
2013
e616f60a
TT
20142020-09-23 Tom Tromey <tom@tromey.com>
2015
2016 * compile/compile-object-run.c (struct do_module_cleanup): Add
2017 parameters to constructor. Update destructor.
2018 <source_file, scope, scope_data, out_value_type, out_value_addr,
2019 munmap_list_head, objfile_name_string>: Remove.
2020 <module>: New member.
2021 (do_module_cleanup): Update.
2022 (compile_object_run): Update.
2023
e947a848
TT
20242020-09-23 Tom Tromey <tom@tromey.com>
2025
2026 * compile/compile.c (eval_compile_command): Update.
2027 * compile/compile-object-run.h (compile_object_run): Take a
2028 compile_module_up.
2029 * compile/compile-object-run.c (compile_object_run): Take a
2030 compile_module_up.
2031 * compile/compile-object-load.h (struct compile_module): Add
2032 constructor, destructor.
2033 (compile_module_up): New typedef.
2034 (compile_object_load): Return compile_object_up.
2035 * compile/compile-object-load.c (compile_object_load): Return
2036 compile_module_up.
2037
0dbf6ee6
TT
20382020-09-23 Tom Tromey <tom@tromey.com>
2039
2040 * compile/compile-object-run.c (struct do_module_cleanup): Add
2041 constructor, destructor.
2042 <objfile_name_string>: Don't use struct hack.
2043 (do_module_cleanup): Use delete.
2044 (compile_object_run): Use new.
2045
ebe824f5
TT
20462020-09-23 Tom Tromey <tom@tromey.com>
2047
2048 * compile/compile-cplus-types.c
2049 (compile_cplus_convert_struct_or_union): Use std::vector.
2050 (compile_cplus_convert_func): Likewise.
2051 * compile/compile-c-types.c (convert_func): Use std::vector.
2052
5dd918d9
TT
20532020-09-21 Tom Tromey <tromey@adacore.com>
2054
2055 * sparc-tdep.c (sparc32_skip_prologue): Use
2056 skip_prologue_using_sal.
2057
5486c517
TT
20582020-09-19 Tom Tromey <tom@tromey.com>
2059
2060 * symfile.c (add_section_size_callback): Remove.
2061 (load_one_section): Rename from load_section_callback. Change
2062 parameters.
2063 (generic_load): Use foreach.
2064
8a6bb1d1
TT
20652020-09-19 Tom Tromey <tom@tromey.com>
2066
2067 * exec.c (add_to_section_table): Remove.
2068 (build_section_table): Use foreach.
2069
08f93a1a
TT
20702020-09-19 Tom Tromey <tom@tromey.com>
2071
2072 * elfread.c (elf_locate_sections): Change parameters.
2073 (elf_symfile_read): Use foreach.
2074
03cd72b8
TT
20752020-09-19 Tom Tromey <tom@tromey.com>
2076
2077 * cli/cli-dump.c (struct callback_data): Remove.
2078 (restore_one_section): Rename from restore_section_callback.
2079 Change parameters.
2080 (restore_binary_file): Change parameters.
2081 (restore_command): Use foreach.
2082
f4f2b85f
TT
20832020-09-19 Tom Tromey <tom@tromey.com>
2084
2085 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2086 (gcore_copy_callback): Likewise.
2087 (gcore_memory_sections): Use foreach.
2088
b35c1d1c
TT
20892020-09-19 Tom Tromey <tom@tromey.com>
2090
2091 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2092 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2093 parameters.
2094 (generic_elf_osabi_sniffer): Use foreach.
2095 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2096 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2097
5bb6e9dd
TT
20982020-09-19 Tom Tromey <tom@tromey.com>
2099
2100 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2101 (dwarf2_get_dwz_file): Use foreach.
2102 (dwarf2_locate_dwo_sections): Change parameters.
2103 (open_and_init_dwo_file): Use foreach.
2104 (dwarf2_locate_common_dwp_sections): Change parameters.
2105 (open_and_init_dwp_file): Use foreach.
2106
ad7277da
TT
21072020-09-19 Tom Tromey <tom@tromey.com>
2108
2109 * symfile.h: (find_lowest_section): Don't declare.
2110 * symfile.c (find_lowest_section): Now static. Change
2111 parameters.
2112 (struct place_section_arg): Remove.
2113 (place_section): Change parameters.
2114 (addr_info_make_relative): Use foreach.
2115 (symfile_dummy_outputs): Remove.
2116 (default_symfile_relocate): Use foreach.
2117
cb814f2e
TT
21182020-09-19 Tom Tromey <tom@tromey.com>
2119
2120 * objfiles.c (add_to_objfile_sections): Rename from
2121 add_to_objfile_sections_full.
2122 (add_to_objfile_sections): Remove.
2123 (build_objfile_section_table): Use foreach.
2124
3cabfd26
TT
21252020-09-19 Tom Tromey <tom@tromey.com>
2126
2127 * stap-probe.c (get_stap_base_address_1): Remove.
2128 (get_stap_base_address): Use foreach.
2129
1ce51eb5
TT
21302020-09-19 Tom Tromey <tom@tromey.com>
2131
2132 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2133 parameters.
2134 (gdb_bfd_close_or_warn): Use foreach.
2135
a190fabb
TT
21362020-09-19 Tom Tromey <tom@tromey.com>
2137
2138 * corelow.c (add_to_thread_list): Change parameters.
2139 (core_target_open): Use foreach.
2140
cafb0d81
TT
21412020-09-19 Tom Tromey <tom@tromey.com>
2142
2143 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2144 existing function.
2145
c8d5abea
AB
21462020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2147
2148 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2149 for arrays.
2150
6d816919
AB
21512020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2152
2153 * eval.c: Remove 'f-lang.h' include.
2154 (value_f90_subarray): Moved to f-lang.c.
2155 (eval_call): Renamed to...
2156 (evaluate_subexp_do_call): ...this, is no longer static, header
2157 comment moved into header file.
2158 (evaluate_funcall): Update call to eval_call.
2159 (skip_undetermined_arglist): Moved to f-lang.c.
2160 (fortran_value_subarray): Likewise.
2161 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2162 moved to evaluate_subexp_f.
2163 (calc_f77_array_dims): Moved to f-lang.c
2164 * expprint.c (print_subexp_funcall): New function.
2165 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2166 moved to print_subexp_f, OP_FUNCALL uses new function.
2167 (dump_subexp_body_funcall): New function.
2168 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2169 moved to dump_subexp_f, OP_FUNCALL uses new function.
2170 * expression.h (evaluate_subexp_do_call): Declare.
2171 * f-lang.c (value_f90_subarray): Moved from eval.c.
2172 (skip_undetermined_arglist): Likewise.
2173 (calc_f77_array_dims): Likewise.
2174 (fortran_value_subarray): Likewise.
2175 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2176 (operator_length_f): Likewise.
2177 (print_subexp_f): Likewise.
2178 (dump_subexp_body_f): Likewise.
2179 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2180 declaration of this operation to here.
2181 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2182 support moved to operator_length_f.
2183 * parser-defs.h (dump_subexp_body_funcall): Declare.
2184 (print_subexp_funcall): Declare.
2185 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2186 fortran-operator.def.
2187
8c37706a
AB
21882020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2189
2190 * eval.c (fortran_value_subarray): New function, content is taken
2191 from...
2192 (evaluate_subexp_standard): ...here, in two places. Now arrays
2193 and strings both call the new function.
2194 (calc_f77_array_dims): Add header comment, handle strings.
2195
14f9473c
VC
21962020-09-18 Victor Collod <vcollod@nvidia.com>
2197
2198 PR gdb/26635
2199 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2200 (i386_analyze_prologue): Call i386_skip_endbr.
2201
b60cea74
TT
22022020-09-18 Tom Tromey <tromey@adacore.com>
2203
2204 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2205 (windows_nat_target::wait): Update.
2206 * target/wait.h (enum target_wait_flag): New. Use
2207 DEF_ENUM_FLAGS_TYPE.
2208 * target/target.h (target_wait): Change type of options.
2209 * target.h (target_options_to_string, default_target_wait):
2210 Update.
2211 (struct target_ops) <wait>: Change type of options.
2212 * target.c (target_wait, default_target_wait, do_option): Change
2213 type of "options".
2214 (target_options_to_string): Likewise.
2215 * target-delegates.c: Rebuild.
2216 * target-debug.h (target_debug_print_target_wait_flags): Rename
2217 from target_debug_print_options.
2218 * sol-thread.c (class sol_thread_target) <wait>: Update.
2219 (sol_thread_target::wait): Update.
2220 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2221 (rs6000_nat_target::wait): Update.
2222 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2223 Update.
2224 (remote_target::wait_ns, remote_target::wait_as): Change type of
2225 "options".
2226 (remote_target::wait): Update.
2227 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2228 (gdbsim_target::wait): Update.
2229 * record-full.c (class record_full_base_target) <wait>: Update.
2230 (record_full_wait_1): Change type of "options".
2231 (record_full_base_target::wait): Update.
2232 * record-btrace.c (class record_btrace_target) <wait>: Update.
2233 (record_btrace_target::wait): Update.
2234 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2235 Update.
2236 (ravenscar_thread_target::wait): Update.
2237 * procfs.c (class procfs_target) <wait>: Update.
2238 (procfs_target::wait): Update.
2239 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2240 * obsd-nat.c (obsd_nat_target::wait): Update.
2241 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2242 (nto_procfs_target::wait): Update.
2243 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2244 * nbsd-nat.c (nbsd_wait): Change type of "options".
2245 (nbsd_nat_target::wait): Update.
2246 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2247 (thread_db_target::wait): Update.
2248 * linux-nat.h (class linux_nat_target) <wait>: Update.
2249 * linux-nat.c (linux_nat_target::wait): Update.
2250 (linux_nat_wait_1): Update.
2251 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2252 "options".
2253 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2254 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2255 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2256 (go32_nat_target::wait): Update.
2257 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2258 * gnu-nat.c (gnu_nat_target::wait): Update.
2259 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2260 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2261 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2262 * darwin-nat.c (darwin_nat_target::wait): Update.
2263 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2264 (bsd_uthread_target::wait): Update.
2265 * aix-thread.c (class aix_thread_target) <wait>: Update.
2266 (aix_thread_target::wait): Update.
2267
0295dde6
AB
22682020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2269
2270 * compile/compile-object-run.c (create_copied_type_recursive): New
2271 function.
2272 (compile_object_run): Use new function.
2273
d3483b43
JT
22742020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2275
2276 * NEWS: Mention x86_64 Cygwin core file support.
2277
e7d612ad
JT
22782020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2279
2280 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2281 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2282
aff9d387
JT
22832020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2284
62a5151b
JT
2285 * windows-tdep.h: Add prototypes.
2286 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2287 (i386_windows_core_pid_to_str): Move and rename ...
2288 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2289 (windows_core_pid_to_str): ... and here.
2290 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2291
22922020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2293 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2294 (amd64_windows_init_abi_common): ... and register.
2295
7d155da3
JT
22962020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2297
2298 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2299 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2300
e8ef12b9
PA
23012020-09-18 Pedro Alves <pedro@palves.net>
2302
2303 PR gdb/26631
2304 * thread.c (thread_find_command): Switch inferior before calling
2305 target methods.
2306
c1e1314d
TT
23072020-09-17 Tom Tromey <tromey@adacore.com>
2308
2309 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2310 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2311 (tdesc_arch_data_up): New typedef.
2312 (tdesc_use_registers, tdesc_data_alloc): Update.
2313 (tdesc_data_cleanup): Don't declare.
2314 * target-descriptions.c (tdesc_data_alloc): Return a
2315 tdesc_arch_data_up.
2316 (tdesc_arch_data_deleter::operator()): Rename from
2317 tdesc_data_cleanup. Change argument type.
2318 (tdesc_use_registers): Change early_data to an rvalue reference.
2319 (tdesc_use_registers): Don't use delete.
2320 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2321 * s390-tdep.c (s390_gdbarch_init): Update.
2322 * rx-tdep.c (rx_gdbarch_init): Update.
2323 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2324 * riscv-tdep.c (riscv_gdbarch_init): Update.
2325 * or1k-tdep.c (or1k_gdbarch_init): Update.
2326 * nios2-tdep.c (nios2_gdbarch_init): Update.
2327 * nds32-tdep.c (nds32_gdbarch_init): Update.
2328 * mips-tdep.c (mips_gdbarch_init): Update.
2329 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2330 * m68k-tdep.c (m68k_gdbarch_init): Update.
2331 * i386-tdep.c (i386_gdbarch_init): Update.
2332 * arm-tdep.c (arm_gdbarch_init): Update.
2333 * arc-tdep.c (arc_tdesc_init): Update.
2334 (arc_gdbarch_init): Update.
2335 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2336
0363df3d
HD
23372020-09-17 Hannes Domani <ssbssa@yahoo.de>
2338
2339 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2340 for WOW64 processes.
2341
280a9412
TT
23422020-09-17 Tom Tromey <tom@tromey.com>
2343
2344 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2345
6108fd18
TT
23462020-09-17 Tom Tromey <tom@tromey.com>
2347
2348 * value.c (preserve_values): Update.
2349 * python/py-type.c (save_objfile_types): Update.
2350 * guile/scm-type.c (save_objfile_types): Update.
2351 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2352 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2353 * compile/compile-object-run.c (compile_object_run): Update.
2354
fa9b1164
TT
23552020-09-17 Tom Tromey <tom@tromey.com>
2356
2357 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2358 Remove.
2359 <m_table>: Now htab_up.
2360 * typeprint.c (typedef_hash_table::recursively_update)
2361 (typedef_hash_table::add_template_parameters)
2362 (typedef_hash_table::typedef_hash_table): Update.
2363 (typedef_hash_table::~typedef_hash_table): Remove.
2364 (typedef_hash_table::typedef_hash_table)
2365 (typedef_hash_table::find_global_typedef)
2366 (typedef_hash_table::find_typedef): Update.
2367
eb53f105
TT
23682020-09-17 Tom Tromey <tom@tromey.com>
2369
2370 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2371
7a8a5d47
TT
23722020-09-17 Tom Tromey <tom@tromey.com>
2373
2374 * linespec.c (class decode_compound_collector)
2375 <~decode_compound_collector>: Remove.
2376 <m_unique_syms>: Now htab_up.
2377 (decode_compound_collector::operator ()): Update.
2378 (class symtab_collector) <~symtab_collector>: Remove.
2379 <m_symtab_table>: Now htab_up.
2380 (symtab_collector::operator ()): Update.
2381
99032cfc
TT
23822020-09-17 Tom Tromey <tom@tromey.com>
2383
2384 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2385 (filename_seen_cache::clear): Update.
2386 (~filename_seen_cache): Remove.
2387 (filename_seen_cache::seen): Update.
2388 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2389 htab_up.
2390 <~filename_seen_cache>: Remove.
2391 <traverse>: Update.
2392
32580f6d
TT
23932020-09-17 Tom Tromey <tom@tromey.com>
2394
2395 * completer.c (completion_tracker::discard_completions)
2396 (completion_tracker::~completion_tracker)
2397 (completion_tracker::maybe_add_completion)
2398 (completion_tracker::remove_completion)
2399 (completion_tracker::recompute_lowest_common_denominator)
2400 (completion_tracker::build_completion_result): Update.
2401 * completer.h (class completion_tracker) <have_completions>:
2402 Update.
2403 <m_entries_hash>: Now htab_up.
2404
c1fb9836
TT
24052020-09-17 Tom Tromey <tom@tromey.com>
2406
2407 * breakpoint.c (ambiguous_names_p): Use htab_up.
2408
88f07206
TT
24092020-09-17 Tom Tromey <tom@tromey.com>
2410
2411 * auto-load.c (struct auto_load_pspace_info)
2412 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2413 <loaded_script_files, loaded_script_texts>: Change type to
2414 htab_up.
2415 (~auto_load_pspace_info) Remove.
2416 (init_loaded_scripts_info, maybe_add_script_file)
2417 (maybe_add_script_text, auto_load_info_scripts): Update.
2418
9519b2ee
TT
24192020-09-17 Tom Tromey <tromey@adacore.com>
2420
2421 * c-exp.y (name_obstack): Now static.
2422
d2cd4113
CC
24232020-09-17 Chungyi Chi <demonic@csie.io>
2424
2425 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2426
b650a282
SM
24272020-09-16 Simon Marchi <simon.marchi@efficios.com>
2428
2429 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2430 (add_solib_catchpoint): Likewise.
2431 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2432 to bool.
2433 (add_solib_catchpoint): Change int parameter/variable to bool.
2434 (catch_load_or_unload): Likewise.
2435 (init_catchpoint): Likewise.
2436 (create_fork_vfork_event_catchpoint): Likewise.
2437 (catch_fork_command_1): Likewise.
2438 (catch_exec_command_1): Likewise.
2439
4d0bcfcf
SM
24402020-09-16 Simon Marchi <simon.marchi@efficios.com>
2441
2442 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2443 Change instance_flags to m_instance_flags.
2444
fe830662
TT
24452020-09-16 Tom Tromey <tromey@adacore.com>
2446
2447 PR gdb/26598:
2448 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2449
fe5ddfc3
JB
24502020-09-16 John Baldwin <jhb@FreeBSD.org>
2451
2452 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2453 PL_FLAG_EXEC.
2454 (fbsd_nat_target::insert_exec_catchpoint)
2455 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2456 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2457 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2458
e911c666
JB
24592020-09-16 John Baldwin <jhb@FreeBSD.org>
2460
2461 * configure.ac: Remove check for kinfo_getvmmap().
2462 * configure, config.in: Regenerate.
2463 * fbsd-nat.c (fbsd_read_mapping): Remove
2464 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2465 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2466 kinfo_get_vmmap() are always present.
2467
1f17d372
JB
24682020-09-16 John Baldwin <jhb@FreeBSD.org>
2469
2470 * fbsd-nat.c: Always include support for
2471 TARGET_OBJECT_SIGNAL_INFO.
2472
bcb1da7f
JB
24732020-09-16 John Baldwin <jhb@FreeBSD.org>
2474
2475 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2476 sysctl and remove procfs fallback.
2477
5515f729
JB
24782020-09-16 John Baldwin <jhb@FreeBSD.org>
2479
2480 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2481 * fbsd-nat.h: Likewise.
2482
da1df1db
TBA
24832020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2484
2485 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2486 argument.
2487
0e25e767
AB
24882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2489
2490 * ada-lang.c (ada_language_data): Delete.
2491 (ada_language): Remove references to ada_language_data.
2492 * c-lang.c (c_language_data): Delete.
2493 (c_language): Remove references to c_language_data.
2494 (cplus_language_data): Delete.
2495 (cplus_language): Remove references to cplus_language_data.
2496 (asm_language_data): Delete.
2497 (asm_language): Remove references to asm_language_data.
2498 (minimal_language_data): Delete.
2499 (minimal_language): Remove references to minimal_language_data.
2500 * d-lang.c (d_language_data): Delete.
2501 (d_language): Remove references to d_language_data.
2502 * f-lang.c (f_language_data): Delete.
2503 (f_language): Remove references to f_language_data.
2504 * go-lang.c (go_language_data): Delete.
2505 (go_language): Remove references to go_language_data.
2506 * language.c (unknown_language_data): Delete.
2507 (unknown_language): Remove references to unknown_language_data.
2508 (auto_language_data): Delete.
2509 (auto_language): Remove references to auto_language_data.
2510 * language.h (language_data): Delete struct.
2511 (language_defn): No longer inherit from language_data.
2512 * m2-lang.c (m2_language_data): Delete.
2513 (m2_language): Remove references to m2_language_data.
2514 * objc-lang.c (objc_language_data): Delete.
2515 (objc_language): Remove references to objc_language_data.
2516 * opencl-lang.c (opencl_language_data): Delete.
2517 (opencl_language): Remove references to opencl_language_data.
2518 * p-lang.c (pascal_language_data): Delete.
2519 (pascal_language): Remove references to pascal_language_data.
2520 * rust-lang.c (rust_language_data): Delete.
2521 (rust_language): Remove references to rust_language_data.
2522
b7c6e27d
AB
25232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2524
2525 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2526 initializer.
2527 (ada_language::opcode_print_table): New member function.
2528 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2529 (c_language::opcode_print_table): New member function.
2530 (cplus_language_data): Remove la_op_print_tab initializer.
2531 (cplus_language::opcode_print_table): New member function.
2532 (asm_language_data): Remove la_op_print_tab initializer.
2533 (asm_language::opcode_print_table): New member function.
2534 (minimal_language_data): Remove la_op_print_tab initializer.
2535 (minimal_language::opcode_print_table): New member function.
2536 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2537 (d_language::opcode_print_table): New member function.
2538 * expprint.c (print_subexp_standard): Update call to
2539 opcode_print_table.
2540 (op_string): Likewise.
2541 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2542 (f_language::opcode_print_table): New member function.
2543 * go-lang.c (go_language_data): Remove la_op_print_tab
2544 initializer.
2545 (go_language::opcode_print_table): New member function.
2546 * language.c (unknown_language_data): Remove la_op_print_tab
2547 initializer.
2548 (unknown_language::opcode_print_table): New member function.
2549 (auto_language_data): Remove la_op_print_tab initializer.
2550 (auto_language::opcode_print_table): New member function.
2551 * language.h (language_data): Remove la_op_print_tab field.
2552 (language_defn::opcode_print_table): Declare new member function.
2553 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2554 initializer.
2555 (m2_language::opcode_print_table): New member function.
2556 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2557 initializer.
2558 (objc_language::opcode_print_table): New member function.
2559 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2560 initializer.
2561 (opencl_language::opcode_print_table): New member function.
2562 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2563 initializer.
2564 (pascal_language::opcode_print_table): New member function.
2565 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2566 initializer.
2567 (rust_language::opcode_print_table): New member function.
2568
5aba6ebe
AB
25692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2570
2571 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2572 (ada_language::expression_ops): New member function.
2573 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2574 (c_language::expression_ops): New member function.
2575 (cplus_language_data): Remove la_exp_desc initializer.
2576 (cplus_language::expression_ops): New member function.
2577 (asm_language_data): Remove la_exp_desc initializer.
2578 (asm_language::expression_ops): New member function.
2579 (minimal_language_data): Remove la_exp_desc initializer.
2580 (minimal_language::expression_ops): New member function.
2581 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2582 (d_language::expression_ops): New member function.
2583 * eval.c (evaluate_subexp): Update call to expression_ops.
2584 * expprint.c (print_subexp): Likewise.
2585 (op_name): Likewise.
2586 (dump_subexp_body): Likewise.
2587 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2588 (f_language::expression_ops): New member function.
2589 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2590 (go_language::expression_ops): New member function.
2591 * language.c (language_defn::expression_ops): New function.
2592 (unknown_language_data): Remove la_exp_desc initializer.
2593 (auto_language_data): Likewise.
2594 * language.h (language_data): Remove la_exp_desc field.
2595 (language_defn::expression_ops): Declare new member function.
2596 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2597 (m2_language::expression_ops): New member function.
2598 * objc-lang.c (objc_language_data): Remove la_exp_desc
2599 initializer.
2600 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2601 initializer.
2602 (opencl_language::expression_ops): New member function.
2603 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2604 * parse.c (operator_length): Update call to expression_ops.
2605 (exp_iterate): Likewise.
2606 * rust-lang.c (rust_language_data): Remove la_exp_desc
2607 initializer.
2608 (ruse_language::expression_ops): New member function.
2609
b63a3f3f
AB
26102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2611
2612 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2613 initializer.
2614 (ada_language::varobj_ops): New member function.
2615 * c-lang.c (c_language_data): Remove la_varobj_ops
2616 initializer.
2617 (cplus_language_data): Likewise.
2618 (cplus_language::varobj_ops): New member function.
2619 (asm_language_data): Remove la_varobj_ops initializer.
2620 (minimal_language_data): Likewise.
2621 * d-lang.c (d_language_data): Likewise.
2622 * f-lang.c (f_language_data): Likewise.
2623 * go-lang.c (go_language_data): Likewise.
2624 * language.c (language_defn::varobj_ops): New function.
2625 (unknown_language_data): Remove la_varobj_ops
2626 initializer.
2627 (auto_language_data): Likewise.
2628 * language.h (language_data): Remove la_varobj_ops field.
2629 (language_defn::varobj_ops): Declare new member function.
2630 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2631 * objc-lang.c (objc_language_data): Likewise.
2632 * opencl-lang.c (opencl_language_data): Likewise.
2633 * p-lang.c (pascal_language_data): Likewise.
2634 * rust-lang.c (rust_language_data): Likewise.
2635 * varobj.c (varobj_create): Update call to varobj_ops.
2636 * varobj.h (default_varobj_ops): Delete define.
2637
1ac14a04
AB
26382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2639
2640 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2641 initializer.
2642 * c-lang.c (c_language_data): Likewise.
2643 (c_language::macro_expansion): New member function.
2644 (cplus_language_data): Likewise.
2645 (cplus_language::macro_expansion): New member function.
2646 (asm_language_data): Likewise.
2647 (asm_language::macro_expansion): New member function.
2648 (minimal_language_data): Likewise.
2649 (minimal_language::macro_expansion): New member function.
2650 * d-lang.c (d_language_data): Remove la_macro_expansion
2651 initializer.
2652 * f-lang.c (f_language_data): Likewise.
2653 * go-lang.c (go_language_data): Likewise.
2654 * language.c (unknown_language_data): Likewise.
2655 (auto_language_data): Likewise.
2656 * language.h (language_data): Remove la_macro_expansion field.
2657 (language_defn::macro_expansion): New member function.
2658 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2659 initializer.
2660 * objc-lang.c (objc_language_data): Likewise.
2661 (objc_language::macro_expansion): New member function.
2662 * opencl-lang.c (opencl_language_data): Likewise.
2663 (opencl_language::macro_expansion): New member function.
2664 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2665 initializer.
2666 * rust-lang.c (rust_language_data): Likewise.
2667 * symtab.c (default_collect_symbol_completion_matches_break_on):
2668 Update call to macro_expansion.
2669
3a3440fb
AB
26702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2671
2672 * ada-lang.c (ada_language_data): Remove la_array_ordering
2673 initializer.
2674 * c-lang.c (c_language_data): Likewise.
2675 (cplus_language_data): Likewise.
2676 (asm_language_data): Likewise.
2677 (minimal_language_data): Likewise.
2678 * d-lang.c (d_language_data): Likewise.
2679 * dwarf2/read.c (read_array_order): Update for call to
2680 array_ordering.
2681 * f-lang.c (f_language_data): Remove la_array_ordering
2682 initializer.
2683 (f_language::array_ordering): New member function.
2684 * go-lang.c (go_language_data): Remove la_array_ordering
2685 initializer.
2686 * language.c (unknown_language_data): Likewise.
2687 (auto_language_data): Likewise.
2688 * language.h (language_data): Delete la_array_ordering field.
2689 (language_defn::array_ordering): New member function.
2690 * m2-lang.c (m2_language_data): Remove la_array_ordering
2691 initializer.
2692 * objc-lang.c (objc_language_data): Likewise.
2693 * opencl-lang.c (opencl_language_data): Likewise.
2694 * p-lang.c (pascal_language_data): Likewise.
2695 * rust-lang.c (rust_language_data): Likewise.
2696
0d201fa4
AB
26972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2698
2699 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2700 initializer.
2701 * c-lang.c (c_language_data): Likewise.
2702 (cplus_language_data): Likewise.
2703 (asm_language_data): Likewise.
2704 (minimal_language_data): Likewise.
2705 * d-lang.c (d_language_data): Likewise.
2706 * f-lang.c (f_language_data): Likewise.
2707 (f_language::case_sensitivity): New member function.
2708 * go-lang.c (go_language_data): Remove la_case_sensitivity
2709 initializer.
2710 * language.c (enum case_mode): Moved here from language.h.
2711 (case_mode): Make static.
2712 (show_case_command): Update for case_sensitivity being a method.
2713 (set_case_command): Likewise.
2714 (set_range_case): Likewise.
2715 (unknown_language_data): Remove la_case_sensitivity initializer.
2716 (auto_language_data): Likewise.
2717 * language.h (case_mode): Delete, move enum declaration to
2718 language.c.
2719 (language_data): Delete la_case_sensitivity field.
2720 (language_defn::case_sensitivity): New member function.
2721 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2722 initializer.
2723 * objc-lang.c (objc_language_data): Likewise.
2724 * opencl-lang.c (opencl_language_data): Likewise.
2725 * p-lang.c (pascal_language_data): Likewise.
2726 * rust-lang.c (rust_language_data): Likewise.
2727
efdf6a73
AB
27282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2729
2730 * ada-lang.c (ada_language_data): Remove la_range_check
2731 initializer.
2732 * c-lang.c (c_language_data): Likewise.
2733 (cplus_language_data): Likewise.
2734 (asm_language_data): Likewise.
2735 (minimal_language_data): Likewise.
2736 * d-lang.c (d_language_data): Likewise.
2737 * f-lang.c (f_language_data): Likewise.
2738 (f_language::range_checking_on_by_default): New member function.
2739 * go-lang.c (go_language_data): Remove la_range_check initializer.
2740 * language.c (enum range_mode): Moved here from language.h.
2741 (range_mode): Made static.
2742 (show_range_command): Update to use
2743 range_checking_on_by_default.
2744 (set_range_command): Likewise.
2745 (set_range_case): Likewise.
2746 (unknown_language_data): Remove la_range_check initializer.
2747 (auto_language_data): Likewise.
2748 * language.h (range_mode): Delete. Enum definition moved to
2749 language.c.
2750 (language_data): Remove la_range_check field.
2751 (language_defn::range_checking_on_by_default): New member
2752 function.
2753 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2754 (m2_language::range_checking_on_by_default): New member function.
2755 * objc-lang.c (objc_language_data): Remove la_range_check
2756 initializer.
2757 * opencl-lang.c (opencl_language_data): Likewise.
2758 * p-lang.c (pascal_language_data): Likewise.
2759 (pascal_language::range_checking_on_by_default): New member
2760 function.
2761 * rust-lang.c (rust_language_data): Remove la_range_check
2762 initializer.
2763 (rust_language::range_checking_on_by_default): New member
2764 function.
2765
bf92aec5
AB
27662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2767
2768 * dwarf2/read.c (dwarf2_physname): Remove special case for
2769 language_go.
2770 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2771 member function.
2772
d3355e4d
AB
27732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2774
2775 * ada-lang.c (ada_language_data): Remove
2776 la_store_sym_names_in_linkage_form_p initializer.
2777 (ada_language::store_sym_names_in_linkage_form_p): New member
2778 function.
2779 * c-lang.c (c_language_data): Remove
2780 la_store_sym_names_in_linkage_form_p initializer.
2781 (c_language::store_sym_names_in_linkage_form_p): New member
2782 function.
2783 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2784 initializer.
2785 (asm_language_data): Likewise.
2786 (asm_language::store_sym_names_in_linkage_form_p): New member
2787 function.
2788 (minimal_language_data): Remove
2789 la_store_sym_names_in_linkage_form_p initializer.
2790 (minimal_language::store_sym_names_in_linkage_form_p): New member
2791 function.
2792 * d-lang.c (d_language_data): Remove
2793 la_store_sym_names_in_linkage_form_p initializer.
2794 * dwarf2/read.c (dwarf2_physname): Update call to
2795 store_sym_names_in_linkage_form_p.
2796 * f-lang.c (f_language_data): Remove
2797 la_store_sym_names_in_linkage_form_p initializer.
2798 * go-lang.c (go_language_data): Remove
2799 la_store_sym_names_in_linkage_form_p initializer.
2800 * language.c (unknown_language_data): Remove
2801 la_store_sym_names_in_linkage_form_p initializer.
2802 (unknown_language::store_sym_names_in_linkage_form_p): New member
2803 function.
2804 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2805 initializer.
2806 (auto_language::store_sym_names_in_linkage_form_p): New member
2807 function.
2808 * language.h (language_data): Remove
2809 la_store_sym_names_in_linkage_form_p member variable.
2810 (language_defn::store_sym_names_in_linkage_form_p): New member
2811 function.
2812 * m2-lang.c (m2_language_data): Remove
2813 la_store_sym_names_in_linkage_form_p initializer.
2814 * objc-lang.c (objc_language_data): Likewise.
2815 * opencl-lang.c (opencl_language_data): Likewise.
2816 * p-lang.c (pascal_language_data): Likewise.
2817 * rust-lang.c (rust_language_data): Likewise.
2818
22c12a6c
AB
28192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2820
2821 * ada-lang.c (ada_language_data): Remove string_lower_bound
2822 initializer.
2823 * c-lang.c (c_language_data): Likewise.
2824 (cplus_language_data): Likewise.
2825 (asm_language_data): Likewise.
2826 (minimal_language_data): Likewise.
2827 * d-lang.c (d_language_data): Likewise.
2828 * f-lang.c (f_language_data): Likewise.
2829 * go-lang.c (go_language_data): Likewise.
2830 * language.c (unknown_language_data): Likewise.
2831 (auto_language_data): Likewise.
2832 * language.h (language_data): Remove string_lower_bound field.
2833 (language_defn::string_lower_bound): New member function.
2834 * m2-lang.c (m2_language_data): Remove string_lower_bound
2835 initializer.
2836 (m2_language::string_lower_bound): New member function.
2837 * objc-lang.c (objc_language_data): Remove string_lower_bound
2838 initializer.
2839 * opencl-lang.c (opencl_language_data): Likewise.
2840 * p-lang.c (pascal_language_data): Likewise.
2841 * rust-lang.c (rust_language_data): Likewise.
2842 * valops.c (value_cstring): Update call to string_lower_bound.
2843 (value_string): Likewise.
2844 * value.c (allocate_repeated_value): Likewise.
2845
1c236ddd
AB
28462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2847
2848 * valops.c (value_repeat): Fix incorrect argument name in comment.
2849
67bd3fd5
AB
28502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2851
2852 * ada-lang.c (ada_language_data): Remove c_style_arrays
2853 initializer.
2854 (ada_language::c_style_arrays_p): New member fuction.
2855 * c-lang.c (c_language_data): Remove c_style_arrays
2856 initializer.
2857 (cplus_language_data): Likewise.
2858 (asm_language_data): Likewise.
2859 (minimal_language_data): Likewise.
2860 * d-lang.c (d_language_data): Likewise.
2861 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2862 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2863 (f_language::c_style_arrays_p): New member function.
2864 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2865 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2866 * language.c (unknown_language_data): Remove c_style_arrays
2867 initializer.
2868 (auto_language_data): Likewise.
2869 * language.h (language_data): Remove c_style_arrays field.
2870 (language_defn::c_style_arrays_p): New member function.
2871 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2872 (m2_language::c_style_arrays_p): New member function.
2873 * objc-lang.c (objc_language_data): Remove c_style_arrays
2874 initializer.
2875 * opencl-lang.c (opencl_language_data): Likewise.
2876 * p-lang.c (pascal_language_data): Likewise.
2877 * rust-lang.c (rust_language_data): Likewise.
2878 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2879 and update local variable to a bool.
2880 * valops.c (value_cast): Update call to c_style_arrays_p.
2881 (value_array): Likewise.
2882 * value.c (coerce_array): Likewise.
2883
85967615
AB
28842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2885
2886 * ada-lang.c (ada_language_data): Remove la_language initializer.
2887 * c-lang.c (c_language_data): Likewise.
2888 (cplus_language_data): Likewise.
2889 (asm_language_data): Likewise.
2890 (minimal_language_data): Likewise.
2891 * d-lang.c (d_language_data): Likewise.
2892 * f-lang.c (f_language_data): Likewise.
2893 * go-lang.c (go_language_data): Likewise.
2894 * language.c (unknown_language_data): Likewise.
2895 (auto_language_data): Likewise.
2896 * language.h (language_data): Remove la_language field.
2897 (language_defn::language_defn): Initialise la_language field.
2898 (language_defn::la_language): New member variable.
2899 * m2-lang.c (m2_language_data): Remove la_language field.
2900 * objc-lang.c (objc_language_data): Likewise.
2901 * opencl-lang.c (opencl_language_data): Likewise.
2902 * p-lang.c (pascal_language_data): Likewise.
2903 * rust-lang.c (rust_language_data): Likewise.
2904
e171d6f1
AB
29052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2906
2907 * ada-lang.c (ada_extensions): Delete, moved into
2908 ada_language::filename_extensions.
2909 (ada_language_data): Remove la_filename_extensions initializer.
2910 (ada_language::filename_extensions): New member function.
2911 * c-lang.c (c_extensions): Delete, moved into
2912 c_language::filename_extensions.
2913 (c_language_data): Remove la_filename_extensions initializer.
2914 (c_language::filename_extensions): New member function.
2915 (cplus_extensions): Delete, moved into
2916 cplus_language::filename_extensions.
2917 (cplus_language_data): Remove la_filename_extensions initializer.
2918 (cplus_language::filename_extensions): New member function.
2919 (asm_extensions): Delete, moved into
2920 asm_language::filename_extensions.
2921 (asm_language_data): Remove la_filename_extensions initializer.
2922 (asm_language::filename_extensions): New member function.
2923 (minimal_language_data): Remove la_filename_extensions
2924 initializer.
2925 * d-lang.c (d_extensions): Delete, moved into
2926 d_language::filename_extensions.
2927 (d_language_data): Remove la_filename_extensions initializer.
2928 (d_language::filename_extensions): New member function.
2929 * f-lang.c (f_extensions): Delete, moved into
2930 f_language::filename_extensions.
2931 (f_language_data): Remove la_filename_extensions initializer.
2932 (f_language::filename_extensions): New member function.
2933 * go-lang.c (go_language_data): Remove la_filename_extensions
2934 initializer.
2935 * language.c (add_set_language_command): Update now that
2936 filename_extensions returns a vector.
2937 (unknown_language_data): Remove la_filename_extensions
2938 initializer.
2939 (auto_language_data): Likewise.
2940 * language.h (language_data): Remove la_filename_extensions field.
2941 (language_defn::filename_extensions): New member function.
2942 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2943 initializer.
2944 * objc-lang.c (objc_extensions): Delete, moved into
2945 objc_language::filename_extensions.
2946 (objc_language_data): Remove la_filename_extensions initializer.
2947 (objc_language::filename_extensions): New member function.
2948 * opencl-lang.c (opencl_language_data): Remove
2949 la_filename_extensions initializer.
2950 * p-lang.c (pascal_extensions): Delete, moved into
2951 pascal_language::filename_extensions.
2952 (pascal_language_data): Remove la_filename_extensions initializer.
2953 (pascal_language::filename_extensions): New member function.
2954 * rust-lang.c (rust_extensions): Delete, moved into
2955 rust_language::filename_extensions.
2956 (rust_language_data): Remove la_filename_extensions initializer.
2957 (rust_language::filename_extensions): New member function.
2958 * symfile.c (add_filename_language): Add new assert.
2959
6f7664a9
AB
29602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2961
2962 * ada-lang.c (ada_language_data): Remove la_name and
2963 la_natural_name initializers.
2964 (ada_language::name): New member function.
2965 (ada_language::natural_name): New member function.
2966 * c-lang.c (c_language_data): Remove la_name and
2967 la_natural_name initializers.
2968 (c_language::name): New member function.
2969 (c_language::natural_name): New member function.
2970 (cplus_language_data): Remove la_name and
2971 la_natural_name initializers.
2972 (cplus_language::name): New member function.
2973 (cplus_language::natural_name): New member function.
2974 (asm_language_data): Remove la_name and
2975 la_natural_name initializers.
2976 (asm_language::name): New member function.
2977 (asm_language::natural_name): New member function.
2978 (minimal_language_data): Remove la_name and
2979 la_natural_name initializers.
2980 (minimal_language::name): New member function.
2981 (minimal_language::natural_name): New member function.
2982 * compile/compile.c (compile_to_object): Update call to
2983 lanugage_defn::name.
2984 * d-lang.c (d_language_data): Remove la_name and
2985 la_natural_name initializers.
2986 (d_language::name): New member function.
2987 (d_language::natural_name): New member function.
2988 * expprint.c (print_subexp_standard): Update call to
2989 language_defn::name.
2990 (dump_raw_expression): Likewise
2991 (dump_prefix_expression): Likewise.
2992 * f-lang.c (f_language_data): Remove la_name and
2993 la_natural_name initializers.
2994 (f_language::name): New member function.
2995 (f_language::natural_name): New member function.
2996 * go-lang.c (go_language_data): Remove la_name and
2997 la_natural_name initializers.
2998 (go_language::name): New member function.
2999 (go_language::natural_name): New member function.
3000 * language.c (show_language_command): Update call to
3001 language_defn::name.
3002 (set_language_command): Likewise.
3003 (language_enum): Likewise.
3004 (language_str): Likewise.
3005 (add_set_language_command): Likewise, use
3006 language_defn::natural_name in the doc string.
3007 (unknown_language_data): Remove la_name and
3008 la_natural_name initializers.
3009 (unknown_language::name): New member function.
3010 (unknown_language::natural_name): New member function.
3011 (auto_language_data): Remove la_name and
3012 la_natural_name initializers.
3013 (auto_language::name): New member function.
3014 (auto_language::natural_name): New member function.
3015 (language_lookup_primitive_type_as_symbol): Update call to
3016 language_defn::name.
3017 * language.h (language_data): Remove la_name and la_natural_name
3018 member variables.
3019 (language_defn::name): New member function.
3020 (language_defn::natural_name): New member function.
3021 * m2-lang.c (m2_language_data): Remove la_name and
3022 la_natural_name initializers.
3023 (m2_language::name): New member function.
3024 (m2_language::natural_name): New member function.
3025 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3026 language_defn::natural_name.
3027 * objc-lang.c (objc_language_data): Remove la_name and
3028 la_natural_name initializers.
3029 (objc_language::name): New member function.
3030 (objc_language::natural_name): New member function.
3031 * opencl-lang.c (opencl_language_data): Remove la_name and
3032 la_natural_name initializers.
3033 (opencl_language::name): New member function.
3034 (opencl_language::natural_name): New member function.
3035 * p-lang.c (pascal_language_data): Remove la_name and
3036 la_natural_name initializers.
3037 (pascal_language::name): New member function.
3038 (pascal_language::natural_name): New member function.
3039 * rust-lang.c (rust_language_data): Remove la_name and
3040 la_natural_name initializers.
3041 (rust_language::name): New member function.
3042 (rust_language::natural_name): New member function.
3043 * symtab.c (lookup_language_this): Update call to
3044 language_defn::name.
3045
5bae7c4e
AB
30462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3047
3048 * ada-lang.c (ada_language_data): Remove la_name_of_this
3049 initializer.
3050 * ax-gdb.c (gen_expr): Update call to name_of_this.
3051 * c-exp.y (classify_name): Likewise.
3052 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3053 (cplus_language_data): Likewise.
3054 (cplus_language::name_of_this): New member function.
3055 (asm_language_data): Remove la_name_of_this initializer.
3056 (minimal_language_data): Likewise.
3057 * d-lang.c (d_language_data): Likewise.
3058 (d_language::name_of_this): New member function.
3059 * expprint.c (print_subexp_standard): Update call to name_of_this.
3060 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3061 * go-lang.c (go_language_data): Likewise.
3062 * language.c (unknown_language_data): Likewise.
3063 (unknown_language::name_of_this): New member function.
3064 (auto_language_data): Remove la_name_of_this initializer.
3065 (auto_language::name_of_this): New member function.
3066 * language.h (language_data): Delete la_name_of_this member
3067 variable.
3068 (language_defn::name_of_this): New member function.
3069 * m2-lang.c (m2_language_data): Remove la_name_of_this
3070 initializer.
3071 * objc-lang.c (objc_language_data): Likewise.
3072 (objc_language::name_of_this): New member function.
3073 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3074 initializer.
3075 * p-lang.c (pascal_language_data): Likewise.
3076 (pascal_language::name_of_this): New member function.
3077 * rust-lang.c (rust_language_data): Remove la_name_of_this
3078 initializer.
3079 * symtab.c (lookup_language_this): Update call to name_of_this.
3080 (lookup_symbol_aux): Likewise.
3081 * valops.c (value_of_this): Likewise.
3082
22e3f3ed
AB
30832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3084
3085 * ada-lang.c (ada_language_data): Remove
3086 la_struct_too_deep_ellipsis initializer.
3087 (ada_language::struct_too_deep_ellipsis): New member function.
3088 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3089 initializer.
3090 (cplus_language_data): Likewise.
3091 (asm_language_data): Likewise.
3092 (minimal_language_data): Likewise.
3093 * cp-valprint.c (cp_print_value): Update call to
3094 struct_too_deep_ellipsis.
3095 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3096 initializer.
3097 * f-lang.c (f_language_data): Likewise.
3098 (f_language::struct_too_deep_ellipsis): New member function.
3099 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3100 initializer.
3101 * language.c (unknown_language_data): Likewise.
3102 (auto_language_data): Likewise.
3103 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3104 member variable.
3105 (language_defn::struct_too_deep_ellipsis): New member function.
3106 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3107 initializer.Q
3108 * objc-lang.c (objc_language_data): Likewise.
3109 * opencl-lang.c (opencl_language_data): Likewise.
3110 * p-lang.c (pascal_language_data): Likewise.
3111 * rust-lang.c (rust_language_data): Likewise.
3112 * valprint.c (val_print_check_max_depth): Update call to
3113 struct_too_deep_ellipsis.
3114
ed29e1c7
FW
31152020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3116
3117 * MAINTAINERS (Write After Approval): Add myself.
3118
12d8f940
TT
31192020-09-15 Tom Tromey <tom@tromey.com>
3120
3121 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3122 Remove.
3123
6b5a7bc7
TT
31242020-09-15 Tom Tromey <tom@tromey.com>
3125
3126 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3127 and TYPE_CODE_METHODPTR cases.
3128 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3129 (c_value_print_inner): Update.
3130 * valprint.c (generic_value_print_memberptr): New function, from
3131 c_value_print_memberptr.
3132 (generic_value_print): Use it. Call cplus_print_method_ptr.
3133
47f0e2ff
TT
31342020-09-15 Tom Tromey <tromey@adacore.com>
3135
3136 * python/python-internal.h (PyInt_FromLong): Remove define.
3137 * python/py-value.c (convert_value_from_python): Use
3138 gdb_py_object_from_longest.
3139 * python/py-type.c (typy_get_code): Use
3140 gdb_py_object_from_longest.
3141 * python/py-symtab.c (salpy_get_line): Use
3142 gdb_py_object_from_longest.
3143 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3144 gdb_py_object_from_longest.
3145 * python/py-record.c (recpy_gap_reason_code): Use
3146 gdb_py_object_from_longest.
3147 * python/py-record-btrace.c (recpy_bt_insn_size)
3148 (recpy_bt_func_level, btpy_list_count): Use
3149 gdb_py_object_from_longest.
3150 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3151 gdb_py_object_from_longest. Fix error handling.
3152 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3153 gdb_py_object_from_longest.
3154 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3155 gdb_py_object_from_longest.
3156 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3157 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3158 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3159
512116ce
TT
31602020-09-15 Tom Tromey <tromey@adacore.com>
3161
3162 * python/python.c (gdbpy_parameter_value): Use
3163 gdb_py_object_from_ulongest.
3164
4ab1029c
TT
31652020-09-15 Tom Tromey <tromey@adacore.com>
3166
3167 * python/py-infevents.c (create_register_changed_event_object):
3168 Use gdb_py_object_from_longest.
3169 * python/py-exitedevent.c (create_exited_event_object): Use
3170 gdb_py_object_from_longest.
3171
062534d4
TT
31722020-09-15 Tom Tromey <tromey@adacore.com>
3173
3174 * python/python.c (gdbpy_parameter_value): Use
3175 gdb_py_object_from_longest.
3176 * python/py-type.c (convert_field, typy_range): Use
3177 gdb_py_object_from_longest.
3178 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3179 gdb_py_object_from_longest.
3180 * python/py-lazy-string.c (stpy_get_length): Use
3181 gdb_py_object_from_longest.
3182 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3183 gdb_py_object_from_longest.
3184 * python/py-infevents.c (create_memory_changed_event_object): Use
3185 gdb_py_object_from_longest.
3186 * python/py-inferior.c (infpy_get_num): Use
3187 gdb_py_object_from_longest.
3188 (infpy_get_pid): Likewise.
3189
d1cab987
TT
31902020-09-15 Tom Tromey <tromey@adacore.com>
3191
3192 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3193 defines.
3194 * python/py-value.c (valpy_long): Use
3195 gdb_py_object_from_ulongest.
3196 * python/py-symtab.c (salpy_get_pc): Use
3197 gdb_py_object_from_ulongest.
3198 (salpy_get_last): Likewise.
3199 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3200 gdb_py_object_from_ulongest.
3201 * python/py-lazy-string.c (stpy_get_address): Use
3202 gdb_py_object_from_ulongest.
3203 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3204 * python/py-arch.c (archpy_disassemble): Use
3205 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3206 error handling.
3207
4bde49dc
TT
32082020-09-15 Tom Tromey <tromey@adacore.com>
3209
3210 * python/python-internal.h (gdb_py_long_from_longest): Remove
3211 defines.
3212 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3213 * python/py-type.c (convert_field, typy_get_sizeof): Use
3214 gdb_py_object_from_longest.
3215 * python/py-record-btrace.c (btpy_list_index): Use
3216 gdb_py_object_from_longest.
3217
37431074
TT
32182020-09-15 Tom Tromey <tromey@adacore.com>
3219
3220 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3221 * python/py-record.c (recpy_element_number): Use
3222 gdb_py_object_from_longest.
3223 (recpy_gap_number): Likewise.
3224
cbe25684
TT
32252020-09-15 Tom Tromey <tromey@adacore.com>
3226
3227 * top.c (ui::ui): Update.
3228 (highest_ui_num): Remove.
3229 * top.h (struct ui) <num>: Remove.
3230
db92ac45
TT
32312020-09-15 Tom Tromey <tromey@adacore.com>
3232
3233 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3234 * ui-style.c (ansi_regex_text): Now array.
3235 * rust-exp.y (number_regex_text): Now array.
3236 * linespec.c (linespec_quote_characters): Now array.
3237 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3238 Now arrays.
3239
d2b31b67
SM
32402020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3241
3242 * debuginfod-support.c (debuginfod_client_deleter): New.
3243 (debuginfod_client_up): New.
3244 (debuginfod_init): Return debuginfod_client_up.
3245 (debuginfod_source_query): Adjust.
3246 (debuginfod_debuginfo_query): Adjust.
3247
3246bd8e
SM
32482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3249
3250 * debuginfod-support.c (debuginfod_source_query): Use
3251 make_unique_xstrdup.
3252
10242f36
SM
32532020-09-14 Simon Marchi <simon.marchi@efficios.com>
3254
3255 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3256 with `type::instance_flags`.
3257
e1044e6a
MM
32582020-09-14 Michael Mullin <masmullin@gmail.com>
3259
3260 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3261 Remove baton parameter.
3262
04902b09
PA
32632020-09-14 Pedro Alves <pedro@palves.net>
3264
3265 * Makefile.in (SELFTESTS_SRCS): Add
3266 unittests/enum-flags-selftests.c.
3267 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3268 btrace_function_flags instead of enum btrace_function_flag.
3269 * compile/compile-c-types.c (convert_qualified): Use
3270 enum_flags::raw.
3271 * compile/compile-cplus-symbols.c (convert_one_symbol)
3272 (convert_symbol_bmsym):
3273 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3274 (compile_cplus_convert_struct_or_union_methods)
3275 (compile_cplus_instance::convert_qualified_base):
3276 * go-exp.y (parse_string_or_char): Add cast to int.
3277 * unittests/enum-flags-selftests.c: New file.
3278 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3279 type to btrace_thread_flags from btrace_thread_flag.
3280 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3281 local's type to btrace_thread_flags from btrace_thread_flag. Add
3282 cast in DEBUG call.
3283
69896a2c
PA
32842020-09-14 Pedro Alves <pedro@palves.net>
3285
3286 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3287 * gdbtypes.c (address_space_name_to_int): Rename to ...
3288 (address_space_name_to_type_instance_flags): ... this.
3289 (address_space_int_to_name): Rename to ...
3290 (address_space_type_instance_flags_to_name): ... this.
3291 * gdbtypes.h (address_space_name_to_int): Rename to ...
3292 (address_space_name_to_type_instance_flags): ... this.
3293 (address_space_int_to_name): Rename to ...
3294 (address_space_type_instance_flags_to_name): ... this.
3295 * type-stack.c (type_stack::insert): Adjust to rename.
3296 * type-stack.h (type_stack::insert): Likewise.
3297
314ad88d
PA
32982020-09-14 Pedro Alves <pedro@palves.net>
3299 Andrew Burgess <andrew.burgess@embecosm.com>
3300
3301 * avr-tdep.c (avr_address_class_type_flags): Return
3302 type_instance_flags.
3303 (avr_address_class_type_flags_to_name): Take a
3304 type_instance_flags.
3305 (avr_address_class_name_to_type_flags): Return bool and take a
3306 type_instance_flags.
3307 * d-lang.c (build_d_types): Use type::set_instance_flags.
3308 * ft32-tdep.c (ft32_address_class_type_flags): Return
3309 type_instance_flags.
3310 (ft32_address_class_type_flags_to_name): Take a
3311 type_instance_flags.
3312 (ft32_address_class_name_to_type_flags): Return bool and take a
3313 type_instance_flags.
3314 (ft32_gdbarch_init): Use type::set_instance_flags.
3315 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3316 * gdbarch.h, gdbarch.c: Regenerate.
3317 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3318 (address_class_name_to_type_flags): Use type_instance_flags and
3319 bool.
3320 * gdbtypes.c (address_space_name_to_int)
3321 (address_space_int_to_name, make_qualified_type): Use
3322 type_instance_flags.
3323 (make_qualified_type): Use type_instance_flags and
3324 type::set_instance_flags.
3325 (make_type_with_address_space, make_cv_type, make_vector_type)
3326 (check_typedef): Use type_instance_flags.
3327 (recursive_dump_type): Cast type_instance_flags to unsigned for
3328 printing.
3329 (copy_type_recursive): Use type::set_instance_flags.
3330 (gdbtypes_post_init): Use type::set_instance_flags.
3331 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3332 <m_instance_flags>: ... this.
3333 <instance_flags, set_instance_flags>: New methods.
3334 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3335 (SET_TYPE_INSTANCE_FLAGS): New.
3336 (address_space_name_to_int, address_space_int_to_name)
3337 (make_type_with_address_space): Pass flags using
3338 type_instance_flags instead of int.
3339 * stabsread.c (cleanup_undefined_types_noname): Use
3340 type::set_instance_flags.
3341 * s390-tdep.c (s390_address_class_type_flags): Return
3342 type_instance_flags.
3343 (s390_address_class_type_flags_to_name): Take a
3344 type_instance_flags.
3345 (s390_address_class_name_to_type_flags): Return bool and take a
3346 type_instance_flags.
3347 * type-stack.c (type_stack::follow_types): Use
3348 type_instance_flags.
3349 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3350
27087b7f
TT
33512020-09-14 Tom Tromey <tromey@adacore.com>
3352
3353 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3354 * x86-tdep.c (x86_is_thunk_register_name)
3355 (x86_in_indirect_branch_thunk): Update.
3356 * sparc64-tdep.c (sparc64_fpu_register_names)
3357 (sparc64_cp0_register_names, sparc64_register_names)
3358 (sparc64_pseudo_register_names): Now const.
3359 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3360 cp0_registers_num>: Now const.
3361 * sparc-tdep.c (sparc_core_register_names)
3362 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3363 (sparc32_pseudo_register_names): Now const.
3364 (validate_tdesc_registers): Update.
3365 * rust-lang.c (rust_extensions): Now const.
3366 * p-lang.c (p_extensions): Now const.
3367 * objc-lang.c (objc_extensions): Now const.
3368 * nto-tdep.c (nto_thread_state_str): Now const.
3369 * moxie-tdep.c (moxie_register_names): Now const.
3370 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3371 Now const.
3372 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3373 (mips_linux_reg_names): Now const.
3374 (mips_gdbarch_init): Update.
3375 * microblaze-tdep.c (microblaze_register_names): Now const.
3376 * m68k-tdep.c (m68k_register_names): Now const.
3377 * m32r-tdep.c (m32r_register_names): Now const.
3378 * ia64-tdep.c (ia64_register_names): Now const.
3379 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3380 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3381 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3382 ymm_avx512_register_names, pkeys_register_names>: Now const.
3383 * i386-tdep.c (i386_register_names, i386_zmm_names)
3384 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3385 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3386 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3387 * f-lang.c (f_extensions): Now const.
3388 * d-lang.c (d_extensions): Now const.
3389 * csky-tdep.c (csky_register_names): Now const.
3390 * charset.c (default_charset_names, charset_enum): Now const.
3391 (_initialize_charset): Update.
3392 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3393 const.
3394 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3395 (bsd_uthread_solib_loaded): Update.
3396 (bsd_uthread_state): Now const.
3397 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3398 (amd64_ymm_avx512_names, amd64_ymmh_names)
3399 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3400 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3401 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3402 (amd64_dword_names): Now const.
3403 * agent.c (can_use_agent_enum): Now const.
3404 * ada-tasks.c (task_states, long_task_states): Now const.
3405 * ada-lang.c (known_runtime_file_name_patterns)
3406 (known_auxiliary_function_name_patterns, attribute_names)
3407 (standard_exc, ada_extensions): Now const.
3408
89806626
SM
34092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3410
3411 * bcache.h (struct bcache) <bcache>: Remove constructor.
3412 <m_hash_function, m_compare_function>: Remove.
3413 <~bcache>: Make virtual.
3414 <compare>: Remove static method, introduce virtual method.
3415 <default_hash>: Remove.
3416 <hash>: New virtual method.
3417 * bcache.c (bcache::expand_hash_table): Update.
3418 (bcache::insert): Update.
3419 (bcache::hash): New.
3420 (bcache::compare): Update comment and parameter names.
3421 * gdbtypes.c (types_deeply_equal): Update.
3422 * psymtab.h (struct psymbol_bcache): New struct.
3423 (class psymtab_storage) <psymtab_storage>: Make default.
3424 <psymbol_cache>: Change type to psymbol_bcache.
3425 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3426 (psymbol_hash): Change to...
3427 (psymbol_bcache::hash): ... this.
3428 (psymbol_compare): Change to...
3429 (psymbol_bcache::compare): ... this.
3430
677c92fe
SM
34312020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3432
3433 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3434 checking for initial lwp.
3435
3eba3a01
TT
34362020-09-14 Tom Tromey <tromey@adacore.com>
3437
3438 * m68k-tdep.c (m68k_extract_return_value): Use
3439 pointer_result_regnum.
3440 (m68k_store_return_value): Likewise.
3441 (m68k_reg_struct_return_p): Handle vectors and arrays.
3442 (m68k_return_value): Handle arrays.
3443 (m68k_svr4_return_value): Fix single-element aggregate handling.
3444 Handle long double. Adjust for embedded ABI.
3445 (m68k_svr4_init_abi): Set pointer_result_regnum.
3446 (m68k_embedded_init_abi): New function.
3447 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3448 (m68k_osabi_sniffer): New function.
3449 (_initialize_m68k_tdep): Register osabi sniffer.
3450 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3451 member.
3452
33f4dd48
SM
34532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3454
3455 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3456 with gdb::unique_xmalloc_ptr<char>.
3457
8400a90d
SM
34582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3459
3460 * xml-support.h (xml_fetch_another): Change type to be a
3461 function_view.
3462 (xml_process_xincludes): Remove baton parameter.
3463 (xml_fetch_content_from_file): Change baton parameter to
3464 dirname.
3465 * xml-support.c (struct xinclude_parsing_data)
3466 <xinclude_parsing_data>: Remove baton parameter.
3467 <fetcher_baton>: Remove.
3468 (xinclude_start_include): Adjust.
3469 (xml_process_xincludes): Adjust.
3470 (xml_fetch_content_from_file): Replace baton parameter with
3471 dirname.
3472 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3473 (xml_init_syscalls_info): Use a lambda.
3474 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3475 (file_read_description_xml): Use a lambda.
3476 (fetch_available_features_from_target): Change baton parameter
3477 to target_ops.
3478 (target_read_description_xml): Use a lambda.
3479 (target_fetch_description_xml): Use a lambda.
3480 (string_read_description_xml): Update.
3481
04f5bab2
SM
34822020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3483
3484 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3485 uses with type::endianity_is_not_default.
3486
db558e34
SM
34872020-09-14 Simon Marchi <simon.marchi@efficios.com>
3488
3489 * gdbtypes.h (struct type) <endianity_is_not_default,
3490 set_endianity_is_not_default>: New methods.
3491 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3492 type::endianity_is_not_default, change all write call sites to
3493 use type::set_endianity_is_not_default.
3494
22c4c60c
SM
34952020-09-14 Simon Marchi <simon.marchi@efficios.com>
3496
3497 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3498 uses with type::is_fixed_instance.
3499
9cdd0d12
SM
35002020-09-14 Simon Marchi <simon.marchi@efficios.com>
3501
3502 * gdbtypes.h (struct type) <is_fixed_instance,
3503 set_is_fixed_instance>: New methods.
3504 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3505 write call sites to use type::set_is_fixed_instance.
3506
0becda7a
SM
35072020-09-14 Simon Marchi <simon.marchi@efficios.com>
3508
3509 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3510 uses with type::is_gnu_ifunc.
3511
03cc7249
SM
35122020-09-14 Simon Marchi <simon.marchi@efficios.com>
3513
3514 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3515 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3516 use type::set_is_gnu_ifunc.
3517
3f46044c
SM
35182020-09-14 Simon Marchi <simon.marchi@efficios.com>
3519
3520 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3521 uses with type::stub_is_supported.
3522
9baccff6
SM
35232020-09-14 Simon Marchi <simon.marchi@efficios.com>
3524
3525 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3526 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3527 use type::set_stub_is_supported.
3528
bd63c870
SM
35292020-09-14 Simon Marchi <simon.marchi@efficios.com>
3530
3531 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3532 uses with type::is_vector.
3533
2062087b
SM
35342020-09-14 Simon Marchi <simon.marchi@efficios.com>
3535
3536 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3537 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3538 use type::set_is_vector.
3539
a409645d
SM
35402020-09-14 Simon Marchi <simon.marchi@efficios.com>
3541
3542 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3543 uses with type::has_varargs.
3544
1d6286ed
SM
35452020-09-14 Simon Marchi <simon.marchi@efficios.com>
3546
3547 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3548 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3549 use type::set_has_varargs.
3550
7f9f399b
SM
35512020-09-14 Simon Marchi <simon.marchi@efficios.com>
3552
3553 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3554 uses with type::is_prototyped.
3555
27e69b7a
SM
35562020-09-14 Simon Marchi <simon.marchi@efficios.com>
3557
3558 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3559 New methods.
3560 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3561 call sites to use type::set_is_prototyped.
3562
d2183968
SM
35632020-09-14 Simon Marchi <simon.marchi@efficios.com>
3564
3565 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3566 uses with type::target_is_stub.
3567
8f53807e
SM
35682020-09-14 Simon Marchi <simon.marchi@efficios.com>
3569
3570 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3571 New methods.
3572 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3573 sites to use type::set_target_is_stub.
3574
e46d3488
SM
35752020-09-14 Simon Marchi <simon.marchi@efficios.com>
3576
3577 * gdbtypes.h (TYPE_STUB): Remove, replace all
3578 uses with type::is_stub.
3579
b4b73759
SM
35802020-09-14 Simon Marchi <simon.marchi@efficios.com>
3581
3582 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3583 (TYPE_STUB): Use type::is_stub, change all write call sites to
3584 use type::set_is_stub.
3585
20ce4123
SM
35862020-09-14 Simon Marchi <simon.marchi@efficios.com>
3587
3588 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3589 type::has_no_signedness.
3590
15152a54
SM
35912020-09-14 Simon Marchi <simon.marchi@efficios.com>
3592
3593 * gdbtypes.h (struct type) <has_no_signedness,
3594 set_has_no_signedness>: New methods.
3595 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3596 call sites to use type::set_has_no_signedness.
3597
c6d940a9
SM
35982020-09-14 Simon Marchi <simon.marchi@efficios.com>
3599
3600 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3601 type::is_unsigned.
3602
653223d3
SM
36032020-09-14 Simon Marchi <simon.marchi@efficios.com>
3604
3605 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3606 methods.
3607 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3608 sites to use type::set_is_unsigned.
3609
55ea94da 36102020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3611 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3612
e851246a
SM
3613 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3614 pointer and stack frame offset when unwinding.
55ea94da 3615
6791b117
PA
36162020-09-13 Pedro Alves <pedro@palves.net>
3617
3618 * NEWS: Document "-break-insert --qualified".
3619 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3620
77f2120b
PA
36212020-09-13 Pedro Alves <pedro@palves.net>
3622
3623 * linespec.c (classify_mtype, compare_msyms): Delete.
3624 (search_minsyms_for_name): Remove classification logic. Instead
3625 filter out trampoline symbols if we also found an external
3626 function of the same name.
3627
ed6a896c
JB
36282020-09-13 Joel Brobecker <brobecker@adacore.com>
3629
3630 * NEWS: Create a new section for the next release branch.
3631 Rename the section of the current branch, now that it has
3632 been cut.
3633
32aea73e
JB
36342020-09-13 Joel Brobecker <brobecker@adacore.com>
3635
3636 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3637 * version.in: Bump version to 11.0.50.DATE-git.
3638
8087c3fa
JB
36392020-09-12 Joel Brobecker <brobecker@adacore.com>
3640
3641 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3642
2a67f09d
FW
36432020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3644 Felix Willgerodt <Felix.Willgerodt@intel.com>
3645
3646 * gdbarch.sh: Added bfloat16 type.
3647 * gdbarch.c: Regenerated.
3648 * gdbarch.h: Regenerated.
3649 * gdbtypes.c (floatformats_bfloat16): New struct.
3650 (gdbtypes_post_init): Add builtin_bfloat16.
3651 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3652 (floatformats_bfloat16): New struct.
3653 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3654 (i386_ymm_type): Add field "v16_bfloat16"
3655 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3656 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3657 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3658 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3659 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3660 * features/i386/64bit-avx512.c: Regenerated.
3661 * features/i386/64bit-sse.xml: Add bfloat16 type.
3662 * features/i386/64bit-sse.c: Regenerated.
3663
1347d111
FW
36642020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3665
3666 * i386-tdep.c (i386_zmm_type): Fix field names.
3667 (i386_ymm_type): Fix field names.
3668
7a4e8e7d
TBA
36692020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3670
3671 * breakpoint.c: Fix typo in the help message of the
3672 "set breakpoint condition-evaluation" command.
3673
cf4ac4be
KR
36742020-09-10 Kamil Rytarowski <n54@gmx.com>
3675
3676 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3677 * (nbsd_nat_target::pid_to_exec_file)
3678 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3679 (nbsd_nat_target::post_startup_inferior)
3680 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3681 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3682 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3683 * (nbsd_thread_lister): Remove.
3684
f404573e
KR
36852020-09-10 Kamil Rytarowski <n54@gmx.com>
3686
3687 * fork-inferior.c (startup_inferior): Avoid double free.
3688
1ccb2c17
KR
36892020-09-10 Kamil Rytarowski <n54@gmx.com>
3690
3691 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3692 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3693
feedfcc7
KR
36942020-09-10 Kamil Rytarowski <n54@gmx.com>
3695
3696 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3697 * netbsd-nat.c: Include <sys/ptrace.h>.
3698 * (netbsd_nat::enable_proc_events): Add.
3699
c489f8c6
KR
37002020-09-10 Kamil Rytarowski <n54@gmx.com>
3701
3702 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3703 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3704 (netbsd_nat::for_each_thread): Add.
3705 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3706 "gdbsupport/common-debug.h".
3707 * (netbsd_nat::netbsd_thread_lister)
3708 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3709 (netbsd_nat::for_each_thread): Add.
3710
330662f6
KR
37112020-09-10 Kamil Rytarowski <n54@gmx.com>
3712
3713 * netbsd-nat.h: Include <unistd.h>.
3714 * (netbsd_nat::pid_to_exec_file): Add.
3715 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3716 * (netbsd_nat::pid_to_exec_file) Add.
3717
70b67307
KR
37182020-09-10 Kamil Rytarowski <n54@gmx.com>
3719
3720 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3721
99cf6da6
KR
37222020-09-10 Kamil Rytarowski <n54@gmx.com>
3723
3724 * netbsd-nat.h: New file.
3725 * netbsd-nat.c: Likewise.
3726
1b788fb6
TT
37272020-09-09 Tom Tromey <tromey@adacore.com>
3728
3729 * ada-lang.c (remove_extra_symbols): Do not increment when
3730 removing an element
3731
03b0a45f
TT
37322020-09-08 Tom Tromey <tromey@adacore.com>
3733
3734 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3735
3cae4447
TT
37362020-09-08 Tom Tromey <tromey@adacore.com>
3737
3738 PR win32/25302:
3739 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3740 (gdb_bfd_init_data): New function.
3741 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3742
7f08fd51
TBA
37432020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3744
3745 * infrun.c (fetch_inferior_event): Use
3746 `switch_to_target_no_thread` to switch the target.
3747
3e6ff933
TT
37482020-09-06 Tom Tromey <tom@tromey.com>
3749
3750 * symfile.h (dwarf2_free_objfile): Don't declare.
3751
e56798df
AKS
37522020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3753
3754 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3755 to match 16 byte real/complex type generated by Flang compiler.
3756
8f5c6526
TV
37572020-09-03 Tom de Vries <tdevries@suse.de>
3758
3759 PR breakpoint/26546
3760 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3761 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3762
c5065df0
SM
37632020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3764
3765 * maint.c (index_digits): New function.
3766 (struct maint_print_section_data): Remove.
3767 (print_bfd_section_info): Remove print_data parameter, add arg
3768 and index_digits.
3769 (print_objfile_section_info): Likewise.
3770 (print_bfd_section_info_maybe_relocated): Likewise (plus
3771 objfile).
3772 (maintenance_info_sections): Adjust calls.
3773
02c6f3f1
TT
37742020-09-02 Tom Tromey <tromey@adacore.com>
3775
3776 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3777 for null pointers.
3778 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3779
ef5e5b0b
SM
37802020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3781
3782 * bcache.h (struct bcache) <insert>: Change type of `added` to
3783 pointer to bool.
3784 * bcache.c (bcache::insert): Likewise.
3785 * gdbtypes.c (check_types_worklist): Adjust.
3786 * psymtab.c (add_psymbol_to_bcache): Adjust.
3787
973695d6
KB
37882020-08-31 Kevin Buettner <kevinb@redhat.com>
3789
3790 * corelow.c (unordered_set): Include.
3791 (class core_target): Add field 'm_core_unavailable_mappings'.
3792 (core_target::build_file_mappings): Print only one warning
3793 per inaccessible file. Add unavailable/broken mappings
3794 to m_core_unavailable_mappings.
3795 (core_target::xfer_partial): Call...
3796 (core_target::xfer_memory_via_mappings): New method.
3797
264fc0e2
SM
37982020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3799
3800 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3801 type to bool.
3802
2de01bdb
SM
38032020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3804
3805 * dwarf2/read.c (struct field_info): Fix indentation.
3806
f3bd50f1
SM
38072020-08-31 Simon Marchi <simon.marchi@efficios.com>
3808
3809 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3810 ordering in comment.
3811 * frame.c (frame_id_eq): Fix indentation.
3812
22b9b4b0
SL
38132020-08-31 Scott Linder <scott@scottlinder.com>
3814 Simon Marchi <simon.marchi@efficios.com>
3815
3816 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3817 inline frame ids in outer frame.
3818
84154d16
SM
38192020-08-31 Simon Marchi <simon.marchi@efficios.com>
3820
3821 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3822 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3823 (outer_frame_id): Use FID_STACK_OUTER instead of
3824 FID_STACK_INVALID.
3825 (frame_id_p): Don't check for outer_frame_id.
3826
8efaf6b3
SM
38272020-08-31 Simon Marchi <simon.marchi@efficios.com>
3828
3829 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3830 regnum/frame in value. Call allocate_value_lazy.
3831 * frame.c (frame_unwind_register_value): Use
3832 val_print_not_saved.
3833
fe1fe7ea
SM
38342020-08-31 Simon Marchi <simon.marchi@efficios.com>
3835
3836 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3837
f7c7700d
PA
38382020-08-29 Pedro Alves <pedro@palves.net>
3839
3840 * progspace.c (print_program_space): Use all_inferiors. Switch to
3841 the inferior before calling target_pid_to_str.
3842
e0814aae
TT
38432020-08-28 Tom Tromey <tom@tromey.com>
3844
3845 * xcoffread.c (xcoff_end_psymtab): Update comment.
3846 * dbxread.c (dbx_end_psymtab): Update comment.
3847
626d2320
TV
38482020-08-28 Tom de Vries <tdevries@suse.de>
3849
3850 PR breakpoint/26544
3851 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3852 event_location.
3853 (create_breakpoint): Same.
3854 (base_breakpoint_decode_location): Same.
3855 (bkpt_create_sals_from_location): Same.
3856 (bkpt_decode_location): Same.
3857 (bkpt_probe_create_sals_from_location): Same.
3858 (bkpt_probe_decode_location): Same.
3859 (tracepoint_create_sals_from_location): Same.
3860 (tracepoint_decode_location): Same.
3861 (tracepoint_probe_decode_location): Same.
3862 (strace_marker_create_sals_from_location): Same.
3863 (strace_marker_decode_location): Same.
3864 (create_sals_from_location_default): Same.
3865 (decode_location_default): Same.
3866 * breakpoint.h (struct breakpoint_ops): Same.
3867 (create_breakpoint): Same.
3868 * linespec.h (decode_line_full): Same.
3869 * linespec.c (decode_line_full): Same. Throw error if
3870 result.size () == 0.
3871
df631783
PA
38722020-08-27 Pedro Alves <pedro@palves.net>
3873
3874 PR gdb/26524
3875 * breakpoint.c (until_break_fsm) <location_breakpoint,
3876 caller_breakpoint>: Delete fields.
3877 <breakpoints>: New field.
3878 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3879 two individual breakpoints.
3880 (until_break_fsm::should_stop): Loop over breakpoints in the
3881 breakpoint vector.
3882 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3883 vector.
3884 (until_break_command): Handle location expanding into multiple
3885 sals.
3886
b2b38aa4
PA
38872020-08-27 Pedro Alves <pedro@palves.net>
3888
3889 PR gdb/26523
3890 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3891 bp_until breakpoints user-specified locations. Update intro
3892 comment.
3893
b886559f
SM
38942020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3895
3896 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3897 gdb_bfd_sections): New.
3898 * maint.c (print_bfd_section_info): Change param type to
3899 maint_print_section_data.
3900 (print_objfile_section_info): Likewise.
3901 (print_bfd_section_info_maybe_relocated): Likewise.
3902 (maintenance_info_sections): Use gdb_bfd_sections.
3903
4c6e63bf
SV
39042020-08-25 Shahab Vahedi <shahab@synopsys.com>
3905
3906 * MAINTAINERS: Add ARC target and maintainer.
3907
8d7f0635
AK
39082020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3909
3910 * configure.tgt: ARC support for GNU/Linux.
3911 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3912 * arc-linux-tdep.c: New file.
3913 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3914 * arc-tdep.c (arc_write_pc): Use it.
3915
fdd8731b
SV
39162020-08-25 Shahab Vahedi <shahab@synopsys.com>
3917
3918 * arc-tdep.c (arc_check_for_hardware_loop): New.
3919 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3920
22459524
SV
39212020-08-25 Shahab Vahedi <shahab@synopsys.com>
3922
3923 * arc-tdep.h: Include "gdbarch.h".
3924
995d3a19
SV
39252020-08-25 Shahab Vahedi <shahab@synopsys.com>
3926
3927 * arch/arc.h
3928 (arc_gdbarch_features): New class to stir the selection of target XML.
3929 (arc_create_target_description): Use FEATURES to choose XML target.
3930 (arc_lookup_target_description): Use arc_create_target_description
3931 to create _new_ target descriptions or return the already created
3932 ones if the FEATURES is the same.
3933 * arch/arc.c: Implementation of prototypes described above.
3934 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3935 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3936 * arc-tdep.c (*_feature_name): Make feature names consistent.
3937 (arc_register_feature): A new struct to hold information about
3938 registers of a particular target/feature.
3939 (arc_check_tdesc_feature): Check if XML provides registers in
3940 compliance with ARC_REGISTER_FEATURE structs.
3941 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3942 (determine_*_reg_feature_set): Which feature name to look for.
3943 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3944 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3945 to expected ISA enums to be used in arc_gdbarch_features structs.
3946 * features/Makefile (FEATURE_XMLFILES): Add new files.
3947 * gdb/features/arc/v1-aux.c: New file.
3948 * gdb/features/arc/v1-aux.xml: Likewise.
3949 * gdb/features/arc/v1-core.c: Likewise.
3950 * gdb/features/arc/v1-core.xml: Likewise.
3951 * gdb/features/arc/v2-aux.c: Likewise.
3952 * gdb/features/arc/v2-aux.xml: Likewise.
3953 * gdb/features/arc/v2-core.c: Likewise.
3954 * gdb/features/arc/v2-core.xml: Likewise.
3955 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3956
3945d2d7
GM
39572020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3958 Andrew Burgess <andrew.burgess@embecosm.com>
3959
3960 PR m2/26372
fc5d6901 3961 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3962 an assert. Remove single element array indexing pattern as the
3963 MULTI_SUBSCRIPT support will handle this case too.
3964
2677f2d3
SM
39652020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3966
3967 * value.h (valprint_check_validity): Move declaration from
3968 here...
3969 * valprint.h (valprint_check_validity): ... to here.
3970
c426fddb
SM
39712020-08-24 Simon Marchi <simon.marchi@efficios.com>
3972
3973 * debug.h: New file.
3974 * debug.c (debug_prefixed_vprintf): New function.
3975 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3976 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3977
1eb8556f
SM
39782020-08-24 Simon Marchi <simon.marchi@efficios.com>
3979
3980 * infrun.h (infrun_debug_printf_1): New function declaration.
3981 (infrun_debug_printf): New macro.
3982 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3983 throughout.
3984 (infrun_debug_printf): New function.
3985 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3986 (handle_jit_event): Likewise.
3987
b8fff44e
MW
39882020-08-21 Mark Wielaard <mark@klomp.org>
3989
3990 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3991
d19c3068
SM
39922020-08-22 Simon Marchi <simon.marchi@efficios.com>
3993
3994 * frame.c (enum class frame_id_status): New.
3995 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3996 (fprintf_frame): Update.
3997 (compute_frame_id): Set frame id status to "computing" on entry.
3998 Set it back to "not_computed" on failure and to "computed" on
3999 success.
4000 (get_frame_id): Assert the frame id is not being computed.
4001 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4002 (create_new_frame): Likewise.
4003 (frame_cleanup_after_sniffer): Update assert.
4004
b70e516e
SM
40052020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4006
4007 * regcache.c (pid_ptid_regcache_map): New type.
4008 (target_ptid_regcache_map): Remove.
4009 (target_pid_ptid_regcache_map): New type.
4010 (regcaches): Change type to target_pid_ptid_regcache_map.
4011 (get_thread_arch_aspace_regcache): Update.
4012 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4013 case.
4014 (regcaches_size): Update.
4015 (regcache_count): Update.
4016 (registers_changed_ptid_target_pid_test): New.
4017 (_initialize_regcache): Register new test.
4018
cdd9148a
SM
40192020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4020
4021 * regcache.c (regcache_count): New.
4022 (struct regcache_test_data): New.
4023 (regcache_test_data_up): New.
4024 (populate_regcaches_for_test): New.
4025 (regcaches_test): Remove.
4026 (get_thread_arch_aspace_regcache_test): New.
4027 (registers_changed_ptid_all_test): New.
4028 (registers_changed_ptid_target_test): New.
4029 (registers_changed_ptid_target_ptid_test): New.
4030 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4031 (_initialize_regcache): Register new tests.
4032
dd125343
SM
40332020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4034
4035 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4036 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4037 gdbarch and aspace parameter. Use current inferior's aspace.
4038 Validate regcache's arch value.
4039 (regcaches_test): Update.
4040
3ee93972
SM
40412020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4042
4043 * regcache.c (regcaches_test): Call registers_changed.
4044
33bf4c5c
TBA
40452020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4046
4047 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4048
c2fd7fae
AKS
40492020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4050
4051 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4052 to find the end of prologue for flang compiled binaries.
4053 * arm-tdep.c (arm_skip_prologue): Likewise.
4054 * i386-tdep.c (i386_skip_prologue): Likewise.
4055 * producer.c (producer_is_llvm): New function.
4056 (producer_parsing_tests): Added new tests for clang/flang.
4057 * producer.h (producer_is_llvm): New declaration.
4058
9327494e
SM
40592020-08-18 Simon Marchi <simon.marchi@efficios.com>
4060
4061 * linux-nat.c (linux_nat_debug_printf): New function.
4062 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4063
d138725a
AM
40642020-08-18 Aaron Merey <amerey@redhat.com>
4065
4066 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4067 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4068 (CLIBS): Add DEBUGINFOD_LIBS.
4069
f9b11e6b
ST
40702020-08-17 Sergei Trofimovich <siarheit@google.com>
4071
4072 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4073 'gdbarch_num_regs'.
4074
3ae7ab99
TT
40752020-08-17 Tom Tromey <tromey@adacore.com>
4076
4077 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4078 ada_get_decoded_value returns NULL.
4079
b017825f
TT
40802020-08-17 Tom Tromey <tromey@adacore.com>
4081
4082 * python/py-inferior.c (infpy_search_memory): Use
4083 gdb_py_object_from_ulongest.
4084 * python/py-infevents.c (create_inferior_call_event_object)
4085 (create_memory_changed_event_object): Use
4086 gdb_py_object_from_ulongest.
4087 * python/py-linetable.c (ltpy_entry_get_pc): Use
4088 gdb_py_object_from_ulongest.
4089
7635cf79
SM
40902020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4091
4092 * loc.c (class symbol_needs_eval_context): Fix indentation.
4093
f54be24b
SM
40942020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4095
4096 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4097 bool.
4098
53d5a2a5
TV
40992020-08-17 Tom de Vries <tdevries@suse.de>
4100
4101 PR gdb/26393
4102 * gdbtypes.c (dump_dynamic_prop): New function.
4103 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4104
547ce8f0
TV
41052020-08-15 Tom de Vries <tdevries@suse.de>
4106
4107 PR backtrace/26390
4108 * stack.c (print_frame_args): Temporarily set the selected
4109 frame to FRAME while printing the frame's arguments.
4110
6ea815e7
PFC
41112020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4112
4113 PR breakpoints/26385
4114 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4115 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4116
6e562fa3
PFC
41172020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4118
4119 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4120 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4121 and >= to check return value instead of == -1 and != -1.
4122
d369b608
SM
41232020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4124
4125 * utils.h (class gdb_argv) <as_array_view>: New method.
4126 * utils.c (gdb_argv_as_array_view_test): New.
4127 (_initialize_utils): Register selftest.
4128 * maint.c (maintenance_selftest): Use the new method.
4129
b31488a3
KR
41302020-08-13 Kamil Rytarowski <n54@gmx.com>
4131
4132 * target.h (supports_dumpcore, dumpcore): New
4133 function declarations.
4134 * target.c (supports_dumpcore, dumpcore): New
4135 functions.
4136 * target-delegates.c: Rebuild.
4137 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4138 and target_dumpcore ().
4139
002a3166
AM
41402020-08-13 Aaron Merey <amerey@redhat.com>
4141
4142 * debuginfod-support.c: Replace global variables with user_data.
4143
ece5bc8a
SM
41442020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4145
4146 * maint.c (maintenance_selftest): Split args and pass array_view
4147 to run_tests.
4148
6d8a0a5e
LM
41492020-08-12 Luis Machado <luis.machado@linaro.org>
4150
4151 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4152 type's length.
4153 Use %s and pulongest to print the length.
4154
7cf663a9
PA
41552020-08-12 Pedro Alves <palves@redhat.com>
4156
4157 * NEWS: Move "Multi-target debugging support" item to the
4158 "Changes since GDB 9" section.
4159
27c7b875
PA
41602020-08-12 Pedro Alves <palves@redhat.com>
4161
4162 PR gdb/26336
4163 * progspace.c (program_space::remove_objfile): Invalidate the
4164 frame cache.
4165
1796a2a1
TV
41662020-08-11 Tom de Vries <tdevries@suse.de>
4167
4168 * MAINTAINERS: Mark ms1 as deleted.
4169
f8e3fe0d
LM
41702020-08-10 Luis Machado <luis.machado@linaro.org>
4171
4172 PR gdb/26310
4173
4174 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4175 act accordingly.
4176 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4177 movz/str/stur/stp skipping behavior.
4178
cc308722
LM
41792020-08-10 Luis Machado <luis.machado@linaro.org>
4180
4181 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4182 struct user_sve_header instead of struct sve_context.
4183
041d9819
SM
41842020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4185
4186 * read.h (dwarf2_fetch_die_loc_sect_off,
4187 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4188 `void *` parameter with function_view.
4189 * read.c (dwarf2_fetch_die_loc_sect_off,
4190 dwarf2_fetch_die_loc_cu_off): Likewise.
4191 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4192 (per_cu_dwarf_call): Adjust.
4193 (get_frame_address_in_block_wrapper): Remove.
4194 (indirect_synthetic_pointer): Adjust.
4195 (get_ax_pc): Remove.
4196 (dwarf2_compile_expr_to_ax): Adjust.
4197
38f8aa06
TV
41982020-08-08 Tom de Vries <tdevries@suse.de>
4199
4200 PR build/26344
4201 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4202 constructor.
4203 * regcache.c (get_thread_arch_aspace_regcache): Same.
4204
a52b3ae2
TT
42052020-08-07 Tom Tromey <tromey@adacore.com>
4206
4207 * ravenscar-thread.c
4208 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4209 New method.
4210 (ravenscar_thread_target::wait): Check
4211 runtime_initialized.
4212 (ravenscar_thread_target::prepare_to_store)
4213 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4214 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4215 (ravenscar_thread_target::stopped_by_watchpoint)
4216 (ravenscar_thread_target::stopped_data_address)
4217 (ravenscar_thread_target::core_of_thread): Use
4218 scoped_restore_current_thread and
4219 set_base_thread_from_ravenscar_task.
4220
0e29517d
TT
42212020-08-07 Tom Tromey <tromey@adacore.com>
4222
4223 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4224
592f9bd7
TT
42252020-08-07 Tom Tromey <tromey@adacore.com>
4226
4227 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4228 update_inferior_ptid before update_thread_list.
4229 (temporarily_change_regcache_ptid): New class.
4230 (ravenscar_thread_target::fetch_registers)
4231 (ravenscar_thread_target::store_registers)
4232 (ravenscar_thread_target::prepare_to_store): Use base thread when
4233 forwarding operation.
4234
39e2018a
TT
42352020-08-07 Tom Tromey <tromey@adacore.com>
4236
4237 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4238 "is_pid" case.
4239
2080266b
TT
42402020-08-07 Tom Tromey <tromey@adacore.com>
4241
4242 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4243 New methods.
4244 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4245 first.
4246 (ravenscar_thread_target::add_thread): Rename from
4247 ravenscar_add_thread.
4248 (ravenscar_thread_target::update_thread_list): Use a lambda.
4249 (ravenscar_thread_target::xfer_partial): New method.
4250
78c02f21
TT
42512020-08-07 Tom Tromey <tromey@adacore.com>
4252
4253 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4254 gdb::function_view.
4255 (iterate_over_live_ada_tasks): Change type of argument.
4256 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4257 of argument.
4258
d5d833af
TT
42592020-08-07 Tom Tromey <tromey@adacore.com>
4260
4261 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4262 Remove.
4263 (ravenscar_thread_target::extra_thread_info): Remove.
4264 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4265 defer to target beneath for non-Ravenscar threads.
4266
a8ac85bb
TT
42672020-08-07 Tom Tromey <tromey@adacore.com>
4268
4269 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4270 get_base_thread_from_ravenscar_task>: Now methods.
4271 <m_cpu_map>: New member.
4272 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4273 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4274 (ravenscar_thread_target::task_is_currently_active): Update.
4275 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4276 Now a method.
4277 (ravenscar_thread_target::add_active_thread): Put initial thread
4278 into the m_cpu_map.
4279
550ab58d
TT
42802020-08-07 Tom Tromey <tromey@adacore.com>
4281
4282 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4283 event_ptid.
4284
e9546579
TT
42852020-08-07 Tom Tromey <tromey@adacore.com>
4286
4287 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4288 runtime_initialized.
4289
3d4470e5
TT
42902020-08-07 Tom Tromey <tromey@adacore.com>
4291
4292 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4293 add_active_thread.
4294 (ravenscar_thread_target::add_active_thread): Now public.
4295 (ravenscar_inferior_created): Call add_active_thread after pushing
4296 the target.
4297
888bdb2b
SM
42982020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4299
4300 * regcache.c (ptid_regcache_map): New type.
4301 (target_ptid_regcache_map): New type.
4302 (regcaches): Change type to target_ptid_regcache_map.
4303 (get_thread_arch_aspace_regcache): Update to regcaches' new
4304 type.
4305 (regcache_thread_ptid_changed): Likewise.
4306 (registers_changed_ptid): Likewise.
4307 (regcaches_size): Likewise.
4308 (regcaches_test): Update.
4309 (regcache_thread_ptid_changed): Update.
4310 * regcache.h (regcache_up): New type.
4311 * gdbsupport/ptid.h (hash_ptid): New struct.
4312
b161a60d
SM
43132020-08-07 Simon Marchi <simon.marchi@efficios.com>
4314
4315 * observable.h (thread_ptid_changed): Add parameter
4316 `process_stratum_target *`.
4317 * infrun.c (infrun_thread_ptid_changed): Add parameter
4318 `process_stratum_target *` and use it.
4319 (selftests): New namespace.
4320 (infrun_thread_ptid_changed): New function.
4321 (_initialize_infrun): Register selftest.
4322 * regcache.c (regcache_thread_ptid_changed): Add parameter
4323 `process_stratum_target *` and use it.
4324 (regcache_thread_ptid_changed): New function.
4325 (_initialize_regcache): Register selftest.
4326 * thread.c (thread_change_ptid): Pass target to
4327 thread_ptid_changed observable.
4328
d2854d8d
CT
43292020-08-06 Caroline Tice <cmtice@google.com>
4330
fe4c3d43
SM
4331 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4332 (struct dwp_sections): Update field comments. Add loclists and
4333 rnglists fields.
4334 (struct virtual_v2_dwo_sections): Rename struct to
4335 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4336 size & offset fields for loclists and rnglists.
4337 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4338 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4339 skipping dummy type units.
4340 (create_dwp_hash_table): Update the large comment above the function to
4341 discuss Version 5 DWP files as well, with references. Update all the
4342 version checks in the function to check for version 5 as well. Add new
4343 section at the end to create dwp hash table for version 5.
4344 (create_dwp_v2_section): Rename function to
4345 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4346 Add V5 to error message text.
4347 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4348 into calls to create_dwp_v2_or_v5_section.
4349 (create_dwo_unit_in_dwp_v5): New function.
4350 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4351 check for version2; add else clause to handle version 5.
4352 (open_and_init_dwo_file): Add code to check dwarf version & only call
4353 create_debug_types_hash_table (with sections.types) if version is not 5;
4354 else call create_debug_type_hash_table, with sections.info.
4355 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4356 version 5.
4357 (dwarf2_locate_v5_dwp_sections): New function.
4358 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4359 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4360
159ed7d9
SM
43612020-08-06 Simon Marchi <simon.marchi@efficios.com>
4362
4363 * regcache.h (class regcache): Remove friend
4364 registers_changed_ptid.
4365 <regcache_thread_ptid_changed>: Remove.
4366 <regcaches>: Remove.
4367 * regcache.c (regcache::regcaches): Rename to...
4368 (regcaches): ... this. Make static.
4369 (get_thread_arch_aspace_regcache): Update.
4370 (regcache::regcache_thread_ptid_changed): Rename to...
4371 (regcache_thread_ptid_changed): ... this. Update.
4372 (class regcache_access): Remove.
4373 (regcaches_test): Update.
4374 (_initialize_regcache): Update.
4375 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4376 <forward_list>.
4377
174981ae
SM
43782020-08-06 Simon Marchi <simon.marchi@efficios.com>
4379
4380 * regcache.h (class regcache) <current_regcache>: Rename to...
4381 <regcaches>: ... this. Move doc here.
4382 * regcache.c (regcache::current_regcache) Rename to...
4383 (regcache::regcaches): ... this. Move doc to header.
4384 (get_thread_arch_aspace_regcache): Update.
4385 (regcache::regcache_thread_ptid_changed): Update.
4386 (registers_changed_ptid): Update.
4387 (class regcache_access) <current_regcache_size>: Rename to...
4388 <regcaches_size>: ... this.
4389 (current_regcache_test): Rename to...
4390 (regcaches_test): ... this.
4391 (_initialize_regcache): Update.
4392
ed908db6
VC
43932020-08-06 Victor Collod <vcollod@nvidia.com>
4394
4395 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4396
b5582ab7
KB
43972020-08-05 Kevin Buettner <kevinb@redhat.com>
4398
4399 * corelow.c (core_target::build_file_mappings): Don't output
4400 null pathname in warning.
4401
ea946b86
SM
44022020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4403
4404 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4405 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4406 gdb.dwarf2/dw2-single-line-discriminators.exp,
4407 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4408
57d02173
TT
44092020-08-05 Tom Tromey <tromey@adacore.com>
4410
4411 PR rust/26197:
4412 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4413 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4414 Fix off-by-one and type size errors in ordinary case.
4415
5555c86d
TV
44162020-08-05 Tom de Vries <tdevries@suse.de>
4417
4418 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4419 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4420
97916bfe
SM
44212020-08-04 Simon Marchi <simon.marchi@efficios.com>
4422
4423 * frame.h (frame_id_p): Return bool.
4424 (frame_id_artificial_p): Return bool.
4425 (frame_id_eq): Return bool.
4426 (has_stack_frames): Return bool.
4427 (get_selected_frame): Fix typo in comment.
4428 (get_frame_pc_if_available): Return bool.
4429 (get_frame_address_in_block_if_available): Return bool.
4430 (get_frame_func_if_available): Return bool.
4431 (read_frame_register_unsigned): Return bool.
4432 (get_frame_register_bytes): Return bool.
4433 (safe_frame_unwind_memory): Return bool.
4434 (deprecated_frame_register_read): Return bool.
4435 (frame_unwinder_is): Return bool.
4436 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4437 bool.
4438 <this_id::p>: Likewise.
4439 <prev_p>: Likewise.
4440 (frame_stash_add): Return bool.
4441 (get_frame_id): Use bool.
4442 (frame_id_build_special) Use bool.
4443 (frame_id_build_unavailable_stack): Use bool.
4444 (frame_id_build): Use bool.
4445 (frame_id_p): Return bool, use true/false instead of 1/0.
4446 (frame_id_artificial_p): Likewise.
4447 (frame_id_eq): Likewise.
4448 (frame_id_inner): Likewise.
4449 (get_frame_func_if_available): Likewise.
4450 (read_frame_register_unsigned): Likewise.
4451 (deprecated_frame_register_read): Likewise.
4452 (get_frame_register_bytes): Likewise.
4453 (has_stack_frames): Likewise.
4454 (inside_main_func): Likewise.
4455 (inside_entry_func): Likewise.
4456 (get_frame_pc_if_available): Likewise.
4457 (get_frame_address_in_block_if_available): Likewise.
4458 (frame_unwinder_is): Likewise.
4459 (safe_frame_unwind_memory): Likewise.
4460 (frame_unwind_arch): Likewise.
4461
fedfee88
SM
44622020-08-04 Simon Marchi <simon.marchi@efficios.com>
4463
4464 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4465 type to cached_copy_status.
4466 (fprintf_frame): Adjust.
4467 (get_frame_func_if_available): Adjust.
4468 (frame_cleanup_after_sniffer): Adjust.
4469
6cfa9b59
MW
44702020-08-04 Mark Wielaard <mark@klomp.org>
4471
4472 * MAINTAINERS (Write After Approval): Update email address.
4473
66d6346b
SM
44742020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4475
4476 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4477 dynamic_prop::const_val.
4478
8a6d5e35
SM
44792020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4480
4481 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4482 dynamic_prop::kind.
4483
51d6067d
SM
44842020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4485
4486 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4487
b26e2ae7
JM
44882020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4489
4490 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4491
39791af2
JM
44922020-08-04 Weimin Pan <weimin.pan@oracle.com>
4493 Jose E. Marchesi <jose.marchesi@oracle.com>
4494
4495 * configure.tgt: Add entry for bpf-*-*.
4496 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4497 (ALLDEPFILES): Add bpf-tdep.c.
4498 * bpf-tdep.c: New file.
4499 * MAINTAINERS: Add bpf target and maintainer.
4500 * NEWS: Mention the support for the new target.
4501
521894aa
TV
45022020-08-04 Tom de Vries <tdevries@suse.de>
4503
4504 PR symtab/23270
4505 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4506 Error.
4507
5d6356e9
JB
45082020-08-03 John Baldwin <jhb@FreeBSD.org>
4509
4510 * syscalls/freebsd.xml: Regenerate.
4511
0cf82b81
JB
45122020-08-03 John Baldwin <jhb@FreeBSD.org>
4513
4514 * syscalls/update-freebsd.sh: Fix usage and year range.
4515
8f34b746
TV
45162020-08-03 Tom de Vries <tdevries@suse.de>
4517
4518 PR symtab/26333
4519 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4520 DW_LNE_lo_user/DW_LNE_hi_user range.
4521
5e500d33
SM
45222020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4523
4524 PR ada/26318
4525 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4526 kind.
4527
78319c15
TBA
45282020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4529
4530 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4531
4c55e970
TBA
45322020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4533
4534 * breakpoint.c (set_breakpoint_condition): Update the condition
4535 expressions after checking that the input condition string parses
4536 successfully and does not contain junk at the end.
4537
1e620590
TBA
45382020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4539
4540 * breakpoint.c (set_breakpoint_condition): Update the
4541 condition string after parsing the new condition successfully.
4542
c8693053
RO
45432020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4544
4545 * proc-api.c (_STRUCTURED_PROC): Don't define.
4546 * proc-events.c: Likewise.
4547 * proc-flags.c: Likewise.
4548 * proc-why.c: Likewise.
4549 * procfs.c: Likewise.
4550
4551 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4552 * configure, config.in: Regenerate.
4553
5a99adb8
TV
45542020-07-30 Tom de Vries <tdevries@suse.de>
4555
4556 PR build/26320
4557 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4558 m_red/m_green/m_blue in a union.
4559
8ba83e91
TV
45602020-07-29 Tom de Vries <tdevries@suse.de>
4561
4562 PR tdep/26280
4563 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4564
f75a0693
AB
45652020-07-28 Tom Tromey <tromey@adacore.com>
4566
4567 PR symtab/26270:
4568 * symtab.h (find_pc_partial_function_sym): Declare.
4569 * cli/cli-cmds.c (disassemble_command): Use
4570 find_pc_partial_function_sym. Check asm_demangle.
4571 * blockframe.c (cache_pc_function_sym): New global.
4572 (cache_pc_function_name): Remove.
4573 (clear_pc_function_cache): Update.
4574 (find_pc_partial_function_sym): New function, from
4575 find_pc_partial_function.
4576 (find_pc_partial_function): Rewrite using
4577 find_pc_partial_function_sym.
4578
16f3242c
TT
45792020-07-28 Tom Tromey <tromey@adacore.com>
4580
4581 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4582 help. Add usage.
4583
4888741a
TT
45842020-07-28 Tom Tromey <tromey@adacore.com>
4585
4586 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4587 <DW_OP_GNU_variable_value>: Cast to address type.
4588
4d46f402
KR
45892020-07-28 Kamil Rytarowski <n54@gmx.com>
4590
4591 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4592 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4593 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4594 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4595 (nbsd_get_siginfo_type): New.
4596 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4597 (_initialize_nbsd_tdep): New.
4598
d70f978b
L
45992020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4600
4601 PR binutils/26301
4602 * configure: Regenerated.
4603
377170fa
L
46042020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4605
4606 PR binutils/26301
4607 * configure: Regenerated.
4608
43d5901d
AB
46092020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4610
4611 * python/py-frame.c: Remove 'user-regs.h' include.
4612 (frapy_read_register): Rewrite to make use of
4613 gdbpy_parse_register_id.
4614 * python/py-registers.c (gdbpy_parse_register_id): New function,
4615 moved here from python/py-unwind.c. Updated the return type, and
4616 also accepts register descriptor objects.
4617 * python/py-unwind.c: Remove 'user-regs.h' include.
4618 (pyuw_parse_register_id): Moved to python/py-registers.c.
4619 (unwind_infopy_add_saved_register): Update to use
4620 gdbpy_parse_register_id.
4621 (pending_framepy_read_register): Likewise.
4622 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4623
14fa8fb3
AB
46242020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4625
4626 * python/py-registers.c: Add 'user-regs.h' include.
4627 (register_descriptor_iter_find): New function.
4628 (register_descriptor_iterator_object_methods): New static global
4629 methods array.
4630 (register_descriptor_iterator_object_type): Add pointer to methods
4631 array.
4632
ddce1758
JB
46332020-07-27 John Baldwin <jhb@FreeBSD.org>
4634
4635 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4636 for all architectures on FreeBSD 11.3 and later.
4637
a4089f52
TT
46382020-07-27 Tom Tromey <tromey@adacore.com>
4639
4640 * gcore.h (load_corefile): Don't declare.
4641
95420d30
TV
46422020-07-27 Tom de Vries <tdevries@suse.de>
4643
4644 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4645 * config.in: Regenerate.
4646 * configure: Regenerate.
4647
05a6b8c2
EZ
46482020-07-26 Eli Zaretskii <eliz@gnu.org>
4649
4650 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4651 ws2tcpip.h. When checking whether socklen_t type is defined, use
4652 ws2tcpip.h if it is available and sys/socket.h isn't.
4653 * configure: Regenerate.
4654 * config.in: Regenerate.
4655
e79eb02f
AB
46562020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4657
4658 PR fortran/23051
4659 PR fortran/26139
4660 * valops.c (value_ind): Pass address to
4661 readjust_indirect_value_type.
4662 * value.c (readjust_indirect_value_type): Make parameter
4663 non-const, and add extra address parameter. Resolve original type
4664 before using it.
4665 * value.h (readjust_indirect_value_type): Update function
4666 signature and comment.
4667
876518dd
TV
46682020-07-25 Tom de Vries <tdevries@suse.de>
4669
4670 PR symtab/26243
4671 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4672 entries.
4673
f6720b1c
AM
46742020-07-24 Aaron Merey <amerey@redhat.com>
4675
4676 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4677 * configure: Rebuild.
4678
513487e1
KB
46792020-07-23 Kevin Buettner <kevinb@redhat.com>
4680
4681 PR corefiles/26294
4682 * corelow.c (_initialize_corelow): Add period to help text
4683 for "maintenance print core-file-backed-mappings".
4684
e7bc9db8
PA
46852020-07-23 Pedro Alves <pedro@palves.net>
4686
4687 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4688 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4689 meanwhile.
4690 * frame.c (frame_cache_generation, get_frame_cache_generation):
4691 New.
4692 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4693 (get_prev_frame_if_no_cycle): On exception, don't touch
4694 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4695 * frame.h (get_frame_cache_generation): Declare.
4696
90fcc466
TV
46972020-07-23 Tom de Vries <tdevries@suse.de>
4698
4699 PR tui/26282
4700 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4701 New default constructor.
4702
78344df7
AB
47032020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4704
4705 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4706 exclude non-statement entries.
4707
b089853a
KB
47082020-07-22 Kevin Buettner <kevinb@redhat.com>
4709
4710 * NEWS (New commands): Mention new command
4711 "maintenance print core-file-backed-mappings".
4712
09c2f5d4
KB
47132020-07-22 Kevin Buettner <kevinb@redhat.com>
4714
4715 * corelow.c (gdbcmd.h): Include.
4716 (core_target::info_proc_mappings): New method.
4717 (get_current_core_target): New function.
4718 (maintenance_print_core_file_backed_mappings): New function.
4719 (_initialize_corelow): Add core-file-backed-mappings to
4720 "maint print" commands.
4721
9c5ec5c2 47222020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4723
9c5ec5c2
KB
4724 * linux-tdep.c (dump_note_entry_p): New function.
4725 (linux_dump_mapping_p_ftype): New typedef.
4726 (linux_find_memory_regions_full): Add new parameter,
4727 should_dump_mapping_p.
4728 (linux_find_memory_regions): Adjust call to
4729 linux_find_memory_regions_full.
4730 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4731 call to linux_find_memory_regions_full.
4732
db082f59
KB
47332020-07-22 Kevin Buettner <kevinb@redhat.com>
4734
4735 * corelow.c (solist.h, unordered_map): Include.
4736 (class core_target): Add field m_core_file_mappings and
4737 method build_file_mappings.
4738 (core_target::core_target): Call build_file_mappings.
4739 (core_target::~core_target): Free memory associated with
4740 m_core_file_mappings.
4741 (core_target::build_file_mappings): New method.
4742 (core_target::xfer_partial): Use m_core_file_mappings
4743 for memory transfers.
4744 * linux-tdep.c (linux_read_core_file_mappings): New
4745 function.
4746 (linux_core_info_proc_mappings): Rewrite to use
4747 linux_read_core_file_mappings.
4748 (linux_init_abi): Register linux_read_core_file_mappings.
4749
7e183d27
KB
47502020-07-22 Kevin Buettner <kevinb@redhat.com>
4751
4752 * arch-utils.c (default_read_core_file_mappings): New function.
4753 * arch-utils.c (default_read_core_file_mappings): Declare.
4754 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4755 * gdbarch.h, gdbarch.c: Regenerate.
4756
2735d421
KB
47572020-07-22 Kevin Buettner <kevinb@redhat.com>
4758
4759 PR corefiles/25631
4760 * corelow.c (core_target:xfer_partial): Revise
4761 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4762 case after first checking the stratum beneath the core
4763 target.
4764 (has_all_memory): Return true.
4765 * target.c (raw_memory_xfer_partial): Revise comment
4766 regarding use of has_all_memory.
4767
e56cb451
KB
47682020-07-22 Kevin Buettner <kevinb@redhat.com>
4769
4770 * exec.h (section_table_xfer_memory): Revise declaration,
4771 replacing section name parameter with an optional callback
4772 predicate.
4773 * exec.c (section_table_xfer_memory): Likewise.
4774 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4775 of section_table_xfer_memory.
4776
32fa152e
TT
47772020-07-22 Tom Tromey <tromey@adacore.com>
4778
4779 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4780 lookup_symbol_search_name.
4781
a67a1c41
AB
47822020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4783
4784 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4785 redundant local variable.
4786 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4787 reference, not pointer, update code accordingly.
4788
a7b4ff4f
SM
47892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4790 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4791
4792 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4793 * jit.c (jit_breakpoint_re_set_internal): Use the
4794 `skip_jit_symbol_lookup` field.
4795
2340e834
SM
47962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4797 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4798
4799 * jit.c (jit_read_descriptor): Define the descriptor address once,
4800 use twice.
4801 (jit_breakpoint_deleted): Move the declaration of the loop variable
4802 `iter` into the loop header.
4803 (jit_breakpoint_re_set_internal): Move the declaration of the local
4804 variable `objf_data` to the first point of definition.
4805 (jit_event_handler): Move the declaration of local variables
4806 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4807 Rename `objf` to `jited`.
4808
c1072906
SM
48092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4810
4811 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4812 Remove.
4813 * jit.c (get_jiter_objfile_data): Update.
4814
c8474dc3
TBA
48152020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4816 Simon Marchi <simon.marchi@polymtl.ca>
4817
4818 * jit.c (struct jit_program_space_data): Remove.
4819 (jit_program_space_key): Remove.
4820 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4821 stuff.
4822 (get_jit_program_space_data): Remove.
4823 (jit_breakpoint_deleted): Iterate on all of the program space's
4824 objfiles.
4825 (jit_inferior_init): Likewise.
4826 (jit_breakpoint_re_set_internal): Likewise. Also change return
4827 type to void.
4828 (jit_breakpoint_re_set): Pass current_program_space to
4829 jit_breakpoint_re_set_internal.
4830
77208eb7
SM
48312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4832
4833 * jit.h (struct jiter_objfile_data) <cached_code_address,
4834 jit_breakpoint>: Move to here from ...
4835 * jit.c (jit_program_space_data): ... here.
4836 (jiter_objfile_data::~jiter_objfile_data): Update.
4837 (jit_breakpoint_deleted): Update.
4838 (jit_breakpoint_re_set_internal): Update.
4839
8c1c720f
SM
48402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4841
4842 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4843 checks.
4844 (jit_read_descriptor): Remove NULL check.
4845 (jit_event_handler): Add an assertion.
4846
0e74a041
SM
48472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4848
4849 * jit.h (struct jit_objfile_data): Split into...
4850 (struct jiter_objfile_data): ... this ...
4851 (struct jited_objfile_data): ... and this.
4852 * objfiles.h (struct objfile) <jit_data>: Remove.
4853 <jiter_data, jited_data>: New fields.
4854 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4855 (jiter_objfile_data::~jiter_objfile_data): ... this.
4856 (get_jit_objfile_data): Rename to ...
4857 (get_jiter_objfile_data): ... this.
4858 (add_objfile_entry): Update.
4859 (jit_read_descriptor): Use get_jiter_objfile_data.
4860 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4861 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4862 (jit_inferior_exit_hook): Use objfile's jited_data field.
4863
238b5c9f
SM
48642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4865
4866 * jit.h: Forward-declare `struct minimal_symbol`.
4867 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4868 constructor, destructor, and an objfile* field.
4869 * jit.c (jit_objfile_data): Remove.
4870 (struct jit_objfile_data): Migrate from here to jit.h.
4871 (jit_objfile_data::~jit_objfile_data): New destructor
4872 implementation with code moved from free_objfile_data.
4873 (free_objfile_data): Delete.
4874 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4875 (jit_find_objf_with_entry_addr): Ditto.
4876 (jit_inferior_exit_hook): Ditto.
4877 (_initialize_jit): Remove the call to
4878 register_objfile_data_with_cleanup.
4879 * objfiles.h (struct objfile) <jit_data>: New field.
4880
fe053b9e
TBA
48812020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4882
4883 * jit.h: Forward-declare `struct objfile`.
4884 (jit_event_handler): Add a second parameter, the JITer objfile.
4885 * jit.c (jit_read_descriptor): Change the signature to take the
4886 JITer objfile as an argument instead of the jit_program_space_data.
4887 (jit_inferior_init): Update the call to jit_read_descriptor.
4888 (jit_event_handler): Use the new JITer objfile argument when calling
4889 jit_read_descriptor.
4890 * breakpoint.c (handle_jit_event): Update the call to
4891 jit_event_handler to pass the JITer objfile.
4892
4cec0c66
JB
48932020-07-21 John Baldwin <jhb@FreeBSD.org>
4894
4895 * gdbarch.c: Regenerate.
4896 * gdbarch.h: Regenerate.
4897 * gdbarch.sh (handle_segmentation_fault): Remove method.
4898 * infrun.c (handle_segmentation_fault): Remove.
4899 (print_signal_received_reason): Remove call to
4900 handle_segmentation_fault.
4901
0e42f66a
JB
49022020-07-21 John Baldwin <jhb@FreeBSD.org>
4903
4904 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4905 Rename to sparc64_linux_report_signal_info and add siggnal
4906 argument.
4907 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4908 instead of sparc64_linux_handle_segmentation_fault.
4909
77bdfeb2
JB
49102020-07-21 John Baldwin <jhb@FreeBSD.org>
4911
4912 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4913 i386_linux_report_signal_info instead of
4914 i386_linux_handle_segmentation_fault.
4915 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4916 to i386_linux_report_signal_info and add siggnal argument.
4917 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4918 of i386_linux_handle_segmentation_fault.
4919 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4920 to i386_linux_report_signal_info and add siggnal argument.
4921
ad97bfc5
JB
49222020-07-21 John Baldwin <jhb@FreeBSD.org>
4923
4924 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4925 hook if present.
4926
272bb05c
JB
49272020-07-21 John Baldwin <jhb@FreeBSD.org>
4928
4929 * gdbarch.c: Regenerate.
4930 * gdbarch.h: Regenerate.
4931 * gdbarch.sh (report_signal_info): New method.
4932 * infrun.c (print_signal_received_reason): Invoke gdbarch
4933 report_signal_info hook if present.
4934
baf8791e
AB
49352020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4936
4937 * python/py-registers.c : Add 'unordered_map' include.
4938 (gdbpy_new_reggroup): Renamed to...
4939 (gdbpy_get_reggroup): ...this. Update to only create register
4940 group descriptors when needed.
4941 (gdbpy_reggroup_iter_next): Update.
4942
f7306dac
AB
49432020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4944
4945 * python/py-registers.c (gdbpy_register_object_data): New static
4946 global.
4947 (gdbpy_register_object_data_init): New function.
4948 (gdbpy_new_register_descriptor): Renamed to...
4949 (gdbpy_get_register_descriptor): ...this, and update to reuse
4950 existing register descriptors where possible.
4951 (gdbpy_register_descriptor_iter_next): Update.
4952 (gdbpy_initialize_registers): Register new gdbarch data.
4953
05c309a8
SM
49542020-07-21 Simon Marchi <simon.marchi@efficios.com>
4955
4956 * linux-nat.c (stopped_pids): Make static.
4957
d1fd641e
SM
49582020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4959
4960 PR ada/26235
4961 * gdbtypes.c (ada_discrete_type_low_bound,
4962 ada_discrete_type_high_bound): Handle undefined bounds.
4963
1de14d77
KR
49642020-07-21 Kamil Rytarowski <n54@gmx.com>
4965
4966 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4967 declaration.
4968 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4969 function.
4970
ed810cc7
JB
49712020-07-20 John Baldwin <jhb@FreeBSD.org>
4972
4973 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4974 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4975 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4976 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4977 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4978 method.
4979
ae5369e7
LC
49802020-07-20 Ludovic Courtès <ludo@gnu.org>
4981
4982 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4983 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4984 which are deprecated in Guile 3.0.
4985 * configure.ac (try_guile_versions): Add "guile-3.0".
4986 * configure (try_guile_versions): Regenerate.
4987 * NEWS: Update entry.
4988
68cf161c
LC
49892020-07-20 Ludovic Courtès <ludo@gnu.org>
4990 Doug Evans <dje@google.com>
4991
4992 PR gdb/21104
4993 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4994 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4995 USING_GUILE_BEFORE_2_2.
4996 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4997 Change type to 'scm_t_port_type *'.
4998 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4999 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5000 parameter and honor it. Update callers.
5001 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5002 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5003 functions.
5004 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5005 USING_GUILE_BEFORE_2_2.
5006 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5007 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5008 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5009 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5010 and 'SCM_PORT_TYPE'.
5011 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5012 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5013 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5014 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5015 [!USING_GUILE_BEFORE_2_2]: New functions.
5016 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5017 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5018 'gdbscm_memory_port_read'.
5019 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5020 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5021 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5022 function.
5023 (ioscm_init_memory_port): Remove.
5024 (ioscm_init_memory_port_stream): New function
5025 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5026 function.
5027 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5028 Return scm_from_uint (0).
5029 (gdbscm_set_memory_port_read_buffer_size_x)
5030 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5031 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5032 Return scm_from_uint (0).
5033 (gdbscm_set_memory_port_write_buffer_size_x)
5034 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5035 * configure.ac (try_guile_versions): Add "guile-2.2".
5036 * configure: Regenerate.
5037 * NEWS: Add entry.
5038
aee91db3
TT
50392020-07-18 Tom Tromey <tom@tromey.com>
5040
5041 * linux-nat.c (linux_multi_process): Remove.
5042 (linux_nat_target::supports_multi_process): Return true.
5043
0e267416
AB
50442020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5045
5046 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5047 (riscv_lookup_target_description): Return pointer out of
5048 unique_ptr.
5049 * target-descriptions.c (allocate_target_description): Add
5050 comment.
5051 (target_desc_deleter::operator()): Likewise.
5052 * target-descriptions.h (struct target_desc_deleter): Moved to
5053 gdbsupport/tdesc.h.
5054 (target_desc_up): Likewise.
5055
f80c8ec4
TT
50562020-07-17 Tom Tromey <tromey@adacore.com>
5057
5058 * linux-nat.c (linux_nat_target::supports_non_stop)
5059 (linux_nat_target::always_non_stop_p): Use "true".
5060 (linux_nat_target::supports_disable_randomization): Use "true" and
5061 "false".
5062
d0ce17d8
CT
50632020-07-16 Caroline Tice <cmtice@google.com>
5064
5065 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5066 (RNGLIST_HEADER_SIZE64): New constant definition.
5067 (struct dwop_section_names): Add rnglists_dwo.
5068 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5069 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5070 (struct dwo_sections): Add rnglists field.
5071 (read_attribut_reprocess): Add tag parameter.
5072 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5073 (cu_debug_rnglists_section): New function (decl & definition).
5074 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5075 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5076 die whose range is being checked; get rnglist section from
5077 cu_debug_rnglists_section, to get from either objfile or dwo file as
5078 appropriate. Add cases for DW_RLE_base_addressx,
5079 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5080 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5081 test inside if-condition and updating complaint message.
5082 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5083 dwarf2_rnglists_process.
5084 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5085 dwarf2_ranges_process.
5086 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5087 need_ranges_base and update comment appropriately. Also pass die tag
5088 to dwarf2_ranges_read.
5089 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5090 need_ranges_base and update comment appropriately. Also pass die tag
5091 to dwarf2_ranges_process.
5092 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5093 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5094 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5095 need_ranges_base and update comment appropriately. Also pass die tag
5096 to read_attribute_reprocess and dwarf2_ranges_read.
5097 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5098 and update function comment appropriately.
5099 (read_loclist_index): Call read_loclists_rnglists_header instead of
5100 read_loclist_header.
5101 (read_rnglist_index): New function.
5102 (read_attribute_reprocess): Add tag parameter. Add code for
5103 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5104 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5105
3dcc261c
AB
51062020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5107
5108 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5109 being resolved.
5110
ccb9eba6
AB
51112020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5112
5113 * arch-utils.c (show_architecture): Update formatting of messages.
5114
cf88be68
SM
51152020-07-12 Simon Marchi <simon.marchi@efficios.com>
5116
5117 * gdbtypes.h (struct type) <bounds>: Handle array and string
5118 types.
5119 * ada-lang.c (assign_aggregate): Use type::bounds on
5120 array/string type.
5121 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5122 * c-varobj.c (c_number_of_children): Likewise.
5123 (c_describe_child): Likewise.
5124 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5125 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5126 (f_type_print_base): Likewise.
5127 * f-valprint.c (f77_array_offset_tbl): Likewise.
5128 (f77_get_upperbound): Likewise.
5129 (f77_print_array_1): Likewise.
5130 * guile/scm-type.c (gdbscm_type_range): Likewise.
5131 * m2-typeprint.c (m2_array): Likewise.
5132 (m2_is_long_set_of_type): Likewise.
5133 * m2-valprint.c (get_long_set_bounds): Likewise.
5134 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5135 * python/py-type.c (typy_range): Likewise.
5136 * rust-lang.c (rust_internal_print_type): Likewise.
5137 * type-stack.c (type_stack::follow_types): Likewise.
5138 * valarith.c (value_subscripted_rvalue): Likewise.
5139 * valops.c (value_cast): Likewise.
5140
509971ae
SM
51412020-07-12 Simon Marchi <simon.marchi@efficios.com>
5142
5143 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5144 callers to use the equivalent accessor methods.
5145
107406b7
SM
51462020-07-12 Simon Marchi <simon.marchi@efficios.com>
5147
5148 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5149 (struct type) <bit_stride>: New method.
5150 (TYPE_BIT_STRIDE): Remove.
5151 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5152
bb789949
SM
51532020-07-12 Simon Marchi <simon.marchi@efficios.com>
5154
5155 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5156 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5157 callers to use the equivalent accessor methods instead.
5158
39498edb
SM
51592020-07-12 Simon Marchi <simon.marchi@efficios.com>
5160
5161 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5162 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5163 callers to use the equivalent accessor methods instead.
5164
3b606f38
SM
51652020-07-12 Simon Marchi <simon.marchi@efficios.com>
5166
5167 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5168 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5169 to use dynamic_prop::kind.
5170
064d9cb9
SM
51712020-07-12 Simon Marchi <simon.marchi@efficios.com>
5172
5173 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5174 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5175 to get the bound property's kind and check against
5176 PROP_UNDEFINED.
5177
5537ddd0
SM
51782020-07-12 Simon Marchi <simon.marchi@efficios.com>
5179
5180 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5181 all callers to use type::range_bounds followed by
5182 dynamic_prop::{low,high}.
5183
8c2e4e06
SM
51842020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5185
5186 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5187 const_val, set_const_val, baton, set_locexpr, set_loclist,
5188 set_addr_offset, variant_parts, set_variant_parts,
5189 original_type, set_original_type>: New methods.
5190 <kind>: Rename to...
5191 <m_kind>: ... this. Update all users to use the new methods
5192 instead.
5193 <data>: Rename to...
5194 <m_data>: ... this. Update all users to use the new methods
5195 instead.
5196
7c6f2712
SM
51972020-07-12 Simon Marchi <simon.marchi@efficios.com>
5198
5199 * gdbtypes.c (get_discrete_bounds): Return failure if
5200 the range type's bounds are not both defined and constant
5201 values.
5202 (get_array_bounds): Update comment. Remove undefined bound check.
5203
599088e3
SM
52042020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5205
5206 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5207 the type::bounds method directly.
5208
c4dfcb36
SM
52092020-07-12 Simon Marchi <simon.marchi@efficios.com>
5210
5211 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5212 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5213 are used to set the range type's bounds to use set_bounds.
5214
0a278aa7
PW
52152020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5216
5217 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5218
cce20f10
PA
52192020-07-10 Pedro Alves <pedro@palves.net>
5220
5221 * gdbthread.h (inferior_ref): Define.
5222 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5223 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5224 * thread.c
5225 (scoped_restore_current_thread::restore):
5226 Adjust to gdb::ref_ptr.
5227 (scoped_restore_current_thread::~scoped_restore_current_thread):
5228 Remove manual decref handling.
5229 (scoped_restore_current_thread::scoped_restore_current_thread):
5230 Adjust to use
5231 inferior_ref::new_reference/thread_info_ref::new_reference.
5232 Incref the thread before calling get_frame_id instead of after.
5233 Let TARGET_CLOSE_ERROR propagate.
5234
6d7aa592
PA
52352020-07-10 Pedro Alves <pedro@palves.net>
5236
5237 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5238 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5239 NOT_AVAILABLE_ERROR.
5240 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5241 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5242
b3e3a4c1
SM
52432020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5244 Pedro Alves <pedro@palves.net>
5245
5246 PR gdb/26199
5247 * infrun.c (threads_are_resumed_pending_p): Delete.
5248 (do_target_wait): Remove threads_are_executing and
5249 threads_are_resumed_pending_p checks from the inferior_matches
5250 lambda. Update comments.
5251
d6cc5d98
PA
52522020-07-10 Pedro Alves <pedro@palves.net>
5253
5254 PR gdb/26199
5255 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5256 executing threads.
5257
7d3badc6
PA
52582020-07-10 Pedro Alves <pedro@palves.net>
5259
5260 PR gdb/26199
5261 * infrun.c (handle_no_resumed): Handle multiple targets.
5262
42bd97a6
PA
52632020-07-10 Pedro Alves <pedro@palves.net>
5264
5265 PR gdb/26199
5266 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5267 target_is_async_p.
5268
43667cc6
PA
52692020-07-10 Pedro Alves <pedro@palves.net>
5270
5271 PR gdb/26199
5272 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5273 threads, not all threads.
5274
96118d11
PA
52752020-07-10 Pedro Alves <pedro@palves.net>
5276
5277 PR gdb/26199
5278 * remote.c (remote_target::open_1): Pass remote target pointer as
5279 data to create_async_event_handler.
5280 (remote_async_inferior_event_handler): Mark async event handler
5281 before returning if the remote target still has either pending
5282 events or unacknowledged notifications.
5283
54904d81
JB
52842020-07-10 John Baldwin <jhb@FreeBSD.org>
5285
5286 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5287 declaration.
5288 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5289 function.
5290
f37e5866
JB
52912020-07-09 John Baldwin <jhb@FreeBSD.org>
5292
5293 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5294 inferior_ptid.
5295
fc238d4a
JB
52962020-07-09 John Baldwin <jhb@FreeBSD.org>
5297
5298 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5299 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5300 AT_FREEBSD_PS_STRINGS.
5301
6e2469ff
HD
53022020-07-08 Hannes Domani <ssbssa@yahoo.de>
5303
5304 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5305 of debugfile path on Windows.
5306
d1076c41
JB
53072020-07-08 John Baldwin <jhb@FreeBSD.org>
5308
5309 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5310 argument to 'data'.
5311
15f3b077
TT
53122020-07-08 Tom Tromey <tromey@adacore.com>
5313
5314 * ada-lang.c (ada_exception_message_1): Use read_memory.
5315
9fc501fd
AB
53162020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5317
5318 PR python/22748
5319 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5320 special handling for inline frames.
5321 * findvar.c (value_of_register_lazy): Skip inline frames when
5322 creating lazy register values.
5323 * frame.c (frame_id_computed_p): Delete definition.
5324 * frame.h (frame_id_computed_p): Delete declaration.
5325
64cb3757
AB
53262020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5327
5328 * NEWS: Mention additions to Python API.
5329 * python/py-arch.c (archpy_register_groups): New function.
5330 (arch_object_methods): Add 'register_groups' method.
5331 * python/py-registers.c (reggroup_iterator_object): New struct.
5332 (reggroup_object): New struct.
5333 (gdbpy_new_reggroup): New function.
5334 (gdbpy_reggroup_to_string): New function.
5335 (gdbpy_reggroup_name): New function.
5336 (gdbpy_reggroup_iter): New function.
5337 (gdbpy_reggroup_iter_next): New function.
5338 (gdbpy_new_reggroup_iterator): New function
5339 (gdbpy_initialize_registers): Register new types.
5340 (reggroup_iterator_object_type): Define new Python type.
5341 (gdbpy_reggroup_getset): New static global.
5342 (reggroup_object_type): Define new Python type.
5343 * python/python-internal.h
5344
0f767f94
AB
53452020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5346
5347 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5348 * python/py-arch.c (archpy_registers): New function.
5349 (arch_object_methods): Add 'registers' method.
5350 * python/py-registers.c: New file.
5351 * python/python-internal.h
5352 (gdbpy_new_register_descriptor_iterator): Declare.
5353 (gdbpy_initialize_registers): Declare.
5354 * python/python.c (do_start_initialization): Call
5355 gdbpy_initialize_registers.
5356 * NEWS: Mention additions to the Python API.
5357
87dbc774
AB
53582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5359
5360 * NEWS: Mention new Python API method.
5361 * python/py-unwind.c (pending_framepy_architecture): New function.
5362 (pending_frame_object_methods): Add architecture method.
5363
3bc98c0c
AB
53642020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5365
5366 * gdbarch.c: Regenerate.
5367 * gdbarch.h: Regenerate.
5368 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5369 (gdbarch_data): Use internal_error for the case where
5370 deprecated_set_gdbarch_data was originally needed.
5371 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5372 and use passed in obstack.
5373 (libunwind_frame_set_descr): Should no longer get back NULL from
5374 gdbarch_data.
5375 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5376 type.
5377 * user-regs.c (user_regs_init): Update parameters, and use passed
5378 in obstack.
5379 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5380 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5381
d8cc8af6
TV
53822020-07-06 Tom de Vries <tdevries@suse.de>
5383
5384 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5385 End-Of-Sequence in lte_is_less_than.
5386 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5387 "gdb: Don't reorder line table entries too much when sorting".
5388
947f7597
TV
53892020-07-06 Tom de Vries <tdevries@suse.de>
5390
5391 PR tui/26205
5392 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5393
1e7c1b22
TV
53942020-07-05 Tom de Vries <tdevries@suse.de>
5395
5396 PR build/26187
5397 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5398 std::uncaught_exceptions instead of deprecated
5399 std::uncaught_exception.
5400
a36158ec
SM
54012020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5402
5403 * macroexp.h (macro_stringify): Return
5404 gdb::unique_xmalloc_ptr<char>.
5405 * macroexp.c (macro_stringify): Likewise.
5406 * macrotab.c (fixup_definition): Update.
5407
14d960c8
SM
54082020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5409
5410 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5411 (lex_one_token): Update.
5412 * macroexp.c (struct macro_buffer) <release>: Return
5413 gdb::unique_xmalloc_ptr<char>.
5414 (macro_stringify): Update.
5415 (macro_expand): Update.
5416 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5417 * macroexp.h (macro_expand_next): Likewise.
5418
211d5b1c
SM
54192020-07-02 Simon Marchi <simon.marchi@efficios.com>
5420
5421 * macroexp.h (macro_lookup_ftype): Remove.
5422 (macro_expand, macro_expand_once, macro_expand_next): Remove
5423 lookup function parameters, add scope parameter.
5424 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5425 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5426 * macroscope.h (standard_macro_lookup): Change parameter type
5427 to macro_scope.
5428 * macroscope.c (standard_macro_lookup): Likewise.
5429 * c-exp.y (lex_one_token): Update.
5430 * macrocmd.c (macro_expand_command): Likewise.
5431 (macro_expand_once_command): Likewise.
5432
b1a35af2
SM
54332020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5434
5435 * inf-loop.c (inferior_event_handler): Remove client_data param.
5436 * inf-loop.h (inferior_event_handler): Likewise.
5437 * infcmd.c (step_1): Adjust.
5438 * infrun.c (proceed): Adjust.
5439 (fetch_inferior_event): Remove client_data param.
5440 (infrun_async_inferior_event_handler): Adjust.
5441 * infrun.h (fetch_inferior_event): Remove `void *` param.
5442 * linux-nat.c (handle_target_event): Adjust.
5443 * record-btrace.c (record_btrace_handle_async_inferior_event):
5444 Adjust.
5445 * record-full.c (record_full_async_inferior_event_handler):
5446 Adjust.
5447 * remote.c (remote_async_inferior_event_handler): Adjust.
5448
1cdf9e33
TT
54492020-07-01 Tom Tromey <tom@tromey.com>
5450
5451 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5452 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5453
32c1e210
TT
54542020-07-01 Tom Tromey <tom@tromey.com>
5455
5456 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5457 tui_gen_win_info.
5458 (tui_win_info::make_window): Merge with
5459 tui_gen_win_info::make_window.
5460 (tui_win_info::make_visible): Move from tui_gen_win_info.
5461 * tui/tui-win.c (tui_win_info::max_width): Move from
5462 tui_gen_win_info.
5463 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5464 type.
5465 <window_factory>: Likewise.
5466 * tui/tui-layout.c (tui_win_info::resize): Move from
5467 tui_gen_win_info.
5468 (make_standard_window): Change return type.
5469 (get_locator_window, tui_get_window_by_name): Likewise.
5470 (tui_layout_window::apply): Remove a cast.
5471 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5472 (struct tui_win_info): Merge with tui_gen_win_info.
5473 (struct tui_gen_win_info): Remove.
5474
a30cb6da
TT
54752020-07-01 Tom Tromey <tom@tromey.com>
5476
5477 * tui/tui-stack.h (struct tui_locator_window): Derive from
5478 tui_win_info.
5479 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5480 <can_box>: New method.
5481
1eb2161f
TT
54822020-07-01 Tom Tromey <tom@tromey.com>
5483
5484 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5485
7134f2eb
TT
54862020-07-01 Tom Tromey <tom@tromey.com>
5487
5488 * tui/tui-regs.c (tui_data_window::display_registers_from)
5489 (tui_data_window::display_registers_from)
5490 (tui_data_window::first_data_item_displayed)
5491 (tui_data_window::delete_data_content_windows): Update.
5492 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5493 Remove.
5494 (tui_data_window::check_register_values): Update.
5495 (tui_data_item_window::rerender): Add parameters. Update.
5496 (tui_data_item_window::refresh_window): Remove.
5497 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5498 virtual.
5499 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5500 tui_gen_win_info.
5501 <refresh_window, max_height, min_height>: Remove.
5502 <rerender>: Add parameters.
5503 <x, y, visible>: New members.
5504 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5505 <m_item_width>: New member.
5506
22b7b041
TT
55072020-07-01 Tom Tromey <tom@tromey.com>
5508
5509 * tui/tui-regs.c (tui_data_window::show_register_group)
5510 (tui_data_window::check_register_values): Update.
5511 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5512 from item_no.
5513
c9753adb
TT
55142020-07-01 Tom Tromey <tom@tromey.com>
5515
5516 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5517 useless "if".
5518
9ab26b4a
TT
55192020-07-01 Tom Tromey <tom@tromey.com>
5520
5521 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5522 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5523
e555083f
TT
55242020-07-01 Tom Tromey <tom@tromey.com>
5525
5526 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5527 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5528 (struct tui_line_or_address): Move from tui-data.h.
5529 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5530 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5531 (tui_cmd_window, tui_source_window_base, tui_source_window)
5532 (tui_disasm_window): Don't declare.
5533 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5534 to tui-winsource.h.
5535 (SINGLE_KEY): Move to tui-stack.c.
5536
7a02bab7
TT
55372020-07-01 Tom Tromey <tom@tromey.com>
5538
5539 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5540 std::string.
5541 * tui/tui-regs.c (class tab_expansion_file): New.
5542 (tab_expansion_file::write): New method.
5543 (tui_register_format): Change return type. Use
5544 tab_expansion_file.
5545 (tui_get_register, tui_data_window::display_registers_from)
5546 (tui_data_item_window::rerender): Update.
5547 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5548 * tui/tui-io.c (tui_expand_tabs): Remove.
5549
ea68593b
TT
55502020-07-01 Tom Tromey <tom@tromey.com>
5551
5552 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5553
a8caed5d
FS
55542020-07-01 Fangrui Song <maskray@google.com>
5555
5556 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5557
9cdf9820
AKS
55582020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5559
5560 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5561 forms for DW_AT_associated and DW_AT_allocated attributes,
5562 which is already checked in function attr_to_dynamic_prop.
5563
a1520ad8
TT
55642020-06-30 Tom Tromey <tromey@adacore.com>
5565
5566 * dwarf2/read.c (quirk_rust_enum): Correctly call
5567 alloc_rust_variant for default-less enum.
5568
5ac58899
TT
55692020-06-30 Tom Tromey <tromey@adacore.com>
5570
5571 PR build/26183:
5572 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5573 gdb::to_string.
5574
19b187a9
SM
55752020-06-29 Simon Marchi <simon.marchi@efficios.com>
5576
5577 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5578 * gdbarch.h: Re-generate.
5579
cd4c4c07
TT
55802020-06-28 Tom Tromey <tom@tromey.com>
5581
5582 * command.h (cmd_types): Remove.
5583 (cmd_type): Don't declare.
5584 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5585 typedef.
5586 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5587 * cli/cli-decode.c (cmd_type): Remove.
5588
05779d57
PA
55892020-06-27 Pedro Alves <palves@redhat.com>
5590
5591 * fork-child.c (prefork_hook): Adjust.
5592 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5593 Delete.
5594 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5595 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5596 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5597 Remove declarations.
5598 (struct inferior) <set_tty, tty>: New methods.
5599 (struct inferior) <terminal>: Rename to ...
5600 (struct inferior) <m_terminal>: ... this and make private.
5601 * main.c (captured_main_1): Adjust.
5602 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5603 (mi_cmd_inferior_tty_show): Adjust.
5604 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5605 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5606
1776e3e5
NA
56072020-06-26 Nick Alcock <nick.alcock@oracle.com>
5608
5609 * configure.ac: Add --enable-libctf: handle --disable-static
5610 properly.
5611 * acinclude.m4: sinclude ../config/enable.m4.
5612 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5613 (LIBCTF): Substitute in.
5614 (CTF_DEPS): New, likewise.
5615 (CLIBS): libctf needs symbols from libbfd: move earlier.
5616 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5617 flags.
5618 * ctfread.c: Surround in ENABLE_LIBCTF.
5619 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5620 * configure: Regenerate.
5621 * config.in: Likewise.
5622
58373b80
SM
56232020-06-25 Simon Marchi <simon.marchi@efficios.com>
5624
5625 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5626
277474ee
SM
56272020-06-25 Simon Marchi <simon.marchi@efficios.com>
5628
5629 * inferior.h (struct inferior) <terminal>: Change type to
5630 gdb::unique_xmalloc_ptr<char>.
5631 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5632 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5633 field, adjust to unique pointer.
5634 (get_inferior_io_terminal): Adjust to unique pointer.
5635
6d74da72
AB
56362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5637
5638 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5639 registers, not just the known core set of registers.
5640
2e52d038
AB
56412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5642
5643 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5644 fflags, frm, and fcsr registers.
5645 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5646 restore groups.
5647 (riscv_tdesc_unknown_reg): New function.
5648 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5649 tdesc_use_registers.
5650 * riscv-tdep.h (struct gdbarch_tdep): Add
5651 unknown_csrs_first_regnum, unknown_csrs_count,
5652 duplicate_fflags_regnum, duplicate_frm_regnum, and
5653 duplicate_fcsr_regnum fields.
5654
be64fd07
AB
56552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5656
5657 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5658 callback, use the callback (when not null) to help number unknown
5659 registers.
5660 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5661 (tdesc_use_registers): Add extra parameter to declaration.
5662
3b9fce96
AB
56632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5664
5665 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5666 in the file.
5667 (class riscv_pending_register_alias): Likewise.
5668 (riscv_register_feature::register_info): Change 'required_p' field
5669 to 'required', and change its type. Add 'check' member function.
5670 (riscv_register_feature::register_info::check): Define new member
5671 function.
5672 (riscv_xreg_feature): Change initialisation of 'required' field.
5673 (riscv_freg_feature): Likewise.
5674 (riscv_virtual_feature): Likewise.
5675 (riscv_csr_feature): Likewise.
5676 (riscv_check_tdesc_feature): Take extra parameter, the csr
5677 tdesc_feature, rewrite the function to use the new
5678 riscv_register_feature::register_info::check function.
5679 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5680
865bad26
AB
56812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5682
5683 * features/Makefile: Remove all references to the deleted files
5684 below.
5685 * features/riscv/32bit-csr.c: Deleted.
5686 * features/riscv/32bit-csr.xml: Deleted.
5687 * features/riscv/64bit-csr.c: Deleted.
5688 * features/riscv/64bit-csr.xml: Deleted.
5689 * features/riscv/rebuild-csr-xml.sh: Deleted.
5690
ed69cbc8
AB
56912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5692
5693 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5694 whitespace error for declaration of names member variable.
5695 (struct riscv_register_feature): Add new prefer_first_name member
5696 variable, and fix whitespace error in declaration of registers.
5697 (riscv_xreg_feature): Initialize prefer_first_name field.
5698 (riscv_freg_feature): Likewise.
5699 (riscv_virtual_feature): Likewise.
5700 (riscv_csr_feature): Likewise.
5701 (riscv_register_name): Expand on comments. Remove register name
5702 modifications for CSR and virtual registers.
5703
4445e8f5
AB
57042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5705
5706 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5707 errors.
5708
767a879e
AB
57092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5710
5711 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5712 riscv-opc.h.
5713 (class riscv_pending_register_alias): New class.
5714 (riscv_check_tdesc_feature): Take vector of pending aliases and
5715 populate it as appropriate.
5716 (riscv_setup_register_aliases): Delete.
5717 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5718 to riscv_check_tdesc_feature in all cases. Use the vector to
5719 create the register aliases.
5720
bb6e55f3
RO
57212020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5722
5723 * sol2-tdep.c (sol2_static_transform_name): Remove.
5724 (sol2_init_abi): Don't register it.
5725 * gdbarch.sh (static_transform_name): Remove.
5726 * gdbarch.c, gdbarch.h: Regenerate.
5727
5728 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5729 gdbarch_static_transform_name.
5730 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5731 * stabsread.c (define_symbol) <'X'>: Remove.
5732 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5733 handling.
5734 <'V'>: Likewise.
5735 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5736 <'S'>: Remove call to gdbarch_static_transform_name.
5737
c6d36836
RO
57382020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5739
5740 * procfs.c (procfs_pre_trace): New function.
5741 (procfs_target::create_inferior): Pass it to fork_inferior.
5742
a7e6196b
RO
57432020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5744
5745 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5746 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5747 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5748 sol2-tdep.o, sparc-sol2-tdep.o.
5749 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5750 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5751 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5752 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5753
d412e696
RO
57542020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5755
5756 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5757 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5758 Call sol2_init_abi.
5759 Remove calls to set_gdbarch_skip_solib_resolver,
5760 set_gdbarch_core_pid_to_str.
5761 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5762 (i386_sol2_static_transform_name): Remove.
5763 (i386_sol2_init_abi): Call sol2_init_abi.
5764 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5765 set_gdbarch_static_transform_name,
5766 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5767 Use sol2_sigtramp_p.
5768 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5769 (sol2_sigtramp_p): New function.
5770 (sol2_static_transform_name): New function.
5771 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5772 (sol2_init_abi): New function.
5773 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5774 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5775 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5776 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5777 (sparc_sol2_static_transform_name): Remove.
5778 (sparc32_sol2_init_abi): Call sol2_init_abi.
5779 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5780 set_gdbarch_static_transform_name,
5781 set_gdbarch_skip_solib_resolver,
5782 set_gdbarch_core_pid_to_str.
5783 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5784 (sparc_sol2_static_transform_name): Remove
5785 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5786 call sol2_sigtramp_p.
5787 (sparc64_sol2_init_abi): Call sol2_init_abi.
5788 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5789 set_gdbarch_static_transform_name,
5790 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5791
a8654e7d
PW
57922020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5793
5794 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5795 * exec.c (validate_exec_file): If from_tty, set both
5796 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5797 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5798 and from_tty, unconditionally ask a confirmation.
5799
caa7fd04
AB
58002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5801
5802 * target-descriptions.c (tdesc_architecture_name): Protect against
5803 NULL pointer dereference.
5804 (maint_print_xml_tdesc_cmd): New function.
5805 (_initialize_target_descriptions): Register new 'maint print
5806 xml-tdesc' command and give it the filename completer.
5807 * NEWS: Mention new 'maint print xml-tdesc' command.
5808
fbf42f4e
AB
58092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5810
5811 * target-descriptions.c (class tdesc_compatible_info): New class.
5812 (struct target_desc): Change type of compatible vector.
5813 (tdesc_compatible_p): Update for change in type of
5814 target_desc::compatible.
5815 (tdesc_compatible_info_list): New function.
5816 (tdesc_compatible_info_arch_name): New function.
5817 (tdesc_add_compatible): Update for change in type of
5818 target_desc::compatible.
5819 (print_c_tdesc::visit_pre): Likewise.
5820
20821f4e
AB
58212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5822
5823 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5824 whitespace to underscore.
5825 (maint_print_c_tdesc_cmd): Use fake filename for target
5826 descriptions that came from the target.
5827 (_initialize_target_descriptions): Add filename command completion
5828 for 'maint print c-tdesc'.
5829
1fb5ee62
SM
58302020-06-23 Simon Marchi <simon.marchi@efficios.com>
5831
5832 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5833 lines.
5834
fc3ecb3e
SM
58352020-06-23 Simon Marchi <simon.marchi@efficios.com>
5836
5837 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5838 lines.
5839 (dwarf2_find_location_expression): Likewise.
5840 (call_site_parameter_matches): Likewise.
5841 (dwarf2_compile_expr_to_ax): Likewise.
5842 (disassemble_dwarf_expression): Likewise.
5843 (loclist_describe_location): Likewise.
5844
236ef034
PA
58452020-06-23 Pedro Alves <palves@redhat.com>
5846
5847 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5848 progspace-and-thread.h. Include scoped-mock-context.h instead.
5849 (register_to_value_test): Use scoped_mock_context.
5850 * regcache.c: Include "scoped-mock-context.h".
5851 (cooked_read_test): Don't error out if a target is already pushed.
5852 Use scoped_mock_context. Adjust.
5853 * scoped-mock-context.h: New file.
5854
39e7ecca
AB
58552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5856
5857 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5858 initializer.
5859 (ada_language::is_string_type_p): New member function.
5860 * c-lang.c (c_language_data): Delete la_is_string_type_p
5861 initializer.
5862 (cplus_language_data): Likewise.
5863 (asm_language_data): Likewise.
5864 (minimal_language_data): Likewise.
5865 * d-lang.c (d_language_data): Likewise.
5866 * f-lang.c (f_is_string_type_p): Delete function, implementation
5867 moved to f_language::is_string_type_p.
5868 (f_language_data): Delete la_is_string_type_p initializer.
5869 (f_language::is_string_type_p): New member function,
5870 implementation from f_is_string_type_p.
5871 * go-lang.c (go_is_string_type_p): Delete function, implementation
5872 moved to go_language::is_string_type_p.
5873 (go_language_data): Delete la_is_string_type_p initializer.
5874 (go_language::is_string_type_p): New member function,
5875 implementation from go_is_string_type_p.
5876 * language.c (language_defn::is_string_type_p): Define new member
5877 function.
5878 (default_is_string_type_p): Make static, add comment copied from
5879 header file.
5880 (unknown_language_data): Delete la_is_string_type_p initializer.
5881 (unknown_language::is_string_type_p): New member function.
5882 (auto_language_data): Delete la_is_string_type_p initializer.
5883 (auto_language::is_string_type_p): New member function.
5884 * language.h (language_data): Delete la_is_string_type_p field.
5885 (language_defn::is_string_type_p): Declare new function.
5886 (default_is_string_type_p): Delete desclaration, move comment to
5887 definition.
5888 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5889 moved to m2_language::is_string_type_p.
5890 (m2_language_data): Delete la_is_string_type_p initializer.
5891 (m2_language::is_string_type_p): New member function,
5892 implementation from m2_is_string_type_p.
5893 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5894 initializer.
5895 * opencl-lang.c (opencl_language_data): Likewise.
5896 * p-lang.c (pascal_is_string_type_p): Delete function,
5897 implementation moved to pascal_language::is_string_type_p.
5898 (pascal_language_data): Delete la_is_string_type_p initializer.
5899 (pascal_language::is_string_type_p): New member function,
5900 implementation from pascal_is_string_type_p.
5901 * rust-lang.c (rust_is_string_type_p): Delete function,
5902 implementation moved to rust_language::is_string_type_p.
5903 (rust_language_data): Delete la_is_string_type_p initializer.
5904 (rust_language::is_string_type_p): New member function,
5905 implementation from rust_is_string_type_p.
5906 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5907 is_string_type_p.
5908
4ffc13fb
AB
59092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5910
5911 * ada-lang.c (ada_language_data): Delete la_print_typedef
5912 initializer.
5913 (ada_language::print_typedef): New member function.
5914 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5915 (cplus_language_data): Likewise.
5916 (asm_language_data): Likewise.
5917 (minimal_language_data): Likewise.
5918 * d-lang.c (d_language_data): Likewise.
5919 * f-lang.c (f_language_data): Likewise.
5920 (f_language::print_typedef): New member function.
5921 * go-lang.c (go_language_data): Delete la_print_typedef
5922 initializer.
5923 * language.c (language_defn::print_typedef): Define member
5924 function.
5925 (unknown_language_data): Delete la_print_typedef initializer.
5926 (unknown_language::print_typedef): New member function.
5927 (auto_language_data): Delete la_print_typedef initializer.
5928 (auto_language::print_typedef): New member function.
5929 * language.h (language_data): Delete la_print_typedef field.
5930 (language_defn::print_typedef): Declare new member function.
5931 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5932 (default_print_typedef): Delete declaration.
5933 * m2-lang.c (m2_language_data): Delete la_print_typedef
5934 initializer.
5935 (m2_language::print_typedef): New member function.
5936 * objc-lang.c (objc_language_data): Delete la_print_typedef
5937 initializer.
5938 * opencl-lang.c (opencl_language_data): Likewise.
5939 * p-lang.c (pascal_language_data): Likewise.
5940 (pascal_language::print_typedef): New member function.
5941 * rust-lang.c (rust_print_typedef): Delete function,
5942 implementation moved to rust_language::print_typedef.
5943 (rust_language): Delete la_print_typedef initializer.
5944 (rust_language::print_typedef): New member function,
5945 implementation from rust_print_typedef.
5946 * typeprint.c (default_print_typedef): Delete.
5947
d711ee67
AB
59482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5949
5950 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5951 (ada_language::printstr): New member function.
5952 * c-lang.c (c_language_data): Delete la_printstr initializer.
5953 (cplus_language_data): Likewise.
5954 (asm_language_data): Likewise.
5955 (minimal_language_data): Likewise.
5956 * d-lang.c (d_language_data): Likewise.
5957 * f-lang.c (f_printstr): Rename to f_language::printstr.
5958 (f_language_data): Delete la_printstr initializer.
5959 (f_language::printstr): New member function, implementation from
5960 f_printstr.
5961 * go-lang.c (go_language_data): Delete la_printstr initializer.
5962 * language.c (language_defn::printstr): Define new member
5963 function.
5964 (unk_lang_printstr): Delete.
5965 (unknown_language_data): Delete la_printstr initializer.
5966 (unknown_language::printstr): New member function.
5967 (auto_language_data): Delete la_printstr initializer.
5968 (auto_language::printstr): New member function.
5969 * language.h (language_data): Delete la_printstr field.
5970 (language_defn::printstr): Declare new member function.
5971 (LA_PRINT_STRING): Update call to printstr.
5972 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5973 (m2_language_data): Delete la_printstr initializer.
5974 (m2_language::printstr): New member function, implementation from
5975 m2_printstr.
5976 * objc-lang.c (objc_language_data): Delete la_printstr
5977 initializer.
5978 * opencl-lang.c (opencl_language_data): Likewise.
5979 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5980 (pascal_language_data): Delete la_printstr initializer.
5981 (pascal_language::printstr): New member function, implementation
5982 from pascal_printstr.
5983 * p-lang.h (pascal_printstr): Delete declaration.
5984 * rust-lang.c (rust_printstr): Update header comment.
5985 (rust_language_data): Delete la_printstr initializer.
5986 (rust_language::printstr): New member function.
5987
52b50f2c
AB
59882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5989
5990 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5991 (ada_language::printchar): New member function.
5992 * c-lang.c (c_language_data): Delete la_printchar initializer.
5993 (cplus_language_data): Likewise.
5994 (asm_language_data): Likewise.
5995 (minimal_language_data): Likewise.
5996 * d-lang.c (d_language_data): Likewise.
5997 * f-lang.c (f_printchar): Rename to f_language::printchar.
5998 (f_language_data): Delete la_printchar initializer.
5999 (f_language::printchar): New member function, implementation from
6000 f_printchar.
6001 * go-lang.c (go_language_data): Delete la_printchar initializer.
6002 * language.c (unk_lang_printchar): Delete.
6003 (language_defn::printchar): Define new member function.
6004 (unknown_language_data): Delete la_printchar initializer.
6005 (unknown_language::printchar): New member function.
6006 (auto_language_data): Delete la_printchar initializer.
6007 (auto_language::printchar): New member function.
6008 * language.h (language_data): Delete la_printchar field.
6009 (language_defn::printchar): Declare new member function.
6010 (LA_PRINT_CHAR): Update call to printchar.
6011 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6012 (m2_language::printchar): New member function.
6013 * objc-lang.c (objc_language_data): Delete la_printchar
6014 initializer.
6015 * opencl-lang.c (opencl_language_data): Likewise.
6016 * p-lang.c (pascal_language_data): Delete la_printchar
6017 initializer.
6018 (pascal_language::printchar): New member function.
6019 * rust-lang.c (rust_printchar): Rename to
6020 rust_language::printchar.
6021 (rust_language_data): Delete la_printchar initializer.
6022 (rust_language::printchar): New member function, implementation
6023 from rust_printchar.
6024
ec8cec5b
AB
60252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6026
6027 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6028 (ada_language_data): Delete la_emitchar initializer.
6029 (ada_language::emitchar): New member function, implementation from
6030 emit_char.
6031 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6032 (cplus_language_data): Likewise.
6033 (asm_language_data): Likewise.
6034 (minimal_language_data): Likewise.
6035 * d-lang.c (d_language_data): Likewise.
6036 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6037 (f_language_data): Delete la_emitchar initializer.
6038 (f_language::emitchar): New member function, implementation from
6039 f_emit_char.
6040 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6041 * language.c (unk_lang_emit_char): Delete.
6042 (language_defn::emitchar): New member function definition.
6043 (unknown_language_data): Delete la_emitchar initializer.
6044 (unknown_language::emitchar): New member function.
6045 (auto_language_data): Delete la_emitchar initializer.
6046 (auto_language::emitchar): New member function.
6047 * language.h (language_data): Delete la_emitchar field.
6048 (language_defn::emitchar): New member field declaration.
6049 (LA_EMIT_CHAR): Update call to emitchar.
6050 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6051 (m2_language_data): Delete la_emitchar initializer.
6052 (m2_language::emitchar): New member function, implementation from
6053 m2_emit_char.
6054 * objc-lang.c (objc_language_data): Delete la_emitchar
6055 initializer.
6056 * opencl-lang.c (opencl_language_data): Likewise.
6057 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6058 (pascal_language_data): Delete la_emitchar initializer.
6059 (pascal_language::emitchar): New member function, implementation
6060 from pascal_emit_char.
6061 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6062 (rust_language_data): Delete la_emitchar initializer.
6063 (rust_language::emitchar): New member function, implementation
6064 from rust_emitchar.
6065
1bf9c363
AB
60662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6067
6068 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6069 (ada_language_data): Delete la_post_parser initializer.
6070 (ada_language::post_parser): New member function.
6071 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6072 (cplus_language_data): Likewise.
6073 (asm_language_data): Likewise.
6074 (minimal_language_data): Likewise.
6075 * d-lang.c (d_language_data): Likewise.
6076 * f-lang.c (f_language_data): Likewise.
6077 * go-lang.c (go_language_data): Likewise.
6078 * language.c (unknown_language_data): Likewise.
6079 (auto_language_data): Likewise.
6080 * language.h (language_data): Delete la_post_parser field.
6081 (language_defn::post_parser): New member function.
6082 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6083 * objc-lang.c (objc_language_data): Likewise.
6084 * opencl-lang.c (opencl_language_data): Likewise.
6085 * p-lang.c (pascal_language_data): Likewise.
6086 * parse.c (parse_exp_in_context): Update call to post_parser.
6087 (null_post_parser): Delete definition.
6088 * parser-defs.h (null_post_parser): Delete declaration.
6089 * rust-lang.c (rust_language_data): Delete la_post_parser
6090 initializer.
6091
87afa652
AB
60922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6093
6094 * ada-lang.c (parse): Rename to ada_language::parser.
6095 (ada_language_data): Delete la_parser initializer.
6096 (ada_language::parser): New member function, implementation from
6097 parse.
6098 * c-lang.c (c_language_data): Delete la_parser initializer.
6099 (cplus_language_data): Likewise.
6100 (asm_language_data): Likewise.
6101 (minimal_language_data): Likewise.
6102 * d-lang.c (d_language_data): Likewise.
6103 (d_language::parser): New member function.
6104 * f-lang.c (f_language_data): Delete la_parser initializer.
6105 (f_language::parser): New member function.
6106 * go-lang.c (go_language_data): Delete la_parser initializer.
6107 (go_language::parser): New member function.
6108 * language.c (unk_lang_parser): Delete.
6109 (language_defn::parser): Define new member function.
6110 (unknown_language_data): Delete la_parser initializer.
6111 (unknown_language::parser): New member function.
6112 (auto_language_data): Delete la_parser initializer.
6113 (auto_language::parser): New member function.
6114 * language.h (language_data): Delete la_parser field.
6115 (language_defn::parser): Declare new member function.
6116 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6117 (m2_language::parser): New member function.
6118 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6119 * opencl-lang.c (opencl_language_data): Likewise.
6120 * p-lang.c (pascal_language_data): Likewise.
6121 (pascal_language::parser): New member function.
6122 * parse.c (parse_exp_in_context): Update call to parser.
6123 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6124 (rust_language::parser): New member function.
6125
37825800
AB
61262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6127
6128 * top.c (print_gdb_configuration): Print --with-python-libdir
6129 configuration value.
6130
5b860c93
PW
61312020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6132
6133 * NEWS: Mention change to the alias command.
6134
cf00cd6f
PW
61352020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6136
6137 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6138 (alias_command_completer)
6139 (make_alias_options_def_group): New functions.
6140 (alias_opts, alias_option_defs): New struct and array.
6141 (alias_usage_error): Update usage.
6142 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6143 Use option framework.
6144 (_initialize_cli_cmds): Update alias command help.
6145 Update aliases command help.
6146 (show_user):
6147 Add NULL for new default_args lookup_cmd argument.
6148 (valid_command_p): Rename to validate_aliased_command.
6149 Add NULL for new default_args lookup_cmd argument. Verify that the
6150 aliased_command has no default args.
6151 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6152 (lookup_cmd_1, lookup_cmd): New argument default_args.
6153 (add_alias_cmd):
6154 Add NULL for new default_args lookup_cmd argument.
6155 (print_help_for_command): Show default args under the layout
6156 alias some_alias = some_aliased_cmd some_alias_default_arg.
6157 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6158 xfree default_args in destructor.
6159 * cli/cli-script.c (process_next_line, do_define_command):
6160 Add NULL for new default_args lookup_cmd argument.
6161 * command.h: Declare new default_args argument in lookup_cmd
6162 and lookup_cmd_1.
6163 * completer.c (complete_line_internal_1):
6164 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6165 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6166 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6167 Likewise.
6168 * infcmd.c (_initialize_infcmd): Likewise.
6169 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6170 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6171 * python/py-param.c (add_setshow_generic): Likewise.
6172 * remote.c (_initialize_remote): Likewise.
6173 * top.c (execute_command): Prepend default_args if command has some.
6174 (set_verbose):
6175 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6176 * tracepoint.c (validate_actionline, encode_actions_1):
6177 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6178
bd920864
TBA
61792020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6180
6181 * jit.c (jit_read_descriptor): Use bool as the return type.
6182 (jit_breakpoint_re_set_internal): Use bool as the return type.
6183 Invert the return value logic; return true if the jit breakpoint
6184 has been successfully initialized.
6185 (jit_inferior_init): Update the call to
6186 jit_breakpoint_re_set_internal.
6187
f8098322
PA
61882020-06-22 Pedro Alves <palves@redhat.com>
6189
6190 PR gdb/25939
6191 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6192 Use the current inferior instead. Don't return
6193 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6194 wait again.
6195 * sol-thread.c (sol_thread_target::wait): Don't reference
6196 inferior_ptid.
6197 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6198 (sol_update_thread_list_callback): Use the current inferior's pid
6199 instead of inferior_ptid.
6200
196535a6
RO
62012020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6202
6203 * procfs.c: Cleanup many comments.
6204
6205 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6206 (AFTER_WATCHFLAG): Replace by value.
6207
6208 (MAIN_PROC_NAME_FORMAT): Inline ...
6209 (create_procinfo): ... here.
6210
6211 (procfs_debug_inferior): Remove SYS_exec handling.
6212 (syscall_is_exec): Likewise.
6213 (procfs_set_exec_trap): Likewise.
6214
6215 (syscall_is_lwp_exit): Inline in callers.
6216 (syscall_is_exit): Likewise.
6217 (syscall_is_exec): Likewise.
6218 (syscall_is_lwp_create): Likewise.
6219
6220 (invalidate_cache): Remove #if 0 code.
6221
6222 (make_signal_thread_runnable): Remove.
6223 (procfs_target::resume): Remove #if 0 code.
6224
cf6f3e86
RO
62252020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6226
6227 PR gdb/25939
6228 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6229 call ...
6230 (procfs_target::create_inferior): ... here.
6231
48e9cc84
PW
62322020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6233
6234 * exec.c (validate_exec_file): Ensure the build-id is up to
6235 date by calling reopen_exec_file (that checks file timestamp
6236 to decide to re-read the file).
6237
3922b302
PA
62382020-06-18 Pedro Alves <palves@redhat.com>
6239
6240 PR gdb/25412
6241 * gdbthread.h (delete_thread, delete_thread_silent)
6242 (find_thread_ptid): Update comments.
6243 * thread.c (current_thread_): New global.
6244 (is_current_thread): Move higher, and reimplement.
6245 (inferior_thread): Reimplement.
6246 (set_thread_exited): Use bool. Add assertions.
6247 (add_thread_silent): Simplify thread-reuse handling by always
6248 calling delete_thread.
6249 (delete_thread): Remove intro comment.
6250 (find_thread_ptid): Skip exited threads.
6251 (switch_to_thread_no_regs): Write to current_thread_.
6252 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6253 INFERIOR_PTID. Clear current_thread_.
6254
6dbdab44
PA
62552020-06-18 Pedro Alves <palves@redhat.com>
6256
6257 * aix-thread.c (pd_update): Use switch_to_thread.
6258
2da4b788
PA
62592020-06-18 Pedro Alves <palves@redhat.com>
6260
6261 * ravenscar-thread.c (ravenscar_thread_target): Update.
6262 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6263 (ravenscar_thread_target::add_active_thread): ... this. Don't
6264 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6265 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6266
50838d1b
PA
62672020-06-18 Pedro Alves <palves@redhat.com>
6268
6269 * nat/windows-nat.c (current_windows_thread): Remove.
6270 * nat/windows-nat.h (current_windows_thread): Remove.
6271 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6272 Adjust.
6273 (display_selectors): Adjust to fetch the current
6274 windows_thread_info based on inferior_ptid.
6275 (fake_create_process): No longer write to current_windows_thread.
6276 (windows_nat_target::get_windows_debug_event):
6277 Don't set inferior_ptid or current_windows_thread.
6278 (windows_nat_target::wait): Adjust to not rely on
6279 current_windows_thread.
6280 (do_initial_windows_stuff): Now a method of windows_nat_target.
6281 Switch to the last_ptid thread.
6282 (windows_nat_target::attach): Adjust.
6283 (windows_nat_target::detach): Use switch_to_no_thread instead of
6284 writing to inferior_ptid directly.
6285 (windows_nat_target::create_inferior): Adjust.
6286
31ce04e9
PA
62872020-06-18 Pedro Alves <palves@redhat.com>
6288
6289 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6290
1ee1a363
PA
62912020-06-18 Pedro Alves <palves@redhat.com>
6292
6293 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6294 after creating it, instead of writing to inferior_ptid. Don't
6295 write to inferior_ptid.
6296
6d350754
PA
62972020-06-18 Pedro Alves <palves@redhat.com>
6298
6299 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6300
5d971d48
PA
63012020-06-18 Pedro Alves <palves@redhat.com>
6302
6303 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6304 it, instead of writing to inferior_ptid.
6305
86e57d1b
PA
63062020-06-18 Pedro Alves <palves@redhat.com>
6307
6308 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6309 to inferior_ptid.
6310
f2e1c129
PA
63112020-06-18 Pedro Alves <palves@redhat.com>
6312
6313 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6314 instead of writing to inferior_ptid directly.
6315
60db1b85
PA
63162020-06-18 Pedro Alves <palves@redhat.com>
6317
6318 * corelow.c (core_target::close): Use switch_to_no_thread instead
6319 of writing to inferior_ptid directly.
6320 (add_to_thread_list, core_target_open): Use switch_to_thread
6321 instead of writing to inferior_ptid directly.
6322
fe7d6a8d
PA
63232020-06-18 Pedro Alves <palves@redhat.com>
6324
6325 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6326 inferior_ptid.
6327 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6328 inferior_ptid.
6329 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6330 inferior_ptid directly.
6331 (darwin_nat_target::init_thread_list): Switch to thread, instead
6332 of writing to inferior_ptid.
6333 (darwin_nat_target::attach): Don't write to inferior_ptid.
6334 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6335
975f8708
PA
63362020-06-18 Pedro Alves <palves@redhat.com>
6337
6338 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6339 thread.
6340 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6341 Instead use switch_to_thread.
6342 (gnu_nat_target::detach): Use switch_to_no_thread
6343 instead of writing to inferior_ptid directly. Used passed-in
6344 inferior instead of looking up the inferior by pid.
6345
1a204730
PA
63462020-06-18 Pedro Alves <palves@redhat.com>
6347
6348 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6349 inferior_ptid.
6350
ebe84f23
PA
63512020-06-18 Pedro Alves <palves@redhat.com>
6352
6353 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6354 inferior_ptid.
6355 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6356 thread.
6357 (nto_procfs_target::detach): Avoid referencing
6358 inferior_ptid. Use switch_to_no_thread instead of writing to
6359 inferior_ptid directly.
6360 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6361 instead of writing to inferior_ptid directly.
6362 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6363 to thread.
6364
191f02e5
PA
63652020-06-18 Pedro Alves <palves@redhat.com>
6366
6367 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6368 after creating it, instead of writing to inferior_ptid.
6369 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6370 to inferior_ptid directly.
6371 (gdbsim_target::wait): Don't write to inferior_ptid.
6372
0ac55310
PA
63732020-06-18 Pedro Alves <palves@redhat.com>
6374
6375 * remote.c (remote_target::remote_notice_new_inferior): Use
6376 switch_to_thread instead of writing to inferior_ptid directly.
6377 (remote_target::add_current_inferior_and_thread): Use
6378 switch_to_no_thread instead of writing to inferior_ptid directly.
6379 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6380 and switch_to_thread instead of using set_current_inferior or
6381 writing to inferior_ptid directly.
6382
5233f39b
PA
63832020-06-18 Pedro Alves <palves@redhat.com>
6384
6385 * tracectf.c (ctf_target_open): Switch to added thread instead of
6386 writing to inferior_ptid directly.
6387 (ctf_target::close): Use switch_to_no_thread instead of writing to
6388 inferior_ptid directly.
6389
087e161b
PA
63902020-06-18 Pedro Alves <palves@redhat.com>
6391
6392 * tracefile-tfile.c (tfile_target_open): Don't write to
6393 inferior_ptid directly, instead switch to added thread.
6394 (tfile_target::close): Use switch_to_no_thread instead of writing
6395 to inferior_ptid directly.
6396
7fb43e53
PA
63972020-06-18 Pedro Alves <palves@redhat.com>
6398
6399 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6400 (procfs_target::detach): Use switch_to_no_thread
6401 instead of writing to inferior_ptid directly.
6402 (do_attach): Change return type to void. Switch to the added
6403 thread.
6404 (procfs_target::create_inferior): Switch to the added thread.
6405 (procfs_do_thread_registers): Don't write to inferior_ptid.
6406
18493a00
PA
64072020-06-18 Pedro Alves <palves@redhat.com>
6408
6409 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6410 of writing to inferior_ptid.
6411 (scoped_restore_exited_inferior): Delete.
6412 (handle_vfork_child_exec_or_exit): Simplify using
6413 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6414 instead of writing to inferior_ptid.
6415 (THREAD_STOPPED_BY): Delete.
6416 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6417 (thread_stopped_by_hw_breakpoint): Delete.
6418 (save_waitstatus): Use
6419 scoped_restore_current_thread+switch_to_thread, and call
6420 target_stopped_by_watchpoint instead of
6421 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6422 instead of thread_stopped_by_sw_breakpoint, and
6423 target_stopped_by_hw_breakpoint instead of
6424 thread_stopped_by_hw_breakpoint.
6425 (handle_inferior_event)
6426 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6427 inferior_ptid directly, nor
6428 set_current_inferior/set_current_program_space. Use
6429 switch_to_thread / switch_to_inferior_no_thread instead.
6430
a0776b13
PA
64312020-06-18 Pedro Alves <palves@redhat.com>
6432
6433 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6434 instead of writing to inferior_ptid.
6435
6155c136
PA
64362020-06-18 Pedro Alves <palves@redhat.com>
6437
6438 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6439 added thread.
6440 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6441 to the added thread.
6442 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6443 instead of writing to inferior_ptid.
6444
c5316fc6
PA
64452020-06-18 Pedro Alves <palves@redhat.com>
6446
6447 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6448 (register_to_value_test): Mock a program_space too. Heap-allocate
6449 the address space. Don't write to inferior_ptid. Use
6450 switch_to_thread instead.
6451
8df01799
PA
64522020-06-18 Pedro Alves <palves@redhat.com>
6453
6454 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6455 Delete.
6456 (find_signalled_thread()): New, factored out from
6457 linux_make_corefile_notes and adjusted to handle exited threads.
6458 (linux_make_corefile_notes): Adjust to use the new
6459 find_signalled_thread.
6460
41792d68
PA
64612020-06-18 Pedro Alves <palves@redhat.com>
6462
6463 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6464 of saving/restoring inferior_ptid.
6465
612f258a
TT
64662020-06-17 Tom Tromey <tom@tromey.com>
6467
6468 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6469 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6470 declare.
6471 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6472
efb763a5
SM
64732020-06-15 Simon Marchi <simon.marchi@efficios.com>
6474
6475 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6476 of partial symtabs.
6477
2951f6c0
SM
64782020-06-17 Simon Marchi <simon.marchi@efficios.com>
6479
6480 * regformats/reg-arm.dat: Remove.
6481 * regformats/reg-bfin.dat: Remove.
6482 * regformats/reg-cris.dat: Remove.
6483 * regformats/reg-crisv32.dat: Remove.
6484 * regformats/reg-m32r.dat: Remove.
6485 * regformats/reg-tilegx.dat: Remove.
6486 * regformats/reg-tilegx32.dat: Remove.
6487
7d458ea5
SM
64882020-06-17 Simon Marchi <simon.marchi@efficios.com>
6489
6490 * features/Makefile (WHICH): Remove arm files.
6491 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6492 * regformats/arm/arm-with-neon.dat: Remove.
6493 * regformats/arm/arm-with-vfpv2.dat: Remove.
6494 * regformats/arm/arm-with-vfpv3.dat: Remove.
6495
3af96c0d
SM
64962020-06-17 Simon Marchi <simon.marchi@efficios.com>
6497
6498 * features/Makefile (XMLTOC): Remove rx.xml.
6499
b25e22fd
PA
65002020-06-17 Pedro Alves <palves@redhat.com>
6501
6502 * gdbthread.h (thread_control_state) <trap_expected> Update
6503 comments.
6504
a78a19b1
AB
65052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6506
6507 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6508 ada_language::lookup_symbol_nonlocal.
6509 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6510 (ada_language::lookup_symbol_nonlocal): New member function,
6511 implementation from ada_lookup_symbol_nonlocal.
6512 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6513 initializer.
6514 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6515 initializer.
6516 (cplus_language::lookup_symbol_nonlocal): New member function.
6517 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6518 (minimal_language_data) Likewise.
6519 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6520 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6521 initializer.
6522 (d_language::lookup_symbol_nonlocal): New member function.
6523 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6524 initializer.
6525 (f_language::lookup_symbol_nonlocal): New member function.
6526 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6527 initializer.
6528 * language.c (unknown_language_data): Likewise.
6529 (auto_language_data): Likewise.
6530 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6531 field.
6532 (language_defn::lookup_symbol_nonlocal): New member function.
6533 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6534 initializer.
6535 * objc-lang.c (objc_language_data): Likewise.
6536 * opencl-lang.c (opencl_language_data): Likewise.
6537 * p-lang.c (pascal_language_data): Likewise.
6538 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6539 rust_language::lookup_symbol_nonlocal.
6540 (rust_language_data): Delete la_lookup_symbol_nonlocal
6541 initializer.
6542 (rust_language::lookup_symbol_nonlocal): New member function,
6543 implementation from rust_lookup_symbol_nonlocal.
6544 * symtab.c (lookup_symbol_aux): Update call to
6545 lookup_symbol_nonlocal.
6546 (basic_lookup_symbol_nonlocal): Rename to...
6547 (language_defn::lookup_symbol_nonlocal): ...this, and update
6548 header comment. Remove language_defn parameter, and replace with
6549 uses of `this'.
6550 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6551
ebe2334e
AB
65522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6553
6554 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6555 initializer.
6556 (ada_language::value_print_inner): New member function.
6557 * c-lang.c (c_language_data): Delete la_value_print_inner
6558 initializer.
6559 (cplus_language_data): Likewise.
6560 (asm_language_data): Likewise.
6561 (minimal_language_data): Likewise.
6562 * d-lang.c (d_language_data): Likewise.
6563 (d_language::value_print_inner): New member function.
6564 * f-lang.c (f_language_data): Delete la_value_print_inner
6565 initializer.
6566 (f_language::value_print_inner): New member function.
6567 * f-lang.h (f_value_print_innner): Rename to...
6568 (f_value_print_inner): ...this (note spelling of 'inner').
6569 * f-valprint.c (f_value_print_innner): Rename to...
6570 (f_value_print_inner): ...this (note spelling of 'inner').
6571 * go-lang.c (go_language_data): Delete la_value_print_inner
6572 initializer.
6573 (go_language::value_print_inner): New member function.
6574 * language.c (language_defn::value_print_inner): Define new member
6575 function.
6576 (unk_lang_value_print_inner): Delete.
6577 (unknown_language_data): Delete la_value_print_inner initializer.
6578 (unknown_language::value_print_inner): New member function.
6579 (auto_language_data): Delete la_value_print_inner initializer.
6580 (auto_language::value_print_inner): New member function.
6581 * language.h (language_data): Delete la_value_print_inner field.
6582 (language_defn::value_print_inner): Delcare new member function.
6583 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6584 initializer.
6585 (m2_language::value_print_inner): New member function.
6586 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6587 initializer.
6588 * opencl-lang.c (opencl_language_data): Likewise.
6589 * p-lang.c (pascal_language_data): Likewise.
6590 (pascal_language::value_print_inner): New member function.
6591 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6592 initializer.
6593 (rust_language::value_print_inner): New member function.
6594 * valprint.c (do_val_print): Update call to value_print_inner.
6595
a1d1fa3e
AB
65962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6597
6598 * ada-lang.c (ada_language_data): Delete la_value_print
6599 initializer.
6600 (ada_language::value_print): New member function.
6601 * c-lang.c (c_language_data): Delete la_value_print initializer.
6602 (cplus_language_data): Likewise.
6603 (asm_language_data): Likewise.
6604 (minimal_language_data): Likewise.
6605 * d-lang.c (d_language_data): Likewise.
6606 * f-lang.c (f_language_data): Likewise.
6607 * go-lang.c (go_language_data): Likewise.
6608 * language.c (unk_lang_value_print): Delete.
6609 (language_defn::value_print): Define new member function.
6610 (unknown_language_data): Delete la_value_print initializer.
6611 (unknown_language::value_print): New member function.
6612 (auto_language_data): Delete la_value_print initializer.
6613 (auto_language::value_print): New member function.
6614 * language.h (language_data): Delete la_value_print field.
6615 (language_defn::value_print): Declare new member function.
6616 (LA_VALUE_PRINT): Update call to value_print.
6617 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6618 * objc-lang.c (objc_language_data): Likewise.
6619 * opencl-lang.c (opencl_language_data): Likewise.
6620 * p-lang.c (pascal_language_data): Likewise.
6621 (pascal_language::value_print): New member function.
6622 * rust-lang.c (rust_language_data): Delete la_value_print
6623 initializer.
6624
f16a9f57
AB
66252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6626
6627 * ada-lang.c (ada_watch_location_expression): Rename to
6628 ada_language::watch_location_expression.
6629 (ada_language_data): Delete la_watch_location_expression
6630 initializer.
6631 (ada_language::watch_location_expression): New member function,
6632 implementation from ada_watch_location_expression.
6633 * breakpoint.c (watch_command_1): Update call to
6634 watch_location_expression.
6635 * c-lang.c (c_watch_location_expression): Rename to
6636 language_defn::watch_location_expression.
6637 (c_language_data): Delete la_watch_location_expression
6638 initializer.
6639 (cplus_language_data): Likewise.
6640 (asm_language_data): Likewise.
6641 (minimal_language_data): Likewise.
6642 * c-lang.h (c_watch_location_expression): Delete declaration.
6643 * d-lang.c (d_language_data): Delete la_watch_location_expression
6644 initializer.
6645 * f-lang.c (f_language_data): Likewise.
6646 * go-lang.c (go_language_data): Likewise.
6647 * language.c (language_defn::watch_location_expression): Member
6648 function implementation from c_watch_location_expression.
6649 (unknown_language_data): Delete la_watch_location_expression
6650 initializer.
6651 (auto_language_data): Likewise.
6652 * language.h (language_data): Delete la_watch_location_expression
6653 field.
6654 (language_defn::watch_location_expression): Declare new member
6655 function.
6656 * m2-lang.c (m2_language_data): Delete
6657 la_watch_location_expression initializer.
6658 * objc-lang.c (objc_language_data): Likewise.
6659 * opencl-lang.c (opencl_language_data): Likewise.
6660 * p-lang.c (pascal_language_data): Likewise.
6661 * rust-lang.c (rust_watch_location_expression): Rename to
6662 rust_language::watch_location_expression.
6663 (rust_language_data): Delete la_watch_location_expression
6664 initializer.
6665 (rust_language::watch_location_expression): New member function,
6666 implementation from rust_watch_location_expression.
6667
7e56227d
AB
66682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6669
6670 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6671 ada_language::collect_symbol_completion_matches.
6672 (ada_language_data): Delete la_collect_symbol_completion_matches
6673 initializer.
6674 (ada_language::collect_symbol_completion_matches): New member
6675 function, implementation from
6676 ada_collect_symbol_completion_matches.
6677 * c-lang.c (c_language_data): Delete
6678 la_collect_symbol_completion_matches initializer.
6679 (cplus_language_data): Likewise.
6680 (asm_language_data): Likewise.
6681 (minimal_language_data): Likewise.
6682 * d-lang.c (d_language_data): Likewise.
6683 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6684 f_language::collect_symbol_completion_matches.
6685 (f_language_data): Delete la_collect_symbol_completion_matches
6686 initializer.
6687 (f_language::collect_symbol_completion_matches) New member
6688 function, implementation from f_collect_symbol_completion_matches.
6689 * go-lang.c (go_language_data): Delete
6690 la_collect_symbol_completion_matches initializer.
6691 * language.c (unknown_language_data): Likewise.
6692 (auto_language_data): Likewise.
6693 * language.h (language_data): Delete
6694 la_collect_symbol_completion_matches field.
6695 (language_defn::collect_symbol_completion_matches): New member
6696 function.
6697 * m2-lang.c (m2_language_data): Delete
6698 la_collect_symbol_completion_matches initializer.
6699 * objc-lang.c (objc_language_data): Likewise.
6700 * opencl-lang.c (opencl_language_data): Likewise.
6701 * p-lang.c (pascal_language_data): Likewise.
6702 * rust-lang.c (rust_language_data): Likewise.
6703 * symtab.c (default_collect_symbol_completion_matches): Delete.
6704 (collect_symbol_completion_matches): Update call to
6705 collect_symbol_completion_matches.
6706 (collect_symbol_completion_matches_type): Likewise.
6707 * symtab.h (default_collect_symbol_completion_matches): Delete
6708 declaration.
6709
53fc67f8
AB
67102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6711
6712 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6713 (ada_language_data): Delete la_word_break_characters initializer.
6714 (ada_language::word_break_characters): New member function.
6715 * c-lang.c (c_language_data): Delete la_word_break_characters
6716 initializer.
6717 (cplus_language_data): Likewise.
6718 (asm_language_data): Likewise.
6719 (minimal_language_data): Likewise.
6720 * completer.c: Update global comment.
6721 (advance_to_expression_complete_word_point): Update call to
6722 word_break_characters.
6723 (complete_files_symbols): Likewise.
6724 (complete_line_internal_1): Likewise.
6725 (default_completer_handle_brkchars): Likewise.
6726 (skip_quoted_chars): Likewise.
6727 * d-lang.c (d_language_data): Delete la_word_break_characters
6728 initializer.
6729 * f-lang.c (f_word_break_characters): Delete.
6730 (f_language_data): Delete la_word_break_characters initializer.
6731 (f_language::word_break_characters): New member function.
6732 * go-lang.c (go_language_data): Delete la_word_break_characters
6733 initializer.
6734 * language.c (unknown_language_data): Likewise.
6735 (auto_language_data): Likewise.
6736 * language.h (default_word_break_characters): Move declaration to
6737 earlier in the file.
6738 (language_data): Delete la_word_break_characters field.
6739 (language_defn::word_break_characters): New member function.
6740 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6741 initializer.
6742 * objc-lang.c (objc_language_data): Likewise.
6743 * opencl-lang.c (opencl_language_data): Likewise.
6744 * p-lang.c (pascal_language_data): Likewise.
6745 * rust-lang.c (rust_language_data): Likewise.
6746
c9debfb9
AB
67472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6748
6749 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6750 (ada_language_data): Delete la_get_symbol_name_matcher
6751 initializer.
6752 (language_defn::get_symbol_name_matcher_inner): New member
6753 function.
6754 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6755 initializer.
6756 (cplus_language_data): Likewise.
6757 (cplus_language::get_symbol_name_matcher_inner): New member
6758 function.
6759 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6760 (minimal_language_data): Likewise.
6761 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6762 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6763 initializer.
6764 * dictionary.c (iter_match_first_hashed): Update call to
6765 get_symbol_name_matcher.
6766 (iter_match_next_hashed): Likewise.
6767 (iter_match_next_linear): Likewise.
6768 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6769 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6770 initializer.
6771 (f_language::get_symbol_name_matcher_inner): New member function.
6772 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6773 initializer.
6774 * language.c (default_symbol_name_matcher): Update header comment,
6775 make static.
6776 (language_defn::get_symbol_name_matcher): New definition.
6777 (language_defn::get_symbol_name_matcher_inner): Likewise.
6778 (get_symbol_name_matcher): Delete.
6779 (unknown_language_data): Delete la_get_symbol_name_matcher
6780 initializer.
6781 (auto_language_data): Likewise.
6782 * language.h (language_data): Delete la_get_symbol_name_matcher
6783 field.
6784 (language_defn::get_symbol_name_matcher): New member function.
6785 (language_defn::get_symbol_name_matcher_inner): Likewise.
6786 (default_symbol_name_matcher): Delete declaration.
6787 * linespec.c (find_methods): Update call to
6788 get_symbol_name_matcher.
6789 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6790 initializer.
6791 * minsyms.c (lookup_minimal_symbol): Update call to
6792 get_symbol_name_matcher.
6793 (iterate_over_minimal_symbols): Likewise.
6794 * objc-lang.c (objc_language_data): Delete
6795 la_get_symbol_name_matcher initializer.
6796 * opencl-lang.c (opencl_language_data): Likewise.
6797 * p-lang.c (pascal_language_data): Likewise.
6798 * psymtab.c (psymbol_name_matches): Update call to
6799 get_symbol_name_matcher.
6800 * rust-lang.c (rust_language_data): Delete
6801 la_get_symbol_name_matcher initializer.
6802 * symtab.c (symbol_matches_search_name): Update call to
6803 get_symbol_name_matcher.
6804 (compare_symbol_name): Likewise.
6805
9a49ad8c
AB
68062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6807
6808 * ada-lang.c (ada_language_data): Delete la_compute_program
6809 initializer.
6810 * c-lang.c (c_language_data): Likewise.
6811 (c_language::compute_program): New member function.
6812 (cplus_language_data): Delete la_compute_program initializer.
6813 (cplus_language::compute_program): New member function.
6814 (asm_language_data): Delete la_compute_program initializer.
6815 (minimal_language_data): Likewise.
6816 * c-lang.h (c_compute_program): Update comment.
6817 (cplus_compute_program): Likewise.
6818 * compile/compile-c-support.c (c_compute_program): Likewise.
6819 (cplus_compute_program): Likewise.
6820 * compile/compile.c (compile_to_object): Update call to
6821 la_compute_program.
6822 * d-lang.c (d_language_data): Delete la_compute_program
6823 initializer.
6824 * f-lang.c (f_language_data): Likewise.
6825 * go-lang.c (go_language_data): Likewise.
6826 * language.c (unknown_language_data): Likewise.
6827 (auto_language_data): Likewise.
6828 * language.h (language_data): Delete la_compute_program field.
6829 (language_defn::compute_program): New member function.
6830 * m2-lang.c (m2_language_data): Delete la_compute_program
6831 initializer.
6832 * objc-lang.c (objc_language_data): Likewise.
6833 * opencl-lang.c (opencl_language_data): Likewise.
6834 * p-lang.c (pascal_language_data): Likewise.
6835 * rust-lang.c (rust_language_data): Likewise.
6836
eff93b4d
AB
68372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6838
6839 * ada-lang.c (ada_language_data) Delete
6840 la_class_name_from_physname initializer.
6841 * c-lang.c (c_language_data): Likewise.
6842 (cplus_language_data): Likewise.
6843 (cplus_language::class_name_from_physname): New member function.
6844 (asm_language_data): Delete la_class_name_from_physname
6845 initializer.
6846 (minimal_language_data): Likewise.
6847 * d-lang.c (d_language_data): Likewise.
6848 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6849 method on language_defn class.
6850 (guess_full_die_structure_name): Likewise.
6851 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6852 initializer.
6853 * go-lang.c (go_language_data): Likewise.
6854 * language.c (language_class_name_from_physname): Delete.
6855 (unk_lang_class_name): Delete.
6856 (unknown_language_data): Delete la_class_name_from_physname
6857 initializer.
6858 (auto_language_data): Likewise.
6859 * language.h (language_data): Delete la_class_name_from_physname
6860 field.
6861 (language_defn::class_name_from_physname): New function.
6862 (language_class_name_from_physname): Delete declaration.
6863 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6864 initializer.
6865 * objc-lang.c (objc_language_data): Likewise.
6866 * opencl-lang.c (opencl_language_data): Likewise.
6867 * p-lang.c (pascal_language_data): Likewise.
6868 * rust-lang.c (rust_language_data): Likewise.
6869
de543742
TT
68702020-06-16 Tom Tromey <tom@tromey.com>
6871
6872 * tui/tui-data.h (STATUS_NAME): New macro.
6873 * tui/tui-layout.c (tui_remove_some_windows)
6874 (initialize_known_windows, tui_register_window)
6875 (tui_layout_split::remove_windows, initialize_layouts)
6876 (tui_new_layout_command): Don't use hard-coded window names.
6877
a350efd4
TT
68782020-06-16 Tom Tromey <tom@tromey.com>
6879
6880 PR tui/25348:
6881 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6882 tui_initialize_readline. Only run once. Call rl_initialize.
6883 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6884 tui_initialize_readline.
6885 * tui/tui-io.c (tui_setup_io): Call
6886 tui_ensure_readline_initialized.
6887 * tui/tui-interp.c (tui_interp::init): Update.
6888
39ec0490
TT
68892020-06-16 Tom Tromey <tom@tromey.com>
6890
6891 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6892 Also preserve the status window.
6893
d2d1ea20
TT
68942020-06-16 Tom Tromey <tom@tromey.com>
6895
6896 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6897 where m_window==nullptr.
6898
66920317
TT
68992020-06-15 Tom Tromey <tromey@adacore.com>
6900
6901 * windows-nat.c (windows_nat::handle_output_debug_string):
6902 Update.
6903 (windows_nat::handle_ms_vc_exception): Update.
6904 * target.h (target_read_string): Change API.
6905 * target.c (target_read_string): Change API.
6906 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6907 Update.
6908 * solib-frv.c (frv_current_sos): Update.
6909 * solib-dsbt.c (dsbt_current_sos): Update.
6910 * solib-darwin.c (darwin_current_sos): Update.
6911 * linux-thread-db.c (inferior_has_bug): Update.
6912 * expprint.c (print_subexp_standard): Update.
6913 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6914 (ada_exception_message_1): Update.
6915
a5d871dd
TT
69162020-06-15 Tom Tromey <tromey@adacore.com>
6917
6918 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6919
670e35fa
TT
69202020-06-15 Tom Tromey <tromey@adacore.com>
6921
6922 * valprint.c (read_string): Update comment.
6923 * target.c (MIN): Remove.
6924 (target_read_string): Rewrite.
6925
f5272a3b
TT
69262020-06-15 Tom Tromey <tromey@adacore.com>
6927
6928 * corefile.c (read_memory_string): Remove.
6929 * ada-valprint.c (ada_value_print_ptr): Update.
6930 * ada-lang.h (ada_tag_name): Change return type.
6931 * ada-lang.c (type_from_tag): Update.
6932 (ada_tag_name_from_tsd): Change return type. Use
6933 target_read_string.
6934 (ada_tag_name): Likewise.
6935 * gdbcore.h (read_memory_string): Don't declare.
6936
2c074f49
HD
69372020-06-14 Hannes Domani <ssbssa@yahoo.de>
6938
6939 * symtab.c (rbreak_command): Ignore Windows drive colon.
6940
6a17d503
SM
69412020-06-12 Simon Marchi <simon.marchi@efficios.com>
6942
6943 * NEWS: Mention removed GDBserver host support.
6944
453c733f
NC
69452020-06-12 Nelson Chu <nelson.chu@sifive.com>
6946
6947 * features/riscv/rebuild-csr-xml.sh: Updated.
6948
2b4e6a3f
TT
69492020-06-11 Tom Tromey <tom@tromey.com>
6950
6951 PR gdb/18318:
6952 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6953
4412332f
JG
69542020-06-09 Jonny Grant <jg@jguk.org>
69552020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6956
6957 * main.c (captured_main_1): Don't print new line after help.
6958 (print_gdb_help): add mailing list and IRC channel information
6959 to --help. Add new lines between items in the footer. Remove
6960 quotes around bug url.
6961
2f33032a
KS
69622020-06-11 Keith Seitz <keiths@redhat.com>
6963
6964 PR gdb/21356
6965 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6966 Resolve typedefs for type length calculations.
6967
7ab96794
TV
69682020-06-10 Tom de Vries <tdevries@suse.de>
6969
6970 PR ada/24713
6971 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6972 (write_psymbols): Enable .gdb_index for ada.
6973 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6974 ada.
6975
e5f3ece2
TV
69762020-06-10 Tom de Vries <tdevries@suse.de>
6977
6978 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6979 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6980 namei" instead of "const char *name" argument.
6981 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6982 dw2_symtab_iter_init.
6983
940da03e
SM
69842020-06-08 Simon Marchi <simon.marchi@efficios.com>
6985
6986 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6987 to use type::field and field::type instead.
6988
b6cdac4b
SM
69892020-06-08 Simon Marchi <simon.marchi@efficios.com>
6990
6991 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6992 to use field::type instead.
6993
5d14b6e5
SM
69942020-06-08 Simon Marchi <simon.marchi@efficios.com>
6995
6996 * gdbtypes.h (struct field) <type, set_type>: New methods.
6997 Rename `type` field to...
6998 <m_type>: ... this. Change references throughout to use type or
6999 set_type methods.
7000 (FIELD_TYPE): Use field::type. Change call sites that modify
7001 the field's type to use field::set_type instead.
7002
3d967001
SM
70032020-06-08 Simon Marchi <simon.marchi@efficios.com>
7004
7005 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7006 to use type::index_type instead.
7007
262abc0d
SM
70082020-06-08 Simon Marchi <simon.marchi@efficios.com>
7009
7010 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7011 methods.
7012 (TYPE_INDEX_TYPE): Use type::index_type.
7013 * gdbtypes.c (create_array_type_with_stride): Likewise.
7014
82836c92
TT
70152020-06-07 Tom Tromey <tom@tromey.com>
7016
7017 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7018 parameter.
7019 (generic_value_print): Update.
7020
940dace9
AB
70212020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7022
7023 Revert commit 982a38f60b0.
7024 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7025
982a38f6
AB
70262020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7027
7028 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7029 avoid use after free.
7030
82f06518
TV
70312020-06-05 Tom de Vries <tdevries@suse.de>
7032
7033 * NEWS: Fix typos.
7034
f8c41851
SM
70352020-06-04 Simon Marchi <simon.marchi@efficios.com>
7036
7037 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7038 the per_bfd object.
7039 (dwarf2_read_debug_names): Likewise.
7040 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7041 object when re-using a per_bfd object with an index.
7042
f9b5d5ea
TV
70432020-06-03 Tom de Vries <tdevries@suse.de>
7044
7045 PR symtab/26046
7046 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7047 children for C++.
7048 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7049 DW_TAG_subprogram.
7050
f6eee2d0
AB
70512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7052
7053 * ada-lang.c (ada_language_data): Delete skip_trampoline
7054 initializer.
7055 * c-lang.c (c_language_data): Likewise.
7056 (cplus_language_data): Likewise.
7057 (cplus_language::skip_trampoline): New member function.
7058 (asm_language_data): Delete skip_trampoline initializer.
7059 (minimal_language_data): Likewise.
7060 * d-lang.c (d_language_data): Likewise.
7061 * f-lang.c (f_language_data): Likewise.
7062 * go-lang.c (go_language_data): Likewise.
7063 * language.c (unk_lang_trampoline): Delete function.
7064 (skip_language_trampoline): Update.
7065 (unknown_language_data): Delete skip_trampoline initializer.
7066 (auto_language_data): Likewise.
7067 * language.h (language_data): Delete skip_trampoline field.
7068 (language_defn::skip_trampoline): New function.
7069 * m2-lang.c (m2_language_data): Delete skip_trampoline
7070 initializer.
7071 * objc-lang.c (objc_skip_trampoline): Delete function, move
7072 implementation to objc_language::skip_trampoline.
7073 (objc_language_data): Delete skip_trampoline initializer.
7074 (objc_language::skip_trampoline): New member function with
7075 implementation from objc_skip_trampoline.
7076 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7077 initializer.
7078 * p-lang.c (pascal_language_data): Likewise.
7079 * rust-lang.c (rust_language_data): Likewise.
7080
0a50df5d
AB
70812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7082
7083 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7084 (ada_language::demangle): New member function.
7085 * c-lang.c (c_language_data): Delete la_demangle initializer.
7086 (cplus_language_data): Delete la_demangle initializer.
7087 (cplus_language::demangle): New member function.
7088 (asm_language_data): Delete la_demangle initializer.
7089 (minimal_language_data): Delete la_demangle initializer.
7090 * d-lang.c (d_language_data): Delete la_demangle initializer.
7091 (d_language::demangle): New member function.
7092 * f-lang.c (f_language_data): Delete la_demangle initializer.
7093 (f_language::demangle): New member function.
7094 * go-lang.c (go_language_data): Delete la_demangle initializer.
7095 (go_language::demangle): New member function.
7096 * language.c (language_demangle): Update.
7097 (unk_lang_demangle): Delete.
7098 (unknown_language_data): Delete la_demangle initializer.
7099 (unknown_language::demangle): New member function.
7100 (auto_language_data): Delete la_demangle initializer.
7101 (auto_language::demangle): New member function.
7102 * language.h (language_data): Delete la_demangle field.
7103 (language_defn::demangle): New function.
7104 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7105 * objc-lang.c (objc_language_data): Delete la_demangle
7106 initializer.
7107 (objc_language::demangle): New member function.
7108 * opencl-lang.c (opencl_language_data): Delete la_demangle
7109 initializer.
7110 * p-lang.c (pascal_language_data): Likewise.
7111 * rust-lang.c (rust_language_data): Likewise.
7112 (rust_language::demangle): New member function.
7113
fbfb0a46
AB
71142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7115
7116 * ada-lang.c (ada_language_data): Delete la_print_type
7117 initializer.
7118 (ada_language::print_type): New member function.
7119 * c-lang.c (c_language_data): Delete la_print_type initializer.
7120 (c_language::print_type): New member function.
7121 (cplus_language_data): Delete la_print_type initializer.
7122 (cplus_language::print_type): New member function.
7123 (asm_language_data): Delete la_print_type initializer.
7124 (asm_language::print_type): New member function.
7125 (minimal_language_data): Delete la_print_type initializer.
7126 (minimal_language::print_type): New member function.
7127 * d-lang.c (d_language_data): Delete la_print_type initializer.
7128 (d_language::print_type): New member function.
7129 * f-lang.c (f_language_data): Delete la_print_type initializer.
7130 (f_language::print_type): New member function.
7131 * go-lang.c (go_language_data): Delete la_print_type initializer.
7132 (go_language::print_type): New member function.
7133 * language.c (unk_lang_print_type): Delete.
7134 (unknown_language_data): Delete la_print_type initializer.
7135 (unknown_language::print_type): New member function.
7136 (auto_language_data): Delete la_print_type initializer.
7137 (auto_language::print_type): New member function.
7138 * language.h (language_data): Delete la_print_type field.
7139 (language_defn::print_type): New function.
7140 (LA_PRINT_TYPE): Update.
7141 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7142 (m2_language::print_type): New member function.
7143 * objc-lang.c (objc_language_data): Delete la_print_type
7144 initializer.
7145 (objc_language::print_type): New member function.
7146 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7147 to opencl_language::print_type.
7148 (opencl_language_data): Delete la_print_type initializer.
7149 (opencl_language::print_type): New member function, implementation
7150 from opencl_print_type.
7151 * p-lang.c (pascal_language_data): Delete la_print_type
7152 initializer.
7153 (pascal_language::print_type): New member function.
7154 * rust-lang.c (rust_print_type): Delete, implementation moved to
7155 rust_language::print_type.
7156 (rust_language_data): Delete la_print_type initializer.
7157 (rust_language::print_type): New member function, implementation
7158 from rust_print_type.
7159
6f827019
AB
71602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7161
7162 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7163 implementation moves to...
7164 (ada_language::sniff_from_mangled_name): ...here. Update return
7165 type.
7166 (ada_language_data): Delete la_sniff_from_mangled_name
7167 initializer.
7168 * c-lang.c (c_language_data): Likewise.
7169 (cplus_language_data): Likewise.
7170 (cplus_language::sniff_from_mangled_name): New member function,
7171 implementation taken from gdb_sniff_from_mangled_name.
7172 (asm_language_data): Delete la_sniff_from_mangled_name
7173 initializer.
7174 (minimal_language_data): Likewise.
7175 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7176 implementation moves to cplus_language::sniff_from_mangled_name.
7177 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7178 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7179 moves to...
7180 (d_language::sniff_from_mangled_name): ...here.
7181 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7182 * f-lang.c (f_language_data): Likewise.
7183 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7184 moves to...
7185 (go_language::sniff_from_mangled_name): ...here.
7186 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7187 * language.c (language_sniff_from_mangled_name): Delete.
7188 (unknown_language_data): Delete la_sniff_from_mangled_name
7189 initializer.
7190 (auto_language_data): Likewise.
7191 * language.h (language_data): Delete la_sniff_from_mangled_name
7192 field.
7193 (language_defn::sniff_from_mangled_name): New function.
7194 (language_sniff_from_mangled_name): Delete declaration.
7195 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7196 field.
7197 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7198 implementation moves to...
7199 (objc_language::sniff_from_mangled_name): ...here.
7200 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7201 * opencl-lang.c (opencl_language_data): Likewise.
7202 * p-lang.c (pascal_language_data): Likewise.
7203 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7204 implementation moves to...
7205 (rust_language::sniff_from_mangled_name): ...here.
7206 (rust_language_data): Delete la_sniff_from_mangled_name
7207 initializer.
7208 * symtab.c (symbol_find_demangled_name): Call
7209 sniff_from_mangled_name member function.
7210
fb8006fd
AB
72112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7212
7213 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7214 initializer.
7215 * c-lang.c (c_language_data): Likewise.
7216 (cplus_language_data): Likewise.
7217 (cplus_language::search_name_hash): New member function.
7218 (asm_language_data): Delete la_search_name_hash initializer.
7219 (minimal_language_data): Likewise.
7220 * d-lang.c (d_language_data): Likewise.
7221 * dictionary.c (default_search_name_hash): Rename to...
7222 (language_defn::search_name_hash): ...this.
7223 * f-lang.c (f_language_data): Likewise.
7224 (f_language::search_name_hash): New member function.
7225 * go-lang.c (go_language_data): Delete la_search_name_hash
7226 initializer.
7227 * language.c (unknown_language_data): Likewise.
7228 (auto_language_data): Likewise.
7229 * language.h (struct language_data): Delete la_search_name_hash
7230 field.
7231 (language_defn::search_name_hash): Declare new member function.
7232 (default_search_name_hash): Delete declaration.
7233 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7234 initializer.
7235 * objc-lang.c (objc_language_data): Likewise.
7236 * opencl-lang.c (opencl_language_data): Likewise.
7237 * p-lang.c (pascal_language_data): Likewise.
7238 * rust-lang.c (rust_language_data): Likewise.
7239 * symtab.c (search_name_hash): Update call.
7240
8e25bafe
AB
72412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7242
7243 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7244 initializer.
7245 * c-lang.c (class compile_instance): Declare.
7246 (c_language_data): Delete la_get_compile_instance initializer.
7247 (c_language::get_compile_instance): New member function.
7248 (cplus_language_data): Delete la_get_compile_instance initializer.
7249 (cplus_language::get_compile_instance): New member function.
7250 (asm_language_data): Delete la_get_compile_instance initializer.
7251 (minimal_language_data): Likewise.
7252 * c-lang.h (c_get_compile_context): Update comment.
7253 (cplus_get_compile_context): Update comment.
7254 * compile/compile.c (compile_to_object): Update calls, don't rely
7255 on function pointer being NULL.
7256 * d-lang.c (d_language_data): Delete la_get_compile_instance
7257 initializer.
7258 * f-lang.c (f_language_data): Likewise.
7259 * go-lang.c (go_language_data): Likewise.
7260 * language.c (unknown_language_data): Likewise.
7261 (auto_language_data): Likewise.
7262 * language.h (language_data): Delete la_get_compile_instance field.
7263 (language_defn::get_compile_instance): New member function.
7264 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7265 initializer.
7266 * objc-lang.c (objc_language_data): Likewise.
7267 * opencl-lang.c (opencl_language_data): Likewise.
7268 * p-lang.c (pascal_language_data): Likewise.
7269 * rust-lang.c (rust_language_data): Likewise.
7270
4009ee92
AB
72712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7272
7273 * ada-lang.c (ada_add_all_symbols): Update comment.
7274 (ada_iterate_over_symbols): Delete, move implementation to...
7275 (ada_language::iterate_over_symbols): ...here, a new member
7276 function, rewrite to use range based for loop.
7277 (ada_language_data): Delete la_iterate_over_symbols initializer.
7278 * c-lang.c (c_language_data): Likewise.
7279 (cplus_language_data): Likewise.
7280 (asm_language_data): Likewise.
7281 (minimal_language_data): Likewise.
7282 * d-lang.c (d_language_data): Likewise.
7283 * f-lang.c (f_language_data): Likewise.
7284 * go-lang.c (go_language_data): Likewise.
7285 * language.c (unknown_language_data): Likewise.
7286 (auto_language_data): Likewise.
7287 * language.h (language_data): Delete la_iterate_over_symbols field.
7288 (language_defn::iterate_over_symbols): New member function.
7289 (LA_ITERATE_OVER_SYMBOLS): Update.
7290 * linespec.c (iterate_over_all_matching_symtabs): Update.
7291 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7292 initializer.
7293 * objc-lang.c (objc_language_data): Likewise.
7294 * opencl-lang.c (opencl_language_data): Likewise.
7295 * p-lang.c (pascal_language_data): Likewise.
7296 * rust-lang.c (rust_language_data): Likewise.
7297
54f4ca46
AB
72982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7299
7300 * ada-lang.c (ada_language_data): Delete
7301 la_lookup_transparent_type initializer.
7302 * c-lang.c (c_language_data): Likewise.
7303 (cplus_language_data): Likewise.
7304 (cplus_language::lookup_transparent_type): New member function.
7305 (asm_language_data): Delete la_lookup_transparent_type
7306 initializer.
7307 (minimal_language_data): Likewise.
7308 * d-lang.c (d_language_data): Likewise.
7309 * f-lang.c (f_language_data): Likewise.
7310 * go-lang.c (go_language_data): Likewise.
7311 * language.c (unknown_language_data): Likewise.
7312 (auto_language_data): Likewise.
7313 * language.h (struct language_data): Delete
7314 la_lookup_transparent_type field.
7315 (language_defn::lookup_transparent_type): New member function.
7316 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7317 initializer.
7318 * objc-lang.c (objc_language_data): Likewise.
7319 * opencl-lang.c (opencl_language_data): Likewise.
7320 * p-lang.c (pascal_language_data): Likewise.
7321 * rust-lang.c (rust_language_data): Likewise.
7322 * symtab.c (symbol_matches_domain): Update call.
7323
1fb314aa
AB
73242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7325
7326 * ada-lang.c (ada_language_arch_info): Delete function, move
7327 implementation to...
7328 (ada_language::language_arch_info): ...here, a new member
7329 function.
7330 (ada_language_data): Delete la_language_arch_info.
7331 * c-lang.c (c_language_data): Likewise.
7332 (c_language::language_arch_info): New member function.
7333 (cplus_language_arch_info): Delete function, move
7334 implementation to...
7335 (cplus_language::language_arch_info): ...here, a new member
7336 function.
7337 (cplus_language_data): Delete la_language_arch_info.
7338 (asm_language_data): Likewise.
7339 (asm_language::language_arch_info): New member function.
7340 (minimal_language_data): Delete la_language_arch_info.
7341 (minimal_language::language_arch_info): New member function.
7342 * d-lang.c (d_language_arch_info): Delete function, move
7343 implementation to...
7344 (d_language::language_arch_info): ...here, a new member
7345 function.
7346 (d_language_data): Delete la_language_arch_info.
7347 * f-lang.c (f_language_arch_info): Delete function, move
7348 implementation to...
7349 (f_language::language_arch_info): ...here, a new member
7350 function.
7351 (f_language_data): Delete la_language_arch_info.
7352 * go-lang.c (go_language_arch_info): Delete function, move
7353 implementation to...
7354 (go_language::language_arch_info): ...here, a new member
7355 function.
7356 (go_language_data): Delete la_language_arch_info.
7357 * language.c (unknown_language_data): Likewise.
7358 (unknown_language::language_arch_info): New member function.
7359 (auto_language_data): Delete la_language_arch_info.
7360 (auto_language::language_arch_info): New member function.
7361 (language_gdbarch_post_init): Update call to
7362 la_language_arch_info.
7363 * language.h (language_data): Delete la_language_arch_info
7364 function pointer.
7365 (language_defn::language_arch_info): New function.
7366 * m2-lang.c (m2_language_arch_info): Delete function, move
7367 implementation to...
7368 (m2_language::language_arch_info): ...here, a new member
7369 function.
7370 (m2_language_data): Delete la_language_arch_info.
7371 * objc-lang.c (objc_language_arch_info): Delete function, move
7372 implementation to...
7373 (objc_language::language_arch_info): ...here, a new member
7374 function.
7375 (objc_language_data): Delete la_language_arch_info.
7376 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7377 implementation to...
7378 (opencl_language::language_arch_info): ...here, a new member
7379 function.
7380 (opencl_language_data): Delete la_language_arch_info.
7381 * p-lang.c (pascal_language_arch_info): Delete function, move
7382 implementation to...
7383 (pascal_language::language_arch_info): ...here, a new member
7384 function.
7385 (pascal_language_data): Delete la_language_arch_info.
7386 * rust-lang.c (rust_language_arch_info): Delete function, move
7387 implementation to...
7388 (rust_language::language_arch_info): ...here, a new member
7389 function.
7390 (rust_language_data): Delete la_language_arch_info.
7391
48448202
AB
73922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7393
7394 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7395 initializer.
7396 * c-lang.c (c_language_data): Likewise.
7397 (cplus_language_data): Likewise.
7398 (cplus_language::pass_by_reference_info): New method.
7399 (asm_language_data): Delete la_pass_by_reference initializer.
7400 (minimal_language_data): Likewise.
7401 * cp-abi.c (cp_pass_by_reference): Remove use of
7402 default_pass_by_reference.
7403 * d-lang.c (d_language_data): Likewise.
7404 * f-lang.c (f_language_data): Likewise.
7405 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7406 default_pass_by_reference.
7407 * go-lang.c (go_language_data): Likewise.
7408 * language.c (language_pass_by_reference): Update.
7409 (default_pass_by_reference): Delete.
7410 (unknown_language_data): Delete la_pass_by_reference
7411 initializer.
7412 (auto_language_data): Likewise.
7413 * language.h (struct language_data): Delete la_pass_by_reference
7414 field.
7415 (language_defn::pass_by_reference_info): New member function.
7416 (default_pass_by_reference): Delete declaration.
7417 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7418 initializer.
7419 * objc-lang.c (objc_language_data): Likewise.
7420 * opencl-lang.c (opencl_language_data): Likewise.
7421 * p-lang.c (pascal_language_data): Likewise.
7422 * rust-lang.c (rust_language_data): Likewise.
7423
15e5fd35
AB
74242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7425
7426 * ada-lang.c (ada_read_var_value): Delete function, move
7427 implementation to...
7428 (ada_language::read_var_value): ...here.
7429 (ada_language_data): Delete la_read_var_value initializer.
7430 * c-lang.c (c_language_data): Likewise.
7431 (cplus_language_data): Likewise.
7432 (minimal_language_data): Likewise.
7433 * d-lang.c (d_language_data): Likewise.
7434 * f-lang.c (f_language_data): Likewise.
7435 * findvar.c (default_read_var_value): Rename to...
7436 (language_defn::read_var_value): ...this.
7437 * findvar.c (read_var_value): Update header comment, and change to
7438 call member function instead of function pointer.
7439 * go-lang.c (go_language_data): Likewise.
7440 * language.c (unknown_language_data): Delete la_read_var_value
7441 initializer.
7442 (auto_language_data): Likewise.
7443 * language.h (struct language_data): Delete la_read_var_value
7444 field.
7445 (language_defn::read_var_value): New member function.
7446 (default_read_var_value): Delete declaration.
7447 * m2-lang.c (m2_language_data): Delete la_read_var_value
7448 initializer.
7449 * objc-lang.c (objc_language_data): Likewise.
7450 * opencl-lang.c (opencl_language_data): Likewise.
7451 * p-lang.c (pascal_language_data): Likewise.
7452 * rust-lang.c (rust_language_data): Likewise.
7453 * value.h (default_read_var_value): Delete declaration.
7454
5bd40f2a
AB
74552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7456
7457 * ada-lang.c (ada_print_array_index): Delete function, move
7458 implementation to...
7459 (ada_language::print_array_index): ...here.
7460 (ada_language_data): Delete la_print_array_index initializer.
7461 * c-lang.c (c_language_data): Likewise.
7462 (cplus_language_data): Likewise.
7463 (minimal_language_data): Likewise.
7464 * d-lang.c (d_language_data): Likewise.
7465 * f-lang.c (f_language_data): Likewise.
7466 * go-lang.c (go_language_data): Likewise.
7467 * language.c (default_print_array_index): Delete function, move
7468 implementation to...
7469 (language_defn::print_array_index): ...here.
7470 (unknown_language_data): Delete la_print_array_index initializer.
7471 (auto_language_data): Likewise.
7472 * language.h (struct language_data): Delete la_print_array_index
7473 field.
7474 (language_defn::print_array_index): New member function.
7475 (LA_PRINT_ARRAY_INDEX): Update.
7476 (default_print_array_index): Delete declaration.
7477 * m2-lang.c (m2_language_data): Delete la_print_array_index
7478 initializer.
7479 * objc-lang.c (objc_language_data): Likewise.
7480 * opencl-lang.c (opencl_language_data): Likewise.
7481 * p-lang.c (pascal_language_data): Likewise.
7482 * rust-lang.c (rust_language_data): Likewise.
7483
0874fd07
AB
74842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7485
7486 * gdb/ada-lang.c (ada_language_defn): Convert to...
7487 (ada_language_data): ...this.
7488 (class ada_language): New class.
7489 (ada_language_defn): New static global.
7490 * gdb/c-lang.c (c_language_defn): Convert to...
7491 (c_language_data): ...this.
7492 (class c_language): New class.
7493 (c_language_defn): New static global.
7494 (cplus_language_defn): Convert to...
7495 (cplus_language_data): ...this.
7496 (class cplus_language): New class.
7497 (cplus_language_defn): New static global.
7498 (asm_language_defn): Convert to...
7499 (asm_language_data): ...this.
7500 (class asm_language): New class.
7501 (asm_language_defn): New static global.
7502 (minimal_language_defn): Convert to...
7503 (minimal_language_data): ...this.
7504 (class minimal_language): New class.
7505 (minimal_language_defn): New static global.
7506 * gdb/d-lang.c (d_language_defn): Convert to...
7507 (d_language_data): ...this.
7508 (class d_language): New class.
7509 (d_language_defn): New static global.
7510 * gdb/f-lang.c (f_language_defn): Convert to...
7511 (f_language_data): ...this.
7512 (class f_language): New class.
7513 (f_language_defn): New static global.
7514 * gdb/go-lang.c (go_language_defn): Convert to...
7515 (go_language_data): ...this.
7516 (class go_language): New class.
7517 (go_language_defn): New static global.
7518 * gdb/language.c (unknown_language_defn): Remove declaration.
7519 (current_language): Initialize to nullptr, real initialization is
7520 moved to _initialize_language.
7521 (languages): Delete global.
7522 (language_defn::languages): Define.
7523 (set_language_command): Use language_defn::languages.
7524 (set_language): Likewise.
7525 (range_error): Likewise.
7526 (language_enum): Likewise.
7527 (language_def): Likewise.
7528 (add_set_language_command): Use language_def::languages for the
7529 language list, and language_def to lookup language pointers.
7530 (skip_language_trampoline): Use language_defn::languages.
7531 (unknown_language_defn): Convert to...
7532 (unknown_language_data): ...this.
7533 (class unknown_language): New class.
7534 (unknown_language_defn): New static global.
7535 (auto_language_defn): Convert to...
7536 (auto_language_data): ...this.
7537 (class auto_language): New class.
7538 (auto_language_defn): New static global.
7539 (language_gdbarch_post_init): Use language_defn::languages.
7540 (_initialize_language): Initialize current_language.
7541 * gdb/language.h (struct language_defn): Rename to...
7542 (struct language_data): ...this.
7543 (struct language_defn): New.
7544 (auto_language_defn): Delete.
7545 (unknown_language_defn): Delete.
7546 (minimal_language_defn): Delete.
7547 (ada_language_defn): Delete.
7548 (asm_language_defn): Delete.
7549 (c_language_defn): Delete.
7550 (cplus_language_defn): Delete.
7551 (d_language_defn): Delete.
7552 (f_language_defn): Delete.
7553 (go_language_defn): Delete.
7554 (m2_language_defn): Delete.
7555 (objc_language_defn): Delete.
7556 (opencl_language_defn): Delete.
7557 (pascal_language_defn): Delete.
7558 (rust_language_defn): Delete.
7559 * gdb/m2-lang.c (m2_language_defn): Convert to...
7560 (m2_language_data): ...this.
7561 (class m2_language): New class.
7562 (m2_language_defn): New static global.
7563 * gdb/objc-lang.c (objc_language_defn): Convert to...
7564 (objc_language_data): ...this.
7565 (class objc_language): New class.
7566 (objc_language_defn): New static global.
7567 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7568 (opencl_language_data): ...this.
7569 (class opencl_language): New class.
7570 (opencl_language_defn): New static global.
7571 * gdb/p-lang.c (pascal_language_defn): Convert to...
7572 (pascal_language_data): ...this.
7573 (class pascal_language): New class.
7574 (pascal_language_defn): New static global.
7575 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7576 language pointer, update comment format.
7577 * gdb/rust-lang.c (rust_language_defn): Convert to...
7578 (rust_language_data): ...this.
7579 (class rust_language): New class.
7580 (rust_language_defn): New static global.
7581
1313c56e
AB
75822020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7583
7584 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7585 member variable.
7586 <m_stmt_at_address>: New member variable.
7587 (lnp_state_machine::record_line): Don't record some lines, update
7588 tracking of is_stmt at the same address.
7589 (lnp_state_machine::lnp_state_machine): Initialise new member
7590 variables.
7591
b7ed9f3d
ST
75922020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7593
7594 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7595 "-include gnu-nat-mig.h".
7596 * gnu-nat-mig.h: New file.
7597 * gnu-nat.c: Include "gnu-nat-mig.h".
7598 (exc_server, msg_reply_server, notify_server,
7599 process_reply_server): Remove declarations.
7600
14a8ad62
ST
76012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7602
7603 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7604 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7605 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7606 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7607 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7608 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7609 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7610 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7611 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7612 to gnu_nat_target class.
7613 * gnu-nat.c: Likewise.
7614 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7615 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7616 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7617 object.
7618 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7619 instead of `gnu_target'.
7620
0af5e106
ST
76212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7622
7623 * i386-gnu-tdep.c: Include "gdbcore.h"
7624 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7625 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7626 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7627 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7628 i386_gnu_sigcontext_addr): New functions
7629 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7630 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7631 tdep.
7632
078f2fc9
ST
76332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7634
7635 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7636 before fork_inferior call. Avoid calling it if target_is_pushed returns
7637 true.
7638
53dff92c
ST
76392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7640
7641 * gnu-nat.h (gnu_target): New variable declaration.
7642 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7643 gnu_target.
7644 * gnu-nat.c (gnu_target): New variable.
7645 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7646 add_thread_silent, and add_thread calls.
7647 (gnu_nat_target::create_inferior): Pass gnu_target to
7648 add_thread_silent, thread_change_ptid call.
7649 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7650 call.
7651
5a8b8627
ST
76522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7653
7654 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7655 (gnu_nat_target::find_memory_regions): Remove unused
7656 `old_address' variable.
7657
366f550a
ST
76582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7659
7660 * gnu-nat.c: Include "gdbarch.h".
7661
f14871bf
ST
76622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7663
7664 * reply_mig_hack.awk (Error return): Cast function through
7665 void *, to bypass compiler function call check.
7666
c6887cfb
ST
76672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7668
7669 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7670 $(srcdir)/reply_mig_hack.awk.
7671
6930bffe
ST
76722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7673
7674 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7675
112c22ed
JG
76762020-05-30 Jonny Grant <jg@jguk.org>
7677
7678 * configure.ac (ACX_BUGURL): change bug URL to https.
7679
f68f85b5
PA
76802020-05-30 Pedro Alves <palves@redhat.com>
7681
7682 * cp-support.c (replace_typedefs_template): New.
7683 (replace_typedefs_qualified_name): Handle
7684 DEMANGLE_COMPONENT_TEMPLATE.
7685
976ca316
SM
76862020-05-29 Simon Marchi <simon.marchi@efficios.com>
7687
7688 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7689 dwarf2/index-cache.h, dwarf2/index-write.c,
7690 dwarf2/index-write.h, dwarf2/line-header.c,
7691 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7692 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7693 variables and fields from `dwarf2_per_objfile` to just
7694 `per_objfile` throughout.
7695
989ade05
SM
76962020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7697
7698 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7699 <push_dwarf_reg_entry_value>: Add comment.
7700
c47bae85
KB
77012020-05-28 Kevin Buettner <kevinb@redhat.com>
7702 Keith Seitz <keiths@redhat.com>
7703
7704 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7705 instead of PyEval_ReleaseLock.
7706 (class gdbpy_gil): Move to earlier in file.
7707 (finalize_python): Set gdb_python_initialized.
7708 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7709 when not initialized.
7710
44486dcf
SM
77112020-05-28 Simon Marchi <simon.marchi@efficios.com>
7712
7713 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7714 <push_dwarf_reg_entry_value>: Remove assert. Override
7715 per_objfile with caller_per_objfile.
7716
f030440d
TV
77172020-05-28 Tom de Vries <tdevries@suse.de>
7718
7719 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7720 PR gold/15646 workaround to symbol kind "type".
7721
f0fbb768
TT
77222020-05-27 Tom Tromey <tromey@adacore.com>
7723
7724 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7725
af0b2a3e
TT
77262020-05-27 Tom Tromey <tromey@adacore.com>
7727
7728 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7729 Use htab_find_with_hash.
7730 <add_abbrev>: Remove "abbrev_number" parameter.
7731 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7732 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7733 (hash_abbrev): Add comment.
7734 (abbrev_table::lookup_abbrev): Move to header file.
7735 (abbrev_table::read): Update.
7736
7d00ffec
TT
77372020-05-27 Tom Tromey <tromey@adacore.com>
7738
7739 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7740 method.
7741 <canonical_name>: New member.
7742 <raw_name>: Rename from "name".
7743 (partial_die_info): Initialize canonical_name.
7744 (scan_partial_symbols): Check raw_name.
7745 (partial_die_parent_scope, partial_die_full_name)
7746 (add_partial_symbol, add_partial_subprogram)
7747 (add_partial_enumeration, load_partial_dies): Use "name" method.
7748 (partial_die_info::name): New method.
7749 (partial_die_info::read, guess_partial_die_structure_name)
7750 (partial_die_info::fixup): Update.
7751
697bba18
TT
77522020-05-27 Tom Tromey <tromey@adacore.com>
7753
7754 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7755 <get_ref_die_offset>: Inline.
7756 <get_ref_die_offset_complaint>: New method.
7757 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7758 (attribute::get_ref_die_offset_complaint): Rename from
7759 get_ref_die_offset. Just issue complaint.
7760
c17ace43
HD
77612020-05-27 Hannes Domani <ssbssa@yahoo.de>
7762
7763 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7764
96445f0b
HD
77652020-05-27 Hannes Domani <ssbssa@yahoo.de>
7766
7767 * exec.c (exec_file_attach): Use errno value of first openp failure.
7768
ac637ec3
HD
77692020-05-27 Hannes Domani <ssbssa@yahoo.de>
7770
7771 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7772 Don't close thread handle.
7773
17ee85fc
TT
77742020-05-27 Tom Tromey <tom@tromey.com>
7775 Simon Marchi <simon.marchi@efficios.com>
7776
7777 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7778 shared_ptr.
7779 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7780 member.
7781 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7782 dwarf2_per_bfd_objfile_data_key>: New globals.
7783 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7784 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7785 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7786 shared.
7787 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7788 short-circuit when sharing.
7789 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7790 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7791
39b16f87
SM
77922020-05-27 Simon Marchi <simon.marchi@efficios.com>
7793
7794 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7795 to...
7796 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7797 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7798
fcf23d5b
SM
77992020-05-27 Simon Marchi <simon.marchi@efficios.com>
7800
7801 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7802 build_name_components, find_name_components_bounds>:
7803 Add per_objfile parameter.
7804 (struct mapped_index) <symbol_name_at>: Likewise.
7805 (struct mapped_debug_names): Remove constructor.
7806 <dwarf2_per_objfile>: Remove field.
7807 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7808 (mapped_index_base::find_name_components_bounds,
7809 mapped_index_base::build_name_components,
7810 dw2_expand_symtabs_matching_symbol): Likewise.
7811 (class mock_mapped_index) <symbol_name_at>: Likewise.
7812 (check_match): Likewise.
7813 (check_find_bounds_finds): Likewise.
7814 (test_mapped_index_find_name_component_bounds): Update.
7815 (CHECK_MATCH): Update.
7816 (dw2_expand_symtabs_matching): Update.
7817 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7818 per_objfile parameter.
7819 <find_vec_in_debug_names>: Likewise.
7820 <m_per_objfile>: New field.
7821 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7822 parameter.
7823 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7824 (dw2_debug_names_iterator::next): Update.
7825 (dw2_debug_names_lookup_symbol): Update.
7826 (dw2_debug_names_expand_symtabs_for_function): Update.
7827 (dw2_debug_names_map_matching_symbols): Update.
7828 (dw2_debug_names_expand_symtabs_matching): Update.
7829 (dwarf2_read_debug_names): Update.
7830
7188ed02
SM
78312020-05-27 Simon Marchi <simon.marchi@efficios.com>
7832
7833 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7834 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7835 move to dwarf2_per_objfile.
7836 <read_in_chain>: Remove.
7837 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7838 remove_all_cus, age_comp_units>: New methods.
7839 <m_dwarf2_cus>: New member.
7840 (struct dwarf2_per_cu_data) <cu>: Remove.
7841 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7842 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7843 moved to methods of dwarf2_per_objfile.
7844 (dwarf2_clear_marks): Remove.
7845 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7846 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7847 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7848 (dwarf2_per_objfile::remove_all_cus): New.
7849 (class free_cached_comp_units) <~free_cached_comp_units>:
7850 Update.
7851 (load_cu): Update.
7852 (dw2_do_instantiate_symtab): Adjust.
7853 (fill_in_sig_entry_from_dwo_entry): Adjust.
7854 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7855 (cutu_reader::cutu_reader): Likewise.
7856 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7857 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7858 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7859 and dwarf2_per_objfile::age_comp_units.
7860 (load_partial_comp_unit): Update.
7861 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7862 (process_queue): Likewise.
7863 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7864 backlink.
7865 (dwarf2_read_addr_index): Likewise.
7866 (follow_die_offset): Likewise.
7867 (dwarf2_fetch_die_loc_sect_off): Likewise.
7868 (dwarf2_fetch_constant_bytes): Likewise.
7869 (dwarf2_fetch_die_type_sect_off): Likewise.
7870 (follow_die_sig_1): Likewise.
7871 (load_full_type_unit): Likewise.
7872 (read_signatured_type): Likewise.
7873 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7874 (dwarf2_cu::~dwarf2_cu): Remove.
7875 (dwarf2_per_objfile::get_cu): New.
7876 (dwarf2_per_objfile::set_cu): New.
7877 (age_cached_comp_units): Rename to...
7878 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7879 to std::unordered_map.
7880 (free_one_cached_comp_unit): Rename to...
7881 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7882 to std::unordered_map.
7883 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7884 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7885 a dwarf2_per_objfile in data.
7886 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7887 (dwarf2_clear_marks): Remove.
7888
2e671100
SM
78892020-05-27 Simon Marchi <simon.marchi@efficios.com>
7890
7891 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7892 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7893 (init_tu_and_read_dwo_dies): Likewise.
7894 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7895 (cutu_reader::cutu_reader): Likewise.
7896 (load_partial_comp_unit): Likewise.
7897 (process_psymtab_comp_unit): Update.
7898 (build_type_psymtabs_1): Update.
7899 (process_skeletonless_type_unit): Update.
7900 (load_full_comp_unit): Update.
7901 (find_partial_die): Update.
7902 (dwarf2_read_addr_index): Update.
7903 (read_signatured_type): Update.
7904
2e6a9f79
SM
79052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7906
7907 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7908 m_header_read_in>: New fields.
7909 <get_header>: New method.
7910 * dwarf2/read.c (per_cu_header_read_in): Remove.
7911 (dwarf2_per_cu_data::get_header): New.
7912 (dwarf2_per_cu_data::addr_size): Update.
7913 (dwarf2_per_cu_data::offset_size): Update.
7914 (dwarf2_per_cu_data::ref_addr_size): Update.
7915
1b555f17
SM
79162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7917
7918 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7919 (dw2_do_instantiate_symtab): Update.
7920 (queue_and_load_all_dwo_tus): Change parameter from
7921 dwarf2_per_cu_data to dwarf2_cu.
7922 (dwarf2_fetch_die_loc_sect_off): Update.
7923 (dwarf2_fetch_constant_bytes): Update.
7924 (dwarf2_fetch_die_type_sect_off): Update.
7925
8fc0b21d
SM
79262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7927
7928 * dwarf2/read.c (process_full_comp_unit,
7929 process_full_type_unit): Remove per_cu, per_objfile paramters.
7930 Add dwarf2_cu parameter.
7931 (process_queue): Update.
7932
168c9250
SM
79332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7934
7935 * dwarf2/read.c (create_cu_from_index_list): Replace
7936 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7937 (create_cus_from_index_list): Likewise.
7938 (create_cus_from_index): Likewise.
7939 (create_signatured_type_table_from_index): Likewise.
7940 (create_cus_from_debug_names_list): Likewise.
7941 (create_cus_from_debug_names): Likewise.
7942 (dwarf2_read_gdb_index): Update.
7943 (dwarf2_read_debug_names): Update.
7944
e286671b
TT
79452020-05-27 Tom Tromey <tom@tromey.com>
7946 Simon Marchi <simon.marchi@efficios.com>
7947
7948 * dwarf2/read.h (struct dwarf2_per_objfile)
7949 <get_type_for_signatured_type, set_type_for_signatured_type>:
7950 New methods.
7951 <m_type_map>: New member.
7952 (struct signatured_type) <type>: Remove.
7953 * dwarf2/read.c
7954 (dwarf2_per_objfile::get_type_for_signatured_type,
7955 dwarf2_per_objfile::set_type_for_signatured_type): New.
7956 (get_signatured_type): Use new methods.
7957
8adb8487
TT
79582020-05-27 Tom Tromey <tom@tromey.com>
7959 Simon Marchi <simon.marchi@efficios.com>
7960
7961 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7962 (struct dwarf2_per_objfile) <type_units>: New member.
7963 <get_type_unit_group_unshareable>: New method.
7964 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7965 num_symtabs, symtabs>: Remove; move to
7966 type_unit_group_unshareable.
7967 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7968 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7969 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7970
127bbf4b
SM
79712020-05-27 Simon Marchi <simon.marchi@efficios.com>
7972
7973 * dwarf2/read.h (struct dwarf2_per_cu_data):
7974 <dwarf2_per_objfile>: Remove.
7975 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7976 dwarf2_per_objfile.
7977 (create_signatured_type_table_from_index): Likewise.
7978 (create_signatured_type_table_from_debug_names): Likewise.
7979 (create_debug_type_hash_table): Likewise.
7980 (fill_in_sig_entry_from_dwo_entry): Likewise.
7981 (create_type_unit_group): Likewise.
7982 (read_comp_units_from_section): Likewise.
7983 (create_cus_hash_table): Likewise.
7984
f6e649dd
SM
79852020-05-27 Simon Marchi <simon.marchi@efficios.com>
7986
7987 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7988 dwarf2_per_cu_data::dwarf2_per_objfile.
7989 (compute_compunit_symtab_includes): Likewise.
7990 (dwarf2_cu::start_symtab): Likewise.
7991
aa66c379
SM
79922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7993
7994 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7995 parameter.
7996 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7997 (read_namespace_alias): Update.
7998 (lookup_die_type): Update.
7999 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8000 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8001 Update.
8002 (disassemble_dwarf_expression): Update.
8003
120ce1b5
SM
80042020-05-27 Simon Marchi <simon.marchi@efficios.com>
8005
8006 * dwarf2/read.h (struct dwarf2_queue_item): Add
8007 dwarf2_per_objfile parameter, assign new parameter.
8008 <per_objfile>: New field.
8009 * dwarf2/read.c (free_one_cached_comp_unit): Add
8010 dwarf2_per_objfile parameter.
8011 (queue_comp_unit): Likewise.
8012 (dw2_do_instantiate_symtab): Update.
8013 (process_psymtab_comp_unit): Update.
8014 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8015 (process_imported_unit_die): Update.
8016 (queue_and_load_dwo_tu): Update.
8017 (follow_die_offset): Update.
8018 (follow_die_sig_1): Update.
8019
9f47c707
SM
80202020-05-27 Simon Marchi <simon.marchi@efficios.com>
8021
8022 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8023 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8024 (read_call_site_scope): Assign per_objfile.
8025 (dwarf2_per_cu_data::objfile): Remove.
8026 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8027 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8028 dwarf2_per_objfile parameter.
8029 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8030 dwarf2_per_objfile parameter.
8031 (dwarf_expr_reg_to_entry_parameter): Add output
8032 dwarf2_per_objfile parameter.
8033 (locexpr_get_frame_base): Update.
8034 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8035 <push_dwarf_reg_entry_value>: Update.
8036 <call_site_to_target_addr>: Update.
8037 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8038 parameter.
8039 (value_of_dwarf_reg_entry): Update.
8040 (rw_pieced_value): Update.
8041 (indirect_synthetic_pointer): Update.
8042 (dwarf2_evaluate_property): Update.
8043 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8044 parameter.
8045 (locexpr_read_variable): Update.
8046 (locexpr_get_symbol_read_needs): Update.
8047 (loclist_read_variable): Update.
8048
14095eb3
SM
80492020-05-27 Simon Marchi <simon.marchi@efficios.com>
8050
8051 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8052 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8053 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8054 parameter.
8055 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8056 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8057 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8058 parameter.
8059 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8060 sect_variable_value): Add dwarf2_per_objfile parameter.
8061 (class dwarf_evaluate_loc_desc) <dwarf_call,
8062 dwarf_variable_value>: Update.
8063 (fetch_const_value_from_synthetic_pointer): Add
8064 dwarf2_per_objfile parameter.
8065 (fetch_const_value_from_synthetic_pointer): Update.
8066 (coerced_pieced_ref): Update.
8067 (class symbol_needs_eval_context) <dwarf_call,
8068 dwarf_variable_value>: Update.
8069 (dwarf2_compile_expr_to_ax): Update.
8070
3c3cd3d4
SM
80712020-05-27 Simon Marchi <simon.marchi@efficios.com>
8072
8073 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8074 parameter.
8075 (dwarf2_evaluate_loc_desc_full): Update.
8076
82ca3f51
SM
80772020-05-27 Simon Marchi <simon.marchi@efficios.com>
8078
8079 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8080 parameter.
8081 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8082 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8083 dwarf2_per_objfile parameter.
8084 (decode_debug_loc_dwo_addresses): Likewise.
8085 (dwarf2_find_location_expression): Update.
8086 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8087 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8088 parameter.
8089 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8090 parameter.
8091 (locexpr_describe_location_1): Likewise.
8092 (locexpr_describe_location): Update.
8093
4b167ea1
SM
80942020-05-27 Simon Marchi <simon.marchi@efficios.com>
8095
8096 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8097 Remove.
8098 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8099 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8100 (dwarf2_compile_property_to_c): Update.
8101 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8102 use text offset from objfile.
8103 (locexpr_tracepoint_var_ref): Update.
8104 (locexpr_generate_c_location): Update.
8105 (loclist_describe_location): Update.
8106 (loclist_tracepoint_var_ref): Update.
8107 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8108 dwarf2_per_objfile parameter.
8109 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8110 use text offset from objfile.
8111 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8112
89b07335
SM
81132020-05-27 Simon Marchi <simon.marchi@efficios.com>
8114
8115 * dwarf2/expr.h (struct dwarf_expr_context)
8116 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8117 <offset>: Remove.
8118 <per_objfile>: New member.
8119 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8120 dwarf2_per_objfile parameter. Don't set offset, set
8121 per_objfile.
8122 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8123 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8124 a dwarf2_per_objfile object instead of an offset.
8125 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8126 constructor.
8127 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8128 to dwarf2_expr_executor constructor. Don't set offset.
8129 (dwarf2_fetch_cfa_info): Update.
8130 (struct dwarf2_frame_cache) <text_offset>: Remove.
8131 <per_objfile>: New field.
8132 (dwarf2_frame_cache): Update.
8133 (dwarf2_frame_prev_register): Update.
8134 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8135 <dwarf_evaluate_loc_desc>: Add constructor.
8136 (dwarf2_evaluate_loc_desc_full): Update.
8137 (dwarf2_locexpr_baton_eval): Update.
8138 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8139 Add constructor.
8140 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8141
293e7e51
SM
81422020-05-27 Simon Marchi <simon.marchi@efficios.com>
8143
8144 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8145 addr_sized_int_type>: Move to dwarf2_cu.
8146 <int_type>: Move to dwarf2_per_objfile.
8147 (struct dwarf2_per_objfile) <int_type>: Move here.
8148 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8149 addr_sized_int_type>: Move here.
8150 (read_func_scope): Update.
8151 (read_array_type): Update.
8152 (read_tag_string_type): Update.
8153 (attr_to_dynamic_prop): Update.
8154 (dwarf2_per_cu_data::int_type): Rename to...
8155 (dwarf2_per_objfile::int_type): ... this.
8156 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8157 (dwarf2_cu::addr_sized_int_type): ... this.
8158 (read_subrange_type): Update.
8159 (dwarf2_per_cu_data::addr_type): Rename to...
8160 (dwarf2_cu::addr_type): ... this.
8161 (set_die_type): Update.
8162
64874a40
SM
81632020-05-27 Simon Marchi <simon.marchi@efficios.com>
8164
8165 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8166 data through per_cu->cu.
8167
4ab09049
SM
81682020-05-27 Simon Marchi <simon.marchi@efficios.com>
8169
8170 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8171 dwarf2_per_cu_data parameter fo dwarf2_cu.
8172 (lookup_dwo_type_unit): Likewise.
8173 (read_cutu_die_from_dwo): Likewise.
8174 (lookup_dwo_unit): Likewise.
8175 (open_and_init_dwo_file): Likewise.
8176 (lookup_dwo_cutu): Likewise.
8177 (lookup_dwo_comp_unit): Likewise.
8178 (lookup_dwo_type_unit): Likewise.
8179 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8180 (cutu_reader::cutu_reader): Update.
8181
47b14e86
SM
81822020-05-27 Simon Marchi <simon.marchi@efficios.com>
8183
8184 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8185 parameter.
8186 (process_full_type_unit): Likewise.
8187 (process_queue): Update.
8188
43182c09
SM
81892020-05-27 Simon Marchi <simon.marchi@efficios.com>
8190
8191 * dwarf2/read.c (recursively_compute_inclusions): Add
8192 dwarf2_per_objfile parameter.
8193 (compute_compunit_symtab_includes): Likewise.
8194 (process_cu_includes): Update.
8195
7aa104c4
SM
81962020-05-27 Simon Marchi <simon.marchi@efficios.com>
8197
8198 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8199 parameter.
8200 (create_type_unit_group): Update.
8201 (process_psymtab_comp_unit_reader): Update.
8202 (build_type_psymtabs_reader): Update.
8203
e3beb21d
SM
82042020-05-27 Simon Marchi <simon.marchi@efficios.com>
8205
8206 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8207 object through m_this_cu->cu.
8208
d460f660
SM
82092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8210
8211 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8212 the info parameter.
8213 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8214
ab432490
SM
82152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8216
8217 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8218 per_objfile parameter.
8219 (load_full_type_unit): Add per_objfile parameter.
8220 (read_signatured_type): Likewise.
8221 (load_full_comp_unit): Likewise.
8222 (load_cu): Likewise.
8223 (dw2_do_instantiate_symtab): Likewise.
8224 (dw2_get_file_names): Likewise.
8225 (dw2_map_symtabs_matching_filename): Update.
8226 (dw_expand_symtabs_matching_file_matcher): Update.
8227 (dw2_map_symbol_filenames): Update.
8228 (process_psymtab_comp_unit): Add per_objfile parameter.
8229 (build_type_psymtabs_1): Update.
8230 (process_skeletonless_type_unit): Update.
8231 (dwarf2_build_psymtabs_hard): Update.
8232 (load_partial_comp_unit): Add per_objfile parameter.
8233 (scan_partial_symbols): Update.
8234 (load_full_comp_unit): Add per_objfile parameter.
8235 (process_imported_unit_die): Update.
8236 (create_cus_hash_table): Update.
8237 (find_partial_die): Update.
8238 (dwarf2_read_addr_index): Update.
8239 (follow_die_offset): Update.
8240 (dwarf2_fetch_die_loc_sect_off): Update.
8241 (dwarf2_fetch_constant_bytes): Update.
8242 (dwarf2_fetch_die_type_sect_off): Update.
8243 (follow_die_sig_1): Update.
8244 (load_full_type_unit): Add per_objfile parameter.
8245 (read_signatured_type): Likewise.
8246
313bad1b
SM
82472020-05-27 Simon Marchi <simon.marchi@efficios.com>
8248
8249 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8250 of objfile_name.
8251
c3699833
SM
82522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8253
8254 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8255 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8256 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8257 field.
8258 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8259 (create_cus_from_index): Update.
8260 (dwarf2_read_gdb_index): Update.
8261 (create_cus_from_debug_names): Update.
8262 (dwarf2_read_debug_names): Update.
8263 (get_abbrev_section_for_cu): Update.
8264 (create_all_comp_units): Update.
8265 (read_attribute_value): Update.
8266 (get_debug_line_section): Update.
8267 * dwarf2/index-cache.c (index_cache::store): Update.
8268 * dwarf2/index-write.c (save_gdb_index_command): Update.
8269 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8270
1859c670
SM
82712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8272
8273 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8274 member.
8275 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8276 dwarf2_per_cu_data::per_bfd.
8277 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8278 (create_type_unit_group): Likewise.
8279 (queue_comp_unit): Remove reference to
8280 per_cu->dwarf2_per_objfile.
8281 (maybe_queue_comp_unit): Likewise.
8282 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8283 (create_cus_hash_table): Assign new field.
8284
5e22e966
SM
82852020-05-27 Simon Marchi <simon.marchi@efficios.com>
8286
8287 * dwarf2/read.c: Replace
8288 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8289 dwarf2_cu->per_objfile throughout.
8290
97a1449a
SM
82912020-05-27 Simon Marchi <simon.marchi@efficios.com>
8292
8293 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8294 parameter, don't use per_cu->dwarf2_per_objfile.
8295 (dw2_instantiate_symtab): Likewise.
8296 (dw2_find_last_source_symtab): Update.
8297 (dw2_map_expand_apply): Update.
8298 (dw2_lookup_symbol): Update.
8299 (dw2_expand_symtabs_for_function): Update.
8300 (dw2_expand_all_symtabs): Update.
8301 (dw2_expand_symtabs_with_fullname): Update.
8302 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8303 don't use per_cu->dwarf2_per_objfile.
8304 (dw2_expand_marked_cus): Update.
8305 (dw2_find_pc_sect_compunit_symtab): Update.
8306 (dw2_debug_names_lookup_symbol): Update.
8307 (dw2_debug_names_expand_symtabs_for_function): Update.
8308 (dw2_debug_names_map_matching_symbols): Update.
8309 (dwarf2_psymtab::expand_psymtab): Update.
8310
9e021579
SM
83112020-05-27 Simon Marchi <simon.marchi@efficios.com>
8312
8313 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8314 <per_objfile>: New member.
8315 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8316 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8317 call to dwarf2_cu.
8318 (cutu_reader::cutu_reader): Update.
8319 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8320
ae090bdb
SM
83212020-05-27 Simon Marchi <simon.marchi@efficios.com>
8322
8323 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8324 struct dwarf2_per_objfile.
8325 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8326 dwarf2_per_bfd.
8327 * dwarf2/read.c (set_die_type): Update.
8328 (get_die_type_at_offset): Update.
8329
af758d11
SM
83302020-05-27 Tom Tromey <tom@tromey.com>
8331 Simon Marchi <simon.marchi@efficios.com>
8332
8333 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8334 method.
8335 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8336 get_symtab, set_symtab>: New methods.
8337 <m_symtabs>: New field.
8338 (struct dwarf2_psymtab): Derive from partial_symtab.
8339 <readin_p, get_compunit_symtab>: Declare methods.
8340 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8341 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8342 New methods.
8343 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8344 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8345 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8346 (dw2_symtab_iter_next, dw2_print_stats)
8347 (dw2_expand_symtabs_with_fullname)
8348 (dw2_expand_symtabs_matching_one)
8349 (dw_expand_symtabs_matching_file_matcher)
8350 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8351 (dw2_debug_names_iterator::next)
8352 (dw2_debug_names_map_matching_symbols)
8353 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8354 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8355 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8356 New methods.
8357 (get_compunit_symtab, process_full_comp_unit)
8358 (process_full_type_unit): Update.
8359 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8360
5989a64e
SM
83612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8362
8363 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8364 then introduce a new dwarf2_per_objfile type.
8365 <read_line_string>: Move to the new dwarf2_per_objfile type.
8366 <objfile>: Likewise.
8367 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8368 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8369 dwarf2_per_objfile->per_bfd.
8370 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8371 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8372 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8373 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8374 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8375 (dwarf2_per_objfile::locate_sections): Rename to...
8376 (dwarf2_per_bfd::locate_sections): ... this.
8377 (dwarf2_per_objfile::get_cutu): Rename to...
8378 (dwarf2_per_bfd::get_cutu): ... this.
8379 (dwarf2_per_objfile::get_cu): Rename to...
8380 (dwarf2_per_bfd::get_cu): ... this.
8381 (dwarf2_per_objfile::get_tu): Rename to...
8382 (dwarf2_per_bfd::get_tu): ... this.
8383 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8384 (dwarf2_per_bfd::allocate_per_cu): ... this.
8385 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8386 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8387 (get_gdb_index_contents_ftype): Change parameter from
8388 dwarf2_per_objfile to dwarf2_per_bfd.
8389 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8390 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8391
a50264ba
TT
83922020-05-27 Tom Tromey <tom@tromey.com>
8393 Simon Marchi <simon.marchi@efficios.com>
8394
8395 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8396 (allocate_piece_closure): Set "per_objfile" member.
8397 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8398 (locexpr_describe_location, loclist_describe_location): Use new
8399 member.
8400 * dwarf2/read.c (read_call_site_scope)
8401 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8402 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8403 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8404 handle_data_member_location): Set per_objfile member.
8405 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8406 member.
8407 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8408
d3473f0c
TT
84092020-05-27 Tom Tromey <tom@tromey.com>
8410
8411 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8412 allocate_signatured_type>: Declare new methods.
8413 <m_num_psymtabs>: New member.
8414 (struct dwarf2_per_cu_data) <index>: New member.
8415 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8416 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8417 (create_cu_from_index_list): Use allocate_per_cu.
8418 (create_signatured_type_table_from_index)
8419 (create_signatured_type_table_from_debug_names)
8420 (create_debug_type_hash_table, add_type_unit)
8421 (read_comp_units_from_section): Use allocate_signatured_type.
8422
5717c425
TT
84232020-05-27 Tom Tromey <tom@tromey.com>
8424
8425 * psymtab.c (partial_map_expand_apply)
8426 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8427 (psym_lookup_global_symbol_language)
8428 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8429 (psym_print_stats, psym_expand_symtabs_for_function)
8430 (psym_map_symbol_filenames, psym_map_matching_symbols)
8431 (psym_expand_symtabs_matching)
8432 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8433 (maintenance_check_psymtabs): Update.
8434 * psympriv.h (struct partial_symtab) <readin_p,
8435 get_compunit_symtab>: Add objfile parameter.
8436 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8437 Likewise.
8438 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8439 get_compunit_symtab>: Likewise.
8440 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8441
45940949
TT
84422020-05-27 Tom Tromey <tom@tromey.com>
8443
8444 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8445 member.
8446 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8447 (create_cu_from_index_list)
8448 (create_signatured_type_table_from_index)
8449 (create_signatured_type_table_from_debug_names)
8450 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8451 (dwarf2_create_include_psymtab)
8452 (create_debug_type_hash_table, add_type_unit)
8453 (create_type_unit_group, read_comp_units_from_section)
8454 (dwarf2_compute_name, create_cus_hash_table)
8455 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8456 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8457 obstack.
8458 (dw2_get_real_path): Likewise. Change argument to
8459 dwarf2_per_objfile.
8460
f8c6d152
LM
84612020-05-27 Luis Machado <luis.machado@linaro.org>
8462
8463 PR tdep/26000
8464 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8465 for ldrd (immediate).
8466
e98d2e6d
PW
84672020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8468
8469 * command.h: Add comment giving the name of class_tui.
8470 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8471 create the fake command for the help for class_tui.
8472
53a47a3e
TT
84732020-05-26 Tom Tromey <tromey@adacore.com>
8474
8475 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8476 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8477 (val_atr): New function.
8478 (value_val_atr): Use it.
8479 * ada-valprint.c (print_optional_low_bound): Change low bound
8480 handling for enums.
8481 (val_print_packed_array_elements): Don't call discrete_position.
8482 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8483 discrete_position for enum types.
8484 * language.c (default_print_array_index): Change type.
8485 * language.h (struct language_defn) <la_print_array_index>: Add
8486 index_type parameter, change type of index_value.
8487 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8488 (default_print_array_index): Update.
8489 * valprint.c (maybe_print_array_index): Don't call
8490 value_from_longest. Update.
8491 (value_print_array_elements): Don't call discrete_position.
8492
0bc2354b
TT
84932020-05-26 Tom Tromey <tromey@adacore.com>
8494
8495 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8496 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8497
1218a4bf
CDA
84982020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8499
8500 PR gdb/13519
8501 * avr-tdep.c (avr_integer_to_address): Return data or code
8502 address accordingly to the second 'type' argument of the
8503 function.
8504
92651b1d
MW
85052020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8506
8507 * infcmd.c, inferior.h: (construct_inferior_arguments):
8508 Moved function from here to gdbsupport/common-inferior.{h,cc}
8509
0a4f5f8c
TT
85102020-05-23 Tom Tromey <tom@tromey.com>
8511
8512 Revert commit eca1f90c:
8513 * NEWS: Remove entry for completion styling.
8514 * completer.c (_rl_completion_prefix_display_length): Move
8515 declaration later.
8516 (gdb_fnprint): Revert.
8517 (gdb_display_match_list_1): Likewise.
8518 * cli/cli-style.c (completion_prefix_style)
8519 (completion_difference_style, completion_suffix_style): Remove.
8520 (_initialize_cli_style): Revert.
8521 * cli/cli-style.h (completion_prefix_style)
8522 (completion_difference_style, completion_suffix_style): Don't
8523 declare.
8524
e08bd6c5
PA
85252020-05-24 Pedro Alves <palves@redhat.com>
8526
8527 * symtab.c (completion_list_add_name): Return boolean indication
8528 of whether the symbol matched.
8529 (completion_list_add_symbol): Don't try to remove C++ aliases if
8530 the symbol didn't match in the first place.
8531 * symtab.h (completion_list_add_name): Return bool.
8532
ceacbf6e
SM
85332020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8534
8535 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8536 type::field.
8537
26f16254
JB
85382020-05-23 Joel Brobecker <brobecker@adacore.com>
8539
8540 GDB 9.2 released.
8541
eca1f90c
TT
85422020-05-23 Tom Tromey <tom@tromey.com>
8543
8544 * NEWS: Add entry for completion styling.
8545 * completer.c (_rl_completion_prefix_display_length): Move
8546 declaration earlier.
8547 (gdb_fnprint): Use completion_style.
8548 (gdb_display_match_list_1): Likewise.
8549 * cli/cli-style.c (completion_prefix_style)
8550 (completion_difference_style, completion_suffix_style): New
8551 globals.
8552 (_initialize_cli_style): Register new globals.
8553 * cli/cli-style.h (completion_prefix_style)
8554 (completion_difference_style, completion_suffix_style): Declare.
8555
51e2cfa2
PA
85562020-05-23 Pedro Alves <palves@redhat.com>
8557
8558 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8559 (parse_escape): Use ISDIGIT instead of isdigit.
8560 (puts_debug): Use gdb_isprint instead of isprint.
8561 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8562 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8563 ISSPACE instead of isspace.
8564 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8565 instead of isspace.
8566 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8567 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8568 instead of isxdigit and ISDIGIT instead of isdigit.
8569
80fc5e77
SM
85702020-05-22 Simon Marchi <simon.marchi@efficios.com>
8571
8572 * gdbtypes.h (struct type) <field>: New method.
8573 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8574 or type::field.
8575
3cabb6b0
SM
85762020-05-22 Simon Marchi <simon.marchi@efficios.com>
8577
8578 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8579 (TYPE_FIELDS): Use type::fields. Change all call sites that
8580 modify the propery to use type::set_fields instead.
8581
1f704f76
SM
85822020-05-22 Simon Marchi <simon.marchi@efficios.com>
8583
8584 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8585 type::num_fields instead.
8586
5e33d5f4
SM
85872020-05-22 Simon Marchi <simon.marchi@efficios.com>
8588
8589 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8590 methods.
8591 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8592 that modify the number of fields to use type::set_num_fields
8593 instead.
8594
9392ebb3
TT
85952020-05-22 Tom Tromey <tromey@adacore.com>
8596
8597 * compile/compile-object-load.h (munmap_list_free): Don't
8598 declare.
8599
7c13f4e8
AB
86002020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8601
8602 * annotate.c (annotate_source_line): Update return type, add call
8603 to update current symtab and line.
8604 * annotate.h (annotate_source_line): Update return type, and
8605 extend header comment.
8606 * source.c (info_line_command): Check annotation_level before
8607 calling annotate_source_line.
8608 * stack.c (print_frame_info): If calling annotate_source_line
8609 returns true, then don't print any other source line information.
8610
aa370940
SM
86112020-05-21 Simon Marchi <simon.marchi@efficios.com>
8612
8613 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8614
84d53fa9
SM
86152020-05-21 Simon Marchi <simon.marchi@efficios.com>
8616
8617 * coffread.c (patch_type): Remove NULL check before xfree.
8618 * corefile.c (set_gnutarget): Likewise.
8619 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8620 * exec.c (build_section_table): Likewise.
8621 * remote.c (remote_target::pass_signals): Likewise.
8622 * utils.c (n_spaces): Likewise.
8623 * cli/cli-script.c (document_command): Likewise.
8624 * i386-windows-tdep.c (core_process_module_section): Likewise.
8625 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8626
9d428aae
SM
86272020-05-20 Simon Marchi <simon.marchi@efficios.com>
8628
8629 * symfile.c (reread_symbols): Clear objfile's section_offsets
8630 vector and section indices, re-compute them by calling
8631 sym_offsets.
8632
250106a7
TT
86332020-05-20 Tom Tromey <tromey@adacore.com>
8634
8635 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8636 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8637
9a0bacfb
TV
86382020-05-20 Tom de Vries <tdevries@suse.de>
8639
8640 PR symtab/25833
8641 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8642
7b958a48
AM
86432020-05-20 Alan Modra <amodra@gmail.com>
8644
8645 PR 25993
8646 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8647 bfd_set_filename.
8648 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8649 passed to bfd_set_filename.
8650 * symfile-mem.c (add_vsyscall_page): Likewise for string
8651 passed to symbol_file_add_from_memory.
8652 (symbol_file_add_from_memory): Make name param a const char* and
8653 don't strdup.
8654
c7e97679
AM
86552020-05-20 Alan Modra <amodra@gmail.com>
8656
8657 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8658 rather than accessing bfd->filename directly.
8659 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8660 and use bfd_section_name.
8661 * dwarf2/frame.c (decode_frame_entry): Likewise.
8662 * exec.c (exec_set_section_address): Likewise.
8663 * solib-aix.c (solib_aix_bfd_open): Likewise.
8664 * stap-probe.c (get_stap_base_address): Likewise.
8665 * symfile.c (reread_symbols): Likewise.
8666
563c591b
TT
86672020-05-19 Tom Tromey <tromey@adacore.com>
8668
8669 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8670
f408d82c
SM
86712020-05-19 Simon Marchi <simon.marchi@efficios.com>
8672
8673 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8674
98c59b52
PA
86752020-05-19 Pedro Alves <palves@redhat.com>
8676
8677 * NEWS (set exec-file-mismatch): Adjust entry.
8678 * exec.c: Include "build-id.h".
8679 (validate_exec_file): Try to match build IDs instead of filenames.
8680 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8681 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8682 and pass down 'warn_if_slow'.
8683 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8684 gdb_bfd_open_closure to pass it down.
8685 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8686
4111f652
PA
86872020-05-19 Pedro Alves <palves@redhat.com>
8688
8689 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8690 * target.c (target_fileio_open_1): Rename to target_fileio_open
8691 and make extern. Use bool.
8692 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8693 (target_fileio_read_alloc_1): Adjust.
8694 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8695 (target_fileio_open_warn_if_slow): Delete declaration.
8696
ad80db5b
PA
86972020-05-19 Pedro Alves <palves@redhat.com>
8698
8699 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8700 Adjust all callers.
8701
1d6ce4d3
YS
87022020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8703
8704 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8705 whether disp is negative.
8706
9005fbbb
SM
87072020-05-19 Simon Marchi <simon.marchi@efficios.com>
8708
8709 * symfile.h (struct symfile_segment_data)
8710 <~symfile_segment_data>: Remove.
8711 <segment_info>: Change to std::vector.
8712 * symfile.c (default_symfile_segments): Update.
8713 * elfread.c (elf_symfile_segments): Update.
8714
68b888ff
SM
87152020-05-19 Simon Marchi <simon.marchi@efficios.com>
8716
8717 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8718 <segments>: New.
8719 <segment_bases, segment_sizes>: Remove.
8720 * symfile.c (default_symfile_segments): Update.
8721 * elfread.c (elf_symfile_segments): Update.
8722 * remote.c (remote_target::get_offsets): Update.
8723 * solib-target.c (solib_target_relocate_section_addresses):
8724 Update.
8725
62982abd
SM
87262020-05-19 Simon Marchi <simon.marchi@efficios.com>
8727
8728 * symfile.h (struct symfile_segment_data): Initialize fields.
8729 <~symfile_segment_data>: Add.
8730 (symfile_segment_data_up): New.
8731 (struct sym_fns) <sym_segments>: Return a
8732 symfile_segment_data_up.
8733 (default_symfile_segments): Return a symfile_segment_data_up.
8734 (free_symfile_segment_data): Remove.
8735 (get_symfile_segment_data): Return a symfile_segment_data_up.
8736 * symfile.c (default_symfile_segments): Likewise.
8737 (get_symfile_segment_data): Likewise.
8738 (free_symfile_segment_data): Remove.
8739 (symfile_find_segment_sections): Update.
8740 * elfread.c (elf_symfile_segments): Return a
8741 symfile_segment_data_up.
8742 * remote.c (remote_target::get_offsets): Update.
8743 * solib-target.c (solib_target_relocate_section_addresses):
8744 Update.
8745 * symfile-debug.c (debug_sym_segments): Return a
8746 symfile_segment_data_up.
8747
7f204339
RO
87482020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8749
e52a0f1b
RO
8750 PR build/25981
8751 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8752 Hardcode register numbers.
8753
7f204339
RO
8754 PR build/25981
8755 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8756 procfs_find_LDT_entry): Remove.
8757 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8758 procfs_find_LDT_entry): Remove.
8759 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8760 Remove.
8761
7f32a4d5
PA
87622020-05-17 Pedro Alves <palves@redhat.com>
8763 Andrew Burgess <andrew.burgess@embecosm.com>
8764 Keno Fischer <keno@juliacomputing.com>
8765
8766 PR gdb/25741
8767 * breakpoint.c (build_target_condition_list): Update comments.
8768 (build_target_command_list): Update comments and skip matching
8769 locations.
8770 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8771 a separate function. Simplify "set breakpoint auto-hw off"
8772 handling.
8773 (insert_breakpoints): Update comment.
8774 (tracepoint_locations_match): New parameter. For breakpoints,
8775 compare location types too, if the caller wants to.
8776 (handle_automatic_hardware_breakpoints): New functions.
8777 (bp_location_is_less_than): Also sort by location type and
8778 hardware breakpoint length.
8779 (update_global_location_list): Handle "set breakpoint auto-hw on"
8780 here.
8781 (update_breakpoint_locations): Ask breakpoint_locations_match to
8782 ignore location types.
8783
7d93a1e0
SM
87842020-05-16 Simon Marchi <simon.marchi@efficios.com>
8785
8786 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8787 type::name instead.
8788
d0e39ea2
SM
87892020-05-16 Simon Marchi <simon.marchi@efficios.com>
8790
8791 * gdbtypes.h (struct type) <name, set_name>: New methods.
8792 (TYPE_CODE): Use type::name. Change all call sites used to set
8793 the name to use type::set_name instead.
8794
2dab0c7b
TT
87952020-05-16 Tom Tromey <tom@tromey.com>
8796
8797 * top.c (quit_force): Update.
8798 * infrun.c (handle_no_resumed): Update.
8799 * top.h (all_uis): New function.
8800 (ALL_UIS): Remove.
8801
59f7bd8d
SM
88022020-05-16 Simon Marchi <simon.marchi@efficios.com>
8803
8804 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8805
9bf058f0
PA
88062020-05-16 Pedro Alves <palves@redhat.com>
8807
8808 * ia64-linux-nat.c
8809 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8810 Declare method.
8811 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8812
8f86ae1a
SM
88132020-05-15 Simon Marchi <simon.marchi@efficios.com>
8814
8815 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8816 (sparc64_adi_info): Likewise.
8817
d6bc0792
TT
88182020-05-15 Tom Tromey <tom@tromey.com>
8819
8820 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8821 block_objfile.
8822 (lookup_objfile_from_block): Remove.
8823 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8824 (lookup_global_symbol): Use block_objfile.
8825 * symtab.h (lookup_objfile_from_block): Don't declare.
8826 * printcmd.c (clear_dangling_display_expressions): Use
8827 block_objfile.
8828 * parse.c (operator_check_standard): Use block_objfile.
8829
8c14c3a3
TT
88302020-05-15 Tom Tromey <tom@tromey.com>
8831
8832 * language.c (language_alloc_type_symbol): Set
8833 SYMBOL_SECTION.
8834 * symtab.c (initialize_objfile_symbol): Remove.
8835 (allocate_symbol): Remove.
8836 (allocate_template_symbol): Remove.
8837 * dwarf2/read.c (fixup_go_packaging): Use "new".
8838 (new_symbol): Use "new".
8839 (read_variable): Don't call initialize_objfile_symbol. Use
8840 "new".
8841 (read_func_scope): Use "new".
8842 * xcoffread.c (process_xcoff_symbol): Don't call
8843 initialize_objfile_symbol.
8844 (SYMBOL_DUP): Remove.
8845 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8846 "new".
8847 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8848 (allocate_template_symbol): Don't declare.
8849 (struct symbol): Add copy constructor. Change defaults.
8850 * jit.c (finalize_symtab): Use "new".
8851 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8852 Use "new".
8853 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8854 (common_block_end): Use "new".
8855 * mdebugread.c (parse_symbol): Use "new".
8856 (new_symbol): Likewise.
8857
5b4a1a8d
PW
88582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8859
8860 * NEWS: Mention changes to help and apropos.
8861
57b4f16e
PW
88622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8863
8864 * command.h (enum command_class): Improve comments, document
8865 that class_alias is for user-defined aliases, give the class
8866 name for each class, remove unused class_xdb.
8867 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8868 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8869 by a precise class.
8870 * infcmd.c (_initialize_infcmd): Likewise.
8871 * reverse.c (_initialize_reverse): Likewise.
8872 * stack.c (_initialize_stack): Likewise.
8873 * symfile.c (_initialize_symfile): Likewise.
8874 * tracepoint.c (_initialize_tracepoint): Likewise.
8875
7c05caf7
PW
88762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8877
8878 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8879 when their aliased command is traversed.
8880 (help_cmd): Add fput_command_names_styled call to
8881 output command name and aliases when command has an alias.
8882
3b3aaacb
PW
88832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8884
8885 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8886 * cli/cli-decode.c (help_cmd_list): Declare as static,
8887 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8888 a command together with the command.
8889 (fput_command_name_styled, fput_command_names_styled): New functions.
8890 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8891 fput_command_name_styled.
8892 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8893 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8894
7aa1b46f
PW
88952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8896
8897 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8898 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8899 * command.h (cmd_show_list): Likewise.
8900 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8901 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8902
89bcba74
PW
89032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8904
8905 * unittests/command-def-selftests.c (traverse_command_structure):
8906 Verify all commands of a list have the same prefix command and
8907 that only the top cmdlist commands have a null prefix.
8908
3f4d92eb
PW
89092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8910
8911 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8912 as prefix, not one of its aliases.
8913 (set_cmd_prefix): Remove.
8914 (do_add_cmd): Centralize the setting of the prefix of a command, when
8915 command is defined after its full chain of prefix commands.
8916 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8917 (add_setshow_cmd_full): Likewise.
8918 (update_prefix_field_of_prefixed_commands): New function.
8919 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8920 update_prefix_field_of_prefixed_commands.
8921 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8922 addresses of remote_set_cmdlist and remote_show_cmdlist given
8923 as argument, not the address of an argument.
8924 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8925 * gdb/remote.c (_initialize_remote): Likewise.
8926
0605465f
PW
89272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8928
8929 * cli/cli-cmds.c (alias_command): Check for an existing alias
8930 using lookup_cmd_composition, as valid_command_p is too strict
8931 and forbids aliases that are the prefix of an existing alias
8932 or command.
8933 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8934 command is properly recognised as a valid command.
8935
58e6ac70
PW
89362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8937
8938 * unittests/help-doc-selftests.c: Rename to
8939 unittests/command-def-selftests.c
8940 * unittests/command-def-selftests.c (help_doc_tests): Update some
8941 comments.
8942 (command_structure_tests, traverse_command_structure): New namespace
8943 and function.
8944 (command_structure_invariants_tests): New function.
8945 (_initialize_command_def_selftests) Renamed from
8946 _initialize_help_doc_selftests, register command_structure_invariants
8947 selftest.
8948
a7b9ceb8
PW
89492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8950
8951 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8952 an alias of 'show'.
8953
b2188a06
JB
89542020-05-15 Joel Brobecker <brobecker@adacore.com>
8955
8956 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8957 ada_is_fixed_point_type. Update all callers.
8958 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8959 all callers.
8960 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8961 Update all callers.
8962 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8963 print_fixed_point_type. Update all callers.
8964 * ada-valprint.c (ada_value_print_num): Replace call to
8965 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8966
a51951c2
KB
89672020-05-14 Kevin Buettner <kevinb@redhat.com>
8968
8969 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8970 processors.
8971 (cpu_supports_bts): Add CV_AMD case.
8972
29d6859f
LM
89732020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8974 Simon Marchi <simon.marchi@efficios.com>
8975
8976 * infrun.c (stop_all_threads): Collect multiple wait events at
8977 each pass.
8978
78134374
SM
89792020-05-14 Simon Marchi <simon.marchi@efficios.com>
8980
8981 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8982 type::code instead.
8983
67607e24
SM
89842020-05-14 Simon Marchi <simon.marchi@efficios.com>
8985
8986 * gdbtypes.h (struct type) <code, set_code>: New methods.
8987 (TYPE_CODE): Use type::code. Change all call sites used to set
8988 the code to use type::set_code instead.
8989
a05575d3
TBA
89902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8991 Tom de Vries <tdevries@suse.de>
8992 Pedro Alves <palves@redhat.com>
8993
8994 PR threads/25478
8995 * infrun.c (stop_all_threads): Do NOT ignore
8996 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8997 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8998 received.
8999 (handle_no_resumed): Remove code handling a live inferior with no
9000 threads.
9001 * remote.c (has_single_non_exited_thread): New.
9002 (remote_target::update_thread_list): Do not delete a thread if is
9003 the last thread of the process.
9004 * thread.c (thread_select): Call delete_exited_threads instead of
9005 prune_threads.
9006
6ad82919
TBA
90072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9008
9009 * infrun.c (stop_all_threads): Enable/disable thread events of all
9010 targets. Move a debug message denoting the end of the function
9011 into the SCOPED_EXIT block.
9012
d890404b
TBA
90132020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9014
9015 * process-stratum-target.h: Include <set>.
9016 (all_non_exited_process_targets, switch_to_target_no_thread): New
9017 function declarations.
9018 * process-stratum-target.c (all_non_exited_process_targets)
9019 (switch_to_target_no_thread): New function implementations.
9020
293b3ebc
TBA
90212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9022
9023 * infrun.c (handle_inferior_event): Extract out a piece of code
9024 into...
9025 (mark_non_executing_threads): ...this new function.
9026
7ca9b62a
TBA
90272020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9028
9029 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9030 use.
9031
fc75c28b
TBA
90322020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9033
9034 * regcache.c (regcache_read_pc_protected): New function
9035 implementation that returns 0 if the PC cannot read via
9036 'regcache_read_pc'.
9037 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9038 instead of 'regcache_read_pc'.
9039 (keep_going_pass_signal): Ditto.
9040
a89febbd
TT
90412020-05-13 Tom Tromey <tromey@adacore.com>
9042
9043 * ada-lang.c (align_value): Remove.
9044 (ada_template_to_fixed_record_type_1): Use align_up.
9045
f7e23710
TBA
90462020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9047
9048 * async-event.c: Update the copyright year.
9049 * async-event.h: Update the copyright year.
9050
02ff80c2
SM
90512020-05-12 Simon Marchi <simon.marchi@efficios.com>
9052
9053 * objfiles.h (is_addr_in_objfile,
9054 shared_objfile_contains_address_p): Return bool.
9055 * objfile.c (is_addr_in_objfile,
9056 shared_objfile_contains_address_p): Return bool.
9057
4fd6c7e8
TT
90582020-05-11 Tom Tromey <tromey@adacore.com>
9059
9060 * cli/cli-cmds.c (info_command): Restore.
9061 (_initialize_cli_cmds): Use add_prefix_command for "info".
9062 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9063
5eb68a39
TT
90642020-05-11 Tom Tromey <tromey@adacore.com>
9065
9066 * ada-lang.c (ada_value_primitive_field): Now public.
9067 * ada-lang.h (ada_value_primitive_field): Declare.
9068 * ada-valprint.c (print_field_values): Use
9069 ada_value_primitive_field for wrapper fields.
9070
7666722f
TV
90712020-05-11 Tom de Vries <tdevries@suse.de>
9072
9073 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9074 MODULE_DOMAIN.
9075
3ee6bb11
TV
90762020-05-11 Tom de Vries <tdevries@suse.de>
9077
9078 PR symtab/25941
9079 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9080 with length 0, if not gdb-produced.
9081 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9082
43434996
TV
90832020-05-09 Tom de Vries <tdevries@suse.de>
9084
9085 PR gdb/25955
9086 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9087 calculation.
9088
2f78cffc
TT
90892020-05-09 Tom Tromey <tom@tromey.com>
9090
9091 * top.c (server_command): Now bool.
9092 * top.h (server_command): Now bool.
9093
4f7bc5ed
TT
90942020-05-08 Tom Tromey <tromey@adacore.com>
9095
9096 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9097 already being processed.
9098
8be4b118
TT
90992020-05-08 Tom Tromey <tom@tromey.com>
9100
9101 * printcmd.c (struct display) <next>: Remove.
9102 <display>: New constructor.
9103 <exp_string>: Now a std::string.
9104 <enabled_p>: Now a bool.
9105 (display_number): Move definition earlier.
9106 (displays): Rename from display_chain. Now a std::vector.
9107 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9108 (display_command): Update.
9109 (do_one_display, disable_display)
9110 (enable_disable_display_command, do_enable_disable_display):
9111 Update.
9112 (free_display): Remove.
9113 (clear_displays): Rewrite.
9114 (delete_display): Update.
9115 (map_display_numbers): Use function_view. Remove "data"
9116 parameter. Update.
9117 (do_delete_display): Remove.
9118 (undisplay_command): Update.
9119 (do_one_display, do_displays, disable_display)
9120 (info_display_command): Update.
9121 (do_enable_disable_display): Remove.
9122 (enable_disable_display_command)
9123 (clear_dangling_display_expressions): Update.
9124
94c93c35
TT
91252020-05-08 Tom Tromey <tom@tromey.com>
9126
9127 * symtab.c (set_symbol_cache_size)
9128 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9129 (maintenance_print_symbol_cache_statistics): Update.
9130 * symmisc.c (print_symbol_bcache_statistics)
9131 (print_objfile_statistics, maintenance_print_objfiles)
9132 (maintenance_info_symtabs, maintenance_check_symtabs)
9133 (maintenance_expand_symtabs, maintenance_info_line_tables):
9134 Update.
9135 * symfile-debug.c (set_debug_symfile): Update.
9136 * source.c (forget_cached_source_info): Update.
9137 * python/python.c (gdbpy_progspaces): Update.
9138 * psymtab.c (maintenance_info_psymtabs): Update.
9139 * probe.c (parse_probes): Update.
9140 * linespec.c (iterate_over_all_matching_symtabs)
9141 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9142 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9143 * exec.c (exec_target::close): Update.
9144 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9145 * breakpoint.c (print_one_breakpoint_location)
9146 (create_longjmp_master_breakpoint)
9147 (create_std_terminate_master_breakpoint): Update.
9148 * progspace.c (program_spaces): Now a std::vector.
9149 (maybe_new_address_space): Update.
9150 (add_program_space): Remove.
9151 (program_space::program_space): Update.
9152 (remove_program_space): Update.
9153 (number_of_program_spaces): Remove.
9154 (print_program_space, update_address_spaces): Update.
9155 * progspace.h (program_spaces): Change type.
9156 (ALL_PSPACES): Remove.
9157 (number_of_program_spaces): Don't declare.
9158 (struct program_space) <next>: Remove.
9159
a1fd1ac9
TT
91602020-05-08 Tom Tromey <tom@tromey.com>
9161
9162 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9163 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9164 (enable_break): Update.
9165 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9166 (frv_fdpic_find_canonical_descriptor): Update.
9167 (frv_fetch_objfile_link_map): Update.
9168 * progspace.c (program_space::free_all_objfiles): Update.
9169 (program_space::solibs): New method.
9170 * progspace.h (struct program_space) <solibs>: New method.
9171 * solist.h (master_so_list): Don't declare.
9172 (ALL_SO_LIBS): Remove.
9173 * solib.h (so_list_head): Remove.
9174 (update_solib_list): Update comment.
9175 * solib.c (master_so_list): Remove.
9176 (solib_used, update_solib_list, solib_add)
9177 (info_sharedlibrary_command, clear_solib)
9178 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9179
38eae084
TT
91802020-05-08 Tom Tromey <tom@tromey.com>
9181
9182 * extension.c (extension_languages): Now a std::array.
9183 (ALL_EXTENSION_LANGUAGES): Remove.
9184 (get_ext_lang_defn, get_ext_lang_of_file)
9185 (eval_ext_lang_from_control_command): Update.
9186 (finish_ext_lang_initialization)
9187 (auto_load_ext_lang_scripts_for_objfile)
9188 (ext_lang_type_printers::ext_lang_type_printers)
9189 (apply_ext_lang_type_printers)
9190 (ext_lang_type_printers::~ext_lang_type_printers)
9191 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9192 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9193 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9194 (get_matching_xmethod_workers, ext_lang_colorize)
9195 (ext_lang_before_prompt): Update.
9196 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9197
596dc4ad
TT
91982020-05-08 Tom Tromey <tom@tromey.com>
9199
9200 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9201 overload.
9202 <swap_string, m_string>: Remove.
9203 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9204 Update.
9205 * stabsread.c (define_symbol, read_type): Update.
9206 * linespec.c (find_linespec_symbols): Update.
9207 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9208 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9209 * dbxread.c (read_dbx_symtab): Update.
9210 * cp-support.h (cp_canonicalize_string_full)
9211 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9212 Return unique_xmalloc_ptr.
9213 * cp-support.c (inspect_type): Update.
9214 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9215 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9216 Likewise.
9217 * c-typeprint.c (print_name_maybe_canonical): Update.
9218 * break-catch-throw.c (check_status_exception_catchpoint):
9219 Update.
9220
bf4cb9be
TV
92212020-05-08 Tom de Vries <tdevries@suse.de>
9222
9223 * infrun.c (follow_fork): Copy current_line and current_symtab to
9224 child thread.
9225
a1b68f28
SM
92262020-05-07 Simon Marchi <simon.marchi@efficios.com>
9227
9228 * async-event.c (struct async_signal_handler, struct
9229 async_event_handler): Reformat, remove typedef.
9230
98d48915
SM
92312020-05-07 Simon Marchi <simon.marchi@efficios.com>
9232
9233 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9234 access thistype->main_type->dyn_prop_list directly.
9235
7aa91313
SM
92362020-05-07 Simon Marchi <simon.marchi@efficios.com>
9237
9238 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9239 (remove_dyn_prop): Remove. Update all users to use
9240 type::remove_dyn_prop.
9241 * gdbtypes.c (remove_dyn_prop): Rename to...
9242 (type::remove_dyn_prop): ... this.
9243
5c54719c
SM
92442020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9245
9246 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9247 (add_dyn_prop): Remove. Update all users to use
9248 type::add_dyn_prop.
9249 * gdbtypes.c (add_dyn_prop): Rename to...
9250 (type::add_dyn_prop): ... this.
9251
24e99c6c
SM
92522020-05-07 Simon Marchi <simon.marchi@efficios.com>
9253
9254 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9255 (get_dyn_prop): Remove. Update all users to use
9256 type::dyn_prop.
9257 * gdbtypes.c (get_dyn_prop): Rename to...
9258 (type::dyn_prop): ... this.
9259
0d4bf016
SM
92602020-05-06 Simon Marchi <simon.marchi@efficios.com>
9261
9262 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9263
ac4a4f1c
SM
92642020-05-06 Simon Marchi <simon.marchi@efficios.com>
9265
9266 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9267 instruction, skip it if it's there.
9268
a3bbacc1
SM
92692020-05-05 Simon Marchi <simon.marchi@efficios.com>
9270
9271 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9272
c3236f84
SM
92732020-05-04 Simon Marchi <simon.marchi@efficios.com>
9274
9275 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9276 * gdbtypes.c (recursive_dump_type): Remove use of
9277 TYPE_INCOMPLETE.
9278
3b6acaee
TT
92792020-05-03 Tom Tromey <tom@tromey.com>
9280
9281 * breakpoint.c (catch_command, tcatch_command): Remove.
9282 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9283 add_show_prefix_cmd.
9284 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9285 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9286 Remove.
9287 (add_internal_problem_command): Use add_basic_prefix_cmd,
9288 add_show_prefix_cmd.
9289 * mips-tdep.c (set_mipsfpu_command): Remove.
9290 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9291 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9292 (_initialize_index_cache): Use add_basic_prefix_cmd.
9293 * memattr.c (dummy_cmd): Remove.
9294 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9295 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9296 (_initialize_tui_win): Use add_basic_prefix_cmd,
9297 add_show_prefix_cmd.
9298 * cli/cli-logging.c (set_logging_command): Remove.
9299 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9300 add_show_prefix_cmd.
9301 (show_logging_command): Remove.
9302 * target.c (target_command): Remove.
9303 (add_target): Use add_basic_prefix_cmd.
9304
a51119cd
HD
93052020-05-02 Hannes Domani <ssbssa@yahoo.de>
9306
9307 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9308
652fc23a 93092020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9310
652fc23a
PW
9311 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9312 info_command.
9313
117539e6
KR
93142020-04-30 Kamil Rytarowski <n54@gmx.com>
9315
9316 * nbsd-nat.c (nbsd_enable_proc_events)
9317 (nbsd_nat_target::post_startup_inferior): Add.
9318 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9319 (nbsd_nat_target::update_thread_list): Rewrite.
9320 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9321 "PTRACE_LWP_CREATE".
9322 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9323
102e38eb 93242020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9325
102e38eb
PW
9326 * stack.c (_initialize_stack): Remove duplicated creation
9327 of "frame" command and "f" alias.
9328
ee9d1e5f
HD
93292020-04-30 Hannes Domani <ssbssa@yahoo.de>
9330
9331 PR gdb/18706
9332 * gdbtypes.c (check_typedef): Calculate size of array of
9333 stubbed type.
9334
627c7fb8
HD
93352020-04-30 Hannes Domani <ssbssa@yahoo.de>
9336
9337 PR gdb/15559
9338 * i386-tdep.c (i386_push_dummy_call): Call
9339 i386_thiscall_push_dummy_call.
9340 (i386_thiscall_push_dummy_call): New function.
9341 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9342 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9343 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9344
ffc2844e
SM
93452020-04-29 Simon Marchi <simon.marchi@efficios.com>
9346
9347 * gdbarch.sh (do_read): Add shellcheck disable directive for
9348 warning SC2162.
9349
1207375d
SM
93502020-04-29 Simon Marchi <simon.marchi@efficios.com>
9351
9352 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9353 "referenced but not assigned" warning.
9354
9fdb2916
SM
93552020-04-29 Simon Marchi <simon.marchi@efficios.com>
9356
9357 * gdbarch.sh: Remove code that sets fallbackdefault.
9358
759cea5e
SM
93592020-04-29 Simon Marchi <simon.marchi@efficios.com>
9360
9361 * gdbarch.sh: Use shell operators && and || instead of
9362 -a and -o.
9363
cb02ab24
SM
93642020-04-29 Simon Marchi <simon.marchi@efficios.com>
9365
9366 * gdbarch.sh: Use $(...) instead of `...`.
9367
a6fc5ffc
SM
93682020-04-29 Simon Marchi <simon.marchi@efficios.com>
9369
9370 * gdbarch.sh: Use double quotes around variables.
9371
8d113d13
SM
93722020-04-29 Simon Marchi <simon.marchi@efficios.com>
9373
9374 * gdbarch.sh: Use %s with printf, instead of variables in the
9375 format string.
9376
ed6acedd
TT
93772020-04-29 Tom Tromey <tromey@adacore.com>
9378
9379 PR ada/25875:
9380 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9381 type fields here.
9382 (read_enumeration_type): Call
9383 update_enumeration_type_from_children later. Update comments.
9384 (process_enumeration_scope): Don't create type fields.
9385
b68b1b58
KR
93862020-04-29 Kamil Rytarowski <n54@gmx.com>
9387
9388 * nbsd-tdep.c: Include "xml-syscall.h".
9389 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9390
f94b2e03
KR
93912020-04-29 Kamil Rytarowski <n54@gmx.com>
9392
9393 * nbsd-nat.c: Include "sys/wait.h".
9394 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9395 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9396 (nbsd_nat_target::remove_exec_catchpoint)
9397 (nbsd_nat_target::set_syscall_catchpoint): Add.
9398 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9399 (nbsd_nat_target::insert_exec_catchpoint)
9400 (nbsd_nat_target::remove_exec_catchpoint)
9401 (nbsd_nat_target::set_syscall_catchpoint): Add.
9402 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9403 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9404 `nbsd_get_syscall_number'.
9405
fc49bc72
TT
94062020-04-29 Tom Tromey <tom@tromey.com>
9407
9408 * stack.c (print_block_frame_labels): Remove.
9409
d642b692
HD
94102020-04-29 Hannes Domani <ssbssa@yahoo.de>
9411
9412 PR gdb/17320
9413 * ada-valprint.c (val_print_packed_array_elements): Move array
9414 end bracket to new line.
9415 (ada_val_print_string): Remove extra spaces before first array
9416 element.
9417 * c-valprint.c (c_value_print_array): Likewise.
9418 * m2-valprint.c (m2_print_array_contents): Likewise.
9419 (m2_value_print_inner): Likewise.
9420 * p-valprint.c (pascal_value_print_inner): Likewise.
9421 * valprint.c (generic_val_print_array): Likewise.
9422 (value_print_array_elements): Move first array element and array
9423 end bracket to new line.
9424
ea90f227
TV
94252020-04-29 Tom de Vries <tdevries@suse.de>
9426
9427 PR symtab/25889
9428 * linespec.c (find_method): Fix ix calculation.
9429
4498ef4f
KR
94302020-04-28 Kamil Rytarowski <n54@gmx.com>
9431
9432 * syscalls/update-netbsd.sh: New file.
9433 * syscalls/netbsd.xml: Regenerate.
9434 * data-directory/Makefile.in: Register `netbsd.xml' in
9435 `SYSCALLS_FILES'.
9436
a55e30b5
SM
94372020-04-28 Simon Marchi <simon.marchi@efficios.com>
9438
9439 * syscalls/update-freebsd.sh: Add double quotes.
9440
2b2fbab8
TT
94412020-04-28 Tom Tromey <tom@tromey.com>
9442
9443 * NEWS: Update.
9444 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9445 (cmdpy_init): Allow class_tui.
9446
a65189c9
TV
94472020-04-28 Mark Williams <mark@myosotissp.com>
9448
9449 PR gdb/24480
9450 * dwarf2read.c: Add missing assingments to list_in_scope when
9451 start_symtab was already called.
9452
1b95cdb7
SM
94532020-04-28 Simon Marchi <simon.marchi@efficios.com>
9454
9455 PR gdb/25881
9456 * dwarf2/read.c (offset_map_type): Use
9457 gdb:hash_enum<sect_offset> as hash function.
9458
15cd93d0
TV
94592020-04-28 Tom de Vries <tdevries@suse.de>
9460
9461 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9462 with DW_AT_signature.
9463
1eb39914
SM
94642020-04-27 Simon Marchi <simon.marchi@efficios.com>
9465
9466 * configure.ac: Remove check for fs_base/gs_base in
9467 user_regs_struct.
9468 * configure: Re-generate.
9469 * config.in: Re-generate.
9470 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9471 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9472 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9473
991a3e2e
LM
94742020-04-27 Luis Machado <luis.machado@linaro.org>
9475
9476 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9477 problematic inline frame unwinding situation.
9478 * frame.c (frame_id_computed_p): New function.
9479 * frame.h (frame_id_computed_p): New prototype.
9480
361ba0e8
TT
94812020-04-26 Tom Tromey <tom@tromey.com>
9482
9483 * command.h (enum command_class) <class_pseudo>: Remove.
9484
bc3609fd
PW
94852020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9486
9487 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9488 and whitespace.
9489
b9771db7
KR
94902020-04-25 Kamil Rytarowski <n54@gmx.com>
9491
ec16513e
SM
9492 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9493 `PT_GET_PROCESS_STATE' block.
b9771db7 9494
7151c1af
TT
94952020-04-24 Tom Tromey <tom@tromey.com>
9496
9497 * symtab.h (symbol_get_demangled_name): Don't declare.
9498 * symtab.c (symbol_get_demangled_name): Remove.
9499 (general_symbol_info::natural_name)
9500 (general_symbol_info::demangled_name): Update.
9501
906bb4c5
TT
95022020-04-24 Tom Tromey <tom@tromey.com>
9503
9504 PR rust/25025:
9505 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9506
bcfe6157
TT
95072020-04-24 Tom Tromey <tom@tromey.com>
9508
9509 PR symtab/12707:
9510 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9511 exists.
9512 (new_symbol): Likewise.
9513 * compile/compile-object-load.c (get_out_value_type): Use
9514 symbol_matches_search_name.
9515
f049a313
TT
95162020-04-24 Tom Tromey <tom@tromey.com>
9517
9518 * dwarf2/read.c (add_partial_symbol): Do not call
9519 compute_and_set_names.
9520
76e288d1
TT
95212020-04-24 Tom Tromey <tom@tromey.com>
9522
9523 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9524 overload.
9525
2467f4f6
TT
95262020-04-24 Tom Tromey <tom@tromey.com>
9527
9528 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9529 (add_psymbol_to_list): New overload. Make old overload call new
9530 one.
9531 * psympriv.h (add_psymbol_to_list): New overload.
9532
e61108c9
TT
95332020-04-24 Tom Tromey <tom@tromey.com>
9534
9535 * dwarf2/read.c (partial_die_info::read) <case
9536 DW_AT_linkage_name>: Use value_as_string.
9537 (dwarf2_string_attr): Use value_as_string.
9538 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9539 method.
9540 * dwarf2/attribute.c (attribute::value_as_string): New method.
9541
8c87a452
TT
95422020-04-24 Tom Tromey <tom@tromey.com>
9543
9544 * symtab.c (general_symbol_info::natural_name)
9545 (general_symbol_info::demangled_name): Check for language_rust.
9546
787de330
TT
95472020-04-24 Tom Tromey <tom@tromey.com>
9548
9549 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9550 (dwarf2_physname): ... from here.
9551 (partial_die_info::read): Add Rust "{" hack.
9552
ff985671
TT
95532020-04-24 Tom Tromey <tom@tromey.com>
9554
9555 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9556 method.
9557 (symbol_set_demangled_name): Don't declare.
9558 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9559 symbol_set_demangled_name.
9560 (general_symbol_info::set_language)
9561 (general_symbol_info::compute_and_set_names): Update.
9562 * minsyms.c (minimal_symbol_reader::install): Update.
9563 * dwarf2/read.c (new_symbol): Update.
9564
1acda803
TT
95652020-04-24 Tom Tromey <tromey@adacore.com>
9566
9567 PR python/23662:
9568 * python/py-type.c (convert_field): Handle
9569 FIELD_LOC_KIND_DWARF_BLOCK.
9570 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9571 (typy_get_dynamic): Nw function.
9572 (type_object_getset): Add "dynamic".
9573 * NEWS: Add entry.
9574
d656f129
TT
95752020-04-24 Tom Tromey <tromey@adacore.com>
9576
9577 * ada-typeprint.c (print_choices, print_variant_part)
9578 (print_record_field_types_dynamic): New functions.
9579 (print_record_field_types): Use print_record_field_types_dynamic.
9580
7d79de9a
TT
95812020-04-24 Tom Tromey <tromey@adacore.com>
9582
9583 * dwarf2/read.c (handle_data_member_location): New overload.
9584 (dwarf2_add_field): Use it.
9585 (decode_locdesc): Add "computed" parameter. Update comment.
9586 * gdbtypes.c (is_dynamic_type_internal): Also look for
9587 FIELD_LOC_KIND_DWARF_BLOCK.
9588 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9589 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9590 virtual base classes.
9591 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9592 FIELD_LOC_KIND_DWARF_BLOCK.
9593
f8e89861
TT
95942020-04-24 Tom Tromey <tromey@adacore.com>
9595
9596 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9597 * gdbtypes.c (is_dynamic_type_internal): Check
9598 TYPE_HAS_DYNAMIC_LENGTH.
9599 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9600 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9601 New macros.
9602 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9603 constant.
9604
9c6a1327
TT
96052020-04-24 Tom Tromey <tromey@adacore.com>
9606
9607 * dwarf2/read.c (struct variant_field): Rewrite.
9608 (struct variant_part_builder): New.
9609 (struct nextfield): Remove "variant" field. Add "offset".
9610 (struct field_info): Add "current_variant_part" and
9611 "variant_parts".
9612 (alloc_discriminant_info): Remove.
9613 (alloc_rust_variant): New function.
9614 (quirk_rust_enum): Update.
9615 (dwarf2_add_field): Set "offset" member. Don't handle
9616 DW_TAG_variant_part.
9617 (offset_map_type): New typedef.
9618 (convert_variant_range, create_one_variant)
9619 (create_one_variant_part, create_variant_parts)
9620 (add_variant_property): New functions.
9621 (dwarf2_attach_fields_to_type): Call add_variant_property.
9622 (read_structure_type): Don't handle DW_TAG_variant_part.
9623 (handle_variant_part, handle_variant): New functions.
9624 (handle_struct_member_die): Use them.
9625 (process_structure_scope): Don't handle variant parts.
9626 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9627 (struct discriminant_info): Remove.
9628 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9629 (struct main_type) <flag_discriminated_union>: Remove.
9630 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9631 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9632 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9633 Update.
9634 * valops.c (value_union_variant): Remove.
9635 * value.h (value_union_variant): Don't declare.
9636
b249d2c2
TT
96372020-04-24 Tom Tromey <tromey@adacore.com>
9638
9639 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9640 (ada_value_primitive_packed_val): Update.
9641 * ada-valprint.c (ada_value_print_1): Update.
9642 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9643 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9644 just an address. Use evaluate_for_locexpr_baton.
9645 (dwarf2_evaluate_property): Update.
9646 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9647 array_view.
9648 * findvar.c (default_read_var_value): Update.
9649 * gdbtypes.c (compute_variant_fields_inner)
9650 (resolve_dynamic_type_internal): Update.
9651 (resolve_dynamic_type): Change type of valaddr parameter.
9652 * gdbtypes.h (resolve_dynamic_type): Update.
9653 * valarith.c (value_subscripted_rvalue): Update.
9654 * value.c (value_from_contents_and_address): Update.
9655
61122aa9
TT
96562020-04-24 Tom Tromey <tromey@adacore.com>
9657
9658 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9659 "push_initial_value" parameter.
9660 (dwarf2_evaluate_property): Likewise.
9661 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9662
ef83a141
TT
96632020-04-24 Tom Tromey <tromey@adacore.com>
9664
9665 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9666 (variant::matches, compute_variant_fields_recurse)
9667 (compute_variant_fields_inner, compute_variant_fields): New
9668 functions.
9669 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9670 Use resolved_type after type is made.
9671 (operator==): Add new cases.
9672 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9673 (struct discriminant_range, struct variant, struct variant_part):
9674 New.
9675 (union dynamic_prop_data) <variant_parts, original_type>: New
9676 members.
9677 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9678 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9679 constants.
9680 * value.c (unpack_bits_as_long): Now public.
9681 * value.h (unpack_bits_as_long): Declare.
9682
675127ec
TT
96832020-04-24 Tom Tromey <tromey@adacore.com>
9684
9685 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9686 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9687
9852ceef
HD
96882020-04-24 Hannes Domani <ssbssa@yahoo.de>
9689
9690 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9691
7632c6ce
KR
96922020-04-24 Kamil Rytarowski <n54@gmx.com>
9693
9694 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9695 (remove_fork_catchpoint, post_startup_inferior)
9696 (post_attach): Move...
9697 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9698 (remove_fork_catchpoint, post_startup_inferior)
9699 (post_attach): ...here.
9700 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9701 (remove_fork_catchpoint, post_startup_inferior)
9702 (post_attach): Move...
9703 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9704 (remove_fork_catchpoint, post_startup_inferior)
9705 (post_attach): ...here.
9706
7be2bb4f
TT
97072020-04-24 Tom Tromey <tromey@adacore.com>
9708
9709 * nat/windows-nat.h (struct windows_thread_info)
9710 <pc_adjusted>: New member.
9711 * windows-nat.c (windows_fetch_one_register): Check
9712 pc_adjusted.
9713 (windows_nat_target::get_windows_debug_event)
9714 (windows_nat_target::wait): Set pc_adjusted.
9715
f80cb3b4
TV
97162020-04-24 Tom de Vries <tdevries@suse.de>
9717
9718 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9719 Run gdb-add-index inside temp dir.
9720
29514b87
TT
97212020-04-23 Tom Tromey <tromey@adacore.com>
9722
9723 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9724 in loop.
9725
5939967b
LM
97262020-04-23 Luis Machado <luis.machado@linaro.org>
9727
9728 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9729 get_frame_register instead of gdbarch_unwind_pc.
9730
70bc38f5
TV
97312020-04-23 Tom de Vries <tdevries@suse.de>
9732
9733 * symtab.c (lookup_global_symbol): Prefer def over decl.
9734
de82891c
TV
97352020-04-23 Tom de Vries <tdevries@suse.de>
9736
9737 PR symtab/25807
9738 * block.c (best_symbol, better_symbol): Promote to external.
9739 * block.h (best_symbol, better_symbol): Declare.
9740 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9741 decl.
9742
ecc6c606
TT
97432020-04-23 Tom Tromey <tromey@adacore.com>
9744
9745 PR ada/25837:
9746 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9747 "const char *", not a "const std::string &".
9748 <name_and_matcher::operator==>: Update.
9749 * unittests/lookup_name_info-selftests.c: Change type of
9750 "result".
9751
740480b8
TT
97522020-04-23 Tom Tromey <tom@tromey.com>
9753
9754 * inferior.h (iterate_over_inferiors): Don't declare.
9755 * inferior.c (iterate_over_inferiors): Remove.
9756 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9757 Remove.
9758 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9759 use iterate_over_inferiors.
9760 (darwin_resume_inferior_it)
9761 (struct resume_inferior_threads_param)
9762 (darwin_resume_inferior_threads_it): Remove.
9763 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9764
ae3ab1f0
TV
97652020-04-23 Tom de Vries <tdevries@suse.de>
9766
9767 * blockframe.c (find_pc_partial_function): Use
9768 find_pc_sect_compunit_symtab rather than
9769 objfile->sf->qf->find_pc_sect_compunit_symtab.
9770
317d2668
TV
97712020-04-22 Tom de Vries <tdevries@suse.de>
9772
9773 PR symtab/25764
9774 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9775 in psymtabs.
9776
eea9e357
TV
97772020-04-22 Tom de Vries <tdevries@suse.de>
9778
9779 PR symtab/25801
9780 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9781 symtabs.
9782
3d5afab3
TV
97832020-04-22 Tom de Vries <tdevries@suse.de>
9784
9785 PR symtab/25700
9786 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9787 CU if already created.
9788
d43b7a2d
TBA
97892020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9790
9791 * infrun.c (displaced_step_fixup): Switch to the event_thread
9792 before calling displaced_step_restore, not after.
9793
d89edf9b
MM
97942020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9795
9796 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9797 its inferior is not recorded by us.
9798 (record_btrace_target_open): Replace call to
9799 all_non_exited_threads () with call to current_inferior
9800 ()->non_exited_threads ().
9801 (record_btrace_target::stop_recording): Likewise.
9802 (record_btrace_target::close): Likewise.
9803 (record_btrace_target::wait): Likewise.
9804 (record_btrace_target::record_stop_replaying): Likewise.
9805
5897fd49
MM
98062020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9807
9808 * btrace.c (btrace_enable): Throw an error on double enables and
9809 when enabling recording fails.
9810 (btrace_disable): Throw an error if the thread is not recorded.
9811
1a476b6d
MM
98122020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9813
9814 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9815 request if we do not have a thread_info.
9816
4778a5f8
TV
98172020-04-21 Tom de Vries <tdevries@suse.de>
9818
9819 PR gdb/25471
9820 * thread.c
9821 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9822 exception in get_frame_id.
9823
0fa7617d
TT
98242020-04-20 Tom Tromey <tromey@adacore.com>
9825
9826 * python/python.c (struct gdbpy_event): Mark move constructor as
9827 noexcept.
9828 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9829 constructor as noexcept.
9830 * completer.h (struct completion_result): Mark move constructor as
9831 noexcept.
9832 * completer.c (completion_result::completion_result): Use
9833 initialization style. Don't call reset_match_list.
9834
ad23bda0
MS
98352020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9836
9837 * MAINTAINERS (Write After Approval): Add myself.
9838
45e1f031
TT
98392020-04-18 Tom Tromey <tom@tromey.com>
9840
9841 * windows-tdep.c (init_w32_command_list)
9842 (w32_prefix_command_valid): Restore.
9843 (_initialize_windows_tdep): Call init_w32_command_list.
9844
08feed99
TT
98452020-04-18 Tom Tromey <tom@tromey.com>
9846
9847 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9848 * value.c (value_fn_field): Update.
9849 * valops.c (find_function_in_inferior)
9850 (value_allocate_space_in_inferior): Update.
9851 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9852 Update.
9853 * tui/tui-source.c (tui_source_window::set_contents): Update.
9854 * symtab.c (lookup_global_or_static_symbol)
9855 (find_function_start_sal_1, skip_prologue_sal)
9856 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9857 * symmisc.c (dump_msymbols, dump_symtab_1)
9858 (maintenance_print_one_line_table): Update.
9859 * symfile.c (init_entry_point_info, section_is_mapped)
9860 (list_overlays_command, simple_read_overlay_table)
9861 (simple_overlay_update_1): Update.
9862 * stap-probe.c (handle_stap_probe): Update.
9863 * stabsread.c (dbx_init_float_type, define_symbol)
9864 (read_one_struct_field, read_enum_type, read_range_type): Update.
9865 * source.c (info_line_command): Update.
9866 * python/python.c (gdbpy_source_objfile_script)
9867 (gdbpy_execute_objfile_script): Update.
9868 * python/py-type.c (save_objfile_types): Update.
9869 * python/py-objfile.c (py_free_objfile): Update.
9870 * python/py-inferior.c (python_new_objfile): Update.
9871 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9872 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9873 (maintenance_check_psymtabs): Update.
9874 * printcmd.c (info_address_command): Update.
9875 * objfiles.h (struct objfile) <arch>: New method, from
9876 get_objfile_arch.
9877 (get_objfile_arch): Don't declare.
9878 * objfiles.c (get_objfile_arch): Remove.
9879 (filter_overlapping_sections): Update.
9880 * minsyms.c (msymbol_is_function): Update.
9881 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9882 (output_nondebug_symbol): Update.
9883 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9884 (mdebug_expand_psymtab): Update.
9885 * machoread.c (macho_add_oso_symfile): Update.
9886 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9887 Update.
9888 * linux-fork.c (checkpoint_command): Update.
9889 * linespec.c (convert_linespec_to_sals): Update.
9890 * jit.c (finalize_symtab): Update.
9891 * infrun.c (insert_exception_resume_from_probe): Update.
9892 * ia64-tdep.c (ia64_find_unwind_table): Update.
9893 * hppa-tdep.c (internalize_unwinds): Update.
9894 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9895 Update.
9896 * gcore.c (call_target_sbrk): Update.
9897 * elfread.c (record_minimal_symbol, elf_symtab_read)
9898 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9899 (elf_gnu_ifunc_resolve_by_got): Update.
9900 * dwarf2/read.c (create_addrmap_from_index)
9901 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9902 (read_debug_names_from_section)
9903 (process_psymtab_comp_unit_reader, add_partial_symbol)
9904 (add_partial_subprogram, process_full_comp_unit)
9905 (read_file_scope, read_func_scope, read_lexical_block_scope)
9906 (read_call_site_scope, dwarf2_ranges_read)
9907 (dwarf2_record_block_ranges, dwarf2_add_field)
9908 (mark_common_block_symbol_computed, read_tag_pointer_type)
9909 (read_tag_string_type, dwarf2_init_float_type)
9910 (dwarf2_init_complex_target_type, read_base_type)
9911 (partial_die_info::read, partial_die_info::read)
9912 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9913 (dwarf2_fetch_die_loc_sect_off): Update.
9914 * dwarf2/loc.c (dwarf2_find_location_expression)
9915 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9916 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9917 (dwarf2_loc_desc_get_symbol_read_needs)
9918 (locexpr_describe_location_piece, locexpr_describe_location_1)
9919 (loclist_describe_location): Update.
9920 * dwarf2/index-write.c (write_debug_names): Update.
9921 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9922 * dtrace-probe.c (dtrace_process_dof): Update.
9923 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9924 (process_one_symbol): Update.
9925 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9926 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9927 (coff_read_enum_type): Update.
9928 * cli/cli-cmds.c (edit_command, list_command): Update.
9929 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9930 * breakpoint.c (create_overlay_event_breakpoint)
9931 (create_longjmp_master_breakpoint)
9932 (create_std_terminate_master_breakpoint)
9933 (create_exception_master_breakpoint, get_sal_arch): Update.
9934 * block.c (block_gdbarch): Update.
9935 * annotate.c (annotate_source_line): Update.
9936
0743fc83
TT
99372020-04-17 Tom Tromey <tromey@adacore.com>
9938
9939 * auto-load.c (show_auto_load_cmd): Remove.
9940 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9941 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9942 (maintenance_print_arc_command): Remove.
9943 * tui/tui-win.c (tui_command): Remove.
9944 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9945 * tui/tui-layout.c (tui_layout_command): Remove.
9946 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9947 * python/python.c (user_set_python, user_show_python): Remove.
9948 (_initialize_python): Use add_basic_prefix_cmd,
9949 add_show_prefix_cmd.
9950 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9951 (install_gdb_commands): Use add_basic_prefix_cmd,
9952 add_show_prefix_cmd.
9953 (info_guile_command): Remove.
9954 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9955 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9956 add_show_prefix_cmd.
9957 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9958 Remove do_set and do_show parameters.
9959 * cli/cli-style.c (set_style, show_style): Remove.
9960 (_initialize_cli_style): Use add_basic_prefix_cmd,
9961 add_show_prefix_cmd.
9962 (cli_style_option::add_setshow_commands): Remove do_set and
9963 do_show parameters.
9964 (cli_style_option::add_setshow_commands): Use
9965 add_basic_prefix_cmd, add_show_prefix_cmd.
9966 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9967 (set_style_name): Remove.
9968 * cli/cli-dump.c (dump_command, append_command): Remove.
9969 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9970 (tekhex_dump_command, binary_dump_command)
9971 (binary_append_command): Remove.
9972 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9973 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9974 (init_w32_command_list): Remove; move into ...
9975 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9976 * valprint.c (set_print, show_print, set_print_raw)
9977 (show_print_raw): Remove.
9978 (_initialize_valprint): Use add_basic_prefix_cmd,
9979 add_show_prefix_cmd.
9980 * typeprint.c (set_print_type, show_print_type): Remove.
9981 (_initialize_typeprint): Use add_basic_prefix_cmd,
9982 add_show_prefix_cmd.
9983 * record.c (set_record_command, show_record_command): Remove.
9984 (_initialize_record): Use add_basic_prefix_cmd,
9985 add_show_prefix_cmd.
9986 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9987 add_show_prefix_cmd.
9988 (info_command, show_command, set_debug, show_debug): Remove.
9989 * top.h (set_history, show_history): Don't declare.
9990 * top.c (set_history, show_history): Remove.
9991 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9992 (unset_tdesc_cmd): Remove.
9993 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9994 add_show_prefix_cmd.
9995 * symtab.c (info_module_command): Remove.
9996 (_initialize_symtab): Use add_basic_prefix_cmd.
9997 * symfile.c (overlay_command): Remove.
9998 (_initialize_symfile): Use add_basic_prefix_cmd.
9999 * sparc64-tdep.c (info_adi_command): Remove.
10000 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10001 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10002 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10003 add_show_prefix_cmd.
10004 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10005 (_initialize_serial): Use add_basic_prefix_cmd,
10006 add_show_prefix_cmd.
10007 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10008 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10009 add_show_prefix_cmd.
10010 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10011 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10012 add_show_prefix_cmd.
10013 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10014 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10015 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10016 add_show_prefix_cmd.
10017 * remote.c (remote_command, set_remote_cmd): Remove.
10018 (_initialize_remote): Use add_basic_prefix_cmd.
10019 * record-full.c (set_record_full_command)
10020 (show_record_full_command): Remove.
10021 (_initialize_record_full): Use add_basic_prefix_cmd,
10022 add_show_prefix_cmd.
10023 * record-btrace.c (cmd_set_record_btrace)
10024 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10025 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10026 (cmd_show_record_btrace_pt): Remove.
10027 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10028 add_show_prefix_cmd.
10029 * ravenscar-thread.c (set_ravenscar_command)
10030 (show_ravenscar_command): Remove.
10031 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10032 add_show_prefix_cmd.
10033 * mips-tdep.c (show_mips_command, set_mips_command)
10034 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10035 add_show_prefix_cmd.
10036 * maint.c (maintenance_command, maintenance_info_command)
10037 (maintenance_check_command, maintenance_print_command)
10038 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10039 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10040 add_show_prefix_cmd.
10041 (show_per_command_cmd): Remove.
10042 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10043 Remove.
10044 (maintenance_show_test_settings_cmd): Remove.
10045 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10046 add_show_prefix_cmd.
10047 * maint-test-options.c (maintenance_test_options_command):
10048 Remove.
10049 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10050 * macrocmd.c (macro_command): Remove
10051 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10052 * language.c (set_check, show_check): Remove.
10053 (_initialize_language): Use add_basic_prefix_cmd,
10054 add_show_prefix_cmd.
10055 * infcmd.c (unset_command): Remove.
10056 (_initialize_infcmd): Use add_basic_prefix_cmd.
10057 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10058 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10059 add_show_prefix_cmd.
10060 * go32-nat.c (go32_info_dos_command): Remove.
10061 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10062 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10063 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10064 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10065 (_initialize_frame): Use add_basic_prefix_cmd,
10066 add_show_prefix_cmd.
10067 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10068 (_initialize_dcache): Use add_basic_prefix_cmd,
10069 add_show_prefix_cmd.
10070 * cp-support.c (maint_cplus_command): Remove.
10071 (_initialize_cp_support): Use add_basic_prefix_cmd.
10072 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10073 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10074 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10075 add_basic_prefix_cmd, add_show_prefix_cmd.
10076 * breakpoint.c (save_command): Remove.
10077 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10078 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10079 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10080 add_show_prefix_cmd.
10081 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10082 (set_ada_command, show_ada_command): Remove.
10083 (_initialize_ada_language): Use add_basic_prefix_cmd,
10084 add_show_prefix_cmd.
10085 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10086
3557f442
KR
100872020-04-16 Kamil Rytarowski <n54@gmx.com>
10088
10089 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10090 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10091
16197208
SM
100922020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10093
10094 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10095 warning messages.
10096
00ac85d3
SM
100972020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10098
10099 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10100 import table is not at beginning of .idata section.
10101
381ce63f
PA
101022020-04-16 Pedro Alves <palves@redhat.com>
10103
10104 * inferior.c (delete_inferior): Use delete operator directly
10105 instead of delete_program_space.
10106 * progspace.c (add_program_space): New, factored out from
10107 program_space::program_space.
10108 (remove_program_space): New, factored out from
10109 delete_program_space.
10110 (program_space::program_space): Remove intro comment. Rewrite.
10111 (program_space::~program_space): Remove intro comment. Call
10112 remove_program_space.
10113 (delete_program_space): Delete.
10114 * progspace.h (program_space::program_space): Make explicit. Move
10115 intro comment here, adjusted.
10116 (program_space::~program_space): Move intro comment here,
10117 adjusted.
10118 (delete_program_space): Remove.
10119
a010605f
TT
101202020-04-16 Tom Tromey <tromey@adacore.com>
10121
10122 * windows-nat.c (windows_nat::handle_access_violation): New
10123 function.
10124 * nat/windows-nat.h (handle_access_violation): Declare.
10125 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10126 windows-nat.c. Call handle_access_violation.
10127
efba5c23
TV
101282020-04-16 Tom de Vries <tdevries@suse.de>
10129
10130 PR symtab/25791
10131 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10132 CUs without psymtab.
10133
97ed802d
KB
101342020-04-16 Kevin Buettner <kevinb@redhat.com>
10135
10136 * python/python.c (do_start_initialization): Don't call
10137 PyEval_InitThreads for Python 3.9 and beyond.
10138
c7d64809
KR
101392020-04-15 Kamil Rytarowski <n54@gmx.com>
10140
10141 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10142 thread functions.
10143 (obsd_nat_target::wait): Likewise.
10144
ce127a96
TT
101452020-04-15 Tom Tromey <tromey@adacore.com>
10146
10147 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10148 (DEBUG_EXCEPT): Use debug_printf.
10149
99f1bc6a
AB
101502020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10151
10152 * completer.c (class completion_tracker::completion_hash_entry)
10153 <hash_name>: New member function.
10154 (completion_tracker::discard_completions): New callback to hash a
10155 completion_hash_entry, pass this to htab_create_alloc.
10156
a0e9b532
JT
101572016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10158
10159 * windows-nat.c (windows_make_so): Warn rather than stopping with
10160 an error if realpath() fails.
10161
06ca5dd4
KR
101622020-04-14 Kamil Rytarowski <n54@gmx.com>
10163
10164 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10165 (nbsd_nat_target::info_proc): Add do_status.
10166
194d088f
TV
101672020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10168 Tom de Vries <tdevries@suse.de>
10169
10170 PR symtab/25718
10171 * psympriv.h (struct partial_symtab::read_symtab)
10172 (struct partial_symtab::expand_psymtab)
10173 (struct partial_symtab::read_dependencies): Update comments.
10174 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10175 read_symtab for includer.
10176 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10177 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10178 (struct dwarf2_include_psymtab::m_readin): Remove.
10179 (struct dwarf2_include_psymtab::includer): New member function.
10180 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10181
c1a66c06
TV
101822020-04-14 Tom de Vries <tdevries@suse.de>
10183
10184 PR symtab/25720
10185 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10186 with NULL symbol_matcher and lookup_name.
10187 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10188 and lookup_name.
10189 * dwarf2/read.c (dw2_expand_symtabs_matching)
10190 (dw2_debug_names_expand_symtabs_matching): Same.
10191 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10192 Make lookup_name a pointer. Update comment.
10193 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10194 lookup_name being a pointer.
10195 * symfile.c (expand_symtabs_matching): Same.
10196 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10197 * linespec.c (iterate_over_all_matching_symtabs): Same.
10198
400b5eca
TT
101992020-04-13 Tom Tromey <tom@tromey.com>
10200
10201 * run-on-main-thread.c: Update include.
10202 * unittests/main-thread-selftests.c: Update include.
10203 * tui/tui-win.c: Update include.
10204 * tui/tui-io.c: Update include.
10205 * tui/tui-interp.c: Update include.
10206 * tui/tui-hooks.c: Update include.
10207 * top.h: Update include.
10208 * top.c: Update include.
10209 * ser-base.c: Update include.
10210 * remote.c: Update include.
10211 * remote-notif.c: Update include.
10212 * remote-fileio.c: Update include.
10213 * record-full.c: Update include.
10214 * record-btrace.c: Update include.
10215 * python/python.c: Update include.
10216 * posix-hdep.c: Update include.
10217 * mingw-hdep.c: Update include.
10218 * mi/mi-main.c: Update include.
10219 * mi/mi-interp.c: Update include.
10220 * main.c: Update include.
10221 * linux-nat.c: Update include.
10222 * interps.c: Update include.
10223 * infrun.c: Update include.
10224 * inf-loop.c: Update include.
10225 * event-top.c: Update include.
10226 * event-loop.c: Move to ../gdbsupport/.
10227 * event-loop.h: Move to ../gdbsupport/.
10228 * async-event.h: Update include.
10229 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10230
93b54c8e
TT
102312020-04-13 Tom Tromey <tom@tromey.com>
10232
10233 * tui/tui-win.c: Include async-event.h.
10234 * remote.c: Include async-event.h.
10235 * remote-notif.c: Include async-event.h.
10236 * record-full.c: Include async-event.h.
10237 * record-btrace.c: Include async-event.h.
10238 * infrun.c: Include async-event.h.
10239 * event-top.c: Include async-event.h.
10240 * event-loop.h: Move some declarations to async-event.h.
10241 * event-loop.c: Don't include ser-event.h or top.h. Move some
10242 code to async-event.c.
10243 * async-event.h: New file.
10244 * async-event.c: New file.
10245 * Makefile.in (COMMON_SFILES): Add async-event.c.
10246 (HFILES_NO_SRCDIR): Add async-event.h.
10247
c1cd3163
TT
102482020-04-13 Tom Tromey <tom@tromey.com>
10249
10250 * utils.c (flush_streams): New function.
10251 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10252
29f2bf4f
TT
102532020-04-13 Tom Tromey <tom@tromey.com>
10254
10255 * event-loop.c (handle_file_event): Use warning, not
10256 printf_unfiltered.
10257
98029d02
TT
102582020-04-13 Tom Tromey <tom@tromey.com>
10259
10260 * event-loop.c: Include <chrono>.
10261
06cc9596
TT
102622020-04-13 Tom Tromey <tom@tromey.com>
10263
10264 * gdb_select.h: Move to ../gdbsupport/.
10265 * event-loop.c: Update include path.
10266 * top.c: Update include path.
10267 * ser-base.c: Update include path.
10268 * ui-file.c: Update include path.
10269 * ser-tcp.c: Update include path.
10270 * guile/scm-ports.c: Update include path.
10271 * posix-hdep.c: Update include path.
10272 * ser-unix.c: Update include path.
10273 * gdb_usleep.c: Update include path.
10274 * mingw-hdep.c: Update include path.
10275 * inflow.c: Update include path.
10276 * infrun.c: Update include path.
10277 * event-top.c: Update include path.
10278
8ae8e197
TT
102792020-04-13 Tom Tromey <tom@tromey.com>
10280
10281 * configure: Rebuild.
10282 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10283
58cf28e8
TT
102842020-04-13 Tom Tromey <tom@tromey.com>
10285
10286 * event-loop.h (start_event_loop): Don't declare.
10287 * event-loop.c (start_event_loop): Move...
10288 * main.c (start_event_loop): ...here. Now static.
10289
b7f999ae
SDJ
102902020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10291
10292 * MAINTAINERS: Update my email address.
10293
1085dfd4
KR
102942020-04-12 Kamil Rytarowski <n54@gmx.com>
10295
10296 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10297 IP_ALL.
10298
49d1d1f5
KR
102992020-04-12 Kamil Rytarowski <n54@gmx.com>
10300
10301 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10302 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10303
b4848d2a
KR
103042020-04-12 Kamil Rytarowski <n54@gmx.com>
10305
10306 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10307 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10308
51c133d5
KR
103092020-04-12 Kamil Rytarowski <n54@gmx.com>
10310
10311 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10312
54b8cbd0
KR
103132020-04-11 Kamil Rytarowski <n54@gmx.com>
10314
10315 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10316 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10317 (nbsd_nat_target::info_proc): New functions.
10318 * nbsd-nat.c (kinfo_get_vmmap): New function.
10319 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10320 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10321 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10322 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10323 functions.
10324 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10325 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10326 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10327 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10328 (KINFO_VME_FLAG_GROWS_DOWN): New.
10329
cf83625d
AS
103302020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10331
10332 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10333 bit shift.
10334
0c4311ab
TT
103352020-04-10 Tom Tromey <tromey@adacore.com>
10336
10337 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10338
3e65b3e9
TT
103392020-04-10 Tom Tromey <tromey@adacore.com>
10340
10341 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10342 separate debug files.
10343
13302e95
HD
103442020-04-10 Hannes Domani <ssbssa@yahoo.de>
10345
10346 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10347 Move to...
10348 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10349 ... here.
10350 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10351 Check for STATUS_WX86_BREAKPOINT.
10352 (windows_nat_target::wait): Same.
10353
bdfc1e8a
TV
103542020-04-10 Tom de Vries <tdevries@suse.de>
10355
10356 PR cli/25808
10357 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10358
f4460aec
SM
103592020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10360
10361 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10362 (Write After Approval): Remove Tom de Vries.
10363
a25198bb
BE
103642020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10365
10366 revert partially:
10367 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10368
aac66a4c
SM
10369 * buildsym.c (record_line): Fix undefined behavior and preserve
10370 lines at eof.
a25198bb 10371
206c98a6
KR
103722020-04-09 Kamil Rytarowski <n54@gmx.com>
10373
10374 * auxv.h (svr4_auxv_parse): New.
10375 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10376 and generic_auxv_parse.
10377 (svr4_auxv_parse): Add.
10378 * obsd-tdep.c: Include "auxv.h".
10379 (obsd_auxv_parse): Remove.
10380 (obsd_init_abi): Remove comment.
10381 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10382 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10383 * nbsd-tdep.c: Include "auxv.h".
10384 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10385
71fbdbaf
TT
103862020-04-08 Tom Tromey <tromey@adacore.com>
10387
10388 * nat/windows-nat.h (last_wait_event): Don't declare.
10389 (wait_for_debug_event): Update comment.
10390 * nat/windows-nat.c (last_wait_event): Now static.
10391
2c1d95e8
TT
103922020-04-08 Tom Tromey <tromey@adacore.com>
10393
10394 * windows-nat.c (wait_for_debug_event): Move to
10395 nat/windows-nat.c.
10396 * nat/windows-nat.h (wait_for_debug_event): Declare.
10397 * nat/windows-nat.c (wait_for_debug_event): Move from
10398 windows-nat.c. No longer static.
10399
d2977bc4
TT
104002020-04-08 Tom Tromey <tromey@adacore.com>
10401
10402 * windows-nat.c (get_windows_debug_event): Use
10403 fetch_pending_stop.
10404 * nat/windows-nat.h (fetch_pending_stop): Declare.
10405 * nat/windows-nat.c (fetch_pending_stop): New function.
10406
e758e19c
TT
104072020-04-08 Tom Tromey <tromey@adacore.com>
10408
10409 * windows-nat.c (windows_continue): Use matching_pending_stop and
10410 continue_last_debug_event.
10411 * nat/windows-nat.h (matching_pending_stop)
10412 (continue_last_debug_event): Declare.
10413 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10414 (matching_pending_stop, continue_last_debug_event): New
10415 functions.
10416
8d30e395
TT
104172020-04-08 Tom Tromey <tromey@adacore.com>
10418
10419 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10420 (handle_exception_result): Move to nat/windows-nat.h.
10421 (DEBUG_EXCEPTION_SIMPLE): Remove.
10422 (windows_nat::handle_ms_vc_exception): New function.
10423 (handle_exception): Move to nat/windows-nat.c.
10424 (get_windows_debug_event): Update.
10425 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10426 nat/windows-nat.c.
10427 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10428 (handle_exception_result): Move from windows-nat.c.
10429 (handle_exception): Declare.
10430 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10431 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10432 windows-nat.c.
10433
29de418d
TT
104342020-04-08 Tom Tromey <tromey@adacore.com>
10435
10436 * windows-nat.c (exception_count, event_count): Remove.
10437 (handle_exception, get_windows_debug_event)
10438 (do_initial_windows_stuff): Update.
10439
a816ba18
TT
104402020-04-08 Tom Tromey <tromey@adacore.com>
10441
10442 * windows-nat.c (windows_nat::handle_load_dll)
10443 (windows_nat::handle_unload_dll): Rename. No longer static.
10444 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10445 Declare.
10446
a00caa12
TT
104472020-04-08 Tom Tromey <tromey@adacore.com>
10448
10449 * complaints.h (stop_whining): Declare at top-level.
10450 (complaint): Don't declare stop_whining.
10451
d41b524f
TT
104522020-04-08 Tom Tromey <tromey@adacore.com>
10453
10454 * windows-nat.c (windows_nat::handle_output_debug_string):
10455 Rename. No longer static.
10456 * nat/windows-nat.h (handle_output_debug_string): Declare.
10457
3c76026d
TT
104582020-04-08 Tom Tromey <tromey@adacore.com>
10459
10460 * windows-nat.c (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 to nat/windows-nat.c.
10464 (display_selectors, fake_create_process)
10465 (get_windows_debug_event): Update.
10466 * nat/windows-nat.h (current_process_handle, current_process_id)
10467 (main_thread_id, last_sig, current_event, last_wait_event)
10468 (current_windows_thread, desired_stop_thread_id, pending_stops)
10469 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10470 * nat/windows-nat.c (current_process_handle, current_process_id)
10471 (main_thread_id, last_sig, current_event, last_wait_event)
10472 (current_windows_thread, desired_stop_thread_id, pending_stops)
10473 (siginfo_er): New globals. Move from windows-nat.c.
10474
9d8679cc
TT
104752020-04-08 Tom Tromey <tromey@adacore.com>
10476
10477 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10478 (handle_load_dll): Update.
10479 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10480
28688adf
TT
104812020-04-08 Tom Tromey <tromey@adacore.com>
10482
10483 * windows-nat.c (enum thread_disposition_type): Move to
10484 nat/windows-nat.h.
10485 (windows_nat::thread_rec): Rename from thread_rec. No longer
10486 static.
10487 (windows_add_thread, windows_nat_target::fetch_registers)
10488 (windows_nat_target::store_registers, handle_exception)
10489 (windows_nat_target::resume, get_windows_debug_event)
10490 (windows_nat_target::get_tib_address)
10491 (windows_nat_target::thread_name)
10492 (windows_nat_target::thread_alive): Update.
10493 * nat/windows-nat.h (enum thread_disposition_type): Move from
10494 windows-nat.c.
10495 (thread_rec): Declare.
10496
4834dad0
TT
104972020-04-08 Tom Tromey <tromey@adacore.com>
10498
10499 * windows-nat.c: Add "using namespace".
10500 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10501 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10502
65bafd5b
TT
105032020-04-08 Tom Tromey <tromey@adacore.com>
10504
10505 * nat/windows-nat.h (struct windows_thread_info): Declare
10506 destructor.
10507 * nat/windows-nat.c (~windows_thread_info): New.
10508
0a4afda3
TT
105092020-04-08 Tom Tromey <tromey@adacore.com>
10510
10511 PR gdb/22992
10512 * windows-nat.c (current_event): Update comment.
10513 (last_wait_event, desired_stop_thread_id): New globals.
10514 (struct pending_stop): New.
10515 (pending_stops): New global.
10516 (windows_nat_target) <stopped_by_sw_breakpoint>
10517 <supports_stopped_by_sw_breakpoint>: New methods.
10518 (windows_fetch_one_register): Add assertions. Adjust PC.
10519 (windows_continue): Handle pending stops. Suspend other threads
10520 when stepping. Use last_wait_event
10521 (wait_for_debug_event): New function.
10522 (get_windows_debug_event): Use wait_for_debug_event. Handle
10523 pending stops. Queue spurious stops.
10524 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10525 (windows_nat_target::kill): Use wait_for_debug_event.
10526 * nat/windows-nat.h (struct windows_thread_info)
10527 <stopped_at_software_breakpoint>: New field.
10528 * nat/windows-nat.c (windows_thread_info::resume): Clear
10529 stopped_at_software_breakpoint.
10530
8e61ebec
TT
105312020-04-08 Tom Tromey <tromey@adacore.com>
10532
10533 * windows-nat.c (enum thread_disposition_type): New.
10534 (thread_rec): Replace "get_context" parameter with "disposition";
10535 change type.
10536 (windows_add_thread, windows_nat_target::fetch_registers)
10537 (windows_nat_target::store_registers, handle_exception)
10538 (windows_nat_target::resume, get_windows_debug_event)
10539 (windows_nat_target::get_tib_address)
10540 (windows_nat_target::thread_name)
10541 (windows_nat_target::thread_alive): Update.
10542
98a03287
TT
105432020-04-08 Tom Tromey <tromey@adacore.com>
10544
10545 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10546 (windows_continue): Use windows_continue::resume.
10547 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10548 resume>: Declare new methods.
10549 * nat/windows-nat.c: New file.
10550 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10551
7c7411bc
TT
105522020-04-08 Tom Tromey <tromey@adacore.com>
10553
10554 * windows-nat.c (windows_add_thread, windows_delete_thread)
10555 (windows_nat_target::fetch_registers)
10556 (windows_nat_target::store_registers, fake_create_process)
10557 (windows_nat_target::resume, windows_nat_target::resume)
10558 (get_windows_debug_event, windows_nat_target::wait)
10559 (windows_nat_target::pid_to_str)
10560 (windows_nat_target::get_tib_address)
10561 (windows_nat_target::get_ada_task_ptid)
10562 (windows_nat_target::thread_name)
10563 (windows_nat_target::thread_alive): Use lwp, not tid.
10564
2950fdf7
TT
105652020-04-08 Tom Tromey <tromey@adacore.com>
10566
10567 * windows-nat.c (handle_exception)
10568 (windows_nat_target::thread_name): Update.
10569 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10570 <name>: Now unique_xmalloc_ptr.
10571
62fe396b
TT
105722020-04-08 Tom Tromey <tromey@adacore.com>
10573
10574 * windows-nat.c (thread_rec)
10575 (windows_nat_target::fetch_registers): Update.
10576 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10577 Update comment.
10578 <debug_registers_changed, reload_context>: Now bool.
10579
e9534bd2
TT
105802020-04-08 Tom Tromey <tromey@adacore.com>
10581
10582 * windows-nat.c (windows_add_thread): Use new.
10583 (windows_init_thread_list, windows_delete_thread): Use delete.
10584 (get_windows_debug_event): Update.
10585 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10586 destructor, and initializers.
10587
ae1f8880
TT
105882020-04-08 Tom Tromey <tromey@adacore.com>
10589
10590 * windows-nat.c (struct windows_thread_info): Remove.
10591 * nat/windows-nat.h: New file.
10592
55a1e039
TT
105932020-04-08 Tom Tromey <tromey@adacore.com>
10594
10595 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10596 (thread_rec, windows_add_thread, windows_delete_thread)
10597 (windows_continue): Update.
10598
93366324
TT
105992020-04-08 Tom Tromey <tromey@adacore.com>
10600
10601 * windows-nat.c (struct windows_thread_info): Remove typedef.
10602 (thread_head): Remove.
10603 (thread_list): New global.
10604 (thread_rec, windows_add_thread, windows_init_thread_list)
10605 (windows_delete_thread, windows_continue): Update.
10606
0f2265e2
SM
106072020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10608
10609 * windows-tdep.h (windows_init_abi): Add comment.
10610 (cygwin_init_abi): New declaration.
10611 * windows-tdep.c: Split signal enumeration in two, one for
10612 Windows and one for Cygwin.
10613 (windows_gdb_signal_to_target): Only deal with signal of the
10614 Windows OS ABI.
10615 (cygwin_gdb_signal_to_target): New function.
10616 (windows_init_abi): Rename to windows_init_abi_common, don't set
10617 gdb_signal_to_target gdbarch method. Add new new function with
10618 this name.
10619 (cygwin_init_abi): New function.
10620 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10621 comment. Don't call windows_init_abi.
10622 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10623 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10624 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10625 i386_windows_init_abi_common, don't call windows_init_abi. Add
10626 a new function of this name.
10627 (i386_cygwin_init_abi): New function.
10628 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10629 OS ABI Cygwin.
10630
3810f182
SM
106312020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10632
10633 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10634 parameter.c.
10635 (dwarf2_read_gdb_index): Update.
10636
063f8e80
KR
106372020-04-07 Kamil Rytarowski <n54@gmx.com>
10638
10639 * nbsd-tdep.c: Include "objfiles.h".
10640 (nbsd_skip_solib_resolver): New.
10641 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10642
85a9510c 106432020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10644
10645 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10646 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10647 with DW_LLE_base_addressx are being emitted in DWARFv5.
10648 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10649 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10650 unsigned integer.
10651
9fc3eaae 106522020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10653
10654 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10655 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10656 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10657 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10658 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10659 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10660 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10661
10662
41144253 106632020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10664
10665 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10666 (read_loclist_index): New function definition.
10667 (lookup_loclist_base): New function definition.
10668 (read_loclist_header): New function definition.
10669 (dwarf2_cu): Add loclist_base and loclist_header field.
10670 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10671 (read_full_die_1): Read the value of DW_AT_loclists_base.
10672 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10673 (read_attribute_value): Handle DW_FORM_loclistx.
10674 (skip_one_die): Handle DW_FORM_loclistx.
10675 (loclist_header): New structure declaration.
10676 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10677
9f4e76a4
SM
106782020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10679
10680 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10681 constructor. Remove `addr` parameter from other constructor and
10682 add `per_cu` parameter.
10683 * dwarf2/read.c (create_partial_symtab): Update.
10684
25c11aca
TV
106852020-04-07 Tom de Vries <tdevries@suse.de>
10686
10687 PR symtab/25796
10688 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10689 (partial_die_info::fixup): Inherit has_const_value.
10690
5707e24b
TV
106912020-04-07 Tom de Vries <tdevries@suse.de>
10692
10693 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10694 symbols without address.
10695
05f00e22
KR
106962020-04-06 Kamil Rytarowski <n54@gmx.com>
10697
10698 * nbsd-nat.h (struct thread_info): Add forward declaration.
10699 (nbsd_nat_target::thread_alive): Add.
10700 (nbsd_nat_target::thread_name): Likewise.
10701 (nbsd_nat_target::update_thread_list): Likewise.
10702 (update_thread_list::post_attach): Likewise.
10703 (post_attach::pid_to_str): Likewise.
10704 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10705 (nbsd_thread_lister): Add.
10706 (nbsd_nat_target::thread_alive): Likewise.
10707 (nbsd_nat_target::thread_name): Likewise.
10708 (nbsd_add_threads): Likewise.
10709 (update_thread_list::post_attach): Likewise.
10710 (nbsd_nat_target::update_thread_list): Likewise.
10711 (post_attach::pid_to_str): Likewise.
10712
6ee448cc
TT
107132020-04-06 Tom Tromey <tromey@adacore.com>
10714
10715 * ada-valprint.c (print_variant_part): Extract the variant field.
10716 (print_field_values): Use the field as the outer value when
10717 recursing.
10718
dea34e8c
TT
107192020-04-06 Tom Tromey <tromey@adacore.com>
10720
10721 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10722 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10723 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10724 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10725 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10726
93689ce9
TT
107272020-04-06 Tom Tromey <tromey@adacore.com>
10728
10729 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10730 TYPE_CODE_ERROR.
10731
79743962
KR
107322020-04-06 Kamil Rytarowski <n54@gmx.com>
10733
10734 * nbsd-tdep.c: Include "gdbarch.h".
10735 Define enum with NetBSD signal numbers.
10736 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10737 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10738 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10739 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10740 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10741 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10742 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10743 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10744 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10745 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10746 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10747 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10748
9e7c9a03
HD
107492020-04-03 Hannes Domani <ssbssa@yahoo.de>
10750
10751 PR gdb/25325
10752 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10753
d9e49b61
TT
107542020-04-03 Tom Tromey <tromey@adacore.com>
10755
10756 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10757 Read constant block.
10758
e0fc5c3f
SM
107592020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10760
10761 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10762 (gdb_bfd_get_full_section_contents): New declaration.
10763 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10764 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10765 gdb_bfd_get_full_section_contents.
10766
e2ff18a0
SM
107672020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10768
10769 * exec.c (build_section_table): Replace internal_error with
10770 gdb_assert.
10771 (section_table_xfer_memory_partial): Likewise.
10772 * mdebugread.c (parse_partial_symbols): Likewise.
10773 * psymtab.c (lookup_partial_symbol): Likewise.
10774 * utils.c (wrap_here): Likewise.
10775
0830d301
TT
107762020-04-02 Tom Tromey <tromey@adacore.com>
10777
10778 * f-lang.c (build_fortran_types): Use arch_type to initialize
10779 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10780
e7da7f8f
TT
107812020-04-02 Tom Tromey <tromey@adacore.com>
10782
10783 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10784 of attributes.
10785
c90d28ac
AB
107862020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10787 Bernd Edlinger <bernd.edlinger@hotmail.de>
10788 Tom Tromey <tromey@adacore.com>
10789
10790 * buildsym.c (buildsym_compunit::record_line): Remove
10791 deduplication code.
10792
1aa98955
TV
107932020-04-02 Tom de Vries <tdevries@suse.de>
10794
10795 PR ada/24671
10796 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10797
d3214198
TV
107982020-04-02 Tom de Vries <tdevries@suse.de>
10799
10800 * dwarf2/read.c (dwarf2_gdb_index_functions,
10801 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10802 NULL.
10803 * psymtab.c (psym_lookup_global_symbol_language): New function.
10804 (psym_functions): Init psym_lookup_global_symbol_language with
10805 psym_lookup_global_symbol_language.
10806 * symfile-debug.c (debug_sym_quick_functions): Init
10807 lookup_global_symbol_language with NULL.
10808 * symfile.c (set_initial_language): Remove fixme comment.
10809 * symfile.h (struct quick_symbol_functions): Add
10810 lookup_global_symbol_language.
10811 * symtab.c (find_quick_global_symbol_language): New function.
10812 (find_main_name): Use find_quick_global_symbol_language.
10813
2836752f
SM
108142020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10815
10816 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10817
64dc2d4b
BE
108182020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10819
10820 * buildsym.c (record_line): Fix undefined behavior and preserve
10821 lines at eof.
10822
bbe3dc41
BE
108232020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10824
10825 * buildsym.c (record_line): Fix the resizing condition.
10826
6b4a335b
TT
108272020-04-01 Tom Tromey <tom@tromey.com>
10828
10829 * value.h (value_literal_complex): Add comment.
10830 * valops.c (value_literal_complex): Refer to value.h.
10831
3638a098
TT
108322020-04-01 Tom Tromey <tom@tromey.com>
10833
10834 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10835 (scalar_type): New rule, from typebase.
10836 (typebase): Use scalar_type. Recognize complex types.
10837 (field_name): Handle FLOAT_KEYWORD.
10838 (ident_tokens): Add _Complex and __complex__.
10839
c34e8714
TT
108402020-04-01 Tom Tromey <tom@tromey.com>
10841
10842 PR exp/25299:
10843 * valarith.c (promotion_type, complex_binop): New functions.
10844 (scalar_binop): Handle complex numbers. Use promotion_type.
10845 (value_pos, value_neg, value_complement): Handle complex numbers.
10846
fa649bb7
TT
108472020-04-01 Tom Tromey <tom@tromey.com>
10848
10849 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10850 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10851 (parse_number): Handle complex numbers.
10852
981c08ce
TT
108532020-04-01 Tom Tromey <tom@tromey.com>
10854
10855 * c-valprint.c (c_decorations): Change complex suffix to "i".
10856
4c99290d
TT
108572020-04-01 Tom Tromey <tom@tromey.com>
10858
10859 * valprint.c (generic_value_print_complex): Use accessors.
10860 * value.h (value_real_part, value_imaginary_part): Declare.
10861 * valops.c (value_real_part, value_imaginary_part): New
10862 functions.
10863 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10864
5b930b45
TT
108652020-04-01 Tom Tromey <tom@tromey.com>
10866
10867 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10868 (read_range_type): Update.
10869 * mdebugread.c (basic_type): Update.
10870 * go-lang.c (build_go_types): Use init_complex_type.
10871 * gdbtypes.h (struct main_type) <complex_type>: New member.
10872 (init_complex_type): Update.
10873 (arch_complex_type): Don't declare.
10874 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10875 Make name if none given. Use alloc_type_copy. Look for cached
10876 complex type.
10877 (arch_complex_type): Remove.
10878 (gdbtypes_post_init): Use init_complex_type.
10879 * f-lang.c (build_fortran_types): Use init_complex_type.
10880 * dwarf2/read.c (read_base_type): Update.
10881 * d-lang.c (build_d_types): Use init_complex_type.
10882 * ctfread.c (read_base_type): Update.
10883
53cccef1
TBA
108842020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10885
10886 * infrun.c (stop_all_threads): Update assertion, plus when
10887 stopping threads, take into account that we might be trying
10888 to stop an all-stop target.
10889 (stop_waiting): Call 'stop_all_threads' if there exists a
10890 non-stop target.
10891
a0714d30
TBA
108922020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10893
10894 * target.h (exists_non_stop_target): New function declaration.
10895 * target.c (exists_non_stop_target): New function.
10896
60e22c1e
HD
108972020-04-01 Hannes Domani <ssbssa@yahoo.de>
10898
10899 PR gdb/24789
10900 * eval.c (is_integral_or_integral_reference): New function.
10901 (evaluate_subexp_standard): Allow integer references in
10902 pointer arithmetic.
10903
e139a727
TBA
109042020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10905
10906 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10907 check for no ptid in the stop reply when the target is non-stop.
10908
e0802d59
TT
109092020-04-01 Tom Tromey <tromey@adacore.com>
10910
10911 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10912 "name" parameter to rvalue reference. Initialize m_name_holder.
10913 <lookup_name_info>: New overloads.
10914 <name>: Return gdb::string_view.
10915 <c_str>: New method.
10916 <make_ignore_params>: Update.
10917 <search_name_hash>: Update.
10918 <language_lookup_name>: Return const char *.
10919 <m_name>: Change type.
10920 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10921 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10922 (lookup_name_info::match_any): Update.
10923 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10924 Update.
10925 * minsyms.c (linkage_name_str): Update.
10926 * language.c (default_symbol_name_matcher): Update.
10927 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10928 Update.
10929 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10930 (ada_lookup_name_info::ada_lookup_name_info): Update.
10931 (literal_symbol_name_matcher): Update.
10932
8c072cb6
TT
109332020-04-01 Tom Tromey <tromey@adacore.com>
10934
10935 * psymtab.c (psymtab_search_name): Remove function.
10936 (psym_lookup_symbol): Create search name and lookup name here.
10937 (lookup_partial_symbol): Remove "name" parameter; add
10938 lookup_name.
10939 (psym_expand_symtabs_for_function): Update.
10940
6f29a534
TT
109412020-03-31 Joel Jones <joelkevinjones@gmail.com>
10942
10943 PR tui/25597:
10944 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10945
af62665e
TT
109462020-03-31 Tom Tromey <tromey@adacore.com>
10947
10948 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10949 memcpy.
10950
d1a89da5
NC
109512020-03-30 Nelson Chu <nelson.chu@sifive.com>
10952
10953 * features/riscv/32bit-csr.xml: Regenerated.
10954 * features/riscv/64bit-csr.xml: Regenerated.
10955
d8af9068
TT
109562020-03-30 Tom Tromey <tromey@adacore.com>
10957
10958 * ada-valprint.c (print_variant_part): Update.
10959 * ada-lang.h (ada_which_variant_applies): Update.
10960 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10961 outer_valaddr parameters; replace with "outer" value parameter.
10962 (to_fixed_variant_branch_type): Update.
10963
227c0bf4
PFC
109642020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10965
10966 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10967 <list>. Remove inclusion of observable.h.
10968 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10969 (struct arch_lwp_info): New struct.
10970 (class ppc_linux_dreg_interface): New class.
10971 (struct ppc_linux_process_info): New struct.
10972 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10973 <low_new_clone, low_forget_process, low_prepare_to_resume>
10974 <copy_thread_dreg_state, mark_thread_stale>
10975 <mark_debug_registers_changed, register_hw_breakpoint>
10976 <clear_hw_breakpoint, register_wp, clear_wp>
10977 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10978 <num_memory_accesses, get_trigger_type>
10979 <create_watchpoint_request, hwdebug_point_cmp>
10980 <init_arch_lwp_info, get_arch_lwp_info>
10981 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10982 methods.
10983 <struct ptid_hash>: New inner struct.
10984 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10985 members.
10986 (saved_dabr_value, hwdebug_info, max_slots_number)
10987 (struct hw_break_tuple, struct thread_points, ppc_threads)
10988 (have_ptrace_hwdebug_interface)
10989 (hwdebug_find_thread_points_by_tid)
10990 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10991 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10992 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10993 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10994 use m_dreg_interface.
10995 (hwdebug_point_cmp): Change to...
10996 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10997 reference arguments instead of pointers.
10998 (ppc_linux_nat_target::ranged_break_num_registers): Use
10999 m_dreg_interface.
11000 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11001 m_dreg_interface. Call register_hw_breakpoint.
11002 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11003 m_dreg_interface. Call clear_hw_breakpoint.
11004 (get_trigger_type): Change to...
11005 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11006 comment.
11007 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11008 use m_dreg_interface. Call register_hw_breakpoint.
11009 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11010 use m_dreg_interface. Call clear_hw_breakpoint.
11011 (can_use_watchpoint_cond_accel): Change to...
11012 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11013 method. Update comment, use m_dreg_interface and
11014 m_process_info.
11015 (calculate_dvc): Change to...
11016 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11017 m_dreg_interface.
11018 (num_memory_accesses): Change to...
11019 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11020 (check_condition): Change to...
11021 (ppc_linux_nat_target::check_condition): ...this method.
11022 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11023 comment, use m_dreg_interface.
11024 (create_watchpoint_request): Change to...
11025 (ppc_linux_nat_target::create_watchpoint_request): ...this
11026 method. Use m_dreg_interface.
11027 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11028 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11029 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11030 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11031 (ppc_linux_nat_target::low_forget_process)
11032 (ppc_linux_nat_target::low_new_fork)
11033 (ppc_linux_nat_target::low_new_clone)
11034 (ppc_linux_nat_target::low_delete_thread)
11035 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11036 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11037 only call mark_thread_stale.
11038 (ppc_linux_thread_exit): Remove.
11039 (ppc_linux_nat_target::stopped_data_address): Change to...
11040 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11041 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11042 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11043 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11044 comment. Call low_stopped_data_address.
11045 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11046 m_dreg_interface.
11047 (ppc_linux_nat_target::masked_watch_num_registers): Use
11048 m_dreg_interface.
11049 (ppc_linux_nat_target::copy_thread_dreg_state)
11050 (ppc_linux_nat_target::mark_thread_stale)
11051 (ppc_linux_nat_target::mark_debug_registers_changed)
11052 (ppc_linux_nat_target::register_hw_breakpoint)
11053 (ppc_linux_nat_target::clear_hw_breakpoint)
11054 (ppc_linux_nat_target::register_wp)
11055 (ppc_linux_nat_target::clear_wp)
11056 (ppc_linux_nat_target::init_arch_lwp_info)
11057 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11058 (_initialize_ppc_linux_nat): Remove observer callback.
11059
4db10d8f
PFC
110602020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11061
11062 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11063 (ppc_linux_nat_target::auxv_parse)
11064 (ppc_linux_nat_target::read_description)
11065 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11066 Move up.
11067
1310c1b0
PFC
110682020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11069
11070 * linux-nat.h (low_new_clone): New method.
11071 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11072
69b037c3
SM
110732020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11074
11075 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11076 (dbx_expand_psymtab): ... this.
11077 (start_psymtab): Update.
11078 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11079 (mdebug_expand_psymtab): ... this.
11080 (parse_partial_symbols): Update.
11081 (new_psymtab): Update.
11082 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11083 (xcoff_expand_psymtab): ... this.
11084 (xcoff_start_psymtab): Update.
11085
48993951
SM
110862020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11087
11088 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11089 <expand_dependencies>: ... this.
11090 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11091 (partial_symtab::expand_dependencies): ... this.
11092 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11093 Update.
11094 (dwarf2_psymtab::expand_psymtab): Update.
11095 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11096 * mdebugread.c (psymtab_to_symtab_1): Update.
11097 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11098
3ad83046
SM
110992020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11100
11101 * psympriv.h (discard_psymtab): Remove.
11102 * dbxread.c (dbx_end_psymtab): Update.
11103 * xcoffread.c (xcoff_end_psymtab): Update.
11104
4d1b9ab6
TT
111052020-03-28 Tom Tromey <tom@tromey.com>
11106
11107 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11108 comment.
11109
f1749218
TT
111102020-03-28 Tom Tromey <tom@tromey.com>
11111
11112 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11113
ebea7626
HD
111142020-03-27 Hannes Domani <ssbssa@yahoo.de>
11115
11116 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11117
a879b4d5
JB
111182020-03-26 John Baldwin <jhb@FreeBSD.org>
11119
11120 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11121
0826b30a
TT
111222020-03-26 Tom Tromey <tom@tromey.com>
11123
11124 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11125 (mark_common_block_symbol_computed, read_tag_string_type)
11126 (attr_to_dynamic_prop, read_subrange_type): Update.
11127 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11128 to be methods on struct attribute.
11129 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11130 (read_call_site_scope, partial_die_info::read)
11131 (partial_die_info::read, lookup_die_type, follow_die_ref):
11132 Update.
11133 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11134 from dwarf2_get_ref_die_offset.
11135 (attribute::constant_value): New method, from
11136 dwarf2_get_attr_constant_value.
11137 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11138 Declare method.
11139 <constant_value>: New method.
11140
2b2558bf
TT
111412020-03-26 Tom Tromey <tom@tromey.com>
11142
11143 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11144 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11145 (dwarf_type_encoding_name): Move to stringify.c.
11146 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11147 * dwarf2/stringify.c: New file.
11148 * dwarf2/stringify.h: New file.
11149
eeb64781
TT
111502020-03-26 Tom Tromey <tom@tromey.com>
11151
11152 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11153 Rewrite.
11154
a39fdb41
TT
111552020-03-26 Tom Tromey <tom@tromey.com>
11156
11157 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11158 methods.
11159 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11160 (lookup_ranges_base): Likewise.
11161 (read_cutu_die_from_dwo, read_full_die_1): Update.
11162
436c571c
TT
111632020-03-26 Tom Tromey <tom@tromey.com>
11164
11165 * dwarf2/read.c (read_import_statement, read_file_scope)
11166 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11167 (read_lexical_block_scope, read_call_site_scope)
11168 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11169 (handle_struct_member_die, process_structure_scope)
11170 (update_enumeration_type_from_children)
11171 (process_enumeration_scope, read_array_type, read_common_block)
11172 (read_namespace, read_module, read_subroutine_type): Update.
11173 (sibling_die): Remove.
11174
052c8bb8
TT
111752020-03-26 Tom Tromey <tom@tromey.com>
11176
11177 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11178 (build_type_psymtabs_reader, read_structure_type)
11179 (read_enumeration_type, read_full_die_1): Update.
11180 (dwarf2_attr_no_follow): Move to die.h.
11181 * dwarf2/die.h (struct die_info) <attr>: New method.
11182
2b24b6e4
TT
111832020-03-26 Tom Tromey <tom@tromey.com>
11184
11185 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11186 <base_address>: Now an optional.
11187 (dwarf2_find_base_address, dwarf2_rnglists_process)
11188 (dwarf2_ranges_process, fill_in_loclist_baton)
11189 (dwarf2_symbol_mark_computed): Update.
11190
c2d50fd0
TT
111912020-03-26 Tom Tromey <tom@tromey.com>
11192
11193 * dwarf2/read.c (struct die_info): Move to die.h.
11194 * dwarf2/die.h: New file.
11195
0df7ad3a
TT
111962020-03-26 Tom Tromey <tom@tromey.com>
11197
11198 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11199 * dwarf2/read.c
11200 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11201 Move to line-header.c.
11202 (read_checked_initial_length_and_offset, read_formatted_entries):
11203 Likewise.
11204 (dwarf_decode_line_header): Split into two.
11205 * dwarf2/line-header.c
11206 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11207 Move from read.c.
11208 (read_checked_initial_length_and_offset, read_formatted_entries):
11209 Likewise.
11210 (dwarf_decode_line_header): New function, split from read.c.
11211
86c0bb4c
TT
112122020-03-26 Tom Tromey <tom@tromey.com>
11213
11214 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11215 Declare method.
11216 * dwarf2/read.c (read_attribute_value): Update.
11217 (dwarf2_per_objfile::read_line_string): Rename from
11218 read_indirect_line_string.
11219 (read_formatted_entries): Update.
11220
2ef46c2f
TT
112212020-03-26 Tom Tromey <tom@tromey.com>
11222
11223 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11224 variable.
11225
4f9c1eda
TT
112262020-03-26 Tom Tromey <tom@tromey.com>
11227
11228 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11229 const.
11230 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11231 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11232 parameter const.
11233
5a0e026f
TT
112342020-03-26 Tom Tromey <tom@tromey.com>
11235
11236 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11237 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11238 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11239 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11240
8844c11b
TT
112412020-03-26 Tom Tromey <tom@tromey.com>
11242
11243 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11244 file_names_size, file_full_name, file_file_name>: Use const.
11245 <file_name_at, file_names>: Add const overload.
11246 * dwarf2/line-header.c (line_header::file_file_name)
11247 (line_header::file_full_name): Update.
11248
c90ec28a
TT
112492020-03-26 Tom Tromey <tom@tromey.com>
11250
11251 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11252 (macro_start_file, consume_improper_spaces)
11253 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11254 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11255 (dwarf_decode_macros): Move to macro.c.
11256 * dwarf2/macro.c: New file.
11257 * dwarf2/macro.h: New file.
11258 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11259
4f44ae6c
TT
112602020-03-26 Tom Tromey <tom@tromey.com>
11261
11262 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11263 method.
11264 * dwarf2/section.c: New method. From
11265 read_indirect_string_at_offset_from.
11266 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11267 (read_indirect_string_at_offset_from): Move to section.c.
11268 (read_indirect_string_at_offset): Rewrite.
11269 (read_indirect_line_string_at_offset): Remove.
11270 (read_indirect_string, read_indirect_line_string)
11271 (dwarf_decode_macro_bytes): Update.
11272
a0194fa8
TT
112732020-03-26 Tom Tromey <tom@tromey.com>
11274
11275 * dwarf2/section.h (struct dwarf2_section_info)
11276 <overload_complaint>: Declare.
11277 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11278 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11279 Rename from dwarf2_section_buffer_overflow_complaint.
11280 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11281 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11282
3d27bbdb
TT
112832020-03-26 Tom Tromey <tom@tromey.com>
11284
11285 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11286 Declare.
11287 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11288 Move from read.c.
11289 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11290 to section.c.
11291
9eac9650
TT
112922020-03-26 Tom Tromey <tom@tromey.com>
11293
11294 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11295
bf80d710
TT
112962020-03-26 Tom Tromey <tom@tromey.com>
11297
11298 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11299 "builder".
11300 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11301 parameter.
11302 (dwarf_decode_macros): Update.
11303
0314b390
TT
113042020-03-26 Tom Tromey <tom@tromey.com>
11305
11306 * dwarf2/read.c (read_attribute_value): Update.
11307 (read_indirect_string_from_dwz): Move to dwz.c; change into
11308 method.
11309 (dwarf_decode_macro_bytes): Update.
11310 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11311 * dwarf2/dwz.c: New file.
11312 * Makefile.in (COMMON_SFILES): Add dwz.c.
11313
9fda78b6
TT
113142020-03-26 Tom Tromey <tom@tromey.com>
11315
11316 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11317 * dwarf2/read.c: Add include.
11318 * dwarf2/index-write.c: Add include.
11319 * dwarf2/index-cache.c: Add include.
11320 * dwarf2/dwz.h: New file.
11321
33aa3c10
TT
113222020-03-25 Tom Tromey <tom@tromey.com>
11323
11324 * compile/compile-object-load.c (get_out_value_type): Mention
11325 correct symbol name in error message.
11326
d503b685
HD
113272020-03-25 Hannes Domani <ssbssa@yahoo.de>
11328
11329 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11330
7b1eff95
TV
113312020-03-25 Tom de Vries <tdevries@suse.de>
11332
11333 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11334 * symmisc.c (dump_symtab_1): Print user and includes fields.
11335 (maintenance_info_symtabs): Same.
11336
dd895392
AB
113372020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11338
11339 PR gdb/25534
11340 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11341 (riscv_regcache_cooked_write): New function.
11342 (riscv_push_dummy_call): Use new function.
11343 (riscv_return_value): Likewise.
11344
5ab2fbf1
SM
113452020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11346
11347 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11348 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11349 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11350 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11351 * infrun.c (follow_fork): Likewise.
11352 (follow_fork_inferior): Likewise.
11353 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11354 * linux-nat.h (class linux_nat_target): Likewise.
11355 * remote.c (class remote_target) <follow_fork>: Likewise.
11356 (remote_target::follow_fork): Likewise.
11357 * target-delegates.c: Re-generate.
11358 * target.c (default_follow_fork): Likewise.
11359 (target_follow_fork): Likewise.
11360 * target.h (struct target_ops) <follow_fork>: Likewise.
11361 (target_follow_fork): Likewise.
11362
a64fafb5
TV
113632020-03-24 Tom de Vries <tdevries@suse.de>
11364
11365 * psymtab.c (maintenance_info_psymtabs): Print user field.
11366
fe26d3a3
TT
113672020-03-20 Tom Tromey <tromey@adacore.com>
11368
11369 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11370 const.
11371 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11372 const.
11373
c884cc46
SM
113742020-03-20 Simon Marchi <simon.marchi@efficios.com>
11375
11376 * ptrace.m4: Don't check for ptrace declaration.
11377 * config.in: Re-generate.
11378 * configure: Re-generate.
11379 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11380 not defined.
11381
1ff700c2
KR
113822020-03-20 Kamil Rytarowski <n54@gmx.com>
11383
11384 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11385 `PTRACE_TYPE_RET'.
11386 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11387 * sparc-nat.c (gdb_ptrace): Likewise.
11388 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11389
f7d4f0b1
TT
113902020-03-20 Tom Tromey <tromey@adacore.com>
11391
11392 * c-exp.y (lex_one_token): Fix assert.
11393
f67210ff
TT
113942020-03-20 Tom Tromey <tromey@adacore.com>
11395
11396 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11397 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11398 strncpy call.
11399
1773be9e
TT
114002020-03-20 Tom Tromey <tromey@adacore.com>
11401
11402 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11403
70304be9
TT
114042020-03-20 Tom Tromey <tromey@adacore.com>
11405
11406 * ada-valprint.c (print_variant_part): Remove parameters; switch
11407 to value-based API.
11408 (print_field_values): Likewise.
11409 (ada_val_print_struct_union): Likewise.
11410 (ada_value_print_1): Update.
11411
9faa006d
KR
114122020-03-20 Kamil Rytarowski <n54@gmx.com>
11413
11414 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11415 nbsd_nat_target instead of inf_ptrace_target.
11416 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11417 nbsd_nat_target.
11418
4a90f062
KR
114192020-03-20 Kamil Rytarowski <n54@gmx.com>
11420
11421 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11422 it to the ptrace call.
11423 * (store_registers): Likewise.
11424
114252020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11426
11427 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11428 it to the ptrace call.
11429 * (store_registers): Likewise.
11430
2d07da27
LM
114312020-03-19 Luis Machado <luis.machado@linaro.org>
11432
11433 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11434 valid, fetch vg value from ptrace.
11435
f09db380
KR
114362020-03-19 Kamil Rytarowski <n54@gmx.com>
11437 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11438 * inf-ptrace.c: Likewise.
11439 * (gdb_ptrace): Add.
11440 * (inf_ptrace_target::resume): Update.
11441 * (inf_ptrace_target::xfer_partial): Likewise.
11442 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11443 * (inf_ptrace_peek_poke): Update.
11444
fcc7376e
KR
114452020-03-19 Kamil Rytarowski <n54@gmx.com>
11446
11447 * x86-bsd-nat.c (gdb_ptrace): New.
11448 * (x86bsd_dr_set): Add new argument `ptid'.
11449 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11450 x86bsd_dr_set_addr): Update.
11451
cada5fc9
AB
114522020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11453
11454 * remote.c (remote_target::process_stop_reply): Handle events for
11455 all threads differently.
11456
19a2740f
AB
114572020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11458
11459 * completer.c (completion_tracker::remove_completion): Define new
11460 function.
11461 * completer.h (completion_tracker::remove_completion): Declare new
11462 function.
11463 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11464 when adding a C++ function symbol.
11465
724fd9ba
AB
114662020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11467
11468 * completer.c (completion_tracker::completion_hash_entry): Define
11469 new class.
11470 (advance_to_filename_complete_word_point): Call
11471 recompute_lowest_common_denominator.
11472 (completion_tracker::completion_tracker): Call discard_completions
11473 to setup the hash table.
11474 (completion_tracker::discard_completions): Allow for being called
11475 from the constructor, pass new equal function, and element deleter
11476 when constructing the hash table. Initialise new class member
11477 variables.
11478 (completion_tracker::maybe_add_completion): Remove use of
11479 m_entries_vec, and store more information into m_entries_hash.
11480 (completion_tracker::recompute_lcd_visitor): New function, most
11481 content taken from...
11482 (completion_tracker::recompute_lowest_common_denominator):
11483 ...here, this now just visits each item in the hash calling the
11484 above visitor.
11485 (completion_tracker::build_completion_result): Remove use of
11486 m_entries_vec, call recompute_lowest_common_denominator.
11487 * completer.h (completion_tracker::have_completions): Remove use
11488 of m_entries_vec.
11489 (completion_tracker::completion_hash_entry): Declare new class.
11490 (completion_tracker::recompute_lowest_common_denominator): Change
11491 function signature.
11492 (completion_tracker::recompute_lcd_visitor): Declare new function.
11493 (completion_tracker::m_entries_vec): Delete.
11494 (completion_tracker::m_entries_hash): Initialize to NULL.
11495 (completion_tracker::m_lowest_common_denominator_valid): New
11496 member variable.
11497 (completion_tracker::m_lowest_common_denominator_max_length): New
11498 member variable.
11499
5a82b8a1
KR
115002020-03-17 Kamil Rytarowski <n54@gmx.com>
11501
11502 * regformats/regdef.h: Put reg in gdb namespace.
11503
fb516a69
KR
115042020-03-17 Kamil Rytarowski <n54@gmx.com>
11505
11506 * i386-bsd-nat.c (gdb_ptrace): New.
11507 * (i386bsd_fetch_inferior_registers,
11508 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11509 * (i386bsd_fetch_inferior_registers,
11510 i386bsd_store_inferior_registers) Use gdb_ptrace.
11511
1c0aa1fb
KR
115122020-03-17 Kamil Rytarowski <n54@gmx.com>
11513
11514 * amd64-bsd-nat.c (gdb_ptrace): New.
11515 * (amd64bsd_fetch_inferior_registers,
11516 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11517 * (amd64bsd_fetch_inferior_registers,
11518 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11519
5ccd2fb7
KR
115202020-03-17 Kamil Rytarowski <n54@gmx.com>
11521
11522 * user-regs.c (user_reg::read): Rename to...
11523 (user_reg::xread): ...this.
11524 * (append_user_reg): Rename argument `read' to `xread'.
11525 * (user_reg_add_builtin): Likewise.
11526 * (user_reg_add): Likewise.
11527 * (value_of_user_reg): Likewise.
11528
2108a63a
KR
115292020-03-17 Kamil Rytarowski <n54@gmx.com>
11530
11531 * sparc-nat.c (gdb_ptrace): New.
11532 * sparc-nat.c (sparc_fetch_inferior_registers)
11533 (sparc_store_inferior_registers) Remove obsolete comment.
11534 * sparc-nat.c (sparc_fetch_inferior_registers)
11535 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11536 * sparc-nat.c (sparc_fetch_inferior_registers)
11537 (sparc_store_inferior_registers) Use gdb_ptrace.
11538
a225c9a8
KR
115392020-03-17 Kamil Rytarowski <n54@gmx.com>
11540
11541 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11542 it to the ptrace call.
11543 * sh-nbsd-nat.c (store_registers): Likewise.
11544
98097623
KR
115452020-03-17 Kamil Rytarowski <n54@gmx.com>
11546
11547 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11548 nbsd_nat_target instead of inf_ptrace_target.
11549 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11550 nbsd_nat_target.
11551
9e38d619
KR
115522020-03-17 Kamil Rytarowski <n54@gmx.com>
11553
11554 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11555
a2ecbe9f
KR
115562020-03-17 Kamil Rytarowski <n54@gmx.com>
11557
11558 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11559 <sys/sysctl.h>.
11560 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11561
58990295
TV
115622020-03-17 Tom de Vries <tdevries@suse.de>
11563
11564 PR gdb/23710
11565 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11566 fields.
11567 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11568 fields.
11569 (process_imported_unit_die): Skip import of c++ CUs.
11570
771dd3a8
TT
115712020-03-16 Tom Tromey <tom@tromey.com>
11572
11573 * p-valprint.c (pascal_object_print_value): Initialize
11574 base_value.
11575
817a7585
AK
115762020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11577 Shahab Vahedi <shahab@synopsys.com>
11578
11579 * Makefile.in: Add arch/arc.o
11580 * configure.tgt: Likewise.
11581 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11582 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11583 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11584 * arc-tdep.h (arc_read_description): Add proto type.
11585 * arch/arc.c: New file.
11586 * arch/arc.h: Likewise.
11587 * features/Makefile: Replace old target descriptions with new.
11588 * features/arc-arcompact.c: Remove.
11589 * features/arc-arcompact.xml: Likewise.
11590 * features/arc-v2.c: Likewise
11591 * features/arc-v2.xml: Likewise
11592 * features/arc/aux-arcompact.xml: New file.
11593 * features/arc/aux-v2.xml: Likewise.
11594 * features/arc/core-arcompact.xml: Likewise.
11595 * features/arc/core-v2.xml: Likewise.
11596 * features/arc/aux-arcompact.c: Generate.
11597 * features/arc/aux-v2.c: Likewise.
11598 * features/arc/core-arcompact.c: Likewise.
11599 * features/arc/core-v2.c: Likewise.
11600 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11601
67430cd0
TT
116022020-03-16 Tom Tromey <tromey@adacore.com>
11603
11604 PR gdb/25663:
11605 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11606 putting value into bcache.
11607
30efb6c7
SM
116082020-03-16 Simon Marchi <simon.marchi@efficios.com>
11609
11610 PR gdb/21500
11611 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11612 to...
11613 (amd64_windows_init_abi_common): ... this. Don't set size of
11614 long type.
11615 (amd64_windows_init_abi): New function.
11616 (amd64_cygwin_init_abi): New function.
11617 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11618 the Cygwin OS ABI.
11619 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11620 comment.
11621
8db52437
SM
116222020-03-16 Simon Marchi <simon.marchi@efficios.com>
11623
11624 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11625 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11626 (pe_import_directory_entry): New struct type.
11627 (is_linked_with_cygwin_dll): New function.
11628 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11629 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11630 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11631
5982a56a
SM
116322020-03-16 Simon Marchi <simon.marchi@efficios.com>
11633
11634 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11635 i386_cygwin_core_osabi_sniffer.
11636
7a1998df
SM
116372020-03-16 Simon Marchi <simon.marchi@efficios.com>
11638
11639 * i386-cygwin-tdep.c: Rename to...
11640 * i386-windows-tdep.c: ... this.
11641 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11642 i386-windows-tdep.c.
11643 * configure.tgt: Likewise.
11644
053205cc
SM
116452020-03-16 Simon Marchi <simon.marchi@efficios.com>
11646
11647 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11648 * osabi.c (gdb_osabi_names): Add "Windows".
11649 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11650 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11651 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11652 i386_cygwin_osabi_sniffer.
11653 (_initialize_i386_cygwin_tdep): Register OS ABI
11654 GDB_OSABI_WINDOWS for i386.
11655 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11656 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11657 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11658 for x86-64.
11659 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11660 when the target matches '*-*-mingw*'.
11661
fe4b2ee6
SM
116622020-03-16 Simon Marchi <simon.marchi@efficios.com>
11663
11664 * defs.h (enum gdb_osabi): Move to...
11665 * osabi.h (enum gdb_osabi): ... here.
11666 * gdbarch.sh: Include osabi.h in gdbarch.h.
11667 * gdbarch.h: Re-generate.
11668
cb9b645d
SM
116692020-03-16 Simon Marchi <simon.marchi@efficios.com>
11670
11671 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11672 function.
11673 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11674
3293bbaf
TT
116752020-03-14 Tom Tromey <tom@tromey.com>
11676
11677 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11678 for C++.
11679 (c_type_print_modifier): Likewise. Add "language" parameter.
11680 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11681 (c_type_print_base_1): Update.
11682 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11683 constants.
11684 * type-stack.c (type_stack::insert): Handle tp_atomic and
11685 tp_restrict.
11686 (type_stack::follow_type_instance_flags): Likewise.
11687 (type_stack::follow_types): Likewise. Merge type-following code.
11688 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11689 (space_identifier, cv_with_space_id)
11690 (const_or_volatile_or_space_identifier_noopt)
11691 (const_or_volatile_or_space_identifier): Remove.
11692 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11693 rules.
11694 (ptr_operator, typebase): Update.
11695 (enum token_flag) <FLAG_C>: New constant.
11696 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11697 "_Atomic".
11698 (lex_one_token): Handle FLAG_C.
11699
154151a6
KR
117002020-03-14 Kamil Rytarowski <n54@gmx.com>
11701
11702 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11703 it to the ptrace call.
11704 * m68k-bsd-nat.c (store_registers): Likewise.
11705
bc107784
KR
117062020-03-14 Kamil Rytarowski <n54@gmx.com>
11707
11708 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11709 gdb_byte *.
11710 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11711 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11712 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11713
01a80117
KR
117142020-03-14 Kamil Rytarowski <n54@gmx.com>
11715
11716 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11717 nbsd_nat_target instead of inf_ptrace_target.
11718 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11719 nbsd_nat_target.
11720
f90280ca
KR
117212020-03-14 Kamil Rytarowski <n54@gmx.com>
11722
11723 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11724 register_t.
11725
6def66f1
KR
117262020-03-14 Kamil Rytarowski <n54@gmx.com>
11727
11728 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11729 it to the ptrace call.
11730 * alpha-bsd-nat.c (store_registers): Likewise.
11731
66eaca97
KR
117322020-03-14 Kamil Rytarowski <n54@gmx.com>
11733
11734 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11735 includes.
11736 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11737 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11738 fill_fpregset): Likewise.
11739
4fed520b
KR
117402020-03-14 Kamil Rytarowski <n54@gmx.com>
11741
11742 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11743 nbsd_nat_target instead of inf_ptrace_target.
11744 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11745 nbsd_nat_target.
11746
2190cf06
KR
117472020-03-14 Kamil Rytarowski <n54@gmx.com>
11748
11749 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11750 register_t.
11751
75c56d3d
KR
117522020-03-14 Kamil Rytarowski <n54@gmx.com>
11753
11754 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11755 it to the ptrace call.
11756 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11757 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11758 * arm-nbsd-nat.c (store_register): Likewise.
11759 * arm-nbsd-nat.c (store_regs): Likewise.
11760 * arm-nbsd-nat.c (store_fp_register): Likewise.
11761 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11762
6018d381
KR
117632020-03-14 Kamil Rytarowski <n54@gmx.com>
11764
11765 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11766 nbsd_nat_target instead of inf_ptrace_target.
11767 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11768 nbsd_nat_target.
11769
013f99f0
KR
117702020-03-14 Kamil Rytarowski <n54@gmx.com>
11771
11772 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11773 it to the ptrace call.
11774 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11775
12753073
KR
117762020-03-14 Kamil Rytarowski <n54@gmx.com>
11777
6227b330
KR
11778 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11779 it to the ptrace call.
11780 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11781
117822020-03-14 Kamil Rytarowski <n54@gmx.com>
11783
11784 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11785 gdb_byte *.
12753073
KR
11786 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11787
d5be5fa4
KR
117882020-03-14 Kamil Rytarowski <n54@gmx.com>
11789
11790 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11791 instead of inf_ptrace_target.
11792 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11793 nbsd_nat_target.
11794
8110f842
KR
117952020-03-14 Kamil Rytarowski <n54@gmx.com>
11796
11797 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11798 register_t.
11799
52feded7
KR
118002020-03-14 Kamil Rytarowski <n54@gmx.com>
11801
11802 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11803 register_t.
11804
25567eee
KR
118052020-03-14 Kamil Rytarowski <n54@gmx.com>
11806
11807 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11808 register_t.
11809
426a9c18
TT
118102020-03-13 Tom Tromey <tom@tromey.com>
11811
11812 * value.h (val_print): Don't declare.
11813 * valprint.h (val_print_array_elements)
11814 (val_print_scalar_formatted, generic_val_print): Don't declare.
11815 * valprint.c (generic_val_print_array): Take a struct value.
11816 (generic_val_print_ptr, generic_val_print_memberptr)
11817 (generic_val_print_bool, generic_val_print_int)
11818 (generic_val_print_char, generic_val_print_complex)
11819 (generic_val_print): Remove.
11820 (generic_value_print): Update.
11821 (do_val_print): Remove unused parameters. Don't call
11822 la_val_print.
11823 (val_print): Remove.
11824 (common_val_print): Update. Don't call value_check_printable.
11825 (val_print_scalar_formatted, val_print_array_elements): Remove.
11826 * rust-lang.c (rust_val_print): Remove.
11827 (rust_language_defn): Update.
11828 * p-valprint.c (pascal_val_print): Remove.
11829 (pascal_value_print_inner): Update.
11830 (pascal_object_print_val_fields, pascal_object_print_val):
11831 Remove.
11832 (pascal_object_print_static_field): Update.
11833 * p-lang.h (pascal_val_print): Don't declare.
11834 * p-lang.c (pascal_language_defn): Update.
11835 * opencl-lang.c (opencl_language_defn): Update.
11836 * objc-lang.c (objc_language_defn): Update.
11837 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11838 * m2-lang.h (m2_val_print): Don't declare.
11839 * m2-lang.c (m2_language_defn): Update.
11840 * language.h (struct language_defn) <la_val_print>: Remove.
11841 * language.c (unk_lang_value_print_inner): Rename. Change
11842 argument types.
11843 (unknown_language_defn, auto_language_defn): Update.
11844 * go-valprint.c (go_val_print): Remove.
11845 * go-lang.h (go_val_print): Don't declare.
11846 * go-lang.c (go_language_defn): Update.
11847 * f-valprint.c (f_val_print): Remove.
11848 * f-lang.h (f_value_print): Don't declare.
11849 * f-lang.c (f_language_defn): Update.
11850 * d-valprint.c (d_val_print): Remove.
11851 * d-lang.h (d_value_print): Don't declare.
11852 * d-lang.c (d_language_defn): Update.
11853 * cp-valprint.c (cp_print_value_fields)
11854 (cp_print_value_fields_rtti, cp_print_value): Remove.
11855 (cp_print_static_field): Update.
11856 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11857 (c_val_print_struct, c_val_print_union, c_val_print_int)
11858 (c_val_print_memberptr, c_val_print): Remove.
11859 * c-lang.h (c_val_print_array, cp_print_value_fields)
11860 (cp_print_value_fields_rtti): Don't declare.
11861 * c-lang.c (c_language_defn, cplus_language_defn)
11862 (asm_language_defn, minimal_language_defn): Update.
11863 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11864 (ada_val_print_enum): Take a struct value.
11865 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11866 (ada_val_print): Remove.
11867 (ada_value_print_1): Update.
11868 (printable_val_type): Remove.
11869 * ada-lang.h (ada_val_print): Don't declare.
11870 * ada-lang.c (ada_language_defn): Update.
11871
42331a1e
TT
118722020-03-13 Tom Tromey <tom@tromey.com>
11873
11874 * valprint.c (do_val_print): Update.
11875 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11876 a struct value.
11877 (value_to_value_object_no_release): Declare.
11878 * python/py-value.c (value_to_value_object_no_release): New
11879 function.
11880 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11881 struct value.
11882 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11883 function.
11884 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11885 a struct value.
11886 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11887 Declare.
11888 (gdbscm_apply_val_pretty_printer): Take a struct value.
11889 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11890 value.
11891 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11892 value.
11893 * extension-priv.h (struct extension_language_ops)
11894 <apply_val_pretty_printer>: Take a struct value.
11895 * cp-valprint.c (cp_print_value): Create a struct value.
11896 (cp_print_value): Update.
11897
3a916a97
TT
118982020-03-13 Tom Tromey <tom@tromey.com>
11899
11900 * ada-valprint.c (print_field_values): Call common_val_print.
11901
b59eac37
TT
119022020-03-13 Tom Tromey <tom@tromey.com>
11903
11904 * ada-valprint.c (val_print_packed_array_elements): Remove
11905 bitoffset and val parameters. Call common_val_print.
11906 (ada_val_print_string): Remove offset, address, and original_value
11907 parameters.
11908 (ada_val_print_array): Update.
11909 (ada_value_print_array): New function.
11910 (ada_value_print_1): Call it.
11911
03371129
TT
119122020-03-13 Tom Tromey <tom@tromey.com>
11913
11914 * ada-valprint.c (ada_value_print): Use common_val_print.
11915
2e088f8b
TT
119162020-03-13 Tom Tromey <tom@tromey.com>
11917
11918 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11919
39ef85a8
TT
119202020-03-13 Tom Tromey <tom@tromey.com>
11921
11922 * ada-valprint.c (ada_value_print_num): New function.
11923 (ada_value_print_1): Use it.
11924
b9fa6e07
TT
119252020-03-13 Tom Tromey <tom@tromey.com>
11926
11927 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11928
416595d6
TT
119292020-03-13 Tom Tromey <tom@tromey.com>
11930
11931 * ada-valprint.c (ada_value_print_ptr): New function.
11932 (ada_value_print_1): Use it.
11933
5b5e15ec
TT
119342020-03-13 Tom Tromey <tom@tromey.com>
11935
11936 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11937 call common_val_print.
11938 (ada_val_print_1): Update.
11939 (ada_value_print_1): New function.
11940 (ada_value_print_inner): Rewrite.
11941
fbf54e75
TT
119422020-03-13 Tom Tromey <tom@tromey.com>
11943
11944 * cp-valprint.c (cp_print_value_fields): Update.
11945 (cp_print_value): New function.
11946
64b653ca
TT
119472020-03-13 Tom Tromey <tom@tromey.com>
11948
11949 * m2-valprint.c (m2_value_print_inner): Use
11950 cp_print_value_fields.
11951 * cp-valprint.c (cp_print_value_fields): New function.
11952 * c-valprint.c (c_value_print_struct): New function.
11953 (c_value_print_inner): Use c_value_print_struct.
11954 * c-lang.h (cp_print_value_fields): Declare.
11955
6999f067
TT
119562020-03-13 Tom Tromey <tom@tromey.com>
11957
11958 * c-valprint.c (c_value_print_array): New function.
11959 (c_value_print_inner): Use it.
11960
ce80b8bd
TT
119612020-03-13 Tom Tromey <tom@tromey.com>
11962
11963 * c-valprint.c (c_value_print_memberptr): New function.
11964 (c_value_print_inner): Use it.
11965
2faac269
TT
119662020-03-13 Tom Tromey <tom@tromey.com>
11967
11968 * c-valprint.c (c_value_print_int): New function.
11969 (c_value_print_inner): Use it.
11970
da3e2c29
TT
119712020-03-13 Tom Tromey <tom@tromey.com>
11972
11973 * c-valprint.c (c_value_print_ptr): New function.
11974 (c_value_print_inner): Use it.
11975
50836231
TT
119762020-03-13 Tom Tromey <tom@tromey.com>
11977
11978 * c-valprint.c (c_value_print_inner): Rewrite.
11979
4f412b6e
TT
119802020-03-13 Tom Tromey <tom@tromey.com>
11981
11982 * valprint.c (generic_value_print_complex): New function.
11983 (generic_value_print): Use it.
11984
f5354008
TT
119852020-03-13 Tom Tromey <tom@tromey.com>
11986
11987 * valprint.c (generic_val_print_float): Don't call
11988 val_print_scalar_formatted.
11989 (generic_val_print, generic_value_print): Update.
11990
3eec3b05
TT
119912020-03-13 Tom Tromey <tom@tromey.com>
11992
11993 * valprint.c (generic_value_print_char): New function
11994 (generic_value_print): Use it.
11995
fdddfccb
TT
119962020-03-13 Tom Tromey <tom@tromey.com>
11997
11998 * valprint.c (generic_value_print_int): New function.
11999 (generic_value_print): Use it.
12000
6dde7521
TT
120012020-03-13 Tom Tromey <tom@tromey.com>
12002
12003 * valprint.c (generic_value_print_bool): New function.
12004 (generic_value_print): Use it.
12005
4112d2e6
TT
120062020-03-13 Tom Tromey <tom@tromey.com>
12007
12008 * valprint.c (generic_val_print_func): Simplify.
12009 (generic_val_print, generic_value_print): Update.
12010
65786af6
TT
120112020-03-13 Tom Tromey <tom@tromey.com>
12012
12013 * valprint.c (generic_val_print_flags): Remove.
12014 (generic_val_print, generic_value_print): Update.
12015 (val_print_type_code_flags): Add original_value parameter.
12016
40f3ce18
TT
120172020-03-13 Tom Tromey <tom@tromey.com>
12018
12019 * valprint.c (generic_val_print): Update.
12020 (generic_value_print): Update.
12021 * valprint.c (generic_val_print_enum): Don't call
12022 val_print_scalar_formatted.
12023
2a5b130b
TT
120242020-03-13 Tom Tromey <tom@tromey.com>
12025
12026 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12027 * valprint.c (generic_value_print_ptr): New function.
12028
abc66ce9
TT
120292020-03-13 Tom Tromey <tom@tromey.com>
12030
12031 * valprint.c (generic_value_print): Rewrite.
12032
07a32858
TT
120332020-03-13 Tom Tromey <tom@tromey.com>
12034
12035 * p-valprint.c (pascal_object_print_value_fields)
12036 (pascal_object_print_value): New functions.
12037
64d64d3a
TT
120382020-03-13 Tom Tromey <tom@tromey.com>
12039
12040 * p-valprint.c (pascal_value_print_inner): Rewrite.
12041
6a95a1f5
TT
120422020-03-13 Tom Tromey <tom@tromey.com>
12043
12044 * f-valprint.c (f_value_print_innner): Rewrite.
12045
59fcdac6
TT
120462020-03-13 Tom Tromey <tom@tromey.com>
12047
12048 * m2-valprint.c (m2_print_unbounded_array): New overload.
12049 (m2_print_unbounded_array): Update.
12050 (m2_print_array_contents): Take a struct value.
12051 (m2_value_print_inner): Rewrite.
12052
d133c3e1
TT
120532020-03-13 Tom Tromey <tom@tromey.com>
12054
12055 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12056 (d_value_print_inner): New function.
12057 * d-lang.h (d_value_print_inner): Declare.
12058 * d-lang.c (d_language_defn): Use d_value_print_inner.
12059
23b0f06b
TT
120602020-03-13 Tom Tromey <tom@tromey.com>
12061
12062 * go-valprint.c (go_value_print_inner): New function.
12063 * go-lang.h (go_value_print_inner): Declare.
12064 * go-lang.c (go_language_defn): Use go_value_print_inner.
12065
5f56f7cb
TT
120662020-03-13 Tom Tromey <tom@tromey.com>
12067
12068 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12069 API.
12070 (rust_val_print): Rewrite.
12071 (rust_value_print_inner): New function, from rust_val_print.
12072 (rust_language_defn): Use rust_value_print_inner.
12073
26792ee0
TT
120742020-03-13 Tom Tromey <tom@tromey.com>
12075
12076 * ada-valprint.c (ada_value_print_inner): New function.
12077 * ada-lang.h (ada_value_print_inner): Declare.
12078 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12079
24051bbe
TT
120802020-03-13 Tom Tromey <tom@tromey.com>
12081
12082 * f-valprint.c (f_value_print_innner): New function.
12083 * f-lang.h (f_value_print_innner): Declare.
12084 * f-lang.c (f_language_defn): Use f_value_print_innner.
12085
c0941be6
TT
120862020-03-13 Tom Tromey <tom@tromey.com>
12087
12088 * p-valprint.c (pascal_value_print_inner): New function.
12089 * p-lang.h (pascal_value_print_inner): Declare.
12090 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12091
62c4663d
TT
120922020-03-13 Tom Tromey <tom@tromey.com>
12093
12094 * m2-valprint.c (m2_value_print_inner): New function.
12095 * m2-lang.h (m2_value_print_inner): Declare.
12096 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12097
62182190
TT
120982020-03-13 Tom Tromey <tom@tromey.com>
12099
12100 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12101 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12102 * c-valprint.c (c_value_print_inner): New function.
12103 * c-lang.h (c_value_print_inner): Declare.
12104 * c-lang.c (c_language_defn, cplus_language_defn)
12105 (asm_language_defn, minimal_language_defn): Use
12106 c_value_print_inner.
12107
1e592a8a
TT
121082020-03-13 Tom Tromey <tom@tromey.com>
12109
12110 * p-valprint.c (pascal_object_print_value_fields): Now static.
12111 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12112
7fe471e9
TT
121132020-03-13 Tom Tromey <tom@tromey.com>
12114
12115 * c-valprint.c (c_val_print_array): Simplify.
12116
d121c6ce
TT
121172020-03-13 Tom Tromey <tom@tromey.com>
12118
12119 * valprint.c (value_print_array_elements): New function.
12120 * valprint.h (value_print_array_elements): Declare.
12121
4dba70ee
TT
121222020-03-13 Tom Tromey <tom@tromey.com>
12123
12124 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12125 * mips-tdep.c (mips_print_register): Use
12126 value_print_scalar_formatted.
12127
4f9ae810
TT
121282020-03-13 Tom Tromey <tom@tromey.com>
12129
12130 * valprint.h (value_print_scalar_formatted): Declare.
12131 * valprint.c (value_print_scalar_formatted): New function.
12132
156bfec9
TT
121332020-03-13 Tom Tromey <tom@tromey.com>
12134
12135 * valprint.h (generic_value_print): Declare.
12136 * valprint.c (generic_value_print): New function.
12137
2b4e573d
TT
121382020-03-13 Tom Tromey <tom@tromey.com>
12139
12140 * valprint.c (do_val_print): Call la_value_print_inner, if
12141 available.
12142 * rust-lang.c (rust_language_defn): Update.
12143 * p-lang.c (pascal_language_defn): Update.
12144 * opencl-lang.c (opencl_language_defn): Update.
12145 * objc-lang.c (objc_language_defn): Update.
12146 * m2-lang.c (m2_language_defn): Update.
12147 * language.h (struct language_defn) <la_value_print_inner>: New
12148 member.
12149 * language.c (unknown_language_defn, auto_language_defn): Update.
12150 * go-lang.c (go_language_defn): Update.
12151 * f-lang.c (f_language_defn): Update.
12152 * d-lang.c (d_language_defn): Update.
12153 * c-lang.c (c_language_defn, cplus_language_defn)
12154 (asm_language_defn, minimal_language_defn): Update.
12155 * ada-lang.c (ada_language_defn): Update.
12156
a1f6a07c
TT
121572020-03-13 Tom Tromey <tom@tromey.com>
12158
12159 * c-valprint.c (c_value_print): Use common_val_print.
12160
410cf315
TT
121612020-03-13 Tom Tromey <tom@tromey.com>
12162
12163 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12164
72a45c93
TT
121652020-03-13 Tom Tromey <tom@tromey.com>
12166
12167 * f-valprint.c (f77_print_array_1, f_val_print): Use
12168 common_val_print.
12169
040f66bd
TT
121702020-03-13 Tom Tromey <tom@tromey.com>
12171
12172 * riscv-tdep.c (riscv_print_one_register_info): Use
12173 common_val_print.
12174
a6e05a6c
TT
121752020-03-13 Tom Tromey <tom@tromey.com>
12176
12177 * mi/mi-main.c (output_register): Use common_val_print.
12178
3444c526
TT
121792020-03-13 Tom Tromey <tom@tromey.com>
12180
12181 * infcmd.c (default_print_one_register_info): Use
12182 common_val_print.
12183
c2a44efe
TT
121842020-03-13 Tom Tromey <tom@tromey.com>
12185
12186 * valprint.h (common_val_print_checked): Declare.
12187 * valprint.c (common_val_print_checked): New function.
12188 * stack.c (print_frame_arg): Use common_val_print_checked.
12189
b0c26e99
TT
121902020-03-13 Tom Tromey <tom@tromey.com>
12191
12192 * valprint.c (do_val_print): New function, from val_print.
12193 (val_print): Use do_val_print.
12194 (common_val_print): Use do_val_print.
12195
ce3acbe9
TT
121962020-03-13 Tom Tromey <tom@tromey.com>
12197
12198 * valprint.c (value_print): Use scoped_value_mark.
12199
96c7f873
TV
122002020-03-13 Tom de Vries <tdevries@suse.de>
12201
12202 PR symtab/25646
12203 * psymtab.c (partial_symtab::partial_symtab): Don't set
12204 globals_offset and statics_offset. Push element onto
12205 current_global_psymbols and current_static_psymbols stacks.
12206 (concat): New function.
12207 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12208 element from current_global_psymbols and current_static_psymbols
12209 stacks. Concat popped elements to global_psymbols and
12210 static_symbols.
12211 (add_psymbol_to_list): Use current_global_psymbols and
12212 current_static_psymbols stacks.
12213 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12214 current_static_psymbols fields.
12215
6ba0a321
CB
122162020-03-12 Christian Biesinger <cbiesinger@google.com>
12217
12218 * corelow.c (sniff_core_bfd): Remove.
12219 (class core_target) <m_core_vec>: Remove.
12220 (core_target::core_target): Update.
12221 (core_file_fns): Remove.
12222 (deprecated_add_core_fns): Remove.
12223 (default_core_sniffer): Remove.
12224 (sniff_core_bfd): Remove.
12225 (default_check_format): Remove.
12226 (gdb_check_format): Remove.
12227 (core_target_open): Update.
12228 (core_target::get_core_register_section): Update.
12229 (get_core_registers_cb): Update.
12230 (core_target::fetch_registers): Update.
12231 * gdbcore.h (struct core_fns): Remove.
12232 (deprecated_add_core_fns): Remove.
12233 (default_core_sniffer): Remove.
12234 (default_check_format): Remove.
12235
227031b2
TT
122362020-03-12 Tom Tromey <tom@tromey.com>
12237
12238 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12239 CORE_ADDR.
12240 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12241
53807e9f
TT
122422020-03-12 Tom Tromey <tom@tromey.com>
12243
12244 * remote.c (remote_target::download_tracepoint)
12245 (remote_target::enable_tracepoint)
12246 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12247 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12248 sprintf_vma.
12249
64f25102
TT
122502020-03-12 Tom Tromey <tom@tromey.com>
12251
12252 * symfile-mem.c: Update CORE_ADDR size assert.
12253
272cd5a3
SM
122542020-03-12 Simon Marchi <simon.marchi@efficios.com>
12255
12256 * selftest.m4: Move to gdbsupport/.
12257 * acinclude.m4: Update path to selftest.m4.
12258
74cd3f9d
SM
122592020-03-12 Simon Marchi <simon.marchi@efficios.com>
12260
12261 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12262 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12263 gdbarch-selfselftests.c and selftest-arch.c.
12264 (SUBDIR_UNITTESTS_OBS): Rename to...
12265 (SELFTESTS_OBS): ... this.
12266 (COMMON_SFILES): Remove disasm-selftests.c and
12267 gdbarch-selftests.c.
12268 * configure.ac: Don't add selftest-arch.{c,o} to
12269 CONFIG_{SRCS,OBS}.
12270 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12271 preprocessor conditions.
12272
db6878ac
SM
122732020-03-12 Simon Marchi <simon.marchi@efficios.com>
12274
12275 * configure.ac: Don't source bfd/development.sh.
12276 * selftest.m4: Modify comment.
12277 * configure: Re-generate.
12278
4d696a5c
SM
122792020-03-12 Simon Marchi <simon.marchi@efficios.com>
12280
12281 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12282 not "true" or "false".
12283 * configure: Re-generate.
12284
8dd8e1c7
CB
122852020-03-12 Christian Biesinger <cbiesinger@google.com>
12286
12287 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12288 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12289 renamed to arm_nbsd_supply_gregset.
12290 (fetch_register): Update to call arm_nbsd_supply_gregset.
12291 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12292 (arm_netbsd_nat_target::fetch_registers): Update.
12293 (fetch_elfcore_registers): Removed.
12294 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12295 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12296 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12297 not require NetBSD system headers.
12298 (arm_nbsd_regset): New struct.
12299 (arm_nbsd_iterate_over_regset_sections): New function.
12300 (arm_netbsd_init_abi_common): Updated to call
12301 set_gdbarch_iterate_over_regset_sections.
12302 * arm-nbsd-tdep.h: New file.
12303
dd69bf7a
KB
123042020-03-11 Kevin Buettner <kevinb@redhat.com>
12305
12306 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12307 recursion.
12308
a0761e34
SM
123092020-03-11 Simon Marchi <simon.marchi@efficios.com>
12310
12311 * configure: Re-generate.
12312
e7a82140
TT
123132020-03-11 Tom Tromey <tromey@adacore.com>
12314
12315 * ada-typeprint.c (print_choices): Fix comment.
12316
dcc050c8
AB
123172020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12318
12319 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12320 previous item in the list, when the list has no items.
12321
1c33af77
TV
123222020-03-11 Tom de Vries <tdevries@suse.de>
12323
12324 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12325 PROP_LOCLIST handling code.
12326
8c95582d
AB
123272020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12328
12329 * buildsym-legacy.c (record_line): Pass extra parameter to
12330 record_line.
12331 * buildsym.c (buildsym_compunit::record_line): Take an extra
12332 parameter, reduce duplication in the line table, and record the
12333 is_stmt flag in the line table.
12334 * buildsym.h (buildsym_compunit::record_line): Add extra
12335 parameter.
12336 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12337 non-statement lines.
12338 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12339 this to the symtab builder.
12340 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12341 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12342 through to dwarf_record_line_1.
12343 * infrun.c (process_event_stop_test): When stepping, don't stop at
12344 a non-statement instruction, and only refresh the step info when
12345 we land in the middle of a line's range. Also add an extra
12346 comment.
12347 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12348 field.
12349 * record-btrace.c (btrace_find_line_range): Only record lines
12350 marked as is-statement.
12351 * stack.c (frame_show_address): Show the frame address if we are
12352 in a non-statement sal.
12353 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12354 (maintenance_print_one_line_table): Print a header for the is_stmt
12355 column, and include is_stmt information in the output.
12356 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12357 preference to non-statements.
12358 (find_pcs_for_symtab_line): Prefer is-statement entries.
12359 (find_line_common): Likewise.
12360 * symtab.h (struct linetable_entry): Add is_stmt field.
12361 (struct symtab_and_line): Likewise.
12362 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12363 arranging the line table.
12364
e4003a34
TV
123652020-03-07 Tom de Vries <tdevries@suse.de>
12366
12367 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12368 DIE.
12369
e8932576
TT
123702020-03-07 Tom Tromey <tom@tromey.com>
12371
12372 * valops.c (value_literal_complex): Remove obsolete comment.
12373 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12374 comment.
12375
29734269
SM
123762020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12377
12378 * infrun.h: Forward-declare thread_info.
12379 (set_step_info): Add thread_info parameter, add doc.
12380 * infrun.c (set_step_info): Add thread_info parameter, move doc
12381 to header.
12382 * infrun.c (process_event_stop_test): Pass thread to
12383 set_step_info call.
12384 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12385 set_step_info.
12386 (prepare_one_step): Add thread_info parameter, pass it to
12387 set_step_frame and prepare_one_step (recursive) call.
12388 (step_1): Pass thread to prepare_one_step call.
12389 (step_command_fsm::should_stop): Pass thread to
12390 prepare_one_step.
12391 (until_next_fsm): Pass thread to set_step_frame call.
12392 (finish_command): Pass thread to set_step_info call.
12393
b7d64b29
HD
123942020-03-06 Hannes Domani <ssbssa@yahoo.de>
12395
12396 * windows-tdep.c (windows_solib_create_inferior_hook):
12397 Check if inferior is running.
12398
09f2921c
TV
123992020-03-06 Tom de Vries <tdevries@suse.de>
12400
12401 * NEWS: Fix "the the".
12402 * ctfread.c: Same.
12403
fd760e79
TV
124042020-03-06 Tom de Vries <tdevries@suse.de>
12405
12406 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12407
20ea4a60
AB
124082020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12409
12410 * .dir-locals.el: Add a comment referencing the other copies of
12411 this file.
12412
0afbabf0
JB
124132020-03-05 John Baldwin <jhb@FreeBSD.org>
12414
12415 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12416 psargs.
12417
842806cb
TBA
124182020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12419
12420 * .gitattributes: New file.
12421
be1e3d3e
TT
124222020-03-04 Tom Tromey <tom@tromey.com>
12423
12424 * symmisc.c (print_symbol_bcache_statistics)
12425 (print_objfile_statistics): Update.
12426 * symfile.c (allocate_symtab): Use intern.
12427 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12428 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12429 macro_cache>: Remove.
12430 <string_cache>: New member.
12431 (struct objfile) <intern>: New methods.
12432 * elfread.c (elf_symtab_read): Use intern.
12433 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12434 (dwarf2_compute_name, dwarf2_physname)
12435 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12436 names.
12437 (guess_partial_die_structure_name): Update.
12438 (partial_die_info::fixup): Intern name.
12439 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12440 name.
12441 (dwarf2_name): Intern name. Update.
12442 * buildsym.c (buildsym_compunit::get_macro_table): Use
12443 string_cache.
12444
4e7625fd
TT
124452020-03-04 Tom Tromey <tom@tromey.com>
12446
12447 * jit.c (bfd_open_from_target_memory): Make "target" const.
12448 * corefile.c (gnutarget): Now const.
12449 * gdbcore.h (gnutarget): Now const.
12450
46f9f931
HD
124512020-03-04 Hannes Domani <ssbssa@yahoo.de>
12452
12453 * NEWS: Mention support for WOW64 processes.
12454 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12455 (amd64_windows_segment_register_p): Remove static.
12456 (_initialize_amd64_windows_nat): Update.
12457 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12458 * i386-windows-nat.c (context_offset): Update.
12459 (i386_mappings): Rename and remove static.
12460 (i386_windows_segment_register_p): Remove static.
12461 (_initialize_i386_windows_nat): Update.
12462 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12463 (STATUS_WX86_SINGLE_STEP): New macro.
12464 (EnumProcessModulesEx): New macro.
12465 (Wow64SuspendThread): New macro.
12466 (Wow64GetThreadContext): New macro.
12467 (Wow64SetThreadContext): New macro.
12468 (Wow64GetThreadSelectorEntry): New macro.
12469 (windows_set_context_register_offsets): Add static.
12470 (windows_set_segment_register_p): Likewise.
12471 (windows_add_thread): Adapt for WOW64 processes.
12472 (windows_fetch_one_register): Likewise.
12473 (windows_nat_target::fetch_registers): Likewise.
12474 (windows_store_one_register): Likewise.
12475 (display_selector): Likewise.
12476 (display_selectors): Likewise.
12477 (handle_exception): Likewise.
12478 (windows_continue): Likewise.
12479 (windows_nat_target::resume): Likewise.
12480 (windows_add_all_dlls): Likewise.
12481 (do_initial_windows_stuff): Likewise.
12482 (windows_nat_target::attach): Likewise.
12483 (windows_get_exec_module_filename): Likewise.
12484 (windows_nat_target::create_inferior): Likewise.
12485 (windows_xfer_siginfo): Likewise.
12486 (_initialize_loadable): Initialize Wow64SuspendThread,
12487 Wow64GetThreadContext, Wow64SetThreadContext,
12488 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12489 * windows-nat.h (windows_set_context_register_offsets):
12490 Remove declaration.
12491 (windows_set_segment_register_p): Likewise.
12492 (i386_windows_segment_register_p): Add declaration.
12493 (amd64_windows_segment_register_p): Likewise.
12494
440cf44e
LM
124952020-03-04 Luis Machado <luis.machado@linaro.org>
12496
12497 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12498 in "info registers" for AArch64/ARM.
12499
12500 The change caused "info registers" to not print GPR's.
12501
12502 gdb/ChangeLog:
12503
12504 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12505
12506 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12507 when reg->group is empty and reggroup is not.
12508
1009d92f
TT
125092020-03-03 Tom Tromey <tromey@adacore.com>
12510
12511 * dwarf2/frame.c (struct dwarf2_frame_cache)
12512 <checked_tailcall_bottom, entry_cfa_sp_offset,
12513 entry_cfa_sp_offset_p>: Remove members.
12514 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12515 (dwarf2_frame_prev_register): Don't call
12516 dwarf2_tailcall_sniffer_first.
12517 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12518 * frame-unwind.c (add_unwinder): New fuction.
12519 (frame_unwind_init): Use it. Add tailcall unwinder.
12520
5e5d66b6
AB
125212020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12522 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12523
12524 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12525 value should be printed as true.
12526
584cf46d
HD
125272020-03-03 Hannes Domani <ssbssa@yahoo.de>
12528
12529 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12530 (windows_init_abi): Set and use windows_so_ops.
12531
7b973adc
SDJ
125322020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12533
12534 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12535 when verifying if dealing with a convenience variable.
12536
bb7b70ab
LM
125372020-03-03 Luis Machado <luis.machado@linaro.org>
12538
12539 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12540
9822cb57
SM
125412020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12542
12543 * infrun.c (gdbarch_supports_displaced_stepping): New.
12544 (use_displaced_stepping): Break up conditions in smaller pieces.
12545 Use gdbarch_supports_displaced_stepping.
12546 (displaced_step_prepare_throw): Use
12547 gdbarch_supports_displaced_stepping.
12548
63e163f2
AB
125492020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12550
12551 * NEWS: Mention new behaviour of the history filename.
12552 * top.c (write_history_p): Add comment.
12553 (show_write_history_p): Add header comment, give a different
12554 message when history writing is on, but the history filename is
12555 empty.
12556 (history_filename): Add comment.
12557 (history_filename_empty): New function.
12558 (show_history_filename): Add header comment, give a different
12559 message when the filename is empty.
12560 (init_history): Compare history_filename against nullptr, and only
12561 read history if the filename is not empty.
12562 (set_history_filename): Add header comment, and only make
12563 non-empty filenames absolute.
12564 (init_main): Make the filename argument to 'set history filename'
12565 optional.
12566
81b86b97
CB
125672020-03-02 Christian Biesinger <cbiesinger@google.com>
12568
12569 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12570 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12571 (fetch_fp_register): Update.
12572 (fetch_fp_regs): Update.
12573 (store_fp_register): Update.
12574 (store_fp_regs): Update.
12575 (arm_netbsd_nat_target::read_description): New function.
12576 (fetch_elfcore_registers): Update.
12577
24ed6739
AB
125782020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12579
12580 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12581 general_thread if the stop reply is missing a thread-id.
12582 (remote_target::process_stop_reply): Use the first non-exited
12583 thread if the target didn't pass a thread-id.
12584 * infrun.c (do_target_wait): Move call to
12585 switch_to_inferior_no_thread to ....
12586 (do_target_wait_1): ... here.
12587
a84bb2a0
JT
125882020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12589
12590 * debuginfod-support.c: Include defs.h first.
12591
658dadf0
TV
125922020-02-28 Tom de Vries <tdevries@suse.de>
12593
12594 * symfile.c (set_initial_language): Use default language for lookup.
12595
4ebe4877
SM
125962020-02-28 Simon Marchi <simon.marchi@efficios.com>
12597
12598 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12599 reader variable, pass `this` to read_cutu_die_from_dwo.
12600
e5da1139
AM
126012020-02-27 Aaron Merey <amerey@redhat.com>
12602
12603 * source.c (open_source_file): Check for nullptr when computing
12604 srcpath.
12605
317f7127
TT
126062020-02-27 Tom Tromey <tromey@adacore.com>
12607
12608 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12609 member.
12610 (dwarf2_add_field): Don't update nfields.
12611 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12612
3104d9ee
AB
126132020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12614
12615 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12616 abs.
12617
b83470bf
TT
126182020-02-26 Tom Tromey <tom@tromey.com>
12619
12620 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12621 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12622 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12623 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12624 per_cu_data.
12625
edfe0a0c
TT
126262020-02-26 Tom Tromey <tom@tromey.com>
12627
12628 * dwarf2/index-write.c (psym_index_map): Change type.
12629 (add_address_entry_worker, write_one_signatured_type)
12630 (recursively_count_psymbols, recursively_write_psymbols)
12631 (class debug_names, psyms_seen_size, write_gdbindex)
12632 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12633
0d79cdc4
AM
126342020-02-26 Aaron Merey <amerey@redhat.com>
12635
12636 * Makefile.in: Handle optional debuginfod support.
12637 * NEWS: Update.
12638 * README: Add --with-debuginfod summary.
12639 * config.in: Regenerate.
12640 * configure: Regenerate.
12641 * configure.ac: Handle optional debuginfod support.
12642 * debuginfod-support.c: debuginfod helper functions.
12643 * debuginfod-support.h: Ditto.
12644 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12645 summary.
12646 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12647 when a dwz file cannot be found.
12648 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12649 debuginfo file cannot be found.
12650 * source.c (open_source_file): Query debuginfod servers when a
12651 source file cannot be found.
12652 * top.c (print_gdb_configuration): Include
12653 --{with,without}-debuginfod in the output.
12654
b65ce565
JG
126552020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12656
12657 * thread.c (thr_try_catch_cmd): Print thread name.
12658
d4c9a4f8
SM
126592020-02-26 Simon Marchi <simon.marchi@efficios.com>
12660
12661 * dwarf2/loc.h (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 to...
12664 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12665 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12666 dwarf2_fetch_die_type_sect_off): ... here.
12667 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12668 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12669 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12670
0dce4280
TV
126712020-02-26 Tom de Vries <tdevries@suse.de>
12672
12673 PR gdb/25603
12674 * symfile.c (set_initial_language): Exit-early if
12675 language_mode == language_mode_manual.
12676
450a1bfc
SM
126772020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12678
12679 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12680 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12681 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12682
9e80cfa1
AB
126832020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12684
12685 * gdbtypes.c (create_array_type_with_stride): Handle negative
12686 array strides.
12687 * valarith.c (value_subscripted_rvalue): Likewise.
12688
09624f1f
LM
126892020-02-25 Luis Machado <luis.machado@linaro.org>
12690
12691 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12692
8cb5117c
SM
126932020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12694
12695 * loc.h (dwarf2_get_die_type): Move to...
12696 * read.h (dwarf2_get_die_type): ... here.
12697 * read.c (dwarf2_get_die_type): Move doc to header.
12698
c325c44e
JB
126992020-02-25 Joel Brobecker <brobecker@adacore.com>
12700
12701 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12702 'gnulib/Makefile.in' to the list.
12703
4ac93832
TT
127042020-02-24 Tom Tromey <tom@tromey.com>
12705
12706 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12707 Remove.
12708 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12709 XOBNEWVEC.
12710
197400e8
TT
127112020-02-24 Tom Tromey <tom@tromey.com>
12712
12713 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12714 New method.
12715 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12716 (dw2_do_instantiate_symtab, dw2_get_file_names)
12717 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12718
76935768
TT
127192020-02-24 Tom Tromey <tom@tromey.com>
12720
12721 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12722 make_scoped_restore.
12723 (dwarf2_psymtab::read_symtab): Don't clear
12724 reading_partial_symbols.
12725
a88ef40d
TV
127262020-02-24 Tom de Vries <tdevries@suse.de>
12727
12728 PR gdb/25592
12729 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12730
c9af6521
TV
127312020-02-24 Tom de Vries <tdevries@suse.de>
12732
12733 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12734 commands layout next/prev/regs.
12735
5707a07a
TT
127362020-02-22 Tom Tromey <tom@tromey.com>
12737
12738 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12739 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12740
3b0fb49e
TT
127412020-02-22 Tom Tromey <tom@tromey.com>
12742
12743 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12744
283be8bf
TT
127452020-02-22 Tom Tromey <tom@tromey.com>
12746
12747 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12748 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12749 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12750 * tui/tui.c (_initialize_tui): Add usage text.
12751
ca793b96
TT
127522020-02-22 Tom Tromey <tom@tromey.com>
12753
12754 * tui/tui-win.c (tui_set_focus_command)
12755 (tui_set_win_height_command): Use error_no_arg.
12756 (_initialize_tui_win): Update help text.
12757 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12758
432b5c40
TT
127592020-02-22 Tom Tromey <tom@tromey.com>
12760
12761 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12762 * tui/tui-disasm.h (struct tui_disasm_window)
12763 <display_start_addr>: Declare.
12764 * tui/tui-source.h (struct tui_source_window)
12765 <display_start_addr>: Declare.
12766 * tui/tui-winsource.h (struct tui_source_window_base)
12767 <show_source_line, display_start_addr>: New methods.
12768 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12769 Rename and move to protected section.
12770 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12771 (tui_source_window_base::do_erase_source_content): Update.
12772 (tui_source_window_base::show_source_line): Now a method.
12773 (tui_source_window_base::show_source_content)
12774 (tui_source_window_base::tui_source_window_base)
12775 (tui_source_window_base::rerender)
12776 (tui_source_window_base::refill)
12777 (tui_source_window_base::do_scroll_horizontal)
12778 (tui_source_window_base::set_is_exec_point_at)
12779 (tui_source_window_base::update_breakpoint_info)
12780 (tui_source_window_base::update_exec_info): Update.
12781 * tui/tui-source.c (tui_source_window::set_contents)
12782 (tui_source_window::showing_source_p)
12783 (tui_source_window::do_scroll_vertical)
12784 (tui_source_window::location_matches_p)
12785 (tui_source_window::line_is_displayed): Update.
12786 (tui_source_window::display_start_addr): New method.
12787 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12788 (tui_disasm_window::do_scroll_vertical)
12789 (tui_disasm_window::location_matches_p): Update.
12790 (tui_disasm_window::display_start_addr): New method.
12791
01b1af32
TT
127922020-02-22 Tom Tromey <tom@tromey.com>
12793
12794 * NEWS: Add entry for gdb.register_window_type.
12795 * tui/tui-layout.h (window_factory): New typedef.
12796 (tui_register_window): Declare.
12797 * tui/tui-layout.c (saved_tui_windows): New global.
12798 (tui_apply_current_layout): Use it.
12799 (tui_register_window): New function.
12800 * python/python.c (do_start_initialization): Call
12801 gdbpy_initialize_tui.
12802 (python_GdbMethods): Add "register_window_type" function.
12803 * python/python-internal.h (gdbpy_register_tui_window)
12804 (gdbpy_initialize_tui): Declare.
12805 * python/py-tui.c: New file.
12806 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12807
fc96d20b
TT
128082020-02-22 Tom Tromey <tom@tromey.com>
12809
12810 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12811
935c78c0
TT
128122020-02-22 Tom Tromey <tom@tromey.com>
12813
12814 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12815 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12816 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12817 (tui_set_win_focus_to): Move from tui-win.c.
12818
0240c8f1
TT
128192020-02-22 Tom Tromey <tom@tromey.com>
12820
12821 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12822 functions.
12823 (known_window_types): New global.
12824 (tui_get_window_by_name): Reimplement.
12825 (initialize_known_windows): New function.
12826 (validate_window_name): Rewrite.
12827 (_initialize_tui_layout): Call initialize_known_windows.
12828
fdb01f0c
TT
128292020-02-22 Tom Tromey <tom@tromey.com>
12830
12831 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12832 Remove constants.
12833 * tui/tui-winsource.h (struct tui_source_window_base)
12834 <tui_source_window_base>: Remove parameter.
12835 * tui/tui-winsource.c
12836 (tui_source_window_base::tui_source_window_base): Remove
12837 parameter.
12838 (tui_source_window_base::refill): Update.
12839 * tui/tui-stack.h (struct tui_locator_window)
12840 <tui_locator_window>: Update.
12841 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12842 Default the constructor.
12843 * tui/tui-regs.h (struct tui_data_item_window)
12844 <tui_data_item_window>: Default the constructor.
12845 (struct tui_data_window) <tui_data_window>: Likewise.
12846 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12847 Default the constructor.
12848 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12849 Default the constructor.
12850 <type>: Remove.
12851 (struct tui_win_info) <tui_win_info>: Default the constructor.
12852 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12853 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12854 Default the constructor.
12855
865a5aec
TT
128562020-02-22 Tom Tromey <tom@tromey.com>
12857
12858 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12859 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12860 * tui/tui-win.c (tui_resize_all): Don't call
12861 tui_delete_invisible_windows.
12862 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12863 done.
12864 (tui_set_layout): Update.
12865 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12866 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12867 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12868
e098d18c
TT
128692020-02-22 Tom Tromey <tom@tromey.com>
12870
12871 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12872 correctly.
12873
eb9c8874
TT
128742020-02-22 Tom Tromey <tom@tromey.com>
12875
12876 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12877
7eed1a8e
TT
128782020-02-22 Tom Tromey <tom@tromey.com>
12879
12880 * tui/tui-winsource.h (struct tui_source_window_iterator)
12881 <inner_iterator>: New etytypedef.
12882 <tui_source_window_iterator>: Take "end" parameter.
12883 <tui_source_window_iterator>: Take iterator.
12884 <operator*, advance>: Update.
12885 <m_iter>: Change type.
12886 <m_end>: New field.
12887 (struct tui_source_windows) <begin, end>: Update.
12888 * tui/tui-layout.c (tui_windows): New global.
12889 (tui_apply_current_layout): Clear tui_windows.
12890 (tui_layout_window::apply): Update tui_windows.
12891 * tui/tui-data.h (tui_windows): Declare.
12892 (all_tui_windows): Now inline function.
12893 (class tui_window_iterator, struct all_tui_windows): Remove.
12894
7c043ba6
TT
128952020-02-22 Tom Tromey <tom@tromey.com>
12896
12897 PR tui/17850:
12898 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12899 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12900 "height" argument.
12901 (class tui_layout_window) <get_sizes>: Likewise.
12902 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12903 argument.
12904 <get_sizes>: Add "height" argument.
12905 <m_vertical>: New field.
12906 * tui/tui-layout.c (tui_layout_split::clone): Update.
12907 (tui_layout_split::get_sizes): Add "height" argument.
12908 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12909 (tui_new_layout_command): Parse "-horizontal".
12910 (_initialize_tui_layout): Update help string.
12911 (tui_layout_split::specification): Add "-horizontal" when needed.
12912 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12913 argument.
12914 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12915 New methods.
12916
6bc56648
TT
129172020-02-22 Tom Tromey <tom@tromey.com>
12918
12919 * tui/tui-layout.h (enum tui_adjust_result): New.
12920 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12921 (class tui_layout_window) <adjust_size>: Return
12922 tui_adjust_result. Rewrite.
12923 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12924 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12925
c22fef7e
TT
129262020-02-22 Tom Tromey <tom@tromey.com>
12927
12928 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12929 parameter and return types.
12930 (class tui_layout_base) <specification>: Add "depth".
12931 (class tui_layout_window) <specification>: Add "depth".
12932 (class tui_layout_split) <specification>: Add "depth".
12933 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12934 and return types.
12935 (tui_new_layout_command): Parse sub-layouts.
12936 (_initialize_tui_layout): Update help string.
12937 (tui_layout_window::specification): Add "depth".
12938 (add_layout_command): Update.
12939
ee325b61
TT
129402020-02-22 Tom Tromey <tom@tromey.com>
12941
12942 * NEWS: Add "tui new-layout" item.
12943 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12944 Add new-layout command to help text.
12945 (validate_window_name): New function.
12946 (tui_new_layout_command): New function.
12947 (_initialize_tui_layout): Register "new-layout".
12948 (tui_layout_window::specification): New method.
12949 (tui_layout_window::specification): New method.
12950 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12951 method.
12952 (class tui_layout_window) <specification>: New method.
12953 (class tui_layout_split) <specification>: New method.
12954
416eb92d
TT
129552020-02-22 Tom Tromey <tom@tromey.com>
12956
12957 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12958 * tui/tui-win.c (window_name_completer): Update comment.
12959 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12960 Declare method.
12961 (class tui_layout_window) <replace_window>: Likewise.
12962 (class tui_layout_split) <replace_window>: Likewise.
12963 (tui_set_layout): Don't declare.
12964 (tui_set_initial_layout): Declare function.
12965 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12966 (asm_regs_layout): New globals.
12967 (tui_current_layout, show_layout): Remove.
12968 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12969 (find_layout, tui_apply_layout): New function.
12970 (layout_completer): Remove.
12971 (tui_next_layout): Reimplement.
12972 (tui_next_layout_command): New function.
12973 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12974 (tui_regs_layout): Reimplement.
12975 (tui_regs_layout_command): New function.
12976 (extract_display_start_addr): Rewrite.
12977 (next_layout, prev_layout): Remove.
12978 (tui_layout_window::replace_window): New method.
12979 (tui_layout_split::replace_window): New method.
12980 (destroy_layout): New function.
12981 (layout_list): New global.
12982 (add_layout_command): New function.
12983 (initialize_layouts): Update.
12984 (tui_layout_command): New function.
12985 (_initialize_tui_layout): Install "layout" commands.
12986 * tui/tui-data.h (enum tui_layout_type): Remove.
12987 (tui_current_layout): Don't declare.
12988
0dbc2fc7
TT
129892020-02-22 Tom Tromey <tom@tromey.com>
12990
12991 * tui/tui-regs.c (tui_reg_layout): Remove.
12992 (tui_reg_command): Use tui_regs_layout.
12993 * tui/tui-layout.h (tui_reg_command): Declare.
12994 * tui/tui-layout.c (tui_reg_command): New function.
12995
5afe342e
TT
129962020-02-22 Tom Tromey <tom@tromey.com>
12997
12998 * tui/tui.c (tui_rl_delete_other_windows): Call
12999 tui_remove_some_windows.
13000 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13001 Declare method.
13002 (class tui_layout_window) <remove_windows>: New method.
13003 (class tui_layout_split) <remove_windows>: Declare.
13004 (tui_remove_some_windows): Declare.
13005 * tui/tui-layout.c (tui_remove_some_windows): New function.
13006 (tui_layout_split::remove_windows): New method.
13007
427326a8
TT
130082020-02-22 Tom Tromey <tom@tromey.com>
13009
13010 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13011 * tui/tui-layout.h (tui_next_layout): Declare.
13012 * tui/tui-layout.c (tui_next_layout): New function.
13013
3fe12b6d
TT
130142020-02-22 Tom Tromey <tom@tromey.com>
13015
13016 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13017 correct coordinates.
13018
59b8b5d2
TT
130192020-02-22 Tom Tromey <tom@tromey.com>
13020
13021 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13022 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13023 DATA_WIN case.
13024
2a3d458b
TT
130252020-02-22 Tom Tromey <tom@tromey.com>
13026
13027 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13028 TUI_DISASM_WIN, not tui_win_list.
13029
3f0cbb04
TT
130302020-02-22 Tom Tromey <tom@tromey.com>
13031
13032 * valprint.c (generic_val_print_enum_1)
13033 (val_print_type_code_flags): Style member names.
13034 * rust-lang.c (val_print_struct, rust_print_enum)
13035 (rust_print_struct_def, rust_internal_print_type): Style member
13036 names.
13037 * p-valprint.c (pascal_object_print_value_fields): Style member
13038 names. Only call fprintf_symbol_filtered for static members.
13039 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13040 * f-valprint.c (f_val_print): Style member names.
13041 * f-typeprint.c (f_type_print_base): Style member names.
13042 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13043 call fprintf_symbol_filtered for static members.
13044 (cp_print_class_member): Style member names.
13045 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13046 member names.
13047 * ada-valprint.c (ada_print_scalar): Style enum names.
13048 (ada_val_print_enum): Likewise.
13049 * ada-typeprint.c (print_enum_type): Style enum names.
13050
d4d947ae
TT
130512020-02-21 Tom Tromey <tom@tromey.com>
13052
13053 * psympriv.h (struct partial_symtab): Update comment.
13054
e94e944b
TT
130552020-02-21 Tom Tromey <tromey@adacore.com>
13056
13057 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13058 type is CORE_ADDR.
13059
1eb73179
TV
130602020-02-21 Tom de Vries <tdevries@suse.de>
13061
13062 PR gdb/25534
13063 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13064 if dependencies[i]->user != NULL.
13065
4f180d53
AT
130662020-02-21 Ali Tamur <tamur@google.com>
13067
13068 * dwarf2/read.c (dwarf2_name): Add null check.
13069
22b6cd70
TT
130702020-02-20 Tom Tromey <tom@tromey.com>
13071
13072 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13073 ">=", in binary search.
13074 (dwarf2_find_containing_comp_unit): New overload.
13075 (run_test): New self-test.
13076 (_initialize_dwarf2_read): Register new test.
13077
bd0cf5a6
NC
130782020-02-20 Nelson Chu <nelson.chu@sifive.com>
13079
13080 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13081 * riscv-tdep.h: Likewise.
13082 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13083 rv32-only CSR.
13084 * features/riscv/64bit-csr.xml: Regenerated.
13085
3f702acd
SDJ
130862020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13087 Tom Tromey <tom@tromey.com>
13088
13089 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13090 of 'fputc_unfiltered'.
13091 (putchar_unfiltered): Call 'fputc_unfiltered'.
13092 (fputc_unfiltered): Call 'fputs_unfiltered'.
13093
d13c7322
AB
130942020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13095
13096 * config.in: Regenerate.
13097 * configure: Regenerate.
13098 * configure.ac: Add --with-python-libdir option.
13099 * main.c: Use WITH_PYTHON_LIBDIR.
13100
869d8950
TT
131012020-02-19 Tom Tromey <tom@tromey.com>
13102
13103 * symtab.c (general_symbol_info::compute_and_set_names): Use
13104 obstack_strndup. Simplify call to symbol_set_demangled_name.
13105
298e9637
SM
131062020-02-19 Simon Marchi <simon.marchi@efficios.com>
13107
13108 * dwarf2/read.c (allocate_signatured_type_table,
13109 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13110 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13111 Remove objfile parameter, update all callers.
13112
08410482
DE
131132020-02-19 Doug Evans <dje@google.com>
13114
13115 PR rust/25535
13116 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13117 rust_enum_variant calculation.
13118
dfdeeca1
TT
131192020-02-19 Tom Tromey <tromey@adacore.com>
13120
13121 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13122
2ef5453b
TT
131232020-02-19 Tom Tromey <tromey@adacore.com>
13124
13125 * ada-lang.c (cache_symbol): Use obstack_strdup.
13126
9f1528a1
AB
131272020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13128
13129 * configure: Regenerate.
13130
d3c22fa8
TT
131312020-02-19 Tom Tromey <tromey@adacore.com>
13132
13133 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13134 NULL check.
13135
bf84f706
MR
131362020-02-19 Maciej W. Rozycki <macro@wdc.com>
13137
13138 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13139
d1c9b20f
AB
131402020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13141
13142 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13143 if GDBSERVER is not defined.
13144 (riscv_tdesc_cache): Likewise, also store const target_desc.
13145 (STATIC_IN_GDB): Define.
13146 (riscv_create_target_description): Update declaration with
13147 STATIC_IN_GDB.
13148 (riscv_lookup_target_description): New function, only define if
13149 GDBSERVER is not defined.
13150 * arch/riscv.h (riscv_create_target_description): Declare only
13151 when GDBSERVER is defined.
13152 (riscv_lookup_target_description): New declaration when GDBSERVER
13153 is not defined.
13154 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13155 (riscv_linux_read_features): ...this, and return
13156 riscv_gdbarch_features instead of target_desc.
13157 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13158 (riscv_linux_read_description): Rename to...
13159 (riscv_linux_read_features): ...this.
13160 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13161 Update to use riscv_gdbarch_features and
13162 riscv_lookup_target_description.
13163 * riscv-tdep.c (riscv_find_default_target_description): Use
13164 riscv_lookup_target_description instead of
13165 riscv_create_target_description.
13166
373d7ac0
SM
131672020-02-18 Simon Marchi <simon.marchi@efficios.com>
13168
13169 * valprint.c (generic_val_print_enum_1): When printing a flag
13170 enum with value 0 and there is no enumerator with value 0, print
13171 just "0" instead of "(unknown: 0x0)".
13172
b29a2df0
SM
131732020-02-18 Simon Marchi <simon.marchi@efficios.com>
13174
13175 * valprint.c (generic_val_print_enum_1): Print unknown part of
13176 flag enum in hex.
13177
6740f0cc
SM
131782020-02-18 Simon Marchi <simon.marchi@efficios.com>
13179
13180 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13181 flag enums to contain duplicate enumerators.
13182 * valprint.c (generic_val_print_enum_1): Update comment.
13183
edd45eb0
SM
131842020-02-18 Simon Marchi <simon.marchi@efficios.com>
13185
13186 * dwarf2/read.c: Include "count-one-bits.h".
13187 (update_enumeration_type_from_children): If an enumerator has
13188 multiple bits set, don't treat the enumeration as a "flag enum".
13189 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13190 of flag enums have 0 or 1 bit set.
13191
6d0cf446
BE
131922020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13193
13194 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13195 conversion.
13196 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13197 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13198 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13199 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13200 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13201
7001c1b7
SM
132022020-02-18 Simon Marchi <simon.marchi@efficios.com>
13203
13204 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13205
fdb61c6c
SM
132062020-02-14 Simon Marchi <simon.marchi@efficios.com>
13207
13208 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13209 displaced_step_closure_up.
13210 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13211 (struct displaced_step_closure_up):
13212 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13213 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13214 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13215 Likewise.
13216 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13217 * gdbarch.c, gdbarch.h: Re-generate.
13218 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13219 displaced_step_closure_up.
13220 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13221 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13222 * infrun.h (displaced_step_closure_up): New type alias.
13223 (struct displaced_step_inferior_state) <step_closure>: Change
13224 type to displaced_step_closure_up.
13225 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13226 displaced_step_closure_up.
13227 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13228
a4a38eb4
TT
132292020-02-14 Tom Tromey <tom@tromey.com>
13230
13231 * minidebug.c (gnu_debug_key): New global.
13232 (find_separate_debug_file_in_section): Use it.
13233
e8217e61
SM
132342020-02-14 Simon Marchi <simon.marchi@efficios.com>
13235
13236 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13237 std::unique_ptr.
13238 * gdbarch.c: Re-generate.
13239 * gdbarch.h: Re-generate.
13240 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13241 change.
13242 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13243 type to std::unique_ptr.
13244 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13245 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13246 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13247 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13248 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13249 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13250 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13251 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13252 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13253
d8d83535
SM
132542020-02-14 Simon Marchi <simon.marchi@efficios.com>
13255
13256 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13257 std::unique_ptr.
13258 (displaced_step_clear): Rename to...
13259 (displaced_step_reset): ... this. Just call displaced->reset ().
13260 (displaced_step_clear_cleanup): Rename to...
13261 (displaced_step_reset_cleanup): ... this.
13262 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13263 (displaced_step_fixup): Likewise.
13264 (resume_1): Likewise.
13265 (handle_inferior_event): Restore child's memory before calling
13266 displaced_step_fixup on the parent.
13267 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13268 to std::unique_ptr.
13269 <step_closure>: Change type to std::unique_ptr.
13270
5f661e03
SM
132712020-02-14 Simon Marchi <simon.marchi@efficios.com>
13272
13273 * arm-tdep.c: Include count-one-bits.h.
13274 (cleanup_block_store_pc): Use count_one_bits.
13275 (cleanup_block_load_pc): Use count_one_bits.
13276 (arm_copy_block_xfer): Use count_one_bits.
13277 (thumb2_copy_block_xfer): Use count_one_bits.
13278 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13279 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13280 (thumb_get_next_pcs_raw): Use count_one_bits.
13281 (arm_get_next_pcs_raw): Use count_one_bits_l.
13282 * arch/arm.c (bitcount): Remove.
13283 * arch/arm.h (bitcount): Remove.
13284
8084e579
TT
132852020-02-14 Tom Tromey <tromey@adacore.com>
13286
13287 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13288 Update.
13289 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13290 * dwarf2/loc.c (call_site_find_chain_1): Return
13291 unique_xmalloc_ptr.
13292 (call_site_find_chain): Likewise.
13293
258bf0ee
RB
132942020-02-14 Richard Biener <rguenther@suse.de>
13295
13296 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13297 on expression with division operators.
13298
f98a8458
AKS
132992020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13300
13301 * MAINTAINERS (Write After Approval): Adding myself.
13302
d1437c0e
TT
133032020-02-12 Tom Tromey <tom@tromey.com>
13304
13305 * event-loop.c (event_data, gdb_event, event_handler_func):
13306 Remove.
13307
3d4560f7
TT
133082020-02-12 Tom Tromey <tom@tromey.com>
13309
13310 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13311 (dwarf2_frame_objfile_data): Add comment.
13312 (find_comp_unit, set_comp_unit): New functions.
13313 (dwarf2_frame_find_fde): Use find_comp_unit.
13314 (dwarf2_build_frame_info): Use set_comp_unit.
13315
21982304
TT
133162020-02-12 Tom Tromey <tom@tromey.com>
13317
13318 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13319 (comp_unit): Don't initialize objfile.
13320 (execute_cfa_program): Add text_offset parameter.
13321 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13322 (dwarf2_frame_cache): Update.
13323 (dwarf2_build_frame_info): Don't set "objfile" member.
13324
4debb237
TT
133252020-02-12 Tom Tromey <tom@tromey.com>
13326
13327 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13328 (decode_frame_entry): Likewise.
13329 (dwarf2_build_frame_info): Update.
13330
0d404d44
TT
133312020-02-12 Tom Tromey <tom@tromey.com>
13332
13333 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13334 (decode_frame_entry_1): Use the comp_unit obstack.
13335
a7a3ae5c
TT
133362020-02-12 Tom Tromey <tom@tromey.com>
13337
13338 * dwarf2/frame.c (struct comp_unit): Add initializers and
13339 constructor.
13340 (dwarf2_frame_objfile_data): Store a comp_unit.
13341 (dwarf2_frame_find_fde): Update.
13342 (dwarf2_build_frame_info): Use "new".
13343
a9d65418
TT
133442020-02-12 Tom Tromey <tom@tromey.com>
13345
13346 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13347 (dwarf2_fde_table): Typedef for std::vector.
13348 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13349 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13350 (decode_frame_entry): Update.
13351 (dwarf2_build_frame_info): Use "new".
13352
7559c217
CB
133532020-02-12 Christian Biesinger <cbiesinger@google.com>
13354
13355 * arm-tdep.c (arm_gdbarch_init): Update.
13356 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13357 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13358 have_neon, is_m>: Change to bool.
13359
aeefc73c
CB
133602020-02-12 Christian Biesinger <cbiesinger@google.com>
13361
13362 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13363
d27b8e5f
TT
133642020-02-12 Tom Tromey <tom@tromey.com>
13365
13366 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13367
cd5900f3
HD
133682020-02-12 Hannes Domani <ssbssa@yahoo.de>
13369
13370 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13371 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13372
f056b22b
TT
133732020-02-11 Tom Tromey <tom@tromey.com>
13374
13375 * psymtab.h: Update comment.
13376
f92ff6b5
TT
133772020-02-11 Tom Tromey <tom@tromey.com>
13378
13379 * gdb_obstack.h (struct auto_obstack): Use
13380 DISABLE_COPY_AND_ASSIGN.
13381
3fd6912b
TT
133822020-02-11 Tom Tromey <tom@tromey.com>
13383
13384 * dwarf2/frame.h (struct objfile): Don't forward declare.
13385
69ed9b74
CB
133862020-02-11 Christian Biesinger <cbiesinger@google.com>
13387
13388 * cris-tdep.c (cris_supply_gregset): Change signature to match
13389 what struct regset expects.
13390 (cris_regset): New struct.
13391 (fetch_core_registers): Remove.
13392 (cris_iterate_over_regset_sections): New function.
13393 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13394 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13395
bda874f6
CB
133962020-02-11 Christian Biesinger <cbiesinger@google.com>
13397
13398 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13399 registers.
13400
754e1564
CB
134012020-02-11 Christian Biesinger <cbiesinger@google.com>
13402
13403 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13404
8ddd8e0e
SM
134052020-02-11 Simon Marchi <simon.marchi@efficios.com>
13406
13407 * configure: Re-generate.
13408
898e7f60
SM
134092020-02-11 Simon Marchi <simon.marchi@efficios.com>
13410
13411 * configure: Re-generate.
13412
58df732b
SM
134132020-02-11 Simon Marchi <simon.marchi@efficios.com>
13414
13415 * acinclude: Update warning.m4 path.
13416 * warning.m4: Move to gdbsupport.
13417
da5bd37e
TT
134182020-02-11 Tom Tromey <tromey@adacore.com>
13419
13420 * remote.c (remote_console_output): Update.
13421 * printcmd.c (printf_command): Update.
13422 * event-loop.c (gdb_wait_for_event): Update.
13423 * linux-nat.c (sigchld_handler): Update.
13424 * remote-sim.c (gdb_os_write_stdout): Update.
13425 (gdb_os_flush_stdout): Update.
13426 (gdb_os_flush_stderr): Update.
13427 (gdb_os_write_stderr): Update.
13428 * exceptions.c (print_exception): Update.
13429 * remote-fileio.c (remote_fileio_func_read): Update.
13430 (remote_fileio_func_write): Update.
13431 * tui/tui.c (tui_enable): Update.
13432 * tui/tui-interp.c (tui_interp::init): Update.
13433 * utils.c (init_page_info): Update.
13434 (putchar_unfiltered, fputc_unfiltered): Update.
13435 (gdb_flush): Update.
13436 (emit_style_escape): Update.
13437 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13438 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13439 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13440 (stderr_file::write): Update.
13441 (stderr_file::puts): Update.
13442 * ui-file.h (ui_file_isatty, ui_file_write)
13443 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13444 (ui_file_puts): Don't declare.
13445
85f0dd3c
TV
134462020-02-10 Tom de Vries <tdevries@suse.de>
13447
13448 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13449 sentinel to char *.
13450
2e927613
TV
134512020-02-09 Tom de Vries <tdevries@suse.de>
13452
13453 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13454 filename if it matches "<artificial>".
13455
6bafc845
HD
134562020-02-09 Hannes Domani <ssbssa@yahoo.de>
13457
13458 * windows-tdep.c (struct enum_value_name): New struct.
13459 (create_enum): New function.
13460 (windows_get_siginfo_type): Create and use enum types.
13461
7928d571
HD
134622020-02-09 Hannes Domani <ssbssa@yahoo.de>
13463
13464 * NEWS: Mention $_siginfo support for Windows.
13465 * windows-nat.c (handle_exception): Set siginfo_er.
13466 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13467 (windows_xfer_siginfo): New function.
13468 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13469 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13470 (init_windows_gdbarch_data): New function.
13471 (get_windows_gdbarch_data): New function.
13472 (windows_get_siginfo_type): New function.
13473 (windows_init_abi): Register windows_get_siginfo_type.
13474 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13475
6751ebae
TT
134762020-02-08 Tom Tromey <tom@tromey.com>
13477
13478 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13479 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13480 <keep>: Declare method.
13481 <m_keep>: Remove member.
13482 <~cutu_reader>: Remove.
13483 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13484 (cutu_reader::cutu_reader): Update.
13485 (cutu_reader::keep): Rename from ~cutu_reader.
13486 (process_psymtab_comp_unit, build_type_psymtabs_1)
13487 (process_skeletonless_type_unit, load_partial_comp_unit)
13488 (load_full_comp_unit, dwarf2_read_addr_index)
13489 (read_signatured_type): Update.
13490
135f5437
TT
134912020-02-08 Tom Tromey <tom@tromey.com>
13492
13493 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13494 "want_partial_unit" parameter.
13495 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13496 Inline check for DW_TAG_partial_unit.
13497 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13498
9f66ff1c
TT
134992020-02-08 Tom Tromey <tom@tromey.com>
13500
13501 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13502 read.c.
13503 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13504 read.c.
13505
c8a7a66f
TT
135062020-02-08 Tom Tromey <tom@tromey.com>
13507
13508 * dwarf2/read.c (read_address): Move to comp-unit.c.
13509 (dwarf2_rnglists_process, dwarf2_ranges_process)
13510 (read_attribute_value, dwarf_decode_lines_1)
13511 (var_decode_location, decode_locdesc): Update.
13512 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13513 read.c. Remove "cu" parameter.
13514 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13515 method.
13516
8266302d
TT
135172020-02-08 Tom Tromey <tom@tromey.com>
13518
13519 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13520 (read_indirect_line_string): Update.
13521 * dwarf2/comp-unit.c (read_offset): Remove.
13522 (read_comp_unit_head): Update.
13523 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13524 method.
13525 (read_offset): Don't declare.
13526
4057dfde
TT
135272020-02-08 Tom Tromey <tom@tromey.com>
13528
13529 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13530 * dwarf2/read.c (struct comp_unit_head): Move to
13531 dwarf2/comp-unit.h.
13532 (enum class rcuh_kind): Move to comp-unit.h.
13533 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13534 (read_comp_unit_head, error_check_comp_unit_head)
13535 (read_and_check_comp_unit_head): Move to comp-unit.c.
13536 (read_offset, dwarf_unit_type_name): Likewise.
13537 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13538 (cutu_reader::cutu_reader, read_call_site_scope)
13539 (find_partial_die, follow_die_offset): Update.
13540 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13541
24aa364d
TT
135422020-02-08 Tom Tromey <tom@tromey.com>
13543
13544 * dwarf2/read.c (read_offset_1): Move to leb.c.
13545 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13546 (dwarf_decode_macro_bytes): Update.
13547 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13548 * dwarf2/leb.h (read_offset): Declare.
13549
2c7d5afc
TT
135502020-02-08 Tom Tromey <tom@tromey.com>
13551
13552 * dwarf2/read.c (dwarf2_section_size): Remove.
13553 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13554 Update.
13555 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13556
4075cb26
TT
135572020-02-08 Tom Tromey <tom@tromey.com>
13558
13559 * dwarf2/read.c (read_initial_length): Move to leb.c.
13560 * dwarf2/leb.h (read_initial_length): Declare.
13561 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13562 handle_nonstd parameter.
13563 * dwarf2/frame.c (read_initial_length): Remove.
13564 (decode_frame_entry_1): Update.
13565
09ba997f
TT
135662020-02-08 Tom Tromey <tom@tromey.com>
13567
13568 * dwarf2/loc.c (dwarf2_find_location_expression)
13569 (dwarf_evaluate_loc_desc::get_tls_address)
13570 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13571 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13572 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13573 (dwarf2_compile_property_to_c)
13574 (dwarf2_loc_desc_get_symbol_read_needs)
13575 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13576 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13577 (loclist_describe_location, loclist_tracepoint_var_ref)
13578 (loclist_generate_c_location): Update.
13579 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13580 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13581 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13582 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13583 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13584 (dwarf2_per_cu_data::addr_size)
13585 (dwarf2_per_cu_data::ref_addr_size)
13586 (dwarf2_per_cu_data::text_offset)
13587 (dwarf2_per_cu_data::addr_type): Now methods.
13588 (per_cu_header_read_in): Make per_cu "const".
13589 (dwarf2_version): Remove.
13590 (dwarf2_per_cu_data::int_type): Now a method.
13591 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13592 (set_die_type, read_array_type, read_subrange_index_type)
13593 (read_tag_string_type, read_subrange_type): Update.
13594 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13595 offset_size, ref_addr_size, text_offset, addr_type, version,
13596 objfile, int_type, addr_sized_int_type>: Declare methods.
13597
96c738c0
TT
135982020-02-08 Tom Tromey <tom@tromey.com>
13599
13600 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13601 Move earlier.
13602
8fdd972c
TT
136032020-02-08 Tom Tromey <tom@tromey.com>
13604
13605 * dwarf2/read.h (dwarf_line_debug): Declare.
13606 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13607 * dwarf2/read.c: Move line_header code to new files.
13608 (dwarf_line_debug): No longer static.
13609 * dwarf2/line-header.c: New file.
13610 * dwarf2/line-header.h: New file.
13611
03075812
TT
136122020-02-08 Tom Tromey <tom@tromey.com>
13613
13614 * dwarf2/read.c (struct line_header) <file_full_name,
13615 file_file_name>: Return unique_xmalloc_ptr.
13616 (line_header::file_file_name): Update.
13617 (line_header::file_full_name): Update.
13618 (dw2_get_file_names_reader): Update.
13619 (macro_start_file): Update.
13620
bb822404
TT
136212020-02-08 Tom Tromey <tom@tromey.com>
13622
13623 * dwarf2/read.c (struct line_header) <file_full_name,
13624 file_file_name>: Declare methods.
13625 (dw2_get_file_names_reader): Update.
13626 (file_file_name): Now a method.
13627 (file_full_name): Likewise.
13628 (macro_start_file): Update.
13629
009b64fc
TT
136302020-02-08 Tom Tromey <tom@tromey.com>
13631
13632 * dwarf2/read.c (dwarf_always_disassemble)
13633 (show_dwarf_always_disassemble): Move to loc.c.
13634 (_initialize_dwarf2_read): Move "always-disassemble" registration
13635 to loc.c.
13636 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13637 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13638 static.
13639 (show_dwarf_always_disassemble): Move from read.c.
13640 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13641
5895093f
TT
136422020-02-08 Tom Tromey <tom@tromey.com>
13643
13644 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13645 (create_quick_file_names_table): Return htab_up.
13646 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13647 Update.
13648 * dwarf2/read.h (struct dwarf2_per_objfile)
13649 <quick_file_names_table>: Now htab_up.
13650
b3b32279
TT
136512020-02-08 Tom Tromey <tom@tromey.com>
13652
13653 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13654
1d33d811
TT
136552020-02-08 Tom Tromey <tom@tromey.com>
13656
13657 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13658 Rewrite.
13659 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13660 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13661 (abbrev_table::abbrev_table): No longer inline.
13662 (ABBREV_HASH_SIZE): Remove.
13663 (abbrev_table::m_abbrevs): Now an htab_up.
13664
86de1d91
TT
136652020-02-08 Tom Tromey <tom@tromey.com>
13666
13667 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13668 (cutu_reader): Update.
13669 (build_type_psymtabs_1): Update.
13670 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13671 (abbrev_table::alloc_abbrev): Update.
13672 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13673 (abbrev_table::read): New static method, renamed from
13674 abbrev_table_read_table.
13675 (abbrev_table::alloc_abbrev)
13676 (abbrev_table::add_abbrev): Now private.
13677 (abbrev_table::abbrev_table): Now private.
13678 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13679
0335378b
TT
136802020-02-08 Tom Tromey <tom@tromey.com>
13681
13682 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13683 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13684 htab_up.
13685
48b490f2
TT
136862020-02-08 Tom Tromey <tom@tromey.com>
13687
13688 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13689 htab_up.
13690 (lookup_dwo_unit_in_dwp): Update.
13691 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13692 on obstack.
13693
bc68fb19
TT
136942020-02-08 Tom Tromey <tom@tromey.com>
13695
13696 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13697 obstack.
13698
d15acc42
TT
136992020-02-08 Tom Tromey <tom@tromey.com>
13700
13701 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13702 line_header_hash.
13703 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13704 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13705 Change type to htab_up.
13706
eaa5fa8b
TT
137072020-02-08 Tom Tromey <tom@tromey.com>
13708
13709 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13710 htab_up. Don't allocate on obstack.
13711 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13712 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13713 Change type to htab_up.
13714
b0b6a987
TT
137152020-02-08 Tom Tromey <tom@tromey.com>
13716
13717 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13718 Change type to htab_up.
13719 * dwarf2/read.c (create_signatured_type_table_from_index)
13720 (create_signatured_type_table_from_debug_names)
13721 (create_all_type_units, add_type_unit)
13722 (lookup_dwo_signatured_type, lookup_signatured_type)
13723 (process_skeletonless_type_unit): Update.
13724 (create_debug_type_hash_table, create_debug_types_hash_table):
13725 Change type of types_htab.
13726 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13727 htab_up. Don't allocate on obstack.
13728 (create_cus_hash_table): Change type of cus_htab parameter.
13729 (struct dwo_file) <cus, tus>: Now htab_up.
13730 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13731 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13732 (queue_and_load_all_dwo_tus): Update.
13733 * dwarf2/index-write.c (write_gdbindex): Update.
13734 (write_debug_names): Update.
13735
39856def
TT
137362020-02-08 Tom Tromey <tom@tromey.com>
13737
13738 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13739 dwarf2/read.c. Remove "next" member. Add constructor ntad
13740 destructor.
13741 (struct dwarf2_per_objfile) <queue>: New member.
13742 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13743 dwarf2/read.h.
13744 (dwarf2_queue, dwarf2_queue_tail): Remove.
13745 (class dwarf2_queue_guard): Add parameter to constructor. Use
13746 DISABLE_COPY_AND_ASSIGN.
13747 <m_per_objfile>: New member.
13748 <~dwarf2_queue_guard>: Rewrite.
13749 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13750 Update.
13751 (~dwarf2_queue_item): New.
13752
3e225074
TT
137532020-02-08 Tom Tromey <tom@tromey.com>
13754
13755 * dwarf2/read.c (struct die_info) <has_children>: New member.
13756 (dw2_get_file_names_reader): Remove has_children.
13757 (dw2_get_file_names): Update.
13758 (read_cutu_die_from_dwo): Remove has_children.
13759 (cutu_reader::init_tu_and_read_dwo_dies)
13760 (cutu_reader::cutu_reader): Update.
13761 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13762 Remove has_children.
13763 (build_type_psymtabs_1, process_skeletonless_type_unit)
13764 (load_partial_comp_unit, load_full_comp_unit): Update.
13765 (create_dwo_cu_reader): Remove has_children.
13766 (create_cus_hash_table, read_die_and_children): Update.
13767 (read_full_die_1,read_full_die): Remove has_children.
13768 (read_signatured_type): Update.
13769 (class cutu_reader) <has_children>: Remove.
13770
82ca8957
TT
137712020-02-08 Tom Tromey <tom@tromey.com>
13772
13773 * dwarf2/expr.c: Rename from dwarf2expr.c.
13774 * dwarf2/expr.h: Rename from dwarf2expr.h.
13775 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13776 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13777 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13778 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13779 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13780 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13781 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13782 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13783 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13784 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13785 * dwarf2/loc.c: Rename from dwarf2loc.c.
13786 * dwarf2/loc.h: Rename from dwarf2loc.h.
13787 * dwarf2/read.c: Rename from dwarf2read.c.
13788 * dwarf2/read.h: Rename from dwarf2read.h.
13789 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13790 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13791 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13792 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13793 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13794 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13795 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13796 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13797 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13798 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13799 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13800 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13801 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13802 Update.
13803 * Makefile.in (COMMON_SFILES): Update.
13804 (HFILES_NO_SRCDIR): Update.
13805
9e35d499
TT
138062020-02-08 Tom Tromey <tom@tromey.com>
13807
13808 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13809 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13810
1eba2311
TT
138112020-02-08 Tom Tromey <tom@tromey.com>
13812
13813 * dwarf2read.h (struct die_info): Don't declare.
13814
e41c2da2
TT
138152020-02-08 Tom Tromey <tom@tromey.com>
13816
13817 * dwarf2read.h (die_info_ptr): Remove typedef.
13818
4fc6c0d5
TT
138192020-02-08 Tom Tromey <tom@tromey.com>
13820
13821 * dwarf2read.c (read_call_site_scope)
13822 (handle_data_member_location, dwarf2_add_member_fn)
13823 (mark_common_block_symbol_computed, read_common_block)
13824 (attr_to_dynamic_prop, partial_die_info::read)
13825 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13826 (dwarf2_symbol_mark_computed, set_die_type): Update.
13827 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13828 method.
13829 (attr_form_is_block): Don't declare.
13830 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13831
cd6c91b4
TT
138322020-02-08 Tom Tromey <tom@tromey.com>
13833
13834 * dwarf2read.c (dwarf2_find_base_address, )
13835 (read_call_site_scope, rust_containing_type)
13836 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13837 (handle_data_member_location, dwarf2_add_member_fn)
13838 (get_alignment, read_structure_type, process_structure_scope)
13839 (mark_common_block_symbol_computed, read_common_block)
13840 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13841 (partial_die_info::read, read_attribute_value, new_symbol)
13842 (lookup_die_type, dwarf2_get_ref_die_offset)
13843 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13844 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13845 (dwarf2_symbol_mark_computed): Update.
13846 * dwarf2/attribute.h (struct attribute) <value_as_address,
13847 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13848 methods.
13849 (value_as_address, attr_form_is_section_offset)
13850 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13851 * dwarf2/attribute.c (attribute::value_as_address)
13852 (attribute::form_is_section_offset, attribute::form_is_constant)
13853 (attribute::form_is_ref): Now methods.
13854
162dce55
TT
138552020-02-08 Tom Tromey <tom@tromey.com>
13856
13857 * dwarf2read.c (struct attribute, DW_STRING)
13858 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13859 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13860 (attr_form_is_block, attr_form_is_section_offset)
13861 (attr_form_is_constant, attr_form_is_ref): Move.
13862 * dwarf2/attribute.h: New file.
13863 * dwarf2/attribute.c: New file, from dwarf2read.c.
13864 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13865
3054dd54
TT
138662020-02-08 Tom Tromey <tom@tromey.com>
13867
13868 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13869 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13870 Move.
13871 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13872 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13873 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13874 abbrev.c.
13875 * dwarf2/abbrev.h: New file.
13876 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13877 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13878
96b79293
TT
138792020-02-08 Tom Tromey <tom@tromey.com>
13880
13881 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13882 (dwarf2_section_size, dwarf2_get_section_info)
13883 (create_signatured_type_table_from_debug_names)
13884 (create_addrmap_from_aranges, read_debug_names_from_section)
13885 (get_gdb_index_contents_from_section, read_comp_unit_head)
13886 (error_check_comp_unit_head, read_abbrev_offset)
13887 (create_debug_type_hash_table, init_cu_die_reader)
13888 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13889 (read_comp_units_from_section, create_cus_hash_table)
13890 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13891 (create_dwp_v2_section, dwarf2_rnglists_process)
13892 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13893 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13894 (read_indirect_string_from_dwz, read_addr_index_1)
13895 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13896 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13897 (fill_in_loclist_baton): Update.
13898 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13899 get_containing_section, get_bfd_owner, get_bfd_section,
13900 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13901 (dwarf2_read_section, get_section_name, get_section_file_name)
13902 (get_containing_section, get_section_bfd_owner)
13903 (get_section_bfd_section, get_section_name, get_section_file_name)
13904 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13905 declare.
13906 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13907 (dwarf2_section_info::get_bfd_owner)
13908 (dwarf2_section_info::get_bfd_section)
13909 (dwarf2_section_info::get_name)
13910 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13911 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13912 (dwarf2_section_info::read): Now methods.
13913 * dwarf-index-write.c (class debug_names): Update.
13914
2c86cff9
TT
139152020-02-08 Tom Tromey <tom@tromey.com>
13916
13917 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13918 Move to dwarf2/section.h.
13919 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13920 (get_section_bfd_section, get_section_name)
13921 (get_section_file_name, get_section_id, get_section_flags)
13922 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13923 dwarf2/section.c.
13924 * dwarf2/section.h: New file.
13925 * dwarf2/section.c: New file, from dwarf2read.c.
13926 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13927
f4382c45
TT
139282020-02-08 Tom Tromey <tom@tromey.com>
13929
13930 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13931 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13932 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13933 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13934 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13935 * dwarf2/leb.h: New file, from dwarf2read.c.
13936 * dwarf2/leb.c: New file, from dwarf2read.c.
13937 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13938 Remove.
13939 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13940 (COMMON_SFILES): Add dwarf2/leb.c.
13941
01840b7a
JB
139422020-02-08 Joel Brobecker <brobecker@adacore.com>
13943
13944 GDB 9.1 released.
13945
dfcb27e4
IB
139462020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13947
13948 PR gdb/25190:
aac66a4c
SM
13949 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13950 * gdb/remote.c (remote_console_output): Update.
13951 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13952 (ui_file_puts): ...this.
13953 * gdb/ui-file.h (ui_file_puts): Add declaration.
13954 * gdb/utils.c (emit_style_escape): Update.
13955 (flush_wrap_buffer): Update.
13956 (fputs_maybe_filtered): Update.
13957 (fputs_unfiltered): Add function.
dfcb27e4 13958
faa17681
IB
139592020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13960
aac66a4c
SM
13961 * gdb/event-loop.c (gdb_wait_for_event): Update.
13962 * gdb/printcmd.c (printf_command): Update.
13963 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13964 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13965 (gdb_os_flush_stderr): Update.
13966 * gdb/remote.c (remote_console_output): Update.
13967 * gdb/ui-file.c (gdb_flush): Rename to...
13968 (ui_file_flush): ...this.
13969 (stderr_file::write): Update.
13970 (stderr_file::puts): Update.
13971 * gdb/ui-file.h (gdb_flush): Rename to...
13972 (ui_file_flush): ...this.
13973 * gdb/utils.c (gdb_flush): Add function.
13974 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13975
5abbbe1d
TT
139762020-02-07 Tom Tromey <tromey@adacore.com>
13977
13978 PR breakpoints/24915:
13979 * source.c (find_and_open_source): Do not check basenames_may_differ.
13980
919adfe8
TT
139812020-02-07 Tom Tromey <tom@tromey.com>
13982
13983 * README: Update gdbserver documentation.
13984 * gdbserver: Move to top level.
13985 * configure.tgt (build_gdbserver): Remove.
13986 * configure.ac: Remove --enable-gdbserver.
13987 * configure: Rebuild.
13988 * Makefile.in (distclean): Don't mention gdbserver.
13989
1d5d29e7
SV
139902020-02-06 Shahab Vahedi <shahab@synopsys.com>
13991
13992 * source-cache.c (source_cache::ensure): Surround
13993 get_plain_source_lines with a try/catch.
13994 (source_cache::get_line_charpos): Get rid of try/catch
13995 and only check for the return value of "ensure".
13996 * tui/tui-source.c (tui_source_window::set_contents):
13997 Simplify "nlines" calculation.
13998
6eb1129c
SV
139992020-02-06 Shahab Vahedi <shahab@synopsys.com>
14000
14001 * MAINTAINERS (Write After Approval): Add myself.
14002
c6a42d11
CB
140032020-02-05 Christian Biesinger <cbiesinger@google.com>
14004
14005 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14006 function call.
14007
c8ecdda6
CB
140082020-02-05 Christian Biesinger <cbiesinger@google.com>
14009
14010 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14011
f6480e70
MR
140122020-02-05 Maciej W. Rozycki <macro@wdc.com>
14013
14014 * nat/riscv-linux-tdesc.h: New file.
14015 * nat/riscv-linux-tdesc.c: New file, taking code from...
14016 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14017 ... here.
14018 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14019 NATDEPFILES.
14020
dcc9fbc6
AB
140212020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14022
14023 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14024 we don't set the fake simulator ptid to the null_ptid.
14025
719546c4
SM
140262020-02-03 Simon Marchi <simon.marchi@efficios.com>
14027
14028 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14029 * gdbthread.h (class thread_info) <resumed>: Likewise.
14030 * infrun.c (resume_1): Likewise.
14031 (proceed): Likewise.
14032 (infrun_thread_stop_requested): Likewise.
14033 (stop_all_threads): Likewise.
14034 (handle_inferior_event): Likewise.
14035 (restart_threads): Likewise.
14036 (finish_step_over): Likewise.
14037 (keep_going_stepped_thread): Likewise.
14038 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14039 (linux_handle_extended_wait): Likewise.
14040 * record-btrace.c (get_thread_current_frame_id): Likewise.
14041 * record-full.c (record_full_wait_1): Likewise.
14042 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14043 * target.c (target_resume): Likewise.
14044 * thread.c (set_running_thread): Likewise.
14045
e409c542
AKS
140462020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14047
14048 * f-valprint.c (f77_print_array_1): Changed datatype of index
14049 variable to LONGEST from int to enable it to contain bound
14050 values correctly.
14051
ee98c0da
MR
140522020-02-03 Maciej W. Rozycki <macro@wdc.com>
14053
14054 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14055 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14056 offsets according to FLEN determined.
14057 (riscv_linux_nat_target::read_description): Determine FLEN
14058 dynamically.
14059 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14060 according to FLEN determined.
14061 (riscv_linux_nat_target::store_registers): Likewise.
14062
aa66aac4
SV
140632020-02-01 Shahab Vahedi <shahab@synopsys.com>
14064
14065 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14066 when reg->group is empty and reggroup is not.
14067
fd9faca8
TT
140682020-01-31 Tom Tromey <tromey@adacore.com>
14069
14070 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14071 Call beneath target's mourn_inferior after unpushing.
14072
42330a68
AB
140732020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14074
14075 PR tui/9765
14076 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14077 have enough lines to fill the screen, still return the lowest
14078 address we found.
14079
7a27a45b
AB
140802020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14081
14082 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14083 '-', '<', and '>' commands.
14084
c47f70e2
PA
140852020-01-29 Pedro Alves <palves@redhat.com>
14086 Sergio Durigan Junior <sergiodj@redhat.com>
14087
14088 * infcmd.c (construct_inferior_arguments): Assert that
14089 'argc' is greater than 0.
14090
5133a315
LM
140912020-01-29 Luis Machado <luis.machado@linaro.org>
14092
14093 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14094 (BRK_INSN_MASK): Define to 0xd4200000.
14095 (aarch64_program_breakpoint_here_p): New function.
14096 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14097 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14098 breakpoint.c.
14099 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14100 breakpoint.h
14101 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14102 call gdbarch_program_breakpoint_here_p.
14103 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14104 default_program_breakpoint_here_p, changed return type to bool and
14105 simplified.
14106 * breakpoint.h (program_breakpoint_here): Moved prototype to
14107 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14108 return type to bool.
14109 * gdbarch.c: Regenerate.
14110 * gdbarch.h: Regenerate.
14111 * gdbarch.sh (program_breakpoint_here_p): New method.
14112 * infrun.c (handle_signal_stop): Call
14113 gdbarch_program_breakpoint_here_p.
14114
168f8c6b
TT
141152020-01-26 Tom Tromey <tom@tromey.com>
14116
14117 * ctfread.c (struct ctf_fp_info): Reindent.
14118 (_initialize_ctfread): Remove.
14119
128a391f
TT
141202020-01-26 Tom Tromey <tom@tromey.com>
14121
14122 * psymtab.c (partial_map_expand_apply)
14123 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14124 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14125 (psym_print_stats, psym_expand_symtabs_for_function)
14126 (psym_map_symbol_filenames, psym_map_matching_symbols)
14127 (psym_expand_symtabs_matching)
14128 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14129 (maintenance_check_psymtabs): Use new methods.
14130 * psympriv.h (struct partial_symtab) <readin_p,
14131 get_compunit_symtab>: New methods.
14132 <readin, compunit_symtab>: Remove members.
14133 (struct standard_psymtab): New.
14134 (struct legacy_psymtab): Derive from standard_psymtab.
14135 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14136 standard_psymtab.
14137 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14138
0494dbec
TT
141392020-01-26 Tom Tromey <tom@tromey.com>
14140
14141 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14142 read_dependencies. Add assert.
14143 * psymtab.c (partial_symtab::read_dependencies): New method.
14144 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14145 method.
14146 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14147 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14148 read_dependencies.
14149 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14150 Add assert.
14151
8566b89b
TT
141522020-01-26 Tom Tromey <tom@tromey.com>
14153
14154 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14155 Call expand_psymtab.
14156 (xcoff_read_symtab): Call expand_psymtab.
14157 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14158 legacy_expand_psymtab.
14159 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14160 method.
14161 (struct legacy_psymtab) <expand_psymtab>: Implement.
14162 <legacy_expand_psymtab>: New member.
14163 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14164 (parse_partial_symbols): Set legacy_expand_psymtab.
14165 (psymtab_to_symtab_1): Change argument order. Call
14166 expand_psymtab.
14167 (new_psymtab): Set legacy_expand_psymtab.
14168 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14169 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14170 expand_psymtab.
14171 (dwarf2_psymtab::expand_psymtab): Rename from
14172 psymtab_to_symtab_1. Call expand_psymtab.
14173 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14174 (dbx_end_psymtab): Likewise.
14175 (dbx_psymtab_to_symtab_1): Change argument order. Call
14176 expand_psymtab.
14177 (dbx_read_symtab): Call expand_psymtab.
14178 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14179 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14180 (ctf_psymtab::read_symtab): Call expand_psymtab.
14181
077cbab2
TT
141822020-01-26 Tom Tromey <tom@tromey.com>
14183
14184 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14185 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14186 messages.
14187 * mdebugread.c (mdebug_read_symtab): Remove prints.
14188 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14189 assert.
14190 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14191
891813be
TT
141922020-01-26 Tom Tromey <tom@tromey.com>
14193
14194 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14195 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14196 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14197 legacy_symtab.
14198 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14199 * psymtab.c (psymtab_to_symtab): Call method.
14200 (dump_psymtab): Update.
14201 * psympriv.h (struct partial_symtab): Add virtual destructor.
14202 <read_symtab>: New method.
14203 (struct legacy_symtab): New.
14204 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14205 (struct pst_map) <pst>: Now a legacy_psymtab.
14206 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14207 (new_psymtab): Use legacy_psymtab.
14208 * dwarf2read.h (struct dwarf2_psymtab): New.
14209 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14210 * dwarf2read.c (dwarf2_create_include_psymtab)
14211 (dwarf2_build_include_psymtabs, create_type_unit_group)
14212 (create_partial_symtab, process_psymtab_comp_unit_reader)
14213 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14214 (set_partial_user): Use dwarf2_psymtab.
14215 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14216 (psymtab_to_symtab_1, process_full_comp_unit)
14217 (process_full_type_unit, dwarf2_ranges_read)
14218 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14219 (dwarf_decode_lines): Use dwarf2_psymtab.
14220 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14221 (add_address_entry_worker, write_one_signatured_type)
14222 (recursively_count_psymbols, recursively_write_psymbols)
14223 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14224 (write_debug_names): Likewise.
14225 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14226 <pst>: Now a legacy_psymtab.
14227 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14228 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14229 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14230 * ctfread.c (struct ctf_psymtab): New.
14231 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14232 ctf_psymtab.
14233 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14234 (create_partial_symtab): Return a ctf_psymtab.
14235 (scan_partial_symbols): Update.
14236
c3693a1d
TT
142372020-01-26 Tom Tromey <tom@tromey.com>
14238
14239 * xcoffread.c (xcoff_start_psymtab): Use new.
14240 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14241 renamed from start_psymtab_common.
14242 * psympriv.h (struct partial_symtab): Add new constructor.
14243 (start_psymtab_common): Don't declare.
14244 * mdebugread.c (parse_partial_symbols): Use new.
14245 * dwarf2read.c (create_partial_symtab): Use new.
14246 * dbxread.c (start_psymtab): Use new.
14247 * ctfread.c (create_partial_symtab): Use new.
14248
32caafd0
TT
142492020-01-26 Tom Tromey <tom@tromey.com>
14250
14251 * xcoffread.c (xcoff_end_psymtab): Use new.
14252 * psymtab.c (start_psymtab_common): Use new.
14253 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14254 Update.
14255 * psympriv.h (struct partial_symtab): Add parameters to
14256 constructor. Don't inline.
14257 (allocate_psymtab): Don't declare.
14258 * mdebugread.c (new_psymtab): Use new.
14259 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14260 * dbxread.c (dbx_end_psymtab): Use new.
14261
abaa2f23
TT
142622020-01-26 Tom Tromey <tom@tromey.com>
14263
14264 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14265 allocate_psymtab. Update documentation.
14266 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14267 allocate_psymtab. Do not use new.
14268 (allocate_psymtab): Use new. Update.
14269
6d94535f
TT
142702020-01-26 Tom Tromey <tom@tromey.com>
14271
14272 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14273 * psymtab.c (psym_print_stats): Update.
14274 * psympriv.h (struct partial_symtab) <readin,
14275 psymtabs_addrmap_supported, anonymous>: Now bool.
14276 * mdebugread.c (psymtab_to_symtab_1): Update.
14277 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14278 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14279 (process_full_comp_unit, process_full_type_unit): Update.
14280 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14281 * ctfread.c (psymtab_to_symtab): Update.
14282
6f17252b
TT
142832020-01-26 Tom Tromey <tom@tromey.com>
14284
14285 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14286 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14287 * psymtab.c (psymtab_storage): Delete psymtabs.
14288 (psymtab_storage::allocate_psymtab): Use new.
14289 (psymtab_storage::discard_psymtab): Use delete.
14290 * psympriv.h (struct partial_symtab): Add constructor and
14291 initializers.
14292
f6f1cebc
TT
142932020-01-26 Tom Tromey <tom@tromey.com>
14294
14295 * machoread.c: Do not include psympriv.h.
14296
e47e48f6
PW
142972020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14298
14299 * NEWS: Mention the new option and the set/show commands.
14300
a2fedca9
PW
143012020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14302
14303 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14304 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14305 (validate_exec_file): New variables, enums, functions.
14306 (exec_file_locate_attach, print_section_info): Style the filenames.
14307 (_initialize_exec): Install show_exec_file_mismatch_command and
14308 set_exec_file_mismatch_command.
14309 * gdbcore.h (validate_exec_file): Declare.
14310 * infcmd.c (attach_command): Call validate_exec_file.
14311 * remote.c ( remote_target::remote_add_inferior): Likewise.
14312
7ffa82e1
AB
143132020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14314
14315 * frame.c (find_frame_sal): Move call to get_next_frame into more
14316 inner scope.
14317 * inline-frame.c (inilne_state) <inline_state>: Update argument
14318 types.
14319 (inilne_state) <skipped_symbol>: Rename to...
14320 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14321 (skip_inline_frames): Build vector of skipped symbols and use this
14322 to reate the inline_state.
14323 (inline_skipped_symbol): Add a comment and some assertions, fetch
14324 skipped symbol from the list.
14325
3d92a3e3
AB
143262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14327
14328 * buildsym.c (lte_is_less_than): Delete.
14329 (buildsym_compunit::end_symtab_with_blockvector): Create local
14330 lambda function to sort line table entries, and use
14331 std::stable_sort instead of std::sort.
14332 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14333 markers when looking for a previous line.
14334
94a72be7
AB
143352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14336
14337 * dwarf2read.c (lnp_state_machine::record_line): Include
14338 end_sequence parameter in debug print out. Record the line if we
14339 are at an end_sequence marker even if it's not the start of a
14340 statement.
14341 * symmisc.c (maintenance_print_one_line_table): Print end of
14342 sequence markers with 'END' not '0'.
14343
53af73bf
PA
143442020-01-24 Pedro Alves <palves@redhat.com>
14345
14346 PR gdb/25410
14347 * thread.c (scoped_restore_current_thread::restore): Use
14348 switch_to_inferior_no_thread.
14349 * exec.c: Include "progspace-and-thread.h".
14350 (add_target_sections, remove_target_sections):
14351 scoped_restore_current_pspace_and_thread instead of
14352 scoped_restore_current_thread.
14353 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14354 and aspace to the inferior before calling clone_program_space.
14355 Remove stale comment.
14356
3050c6f4
CB
143572020-01-24 Christian Biesinger <cbiesinger@google.com>
14358
14359 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14360 (arm_netbsd_nat_target::fetch_registers): ...this.
14361 (arm_nbsd_nat_target::store_registers): Rename to...
14362 (arm_netbsd_nat_target::store_registers): ...this.
14363
73685c7e
CB
143642020-01-24 Christian Biesinger <cbiesinger@google.com>
14365
14366 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14367 register_t.
14368
89203d40
CB
143692020-01-24 Christian Biesinger <cbiesinger@google.com>
14370
14371 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14372 Update comment.
14373 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14374 Likewise.
14375 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14376 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14377 the correct replacement (iterate_over_regset_sections).
14378 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14379 Update comment.
14380
1ba1ac88
AB
143812020-01-24 Graham Markall <graham.markall@embecosm.com>
14382
14383 PR gdb/23718
14384 * gdb/python/python.c (execute_gdb_command): Call
14385 async_enable_stdin in catch block.
14386
f3364a6d
AB
143872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14388
14389 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14390 SWITCH_THRU_ALL_UIS.
14391
733d0a67
AB
143922020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14393
14394 PR tui/9765
14395 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14396 comment, add extra parameter, and update to store previous symbol
14397 when appropriate.
14398 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14399 add extra parameter.
14400 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14401 remove unneeded parameter, add try/catch around gdb_print_insn,
14402 rewrite to add items to asm_lines vector.
14403 (tui_find_backward_disassembly_start_address): New function.
14404 (tui_find_disassembly_address): Updated throughout.
14405 (tui_disasm_window::set_contents): Update for changes to
14406 tui_disassemble.
14407 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14408 number of lines to scroll.
14409
b3b3bada
SM
144102020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14411
14412 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14413 (SECT_OFF_DATA): Likewise.
14414 (SECT_OFF_RODATA): Likewise.
14415 (SECT_OFF_TEXT): Likewise.
14416 (SECT_OFF_BSS): Likewise.
14417 (struct objfile) <text_section_offset, data_section_offset>: New
14418 methods.
14419 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14420 objfile::text_section_offset.
14421 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14422 * coffread.c (coff_symtab_read): Likewise.
14423 (enter_linenos): Likewise.
14424 (process_coff_symbol): Likewise.
14425 * ctfread.c (get_objfile_text_range): Likewise.
14426 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14427 Use objfile::data_section_offset.
14428 * dwarf2-frame.c (execute_cfa_program): Use
14429 objfile::text_section_offset.
14430 (dwarf2_frame_find_fde): Likewise.
14431 * dwarf2read.c (create_addrmap_from_index): Likewise.
14432 (create_addrmap_from_aranges): Likewise.
14433 (dw2_find_pc_sect_compunit_symtab): Likewise.
14434 (process_psymtab_comp_unit_reader): Likewise.
14435 (add_partial_symbol): Likewise.
14436 (add_partial_subprogram): Likewise.
14437 (process_full_comp_unit): Likewise.
14438 (read_file_scope): Likewise.
14439 (read_func_scope): Likewise.
14440 (read_lexical_block_scope): Likewise.
14441 (read_call_site_scope): Likewise.
14442 (dwarf2_rnglists_process): Likewise.
14443 (dwarf2_ranges_process): Likewise.
14444 (dwarf2_ranges_read): Likewise.
14445 (dwarf_decode_lines_1): Likewise.
14446 (new_symbol): Likewise.
14447 (dwarf2_fetch_die_loc_sect_off): Likewise.
14448 (dwarf2_per_cu_text_offset): Likewise.
14449 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14450 * hppa-tdep.c (read_unwind_info): Likewise.
14451 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14452 * psympriv.h (struct partial_symtab): Likewise.
14453 * psymtab.c (find_pc_sect_psymtab): Likewise.
14454 * solib-svr4.c (enable_break): Likewise.
14455 * stap-probe.c (relocate_address): Use
14456 objfile::data_section_offset.
14457 * xcoffread.c (enter_line_range): Use
14458 objfile::text_section_offset.
14459 (read_xcoff_symtab): Likewise.
14460
ab53f382
SM
144612020-01-23 Simon Marchi <simon.marchi@efficios.com>
14462
14463 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14464 declaration to narrower scopes.
14465
e7eee665
SM
144662020-01-23 Simon Marchi <simon.marchi@efficios.com>
14467
14468 * darwin-nat.h (struct darwin_exception_msg, enum
14469 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14470 Move up.
14471 (class darwin_nat_target) <wait_1, check_new_threads,
14472 decode_exception_message, decode_message, stop_inferior,
14473 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14474 * darwin-nat.c (darwin_check_new_threads): Rename to...
14475 (darwin_nat_target::check_new_threads): ... this.
14476 (darwin_suspend_inferior_it): Remove.
14477 (darwin_decode_exception_message): Rename to...
14478 (darwin_nat_target::decode_exception_message): ... this.
14479 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14480 (darwin_decode_message): Rename to...
14481 (darwin_nat_target::decode_message): ... this.
14482 (cancel_breakpoint): Rename to...
14483 (darwin_nat_target::cancel_breakpoint): ... this.
14484 (darwin_wait): Rename to...
14485 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14486 instead of iterate_over_inferiors.
14487 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14488 (darwin_stop_inferior): Rename to...
14489 (darwin_nat_target::stop_inferior): ... this.
14490 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14491 (darwin_init_thread_list): Rename to...
14492 (darwin_nat_target::init_thread_list): ... this.
14493 (darwin_ptrace_him): Rename to...
14494 (darwin_nat_target::ptrace_him): ... this.
14495 (darwin_nat_target::create_inferior): Pass lambda function to
14496 fork_inferior.
14497 (darwin_nat_target::detach): Call stop_inferior instead of
14498 darwin_stop_inferior.
14499 * fork-inferior.h (fork_inferior): Change init_trace_fun
14500 parameter to gdb::function_view.
14501 * fork-inferior.c (fork_inferior): Likewise.
14502
c162ed3e
HD
145032020-01-23 Hannes Domani <ssbssa@yahoo.de>
14504
14505 * i386-cygwin-tdep.c (core_process_module_section): Update.
14506 * windows-nat.c (struct lm_info_windows): Add text_offset.
14507 (windows_xfer_shared_libraries): Update.
14508 * windows-tdep.c (windows_xfer_shared_library):
14509 Add text_offset_cached argument.
14510 * windows-tdep.h (windows_xfer_shared_library): Update.
14511
a1237872
SM
145122020-01-21 Simon Marchi <simon.marchi@efficios.com>
14513
14514 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14515
b3ee6dd9
SM
145162020-01-21 Simon Marchi <simon.marchi@efficios.com>
14517
14518 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14519 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14520 replace with range-based for.
14521 (gdbsim_interrupt_inferior): Remove.
14522 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14523 with a range-based for. Inline code from
14524 gdbsim_interrupt_inferior.
14525
f9fac3c8
SM
145262020-01-21 Simon Marchi <simon.marchi@efficios.com>
14527
14528 * infrun.c (proceed): Fix indentation.
14529
f6474de9
TT
145302020-01-21 Tom Tromey <tromey@adacore.com>
14531
14532 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14533 * python/python.c (python_extension_ops): Update.
14534 (gdbpy_colorize): New function.
14535 * python/lib/gdb/__init__.py (colorize): New function.
14536 * extension.h (ext_lang_colorize): Declare.
14537 * extension.c (ext_lang_colorize): New function.
14538 * extension-priv.h (struct extension_language_ops) <colorize>: New
14539 member.
14540 * cli/cli-style.c (_initialize_cli_style): Update help text.
14541
f0c702d4
LM
145422020-01-21 Luis Machado <luis.machado@linaro.org>
14543
14544 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14545 <cond>: Change type to bool.
14546 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14547 (aarch64_displaced_step_cb): Likewise.
14548 (aarch64_displaced_step_tb): Likewise.
14549
1ab139e5
LM
145502020-01-21 Luis Machado <luis.machado@linaro.org>
14551
14552 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14553 output.
14554
0c271889
LM
145552020-01-21 Luis Machado <luis.machado@linaro.org>
14556
14557 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14558 <pc_adjust>: Adjust the documentation.
14559 (aarch64_displaced_step_fixup): Check if PC really moved before
14560 adjusting it.
14561
4d89c1c7
TT
145622020-01-19 Tom Tromey <tom@tromey.com>
14563
14564 * disasm.c (~gdb_disassembler): New destructor.
14565 (gdb_buffered_insn_length): Call disassemble_free_target.
14566 * disasm.h (class gdb_disassembler): Declare destructor. Use
14567 DISABLE_COPY_AND_ASSIGN.
14568
c0ab21c2
TT
145692020-01-19 Tom Tromey <tom@tromey.com>
14570
14571 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14572 (die_reader_func_ftype): Remove.
14573 (cutu_reader): New class.
14574 (dw2_get_file_names_reader): Remove "data" parameter.
14575 (dw2_get_file_names): Use cutu_reader.
14576 (create_debug_type_hash_table): Update.
14577 (read_cutu_die_from_dwo): Update comment.
14578 (lookup_dwo_unit): Add dwo_name parameter.
14579 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14580 die_reader_func_ftype and data parameters.
14581 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14582 Remove die_reader_func_ftype and data parameters.
14583 (~cutu_reader): New; from init_cutu_and_read_dies.
14584 (cutu_reader::cutu_reader): Rename from
14585 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14586 and data parameters.
14587 (init_cutu_and_read_dies_simple): Remove.
14588 (struct process_psymtab_comp_unit_data): Remove.
14589 (process_psymtab_comp_unit_reader): Remove data parameter; add
14590 want_partial_unit and pretend_language parameters.
14591 (process_psymtab_comp_unit): Use cutu_reader.
14592 (build_type_psymtabs_reader): Remove data parameter.
14593 (build_type_psymtabs_1): Use cutu_reader.
14594 (process_skeletonless_type_unit): Likewise.
14595 (load_partial_comp_unit_reader): Remove.
14596 (load_partial_comp_unit): Use cutu_reader.
14597 (load_full_comp_unit_reader): Remove.
14598 (load_full_comp_unit): Use cutu_reader.
14599 (struct create_dwo_cu_data): Remove.
14600 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14601 dwo_unit parameters.
14602 (create_cus_hash_table): Use cutu_reader.
14603 (struct dwarf2_read_addr_index_data): Remove.
14604 (dwarf2_read_addr_index_reader): Remove.
14605 (dwarf2_read_addr_index): Use cutu_reader.
14606 (read_signatured_type_reader): Remove.
14607 (read_signatured_type): Use cutu_reader.
14608
45bbae5c
TT
146092020-01-19 Tom Tromey <tom@tromey.com>
14610
14611 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14612 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14613 (tui_wrefresh): Declare.
14614 * tui/tui-wingeneral.c (suppress_output): New global.
14615 (tui_suppress_output, ~tui_suppress_output): New constructor and
14616 destructor.
14617 (tui_wrefresh): New function.
14618 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14619 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14620 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14621 method.
14622 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14623 tui_wrefresh.
14624 (tui_data_window::no_refresh): New method.
14625 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14626 (tui_reg_command): Use tui_suppress_output
14627 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14628 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14629 method.
14630 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14631
4f13c1c0
TT
146322020-01-19 Tom Tromey <tom@tromey.com>
14633
14634 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14635 Handle case where symtab is null.
14636
fa47e446
SM
146372020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14638
14639 * linux-fork.c (one_fork_p): Simplify.
14640
26f42329
SM
146412020-01-17 Simon Marchi <simon.marchi@efficios.com>
14642
14643 * top.c (struct qt_args): Remove.
14644 (kill_or_detach): Change return type to void, replace `void *`
14645 parameter with a proper one.
14646 (print_inferior_quit_action): Likewise.
14647 (quit_confirm): Use range-based for loop to iterate over inferiors.
14648 (quit_force): Likewise.
14649
a9ac81b1
SM
146502020-01-17 Simon Marchi <simon.marchi@efficios.com>
14651
14652 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14653 `void *` parameter with proper parameters.
14654 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14655 (print_one_inferior): Change return type to void, replace `void *`
14656 parameter with proper parameters.
14657 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14658 inferiors.
14659 (get_other_inferior): Remove.
14660 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14661 inferiors.
14662
788eca49
SM
146632020-01-17 Simon Marchi <simon.marchi@efficios.com>
14664
14665 * mi/mi-interp.c (report_initial_inferior): Remove.
14666 (mi_interp::init): Use range-based for to iterate over inferiors.
14667
d9bc85b6
SM
146682020-01-17 Simon Marchi <simon.marchi@efficios.com>
14669
14670 * python/py-inferior.c (build_inferior_list): Remove.
14671 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14672
40c94099
CB
146732020-01-16 Christian Biesinger <cbiesinger@google.com>
14674
14675 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14676 (btrace_stitch_trace): Likewise.
14677 * charset.c (intermediate_encoding): Likewise (vaild).
14678 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14679 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14680 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14681
e0cdfe3c
HD
146822020-01-16 Hannes Domani <ssbssa@yahoo.de>
14683
14684 * windows-tdep.c (windows_get_tlb_type):
14685 Add rtl_user_process_parameters type.
14686
790f1718 146872020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14688 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14689
14690 PR build/24805
14691 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14692 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14693 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14694 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14695 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14696 (ps_plog): Redeclare exported functions with default visibility.
14697
3112ed97
NA
146982020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14699
14700 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14701 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14702
8dc3273e
SM
147032020-01-15 Simon Marchi <simon.marchi@efficios.com>
14704
14705 * infcmd.c (post_create_inferior): Use get_thread_regcache
14706 instead of get_current_regcache.
14707
ff47f4f0
TT
147082020-01-14 Tom Tromey <tom@tromey.com>
14709
14710 PR symtab/12535:
14711 * python/python.c (gdbpy_decode_line): Treat empty string the same
14712 as no argument.
14713
975f45b7
TT
147142020-01-14 Tom Tromey <tom@tromey.com>
14715
14716 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14717
25e57356
TT
147182020-01-14 Tom Tromey <tom@tromey.com>
14719
14720 * nat/linux-btrace.c: Don't include <config.h>.
14721 * nat/linux-ptrace.c: Don't include <config.h>.
14722 * nat/x86-linux-dregs.c: Don't include <config.h>.
14723
05ea2a05
TT
147242020-01-14 Tom Tromey <tom@tromey.com>
14725
14726 * configure: Rebuild.
14727 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14728
01027315
TT
147292020-01-14 Tom Tromey <tom@tromey.com>
14730
14731 * nat/x86-linux-dregs.c: Include configh.h.
14732 * nat/linux-ptrace.c: Include configh.h.
14733 * nat/linux-btrace.c: Include configh.h.
14734 * defs.h: Include config.h, bfd.h.
14735 * configure.ac: Don't source common.host.
14736 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14737 * configure: Rebuild.
14738 * acinclude.m4: Update path.
14739 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14740 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14741 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14742 (CLIBS): Add LIBSUPPORT.
14743 (CDEPS): Likewise.
14744 (COMMON_SFILES): Remove gdbsupport files.
14745 (HFILES_NO_SRCDIR): Likewise.
14746 (stamp-version): Update path to create-version.sh.
14747 (ALLDEPFILES): Remove gdbsupport files.
14748
b2ceabe8
TT
147492020-01-14 Tom Tromey <tom@tromey.com>
14750
14751 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14752 USE_WIN32API when needed.
14753 * configure.ac (USE_WIN32API): Don't define.
14754 (WIN32LIBS): Use WIN32APILIBS.
14755 * configure: Rebuild.
14756
25c51f71
TT
147572020-01-14 Tom Tromey <tom@tromey.com>
14758
14759 * configure: Rebuild.
14760 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14761
717c684d
BE
147622020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14763
14764 * skip.c (skip_function_command): Make skip w/o arguments use the
14765 name of the inlined function if pc is inside any inlined function.
14766
7da6a5b9
LM
147672020-01-14 Luis Machado <luis.machado@linaro.org>
14768
14769 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14770 * infrun.c (resume_1): Likewise.
14771 (handle_inferior_event): Remove stale comment.
14772 * linux-nat.c (linux_nat_target::resume): Update comments.
14773 (save_stop_reason): Likewise.
14774 (linux_nat_filter_event): Likewise.
14775 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14776
44e4c775
AB
147772020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14778
14779 * elfread.c (record_minimal_symbol): Set section index to 0 for
14780 non-allocatable sections.
14781
18a8505e
AT
14782
147832020-01-13 Ali Tamur <tamur@google.com>
14784
14785 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14786 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14787 to gdb::optional. Update comments.
14788 (dwo_file): Update comments.
14789 (read_attribute): Update API to take an additional out parameter,
14790 need_reprocess. This is used to mark attributes that need other
14791 attributes (e.g. str_offsets_base) for correct computation which may not
14792 have been read yet.
14793 (read_attribute_reprocess): New function declaration.
14794 (read_addr_index): Likewise.
14795 (read_dwo_str_index): Likewise.
14796 (read_stub_str_index): Likewise.
14797 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14798 (lookup_addr_base): New function definition.
14799 (lookup_ranges_base): Likewise.
14800 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14801 lookup_ranges_base.
14802 (init_cutu_and_read_dies): Update comments.
14803 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14804 unit. This is used to inherit parent's str_offsets_base and addr_base.
14805 Update comments.
14806 (init_cutu_and_read_dies_simple): Reflect API changes.
14807 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14808 (create_cus_hash_table): Change API to take parent compile unit.
14809 Reflect API changes.
14810 (open_and_init_dwo_file): Reflect API changes.
14811 (dwarf2_get_pc_bounds): Update comments.
14812 (dwarf2_record_block_ranges): Likewise.
14813 (read_full_die_1): Change implementation to reprocess attributes that
14814 need str_offsets_base and addr_base.
14815 (partial_die_info::read): Likewise.
14816 (read_attribute_reprocess): New function definition.
14817 (read_attribute_value): Change API to take an additional out parameter,
14818 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14819 when a non-dwo compile unit has index based attributes.
14820 (read_attribute): Reflect API changes.
14821 (read_addr_index_1): Reflect API changes. Update comments.
14822 (dwarf2_read_addr_index_data): Reflect API changes.
14823 (dwarf2_read_addr_index): Likewise.
14824 (read_str_index): Change API and implementation. This becomes a helper
14825 to be used by the new string index related methods. Update error
14826 message and comments.
14827 (read_dwo_str_index): New function definition.
14828 (read_stub_str_index): Likewise.
14829 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14830 * symfile.h (dwarf2_debug_sections): Likewise.
14831 * xcoffread.c (dwarf2_debug_sections): Likewise.
14832
0cac9354
SM
148332020-01-13 Simon Marchi <simon.marchi@efficios.com>
14834
14835 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14836 core_reg_sect type to gdb_byte *.
14837 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14838 * cris-tdep.c (fetch_core_registers): Likewise.
14839 * corelow.c (core_target::get_core_register_section): Change
14840 type of `contents` to gdb::byte_vector.
14841
9a6d629c
AB
148422020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14843
14844 * tui/tui-wingeneral.c (box_win): Position the title in the center
14845 of the border.
14846
d8b2f9e3
SM
148472020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14848
14849 * corelow.c (core_target::get_core_register_section): Use
14850 std::vector instead of alloca.
14851
bb564c58
SM
148522020-01-13 Simon Marchi <simon.marchi@efficios.com>
14853
14854 * warning.m4: Add -Wmissing-declarations to build_warnings.
14855 * configure: Re-generate.
14856
6b366111
SM
148572020-01-13 Simon Marchi <simon.marchi@efficios.com>
14858
14859 * python/python.c (init__gdb_module): Add declaration.
14860
6c265988
SM
148612020-01-13 Simon Marchi <simon.marchi@efficios.com>
14862
14863 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14864 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14865 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14866 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14867 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14868 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14869 * ada-exp.y (_initialize_ada_exp): Add declaration.
14870 * ada-lang.c (_initialize_ada_language): Add declaration.
14871 * ada-tasks.c (_initialize_tasks): Add declaration.
14872 * agent.c (_initialize_agent): Add declaration.
14873 * aix-thread.c (_initialize_aix_thread): Add declaration.
14874 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14875 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14876 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14877 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14878 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14879 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14880 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14881 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14882 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14883 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14884 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14885 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14886 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14887 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14888 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14889 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14890 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14891 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14892 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14893 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14894 * annotate.c (_initialize_annotate): Add declaration.
14895 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14896 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14897 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14898 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14899 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14900 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14901 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14902 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14903 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14904 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14905 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14906 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14907 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14908 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14909 * auto-load.c (_initialize_auto_load): Add declaration.
14910 * auxv.c (_initialize_auxv): Add declaration.
14911 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14912 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14913 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14914 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14915 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14916 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14917 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14918 * breakpoint.c (_initialize_breakpoint): Add declaration.
14919 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14920 * btrace.c (_initialize_btrace): Add declaration.
14921 * charset.c (_initialize_charset): Add declaration.
14922 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14923 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14924 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14925 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14926 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14927 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14928 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14929 * coffread.c (_initialize_coffread): Add declaration.
14930 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14931 * compile/compile.c (_initialize_compile): Add declaration.
14932 * complaints.c (_initialize_complaints): Add declaration.
14933 * completer.c (_initialize_completer): Add declaration.
14934 * copying.c (_initialize_copying): Add declaration.
14935 * corefile.c (_initialize_core): Add declaration.
14936 * corelow.c (_initialize_corelow): Add declaration.
14937 * cp-abi.c (_initialize_cp_abi): Add declaration.
14938 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14939 * cp-support.c (_initialize_cp_support): Add declaration.
14940 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14941 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14942 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14943 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14944 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14945 * ctfread.c (_initialize_ctfread): Add declaration.
14946 * d-lang.c (_initialize_d_language): Add declaration.
14947 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14948 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14949 * dbxread.c (_initialize_dbxread): Add declaration.
14950 * dcache.c (_initialize_dcache): Add declaration.
14951 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14952 * disasm.c (_initialize_disasm): Add declaration.
14953 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14954 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14955 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14956 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14957 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14958 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14959 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14960 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14961 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14962 * elfread.c (_initialize_elfread): Add declaration.
14963 * exec.c (_initialize_exec): Add declaration.
14964 * extension.c (_initialize_extension): Add declaration.
14965 * f-lang.c (_initialize_f_language): Add declaration.
14966 * f-valprint.c (_initialize_f_valprint): Add declaration.
14967 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14968 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14969 * filesystem.c (_initialize_filesystem): Add declaration.
14970 * findcmd.c (_initialize_mem_search): Add declaration.
14971 * findvar.c (_initialize_findvar): Add declaration.
14972 * fork-child.c (_initialize_fork_child): Add declaration.
14973 * frame-base.c (_initialize_frame_base): Add declaration.
14974 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14975 * frame.c (_initialize_frame): Add declaration.
14976 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14977 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14978 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14979 * gcore.c (_initialize_gcore): Add declaration.
14980 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14981 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14982 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14983 * gdbarch.c (_initialize_gdbarch): Add declaration.
14984 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14985 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14986 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14987 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14988 * go-lang.c (_initialize_go_language): Add declaration.
14989 * go32-nat.c (_initialize_go32_nat): Add declaration.
14990 * guile/guile.c (_initialize_guile): Add declaration.
14991 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14992 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14993 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14994 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14995 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14996 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14997 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14998 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14999 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15000 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15001 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15002 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15003 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15004 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15005 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15006 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15007 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15008 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15009 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15010 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15011 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15012 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15013 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15014 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15015 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15016 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15017 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15018 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15019 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15020 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15021 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15022 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15023 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15024 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15025 * infcall.c (_initialize_infcall): Add declaration.
15026 * infcmd.c (_initialize_infcmd): Add declaration.
15027 * inflow.c (_initialize_inflow): Add declaration.
15028 * infrun.c (_initialize_infrun): Add declaration.
15029 * interps.c (_initialize_interpreter): Add declaration.
15030 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15031 * jit.c (_initialize_jit): Add declaration.
15032 * language.c (_initialize_language): Add declaration.
15033 * linux-fork.c (_initialize_linux_fork): Add declaration.
15034 * linux-nat.c (_initialize_linux_nat): Add declaration.
15035 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15036 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15037 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15038 * m2-lang.c (_initialize_m2_language): Add declaration.
15039 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15040 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15041 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15042 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15043 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15044 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15045 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15046 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15047 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15048 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15049 * machoread.c (_initialize_machoread): Add declaration.
15050 * macrocmd.c (_initialize_macrocmd): Add declaration.
15051 * macroscope.c (_initialize_macroscope): Add declaration.
15052 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15053 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15054 * maint.c (_initialize_maint_cmds): Add declaration.
15055 * mdebugread.c (_initialize_mdebugread): Add declaration.
15056 * memattr.c (_initialize_mem): Add declaration.
15057 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15058 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15059 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15060 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15061 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15062 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15063 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15064 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15065 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15066 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15067 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15068 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15069 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15070 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15071 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15072 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15073 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15074 * mipsread.c (_initialize_mipsread): Add declaration.
15075 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15076 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15077 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15078 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15079 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15080 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15081 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15082 * nto-procfs.c (_initialize_procfs): Add declaration.
15083 * objc-lang.c (_initialize_objc_language): Add declaration.
15084 * observable.c (_initialize_observer): Add declaration.
15085 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15086 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15087 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15088 * osabi.c (_initialize_gdb_osabi): Add declaration.
15089 * osdata.c (_initialize_osdata): Add declaration.
15090 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15091 * parse.c (_initialize_parse): Add declaration.
15092 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15093 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15094 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15095 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15096 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15097 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15098 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15099 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15100 * printcmd.c (_initialize_printcmd): Add declaration.
15101 * probe.c (_initialize_probe): Add declaration.
15102 * proc-api.c (_initialize_proc_api): Add declaration.
15103 * proc-events.c (_initialize_proc_events): Add declaration.
15104 * proc-service.c (_initialize_proc_service): Add declaration.
15105 * procfs.c (_initialize_procfs): Add declaration.
15106 * producer.c (_initialize_producer): Add declaration.
15107 * psymtab.c (_initialize_psymtab): Add declaration.
15108 * python/python.c (_initialize_python): Add declaration.
15109 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15110 * record-btrace.c (_initialize_record_btrace): Add declaration.
15111 * record-full.c (_initialize_record_full): Add declaration.
15112 * record.c (_initialize_record): Add declaration.
15113 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15114 * regcache.c (_initialize_regcache): Add declaration.
15115 * reggroups.c (_initialize_reggroup): Add declaration.
15116 * remote-notif.c (_initialize_notif): Add declaration.
15117 * remote-sim.c (_initialize_remote_sim): Add declaration.
15118 * remote.c (_initialize_remote): Add declaration.
15119 * reverse.c (_initialize_reverse): Add declaration.
15120 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15121 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15122 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15123 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15124 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15125 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15126 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15127 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15128 Add declaration.
15129 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15130 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15131 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15132 * rust-exp.y (_initialize_rust_exp): Add declaration.
15133 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15134 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15135 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15136 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15137 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15138 * score-tdep.c (_initialize_score_tdep): Add declaration.
15139 * ser-go32.c (_initialize_ser_dos): Add declaration.
15140 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15141 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15142 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15143 * ser-uds.c (_initialize_ser_socket): Add declaration.
15144 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15145 * serial.c (_initialize_serial): Add declaration.
15146 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15147 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15148 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15149 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15150 * skip.c (_initialize_step_skip): Add declaration.
15151 * sol-thread.c (_initialize_sol_thread): Add declaration.
15152 * solib-aix.c (_initialize_solib_aix): Add declaration.
15153 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15154 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15155 * solib-frv.c (_initialize_frv_solib): Add declaration.
15156 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15157 * solib-target.c (_initialize_solib_target): Add declaration.
15158 * solib.c (_initialize_solib): Add declaration.
15159 * source-cache.c (_initialize_source_cache): Add declaration.
15160 * source.c (_initialize_source): Add declaration.
15161 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15162 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15163 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15164 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15165 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15166 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15167 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15168 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15169 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15170 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15171 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15172 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15173 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15174 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15175 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15176 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15177 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15178 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15179 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15180 * stabsread.c (_initialize_stabsread): Add declaration.
15181 * stack.c (_initialize_stack): Add declaration.
15182 * stap-probe.c (_initialize_stap_probe): Add declaration.
15183 * std-regs.c (_initialize_frame_reg): Add declaration.
15184 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15185 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15186 * symfile.c (_initialize_symfile): Add declaration.
15187 * symmisc.c (_initialize_symmisc): Add declaration.
15188 * symtab.c (_initialize_symtab): Add declaration.
15189 * target.c (_initialize_target): Add declaration.
15190 * target-connection.c (_initialize_target_connection): Add
15191 declaration.
15192 * target-dcache.c (_initialize_target_dcache): Add declaration.
15193 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15194 * thread.c (_initialize_thread): Add declaration.
15195 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15196 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15197 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15198 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15199 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15200 * tracectf.c (_initialize_ctf): Add declaration.
15201 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15202 * tracefile.c (_initialize_tracefile): Add declaration.
15203 * tracepoint.c (_initialize_tracepoint): Add declaration.
15204 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15205 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15206 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15207 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15208 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15209 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15210 * tui/tui.c (_initialize_tui): Add declaration.
15211 * typeprint.c (_initialize_typeprint): Add declaration.
15212 * ui-style.c (_initialize_ui_style): Add declaration.
15213 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15214 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15215 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15216 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15217 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15218 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15219 * unittests/filtered_iterator-selftests.c
15220 (_initialize_filtered_iterator_selftests): Add declaration.
15221 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15222 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15223 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15224 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15225 * unittests/main-thread-selftests.c
15226 (_initialize_main_thread_selftests): Add declaration.
15227 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15228 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15229 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15230 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15231 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15232 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15233 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15234 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15235 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15236 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15237 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15238 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15239 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15240 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15241 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15242 declaration.
15243 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15244 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15245 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15246 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15247 * user-regs.c (_initialize_user_regs): Add declaration.
15248 * utils.c (_initialize_utils): Add declaration.
15249 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15250 * valops.c (_initialize_valops): Add declaration.
15251 * valprint.c (_initialize_valprint): Add declaration.
15252 * value.c (_initialize_values): Add declaration.
15253 * varobj.c (_initialize_varobj): Add declaration.
15254 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15255 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15256 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15257 * windows-nat.c (_initialize_windows_nat): Add declaration.
15258 (_initialize_check_for_gdb_ini): Add declaration.
15259 (_initialize_loadable): Add declaration.
15260 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15261 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15262 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15263 * xcoffread.c (_initialize_xcoffread): Add declaration.
15264 * xml-support.c (_initialize_xml_support): Add declaration.
15265 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15266 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15267 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15268 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15269
e2de1eec
SM
152702020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15271
15272 * regformats/regdat.sh: Generate declaration for init function.
15273
e0037b4c
SM
152742020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15275
15276 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15277 up.
15278 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15279 close_one_inferior>: New methods.
15280 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15281 pass down target to find_inferior_pid.
15282 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15283 Pass down target to find_inferior_ptid.
15284 (gdbsim_target::create_inferior): Pass down target to
15285 add_thread_silent.
15286 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15287 target down to find_inferior_ptid and switch_to_thread.
15288 (gdbsim_target::close): Update to call close_one_inferior.
15289 (struct resume_data): Remove.
15290 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15291 directly, rather than through a void pointer.
15292 (gdbsim_target::resume): Update to call resume_one_inferior.
15293
58920b5b
SM
152942020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15295
15296 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15297
4ec89149
PA
152982020-01-12 Pedro Alves <palves@redhat.com>
15299
15300 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15301 directly for the current inferior instead of
15302 discard_all_inferiors.
15303 (discard_all_inferiors): Delete.
15304
7c392d1d
TT
153052020-01-11 Tom Tromey <tom@tromey.com>
15306
15307 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15308 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15309 deprecated_safe_get_selected_frame.
15310
d9ebdab7
TBA
153112020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15312
15313 * inferior.c (print_inferior): Switch inferior before printing it.
15314
f3c469b9
PA
153152020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15316 Pedro Alves <palves@redhat.com>
15317
15318 * progspace-and-thread.c (switch_to_program_space_and_thread):
15319 Assert there's an inferior for PSPACE. Use
15320 switch_to_inferior_no_thread to switch the inferior too.
15321 * progspace.c (program_space::~program_space): Call
15322 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15323 (program_space::free_all_objfiles): Don't call clear_symtab_users
15324 here.
15325 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15326
65c574f6
PA
153272020-01-10 Pedro Alves <palves@redhat.com>
15328
15329 * NEWS: Mention multi-target debugging, "info connections", and
15330 "add-inferior -no-connection".
15331
2f4fcf00
PA
153322020-01-10 Pedro Alves <palves@redhat.com>
15333
15334 * infrun.c: Include "target-connection.h".
15335 (check_multi_target_resumption): New.
15336 (proceed): Call it.
15337 * target-connection.c (make_target_connection_string): Make
15338 extern.
15339 * target-connection.h (make_target_connection_string): Declare.
15340
121b3efd
PA
153412020-01-10 Pedro Alves <palves@redhat.com>
15342
15343 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15344 * inferior.c (uiout_field_connection): New function.
15345 (print_inferior): Add new "connection-id" column.
15346 (add_inferior_command): Show connection number/string of added
15347 inferior.
15348 * process-stratum-target.h
15349 (process_stratum_target::connection_string): New virtual method.
15350 (process_stratum_target::connection_number): New field.
15351 * remote.c (remote_target::connection_string): New override.
15352 * target-connection.c: New file.
15353 * target-connection.h: New file.
15354 * target.c (decref_target): Remove process_stratum targets from
15355 the connection list.
15356 (target_stack::push): Add process_stratum targets to the
15357 connection list.
15358
4f837581
PA
153592020-01-10 Pedro Alves <palves@redhat.com>
15360
15361 Revert:
15362 2016-04-12 Pedro Alves <palves@redhat.com>
15363 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15364 Remove references to name.
15365 * serial.h (struct serial) <name>: Delete.
15366
f4ec508e
PA
153672020-01-10 Pedro Alves <palves@redhat.com>
15368
15369 * gdbarch-selftests.c (register_to_value_test): Remove "target
15370 already pushed" check.
15371
5b6d1e4f
PA
153722020-01-10 Pedro Alves <palves@redhat.com>
15373 John Baldwin <jhb@FreeBSD.org>
15374
15375 * aarch64-linux-nat.c
15376 (aarch64_linux_nat_target::thread_architecture): Adjust.
15377 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15378 (task_command_1): Likewise.
15379 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15380 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15381 (aix_thread_target::store_registers)
15382 (aix_thread_target::thread_alive): Adjust.
15383 * amd64-fbsd-tdep.c: Include "inferior.h".
15384 (amd64fbsd_get_thread_local_address): Pass down target.
15385 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15386 thread's gdbarch instead of target_gdbarch.
15387 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15388 get_last_target_status.
15389 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15390 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15391 inferiors.
15392 (update_inserted_breakpoint_locations): Skip if inferiors with no
15393 execution.
15394 (update_global_location_list): When handling moribund locations,
15395 find representative inferior for location's pspace, and use thread
15396 count of its process_stratum target.
15397 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15398 * bsd-uthread.c (bsd_uthread_target::wait): Use
15399 as_process_stratum_target and adjust thread_change_ptid and
15400 add_thread calls.
15401 (bsd_uthread_target::update_thread_list): Use
15402 as_process_stratum_target and adjust find_thread_ptid,
15403 thread_change_ptid and add_thread calls.
15404 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15405 find_thread_ptid call.
15406 * corelow.c (add_to_thread_list): Adjust add_thread call.
15407 (core_target_open): Adjust add_thread_silent and thread_count
15408 calls.
15409 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15410 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15411 * event-top.c (async_disconnect): Pop targets from all inferiors.
15412 * exec.c (add_target_sections): Push exec target on all inferiors
15413 sharing the program space.
15414 (remove_target_sections): Remove the exec target from all
15415 inferiors sharing the program space.
15416 (exec_on_vfork): New.
15417 * exec.h (exec_on_vfork): Declare.
15418 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15419 Pass it down.
15420 (fbsd_nat_target::update_thread_list): Adjust.
15421 (fbsd_nat_target::resume): Adjust.
15422 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15423 down.
15424 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15425 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15426 get_thread_arch_regcache call.
15427 * fork-child.c (gdb_startup_inferior): Pass target down to
15428 startup_inferior and set_executing.
15429 * gdbthread.h (struct process_stratum_target): Forward declare.
15430 (add_thread, add_thread_silent, add_thread_with_info)
15431 (in_thread_list): Add process_stratum_target parameter.
15432 (find_thread_ptid(inferior*, ptid_t)): New overload.
15433 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15434 parameter.
15435 (all_threads()): Delete overload.
15436 (all_threads, all_non_exited_threads): Add process_stratum_target
15437 parameter.
15438 (all_threads_safe): Use brace initialization.
15439 (thread_count): Add process_stratum_target parameter.
15440 (set_resumed, set_running, set_stop_requested, set_executing)
15441 (threads_are_executing, finish_thread_state): Add
15442 process_stratum_target parameter.
15443 (switch_to_thread): Use is_current_thread.
15444 * i386-fbsd-tdep.c: Include "inferior.h".
15445 (i386fbsd_get_thread_local_address): Pass down target.
15446 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15447 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15448 have_inferiors check.
15449 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15450 (inf_ptrace_target::attach): Adjust.
15451 * infcall.c (run_inferior_call): Adjust.
15452 * infcmd.c (run_command_1): Pass target to
15453 scoped_finish_thread_state.
15454 (proceed_thread_callback): Skip inferiors with no execution.
15455 (continue_command): Rename 'all_threads' local to avoid hiding
15456 'all_threads' function. Adjust get_last_target_status call.
15457 (prepare_one_step): Adjust set_running call.
15458 (signal_command): Use user_visible_resume_target. Compare thread
15459 pointers instead of inferior_ptid.
15460 (info_program_command): Adjust to pass down target.
15461 (attach_command): Mark target's 'thread_executing' flag.
15462 (stop_current_target_threads_ns): New, factored out from ...
15463 (interrupt_target_1): ... this. Switch inferior before making
15464 target calls.
15465 * inferior-iter.h
15466 (struct all_inferiors_iterator, struct all_inferiors_range)
15467 (struct all_inferiors_safe_range)
15468 (struct all_non_exited_inferiors_range): Filter on
15469 process_stratum_target too. Remove explicit.
15470 * inferior.c (inferior::inferior): Push dummy target on target
15471 stack.
15472 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15473 Add process_stratum_target parameter, and pass it down.
15474 (have_live_inferiors): Adjust.
15475 (switch_to_inferior_and_push_target): New.
15476 (add_inferior_command, clone_inferior_command): Handle
15477 "-no-connection" parameter. Use
15478 switch_to_inferior_and_push_target.
15479 (_initialize_inferior): Mention "-no-connection" option in
15480 the help of "add-inferior" and "clone-inferior" commands.
15481 * inferior.h: Include "process-stratum-target.h".
15482 (interrupt_target_1): Use bool.
15483 (struct inferior) <push_target, unpush_target, target_is_pushed,
15484 find_target_beneath, top_target, process_target, target_at,
15485 m_stack>: New.
15486 (discard_all_inferiors): Delete.
15487 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15488 (all_inferiors, all_non_exited_inferiors): Add
15489 process_stratum_target parameter.
15490 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15491 (target_last_proc_target): New global.
15492 (follow_fork_inferior): Push target on new inferior. Pass target
15493 to add_thread_silent. Call exec_on_vfork. Handle target's
15494 reference count.
15495 (follow_fork): Adjust get_last_target_status call. Also consider
15496 target.
15497 (follow_exec): Push target on new inferior.
15498 (struct execution_control_state) <target>: New field.
15499 (user_visible_resume_target): New.
15500 (do_target_resume): Call target_async.
15501 (resume_1): Set target's threads_executing flag. Consider resume
15502 target.
15503 (commit_resume_all_targets): New.
15504 (proceed): Also consider resume target. Skip threads of inferiors
15505 with no execution. Commit resumtion in all targets.
15506 (start_remote): Pass current inferior to wait_for_inferior.
15507 (infrun_thread_stop_requested): Consider target as well. Pass
15508 thread_info pointer to clear_inline_frame_state instead of ptid.
15509 (infrun_thread_thread_exit): Consider target as well.
15510 (random_pending_event_thread): New inferior parameter. Use it.
15511 (do_target_wait): Rename to ...
15512 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15513 down.
15514 (threads_are_resumed_pending_p, do_target_wait): New.
15515 (prepare_for_detach): Adjust calls.
15516 (wait_for_inferior): New inferior parameter. Handle it. Use
15517 do_target_wait_1 instead of do_target_wait.
15518 (fetch_inferior_event): Adjust. Switch to representative
15519 inferior. Pass target down.
15520 (set_last_target_status): Add process_stratum_target parameter.
15521 Save target in global.
15522 (get_last_target_status): Add process_stratum_target parameter and
15523 handle it.
15524 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15525 (context_switch): Check inferior_ptid == null_ptid before calling
15526 inferior_thread().
15527 (get_inferior_stop_soon): Pass down target.
15528 (wait_one): Rename to ...
15529 (poll_one_curr_target): ... this.
15530 (struct wait_one_event): New.
15531 (wait_one): New.
15532 (stop_all_threads): Adjust.
15533 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15534 event's target.
15535 (switch_back_to_stepped_thread): Also consider target.
15536 (print_stop_event): Update.
15537 (normal_stop): Update. Also consider the resume target.
15538 * infrun.h (wait_for_inferior): Remove declaration.
15539 (user_visible_resume_target): New declaration.
15540 (get_last_target_status, set_last_target_status): New
15541 process_stratum_target parameter.
15542 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15543 process_stratum_target parameter, and use it.
15544 (clear_inline_frame_state (thread_info*)): New.
15545 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15546 process_stratum_target parameter.
15547 (clear_inline_frame_state (thread_info*)): Declare.
15548 * linux-fork.c (delete_checkpoint_command): Pass target down to
15549 find_thread_ptid.
15550 (checkpoint_command): Adjust.
15551 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15552 instead of just tweaking inferior_ptid.
15553 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15554 (exit_lwp): Pass target down to find_thread_ptid.
15555 (attach_proc_task_lwp_callback): Pass target down to
15556 add_thread/set_running/set_executing.
15557 (linux_nat_target::attach): Pass target down to
15558 thread_change_ptid.
15559 (get_detach_signal): Pass target down to find_thread_ptid.
15560 Consider last target status's target.
15561 (linux_resume_one_lwp_throw, resume_lwp)
15562 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15563 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15564 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15565 (linux_nat_target::async_wait_fd): New.
15566 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15567 target down.
15568 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15569 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15570 * linux-thread-db.c (struct thread_db_info::process_target): New
15571 field.
15572 (add_thread_db_info): Save target.
15573 (get_thread_db_info): New process_stratum_target parameter. Also
15574 match target.
15575 (delete_thread_db_info): New process_stratum_target parameter.
15576 Also match target.
15577 (thread_from_lwp): Adjust to pass down target.
15578 (thread_db_notice_clone): Pass down target.
15579 (check_thread_db_callback): Pass down target.
15580 (try_thread_db_load_1): Always push the thread_db target.
15581 (try_thread_db_load, record_thread): Pass target down.
15582 (thread_db_target::detach): Pass target down. Always unpush the
15583 thread_db target.
15584 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15585 target down. Always unpush the thread_db target.
15586 (find_new_threads_callback, thread_db_find_new_threads_2)
15587 (thread_db_target::update_thread_list): Pass target down.
15588 (thread_db_target::pid_to_str): Pass current inferior down.
15589 (thread_db_target::get_thread_local_address): Pass target down.
15590 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15591 target down.
15592 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15593 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15594 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15595 (procfs_init_inferior): Rename to ...
15596 (procfs_target::procfs_init_inferior): ... this and adjust.
15597 (procfs_target::create_inferior, procfs_notice_thread)
15598 (procfs_do_thread_registers): Adjust.
15599 * ppc-fbsd-tdep.c: Include "inferior.h".
15600 (ppcfbsd_get_thread_local_address): Pass down target.
15601 * proc-service.c (ps_xfer_memory): Switch current inferior and
15602 program space as well.
15603 (get_ps_regcache): Pass target down.
15604 * process-stratum-target.c
15605 (process_stratum_target::thread_address_space)
15606 (process_stratum_target::thread_architecture): Pass target down.
15607 * process-stratum-target.h
15608 (process_stratum_target::threads_executing): New field.
15609 (as_process_stratum_target): New.
15610 * ravenscar-thread.c
15611 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15612 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15613 down.
15614 * record-btrace.c (record_btrace_target::info_record): Adjust.
15615 (record_btrace_target::record_method)
15616 (record_btrace_target::record_is_replaying)
15617 (record_btrace_target::fetch_registers)
15618 (get_thread_current_frame_id, record_btrace_target::resume)
15619 (record_btrace_target::wait, record_btrace_target::stop): Pass
15620 target down.
15621 * record-full.c (record_full_wait_1): Switch to event thread.
15622 Pass target down.
15623 * regcache.c (regcache::regcache)
15624 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15625 process_stratum_target parameter and handle it.
15626 (current_thread_target): New global.
15627 (get_thread_regcache): Add process_stratum_target parameter and
15628 handle it. Switch inferior before calling target method.
15629 (get_thread_regcache): Pass target down.
15630 (get_thread_regcache_for_ptid): Pass target down.
15631 (registers_changed_ptid): Add process_stratum_target parameter and
15632 handle it.
15633 (registers_changed_thread, registers_changed): Pass target down.
15634 (test_get_thread_arch_aspace_regcache): New.
15635 (current_regcache_test): Define a couple local test_target_ops
15636 instances and use them for testing.
15637 (readwrite_regcache): Pass process_stratum_target parameter.
15638 (cooked_read_test, cooked_write_test): Pass mock_target down.
15639 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15640 (get_thread_arch_aspace_regcache): Add process_stratum_target
15641 parameter.
15642 (regcache::target): New method.
15643 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15644 (regcache::registers_changed_ptid): Add process_stratum_target
15645 parameter.
15646 (regcache::m_target): New field.
15647 (registers_changed_ptid): Add process_stratum_target parameter.
15648 * remote.c (remote_state::supports_vCont_probed): New field.
15649 (remote_target::async_wait_fd): New method.
15650 (remote_unpush_and_throw): Add remote_target parameter.
15651 (get_current_remote_target): Adjust.
15652 (remote_target::remote_add_inferior): Push target.
15653 (remote_target::remote_add_thread)
15654 (remote_target::remote_notice_new_inferior)
15655 (get_remote_thread_info): Pass target down.
15656 (remote_target::update_thread_list): Skip threads of inferiors
15657 bound to other targets. (remote_target::close): Don't discard
15658 inferiors. (remote_target::add_current_inferior_and_thread)
15659 (remote_target::process_initial_stop_replies)
15660 (remote_target::start_remote)
15661 (remote_target::remote_serial_quit_handler): Pass down target.
15662 (remote_target::remote_unpush_target): New remote_target
15663 parameter. Unpush the target from all inferiors.
15664 (remote_target::remote_unpush_and_throw): New remote_target
15665 parameter. Pass it down.
15666 (remote_target::open_1): Check whether the current inferior has
15667 execution instead of checking whether any inferior is live. Pass
15668 target down.
15669 (remote_target::remote_detach_1): Pass down target. Use
15670 remote_unpush_target.
15671 (extended_remote_target::attach): Pass down target.
15672 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15673 (remote_target::append_resumption): Pass down target.
15674 (remote_target::append_pending_thread_resumptions)
15675 (remote_target::remote_resume_with_hc, remote_target::resume)
15676 (remote_target::commit_resume): Pass down target.
15677 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15678 (remote_target::interrupt_query)
15679 (remote_target::remove_new_fork_children)
15680 (remote_target::check_pending_events_prevent_wildcard_vcont)
15681 (remote_target::remote_parse_stop_reply)
15682 (remote_target::process_stop_reply): Pass down target.
15683 (first_remote_resumed_thread): New remote_target parameter. Pass
15684 it down.
15685 (remote_target::wait_as): Pass down target.
15686 (unpush_and_perror): New remote_target parameter. Pass it down.
15687 (remote_target::readchar, remote_target::remote_serial_write)
15688 (remote_target::getpkt_or_notif_sane_1)
15689 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15690 down target.
15691 (remote_target::mourn_inferior): Pass down target. Use
15692 remote_unpush_target.
15693 (remote_target::core_of_thread)
15694 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15695 (remote_target::pid_to_exec_file)
15696 (remote_target::thread_handle_to_thread_info): Pass down target.
15697 (remote_target::async_wait_fd): New.
15698 * riscv-fbsd-tdep.c: Include "inferior.h".
15699 (riscv_fbsd_get_thread_local_address): Pass down target.
15700 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15701 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15702 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15703 Adjust.
15704 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15705 * solib-svr4.c (enable_break): Pass down target.
15706 * spu-multiarch.c (parse_spufs_run): Pass down target.
15707 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15708 * target-delegates.c: Regenerate.
15709 * target.c (g_target_stack): Delete.
15710 (current_top_target): Return the current inferior's top target.
15711 (target_has_execution_1): Refer to the passed-in inferior's top
15712 target.
15713 (target_supports_terminal_ours): Check whether the initial
15714 inferior was already created.
15715 (decref_target): New.
15716 (target_stack::push): Incref/decref the target.
15717 (push_target, push_target, unpush_target): Adjust.
15718 (target_stack::unpush): Defref target.
15719 (target_is_pushed): Return bool. Adjust to refer to the current
15720 inferior's target stack.
15721 (dispose_inferior): Delete, and inline parts ...
15722 (target_preopen): ... here. Only dispose of the current inferior.
15723 (target_detach): Hold strong target reference while detaching.
15724 Pass target down.
15725 (target_thread_name): Add assertion.
15726 (target_resume): Pass down target.
15727 (target_ops::beneath, find_target_at): Adjust to refer to the
15728 current inferior's target stack.
15729 (get_dummy_target): New.
15730 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15731 has a thread running.
15732 (initialize_targets): Rename to ...
15733 (_initialize_target): ... this.
15734 * target.h: Include "gdbsupport/refcounted-object.h".
15735 (struct target_ops): Inherit refcounted_object.
15736 (target_ops::shortname, target_ops::longname): Make const.
15737 (target_ops::async_wait_fd): New method.
15738 (decref_target): Declare.
15739 (struct target_ops_ref_policy): New.
15740 (target_ops_ref): New typedef.
15741 (get_dummy_target): Declare function.
15742 (target_is_pushed): Return bool.
15743 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15744 (all_matching_threads_iterator::all_matching_threads_iterator):
15745 Handle filter target.
15746 * thread-iter.h (struct all_matching_threads_iterator, struct
15747 all_matching_threads_range, class all_non_exited_threads_range):
15748 Filter by target too. Remove explicit.
15749 * thread.c (threads_executing): Delete.
15750 (inferior_thread): Pass down current inferior.
15751 (clear_thread_inferior_resources): Pass down thread pointer
15752 instead of ptid_t.
15753 (add_thread_silent, add_thread_with_info, add_thread): Add
15754 process_stratum_target parameter. Use it for thread and inferior
15755 searches.
15756 (is_current_thread): New.
15757 (thread_info::deletable): Use it.
15758 (find_thread_ptid, thread_count, in_thread_list)
15759 (thread_change_ptid, set_resumed, set_running): New
15760 process_stratum_target parameter. Pass it down.
15761 (set_executing): New process_stratum_target parameter. Pass it
15762 down. Adjust reference to 'threads_executing'.
15763 (threads_are_executing): New process_stratum_target parameter.
15764 Adjust reference to 'threads_executing'.
15765 (set_stop_requested, finish_thread_state): New
15766 process_stratum_target parameter. Pass it down.
15767 (switch_to_thread): Also match inferior.
15768 (switch_to_thread): New process_stratum_target parameter. Pass it
15769 down.
15770 (update_threads_executing): Reimplement.
15771 * top.c (quit_force): Pop targets from all inferior.
15772 (gdb_init): Don't call initialize_targets.
15773 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15774 Declare.
15775 (windows_add_thread, windows_delete_thread): Adjust.
15776 (get_windows_debug_event): Rename to ...
15777 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15778 * tracefile-tfile.c (tfile_target_open): Pass down target.
15779 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15780 Forward declare.
15781 (switch_to_thread): Add process_stratum_target parameter.
15782 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15783 parameter. Use it.
15784 (mi_on_resume): Pass target down.
15785 * nat/fork-inferior.c (startup_inferior): Add
15786 process_stratum_target parameter. Pass it down.
15787 * nat/fork-inferior.h (startup_inferior): Add
15788 process_stratum_target parameter.
15789 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15790
75c6c844
PA
157912020-01-10 Pedro Alves <palves@redhat.com>
15792
15793 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15794 directly. Instead find the first thread in the thread list and
15795 use switch_to_thread.
15796
78f2c40a
PA
157972020-01-10 Pedro Alves <palves@redhat.com>
15798
15799 * remote.c (remote_target::remote_add_inferior): Don't bind a
15800 process to the current inferior if the current inferior is already
15801 bound to a process.
15802
e7af6c70
TBA
158032020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15804 Pedro Alves <palves@redhat.com>
15805
15806 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15807 If no process is specified, return null_ptid instead of
15808 inferior_ptid.
15809 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15810 TARGET_WAITKIND_SIGNALLED with no pid.
15811
31ba933e
PA
158122020-01-10 Pedro Alves <palves@redhat.com>
15813
15814 * remote.c (first_remote_resumed_thread): New.
15815 (remote_target::wait_as): Use it as default event_ptid instead of
15816 inferior_ptid.
15817
735fc2ca
PA
158182020-01-10 Pedro Alves <palves@redhat.com>
15819
15820 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15821
c17e02e1
PA
158222020-01-10 Pedro Alves <palves@redhat.com>
15823
15824 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15825 not -1.
15826
ab1ddbcf
PA
158272020-01-10 Pedro Alves <palves@redhat.com>
15828
15829 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15830 ptid to get_last_target_status.
15831 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15832 ptid to get_last_target_status.
15833 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15834 get_last_target_status.
15835 (info_program_command): Don't pass a target_waitstatus to
15836 get_last_target_status.
15837 * infrun.c (init_wait_for_inferior): Use
15838 nullify_last_target_wait_ptid.
15839 (get_last_target_status): Handle nullptr arguments.
15840 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15841 (print_stop_event): Don't pass a ptid to get_last_target_status.
15842 (normal_stop): Don't pass a ptid to get_last_target_status.
15843 * infrun.h (get_last_target_status, set_last_target_status): Move
15844 comments here and update.
15845 (nullify_last_target_wait_ptid): Declare.
15846 * linux-fork.c (fork_load_infrun_state): Remove local extern
15847 declaration of nullify_last_target_wait_ptid.
15848 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15849 to get_last_target_status.
15850
f3f8ece4
PA
158512020-01-10 Pedro Alves <palves@redhat.com>
15852
15853 * gdbthread.h (scoped_restore_current_thread)
15854 <dont_restore, restore, m_dont_restore>: Declare.
15855 * thread.c (thread_alive): Add assertion. Return bool.
15856 (switch_to_thread_if_alive): New.
15857 (prune_threads): Switch inferior/thread.
15858 (print_thread_info_1): Switch thread before calling target methods.
15859 (scoped_restore_current_thread::restore): New, factored out from
15860 ...
15861 (scoped_restore_current_thread::~scoped_restore_current_thread):
15862 ... this.
15863 (scoped_restore_current_thread::scoped_restore_current_thread):
15864 Add assertion.
15865 (thread_apply_all_command, thread_select): Use
15866 switch_to_thread_if_alive.
15867 * infrun.c (proceed, restart_threads, handle_signal_stop)
15868 (switch_back_to_stepped_thread): Switch current thread before
15869 calling target methods.
15870
db2d40f7
PA
158712020-01-10 Pedro Alves <palves@redhat.com>
15872
15873 * inferior.c (switch_to_inferior_no_thread): New function,
15874 factored out from ...
15875 (inferior_command): ... here.
15876 * inferior.h (switch_to_inferior_no_thread): Declare.
15877 * mi/mi-main.c (run_one_inferior): Use
15878 switch_to_inferior_no_thread.
15879
bd420a2d
PA
158802020-01-10 Pedro Alves <palves@redhat.com>
15881
15882 * infcmd.c (kill_command): Remove dead code.
15883
ddf5db90
PA
158842020-01-10 Pedro Alves <palves@redhat.com>
15885
15886 * remote.c (remote_target::mourn_inferior): No longer check
15887 whether the target is running.
15888
5018ce90
PA
158892020-01-10 Pedro Alves <palves@redhat.com>
15890
15891 * corelow.c (core_target::has_execution): Change parameter type to
15892 inferior pointer.
15893 * inferior.c (number_of_live_inferiors): Use
15894 inferior::has_execution instead of target_has_execution_1.
15895 * inferior.h (inferior::has_execution): New.
15896 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15897 inferior::has_execution instead of target_has_execution_1.
15898 * process-stratum-target.c
15899 (process_stratum_target::has_execution): Change parameter type to
15900 inferior pointer. Check the inferior's PID instead of
15901 inferior_ptid.
15902 * process-stratum-target.h
15903 (process_stratum_target::has_execution): Change parameter type to
15904 inferior pointer.
15905 * record-full.c (record_full_core_target::has_execution): Change
15906 parameter type to inferior pointer.
15907 * target.c (target_has_execution_1): Change parameter type to
15908 inferior pointer.
15909 (target_has_execution_current): Adjust.
15910 * target.h (target_ops::has_execution): Change parameter type to
15911 inferior pointer.
15912 (target_has_execution_1): Change parameter type to inferior
15913 pointer. Change return type to bool.
15914 * tracefile.h (tracefile_target::has_execution): Change parameter
15915 type to inferior pointer.
15916
74375d18
PA
159172020-01-10 Pedro Alves <palves@redhat.com>
15918
15919 * exceptions.c (print_flush): Remove current_top_target() check.
15920
acdf84a6
PA
159212020-01-10 Pedro Alves <palves@redhat.com>
15922
15923 * remote.c (show_remote_exec_file): Show the current inferior's
15924 exec-file instead of the command variable's value.
15925
ec506636
PA
159262020-01-10 Pedro Alves <palves@redhat.com>
15927
15928 * record-full.c (record_full_resume_ptid): New global.
15929 (record_full_target::resume): Set it.
15930 (record_full_wait_1): Use record_full_resume_ptid instead of
15931 inferior_ptid.
15932
873657b9
PA
159332020-01-10 Pedro Alves <palves@redhat.com>
15934
15935 * gdbthread.h (scoped_restore_current_thread)
15936 <dont_restore, restore, m_dont_restore>: Declare.
15937 * thread.c (thread_alive): Add assertion. Return bool.
15938 (switch_to_thread_if_alive): New.
15939 (prune_threads): Switch inferior/thread.
15940 (print_thread_info_1): Switch thread before calling target methods.
15941 (scoped_restore_current_thread::restore): New, factored out from
15942 ...
15943 (scoped_restore_current_thread::~scoped_restore_current_thread):
15944 ... this.
15945 (scoped_restore_current_thread::scoped_restore_current_thread):
15946 Add assertion.
15947 (thread_apply_all_command, thread_select): Use
15948 switch_to_thread_if_alive.
15949
7f0ae84c
GB
159502020-01-10 George Barrett <bob@bob131.so>
15951
15952 * stap-probe.c (stap_modify_semaphore): Don't check for null
15953 semaphores.
15954 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15955 for null semaphores.
15956
f5a7c406
AB
159572020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15958
15959 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15960 all source windows, and maintain horizontal scroll status while
15961 doing so.
15962
9ae6bf64
TT
159632020-01-09 Tom Tromey <tom@tromey.com>
15964
15965 PR tui/18932:
15966 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15967 update_source_window, not print_source_lines.
15968
b2efe70c
AB
159692020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15970
15971 * tui/tui.c (tui_enable): Register tui hooks after calling
15972 tui_display_main.
15973
5f23a082
CB
159742020-01-09 Christian Biesinger <cbiesinger@google.com>
15975
15976 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15977
3061113b
SM
159782020-01-08 Simon Marchi <simon.marchi@efficios.com>
15979
15980 * thread.c (print_thread_info_1): Fix indentation.
15981
57d75002
CB
159822020-01-09 Christian Biesinger <cbiesinger@google.com>
15983
15984 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15985 unique_xmalloc_ptr outside the if to always free the demangled name.
15986
6a053cb1
TT
159872020-01-08 Tom Tromey <tromey@adacore.com>
15988
15989 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15990 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15991 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15992 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15993 Remove.
15994 (section_offsets): New typedef.
15995 * symtab.c (fixup_section, get_msymbol_address): Update.
15996 * symmisc.c (dump_msymbols): Update.
15997 * symfile.h (relative_addr_info_to_section_offsets)
15998 (symfile_map_offsets_to_segments): Update.
15999 * symfile.c (build_section_addr_info_from_objfile)
16000 (init_objfile_sect_indices): Update.
16001 (struct place_section_arg): Change type of "offsets".
16002 (place_section): Update.
16003 (relative_addr_info_to_section_offsets): Change type of
16004 "section_offsets". Remove "num_sections" parameter.
16005 (default_symfile_offsets, syms_from_objfile_1)
16006 (set_objfile_default_section_offset): Update.
16007 (reread_symbols): No need to preserve section offsets by hand.
16008 (symfile_map_offsets_to_segments): Change type of "offsets".
16009 * stap-probe.c (relocate_address): Update.
16010 * stabsread.h (process_one_symbol): Update.
16011 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16012 (solib_target_relocate_section_addresses): Update.
16013 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16014 Update.
16015 * solib-frv.c (frv_relocate_main_executable): Update.
16016 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16017 * solib-aix.c (solib_aix_get_section_offsets): Change return
16018 type.
16019 (solib_aix_solib_create_inferior_hook): Update.
16020 * remote.c (remote_target::get_offsets): Update.
16021 * psymtab.c (find_pc_sect_psymtab): Update.
16022 * psympriv.h (struct partial_symbol) <address, text_low,
16023 text_high>: Update.
16024 * objfiles.h (obj_section_offset): Update.
16025 (struct objfile) <section_offsets>: Change type.
16026 <num_sections>: Remove.
16027 (objfile_relocate): Update.
16028 * objfiles.c (entry_point_address_query): Update
16029 (relocate_one_symbol): Change type of "section_offsets".
16030 (objfile_relocate1, objfile_relocate1): Change type of
16031 "new_offsets".
16032 (objfile_rebase1): Update.
16033 * mipsread.c (mipscoff_symfile_read): Update.
16034 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16035 parameter.
16036 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16037 (parse_external, psymtab_to_symtab_1): Update.
16038 * machoread.c (macho_symfile_offsets): Update.
16039 * ia64-tdep.c (ia64_find_unwind_table): Update.
16040 * hppa-tdep.c (read_unwind_info): Update.
16041 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16042 * dwarf2read.c (create_addrmap_from_index)
16043 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16044 (process_psymtab_comp_unit_reader, add_partial_symbol)
16045 (add_partial_subprogram, process_full_comp_unit)
16046 (read_file_scope, read_func_scope, read_lexical_block_scope)
16047 (read_call_site_scope, dwarf2_rnglists_process)
16048 (dwarf2_ranges_process, dwarf2_ranges_read)
16049 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16050 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16051 Update.
16052 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16053 Update.
16054 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16055 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16056 (process_one_symbol): Change type of "section_offsets".
16057 * ctfread.c (get_objfile_text_range): Update.
16058 * coffread.c (coff_symtab_read, enter_linenos)
16059 (process_coff_symbol): Update.
16060 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16061 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16062
456e800a
TT
160632020-01-08 Tom Tromey <tromey@adacore.com>
16064
16065 * dwarf2read.c (parse_macro_definition): Use std::string.
16066 (parse_macro_definition): Likewise.
16067
6dfa2fc2
TT
160682020-01-08 Tom Tromey <tromey@adacore.com>
16069
16070 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16071 (ATTR_ALLOC_CHUNK): Remove.
16072
421d1616
TT
160732020-01-08 Tom Tromey <tromey@adacore.com>
16074
16075 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16076
43816ebc
TT
160772020-01-08 Tom Tromey <tromey@adacore.com>
16078
16079 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16080 (dwarf2_compute_name, open_dwo_file): Likewise.
16081 (process_enumeration_scope): Use std::vector.
16082 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16083 (partial_die_info::fixup, dwarf2_start_subfile)
16084 (guess_full_die_structure_name, dwarf2_name): Likewise.
16085 (determine_prefix): Update.
16086 (guess_full_die_structure_name): Make return type const.
16087 (partial_die_full_name): Return unique_xmalloc_ptr.
16088 (DW_FIELD_ALLOC_CHUNK): Remove.
16089
4212d509
TT
160902020-01-07 Tom Tromey <tromey@adacore.com>
16091
16092 PR build/24937:
16093 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16094
06a6207a
JT
160952020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16096
16097 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16098
153d79c4
AB
160992020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16100
16101 * stack.c (print_frame_info): Move disassemble_next_line code
16102 inside source_print block.
16103
66182876
EZ
161042020-01-06 Eli Zaretskii <eliz@gnu.org>
16105
16106 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16107 gdb/signals.h, as we are now using native signal symbols.
16108
cbfa8581
SV
161092020-01-06 Shahab Vahedi <shahab@synopsys.com>
16110
16111 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16112 overflow by an early check of content vs threshold.
aac66a4c 16113 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16114 Likewise.
16115
3f602821
EZ
161162020-01-06 Eli Zaretskii <eliz@gnu.org>
16117
16118 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16119
a08c904d
JT
161202020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16121
16122 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16123 export table if no section contains it's RVA.
16124
89a65580
EZ
161252020-01-06 Eli Zaretskii <eliz@gnu.org>
16126
16127 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16128
8b7fcda2
HD
161292020-01-06 Hannes Domani <ssbssa@yahoo.de>
16130
16131 * source.c (print_source_lines_base): Set last_line_listed.
16132
a61b4f69
SV
161332020-01-06 Shahab Vahedi <shahab@synopsys.com>
16134
16135 * tui/tui-disasm.c: Remove trailing spaces.
16136
559e7e50
EZ
161372020-01-06 Eli Zaretskii <eliz@gnu.org>
16138 Pedro Alves <palves@redhat.com>
16139
16140 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16141 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16142 (windows_gdb_signal_to_target): New function, uses the above
16143 enumeration to convert GDB internal signal codes to equivalent
16144 Windows codes.
16145 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16146 * windows-nat.c: Include "gdb_wait.h".
16147 (get_windows_debug_event): Extract the fatal exception from the
16148 exit status and convert to the equivalent Posix signal number.
16149 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16150 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16151 * gdbsupport/gdb_wait.c: New file, implements
16152 windows_status_to_termsig.
16153 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16154 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16155
f2302a34
AB
161562020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16157
16158 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16159 show_layout.
16160
6a5206eb
LM
161612020-01-05 Luis Machado <luis.machado@linaro.org>
16162
16163 * aarch64-linux-nat.c
16164 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16165 and bfd_mach_aarch64.
16166
6ec1d75e
PW
161672020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16168
16169 * ui-file.c (stdio_file::can_emit_style_escape)
16170 (tee_file::can_emit_style_escape): Ensure style is used also on
16171 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16172 to gdb_stdout.
16173 * main.c (set_gdb_data_directory): Use file style to output the
16174 warning that the given pathname is not a directory.
16175 * top.c (show_history_filename, gdb_safe_append_history)
16176 (show_gdb_datadir): Use file style.
16177
44f81a76
HD
161782020-01-03 Hannes Domani <ssbssa@yahoo.de>
16179
16180 * solib-target.c (struct lm_info_target):
16181 Change offsets to be a unique_xmalloc_ptr.
16182 (solib_target_relocate_section_addresses): Update.
16183
25057eb0
HD
161842020-01-03 Hannes Domani <ssbssa@yahoo.de>
16185
16186 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16187
6e2118f5
BE
161882020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16189
16190 * MAINTAINERS (Write After Approval): Add myself.
16191
8133c7dc
LM
161922020-01-02 Luis Machado <luis.machado@linaro.org>
16193
16194 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16195 Cell BE architecture.
16196 * target.h (struct target_ops) <thread_architecture>: Likewise.
16197
48189bec
HD
161982020-01-01 Hannes Domani <ssbssa@yahoo.de>
16199
16200 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16201
ead1063b
HD
162022020-01-01 Hannes Domani <ssbssa@yahoo.de>
16203
16204 * MAINTAINERS (Write After Approval): Add myself.
16205
e5d78223
JB
162062020-01-01 Joel Brobecker <brobecker@adacore.com>
16207
16208 * gdbarch.sh: Update copyright year range of generated files.
16209
b811d2c2
JB
162102020-01-01 Joel Brobecker <brobecker@adacore.com>
16211
16212 Update copyright year range in all GDB files.
16213
5f4def5c
JB
162142020-01-01 Joel Brobecker <brobecker@adacore.com>
16215
16216 * copyright.py: Convert to Python 3.
16217
51fd4002
JB
162182020-01-01 Joel Brobecker <brobecker@adacore.com>
16219
16220 * copyright.py: Adapt after move of gnulib directory from gdb
16221 directory to toplevel directory.
16222
5fb651f2
JB
162232020-01-01 Joel Brobecker <brobecker@adacore.com>
16224
16225 * copyright.py (main): Exit if run from the wrong directory.
16226
5dd8bf88
JB
162272020-01-01 Joel Brobecker <brobecker@adacore.com>
16228
16229 * top.c (print_gdb_version): Change copyright year to 2020.
16230
9f71dacb 162312020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16232
9f71dacb 16233 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16234
9f71dacb 16235For older changes see ChangeLog-2019.
c906108c
SS
16236\f
16237Local Variables:
16238mode: change-log
16239left-margin: 8
16240fill-column: 74
16241version-control: never
57da7796 16242coding: utf-8
c906108c 16243End:
This page took 3.174315 seconds and 4 git commands to generate.