Move lookup_selected_frame to frame.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-30 Pedro Alves <pedro@palves.net>
2
3 * thread.c (lookup_selected_frame): Move ...
4 * frame.c (lookup_selected_frame): ... here.
5
6 2020-10-30 Pedro Alves <pedro@palves.net>
7
8 * blockframe.c (block_innermost_frame): Use get_selected_frame.
9 * frame.c
10 (scoped_restore_selected_frame::scoped_restore_selected_frame):
11 Use save_selected_frame. Save language as well.
12 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
13 Use restore_selected_frame, and restore language as well.
14 (selected_frame_id, selected_frame_level): New.
15 (selected_frame): Update comments.
16 (save_selected_frame, restore_selected_frame): New.
17 (get_selected_frame): Use lookup_selected_frame.
18 (get_selected_frame_if_set): Delete.
19 (select_frame): Record selected_frame_level and selected_frame_id.
20 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
21 fields.
22 (get_selected_frame): Make 'message' parameter optional.
23 (get_selected_frame_if_set): Delete declaration.
24 (select_frame): Update comments.
25 (save_selected_frame, restore_selected_frame)
26 (lookup_selected_frame): Declare.
27 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
28 * infrun.c (struct infcall_control_state) <selected_frame_level>:
29 New field.
30 (save_infcall_control_state): Use save_selected_frame.
31 (restore_selected_frame): Delete.
32 (restore_infcall_control_state): Use restore_selected_frame.
33 * stack.c (select_frame_command_core, frame_command_core): Use
34 get_selected_frame.
35 * thread.c (restore_selected_frame): Rename to ...
36 (lookup_selected_frame): ... this and make extern. Select the
37 current frame if the frame level is -1.
38 (scoped_restore_current_thread::restore): Also restore the
39 language.
40 (scoped_restore_current_thread::~scoped_restore_current_thread):
41 Don't try/catch.
42 (scoped_restore_current_thread::scoped_restore_current_thread):
43 Save the language as well. Use save_selected_frame.
44
45 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
46
47 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
48 documentation.
49 * gdbarch.h: Re-generate.
50
51 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
52
53 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
54 parameter.
55 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
56 Likewise.
57 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
58 Likewise.
59 * arch-utils.c (default_displaced_step_hw_singlestep):
60 Likewise.
61 * arch-utils.h (default_displaced_step_hw_singlestep):
62 Likewise.
63 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
64 Likewise.
65 * s390-tdep.c (s390_displaced_step_hw_singlestep):
66 Likewise.
67 * gdbarch.c: Re-generate.
68 * gdbarch.h: Re-generate.
69 * infrun.c (resume_1): Adjust.
70
71 2020-10-29 Tom Tromey <tom@tromey.com>
72
73 * progspace.c (program_space::~program_space): Don't call
74 exec_close.
75
76 2020-10-29 Tom Tromey <tom@tromey.com>
77
78 * exec.c (exec_target::close): Don't change current program
79 space.
80
81 2020-10-29 Tom Tromey <tom@tromey.com>
82
83 * symfile.c (add_symbol_file_command): Update.
84 * exec.c (program_space::add_target_sections): Rename.
85 * symfile-mem.c (symbol_file_add_from_memory): Update.
86 * progspace.h (struct program_space) <add_target_sections>:
87 Declare new overload.
88 * exec.h (add_target_sections_of_objfile): Don't declare.
89
90 2020-10-29 Tom Tromey <tom@tromey.com>
91
92 * solib.c (solib_map_sections): Update.
93 * exec.c (program_space::add_target_sections): Now a method.
94 (exec_file_attach): Update.
95 * exec.h (add_target_sections): Don't declare.
96 * progspace.h (struct program_space) <add_target_sections>:
97 Declare.
98
99 2020-10-29 Tom Tromey <tom@tromey.com>
100
101 * progspace.h (struct program_space) <remove_target_sections>:
102 Declare.
103 * exec.c (program_space::remove_target_sections): Now a method.
104 * exec.h (remove_target_sections): Don't declare.
105
106 2020-10-29 Tom Tromey <tom@tromey.com>
107
108 * inferior.c (delete_inferior): Update.
109 * progspace.c (program_space::empty): Rename from
110 program_space_empty_p. Return bool.
111 * progspace.h (struct program_space) <empty>: New method.
112 (program_space_empty_p): Don't declare.
113
114 2020-10-29 Tom Tromey <tom@tromey.com>
115
116 * progspace.c (program_space::~program_space): Don't call
117 clear_program_space_solib_cache.
118 (program_space::clear_solib_cache): Rename from
119 clear_solib_cache.
120 * solib.c (handle_solib_event): Update.
121 * progspace.h (struct program_space) <clear_solib_cache>: New
122 method.
123 (clear_program_space_solib_cache): Don't declare.
124
125 2020-10-29 Tom Tromey <tom@tromey.com>
126
127 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
128 * target.c (info_target_command): Update.
129 * symfile.c (syms_from_objfile_1, finish_new_objfile)
130 (symbol_file_clear, reread_symbols): Update.
131 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
132 * stabsread.c (scan_file_globals): Update.
133 * solib.c (update_solib_list): Update.
134 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
135 (svr4_fetch_objfile_link_map, enable_break)
136 (svr4_relocate_main_executable)
137 (svr4_iterate_over_objfiles_in_search_order): Update.
138 * solib-frv.c (lm_base, enable_break)
139 (frv_relocate_main_executable): Update.
140 (main_got, frv_fdpic_find_canonical_descriptor): Update.
141 (frv_fetch_objfile_link_map): Update.
142 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
143 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
144 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
145 * remote.c (remote_target::get_offsets): Update.
146 (remote_target::start_remote)
147 (extended_remote_target::post_attach): Update.
148 * objfiles.c (entry_point_address_query): Update.
149 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
150 * minsyms.c (get_symbol_leading_char): Update.
151 * frame.c (inside_main_func): Update.
152 * progspace.h (symfile_objfile): Remove macro.
153
154 2020-10-29 Tom Tromey <tom@tromey.com>
155
156 * exec.c (exec_file_attach): Update.
157 * progspace.c (program_space::exec_close): Update.
158 * progspace.h (struct program_space) <ebfd>: Now a
159 gdb_bfd_ref_ptr.
160 <set_exec_bfd>: Change argument type.
161 <exec_bfd>: Update.
162
163 2020-10-29 Tom Tromey <tom@tromey.com>
164
165 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
166 * symfile.c (reread_symbols): Update.
167 * symfile-mem.c (add_symbol_file_from_memory_command)
168 (add_vsyscall_page): Update.
169 * source-cache.c (source_cache::get_plain_source_lines): Update.
170 * solib-svr4.c (find_program_interpreter, elf_locate_base)
171 (svr4_current_sos_direct, svr4_exec_displacement)
172 (svr4_relocate_main_executable): Update.
173 (svr4_iterate_over_objfiles_in_search_order): Update.
174 * solib-frv.c (enable_break2, enable_break): Update.
175 * solib-dsbt.c (lm_base, enable_break): Update.
176 * solib-darwin.c (find_program_interpreter)
177 (darwin_solib_create_inferior_hook): Update.
178 * sol-thread.c (rw_common, ps_pdmodel): Update.
179 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
180 * remote.c (compare_sections_command)
181 (remote_target::trace_set_readonly_regions): Update.
182 * remote-sim.c (get_sim_inferior_data)
183 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
184 (gdbsim_target_open, gdbsim_target::files_info): Update.
185 * exec.h (exec_bfd): Remove macro.
186 * progspace.c (initialize_progspace): Update.
187 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
188 Update.
189 * nto-procfs.c (nto_procfs_target::post_attach)
190 (nto_procfs_target::create_inferior): Update.
191 * maint.c (maintenance_info_sections): Update.
192 * linux-thread-db.c (thread_db_target::get_thread_local_address):
193 Update.
194 * infcmd.c (post_create_inferior): Update.
195 * gcore.c (default_gcore_arch, default_gcore_target): Update.
196 (objfile_find_memory_regions): Update.
197 * exec.c (validate_exec_file, exec_file_attach)
198 (exec_read_partial_read_only, print_section_info): Update.
199 * corelow.c (core_target_open): Update.
200 * corefile.c (reopen_exec_file, validate_files): Update.
201 * arm-tdep.c (gdb_print_insn_arm): Update.
202 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
203 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
204 methods.
205
206 2020-10-29 Tom Tromey <tom@tromey.com>
207
208 * progspace.h (current_target_sections): Remove macro.
209 * solib-svr4.c (scan_dyntag): Update.
210 * solib-dsbt.c (scan_dyntag): Update.
211 * exec.c (exec_target::close): Update.
212 (add_target_sections, add_target_sections_of_objfile)
213 (remove_target_sections, exec_target::get_section_table)
214 (exec_target::files_info, set_section_command)
215 (exec_set_section_address, exec_target::has_memory)
216 (exec_target::has_memory): Update.
217
218 2020-10-29 Tom Tromey <tom@tromey.com>
219
220 * source-cache.c (source_cache::get_plain_source_lines): Use
221 current_program_space.
222 * corefile.c (reopen_exec_file): Use current_program_space.
223 * exec.c (exec_file_attach): Use current_program_space.
224 * exec.h (exec_bfd_mtime): Remove.
225
226 2020-10-29 Tom Tromey <tom@tromey.com>
227
228 * gcore.c (default_gcore_mach): Remove.
229 (create_gcore_bfd): Update.
230
231 2020-10-29 Tom Tromey <tom@tromey.com>
232
233 * progspace.c (program_space::exec_close): New method, from
234 exec_close in exec.c.
235 * exec.c (exec_close): Move to progspace.c.
236 (exec_target::close, exec_file_attach): Update.
237 * progspace.h (struct program_space) <exec_close>: Declare
238 method.
239
240 2020-10-29 Tom Tromey <tom@tromey.com>
241
242 * progspace.h (struct program_space) <exec_filename>: Rename from
243 pspace_exec_filename. Now a unique_xmalloc_ptr.
244 * inferior.c (print_selected_inferior): Update.
245 (print_inferior): Update.
246 * mi/mi-main.c (print_one_inferior): Update.
247 * exec.h (exec_filename): Remove macro.
248 * corefile.c (get_exec_file): Update.
249 * exec.c (exec_close): Update.
250 (exec_file_attach): Update.
251 * progspace.c (clone_program_space): Update.
252 (print_program_space): Update.
253
254 2020-10-29 Tom Tromey <tom@tromey.com>
255
256 * target-section.h (struct target_section): Add constructor.
257 * exec.c (build_section_table, add_target_sections_of_objfile):
258 Update.
259 * corelow.c (core_target::build_file_mappings): Update.
260
261 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
262
263 PR gdb/19318
264 * inferior.c (detach_inferior_command): Restore the current thread.
265 (kill_inferior_command): Ditto.
266
267 2020-10-28 Tom de Vries <tdevries@suse.de>
268
269 PR symtab/26772
270 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
271 map, check it in the "best match" loop.
272
273 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
274
275 * m32c-tdep.c: Remove unused includes.
276
277 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
278
279 * xtensa-tdep.c: Remove includes.
280
281 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
282
283 * breakpoint.c (struct condition_command_opts): New struct.
284 (condition_command_option_defs): New static global.
285 (make_condition_command_options_def_group): New function.
286 (condition_completer): Update to consider the '-force' flag.
287 (condition_command): Use gdb::option for the '-force' flag.
288
289 2020-10-27 Tom de Vries <tdevries@suse.de>
290
291 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
292 symbols in section check.
293
294 2020-10-27 Tom de Vries <tdevries@suse.de>
295
296 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
297
298 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
299
300 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
301 * breakpoint.c: Update the help text of the 'condition' and 'break'
302 commands.
303 (set_breakpoint_condition): Take a new bool parameter
304 to control whether condition definition should be forced even when
305 the condition expression is invalid in all of the current locations.
306 (condition_command): Update the call to 'set_breakpoint_condition'.
307 (find_condition_and_thread): Take the "-force-condition" flag into
308 account.
309 * linespec.c (linespec_keywords): Add "-force-condition" as an
310 element.
311 (FORCE_KEYWORD_INDEX): New #define.
312 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
313 as a keyword.
314 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
315 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
316 * python/py-breakpoint.c (bppy_set_condition): Ditto.
317 * NEWS: Mention the changes to the 'break' and 'condition' commands.
318
319 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
320
321 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
322 * breakpoint.c (set_breakpoint_location_condition): New function.
323 (set_breakpoint_condition): Disable a breakpoint location if parsing
324 the condition string gives an error.
325 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
326 (build_target_condition_list): Ditto.
327 (build_target_command_list): Ditto.
328 (build_bpstat_chain): Ditto.
329 (print_one_breakpoint_location): Ditto.
330 (print_one_breakpoint): Ditto.
331 (breakpoint_1): Ditto.
332 (bp_location::bp_location): Ditto.
333 (locations_are_equal): Ditto.
334 (update_breakpoint_locations): Ditto.
335 (enable_disable_bp_num_loc): Ditto.
336 (init_breakpoint_sal): Use set_breakpoint_location_condition.
337 (find_condition_and_thread_for_sals): New static function.
338 (create_breakpoint): Call find_condition_and_thread_for_sals.
339 (location_to_sals): Call find_condition_and_thread_for_sals instead
340 of find_condition_and_thread.
341
342 2020-10-26 Tom de Vries <tdevries@suse.de>
343
344 * dwarf2/read.c (process_full_comp_unit): Call
345 dwarf2_find_base_address.
346
347 2020-10-26 Tom Tromey <tromey@adacore.com>
348
349 * gdbtypes.c (create_range_type): Revert previous patch. Add
350 comment.
351
352 2020-10-26 Pedro Alves <pedro@palves.net>
353
354 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
355 (my_waitpid): Use gdb::handle_eintr.
356
357 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
358
359 * acinclude.m4: Update ptrace.m4 path.
360 * ptrace.m4: Moved to gdbsupport.
361
362 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
363
364 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
365 instead of target_gdbarch.
366
367 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
368
369 * jit.c (jit_reader_load_command): Pass current inferior.
370 (jit_inferior_init): Change parameter type to inferior, use it.
371 (jit_inferior_created): Remove.
372 (jit_inferior_created_hook): Pass inferior parameter down.
373 (_initialize_jit): Use jit_inferior_created_hook instead of
374 jit_inferior_created.
375 * jit.h (jit_inferior_created_hook): Add inferior parameter.
376 * infrun.c (follow_exec): Pass inferior to
377 jit_inferior_created_hook.
378
379 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
380
381 * linux-thread-db.c (check_pid_namespace_match): Add inferior
382 parameter and use it.
383 (thread_db_inferior_created): Pass inferior argument.
384
385 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
386
387 * aix-thread.c (aix_thread_inferior_created): Add inferior
388 parameter.
389 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
390 * dummy-frame.c (cleanup_dummy_frames): Likewise.
391 * jit.c (jit_inferior_created): Likewise.
392 * linux-thread-db.c (thread_db_inferior_created): Likewise.
393 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
394 * observable.h (inferior_created): Likewise.
395 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
396 * symfile-mem.c (add_vsyscall_page): Likewise.
397 * infcmd.c (post_create_inferior): Pass inferior argument.
398
399 2020-10-24 Joel Brobecker <brobecker@adacore.com>
400
401 GDB 10.1 released.
402
403 2020-10-23 Joel Brobecker <brobecker@adacore.com>
404
405 * ada-typeprint.c (ada_print_type): Remove superfluous second call
406 to ada_check_typedef.
407
408 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
409
410 * f-exp.y (f_parse): Rename to...
411 (f_language::parser): ...this.
412 * f-lang.c (f_get_encoding): Rename to...
413 (f_language::get_encoding): ...this.
414 (f_op_print_tab): Rename to...
415 (f_language::op_print_tab): ...this.
416 (exp_descriptor_f): Rename to...
417 (f_language::exp_descriptor_tab): ...this.
418 (class f_language): Moved to f-lang.h.
419 (f_language::language_arch_info): New function, moved out of class
420 declaration.
421 (f_language::search_name_hash): Likewise.
422 (f_language::lookup_symbol_nonlocal): Likewise.
423 (f_language::get_symbol_name_matcher_inner): Likewise.
424 * f-lang.h: Add 'valprint.h' include.
425 (class f_language): Moved here from f-lang.c.
426 * f-typeprint.c (f_type_print_args): Delete commented out
427 declaration.
428 (f_print_typedef): Rename to...
429 (f_language::print_typedef): ...this.
430 (f_print_type): Rename to...
431 (f_language::print_type): ...this.
432 (f_type_print_varspec_prefix): Delete declaration and rename to...
433 (f_language::f_type_print_varspec_prefix): ...this.
434 (f_type_print_varspec_suffix): Delete declaration and rename to...
435 (f_language::f_type_print_varspec_suffix): ...this.
436 (f_type_print_base): Delete declaration and rename to...
437 (f_language::f_type_print_base): ...this.
438 * f-valprint.c (f_value_print_inner): Rename to...
439 (f_language::value_print_inner): ...this.
440 * parse.c: Delete 'f-lang.h' include.
441
442 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
443
444 * language.h (language_defn::print_type): Add variable names in
445 declaration, and update header comment.
446
447 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
448
449 * ada-lang.c (ada_language::demangle): Rename to...
450 (ada_language::demangle_symbol): ...this.
451 * c-lang.c (cplus_language::demangle): Rename to...
452 (cplus_language::demangle_symbol): ...this.
453 * d-lang.c (d_language::demangle): Rename to...
454 (d_language::demangle_symbol): ...this.
455 * f-lang.c (f_language::demangle): Rename to...
456 (f_language::demangle_symbol): ...this.
457 * go-lang.c (go_language::demangle): Rename to...
458 (go_language::demangle_symbol): ...this.
459 * language.c (language_demangle): Update call to demangle_symbol.
460 (auto_or_unknown_language::demangle): Rename to...
461 (auto_or_unknown_language::demangle_symbol): ...this.
462 * language.h (language_defn::demangle): Rename to...
463 (language_defn::demangle_symbol): ...this.
464 * objc-lang.c (objc_language::demangle): Rename to...
465 (objc_language::demangle_symbol): ...this.
466 * rust-lang.c (rust_language::demangle): Rename to...
467 (rust_language::demangle_symbol): ...this.
468
469 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
470
471 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
472 (iterate_over_file_blocks): Replace use of macro with the macros
473 definition.
474
475 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
476
477 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
478 * valprint.c (maybe_print_array_index): Replace use of macro with
479 the macros definition.
480
481 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
482
483 * ada-lang.c (ada_language::print_array_index): Call value_print
484 directly.
485 * language.c (language_defn::print_array_index): Likewise.
486 * language.h (LA_VALUE_PRINT): Delete.
487 * valprint.c (value_print): Call value_print on the
488 current_language directly.
489
490 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
491
492 * language.h (LA_PRINT_TYPEDEF): Delete.
493 * typeprint.c (typedef_print): Call print_typedef directly on the
494 current_language object.
495
496 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
497
498 * m2-exp.y (m2_parse): Rename to...
499 (m2_language::parser): ...this. Update function signature.
500 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
501 (m2_op_print): Rename to...
502 (m2_language::op_print_tab): ...this, and make const.
503 (exp_descriptor_modula2): Rename to...
504 (m2_language::exp_descriptor_modula2): ...this.
505 (class m2_language): Move to m2-lang.h.
506 (m2_language::language_arch_info): New function, moved out of
507 class declaration.
508 (m2_language::printchar): New function, body from m2_printchar.
509 (m2_language::printstr): New function, moved out of class
510 declaration.
511 (m2_language::emitchar): Likewise.
512 * m2-lang.h (m2_parse): Delete declaration.
513 (m2_print_typedef): Delete declaration.
514 (m2_value_print_inner): Delete declaration.
515 (class m2_language): Class declaration moved from m2-lang.c,
516 larger functions are left in m2-lang.c.
517 * m2-typeprint.c (m2_print_typedef): Rename to...
518 (m2_language::print_typedef): ...this, and update function
519 signature.
520 * m2-valprint.c (m2_value_print_inner): Rename to...
521 (m2_language::value_print_inner): ...this, replace use of
522 LA_PRINT_STRING with a direct call to printstr member function,
523 and update recursive call.
524
525 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
526
527 * language.c (default_is_string_type_p): Delete, implementation
528 moved into auto_or_unknown_language::is_string_type_p.
529 (unk_op_print_tab): Moved into
530 auto_or_unknown_language::opcode_print_table.
531 (unknown_language_arch_info): Delete, implementation moved into
532 auto_or_unknown_language::language_arch_info.
533 (class auto_or_unknown_language): New class, member functions
534 copied from unknown_language class, with some updates.
535 (class unknown_language): Most member functions moved into
536 auto_or_unknown_language class. Inherit from
537 auto_or_unknown_language class.
538 (class auto_language): Inherit from auto_or_unknown_language.
539 Delete most member functions.
540
541 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
542
543 * stabsread.c (read_member_functions): Remove gdb_assert.
544
545 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
546
547 * gdbtypes.c (init_complex_type): Check target type name.
548
549 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
550
551 * target-debug.h (target_debug_print_struct_target_ops_p):
552 Remove.
553 (target_debug_print_async_callback_ftype_p): Remove.
554 (target_debug_print_struct_trace_state_variable_p): Remove.
555 (target_debug_print_struct_traceframe_info_p): Remove.
556 (target_debug_print_VEC__btrace_block_s__pp): Remove.
557 (target_debug_print_enum_btrace_format): Remove.
558 (target_debug_print_enum_info_proc_what): Remove.
559 (target_debug_print_thread_info_pp): Remove.
560
561 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
562
563 * target.h (struct target_ops) <make_corefile_notes>:
564 Change return type to unique pointer.
565 * target.c (dummy_make_corefile_notes): Likewise.
566 * exec.c (struct exec_target) <make_corefile_notes>:
567 Likewise.
568 (exec_target::make_corefile_notes): Likewise.
569 * procfs.c (class procfs_target) <make_corefile_notes>:
570 Likewise.
571 (procfs_do_thread_registers): Adjust to unique pointer.
572 (struct procfs_corefile_thread_data): Add constructor.
573 <note_data>: Change type to unique pointer.
574 (procfs_corefile_thread_callback): Adjust to unique pointer.
575 (procfs_target::make_corefile_notes): Change return type to
576 unique pointer.
577 * target-delegates.c: Re-generate.
578 * gcore.c (write_gcore_file_1): Adjust.
579 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
580 New.
581
582 2020-10-22 Tom de Vries <tdevries@suse.de>
583
584 * block.c (find_block_in_blockvector): Make sure the returned block
585 contains pc.
586
587 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
588
589 PR gdb/26693
590 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
591 parameter.
592 (load_cu): Pass existing CU.
593 (process_imported_unit_die): Likewise.
594 (follow_die_offset): Likewise.
595
596 2020-10-22 Luis Machado <luis.machado@linaro.org>
597
598 * corelow.c (core_target::xfer_partial): Also check for an empty
599 m_core_unavailable_mappings vector.
600
601 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
602
603 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
604 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
605 * f-exp.y (arglist): Allow for a series of subranges.
606 (subrange): Add cases for subranges with strides.
607 * f-lang.c (value_f90_subarray): Catch use of array strides and
608 throw an error.
609 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
610
611 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
612
613 * expprint.c (print_subexp_standard): Change enum range_type to
614 range_flag and rename variables to match.
615 (dump_subexp_body_standard): Likewise.
616 * expression.h (enum range_type): Rename to...
617 (enum range_flag): ...this.
618 (range_types): Rename to...
619 (range_flags): ...this.
620 * f-lang.c (value_f90_subarray): Change enum range_type to
621 range_flag and rename variables to match.
622 * parse.c (operator_length_standard): Likewise.
623 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
624 range_type to range_flag.
625 * rust-lang.c (rust_evaluate_funcall): Likewise.
626 (rust_range): Likewise.
627 (rust_compute_range): Likewise.
628 (rust_subscript): Likewise.
629
630 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
631
632 * expprint.c (print_subexp_standard): Update to reflect changes to
633 enum range_type.
634 (dump_subexp_body_standard): Likewise.
635 * expression.h (enum range_type): Convert to a bit field enum, and
636 make the enum unsigned.
637 * f-exp.y (subrange): Update to reflect changes to enum
638 range_type.
639 * f-lang.c (value_f90_subarray): Likewise.
640 * parse.c (operator_length_standard): Likewise.
641 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
642 * rust-lang.c (rust_range): Likewise.
643 (rust_compute_range): Likewise.
644 (rust_subscript): Likewise.
645
646 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
647
648 * infrun.c (displaced_step_in_progress_thread): Fix comment.
649 (displaced_step_in_progress): Fix comment.
650
651 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
652
653 * gdbarch.sh (make_corefile_notes): Return unique pointer.
654 * gdbarch.c: Re-generate.
655 * gdbarch.h: Re-generate.
656 * gcore.c (write_gcore_file_1): Adjust.
657 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
658 constructor.
659 <note_data>: Change type to unique pointer.
660 <abort_iteration>: Change type to bool.
661 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
662 (fbsd_collect_thread_registers): Return void, adjust.
663 (struct fbsd_corefile_thread_data): Add construtor.
664 <note_data>: Change type to unique pointer.
665 (fbsd_corefile_thread): Adjust.
666 (fbsd_make_corefile_notes): Return unique pointer, adjust.
667 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
668 to unique pointer, adjust.
669 (struct linux_collect_regset_section_cb_data): Add constructor.
670 <note_data>: Change type to unique pointer.
671 <abort_iteration>: Change type to bool.
672 (linux_collect_thread_registers): Return void, adjust.
673 (struct linux_corefile_thread_data): Add constructor.
674 <note_data>: Change type to unique pointer.
675 (linux_corefile_thread): Adjust.
676 (linux_make_corefile_notes): Return unique pointer, adjust.
677
678 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
679
680 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
681 * gdbarch.c: Re-generate.
682 * gdbarch.h: Re-generate.
683 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
684 bool.
685 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
686 Likewise.
687 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
688 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
689 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
690 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
691
692 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
693
694 * gdbarch.sh: Make generated predicates return bool.
695 * gdbarch.c: Re-generate.
696 * gdbarch.h: Re-generate.
697
698 2020-10-20 Tom Tromey <tom@tromey.com>
699
700 * varobj-iter.h (struct varobj_item): Remove typedef.
701
702 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
703
704 * infrun.c (currently_stepping): Change int to bool
705 (maybe_software_singlestep): Likewise.
706 (show_stop_on_solib_events): Likewise.
707 (stepping_past_nonsteppable_watchpoint): Likewise.
708 (displaced_step_in_progress_any_inferior): Likewise.
709 (displaced_step_in_progress_thread): Likewise.
710 (keep_going_stepped_thread): Likewise.
711 (thread_still_needs_step_over): Likewise.
712 (start_step_over): Likewise.
713 (do_target_resume): Likewise.
714 (resume_1): Likewise.
715 (clear_proceed_status): Likewise.
716 (thread_still_needs_step_over_bp): Likewise.
717 (proceed): Likewise.
718 (switch_back_to_stepped_thread): Likewise.
719 (adjust_pc_after_break): Likewise.
720 (stepped_in_from): Likewise.
721 (handle_stop_requested): Likewise.
722 (handle_syscall_event): Likewise.
723 (handle_no_resumed): Likewise.
724 (handle_inferior_event): Likewise.
725 (finish_step_over): Likewise.
726 (handle_signal_stop): Likewise.
727 (process_event_stop_test): Likewise.
728
729 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
730
731 * infrun.c (get_displaced_stepping_state): Fix comment.
732
733 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
734
735 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
736
737 2020-10-19 Tom Tromey <tromey@adacore.com>
738
739 PR tui/26719
740 * tui/tui-winsource.h (struct tui_source_window_base)
741 <refresh_window>: Rename from refresh_pad.
742 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
743 Rename from refresh_pad.
744 (tui_source_window_base::show_source_content)
745 (tui_source_window_base::do_scroll_horizontal): Update.
746
747 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
748
749 * thread.c (_initialize_thread): Fine-tune the help text of
750 'info threads'.
751
752 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
753
754 * frame.c: Remove the unused 'uinteger_option_def' type alias.
755
756 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
757
758 * breakpoint.c (handle_jit_event): Add an argument, change how
759 `jit_event_handler` is called.
760
761 2020-10-17 Tom Tromey <tom@tromey.com>
762
763 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
764 (scan_xcoff_symtab): Update.
765 * psymtab.h (class psymtab_storage) <global_psymbols,
766 static_psymbols, current_global_psymbols,
767 current_static_psymbols>: Remove.
768 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
769 (match_partial_symbol, lookup_partial_symbol): Update.
770 (print_partial_symbols): Change parameters.
771 (dump_psymtab, recursively_search_psymtabs)
772 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
773 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
774 (concat): Remove.
775 (end_psymtab_common): Simplify.
776 (append_psymbol_to_list): Change parameters.
777 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
778 (init_psymbol_list): Simplify.
779 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
780 * psympriv.h (struct partial_symtab) <empty>: New method.
781 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
782 Remove.
783 <global_psymbols, static_psymbols>: New members.
784 <add_psymbol>: New methods.
785 (add_psymbol_to_list): Don't declare.
786 (psymbol_placement): Move earlier.
787 * mdebugread.c (parse_partial_symbols): Update.
788 (handle_psymbol_enumerators): Change parameters.
789 (mdebug_expand_psymtab): Update.
790 * dwarf2/read.c (process_psymtab_comp_unit_reader)
791 (add_partial_symbol): Update.
792 * dwarf2/index-write.c (write_psymbols): Change parameters.
793 (write_one_signatured_type): Update.
794 (recursively_count_psymbols): Update.
795 (recursively_write_psymbols): Update.
796 (class debug_names) <recursively_write_psymbols>: Update.
797 <write_psymbols>: Change parameters.
798 <write_one_signatured_type>: Update.
799 * dbxread.c (read_dbx_symtab): Update.
800 (dbx_end_psymtab): Use partial_symtab::empty.
801 * ctfread.c (struct ctf_context) <pst>: New member.
802 (create_partial_symtab): Set it.
803 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
804 (scan_partial_symbols): Use the psymtab's context. Update.
805
806 2020-10-17 Tom Tromey <tom@tromey.com>
807
808 * valprint.c (generic_value_print): Remove comment.
809 * m2-valprint.c (m2_value_print_inner): Remove comment.
810 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
811 type.
812
813 2020-10-17 Tom de Vries <tdevries@suse.de>
814
815 PR symtab/26317
816 * source.c (select_source_symtab): Handling sal.symtab == NULL for
817 symbol main.
818
819 2020-10-14 Tom de Vries <tdevries@suse.de>
820
821 PR gdb/26733
822 * solib.c (solib_contains_address_p): Handle
823 'solib->sections == nullptr'.
824
825 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
826
827 PR gdb/26642
828 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
829 target can't do async.
830 * target.c (target_wait): Assert that we don't pass
831 TARGET_WNOHANG to a target that can't async.
832
833 2020-10-13 Kamil Rytarowski <n54@gmx.com>
834
835 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
836 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
837 * alpha-bsd-nat.c: Adjust include.
838 * alpha-bsd-tdep.h: Adjust comment.
839 * alpha-nbsd-tdep.c: Rename to ...
840 * alpha-netbsd-tdep.c: ... this, adjust include.
841 * amd64-nbsd-nat.c: Rename to ...
842 * amd64-netbsd-nat.c: ... this, adjust include.
843 * amd64-nbsd-tdep.c: Rename to ...
844 * amd64-netbsd-tdep.c: ... this, adjust include.
845 * amd64-tdep.h: Adjust include.
846 * arm-nbsd-nat.c: Rename to ...
847 * arm-netbsd-nat.c: ... this, adjust include.
848 * arm-nbsd-tdep.c: Rename to ...
849 * arm-netbsd-tdep.c: ... this, adjust include.
850 * arm-nbsd-tdep.h: Rename to ...
851 * arm-netbsd-tdep.h: ... this, adjust include.
852 * configure.nat: Adjust file lists.
853 * configure.tgt: Likewise.
854 * hppa-nbsd-nat.c: Rename to ...
855 * hppa-netbsd-nat.c: ... this, adjust include.
856 * hppa-nbsd-tdep.c: Rename to ...
857 * hppa-netbsd-tdep.c: ... this, adjust include.
858 * i386-nbsd-nat.c: Rename to ...
859 * i386-netbsd-nat.c: ... this, adjust include.
860 * i386-nbsd-tdep.c: Rename to ...
861 * i386-netbsd-tdep.c: ... this, adjust include.
862 * m68k-bsd-nat.c: Adjust include.
863 * mips-nbsd-nat.c: Rename to ...
864 * mips-netbsd-nat.c: ... this, adjust include.
865 * mips-nbsd-tdep.c: Rename to ...
866 * mips-netbsd-tdep.c: ... this, adjust include.
867 * mips-nbsd-tdep.h: Rename to ...
868 * mips-netbsd-tdep.h: ... this.
869 * nbsd-nat.c: Rename to ...
870 * netbsd-nat.c: ... this, adjust include.
871 * nbsd-nat.h: Rename to ...
872 * netbsd-nat.h: ... this, adjust include.
873 * nbsd-tdep.c: Rename to ...
874 * netbsd-tdep.c: ... this, adjust include.
875 * nbsd-tdep.h: Rename to ...
876 * netbsd-tdep.h: ... this.
877 * ppc-nbsd-nat.c: Rename to ...
878 * ppc-netbsd-nat.c: ... this, adjust include.
879 * ppc-nbsd-tdep.c: Rename to ...
880 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
881 * ppc-nbsd-tdep.h: Rename to ...
882 * ppc-netbsd-tdep.h: ... this.
883 * sh-nbsd-nat.c: Rename to ...
884 * sh-netbsd-nat.c: ... this, adjust include.
885 * sh-nbsd-tdep.c: Rename to ...
886 * sh-netbsd-tdep.c: ... this, adjust include.
887 * sparc-nbsd-nat.c: Rename to ...
888 * sparc-netbsd-nat.c: ... this.
889 * sparc-nbsd-tdep.c: Rename to ...
890 * sparc-netbsd-tdep.c: ... this, adjust include.
891 * sparc64-nbsd-nat.c: Rename to ...
892 * sparc64-netbsd-nat.c: ... this.
893 * sparc64-nbsd-tdep.c: Rename to ...
894 * sparc64-netbsd-tdep.c: ... this, adjust include.
895 * sparc64-tdep.h: Adjust comment.
896 * vax-bsd-nat.c: Adjust include.
897 * vax-nbsd-tdep.c: Rename to ...
898 * vax-netbsd-tdep.c: ... this, adjust include.
899
900 2020-10-12 Tom Tromey <tom@tromey.com>
901
902 * target.h (struct target_ops) <get_section_table>: Update.
903 (target_get_section_table): Update.
904 * target.c (target_get_section_table, target_section_by_addr)
905 (memory_xfer_partial_1): Update.
906 * target-section.h (target_section_table): Now an alias.
907 * target-delegates.c: Rebuild.
908 * target-debug.h (target_debug_print_target_section_table_p):
909 Rename from target_debug_print_struct_target_section_table_p.
910 * symfile.c (build_section_addr_info_from_section_table): Update.
911 * solib.c (solib_map_sections, solib_contains_address_p): Update.
912 * solib-svr4.c (scan_dyntag): Update.
913 * solib-dsbt.c (scan_dyntag): Update.
914 * remote.c (remote_target::remote_xfer_live_readonly_partial):
915 Update.
916 * record-full.c (record_full_core_target::xfer_partial): Update.
917 * progspace.h (struct program_space) <target_sections>: Update.
918 * exec.h (print_section_info): Update.
919 * exec.c (exec_target::close, build_section_table)
920 (add_target_sections, add_target_sections_of_objfile)
921 (remove_target_sections, exec_on_vfork)
922 (section_table_available_memory)
923 (section_table_xfer_memory_partial)
924 (exec_target::get_section_table, exec_target::xfer_partial)
925 (print_section_info, set_section_command)
926 (exec_set_section_address, exec_target::has_memory): Update.
927 * corelow.c (core_target::build_file_mappings)
928 (core_target::xfer_partial, core_target::info_proc_mappings)
929 (core_target::info_proc_mappings): Update.
930 * bfd-target.c (class target_bfd): Update
931
932 2020-10-12 Tom Tromey <tom@tromey.com>
933
934 * progspace.c (program_space::~program_space): Don't call
935 clear_section_table.
936 * exec.h (clear_section_table): Don't declare.
937 * exec.c (exec_target::close): Update.
938 (clear_section_table): Remove.
939
940 2020-10-12 Tom Tromey <tom@tromey.com>
941
942 * exec.c (add_target_sections_of_objfile): Simplify.
943
944 2020-10-12 Tom Tromey <tom@tromey.com>
945
946 * solib.c (solib_map_sections): Update.
947 * record-full.c (record_full_core_open_1): Update.
948 * exec.h (build_section_table): Return a target_section_table.
949 * exec.c (exec_file_attach): Update.
950 (build_section_table): Return a target_section_table.
951 * corelow.c (core_target::core_target): Update.
952 * bfd-target.c (target_bfd::target_bfd): Update.
953
954 2020-10-12 Tom Tromey <tom@tromey.com>
955
956 * target.c (target_section_by_addr, memory_xfer_partial_1):
957 Update.
958 * target-section.h (struct target_section_table): Use
959 std::vector.
960 * symfile.h (build_section_addr_info_from_section_table): Take a
961 target_section_table.
962 * symfile.c (build_section_addr_info_from_section_table): Take a
963 target_section_table.
964 * solist.h (struct so_list) <sections>: Change type.
965 <sections_end>: Remove.
966 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
967 (solib_contains_address_p): Update.
968 * solib-svr4.c (scan_dyntag): Update.
969 * solib-dsbt.c (scan_dyntag): Update.
970 * remote.c (remote_target::remote_xfer_live_readonly_partial):
971 Update.
972 * record-full.c (record_full_core_start, record_full_core_end):
973 Remove.
974 (record_full_core_sections): New global.
975 (record_full_core_open_1, record_full_core_target::xfer_partial):
976 Update.
977 * exec.h (build_section_table, section_table_xfer_memory_partial)
978 (add_target_sections): Take a target_section_table.
979 * exec.c (exec_file_attach, clear_section_table): Update.
980 (resize_section_table): Remove.
981 (build_section_table, add_target_sections): Take a
982 target_section_table.
983 (add_target_sections_of_objfile, remove_target_sections)
984 (exec_on_vfork): Update.
985 (section_table_available_memory): Take a target_section_table.
986 (section_table_read_available_memory): Update.
987 (section_table_xfer_memory_partial): Take a target_section_table.
988 (print_section_info, set_section_command)
989 (exec_set_section_address, exec_target::has_memory): Update.
990 * corelow.c (class core_target) <m_core_section_table,
991 m_core_file_mappings>: Remove braces.
992 <~core_target>: Remove.
993 (core_target::core_target): Update.
994 (core_target::~core_target): Remove.
995 (core_target::build_file_mappings)
996 (core_target::xfer_memory_via_mappings)
997 (core_target::xfer_partial, core_target::info_proc_mappings):
998 Update.
999 * bfd-target.c (target_bfd::xfer_partial): Update.
1000 (target_bfd::target_bfd): Update.
1001 (target_bfd::~target_bfd): Remove.
1002
1003 2020-10-12 Tom Tromey <tom@tromey.com>
1004
1005 * target.h (struct target_section, struct target_section_table):
1006 Move to target-section.h.
1007 * target-section.h: New file.
1008
1009 2020-10-12 Pedro Alves <pedro@palves.net>
1010
1011 PR exp/26602
1012 * valops.c (struct struct_field_searcher): New.
1013 (update_search_result): Rename to ...
1014 (struct_field_searcher::update_result): ... this. Simplify
1015 prototype. Record all found fields.
1016 (do_search_struct_field): Rename to ...
1017 (struct_field_searcher::search): ... this. Simplify prototype.
1018 Maintain stack of visited baseclass path. Call update_result for
1019 fields too. Keep searching fields in baseclasses instead of
1020 stopping at the first found field.
1021 (search_struct_field): Use struct_field_searcher. When looking
1022 for fields, report ambiguous access attempts.
1023
1024 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1025
1026 * frame.c (inside_main_func): Check full symbols as well as
1027 minimal symbols.
1028
1029 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1030
1031 * ada-lang.c (advance_wild_match): Rewrite the function's
1032 description. Change the type of target0, t0 and t1 to char.
1033
1034 2020-10-09 Tom Tromey <tromey@adacore.com>
1035
1036 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1037
1038 2020-10-09 Tom Tromey <tromey@adacore.com>
1039
1040 * ada-lang.h (ada_encode): Return std::string.
1041 * ada-lang.c (ada_encode_1): Return std::string.
1042 (ada_encode): Likewise.
1043 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1044 Update.
1045 * ada-exp.y (block_lookup, write_var_or_type): Update.
1046
1047 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1048
1049 PR exp/26714
1050 * printcmd.c (print_formatted): Handle void results as
1051 unformatted prints.
1052
1053 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1054
1055 * arch/aarch32.c (aarch32_create_target_description): Release the
1056 target_desc_up as late as possible.
1057 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1058 * arch/amd64.c (amd64_create_target_description): Likewise.
1059 * arch/arc.c (arc_create_target_description): Return a
1060 target_desc_up, don't release it.
1061 * arch/arc.h (arc_create_target_description): Update declaration.
1062 (arc_lookup_target_description): Move target_desc_up into the
1063 cache, and return a borrowed pointer.
1064 * arch/arm.c (arm_create_target_description): Release the
1065 target_desc_up as late as possible.
1066 * arch/i386.c (i386_create_target_description): Likewise.
1067 * arch/riscv.h (riscv_create_target_description): Update
1068 declaration to match definition.
1069 * arch/tic6x.c (tic6x_create_target_description): Release the
1070 target_desc_up as late as possible.
1071
1072 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1073
1074 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1075 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1076
1077 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1078
1079 * source.c (directory_command): Notify observers that "directories"
1080 parameter has changed.
1081
1082 2020-10-08 Tom Tromey <tom@tromey.com>
1083
1084 * cli/cli-cmds.c (print_disassembly): Style function name and
1085 addresses. Add _() wrappers.
1086
1087 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1088
1089 * NEWS: Mention ARC support in GDBserver.
1090
1091 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1092
1093 * arch/aarch32.c (aarch32_create_target_description): Release
1094 unique_ptr returned from allocate_target_description.
1095 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1096 * arch/amd64.c (amd64_create_target_description): Likewise.
1097 * arch/arc.c (arc_create_target_description): Likewise.
1098 * arch/arm.c (arm_create_target_description): Likewise.
1099 * arch/i386.c (i386_create_target_description): Likewise.
1100 * arch/riscv.c (riscv_create_target_description): Update return
1101 type. Handle allocate_target_description returning a unique_ptr.
1102 (riscv_lookup_target_description): Update to handle unique_ptr.
1103 * arch/tic6x.c (tic6x_create_target_description): Release
1104 unique_ptr returned from allocate_target_description.
1105 * features/microblaze-with-stack-protect.c: Regenerate.
1106 * features/microblaze.c: Regenerate.
1107 * features/mips-dsp-linux.c: Regenerate.
1108 * features/mips-linux.c: Regenerate.
1109 * features/mips64-dsp-linux.c: Regenerate.
1110 * features/mips64-linux.c: Regenerate.
1111 * features/nds32.c: Regenerate.
1112 * features/nios2.c: Regenerate.
1113 * features/or1k.c: Regenerate.
1114 * features/rs6000/powerpc-32.c: Regenerate.
1115 * features/rs6000/powerpc-32l.c: Regenerate.
1116 * features/rs6000/powerpc-403.c: Regenerate.
1117 * features/rs6000/powerpc-403gc.c: Regenerate.
1118 * features/rs6000/powerpc-405.c: Regenerate.
1119 * features/rs6000/powerpc-505.c: Regenerate.
1120 * features/rs6000/powerpc-601.c: Regenerate.
1121 * features/rs6000/powerpc-602.c: Regenerate.
1122 * features/rs6000/powerpc-603.c: Regenerate.
1123 * features/rs6000/powerpc-604.c: Regenerate.
1124 * features/rs6000/powerpc-64.c: Regenerate.
1125 * features/rs6000/powerpc-64l.c: Regenerate.
1126 * features/rs6000/powerpc-7400.c: Regenerate.
1127 * features/rs6000/powerpc-750.c: Regenerate.
1128 * features/rs6000/powerpc-860.c: Regenerate.
1129 * features/rs6000/powerpc-altivec32.c: Regenerate.
1130 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1131 * features/rs6000/powerpc-altivec64.c: Regenerate.
1132 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1133 * features/rs6000/powerpc-e500.c: Regenerate.
1134 * features/rs6000/powerpc-e500l.c: Regenerate.
1135 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1136 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1137 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1138 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1139 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1140 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1141 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1142 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1143 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1144 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1145 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1146 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1147 * features/rs6000/powerpc-vsx32.c: Regenerate.
1148 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1149 * features/rs6000/powerpc-vsx64.c: Regenerate.
1150 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1151 * features/rs6000/rs6000.c: Regenerate.
1152 * features/rx.c: Regenerate.
1153 * features/s390-gs-linux64.c: Regenerate.
1154 * features/s390-linux32.c: Regenerate.
1155 * features/s390-linux32v1.c: Regenerate.
1156 * features/s390-linux32v2.c: Regenerate.
1157 * features/s390-linux64.c: Regenerate.
1158 * features/s390-linux64v1.c: Regenerate.
1159 * features/s390-linux64v2.c: Regenerate.
1160 * features/s390-te-linux64.c: Regenerate.
1161 * features/s390-tevx-linux64.c: Regenerate.
1162 * features/s390-vx-linux64.c: Regenerate.
1163 * features/s390x-gs-linux64.c: Regenerate.
1164 * features/s390x-linux64.c: Regenerate.
1165 * features/s390x-linux64v1.c: Regenerate.
1166 * features/s390x-linux64v2.c: Regenerate.
1167 * features/s390x-te-linux64.c: Regenerate.
1168 * features/s390x-tevx-linux64.c: Regenerate.
1169 * features/s390x-vx-linux64.c: Regenerate.
1170 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1171 from allocate_target_description.
1172 * target-descriptions.c (allocate_target_description): Update
1173 return type.
1174 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1175 allocate_target_description.
1176
1177 2020-10-07 Tom Tromey <tromey@adacore.com>
1178
1179 * unittests/search-memory-selftests.c: New file.
1180 * Makefile.in (SELFTESTS_SRCS): Add
1181 unittests/search-memory-selftests.c.
1182
1183 2020-10-07 Tom Tromey <tromey@adacore.com>
1184
1185 PR gdb/16930:
1186 * findcmd.c (_initialize_mem_search): Mention that the range is
1187 inclusive.
1188
1189 2020-10-07 Tom Tromey <tromey@adacore.com>
1190
1191 * target.h (simple_search_memory): Don't declare.
1192 * target.c (simple_search_memory): Move to gdbsupport.
1193 (default_search_memory): Update.
1194 * remote.c (remote_target::search_memory): Update.
1195
1196 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1197
1198 * Makefile.in (COMPILE): Add CXXFLAGS.
1199 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1200 (check-headers): Add CXXFLAGS.
1201
1202 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1203
1204 * arc-linux-tdep.h: New file.
1205 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1206 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1207 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1208 arc_linux_gregset, arc_linux_v2_regset,
1209 arc_linux_iterate_over_regset_sections,
1210 arc_linux_core_read_description): Implement.
1211 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1212 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1213 (arc_gdbarch_features_create): Add.
1214 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1215
1216 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1217
1218 * arch/arc.h: Rename "arc_gdbarch_features" to
1219 "arc_arch_features".
1220 * arc-tdep.h: Likewise.
1221 * arc-tdep.c: Likewise.
1222
1223 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1224
1225 * infcmd.c (attach_command): Remove the redundant call to
1226 `clear_proceed_status`.
1227
1228 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1229
1230 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1231
1232 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1233
1234 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1235 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1236 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1237
1238 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1239
1240 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1241 (_initialize_break_catch_sig): Don't allocate array.
1242
1243 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * symtab.c (find_pc_line): Return unmapped addresses when the
1246 requested address is also unmapped.
1247
1248 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1249
1250 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1251 tui/tui-out.h.
1252
1253 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1254
1255 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1256 type::is_vector instead of TYPE_VECTOR.
1257
1258 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1259
1260 * auto-load.c (auto_load_objfile_script_1): Don't use
1261 debugfile_holder as temporary variable when stripping drive
1262 letter.
1263
1264 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1265
1266 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1267 Add TYPE_CODE_COMPLEX.
1268 (amd64_windows_return_value): Fix types returned via XMM0.
1269
1270 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1271
1272 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1273 AArch64/ARM maintainers.
1274
1275 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1276
1277 * NEWS: Mention set/show debug event-loop.
1278
1279 2020-10-02 Tom Tromey <tromey@adacore.com>
1280
1281 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1282 REG_EXTENDED.
1283
1284 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1285
1286 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1287 * procfs.c (procfs_inferior_created): Remove.
1288 (_initialize_procfs): Don't register procfs_inferior_created.
1289
1290 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1291
1292 * async-event.c (invoke_async_signal_handlers): Add debug
1293 print.
1294 (check_async_event_handlers): Likewise.
1295 * event-top.c (show_debug_event_loop): New function.
1296 (_initialize_event_top): Register "set debug event-loop"
1297 setting.
1298
1299 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1300
1301 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1302 * debug.h: Remove.
1303 * infrun.c: Include gdbsupport/common-debug.h.
1304 * linux-nat.c: Likewise.
1305
1306 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1307
1308 * async-event.h (create_async_signal_handler): Add name
1309 parameter.
1310 (create_async_event_handler): Likewise.
1311 * async-event.c (struct async_signal_handler) <name>: New field.
1312 (struct async_event_handler) <name>: New field.
1313 (create_async_signal_handler): Assign name.
1314 (create_async_event_handler): Assign name.
1315 * event-top.c (async_init_signals): Pass name when creating
1316 handler.
1317 * infrun.c (_initialize_infrun): Likewise.
1318 * record-btrace.c (record_btrace_push_target): Likewise.
1319 * record-full.c (record_full_open): Likewise.
1320 * remote-notif.c (remote_notif_state_allocate): Likewise.
1321 * remote.c (remote_target::open_1): Likewise.
1322 * tui/tui-win.c (tui_initialize_win): Likewise.
1323
1324 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1325
1326 * async-event.c (initialize_async_signal_handlers): Pass name to
1327 add_file_handler
1328 * event-top.c (ui_register_input_event_handler): Likewise.
1329 * linux-nat.c (linux_nat_target::async): Likewise.
1330 * run-on-main-thread.c (_initialize_run_on_main_thread):
1331 Likewise
1332 * ser-base.c (reschedule): Likewise.
1333 (ser_base_async): Likewise.
1334 * tui/tui-io.c: Likewise.
1335 * top.h (struct ui) <num>: New field.
1336 * top.c (highest_ui_num): New variable.
1337 (ui::ui): Initialize num.
1338
1339 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1340
1341 * observable.h <inferior_created>: Remove parameters. Update all
1342 listeners.
1343 * inferior.h (post_create_inferior): Remove target parameter.
1344 Update all callers.
1345
1346 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1347
1348 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1349 and DW_MACRO_undef_strx.
1350 (dwarf_decode_macros): Likewise
1351 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1352 which is the value of DW_AT_str_offsets_base.
1353 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1354 str_offsets_base.
1355
1356 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1357
1358 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1359
1360 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1361
1362 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1363 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1364
1365 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1366
1367 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1368
1369 2020-09-30 Tom de Vries <tdevries@suse.de>
1370
1371 PR symtab/26683
1372 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1373
1374 2020-09-30 Tom Tromey <tromey@adacore.com>
1375
1376 * dwarf2/read.c (handle_variant): Use constant_value.
1377
1378 2020-09-29 Tom Tromey <tom@tromey.com>
1379
1380 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1381 (read_file_scope, dwarf2_get_pc_bounds)
1382 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1383 (read_structure_type, handle_struct_member_die)
1384 (read_enumeration_type, read_array_type, read_set_type)
1385 (read_tag_pointer_type, read_tag_reference_type)
1386 (read_subroutine_type, read_base_type, read_subrange_type)
1387 (read_full_die_1, partial_die_info::read)
1388 (partial_die_info::read, by, new_symbol)
1389 (dwarf2_const_value_data, dwarf2_const_value_attr)
1390 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1391 (prepare_one_comp_unit): Update.
1392 * dwarf2/attribute.h (DW_UNSND): Remove.
1393
1394 2020-09-29 Tom Tromey <tom@tromey.com>
1395
1396 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1397 (read_subroutine_type, partial_die_info::read)
1398 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1399 (dwarf2_add_member_fn): Update.
1400 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1401 * dwarf2/attribute.c (attribute::as_boolean): New method.
1402
1403 2020-09-29 Tom Tromey <tom@tromey.com>
1404
1405 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1406 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1407 method.
1408 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1409
1410 2020-09-29 Tom Tromey <tom@tromey.com>
1411
1412 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1413 the attribute's form.
1414
1415 2020-09-29 Tom Tromey <tom@tromey.com>
1416
1417 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1418 (dwarf2_add_member_fn): Update.
1419 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1420 * dwarf2/attribute.c (attribute::defaulted): New method, from
1421 is_valid_DW_AT_defaulted.
1422
1423 2020-09-29 Tom Tromey <tom@tromey.com>
1424
1425 * dwarf2/read.c (dw2_get_file_names_reader)
1426 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1427 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1428 (dwarf2_symbol_mark_computed): Use as_unsigned.
1429 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1430 method.
1431 <form_is_section_offset>: Update comment.
1432
1433 2020-09-29 Tom Tromey <tom@tromey.com>
1434
1435 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1436 dwarf2_default_access_attribute. Look up attribute.
1437 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1438 Update.
1439
1440 2020-09-29 Tom Tromey <tom@tromey.com>
1441
1442 * dwarf2/read.c (skip_one_die): Update.
1443 (read_full_die_1): Change how reprocessing is done.
1444 (partial_die_info::read): Update.
1445 (read_attribute_value): Remove need_reprocess parameter.
1446 (read_attribute): Likewise.
1447 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1448 New method.
1449
1450 2020-09-29 Tom Tromey <tom@tromey.com>
1451
1452 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1453 (dwarf2_const_value_attr, dump_die_shallow)
1454 (dwarf2_fetch_constant_bytes): Update.
1455 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1456 comment.
1457 <set_address>: New method.
1458 (DW_ADDR): Remove.
1459 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1460 (attribute::as_string, attribute::as_address): Add assert.
1461
1462 2020-09-29 Tom Tromey <tom@tromey.com>
1463
1464 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1465 (read_attribute_reprocess, read_attribute_value): Update.
1466 (read_attribute): Clear requires_reprocessing.
1467 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1468 form_requires_reprocessing>: New methods.
1469 <string_init>: Clear requires_reprocessing.
1470 <set_unsigned_reprocess>: New method.
1471 <name>: Shrink by one bit.
1472 <requires_reprocessing>: New member.
1473 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1474 method.
1475
1476 2020-09-29 Tom Tromey <tom@tromey.com>
1477
1478 * dwarf2/read.c (read_attribute_value): Update.
1479 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1480 set_unsigned>: New methods.
1481 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1482
1483 2020-09-29 Tom Tromey <tom@tromey.com>
1484
1485 * dwarf2/read.c (get_alignment, read_array_order)
1486 (read_attribute_value, dwarf2_const_value_attr)
1487 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1488 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1489 New methods.
1490 (DW_SND): Remove.
1491
1492 2020-09-29 Tom Tromey <tom@tromey.com>
1493
1494 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1495 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1496 Update.
1497 * dwarf2/attribute.h (struct attribute) <as_signature,
1498 set_signature>: New methods.
1499 (DW_SIGNATURE): Remove.
1500
1501 2020-09-29 Tom Tromey <tom@tromey.com>
1502
1503 * dwarf2/read.c (read_call_site_scope)
1504 (handle_data_member_location, dwarf2_add_member_fn)
1505 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1506 (partial_die_info::read, read_attribute_value)
1507 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1508 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1509 (dwarf2_symbol_mark_computed): Update.
1510 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1511 methods.
1512 (DW_BLOCK): Remove.
1513 * dwarf2/attribute.c (attribute::form_is_block): Add
1514 DW_FORM_data16.
1515
1516 2020-09-29 Tom Tromey <tom@tromey.com>
1517
1518 * dwarf2/read.c (read_cutu_die_from_dwo)
1519 (read_attribute_reprocess, read_attribute_value, read_attribute)
1520 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1521 (dwarf2_fetch_constant_bytes): Update.
1522 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1523 <set_string_noncanonical, set_string_canonical>: New methods.
1524 <string_is_canonical>: Update comment.
1525 <canonical_string_p>: Add assert.
1526 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1527 * dwarf2/attribute.c (attribute::form_is_string): New method.
1528 (attribute::string): Use it.
1529
1530 2020-09-29 Tom Tromey <tom@tromey.com>
1531
1532 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1533 (dump_die_shallow): Use canonical_string_p.
1534 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1535 method.
1536
1537 2020-09-29 Tom Tromey <tom@tromey.com>
1538
1539 * dwarf2/read.c (partial_die_info::read)
1540 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1541 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1542 attribute::as_string.
1543
1544 2020-09-29 Tom Tromey <tom@tromey.com>
1545
1546 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1547 DW_ADDR.
1548 (attribute::string): Don't use DW_STRING.
1549 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1550 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1551
1552 2020-09-29 Tom Tromey <tom@tromey.com>
1553
1554 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1555 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1556 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1557 * dwarf2/attribute.h (struct attribute): Rename methods.
1558 * dwarf2/attribute.c (attribute::as_address): Rename from
1559 value_as_address.
1560 (attribute::as_string): Rename from value_as_string.
1561
1562 2020-09-29 Tom Tromey <tom@tromey.com>
1563
1564 * dwarf2/read.c (partial_die_info::read) <case
1565 DW_AT_linkage_name>: Use value_as_string.
1566 (dwarf2_string_attr): Use value_as_string.
1567 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1568 method.
1569 * dwarf2/attribute.c (attribute::value_as_string): New method.
1570
1571 2020-09-29 Pedro Alves <pedro@palves.net>
1572
1573 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1574 defined before using '#pragma GCC diagnostic' instead of checking
1575 __clang__.
1576
1577 2020-09-28 Tom Tromey <tom@tromey.com>
1578
1579 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1580 (handle_signal_stop): Update.
1581 * procfs.c (procfs_target::insert_watchpoint): Update.
1582 * target.h (target_have_steppable_watchpoint): Now a function.
1583
1584 2020-09-28 Tom Tromey <tom@tromey.com>
1585
1586 * infrun.c (set_schedlock_func): Update.
1587 * target.h (target_can_lock_scheduler): Now a function.
1588
1589 2020-09-28 Tom Tromey <tom@tromey.com>
1590
1591 * inferior.h (class inferior) <has_execution>: Update.
1592 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1593 * valops.c (find_function_in_inferior)
1594 (value_allocate_space_in_inferior): Update.
1595 * top.c (kill_or_detach): Update.
1596 * target.c (target_preopen, set_target_permissions): Update.
1597 (target_has_execution_current): Remove.
1598 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1599 Update.
1600 * solib.c (update_solib_list, reload_shared_libraries): Update.
1601 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1602 * solib-dsbt.c (enable_break): Update.
1603 * score-tdep.c (score7_fetch_inst): Update.
1604 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1605 Update.
1606 * remote.c (remote_target::start_remote)
1607 (remote_target::remote_check_symbols, remote_target::open_1)
1608 (remote_target::remote_detach_1, remote_target::verify_memory)
1609 (remote_target::xfer_partial, remote_target::read_description)
1610 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1611 * record-full.c (record_full_open_1): Update.
1612 * record-btrace.c (record_btrace_target_open): Update.
1613 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1614 (value_nsstring): Update.
1615 * linux-thread-db.c (add_thread_db_info)
1616 (thread_db_find_new_threads_silently, check_thread_db_callback)
1617 (try_thread_db_load_1, record_thread): Update.
1618 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1619 Update.
1620 * linux-fork.c (checkpoint_command): Update.
1621 * infrun.c (set_non_stop, set_observer_mode)
1622 (check_multi_target_resumption, for_each_just_stopped_thread)
1623 (maybe_remove_breakpoints, normal_stop)
1624 (class infcall_suspend_state): Update.
1625 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1626 (info_program_command, attach_command): Update.
1627 * infcall.c (call_function_by_hand_dummy): Update.
1628 * inf-loop.c (inferior_event_handler): Update.
1629 * gcore.c (gcore_command, derive_heap_segment): Update.
1630 * exec.c (exec_file_command): Update.
1631 * eval.c (evaluate_subexp): Update.
1632 * compile/compile.c (compile_to_object): Update.
1633 * cli/cli-dump.c (restore_command): Update.
1634 * breakpoint.c (update_watchpoint)
1635 (update_inserted_breakpoint_locations)
1636 (insert_breakpoint_locations, get_bpstat_thread): Update.
1637 * target.h (target_has_execution): Remove macro.
1638 (target_has_execution_current): Don't declare.
1639 (target_has_execution): Rename from target_has_execution_1. Add
1640 argument default.
1641
1642 2020-09-28 Tom Tromey <tom@tromey.com>
1643
1644 * mi/mi-main.c (exec_reverse_continue)
1645 (mi_cmd_list_target_features): Update.
1646 * infrun.c (set_exec_direction_func): Update.
1647 * target.c (default_execution_direction): Update.
1648 * reverse.c (exec_reverse_once): Update.
1649 * target.h (target_can_execute_reverse): Now a function.
1650
1651 2020-09-28 Tom Tromey <tom@tromey.com>
1652
1653 * tui/tui-regs.c (tui_get_register)
1654 (tui_data_window::show_registers): Update.
1655 * thread.c (scoped_restore_current_thread::restore)
1656 (scoped_restore_current_thread::scoped_restore_current_thread):
1657 Update.
1658 * regcache-dump.c (regcache_print): Update.
1659 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1660 Update.
1661 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1662 * mep-tdep.c (current_me_module, current_options): Update.
1663 * linux-thread-db.c (thread_db_load): Update.
1664 * infcmd.c (registers_info, info_vector_command)
1665 (info_float_command): Update.
1666 * ia64-tdep.c (ia64_frame_prev_register)
1667 (ia64_sigtramp_frame_prev_register): Update.
1668 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1669 * gcore.c (derive_stack_segment): Update.
1670 * frame.c (get_current_frame, has_stack_frames): Update.
1671 * findvar.c (language_defn::read_var_value): Update.
1672 * arm-tdep.c (arm_pc_is_thumb): Update.
1673 * target.c (target_has_registers): Rename from
1674 target_has_registers_1.
1675 * target.h (target_has_registers): Remove macro.
1676 (target_has_registers): Rename from target_has_registers_1.
1677
1678 2020-09-28 Tom Tromey <tom@tromey.com>
1679
1680 * windows-tdep.c (tlb_make_value): Update.
1681 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1682 * thread.c (scoped_restore_current_thread::restore)
1683 (scoped_restore_current_thread::scoped_restore_current_thread)
1684 (thread_command): Update.
1685 * stack.c (backtrace_command_1, frame_apply_level_command)
1686 (frame_apply_all_command, frame_apply_command): Update.
1687 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1688 Update.
1689 * gcore.c (derive_stack_segment): Update.
1690 * frame.c (get_current_frame, has_stack_frames): Update.
1691 * auxv.c (info_auxv_command): Update.
1692 * ada-tasks.c (ada_build_task_list): Update.
1693 * target.c (target_has_stack): Rename from target_has_stack_1.
1694 * target.h (target_has_stack): Remove macro.
1695 (target_has_stack): Rename from target_has_stack_1.
1696
1697 2020-09-28 Tom Tromey <tom@tromey.com>
1698
1699 * target.c (target_has_memory): Rename from target_has_memory_1.
1700 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1701 * thread.c (scoped_restore_current_thread::restore)
1702 (scoped_restore_current_thread::scoped_restore_current_thread):
1703 Update.
1704 * frame.c (get_current_frame, has_stack_frames): Update.
1705 * target.h (target_has_memory): Remove macro.
1706 (target_has_memory): Rename from target_has_memory_1.
1707
1708 2020-09-28 Tom Tromey <tom@tromey.com>
1709
1710 * target.c (target_has_all_memory_1): Remove.
1711 * target.h (target_has_all_memory): Remove define.
1712 (target_has_all_memory_1): Don't declare.
1713
1714 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1715
1716 * ser-base.c: Adjust comments formatting.
1717
1718 2020-09-27 Tom Tromey <tom@tromey.com>
1719
1720 PR tui/25342:
1721 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1722
1723 2020-09-27 Tom Tromey <tom@tromey.com>
1724
1725 PR tui/25342:
1726 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1727
1728 2020-09-27 Tom Tromey <tom@tromey.com>
1729
1730 * unittests/tui-selftests.c: Update.
1731 * tui/tui-winsource.h (struct tui_source_window_base)
1732 <extra_margin, show_line_number, refresh_pad>: New methods.
1733 <m_max_length, m_pad>: New members.
1734 (tui_copy_source_line): Update.
1735 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1736 first_col, line_width, ndigits parameters. Add length.
1737 (tui_source_window_base::show_source_line): Write to pad. Line
1738 number now 0-based.
1739 (tui_source_window_base::refresh_pad): New method.
1740 (tui_source_window_base::show_source_content): Write to pad. Call
1741 refresh_pad.
1742 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1743 not refill.
1744 (tui_source_window_base::update_exec_info): Call
1745 show_line_number.
1746 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1747 method.
1748 <m_digits>: New member.
1749 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1750 and m_max_length.
1751 (tui_source_window::show_line_number): New method.
1752 * tui/tui-io.h (tui_puts): Fix comment.
1753 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1754 m_max_length.
1755
1756 2020-09-27 Tom Tromey <tom@tromey.com>
1757
1758 * tui/tui-winsource.c
1759 (tui_source_window_base::set_is_exec_point_at): Don't call
1760 show_source_line.
1761
1762 2020-09-27 Tom Tromey <tom@tromey.com>
1763
1764 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1765 method.
1766 <erase>: Update.
1767 <cursor_x, cursor_y>: Remove.
1768 <m_inner_window>: New member.
1769 (tui_py_window::rerender): Create inner window.
1770 (tui_py_window::output): Write to inner window.
1771
1772 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1773
1774 PR python/26586
1775 * cli/cli-script.c (execute_control_commands): don't set
1776 instream to nullptr here as this breaks the from_tty argument
1777 to gdb.execute in Python.
1778 (execute_user_command): set instream to nullptr here instead.
1779
1780 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1781
1782 * infrun.h (infrun_debug_printf): Fix formatting.
1783 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1784
1785 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1786
1787 * compile/compile-object-load.h (struct munmap_list): Add
1788 explicitly-defined move constructor.
1789
1790 2020-09-24 Tom Tromey <tromey@adacore.com>
1791
1792 PR tui/26638:
1793 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1794 method.
1795 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1796 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1797 (tui_prev_win): Rewrite.
1798
1799 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1800
1801 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1802 in WOW64 processes as SIGINT.
1803 * nat/windows-nat.h: Make wow64_process a shared variable.
1804 * windows-nat.c: Remove static wow64_process variable.
1805
1806 2020-09-23 Tom Tromey <tom@tromey.com>
1807
1808 PR symtab/25470:
1809 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1810 offset and bit size.
1811 * printcmd.c (print_scalar_formatted): Handle zero-length
1812 integer.
1813 (print_scalar_formatted): Use bit_size_differs_p.
1814 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1815 constant.
1816 (union type_specific): <int_stuff>: New member.
1817 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1818 methods.
1819 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1820 TYPE_SPECIFIC_FIELD.
1821 (recursive_dump_type, copy_type_recursive): Update.
1822 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1823 DW_AT_data_bit_offset.
1824
1825 2020-09-23 Tom Tromey <tom@tromey.com>
1826
1827 * utils.h (class gdb_argv): Add move operators.
1828 <append>: New methods.
1829 * compile/compile.c (build_argc_argv): Remove.
1830 (compile_args_argc): Remove.
1831 (compile_args_argv): Change type.
1832 (set_compile_args): Simplify.
1833 (append_args): Remove.
1834 (filter_args): Remove argcp parameter.
1835 (get_args): Return gdb_argv. Simplify.
1836 (compile_to_object): Update.
1837
1838 2020-09-23 Tom Tromey <tom@tromey.com>
1839
1840 * compile/compile-object-run.c (do_module_cleanup)
1841 <~do_module_cleanup> :Remove.
1842 (do_module_cleanup): Update.
1843 * compile/compile-object-load.h (struct munmap_list): Add move
1844 assignment operator.
1845 <source_file>: Now a std::string.
1846 <munmap_list>: Rename. No longer a pointer.
1847 * compile/compile-object-load.c (struct setup_sections_data): Add
1848 constructor.
1849 <setup_one_section>: Declare.
1850 <munmap_list>: Move earlier.
1851 <m_bfd>: New member.
1852 <m_last_size, m_last_section_first, m_last_prot,
1853 m_last_max_alignment>: Rename, add initializers where needed.
1854 (setup_sections_data::setup_one_section): Rename from
1855 setup_sections. Update.
1856 (compile_object_load): Update. Don't use bfd_map_over_sections.
1857
1858 2020-09-23 Tom Tromey <tom@tromey.com>
1859
1860 * compile/compile-object-run.c (struct do_module_cleanup): Add
1861 parameters to constructor. Update destructor.
1862 <source_file, scope, scope_data, out_value_type, out_value_addr,
1863 munmap_list_head, objfile_name_string>: Remove.
1864 <module>: New member.
1865 (do_module_cleanup): Update.
1866 (compile_object_run): Update.
1867
1868 2020-09-23 Tom Tromey <tom@tromey.com>
1869
1870 * compile/compile.c (eval_compile_command): Update.
1871 * compile/compile-object-run.h (compile_object_run): Take a
1872 compile_module_up.
1873 * compile/compile-object-run.c (compile_object_run): Take a
1874 compile_module_up.
1875 * compile/compile-object-load.h (struct compile_module): Add
1876 constructor, destructor.
1877 (compile_module_up): New typedef.
1878 (compile_object_load): Return compile_object_up.
1879 * compile/compile-object-load.c (compile_object_load): Return
1880 compile_module_up.
1881
1882 2020-09-23 Tom Tromey <tom@tromey.com>
1883
1884 * compile/compile-object-run.c (struct do_module_cleanup): Add
1885 constructor, destructor.
1886 <objfile_name_string>: Don't use struct hack.
1887 (do_module_cleanup): Use delete.
1888 (compile_object_run): Use new.
1889
1890 2020-09-23 Tom Tromey <tom@tromey.com>
1891
1892 * compile/compile-cplus-types.c
1893 (compile_cplus_convert_struct_or_union): Use std::vector.
1894 (compile_cplus_convert_func): Likewise.
1895 * compile/compile-c-types.c (convert_func): Use std::vector.
1896
1897 2020-09-21 Tom Tromey <tromey@adacore.com>
1898
1899 * sparc-tdep.c (sparc32_skip_prologue): Use
1900 skip_prologue_using_sal.
1901
1902 2020-09-19 Tom Tromey <tom@tromey.com>
1903
1904 * symfile.c (add_section_size_callback): Remove.
1905 (load_one_section): Rename from load_section_callback. Change
1906 parameters.
1907 (generic_load): Use foreach.
1908
1909 2020-09-19 Tom Tromey <tom@tromey.com>
1910
1911 * exec.c (add_to_section_table): Remove.
1912 (build_section_table): Use foreach.
1913
1914 2020-09-19 Tom Tromey <tom@tromey.com>
1915
1916 * elfread.c (elf_locate_sections): Change parameters.
1917 (elf_symfile_read): Use foreach.
1918
1919 2020-09-19 Tom Tromey <tom@tromey.com>
1920
1921 * cli/cli-dump.c (struct callback_data): Remove.
1922 (restore_one_section): Rename from restore_section_callback.
1923 Change parameters.
1924 (restore_binary_file): Change parameters.
1925 (restore_command): Use foreach.
1926
1927 2020-09-19 Tom Tromey <tom@tromey.com>
1928
1929 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1930 (gcore_copy_callback): Likewise.
1931 (gcore_memory_sections): Use foreach.
1932
1933 2020-09-19 Tom Tromey <tom@tromey.com>
1934
1935 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1936 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1937 parameters.
1938 (generic_elf_osabi_sniffer): Use foreach.
1939 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1940 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1941
1942 2020-09-19 Tom Tromey <tom@tromey.com>
1943
1944 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1945 (dwarf2_get_dwz_file): Use foreach.
1946 (dwarf2_locate_dwo_sections): Change parameters.
1947 (open_and_init_dwo_file): Use foreach.
1948 (dwarf2_locate_common_dwp_sections): Change parameters.
1949 (open_and_init_dwp_file): Use foreach.
1950
1951 2020-09-19 Tom Tromey <tom@tromey.com>
1952
1953 * symfile.h: (find_lowest_section): Don't declare.
1954 * symfile.c (find_lowest_section): Now static. Change
1955 parameters.
1956 (struct place_section_arg): Remove.
1957 (place_section): Change parameters.
1958 (addr_info_make_relative): Use foreach.
1959 (symfile_dummy_outputs): Remove.
1960 (default_symfile_relocate): Use foreach.
1961
1962 2020-09-19 Tom Tromey <tom@tromey.com>
1963
1964 * objfiles.c (add_to_objfile_sections): Rename from
1965 add_to_objfile_sections_full.
1966 (add_to_objfile_sections): Remove.
1967 (build_objfile_section_table): Use foreach.
1968
1969 2020-09-19 Tom Tromey <tom@tromey.com>
1970
1971 * stap-probe.c (get_stap_base_address_1): Remove.
1972 (get_stap_base_address): Use foreach.
1973
1974 2020-09-19 Tom Tromey <tom@tromey.com>
1975
1976 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1977 parameters.
1978 (gdb_bfd_close_or_warn): Use foreach.
1979
1980 2020-09-19 Tom Tromey <tom@tromey.com>
1981
1982 * corelow.c (add_to_thread_list): Change parameters.
1983 (core_target_open): Use foreach.
1984
1985 2020-09-19 Tom Tromey <tom@tromey.com>
1986
1987 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1988 existing function.
1989
1990 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1991
1992 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1993 for arrays.
1994
1995 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1996
1997 * eval.c: Remove 'f-lang.h' include.
1998 (value_f90_subarray): Moved to f-lang.c.
1999 (eval_call): Renamed to...
2000 (evaluate_subexp_do_call): ...this, is no longer static, header
2001 comment moved into header file.
2002 (evaluate_funcall): Update call to eval_call.
2003 (skip_undetermined_arglist): Moved to f-lang.c.
2004 (fortran_value_subarray): Likewise.
2005 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2006 moved to evaluate_subexp_f.
2007 (calc_f77_array_dims): Moved to f-lang.c
2008 * expprint.c (print_subexp_funcall): New function.
2009 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2010 moved to print_subexp_f, OP_FUNCALL uses new function.
2011 (dump_subexp_body_funcall): New function.
2012 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2013 moved to dump_subexp_f, OP_FUNCALL uses new function.
2014 * expression.h (evaluate_subexp_do_call): Declare.
2015 * f-lang.c (value_f90_subarray): Moved from eval.c.
2016 (skip_undetermined_arglist): Likewise.
2017 (calc_f77_array_dims): Likewise.
2018 (fortran_value_subarray): Likewise.
2019 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2020 (operator_length_f): Likewise.
2021 (print_subexp_f): Likewise.
2022 (dump_subexp_body_f): Likewise.
2023 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2024 declaration of this operation to here.
2025 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2026 support moved to operator_length_f.
2027 * parser-defs.h (dump_subexp_body_funcall): Declare.
2028 (print_subexp_funcall): Declare.
2029 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2030 fortran-operator.def.
2031
2032 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2033
2034 * eval.c (fortran_value_subarray): New function, content is taken
2035 from...
2036 (evaluate_subexp_standard): ...here, in two places. Now arrays
2037 and strings both call the new function.
2038 (calc_f77_array_dims): Add header comment, handle strings.
2039
2040 2020-09-18 Victor Collod <vcollod@nvidia.com>
2041
2042 PR gdb/26635
2043 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2044 (i386_analyze_prologue): Call i386_skip_endbr.
2045
2046 2020-09-18 Tom Tromey <tromey@adacore.com>
2047
2048 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2049 (windows_nat_target::wait): Update.
2050 * target/wait.h (enum target_wait_flag): New. Use
2051 DEF_ENUM_FLAGS_TYPE.
2052 * target/target.h (target_wait): Change type of options.
2053 * target.h (target_options_to_string, default_target_wait):
2054 Update.
2055 (struct target_ops) <wait>: Change type of options.
2056 * target.c (target_wait, default_target_wait, do_option): Change
2057 type of "options".
2058 (target_options_to_string): Likewise.
2059 * target-delegates.c: Rebuild.
2060 * target-debug.h (target_debug_print_target_wait_flags): Rename
2061 from target_debug_print_options.
2062 * sol-thread.c (class sol_thread_target) <wait>: Update.
2063 (sol_thread_target::wait): Update.
2064 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2065 (rs6000_nat_target::wait): Update.
2066 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2067 Update.
2068 (remote_target::wait_ns, remote_target::wait_as): Change type of
2069 "options".
2070 (remote_target::wait): Update.
2071 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2072 (gdbsim_target::wait): Update.
2073 * record-full.c (class record_full_base_target) <wait>: Update.
2074 (record_full_wait_1): Change type of "options".
2075 (record_full_base_target::wait): Update.
2076 * record-btrace.c (class record_btrace_target) <wait>: Update.
2077 (record_btrace_target::wait): Update.
2078 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2079 Update.
2080 (ravenscar_thread_target::wait): Update.
2081 * procfs.c (class procfs_target) <wait>: Update.
2082 (procfs_target::wait): Update.
2083 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2084 * obsd-nat.c (obsd_nat_target::wait): Update.
2085 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2086 (nto_procfs_target::wait): Update.
2087 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2088 * nbsd-nat.c (nbsd_wait): Change type of "options".
2089 (nbsd_nat_target::wait): Update.
2090 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2091 (thread_db_target::wait): Update.
2092 * linux-nat.h (class linux_nat_target) <wait>: Update.
2093 * linux-nat.c (linux_nat_target::wait): Update.
2094 (linux_nat_wait_1): Update.
2095 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2096 "options".
2097 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2098 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2099 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2100 (go32_nat_target::wait): Update.
2101 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2102 * gnu-nat.c (gnu_nat_target::wait): Update.
2103 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2104 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2105 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2106 * darwin-nat.c (darwin_nat_target::wait): Update.
2107 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2108 (bsd_uthread_target::wait): Update.
2109 * aix-thread.c (class aix_thread_target) <wait>: Update.
2110 (aix_thread_target::wait): Update.
2111
2112 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2113
2114 * compile/compile-object-run.c (create_copied_type_recursive): New
2115 function.
2116 (compile_object_run): Use new function.
2117
2118 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2119
2120 * NEWS: Mention x86_64 Cygwin core file support.
2121
2122 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2123
2124 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2125 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2126
2127 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2128
2129 * windows-tdep.h: Add prototypes.
2130 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2131 (i386_windows_core_pid_to_str): Move and rename ...
2132 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2133 (windows_core_pid_to_str): ... and here.
2134 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2135
2136 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2137 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2138 (amd64_windows_init_abi_common): ... and register.
2139
2140 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2141
2142 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2143 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2144
2145 2020-09-18 Pedro Alves <pedro@palves.net>
2146
2147 PR gdb/26631
2148 * thread.c (thread_find_command): Switch inferior before calling
2149 target methods.
2150
2151 2020-09-17 Tom Tromey <tromey@adacore.com>
2152
2153 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2154 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2155 (tdesc_arch_data_up): New typedef.
2156 (tdesc_use_registers, tdesc_data_alloc): Update.
2157 (tdesc_data_cleanup): Don't declare.
2158 * target-descriptions.c (tdesc_data_alloc): Return a
2159 tdesc_arch_data_up.
2160 (tdesc_arch_data_deleter::operator()): Rename from
2161 tdesc_data_cleanup. Change argument type.
2162 (tdesc_use_registers): Change early_data to an rvalue reference.
2163 (tdesc_use_registers): Don't use delete.
2164 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2165 * s390-tdep.c (s390_gdbarch_init): Update.
2166 * rx-tdep.c (rx_gdbarch_init): Update.
2167 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2168 * riscv-tdep.c (riscv_gdbarch_init): Update.
2169 * or1k-tdep.c (or1k_gdbarch_init): Update.
2170 * nios2-tdep.c (nios2_gdbarch_init): Update.
2171 * nds32-tdep.c (nds32_gdbarch_init): Update.
2172 * mips-tdep.c (mips_gdbarch_init): Update.
2173 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2174 * m68k-tdep.c (m68k_gdbarch_init): Update.
2175 * i386-tdep.c (i386_gdbarch_init): Update.
2176 * arm-tdep.c (arm_gdbarch_init): Update.
2177 * arc-tdep.c (arc_tdesc_init): Update.
2178 (arc_gdbarch_init): Update.
2179 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2180
2181 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2182
2183 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2184 for WOW64 processes.
2185
2186 2020-09-17 Tom Tromey <tom@tromey.com>
2187
2188 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2189
2190 2020-09-17 Tom Tromey <tom@tromey.com>
2191
2192 * value.c (preserve_values): Update.
2193 * python/py-type.c (save_objfile_types): Update.
2194 * guile/scm-type.c (save_objfile_types): Update.
2195 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2196 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2197 * compile/compile-object-run.c (compile_object_run): Update.
2198
2199 2020-09-17 Tom Tromey <tom@tromey.com>
2200
2201 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2202 Remove.
2203 <m_table>: Now htab_up.
2204 * typeprint.c (typedef_hash_table::recursively_update)
2205 (typedef_hash_table::add_template_parameters)
2206 (typedef_hash_table::typedef_hash_table): Update.
2207 (typedef_hash_table::~typedef_hash_table): Remove.
2208 (typedef_hash_table::typedef_hash_table)
2209 (typedef_hash_table::find_global_typedef)
2210 (typedef_hash_table::find_typedef): Update.
2211
2212 2020-09-17 Tom Tromey <tom@tromey.com>
2213
2214 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2215
2216 2020-09-17 Tom Tromey <tom@tromey.com>
2217
2218 * linespec.c (class decode_compound_collector)
2219 <~decode_compound_collector>: Remove.
2220 <m_unique_syms>: Now htab_up.
2221 (decode_compound_collector::operator ()): Update.
2222 (class symtab_collector) <~symtab_collector>: Remove.
2223 <m_symtab_table>: Now htab_up.
2224 (symtab_collector::operator ()): Update.
2225
2226 2020-09-17 Tom Tromey <tom@tromey.com>
2227
2228 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2229 (filename_seen_cache::clear): Update.
2230 (~filename_seen_cache): Remove.
2231 (filename_seen_cache::seen): Update.
2232 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2233 htab_up.
2234 <~filename_seen_cache>: Remove.
2235 <traverse>: Update.
2236
2237 2020-09-17 Tom Tromey <tom@tromey.com>
2238
2239 * completer.c (completion_tracker::discard_completions)
2240 (completion_tracker::~completion_tracker)
2241 (completion_tracker::maybe_add_completion)
2242 (completion_tracker::remove_completion)
2243 (completion_tracker::recompute_lowest_common_denominator)
2244 (completion_tracker::build_completion_result): Update.
2245 * completer.h (class completion_tracker) <have_completions>:
2246 Update.
2247 <m_entries_hash>: Now htab_up.
2248
2249 2020-09-17 Tom Tromey <tom@tromey.com>
2250
2251 * breakpoint.c (ambiguous_names_p): Use htab_up.
2252
2253 2020-09-17 Tom Tromey <tom@tromey.com>
2254
2255 * auto-load.c (struct auto_load_pspace_info)
2256 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2257 <loaded_script_files, loaded_script_texts>: Change type to
2258 htab_up.
2259 (~auto_load_pspace_info) Remove.
2260 (init_loaded_scripts_info, maybe_add_script_file)
2261 (maybe_add_script_text, auto_load_info_scripts): Update.
2262
2263 2020-09-17 Tom Tromey <tromey@adacore.com>
2264
2265 * c-exp.y (name_obstack): Now static.
2266
2267 2020-09-17 Chungyi Chi <demonic@csie.io>
2268
2269 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2270
2271 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2272
2273 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2274 (add_solib_catchpoint): Likewise.
2275 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2276 to bool.
2277 (add_solib_catchpoint): Change int parameter/variable to bool.
2278 (catch_load_or_unload): Likewise.
2279 (init_catchpoint): Likewise.
2280 (create_fork_vfork_event_catchpoint): Likewise.
2281 (catch_fork_command_1): Likewise.
2282 (catch_exec_command_1): Likewise.
2283
2284 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2285
2286 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2287 Change instance_flags to m_instance_flags.
2288
2289 2020-09-16 Tom Tromey <tromey@adacore.com>
2290
2291 PR gdb/26598:
2292 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2293
2294 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2295
2296 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2297 PL_FLAG_EXEC.
2298 (fbsd_nat_target::insert_exec_catchpoint)
2299 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2300 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2301 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2302
2303 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2304
2305 * configure.ac: Remove check for kinfo_getvmmap().
2306 * configure, config.in: Regenerate.
2307 * fbsd-nat.c (fbsd_read_mapping): Remove
2308 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2309 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2310 kinfo_get_vmmap() are always present.
2311
2312 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2313
2314 * fbsd-nat.c: Always include support for
2315 TARGET_OBJECT_SIGNAL_INFO.
2316
2317 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2318
2319 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2320 sysctl and remove procfs fallback.
2321
2322 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2323
2324 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2325 * fbsd-nat.h: Likewise.
2326
2327 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2328
2329 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2330 argument.
2331
2332 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2333
2334 * ada-lang.c (ada_language_data): Delete.
2335 (ada_language): Remove references to ada_language_data.
2336 * c-lang.c (c_language_data): Delete.
2337 (c_language): Remove references to c_language_data.
2338 (cplus_language_data): Delete.
2339 (cplus_language): Remove references to cplus_language_data.
2340 (asm_language_data): Delete.
2341 (asm_language): Remove references to asm_language_data.
2342 (minimal_language_data): Delete.
2343 (minimal_language): Remove references to minimal_language_data.
2344 * d-lang.c (d_language_data): Delete.
2345 (d_language): Remove references to d_language_data.
2346 * f-lang.c (f_language_data): Delete.
2347 (f_language): Remove references to f_language_data.
2348 * go-lang.c (go_language_data): Delete.
2349 (go_language): Remove references to go_language_data.
2350 * language.c (unknown_language_data): Delete.
2351 (unknown_language): Remove references to unknown_language_data.
2352 (auto_language_data): Delete.
2353 (auto_language): Remove references to auto_language_data.
2354 * language.h (language_data): Delete struct.
2355 (language_defn): No longer inherit from language_data.
2356 * m2-lang.c (m2_language_data): Delete.
2357 (m2_language): Remove references to m2_language_data.
2358 * objc-lang.c (objc_language_data): Delete.
2359 (objc_language): Remove references to objc_language_data.
2360 * opencl-lang.c (opencl_language_data): Delete.
2361 (opencl_language): Remove references to opencl_language_data.
2362 * p-lang.c (pascal_language_data): Delete.
2363 (pascal_language): Remove references to pascal_language_data.
2364 * rust-lang.c (rust_language_data): Delete.
2365 (rust_language): Remove references to rust_language_data.
2366
2367 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2368
2369 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2370 initializer.
2371 (ada_language::opcode_print_table): New member function.
2372 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2373 (c_language::opcode_print_table): New member function.
2374 (cplus_language_data): Remove la_op_print_tab initializer.
2375 (cplus_language::opcode_print_table): New member function.
2376 (asm_language_data): Remove la_op_print_tab initializer.
2377 (asm_language::opcode_print_table): New member function.
2378 (minimal_language_data): Remove la_op_print_tab initializer.
2379 (minimal_language::opcode_print_table): New member function.
2380 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2381 (d_language::opcode_print_table): New member function.
2382 * expprint.c (print_subexp_standard): Update call to
2383 opcode_print_table.
2384 (op_string): Likewise.
2385 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2386 (f_language::opcode_print_table): New member function.
2387 * go-lang.c (go_language_data): Remove la_op_print_tab
2388 initializer.
2389 (go_language::opcode_print_table): New member function.
2390 * language.c (unknown_language_data): Remove la_op_print_tab
2391 initializer.
2392 (unknown_language::opcode_print_table): New member function.
2393 (auto_language_data): Remove la_op_print_tab initializer.
2394 (auto_language::opcode_print_table): New member function.
2395 * language.h (language_data): Remove la_op_print_tab field.
2396 (language_defn::opcode_print_table): Declare new member function.
2397 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2398 initializer.
2399 (m2_language::opcode_print_table): New member function.
2400 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2401 initializer.
2402 (objc_language::opcode_print_table): New member function.
2403 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2404 initializer.
2405 (opencl_language::opcode_print_table): New member function.
2406 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2407 initializer.
2408 (pascal_language::opcode_print_table): New member function.
2409 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2410 initializer.
2411 (rust_language::opcode_print_table): New member function.
2412
2413 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2414
2415 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2416 (ada_language::expression_ops): New member function.
2417 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2418 (c_language::expression_ops): New member function.
2419 (cplus_language_data): Remove la_exp_desc initializer.
2420 (cplus_language::expression_ops): New member function.
2421 (asm_language_data): Remove la_exp_desc initializer.
2422 (asm_language::expression_ops): New member function.
2423 (minimal_language_data): Remove la_exp_desc initializer.
2424 (minimal_language::expression_ops): New member function.
2425 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2426 (d_language::expression_ops): New member function.
2427 * eval.c (evaluate_subexp): Update call to expression_ops.
2428 * expprint.c (print_subexp): Likewise.
2429 (op_name): Likewise.
2430 (dump_subexp_body): Likewise.
2431 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2432 (f_language::expression_ops): New member function.
2433 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2434 (go_language::expression_ops): New member function.
2435 * language.c (language_defn::expression_ops): New function.
2436 (unknown_language_data): Remove la_exp_desc initializer.
2437 (auto_language_data): Likewise.
2438 * language.h (language_data): Remove la_exp_desc field.
2439 (language_defn::expression_ops): Declare new member function.
2440 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2441 (m2_language::expression_ops): New member function.
2442 * objc-lang.c (objc_language_data): Remove la_exp_desc
2443 initializer.
2444 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2445 initializer.
2446 (opencl_language::expression_ops): New member function.
2447 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2448 * parse.c (operator_length): Update call to expression_ops.
2449 (exp_iterate): Likewise.
2450 * rust-lang.c (rust_language_data): Remove la_exp_desc
2451 initializer.
2452 (ruse_language::expression_ops): New member function.
2453
2454 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2455
2456 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2457 initializer.
2458 (ada_language::varobj_ops): New member function.
2459 * c-lang.c (c_language_data): Remove la_varobj_ops
2460 initializer.
2461 (cplus_language_data): Likewise.
2462 (cplus_language::varobj_ops): New member function.
2463 (asm_language_data): Remove la_varobj_ops initializer.
2464 (minimal_language_data): Likewise.
2465 * d-lang.c (d_language_data): Likewise.
2466 * f-lang.c (f_language_data): Likewise.
2467 * go-lang.c (go_language_data): Likewise.
2468 * language.c (language_defn::varobj_ops): New function.
2469 (unknown_language_data): Remove la_varobj_ops
2470 initializer.
2471 (auto_language_data): Likewise.
2472 * language.h (language_data): Remove la_varobj_ops field.
2473 (language_defn::varobj_ops): Declare new member function.
2474 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2475 * objc-lang.c (objc_language_data): Likewise.
2476 * opencl-lang.c (opencl_language_data): Likewise.
2477 * p-lang.c (pascal_language_data): Likewise.
2478 * rust-lang.c (rust_language_data): Likewise.
2479 * varobj.c (varobj_create): Update call to varobj_ops.
2480 * varobj.h (default_varobj_ops): Delete define.
2481
2482 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2483
2484 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2485 initializer.
2486 * c-lang.c (c_language_data): Likewise.
2487 (c_language::macro_expansion): New member function.
2488 (cplus_language_data): Likewise.
2489 (cplus_language::macro_expansion): New member function.
2490 (asm_language_data): Likewise.
2491 (asm_language::macro_expansion): New member function.
2492 (minimal_language_data): Likewise.
2493 (minimal_language::macro_expansion): New member function.
2494 * d-lang.c (d_language_data): Remove la_macro_expansion
2495 initializer.
2496 * f-lang.c (f_language_data): Likewise.
2497 * go-lang.c (go_language_data): Likewise.
2498 * language.c (unknown_language_data): Likewise.
2499 (auto_language_data): Likewise.
2500 * language.h (language_data): Remove la_macro_expansion field.
2501 (language_defn::macro_expansion): New member function.
2502 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2503 initializer.
2504 * objc-lang.c (objc_language_data): Likewise.
2505 (objc_language::macro_expansion): New member function.
2506 * opencl-lang.c (opencl_language_data): Likewise.
2507 (opencl_language::macro_expansion): New member function.
2508 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2509 initializer.
2510 * rust-lang.c (rust_language_data): Likewise.
2511 * symtab.c (default_collect_symbol_completion_matches_break_on):
2512 Update call to macro_expansion.
2513
2514 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2515
2516 * ada-lang.c (ada_language_data): Remove la_array_ordering
2517 initializer.
2518 * c-lang.c (c_language_data): Likewise.
2519 (cplus_language_data): Likewise.
2520 (asm_language_data): Likewise.
2521 (minimal_language_data): Likewise.
2522 * d-lang.c (d_language_data): Likewise.
2523 * dwarf2/read.c (read_array_order): Update for call to
2524 array_ordering.
2525 * f-lang.c (f_language_data): Remove la_array_ordering
2526 initializer.
2527 (f_language::array_ordering): New member function.
2528 * go-lang.c (go_language_data): Remove la_array_ordering
2529 initializer.
2530 * language.c (unknown_language_data): Likewise.
2531 (auto_language_data): Likewise.
2532 * language.h (language_data): Delete la_array_ordering field.
2533 (language_defn::array_ordering): New member function.
2534 * m2-lang.c (m2_language_data): Remove la_array_ordering
2535 initializer.
2536 * objc-lang.c (objc_language_data): Likewise.
2537 * opencl-lang.c (opencl_language_data): Likewise.
2538 * p-lang.c (pascal_language_data): Likewise.
2539 * rust-lang.c (rust_language_data): Likewise.
2540
2541 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2542
2543 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2544 initializer.
2545 * c-lang.c (c_language_data): Likewise.
2546 (cplus_language_data): Likewise.
2547 (asm_language_data): Likewise.
2548 (minimal_language_data): Likewise.
2549 * d-lang.c (d_language_data): Likewise.
2550 * f-lang.c (f_language_data): Likewise.
2551 (f_language::case_sensitivity): New member function.
2552 * go-lang.c (go_language_data): Remove la_case_sensitivity
2553 initializer.
2554 * language.c (enum case_mode): Moved here from language.h.
2555 (case_mode): Make static.
2556 (show_case_command): Update for case_sensitivity being a method.
2557 (set_case_command): Likewise.
2558 (set_range_case): Likewise.
2559 (unknown_language_data): Remove la_case_sensitivity initializer.
2560 (auto_language_data): Likewise.
2561 * language.h (case_mode): Delete, move enum declaration to
2562 language.c.
2563 (language_data): Delete la_case_sensitivity field.
2564 (language_defn::case_sensitivity): New member function.
2565 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2566 initializer.
2567 * objc-lang.c (objc_language_data): Likewise.
2568 * opencl-lang.c (opencl_language_data): Likewise.
2569 * p-lang.c (pascal_language_data): Likewise.
2570 * rust-lang.c (rust_language_data): Likewise.
2571
2572 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2573
2574 * ada-lang.c (ada_language_data): Remove la_range_check
2575 initializer.
2576 * c-lang.c (c_language_data): Likewise.
2577 (cplus_language_data): Likewise.
2578 (asm_language_data): Likewise.
2579 (minimal_language_data): Likewise.
2580 * d-lang.c (d_language_data): Likewise.
2581 * f-lang.c (f_language_data): Likewise.
2582 (f_language::range_checking_on_by_default): New member function.
2583 * go-lang.c (go_language_data): Remove la_range_check initializer.
2584 * language.c (enum range_mode): Moved here from language.h.
2585 (range_mode): Made static.
2586 (show_range_command): Update to use
2587 range_checking_on_by_default.
2588 (set_range_command): Likewise.
2589 (set_range_case): Likewise.
2590 (unknown_language_data): Remove la_range_check initializer.
2591 (auto_language_data): Likewise.
2592 * language.h (range_mode): Delete. Enum definition moved to
2593 language.c.
2594 (language_data): Remove la_range_check field.
2595 (language_defn::range_checking_on_by_default): New member
2596 function.
2597 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2598 (m2_language::range_checking_on_by_default): New member function.
2599 * objc-lang.c (objc_language_data): Remove la_range_check
2600 initializer.
2601 * opencl-lang.c (opencl_language_data): Likewise.
2602 * p-lang.c (pascal_language_data): Likewise.
2603 (pascal_language::range_checking_on_by_default): New member
2604 function.
2605 * rust-lang.c (rust_language_data): Remove la_range_check
2606 initializer.
2607 (rust_language::range_checking_on_by_default): New member
2608 function.
2609
2610 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2611
2612 * dwarf2/read.c (dwarf2_physname): Remove special case for
2613 language_go.
2614 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2615 member function.
2616
2617 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2618
2619 * ada-lang.c (ada_language_data): Remove
2620 la_store_sym_names_in_linkage_form_p initializer.
2621 (ada_language::store_sym_names_in_linkage_form_p): New member
2622 function.
2623 * c-lang.c (c_language_data): Remove
2624 la_store_sym_names_in_linkage_form_p initializer.
2625 (c_language::store_sym_names_in_linkage_form_p): New member
2626 function.
2627 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2628 initializer.
2629 (asm_language_data): Likewise.
2630 (asm_language::store_sym_names_in_linkage_form_p): New member
2631 function.
2632 (minimal_language_data): Remove
2633 la_store_sym_names_in_linkage_form_p initializer.
2634 (minimal_language::store_sym_names_in_linkage_form_p): New member
2635 function.
2636 * d-lang.c (d_language_data): Remove
2637 la_store_sym_names_in_linkage_form_p initializer.
2638 * dwarf2/read.c (dwarf2_physname): Update call to
2639 store_sym_names_in_linkage_form_p.
2640 * f-lang.c (f_language_data): Remove
2641 la_store_sym_names_in_linkage_form_p initializer.
2642 * go-lang.c (go_language_data): Remove
2643 la_store_sym_names_in_linkage_form_p initializer.
2644 * language.c (unknown_language_data): Remove
2645 la_store_sym_names_in_linkage_form_p initializer.
2646 (unknown_language::store_sym_names_in_linkage_form_p): New member
2647 function.
2648 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2649 initializer.
2650 (auto_language::store_sym_names_in_linkage_form_p): New member
2651 function.
2652 * language.h (language_data): Remove
2653 la_store_sym_names_in_linkage_form_p member variable.
2654 (language_defn::store_sym_names_in_linkage_form_p): New member
2655 function.
2656 * m2-lang.c (m2_language_data): Remove
2657 la_store_sym_names_in_linkage_form_p initializer.
2658 * objc-lang.c (objc_language_data): Likewise.
2659 * opencl-lang.c (opencl_language_data): Likewise.
2660 * p-lang.c (pascal_language_data): Likewise.
2661 * rust-lang.c (rust_language_data): Likewise.
2662
2663 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2664
2665 * ada-lang.c (ada_language_data): Remove string_lower_bound
2666 initializer.
2667 * c-lang.c (c_language_data): Likewise.
2668 (cplus_language_data): Likewise.
2669 (asm_language_data): Likewise.
2670 (minimal_language_data): Likewise.
2671 * d-lang.c (d_language_data): Likewise.
2672 * f-lang.c (f_language_data): Likewise.
2673 * go-lang.c (go_language_data): Likewise.
2674 * language.c (unknown_language_data): Likewise.
2675 (auto_language_data): Likewise.
2676 * language.h (language_data): Remove string_lower_bound field.
2677 (language_defn::string_lower_bound): New member function.
2678 * m2-lang.c (m2_language_data): Remove string_lower_bound
2679 initializer.
2680 (m2_language::string_lower_bound): New member function.
2681 * objc-lang.c (objc_language_data): Remove string_lower_bound
2682 initializer.
2683 * opencl-lang.c (opencl_language_data): Likewise.
2684 * p-lang.c (pascal_language_data): Likewise.
2685 * rust-lang.c (rust_language_data): Likewise.
2686 * valops.c (value_cstring): Update call to string_lower_bound.
2687 (value_string): Likewise.
2688 * value.c (allocate_repeated_value): Likewise.
2689
2690 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2691
2692 * valops.c (value_repeat): Fix incorrect argument name in comment.
2693
2694 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2695
2696 * ada-lang.c (ada_language_data): Remove c_style_arrays
2697 initializer.
2698 (ada_language::c_style_arrays_p): New member fuction.
2699 * c-lang.c (c_language_data): Remove c_style_arrays
2700 initializer.
2701 (cplus_language_data): Likewise.
2702 (asm_language_data): Likewise.
2703 (minimal_language_data): Likewise.
2704 * d-lang.c (d_language_data): Likewise.
2705 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2706 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2707 (f_language::c_style_arrays_p): New member function.
2708 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2709 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2710 * language.c (unknown_language_data): Remove c_style_arrays
2711 initializer.
2712 (auto_language_data): Likewise.
2713 * language.h (language_data): Remove c_style_arrays field.
2714 (language_defn::c_style_arrays_p): New member function.
2715 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2716 (m2_language::c_style_arrays_p): New member function.
2717 * objc-lang.c (objc_language_data): Remove c_style_arrays
2718 initializer.
2719 * opencl-lang.c (opencl_language_data): Likewise.
2720 * p-lang.c (pascal_language_data): Likewise.
2721 * rust-lang.c (rust_language_data): Likewise.
2722 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2723 and update local variable to a bool.
2724 * valops.c (value_cast): Update call to c_style_arrays_p.
2725 (value_array): Likewise.
2726 * value.c (coerce_array): Likewise.
2727
2728 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2729
2730 * ada-lang.c (ada_language_data): Remove la_language initializer.
2731 * c-lang.c (c_language_data): Likewise.
2732 (cplus_language_data): Likewise.
2733 (asm_language_data): Likewise.
2734 (minimal_language_data): Likewise.
2735 * d-lang.c (d_language_data): Likewise.
2736 * f-lang.c (f_language_data): Likewise.
2737 * go-lang.c (go_language_data): Likewise.
2738 * language.c (unknown_language_data): Likewise.
2739 (auto_language_data): Likewise.
2740 * language.h (language_data): Remove la_language field.
2741 (language_defn::language_defn): Initialise la_language field.
2742 (language_defn::la_language): New member variable.
2743 * m2-lang.c (m2_language_data): Remove la_language field.
2744 * objc-lang.c (objc_language_data): Likewise.
2745 * opencl-lang.c (opencl_language_data): Likewise.
2746 * p-lang.c (pascal_language_data): Likewise.
2747 * rust-lang.c (rust_language_data): Likewise.
2748
2749 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2750
2751 * ada-lang.c (ada_extensions): Delete, moved into
2752 ada_language::filename_extensions.
2753 (ada_language_data): Remove la_filename_extensions initializer.
2754 (ada_language::filename_extensions): New member function.
2755 * c-lang.c (c_extensions): Delete, moved into
2756 c_language::filename_extensions.
2757 (c_language_data): Remove la_filename_extensions initializer.
2758 (c_language::filename_extensions): New member function.
2759 (cplus_extensions): Delete, moved into
2760 cplus_language::filename_extensions.
2761 (cplus_language_data): Remove la_filename_extensions initializer.
2762 (cplus_language::filename_extensions): New member function.
2763 (asm_extensions): Delete, moved into
2764 asm_language::filename_extensions.
2765 (asm_language_data): Remove la_filename_extensions initializer.
2766 (asm_language::filename_extensions): New member function.
2767 (minimal_language_data): Remove la_filename_extensions
2768 initializer.
2769 * d-lang.c (d_extensions): Delete, moved into
2770 d_language::filename_extensions.
2771 (d_language_data): Remove la_filename_extensions initializer.
2772 (d_language::filename_extensions): New member function.
2773 * f-lang.c (f_extensions): Delete, moved into
2774 f_language::filename_extensions.
2775 (f_language_data): Remove la_filename_extensions initializer.
2776 (f_language::filename_extensions): New member function.
2777 * go-lang.c (go_language_data): Remove la_filename_extensions
2778 initializer.
2779 * language.c (add_set_language_command): Update now that
2780 filename_extensions returns a vector.
2781 (unknown_language_data): Remove la_filename_extensions
2782 initializer.
2783 (auto_language_data): Likewise.
2784 * language.h (language_data): Remove la_filename_extensions field.
2785 (language_defn::filename_extensions): New member function.
2786 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2787 initializer.
2788 * objc-lang.c (objc_extensions): Delete, moved into
2789 objc_language::filename_extensions.
2790 (objc_language_data): Remove la_filename_extensions initializer.
2791 (objc_language::filename_extensions): New member function.
2792 * opencl-lang.c (opencl_language_data): Remove
2793 la_filename_extensions initializer.
2794 * p-lang.c (pascal_extensions): Delete, moved into
2795 pascal_language::filename_extensions.
2796 (pascal_language_data): Remove la_filename_extensions initializer.
2797 (pascal_language::filename_extensions): New member function.
2798 * rust-lang.c (rust_extensions): Delete, moved into
2799 rust_language::filename_extensions.
2800 (rust_language_data): Remove la_filename_extensions initializer.
2801 (rust_language::filename_extensions): New member function.
2802 * symfile.c (add_filename_language): Add new assert.
2803
2804 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2805
2806 * ada-lang.c (ada_language_data): Remove la_name and
2807 la_natural_name initializers.
2808 (ada_language::name): New member function.
2809 (ada_language::natural_name): New member function.
2810 * c-lang.c (c_language_data): Remove la_name and
2811 la_natural_name initializers.
2812 (c_language::name): New member function.
2813 (c_language::natural_name): New member function.
2814 (cplus_language_data): Remove la_name and
2815 la_natural_name initializers.
2816 (cplus_language::name): New member function.
2817 (cplus_language::natural_name): New member function.
2818 (asm_language_data): Remove la_name and
2819 la_natural_name initializers.
2820 (asm_language::name): New member function.
2821 (asm_language::natural_name): New member function.
2822 (minimal_language_data): Remove la_name and
2823 la_natural_name initializers.
2824 (minimal_language::name): New member function.
2825 (minimal_language::natural_name): New member function.
2826 * compile/compile.c (compile_to_object): Update call to
2827 lanugage_defn::name.
2828 * d-lang.c (d_language_data): Remove la_name and
2829 la_natural_name initializers.
2830 (d_language::name): New member function.
2831 (d_language::natural_name): New member function.
2832 * expprint.c (print_subexp_standard): Update call to
2833 language_defn::name.
2834 (dump_raw_expression): Likewise
2835 (dump_prefix_expression): Likewise.
2836 * f-lang.c (f_language_data): Remove la_name and
2837 la_natural_name initializers.
2838 (f_language::name): New member function.
2839 (f_language::natural_name): New member function.
2840 * go-lang.c (go_language_data): Remove la_name and
2841 la_natural_name initializers.
2842 (go_language::name): New member function.
2843 (go_language::natural_name): New member function.
2844 * language.c (show_language_command): Update call to
2845 language_defn::name.
2846 (set_language_command): Likewise.
2847 (language_enum): Likewise.
2848 (language_str): Likewise.
2849 (add_set_language_command): Likewise, use
2850 language_defn::natural_name in the doc string.
2851 (unknown_language_data): Remove la_name and
2852 la_natural_name initializers.
2853 (unknown_language::name): New member function.
2854 (unknown_language::natural_name): New member function.
2855 (auto_language_data): Remove la_name and
2856 la_natural_name initializers.
2857 (auto_language::name): New member function.
2858 (auto_language::natural_name): New member function.
2859 (language_lookup_primitive_type_as_symbol): Update call to
2860 language_defn::name.
2861 * language.h (language_data): Remove la_name and la_natural_name
2862 member variables.
2863 (language_defn::name): New member function.
2864 (language_defn::natural_name): New member function.
2865 * m2-lang.c (m2_language_data): Remove la_name and
2866 la_natural_name initializers.
2867 (m2_language::name): New member function.
2868 (m2_language::natural_name): New member function.
2869 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2870 language_defn::natural_name.
2871 * objc-lang.c (objc_language_data): Remove la_name and
2872 la_natural_name initializers.
2873 (objc_language::name): New member function.
2874 (objc_language::natural_name): New member function.
2875 * opencl-lang.c (opencl_language_data): Remove la_name and
2876 la_natural_name initializers.
2877 (opencl_language::name): New member function.
2878 (opencl_language::natural_name): New member function.
2879 * p-lang.c (pascal_language_data): Remove la_name and
2880 la_natural_name initializers.
2881 (pascal_language::name): New member function.
2882 (pascal_language::natural_name): New member function.
2883 * rust-lang.c (rust_language_data): Remove la_name and
2884 la_natural_name initializers.
2885 (rust_language::name): New member function.
2886 (rust_language::natural_name): New member function.
2887 * symtab.c (lookup_language_this): Update call to
2888 language_defn::name.
2889
2890 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2891
2892 * ada-lang.c (ada_language_data): Remove la_name_of_this
2893 initializer.
2894 * ax-gdb.c (gen_expr): Update call to name_of_this.
2895 * c-exp.y (classify_name): Likewise.
2896 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2897 (cplus_language_data): Likewise.
2898 (cplus_language::name_of_this): New member function.
2899 (asm_language_data): Remove la_name_of_this initializer.
2900 (minimal_language_data): Likewise.
2901 * d-lang.c (d_language_data): Likewise.
2902 (d_language::name_of_this): New member function.
2903 * expprint.c (print_subexp_standard): Update call to name_of_this.
2904 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2905 * go-lang.c (go_language_data): Likewise.
2906 * language.c (unknown_language_data): Likewise.
2907 (unknown_language::name_of_this): New member function.
2908 (auto_language_data): Remove la_name_of_this initializer.
2909 (auto_language::name_of_this): New member function.
2910 * language.h (language_data): Delete la_name_of_this member
2911 variable.
2912 (language_defn::name_of_this): New member function.
2913 * m2-lang.c (m2_language_data): Remove la_name_of_this
2914 initializer.
2915 * objc-lang.c (objc_language_data): Likewise.
2916 (objc_language::name_of_this): New member function.
2917 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2918 initializer.
2919 * p-lang.c (pascal_language_data): Likewise.
2920 (pascal_language::name_of_this): New member function.
2921 * rust-lang.c (rust_language_data): Remove la_name_of_this
2922 initializer.
2923 * symtab.c (lookup_language_this): Update call to name_of_this.
2924 (lookup_symbol_aux): Likewise.
2925 * valops.c (value_of_this): Likewise.
2926
2927 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2928
2929 * ada-lang.c (ada_language_data): Remove
2930 la_struct_too_deep_ellipsis initializer.
2931 (ada_language::struct_too_deep_ellipsis): New member function.
2932 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2933 initializer.
2934 (cplus_language_data): Likewise.
2935 (asm_language_data): Likewise.
2936 (minimal_language_data): Likewise.
2937 * cp-valprint.c (cp_print_value): Update call to
2938 struct_too_deep_ellipsis.
2939 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2940 initializer.
2941 * f-lang.c (f_language_data): Likewise.
2942 (f_language::struct_too_deep_ellipsis): New member function.
2943 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2944 initializer.
2945 * language.c (unknown_language_data): Likewise.
2946 (auto_language_data): Likewise.
2947 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2948 member variable.
2949 (language_defn::struct_too_deep_ellipsis): New member function.
2950 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2951 initializer.Q
2952 * objc-lang.c (objc_language_data): Likewise.
2953 * opencl-lang.c (opencl_language_data): Likewise.
2954 * p-lang.c (pascal_language_data): Likewise.
2955 * rust-lang.c (rust_language_data): Likewise.
2956 * valprint.c (val_print_check_max_depth): Update call to
2957 struct_too_deep_ellipsis.
2958
2959 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2960
2961 * MAINTAINERS (Write After Approval): Add myself.
2962
2963 2020-09-15 Tom Tromey <tom@tromey.com>
2964
2965 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2966 Remove.
2967
2968 2020-09-15 Tom Tromey <tom@tromey.com>
2969
2970 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2971 and TYPE_CODE_METHODPTR cases.
2972 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2973 (c_value_print_inner): Update.
2974 * valprint.c (generic_value_print_memberptr): New function, from
2975 c_value_print_memberptr.
2976 (generic_value_print): Use it. Call cplus_print_method_ptr.
2977
2978 2020-09-15 Tom Tromey <tromey@adacore.com>
2979
2980 * python/python-internal.h (PyInt_FromLong): Remove define.
2981 * python/py-value.c (convert_value_from_python): Use
2982 gdb_py_object_from_longest.
2983 * python/py-type.c (typy_get_code): Use
2984 gdb_py_object_from_longest.
2985 * python/py-symtab.c (salpy_get_line): Use
2986 gdb_py_object_from_longest.
2987 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2988 gdb_py_object_from_longest.
2989 * python/py-record.c (recpy_gap_reason_code): Use
2990 gdb_py_object_from_longest.
2991 * python/py-record-btrace.c (recpy_bt_insn_size)
2992 (recpy_bt_func_level, btpy_list_count): Use
2993 gdb_py_object_from_longest.
2994 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2995 gdb_py_object_from_longest. Fix error handling.
2996 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2997 gdb_py_object_from_longest.
2998 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2999 gdb_py_object_from_longest.
3000 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3001 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3002 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3003
3004 2020-09-15 Tom Tromey <tromey@adacore.com>
3005
3006 * python/python.c (gdbpy_parameter_value): Use
3007 gdb_py_object_from_ulongest.
3008
3009 2020-09-15 Tom Tromey <tromey@adacore.com>
3010
3011 * python/py-infevents.c (create_register_changed_event_object):
3012 Use gdb_py_object_from_longest.
3013 * python/py-exitedevent.c (create_exited_event_object): Use
3014 gdb_py_object_from_longest.
3015
3016 2020-09-15 Tom Tromey <tromey@adacore.com>
3017
3018 * python/python.c (gdbpy_parameter_value): Use
3019 gdb_py_object_from_longest.
3020 * python/py-type.c (convert_field, typy_range): Use
3021 gdb_py_object_from_longest.
3022 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3023 gdb_py_object_from_longest.
3024 * python/py-lazy-string.c (stpy_get_length): Use
3025 gdb_py_object_from_longest.
3026 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3027 gdb_py_object_from_longest.
3028 * python/py-infevents.c (create_memory_changed_event_object): Use
3029 gdb_py_object_from_longest.
3030 * python/py-inferior.c (infpy_get_num): Use
3031 gdb_py_object_from_longest.
3032 (infpy_get_pid): Likewise.
3033
3034 2020-09-15 Tom Tromey <tromey@adacore.com>
3035
3036 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3037 defines.
3038 * python/py-value.c (valpy_long): Use
3039 gdb_py_object_from_ulongest.
3040 * python/py-symtab.c (salpy_get_pc): Use
3041 gdb_py_object_from_ulongest.
3042 (salpy_get_last): Likewise.
3043 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3044 gdb_py_object_from_ulongest.
3045 * python/py-lazy-string.c (stpy_get_address): Use
3046 gdb_py_object_from_ulongest.
3047 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3048 * python/py-arch.c (archpy_disassemble): Use
3049 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3050 error handling.
3051
3052 2020-09-15 Tom Tromey <tromey@adacore.com>
3053
3054 * python/python-internal.h (gdb_py_long_from_longest): Remove
3055 defines.
3056 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3057 * python/py-type.c (convert_field, typy_get_sizeof): Use
3058 gdb_py_object_from_longest.
3059 * python/py-record-btrace.c (btpy_list_index): Use
3060 gdb_py_object_from_longest.
3061
3062 2020-09-15 Tom Tromey <tromey@adacore.com>
3063
3064 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3065 * python/py-record.c (recpy_element_number): Use
3066 gdb_py_object_from_longest.
3067 (recpy_gap_number): Likewise.
3068
3069 2020-09-15 Tom Tromey <tromey@adacore.com>
3070
3071 * top.c (ui::ui): Update.
3072 (highest_ui_num): Remove.
3073 * top.h (struct ui) <num>: Remove.
3074
3075 2020-09-15 Tom Tromey <tromey@adacore.com>
3076
3077 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3078 * ui-style.c (ansi_regex_text): Now array.
3079 * rust-exp.y (number_regex_text): Now array.
3080 * linespec.c (linespec_quote_characters): Now array.
3081 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3082 Now arrays.
3083
3084 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3085
3086 * debuginfod-support.c (debuginfod_client_deleter): New.
3087 (debuginfod_client_up): New.
3088 (debuginfod_init): Return debuginfod_client_up.
3089 (debuginfod_source_query): Adjust.
3090 (debuginfod_debuginfo_query): Adjust.
3091
3092 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3093
3094 * debuginfod-support.c (debuginfod_source_query): Use
3095 make_unique_xstrdup.
3096
3097 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3098
3099 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3100 with `type::instance_flags`.
3101
3102 2020-09-14 Michael Mullin <masmullin@gmail.com>
3103
3104 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3105 Remove baton parameter.
3106
3107 2020-09-14 Pedro Alves <pedro@palves.net>
3108
3109 * Makefile.in (SELFTESTS_SRCS): Add
3110 unittests/enum-flags-selftests.c.
3111 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3112 btrace_function_flags instead of enum btrace_function_flag.
3113 * compile/compile-c-types.c (convert_qualified): Use
3114 enum_flags::raw.
3115 * compile/compile-cplus-symbols.c (convert_one_symbol)
3116 (convert_symbol_bmsym):
3117 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3118 (compile_cplus_convert_struct_or_union_methods)
3119 (compile_cplus_instance::convert_qualified_base):
3120 * go-exp.y (parse_string_or_char): Add cast to int.
3121 * unittests/enum-flags-selftests.c: New file.
3122 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3123 type to btrace_thread_flags from btrace_thread_flag.
3124 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3125 local's type to btrace_thread_flags from btrace_thread_flag. Add
3126 cast in DEBUG call.
3127
3128 2020-09-14 Pedro Alves <pedro@palves.net>
3129
3130 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3131 * gdbtypes.c (address_space_name_to_int): Rename to ...
3132 (address_space_name_to_type_instance_flags): ... this.
3133 (address_space_int_to_name): Rename to ...
3134 (address_space_type_instance_flags_to_name): ... this.
3135 * gdbtypes.h (address_space_name_to_int): Rename to ...
3136 (address_space_name_to_type_instance_flags): ... this.
3137 (address_space_int_to_name): Rename to ...
3138 (address_space_type_instance_flags_to_name): ... this.
3139 * type-stack.c (type_stack::insert): Adjust to rename.
3140 * type-stack.h (type_stack::insert): Likewise.
3141
3142 2020-09-14 Pedro Alves <pedro@palves.net>
3143 Andrew Burgess <andrew.burgess@embecosm.com>
3144
3145 * avr-tdep.c (avr_address_class_type_flags): Return
3146 type_instance_flags.
3147 (avr_address_class_type_flags_to_name): Take a
3148 type_instance_flags.
3149 (avr_address_class_name_to_type_flags): Return bool and take a
3150 type_instance_flags.
3151 * d-lang.c (build_d_types): Use type::set_instance_flags.
3152 * ft32-tdep.c (ft32_address_class_type_flags): Return
3153 type_instance_flags.
3154 (ft32_address_class_type_flags_to_name): Take a
3155 type_instance_flags.
3156 (ft32_address_class_name_to_type_flags): Return bool and take a
3157 type_instance_flags.
3158 (ft32_gdbarch_init): Use type::set_instance_flags.
3159 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3160 * gdbarch.h, gdbarch.c: Regenerate.
3161 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3162 (address_class_name_to_type_flags): Use type_instance_flags and
3163 bool.
3164 * gdbtypes.c (address_space_name_to_int)
3165 (address_space_int_to_name, make_qualified_type): Use
3166 type_instance_flags.
3167 (make_qualified_type): Use type_instance_flags and
3168 type::set_instance_flags.
3169 (make_type_with_address_space, make_cv_type, make_vector_type)
3170 (check_typedef): Use type_instance_flags.
3171 (recursive_dump_type): Cast type_instance_flags to unsigned for
3172 printing.
3173 (copy_type_recursive): Use type::set_instance_flags.
3174 (gdbtypes_post_init): Use type::set_instance_flags.
3175 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3176 <m_instance_flags>: ... this.
3177 <instance_flags, set_instance_flags>: New methods.
3178 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3179 (SET_TYPE_INSTANCE_FLAGS): New.
3180 (address_space_name_to_int, address_space_int_to_name)
3181 (make_type_with_address_space): Pass flags using
3182 type_instance_flags instead of int.
3183 * stabsread.c (cleanup_undefined_types_noname): Use
3184 type::set_instance_flags.
3185 * s390-tdep.c (s390_address_class_type_flags): Return
3186 type_instance_flags.
3187 (s390_address_class_type_flags_to_name): Take a
3188 type_instance_flags.
3189 (s390_address_class_name_to_type_flags): Return bool and take a
3190 type_instance_flags.
3191 * type-stack.c (type_stack::follow_types): Use
3192 type_instance_flags.
3193 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3194
3195 2020-09-14 Tom Tromey <tromey@adacore.com>
3196
3197 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3198 * x86-tdep.c (x86_is_thunk_register_name)
3199 (x86_in_indirect_branch_thunk): Update.
3200 * sparc64-tdep.c (sparc64_fpu_register_names)
3201 (sparc64_cp0_register_names, sparc64_register_names)
3202 (sparc64_pseudo_register_names): Now const.
3203 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3204 cp0_registers_num>: Now const.
3205 * sparc-tdep.c (sparc_core_register_names)
3206 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3207 (sparc32_pseudo_register_names): Now const.
3208 (validate_tdesc_registers): Update.
3209 * rust-lang.c (rust_extensions): Now const.
3210 * p-lang.c (p_extensions): Now const.
3211 * objc-lang.c (objc_extensions): Now const.
3212 * nto-tdep.c (nto_thread_state_str): Now const.
3213 * moxie-tdep.c (moxie_register_names): Now const.
3214 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3215 Now const.
3216 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3217 (mips_linux_reg_names): Now const.
3218 (mips_gdbarch_init): Update.
3219 * microblaze-tdep.c (microblaze_register_names): Now const.
3220 * m68k-tdep.c (m68k_register_names): Now const.
3221 * m32r-tdep.c (m32r_register_names): Now const.
3222 * ia64-tdep.c (ia64_register_names): Now const.
3223 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3224 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3225 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3226 ymm_avx512_register_names, pkeys_register_names>: Now const.
3227 * i386-tdep.c (i386_register_names, i386_zmm_names)
3228 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3229 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3230 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3231 * f-lang.c (f_extensions): Now const.
3232 * d-lang.c (d_extensions): Now const.
3233 * csky-tdep.c (csky_register_names): Now const.
3234 * charset.c (default_charset_names, charset_enum): Now const.
3235 (_initialize_charset): Update.
3236 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3237 const.
3238 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3239 (bsd_uthread_solib_loaded): Update.
3240 (bsd_uthread_state): Now const.
3241 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3242 (amd64_ymm_avx512_names, amd64_ymmh_names)
3243 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3244 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3245 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3246 (amd64_dword_names): Now const.
3247 * agent.c (can_use_agent_enum): Now const.
3248 * ada-tasks.c (task_states, long_task_states): Now const.
3249 * ada-lang.c (known_runtime_file_name_patterns)
3250 (known_auxiliary_function_name_patterns, attribute_names)
3251 (standard_exc, ada_extensions): Now const.
3252
3253 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3254
3255 * bcache.h (struct bcache) <bcache>: Remove constructor.
3256 <m_hash_function, m_compare_function>: Remove.
3257 <~bcache>: Make virtual.
3258 <compare>: Remove static method, introduce virtual method.
3259 <default_hash>: Remove.
3260 <hash>: New virtual method.
3261 * bcache.c (bcache::expand_hash_table): Update.
3262 (bcache::insert): Update.
3263 (bcache::hash): New.
3264 (bcache::compare): Update comment and parameter names.
3265 * gdbtypes.c (types_deeply_equal): Update.
3266 * psymtab.h (struct psymbol_bcache): New struct.
3267 (class psymtab_storage) <psymtab_storage>: Make default.
3268 <psymbol_cache>: Change type to psymbol_bcache.
3269 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3270 (psymbol_hash): Change to...
3271 (psymbol_bcache::hash): ... this.
3272 (psymbol_compare): Change to...
3273 (psymbol_bcache::compare): ... this.
3274
3275 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3276
3277 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3278 checking for initial lwp.
3279
3280 2020-09-14 Tom Tromey <tromey@adacore.com>
3281
3282 * m68k-tdep.c (m68k_extract_return_value): Use
3283 pointer_result_regnum.
3284 (m68k_store_return_value): Likewise.
3285 (m68k_reg_struct_return_p): Handle vectors and arrays.
3286 (m68k_return_value): Handle arrays.
3287 (m68k_svr4_return_value): Fix single-element aggregate handling.
3288 Handle long double. Adjust for embedded ABI.
3289 (m68k_svr4_init_abi): Set pointer_result_regnum.
3290 (m68k_embedded_init_abi): New function.
3291 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3292 (m68k_osabi_sniffer): New function.
3293 (_initialize_m68k_tdep): Register osabi sniffer.
3294 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3295 member.
3296
3297 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3298
3299 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3300 with gdb::unique_xmalloc_ptr<char>.
3301
3302 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3303
3304 * xml-support.h (xml_fetch_another): Change type to be a
3305 function_view.
3306 (xml_process_xincludes): Remove baton parameter.
3307 (xml_fetch_content_from_file): Change baton parameter to
3308 dirname.
3309 * xml-support.c (struct xinclude_parsing_data)
3310 <xinclude_parsing_data>: Remove baton parameter.
3311 <fetcher_baton>: Remove.
3312 (xinclude_start_include): Adjust.
3313 (xml_process_xincludes): Adjust.
3314 (xml_fetch_content_from_file): Replace baton parameter with
3315 dirname.
3316 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3317 (xml_init_syscalls_info): Use a lambda.
3318 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3319 (file_read_description_xml): Use a lambda.
3320 (fetch_available_features_from_target): Change baton parameter
3321 to target_ops.
3322 (target_read_description_xml): Use a lambda.
3323 (target_fetch_description_xml): Use a lambda.
3324 (string_read_description_xml): Update.
3325
3326 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3327
3328 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3329 uses with type::endianity_is_not_default.
3330
3331 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3332
3333 * gdbtypes.h (struct type) <endianity_is_not_default,
3334 set_endianity_is_not_default>: New methods.
3335 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3336 type::endianity_is_not_default, change all write call sites to
3337 use type::set_endianity_is_not_default.
3338
3339 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3340
3341 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3342 uses with type::is_fixed_instance.
3343
3344 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3345
3346 * gdbtypes.h (struct type) <is_fixed_instance,
3347 set_is_fixed_instance>: New methods.
3348 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3349 write call sites to use type::set_is_fixed_instance.
3350
3351 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3352
3353 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3354 uses with type::is_gnu_ifunc.
3355
3356 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3357
3358 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3359 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3360 use type::set_is_gnu_ifunc.
3361
3362 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3363
3364 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3365 uses with type::stub_is_supported.
3366
3367 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3368
3369 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3370 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3371 use type::set_stub_is_supported.
3372
3373 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3374
3375 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3376 uses with type::is_vector.
3377
3378 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3379
3380 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3381 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3382 use type::set_is_vector.
3383
3384 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3385
3386 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3387 uses with type::has_varargs.
3388
3389 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3390
3391 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3392 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3393 use type::set_has_varargs.
3394
3395 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3396
3397 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3398 uses with type::is_prototyped.
3399
3400 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3401
3402 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3403 New methods.
3404 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3405 call sites to use type::set_is_prototyped.
3406
3407 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3408
3409 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3410 uses with type::target_is_stub.
3411
3412 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3413
3414 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3415 New methods.
3416 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3417 sites to use type::set_target_is_stub.
3418
3419 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3420
3421 * gdbtypes.h (TYPE_STUB): Remove, replace all
3422 uses with type::is_stub.
3423
3424 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3425
3426 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3427 (TYPE_STUB): Use type::is_stub, change all write call sites to
3428 use type::set_is_stub.
3429
3430 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3431
3432 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3433 type::has_no_signedness.
3434
3435 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3436
3437 * gdbtypes.h (struct type) <has_no_signedness,
3438 set_has_no_signedness>: New methods.
3439 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3440 call sites to use type::set_has_no_signedness.
3441
3442 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3443
3444 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3445 type::is_unsigned.
3446
3447 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3448
3449 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3450 methods.
3451 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3452 sites to use type::set_is_unsigned.
3453
3454 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3455 Adam Renquinha <arenquinha@cimeq.qc.ca>
3456
3457 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3458 pointer and stack frame offset when unwinding.
3459
3460 2020-09-13 Pedro Alves <pedro@palves.net>
3461
3462 * NEWS: Document "-break-insert --qualified".
3463 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3464
3465 2020-09-13 Pedro Alves <pedro@palves.net>
3466
3467 * linespec.c (classify_mtype, compare_msyms): Delete.
3468 (search_minsyms_for_name): Remove classification logic. Instead
3469 filter out trampoline symbols if we also found an external
3470 function of the same name.
3471
3472 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3473
3474 * NEWS: Create a new section for the next release branch.
3475 Rename the section of the current branch, now that it has
3476 been cut.
3477
3478 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3479
3480 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3481 * version.in: Bump version to 11.0.50.DATE-git.
3482
3483 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3484
3485 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3486
3487 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3488 Felix Willgerodt <Felix.Willgerodt@intel.com>
3489
3490 * gdbarch.sh: Added bfloat16 type.
3491 * gdbarch.c: Regenerated.
3492 * gdbarch.h: Regenerated.
3493 * gdbtypes.c (floatformats_bfloat16): New struct.
3494 (gdbtypes_post_init): Add builtin_bfloat16.
3495 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3496 (floatformats_bfloat16): New struct.
3497 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3498 (i386_ymm_type): Add field "v16_bfloat16"
3499 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3500 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3501 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3502 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3503 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3504 * features/i386/64bit-avx512.c: Regenerated.
3505 * features/i386/64bit-sse.xml: Add bfloat16 type.
3506 * features/i386/64bit-sse.c: Regenerated.
3507
3508 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3509
3510 * i386-tdep.c (i386_zmm_type): Fix field names.
3511 (i386_ymm_type): Fix field names.
3512
3513 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3514
3515 * breakpoint.c: Fix typo in the help message of the
3516 "set breakpoint condition-evaluation" command.
3517
3518 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3519
3520 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3521 * (nbsd_nat_target::pid_to_exec_file)
3522 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3523 (nbsd_nat_target::post_startup_inferior)
3524 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3525 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3526 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3527 * (nbsd_thread_lister): Remove.
3528
3529 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3530
3531 * fork-inferior.c (startup_inferior): Avoid double free.
3532
3533 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3534
3535 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3536 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3537
3538 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3539
3540 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3541 * netbsd-nat.c: Include <sys/ptrace.h>.
3542 * (netbsd_nat::enable_proc_events): Add.
3543
3544 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3545
3546 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3547 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3548 (netbsd_nat::for_each_thread): Add.
3549 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3550 "gdbsupport/common-debug.h".
3551 * (netbsd_nat::netbsd_thread_lister)
3552 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3553 (netbsd_nat::for_each_thread): Add.
3554
3555 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3556
3557 * netbsd-nat.h: Include <unistd.h>.
3558 * (netbsd_nat::pid_to_exec_file): Add.
3559 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3560 * (netbsd_nat::pid_to_exec_file) Add.
3561
3562 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3563
3564 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3565
3566 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3567
3568 * netbsd-nat.h: New file.
3569 * netbsd-nat.c: Likewise.
3570
3571 2020-09-09 Tom Tromey <tromey@adacore.com>
3572
3573 * ada-lang.c (remove_extra_symbols): Do not increment when
3574 removing an element
3575
3576 2020-09-08 Tom Tromey <tromey@adacore.com>
3577
3578 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3579
3580 2020-09-08 Tom Tromey <tromey@adacore.com>
3581
3582 PR win32/25302:
3583 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3584 (gdb_bfd_init_data): New function.
3585 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3586
3587 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3588
3589 * infrun.c (fetch_inferior_event): Use
3590 `switch_to_target_no_thread` to switch the target.
3591
3592 2020-09-06 Tom Tromey <tom@tromey.com>
3593
3594 * symfile.h (dwarf2_free_objfile): Don't declare.
3595
3596 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3597
3598 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3599 to match 16 byte real/complex type generated by Flang compiler.
3600
3601 2020-09-03 Tom de Vries <tdevries@suse.de>
3602
3603 PR breakpoint/26546
3604 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3605 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3606
3607 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3608
3609 * maint.c (index_digits): New function.
3610 (struct maint_print_section_data): Remove.
3611 (print_bfd_section_info): Remove print_data parameter, add arg
3612 and index_digits.
3613 (print_objfile_section_info): Likewise.
3614 (print_bfd_section_info_maybe_relocated): Likewise (plus
3615 objfile).
3616 (maintenance_info_sections): Adjust calls.
3617
3618 2020-09-02 Tom Tromey <tromey@adacore.com>
3619
3620 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3621 for null pointers.
3622 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3623
3624 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3625
3626 * bcache.h (struct bcache) <insert>: Change type of `added` to
3627 pointer to bool.
3628 * bcache.c (bcache::insert): Likewise.
3629 * gdbtypes.c (check_types_worklist): Adjust.
3630 * psymtab.c (add_psymbol_to_bcache): Adjust.
3631
3632 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3633
3634 * corelow.c (unordered_set): Include.
3635 (class core_target): Add field 'm_core_unavailable_mappings'.
3636 (core_target::build_file_mappings): Print only one warning
3637 per inaccessible file. Add unavailable/broken mappings
3638 to m_core_unavailable_mappings.
3639 (core_target::xfer_partial): Call...
3640 (core_target::xfer_memory_via_mappings): New method.
3641
3642 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3643
3644 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3645 type to bool.
3646
3647 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3648
3649 * dwarf2/read.c (struct field_info): Fix indentation.
3650
3651 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3652
3653 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3654 ordering in comment.
3655 * frame.c (frame_id_eq): Fix indentation.
3656
3657 2020-08-31 Scott Linder <scott@scottlinder.com>
3658 Simon Marchi <simon.marchi@efficios.com>
3659
3660 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3661 inline frame ids in outer frame.
3662
3663 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3664
3665 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3666 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3667 (outer_frame_id): Use FID_STACK_OUTER instead of
3668 FID_STACK_INVALID.
3669 (frame_id_p): Don't check for outer_frame_id.
3670
3671 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3672
3673 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3674 regnum/frame in value. Call allocate_value_lazy.
3675 * frame.c (frame_unwind_register_value): Use
3676 val_print_not_saved.
3677
3678 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3679
3680 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3681
3682 2020-08-29 Pedro Alves <pedro@palves.net>
3683
3684 * progspace.c (print_program_space): Use all_inferiors. Switch to
3685 the inferior before calling target_pid_to_str.
3686
3687 2020-08-28 Tom Tromey <tom@tromey.com>
3688
3689 * xcoffread.c (xcoff_end_psymtab): Update comment.
3690 * dbxread.c (dbx_end_psymtab): Update comment.
3691
3692 2020-08-28 Tom de Vries <tdevries@suse.de>
3693
3694 PR breakpoint/26544
3695 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3696 event_location.
3697 (create_breakpoint): Same.
3698 (base_breakpoint_decode_location): Same.
3699 (bkpt_create_sals_from_location): Same.
3700 (bkpt_decode_location): Same.
3701 (bkpt_probe_create_sals_from_location): Same.
3702 (bkpt_probe_decode_location): Same.
3703 (tracepoint_create_sals_from_location): Same.
3704 (tracepoint_decode_location): Same.
3705 (tracepoint_probe_decode_location): Same.
3706 (strace_marker_create_sals_from_location): Same.
3707 (strace_marker_decode_location): Same.
3708 (create_sals_from_location_default): Same.
3709 (decode_location_default): Same.
3710 * breakpoint.h (struct breakpoint_ops): Same.
3711 (create_breakpoint): Same.
3712 * linespec.h (decode_line_full): Same.
3713 * linespec.c (decode_line_full): Same. Throw error if
3714 result.size () == 0.
3715
3716 2020-08-27 Pedro Alves <pedro@palves.net>
3717
3718 PR gdb/26524
3719 * breakpoint.c (until_break_fsm) <location_breakpoint,
3720 caller_breakpoint>: Delete fields.
3721 <breakpoints>: New field.
3722 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3723 two individual breakpoints.
3724 (until_break_fsm::should_stop): Loop over breakpoints in the
3725 breakpoint vector.
3726 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3727 vector.
3728 (until_break_command): Handle location expanding into multiple
3729 sals.
3730
3731 2020-08-27 Pedro Alves <pedro@palves.net>
3732
3733 PR gdb/26523
3734 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3735 bp_until breakpoints user-specified locations. Update intro
3736 comment.
3737
3738 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3739
3740 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3741 gdb_bfd_sections): New.
3742 * maint.c (print_bfd_section_info): Change param type to
3743 maint_print_section_data.
3744 (print_objfile_section_info): Likewise.
3745 (print_bfd_section_info_maybe_relocated): Likewise.
3746 (maintenance_info_sections): Use gdb_bfd_sections.
3747
3748 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3749
3750 * MAINTAINERS: Add ARC target and maintainer.
3751
3752 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3753
3754 * configure.tgt: ARC support for GNU/Linux.
3755 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3756 * arc-linux-tdep.c: New file.
3757 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3758 * arc-tdep.c (arc_write_pc): Use it.
3759
3760 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3761
3762 * arc-tdep.c (arc_check_for_hardware_loop): New.
3763 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3764
3765 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3766
3767 * arc-tdep.h: Include "gdbarch.h".
3768
3769 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3770
3771 * arch/arc.h
3772 (arc_gdbarch_features): New class to stir the selection of target XML.
3773 (arc_create_target_description): Use FEATURES to choose XML target.
3774 (arc_lookup_target_description): Use arc_create_target_description
3775 to create _new_ target descriptions or return the already created
3776 ones if the FEATURES is the same.
3777 * arch/arc.c: Implementation of prototypes described above.
3778 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3779 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3780 * arc-tdep.c (*_feature_name): Make feature names consistent.
3781 (arc_register_feature): A new struct to hold information about
3782 registers of a particular target/feature.
3783 (arc_check_tdesc_feature): Check if XML provides registers in
3784 compliance with ARC_REGISTER_FEATURE structs.
3785 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3786 (determine_*_reg_feature_set): Which feature name to look for.
3787 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3788 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3789 to expected ISA enums to be used in arc_gdbarch_features structs.
3790 * features/Makefile (FEATURE_XMLFILES): Add new files.
3791 * gdb/features/arc/v1-aux.c: New file.
3792 * gdb/features/arc/v1-aux.xml: Likewise.
3793 * gdb/features/arc/v1-core.c: Likewise.
3794 * gdb/features/arc/v1-core.xml: Likewise.
3795 * gdb/features/arc/v2-aux.c: Likewise.
3796 * gdb/features/arc/v2-aux.xml: Likewise.
3797 * gdb/features/arc/v2-core.c: Likewise.
3798 * gdb/features/arc/v2-core.xml: Likewise.
3799 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3800
3801 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3802 Andrew Burgess <andrew.burgess@embecosm.com>
3803
3804 PR m2/26372
3805 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3806 an assert. Remove single element array indexing pattern as the
3807 MULTI_SUBSCRIPT support will handle this case too.
3808
3809 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3810
3811 * value.h (valprint_check_validity): Move declaration from
3812 here...
3813 * valprint.h (valprint_check_validity): ... to here.
3814
3815 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3816
3817 * debug.h: New file.
3818 * debug.c (debug_prefixed_vprintf): New function.
3819 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3820 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3821
3822 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3823
3824 * infrun.h (infrun_debug_printf_1): New function declaration.
3825 (infrun_debug_printf): New macro.
3826 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3827 throughout.
3828 (infrun_debug_printf): New function.
3829 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3830 (handle_jit_event): Likewise.
3831
3832 2020-08-21 Mark Wielaard <mark@klomp.org>
3833
3834 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3835
3836 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3837
3838 * frame.c (enum class frame_id_status): New.
3839 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3840 (fprintf_frame): Update.
3841 (compute_frame_id): Set frame id status to "computing" on entry.
3842 Set it back to "not_computed" on failure and to "computed" on
3843 success.
3844 (get_frame_id): Assert the frame id is not being computed.
3845 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3846 (create_new_frame): Likewise.
3847 (frame_cleanup_after_sniffer): Update assert.
3848
3849 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3850
3851 * regcache.c (pid_ptid_regcache_map): New type.
3852 (target_ptid_regcache_map): Remove.
3853 (target_pid_ptid_regcache_map): New type.
3854 (regcaches): Change type to target_pid_ptid_regcache_map.
3855 (get_thread_arch_aspace_regcache): Update.
3856 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3857 case.
3858 (regcaches_size): Update.
3859 (regcache_count): Update.
3860 (registers_changed_ptid_target_pid_test): New.
3861 (_initialize_regcache): Register new test.
3862
3863 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3864
3865 * regcache.c (regcache_count): New.
3866 (struct regcache_test_data): New.
3867 (regcache_test_data_up): New.
3868 (populate_regcaches_for_test): New.
3869 (regcaches_test): Remove.
3870 (get_thread_arch_aspace_regcache_test): New.
3871 (registers_changed_ptid_all_test): New.
3872 (registers_changed_ptid_target_test): New.
3873 (registers_changed_ptid_target_ptid_test): New.
3874 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3875 (_initialize_regcache): Register new tests.
3876
3877 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3878
3879 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3880 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3881 gdbarch and aspace parameter. Use current inferior's aspace.
3882 Validate regcache's arch value.
3883 (regcaches_test): Update.
3884
3885 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3886
3887 * regcache.c (regcaches_test): Call registers_changed.
3888
3889 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3890
3891 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3892
3893 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3894
3895 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3896 to find the end of prologue for flang compiled binaries.
3897 * arm-tdep.c (arm_skip_prologue): Likewise.
3898 * i386-tdep.c (i386_skip_prologue): Likewise.
3899 * producer.c (producer_is_llvm): New function.
3900 (producer_parsing_tests): Added new tests for clang/flang.
3901 * producer.h (producer_is_llvm): New declaration.
3902
3903 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3904
3905 * linux-nat.c (linux_nat_debug_printf): New function.
3906 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3907
3908 2020-08-18 Aaron Merey <amerey@redhat.com>
3909
3910 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3911 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3912 (CLIBS): Add DEBUGINFOD_LIBS.
3913
3914 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3915
3916 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3917 'gdbarch_num_regs'.
3918
3919 2020-08-17 Tom Tromey <tromey@adacore.com>
3920
3921 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3922 ada_get_decoded_value returns NULL.
3923
3924 2020-08-17 Tom Tromey <tromey@adacore.com>
3925
3926 * python/py-inferior.c (infpy_search_memory): Use
3927 gdb_py_object_from_ulongest.
3928 * python/py-infevents.c (create_inferior_call_event_object)
3929 (create_memory_changed_event_object): Use
3930 gdb_py_object_from_ulongest.
3931 * python/py-linetable.c (ltpy_entry_get_pc): Use
3932 gdb_py_object_from_ulongest.
3933
3934 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3935
3936 * loc.c (class symbol_needs_eval_context): Fix indentation.
3937
3938 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3939
3940 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3941 bool.
3942
3943 2020-08-17 Tom de Vries <tdevries@suse.de>
3944
3945 PR gdb/26393
3946 * gdbtypes.c (dump_dynamic_prop): New function.
3947 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3948
3949 2020-08-15 Tom de Vries <tdevries@suse.de>
3950
3951 PR backtrace/26390
3952 * stack.c (print_frame_args): Temporarily set the selected
3953 frame to FRAME while printing the frame's arguments.
3954
3955 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3956
3957 PR breakpoints/26385
3958 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3959 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3960
3961 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3962
3963 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3964 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3965 and >= to check return value instead of == -1 and != -1.
3966
3967 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3968
3969 * utils.h (class gdb_argv) <as_array_view>: New method.
3970 * utils.c (gdb_argv_as_array_view_test): New.
3971 (_initialize_utils): Register selftest.
3972 * maint.c (maintenance_selftest): Use the new method.
3973
3974 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3975
3976 * target.h (supports_dumpcore, dumpcore): New
3977 function declarations.
3978 * target.c (supports_dumpcore, dumpcore): New
3979 functions.
3980 * target-delegates.c: Rebuild.
3981 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3982 and target_dumpcore ().
3983
3984 2020-08-13 Aaron Merey <amerey@redhat.com>
3985
3986 * debuginfod-support.c: Replace global variables with user_data.
3987
3988 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3989
3990 * maint.c (maintenance_selftest): Split args and pass array_view
3991 to run_tests.
3992
3993 2020-08-12 Luis Machado <luis.machado@linaro.org>
3994
3995 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3996 type's length.
3997 Use %s and pulongest to print the length.
3998
3999 2020-08-12 Pedro Alves <palves@redhat.com>
4000
4001 * NEWS: Move "Multi-target debugging support" item to the
4002 "Changes since GDB 9" section.
4003
4004 2020-08-12 Pedro Alves <palves@redhat.com>
4005
4006 PR gdb/26336
4007 * progspace.c (program_space::remove_objfile): Invalidate the
4008 frame cache.
4009
4010 2020-08-11 Tom de Vries <tdevries@suse.de>
4011
4012 * MAINTAINERS: Mark ms1 as deleted.
4013
4014 2020-08-10 Luis Machado <luis.machado@linaro.org>
4015
4016 PR gdb/26310
4017
4018 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4019 act accordingly.
4020 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4021 movz/str/stur/stp skipping behavior.
4022
4023 2020-08-10 Luis Machado <luis.machado@linaro.org>
4024
4025 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4026 struct user_sve_header instead of struct sve_context.
4027
4028 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4029
4030 * read.h (dwarf2_fetch_die_loc_sect_off,
4031 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4032 `void *` parameter with function_view.
4033 * read.c (dwarf2_fetch_die_loc_sect_off,
4034 dwarf2_fetch_die_loc_cu_off): Likewise.
4035 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4036 (per_cu_dwarf_call): Adjust.
4037 (get_frame_address_in_block_wrapper): Remove.
4038 (indirect_synthetic_pointer): Adjust.
4039 (get_ax_pc): Remove.
4040 (dwarf2_compile_expr_to_ax): Adjust.
4041
4042 2020-08-08 Tom de Vries <tdevries@suse.de>
4043
4044 PR build/26344
4045 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4046 constructor.
4047 * regcache.c (get_thread_arch_aspace_regcache): Same.
4048
4049 2020-08-07 Tom Tromey <tromey@adacore.com>
4050
4051 * ravenscar-thread.c
4052 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4053 New method.
4054 (ravenscar_thread_target::wait): Check
4055 runtime_initialized.
4056 (ravenscar_thread_target::prepare_to_store)
4057 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4058 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4059 (ravenscar_thread_target::stopped_by_watchpoint)
4060 (ravenscar_thread_target::stopped_data_address)
4061 (ravenscar_thread_target::core_of_thread): Use
4062 scoped_restore_current_thread and
4063 set_base_thread_from_ravenscar_task.
4064
4065 2020-08-07 Tom Tromey <tromey@adacore.com>
4066
4067 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4068
4069 2020-08-07 Tom Tromey <tromey@adacore.com>
4070
4071 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4072 update_inferior_ptid before update_thread_list.
4073 (temporarily_change_regcache_ptid): New class.
4074 (ravenscar_thread_target::fetch_registers)
4075 (ravenscar_thread_target::store_registers)
4076 (ravenscar_thread_target::prepare_to_store): Use base thread when
4077 forwarding operation.
4078
4079 2020-08-07 Tom Tromey <tromey@adacore.com>
4080
4081 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4082 "is_pid" case.
4083
4084 2020-08-07 Tom Tromey <tromey@adacore.com>
4085
4086 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4087 New methods.
4088 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4089 first.
4090 (ravenscar_thread_target::add_thread): Rename from
4091 ravenscar_add_thread.
4092 (ravenscar_thread_target::update_thread_list): Use a lambda.
4093 (ravenscar_thread_target::xfer_partial): New method.
4094
4095 2020-08-07 Tom Tromey <tromey@adacore.com>
4096
4097 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4098 gdb::function_view.
4099 (iterate_over_live_ada_tasks): Change type of argument.
4100 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4101 of argument.
4102
4103 2020-08-07 Tom Tromey <tromey@adacore.com>
4104
4105 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4106 Remove.
4107 (ravenscar_thread_target::extra_thread_info): Remove.
4108 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4109 defer to target beneath for non-Ravenscar threads.
4110
4111 2020-08-07 Tom Tromey <tromey@adacore.com>
4112
4113 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4114 get_base_thread_from_ravenscar_task>: Now methods.
4115 <m_cpu_map>: New member.
4116 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4117 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4118 (ravenscar_thread_target::task_is_currently_active): Update.
4119 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4120 Now a method.
4121 (ravenscar_thread_target::add_active_thread): Put initial thread
4122 into the m_cpu_map.
4123
4124 2020-08-07 Tom Tromey <tromey@adacore.com>
4125
4126 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4127 event_ptid.
4128
4129 2020-08-07 Tom Tromey <tromey@adacore.com>
4130
4131 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4132 runtime_initialized.
4133
4134 2020-08-07 Tom Tromey <tromey@adacore.com>
4135
4136 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4137 add_active_thread.
4138 (ravenscar_thread_target::add_active_thread): Now public.
4139 (ravenscar_inferior_created): Call add_active_thread after pushing
4140 the target.
4141
4142 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4143
4144 * regcache.c (ptid_regcache_map): New type.
4145 (target_ptid_regcache_map): New type.
4146 (regcaches): Change type to target_ptid_regcache_map.
4147 (get_thread_arch_aspace_regcache): Update to regcaches' new
4148 type.
4149 (regcache_thread_ptid_changed): Likewise.
4150 (registers_changed_ptid): Likewise.
4151 (regcaches_size): Likewise.
4152 (regcaches_test): Update.
4153 (regcache_thread_ptid_changed): Update.
4154 * regcache.h (regcache_up): New type.
4155 * gdbsupport/ptid.h (hash_ptid): New struct.
4156
4157 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4158
4159 * observable.h (thread_ptid_changed): Add parameter
4160 `process_stratum_target *`.
4161 * infrun.c (infrun_thread_ptid_changed): Add parameter
4162 `process_stratum_target *` and use it.
4163 (selftests): New namespace.
4164 (infrun_thread_ptid_changed): New function.
4165 (_initialize_infrun): Register selftest.
4166 * regcache.c (regcache_thread_ptid_changed): Add parameter
4167 `process_stratum_target *` and use it.
4168 (regcache_thread_ptid_changed): New function.
4169 (_initialize_regcache): Register selftest.
4170 * thread.c (thread_change_ptid): Pass target to
4171 thread_ptid_changed observable.
4172
4173 2020-08-06 Caroline Tice <cmtice@google.com>
4174
4175 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4176 (struct dwp_sections): Update field comments. Add loclists and
4177 rnglists fields.
4178 (struct virtual_v2_dwo_sections): Rename struct to
4179 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4180 size & offset fields for loclists and rnglists.
4181 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4182 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4183 skipping dummy type units.
4184 (create_dwp_hash_table): Update the large comment above the function to
4185 discuss Version 5 DWP files as well, with references. Update all the
4186 version checks in the function to check for version 5 as well. Add new
4187 section at the end to create dwp hash table for version 5.
4188 (create_dwp_v2_section): Rename function to
4189 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4190 Add V5 to error message text.
4191 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4192 into calls to create_dwp_v2_or_v5_section.
4193 (create_dwo_unit_in_dwp_v5): New function.
4194 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4195 check for version2; add else clause to handle version 5.
4196 (open_and_init_dwo_file): Add code to check dwarf version & only call
4197 create_debug_types_hash_table (with sections.types) if version is not 5;
4198 else call create_debug_type_hash_table, with sections.info.
4199 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4200 version 5.
4201 (dwarf2_locate_v5_dwp_sections): New function.
4202 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4203 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4204
4205 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4206
4207 * regcache.h (class regcache): Remove friend
4208 registers_changed_ptid.
4209 <regcache_thread_ptid_changed>: Remove.
4210 <regcaches>: Remove.
4211 * regcache.c (regcache::regcaches): Rename to...
4212 (regcaches): ... this. Make static.
4213 (get_thread_arch_aspace_regcache): Update.
4214 (regcache::regcache_thread_ptid_changed): Rename to...
4215 (regcache_thread_ptid_changed): ... this. Update.
4216 (class regcache_access): Remove.
4217 (regcaches_test): Update.
4218 (_initialize_regcache): Update.
4219 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4220 <forward_list>.
4221
4222 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4223
4224 * regcache.h (class regcache) <current_regcache>: Rename to...
4225 <regcaches>: ... this. Move doc here.
4226 * regcache.c (regcache::current_regcache) Rename to...
4227 (regcache::regcaches): ... this. Move doc to header.
4228 (get_thread_arch_aspace_regcache): Update.
4229 (regcache::regcache_thread_ptid_changed): Update.
4230 (registers_changed_ptid): Update.
4231 (class regcache_access) <current_regcache_size>: Rename to...
4232 <regcaches_size>: ... this.
4233 (current_regcache_test): Rename to...
4234 (regcaches_test): ... this.
4235 (_initialize_regcache): Update.
4236
4237 2020-08-06 Victor Collod <vcollod@nvidia.com>
4238
4239 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4240
4241 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4242
4243 * corelow.c (core_target::build_file_mappings): Don't output
4244 null pathname in warning.
4245
4246 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4247
4248 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4249 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4250 gdb.dwarf2/dw2-single-line-discriminators.exp,
4251 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4252
4253 2020-08-05 Tom Tromey <tromey@adacore.com>
4254
4255 PR rust/26197:
4256 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4257 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4258 Fix off-by-one and type size errors in ordinary case.
4259
4260 2020-08-05 Tom de Vries <tdevries@suse.de>
4261
4262 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4263 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4264
4265 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4266
4267 * frame.h (frame_id_p): Return bool.
4268 (frame_id_artificial_p): Return bool.
4269 (frame_id_eq): Return bool.
4270 (has_stack_frames): Return bool.
4271 (get_selected_frame): Fix typo in comment.
4272 (get_frame_pc_if_available): Return bool.
4273 (get_frame_address_in_block_if_available): Return bool.
4274 (get_frame_func_if_available): Return bool.
4275 (read_frame_register_unsigned): Return bool.
4276 (get_frame_register_bytes): Return bool.
4277 (safe_frame_unwind_memory): Return bool.
4278 (deprecated_frame_register_read): Return bool.
4279 (frame_unwinder_is): Return bool.
4280 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4281 bool.
4282 <this_id::p>: Likewise.
4283 <prev_p>: Likewise.
4284 (frame_stash_add): Return bool.
4285 (get_frame_id): Use bool.
4286 (frame_id_build_special) Use bool.
4287 (frame_id_build_unavailable_stack): Use bool.
4288 (frame_id_build): Use bool.
4289 (frame_id_p): Return bool, use true/false instead of 1/0.
4290 (frame_id_artificial_p): Likewise.
4291 (frame_id_eq): Likewise.
4292 (frame_id_inner): Likewise.
4293 (get_frame_func_if_available): Likewise.
4294 (read_frame_register_unsigned): Likewise.
4295 (deprecated_frame_register_read): Likewise.
4296 (get_frame_register_bytes): Likewise.
4297 (has_stack_frames): Likewise.
4298 (inside_main_func): Likewise.
4299 (inside_entry_func): Likewise.
4300 (get_frame_pc_if_available): Likewise.
4301 (get_frame_address_in_block_if_available): Likewise.
4302 (frame_unwinder_is): Likewise.
4303 (safe_frame_unwind_memory): Likewise.
4304 (frame_unwind_arch): Likewise.
4305
4306 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4307
4308 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4309 type to cached_copy_status.
4310 (fprintf_frame): Adjust.
4311 (get_frame_func_if_available): Adjust.
4312 (frame_cleanup_after_sniffer): Adjust.
4313
4314 2020-08-04 Mark Wielaard <mark@klomp.org>
4315
4316 * MAINTAINERS (Write After Approval): Update email address.
4317
4318 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4319
4320 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4321 dynamic_prop::const_val.
4322
4323 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4324
4325 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4326 dynamic_prop::kind.
4327
4328 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4329
4330 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4331
4332 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4333
4334 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4335
4336 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4337 Jose E. Marchesi <jose.marchesi@oracle.com>
4338
4339 * configure.tgt: Add entry for bpf-*-*.
4340 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4341 (ALLDEPFILES): Add bpf-tdep.c.
4342 * bpf-tdep.c: New file.
4343 * MAINTAINERS: Add bpf target and maintainer.
4344 * NEWS: Mention the support for the new target.
4345
4346 2020-08-04 Tom de Vries <tdevries@suse.de>
4347
4348 PR symtab/23270
4349 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4350 Error.
4351
4352 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4353
4354 * syscalls/freebsd.xml: Regenerate.
4355
4356 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4357
4358 * syscalls/update-freebsd.sh: Fix usage and year range.
4359
4360 2020-08-03 Tom de Vries <tdevries@suse.de>
4361
4362 PR symtab/26333
4363 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4364 DW_LNE_lo_user/DW_LNE_hi_user range.
4365
4366 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4367
4368 PR ada/26318
4369 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4370 kind.
4371
4372 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4373
4374 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4375
4376 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4377
4378 * breakpoint.c (set_breakpoint_condition): Update the condition
4379 expressions after checking that the input condition string parses
4380 successfully and does not contain junk at the end.
4381
4382 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4383
4384 * breakpoint.c (set_breakpoint_condition): Update the
4385 condition string after parsing the new condition successfully.
4386
4387 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4388
4389 * proc-api.c (_STRUCTURED_PROC): Don't define.
4390 * proc-events.c: Likewise.
4391 * proc-flags.c: Likewise.
4392 * proc-why.c: Likewise.
4393 * procfs.c: Likewise.
4394
4395 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4396 * configure, config.in: Regenerate.
4397
4398 2020-07-30 Tom de Vries <tdevries@suse.de>
4399
4400 PR build/26320
4401 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4402 m_red/m_green/m_blue in a union.
4403
4404 2020-07-29 Tom de Vries <tdevries@suse.de>
4405
4406 PR tdep/26280
4407 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4408
4409 2020-07-28 Tom Tromey <tromey@adacore.com>
4410
4411 PR symtab/26270:
4412 * symtab.h (find_pc_partial_function_sym): Declare.
4413 * cli/cli-cmds.c (disassemble_command): Use
4414 find_pc_partial_function_sym. Check asm_demangle.
4415 * blockframe.c (cache_pc_function_sym): New global.
4416 (cache_pc_function_name): Remove.
4417 (clear_pc_function_cache): Update.
4418 (find_pc_partial_function_sym): New function, from
4419 find_pc_partial_function.
4420 (find_pc_partial_function): Rewrite using
4421 find_pc_partial_function_sym.
4422
4423 2020-07-28 Tom Tromey <tromey@adacore.com>
4424
4425 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4426 help. Add usage.
4427
4428 2020-07-28 Tom Tromey <tromey@adacore.com>
4429
4430 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4431 <DW_OP_GNU_variable_value>: Cast to address type.
4432
4433 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4434
4435 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4436 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4437 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4438 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4439 (nbsd_get_siginfo_type): New.
4440 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4441 (_initialize_nbsd_tdep): New.
4442
4443 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4444
4445 PR binutils/26301
4446 * configure: Regenerated.
4447
4448 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4449
4450 PR binutils/26301
4451 * configure: Regenerated.
4452
4453 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4454
4455 * python/py-frame.c: Remove 'user-regs.h' include.
4456 (frapy_read_register): Rewrite to make use of
4457 gdbpy_parse_register_id.
4458 * python/py-registers.c (gdbpy_parse_register_id): New function,
4459 moved here from python/py-unwind.c. Updated the return type, and
4460 also accepts register descriptor objects.
4461 * python/py-unwind.c: Remove 'user-regs.h' include.
4462 (pyuw_parse_register_id): Moved to python/py-registers.c.
4463 (unwind_infopy_add_saved_register): Update to use
4464 gdbpy_parse_register_id.
4465 (pending_framepy_read_register): Likewise.
4466 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4467
4468 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4469
4470 * python/py-registers.c: Add 'user-regs.h' include.
4471 (register_descriptor_iter_find): New function.
4472 (register_descriptor_iterator_object_methods): New static global
4473 methods array.
4474 (register_descriptor_iterator_object_type): Add pointer to methods
4475 array.
4476
4477 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4478
4479 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4480 for all architectures on FreeBSD 11.3 and later.
4481
4482 2020-07-27 Tom Tromey <tromey@adacore.com>
4483
4484 * gcore.h (load_corefile): Don't declare.
4485
4486 2020-07-27 Tom de Vries <tdevries@suse.de>
4487
4488 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4489 * config.in: Regenerate.
4490 * configure: Regenerate.
4491
4492 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4493
4494 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4495 ws2tcpip.h. When checking whether socklen_t type is defined, use
4496 ws2tcpip.h if it is available and sys/socket.h isn't.
4497 * configure: Regenerate.
4498 * config.in: Regenerate.
4499
4500 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4501
4502 PR fortran/23051
4503 PR fortran/26139
4504 * valops.c (value_ind): Pass address to
4505 readjust_indirect_value_type.
4506 * value.c (readjust_indirect_value_type): Make parameter
4507 non-const, and add extra address parameter. Resolve original type
4508 before using it.
4509 * value.h (readjust_indirect_value_type): Update function
4510 signature and comment.
4511
4512 2020-07-25 Tom de Vries <tdevries@suse.de>
4513
4514 PR symtab/26243
4515 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4516 entries.
4517
4518 2020-07-24 Aaron Merey <amerey@redhat.com>
4519
4520 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4521 * configure: Rebuild.
4522
4523 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4524
4525 PR corefiles/26294
4526 * corelow.c (_initialize_corelow): Add period to help text
4527 for "maintenance print core-file-backed-mappings".
4528
4529 2020-07-23 Pedro Alves <pedro@palves.net>
4530
4531 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4532 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4533 meanwhile.
4534 * frame.c (frame_cache_generation, get_frame_cache_generation):
4535 New.
4536 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4537 (get_prev_frame_if_no_cycle): On exception, don't touch
4538 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4539 * frame.h (get_frame_cache_generation): Declare.
4540
4541 2020-07-23 Tom de Vries <tdevries@suse.de>
4542
4543 PR tui/26282
4544 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4545 New default constructor.
4546
4547 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4548
4549 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4550 exclude non-statement entries.
4551
4552 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4553
4554 * NEWS (New commands): Mention new command
4555 "maintenance print core-file-backed-mappings".
4556
4557 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4558
4559 * corelow.c (gdbcmd.h): Include.
4560 (core_target::info_proc_mappings): New method.
4561 (get_current_core_target): New function.
4562 (maintenance_print_core_file_backed_mappings): New function.
4563 (_initialize_corelow): Add core-file-backed-mappings to
4564 "maint print" commands.
4565
4566 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4567
4568 * linux-tdep.c (dump_note_entry_p): New function.
4569 (linux_dump_mapping_p_ftype): New typedef.
4570 (linux_find_memory_regions_full): Add new parameter,
4571 should_dump_mapping_p.
4572 (linux_find_memory_regions): Adjust call to
4573 linux_find_memory_regions_full.
4574 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4575 call to linux_find_memory_regions_full.
4576
4577 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4578
4579 * corelow.c (solist.h, unordered_map): Include.
4580 (class core_target): Add field m_core_file_mappings and
4581 method build_file_mappings.
4582 (core_target::core_target): Call build_file_mappings.
4583 (core_target::~core_target): Free memory associated with
4584 m_core_file_mappings.
4585 (core_target::build_file_mappings): New method.
4586 (core_target::xfer_partial): Use m_core_file_mappings
4587 for memory transfers.
4588 * linux-tdep.c (linux_read_core_file_mappings): New
4589 function.
4590 (linux_core_info_proc_mappings): Rewrite to use
4591 linux_read_core_file_mappings.
4592 (linux_init_abi): Register linux_read_core_file_mappings.
4593
4594 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4595
4596 * arch-utils.c (default_read_core_file_mappings): New function.
4597 * arch-utils.c (default_read_core_file_mappings): Declare.
4598 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4599 * gdbarch.h, gdbarch.c: Regenerate.
4600
4601 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4602
4603 PR corefiles/25631
4604 * corelow.c (core_target:xfer_partial): Revise
4605 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4606 case after first checking the stratum beneath the core
4607 target.
4608 (has_all_memory): Return true.
4609 * target.c (raw_memory_xfer_partial): Revise comment
4610 regarding use of has_all_memory.
4611
4612 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4613
4614 * exec.h (section_table_xfer_memory): Revise declaration,
4615 replacing section name parameter with an optional callback
4616 predicate.
4617 * exec.c (section_table_xfer_memory): Likewise.
4618 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4619 of section_table_xfer_memory.
4620
4621 2020-07-22 Tom Tromey <tromey@adacore.com>
4622
4623 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4624 lookup_symbol_search_name.
4625
4626 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4627
4628 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4629 redundant local variable.
4630 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4631 reference, not pointer, update code accordingly.
4632
4633 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4634 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4635
4636 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4637 * jit.c (jit_breakpoint_re_set_internal): Use the
4638 `skip_jit_symbol_lookup` field.
4639
4640 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4641 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4642
4643 * jit.c (jit_read_descriptor): Define the descriptor address once,
4644 use twice.
4645 (jit_breakpoint_deleted): Move the declaration of the loop variable
4646 `iter` into the loop header.
4647 (jit_breakpoint_re_set_internal): Move the declaration of the local
4648 variable `objf_data` to the first point of definition.
4649 (jit_event_handler): Move the declaration of local variables
4650 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4651 Rename `objf` to `jited`.
4652
4653 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4654
4655 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4656 Remove.
4657 * jit.c (get_jiter_objfile_data): Update.
4658
4659 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4660 Simon Marchi <simon.marchi@polymtl.ca>
4661
4662 * jit.c (struct jit_program_space_data): Remove.
4663 (jit_program_space_key): Remove.
4664 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4665 stuff.
4666 (get_jit_program_space_data): Remove.
4667 (jit_breakpoint_deleted): Iterate on all of the program space's
4668 objfiles.
4669 (jit_inferior_init): Likewise.
4670 (jit_breakpoint_re_set_internal): Likewise. Also change return
4671 type to void.
4672 (jit_breakpoint_re_set): Pass current_program_space to
4673 jit_breakpoint_re_set_internal.
4674
4675 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4676
4677 * jit.h (struct jiter_objfile_data) <cached_code_address,
4678 jit_breakpoint>: Move to here from ...
4679 * jit.c (jit_program_space_data): ... here.
4680 (jiter_objfile_data::~jiter_objfile_data): Update.
4681 (jit_breakpoint_deleted): Update.
4682 (jit_breakpoint_re_set_internal): Update.
4683
4684 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4685
4686 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4687 checks.
4688 (jit_read_descriptor): Remove NULL check.
4689 (jit_event_handler): Add an assertion.
4690
4691 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4692
4693 * jit.h (struct jit_objfile_data): Split into...
4694 (struct jiter_objfile_data): ... this ...
4695 (struct jited_objfile_data): ... and this.
4696 * objfiles.h (struct objfile) <jit_data>: Remove.
4697 <jiter_data, jited_data>: New fields.
4698 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4699 (jiter_objfile_data::~jiter_objfile_data): ... this.
4700 (get_jit_objfile_data): Rename to ...
4701 (get_jiter_objfile_data): ... this.
4702 (add_objfile_entry): Update.
4703 (jit_read_descriptor): Use get_jiter_objfile_data.
4704 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4705 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4706 (jit_inferior_exit_hook): Use objfile's jited_data field.
4707
4708 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4709
4710 * jit.h: Forward-declare `struct minimal_symbol`.
4711 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4712 constructor, destructor, and an objfile* field.
4713 * jit.c (jit_objfile_data): Remove.
4714 (struct jit_objfile_data): Migrate from here to jit.h.
4715 (jit_objfile_data::~jit_objfile_data): New destructor
4716 implementation with code moved from free_objfile_data.
4717 (free_objfile_data): Delete.
4718 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4719 (jit_find_objf_with_entry_addr): Ditto.
4720 (jit_inferior_exit_hook): Ditto.
4721 (_initialize_jit): Remove the call to
4722 register_objfile_data_with_cleanup.
4723 * objfiles.h (struct objfile) <jit_data>: New field.
4724
4725 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4726
4727 * jit.h: Forward-declare `struct objfile`.
4728 (jit_event_handler): Add a second parameter, the JITer objfile.
4729 * jit.c (jit_read_descriptor): Change the signature to take the
4730 JITer objfile as an argument instead of the jit_program_space_data.
4731 (jit_inferior_init): Update the call to jit_read_descriptor.
4732 (jit_event_handler): Use the new JITer objfile argument when calling
4733 jit_read_descriptor.
4734 * breakpoint.c (handle_jit_event): Update the call to
4735 jit_event_handler to pass the JITer objfile.
4736
4737 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4738
4739 * gdbarch.c: Regenerate.
4740 * gdbarch.h: Regenerate.
4741 * gdbarch.sh (handle_segmentation_fault): Remove method.
4742 * infrun.c (handle_segmentation_fault): Remove.
4743 (print_signal_received_reason): Remove call to
4744 handle_segmentation_fault.
4745
4746 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4747
4748 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4749 Rename to sparc64_linux_report_signal_info and add siggnal
4750 argument.
4751 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4752 instead of sparc64_linux_handle_segmentation_fault.
4753
4754 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4755
4756 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4757 i386_linux_report_signal_info instead of
4758 i386_linux_handle_segmentation_fault.
4759 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4760 to i386_linux_report_signal_info and add siggnal argument.
4761 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4762 of i386_linux_handle_segmentation_fault.
4763 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4764 to i386_linux_report_signal_info and add siggnal argument.
4765
4766 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4767
4768 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4769 hook if present.
4770
4771 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4772
4773 * gdbarch.c: Regenerate.
4774 * gdbarch.h: Regenerate.
4775 * gdbarch.sh (report_signal_info): New method.
4776 * infrun.c (print_signal_received_reason): Invoke gdbarch
4777 report_signal_info hook if present.
4778
4779 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4780
4781 * python/py-registers.c : Add 'unordered_map' include.
4782 (gdbpy_new_reggroup): Renamed to...
4783 (gdbpy_get_reggroup): ...this. Update to only create register
4784 group descriptors when needed.
4785 (gdbpy_reggroup_iter_next): Update.
4786
4787 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4788
4789 * python/py-registers.c (gdbpy_register_object_data): New static
4790 global.
4791 (gdbpy_register_object_data_init): New function.
4792 (gdbpy_new_register_descriptor): Renamed to...
4793 (gdbpy_get_register_descriptor): ...this, and update to reuse
4794 existing register descriptors where possible.
4795 (gdbpy_register_descriptor_iter_next): Update.
4796 (gdbpy_initialize_registers): Register new gdbarch data.
4797
4798 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4799
4800 * linux-nat.c (stopped_pids): Make static.
4801
4802 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4803
4804 PR ada/26235
4805 * gdbtypes.c (ada_discrete_type_low_bound,
4806 ada_discrete_type_high_bound): Handle undefined bounds.
4807
4808 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4809
4810 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4811 declaration.
4812 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4813 function.
4814
4815 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4816
4817 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4818 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4819 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4820 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4821 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4822 method.
4823
4824 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4825
4826 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4827 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4828 which are deprecated in Guile 3.0.
4829 * configure.ac (try_guile_versions): Add "guile-3.0".
4830 * configure (try_guile_versions): Regenerate.
4831 * NEWS: Update entry.
4832
4833 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4834 Doug Evans <dje@google.com>
4835
4836 PR gdb/21104
4837 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4838 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4839 USING_GUILE_BEFORE_2_2.
4840 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4841 Change type to 'scm_t_port_type *'.
4842 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4843 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4844 parameter and honor it. Update callers.
4845 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4846 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4847 functions.
4848 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4849 USING_GUILE_BEFORE_2_2.
4850 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4851 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4852 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4853 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4854 and 'SCM_PORT_TYPE'.
4855 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4856 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4857 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4858 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4859 [!USING_GUILE_BEFORE_2_2]: New functions.
4860 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4861 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4862 'gdbscm_memory_port_read'.
4863 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4864 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4865 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4866 function.
4867 (ioscm_init_memory_port): Remove.
4868 (ioscm_init_memory_port_stream): New function
4869 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4870 function.
4871 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4872 Return scm_from_uint (0).
4873 (gdbscm_set_memory_port_read_buffer_size_x)
4874 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4875 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4876 Return scm_from_uint (0).
4877 (gdbscm_set_memory_port_write_buffer_size_x)
4878 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4879 * configure.ac (try_guile_versions): Add "guile-2.2".
4880 * configure: Regenerate.
4881 * NEWS: Add entry.
4882
4883 2020-07-18 Tom Tromey <tom@tromey.com>
4884
4885 * linux-nat.c (linux_multi_process): Remove.
4886 (linux_nat_target::supports_multi_process): Return true.
4887
4888 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4889
4890 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4891 (riscv_lookup_target_description): Return pointer out of
4892 unique_ptr.
4893 * target-descriptions.c (allocate_target_description): Add
4894 comment.
4895 (target_desc_deleter::operator()): Likewise.
4896 * target-descriptions.h (struct target_desc_deleter): Moved to
4897 gdbsupport/tdesc.h.
4898 (target_desc_up): Likewise.
4899
4900 2020-07-17 Tom Tromey <tromey@adacore.com>
4901
4902 * linux-nat.c (linux_nat_target::supports_non_stop)
4903 (linux_nat_target::always_non_stop_p): Use "true".
4904 (linux_nat_target::supports_disable_randomization): Use "true" and
4905 "false".
4906
4907 2020-07-16 Caroline Tice <cmtice@google.com>
4908
4909 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4910 (RNGLIST_HEADER_SIZE64): New constant definition.
4911 (struct dwop_section_names): Add rnglists_dwo.
4912 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4913 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4914 (struct dwo_sections): Add rnglists field.
4915 (read_attribut_reprocess): Add tag parameter.
4916 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4917 (cu_debug_rnglists_section): New function (decl & definition).
4918 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4919 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4920 die whose range is being checked; get rnglist section from
4921 cu_debug_rnglists_section, to get from either objfile or dwo file as
4922 appropriate. Add cases for DW_RLE_base_addressx,
4923 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4924 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4925 test inside if-condition and updating complaint message.
4926 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4927 dwarf2_rnglists_process.
4928 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4929 dwarf2_ranges_process.
4930 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4931 need_ranges_base and update comment appropriately. Also pass die tag
4932 to dwarf2_ranges_read.
4933 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4934 need_ranges_base and update comment appropriately. Also pass die tag
4935 to dwarf2_ranges_process.
4936 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4937 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4938 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4939 need_ranges_base and update comment appropriately. Also pass die tag
4940 to read_attribute_reprocess and dwarf2_ranges_read.
4941 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4942 and update function comment appropriately.
4943 (read_loclist_index): Call read_loclists_rnglists_header instead of
4944 read_loclist_header.
4945 (read_rnglist_index): New function.
4946 (read_attribute_reprocess): Add tag parameter. Add code for
4947 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4948 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4949
4950 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4951
4952 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4953 being resolved.
4954
4955 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4956
4957 * arch-utils.c (show_architecture): Update formatting of messages.
4958
4959 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4960
4961 * gdbtypes.h (struct type) <bounds>: Handle array and string
4962 types.
4963 * ada-lang.c (assign_aggregate): Use type::bounds on
4964 array/string type.
4965 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4966 * c-varobj.c (c_number_of_children): Likewise.
4967 (c_describe_child): Likewise.
4968 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4969 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4970 (f_type_print_base): Likewise.
4971 * f-valprint.c (f77_array_offset_tbl): Likewise.
4972 (f77_get_upperbound): Likewise.
4973 (f77_print_array_1): Likewise.
4974 * guile/scm-type.c (gdbscm_type_range): Likewise.
4975 * m2-typeprint.c (m2_array): Likewise.
4976 (m2_is_long_set_of_type): Likewise.
4977 * m2-valprint.c (get_long_set_bounds): Likewise.
4978 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4979 * python/py-type.c (typy_range): Likewise.
4980 * rust-lang.c (rust_internal_print_type): Likewise.
4981 * type-stack.c (type_stack::follow_types): Likewise.
4982 * valarith.c (value_subscripted_rvalue): Likewise.
4983 * valops.c (value_cast): Likewise.
4984
4985 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4986
4987 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4988 callers to use the equivalent accessor methods.
4989
4990 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4991
4992 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4993 (struct type) <bit_stride>: New method.
4994 (TYPE_BIT_STRIDE): Remove.
4995 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4996
4997 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4998
4999 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5000 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5001 callers to use the equivalent accessor methods instead.
5002
5003 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5004
5005 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5006 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5007 callers to use the equivalent accessor methods instead.
5008
5009 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5010
5011 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5012 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5013 to use dynamic_prop::kind.
5014
5015 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5016
5017 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5018 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5019 to get the bound property's kind and check against
5020 PROP_UNDEFINED.
5021
5022 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5023
5024 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5025 all callers to use type::range_bounds followed by
5026 dynamic_prop::{low,high}.
5027
5028 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5029
5030 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5031 const_val, set_const_val, baton, set_locexpr, set_loclist,
5032 set_addr_offset, variant_parts, set_variant_parts,
5033 original_type, set_original_type>: New methods.
5034 <kind>: Rename to...
5035 <m_kind>: ... this. Update all users to use the new methods
5036 instead.
5037 <data>: Rename to...
5038 <m_data>: ... this. Update all users to use the new methods
5039 instead.
5040
5041 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5042
5043 * gdbtypes.c (get_discrete_bounds): Return failure if
5044 the range type's bounds are not both defined and constant
5045 values.
5046 (get_array_bounds): Update comment. Remove undefined bound check.
5047
5048 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5049
5050 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5051 the type::bounds method directly.
5052
5053 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5054
5055 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5056 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5057 are used to set the range type's bounds to use set_bounds.
5058
5059 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5060
5061 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5062
5063 2020-07-10 Pedro Alves <pedro@palves.net>
5064
5065 * gdbthread.h (inferior_ref): Define.
5066 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5067 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5068 * thread.c
5069 (scoped_restore_current_thread::restore):
5070 Adjust to gdb::ref_ptr.
5071 (scoped_restore_current_thread::~scoped_restore_current_thread):
5072 Remove manual decref handling.
5073 (scoped_restore_current_thread::scoped_restore_current_thread):
5074 Adjust to use
5075 inferior_ref::new_reference/thread_info_ref::new_reference.
5076 Incref the thread before calling get_frame_id instead of after.
5077 Let TARGET_CLOSE_ERROR propagate.
5078
5079 2020-07-10 Pedro Alves <pedro@palves.net>
5080
5081 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5082 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5083 NOT_AVAILABLE_ERROR.
5084 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5085 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5086
5087 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5088 Pedro Alves <pedro@palves.net>
5089
5090 PR gdb/26199
5091 * infrun.c (threads_are_resumed_pending_p): Delete.
5092 (do_target_wait): Remove threads_are_executing and
5093 threads_are_resumed_pending_p checks from the inferior_matches
5094 lambda. Update comments.
5095
5096 2020-07-10 Pedro Alves <pedro@palves.net>
5097
5098 PR gdb/26199
5099 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5100 executing threads.
5101
5102 2020-07-10 Pedro Alves <pedro@palves.net>
5103
5104 PR gdb/26199
5105 * infrun.c (handle_no_resumed): Handle multiple targets.
5106
5107 2020-07-10 Pedro Alves <pedro@palves.net>
5108
5109 PR gdb/26199
5110 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5111 target_is_async_p.
5112
5113 2020-07-10 Pedro Alves <pedro@palves.net>
5114
5115 PR gdb/26199
5116 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5117 threads, not all threads.
5118
5119 2020-07-10 Pedro Alves <pedro@palves.net>
5120
5121 PR gdb/26199
5122 * remote.c (remote_target::open_1): Pass remote target pointer as
5123 data to create_async_event_handler.
5124 (remote_async_inferior_event_handler): Mark async event handler
5125 before returning if the remote target still has either pending
5126 events or unacknowledged notifications.
5127
5128 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5129
5130 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5131 declaration.
5132 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5133 function.
5134
5135 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5136
5137 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5138 inferior_ptid.
5139
5140 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5141
5142 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5143 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5144 AT_FREEBSD_PS_STRINGS.
5145
5146 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5147
5148 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5149 of debugfile path on Windows.
5150
5151 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5152
5153 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5154 argument to 'data'.
5155
5156 2020-07-08 Tom Tromey <tromey@adacore.com>
5157
5158 * ada-lang.c (ada_exception_message_1): Use read_memory.
5159
5160 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5161
5162 PR python/22748
5163 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5164 special handling for inline frames.
5165 * findvar.c (value_of_register_lazy): Skip inline frames when
5166 creating lazy register values.
5167 * frame.c (frame_id_computed_p): Delete definition.
5168 * frame.h (frame_id_computed_p): Delete declaration.
5169
5170 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5171
5172 * NEWS: Mention additions to Python API.
5173 * python/py-arch.c (archpy_register_groups): New function.
5174 (arch_object_methods): Add 'register_groups' method.
5175 * python/py-registers.c (reggroup_iterator_object): New struct.
5176 (reggroup_object): New struct.
5177 (gdbpy_new_reggroup): New function.
5178 (gdbpy_reggroup_to_string): New function.
5179 (gdbpy_reggroup_name): New function.
5180 (gdbpy_reggroup_iter): New function.
5181 (gdbpy_reggroup_iter_next): New function.
5182 (gdbpy_new_reggroup_iterator): New function
5183 (gdbpy_initialize_registers): Register new types.
5184 (reggroup_iterator_object_type): Define new Python type.
5185 (gdbpy_reggroup_getset): New static global.
5186 (reggroup_object_type): Define new Python type.
5187 * python/python-internal.h
5188
5189 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5190
5191 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5192 * python/py-arch.c (archpy_registers): New function.
5193 (arch_object_methods): Add 'registers' method.
5194 * python/py-registers.c: New file.
5195 * python/python-internal.h
5196 (gdbpy_new_register_descriptor_iterator): Declare.
5197 (gdbpy_initialize_registers): Declare.
5198 * python/python.c (do_start_initialization): Call
5199 gdbpy_initialize_registers.
5200 * NEWS: Mention additions to the Python API.
5201
5202 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5203
5204 * NEWS: Mention new Python API method.
5205 * python/py-unwind.c (pending_framepy_architecture): New function.
5206 (pending_frame_object_methods): Add architecture method.
5207
5208 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5209
5210 * gdbarch.c: Regenerate.
5211 * gdbarch.h: Regenerate.
5212 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5213 (gdbarch_data): Use internal_error for the case where
5214 deprecated_set_gdbarch_data was originally needed.
5215 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5216 and use passed in obstack.
5217 (libunwind_frame_set_descr): Should no longer get back NULL from
5218 gdbarch_data.
5219 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5220 type.
5221 * user-regs.c (user_regs_init): Update parameters, and use passed
5222 in obstack.
5223 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5224 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5225
5226 2020-07-06 Tom de Vries <tdevries@suse.de>
5227
5228 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5229 End-Of-Sequence in lte_is_less_than.
5230 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5231 "gdb: Don't reorder line table entries too much when sorting".
5232
5233 2020-07-06 Tom de Vries <tdevries@suse.de>
5234
5235 PR tui/26205
5236 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5237
5238 2020-07-05 Tom de Vries <tdevries@suse.de>
5239
5240 PR build/26187
5241 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5242 std::uncaught_exceptions instead of deprecated
5243 std::uncaught_exception.
5244
5245 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5246
5247 * macroexp.h (macro_stringify): Return
5248 gdb::unique_xmalloc_ptr<char>.
5249 * macroexp.c (macro_stringify): Likewise.
5250 * macrotab.c (fixup_definition): Update.
5251
5252 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5253
5254 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5255 (lex_one_token): Update.
5256 * macroexp.c (struct macro_buffer) <release>: Return
5257 gdb::unique_xmalloc_ptr<char>.
5258 (macro_stringify): Update.
5259 (macro_expand): Update.
5260 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5261 * macroexp.h (macro_expand_next): Likewise.
5262
5263 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5264
5265 * macroexp.h (macro_lookup_ftype): Remove.
5266 (macro_expand, macro_expand_once, macro_expand_next): Remove
5267 lookup function parameters, add scope parameter.
5268 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5269 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5270 * macroscope.h (standard_macro_lookup): Change parameter type
5271 to macro_scope.
5272 * macroscope.c (standard_macro_lookup): Likewise.
5273 * c-exp.y (lex_one_token): Update.
5274 * macrocmd.c (macro_expand_command): Likewise.
5275 (macro_expand_once_command): Likewise.
5276
5277 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5278
5279 * inf-loop.c (inferior_event_handler): Remove client_data param.
5280 * inf-loop.h (inferior_event_handler): Likewise.
5281 * infcmd.c (step_1): Adjust.
5282 * infrun.c (proceed): Adjust.
5283 (fetch_inferior_event): Remove client_data param.
5284 (infrun_async_inferior_event_handler): Adjust.
5285 * infrun.h (fetch_inferior_event): Remove `void *` param.
5286 * linux-nat.c (handle_target_event): Adjust.
5287 * record-btrace.c (record_btrace_handle_async_inferior_event):
5288 Adjust.
5289 * record-full.c (record_full_async_inferior_event_handler):
5290 Adjust.
5291 * remote.c (remote_async_inferior_event_handler): Adjust.
5292
5293 2020-07-01 Tom Tromey <tom@tromey.com>
5294
5295 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5296 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5297
5298 2020-07-01 Tom Tromey <tom@tromey.com>
5299
5300 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5301 tui_gen_win_info.
5302 (tui_win_info::make_window): Merge with
5303 tui_gen_win_info::make_window.
5304 (tui_win_info::make_visible): Move from tui_gen_win_info.
5305 * tui/tui-win.c (tui_win_info::max_width): Move from
5306 tui_gen_win_info.
5307 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5308 type.
5309 <window_factory>: Likewise.
5310 * tui/tui-layout.c (tui_win_info::resize): Move from
5311 tui_gen_win_info.
5312 (make_standard_window): Change return type.
5313 (get_locator_window, tui_get_window_by_name): Likewise.
5314 (tui_layout_window::apply): Remove a cast.
5315 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5316 (struct tui_win_info): Merge with tui_gen_win_info.
5317 (struct tui_gen_win_info): Remove.
5318
5319 2020-07-01 Tom Tromey <tom@tromey.com>
5320
5321 * tui/tui-stack.h (struct tui_locator_window): Derive from
5322 tui_win_info.
5323 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5324 <can_box>: New method.
5325
5326 2020-07-01 Tom Tromey <tom@tromey.com>
5327
5328 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5329
5330 2020-07-01 Tom Tromey <tom@tromey.com>
5331
5332 * tui/tui-regs.c (tui_data_window::display_registers_from)
5333 (tui_data_window::display_registers_from)
5334 (tui_data_window::first_data_item_displayed)
5335 (tui_data_window::delete_data_content_windows): Update.
5336 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5337 Remove.
5338 (tui_data_window::check_register_values): Update.
5339 (tui_data_item_window::rerender): Add parameters. Update.
5340 (tui_data_item_window::refresh_window): Remove.
5341 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5342 virtual.
5343 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5344 tui_gen_win_info.
5345 <refresh_window, max_height, min_height>: Remove.
5346 <rerender>: Add parameters.
5347 <x, y, visible>: New members.
5348 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5349 <m_item_width>: New member.
5350
5351 2020-07-01 Tom Tromey <tom@tromey.com>
5352
5353 * tui/tui-regs.c (tui_data_window::show_register_group)
5354 (tui_data_window::check_register_values): Update.
5355 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5356 from item_no.
5357
5358 2020-07-01 Tom Tromey <tom@tromey.com>
5359
5360 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5361 useless "if".
5362
5363 2020-07-01 Tom Tromey <tom@tromey.com>
5364
5365 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5366 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5367
5368 2020-07-01 Tom Tromey <tom@tromey.com>
5369
5370 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5371 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5372 (struct tui_line_or_address): Move from tui-data.h.
5373 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5374 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5375 (tui_cmd_window, tui_source_window_base, tui_source_window)
5376 (tui_disasm_window): Don't declare.
5377 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5378 to tui-winsource.h.
5379 (SINGLE_KEY): Move to tui-stack.c.
5380
5381 2020-07-01 Tom Tromey <tom@tromey.com>
5382
5383 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5384 std::string.
5385 * tui/tui-regs.c (class tab_expansion_file): New.
5386 (tab_expansion_file::write): New method.
5387 (tui_register_format): Change return type. Use
5388 tab_expansion_file.
5389 (tui_get_register, tui_data_window::display_registers_from)
5390 (tui_data_item_window::rerender): Update.
5391 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5392 * tui/tui-io.c (tui_expand_tabs): Remove.
5393
5394 2020-07-01 Tom Tromey <tom@tromey.com>
5395
5396 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5397
5398 2020-07-01 Fangrui Song <maskray@google.com>
5399
5400 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5401
5402 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5403
5404 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5405 forms for DW_AT_associated and DW_AT_allocated attributes,
5406 which is already checked in function attr_to_dynamic_prop.
5407
5408 2020-06-30 Tom Tromey <tromey@adacore.com>
5409
5410 * dwarf2/read.c (quirk_rust_enum): Correctly call
5411 alloc_rust_variant for default-less enum.
5412
5413 2020-06-30 Tom Tromey <tromey@adacore.com>
5414
5415 PR build/26183:
5416 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5417 gdb::to_string.
5418
5419 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5420
5421 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5422 * gdbarch.h: Re-generate.
5423
5424 2020-06-28 Tom Tromey <tom@tromey.com>
5425
5426 * command.h (cmd_types): Remove.
5427 (cmd_type): Don't declare.
5428 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5429 typedef.
5430 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5431 * cli/cli-decode.c (cmd_type): Remove.
5432
5433 2020-06-27 Pedro Alves <palves@redhat.com>
5434
5435 * fork-child.c (prefork_hook): Adjust.
5436 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5437 Delete.
5438 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5439 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5440 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5441 Remove declarations.
5442 (struct inferior) <set_tty, tty>: New methods.
5443 (struct inferior) <terminal>: Rename to ...
5444 (struct inferior) <m_terminal>: ... this and make private.
5445 * main.c (captured_main_1): Adjust.
5446 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5447 (mi_cmd_inferior_tty_show): Adjust.
5448 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5449 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5450
5451 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5452
5453 * configure.ac: Add --enable-libctf: handle --disable-static
5454 properly.
5455 * acinclude.m4: sinclude ../config/enable.m4.
5456 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5457 (LIBCTF): Substitute in.
5458 (CTF_DEPS): New, likewise.
5459 (CLIBS): libctf needs symbols from libbfd: move earlier.
5460 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5461 flags.
5462 * ctfread.c: Surround in ENABLE_LIBCTF.
5463 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5464 * configure: Regenerate.
5465 * config.in: Likewise.
5466
5467 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5468
5469 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5470
5471 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5472
5473 * inferior.h (struct inferior) <terminal>: Change type to
5474 gdb::unique_xmalloc_ptr<char>.
5475 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5476 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5477 field, adjust to unique pointer.
5478 (get_inferior_io_terminal): Adjust to unique pointer.
5479
5480 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5481
5482 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5483 registers, not just the known core set of registers.
5484
5485 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5486
5487 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5488 fflags, frm, and fcsr registers.
5489 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5490 restore groups.
5491 (riscv_tdesc_unknown_reg): New function.
5492 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5493 tdesc_use_registers.
5494 * riscv-tdep.h (struct gdbarch_tdep): Add
5495 unknown_csrs_first_regnum, unknown_csrs_count,
5496 duplicate_fflags_regnum, duplicate_frm_regnum, and
5497 duplicate_fcsr_regnum fields.
5498
5499 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5500
5501 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5502 callback, use the callback (when not null) to help number unknown
5503 registers.
5504 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5505 (tdesc_use_registers): Add extra parameter to declaration.
5506
5507 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5508
5509 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5510 in the file.
5511 (class riscv_pending_register_alias): Likewise.
5512 (riscv_register_feature::register_info): Change 'required_p' field
5513 to 'required', and change its type. Add 'check' member function.
5514 (riscv_register_feature::register_info::check): Define new member
5515 function.
5516 (riscv_xreg_feature): Change initialisation of 'required' field.
5517 (riscv_freg_feature): Likewise.
5518 (riscv_virtual_feature): Likewise.
5519 (riscv_csr_feature): Likewise.
5520 (riscv_check_tdesc_feature): Take extra parameter, the csr
5521 tdesc_feature, rewrite the function to use the new
5522 riscv_register_feature::register_info::check function.
5523 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5524
5525 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5526
5527 * features/Makefile: Remove all references to the deleted files
5528 below.
5529 * features/riscv/32bit-csr.c: Deleted.
5530 * features/riscv/32bit-csr.xml: Deleted.
5531 * features/riscv/64bit-csr.c: Deleted.
5532 * features/riscv/64bit-csr.xml: Deleted.
5533 * features/riscv/rebuild-csr-xml.sh: Deleted.
5534
5535 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5536
5537 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5538 whitespace error for declaration of names member variable.
5539 (struct riscv_register_feature): Add new prefer_first_name member
5540 variable, and fix whitespace error in declaration of registers.
5541 (riscv_xreg_feature): Initialize prefer_first_name field.
5542 (riscv_freg_feature): Likewise.
5543 (riscv_virtual_feature): Likewise.
5544 (riscv_csr_feature): Likewise.
5545 (riscv_register_name): Expand on comments. Remove register name
5546 modifications for CSR and virtual registers.
5547
5548 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5549
5550 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5551 errors.
5552
5553 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5554
5555 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5556 riscv-opc.h.
5557 (class riscv_pending_register_alias): New class.
5558 (riscv_check_tdesc_feature): Take vector of pending aliases and
5559 populate it as appropriate.
5560 (riscv_setup_register_aliases): Delete.
5561 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5562 to riscv_check_tdesc_feature in all cases. Use the vector to
5563 create the register aliases.
5564
5565 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5566
5567 * sol2-tdep.c (sol2_static_transform_name): Remove.
5568 (sol2_init_abi): Don't register it.
5569 * gdbarch.sh (static_transform_name): Remove.
5570 * gdbarch.c, gdbarch.h: Regenerate.
5571
5572 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5573 gdbarch_static_transform_name.
5574 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5575 * stabsread.c (define_symbol) <'X'>: Remove.
5576 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5577 handling.
5578 <'V'>: Likewise.
5579 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5580 <'S'>: Remove call to gdbarch_static_transform_name.
5581
5582 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5583
5584 * procfs.c (procfs_pre_trace): New function.
5585 (procfs_target::create_inferior): Pass it to fork_inferior.
5586
5587 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5588
5589 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5590 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5591 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5592 sol2-tdep.o, sparc-sol2-tdep.o.
5593 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5594 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5595 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5596 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5597
5598 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5599
5600 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5601 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5602 Call sol2_init_abi.
5603 Remove calls to set_gdbarch_skip_solib_resolver,
5604 set_gdbarch_core_pid_to_str.
5605 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5606 (i386_sol2_static_transform_name): Remove.
5607 (i386_sol2_init_abi): Call sol2_init_abi.
5608 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5609 set_gdbarch_static_transform_name,
5610 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5611 Use sol2_sigtramp_p.
5612 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5613 (sol2_sigtramp_p): New function.
5614 (sol2_static_transform_name): New function.
5615 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5616 (sol2_init_abi): New function.
5617 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5618 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5619 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5620 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5621 (sparc_sol2_static_transform_name): Remove.
5622 (sparc32_sol2_init_abi): Call sol2_init_abi.
5623 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5624 set_gdbarch_static_transform_name,
5625 set_gdbarch_skip_solib_resolver,
5626 set_gdbarch_core_pid_to_str.
5627 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5628 (sparc_sol2_static_transform_name): Remove
5629 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5630 call sol2_sigtramp_p.
5631 (sparc64_sol2_init_abi): Call sol2_init_abi.
5632 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5633 set_gdbarch_static_transform_name,
5634 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5635
5636 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5637
5638 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5639 * exec.c (validate_exec_file): If from_tty, set both
5640 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5641 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5642 and from_tty, unconditionally ask a confirmation.
5643
5644 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5645
5646 * target-descriptions.c (tdesc_architecture_name): Protect against
5647 NULL pointer dereference.
5648 (maint_print_xml_tdesc_cmd): New function.
5649 (_initialize_target_descriptions): Register new 'maint print
5650 xml-tdesc' command and give it the filename completer.
5651 * NEWS: Mention new 'maint print xml-tdesc' command.
5652
5653 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5654
5655 * target-descriptions.c (class tdesc_compatible_info): New class.
5656 (struct target_desc): Change type of compatible vector.
5657 (tdesc_compatible_p): Update for change in type of
5658 target_desc::compatible.
5659 (tdesc_compatible_info_list): New function.
5660 (tdesc_compatible_info_arch_name): New function.
5661 (tdesc_add_compatible): Update for change in type of
5662 target_desc::compatible.
5663 (print_c_tdesc::visit_pre): Likewise.
5664
5665 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5666
5667 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5668 whitespace to underscore.
5669 (maint_print_c_tdesc_cmd): Use fake filename for target
5670 descriptions that came from the target.
5671 (_initialize_target_descriptions): Add filename command completion
5672 for 'maint print c-tdesc'.
5673
5674 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5675
5676 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5677 lines.
5678
5679 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5680
5681 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5682 lines.
5683 (dwarf2_find_location_expression): Likewise.
5684 (call_site_parameter_matches): Likewise.
5685 (dwarf2_compile_expr_to_ax): Likewise.
5686 (disassemble_dwarf_expression): Likewise.
5687 (loclist_describe_location): Likewise.
5688
5689 2020-06-23 Pedro Alves <palves@redhat.com>
5690
5691 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5692 progspace-and-thread.h. Include scoped-mock-context.h instead.
5693 (register_to_value_test): Use scoped_mock_context.
5694 * regcache.c: Include "scoped-mock-context.h".
5695 (cooked_read_test): Don't error out if a target is already pushed.
5696 Use scoped_mock_context. Adjust.
5697 * scoped-mock-context.h: New file.
5698
5699 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5700
5701 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5702 initializer.
5703 (ada_language::is_string_type_p): New member function.
5704 * c-lang.c (c_language_data): Delete la_is_string_type_p
5705 initializer.
5706 (cplus_language_data): Likewise.
5707 (asm_language_data): Likewise.
5708 (minimal_language_data): Likewise.
5709 * d-lang.c (d_language_data): Likewise.
5710 * f-lang.c (f_is_string_type_p): Delete function, implementation
5711 moved to f_language::is_string_type_p.
5712 (f_language_data): Delete la_is_string_type_p initializer.
5713 (f_language::is_string_type_p): New member function,
5714 implementation from f_is_string_type_p.
5715 * go-lang.c (go_is_string_type_p): Delete function, implementation
5716 moved to go_language::is_string_type_p.
5717 (go_language_data): Delete la_is_string_type_p initializer.
5718 (go_language::is_string_type_p): New member function,
5719 implementation from go_is_string_type_p.
5720 * language.c (language_defn::is_string_type_p): Define new member
5721 function.
5722 (default_is_string_type_p): Make static, add comment copied from
5723 header file.
5724 (unknown_language_data): Delete la_is_string_type_p initializer.
5725 (unknown_language::is_string_type_p): New member function.
5726 (auto_language_data): Delete la_is_string_type_p initializer.
5727 (auto_language::is_string_type_p): New member function.
5728 * language.h (language_data): Delete la_is_string_type_p field.
5729 (language_defn::is_string_type_p): Declare new function.
5730 (default_is_string_type_p): Delete desclaration, move comment to
5731 definition.
5732 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5733 moved to m2_language::is_string_type_p.
5734 (m2_language_data): Delete la_is_string_type_p initializer.
5735 (m2_language::is_string_type_p): New member function,
5736 implementation from m2_is_string_type_p.
5737 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5738 initializer.
5739 * opencl-lang.c (opencl_language_data): Likewise.
5740 * p-lang.c (pascal_is_string_type_p): Delete function,
5741 implementation moved to pascal_language::is_string_type_p.
5742 (pascal_language_data): Delete la_is_string_type_p initializer.
5743 (pascal_language::is_string_type_p): New member function,
5744 implementation from pascal_is_string_type_p.
5745 * rust-lang.c (rust_is_string_type_p): Delete function,
5746 implementation moved to rust_language::is_string_type_p.
5747 (rust_language_data): Delete la_is_string_type_p initializer.
5748 (rust_language::is_string_type_p): New member function,
5749 implementation from rust_is_string_type_p.
5750 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5751 is_string_type_p.
5752
5753 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5754
5755 * ada-lang.c (ada_language_data): Delete la_print_typedef
5756 initializer.
5757 (ada_language::print_typedef): New member function.
5758 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5759 (cplus_language_data): Likewise.
5760 (asm_language_data): Likewise.
5761 (minimal_language_data): Likewise.
5762 * d-lang.c (d_language_data): Likewise.
5763 * f-lang.c (f_language_data): Likewise.
5764 (f_language::print_typedef): New member function.
5765 * go-lang.c (go_language_data): Delete la_print_typedef
5766 initializer.
5767 * language.c (language_defn::print_typedef): Define member
5768 function.
5769 (unknown_language_data): Delete la_print_typedef initializer.
5770 (unknown_language::print_typedef): New member function.
5771 (auto_language_data): Delete la_print_typedef initializer.
5772 (auto_language::print_typedef): New member function.
5773 * language.h (language_data): Delete la_print_typedef field.
5774 (language_defn::print_typedef): Declare new member function.
5775 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5776 (default_print_typedef): Delete declaration.
5777 * m2-lang.c (m2_language_data): Delete la_print_typedef
5778 initializer.
5779 (m2_language::print_typedef): New member function.
5780 * objc-lang.c (objc_language_data): Delete la_print_typedef
5781 initializer.
5782 * opencl-lang.c (opencl_language_data): Likewise.
5783 * p-lang.c (pascal_language_data): Likewise.
5784 (pascal_language::print_typedef): New member function.
5785 * rust-lang.c (rust_print_typedef): Delete function,
5786 implementation moved to rust_language::print_typedef.
5787 (rust_language): Delete la_print_typedef initializer.
5788 (rust_language::print_typedef): New member function,
5789 implementation from rust_print_typedef.
5790 * typeprint.c (default_print_typedef): Delete.
5791
5792 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5793
5794 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5795 (ada_language::printstr): New member function.
5796 * c-lang.c (c_language_data): Delete la_printstr initializer.
5797 (cplus_language_data): Likewise.
5798 (asm_language_data): Likewise.
5799 (minimal_language_data): Likewise.
5800 * d-lang.c (d_language_data): Likewise.
5801 * f-lang.c (f_printstr): Rename to f_language::printstr.
5802 (f_language_data): Delete la_printstr initializer.
5803 (f_language::printstr): New member function, implementation from
5804 f_printstr.
5805 * go-lang.c (go_language_data): Delete la_printstr initializer.
5806 * language.c (language_defn::printstr): Define new member
5807 function.
5808 (unk_lang_printstr): Delete.
5809 (unknown_language_data): Delete la_printstr initializer.
5810 (unknown_language::printstr): New member function.
5811 (auto_language_data): Delete la_printstr initializer.
5812 (auto_language::printstr): New member function.
5813 * language.h (language_data): Delete la_printstr field.
5814 (language_defn::printstr): Declare new member function.
5815 (LA_PRINT_STRING): Update call to printstr.
5816 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5817 (m2_language_data): Delete la_printstr initializer.
5818 (m2_language::printstr): New member function, implementation from
5819 m2_printstr.
5820 * objc-lang.c (objc_language_data): Delete la_printstr
5821 initializer.
5822 * opencl-lang.c (opencl_language_data): Likewise.
5823 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5824 (pascal_language_data): Delete la_printstr initializer.
5825 (pascal_language::printstr): New member function, implementation
5826 from pascal_printstr.
5827 * p-lang.h (pascal_printstr): Delete declaration.
5828 * rust-lang.c (rust_printstr): Update header comment.
5829 (rust_language_data): Delete la_printstr initializer.
5830 (rust_language::printstr): New member function.
5831
5832 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5833
5834 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5835 (ada_language::printchar): New member function.
5836 * c-lang.c (c_language_data): Delete la_printchar initializer.
5837 (cplus_language_data): Likewise.
5838 (asm_language_data): Likewise.
5839 (minimal_language_data): Likewise.
5840 * d-lang.c (d_language_data): Likewise.
5841 * f-lang.c (f_printchar): Rename to f_language::printchar.
5842 (f_language_data): Delete la_printchar initializer.
5843 (f_language::printchar): New member function, implementation from
5844 f_printchar.
5845 * go-lang.c (go_language_data): Delete la_printchar initializer.
5846 * language.c (unk_lang_printchar): Delete.
5847 (language_defn::printchar): Define new member function.
5848 (unknown_language_data): Delete la_printchar initializer.
5849 (unknown_language::printchar): New member function.
5850 (auto_language_data): Delete la_printchar initializer.
5851 (auto_language::printchar): New member function.
5852 * language.h (language_data): Delete la_printchar field.
5853 (language_defn::printchar): Declare new member function.
5854 (LA_PRINT_CHAR): Update call to printchar.
5855 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5856 (m2_language::printchar): New member function.
5857 * objc-lang.c (objc_language_data): Delete la_printchar
5858 initializer.
5859 * opencl-lang.c (opencl_language_data): Likewise.
5860 * p-lang.c (pascal_language_data): Delete la_printchar
5861 initializer.
5862 (pascal_language::printchar): New member function.
5863 * rust-lang.c (rust_printchar): Rename to
5864 rust_language::printchar.
5865 (rust_language_data): Delete la_printchar initializer.
5866 (rust_language::printchar): New member function, implementation
5867 from rust_printchar.
5868
5869 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5870
5871 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5872 (ada_language_data): Delete la_emitchar initializer.
5873 (ada_language::emitchar): New member function, implementation from
5874 emit_char.
5875 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5876 (cplus_language_data): Likewise.
5877 (asm_language_data): Likewise.
5878 (minimal_language_data): Likewise.
5879 * d-lang.c (d_language_data): Likewise.
5880 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5881 (f_language_data): Delete la_emitchar initializer.
5882 (f_language::emitchar): New member function, implementation from
5883 f_emit_char.
5884 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5885 * language.c (unk_lang_emit_char): Delete.
5886 (language_defn::emitchar): New member function definition.
5887 (unknown_language_data): Delete la_emitchar initializer.
5888 (unknown_language::emitchar): New member function.
5889 (auto_language_data): Delete la_emitchar initializer.
5890 (auto_language::emitchar): New member function.
5891 * language.h (language_data): Delete la_emitchar field.
5892 (language_defn::emitchar): New member field declaration.
5893 (LA_EMIT_CHAR): Update call to emitchar.
5894 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5895 (m2_language_data): Delete la_emitchar initializer.
5896 (m2_language::emitchar): New member function, implementation from
5897 m2_emit_char.
5898 * objc-lang.c (objc_language_data): Delete la_emitchar
5899 initializer.
5900 * opencl-lang.c (opencl_language_data): Likewise.
5901 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5902 (pascal_language_data): Delete la_emitchar initializer.
5903 (pascal_language::emitchar): New member function, implementation
5904 from pascal_emit_char.
5905 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5906 (rust_language_data): Delete la_emitchar initializer.
5907 (rust_language::emitchar): New member function, implementation
5908 from rust_emitchar.
5909
5910 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5911
5912 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5913 (ada_language_data): Delete la_post_parser initializer.
5914 (ada_language::post_parser): New member function.
5915 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5916 (cplus_language_data): Likewise.
5917 (asm_language_data): Likewise.
5918 (minimal_language_data): Likewise.
5919 * d-lang.c (d_language_data): Likewise.
5920 * f-lang.c (f_language_data): Likewise.
5921 * go-lang.c (go_language_data): Likewise.
5922 * language.c (unknown_language_data): Likewise.
5923 (auto_language_data): Likewise.
5924 * language.h (language_data): Delete la_post_parser field.
5925 (language_defn::post_parser): New member function.
5926 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5927 * objc-lang.c (objc_language_data): Likewise.
5928 * opencl-lang.c (opencl_language_data): Likewise.
5929 * p-lang.c (pascal_language_data): Likewise.
5930 * parse.c (parse_exp_in_context): Update call to post_parser.
5931 (null_post_parser): Delete definition.
5932 * parser-defs.h (null_post_parser): Delete declaration.
5933 * rust-lang.c (rust_language_data): Delete la_post_parser
5934 initializer.
5935
5936 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5937
5938 * ada-lang.c (parse): Rename to ada_language::parser.
5939 (ada_language_data): Delete la_parser initializer.
5940 (ada_language::parser): New member function, implementation from
5941 parse.
5942 * c-lang.c (c_language_data): Delete la_parser initializer.
5943 (cplus_language_data): Likewise.
5944 (asm_language_data): Likewise.
5945 (minimal_language_data): Likewise.
5946 * d-lang.c (d_language_data): Likewise.
5947 (d_language::parser): New member function.
5948 * f-lang.c (f_language_data): Delete la_parser initializer.
5949 (f_language::parser): New member function.
5950 * go-lang.c (go_language_data): Delete la_parser initializer.
5951 (go_language::parser): New member function.
5952 * language.c (unk_lang_parser): Delete.
5953 (language_defn::parser): Define new member function.
5954 (unknown_language_data): Delete la_parser initializer.
5955 (unknown_language::parser): New member function.
5956 (auto_language_data): Delete la_parser initializer.
5957 (auto_language::parser): New member function.
5958 * language.h (language_data): Delete la_parser field.
5959 (language_defn::parser): Declare new member function.
5960 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5961 (m2_language::parser): New member function.
5962 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5963 * opencl-lang.c (opencl_language_data): Likewise.
5964 * p-lang.c (pascal_language_data): Likewise.
5965 (pascal_language::parser): New member function.
5966 * parse.c (parse_exp_in_context): Update call to parser.
5967 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5968 (rust_language::parser): New member function.
5969
5970 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5971
5972 * top.c (print_gdb_configuration): Print --with-python-libdir
5973 configuration value.
5974
5975 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5976
5977 * NEWS: Mention change to the alias command.
5978
5979 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5980
5981 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5982 (alias_command_completer)
5983 (make_alias_options_def_group): New functions.
5984 (alias_opts, alias_option_defs): New struct and array.
5985 (alias_usage_error): Update usage.
5986 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5987 Use option framework.
5988 (_initialize_cli_cmds): Update alias command help.
5989 Update aliases command help.
5990 (show_user):
5991 Add NULL for new default_args lookup_cmd argument.
5992 (valid_command_p): Rename to validate_aliased_command.
5993 Add NULL for new default_args lookup_cmd argument. Verify that the
5994 aliased_command has no default args.
5995 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5996 (lookup_cmd_1, lookup_cmd): New argument default_args.
5997 (add_alias_cmd):
5998 Add NULL for new default_args lookup_cmd argument.
5999 (print_help_for_command): Show default args under the layout
6000 alias some_alias = some_aliased_cmd some_alias_default_arg.
6001 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6002 xfree default_args in destructor.
6003 * cli/cli-script.c (process_next_line, do_define_command):
6004 Add NULL for new default_args lookup_cmd argument.
6005 * command.h: Declare new default_args argument in lookup_cmd
6006 and lookup_cmd_1.
6007 * completer.c (complete_line_internal_1):
6008 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6009 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6010 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6011 Likewise.
6012 * infcmd.c (_initialize_infcmd): Likewise.
6013 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6014 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6015 * python/py-param.c (add_setshow_generic): Likewise.
6016 * remote.c (_initialize_remote): Likewise.
6017 * top.c (execute_command): Prepend default_args if command has some.
6018 (set_verbose):
6019 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6020 * tracepoint.c (validate_actionline, encode_actions_1):
6021 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6022
6023 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6024
6025 * jit.c (jit_read_descriptor): Use bool as the return type.
6026 (jit_breakpoint_re_set_internal): Use bool as the return type.
6027 Invert the return value logic; return true if the jit breakpoint
6028 has been successfully initialized.
6029 (jit_inferior_init): Update the call to
6030 jit_breakpoint_re_set_internal.
6031
6032 2020-06-22 Pedro Alves <palves@redhat.com>
6033
6034 PR gdb/25939
6035 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6036 Use the current inferior instead. Don't return
6037 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6038 wait again.
6039 * sol-thread.c (sol_thread_target::wait): Don't reference
6040 inferior_ptid.
6041 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6042 (sol_update_thread_list_callback): Use the current inferior's pid
6043 instead of inferior_ptid.
6044
6045 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6046
6047 * procfs.c: Cleanup many comments.
6048
6049 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6050 (AFTER_WATCHFLAG): Replace by value.
6051
6052 (MAIN_PROC_NAME_FORMAT): Inline ...
6053 (create_procinfo): ... here.
6054
6055 (procfs_debug_inferior): Remove SYS_exec handling.
6056 (syscall_is_exec): Likewise.
6057 (procfs_set_exec_trap): Likewise.
6058
6059 (syscall_is_lwp_exit): Inline in callers.
6060 (syscall_is_exit): Likewise.
6061 (syscall_is_exec): Likewise.
6062 (syscall_is_lwp_create): Likewise.
6063
6064 (invalidate_cache): Remove #if 0 code.
6065
6066 (make_signal_thread_runnable): Remove.
6067 (procfs_target::resume): Remove #if 0 code.
6068
6069 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6070
6071 PR gdb/25939
6072 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6073 call ...
6074 (procfs_target::create_inferior): ... here.
6075
6076 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6077
6078 * exec.c (validate_exec_file): Ensure the build-id is up to
6079 date by calling reopen_exec_file (that checks file timestamp
6080 to decide to re-read the file).
6081
6082 2020-06-18 Pedro Alves <palves@redhat.com>
6083
6084 PR gdb/25412
6085 * gdbthread.h (delete_thread, delete_thread_silent)
6086 (find_thread_ptid): Update comments.
6087 * thread.c (current_thread_): New global.
6088 (is_current_thread): Move higher, and reimplement.
6089 (inferior_thread): Reimplement.
6090 (set_thread_exited): Use bool. Add assertions.
6091 (add_thread_silent): Simplify thread-reuse handling by always
6092 calling delete_thread.
6093 (delete_thread): Remove intro comment.
6094 (find_thread_ptid): Skip exited threads.
6095 (switch_to_thread_no_regs): Write to current_thread_.
6096 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6097 INFERIOR_PTID. Clear current_thread_.
6098
6099 2020-06-18 Pedro Alves <palves@redhat.com>
6100
6101 * aix-thread.c (pd_update): Use switch_to_thread.
6102
6103 2020-06-18 Pedro Alves <palves@redhat.com>
6104
6105 * ravenscar-thread.c (ravenscar_thread_target): Update.
6106 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6107 (ravenscar_thread_target::add_active_thread): ... this. Don't
6108 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6109 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6110
6111 2020-06-18 Pedro Alves <palves@redhat.com>
6112
6113 * nat/windows-nat.c (current_windows_thread): Remove.
6114 * nat/windows-nat.h (current_windows_thread): Remove.
6115 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6116 Adjust.
6117 (display_selectors): Adjust to fetch the current
6118 windows_thread_info based on inferior_ptid.
6119 (fake_create_process): No longer write to current_windows_thread.
6120 (windows_nat_target::get_windows_debug_event):
6121 Don't set inferior_ptid or current_windows_thread.
6122 (windows_nat_target::wait): Adjust to not rely on
6123 current_windows_thread.
6124 (do_initial_windows_stuff): Now a method of windows_nat_target.
6125 Switch to the last_ptid thread.
6126 (windows_nat_target::attach): Adjust.
6127 (windows_nat_target::detach): Use switch_to_no_thread instead of
6128 writing to inferior_ptid directly.
6129 (windows_nat_target::create_inferior): Adjust.
6130
6131 2020-06-18 Pedro Alves <palves@redhat.com>
6132
6133 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6134
6135 2020-06-18 Pedro Alves <palves@redhat.com>
6136
6137 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6138 after creating it, instead of writing to inferior_ptid. Don't
6139 write to inferior_ptid.
6140
6141 2020-06-18 Pedro Alves <palves@redhat.com>
6142
6143 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6144
6145 2020-06-18 Pedro Alves <palves@redhat.com>
6146
6147 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6148 it, instead of writing to inferior_ptid.
6149
6150 2020-06-18 Pedro Alves <palves@redhat.com>
6151
6152 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6153 to inferior_ptid.
6154
6155 2020-06-18 Pedro Alves <palves@redhat.com>
6156
6157 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6158 instead of writing to inferior_ptid directly.
6159
6160 2020-06-18 Pedro Alves <palves@redhat.com>
6161
6162 * corelow.c (core_target::close): Use switch_to_no_thread instead
6163 of writing to inferior_ptid directly.
6164 (add_to_thread_list, core_target_open): Use switch_to_thread
6165 instead of writing to inferior_ptid directly.
6166
6167 2020-06-18 Pedro Alves <palves@redhat.com>
6168
6169 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6170 inferior_ptid.
6171 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6172 inferior_ptid.
6173 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6174 inferior_ptid directly.
6175 (darwin_nat_target::init_thread_list): Switch to thread, instead
6176 of writing to inferior_ptid.
6177 (darwin_nat_target::attach): Don't write to inferior_ptid.
6178 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6179
6180 2020-06-18 Pedro Alves <palves@redhat.com>
6181
6182 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6183 thread.
6184 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6185 Instead use switch_to_thread.
6186 (gnu_nat_target::detach): Use switch_to_no_thread
6187 instead of writing to inferior_ptid directly. Used passed-in
6188 inferior instead of looking up the inferior by pid.
6189
6190 2020-06-18 Pedro Alves <palves@redhat.com>
6191
6192 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6193 inferior_ptid.
6194
6195 2020-06-18 Pedro Alves <palves@redhat.com>
6196
6197 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6198 inferior_ptid.
6199 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6200 thread.
6201 (nto_procfs_target::detach): Avoid referencing
6202 inferior_ptid. Use switch_to_no_thread instead of writing to
6203 inferior_ptid directly.
6204 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6205 instead of writing to inferior_ptid directly.
6206 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6207 to thread.
6208
6209 2020-06-18 Pedro Alves <palves@redhat.com>
6210
6211 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6212 after creating it, instead of writing to inferior_ptid.
6213 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6214 to inferior_ptid directly.
6215 (gdbsim_target::wait): Don't write to inferior_ptid.
6216
6217 2020-06-18 Pedro Alves <palves@redhat.com>
6218
6219 * remote.c (remote_target::remote_notice_new_inferior): Use
6220 switch_to_thread instead of writing to inferior_ptid directly.
6221 (remote_target::add_current_inferior_and_thread): Use
6222 switch_to_no_thread instead of writing to inferior_ptid directly.
6223 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6224 and switch_to_thread instead of using set_current_inferior or
6225 writing to inferior_ptid directly.
6226
6227 2020-06-18 Pedro Alves <palves@redhat.com>
6228
6229 * tracectf.c (ctf_target_open): Switch to added thread instead of
6230 writing to inferior_ptid directly.
6231 (ctf_target::close): Use switch_to_no_thread instead of writing to
6232 inferior_ptid directly.
6233
6234 2020-06-18 Pedro Alves <palves@redhat.com>
6235
6236 * tracefile-tfile.c (tfile_target_open): Don't write to
6237 inferior_ptid directly, instead switch to added thread.
6238 (tfile_target::close): Use switch_to_no_thread instead of writing
6239 to inferior_ptid directly.
6240
6241 2020-06-18 Pedro Alves <palves@redhat.com>
6242
6243 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6244 (procfs_target::detach): Use switch_to_no_thread
6245 instead of writing to inferior_ptid directly.
6246 (do_attach): Change return type to void. Switch to the added
6247 thread.
6248 (procfs_target::create_inferior): Switch to the added thread.
6249 (procfs_do_thread_registers): Don't write to inferior_ptid.
6250
6251 2020-06-18 Pedro Alves <palves@redhat.com>
6252
6253 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6254 of writing to inferior_ptid.
6255 (scoped_restore_exited_inferior): Delete.
6256 (handle_vfork_child_exec_or_exit): Simplify using
6257 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6258 instead of writing to inferior_ptid.
6259 (THREAD_STOPPED_BY): Delete.
6260 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6261 (thread_stopped_by_hw_breakpoint): Delete.
6262 (save_waitstatus): Use
6263 scoped_restore_current_thread+switch_to_thread, and call
6264 target_stopped_by_watchpoint instead of
6265 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6266 instead of thread_stopped_by_sw_breakpoint, and
6267 target_stopped_by_hw_breakpoint instead of
6268 thread_stopped_by_hw_breakpoint.
6269 (handle_inferior_event)
6270 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6271 inferior_ptid directly, nor
6272 set_current_inferior/set_current_program_space. Use
6273 switch_to_thread / switch_to_inferior_no_thread instead.
6274
6275 2020-06-18 Pedro Alves <palves@redhat.com>
6276
6277 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6278 instead of writing to inferior_ptid.
6279
6280 2020-06-18 Pedro Alves <palves@redhat.com>
6281
6282 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6283 added thread.
6284 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6285 to the added thread.
6286 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6287 instead of writing to inferior_ptid.
6288
6289 2020-06-18 Pedro Alves <palves@redhat.com>
6290
6291 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6292 (register_to_value_test): Mock a program_space too. Heap-allocate
6293 the address space. Don't write to inferior_ptid. Use
6294 switch_to_thread instead.
6295
6296 2020-06-18 Pedro Alves <palves@redhat.com>
6297
6298 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6299 Delete.
6300 (find_signalled_thread()): New, factored out from
6301 linux_make_corefile_notes and adjusted to handle exited threads.
6302 (linux_make_corefile_notes): Adjust to use the new
6303 find_signalled_thread.
6304
6305 2020-06-18 Pedro Alves <palves@redhat.com>
6306
6307 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6308 of saving/restoring inferior_ptid.
6309
6310 2020-06-17 Tom Tromey <tom@tromey.com>
6311
6312 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6313 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6314 declare.
6315 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6316
6317 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6318
6319 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6320 of partial symtabs.
6321
6322 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6323
6324 * regformats/reg-arm.dat: Remove.
6325 * regformats/reg-bfin.dat: Remove.
6326 * regformats/reg-cris.dat: Remove.
6327 * regformats/reg-crisv32.dat: Remove.
6328 * regformats/reg-m32r.dat: Remove.
6329 * regformats/reg-tilegx.dat: Remove.
6330 * regformats/reg-tilegx32.dat: Remove.
6331
6332 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6333
6334 * features/Makefile (WHICH): Remove arm files.
6335 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6336 * regformats/arm/arm-with-neon.dat: Remove.
6337 * regformats/arm/arm-with-vfpv2.dat: Remove.
6338 * regformats/arm/arm-with-vfpv3.dat: Remove.
6339
6340 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6341
6342 * features/Makefile (XMLTOC): Remove rx.xml.
6343
6344 2020-06-17 Pedro Alves <palves@redhat.com>
6345
6346 * gdbthread.h (thread_control_state) <trap_expected> Update
6347 comments.
6348
6349 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6350
6351 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6352 ada_language::lookup_symbol_nonlocal.
6353 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6354 (ada_language::lookup_symbol_nonlocal): New member function,
6355 implementation from ada_lookup_symbol_nonlocal.
6356 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6357 initializer.
6358 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6359 initializer.
6360 (cplus_language::lookup_symbol_nonlocal): New member function.
6361 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6362 (minimal_language_data) Likewise.
6363 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6364 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6365 initializer.
6366 (d_language::lookup_symbol_nonlocal): New member function.
6367 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6368 initializer.
6369 (f_language::lookup_symbol_nonlocal): New member function.
6370 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6371 initializer.
6372 * language.c (unknown_language_data): Likewise.
6373 (auto_language_data): Likewise.
6374 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6375 field.
6376 (language_defn::lookup_symbol_nonlocal): New member function.
6377 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6378 initializer.
6379 * objc-lang.c (objc_language_data): Likewise.
6380 * opencl-lang.c (opencl_language_data): Likewise.
6381 * p-lang.c (pascal_language_data): Likewise.
6382 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6383 rust_language::lookup_symbol_nonlocal.
6384 (rust_language_data): Delete la_lookup_symbol_nonlocal
6385 initializer.
6386 (rust_language::lookup_symbol_nonlocal): New member function,
6387 implementation from rust_lookup_symbol_nonlocal.
6388 * symtab.c (lookup_symbol_aux): Update call to
6389 lookup_symbol_nonlocal.
6390 (basic_lookup_symbol_nonlocal): Rename to...
6391 (language_defn::lookup_symbol_nonlocal): ...this, and update
6392 header comment. Remove language_defn parameter, and replace with
6393 uses of `this'.
6394 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6395
6396 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6397
6398 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6399 initializer.
6400 (ada_language::value_print_inner): New member function.
6401 * c-lang.c (c_language_data): Delete la_value_print_inner
6402 initializer.
6403 (cplus_language_data): Likewise.
6404 (asm_language_data): Likewise.
6405 (minimal_language_data): Likewise.
6406 * d-lang.c (d_language_data): Likewise.
6407 (d_language::value_print_inner): New member function.
6408 * f-lang.c (f_language_data): Delete la_value_print_inner
6409 initializer.
6410 (f_language::value_print_inner): New member function.
6411 * f-lang.h (f_value_print_innner): Rename to...
6412 (f_value_print_inner): ...this (note spelling of 'inner').
6413 * f-valprint.c (f_value_print_innner): Rename to...
6414 (f_value_print_inner): ...this (note spelling of 'inner').
6415 * go-lang.c (go_language_data): Delete la_value_print_inner
6416 initializer.
6417 (go_language::value_print_inner): New member function.
6418 * language.c (language_defn::value_print_inner): Define new member
6419 function.
6420 (unk_lang_value_print_inner): Delete.
6421 (unknown_language_data): Delete la_value_print_inner initializer.
6422 (unknown_language::value_print_inner): New member function.
6423 (auto_language_data): Delete la_value_print_inner initializer.
6424 (auto_language::value_print_inner): New member function.
6425 * language.h (language_data): Delete la_value_print_inner field.
6426 (language_defn::value_print_inner): Delcare new member function.
6427 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6428 initializer.
6429 (m2_language::value_print_inner): New member function.
6430 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6431 initializer.
6432 * opencl-lang.c (opencl_language_data): Likewise.
6433 * p-lang.c (pascal_language_data): Likewise.
6434 (pascal_language::value_print_inner): New member function.
6435 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6436 initializer.
6437 (rust_language::value_print_inner): New member function.
6438 * valprint.c (do_val_print): Update call to value_print_inner.
6439
6440 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6441
6442 * ada-lang.c (ada_language_data): Delete la_value_print
6443 initializer.
6444 (ada_language::value_print): New member function.
6445 * c-lang.c (c_language_data): Delete la_value_print initializer.
6446 (cplus_language_data): Likewise.
6447 (asm_language_data): Likewise.
6448 (minimal_language_data): Likewise.
6449 * d-lang.c (d_language_data): Likewise.
6450 * f-lang.c (f_language_data): Likewise.
6451 * go-lang.c (go_language_data): Likewise.
6452 * language.c (unk_lang_value_print): Delete.
6453 (language_defn::value_print): Define new member function.
6454 (unknown_language_data): Delete la_value_print initializer.
6455 (unknown_language::value_print): New member function.
6456 (auto_language_data): Delete la_value_print initializer.
6457 (auto_language::value_print): New member function.
6458 * language.h (language_data): Delete la_value_print field.
6459 (language_defn::value_print): Declare new member function.
6460 (LA_VALUE_PRINT): Update call to value_print.
6461 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6462 * objc-lang.c (objc_language_data): Likewise.
6463 * opencl-lang.c (opencl_language_data): Likewise.
6464 * p-lang.c (pascal_language_data): Likewise.
6465 (pascal_language::value_print): New member function.
6466 * rust-lang.c (rust_language_data): Delete la_value_print
6467 initializer.
6468
6469 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6470
6471 * ada-lang.c (ada_watch_location_expression): Rename to
6472 ada_language::watch_location_expression.
6473 (ada_language_data): Delete la_watch_location_expression
6474 initializer.
6475 (ada_language::watch_location_expression): New member function,
6476 implementation from ada_watch_location_expression.
6477 * breakpoint.c (watch_command_1): Update call to
6478 watch_location_expression.
6479 * c-lang.c (c_watch_location_expression): Rename to
6480 language_defn::watch_location_expression.
6481 (c_language_data): Delete la_watch_location_expression
6482 initializer.
6483 (cplus_language_data): Likewise.
6484 (asm_language_data): Likewise.
6485 (minimal_language_data): Likewise.
6486 * c-lang.h (c_watch_location_expression): Delete declaration.
6487 * d-lang.c (d_language_data): Delete la_watch_location_expression
6488 initializer.
6489 * f-lang.c (f_language_data): Likewise.
6490 * go-lang.c (go_language_data): Likewise.
6491 * language.c (language_defn::watch_location_expression): Member
6492 function implementation from c_watch_location_expression.
6493 (unknown_language_data): Delete la_watch_location_expression
6494 initializer.
6495 (auto_language_data): Likewise.
6496 * language.h (language_data): Delete la_watch_location_expression
6497 field.
6498 (language_defn::watch_location_expression): Declare new member
6499 function.
6500 * m2-lang.c (m2_language_data): Delete
6501 la_watch_location_expression initializer.
6502 * objc-lang.c (objc_language_data): Likewise.
6503 * opencl-lang.c (opencl_language_data): Likewise.
6504 * p-lang.c (pascal_language_data): Likewise.
6505 * rust-lang.c (rust_watch_location_expression): Rename to
6506 rust_language::watch_location_expression.
6507 (rust_language_data): Delete la_watch_location_expression
6508 initializer.
6509 (rust_language::watch_location_expression): New member function,
6510 implementation from rust_watch_location_expression.
6511
6512 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6513
6514 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6515 ada_language::collect_symbol_completion_matches.
6516 (ada_language_data): Delete la_collect_symbol_completion_matches
6517 initializer.
6518 (ada_language::collect_symbol_completion_matches): New member
6519 function, implementation from
6520 ada_collect_symbol_completion_matches.
6521 * c-lang.c (c_language_data): Delete
6522 la_collect_symbol_completion_matches initializer.
6523 (cplus_language_data): Likewise.
6524 (asm_language_data): Likewise.
6525 (minimal_language_data): Likewise.
6526 * d-lang.c (d_language_data): Likewise.
6527 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6528 f_language::collect_symbol_completion_matches.
6529 (f_language_data): Delete la_collect_symbol_completion_matches
6530 initializer.
6531 (f_language::collect_symbol_completion_matches) New member
6532 function, implementation from f_collect_symbol_completion_matches.
6533 * go-lang.c (go_language_data): Delete
6534 la_collect_symbol_completion_matches initializer.
6535 * language.c (unknown_language_data): Likewise.
6536 (auto_language_data): Likewise.
6537 * language.h (language_data): Delete
6538 la_collect_symbol_completion_matches field.
6539 (language_defn::collect_symbol_completion_matches): New member
6540 function.
6541 * m2-lang.c (m2_language_data): Delete
6542 la_collect_symbol_completion_matches initializer.
6543 * objc-lang.c (objc_language_data): Likewise.
6544 * opencl-lang.c (opencl_language_data): Likewise.
6545 * p-lang.c (pascal_language_data): Likewise.
6546 * rust-lang.c (rust_language_data): Likewise.
6547 * symtab.c (default_collect_symbol_completion_matches): Delete.
6548 (collect_symbol_completion_matches): Update call to
6549 collect_symbol_completion_matches.
6550 (collect_symbol_completion_matches_type): Likewise.
6551 * symtab.h (default_collect_symbol_completion_matches): Delete
6552 declaration.
6553
6554 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6555
6556 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6557 (ada_language_data): Delete la_word_break_characters initializer.
6558 (ada_language::word_break_characters): New member function.
6559 * c-lang.c (c_language_data): Delete la_word_break_characters
6560 initializer.
6561 (cplus_language_data): Likewise.
6562 (asm_language_data): Likewise.
6563 (minimal_language_data): Likewise.
6564 * completer.c: Update global comment.
6565 (advance_to_expression_complete_word_point): Update call to
6566 word_break_characters.
6567 (complete_files_symbols): Likewise.
6568 (complete_line_internal_1): Likewise.
6569 (default_completer_handle_brkchars): Likewise.
6570 (skip_quoted_chars): Likewise.
6571 * d-lang.c (d_language_data): Delete la_word_break_characters
6572 initializer.
6573 * f-lang.c (f_word_break_characters): Delete.
6574 (f_language_data): Delete la_word_break_characters initializer.
6575 (f_language::word_break_characters): New member function.
6576 * go-lang.c (go_language_data): Delete la_word_break_characters
6577 initializer.
6578 * language.c (unknown_language_data): Likewise.
6579 (auto_language_data): Likewise.
6580 * language.h (default_word_break_characters): Move declaration to
6581 earlier in the file.
6582 (language_data): Delete la_word_break_characters field.
6583 (language_defn::word_break_characters): New member function.
6584 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6585 initializer.
6586 * objc-lang.c (objc_language_data): Likewise.
6587 * opencl-lang.c (opencl_language_data): Likewise.
6588 * p-lang.c (pascal_language_data): Likewise.
6589 * rust-lang.c (rust_language_data): Likewise.
6590
6591 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6592
6593 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6594 (ada_language_data): Delete la_get_symbol_name_matcher
6595 initializer.
6596 (language_defn::get_symbol_name_matcher_inner): New member
6597 function.
6598 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6599 initializer.
6600 (cplus_language_data): Likewise.
6601 (cplus_language::get_symbol_name_matcher_inner): New member
6602 function.
6603 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6604 (minimal_language_data): Likewise.
6605 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6606 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6607 initializer.
6608 * dictionary.c (iter_match_first_hashed): Update call to
6609 get_symbol_name_matcher.
6610 (iter_match_next_hashed): Likewise.
6611 (iter_match_next_linear): Likewise.
6612 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6613 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6614 initializer.
6615 (f_language::get_symbol_name_matcher_inner): New member function.
6616 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6617 initializer.
6618 * language.c (default_symbol_name_matcher): Update header comment,
6619 make static.
6620 (language_defn::get_symbol_name_matcher): New definition.
6621 (language_defn::get_symbol_name_matcher_inner): Likewise.
6622 (get_symbol_name_matcher): Delete.
6623 (unknown_language_data): Delete la_get_symbol_name_matcher
6624 initializer.
6625 (auto_language_data): Likewise.
6626 * language.h (language_data): Delete la_get_symbol_name_matcher
6627 field.
6628 (language_defn::get_symbol_name_matcher): New member function.
6629 (language_defn::get_symbol_name_matcher_inner): Likewise.
6630 (default_symbol_name_matcher): Delete declaration.
6631 * linespec.c (find_methods): Update call to
6632 get_symbol_name_matcher.
6633 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6634 initializer.
6635 * minsyms.c (lookup_minimal_symbol): Update call to
6636 get_symbol_name_matcher.
6637 (iterate_over_minimal_symbols): Likewise.
6638 * objc-lang.c (objc_language_data): Delete
6639 la_get_symbol_name_matcher initializer.
6640 * opencl-lang.c (opencl_language_data): Likewise.
6641 * p-lang.c (pascal_language_data): Likewise.
6642 * psymtab.c (psymbol_name_matches): Update call to
6643 get_symbol_name_matcher.
6644 * rust-lang.c (rust_language_data): Delete
6645 la_get_symbol_name_matcher initializer.
6646 * symtab.c (symbol_matches_search_name): Update call to
6647 get_symbol_name_matcher.
6648 (compare_symbol_name): Likewise.
6649
6650 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6651
6652 * ada-lang.c (ada_language_data): Delete la_compute_program
6653 initializer.
6654 * c-lang.c (c_language_data): Likewise.
6655 (c_language::compute_program): New member function.
6656 (cplus_language_data): Delete la_compute_program initializer.
6657 (cplus_language::compute_program): New member function.
6658 (asm_language_data): Delete la_compute_program initializer.
6659 (minimal_language_data): Likewise.
6660 * c-lang.h (c_compute_program): Update comment.
6661 (cplus_compute_program): Likewise.
6662 * compile/compile-c-support.c (c_compute_program): Likewise.
6663 (cplus_compute_program): Likewise.
6664 * compile/compile.c (compile_to_object): Update call to
6665 la_compute_program.
6666 * d-lang.c (d_language_data): Delete la_compute_program
6667 initializer.
6668 * f-lang.c (f_language_data): Likewise.
6669 * go-lang.c (go_language_data): Likewise.
6670 * language.c (unknown_language_data): Likewise.
6671 (auto_language_data): Likewise.
6672 * language.h (language_data): Delete la_compute_program field.
6673 (language_defn::compute_program): New member function.
6674 * m2-lang.c (m2_language_data): Delete la_compute_program
6675 initializer.
6676 * objc-lang.c (objc_language_data): Likewise.
6677 * opencl-lang.c (opencl_language_data): Likewise.
6678 * p-lang.c (pascal_language_data): Likewise.
6679 * rust-lang.c (rust_language_data): Likewise.
6680
6681 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6682
6683 * ada-lang.c (ada_language_data) Delete
6684 la_class_name_from_physname initializer.
6685 * c-lang.c (c_language_data): Likewise.
6686 (cplus_language_data): Likewise.
6687 (cplus_language::class_name_from_physname): New member function.
6688 (asm_language_data): Delete la_class_name_from_physname
6689 initializer.
6690 (minimal_language_data): Likewise.
6691 * d-lang.c (d_language_data): Likewise.
6692 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6693 method on language_defn class.
6694 (guess_full_die_structure_name): Likewise.
6695 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6696 initializer.
6697 * go-lang.c (go_language_data): Likewise.
6698 * language.c (language_class_name_from_physname): Delete.
6699 (unk_lang_class_name): Delete.
6700 (unknown_language_data): Delete la_class_name_from_physname
6701 initializer.
6702 (auto_language_data): Likewise.
6703 * language.h (language_data): Delete la_class_name_from_physname
6704 field.
6705 (language_defn::class_name_from_physname): New function.
6706 (language_class_name_from_physname): Delete declaration.
6707 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6708 initializer.
6709 * objc-lang.c (objc_language_data): Likewise.
6710 * opencl-lang.c (opencl_language_data): Likewise.
6711 * p-lang.c (pascal_language_data): Likewise.
6712 * rust-lang.c (rust_language_data): Likewise.
6713
6714 2020-06-16 Tom Tromey <tom@tromey.com>
6715
6716 * tui/tui-data.h (STATUS_NAME): New macro.
6717 * tui/tui-layout.c (tui_remove_some_windows)
6718 (initialize_known_windows, tui_register_window)
6719 (tui_layout_split::remove_windows, initialize_layouts)
6720 (tui_new_layout_command): Don't use hard-coded window names.
6721
6722 2020-06-16 Tom Tromey <tom@tromey.com>
6723
6724 PR tui/25348:
6725 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6726 tui_initialize_readline. Only run once. Call rl_initialize.
6727 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6728 tui_initialize_readline.
6729 * tui/tui-io.c (tui_setup_io): Call
6730 tui_ensure_readline_initialized.
6731 * tui/tui-interp.c (tui_interp::init): Update.
6732
6733 2020-06-16 Tom Tromey <tom@tromey.com>
6734
6735 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6736 Also preserve the status window.
6737
6738 2020-06-16 Tom Tromey <tom@tromey.com>
6739
6740 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6741 where m_window==nullptr.
6742
6743 2020-06-15 Tom Tromey <tromey@adacore.com>
6744
6745 * windows-nat.c (windows_nat::handle_output_debug_string):
6746 Update.
6747 (windows_nat::handle_ms_vc_exception): Update.
6748 * target.h (target_read_string): Change API.
6749 * target.c (target_read_string): Change API.
6750 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6751 Update.
6752 * solib-frv.c (frv_current_sos): Update.
6753 * solib-dsbt.c (dsbt_current_sos): Update.
6754 * solib-darwin.c (darwin_current_sos): Update.
6755 * linux-thread-db.c (inferior_has_bug): Update.
6756 * expprint.c (print_subexp_standard): Update.
6757 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6758 (ada_exception_message_1): Update.
6759
6760 2020-06-15 Tom Tromey <tromey@adacore.com>
6761
6762 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6763
6764 2020-06-15 Tom Tromey <tromey@adacore.com>
6765
6766 * valprint.c (read_string): Update comment.
6767 * target.c (MIN): Remove.
6768 (target_read_string): Rewrite.
6769
6770 2020-06-15 Tom Tromey <tromey@adacore.com>
6771
6772 * corefile.c (read_memory_string): Remove.
6773 * ada-valprint.c (ada_value_print_ptr): Update.
6774 * ada-lang.h (ada_tag_name): Change return type.
6775 * ada-lang.c (type_from_tag): Update.
6776 (ada_tag_name_from_tsd): Change return type. Use
6777 target_read_string.
6778 (ada_tag_name): Likewise.
6779 * gdbcore.h (read_memory_string): Don't declare.
6780
6781 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6782
6783 * symtab.c (rbreak_command): Ignore Windows drive colon.
6784
6785 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6786
6787 * NEWS: Mention removed GDBserver host support.
6788
6789 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6790
6791 * features/riscv/rebuild-csr-xml.sh: Updated.
6792
6793 2020-06-11 Tom Tromey <tom@tromey.com>
6794
6795 PR gdb/18318:
6796 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6797
6798 2020-06-09 Jonny Grant <jg@jguk.org>
6799 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6800
6801 * main.c (captured_main_1): Don't print new line after help.
6802 (print_gdb_help): add mailing list and IRC channel information
6803 to --help. Add new lines between items in the footer. Remove
6804 quotes around bug url.
6805
6806 2020-06-11 Keith Seitz <keiths@redhat.com>
6807
6808 PR gdb/21356
6809 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6810 Resolve typedefs for type length calculations.
6811
6812 2020-06-10 Tom de Vries <tdevries@suse.de>
6813
6814 PR ada/24713
6815 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6816 (write_psymbols): Enable .gdb_index for ada.
6817 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6818 ada.
6819
6820 2020-06-10 Tom de Vries <tdevries@suse.de>
6821
6822 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6823 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6824 namei" instead of "const char *name" argument.
6825 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6826 dw2_symtab_iter_init.
6827
6828 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6829
6830 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6831 to use type::field and field::type instead.
6832
6833 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6834
6835 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6836 to use field::type instead.
6837
6838 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6839
6840 * gdbtypes.h (struct field) <type, set_type>: New methods.
6841 Rename `type` field to...
6842 <m_type>: ... this. Change references throughout to use type or
6843 set_type methods.
6844 (FIELD_TYPE): Use field::type. Change call sites that modify
6845 the field's type to use field::set_type instead.
6846
6847 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6848
6849 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6850 to use type::index_type instead.
6851
6852 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6853
6854 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6855 methods.
6856 (TYPE_INDEX_TYPE): Use type::index_type.
6857 * gdbtypes.c (create_array_type_with_stride): Likewise.
6858
6859 2020-06-07 Tom Tromey <tom@tromey.com>
6860
6861 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6862 parameter.
6863 (generic_value_print): Update.
6864
6865 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6866
6867 Revert commit 982a38f60b0.
6868 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6869
6870 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6871
6872 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6873 avoid use after free.
6874
6875 2020-06-05 Tom de Vries <tdevries@suse.de>
6876
6877 * NEWS: Fix typos.
6878
6879 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6880
6881 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6882 the per_bfd object.
6883 (dwarf2_read_debug_names): Likewise.
6884 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6885 object when re-using a per_bfd object with an index.
6886
6887 2020-06-03 Tom de Vries <tdevries@suse.de>
6888
6889 PR symtab/26046
6890 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6891 children for C++.
6892 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6893 DW_TAG_subprogram.
6894
6895 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6896
6897 * ada-lang.c (ada_language_data): Delete skip_trampoline
6898 initializer.
6899 * c-lang.c (c_language_data): Likewise.
6900 (cplus_language_data): Likewise.
6901 (cplus_language::skip_trampoline): New member function.
6902 (asm_language_data): Delete skip_trampoline initializer.
6903 (minimal_language_data): Likewise.
6904 * d-lang.c (d_language_data): Likewise.
6905 * f-lang.c (f_language_data): Likewise.
6906 * go-lang.c (go_language_data): Likewise.
6907 * language.c (unk_lang_trampoline): Delete function.
6908 (skip_language_trampoline): Update.
6909 (unknown_language_data): Delete skip_trampoline initializer.
6910 (auto_language_data): Likewise.
6911 * language.h (language_data): Delete skip_trampoline field.
6912 (language_defn::skip_trampoline): New function.
6913 * m2-lang.c (m2_language_data): Delete skip_trampoline
6914 initializer.
6915 * objc-lang.c (objc_skip_trampoline): Delete function, move
6916 implementation to objc_language::skip_trampoline.
6917 (objc_language_data): Delete skip_trampoline initializer.
6918 (objc_language::skip_trampoline): New member function with
6919 implementation from objc_skip_trampoline.
6920 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6921 initializer.
6922 * p-lang.c (pascal_language_data): Likewise.
6923 * rust-lang.c (rust_language_data): Likewise.
6924
6925 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6926
6927 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6928 (ada_language::demangle): New member function.
6929 * c-lang.c (c_language_data): Delete la_demangle initializer.
6930 (cplus_language_data): Delete la_demangle initializer.
6931 (cplus_language::demangle): New member function.
6932 (asm_language_data): Delete la_demangle initializer.
6933 (minimal_language_data): Delete la_demangle initializer.
6934 * d-lang.c (d_language_data): Delete la_demangle initializer.
6935 (d_language::demangle): New member function.
6936 * f-lang.c (f_language_data): Delete la_demangle initializer.
6937 (f_language::demangle): New member function.
6938 * go-lang.c (go_language_data): Delete la_demangle initializer.
6939 (go_language::demangle): New member function.
6940 * language.c (language_demangle): Update.
6941 (unk_lang_demangle): Delete.
6942 (unknown_language_data): Delete la_demangle initializer.
6943 (unknown_language::demangle): New member function.
6944 (auto_language_data): Delete la_demangle initializer.
6945 (auto_language::demangle): New member function.
6946 * language.h (language_data): Delete la_demangle field.
6947 (language_defn::demangle): New function.
6948 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6949 * objc-lang.c (objc_language_data): Delete la_demangle
6950 initializer.
6951 (objc_language::demangle): New member function.
6952 * opencl-lang.c (opencl_language_data): Delete la_demangle
6953 initializer.
6954 * p-lang.c (pascal_language_data): Likewise.
6955 * rust-lang.c (rust_language_data): Likewise.
6956 (rust_language::demangle): New member function.
6957
6958 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6959
6960 * ada-lang.c (ada_language_data): Delete la_print_type
6961 initializer.
6962 (ada_language::print_type): New member function.
6963 * c-lang.c (c_language_data): Delete la_print_type initializer.
6964 (c_language::print_type): New member function.
6965 (cplus_language_data): Delete la_print_type initializer.
6966 (cplus_language::print_type): New member function.
6967 (asm_language_data): Delete la_print_type initializer.
6968 (asm_language::print_type): New member function.
6969 (minimal_language_data): Delete la_print_type initializer.
6970 (minimal_language::print_type): New member function.
6971 * d-lang.c (d_language_data): Delete la_print_type initializer.
6972 (d_language::print_type): New member function.
6973 * f-lang.c (f_language_data): Delete la_print_type initializer.
6974 (f_language::print_type): New member function.
6975 * go-lang.c (go_language_data): Delete la_print_type initializer.
6976 (go_language::print_type): New member function.
6977 * language.c (unk_lang_print_type): Delete.
6978 (unknown_language_data): Delete la_print_type initializer.
6979 (unknown_language::print_type): New member function.
6980 (auto_language_data): Delete la_print_type initializer.
6981 (auto_language::print_type): New member function.
6982 * language.h (language_data): Delete la_print_type field.
6983 (language_defn::print_type): New function.
6984 (LA_PRINT_TYPE): Update.
6985 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6986 (m2_language::print_type): New member function.
6987 * objc-lang.c (objc_language_data): Delete la_print_type
6988 initializer.
6989 (objc_language::print_type): New member function.
6990 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6991 to opencl_language::print_type.
6992 (opencl_language_data): Delete la_print_type initializer.
6993 (opencl_language::print_type): New member function, implementation
6994 from opencl_print_type.
6995 * p-lang.c (pascal_language_data): Delete la_print_type
6996 initializer.
6997 (pascal_language::print_type): New member function.
6998 * rust-lang.c (rust_print_type): Delete, implementation moved to
6999 rust_language::print_type.
7000 (rust_language_data): Delete la_print_type initializer.
7001 (rust_language::print_type): New member function, implementation
7002 from rust_print_type.
7003
7004 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7005
7006 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7007 implementation moves to...
7008 (ada_language::sniff_from_mangled_name): ...here. Update return
7009 type.
7010 (ada_language_data): Delete la_sniff_from_mangled_name
7011 initializer.
7012 * c-lang.c (c_language_data): Likewise.
7013 (cplus_language_data): Likewise.
7014 (cplus_language::sniff_from_mangled_name): New member function,
7015 implementation taken from gdb_sniff_from_mangled_name.
7016 (asm_language_data): Delete la_sniff_from_mangled_name
7017 initializer.
7018 (minimal_language_data): Likewise.
7019 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7020 implementation moves to cplus_language::sniff_from_mangled_name.
7021 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7022 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7023 moves to...
7024 (d_language::sniff_from_mangled_name): ...here.
7025 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7026 * f-lang.c (f_language_data): Likewise.
7027 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7028 moves to...
7029 (go_language::sniff_from_mangled_name): ...here.
7030 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7031 * language.c (language_sniff_from_mangled_name): Delete.
7032 (unknown_language_data): Delete la_sniff_from_mangled_name
7033 initializer.
7034 (auto_language_data): Likewise.
7035 * language.h (language_data): Delete la_sniff_from_mangled_name
7036 field.
7037 (language_defn::sniff_from_mangled_name): New function.
7038 (language_sniff_from_mangled_name): Delete declaration.
7039 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7040 field.
7041 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7042 implementation moves to...
7043 (objc_language::sniff_from_mangled_name): ...here.
7044 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7045 * opencl-lang.c (opencl_language_data): Likewise.
7046 * p-lang.c (pascal_language_data): Likewise.
7047 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7048 implementation moves to...
7049 (rust_language::sniff_from_mangled_name): ...here.
7050 (rust_language_data): Delete la_sniff_from_mangled_name
7051 initializer.
7052 * symtab.c (symbol_find_demangled_name): Call
7053 sniff_from_mangled_name member function.
7054
7055 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7056
7057 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7058 initializer.
7059 * c-lang.c (c_language_data): Likewise.
7060 (cplus_language_data): Likewise.
7061 (cplus_language::search_name_hash): New member function.
7062 (asm_language_data): Delete la_search_name_hash initializer.
7063 (minimal_language_data): Likewise.
7064 * d-lang.c (d_language_data): Likewise.
7065 * dictionary.c (default_search_name_hash): Rename to...
7066 (language_defn::search_name_hash): ...this.
7067 * f-lang.c (f_language_data): Likewise.
7068 (f_language::search_name_hash): New member function.
7069 * go-lang.c (go_language_data): Delete la_search_name_hash
7070 initializer.
7071 * language.c (unknown_language_data): Likewise.
7072 (auto_language_data): Likewise.
7073 * language.h (struct language_data): Delete la_search_name_hash
7074 field.
7075 (language_defn::search_name_hash): Declare new member function.
7076 (default_search_name_hash): Delete declaration.
7077 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7078 initializer.
7079 * objc-lang.c (objc_language_data): Likewise.
7080 * opencl-lang.c (opencl_language_data): Likewise.
7081 * p-lang.c (pascal_language_data): Likewise.
7082 * rust-lang.c (rust_language_data): Likewise.
7083 * symtab.c (search_name_hash): Update call.
7084
7085 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7086
7087 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7088 initializer.
7089 * c-lang.c (class compile_instance): Declare.
7090 (c_language_data): Delete la_get_compile_instance initializer.
7091 (c_language::get_compile_instance): New member function.
7092 (cplus_language_data): Delete la_get_compile_instance initializer.
7093 (cplus_language::get_compile_instance): New member function.
7094 (asm_language_data): Delete la_get_compile_instance initializer.
7095 (minimal_language_data): Likewise.
7096 * c-lang.h (c_get_compile_context): Update comment.
7097 (cplus_get_compile_context): Update comment.
7098 * compile/compile.c (compile_to_object): Update calls, don't rely
7099 on function pointer being NULL.
7100 * d-lang.c (d_language_data): Delete la_get_compile_instance
7101 initializer.
7102 * f-lang.c (f_language_data): Likewise.
7103 * go-lang.c (go_language_data): Likewise.
7104 * language.c (unknown_language_data): Likewise.
7105 (auto_language_data): Likewise.
7106 * language.h (language_data): Delete la_get_compile_instance field.
7107 (language_defn::get_compile_instance): New member function.
7108 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7109 initializer.
7110 * objc-lang.c (objc_language_data): Likewise.
7111 * opencl-lang.c (opencl_language_data): Likewise.
7112 * p-lang.c (pascal_language_data): Likewise.
7113 * rust-lang.c (rust_language_data): Likewise.
7114
7115 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7116
7117 * ada-lang.c (ada_add_all_symbols): Update comment.
7118 (ada_iterate_over_symbols): Delete, move implementation to...
7119 (ada_language::iterate_over_symbols): ...here, a new member
7120 function, rewrite to use range based for loop.
7121 (ada_language_data): Delete la_iterate_over_symbols initializer.
7122 * c-lang.c (c_language_data): Likewise.
7123 (cplus_language_data): Likewise.
7124 (asm_language_data): Likewise.
7125 (minimal_language_data): Likewise.
7126 * d-lang.c (d_language_data): Likewise.
7127 * f-lang.c (f_language_data): Likewise.
7128 * go-lang.c (go_language_data): Likewise.
7129 * language.c (unknown_language_data): Likewise.
7130 (auto_language_data): Likewise.
7131 * language.h (language_data): Delete la_iterate_over_symbols field.
7132 (language_defn::iterate_over_symbols): New member function.
7133 (LA_ITERATE_OVER_SYMBOLS): Update.
7134 * linespec.c (iterate_over_all_matching_symtabs): Update.
7135 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7136 initializer.
7137 * objc-lang.c (objc_language_data): Likewise.
7138 * opencl-lang.c (opencl_language_data): Likewise.
7139 * p-lang.c (pascal_language_data): Likewise.
7140 * rust-lang.c (rust_language_data): Likewise.
7141
7142 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7143
7144 * ada-lang.c (ada_language_data): Delete
7145 la_lookup_transparent_type initializer.
7146 * c-lang.c (c_language_data): Likewise.
7147 (cplus_language_data): Likewise.
7148 (cplus_language::lookup_transparent_type): New member function.
7149 (asm_language_data): Delete la_lookup_transparent_type
7150 initializer.
7151 (minimal_language_data): Likewise.
7152 * d-lang.c (d_language_data): Likewise.
7153 * f-lang.c (f_language_data): Likewise.
7154 * go-lang.c (go_language_data): Likewise.
7155 * language.c (unknown_language_data): Likewise.
7156 (auto_language_data): Likewise.
7157 * language.h (struct language_data): Delete
7158 la_lookup_transparent_type field.
7159 (language_defn::lookup_transparent_type): New member function.
7160 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7161 initializer.
7162 * objc-lang.c (objc_language_data): Likewise.
7163 * opencl-lang.c (opencl_language_data): Likewise.
7164 * p-lang.c (pascal_language_data): Likewise.
7165 * rust-lang.c (rust_language_data): Likewise.
7166 * symtab.c (symbol_matches_domain): Update call.
7167
7168 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7169
7170 * ada-lang.c (ada_language_arch_info): Delete function, move
7171 implementation to...
7172 (ada_language::language_arch_info): ...here, a new member
7173 function.
7174 (ada_language_data): Delete la_language_arch_info.
7175 * c-lang.c (c_language_data): Likewise.
7176 (c_language::language_arch_info): New member function.
7177 (cplus_language_arch_info): Delete function, move
7178 implementation to...
7179 (cplus_language::language_arch_info): ...here, a new member
7180 function.
7181 (cplus_language_data): Delete la_language_arch_info.
7182 (asm_language_data): Likewise.
7183 (asm_language::language_arch_info): New member function.
7184 (minimal_language_data): Delete la_language_arch_info.
7185 (minimal_language::language_arch_info): New member function.
7186 * d-lang.c (d_language_arch_info): Delete function, move
7187 implementation to...
7188 (d_language::language_arch_info): ...here, a new member
7189 function.
7190 (d_language_data): Delete la_language_arch_info.
7191 * f-lang.c (f_language_arch_info): Delete function, move
7192 implementation to...
7193 (f_language::language_arch_info): ...here, a new member
7194 function.
7195 (f_language_data): Delete la_language_arch_info.
7196 * go-lang.c (go_language_arch_info): Delete function, move
7197 implementation to...
7198 (go_language::language_arch_info): ...here, a new member
7199 function.
7200 (go_language_data): Delete la_language_arch_info.
7201 * language.c (unknown_language_data): Likewise.
7202 (unknown_language::language_arch_info): New member function.
7203 (auto_language_data): Delete la_language_arch_info.
7204 (auto_language::language_arch_info): New member function.
7205 (language_gdbarch_post_init): Update call to
7206 la_language_arch_info.
7207 * language.h (language_data): Delete la_language_arch_info
7208 function pointer.
7209 (language_defn::language_arch_info): New function.
7210 * m2-lang.c (m2_language_arch_info): Delete function, move
7211 implementation to...
7212 (m2_language::language_arch_info): ...here, a new member
7213 function.
7214 (m2_language_data): Delete la_language_arch_info.
7215 * objc-lang.c (objc_language_arch_info): Delete function, move
7216 implementation to...
7217 (objc_language::language_arch_info): ...here, a new member
7218 function.
7219 (objc_language_data): Delete la_language_arch_info.
7220 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7221 implementation to...
7222 (opencl_language::language_arch_info): ...here, a new member
7223 function.
7224 (opencl_language_data): Delete la_language_arch_info.
7225 * p-lang.c (pascal_language_arch_info): Delete function, move
7226 implementation to...
7227 (pascal_language::language_arch_info): ...here, a new member
7228 function.
7229 (pascal_language_data): Delete la_language_arch_info.
7230 * rust-lang.c (rust_language_arch_info): Delete function, move
7231 implementation to...
7232 (rust_language::language_arch_info): ...here, a new member
7233 function.
7234 (rust_language_data): Delete la_language_arch_info.
7235
7236 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7237
7238 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7239 initializer.
7240 * c-lang.c (c_language_data): Likewise.
7241 (cplus_language_data): Likewise.
7242 (cplus_language::pass_by_reference_info): New method.
7243 (asm_language_data): Delete la_pass_by_reference initializer.
7244 (minimal_language_data): Likewise.
7245 * cp-abi.c (cp_pass_by_reference): Remove use of
7246 default_pass_by_reference.
7247 * d-lang.c (d_language_data): Likewise.
7248 * f-lang.c (f_language_data): Likewise.
7249 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7250 default_pass_by_reference.
7251 * go-lang.c (go_language_data): Likewise.
7252 * language.c (language_pass_by_reference): Update.
7253 (default_pass_by_reference): Delete.
7254 (unknown_language_data): Delete la_pass_by_reference
7255 initializer.
7256 (auto_language_data): Likewise.
7257 * language.h (struct language_data): Delete la_pass_by_reference
7258 field.
7259 (language_defn::pass_by_reference_info): New member function.
7260 (default_pass_by_reference): Delete declaration.
7261 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7262 initializer.
7263 * objc-lang.c (objc_language_data): Likewise.
7264 * opencl-lang.c (opencl_language_data): Likewise.
7265 * p-lang.c (pascal_language_data): Likewise.
7266 * rust-lang.c (rust_language_data): Likewise.
7267
7268 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7269
7270 * ada-lang.c (ada_read_var_value): Delete function, move
7271 implementation to...
7272 (ada_language::read_var_value): ...here.
7273 (ada_language_data): Delete la_read_var_value initializer.
7274 * c-lang.c (c_language_data): Likewise.
7275 (cplus_language_data): Likewise.
7276 (minimal_language_data): Likewise.
7277 * d-lang.c (d_language_data): Likewise.
7278 * f-lang.c (f_language_data): Likewise.
7279 * findvar.c (default_read_var_value): Rename to...
7280 (language_defn::read_var_value): ...this.
7281 * findvar.c (read_var_value): Update header comment, and change to
7282 call member function instead of function pointer.
7283 * go-lang.c (go_language_data): Likewise.
7284 * language.c (unknown_language_data): Delete la_read_var_value
7285 initializer.
7286 (auto_language_data): Likewise.
7287 * language.h (struct language_data): Delete la_read_var_value
7288 field.
7289 (language_defn::read_var_value): New member function.
7290 (default_read_var_value): Delete declaration.
7291 * m2-lang.c (m2_language_data): Delete la_read_var_value
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 * value.h (default_read_var_value): Delete declaration.
7298
7299 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7300
7301 * ada-lang.c (ada_print_array_index): Delete function, move
7302 implementation to...
7303 (ada_language::print_array_index): ...here.
7304 (ada_language_data): Delete la_print_array_index initializer.
7305 * c-lang.c (c_language_data): Likewise.
7306 (cplus_language_data): Likewise.
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 (default_print_array_index): Delete function, move
7312 implementation to...
7313 (language_defn::print_array_index): ...here.
7314 (unknown_language_data): Delete la_print_array_index initializer.
7315 (auto_language_data): Likewise.
7316 * language.h (struct language_data): Delete la_print_array_index
7317 field.
7318 (language_defn::print_array_index): New member function.
7319 (LA_PRINT_ARRAY_INDEX): Update.
7320 (default_print_array_index): Delete declaration.
7321 * m2-lang.c (m2_language_data): Delete la_print_array_index
7322 initializer.
7323 * objc-lang.c (objc_language_data): Likewise.
7324 * opencl-lang.c (opencl_language_data): Likewise.
7325 * p-lang.c (pascal_language_data): Likewise.
7326 * rust-lang.c (rust_language_data): Likewise.
7327
7328 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7329
7330 * gdb/ada-lang.c (ada_language_defn): Convert to...
7331 (ada_language_data): ...this.
7332 (class ada_language): New class.
7333 (ada_language_defn): New static global.
7334 * gdb/c-lang.c (c_language_defn): Convert to...
7335 (c_language_data): ...this.
7336 (class c_language): New class.
7337 (c_language_defn): New static global.
7338 (cplus_language_defn): Convert to...
7339 (cplus_language_data): ...this.
7340 (class cplus_language): New class.
7341 (cplus_language_defn): New static global.
7342 (asm_language_defn): Convert to...
7343 (asm_language_data): ...this.
7344 (class asm_language): New class.
7345 (asm_language_defn): New static global.
7346 (minimal_language_defn): Convert to...
7347 (minimal_language_data): ...this.
7348 (class minimal_language): New class.
7349 (minimal_language_defn): New static global.
7350 * gdb/d-lang.c (d_language_defn): Convert to...
7351 (d_language_data): ...this.
7352 (class d_language): New class.
7353 (d_language_defn): New static global.
7354 * gdb/f-lang.c (f_language_defn): Convert to...
7355 (f_language_data): ...this.
7356 (class f_language): New class.
7357 (f_language_defn): New static global.
7358 * gdb/go-lang.c (go_language_defn): Convert to...
7359 (go_language_data): ...this.
7360 (class go_language): New class.
7361 (go_language_defn): New static global.
7362 * gdb/language.c (unknown_language_defn): Remove declaration.
7363 (current_language): Initialize to nullptr, real initialization is
7364 moved to _initialize_language.
7365 (languages): Delete global.
7366 (language_defn::languages): Define.
7367 (set_language_command): Use language_defn::languages.
7368 (set_language): Likewise.
7369 (range_error): Likewise.
7370 (language_enum): Likewise.
7371 (language_def): Likewise.
7372 (add_set_language_command): Use language_def::languages for the
7373 language list, and language_def to lookup language pointers.
7374 (skip_language_trampoline): Use language_defn::languages.
7375 (unknown_language_defn): Convert to...
7376 (unknown_language_data): ...this.
7377 (class unknown_language): New class.
7378 (unknown_language_defn): New static global.
7379 (auto_language_defn): Convert to...
7380 (auto_language_data): ...this.
7381 (class auto_language): New class.
7382 (auto_language_defn): New static global.
7383 (language_gdbarch_post_init): Use language_defn::languages.
7384 (_initialize_language): Initialize current_language.
7385 * gdb/language.h (struct language_defn): Rename to...
7386 (struct language_data): ...this.
7387 (struct language_defn): New.
7388 (auto_language_defn): Delete.
7389 (unknown_language_defn): Delete.
7390 (minimal_language_defn): Delete.
7391 (ada_language_defn): Delete.
7392 (asm_language_defn): Delete.
7393 (c_language_defn): Delete.
7394 (cplus_language_defn): Delete.
7395 (d_language_defn): Delete.
7396 (f_language_defn): Delete.
7397 (go_language_defn): Delete.
7398 (m2_language_defn): Delete.
7399 (objc_language_defn): Delete.
7400 (opencl_language_defn): Delete.
7401 (pascal_language_defn): Delete.
7402 (rust_language_defn): Delete.
7403 * gdb/m2-lang.c (m2_language_defn): Convert to...
7404 (m2_language_data): ...this.
7405 (class m2_language): New class.
7406 (m2_language_defn): New static global.
7407 * gdb/objc-lang.c (objc_language_defn): Convert to...
7408 (objc_language_data): ...this.
7409 (class objc_language): New class.
7410 (objc_language_defn): New static global.
7411 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7412 (opencl_language_data): ...this.
7413 (class opencl_language): New class.
7414 (opencl_language_defn): New static global.
7415 * gdb/p-lang.c (pascal_language_defn): Convert to...
7416 (pascal_language_data): ...this.
7417 (class pascal_language): New class.
7418 (pascal_language_defn): New static global.
7419 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7420 language pointer, update comment format.
7421 * gdb/rust-lang.c (rust_language_defn): Convert to...
7422 (rust_language_data): ...this.
7423 (class rust_language): New class.
7424 (rust_language_defn): New static global.
7425
7426 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7427
7428 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7429 member variable.
7430 <m_stmt_at_address>: New member variable.
7431 (lnp_state_machine::record_line): Don't record some lines, update
7432 tracking of is_stmt at the same address.
7433 (lnp_state_machine::lnp_state_machine): Initialise new member
7434 variables.
7435
7436 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7437
7438 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7439 "-include gnu-nat-mig.h".
7440 * gnu-nat-mig.h: New file.
7441 * gnu-nat.c: Include "gnu-nat-mig.h".
7442 (exc_server, msg_reply_server, notify_server,
7443 process_reply_server): Remove declarations.
7444
7445 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7446
7447 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7448 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7449 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7450 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7451 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7452 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7453 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7454 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7455 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7456 to gnu_nat_target class.
7457 * gnu-nat.c: Likewise.
7458 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7459 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7460 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7461 object.
7462 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7463 instead of `gnu_target'.
7464
7465 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7466
7467 * i386-gnu-tdep.c: Include "gdbcore.h"
7468 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7469 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7470 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7471 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7472 i386_gnu_sigcontext_addr): New functions
7473 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7474 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7475 tdep.
7476
7477 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7478
7479 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7480 before fork_inferior call. Avoid calling it if target_is_pushed returns
7481 true.
7482
7483 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7484
7485 * gnu-nat.h (gnu_target): New variable declaration.
7486 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7487 gnu_target.
7488 * gnu-nat.c (gnu_target): New variable.
7489 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7490 add_thread_silent, and add_thread calls.
7491 (gnu_nat_target::create_inferior): Pass gnu_target to
7492 add_thread_silent, thread_change_ptid call.
7493 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7494 call.
7495
7496 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7497
7498 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7499 (gnu_nat_target::find_memory_regions): Remove unused
7500 `old_address' variable.
7501
7502 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7503
7504 * gnu-nat.c: Include "gdbarch.h".
7505
7506 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7507
7508 * reply_mig_hack.awk (Error return): Cast function through
7509 void *, to bypass compiler function call check.
7510
7511 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7512
7513 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7514 $(srcdir)/reply_mig_hack.awk.
7515
7516 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7517
7518 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7519
7520 2020-05-30 Jonny Grant <jg@jguk.org>
7521
7522 * configure.ac (ACX_BUGURL): change bug URL to https.
7523
7524 2020-05-30 Pedro Alves <palves@redhat.com>
7525
7526 * cp-support.c (replace_typedefs_template): New.
7527 (replace_typedefs_qualified_name): Handle
7528 DEMANGLE_COMPONENT_TEMPLATE.
7529
7530 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7531
7532 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7533 dwarf2/index-cache.h, dwarf2/index-write.c,
7534 dwarf2/index-write.h, dwarf2/line-header.c,
7535 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7536 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7537 variables and fields from `dwarf2_per_objfile` to just
7538 `per_objfile` throughout.
7539
7540 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7541
7542 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7543 <push_dwarf_reg_entry_value>: Add comment.
7544
7545 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7546 Keith Seitz <keiths@redhat.com>
7547
7548 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7549 instead of PyEval_ReleaseLock.
7550 (class gdbpy_gil): Move to earlier in file.
7551 (finalize_python): Set gdb_python_initialized.
7552 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7553 when not initialized.
7554
7555 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7556
7557 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7558 <push_dwarf_reg_entry_value>: Remove assert. Override
7559 per_objfile with caller_per_objfile.
7560
7561 2020-05-28 Tom de Vries <tdevries@suse.de>
7562
7563 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7564 PR gold/15646 workaround to symbol kind "type".
7565
7566 2020-05-27 Tom Tromey <tromey@adacore.com>
7567
7568 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7569
7570 2020-05-27 Tom Tromey <tromey@adacore.com>
7571
7572 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7573 Use htab_find_with_hash.
7574 <add_abbrev>: Remove "abbrev_number" parameter.
7575 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7576 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7577 (hash_abbrev): Add comment.
7578 (abbrev_table::lookup_abbrev): Move to header file.
7579 (abbrev_table::read): Update.
7580
7581 2020-05-27 Tom Tromey <tromey@adacore.com>
7582
7583 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7584 method.
7585 <canonical_name>: New member.
7586 <raw_name>: Rename from "name".
7587 (partial_die_info): Initialize canonical_name.
7588 (scan_partial_symbols): Check raw_name.
7589 (partial_die_parent_scope, partial_die_full_name)
7590 (add_partial_symbol, add_partial_subprogram)
7591 (add_partial_enumeration, load_partial_dies): Use "name" method.
7592 (partial_die_info::name): New method.
7593 (partial_die_info::read, guess_partial_die_structure_name)
7594 (partial_die_info::fixup): Update.
7595
7596 2020-05-27 Tom Tromey <tromey@adacore.com>
7597
7598 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7599 <get_ref_die_offset>: Inline.
7600 <get_ref_die_offset_complaint>: New method.
7601 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7602 (attribute::get_ref_die_offset_complaint): Rename from
7603 get_ref_die_offset. Just issue complaint.
7604
7605 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7606
7607 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7608
7609 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7610
7611 * exec.c (exec_file_attach): Use errno value of first openp failure.
7612
7613 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7614
7615 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7616 Don't close thread handle.
7617
7618 2020-05-27 Tom Tromey <tom@tromey.com>
7619 Simon Marchi <simon.marchi@efficios.com>
7620
7621 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7622 shared_ptr.
7623 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7624 member.
7625 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7626 dwarf2_per_bfd_objfile_data_key>: New globals.
7627 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7628 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7629 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7630 shared.
7631 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7632 short-circuit when sharing.
7633 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7634 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7635
7636 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7637
7638 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7639 to...
7640 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7641 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7642
7643 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7644
7645 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7646 build_name_components, find_name_components_bounds>:
7647 Add per_objfile parameter.
7648 (struct mapped_index) <symbol_name_at>: Likewise.
7649 (struct mapped_debug_names): Remove constructor.
7650 <dwarf2_per_objfile>: Remove field.
7651 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7652 (mapped_index_base::find_name_components_bounds,
7653 mapped_index_base::build_name_components,
7654 dw2_expand_symtabs_matching_symbol): Likewise.
7655 (class mock_mapped_index) <symbol_name_at>: Likewise.
7656 (check_match): Likewise.
7657 (check_find_bounds_finds): Likewise.
7658 (test_mapped_index_find_name_component_bounds): Update.
7659 (CHECK_MATCH): Update.
7660 (dw2_expand_symtabs_matching): Update.
7661 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7662 per_objfile parameter.
7663 <find_vec_in_debug_names>: Likewise.
7664 <m_per_objfile>: New field.
7665 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7666 parameter.
7667 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7668 (dw2_debug_names_iterator::next): Update.
7669 (dw2_debug_names_lookup_symbol): Update.
7670 (dw2_debug_names_expand_symtabs_for_function): Update.
7671 (dw2_debug_names_map_matching_symbols): Update.
7672 (dw2_debug_names_expand_symtabs_matching): Update.
7673 (dwarf2_read_debug_names): Update.
7674
7675 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7676
7677 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7678 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7679 move to dwarf2_per_objfile.
7680 <read_in_chain>: Remove.
7681 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7682 remove_all_cus, age_comp_units>: New methods.
7683 <m_dwarf2_cus>: New member.
7684 (struct dwarf2_per_cu_data) <cu>: Remove.
7685 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7686 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7687 moved to methods of dwarf2_per_objfile.
7688 (dwarf2_clear_marks): Remove.
7689 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7690 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7691 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7692 (dwarf2_per_objfile::remove_all_cus): New.
7693 (class free_cached_comp_units) <~free_cached_comp_units>:
7694 Update.
7695 (load_cu): Update.
7696 (dw2_do_instantiate_symtab): Adjust.
7697 (fill_in_sig_entry_from_dwo_entry): Adjust.
7698 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7699 (cutu_reader::cutu_reader): Likewise.
7700 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7701 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7702 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7703 and dwarf2_per_objfile::age_comp_units.
7704 (load_partial_comp_unit): Update.
7705 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7706 (process_queue): Likewise.
7707 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7708 backlink.
7709 (dwarf2_read_addr_index): Likewise.
7710 (follow_die_offset): Likewise.
7711 (dwarf2_fetch_die_loc_sect_off): Likewise.
7712 (dwarf2_fetch_constant_bytes): Likewise.
7713 (dwarf2_fetch_die_type_sect_off): Likewise.
7714 (follow_die_sig_1): Likewise.
7715 (load_full_type_unit): Likewise.
7716 (read_signatured_type): Likewise.
7717 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7718 (dwarf2_cu::~dwarf2_cu): Remove.
7719 (dwarf2_per_objfile::get_cu): New.
7720 (dwarf2_per_objfile::set_cu): New.
7721 (age_cached_comp_units): Rename to...
7722 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7723 to std::unordered_map.
7724 (free_one_cached_comp_unit): Rename to...
7725 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7726 to std::unordered_map.
7727 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7728 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7729 a dwarf2_per_objfile in data.
7730 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7731 (dwarf2_clear_marks): Remove.
7732
7733 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7734
7735 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7736 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7737 (init_tu_and_read_dwo_dies): Likewise.
7738 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7739 (cutu_reader::cutu_reader): Likewise.
7740 (load_partial_comp_unit): Likewise.
7741 (process_psymtab_comp_unit): Update.
7742 (build_type_psymtabs_1): Update.
7743 (process_skeletonless_type_unit): Update.
7744 (load_full_comp_unit): Update.
7745 (find_partial_die): Update.
7746 (dwarf2_read_addr_index): Update.
7747 (read_signatured_type): Update.
7748
7749 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7750
7751 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7752 m_header_read_in>: New fields.
7753 <get_header>: New method.
7754 * dwarf2/read.c (per_cu_header_read_in): Remove.
7755 (dwarf2_per_cu_data::get_header): New.
7756 (dwarf2_per_cu_data::addr_size): Update.
7757 (dwarf2_per_cu_data::offset_size): Update.
7758 (dwarf2_per_cu_data::ref_addr_size): Update.
7759
7760 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7761
7762 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7763 (dw2_do_instantiate_symtab): Update.
7764 (queue_and_load_all_dwo_tus): Change parameter from
7765 dwarf2_per_cu_data to dwarf2_cu.
7766 (dwarf2_fetch_die_loc_sect_off): Update.
7767 (dwarf2_fetch_constant_bytes): Update.
7768 (dwarf2_fetch_die_type_sect_off): Update.
7769
7770 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7771
7772 * dwarf2/read.c (process_full_comp_unit,
7773 process_full_type_unit): Remove per_cu, per_objfile paramters.
7774 Add dwarf2_cu parameter.
7775 (process_queue): Update.
7776
7777 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7778
7779 * dwarf2/read.c (create_cu_from_index_list): Replace
7780 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7781 (create_cus_from_index_list): Likewise.
7782 (create_cus_from_index): Likewise.
7783 (create_signatured_type_table_from_index): Likewise.
7784 (create_cus_from_debug_names_list): Likewise.
7785 (create_cus_from_debug_names): Likewise.
7786 (dwarf2_read_gdb_index): Update.
7787 (dwarf2_read_debug_names): Update.
7788
7789 2020-05-27 Tom Tromey <tom@tromey.com>
7790 Simon Marchi <simon.marchi@efficios.com>
7791
7792 * dwarf2/read.h (struct dwarf2_per_objfile)
7793 <get_type_for_signatured_type, set_type_for_signatured_type>:
7794 New methods.
7795 <m_type_map>: New member.
7796 (struct signatured_type) <type>: Remove.
7797 * dwarf2/read.c
7798 (dwarf2_per_objfile::get_type_for_signatured_type,
7799 dwarf2_per_objfile::set_type_for_signatured_type): New.
7800 (get_signatured_type): Use new methods.
7801
7802 2020-05-27 Tom Tromey <tom@tromey.com>
7803 Simon Marchi <simon.marchi@efficios.com>
7804
7805 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7806 (struct dwarf2_per_objfile) <type_units>: New member.
7807 <get_type_unit_group_unshareable>: New method.
7808 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7809 num_symtabs, symtabs>: Remove; move to
7810 type_unit_group_unshareable.
7811 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7812 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7813 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7814
7815 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7816
7817 * dwarf2/read.h (struct dwarf2_per_cu_data):
7818 <dwarf2_per_objfile>: Remove.
7819 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7820 dwarf2_per_objfile.
7821 (create_signatured_type_table_from_index): Likewise.
7822 (create_signatured_type_table_from_debug_names): Likewise.
7823 (create_debug_type_hash_table): Likewise.
7824 (fill_in_sig_entry_from_dwo_entry): Likewise.
7825 (create_type_unit_group): Likewise.
7826 (read_comp_units_from_section): Likewise.
7827 (create_cus_hash_table): Likewise.
7828
7829 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7830
7831 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7832 dwarf2_per_cu_data::dwarf2_per_objfile.
7833 (compute_compunit_symtab_includes): Likewise.
7834 (dwarf2_cu::start_symtab): Likewise.
7835
7836 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7837
7838 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7839 parameter.
7840 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7841 (read_namespace_alias): Update.
7842 (lookup_die_type): Update.
7843 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7844 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7845 Update.
7846 (disassemble_dwarf_expression): Update.
7847
7848 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7849
7850 * dwarf2/read.h (struct dwarf2_queue_item): Add
7851 dwarf2_per_objfile parameter, assign new parameter.
7852 <per_objfile>: New field.
7853 * dwarf2/read.c (free_one_cached_comp_unit): Add
7854 dwarf2_per_objfile parameter.
7855 (queue_comp_unit): Likewise.
7856 (dw2_do_instantiate_symtab): Update.
7857 (process_psymtab_comp_unit): Update.
7858 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7859 (process_imported_unit_die): Update.
7860 (queue_and_load_dwo_tu): Update.
7861 (follow_die_offset): Update.
7862 (follow_die_sig_1): Update.
7863
7864 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7865
7866 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7867 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7868 (read_call_site_scope): Assign per_objfile.
7869 (dwarf2_per_cu_data::objfile): Remove.
7870 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7871 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7872 dwarf2_per_objfile parameter.
7873 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7874 dwarf2_per_objfile parameter.
7875 (dwarf_expr_reg_to_entry_parameter): Add output
7876 dwarf2_per_objfile parameter.
7877 (locexpr_get_frame_base): Update.
7878 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7879 <push_dwarf_reg_entry_value>: Update.
7880 <call_site_to_target_addr>: Update.
7881 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7882 parameter.
7883 (value_of_dwarf_reg_entry): Update.
7884 (rw_pieced_value): Update.
7885 (indirect_synthetic_pointer): Update.
7886 (dwarf2_evaluate_property): Update.
7887 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7888 parameter.
7889 (locexpr_read_variable): Update.
7890 (locexpr_get_symbol_read_needs): Update.
7891 (loclist_read_variable): Update.
7892
7893 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7894
7895 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7896 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7897 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7898 parameter.
7899 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7900 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7901 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7902 parameter.
7903 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7904 sect_variable_value): Add dwarf2_per_objfile parameter.
7905 (class dwarf_evaluate_loc_desc) <dwarf_call,
7906 dwarf_variable_value>: Update.
7907 (fetch_const_value_from_synthetic_pointer): Add
7908 dwarf2_per_objfile parameter.
7909 (fetch_const_value_from_synthetic_pointer): Update.
7910 (coerced_pieced_ref): Update.
7911 (class symbol_needs_eval_context) <dwarf_call,
7912 dwarf_variable_value>: Update.
7913 (dwarf2_compile_expr_to_ax): Update.
7914
7915 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7916
7917 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7918 parameter.
7919 (dwarf2_evaluate_loc_desc_full): Update.
7920
7921 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7922
7923 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7924 parameter.
7925 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7926 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7927 dwarf2_per_objfile parameter.
7928 (decode_debug_loc_dwo_addresses): Likewise.
7929 (dwarf2_find_location_expression): Update.
7930 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7931 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7932 parameter.
7933 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7934 parameter.
7935 (locexpr_describe_location_1): Likewise.
7936 (locexpr_describe_location): Update.
7937
7938 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7939
7940 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7941 Remove.
7942 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7943 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7944 (dwarf2_compile_property_to_c): Update.
7945 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7946 use text offset from objfile.
7947 (locexpr_tracepoint_var_ref): Update.
7948 (locexpr_generate_c_location): Update.
7949 (loclist_describe_location): Update.
7950 (loclist_tracepoint_var_ref): Update.
7951 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7952 dwarf2_per_objfile parameter.
7953 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7954 use text offset from objfile.
7955 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7956
7957 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7958
7959 * dwarf2/expr.h (struct dwarf_expr_context)
7960 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7961 <offset>: Remove.
7962 <per_objfile>: New member.
7963 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7964 dwarf2_per_objfile parameter. Don't set offset, set
7965 per_objfile.
7966 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7967 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7968 a dwarf2_per_objfile object instead of an offset.
7969 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7970 constructor.
7971 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7972 to dwarf2_expr_executor constructor. Don't set offset.
7973 (dwarf2_fetch_cfa_info): Update.
7974 (struct dwarf2_frame_cache) <text_offset>: Remove.
7975 <per_objfile>: New field.
7976 (dwarf2_frame_cache): Update.
7977 (dwarf2_frame_prev_register): Update.
7978 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7979 <dwarf_evaluate_loc_desc>: Add constructor.
7980 (dwarf2_evaluate_loc_desc_full): Update.
7981 (dwarf2_locexpr_baton_eval): Update.
7982 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7983 Add constructor.
7984 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7985
7986 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7987
7988 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7989 addr_sized_int_type>: Move to dwarf2_cu.
7990 <int_type>: Move to dwarf2_per_objfile.
7991 (struct dwarf2_per_objfile) <int_type>: Move here.
7992 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7993 addr_sized_int_type>: Move here.
7994 (read_func_scope): Update.
7995 (read_array_type): Update.
7996 (read_tag_string_type): Update.
7997 (attr_to_dynamic_prop): Update.
7998 (dwarf2_per_cu_data::int_type): Rename to...
7999 (dwarf2_per_objfile::int_type): ... this.
8000 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8001 (dwarf2_cu::addr_sized_int_type): ... this.
8002 (read_subrange_type): Update.
8003 (dwarf2_per_cu_data::addr_type): Rename to...
8004 (dwarf2_cu::addr_type): ... this.
8005 (set_die_type): Update.
8006
8007 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8008
8009 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8010 data through per_cu->cu.
8011
8012 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8013
8014 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8015 dwarf2_per_cu_data parameter fo dwarf2_cu.
8016 (lookup_dwo_type_unit): Likewise.
8017 (read_cutu_die_from_dwo): Likewise.
8018 (lookup_dwo_unit): Likewise.
8019 (open_and_init_dwo_file): Likewise.
8020 (lookup_dwo_cutu): Likewise.
8021 (lookup_dwo_comp_unit): Likewise.
8022 (lookup_dwo_type_unit): Likewise.
8023 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8024 (cutu_reader::cutu_reader): Update.
8025
8026 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8027
8028 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8029 parameter.
8030 (process_full_type_unit): Likewise.
8031 (process_queue): Update.
8032
8033 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8034
8035 * dwarf2/read.c (recursively_compute_inclusions): Add
8036 dwarf2_per_objfile parameter.
8037 (compute_compunit_symtab_includes): Likewise.
8038 (process_cu_includes): Update.
8039
8040 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8041
8042 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8043 parameter.
8044 (create_type_unit_group): Update.
8045 (process_psymtab_comp_unit_reader): Update.
8046 (build_type_psymtabs_reader): Update.
8047
8048 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8049
8050 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8051 object through m_this_cu->cu.
8052
8053 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8054
8055 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8056 the info parameter.
8057 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8058
8059 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8060
8061 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8062 per_objfile parameter.
8063 (load_full_type_unit): Add per_objfile parameter.
8064 (read_signatured_type): Likewise.
8065 (load_full_comp_unit): Likewise.
8066 (load_cu): Likewise.
8067 (dw2_do_instantiate_symtab): Likewise.
8068 (dw2_get_file_names): Likewise.
8069 (dw2_map_symtabs_matching_filename): Update.
8070 (dw_expand_symtabs_matching_file_matcher): Update.
8071 (dw2_map_symbol_filenames): Update.
8072 (process_psymtab_comp_unit): Add per_objfile parameter.
8073 (build_type_psymtabs_1): Update.
8074 (process_skeletonless_type_unit): Update.
8075 (dwarf2_build_psymtabs_hard): Update.
8076 (load_partial_comp_unit): Add per_objfile parameter.
8077 (scan_partial_symbols): Update.
8078 (load_full_comp_unit): Add per_objfile parameter.
8079 (process_imported_unit_die): Update.
8080 (create_cus_hash_table): Update.
8081 (find_partial_die): Update.
8082 (dwarf2_read_addr_index): Update.
8083 (follow_die_offset): Update.
8084 (dwarf2_fetch_die_loc_sect_off): Update.
8085 (dwarf2_fetch_constant_bytes): Update.
8086 (dwarf2_fetch_die_type_sect_off): Update.
8087 (follow_die_sig_1): Update.
8088 (load_full_type_unit): Add per_objfile parameter.
8089 (read_signatured_type): Likewise.
8090
8091 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8092
8093 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8094 of objfile_name.
8095
8096 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8097
8098 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8099 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8100 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8101 field.
8102 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8103 (create_cus_from_index): Update.
8104 (dwarf2_read_gdb_index): Update.
8105 (create_cus_from_debug_names): Update.
8106 (dwarf2_read_debug_names): Update.
8107 (get_abbrev_section_for_cu): Update.
8108 (create_all_comp_units): Update.
8109 (read_attribute_value): Update.
8110 (get_debug_line_section): Update.
8111 * dwarf2/index-cache.c (index_cache::store): Update.
8112 * dwarf2/index-write.c (save_gdb_index_command): Update.
8113 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8114
8115 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8116
8117 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8118 member.
8119 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8120 dwarf2_per_cu_data::per_bfd.
8121 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8122 (create_type_unit_group): Likewise.
8123 (queue_comp_unit): Remove reference to
8124 per_cu->dwarf2_per_objfile.
8125 (maybe_queue_comp_unit): Likewise.
8126 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8127 (create_cus_hash_table): Assign new field.
8128
8129 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8130
8131 * dwarf2/read.c: Replace
8132 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8133 dwarf2_cu->per_objfile throughout.
8134
8135 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8136
8137 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8138 parameter, don't use per_cu->dwarf2_per_objfile.
8139 (dw2_instantiate_symtab): Likewise.
8140 (dw2_find_last_source_symtab): Update.
8141 (dw2_map_expand_apply): Update.
8142 (dw2_lookup_symbol): Update.
8143 (dw2_expand_symtabs_for_function): Update.
8144 (dw2_expand_all_symtabs): Update.
8145 (dw2_expand_symtabs_with_fullname): Update.
8146 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8147 don't use per_cu->dwarf2_per_objfile.
8148 (dw2_expand_marked_cus): Update.
8149 (dw2_find_pc_sect_compunit_symtab): Update.
8150 (dw2_debug_names_lookup_symbol): Update.
8151 (dw2_debug_names_expand_symtabs_for_function): Update.
8152 (dw2_debug_names_map_matching_symbols): Update.
8153 (dwarf2_psymtab::expand_psymtab): Update.
8154
8155 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8156
8157 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8158 <per_objfile>: New member.
8159 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8160 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8161 call to dwarf2_cu.
8162 (cutu_reader::cutu_reader): Update.
8163 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8164
8165 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8166
8167 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8168 struct dwarf2_per_objfile.
8169 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8170 dwarf2_per_bfd.
8171 * dwarf2/read.c (set_die_type): Update.
8172 (get_die_type_at_offset): Update.
8173
8174 2020-05-27 Tom Tromey <tom@tromey.com>
8175 Simon Marchi <simon.marchi@efficios.com>
8176
8177 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8178 method.
8179 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8180 get_symtab, set_symtab>: New methods.
8181 <m_symtabs>: New field.
8182 (struct dwarf2_psymtab): Derive from partial_symtab.
8183 <readin_p, get_compunit_symtab>: Declare methods.
8184 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8185 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8186 New methods.
8187 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8188 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8189 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8190 (dw2_symtab_iter_next, dw2_print_stats)
8191 (dw2_expand_symtabs_with_fullname)
8192 (dw2_expand_symtabs_matching_one)
8193 (dw_expand_symtabs_matching_file_matcher)
8194 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8195 (dw2_debug_names_iterator::next)
8196 (dw2_debug_names_map_matching_symbols)
8197 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8198 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8199 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8200 New methods.
8201 (get_compunit_symtab, process_full_comp_unit)
8202 (process_full_type_unit): Update.
8203 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8204
8205 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8206
8207 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8208 then introduce a new dwarf2_per_objfile type.
8209 <read_line_string>: Move to the new dwarf2_per_objfile type.
8210 <objfile>: Likewise.
8211 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8212 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8213 dwarf2_per_objfile->per_bfd.
8214 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8215 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8216 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8217 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8218 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8219 (dwarf2_per_objfile::locate_sections): Rename to...
8220 (dwarf2_per_bfd::locate_sections): ... this.
8221 (dwarf2_per_objfile::get_cutu): Rename to...
8222 (dwarf2_per_bfd::get_cutu): ... this.
8223 (dwarf2_per_objfile::get_cu): Rename to...
8224 (dwarf2_per_bfd::get_cu): ... this.
8225 (dwarf2_per_objfile::get_tu): Rename to...
8226 (dwarf2_per_bfd::get_tu): ... this.
8227 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8228 (dwarf2_per_bfd::allocate_per_cu): ... this.
8229 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8230 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8231 (get_gdb_index_contents_ftype): Change parameter from
8232 dwarf2_per_objfile to dwarf2_per_bfd.
8233 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8234 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8235
8236 2020-05-27 Tom Tromey <tom@tromey.com>
8237 Simon Marchi <simon.marchi@efficios.com>
8238
8239 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8240 (allocate_piece_closure): Set "per_objfile" member.
8241 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8242 (locexpr_describe_location, loclist_describe_location): Use new
8243 member.
8244 * dwarf2/read.c (read_call_site_scope)
8245 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8246 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8247 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8248 handle_data_member_location): Set per_objfile member.
8249 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8250 member.
8251 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8252
8253 2020-05-27 Tom Tromey <tom@tromey.com>
8254
8255 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8256 allocate_signatured_type>: Declare new methods.
8257 <m_num_psymtabs>: New member.
8258 (struct dwarf2_per_cu_data) <index>: New member.
8259 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8260 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8261 (create_cu_from_index_list): Use allocate_per_cu.
8262 (create_signatured_type_table_from_index)
8263 (create_signatured_type_table_from_debug_names)
8264 (create_debug_type_hash_table, add_type_unit)
8265 (read_comp_units_from_section): Use allocate_signatured_type.
8266
8267 2020-05-27 Tom Tromey <tom@tromey.com>
8268
8269 * psymtab.c (partial_map_expand_apply)
8270 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8271 (psym_lookup_global_symbol_language)
8272 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8273 (psym_print_stats, psym_expand_symtabs_for_function)
8274 (psym_map_symbol_filenames, psym_map_matching_symbols)
8275 (psym_expand_symtabs_matching)
8276 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8277 (maintenance_check_psymtabs): Update.
8278 * psympriv.h (struct partial_symtab) <readin_p,
8279 get_compunit_symtab>: Add objfile parameter.
8280 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8281 Likewise.
8282 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8283 get_compunit_symtab>: Likewise.
8284 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8285
8286 2020-05-27 Tom Tromey <tom@tromey.com>
8287
8288 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8289 member.
8290 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8291 (create_cu_from_index_list)
8292 (create_signatured_type_table_from_index)
8293 (create_signatured_type_table_from_debug_names)
8294 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8295 (dwarf2_create_include_psymtab)
8296 (create_debug_type_hash_table, add_type_unit)
8297 (create_type_unit_group, read_comp_units_from_section)
8298 (dwarf2_compute_name, create_cus_hash_table)
8299 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8300 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8301 obstack.
8302 (dw2_get_real_path): Likewise. Change argument to
8303 dwarf2_per_objfile.
8304
8305 2020-05-27 Luis Machado <luis.machado@linaro.org>
8306
8307 PR tdep/26000
8308 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8309 for ldrd (immediate).
8310
8311 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8312
8313 * command.h: Add comment giving the name of class_tui.
8314 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8315 create the fake command for the help for class_tui.
8316
8317 2020-05-26 Tom Tromey <tromey@adacore.com>
8318
8319 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8320 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8321 (val_atr): New function.
8322 (value_val_atr): Use it.
8323 * ada-valprint.c (print_optional_low_bound): Change low bound
8324 handling for enums.
8325 (val_print_packed_array_elements): Don't call discrete_position.
8326 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8327 discrete_position for enum types.
8328 * language.c (default_print_array_index): Change type.
8329 * language.h (struct language_defn) <la_print_array_index>: Add
8330 index_type parameter, change type of index_value.
8331 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8332 (default_print_array_index): Update.
8333 * valprint.c (maybe_print_array_index): Don't call
8334 value_from_longest. Update.
8335 (value_print_array_elements): Don't call discrete_position.
8336
8337 2020-05-26 Tom Tromey <tromey@adacore.com>
8338
8339 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8340 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8341
8342 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8343
8344 PR gdb/13519
8345 * avr-tdep.c (avr_integer_to_address): Return data or code
8346 address accordingly to the second 'type' argument of the
8347 function.
8348
8349 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8350
8351 * infcmd.c, inferior.h: (construct_inferior_arguments):
8352 Moved function from here to gdbsupport/common-inferior.{h,cc}
8353
8354 2020-05-23 Tom Tromey <tom@tromey.com>
8355
8356 Revert commit eca1f90c:
8357 * NEWS: Remove entry for completion styling.
8358 * completer.c (_rl_completion_prefix_display_length): Move
8359 declaration later.
8360 (gdb_fnprint): Revert.
8361 (gdb_display_match_list_1): Likewise.
8362 * cli/cli-style.c (completion_prefix_style)
8363 (completion_difference_style, completion_suffix_style): Remove.
8364 (_initialize_cli_style): Revert.
8365 * cli/cli-style.h (completion_prefix_style)
8366 (completion_difference_style, completion_suffix_style): Don't
8367 declare.
8368
8369 2020-05-24 Pedro Alves <palves@redhat.com>
8370
8371 * symtab.c (completion_list_add_name): Return boolean indication
8372 of whether the symbol matched.
8373 (completion_list_add_symbol): Don't try to remove C++ aliases if
8374 the symbol didn't match in the first place.
8375 * symtab.h (completion_list_add_name): Return bool.
8376
8377 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8378
8379 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8380 type::field.
8381
8382 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8383
8384 GDB 9.2 released.
8385
8386 2020-05-23 Tom Tromey <tom@tromey.com>
8387
8388 * NEWS: Add entry for completion styling.
8389 * completer.c (_rl_completion_prefix_display_length): Move
8390 declaration earlier.
8391 (gdb_fnprint): Use completion_style.
8392 (gdb_display_match_list_1): Likewise.
8393 * cli/cli-style.c (completion_prefix_style)
8394 (completion_difference_style, completion_suffix_style): New
8395 globals.
8396 (_initialize_cli_style): Register new globals.
8397 * cli/cli-style.h (completion_prefix_style)
8398 (completion_difference_style, completion_suffix_style): Declare.
8399
8400 2020-05-23 Pedro Alves <palves@redhat.com>
8401
8402 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8403 (parse_escape): Use ISDIGIT instead of isdigit.
8404 (puts_debug): Use gdb_isprint instead of isprint.
8405 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8406 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8407 ISSPACE instead of isspace.
8408 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8409 instead of isspace.
8410 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8411 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8412 instead of isxdigit and ISDIGIT instead of isdigit.
8413
8414 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8415
8416 * gdbtypes.h (struct type) <field>: New method.
8417 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8418 or type::field.
8419
8420 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8421
8422 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8423 (TYPE_FIELDS): Use type::fields. Change all call sites that
8424 modify the propery to use type::set_fields instead.
8425
8426 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8427
8428 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8429 type::num_fields instead.
8430
8431 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8432
8433 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8434 methods.
8435 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8436 that modify the number of fields to use type::set_num_fields
8437 instead.
8438
8439 2020-05-22 Tom Tromey <tromey@adacore.com>
8440
8441 * compile/compile-object-load.h (munmap_list_free): Don't
8442 declare.
8443
8444 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8445
8446 * annotate.c (annotate_source_line): Update return type, add call
8447 to update current symtab and line.
8448 * annotate.h (annotate_source_line): Update return type, and
8449 extend header comment.
8450 * source.c (info_line_command): Check annotation_level before
8451 calling annotate_source_line.
8452 * stack.c (print_frame_info): If calling annotate_source_line
8453 returns true, then don't print any other source line information.
8454
8455 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8456
8457 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8458
8459 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8460
8461 * coffread.c (patch_type): Remove NULL check before xfree.
8462 * corefile.c (set_gnutarget): Likewise.
8463 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8464 * exec.c (build_section_table): Likewise.
8465 * remote.c (remote_target::pass_signals): Likewise.
8466 * utils.c (n_spaces): Likewise.
8467 * cli/cli-script.c (document_command): Likewise.
8468 * i386-windows-tdep.c (core_process_module_section): Likewise.
8469 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8470
8471 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8472
8473 * symfile.c (reread_symbols): Clear objfile's section_offsets
8474 vector and section indices, re-compute them by calling
8475 sym_offsets.
8476
8477 2020-05-20 Tom Tromey <tromey@adacore.com>
8478
8479 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8480 (desc_one_bound, desc_index_type): Compute field name.
8481
8482 2020-05-20 Tom de Vries <tdevries@suse.de>
8483
8484 PR symtab/25833
8485 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8486
8487 2020-05-20 Alan Modra <amodra@gmail.com>
8488
8489 PR 25993
8490 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8491 bfd_set_filename.
8492 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8493 passed to bfd_set_filename.
8494 * symfile-mem.c (add_vsyscall_page): Likewise for string
8495 passed to symbol_file_add_from_memory.
8496 (symbol_file_add_from_memory): Make name param a const char* and
8497 don't strdup.
8498
8499 2020-05-20 Alan Modra <amodra@gmail.com>
8500
8501 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8502 rather than accessing bfd->filename directly.
8503 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8504 and use bfd_section_name.
8505 * dwarf2/frame.c (decode_frame_entry): Likewise.
8506 * exec.c (exec_set_section_address): Likewise.
8507 * solib-aix.c (solib_aix_bfd_open): Likewise.
8508 * stap-probe.c (get_stap_base_address): Likewise.
8509 * symfile.c (reread_symbols): Likewise.
8510
8511 2020-05-19 Tom Tromey <tromey@adacore.com>
8512
8513 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8514
8515 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8516
8517 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8518
8519 2020-05-19 Pedro Alves <palves@redhat.com>
8520
8521 * NEWS (set exec-file-mismatch): Adjust entry.
8522 * exec.c: Include "build-id.h".
8523 (validate_exec_file): Try to match build IDs instead of filenames.
8524 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8525 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8526 and pass down 'warn_if_slow'.
8527 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8528 gdb_bfd_open_closure to pass it down.
8529 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8530
8531 2020-05-19 Pedro Alves <palves@redhat.com>
8532
8533 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8534 * target.c (target_fileio_open_1): Rename to target_fileio_open
8535 and make extern. Use bool.
8536 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8537 (target_fileio_read_alloc_1): Adjust.
8538 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8539 (target_fileio_open_warn_if_slow): Delete declaration.
8540
8541 2020-05-19 Pedro Alves <palves@redhat.com>
8542
8543 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8544 Adjust all callers.
8545
8546 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8547
8548 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8549 whether disp is negative.
8550
8551 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8552
8553 * symfile.h (struct symfile_segment_data)
8554 <~symfile_segment_data>: Remove.
8555 <segment_info>: Change to std::vector.
8556 * symfile.c (default_symfile_segments): Update.
8557 * elfread.c (elf_symfile_segments): Update.
8558
8559 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8560
8561 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8562 <segments>: New.
8563 <segment_bases, segment_sizes>: Remove.
8564 * symfile.c (default_symfile_segments): Update.
8565 * elfread.c (elf_symfile_segments): Update.
8566 * remote.c (remote_target::get_offsets): Update.
8567 * solib-target.c (solib_target_relocate_section_addresses):
8568 Update.
8569
8570 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8571
8572 * symfile.h (struct symfile_segment_data): Initialize fields.
8573 <~symfile_segment_data>: Add.
8574 (symfile_segment_data_up): New.
8575 (struct sym_fns) <sym_segments>: Return a
8576 symfile_segment_data_up.
8577 (default_symfile_segments): Return a symfile_segment_data_up.
8578 (free_symfile_segment_data): Remove.
8579 (get_symfile_segment_data): Return a symfile_segment_data_up.
8580 * symfile.c (default_symfile_segments): Likewise.
8581 (get_symfile_segment_data): Likewise.
8582 (free_symfile_segment_data): Remove.
8583 (symfile_find_segment_sections): Update.
8584 * elfread.c (elf_symfile_segments): Return a
8585 symfile_segment_data_up.
8586 * remote.c (remote_target::get_offsets): Update.
8587 * solib-target.c (solib_target_relocate_section_addresses):
8588 Update.
8589 * symfile-debug.c (debug_sym_segments): Return a
8590 symfile_segment_data_up.
8591
8592 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8593
8594 PR build/25981
8595 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8596 Hardcode register numbers.
8597
8598 PR build/25981
8599 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8600 procfs_find_LDT_entry): Remove.
8601 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8602 procfs_find_LDT_entry): Remove.
8603 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8604 Remove.
8605
8606 2020-05-17 Pedro Alves <palves@redhat.com>
8607 Andrew Burgess <andrew.burgess@embecosm.com>
8608 Keno Fischer <keno@juliacomputing.com>
8609
8610 PR gdb/25741
8611 * breakpoint.c (build_target_condition_list): Update comments.
8612 (build_target_command_list): Update comments and skip matching
8613 locations.
8614 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8615 a separate function. Simplify "set breakpoint auto-hw off"
8616 handling.
8617 (insert_breakpoints): Update comment.
8618 (tracepoint_locations_match): New parameter. For breakpoints,
8619 compare location types too, if the caller wants to.
8620 (handle_automatic_hardware_breakpoints): New functions.
8621 (bp_location_is_less_than): Also sort by location type and
8622 hardware breakpoint length.
8623 (update_global_location_list): Handle "set breakpoint auto-hw on"
8624 here.
8625 (update_breakpoint_locations): Ask breakpoint_locations_match to
8626 ignore location types.
8627
8628 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8629
8630 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8631 type::name instead.
8632
8633 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8634
8635 * gdbtypes.h (struct type) <name, set_name>: New methods.
8636 (TYPE_CODE): Use type::name. Change all call sites used to set
8637 the name to use type::set_name instead.
8638
8639 2020-05-16 Tom Tromey <tom@tromey.com>
8640
8641 * top.c (quit_force): Update.
8642 * infrun.c (handle_no_resumed): Update.
8643 * top.h (all_uis): New function.
8644 (ALL_UIS): Remove.
8645
8646 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8647
8648 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8649
8650 2020-05-16 Pedro Alves <palves@redhat.com>
8651
8652 * ia64-linux-nat.c
8653 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8654 Declare method.
8655 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8656
8657 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8658
8659 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8660 (sparc64_adi_info): Likewise.
8661
8662 2020-05-15 Tom Tromey <tom@tromey.com>
8663
8664 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8665 block_objfile.
8666 (lookup_objfile_from_block): Remove.
8667 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8668 (lookup_global_symbol): Use block_objfile.
8669 * symtab.h (lookup_objfile_from_block): Don't declare.
8670 * printcmd.c (clear_dangling_display_expressions): Use
8671 block_objfile.
8672 * parse.c (operator_check_standard): Use block_objfile.
8673
8674 2020-05-15 Tom Tromey <tom@tromey.com>
8675
8676 * language.c (language_alloc_type_symbol): Set
8677 SYMBOL_SECTION.
8678 * symtab.c (initialize_objfile_symbol): Remove.
8679 (allocate_symbol): Remove.
8680 (allocate_template_symbol): Remove.
8681 * dwarf2/read.c (fixup_go_packaging): Use "new".
8682 (new_symbol): Use "new".
8683 (read_variable): Don't call initialize_objfile_symbol. Use
8684 "new".
8685 (read_func_scope): Use "new".
8686 * xcoffread.c (process_xcoff_symbol): Don't call
8687 initialize_objfile_symbol.
8688 (SYMBOL_DUP): Remove.
8689 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8690 "new".
8691 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8692 (allocate_template_symbol): Don't declare.
8693 (struct symbol): Add copy constructor. Change defaults.
8694 * jit.c (finalize_symtab): Use "new".
8695 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8696 Use "new".
8697 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8698 (common_block_end): Use "new".
8699 * mdebugread.c (parse_symbol): Use "new".
8700 (new_symbol): Likewise.
8701
8702 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8703
8704 * NEWS: Mention changes to help and apropos.
8705
8706 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8707
8708 * command.h (enum command_class): Improve comments, document
8709 that class_alias is for user-defined aliases, give the class
8710 name for each class, remove unused class_xdb.
8711 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8712 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8713 by a precise class.
8714 * infcmd.c (_initialize_infcmd): Likewise.
8715 * reverse.c (_initialize_reverse): Likewise.
8716 * stack.c (_initialize_stack): Likewise.
8717 * symfile.c (_initialize_symfile): Likewise.
8718 * tracepoint.c (_initialize_tracepoint): Likewise.
8719
8720 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8721
8722 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8723 when their aliased command is traversed.
8724 (help_cmd): Add fput_command_names_styled call to
8725 output command name and aliases when command has an alias.
8726
8727 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8728
8729 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8730 * cli/cli-decode.c (help_cmd_list): Declare as static,
8731 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8732 a command together with the command.
8733 (fput_command_name_styled, fput_command_names_styled): New functions.
8734 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8735 fput_command_name_styled.
8736 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8737 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8738
8739 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8740
8741 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8742 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8743 * command.h (cmd_show_list): Likewise.
8744 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8745 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8746
8747 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8748
8749 * unittests/command-def-selftests.c (traverse_command_structure):
8750 Verify all commands of a list have the same prefix command and
8751 that only the top cmdlist commands have a null prefix.
8752
8753 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8754
8755 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8756 as prefix, not one of its aliases.
8757 (set_cmd_prefix): Remove.
8758 (do_add_cmd): Centralize the setting of the prefix of a command, when
8759 command is defined after its full chain of prefix commands.
8760 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8761 (add_setshow_cmd_full): Likewise.
8762 (update_prefix_field_of_prefixed_commands): New function.
8763 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8764 update_prefix_field_of_prefixed_commands.
8765 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8766 addresses of remote_set_cmdlist and remote_show_cmdlist given
8767 as argument, not the address of an argument.
8768 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8769 * gdb/remote.c (_initialize_remote): Likewise.
8770
8771 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8772
8773 * cli/cli-cmds.c (alias_command): Check for an existing alias
8774 using lookup_cmd_composition, as valid_command_p is too strict
8775 and forbids aliases that are the prefix of an existing alias
8776 or command.
8777 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8778 command is properly recognised as a valid command.
8779
8780 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8781
8782 * unittests/help-doc-selftests.c: Rename to
8783 unittests/command-def-selftests.c
8784 * unittests/command-def-selftests.c (help_doc_tests): Update some
8785 comments.
8786 (command_structure_tests, traverse_command_structure): New namespace
8787 and function.
8788 (command_structure_invariants_tests): New function.
8789 (_initialize_command_def_selftests) Renamed from
8790 _initialize_help_doc_selftests, register command_structure_invariants
8791 selftest.
8792
8793 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8794
8795 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8796 an alias of 'show'.
8797
8798 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8799
8800 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8801 ada_is_fixed_point_type. Update all callers.
8802 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8803 all callers.
8804 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8805 Update all callers.
8806 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8807 print_fixed_point_type. Update all callers.
8808 * ada-valprint.c (ada_value_print_num): Replace call to
8809 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8810
8811 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8812
8813 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8814 processors.
8815 (cpu_supports_bts): Add CV_AMD case.
8816
8817 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8818 Simon Marchi <simon.marchi@efficios.com>
8819
8820 * infrun.c (stop_all_threads): Collect multiple wait events at
8821 each pass.
8822
8823 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8824
8825 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8826 type::code instead.
8827
8828 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8829
8830 * gdbtypes.h (struct type) <code, set_code>: New methods.
8831 (TYPE_CODE): Use type::code. Change all call sites used to set
8832 the code to use type::set_code instead.
8833
8834 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8835 Tom de Vries <tdevries@suse.de>
8836 Pedro Alves <palves@redhat.com>
8837
8838 PR threads/25478
8839 * infrun.c (stop_all_threads): Do NOT ignore
8840 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8841 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8842 received.
8843 (handle_no_resumed): Remove code handling a live inferior with no
8844 threads.
8845 * remote.c (has_single_non_exited_thread): New.
8846 (remote_target::update_thread_list): Do not delete a thread if is
8847 the last thread of the process.
8848 * thread.c (thread_select): Call delete_exited_threads instead of
8849 prune_threads.
8850
8851 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8852
8853 * infrun.c (stop_all_threads): Enable/disable thread events of all
8854 targets. Move a debug message denoting the end of the function
8855 into the SCOPED_EXIT block.
8856
8857 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8858
8859 * process-stratum-target.h: Include <set>.
8860 (all_non_exited_process_targets, switch_to_target_no_thread): New
8861 function declarations.
8862 * process-stratum-target.c (all_non_exited_process_targets)
8863 (switch_to_target_no_thread): New function implementations.
8864
8865 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8866
8867 * infrun.c (handle_inferior_event): Extract out a piece of code
8868 into...
8869 (mark_non_executing_threads): ...this new function.
8870
8871 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8872
8873 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8874 use.
8875
8876 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8877
8878 * regcache.c (regcache_read_pc_protected): New function
8879 implementation that returns 0 if the PC cannot read via
8880 'regcache_read_pc'.
8881 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8882 instead of 'regcache_read_pc'.
8883 (keep_going_pass_signal): Ditto.
8884
8885 2020-05-13 Tom Tromey <tromey@adacore.com>
8886
8887 * ada-lang.c (align_value): Remove.
8888 (ada_template_to_fixed_record_type_1): Use align_up.
8889
8890 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8891
8892 * async-event.c: Update the copyright year.
8893 * async-event.h: Update the copyright year.
8894
8895 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8896
8897 * objfiles.h (is_addr_in_objfile,
8898 shared_objfile_contains_address_p): Return bool.
8899 * objfile.c (is_addr_in_objfile,
8900 shared_objfile_contains_address_p): Return bool.
8901
8902 2020-05-11 Tom Tromey <tromey@adacore.com>
8903
8904 * cli/cli-cmds.c (info_command): Restore.
8905 (_initialize_cli_cmds): Use add_prefix_command for "info".
8906 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8907
8908 2020-05-11 Tom Tromey <tromey@adacore.com>
8909
8910 * ada-lang.c (ada_value_primitive_field): Now public.
8911 * ada-lang.h (ada_value_primitive_field): Declare.
8912 * ada-valprint.c (print_field_values): Use
8913 ada_value_primitive_field for wrapper fields.
8914
8915 2020-05-11 Tom de Vries <tdevries@suse.de>
8916
8917 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8918 MODULE_DOMAIN.
8919
8920 2020-05-11 Tom de Vries <tdevries@suse.de>
8921
8922 PR symtab/25941
8923 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8924 with length 0, if not gdb-produced.
8925 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8926
8927 2020-05-09 Tom de Vries <tdevries@suse.de>
8928
8929 PR gdb/25955
8930 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8931 calculation.
8932
8933 2020-05-09 Tom Tromey <tom@tromey.com>
8934
8935 * top.c (server_command): Now bool.
8936 * top.h (server_command): Now bool.
8937
8938 2020-05-08 Tom Tromey <tromey@adacore.com>
8939
8940 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8941 already being processed.
8942
8943 2020-05-08 Tom Tromey <tom@tromey.com>
8944
8945 * printcmd.c (struct display) <next>: Remove.
8946 <display>: New constructor.
8947 <exp_string>: Now a std::string.
8948 <enabled_p>: Now a bool.
8949 (display_number): Move definition earlier.
8950 (displays): Rename from display_chain. Now a std::vector.
8951 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8952 (display_command): Update.
8953 (do_one_display, disable_display)
8954 (enable_disable_display_command, do_enable_disable_display):
8955 Update.
8956 (free_display): Remove.
8957 (clear_displays): Rewrite.
8958 (delete_display): Update.
8959 (map_display_numbers): Use function_view. Remove "data"
8960 parameter. Update.
8961 (do_delete_display): Remove.
8962 (undisplay_command): Update.
8963 (do_one_display, do_displays, disable_display)
8964 (info_display_command): Update.
8965 (do_enable_disable_display): Remove.
8966 (enable_disable_display_command)
8967 (clear_dangling_display_expressions): Update.
8968
8969 2020-05-08 Tom Tromey <tom@tromey.com>
8970
8971 * symtab.c (set_symbol_cache_size)
8972 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8973 (maintenance_print_symbol_cache_statistics): Update.
8974 * symmisc.c (print_symbol_bcache_statistics)
8975 (print_objfile_statistics, maintenance_print_objfiles)
8976 (maintenance_info_symtabs, maintenance_check_symtabs)
8977 (maintenance_expand_symtabs, maintenance_info_line_tables):
8978 Update.
8979 * symfile-debug.c (set_debug_symfile): Update.
8980 * source.c (forget_cached_source_info): Update.
8981 * python/python.c (gdbpy_progspaces): Update.
8982 * psymtab.c (maintenance_info_psymtabs): Update.
8983 * probe.c (parse_probes): Update.
8984 * linespec.c (iterate_over_all_matching_symtabs)
8985 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8986 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8987 * exec.c (exec_target::close): Update.
8988 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8989 * breakpoint.c (print_one_breakpoint_location)
8990 (create_longjmp_master_breakpoint)
8991 (create_std_terminate_master_breakpoint): Update.
8992 * progspace.c (program_spaces): Now a std::vector.
8993 (maybe_new_address_space): Update.
8994 (add_program_space): Remove.
8995 (program_space::program_space): Update.
8996 (remove_program_space): Update.
8997 (number_of_program_spaces): Remove.
8998 (print_program_space, update_address_spaces): Update.
8999 * progspace.h (program_spaces): Change type.
9000 (ALL_PSPACES): Remove.
9001 (number_of_program_spaces): Don't declare.
9002 (struct program_space) <next>: Remove.
9003
9004 2020-05-08 Tom Tromey <tom@tromey.com>
9005
9006 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9007 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9008 (enable_break): Update.
9009 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9010 (frv_fdpic_find_canonical_descriptor): Update.
9011 (frv_fetch_objfile_link_map): Update.
9012 * progspace.c (program_space::free_all_objfiles): Update.
9013 (program_space::solibs): New method.
9014 * progspace.h (struct program_space) <solibs>: New method.
9015 * solist.h (master_so_list): Don't declare.
9016 (ALL_SO_LIBS): Remove.
9017 * solib.h (so_list_head): Remove.
9018 (update_solib_list): Update comment.
9019 * solib.c (master_so_list): Remove.
9020 (solib_used, update_solib_list, solib_add)
9021 (info_sharedlibrary_command, clear_solib)
9022 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9023
9024 2020-05-08 Tom Tromey <tom@tromey.com>
9025
9026 * extension.c (extension_languages): Now a std::array.
9027 (ALL_EXTENSION_LANGUAGES): Remove.
9028 (get_ext_lang_defn, get_ext_lang_of_file)
9029 (eval_ext_lang_from_control_command): Update.
9030 (finish_ext_lang_initialization)
9031 (auto_load_ext_lang_scripts_for_objfile)
9032 (ext_lang_type_printers::ext_lang_type_printers)
9033 (apply_ext_lang_type_printers)
9034 (ext_lang_type_printers::~ext_lang_type_printers)
9035 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9036 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9037 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9038 (get_matching_xmethod_workers, ext_lang_colorize)
9039 (ext_lang_before_prompt): Update.
9040 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9041
9042 2020-05-08 Tom Tromey <tom@tromey.com>
9043
9044 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9045 overload.
9046 <swap_string, m_string>: Remove.
9047 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9048 Update.
9049 * stabsread.c (define_symbol, read_type): Update.
9050 * linespec.c (find_linespec_symbols): Update.
9051 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9052 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9053 * dbxread.c (read_dbx_symtab): Update.
9054 * cp-support.h (cp_canonicalize_string_full)
9055 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9056 Return unique_xmalloc_ptr.
9057 * cp-support.c (inspect_type): Update.
9058 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9059 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9060 Likewise.
9061 * c-typeprint.c (print_name_maybe_canonical): Update.
9062 * break-catch-throw.c (check_status_exception_catchpoint):
9063 Update.
9064
9065 2020-05-08 Tom de Vries <tdevries@suse.de>
9066
9067 * infrun.c (follow_fork): Copy current_line and current_symtab to
9068 child thread.
9069
9070 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9071
9072 * async-event.c (struct async_signal_handler, struct
9073 async_event_handler): Reformat, remove typedef.
9074
9075 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9076
9077 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9078 access thistype->main_type->dyn_prop_list directly.
9079
9080 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9081
9082 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9083 (remove_dyn_prop): Remove. Update all users to use
9084 type::remove_dyn_prop.
9085 * gdbtypes.c (remove_dyn_prop): Rename to...
9086 (type::remove_dyn_prop): ... this.
9087
9088 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9089
9090 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9091 (add_dyn_prop): Remove. Update all users to use
9092 type::add_dyn_prop.
9093 * gdbtypes.c (add_dyn_prop): Rename to...
9094 (type::add_dyn_prop): ... this.
9095
9096 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9097
9098 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9099 (get_dyn_prop): Remove. Update all users to use
9100 type::dyn_prop.
9101 * gdbtypes.c (get_dyn_prop): Rename to...
9102 (type::dyn_prop): ... this.
9103
9104 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9105
9106 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9107
9108 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9109
9110 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9111 instruction, skip it if it's there.
9112
9113 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9114
9115 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9116
9117 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9118
9119 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9120 * gdbtypes.c (recursive_dump_type): Remove use of
9121 TYPE_INCOMPLETE.
9122
9123 2020-05-03 Tom Tromey <tom@tromey.com>
9124
9125 * breakpoint.c (catch_command, tcatch_command): Remove.
9126 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9127 add_show_prefix_cmd.
9128 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9129 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9130 Remove.
9131 (add_internal_problem_command): Use add_basic_prefix_cmd,
9132 add_show_prefix_cmd.
9133 * mips-tdep.c (set_mipsfpu_command): Remove.
9134 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9135 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9136 (_initialize_index_cache): Use add_basic_prefix_cmd.
9137 * memattr.c (dummy_cmd): Remove.
9138 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9139 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9140 (_initialize_tui_win): Use add_basic_prefix_cmd,
9141 add_show_prefix_cmd.
9142 * cli/cli-logging.c (set_logging_command): Remove.
9143 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9144 add_show_prefix_cmd.
9145 (show_logging_command): Remove.
9146 * target.c (target_command): Remove.
9147 (add_target): Use add_basic_prefix_cmd.
9148
9149 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9150
9151 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9152
9153 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9154
9155 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9156 info_command.
9157
9158 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9159
9160 * nbsd-nat.c (nbsd_enable_proc_events)
9161 (nbsd_nat_target::post_startup_inferior): Add.
9162 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9163 (nbsd_nat_target::update_thread_list): Rewrite.
9164 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9165 "PTRACE_LWP_CREATE".
9166 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9167
9168 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9169
9170 * stack.c (_initialize_stack): Remove duplicated creation
9171 of "frame" command and "f" alias.
9172
9173 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9174
9175 PR gdb/18706
9176 * gdbtypes.c (check_typedef): Calculate size of array of
9177 stubbed type.
9178
9179 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9180
9181 PR gdb/15559
9182 * i386-tdep.c (i386_push_dummy_call): Call
9183 i386_thiscall_push_dummy_call.
9184 (i386_thiscall_push_dummy_call): New function.
9185 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9186 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9187 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9188
9189 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9190
9191 * gdbarch.sh (do_read): Add shellcheck disable directive for
9192 warning SC2162.
9193
9194 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9195
9196 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9197 "referenced but not assigned" warning.
9198
9199 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9200
9201 * gdbarch.sh: Remove code that sets fallbackdefault.
9202
9203 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9204
9205 * gdbarch.sh: Use shell operators && and || instead of
9206 -a and -o.
9207
9208 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9209
9210 * gdbarch.sh: Use $(...) instead of `...`.
9211
9212 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9213
9214 * gdbarch.sh: Use double quotes around variables.
9215
9216 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9217
9218 * gdbarch.sh: Use %s with printf, instead of variables in the
9219 format string.
9220
9221 2020-04-29 Tom Tromey <tromey@adacore.com>
9222
9223 PR ada/25875:
9224 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9225 type fields here.
9226 (read_enumeration_type): Call
9227 update_enumeration_type_from_children later. Update comments.
9228 (process_enumeration_scope): Don't create type fields.
9229
9230 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9231
9232 * nbsd-tdep.c: Include "xml-syscall.h".
9233 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9234
9235 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9236
9237 * nbsd-nat.c: Include "sys/wait.h".
9238 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9239 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9240 (nbsd_nat_target::remove_exec_catchpoint)
9241 (nbsd_nat_target::set_syscall_catchpoint): Add.
9242 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9243 (nbsd_nat_target::insert_exec_catchpoint)
9244 (nbsd_nat_target::remove_exec_catchpoint)
9245 (nbsd_nat_target::set_syscall_catchpoint): Add.
9246 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9247 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9248 `nbsd_get_syscall_number'.
9249
9250 2020-04-29 Tom Tromey <tom@tromey.com>
9251
9252 * stack.c (print_block_frame_labels): Remove.
9253
9254 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9255
9256 PR gdb/17320
9257 * ada-valprint.c (val_print_packed_array_elements): Move array
9258 end bracket to new line.
9259 (ada_val_print_string): Remove extra spaces before first array
9260 element.
9261 * c-valprint.c (c_value_print_array): Likewise.
9262 * m2-valprint.c (m2_print_array_contents): Likewise.
9263 (m2_value_print_inner): Likewise.
9264 * p-valprint.c (pascal_value_print_inner): Likewise.
9265 * valprint.c (generic_val_print_array): Likewise.
9266 (value_print_array_elements): Move first array element and array
9267 end bracket to new line.
9268
9269 2020-04-29 Tom de Vries <tdevries@suse.de>
9270
9271 PR symtab/25889
9272 * linespec.c (find_method): Fix ix calculation.
9273
9274 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9275
9276 * syscalls/update-netbsd.sh: New file.
9277 * syscalls/netbsd.xml: Regenerate.
9278 * data-directory/Makefile.in: Register `netbsd.xml' in
9279 `SYSCALLS_FILES'.
9280
9281 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9282
9283 * syscalls/update-freebsd.sh: Add double quotes.
9284
9285 2020-04-28 Tom Tromey <tom@tromey.com>
9286
9287 * NEWS: Update.
9288 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9289 (cmdpy_init): Allow class_tui.
9290
9291 2020-04-28 Mark Williams <mark@myosotissp.com>
9292
9293 PR gdb/24480
9294 * dwarf2read.c: Add missing assingments to list_in_scope when
9295 start_symtab was already called.
9296
9297 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9298
9299 PR gdb/25881
9300 * dwarf2/read.c (offset_map_type): Use
9301 gdb:hash_enum<sect_offset> as hash function.
9302
9303 2020-04-28 Tom de Vries <tdevries@suse.de>
9304
9305 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9306 with DW_AT_signature.
9307
9308 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9309
9310 * configure.ac: Remove check for fs_base/gs_base in
9311 user_regs_struct.
9312 * configure: Re-generate.
9313 * config.in: Re-generate.
9314 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9315 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9316 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9317
9318 2020-04-27 Luis Machado <luis.machado@linaro.org>
9319
9320 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9321 problematic inline frame unwinding situation.
9322 * frame.c (frame_id_computed_p): New function.
9323 * frame.h (frame_id_computed_p): New prototype.
9324
9325 2020-04-26 Tom Tromey <tom@tromey.com>
9326
9327 * command.h (enum command_class) <class_pseudo>: Remove.
9328
9329 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9330
9331 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9332 and whitespace.
9333
9334 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9335
9336 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9337 `PT_GET_PROCESS_STATE' block.
9338
9339 2020-04-24 Tom Tromey <tom@tromey.com>
9340
9341 * symtab.h (symbol_get_demangled_name): Don't declare.
9342 * symtab.c (symbol_get_demangled_name): Remove.
9343 (general_symbol_info::natural_name)
9344 (general_symbol_info::demangled_name): Update.
9345
9346 2020-04-24 Tom Tromey <tom@tromey.com>
9347
9348 PR rust/25025:
9349 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9350
9351 2020-04-24 Tom Tromey <tom@tromey.com>
9352
9353 PR symtab/12707:
9354 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9355 exists.
9356 (new_symbol): Likewise.
9357 * compile/compile-object-load.c (get_out_value_type): Use
9358 symbol_matches_search_name.
9359
9360 2020-04-24 Tom Tromey <tom@tromey.com>
9361
9362 * dwarf2/read.c (add_partial_symbol): Do not call
9363 compute_and_set_names.
9364
9365 2020-04-24 Tom Tromey <tom@tromey.com>
9366
9367 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9368 overload.
9369
9370 2020-04-24 Tom Tromey <tom@tromey.com>
9371
9372 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9373 (add_psymbol_to_list): New overload. Make old overload call new
9374 one.
9375 * psympriv.h (add_psymbol_to_list): New overload.
9376
9377 2020-04-24 Tom Tromey <tom@tromey.com>
9378
9379 * dwarf2/read.c (partial_die_info::read) <case
9380 DW_AT_linkage_name>: Use value_as_string.
9381 (dwarf2_string_attr): Use value_as_string.
9382 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9383 method.
9384 * dwarf2/attribute.c (attribute::value_as_string): New method.
9385
9386 2020-04-24 Tom Tromey <tom@tromey.com>
9387
9388 * symtab.c (general_symbol_info::natural_name)
9389 (general_symbol_info::demangled_name): Check for language_rust.
9390
9391 2020-04-24 Tom Tromey <tom@tromey.com>
9392
9393 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9394 (dwarf2_physname): ... from here.
9395 (partial_die_info::read): Add Rust "{" hack.
9396
9397 2020-04-24 Tom Tromey <tom@tromey.com>
9398
9399 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9400 method.
9401 (symbol_set_demangled_name): Don't declare.
9402 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9403 symbol_set_demangled_name.
9404 (general_symbol_info::set_language)
9405 (general_symbol_info::compute_and_set_names): Update.
9406 * minsyms.c (minimal_symbol_reader::install): Update.
9407 * dwarf2/read.c (new_symbol): Update.
9408
9409 2020-04-24 Tom Tromey <tromey@adacore.com>
9410
9411 PR python/23662:
9412 * python/py-type.c (convert_field): Handle
9413 FIELD_LOC_KIND_DWARF_BLOCK.
9414 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9415 (typy_get_dynamic): Nw function.
9416 (type_object_getset): Add "dynamic".
9417 * NEWS: Add entry.
9418
9419 2020-04-24 Tom Tromey <tromey@adacore.com>
9420
9421 * ada-typeprint.c (print_choices, print_variant_part)
9422 (print_record_field_types_dynamic): New functions.
9423 (print_record_field_types): Use print_record_field_types_dynamic.
9424
9425 2020-04-24 Tom Tromey <tromey@adacore.com>
9426
9427 * dwarf2/read.c (handle_data_member_location): New overload.
9428 (dwarf2_add_field): Use it.
9429 (decode_locdesc): Add "computed" parameter. Update comment.
9430 * gdbtypes.c (is_dynamic_type_internal): Also look for
9431 FIELD_LOC_KIND_DWARF_BLOCK.
9432 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9433 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9434 virtual base classes.
9435 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9436 FIELD_LOC_KIND_DWARF_BLOCK.
9437
9438 2020-04-24 Tom Tromey <tromey@adacore.com>
9439
9440 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9441 * gdbtypes.c (is_dynamic_type_internal): Check
9442 TYPE_HAS_DYNAMIC_LENGTH.
9443 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9444 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9445 New macros.
9446 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9447 constant.
9448
9449 2020-04-24 Tom Tromey <tromey@adacore.com>
9450
9451 * dwarf2/read.c (struct variant_field): Rewrite.
9452 (struct variant_part_builder): New.
9453 (struct nextfield): Remove "variant" field. Add "offset".
9454 (struct field_info): Add "current_variant_part" and
9455 "variant_parts".
9456 (alloc_discriminant_info): Remove.
9457 (alloc_rust_variant): New function.
9458 (quirk_rust_enum): Update.
9459 (dwarf2_add_field): Set "offset" member. Don't handle
9460 DW_TAG_variant_part.
9461 (offset_map_type): New typedef.
9462 (convert_variant_range, create_one_variant)
9463 (create_one_variant_part, create_variant_parts)
9464 (add_variant_property): New functions.
9465 (dwarf2_attach_fields_to_type): Call add_variant_property.
9466 (read_structure_type): Don't handle DW_TAG_variant_part.
9467 (handle_variant_part, handle_variant): New functions.
9468 (handle_struct_member_die): Use them.
9469 (process_structure_scope): Don't handle variant parts.
9470 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9471 (struct discriminant_info): Remove.
9472 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9473 (struct main_type) <flag_discriminated_union>: Remove.
9474 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9475 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9476 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9477 Update.
9478 * valops.c (value_union_variant): Remove.
9479 * value.h (value_union_variant): Don't declare.
9480
9481 2020-04-24 Tom Tromey <tromey@adacore.com>
9482
9483 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9484 (ada_value_primitive_packed_val): Update.
9485 * ada-valprint.c (ada_value_print_1): Update.
9486 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9487 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9488 just an address. Use evaluate_for_locexpr_baton.
9489 (dwarf2_evaluate_property): Update.
9490 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9491 array_view.
9492 * findvar.c (default_read_var_value): Update.
9493 * gdbtypes.c (compute_variant_fields_inner)
9494 (resolve_dynamic_type_internal): Update.
9495 (resolve_dynamic_type): Change type of valaddr parameter.
9496 * gdbtypes.h (resolve_dynamic_type): Update.
9497 * valarith.c (value_subscripted_rvalue): Update.
9498 * value.c (value_from_contents_and_address): Update.
9499
9500 2020-04-24 Tom Tromey <tromey@adacore.com>
9501
9502 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9503 "push_initial_value" parameter.
9504 (dwarf2_evaluate_property): Likewise.
9505 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9506
9507 2020-04-24 Tom Tromey <tromey@adacore.com>
9508
9509 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9510 (variant::matches, compute_variant_fields_recurse)
9511 (compute_variant_fields_inner, compute_variant_fields): New
9512 functions.
9513 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9514 Use resolved_type after type is made.
9515 (operator==): Add new cases.
9516 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9517 (struct discriminant_range, struct variant, struct variant_part):
9518 New.
9519 (union dynamic_prop_data) <variant_parts, original_type>: New
9520 members.
9521 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9522 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9523 constants.
9524 * value.c (unpack_bits_as_long): Now public.
9525 * value.h (unpack_bits_as_long): Declare.
9526
9527 2020-04-24 Tom Tromey <tromey@adacore.com>
9528
9529 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9530 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9531
9532 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9533
9534 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9535
9536 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9537
9538 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9539 (remove_fork_catchpoint, post_startup_inferior)
9540 (post_attach): Move...
9541 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9542 (remove_fork_catchpoint, post_startup_inferior)
9543 (post_attach): ...here.
9544 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9545 (remove_fork_catchpoint, post_startup_inferior)
9546 (post_attach): Move...
9547 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9548 (remove_fork_catchpoint, post_startup_inferior)
9549 (post_attach): ...here.
9550
9551 2020-04-24 Tom Tromey <tromey@adacore.com>
9552
9553 * nat/windows-nat.h (struct windows_thread_info)
9554 <pc_adjusted>: New member.
9555 * windows-nat.c (windows_fetch_one_register): Check
9556 pc_adjusted.
9557 (windows_nat_target::get_windows_debug_event)
9558 (windows_nat_target::wait): Set pc_adjusted.
9559
9560 2020-04-24 Tom de Vries <tdevries@suse.de>
9561
9562 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9563 Run gdb-add-index inside temp dir.
9564
9565 2020-04-23 Tom Tromey <tromey@adacore.com>
9566
9567 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9568 in loop.
9569
9570 2020-04-23 Luis Machado <luis.machado@linaro.org>
9571
9572 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9573 get_frame_register instead of gdbarch_unwind_pc.
9574
9575 2020-04-23 Tom de Vries <tdevries@suse.de>
9576
9577 * symtab.c (lookup_global_symbol): Prefer def over decl.
9578
9579 2020-04-23 Tom de Vries <tdevries@suse.de>
9580
9581 PR symtab/25807
9582 * block.c (best_symbol, better_symbol): Promote to external.
9583 * block.h (best_symbol, better_symbol): Declare.
9584 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9585 decl.
9586
9587 2020-04-23 Tom Tromey <tromey@adacore.com>
9588
9589 PR ada/25837:
9590 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9591 "const char *", not a "const std::string &".
9592 <name_and_matcher::operator==>: Update.
9593 * unittests/lookup_name_info-selftests.c: Change type of
9594 "result".
9595
9596 2020-04-23 Tom Tromey <tom@tromey.com>
9597
9598 * inferior.h (iterate_over_inferiors): Don't declare.
9599 * inferior.c (iterate_over_inferiors): Remove.
9600 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9601 Remove.
9602 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9603 use iterate_over_inferiors.
9604 (darwin_resume_inferior_it)
9605 (struct resume_inferior_threads_param)
9606 (darwin_resume_inferior_threads_it): Remove.
9607 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9608
9609 2020-04-23 Tom de Vries <tdevries@suse.de>
9610
9611 * blockframe.c (find_pc_partial_function): Use
9612 find_pc_sect_compunit_symtab rather than
9613 objfile->sf->qf->find_pc_sect_compunit_symtab.
9614
9615 2020-04-22 Tom de Vries <tdevries@suse.de>
9616
9617 PR symtab/25764
9618 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9619 in psymtabs.
9620
9621 2020-04-22 Tom de Vries <tdevries@suse.de>
9622
9623 PR symtab/25801
9624 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9625 symtabs.
9626
9627 2020-04-22 Tom de Vries <tdevries@suse.de>
9628
9629 PR symtab/25700
9630 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9631 CU if already created.
9632
9633 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9634
9635 * infrun.c (displaced_step_fixup): Switch to the event_thread
9636 before calling displaced_step_restore, not after.
9637
9638 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9639
9640 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9641 its inferior is not recorded by us.
9642 (record_btrace_target_open): Replace call to
9643 all_non_exited_threads () with call to current_inferior
9644 ()->non_exited_threads ().
9645 (record_btrace_target::stop_recording): Likewise.
9646 (record_btrace_target::close): Likewise.
9647 (record_btrace_target::wait): Likewise.
9648 (record_btrace_target::record_stop_replaying): Likewise.
9649
9650 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9651
9652 * btrace.c (btrace_enable): Throw an error on double enables and
9653 when enabling recording fails.
9654 (btrace_disable): Throw an error if the thread is not recorded.
9655
9656 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9657
9658 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9659 request if we do not have a thread_info.
9660
9661 2020-04-21 Tom de Vries <tdevries@suse.de>
9662
9663 PR gdb/25471
9664 * thread.c
9665 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9666 exception in get_frame_id.
9667
9668 2020-04-20 Tom Tromey <tromey@adacore.com>
9669
9670 * python/python.c (struct gdbpy_event): Mark move constructor as
9671 noexcept.
9672 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9673 constructor as noexcept.
9674 * completer.h (struct completion_result): Mark move constructor as
9675 noexcept.
9676 * completer.c (completion_result::completion_result): Use
9677 initialization style. Don't call reset_match_list.
9678
9679 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9680
9681 * MAINTAINERS (Write After Approval): Add myself.
9682
9683 2020-04-18 Tom Tromey <tom@tromey.com>
9684
9685 * windows-tdep.c (init_w32_command_list)
9686 (w32_prefix_command_valid): Restore.
9687 (_initialize_windows_tdep): Call init_w32_command_list.
9688
9689 2020-04-18 Tom Tromey <tom@tromey.com>
9690
9691 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9692 * value.c (value_fn_field): Update.
9693 * valops.c (find_function_in_inferior)
9694 (value_allocate_space_in_inferior): Update.
9695 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9696 Update.
9697 * tui/tui-source.c (tui_source_window::set_contents): Update.
9698 * symtab.c (lookup_global_or_static_symbol)
9699 (find_function_start_sal_1, skip_prologue_sal)
9700 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9701 * symmisc.c (dump_msymbols, dump_symtab_1)
9702 (maintenance_print_one_line_table): Update.
9703 * symfile.c (init_entry_point_info, section_is_mapped)
9704 (list_overlays_command, simple_read_overlay_table)
9705 (simple_overlay_update_1): Update.
9706 * stap-probe.c (handle_stap_probe): Update.
9707 * stabsread.c (dbx_init_float_type, define_symbol)
9708 (read_one_struct_field, read_enum_type, read_range_type): Update.
9709 * source.c (info_line_command): Update.
9710 * python/python.c (gdbpy_source_objfile_script)
9711 (gdbpy_execute_objfile_script): Update.
9712 * python/py-type.c (save_objfile_types): Update.
9713 * python/py-objfile.c (py_free_objfile): Update.
9714 * python/py-inferior.c (python_new_objfile): Update.
9715 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9716 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9717 (maintenance_check_psymtabs): Update.
9718 * printcmd.c (info_address_command): Update.
9719 * objfiles.h (struct objfile) <arch>: New method, from
9720 get_objfile_arch.
9721 (get_objfile_arch): Don't declare.
9722 * objfiles.c (get_objfile_arch): Remove.
9723 (filter_overlapping_sections): Update.
9724 * minsyms.c (msymbol_is_function): Update.
9725 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9726 (output_nondebug_symbol): Update.
9727 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9728 (mdebug_expand_psymtab): Update.
9729 * machoread.c (macho_add_oso_symfile): Update.
9730 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9731 Update.
9732 * linux-fork.c (checkpoint_command): Update.
9733 * linespec.c (convert_linespec_to_sals): Update.
9734 * jit.c (finalize_symtab): Update.
9735 * infrun.c (insert_exception_resume_from_probe): Update.
9736 * ia64-tdep.c (ia64_find_unwind_table): Update.
9737 * hppa-tdep.c (internalize_unwinds): Update.
9738 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9739 Update.
9740 * gcore.c (call_target_sbrk): Update.
9741 * elfread.c (record_minimal_symbol, elf_symtab_read)
9742 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9743 (elf_gnu_ifunc_resolve_by_got): Update.
9744 * dwarf2/read.c (create_addrmap_from_index)
9745 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9746 (read_debug_names_from_section)
9747 (process_psymtab_comp_unit_reader, add_partial_symbol)
9748 (add_partial_subprogram, process_full_comp_unit)
9749 (read_file_scope, read_func_scope, read_lexical_block_scope)
9750 (read_call_site_scope, dwarf2_ranges_read)
9751 (dwarf2_record_block_ranges, dwarf2_add_field)
9752 (mark_common_block_symbol_computed, read_tag_pointer_type)
9753 (read_tag_string_type, dwarf2_init_float_type)
9754 (dwarf2_init_complex_target_type, read_base_type)
9755 (partial_die_info::read, partial_die_info::read)
9756 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9757 (dwarf2_fetch_die_loc_sect_off): Update.
9758 * dwarf2/loc.c (dwarf2_find_location_expression)
9759 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9760 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9761 (dwarf2_loc_desc_get_symbol_read_needs)
9762 (locexpr_describe_location_piece, locexpr_describe_location_1)
9763 (loclist_describe_location): Update.
9764 * dwarf2/index-write.c (write_debug_names): Update.
9765 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9766 * dtrace-probe.c (dtrace_process_dof): Update.
9767 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9768 (process_one_symbol): Update.
9769 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9770 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9771 (coff_read_enum_type): Update.
9772 * cli/cli-cmds.c (edit_command, list_command): Update.
9773 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9774 * breakpoint.c (create_overlay_event_breakpoint)
9775 (create_longjmp_master_breakpoint)
9776 (create_std_terminate_master_breakpoint)
9777 (create_exception_master_breakpoint, get_sal_arch): Update.
9778 * block.c (block_gdbarch): Update.
9779 * annotate.c (annotate_source_line): Update.
9780
9781 2020-04-17 Tom Tromey <tromey@adacore.com>
9782
9783 * auto-load.c (show_auto_load_cmd): Remove.
9784 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9785 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9786 (maintenance_print_arc_command): Remove.
9787 * tui/tui-win.c (tui_command): Remove.
9788 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9789 * tui/tui-layout.c (tui_layout_command): Remove.
9790 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9791 * python/python.c (user_set_python, user_show_python): Remove.
9792 (_initialize_python): Use add_basic_prefix_cmd,
9793 add_show_prefix_cmd.
9794 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9795 (install_gdb_commands): Use add_basic_prefix_cmd,
9796 add_show_prefix_cmd.
9797 (info_guile_command): Remove.
9798 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9799 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9800 add_show_prefix_cmd.
9801 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9802 Remove do_set and do_show parameters.
9803 * cli/cli-style.c (set_style, show_style): Remove.
9804 (_initialize_cli_style): Use add_basic_prefix_cmd,
9805 add_show_prefix_cmd.
9806 (cli_style_option::add_setshow_commands): Remove do_set and
9807 do_show parameters.
9808 (cli_style_option::add_setshow_commands): Use
9809 add_basic_prefix_cmd, add_show_prefix_cmd.
9810 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9811 (set_style_name): Remove.
9812 * cli/cli-dump.c (dump_command, append_command): Remove.
9813 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9814 (tekhex_dump_command, binary_dump_command)
9815 (binary_append_command): Remove.
9816 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9817 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9818 (init_w32_command_list): Remove; move into ...
9819 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9820 * valprint.c (set_print, show_print, set_print_raw)
9821 (show_print_raw): Remove.
9822 (_initialize_valprint): Use add_basic_prefix_cmd,
9823 add_show_prefix_cmd.
9824 * typeprint.c (set_print_type, show_print_type): Remove.
9825 (_initialize_typeprint): Use add_basic_prefix_cmd,
9826 add_show_prefix_cmd.
9827 * record.c (set_record_command, show_record_command): Remove.
9828 (_initialize_record): Use add_basic_prefix_cmd,
9829 add_show_prefix_cmd.
9830 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9831 add_show_prefix_cmd.
9832 (info_command, show_command, set_debug, show_debug): Remove.
9833 * top.h (set_history, show_history): Don't declare.
9834 * top.c (set_history, show_history): Remove.
9835 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9836 (unset_tdesc_cmd): Remove.
9837 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9838 add_show_prefix_cmd.
9839 * symtab.c (info_module_command): Remove.
9840 (_initialize_symtab): Use add_basic_prefix_cmd.
9841 * symfile.c (overlay_command): Remove.
9842 (_initialize_symfile): Use add_basic_prefix_cmd.
9843 * sparc64-tdep.c (info_adi_command): Remove.
9844 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9845 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9846 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9847 add_show_prefix_cmd.
9848 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9849 (_initialize_serial): Use add_basic_prefix_cmd,
9850 add_show_prefix_cmd.
9851 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9852 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9853 add_show_prefix_cmd.
9854 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9855 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9856 add_show_prefix_cmd.
9857 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9858 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9859 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9860 add_show_prefix_cmd.
9861 * remote.c (remote_command, set_remote_cmd): Remove.
9862 (_initialize_remote): Use add_basic_prefix_cmd.
9863 * record-full.c (set_record_full_command)
9864 (show_record_full_command): Remove.
9865 (_initialize_record_full): Use add_basic_prefix_cmd,
9866 add_show_prefix_cmd.
9867 * record-btrace.c (cmd_set_record_btrace)
9868 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9869 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9870 (cmd_show_record_btrace_pt): Remove.
9871 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9872 add_show_prefix_cmd.
9873 * ravenscar-thread.c (set_ravenscar_command)
9874 (show_ravenscar_command): Remove.
9875 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9876 add_show_prefix_cmd.
9877 * mips-tdep.c (show_mips_command, set_mips_command)
9878 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9879 add_show_prefix_cmd.
9880 * maint.c (maintenance_command, maintenance_info_command)
9881 (maintenance_check_command, maintenance_print_command)
9882 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9883 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9884 add_show_prefix_cmd.
9885 (show_per_command_cmd): Remove.
9886 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9887 Remove.
9888 (maintenance_show_test_settings_cmd): Remove.
9889 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9890 add_show_prefix_cmd.
9891 * maint-test-options.c (maintenance_test_options_command):
9892 Remove.
9893 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9894 * macrocmd.c (macro_command): Remove
9895 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9896 * language.c (set_check, show_check): Remove.
9897 (_initialize_language): Use add_basic_prefix_cmd,
9898 add_show_prefix_cmd.
9899 * infcmd.c (unset_command): Remove.
9900 (_initialize_infcmd): Use add_basic_prefix_cmd.
9901 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9902 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9903 add_show_prefix_cmd.
9904 * go32-nat.c (go32_info_dos_command): Remove.
9905 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9906 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9907 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9908 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9909 (_initialize_frame): Use add_basic_prefix_cmd,
9910 add_show_prefix_cmd.
9911 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9912 (_initialize_dcache): Use add_basic_prefix_cmd,
9913 add_show_prefix_cmd.
9914 * cp-support.c (maint_cplus_command): Remove.
9915 (_initialize_cp_support): Use add_basic_prefix_cmd.
9916 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9917 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9918 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9919 add_basic_prefix_cmd, add_show_prefix_cmd.
9920 * breakpoint.c (save_command): Remove.
9921 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9922 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9923 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9924 add_show_prefix_cmd.
9925 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9926 (set_ada_command, show_ada_command): Remove.
9927 (_initialize_ada_language): Use add_basic_prefix_cmd,
9928 add_show_prefix_cmd.
9929 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9930
9931 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9932
9933 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9934 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9935
9936 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9937
9938 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9939 warning messages.
9940
9941 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9942
9943 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9944 import table is not at beginning of .idata section.
9945
9946 2020-04-16 Pedro Alves <palves@redhat.com>
9947
9948 * inferior.c (delete_inferior): Use delete operator directly
9949 instead of delete_program_space.
9950 * progspace.c (add_program_space): New, factored out from
9951 program_space::program_space.
9952 (remove_program_space): New, factored out from
9953 delete_program_space.
9954 (program_space::program_space): Remove intro comment. Rewrite.
9955 (program_space::~program_space): Remove intro comment. Call
9956 remove_program_space.
9957 (delete_program_space): Delete.
9958 * progspace.h (program_space::program_space): Make explicit. Move
9959 intro comment here, adjusted.
9960 (program_space::~program_space): Move intro comment here,
9961 adjusted.
9962 (delete_program_space): Remove.
9963
9964 2020-04-16 Tom Tromey <tromey@adacore.com>
9965
9966 * windows-nat.c (windows_nat::handle_access_violation): New
9967 function.
9968 * nat/windows-nat.h (handle_access_violation): Declare.
9969 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9970 windows-nat.c. Call handle_access_violation.
9971
9972 2020-04-16 Tom de Vries <tdevries@suse.de>
9973
9974 PR symtab/25791
9975 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9976 CUs without psymtab.
9977
9978 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9979
9980 * python/python.c (do_start_initialization): Don't call
9981 PyEval_InitThreads for Python 3.9 and beyond.
9982
9983 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9984
9985 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9986 thread functions.
9987 (obsd_nat_target::wait): Likewise.
9988
9989 2020-04-15 Tom Tromey <tromey@adacore.com>
9990
9991 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9992 (DEBUG_EXCEPT): Use debug_printf.
9993
9994 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9995
9996 * completer.c (class completion_tracker::completion_hash_entry)
9997 <hash_name>: New member function.
9998 (completion_tracker::discard_completions): New callback to hash a
9999 completion_hash_entry, pass this to htab_create_alloc.
10000
10001 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10002
10003 * windows-nat.c (windows_make_so): Warn rather than stopping with
10004 an error if realpath() fails.
10005
10006 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10007
10008 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10009 (nbsd_nat_target::info_proc): Add do_status.
10010
10011 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10012 Tom de Vries <tdevries@suse.de>
10013
10014 PR symtab/25718
10015 * psympriv.h (struct partial_symtab::read_symtab)
10016 (struct partial_symtab::expand_psymtab)
10017 (struct partial_symtab::read_dependencies): Update comments.
10018 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10019 read_symtab for includer.
10020 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10021 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10022 (struct dwarf2_include_psymtab::m_readin): Remove.
10023 (struct dwarf2_include_psymtab::includer): New member function.
10024 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10025
10026 2020-04-14 Tom de Vries <tdevries@suse.de>
10027
10028 PR symtab/25720
10029 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10030 with NULL symbol_matcher and lookup_name.
10031 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10032 and lookup_name.
10033 * dwarf2/read.c (dw2_expand_symtabs_matching)
10034 (dw2_debug_names_expand_symtabs_matching): Same.
10035 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10036 Make lookup_name a pointer. Update comment.
10037 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10038 lookup_name being a pointer.
10039 * symfile.c (expand_symtabs_matching): Same.
10040 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10041 * linespec.c (iterate_over_all_matching_symtabs): Same.
10042
10043 2020-04-13 Tom Tromey <tom@tromey.com>
10044
10045 * run-on-main-thread.c: Update include.
10046 * unittests/main-thread-selftests.c: Update include.
10047 * tui/tui-win.c: Update include.
10048 * tui/tui-io.c: Update include.
10049 * tui/tui-interp.c: Update include.
10050 * tui/tui-hooks.c: Update include.
10051 * top.h: Update include.
10052 * top.c: Update include.
10053 * ser-base.c: Update include.
10054 * remote.c: Update include.
10055 * remote-notif.c: Update include.
10056 * remote-fileio.c: Update include.
10057 * record-full.c: Update include.
10058 * record-btrace.c: Update include.
10059 * python/python.c: Update include.
10060 * posix-hdep.c: Update include.
10061 * mingw-hdep.c: Update include.
10062 * mi/mi-main.c: Update include.
10063 * mi/mi-interp.c: Update include.
10064 * main.c: Update include.
10065 * linux-nat.c: Update include.
10066 * interps.c: Update include.
10067 * infrun.c: Update include.
10068 * inf-loop.c: Update include.
10069 * event-top.c: Update include.
10070 * event-loop.c: Move to ../gdbsupport/.
10071 * event-loop.h: Move to ../gdbsupport/.
10072 * async-event.h: Update include.
10073 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10074
10075 2020-04-13 Tom Tromey <tom@tromey.com>
10076
10077 * tui/tui-win.c: Include async-event.h.
10078 * remote.c: Include async-event.h.
10079 * remote-notif.c: Include async-event.h.
10080 * record-full.c: Include async-event.h.
10081 * record-btrace.c: Include async-event.h.
10082 * infrun.c: Include async-event.h.
10083 * event-top.c: Include async-event.h.
10084 * event-loop.h: Move some declarations to async-event.h.
10085 * event-loop.c: Don't include ser-event.h or top.h. Move some
10086 code to async-event.c.
10087 * async-event.h: New file.
10088 * async-event.c: New file.
10089 * Makefile.in (COMMON_SFILES): Add async-event.c.
10090 (HFILES_NO_SRCDIR): Add async-event.h.
10091
10092 2020-04-13 Tom Tromey <tom@tromey.com>
10093
10094 * utils.c (flush_streams): New function.
10095 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10096
10097 2020-04-13 Tom Tromey <tom@tromey.com>
10098
10099 * event-loop.c (handle_file_event): Use warning, not
10100 printf_unfiltered.
10101
10102 2020-04-13 Tom Tromey <tom@tromey.com>
10103
10104 * event-loop.c: Include <chrono>.
10105
10106 2020-04-13 Tom Tromey <tom@tromey.com>
10107
10108 * gdb_select.h: Move to ../gdbsupport/.
10109 * event-loop.c: Update include path.
10110 * top.c: Update include path.
10111 * ser-base.c: Update include path.
10112 * ui-file.c: Update include path.
10113 * ser-tcp.c: Update include path.
10114 * guile/scm-ports.c: Update include path.
10115 * posix-hdep.c: Update include path.
10116 * ser-unix.c: Update include path.
10117 * gdb_usleep.c: Update include path.
10118 * mingw-hdep.c: Update include path.
10119 * inflow.c: Update include path.
10120 * infrun.c: Update include path.
10121 * event-top.c: Update include path.
10122
10123 2020-04-13 Tom Tromey <tom@tromey.com>
10124
10125 * configure: Rebuild.
10126 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10127
10128 2020-04-13 Tom Tromey <tom@tromey.com>
10129
10130 * event-loop.h (start_event_loop): Don't declare.
10131 * event-loop.c (start_event_loop): Move...
10132 * main.c (start_event_loop): ...here. Now static.
10133
10134 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10135
10136 * MAINTAINERS: Update my email address.
10137
10138 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10139
10140 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10141 IP_ALL.
10142
10143 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10144
10145 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10146 (nbsd_nat_target::info_proc): Add do_cmdline.
10147
10148 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10149
10150 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10151 (nbsd_nat_target::info_proc): Add do_cwd.
10152
10153 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10154
10155 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10156
10157 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10158
10159 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10160 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10161 (nbsd_nat_target::info_proc): New functions.
10162 * nbsd-nat.c (kinfo_get_vmmap): New function.
10163 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10164 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10165 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10166 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10167 functions.
10168 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10169 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10170 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10171 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10172 (KINFO_VME_FLAG_GROWS_DOWN): New.
10173
10174 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10175
10176 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10177 bit shift.
10178
10179 2020-04-10 Tom Tromey <tromey@adacore.com>
10180
10181 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10182
10183 2020-04-10 Tom Tromey <tromey@adacore.com>
10184
10185 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10186 separate debug files.
10187
10188 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10189
10190 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10191 Move to...
10192 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10193 ... here.
10194 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10195 Check for STATUS_WX86_BREAKPOINT.
10196 (windows_nat_target::wait): Same.
10197
10198 2020-04-10 Tom de Vries <tdevries@suse.de>
10199
10200 PR cli/25808
10201 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10202
10203 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10204
10205 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10206 (Write After Approval): Remove Tom de Vries.
10207
10208 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10209
10210 revert partially:
10211 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10212
10213 * buildsym.c (record_line): Fix undefined behavior and preserve
10214 lines at eof.
10215
10216 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10217
10218 * auxv.h (svr4_auxv_parse): New.
10219 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10220 and generic_auxv_parse.
10221 (svr4_auxv_parse): Add.
10222 * obsd-tdep.c: Include "auxv.h".
10223 (obsd_auxv_parse): Remove.
10224 (obsd_init_abi): Remove comment.
10225 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10226 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10227 * nbsd-tdep.c: Include "auxv.h".
10228 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10229
10230 2020-04-08 Tom Tromey <tromey@adacore.com>
10231
10232 * nat/windows-nat.h (last_wait_event): Don't declare.
10233 (wait_for_debug_event): Update comment.
10234 * nat/windows-nat.c (last_wait_event): Now static.
10235
10236 2020-04-08 Tom Tromey <tromey@adacore.com>
10237
10238 * windows-nat.c (wait_for_debug_event): Move to
10239 nat/windows-nat.c.
10240 * nat/windows-nat.h (wait_for_debug_event): Declare.
10241 * nat/windows-nat.c (wait_for_debug_event): Move from
10242 windows-nat.c. No longer static.
10243
10244 2020-04-08 Tom Tromey <tromey@adacore.com>
10245
10246 * windows-nat.c (get_windows_debug_event): Use
10247 fetch_pending_stop.
10248 * nat/windows-nat.h (fetch_pending_stop): Declare.
10249 * nat/windows-nat.c (fetch_pending_stop): New function.
10250
10251 2020-04-08 Tom Tromey <tromey@adacore.com>
10252
10253 * windows-nat.c (windows_continue): Use matching_pending_stop and
10254 continue_last_debug_event.
10255 * nat/windows-nat.h (matching_pending_stop)
10256 (continue_last_debug_event): Declare.
10257 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10258 (matching_pending_stop, continue_last_debug_event): New
10259 functions.
10260
10261 2020-04-08 Tom Tromey <tromey@adacore.com>
10262
10263 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10264 (handle_exception_result): Move to nat/windows-nat.h.
10265 (DEBUG_EXCEPTION_SIMPLE): Remove.
10266 (windows_nat::handle_ms_vc_exception): New function.
10267 (handle_exception): Move to nat/windows-nat.c.
10268 (get_windows_debug_event): Update.
10269 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10270 nat/windows-nat.c.
10271 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10272 (handle_exception_result): Move from windows-nat.c.
10273 (handle_exception): Declare.
10274 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10275 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10276 windows-nat.c.
10277
10278 2020-04-08 Tom Tromey <tromey@adacore.com>
10279
10280 * windows-nat.c (exception_count, event_count): Remove.
10281 (handle_exception, get_windows_debug_event)
10282 (do_initial_windows_stuff): Update.
10283
10284 2020-04-08 Tom Tromey <tromey@adacore.com>
10285
10286 * windows-nat.c (windows_nat::handle_load_dll)
10287 (windows_nat::handle_unload_dll): Rename. No longer static.
10288 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10289 Declare.
10290
10291 2020-04-08 Tom Tromey <tromey@adacore.com>
10292
10293 * complaints.h (stop_whining): Declare at top-level.
10294 (complaint): Don't declare stop_whining.
10295
10296 2020-04-08 Tom Tromey <tromey@adacore.com>
10297
10298 * windows-nat.c (windows_nat::handle_output_debug_string):
10299 Rename. No longer static.
10300 * nat/windows-nat.h (handle_output_debug_string): Declare.
10301
10302 2020-04-08 Tom Tromey <tromey@adacore.com>
10303
10304 * windows-nat.c (current_process_handle, current_process_id)
10305 (main_thread_id, last_sig, current_event, last_wait_event)
10306 (current_windows_thread, desired_stop_thread_id, pending_stops)
10307 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10308 (display_selectors, fake_create_process)
10309 (get_windows_debug_event): Update.
10310 * nat/windows-nat.h (current_process_handle, current_process_id)
10311 (main_thread_id, last_sig, current_event, last_wait_event)
10312 (current_windows_thread, desired_stop_thread_id, pending_stops)
10313 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10314 * nat/windows-nat.c (current_process_handle, current_process_id)
10315 (main_thread_id, last_sig, current_event, last_wait_event)
10316 (current_windows_thread, desired_stop_thread_id, pending_stops)
10317 (siginfo_er): New globals. Move from windows-nat.c.
10318
10319 2020-04-08 Tom Tromey <tromey@adacore.com>
10320
10321 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10322 (handle_load_dll): Update.
10323 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10324
10325 2020-04-08 Tom Tromey <tromey@adacore.com>
10326
10327 * windows-nat.c (enum thread_disposition_type): Move to
10328 nat/windows-nat.h.
10329 (windows_nat::thread_rec): Rename from thread_rec. No longer
10330 static.
10331 (windows_add_thread, windows_nat_target::fetch_registers)
10332 (windows_nat_target::store_registers, handle_exception)
10333 (windows_nat_target::resume, get_windows_debug_event)
10334 (windows_nat_target::get_tib_address)
10335 (windows_nat_target::thread_name)
10336 (windows_nat_target::thread_alive): Update.
10337 * nat/windows-nat.h (enum thread_disposition_type): Move from
10338 windows-nat.c.
10339 (thread_rec): Declare.
10340
10341 2020-04-08 Tom Tromey <tromey@adacore.com>
10342
10343 * windows-nat.c: Add "using namespace".
10344 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10345 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10346
10347 2020-04-08 Tom Tromey <tromey@adacore.com>
10348
10349 * nat/windows-nat.h (struct windows_thread_info): Declare
10350 destructor.
10351 * nat/windows-nat.c (~windows_thread_info): New.
10352
10353 2020-04-08 Tom Tromey <tromey@adacore.com>
10354
10355 PR gdb/22992
10356 * windows-nat.c (current_event): Update comment.
10357 (last_wait_event, desired_stop_thread_id): New globals.
10358 (struct pending_stop): New.
10359 (pending_stops): New global.
10360 (windows_nat_target) <stopped_by_sw_breakpoint>
10361 <supports_stopped_by_sw_breakpoint>: New methods.
10362 (windows_fetch_one_register): Add assertions. Adjust PC.
10363 (windows_continue): Handle pending stops. Suspend other threads
10364 when stepping. Use last_wait_event
10365 (wait_for_debug_event): New function.
10366 (get_windows_debug_event): Use wait_for_debug_event. Handle
10367 pending stops. Queue spurious stops.
10368 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10369 (windows_nat_target::kill): Use wait_for_debug_event.
10370 * nat/windows-nat.h (struct windows_thread_info)
10371 <stopped_at_software_breakpoint>: New field.
10372 * nat/windows-nat.c (windows_thread_info::resume): Clear
10373 stopped_at_software_breakpoint.
10374
10375 2020-04-08 Tom Tromey <tromey@adacore.com>
10376
10377 * windows-nat.c (enum thread_disposition_type): New.
10378 (thread_rec): Replace "get_context" parameter with "disposition";
10379 change type.
10380 (windows_add_thread, windows_nat_target::fetch_registers)
10381 (windows_nat_target::store_registers, handle_exception)
10382 (windows_nat_target::resume, get_windows_debug_event)
10383 (windows_nat_target::get_tib_address)
10384 (windows_nat_target::thread_name)
10385 (windows_nat_target::thread_alive): Update.
10386
10387 2020-04-08 Tom Tromey <tromey@adacore.com>
10388
10389 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10390 (windows_continue): Use windows_continue::resume.
10391 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10392 resume>: Declare new methods.
10393 * nat/windows-nat.c: New file.
10394 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10395
10396 2020-04-08 Tom Tromey <tromey@adacore.com>
10397
10398 * windows-nat.c (windows_add_thread, windows_delete_thread)
10399 (windows_nat_target::fetch_registers)
10400 (windows_nat_target::store_registers, fake_create_process)
10401 (windows_nat_target::resume, windows_nat_target::resume)
10402 (get_windows_debug_event, windows_nat_target::wait)
10403 (windows_nat_target::pid_to_str)
10404 (windows_nat_target::get_tib_address)
10405 (windows_nat_target::get_ada_task_ptid)
10406 (windows_nat_target::thread_name)
10407 (windows_nat_target::thread_alive): Use lwp, not tid.
10408
10409 2020-04-08 Tom Tromey <tromey@adacore.com>
10410
10411 * windows-nat.c (handle_exception)
10412 (windows_nat_target::thread_name): Update.
10413 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10414 <name>: Now unique_xmalloc_ptr.
10415
10416 2020-04-08 Tom Tromey <tromey@adacore.com>
10417
10418 * windows-nat.c (thread_rec)
10419 (windows_nat_target::fetch_registers): Update.
10420 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10421 Update comment.
10422 <debug_registers_changed, reload_context>: Now bool.
10423
10424 2020-04-08 Tom Tromey <tromey@adacore.com>
10425
10426 * windows-nat.c (windows_add_thread): Use new.
10427 (windows_init_thread_list, windows_delete_thread): Use delete.
10428 (get_windows_debug_event): Update.
10429 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10430 destructor, and initializers.
10431
10432 2020-04-08 Tom Tromey <tromey@adacore.com>
10433
10434 * windows-nat.c (struct windows_thread_info): Remove.
10435 * nat/windows-nat.h: New file.
10436
10437 2020-04-08 Tom Tromey <tromey@adacore.com>
10438
10439 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10440 (thread_rec, windows_add_thread, windows_delete_thread)
10441 (windows_continue): Update.
10442
10443 2020-04-08 Tom Tromey <tromey@adacore.com>
10444
10445 * windows-nat.c (struct windows_thread_info): Remove typedef.
10446 (thread_head): Remove.
10447 (thread_list): New global.
10448 (thread_rec, windows_add_thread, windows_init_thread_list)
10449 (windows_delete_thread, windows_continue): Update.
10450
10451 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10452
10453 * windows-tdep.h (windows_init_abi): Add comment.
10454 (cygwin_init_abi): New declaration.
10455 * windows-tdep.c: Split signal enumeration in two, one for
10456 Windows and one for Cygwin.
10457 (windows_gdb_signal_to_target): Only deal with signal of the
10458 Windows OS ABI.
10459 (cygwin_gdb_signal_to_target): New function.
10460 (windows_init_abi): Rename to windows_init_abi_common, don't set
10461 gdb_signal_to_target gdbarch method. Add new new function with
10462 this name.
10463 (cygwin_init_abi): New function.
10464 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10465 comment. Don't call windows_init_abi.
10466 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10467 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10468 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10469 i386_windows_init_abi_common, don't call windows_init_abi. Add
10470 a new function of this name.
10471 (i386_cygwin_init_abi): New function.
10472 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10473 OS ABI Cygwin.
10474
10475 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10476
10477 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10478 parameter.c.
10479 (dwarf2_read_gdb_index): Update.
10480
10481 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10482
10483 * nbsd-tdep.c: Include "objfiles.h".
10484 (nbsd_skip_solib_resolver): New.
10485 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10486
10487 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10488
10489 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10490 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10491 with DW_LLE_base_addressx are being emitted in DWARFv5.
10492 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10493 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10494 unsigned integer.
10495
10496 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10497
10498 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10499 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10500 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10501 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10502 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10503 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10504 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10505
10506
10507 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10508
10509 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10510 (read_loclist_index): New function definition.
10511 (lookup_loclist_base): New function definition.
10512 (read_loclist_header): New function definition.
10513 (dwarf2_cu): Add loclist_base and loclist_header field.
10514 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10515 (read_full_die_1): Read the value of DW_AT_loclists_base.
10516 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10517 (read_attribute_value): Handle DW_FORM_loclistx.
10518 (skip_one_die): Handle DW_FORM_loclistx.
10519 (loclist_header): New structure declaration.
10520 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10521
10522 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10523
10524 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10525 constructor. Remove `addr` parameter from other constructor and
10526 add `per_cu` parameter.
10527 * dwarf2/read.c (create_partial_symtab): Update.
10528
10529 2020-04-07 Tom de Vries <tdevries@suse.de>
10530
10531 PR symtab/25796
10532 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10533 (partial_die_info::fixup): Inherit has_const_value.
10534
10535 2020-04-07 Tom de Vries <tdevries@suse.de>
10536
10537 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10538 symbols without address.
10539
10540 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10541
10542 * nbsd-nat.h (struct thread_info): Add forward declaration.
10543 (nbsd_nat_target::thread_alive): Add.
10544 (nbsd_nat_target::thread_name): Likewise.
10545 (nbsd_nat_target::update_thread_list): Likewise.
10546 (update_thread_list::post_attach): Likewise.
10547 (post_attach::pid_to_str): Likewise.
10548 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10549 (nbsd_thread_lister): Add.
10550 (nbsd_nat_target::thread_alive): Likewise.
10551 (nbsd_nat_target::thread_name): Likewise.
10552 (nbsd_add_threads): Likewise.
10553 (update_thread_list::post_attach): Likewise.
10554 (nbsd_nat_target::update_thread_list): Likewise.
10555 (post_attach::pid_to_str): Likewise.
10556
10557 2020-04-06 Tom Tromey <tromey@adacore.com>
10558
10559 * ada-valprint.c (print_variant_part): Extract the variant field.
10560 (print_field_values): Use the field as the outer value when
10561 recursing.
10562
10563 2020-04-06 Tom Tromey <tromey@adacore.com>
10564
10565 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10566 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10567 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10568 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10569 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10570
10571 2020-04-06 Tom Tromey <tromey@adacore.com>
10572
10573 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10574 TYPE_CODE_ERROR.
10575
10576 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10577
10578 * nbsd-tdep.c: Include "gdbarch.h".
10579 Define enum with NetBSD signal numbers.
10580 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10581 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10582 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10583 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10584 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10585 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10586 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10587 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10588 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10589 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10590 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10591 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10592
10593 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10594
10595 PR gdb/25325
10596 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10597
10598 2020-04-03 Tom Tromey <tromey@adacore.com>
10599
10600 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10601 Read constant block.
10602
10603 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10604
10605 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10606 (gdb_bfd_get_full_section_contents): New declaration.
10607 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10608 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10609 gdb_bfd_get_full_section_contents.
10610
10611 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10612
10613 * exec.c (build_section_table): Replace internal_error with
10614 gdb_assert.
10615 (section_table_xfer_memory_partial): Likewise.
10616 * mdebugread.c (parse_partial_symbols): Likewise.
10617 * psymtab.c (lookup_partial_symbol): Likewise.
10618 * utils.c (wrap_here): Likewise.
10619
10620 2020-04-02 Tom Tromey <tromey@adacore.com>
10621
10622 * f-lang.c (build_fortran_types): Use arch_type to initialize
10623 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10624
10625 2020-04-02 Tom Tromey <tromey@adacore.com>
10626
10627 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10628 of attributes.
10629
10630 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10631 Bernd Edlinger <bernd.edlinger@hotmail.de>
10632 Tom Tromey <tromey@adacore.com>
10633
10634 * buildsym.c (buildsym_compunit::record_line): Remove
10635 deduplication code.
10636
10637 2020-04-02 Tom de Vries <tdevries@suse.de>
10638
10639 PR ada/24671
10640 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10641
10642 2020-04-02 Tom de Vries <tdevries@suse.de>
10643
10644 * dwarf2/read.c (dwarf2_gdb_index_functions,
10645 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10646 NULL.
10647 * psymtab.c (psym_lookup_global_symbol_language): New function.
10648 (psym_functions): Init psym_lookup_global_symbol_language with
10649 psym_lookup_global_symbol_language.
10650 * symfile-debug.c (debug_sym_quick_functions): Init
10651 lookup_global_symbol_language with NULL.
10652 * symfile.c (set_initial_language): Remove fixme comment.
10653 * symfile.h (struct quick_symbol_functions): Add
10654 lookup_global_symbol_language.
10655 * symtab.c (find_quick_global_symbol_language): New function.
10656 (find_main_name): Use find_quick_global_symbol_language.
10657
10658 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10659
10660 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10661
10662 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10663
10664 * buildsym.c (record_line): Fix undefined behavior and preserve
10665 lines at eof.
10666
10667 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10668
10669 * buildsym.c (record_line): Fix the resizing condition.
10670
10671 2020-04-01 Tom Tromey <tom@tromey.com>
10672
10673 * value.h (value_literal_complex): Add comment.
10674 * valops.c (value_literal_complex): Refer to value.h.
10675
10676 2020-04-01 Tom Tromey <tom@tromey.com>
10677
10678 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10679 (scalar_type): New rule, from typebase.
10680 (typebase): Use scalar_type. Recognize complex types.
10681 (field_name): Handle FLOAT_KEYWORD.
10682 (ident_tokens): Add _Complex and __complex__.
10683
10684 2020-04-01 Tom Tromey <tom@tromey.com>
10685
10686 PR exp/25299:
10687 * valarith.c (promotion_type, complex_binop): New functions.
10688 (scalar_binop): Handle complex numbers. Use promotion_type.
10689 (value_pos, value_neg, value_complement): Handle complex numbers.
10690
10691 2020-04-01 Tom Tromey <tom@tromey.com>
10692
10693 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10694 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10695 (parse_number): Handle complex numbers.
10696
10697 2020-04-01 Tom Tromey <tom@tromey.com>
10698
10699 * c-valprint.c (c_decorations): Change complex suffix to "i".
10700
10701 2020-04-01 Tom Tromey <tom@tromey.com>
10702
10703 * valprint.c (generic_value_print_complex): Use accessors.
10704 * value.h (value_real_part, value_imaginary_part): Declare.
10705 * valops.c (value_real_part, value_imaginary_part): New
10706 functions.
10707 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10708
10709 2020-04-01 Tom Tromey <tom@tromey.com>
10710
10711 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10712 (read_range_type): Update.
10713 * mdebugread.c (basic_type): Update.
10714 * go-lang.c (build_go_types): Use init_complex_type.
10715 * gdbtypes.h (struct main_type) <complex_type>: New member.
10716 (init_complex_type): Update.
10717 (arch_complex_type): Don't declare.
10718 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10719 Make name if none given. Use alloc_type_copy. Look for cached
10720 complex type.
10721 (arch_complex_type): Remove.
10722 (gdbtypes_post_init): Use init_complex_type.
10723 * f-lang.c (build_fortran_types): Use init_complex_type.
10724 * dwarf2/read.c (read_base_type): Update.
10725 * d-lang.c (build_d_types): Use init_complex_type.
10726 * ctfread.c (read_base_type): Update.
10727
10728 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10729
10730 * infrun.c (stop_all_threads): Update assertion, plus when
10731 stopping threads, take into account that we might be trying
10732 to stop an all-stop target.
10733 (stop_waiting): Call 'stop_all_threads' if there exists a
10734 non-stop target.
10735
10736 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10737
10738 * target.h (exists_non_stop_target): New function declaration.
10739 * target.c (exists_non_stop_target): New function.
10740
10741 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10742
10743 PR gdb/24789
10744 * eval.c (is_integral_or_integral_reference): New function.
10745 (evaluate_subexp_standard): Allow integer references in
10746 pointer arithmetic.
10747
10748 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10749
10750 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10751 check for no ptid in the stop reply when the target is non-stop.
10752
10753 2020-04-01 Tom Tromey <tromey@adacore.com>
10754
10755 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10756 "name" parameter to rvalue reference. Initialize m_name_holder.
10757 <lookup_name_info>: New overloads.
10758 <name>: Return gdb::string_view.
10759 <c_str>: New method.
10760 <make_ignore_params>: Update.
10761 <search_name_hash>: Update.
10762 <language_lookup_name>: Return const char *.
10763 <m_name>: Change type.
10764 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10765 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10766 (lookup_name_info::match_any): Update.
10767 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10768 Update.
10769 * minsyms.c (linkage_name_str): Update.
10770 * language.c (default_symbol_name_matcher): Update.
10771 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10772 Update.
10773 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10774 (ada_lookup_name_info::ada_lookup_name_info): Update.
10775 (literal_symbol_name_matcher): Update.
10776
10777 2020-04-01 Tom Tromey <tromey@adacore.com>
10778
10779 * psymtab.c (psymtab_search_name): Remove function.
10780 (psym_lookup_symbol): Create search name and lookup name here.
10781 (lookup_partial_symbol): Remove "name" parameter; add
10782 lookup_name.
10783 (psym_expand_symtabs_for_function): Update.
10784
10785 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10786
10787 PR tui/25597:
10788 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10789
10790 2020-03-31 Tom Tromey <tromey@adacore.com>
10791
10792 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10793 memcpy.
10794
10795 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10796
10797 * features/riscv/32bit-csr.xml: Regenerated.
10798 * features/riscv/64bit-csr.xml: Regenerated.
10799
10800 2020-03-30 Tom Tromey <tromey@adacore.com>
10801
10802 * ada-valprint.c (print_variant_part): Update.
10803 * ada-lang.h (ada_which_variant_applies): Update.
10804 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10805 outer_valaddr parameters; replace with "outer" value parameter.
10806 (to_fixed_variant_branch_type): Update.
10807
10808 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10809
10810 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10811 <list>. Remove inclusion of observable.h.
10812 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10813 (struct arch_lwp_info): New struct.
10814 (class ppc_linux_dreg_interface): New class.
10815 (struct ppc_linux_process_info): New struct.
10816 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10817 <low_new_clone, low_forget_process, low_prepare_to_resume>
10818 <copy_thread_dreg_state, mark_thread_stale>
10819 <mark_debug_registers_changed, register_hw_breakpoint>
10820 <clear_hw_breakpoint, register_wp, clear_wp>
10821 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10822 <num_memory_accesses, get_trigger_type>
10823 <create_watchpoint_request, hwdebug_point_cmp>
10824 <init_arch_lwp_info, get_arch_lwp_info>
10825 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10826 methods.
10827 <struct ptid_hash>: New inner struct.
10828 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10829 members.
10830 (saved_dabr_value, hwdebug_info, max_slots_number)
10831 (struct hw_break_tuple, struct thread_points, ppc_threads)
10832 (have_ptrace_hwdebug_interface)
10833 (hwdebug_find_thread_points_by_tid)
10834 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10835 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10836 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10837 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10838 use m_dreg_interface.
10839 (hwdebug_point_cmp): Change to...
10840 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10841 reference arguments instead of pointers.
10842 (ppc_linux_nat_target::ranged_break_num_registers): Use
10843 m_dreg_interface.
10844 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10845 m_dreg_interface. Call register_hw_breakpoint.
10846 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10847 m_dreg_interface. Call clear_hw_breakpoint.
10848 (get_trigger_type): Change to...
10849 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10850 comment.
10851 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10852 use m_dreg_interface. Call register_hw_breakpoint.
10853 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10854 use m_dreg_interface. Call clear_hw_breakpoint.
10855 (can_use_watchpoint_cond_accel): Change to...
10856 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10857 method. Update comment, use m_dreg_interface and
10858 m_process_info.
10859 (calculate_dvc): Change to...
10860 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10861 m_dreg_interface.
10862 (num_memory_accesses): Change to...
10863 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10864 (check_condition): Change to...
10865 (ppc_linux_nat_target::check_condition): ...this method.
10866 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10867 comment, use m_dreg_interface.
10868 (create_watchpoint_request): Change to...
10869 (ppc_linux_nat_target::create_watchpoint_request): ...this
10870 method. Use m_dreg_interface.
10871 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10872 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10873 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10874 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10875 (ppc_linux_nat_target::low_forget_process)
10876 (ppc_linux_nat_target::low_new_fork)
10877 (ppc_linux_nat_target::low_new_clone)
10878 (ppc_linux_nat_target::low_delete_thread)
10879 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10880 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10881 only call mark_thread_stale.
10882 (ppc_linux_thread_exit): Remove.
10883 (ppc_linux_nat_target::stopped_data_address): Change to...
10884 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10885 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10886 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10887 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10888 comment. Call low_stopped_data_address.
10889 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10890 m_dreg_interface.
10891 (ppc_linux_nat_target::masked_watch_num_registers): Use
10892 m_dreg_interface.
10893 (ppc_linux_nat_target::copy_thread_dreg_state)
10894 (ppc_linux_nat_target::mark_thread_stale)
10895 (ppc_linux_nat_target::mark_debug_registers_changed)
10896 (ppc_linux_nat_target::register_hw_breakpoint)
10897 (ppc_linux_nat_target::clear_hw_breakpoint)
10898 (ppc_linux_nat_target::register_wp)
10899 (ppc_linux_nat_target::clear_wp)
10900 (ppc_linux_nat_target::init_arch_lwp_info)
10901 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10902 (_initialize_ppc_linux_nat): Remove observer callback.
10903
10904 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10905
10906 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10907 (ppc_linux_nat_target::auxv_parse)
10908 (ppc_linux_nat_target::read_description)
10909 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10910 Move up.
10911
10912 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10913
10914 * linux-nat.h (low_new_clone): New method.
10915 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10916
10917 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10918
10919 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10920 (dbx_expand_psymtab): ... this.
10921 (start_psymtab): Update.
10922 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10923 (mdebug_expand_psymtab): ... this.
10924 (parse_partial_symbols): Update.
10925 (new_psymtab): Update.
10926 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10927 (xcoff_expand_psymtab): ... this.
10928 (xcoff_start_psymtab): Update.
10929
10930 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10931
10932 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10933 <expand_dependencies>: ... this.
10934 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10935 (partial_symtab::expand_dependencies): ... this.
10936 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10937 Update.
10938 (dwarf2_psymtab::expand_psymtab): Update.
10939 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10940 * mdebugread.c (psymtab_to_symtab_1): Update.
10941 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10942
10943 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10944
10945 * psympriv.h (discard_psymtab): Remove.
10946 * dbxread.c (dbx_end_psymtab): Update.
10947 * xcoffread.c (xcoff_end_psymtab): Update.
10948
10949 2020-03-28 Tom Tromey <tom@tromey.com>
10950
10951 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10952 comment.
10953
10954 2020-03-28 Tom Tromey <tom@tromey.com>
10955
10956 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10957
10958 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10959
10960 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10961
10962 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10963
10964 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10965
10966 2020-03-26 Tom Tromey <tom@tromey.com>
10967
10968 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10969 (mark_common_block_symbol_computed, read_tag_string_type)
10970 (attr_to_dynamic_prop, read_subrange_type): Update.
10971 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10972 to be methods on struct attribute.
10973 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10974 (read_call_site_scope, partial_die_info::read)
10975 (partial_die_info::read, lookup_die_type, follow_die_ref):
10976 Update.
10977 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10978 from dwarf2_get_ref_die_offset.
10979 (attribute::constant_value): New method, from
10980 dwarf2_get_attr_constant_value.
10981 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10982 Declare method.
10983 <constant_value>: New method.
10984
10985 2020-03-26 Tom Tromey <tom@tromey.com>
10986
10987 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10988 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10989 (dwarf_type_encoding_name): Move to stringify.c.
10990 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10991 * dwarf2/stringify.c: New file.
10992 * dwarf2/stringify.h: New file.
10993
10994 2020-03-26 Tom Tromey <tom@tromey.com>
10995
10996 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10997 Rewrite.
10998
10999 2020-03-26 Tom Tromey <tom@tromey.com>
11000
11001 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11002 methods.
11003 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11004 (lookup_ranges_base): Likewise.
11005 (read_cutu_die_from_dwo, read_full_die_1): Update.
11006
11007 2020-03-26 Tom Tromey <tom@tromey.com>
11008
11009 * dwarf2/read.c (read_import_statement, read_file_scope)
11010 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11011 (read_lexical_block_scope, read_call_site_scope)
11012 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11013 (handle_struct_member_die, process_structure_scope)
11014 (update_enumeration_type_from_children)
11015 (process_enumeration_scope, read_array_type, read_common_block)
11016 (read_namespace, read_module, read_subroutine_type): Update.
11017 (sibling_die): Remove.
11018
11019 2020-03-26 Tom Tromey <tom@tromey.com>
11020
11021 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11022 (build_type_psymtabs_reader, read_structure_type)
11023 (read_enumeration_type, read_full_die_1): Update.
11024 (dwarf2_attr_no_follow): Move to die.h.
11025 * dwarf2/die.h (struct die_info) <attr>: New method.
11026
11027 2020-03-26 Tom Tromey <tom@tromey.com>
11028
11029 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11030 <base_address>: Now an optional.
11031 (dwarf2_find_base_address, dwarf2_rnglists_process)
11032 (dwarf2_ranges_process, fill_in_loclist_baton)
11033 (dwarf2_symbol_mark_computed): Update.
11034
11035 2020-03-26 Tom Tromey <tom@tromey.com>
11036
11037 * dwarf2/read.c (struct die_info): Move to die.h.
11038 * dwarf2/die.h: New file.
11039
11040 2020-03-26 Tom Tromey <tom@tromey.com>
11041
11042 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11043 * dwarf2/read.c
11044 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11045 Move to line-header.c.
11046 (read_checked_initial_length_and_offset, read_formatted_entries):
11047 Likewise.
11048 (dwarf_decode_line_header): Split into two.
11049 * dwarf2/line-header.c
11050 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11051 Move from read.c.
11052 (read_checked_initial_length_and_offset, read_formatted_entries):
11053 Likewise.
11054 (dwarf_decode_line_header): New function, split from read.c.
11055
11056 2020-03-26 Tom Tromey <tom@tromey.com>
11057
11058 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11059 Declare method.
11060 * dwarf2/read.c (read_attribute_value): Update.
11061 (dwarf2_per_objfile::read_line_string): Rename from
11062 read_indirect_line_string.
11063 (read_formatted_entries): Update.
11064
11065 2020-03-26 Tom Tromey <tom@tromey.com>
11066
11067 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11068 variable.
11069
11070 2020-03-26 Tom Tromey <tom@tromey.com>
11071
11072 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11073 const.
11074 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11075 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11076 parameter const.
11077
11078 2020-03-26 Tom Tromey <tom@tromey.com>
11079
11080 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11081 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11082 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11083 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11084
11085 2020-03-26 Tom Tromey <tom@tromey.com>
11086
11087 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11088 file_names_size, file_full_name, file_file_name>: Use const.
11089 <file_name_at, file_names>: Add const overload.
11090 * dwarf2/line-header.c (line_header::file_file_name)
11091 (line_header::file_full_name): Update.
11092
11093 2020-03-26 Tom Tromey <tom@tromey.com>
11094
11095 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11096 (macro_start_file, consume_improper_spaces)
11097 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11098 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11099 (dwarf_decode_macros): Move to macro.c.
11100 * dwarf2/macro.c: New file.
11101 * dwarf2/macro.h: New file.
11102 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11103
11104 2020-03-26 Tom Tromey <tom@tromey.com>
11105
11106 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11107 method.
11108 * dwarf2/section.c: New method. From
11109 read_indirect_string_at_offset_from.
11110 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11111 (read_indirect_string_at_offset_from): Move to section.c.
11112 (read_indirect_string_at_offset): Rewrite.
11113 (read_indirect_line_string_at_offset): Remove.
11114 (read_indirect_string, read_indirect_line_string)
11115 (dwarf_decode_macro_bytes): Update.
11116
11117 2020-03-26 Tom Tromey <tom@tromey.com>
11118
11119 * dwarf2/section.h (struct dwarf2_section_info)
11120 <overload_complaint>: Declare.
11121 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11122 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11123 Rename from dwarf2_section_buffer_overflow_complaint.
11124 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11125 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11126
11127 2020-03-26 Tom Tromey <tom@tromey.com>
11128
11129 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11130 Declare.
11131 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11132 Move from read.c.
11133 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11134 to section.c.
11135
11136 2020-03-26 Tom Tromey <tom@tromey.com>
11137
11138 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11139
11140 2020-03-26 Tom Tromey <tom@tromey.com>
11141
11142 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11143 "builder".
11144 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11145 parameter.
11146 (dwarf_decode_macros): Update.
11147
11148 2020-03-26 Tom Tromey <tom@tromey.com>
11149
11150 * dwarf2/read.c (read_attribute_value): Update.
11151 (read_indirect_string_from_dwz): Move to dwz.c; change into
11152 method.
11153 (dwarf_decode_macro_bytes): Update.
11154 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11155 * dwarf2/dwz.c: New file.
11156 * Makefile.in (COMMON_SFILES): Add dwz.c.
11157
11158 2020-03-26 Tom Tromey <tom@tromey.com>
11159
11160 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11161 * dwarf2/read.c: Add include.
11162 * dwarf2/index-write.c: Add include.
11163 * dwarf2/index-cache.c: Add include.
11164 * dwarf2/dwz.h: New file.
11165
11166 2020-03-25 Tom Tromey <tom@tromey.com>
11167
11168 * compile/compile-object-load.c (get_out_value_type): Mention
11169 correct symbol name in error message.
11170
11171 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11172
11173 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11174
11175 2020-03-25 Tom de Vries <tdevries@suse.de>
11176
11177 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11178 * symmisc.c (dump_symtab_1): Print user and includes fields.
11179 (maintenance_info_symtabs): Same.
11180
11181 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11182
11183 PR gdb/25534
11184 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11185 (riscv_regcache_cooked_write): New function.
11186 (riscv_push_dummy_call): Use new function.
11187 (riscv_return_value): Likewise.
11188
11189 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11190
11191 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11192 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11193 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11194 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11195 * infrun.c (follow_fork): Likewise.
11196 (follow_fork_inferior): Likewise.
11197 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11198 * linux-nat.h (class linux_nat_target): Likewise.
11199 * remote.c (class remote_target) <follow_fork>: Likewise.
11200 (remote_target::follow_fork): Likewise.
11201 * target-delegates.c: Re-generate.
11202 * target.c (default_follow_fork): Likewise.
11203 (target_follow_fork): Likewise.
11204 * target.h (struct target_ops) <follow_fork>: Likewise.
11205 (target_follow_fork): Likewise.
11206
11207 2020-03-24 Tom de Vries <tdevries@suse.de>
11208
11209 * psymtab.c (maintenance_info_psymtabs): Print user field.
11210
11211 2020-03-20 Tom Tromey <tromey@adacore.com>
11212
11213 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11214 const.
11215 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11216 const.
11217
11218 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11219
11220 * ptrace.m4: Don't check for ptrace declaration.
11221 * config.in: Re-generate.
11222 * configure: Re-generate.
11223 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11224 not defined.
11225
11226 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11227
11228 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11229 `PTRACE_TYPE_RET'.
11230 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11231 * sparc-nat.c (gdb_ptrace): Likewise.
11232 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11233
11234 2020-03-20 Tom Tromey <tromey@adacore.com>
11235
11236 * c-exp.y (lex_one_token): Fix assert.
11237
11238 2020-03-20 Tom Tromey <tromey@adacore.com>
11239
11240 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11241 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11242 strncpy call.
11243
11244 2020-03-20 Tom Tromey <tromey@adacore.com>
11245
11246 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11247
11248 2020-03-20 Tom Tromey <tromey@adacore.com>
11249
11250 * ada-valprint.c (print_variant_part): Remove parameters; switch
11251 to value-based API.
11252 (print_field_values): Likewise.
11253 (ada_val_print_struct_union): Likewise.
11254 (ada_value_print_1): Update.
11255
11256 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11257
11258 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11259 nbsd_nat_target instead of inf_ptrace_target.
11260 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11261 nbsd_nat_target.
11262
11263 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11264
11265 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11266 it to the ptrace call.
11267 * (store_registers): Likewise.
11268
11269 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11270
11271 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11272 it to the ptrace call.
11273 * (store_registers): Likewise.
11274
11275 2020-03-19 Luis Machado <luis.machado@linaro.org>
11276
11277 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11278 valid, fetch vg value from ptrace.
11279
11280 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11281 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11282 * inf-ptrace.c: Likewise.
11283 * (gdb_ptrace): Add.
11284 * (inf_ptrace_target::resume): Update.
11285 * (inf_ptrace_target::xfer_partial): Likewise.
11286 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11287 * (inf_ptrace_peek_poke): Update.
11288
11289 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11290
11291 * x86-bsd-nat.c (gdb_ptrace): New.
11292 * (x86bsd_dr_set): Add new argument `ptid'.
11293 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11294 x86bsd_dr_set_addr): Update.
11295
11296 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11297
11298 * remote.c (remote_target::process_stop_reply): Handle events for
11299 all threads differently.
11300
11301 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11302
11303 * completer.c (completion_tracker::remove_completion): Define new
11304 function.
11305 * completer.h (completion_tracker::remove_completion): Declare new
11306 function.
11307 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11308 when adding a C++ function symbol.
11309
11310 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11311
11312 * completer.c (completion_tracker::completion_hash_entry): Define
11313 new class.
11314 (advance_to_filename_complete_word_point): Call
11315 recompute_lowest_common_denominator.
11316 (completion_tracker::completion_tracker): Call discard_completions
11317 to setup the hash table.
11318 (completion_tracker::discard_completions): Allow for being called
11319 from the constructor, pass new equal function, and element deleter
11320 when constructing the hash table. Initialise new class member
11321 variables.
11322 (completion_tracker::maybe_add_completion): Remove use of
11323 m_entries_vec, and store more information into m_entries_hash.
11324 (completion_tracker::recompute_lcd_visitor): New function, most
11325 content taken from...
11326 (completion_tracker::recompute_lowest_common_denominator):
11327 ...here, this now just visits each item in the hash calling the
11328 above visitor.
11329 (completion_tracker::build_completion_result): Remove use of
11330 m_entries_vec, call recompute_lowest_common_denominator.
11331 * completer.h (completion_tracker::have_completions): Remove use
11332 of m_entries_vec.
11333 (completion_tracker::completion_hash_entry): Declare new class.
11334 (completion_tracker::recompute_lowest_common_denominator): Change
11335 function signature.
11336 (completion_tracker::recompute_lcd_visitor): Declare new function.
11337 (completion_tracker::m_entries_vec): Delete.
11338 (completion_tracker::m_entries_hash): Initialize to NULL.
11339 (completion_tracker::m_lowest_common_denominator_valid): New
11340 member variable.
11341 (completion_tracker::m_lowest_common_denominator_max_length): New
11342 member variable.
11343
11344 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11345
11346 * regformats/regdef.h: Put reg in gdb namespace.
11347
11348 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11349
11350 * i386-bsd-nat.c (gdb_ptrace): New.
11351 * (i386bsd_fetch_inferior_registers,
11352 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11353 * (i386bsd_fetch_inferior_registers,
11354 i386bsd_store_inferior_registers) Use gdb_ptrace.
11355
11356 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11357
11358 * amd64-bsd-nat.c (gdb_ptrace): New.
11359 * (amd64bsd_fetch_inferior_registers,
11360 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11361 * (amd64bsd_fetch_inferior_registers,
11362 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11363
11364 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11365
11366 * user-regs.c (user_reg::read): Rename to...
11367 (user_reg::xread): ...this.
11368 * (append_user_reg): Rename argument `read' to `xread'.
11369 * (user_reg_add_builtin): Likewise.
11370 * (user_reg_add): Likewise.
11371 * (value_of_user_reg): Likewise.
11372
11373 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11374
11375 * sparc-nat.c (gdb_ptrace): New.
11376 * sparc-nat.c (sparc_fetch_inferior_registers)
11377 (sparc_store_inferior_registers) Remove obsolete comment.
11378 * sparc-nat.c (sparc_fetch_inferior_registers)
11379 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11380 * sparc-nat.c (sparc_fetch_inferior_registers)
11381 (sparc_store_inferior_registers) Use gdb_ptrace.
11382
11383 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11384
11385 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11386 it to the ptrace call.
11387 * sh-nbsd-nat.c (store_registers): Likewise.
11388
11389 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11390
11391 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11392 nbsd_nat_target instead of inf_ptrace_target.
11393 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11394 nbsd_nat_target.
11395
11396 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11397
11398 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11399
11400 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11401
11402 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11403 <sys/sysctl.h>.
11404 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11405
11406 2020-03-17 Tom de Vries <tdevries@suse.de>
11407
11408 PR gdb/23710
11409 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11410 fields.
11411 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11412 fields.
11413 (process_imported_unit_die): Skip import of c++ CUs.
11414
11415 2020-03-16 Tom Tromey <tom@tromey.com>
11416
11417 * p-valprint.c (pascal_object_print_value): Initialize
11418 base_value.
11419
11420 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11421 Shahab Vahedi <shahab@synopsys.com>
11422
11423 * Makefile.in: Add arch/arc.o
11424 * configure.tgt: Likewise.
11425 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11426 (_initialize_arc_tdep): Don't initialize old target descriptions.
11427 (arc_read_description): New function to cache target descriptions.
11428 * arc-tdep.h (arc_read_description): Add proto type.
11429 * arch/arc.c: New file.
11430 * arch/arc.h: Likewise.
11431 * features/Makefile: Replace old target descriptions with new.
11432 * features/arc-arcompact.c: Remove.
11433 * features/arc-arcompact.xml: Likewise.
11434 * features/arc-v2.c: Likewise
11435 * features/arc-v2.xml: Likewise
11436 * features/arc/aux-arcompact.xml: New file.
11437 * features/arc/aux-v2.xml: Likewise.
11438 * features/arc/core-arcompact.xml: Likewise.
11439 * features/arc/core-v2.xml: Likewise.
11440 * features/arc/aux-arcompact.c: Generate.
11441 * features/arc/aux-v2.c: Likewise.
11442 * features/arc/core-arcompact.c: Likewise.
11443 * features/arc/core-v2.c: Likewise.
11444 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11445
11446 2020-03-16 Tom Tromey <tromey@adacore.com>
11447
11448 PR gdb/25663:
11449 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11450 putting value into bcache.
11451
11452 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11453
11454 PR gdb/21500
11455 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11456 to...
11457 (amd64_windows_init_abi_common): ... this. Don't set size of
11458 long type.
11459 (amd64_windows_init_abi): New function.
11460 (amd64_cygwin_init_abi): New function.
11461 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11462 the Cygwin OS ABI.
11463 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11464 comment.
11465
11466 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11467
11468 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11469 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11470 (pe_import_directory_entry): New struct type.
11471 (is_linked_with_cygwin_dll): New function.
11472 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11473 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11474 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11475
11476 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11477
11478 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11479 i386_cygwin_core_osabi_sniffer.
11480
11481 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11482
11483 * i386-cygwin-tdep.c: Rename to...
11484 * i386-windows-tdep.c: ... this.
11485 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11486 i386-windows-tdep.c.
11487 * configure.tgt: Likewise.
11488
11489 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11490
11491 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11492 * osabi.c (gdb_osabi_names): Add "Windows".
11493 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11494 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11495 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11496 i386_cygwin_osabi_sniffer.
11497 (_initialize_i386_cygwin_tdep): Register OS ABI
11498 GDB_OSABI_WINDOWS for i386.
11499 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11500 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11501 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11502 for x86-64.
11503 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11504 when the target matches '*-*-mingw*'.
11505
11506 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11507
11508 * defs.h (enum gdb_osabi): Move to...
11509 * osabi.h (enum gdb_osabi): ... here.
11510 * gdbarch.sh: Include osabi.h in gdbarch.h.
11511 * gdbarch.h: Re-generate.
11512
11513 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11514
11515 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11516 function.
11517 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11518
11519 2020-03-14 Tom Tromey <tom@tromey.com>
11520
11521 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11522 for C++.
11523 (c_type_print_modifier): Likewise. Add "language" parameter.
11524 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11525 (c_type_print_base_1): Update.
11526 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11527 constants.
11528 * type-stack.c (type_stack::insert): Handle tp_atomic and
11529 tp_restrict.
11530 (type_stack::follow_type_instance_flags): Likewise.
11531 (type_stack::follow_types): Likewise. Merge type-following code.
11532 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11533 (space_identifier, cv_with_space_id)
11534 (const_or_volatile_or_space_identifier_noopt)
11535 (const_or_volatile_or_space_identifier): Remove.
11536 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11537 rules.
11538 (ptr_operator, typebase): Update.
11539 (enum token_flag) <FLAG_C>: New constant.
11540 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11541 "_Atomic".
11542 (lex_one_token): Handle FLAG_C.
11543
11544 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11545
11546 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11547 it to the ptrace call.
11548 * m68k-bsd-nat.c (store_registers): Likewise.
11549
11550 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11551
11552 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11553 gdb_byte *.
11554 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11555 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11556 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11557
11558 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11559
11560 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11561 nbsd_nat_target instead of inf_ptrace_target.
11562 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11563 nbsd_nat_target.
11564
11565 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11566
11567 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11568 register_t.
11569
11570 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11571
11572 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11573 it to the ptrace call.
11574 * alpha-bsd-nat.c (store_registers): Likewise.
11575
11576 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11577
11578 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11579 includes.
11580 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11581 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11582 fill_fpregset): Likewise.
11583
11584 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11585
11586 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11587 nbsd_nat_target instead of inf_ptrace_target.
11588 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11589 nbsd_nat_target.
11590
11591 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11592
11593 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11594 register_t.
11595
11596 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11597
11598 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11599 it to the ptrace call.
11600 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11601 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11602 * arm-nbsd-nat.c (store_register): Likewise.
11603 * arm-nbsd-nat.c (store_regs): Likewise.
11604 * arm-nbsd-nat.c (store_fp_register): Likewise.
11605 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11606
11607 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11608
11609 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11610 nbsd_nat_target instead of inf_ptrace_target.
11611 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11612 nbsd_nat_target.
11613
11614 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11615
11616 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11617 it to the ptrace call.
11618 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11619
11620 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11621
11622 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11623 it to the ptrace call.
11624 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11625
11626 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11627
11628 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11629 gdb_byte *.
11630 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11631
11632 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11633
11634 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11635 instead of inf_ptrace_target.
11636 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11637 nbsd_nat_target.
11638
11639 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11640
11641 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11642 register_t.
11643
11644 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11645
11646 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11647 register_t.
11648
11649 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11650
11651 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11652 register_t.
11653
11654 2020-03-13 Tom Tromey <tom@tromey.com>
11655
11656 * value.h (val_print): Don't declare.
11657 * valprint.h (val_print_array_elements)
11658 (val_print_scalar_formatted, generic_val_print): Don't declare.
11659 * valprint.c (generic_val_print_array): Take a struct value.
11660 (generic_val_print_ptr, generic_val_print_memberptr)
11661 (generic_val_print_bool, generic_val_print_int)
11662 (generic_val_print_char, generic_val_print_complex)
11663 (generic_val_print): Remove.
11664 (generic_value_print): Update.
11665 (do_val_print): Remove unused parameters. Don't call
11666 la_val_print.
11667 (val_print): Remove.
11668 (common_val_print): Update. Don't call value_check_printable.
11669 (val_print_scalar_formatted, val_print_array_elements): Remove.
11670 * rust-lang.c (rust_val_print): Remove.
11671 (rust_language_defn): Update.
11672 * p-valprint.c (pascal_val_print): Remove.
11673 (pascal_value_print_inner): Update.
11674 (pascal_object_print_val_fields, pascal_object_print_val):
11675 Remove.
11676 (pascal_object_print_static_field): Update.
11677 * p-lang.h (pascal_val_print): Don't declare.
11678 * p-lang.c (pascal_language_defn): Update.
11679 * opencl-lang.c (opencl_language_defn): Update.
11680 * objc-lang.c (objc_language_defn): Update.
11681 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11682 * m2-lang.h (m2_val_print): Don't declare.
11683 * m2-lang.c (m2_language_defn): Update.
11684 * language.h (struct language_defn) <la_val_print>: Remove.
11685 * language.c (unk_lang_value_print_inner): Rename. Change
11686 argument types.
11687 (unknown_language_defn, auto_language_defn): Update.
11688 * go-valprint.c (go_val_print): Remove.
11689 * go-lang.h (go_val_print): Don't declare.
11690 * go-lang.c (go_language_defn): Update.
11691 * f-valprint.c (f_val_print): Remove.
11692 * f-lang.h (f_value_print): Don't declare.
11693 * f-lang.c (f_language_defn): Update.
11694 * d-valprint.c (d_val_print): Remove.
11695 * d-lang.h (d_value_print): Don't declare.
11696 * d-lang.c (d_language_defn): Update.
11697 * cp-valprint.c (cp_print_value_fields)
11698 (cp_print_value_fields_rtti, cp_print_value): Remove.
11699 (cp_print_static_field): Update.
11700 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11701 (c_val_print_struct, c_val_print_union, c_val_print_int)
11702 (c_val_print_memberptr, c_val_print): Remove.
11703 * c-lang.h (c_val_print_array, cp_print_value_fields)
11704 (cp_print_value_fields_rtti): Don't declare.
11705 * c-lang.c (c_language_defn, cplus_language_defn)
11706 (asm_language_defn, minimal_language_defn): Update.
11707 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11708 (ada_val_print_enum): Take a struct value.
11709 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11710 (ada_val_print): Remove.
11711 (ada_value_print_1): Update.
11712 (printable_val_type): Remove.
11713 * ada-lang.h (ada_val_print): Don't declare.
11714 * ada-lang.c (ada_language_defn): Update.
11715
11716 2020-03-13 Tom Tromey <tom@tromey.com>
11717
11718 * valprint.c (do_val_print): Update.
11719 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11720 a struct value.
11721 (value_to_value_object_no_release): Declare.
11722 * python/py-value.c (value_to_value_object_no_release): New
11723 function.
11724 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11725 struct value.
11726 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11727 function.
11728 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11729 a struct value.
11730 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11731 Declare.
11732 (gdbscm_apply_val_pretty_printer): Take a struct value.
11733 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11734 value.
11735 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11736 value.
11737 * extension-priv.h (struct extension_language_ops)
11738 <apply_val_pretty_printer>: Take a struct value.
11739 * cp-valprint.c (cp_print_value): Create a struct value.
11740 (cp_print_value): Update.
11741
11742 2020-03-13 Tom Tromey <tom@tromey.com>
11743
11744 * ada-valprint.c (print_field_values): Call common_val_print.
11745
11746 2020-03-13 Tom Tromey <tom@tromey.com>
11747
11748 * ada-valprint.c (val_print_packed_array_elements): Remove
11749 bitoffset and val parameters. Call common_val_print.
11750 (ada_val_print_string): Remove offset, address, and original_value
11751 parameters.
11752 (ada_val_print_array): Update.
11753 (ada_value_print_array): New function.
11754 (ada_value_print_1): Call it.
11755
11756 2020-03-13 Tom Tromey <tom@tromey.com>
11757
11758 * ada-valprint.c (ada_value_print): Use common_val_print.
11759
11760 2020-03-13 Tom Tromey <tom@tromey.com>
11761
11762 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11763
11764 2020-03-13 Tom Tromey <tom@tromey.com>
11765
11766 * ada-valprint.c (ada_value_print_num): New function.
11767 (ada_value_print_1): Use it.
11768
11769 2020-03-13 Tom Tromey <tom@tromey.com>
11770
11771 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11772
11773 2020-03-13 Tom Tromey <tom@tromey.com>
11774
11775 * ada-valprint.c (ada_value_print_ptr): New function.
11776 (ada_value_print_1): Use it.
11777
11778 2020-03-13 Tom Tromey <tom@tromey.com>
11779
11780 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11781 call common_val_print.
11782 (ada_val_print_1): Update.
11783 (ada_value_print_1): New function.
11784 (ada_value_print_inner): Rewrite.
11785
11786 2020-03-13 Tom Tromey <tom@tromey.com>
11787
11788 * cp-valprint.c (cp_print_value_fields): Update.
11789 (cp_print_value): New function.
11790
11791 2020-03-13 Tom Tromey <tom@tromey.com>
11792
11793 * m2-valprint.c (m2_value_print_inner): Use
11794 cp_print_value_fields.
11795 * cp-valprint.c (cp_print_value_fields): New function.
11796 * c-valprint.c (c_value_print_struct): New function.
11797 (c_value_print_inner): Use c_value_print_struct.
11798 * c-lang.h (cp_print_value_fields): Declare.
11799
11800 2020-03-13 Tom Tromey <tom@tromey.com>
11801
11802 * c-valprint.c (c_value_print_array): New function.
11803 (c_value_print_inner): Use it.
11804
11805 2020-03-13 Tom Tromey <tom@tromey.com>
11806
11807 * c-valprint.c (c_value_print_memberptr): New function.
11808 (c_value_print_inner): Use it.
11809
11810 2020-03-13 Tom Tromey <tom@tromey.com>
11811
11812 * c-valprint.c (c_value_print_int): New function.
11813 (c_value_print_inner): Use it.
11814
11815 2020-03-13 Tom Tromey <tom@tromey.com>
11816
11817 * c-valprint.c (c_value_print_ptr): New function.
11818 (c_value_print_inner): Use it.
11819
11820 2020-03-13 Tom Tromey <tom@tromey.com>
11821
11822 * c-valprint.c (c_value_print_inner): Rewrite.
11823
11824 2020-03-13 Tom Tromey <tom@tromey.com>
11825
11826 * valprint.c (generic_value_print_complex): New function.
11827 (generic_value_print): Use it.
11828
11829 2020-03-13 Tom Tromey <tom@tromey.com>
11830
11831 * valprint.c (generic_val_print_float): Don't call
11832 val_print_scalar_formatted.
11833 (generic_val_print, generic_value_print): Update.
11834
11835 2020-03-13 Tom Tromey <tom@tromey.com>
11836
11837 * valprint.c (generic_value_print_char): New function
11838 (generic_value_print): Use it.
11839
11840 2020-03-13 Tom Tromey <tom@tromey.com>
11841
11842 * valprint.c (generic_value_print_int): New function.
11843 (generic_value_print): Use it.
11844
11845 2020-03-13 Tom Tromey <tom@tromey.com>
11846
11847 * valprint.c (generic_value_print_bool): New function.
11848 (generic_value_print): Use it.
11849
11850 2020-03-13 Tom Tromey <tom@tromey.com>
11851
11852 * valprint.c (generic_val_print_func): Simplify.
11853 (generic_val_print, generic_value_print): Update.
11854
11855 2020-03-13 Tom Tromey <tom@tromey.com>
11856
11857 * valprint.c (generic_val_print_flags): Remove.
11858 (generic_val_print, generic_value_print): Update.
11859 (val_print_type_code_flags): Add original_value parameter.
11860
11861 2020-03-13 Tom Tromey <tom@tromey.com>
11862
11863 * valprint.c (generic_val_print): Update.
11864 (generic_value_print): Update.
11865 * valprint.c (generic_val_print_enum): Don't call
11866 val_print_scalar_formatted.
11867
11868 2020-03-13 Tom Tromey <tom@tromey.com>
11869
11870 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11871 * valprint.c (generic_value_print_ptr): New function.
11872
11873 2020-03-13 Tom Tromey <tom@tromey.com>
11874
11875 * valprint.c (generic_value_print): Rewrite.
11876
11877 2020-03-13 Tom Tromey <tom@tromey.com>
11878
11879 * p-valprint.c (pascal_object_print_value_fields)
11880 (pascal_object_print_value): New functions.
11881
11882 2020-03-13 Tom Tromey <tom@tromey.com>
11883
11884 * p-valprint.c (pascal_value_print_inner): Rewrite.
11885
11886 2020-03-13 Tom Tromey <tom@tromey.com>
11887
11888 * f-valprint.c (f_value_print_innner): Rewrite.
11889
11890 2020-03-13 Tom Tromey <tom@tromey.com>
11891
11892 * m2-valprint.c (m2_print_unbounded_array): New overload.
11893 (m2_print_unbounded_array): Update.
11894 (m2_print_array_contents): Take a struct value.
11895 (m2_value_print_inner): Rewrite.
11896
11897 2020-03-13 Tom Tromey <tom@tromey.com>
11898
11899 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11900 (d_value_print_inner): New function.
11901 * d-lang.h (d_value_print_inner): Declare.
11902 * d-lang.c (d_language_defn): Use d_value_print_inner.
11903
11904 2020-03-13 Tom Tromey <tom@tromey.com>
11905
11906 * go-valprint.c (go_value_print_inner): New function.
11907 * go-lang.h (go_value_print_inner): Declare.
11908 * go-lang.c (go_language_defn): Use go_value_print_inner.
11909
11910 2020-03-13 Tom Tromey <tom@tromey.com>
11911
11912 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11913 API.
11914 (rust_val_print): Rewrite.
11915 (rust_value_print_inner): New function, from rust_val_print.
11916 (rust_language_defn): Use rust_value_print_inner.
11917
11918 2020-03-13 Tom Tromey <tom@tromey.com>
11919
11920 * ada-valprint.c (ada_value_print_inner): New function.
11921 * ada-lang.h (ada_value_print_inner): Declare.
11922 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11923
11924 2020-03-13 Tom Tromey <tom@tromey.com>
11925
11926 * f-valprint.c (f_value_print_innner): New function.
11927 * f-lang.h (f_value_print_innner): Declare.
11928 * f-lang.c (f_language_defn): Use f_value_print_innner.
11929
11930 2020-03-13 Tom Tromey <tom@tromey.com>
11931
11932 * p-valprint.c (pascal_value_print_inner): New function.
11933 * p-lang.h (pascal_value_print_inner): Declare.
11934 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11935
11936 2020-03-13 Tom Tromey <tom@tromey.com>
11937
11938 * m2-valprint.c (m2_value_print_inner): New function.
11939 * m2-lang.h (m2_value_print_inner): Declare.
11940 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11941
11942 2020-03-13 Tom Tromey <tom@tromey.com>
11943
11944 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11945 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11946 * c-valprint.c (c_value_print_inner): New function.
11947 * c-lang.h (c_value_print_inner): Declare.
11948 * c-lang.c (c_language_defn, cplus_language_defn)
11949 (asm_language_defn, minimal_language_defn): Use
11950 c_value_print_inner.
11951
11952 2020-03-13 Tom Tromey <tom@tromey.com>
11953
11954 * p-valprint.c (pascal_object_print_value_fields): Now static.
11955 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11956
11957 2020-03-13 Tom Tromey <tom@tromey.com>
11958
11959 * c-valprint.c (c_val_print_array): Simplify.
11960
11961 2020-03-13 Tom Tromey <tom@tromey.com>
11962
11963 * valprint.c (value_print_array_elements): New function.
11964 * valprint.h (value_print_array_elements): Declare.
11965
11966 2020-03-13 Tom Tromey <tom@tromey.com>
11967
11968 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11969 * mips-tdep.c (mips_print_register): Use
11970 value_print_scalar_formatted.
11971
11972 2020-03-13 Tom Tromey <tom@tromey.com>
11973
11974 * valprint.h (value_print_scalar_formatted): Declare.
11975 * valprint.c (value_print_scalar_formatted): New function.
11976
11977 2020-03-13 Tom Tromey <tom@tromey.com>
11978
11979 * valprint.h (generic_value_print): Declare.
11980 * valprint.c (generic_value_print): New function.
11981
11982 2020-03-13 Tom Tromey <tom@tromey.com>
11983
11984 * valprint.c (do_val_print): Call la_value_print_inner, if
11985 available.
11986 * rust-lang.c (rust_language_defn): Update.
11987 * p-lang.c (pascal_language_defn): Update.
11988 * opencl-lang.c (opencl_language_defn): Update.
11989 * objc-lang.c (objc_language_defn): Update.
11990 * m2-lang.c (m2_language_defn): Update.
11991 * language.h (struct language_defn) <la_value_print_inner>: New
11992 member.
11993 * language.c (unknown_language_defn, auto_language_defn): Update.
11994 * go-lang.c (go_language_defn): Update.
11995 * f-lang.c (f_language_defn): Update.
11996 * d-lang.c (d_language_defn): Update.
11997 * c-lang.c (c_language_defn, cplus_language_defn)
11998 (asm_language_defn, minimal_language_defn): Update.
11999 * ada-lang.c (ada_language_defn): Update.
12000
12001 2020-03-13 Tom Tromey <tom@tromey.com>
12002
12003 * c-valprint.c (c_value_print): Use common_val_print.
12004
12005 2020-03-13 Tom Tromey <tom@tromey.com>
12006
12007 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12008
12009 2020-03-13 Tom Tromey <tom@tromey.com>
12010
12011 * f-valprint.c (f77_print_array_1, f_val_print): Use
12012 common_val_print.
12013
12014 2020-03-13 Tom Tromey <tom@tromey.com>
12015
12016 * riscv-tdep.c (riscv_print_one_register_info): Use
12017 common_val_print.
12018
12019 2020-03-13 Tom Tromey <tom@tromey.com>
12020
12021 * mi/mi-main.c (output_register): Use common_val_print.
12022
12023 2020-03-13 Tom Tromey <tom@tromey.com>
12024
12025 * infcmd.c (default_print_one_register_info): Use
12026 common_val_print.
12027
12028 2020-03-13 Tom Tromey <tom@tromey.com>
12029
12030 * valprint.h (common_val_print_checked): Declare.
12031 * valprint.c (common_val_print_checked): New function.
12032 * stack.c (print_frame_arg): Use common_val_print_checked.
12033
12034 2020-03-13 Tom Tromey <tom@tromey.com>
12035
12036 * valprint.c (do_val_print): New function, from val_print.
12037 (val_print): Use do_val_print.
12038 (common_val_print): Use do_val_print.
12039
12040 2020-03-13 Tom Tromey <tom@tromey.com>
12041
12042 * valprint.c (value_print): Use scoped_value_mark.
12043
12044 2020-03-13 Tom de Vries <tdevries@suse.de>
12045
12046 PR symtab/25646
12047 * psymtab.c (partial_symtab::partial_symtab): Don't set
12048 globals_offset and statics_offset. Push element onto
12049 current_global_psymbols and current_static_psymbols stacks.
12050 (concat): New function.
12051 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12052 element from current_global_psymbols and current_static_psymbols
12053 stacks. Concat popped elements to global_psymbols and
12054 static_symbols.
12055 (add_psymbol_to_list): Use current_global_psymbols and
12056 current_static_psymbols stacks.
12057 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12058 current_static_psymbols fields.
12059
12060 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12061
12062 * corelow.c (sniff_core_bfd): Remove.
12063 (class core_target) <m_core_vec>: Remove.
12064 (core_target::core_target): Update.
12065 (core_file_fns): Remove.
12066 (deprecated_add_core_fns): Remove.
12067 (default_core_sniffer): Remove.
12068 (sniff_core_bfd): Remove.
12069 (default_check_format): Remove.
12070 (gdb_check_format): Remove.
12071 (core_target_open): Update.
12072 (core_target::get_core_register_section): Update.
12073 (get_core_registers_cb): Update.
12074 (core_target::fetch_registers): Update.
12075 * gdbcore.h (struct core_fns): Remove.
12076 (deprecated_add_core_fns): Remove.
12077 (default_core_sniffer): Remove.
12078 (default_check_format): Remove.
12079
12080 2020-03-12 Tom Tromey <tom@tromey.com>
12081
12082 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12083 CORE_ADDR.
12084 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12085
12086 2020-03-12 Tom Tromey <tom@tromey.com>
12087
12088 * remote.c (remote_target::download_tracepoint)
12089 (remote_target::enable_tracepoint)
12090 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12091 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12092 sprintf_vma.
12093
12094 2020-03-12 Tom Tromey <tom@tromey.com>
12095
12096 * symfile-mem.c: Update CORE_ADDR size assert.
12097
12098 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12099
12100 * selftest.m4: Move to gdbsupport/.
12101 * acinclude.m4: Update path to selftest.m4.
12102
12103 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12104
12105 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12106 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12107 gdbarch-selfselftests.c and selftest-arch.c.
12108 (SUBDIR_UNITTESTS_OBS): Rename to...
12109 (SELFTESTS_OBS): ... this.
12110 (COMMON_SFILES): Remove disasm-selftests.c and
12111 gdbarch-selftests.c.
12112 * configure.ac: Don't add selftest-arch.{c,o} to
12113 CONFIG_{SRCS,OBS}.
12114 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12115 preprocessor conditions.
12116
12117 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12118
12119 * configure.ac: Don't source bfd/development.sh.
12120 * selftest.m4: Modify comment.
12121 * configure: Re-generate.
12122
12123 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12124
12125 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12126 not "true" or "false".
12127 * configure: Re-generate.
12128
12129 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12130
12131 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12132 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12133 renamed to arm_nbsd_supply_gregset.
12134 (fetch_register): Update to call arm_nbsd_supply_gregset.
12135 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12136 (arm_netbsd_nat_target::fetch_registers): Update.
12137 (fetch_elfcore_registers): Removed.
12138 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12139 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12140 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12141 not require NetBSD system headers.
12142 (arm_nbsd_regset): New struct.
12143 (arm_nbsd_iterate_over_regset_sections): New function.
12144 (arm_netbsd_init_abi_common): Updated to call
12145 set_gdbarch_iterate_over_regset_sections.
12146 * arm-nbsd-tdep.h: New file.
12147
12148 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12149
12150 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12151 recursion.
12152
12153 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12154
12155 * configure: Re-generate.
12156
12157 2020-03-11 Tom Tromey <tromey@adacore.com>
12158
12159 * ada-typeprint.c (print_choices): Fix comment.
12160
12161 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12162
12163 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12164 previous item in the list, when the list has no items.
12165
12166 2020-03-11 Tom de Vries <tdevries@suse.de>
12167
12168 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12169 PROP_LOCLIST handling code.
12170
12171 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12172
12173 * buildsym-legacy.c (record_line): Pass extra parameter to
12174 record_line.
12175 * buildsym.c (buildsym_compunit::record_line): Take an extra
12176 parameter, reduce duplication in the line table, and record the
12177 is_stmt flag in the line table.
12178 * buildsym.h (buildsym_compunit::record_line): Add extra
12179 parameter.
12180 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12181 non-statement lines.
12182 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12183 this to the symtab builder.
12184 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12185 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12186 through to dwarf_record_line_1.
12187 * infrun.c (process_event_stop_test): When stepping, don't stop at
12188 a non-statement instruction, and only refresh the step info when
12189 we land in the middle of a line's range. Also add an extra
12190 comment.
12191 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12192 field.
12193 * record-btrace.c (btrace_find_line_range): Only record lines
12194 marked as is-statement.
12195 * stack.c (frame_show_address): Show the frame address if we are
12196 in a non-statement sal.
12197 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12198 (maintenance_print_one_line_table): Print a header for the is_stmt
12199 column, and include is_stmt information in the output.
12200 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12201 preference to non-statements.
12202 (find_pcs_for_symtab_line): Prefer is-statement entries.
12203 (find_line_common): Likewise.
12204 * symtab.h (struct linetable_entry): Add is_stmt field.
12205 (struct symtab_and_line): Likewise.
12206 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12207 arranging the line table.
12208
12209 2020-03-07 Tom de Vries <tdevries@suse.de>
12210
12211 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12212 DIE.
12213
12214 2020-03-07 Tom Tromey <tom@tromey.com>
12215
12216 * valops.c (value_literal_complex): Remove obsolete comment.
12217 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12218 comment.
12219
12220 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12221
12222 * infrun.h: Forward-declare thread_info.
12223 (set_step_info): Add thread_info parameter, add doc.
12224 * infrun.c (set_step_info): Add thread_info parameter, move doc
12225 to header.
12226 * infrun.c (process_event_stop_test): Pass thread to
12227 set_step_info call.
12228 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12229 set_step_info.
12230 (prepare_one_step): Add thread_info parameter, pass it to
12231 set_step_frame and prepare_one_step (recursive) call.
12232 (step_1): Pass thread to prepare_one_step call.
12233 (step_command_fsm::should_stop): Pass thread to
12234 prepare_one_step.
12235 (until_next_fsm): Pass thread to set_step_frame call.
12236 (finish_command): Pass thread to set_step_info call.
12237
12238 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12239
12240 * windows-tdep.c (windows_solib_create_inferior_hook):
12241 Check if inferior is running.
12242
12243 2020-03-06 Tom de Vries <tdevries@suse.de>
12244
12245 * NEWS: Fix "the the".
12246 * ctfread.c: Same.
12247
12248 2020-03-06 Tom de Vries <tdevries@suse.de>
12249
12250 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12251
12252 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12253
12254 * .dir-locals.el: Add a comment referencing the other copies of
12255 this file.
12256
12257 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12258
12259 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12260 psargs.
12261
12262 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12263
12264 * .gitattributes: New file.
12265
12266 2020-03-04 Tom Tromey <tom@tromey.com>
12267
12268 * symmisc.c (print_symbol_bcache_statistics)
12269 (print_objfile_statistics): Update.
12270 * symfile.c (allocate_symtab): Use intern.
12271 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12272 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12273 macro_cache>: Remove.
12274 <string_cache>: New member.
12275 (struct objfile) <intern>: New methods.
12276 * elfread.c (elf_symtab_read): Use intern.
12277 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12278 (dwarf2_compute_name, dwarf2_physname)
12279 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12280 names.
12281 (guess_partial_die_structure_name): Update.
12282 (partial_die_info::fixup): Intern name.
12283 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12284 name.
12285 (dwarf2_name): Intern name. Update.
12286 * buildsym.c (buildsym_compunit::get_macro_table): Use
12287 string_cache.
12288
12289 2020-03-04 Tom Tromey <tom@tromey.com>
12290
12291 * jit.c (bfd_open_from_target_memory): Make "target" const.
12292 * corefile.c (gnutarget): Now const.
12293 * gdbcore.h (gnutarget): Now const.
12294
12295 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12296
12297 * NEWS: Mention support for WOW64 processes.
12298 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12299 (amd64_windows_segment_register_p): Remove static.
12300 (_initialize_amd64_windows_nat): Update.
12301 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12302 * i386-windows-nat.c (context_offset): Update.
12303 (i386_mappings): Rename and remove static.
12304 (i386_windows_segment_register_p): Remove static.
12305 (_initialize_i386_windows_nat): Update.
12306 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12307 (STATUS_WX86_SINGLE_STEP): New macro.
12308 (EnumProcessModulesEx): New macro.
12309 (Wow64SuspendThread): New macro.
12310 (Wow64GetThreadContext): New macro.
12311 (Wow64SetThreadContext): New macro.
12312 (Wow64GetThreadSelectorEntry): New macro.
12313 (windows_set_context_register_offsets): Add static.
12314 (windows_set_segment_register_p): Likewise.
12315 (windows_add_thread): Adapt for WOW64 processes.
12316 (windows_fetch_one_register): Likewise.
12317 (windows_nat_target::fetch_registers): Likewise.
12318 (windows_store_one_register): Likewise.
12319 (display_selector): Likewise.
12320 (display_selectors): Likewise.
12321 (handle_exception): Likewise.
12322 (windows_continue): Likewise.
12323 (windows_nat_target::resume): Likewise.
12324 (windows_add_all_dlls): Likewise.
12325 (do_initial_windows_stuff): Likewise.
12326 (windows_nat_target::attach): Likewise.
12327 (windows_get_exec_module_filename): Likewise.
12328 (windows_nat_target::create_inferior): Likewise.
12329 (windows_xfer_siginfo): Likewise.
12330 (_initialize_loadable): Initialize Wow64SuspendThread,
12331 Wow64GetThreadContext, Wow64SetThreadContext,
12332 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12333 * windows-nat.h (windows_set_context_register_offsets):
12334 Remove declaration.
12335 (windows_set_segment_register_p): Likewise.
12336 (i386_windows_segment_register_p): Add declaration.
12337 (amd64_windows_segment_register_p): Likewise.
12338
12339 2020-03-04 Luis Machado <luis.machado@linaro.org>
12340
12341 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12342 in "info registers" for AArch64/ARM.
12343
12344 The change caused "info registers" to not print GPR's.
12345
12346 gdb/ChangeLog:
12347
12348 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12349
12350 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12351 when reg->group is empty and reggroup is not.
12352
12353 2020-03-03 Tom Tromey <tromey@adacore.com>
12354
12355 * dwarf2/frame.c (struct dwarf2_frame_cache)
12356 <checked_tailcall_bottom, entry_cfa_sp_offset,
12357 entry_cfa_sp_offset_p>: Remove members.
12358 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12359 (dwarf2_frame_prev_register): Don't call
12360 dwarf2_tailcall_sniffer_first.
12361 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12362 * frame-unwind.c (add_unwinder): New fuction.
12363 (frame_unwind_init): Use it. Add tailcall unwinder.
12364
12365 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12366 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12367
12368 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12369 value should be printed as true.
12370
12371 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12372
12373 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12374 (windows_init_abi): Set and use windows_so_ops.
12375
12376 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12377
12378 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12379 when verifying if dealing with a convenience variable.
12380
12381 2020-03-03 Luis Machado <luis.machado@linaro.org>
12382
12383 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12384
12385 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12386
12387 * infrun.c (gdbarch_supports_displaced_stepping): New.
12388 (use_displaced_stepping): Break up conditions in smaller pieces.
12389 Use gdbarch_supports_displaced_stepping.
12390 (displaced_step_prepare_throw): Use
12391 gdbarch_supports_displaced_stepping.
12392
12393 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12394
12395 * NEWS: Mention new behaviour of the history filename.
12396 * top.c (write_history_p): Add comment.
12397 (show_write_history_p): Add header comment, give a different
12398 message when history writing is on, but the history filename is
12399 empty.
12400 (history_filename): Add comment.
12401 (history_filename_empty): New function.
12402 (show_history_filename): Add header comment, give a different
12403 message when the filename is empty.
12404 (init_history): Compare history_filename against nullptr, and only
12405 read history if the filename is not empty.
12406 (set_history_filename): Add header comment, and only make
12407 non-empty filenames absolute.
12408 (init_main): Make the filename argument to 'set history filename'
12409 optional.
12410
12411 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12412
12413 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12414 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12415 (fetch_fp_register): Update.
12416 (fetch_fp_regs): Update.
12417 (store_fp_register): Update.
12418 (store_fp_regs): Update.
12419 (arm_netbsd_nat_target::read_description): New function.
12420 (fetch_elfcore_registers): Update.
12421
12422 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12423
12424 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12425 general_thread if the stop reply is missing a thread-id.
12426 (remote_target::process_stop_reply): Use the first non-exited
12427 thread if the target didn't pass a thread-id.
12428 * infrun.c (do_target_wait): Move call to
12429 switch_to_inferior_no_thread to ....
12430 (do_target_wait_1): ... here.
12431
12432 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12433
12434 * debuginfod-support.c: Include defs.h first.
12435
12436 2020-02-28 Tom de Vries <tdevries@suse.de>
12437
12438 * symfile.c (set_initial_language): Use default language for lookup.
12439
12440 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12441
12442 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12443 reader variable, pass `this` to read_cutu_die_from_dwo.
12444
12445 2020-02-27 Aaron Merey <amerey@redhat.com>
12446
12447 * source.c (open_source_file): Check for nullptr when computing
12448 srcpath.
12449
12450 2020-02-27 Tom Tromey <tromey@adacore.com>
12451
12452 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12453 member.
12454 (dwarf2_add_field): Don't update nfields.
12455 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12456
12457 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12458
12459 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12460 abs.
12461
12462 2020-02-26 Tom Tromey <tom@tromey.com>
12463
12464 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12465 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12466 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12467 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12468 per_cu_data.
12469
12470 2020-02-26 Tom Tromey <tom@tromey.com>
12471
12472 * dwarf2/index-write.c (psym_index_map): Change type.
12473 (add_address_entry_worker, write_one_signatured_type)
12474 (recursively_count_psymbols, recursively_write_psymbols)
12475 (class debug_names, psyms_seen_size, write_gdbindex)
12476 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12477
12478 2020-02-26 Aaron Merey <amerey@redhat.com>
12479
12480 * Makefile.in: Handle optional debuginfod support.
12481 * NEWS: Update.
12482 * README: Add --with-debuginfod summary.
12483 * config.in: Regenerate.
12484 * configure: Regenerate.
12485 * configure.ac: Handle optional debuginfod support.
12486 * debuginfod-support.c: debuginfod helper functions.
12487 * debuginfod-support.h: Ditto.
12488 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12489 summary.
12490 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12491 when a dwz file cannot be found.
12492 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12493 debuginfo file cannot be found.
12494 * source.c (open_source_file): Query debuginfod servers when a
12495 source file cannot be found.
12496 * top.c (print_gdb_configuration): Include
12497 --{with,without}-debuginfod in the output.
12498
12499 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12500
12501 * thread.c (thr_try_catch_cmd): Print thread name.
12502
12503 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12504
12505 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12506 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12507 dwarf2_fetch_die_type_sect_off): Move to...
12508 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12509 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12510 dwarf2_fetch_die_type_sect_off): ... here.
12511 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12512 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12513 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12514
12515 2020-02-26 Tom de Vries <tdevries@suse.de>
12516
12517 PR gdb/25603
12518 * symfile.c (set_initial_language): Exit-early if
12519 language_mode == language_mode_manual.
12520
12521 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12522
12523 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12524 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12525 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12526
12527 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12528
12529 * gdbtypes.c (create_array_type_with_stride): Handle negative
12530 array strides.
12531 * valarith.c (value_subscripted_rvalue): Likewise.
12532
12533 2020-02-25 Luis Machado <luis.machado@linaro.org>
12534
12535 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12536
12537 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12538
12539 * loc.h (dwarf2_get_die_type): Move to...
12540 * read.h (dwarf2_get_die_type): ... here.
12541 * read.c (dwarf2_get_die_type): Move doc to header.
12542
12543 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12544
12545 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12546 'gnulib/Makefile.in' to the list.
12547
12548 2020-02-24 Tom Tromey <tom@tromey.com>
12549
12550 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12551 Remove.
12552 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12553 XOBNEWVEC.
12554
12555 2020-02-24 Tom Tromey <tom@tromey.com>
12556
12557 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12558 New method.
12559 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12560 (dw2_do_instantiate_symtab, dw2_get_file_names)
12561 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12562
12563 2020-02-24 Tom Tromey <tom@tromey.com>
12564
12565 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12566 make_scoped_restore.
12567 (dwarf2_psymtab::read_symtab): Don't clear
12568 reading_partial_symbols.
12569
12570 2020-02-24 Tom de Vries <tdevries@suse.de>
12571
12572 PR gdb/25592
12573 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12574
12575 2020-02-24 Tom de Vries <tdevries@suse.de>
12576
12577 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12578 commands layout next/prev/regs.
12579
12580 2020-02-22 Tom Tromey <tom@tromey.com>
12581
12582 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12583 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12584
12585 2020-02-22 Tom Tromey <tom@tromey.com>
12586
12587 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12588
12589 2020-02-22 Tom Tromey <tom@tromey.com>
12590
12591 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12592 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12593 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12594 * tui/tui.c (_initialize_tui): Add usage text.
12595
12596 2020-02-22 Tom Tromey <tom@tromey.com>
12597
12598 * tui/tui-win.c (tui_set_focus_command)
12599 (tui_set_win_height_command): Use error_no_arg.
12600 (_initialize_tui_win): Update help text.
12601 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12602
12603 2020-02-22 Tom Tromey <tom@tromey.com>
12604
12605 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12606 * tui/tui-disasm.h (struct tui_disasm_window)
12607 <display_start_addr>: Declare.
12608 * tui/tui-source.h (struct tui_source_window)
12609 <display_start_addr>: Declare.
12610 * tui/tui-winsource.h (struct tui_source_window_base)
12611 <show_source_line, display_start_addr>: New methods.
12612 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12613 Rename and move to protected section.
12614 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12615 (tui_source_window_base::do_erase_source_content): Update.
12616 (tui_source_window_base::show_source_line): Now a method.
12617 (tui_source_window_base::show_source_content)
12618 (tui_source_window_base::tui_source_window_base)
12619 (tui_source_window_base::rerender)
12620 (tui_source_window_base::refill)
12621 (tui_source_window_base::do_scroll_horizontal)
12622 (tui_source_window_base::set_is_exec_point_at)
12623 (tui_source_window_base::update_breakpoint_info)
12624 (tui_source_window_base::update_exec_info): Update.
12625 * tui/tui-source.c (tui_source_window::set_contents)
12626 (tui_source_window::showing_source_p)
12627 (tui_source_window::do_scroll_vertical)
12628 (tui_source_window::location_matches_p)
12629 (tui_source_window::line_is_displayed): Update.
12630 (tui_source_window::display_start_addr): New method.
12631 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12632 (tui_disasm_window::do_scroll_vertical)
12633 (tui_disasm_window::location_matches_p): Update.
12634 (tui_disasm_window::display_start_addr): New method.
12635
12636 2020-02-22 Tom Tromey <tom@tromey.com>
12637
12638 * NEWS: Add entry for gdb.register_window_type.
12639 * tui/tui-layout.h (window_factory): New typedef.
12640 (tui_register_window): Declare.
12641 * tui/tui-layout.c (saved_tui_windows): New global.
12642 (tui_apply_current_layout): Use it.
12643 (tui_register_window): New function.
12644 * python/python.c (do_start_initialization): Call
12645 gdbpy_initialize_tui.
12646 (python_GdbMethods): Add "register_window_type" function.
12647 * python/python-internal.h (gdbpy_register_tui_window)
12648 (gdbpy_initialize_tui): Declare.
12649 * python/py-tui.c: New file.
12650 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12651
12652 2020-02-22 Tom Tromey <tom@tromey.com>
12653
12654 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12655
12656 2020-02-22 Tom Tromey <tom@tromey.com>
12657
12658 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12659 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12660 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12661 (tui_set_win_focus_to): Move from tui-win.c.
12662
12663 2020-02-22 Tom Tromey <tom@tromey.com>
12664
12665 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12666 functions.
12667 (known_window_types): New global.
12668 (tui_get_window_by_name): Reimplement.
12669 (initialize_known_windows): New function.
12670 (validate_window_name): Rewrite.
12671 (_initialize_tui_layout): Call initialize_known_windows.
12672
12673 2020-02-22 Tom Tromey <tom@tromey.com>
12674
12675 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12676 Remove constants.
12677 * tui/tui-winsource.h (struct tui_source_window_base)
12678 <tui_source_window_base>: Remove parameter.
12679 * tui/tui-winsource.c
12680 (tui_source_window_base::tui_source_window_base): Remove
12681 parameter.
12682 (tui_source_window_base::refill): Update.
12683 * tui/tui-stack.h (struct tui_locator_window)
12684 <tui_locator_window>: Update.
12685 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12686 Default the constructor.
12687 * tui/tui-regs.h (struct tui_data_item_window)
12688 <tui_data_item_window>: Default the constructor.
12689 (struct tui_data_window) <tui_data_window>: Likewise.
12690 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12691 Default the constructor.
12692 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12693 Default the constructor.
12694 <type>: Remove.
12695 (struct tui_win_info) <tui_win_info>: Default the constructor.
12696 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12697 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12698 Default the constructor.
12699
12700 2020-02-22 Tom Tromey <tom@tromey.com>
12701
12702 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12703 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12704 * tui/tui-win.c (tui_resize_all): Don't call
12705 tui_delete_invisible_windows.
12706 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12707 done.
12708 (tui_set_layout): Update.
12709 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12710 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12711 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12712
12713 2020-02-22 Tom Tromey <tom@tromey.com>
12714
12715 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12716 correctly.
12717
12718 2020-02-22 Tom Tromey <tom@tromey.com>
12719
12720 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12721
12722 2020-02-22 Tom Tromey <tom@tromey.com>
12723
12724 * tui/tui-winsource.h (struct tui_source_window_iterator)
12725 <inner_iterator>: New etytypedef.
12726 <tui_source_window_iterator>: Take "end" parameter.
12727 <tui_source_window_iterator>: Take iterator.
12728 <operator*, advance>: Update.
12729 <m_iter>: Change type.
12730 <m_end>: New field.
12731 (struct tui_source_windows) <begin, end>: Update.
12732 * tui/tui-layout.c (tui_windows): New global.
12733 (tui_apply_current_layout): Clear tui_windows.
12734 (tui_layout_window::apply): Update tui_windows.
12735 * tui/tui-data.h (tui_windows): Declare.
12736 (all_tui_windows): Now inline function.
12737 (class tui_window_iterator, struct all_tui_windows): Remove.
12738
12739 2020-02-22 Tom Tromey <tom@tromey.com>
12740
12741 PR tui/17850:
12742 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12743 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12744 "height" argument.
12745 (class tui_layout_window) <get_sizes>: Likewise.
12746 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12747 argument.
12748 <get_sizes>: Add "height" argument.
12749 <m_vertical>: New field.
12750 * tui/tui-layout.c (tui_layout_split::clone): Update.
12751 (tui_layout_split::get_sizes): Add "height" argument.
12752 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12753 (tui_new_layout_command): Parse "-horizontal".
12754 (_initialize_tui_layout): Update help string.
12755 (tui_layout_split::specification): Add "-horizontal" when needed.
12756 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12757 argument.
12758 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12759 New methods.
12760
12761 2020-02-22 Tom Tromey <tom@tromey.com>
12762
12763 * tui/tui-layout.h (enum tui_adjust_result): New.
12764 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12765 (class tui_layout_window) <adjust_size>: Return
12766 tui_adjust_result. Rewrite.
12767 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12768 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12769
12770 2020-02-22 Tom Tromey <tom@tromey.com>
12771
12772 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12773 parameter and return types.
12774 (class tui_layout_base) <specification>: Add "depth".
12775 (class tui_layout_window) <specification>: Add "depth".
12776 (class tui_layout_split) <specification>: Add "depth".
12777 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12778 and return types.
12779 (tui_new_layout_command): Parse sub-layouts.
12780 (_initialize_tui_layout): Update help string.
12781 (tui_layout_window::specification): Add "depth".
12782 (add_layout_command): Update.
12783
12784 2020-02-22 Tom Tromey <tom@tromey.com>
12785
12786 * NEWS: Add "tui new-layout" item.
12787 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12788 Add new-layout command to help text.
12789 (validate_window_name): New function.
12790 (tui_new_layout_command): New function.
12791 (_initialize_tui_layout): Register "new-layout".
12792 (tui_layout_window::specification): New method.
12793 (tui_layout_window::specification): New method.
12794 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12795 method.
12796 (class tui_layout_window) <specification>: New method.
12797 (class tui_layout_split) <specification>: New method.
12798
12799 2020-02-22 Tom Tromey <tom@tromey.com>
12800
12801 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12802 * tui/tui-win.c (window_name_completer): Update comment.
12803 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12804 Declare method.
12805 (class tui_layout_window) <replace_window>: Likewise.
12806 (class tui_layout_split) <replace_window>: Likewise.
12807 (tui_set_layout): Don't declare.
12808 (tui_set_initial_layout): Declare function.
12809 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12810 (asm_regs_layout): New globals.
12811 (tui_current_layout, show_layout): Remove.
12812 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12813 (find_layout, tui_apply_layout): New function.
12814 (layout_completer): Remove.
12815 (tui_next_layout): Reimplement.
12816 (tui_next_layout_command): New function.
12817 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12818 (tui_regs_layout): Reimplement.
12819 (tui_regs_layout_command): New function.
12820 (extract_display_start_addr): Rewrite.
12821 (next_layout, prev_layout): Remove.
12822 (tui_layout_window::replace_window): New method.
12823 (tui_layout_split::replace_window): New method.
12824 (destroy_layout): New function.
12825 (layout_list): New global.
12826 (add_layout_command): New function.
12827 (initialize_layouts): Update.
12828 (tui_layout_command): New function.
12829 (_initialize_tui_layout): Install "layout" commands.
12830 * tui/tui-data.h (enum tui_layout_type): Remove.
12831 (tui_current_layout): Don't declare.
12832
12833 2020-02-22 Tom Tromey <tom@tromey.com>
12834
12835 * tui/tui-regs.c (tui_reg_layout): Remove.
12836 (tui_reg_command): Use tui_regs_layout.
12837 * tui/tui-layout.h (tui_reg_command): Declare.
12838 * tui/tui-layout.c (tui_reg_command): New function.
12839
12840 2020-02-22 Tom Tromey <tom@tromey.com>
12841
12842 * tui/tui.c (tui_rl_delete_other_windows): Call
12843 tui_remove_some_windows.
12844 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12845 Declare method.
12846 (class tui_layout_window) <remove_windows>: New method.
12847 (class tui_layout_split) <remove_windows>: Declare.
12848 (tui_remove_some_windows): Declare.
12849 * tui/tui-layout.c (tui_remove_some_windows): New function.
12850 (tui_layout_split::remove_windows): New method.
12851
12852 2020-02-22 Tom Tromey <tom@tromey.com>
12853
12854 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12855 * tui/tui-layout.h (tui_next_layout): Declare.
12856 * tui/tui-layout.c (tui_next_layout): New function.
12857
12858 2020-02-22 Tom Tromey <tom@tromey.com>
12859
12860 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12861 correct coordinates.
12862
12863 2020-02-22 Tom Tromey <tom@tromey.com>
12864
12865 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12866 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12867 DATA_WIN case.
12868
12869 2020-02-22 Tom Tromey <tom@tromey.com>
12870
12871 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12872 TUI_DISASM_WIN, not tui_win_list.
12873
12874 2020-02-22 Tom Tromey <tom@tromey.com>
12875
12876 * valprint.c (generic_val_print_enum_1)
12877 (val_print_type_code_flags): Style member names.
12878 * rust-lang.c (val_print_struct, rust_print_enum)
12879 (rust_print_struct_def, rust_internal_print_type): Style member
12880 names.
12881 * p-valprint.c (pascal_object_print_value_fields): Style member
12882 names. Only call fprintf_symbol_filtered for static members.
12883 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12884 * f-valprint.c (f_val_print): Style member names.
12885 * f-typeprint.c (f_type_print_base): Style member names.
12886 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12887 call fprintf_symbol_filtered for static members.
12888 (cp_print_class_member): Style member names.
12889 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12890 member names.
12891 * ada-valprint.c (ada_print_scalar): Style enum names.
12892 (ada_val_print_enum): Likewise.
12893 * ada-typeprint.c (print_enum_type): Style enum names.
12894
12895 2020-02-21 Tom Tromey <tom@tromey.com>
12896
12897 * psympriv.h (struct partial_symtab): Update comment.
12898
12899 2020-02-21 Tom Tromey <tromey@adacore.com>
12900
12901 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12902 type is CORE_ADDR.
12903
12904 2020-02-21 Tom de Vries <tdevries@suse.de>
12905
12906 PR gdb/25534
12907 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12908 if dependencies[i]->user != NULL.
12909
12910 2020-02-21 Ali Tamur <tamur@google.com>
12911
12912 * dwarf2/read.c (dwarf2_name): Add null check.
12913
12914 2020-02-20 Tom Tromey <tom@tromey.com>
12915
12916 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12917 ">=", in binary search.
12918 (dwarf2_find_containing_comp_unit): New overload.
12919 (run_test): New self-test.
12920 (_initialize_dwarf2_read): Register new test.
12921
12922 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12923
12924 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12925 * riscv-tdep.h: Likewise.
12926 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12927 rv32-only CSR.
12928 * features/riscv/64bit-csr.xml: Regenerated.
12929
12930 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12931 Tom Tromey <tom@tromey.com>
12932
12933 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12934 of 'fputc_unfiltered'.
12935 (putchar_unfiltered): Call 'fputc_unfiltered'.
12936 (fputc_unfiltered): Call 'fputs_unfiltered'.
12937
12938 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12939
12940 * config.in: Regenerate.
12941 * configure: Regenerate.
12942 * configure.ac: Add --with-python-libdir option.
12943 * main.c: Use WITH_PYTHON_LIBDIR.
12944
12945 2020-02-19 Tom Tromey <tom@tromey.com>
12946
12947 * symtab.c (general_symbol_info::compute_and_set_names): Use
12948 obstack_strndup. Simplify call to symbol_set_demangled_name.
12949
12950 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12951
12952 * dwarf2/read.c (allocate_signatured_type_table,
12953 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12954 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12955 Remove objfile parameter, update all callers.
12956
12957 2020-02-19 Doug Evans <dje@google.com>
12958
12959 PR rust/25535
12960 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12961 rust_enum_variant calculation.
12962
12963 2020-02-19 Tom Tromey <tromey@adacore.com>
12964
12965 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12966
12967 2020-02-19 Tom Tromey <tromey@adacore.com>
12968
12969 * ada-lang.c (cache_symbol): Use obstack_strdup.
12970
12971 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12972
12973 * configure: Regenerate.
12974
12975 2020-02-19 Tom Tromey <tromey@adacore.com>
12976
12977 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12978 NULL check.
12979
12980 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12981
12982 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12983
12984 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12985
12986 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12987 if GDBSERVER is not defined.
12988 (riscv_tdesc_cache): Likewise, also store const target_desc.
12989 (STATIC_IN_GDB): Define.
12990 (riscv_create_target_description): Update declaration with
12991 STATIC_IN_GDB.
12992 (riscv_lookup_target_description): New function, only define if
12993 GDBSERVER is not defined.
12994 * arch/riscv.h (riscv_create_target_description): Declare only
12995 when GDBSERVER is defined.
12996 (riscv_lookup_target_description): New declaration when GDBSERVER
12997 is not defined.
12998 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12999 (riscv_linux_read_features): ...this, and return
13000 riscv_gdbarch_features instead of target_desc.
13001 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13002 (riscv_linux_read_description): Rename to...
13003 (riscv_linux_read_features): ...this.
13004 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13005 Update to use riscv_gdbarch_features and
13006 riscv_lookup_target_description.
13007 * riscv-tdep.c (riscv_find_default_target_description): Use
13008 riscv_lookup_target_description instead of
13009 riscv_create_target_description.
13010
13011 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13012
13013 * valprint.c (generic_val_print_enum_1): When printing a flag
13014 enum with value 0 and there is no enumerator with value 0, print
13015 just "0" instead of "(unknown: 0x0)".
13016
13017 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13018
13019 * valprint.c (generic_val_print_enum_1): Print unknown part of
13020 flag enum in hex.
13021
13022 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13023
13024 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13025 flag enums to contain duplicate enumerators.
13026 * valprint.c (generic_val_print_enum_1): Update comment.
13027
13028 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13029
13030 * dwarf2/read.c: Include "count-one-bits.h".
13031 (update_enumeration_type_from_children): If an enumerator has
13032 multiple bits set, don't treat the enumeration as a "flag enum".
13033 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13034 of flag enums have 0 or 1 bit set.
13035
13036 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13037
13038 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13039 conversion.
13040 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13041 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13042 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13043 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13044 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13045
13046 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13047
13048 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13049
13050 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13051
13052 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13053 displaced_step_closure_up.
13054 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13055 (struct displaced_step_closure_up):
13056 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13057 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13058 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13059 Likewise.
13060 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13061 * gdbarch.c, gdbarch.h: Re-generate.
13062 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13063 displaced_step_closure_up.
13064 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13065 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13066 * infrun.h (displaced_step_closure_up): New type alias.
13067 (struct displaced_step_inferior_state) <step_closure>: Change
13068 type to displaced_step_closure_up.
13069 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13070 displaced_step_closure_up.
13071 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13072
13073 2020-02-14 Tom Tromey <tom@tromey.com>
13074
13075 * minidebug.c (gnu_debug_key): New global.
13076 (find_separate_debug_file_in_section): Use it.
13077
13078 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13079
13080 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13081 std::unique_ptr.
13082 * gdbarch.c: Re-generate.
13083 * gdbarch.h: Re-generate.
13084 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13085 change.
13086 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13087 type to std::unique_ptr.
13088 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13089 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13090 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13091 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13092 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13093 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13094 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13095 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13096 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13097
13098 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13099
13100 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13101 std::unique_ptr.
13102 (displaced_step_clear): Rename to...
13103 (displaced_step_reset): ... this. Just call displaced->reset ().
13104 (displaced_step_clear_cleanup): Rename to...
13105 (displaced_step_reset_cleanup): ... this.
13106 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13107 (displaced_step_fixup): Likewise.
13108 (resume_1): Likewise.
13109 (handle_inferior_event): Restore child's memory before calling
13110 displaced_step_fixup on the parent.
13111 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13112 to std::unique_ptr.
13113 <step_closure>: Change type to std::unique_ptr.
13114
13115 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13116
13117 * arm-tdep.c: Include count-one-bits.h.
13118 (cleanup_block_store_pc): Use count_one_bits.
13119 (cleanup_block_load_pc): Use count_one_bits.
13120 (arm_copy_block_xfer): Use count_one_bits.
13121 (thumb2_copy_block_xfer): Use count_one_bits.
13122 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13123 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13124 (thumb_get_next_pcs_raw): Use count_one_bits.
13125 (arm_get_next_pcs_raw): Use count_one_bits_l.
13126 * arch/arm.c (bitcount): Remove.
13127 * arch/arm.h (bitcount): Remove.
13128
13129 2020-02-14 Tom Tromey <tromey@adacore.com>
13130
13131 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13132 Update.
13133 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13134 * dwarf2/loc.c (call_site_find_chain_1): Return
13135 unique_xmalloc_ptr.
13136 (call_site_find_chain): Likewise.
13137
13138 2020-02-14 Richard Biener <rguenther@suse.de>
13139
13140 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13141 on expression with division operators.
13142
13143 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13144
13145 * MAINTAINERS (Write After Approval): Adding myself.
13146
13147 2020-02-12 Tom Tromey <tom@tromey.com>
13148
13149 * event-loop.c (event_data, gdb_event, event_handler_func):
13150 Remove.
13151
13152 2020-02-12 Tom Tromey <tom@tromey.com>
13153
13154 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13155 (dwarf2_frame_objfile_data): Add comment.
13156 (find_comp_unit, set_comp_unit): New functions.
13157 (dwarf2_frame_find_fde): Use find_comp_unit.
13158 (dwarf2_build_frame_info): Use set_comp_unit.
13159
13160 2020-02-12 Tom Tromey <tom@tromey.com>
13161
13162 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13163 (comp_unit): Don't initialize objfile.
13164 (execute_cfa_program): Add text_offset parameter.
13165 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13166 (dwarf2_frame_cache): Update.
13167 (dwarf2_build_frame_info): Don't set "objfile" member.
13168
13169 2020-02-12 Tom Tromey <tom@tromey.com>
13170
13171 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13172 (decode_frame_entry): Likewise.
13173 (dwarf2_build_frame_info): Update.
13174
13175 2020-02-12 Tom Tromey <tom@tromey.com>
13176
13177 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13178 (decode_frame_entry_1): Use the comp_unit obstack.
13179
13180 2020-02-12 Tom Tromey <tom@tromey.com>
13181
13182 * dwarf2/frame.c (struct comp_unit): Add initializers and
13183 constructor.
13184 (dwarf2_frame_objfile_data): Store a comp_unit.
13185 (dwarf2_frame_find_fde): Update.
13186 (dwarf2_build_frame_info): Use "new".
13187
13188 2020-02-12 Tom Tromey <tom@tromey.com>
13189
13190 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13191 (dwarf2_fde_table): Typedef for std::vector.
13192 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13193 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13194 (decode_frame_entry): Update.
13195 (dwarf2_build_frame_info): Use "new".
13196
13197 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13198
13199 * arm-tdep.c (arm_gdbarch_init): Update.
13200 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13201 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13202 have_neon, is_m>: Change to bool.
13203
13204 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13205
13206 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13207
13208 2020-02-12 Tom Tromey <tom@tromey.com>
13209
13210 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13211
13212 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13213
13214 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13215 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13216
13217 2020-02-11 Tom Tromey <tom@tromey.com>
13218
13219 * psymtab.h: Update comment.
13220
13221 2020-02-11 Tom Tromey <tom@tromey.com>
13222
13223 * gdb_obstack.h (struct auto_obstack): Use
13224 DISABLE_COPY_AND_ASSIGN.
13225
13226 2020-02-11 Tom Tromey <tom@tromey.com>
13227
13228 * dwarf2/frame.h (struct objfile): Don't forward declare.
13229
13230 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13231
13232 * cris-tdep.c (cris_supply_gregset): Change signature to match
13233 what struct regset expects.
13234 (cris_regset): New struct.
13235 (fetch_core_registers): Remove.
13236 (cris_iterate_over_regset_sections): New function.
13237 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13238 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13239
13240 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13241
13242 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13243 registers.
13244
13245 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13246
13247 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13248
13249 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13250
13251 * configure: Re-generate.
13252
13253 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13254
13255 * configure: Re-generate.
13256
13257 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13258
13259 * acinclude: Update warning.m4 path.
13260 * warning.m4: Move to gdbsupport.
13261
13262 2020-02-11 Tom Tromey <tromey@adacore.com>
13263
13264 * remote.c (remote_console_output): Update.
13265 * printcmd.c (printf_command): Update.
13266 * event-loop.c (gdb_wait_for_event): Update.
13267 * linux-nat.c (sigchld_handler): Update.
13268 * remote-sim.c (gdb_os_write_stdout): Update.
13269 (gdb_os_flush_stdout): Update.
13270 (gdb_os_flush_stderr): Update.
13271 (gdb_os_write_stderr): Update.
13272 * exceptions.c (print_exception): Update.
13273 * remote-fileio.c (remote_fileio_func_read): Update.
13274 (remote_fileio_func_write): Update.
13275 * tui/tui.c (tui_enable): Update.
13276 * tui/tui-interp.c (tui_interp::init): Update.
13277 * utils.c (init_page_info): Update.
13278 (putchar_unfiltered, fputc_unfiltered): Update.
13279 (gdb_flush): Update.
13280 (emit_style_escape): Update.
13281 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13282 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13283 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13284 (stderr_file::write): Update.
13285 (stderr_file::puts): Update.
13286 * ui-file.h (ui_file_isatty, ui_file_write)
13287 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13288 (ui_file_puts): Don't declare.
13289
13290 2020-02-10 Tom de Vries <tdevries@suse.de>
13291
13292 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13293 sentinel to char *.
13294
13295 2020-02-09 Tom de Vries <tdevries@suse.de>
13296
13297 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13298 filename if it matches "<artificial>".
13299
13300 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13301
13302 * windows-tdep.c (struct enum_value_name): New struct.
13303 (create_enum): New function.
13304 (windows_get_siginfo_type): Create and use enum types.
13305
13306 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13307
13308 * NEWS: Mention $_siginfo support for Windows.
13309 * windows-nat.c (handle_exception): Set siginfo_er.
13310 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13311 (windows_xfer_siginfo): New function.
13312 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13313 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13314 (init_windows_gdbarch_data): New function.
13315 (get_windows_gdbarch_data): New function.
13316 (windows_get_siginfo_type): New function.
13317 (windows_init_abi): Register windows_get_siginfo_type.
13318 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13319
13320 2020-02-08 Tom Tromey <tom@tromey.com>
13321
13322 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13323 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13324 <keep>: Declare method.
13325 <m_keep>: Remove member.
13326 <~cutu_reader>: Remove.
13327 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13328 (cutu_reader::cutu_reader): Update.
13329 (cutu_reader::keep): Rename from ~cutu_reader.
13330 (process_psymtab_comp_unit, build_type_psymtabs_1)
13331 (process_skeletonless_type_unit, load_partial_comp_unit)
13332 (load_full_comp_unit, dwarf2_read_addr_index)
13333 (read_signatured_type): Update.
13334
13335 2020-02-08 Tom Tromey <tom@tromey.com>
13336
13337 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13338 "want_partial_unit" parameter.
13339 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13340 Inline check for DW_TAG_partial_unit.
13341 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13342
13343 2020-02-08 Tom Tromey <tom@tromey.com>
13344
13345 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13346 read.c.
13347 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13348 read.c.
13349
13350 2020-02-08 Tom Tromey <tom@tromey.com>
13351
13352 * dwarf2/read.c (read_address): Move to comp-unit.c.
13353 (dwarf2_rnglists_process, dwarf2_ranges_process)
13354 (read_attribute_value, dwarf_decode_lines_1)
13355 (var_decode_location, decode_locdesc): Update.
13356 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13357 read.c. Remove "cu" parameter.
13358 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13359 method.
13360
13361 2020-02-08 Tom Tromey <tom@tromey.com>
13362
13363 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13364 (read_indirect_line_string): Update.
13365 * dwarf2/comp-unit.c (read_offset): Remove.
13366 (read_comp_unit_head): Update.
13367 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13368 method.
13369 (read_offset): Don't declare.
13370
13371 2020-02-08 Tom Tromey <tom@tromey.com>
13372
13373 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13374 * dwarf2/read.c (struct comp_unit_head): Move to
13375 dwarf2/comp-unit.h.
13376 (enum class rcuh_kind): Move to comp-unit.h.
13377 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13378 (read_comp_unit_head, error_check_comp_unit_head)
13379 (read_and_check_comp_unit_head): Move to comp-unit.c.
13380 (read_offset, dwarf_unit_type_name): Likewise.
13381 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13382 (cutu_reader::cutu_reader, read_call_site_scope)
13383 (find_partial_die, follow_die_offset): Update.
13384 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13385
13386 2020-02-08 Tom Tromey <tom@tromey.com>
13387
13388 * dwarf2/read.c (read_offset_1): Move to leb.c.
13389 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13390 (dwarf_decode_macro_bytes): Update.
13391 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13392 * dwarf2/leb.h (read_offset): Declare.
13393
13394 2020-02-08 Tom Tromey <tom@tromey.com>
13395
13396 * dwarf2/read.c (dwarf2_section_size): Remove.
13397 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13398 Update.
13399 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13400
13401 2020-02-08 Tom Tromey <tom@tromey.com>
13402
13403 * dwarf2/read.c (read_initial_length): Move to leb.c.
13404 * dwarf2/leb.h (read_initial_length): Declare.
13405 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13406 handle_nonstd parameter.
13407 * dwarf2/frame.c (read_initial_length): Remove.
13408 (decode_frame_entry_1): Update.
13409
13410 2020-02-08 Tom Tromey <tom@tromey.com>
13411
13412 * dwarf2/loc.c (dwarf2_find_location_expression)
13413 (dwarf_evaluate_loc_desc::get_tls_address)
13414 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13415 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13416 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13417 (dwarf2_compile_property_to_c)
13418 (dwarf2_loc_desc_get_symbol_read_needs)
13419 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13420 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13421 (loclist_describe_location, loclist_tracepoint_var_ref)
13422 (loclist_generate_c_location): Update.
13423 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13424 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13425 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13426 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13427 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13428 (dwarf2_per_cu_data::addr_size)
13429 (dwarf2_per_cu_data::ref_addr_size)
13430 (dwarf2_per_cu_data::text_offset)
13431 (dwarf2_per_cu_data::addr_type): Now methods.
13432 (per_cu_header_read_in): Make per_cu "const".
13433 (dwarf2_version): Remove.
13434 (dwarf2_per_cu_data::int_type): Now a method.
13435 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13436 (set_die_type, read_array_type, read_subrange_index_type)
13437 (read_tag_string_type, read_subrange_type): Update.
13438 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13439 offset_size, ref_addr_size, text_offset, addr_type, version,
13440 objfile, int_type, addr_sized_int_type>: Declare methods.
13441
13442 2020-02-08 Tom Tromey <tom@tromey.com>
13443
13444 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13445 Move earlier.
13446
13447 2020-02-08 Tom Tromey <tom@tromey.com>
13448
13449 * dwarf2/read.h (dwarf_line_debug): Declare.
13450 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13451 * dwarf2/read.c: Move line_header code to new files.
13452 (dwarf_line_debug): No longer static.
13453 * dwarf2/line-header.c: New file.
13454 * dwarf2/line-header.h: New file.
13455
13456 2020-02-08 Tom Tromey <tom@tromey.com>
13457
13458 * dwarf2/read.c (struct line_header) <file_full_name,
13459 file_file_name>: Return unique_xmalloc_ptr.
13460 (line_header::file_file_name): Update.
13461 (line_header::file_full_name): Update.
13462 (dw2_get_file_names_reader): Update.
13463 (macro_start_file): Update.
13464
13465 2020-02-08 Tom Tromey <tom@tromey.com>
13466
13467 * dwarf2/read.c (struct line_header) <file_full_name,
13468 file_file_name>: Declare methods.
13469 (dw2_get_file_names_reader): Update.
13470 (file_file_name): Now a method.
13471 (file_full_name): Likewise.
13472 (macro_start_file): Update.
13473
13474 2020-02-08 Tom Tromey <tom@tromey.com>
13475
13476 * dwarf2/read.c (dwarf_always_disassemble)
13477 (show_dwarf_always_disassemble): Move to loc.c.
13478 (_initialize_dwarf2_read): Move "always-disassemble" registration
13479 to loc.c.
13480 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13481 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13482 static.
13483 (show_dwarf_always_disassemble): Move from read.c.
13484 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13485
13486 2020-02-08 Tom Tromey <tom@tromey.com>
13487
13488 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13489 (create_quick_file_names_table): Return htab_up.
13490 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13491 Update.
13492 * dwarf2/read.h (struct dwarf2_per_objfile)
13493 <quick_file_names_table>: Now htab_up.
13494
13495 2020-02-08 Tom Tromey <tom@tromey.com>
13496
13497 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13498
13499 2020-02-08 Tom Tromey <tom@tromey.com>
13500
13501 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13502 Rewrite.
13503 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13504 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13505 (abbrev_table::abbrev_table): No longer inline.
13506 (ABBREV_HASH_SIZE): Remove.
13507 (abbrev_table::m_abbrevs): Now an htab_up.
13508
13509 2020-02-08 Tom Tromey <tom@tromey.com>
13510
13511 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13512 (cutu_reader): Update.
13513 (build_type_psymtabs_1): Update.
13514 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13515 (abbrev_table::alloc_abbrev): Update.
13516 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13517 (abbrev_table::read): New static method, renamed from
13518 abbrev_table_read_table.
13519 (abbrev_table::alloc_abbrev)
13520 (abbrev_table::add_abbrev): Now private.
13521 (abbrev_table::abbrev_table): Now private.
13522 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13523
13524 2020-02-08 Tom Tromey <tom@tromey.com>
13525
13526 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13527 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13528 htab_up.
13529
13530 2020-02-08 Tom Tromey <tom@tromey.com>
13531
13532 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13533 htab_up.
13534 (lookup_dwo_unit_in_dwp): Update.
13535 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13536 on obstack.
13537
13538 2020-02-08 Tom Tromey <tom@tromey.com>
13539
13540 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13541 obstack.
13542
13543 2020-02-08 Tom Tromey <tom@tromey.com>
13544
13545 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13546 line_header_hash.
13547 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13548 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13549 Change type to htab_up.
13550
13551 2020-02-08 Tom Tromey <tom@tromey.com>
13552
13553 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13554 htab_up. Don't allocate on obstack.
13555 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13556 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13557 Change type to htab_up.
13558
13559 2020-02-08 Tom Tromey <tom@tromey.com>
13560
13561 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13562 Change type to htab_up.
13563 * dwarf2/read.c (create_signatured_type_table_from_index)
13564 (create_signatured_type_table_from_debug_names)
13565 (create_all_type_units, add_type_unit)
13566 (lookup_dwo_signatured_type, lookup_signatured_type)
13567 (process_skeletonless_type_unit): Update.
13568 (create_debug_type_hash_table, create_debug_types_hash_table):
13569 Change type of types_htab.
13570 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13571 htab_up. Don't allocate on obstack.
13572 (create_cus_hash_table): Change type of cus_htab parameter.
13573 (struct dwo_file) <cus, tus>: Now htab_up.
13574 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13575 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13576 (queue_and_load_all_dwo_tus): Update.
13577 * dwarf2/index-write.c (write_gdbindex): Update.
13578 (write_debug_names): Update.
13579
13580 2020-02-08 Tom Tromey <tom@tromey.com>
13581
13582 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13583 dwarf2/read.c. Remove "next" member. Add constructor ntad
13584 destructor.
13585 (struct dwarf2_per_objfile) <queue>: New member.
13586 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13587 dwarf2/read.h.
13588 (dwarf2_queue, dwarf2_queue_tail): Remove.
13589 (class dwarf2_queue_guard): Add parameter to constructor. Use
13590 DISABLE_COPY_AND_ASSIGN.
13591 <m_per_objfile>: New member.
13592 <~dwarf2_queue_guard>: Rewrite.
13593 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13594 Update.
13595 (~dwarf2_queue_item): New.
13596
13597 2020-02-08 Tom Tromey <tom@tromey.com>
13598
13599 * dwarf2/read.c (struct die_info) <has_children>: New member.
13600 (dw2_get_file_names_reader): Remove has_children.
13601 (dw2_get_file_names): Update.
13602 (read_cutu_die_from_dwo): Remove has_children.
13603 (cutu_reader::init_tu_and_read_dwo_dies)
13604 (cutu_reader::cutu_reader): Update.
13605 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13606 Remove has_children.
13607 (build_type_psymtabs_1, process_skeletonless_type_unit)
13608 (load_partial_comp_unit, load_full_comp_unit): Update.
13609 (create_dwo_cu_reader): Remove has_children.
13610 (create_cus_hash_table, read_die_and_children): Update.
13611 (read_full_die_1,read_full_die): Remove has_children.
13612 (read_signatured_type): Update.
13613 (class cutu_reader) <has_children>: Remove.
13614
13615 2020-02-08 Tom Tromey <tom@tromey.com>
13616
13617 * dwarf2/expr.c: Rename from dwarf2expr.c.
13618 * dwarf2/expr.h: Rename from dwarf2expr.h.
13619 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13620 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13621 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13622 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13623 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13624 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13625 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13626 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13627 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13628 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13629 * dwarf2/loc.c: Rename from dwarf2loc.c.
13630 * dwarf2/loc.h: Rename from dwarf2loc.h.
13631 * dwarf2/read.c: Rename from dwarf2read.c.
13632 * dwarf2/read.h: Rename from dwarf2read.h.
13633 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13634 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13635 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13636 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13637 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13638 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13639 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13640 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13641 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13642 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13643 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13644 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13645 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13646 Update.
13647 * Makefile.in (COMMON_SFILES): Update.
13648 (HFILES_NO_SRCDIR): Update.
13649
13650 2020-02-08 Tom Tromey <tom@tromey.com>
13651
13652 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13653 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13654
13655 2020-02-08 Tom Tromey <tom@tromey.com>
13656
13657 * dwarf2read.h (struct die_info): Don't declare.
13658
13659 2020-02-08 Tom Tromey <tom@tromey.com>
13660
13661 * dwarf2read.h (die_info_ptr): Remove typedef.
13662
13663 2020-02-08 Tom Tromey <tom@tromey.com>
13664
13665 * dwarf2read.c (read_call_site_scope)
13666 (handle_data_member_location, dwarf2_add_member_fn)
13667 (mark_common_block_symbol_computed, read_common_block)
13668 (attr_to_dynamic_prop, partial_die_info::read)
13669 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13670 (dwarf2_symbol_mark_computed, set_die_type): Update.
13671 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13672 method.
13673 (attr_form_is_block): Don't declare.
13674 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13675
13676 2020-02-08 Tom Tromey <tom@tromey.com>
13677
13678 * dwarf2read.c (dwarf2_find_base_address, )
13679 (read_call_site_scope, rust_containing_type)
13680 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13681 (handle_data_member_location, dwarf2_add_member_fn)
13682 (get_alignment, read_structure_type, process_structure_scope)
13683 (mark_common_block_symbol_computed, read_common_block)
13684 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13685 (partial_die_info::read, read_attribute_value, new_symbol)
13686 (lookup_die_type, dwarf2_get_ref_die_offset)
13687 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13688 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13689 (dwarf2_symbol_mark_computed): Update.
13690 * dwarf2/attribute.h (struct attribute) <value_as_address,
13691 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13692 methods.
13693 (value_as_address, attr_form_is_section_offset)
13694 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13695 * dwarf2/attribute.c (attribute::value_as_address)
13696 (attribute::form_is_section_offset, attribute::form_is_constant)
13697 (attribute::form_is_ref): Now methods.
13698
13699 2020-02-08 Tom Tromey <tom@tromey.com>
13700
13701 * dwarf2read.c (struct attribute, DW_STRING)
13702 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13703 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13704 (attr_form_is_block, attr_form_is_section_offset)
13705 (attr_form_is_constant, attr_form_is_ref): Move.
13706 * dwarf2/attribute.h: New file.
13707 * dwarf2/attribute.c: New file, from dwarf2read.c.
13708 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13709
13710 2020-02-08 Tom Tromey <tom@tromey.com>
13711
13712 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13713 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13714 Move.
13715 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13716 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13717 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13718 abbrev.c.
13719 * dwarf2/abbrev.h: New file.
13720 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13721 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13722
13723 2020-02-08 Tom Tromey <tom@tromey.com>
13724
13725 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13726 (dwarf2_section_size, dwarf2_get_section_info)
13727 (create_signatured_type_table_from_debug_names)
13728 (create_addrmap_from_aranges, read_debug_names_from_section)
13729 (get_gdb_index_contents_from_section, read_comp_unit_head)
13730 (error_check_comp_unit_head, read_abbrev_offset)
13731 (create_debug_type_hash_table, init_cu_die_reader)
13732 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13733 (read_comp_units_from_section, create_cus_hash_table)
13734 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13735 (create_dwp_v2_section, dwarf2_rnglists_process)
13736 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13737 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13738 (read_indirect_string_from_dwz, read_addr_index_1)
13739 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13740 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13741 (fill_in_loclist_baton): Update.
13742 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13743 get_containing_section, get_bfd_owner, get_bfd_section,
13744 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13745 (dwarf2_read_section, get_section_name, get_section_file_name)
13746 (get_containing_section, get_section_bfd_owner)
13747 (get_section_bfd_section, get_section_name, get_section_file_name)
13748 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13749 declare.
13750 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13751 (dwarf2_section_info::get_bfd_owner)
13752 (dwarf2_section_info::get_bfd_section)
13753 (dwarf2_section_info::get_name)
13754 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13755 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13756 (dwarf2_section_info::read): Now methods.
13757 * dwarf-index-write.c (class debug_names): Update.
13758
13759 2020-02-08 Tom Tromey <tom@tromey.com>
13760
13761 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13762 Move to dwarf2/section.h.
13763 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13764 (get_section_bfd_section, get_section_name)
13765 (get_section_file_name, get_section_id, get_section_flags)
13766 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13767 dwarf2/section.c.
13768 * dwarf2/section.h: New file.
13769 * dwarf2/section.c: New file, from dwarf2read.c.
13770 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13771
13772 2020-02-08 Tom Tromey <tom@tromey.com>
13773
13774 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13775 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13776 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13777 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13778 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13779 * dwarf2/leb.h: New file, from dwarf2read.c.
13780 * dwarf2/leb.c: New file, from dwarf2read.c.
13781 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13782 Remove.
13783 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13784 (COMMON_SFILES): Add dwarf2/leb.c.
13785
13786 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13787
13788 GDB 9.1 released.
13789
13790 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13791
13792 PR gdb/25190:
13793 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13794 * gdb/remote.c (remote_console_output): Update.
13795 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13796 (ui_file_puts): ...this.
13797 * gdb/ui-file.h (ui_file_puts): Add declaration.
13798 * gdb/utils.c (emit_style_escape): Update.
13799 (flush_wrap_buffer): Update.
13800 (fputs_maybe_filtered): Update.
13801 (fputs_unfiltered): Add function.
13802
13803 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13804
13805 * gdb/event-loop.c (gdb_wait_for_event): Update.
13806 * gdb/printcmd.c (printf_command): Update.
13807 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13808 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13809 (gdb_os_flush_stderr): Update.
13810 * gdb/remote.c (remote_console_output): Update.
13811 * gdb/ui-file.c (gdb_flush): Rename to...
13812 (ui_file_flush): ...this.
13813 (stderr_file::write): Update.
13814 (stderr_file::puts): Update.
13815 * gdb/ui-file.h (gdb_flush): Rename to...
13816 (ui_file_flush): ...this.
13817 * gdb/utils.c (gdb_flush): Add function.
13818 * gdb/utils.h (gdb_flush): Add declaration.
13819
13820 2020-02-07 Tom Tromey <tromey@adacore.com>
13821
13822 PR breakpoints/24915:
13823 * source.c (find_and_open_source): Do not check basenames_may_differ.
13824
13825 2020-02-07 Tom Tromey <tom@tromey.com>
13826
13827 * README: Update gdbserver documentation.
13828 * gdbserver: Move to top level.
13829 * configure.tgt (build_gdbserver): Remove.
13830 * configure.ac: Remove --enable-gdbserver.
13831 * configure: Rebuild.
13832 * Makefile.in (distclean): Don't mention gdbserver.
13833
13834 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13835
13836 * source-cache.c (source_cache::ensure): Surround
13837 get_plain_source_lines with a try/catch.
13838 (source_cache::get_line_charpos): Get rid of try/catch
13839 and only check for the return value of "ensure".
13840 * tui/tui-source.c (tui_source_window::set_contents):
13841 Simplify "nlines" calculation.
13842
13843 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13844
13845 * MAINTAINERS (Write After Approval): Add myself.
13846
13847 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13848
13849 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13850 function call.
13851
13852 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13853
13854 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13855
13856 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13857
13858 * nat/riscv-linux-tdesc.h: New file.
13859 * nat/riscv-linux-tdesc.c: New file, taking code from...
13860 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13861 ... here.
13862 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13863 NATDEPFILES.
13864
13865 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13866
13867 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13868 we don't set the fake simulator ptid to the null_ptid.
13869
13870 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13871
13872 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13873 * gdbthread.h (class thread_info) <resumed>: Likewise.
13874 * infrun.c (resume_1): Likewise.
13875 (proceed): Likewise.
13876 (infrun_thread_stop_requested): Likewise.
13877 (stop_all_threads): Likewise.
13878 (handle_inferior_event): Likewise.
13879 (restart_threads): Likewise.
13880 (finish_step_over): Likewise.
13881 (keep_going_stepped_thread): Likewise.
13882 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13883 (linux_handle_extended_wait): Likewise.
13884 * record-btrace.c (get_thread_current_frame_id): Likewise.
13885 * record-full.c (record_full_wait_1): Likewise.
13886 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13887 * target.c (target_resume): Likewise.
13888 * thread.c (set_running_thread): Likewise.
13889
13890 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13891
13892 * f-valprint.c (f77_print_array_1): Changed datatype of index
13893 variable to LONGEST from int to enable it to contain bound
13894 values correctly.
13895
13896 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13897
13898 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13899 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13900 offsets according to FLEN determined.
13901 (riscv_linux_nat_target::read_description): Determine FLEN
13902 dynamically.
13903 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13904 according to FLEN determined.
13905 (riscv_linux_nat_target::store_registers): Likewise.
13906
13907 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13908
13909 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13910 when reg->group is empty and reggroup is not.
13911
13912 2020-01-31 Tom Tromey <tromey@adacore.com>
13913
13914 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13915 Call beneath target's mourn_inferior after unpushing.
13916
13917 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13918
13919 PR tui/9765
13920 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13921 have enough lines to fill the screen, still return the lowest
13922 address we found.
13923
13924 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13925
13926 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13927 '-', '<', and '>' commands.
13928
13929 2020-01-29 Pedro Alves <palves@redhat.com>
13930 Sergio Durigan Junior <sergiodj@redhat.com>
13931
13932 * infcmd.c (construct_inferior_arguments): Assert that
13933 'argc' is greater than 0.
13934
13935 2020-01-29 Luis Machado <luis.machado@linaro.org>
13936
13937 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13938 (BRK_INSN_MASK): Define to 0xd4200000.
13939 (aarch64_program_breakpoint_here_p): New function.
13940 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13941 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13942 breakpoint.c.
13943 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13944 breakpoint.h
13945 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13946 call gdbarch_program_breakpoint_here_p.
13947 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13948 default_program_breakpoint_here_p, changed return type to bool and
13949 simplified.
13950 * breakpoint.h (program_breakpoint_here): Moved prototype to
13951 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13952 return type to bool.
13953 * gdbarch.c: Regenerate.
13954 * gdbarch.h: Regenerate.
13955 * gdbarch.sh (program_breakpoint_here_p): New method.
13956 * infrun.c (handle_signal_stop): Call
13957 gdbarch_program_breakpoint_here_p.
13958
13959 2020-01-26 Tom Tromey <tom@tromey.com>
13960
13961 * ctfread.c (struct ctf_fp_info): Reindent.
13962 (_initialize_ctfread): Remove.
13963
13964 2020-01-26 Tom Tromey <tom@tromey.com>
13965
13966 * psymtab.c (partial_map_expand_apply)
13967 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13968 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13969 (psym_print_stats, psym_expand_symtabs_for_function)
13970 (psym_map_symbol_filenames, psym_map_matching_symbols)
13971 (psym_expand_symtabs_matching)
13972 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13973 (maintenance_check_psymtabs): Use new methods.
13974 * psympriv.h (struct partial_symtab) <readin_p,
13975 get_compunit_symtab>: New methods.
13976 <readin, compunit_symtab>: Remove members.
13977 (struct standard_psymtab): New.
13978 (struct legacy_psymtab): Derive from standard_psymtab.
13979 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13980 standard_psymtab.
13981 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13982
13983 2020-01-26 Tom Tromey <tom@tromey.com>
13984
13985 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13986 read_dependencies. Add assert.
13987 * psymtab.c (partial_symtab::read_dependencies): New method.
13988 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13989 method.
13990 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13991 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13992 read_dependencies.
13993 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13994 Add assert.
13995
13996 2020-01-26 Tom Tromey <tom@tromey.com>
13997
13998 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13999 Call expand_psymtab.
14000 (xcoff_read_symtab): Call expand_psymtab.
14001 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14002 legacy_expand_psymtab.
14003 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14004 method.
14005 (struct legacy_psymtab) <expand_psymtab>: Implement.
14006 <legacy_expand_psymtab>: New member.
14007 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14008 (parse_partial_symbols): Set legacy_expand_psymtab.
14009 (psymtab_to_symtab_1): Change argument order. Call
14010 expand_psymtab.
14011 (new_psymtab): Set legacy_expand_psymtab.
14012 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14013 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14014 expand_psymtab.
14015 (dwarf2_psymtab::expand_psymtab): Rename from
14016 psymtab_to_symtab_1. Call expand_psymtab.
14017 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14018 (dbx_end_psymtab): Likewise.
14019 (dbx_psymtab_to_symtab_1): Change argument order. Call
14020 expand_psymtab.
14021 (dbx_read_symtab): Call expand_psymtab.
14022 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14023 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14024 (ctf_psymtab::read_symtab): Call expand_psymtab.
14025
14026 2020-01-26 Tom Tromey <tom@tromey.com>
14027
14028 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14029 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14030 messages.
14031 * mdebugread.c (mdebug_read_symtab): Remove prints.
14032 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14033 assert.
14034 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14035
14036 2020-01-26 Tom Tromey <tom@tromey.com>
14037
14038 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14039 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14040 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14041 legacy_symtab.
14042 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14043 * psymtab.c (psymtab_to_symtab): Call method.
14044 (dump_psymtab): Update.
14045 * psympriv.h (struct partial_symtab): Add virtual destructor.
14046 <read_symtab>: New method.
14047 (struct legacy_symtab): New.
14048 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14049 (struct pst_map) <pst>: Now a legacy_psymtab.
14050 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14051 (new_psymtab): Use legacy_psymtab.
14052 * dwarf2read.h (struct dwarf2_psymtab): New.
14053 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14054 * dwarf2read.c (dwarf2_create_include_psymtab)
14055 (dwarf2_build_include_psymtabs, create_type_unit_group)
14056 (create_partial_symtab, process_psymtab_comp_unit_reader)
14057 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14058 (set_partial_user): Use dwarf2_psymtab.
14059 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14060 (psymtab_to_symtab_1, process_full_comp_unit)
14061 (process_full_type_unit, dwarf2_ranges_read)
14062 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14063 (dwarf_decode_lines): Use dwarf2_psymtab.
14064 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14065 (add_address_entry_worker, write_one_signatured_type)
14066 (recursively_count_psymbols, recursively_write_psymbols)
14067 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14068 (write_debug_names): Likewise.
14069 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14070 <pst>: Now a legacy_psymtab.
14071 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14072 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14073 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14074 * ctfread.c (struct ctf_psymtab): New.
14075 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14076 ctf_psymtab.
14077 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14078 (create_partial_symtab): Return a ctf_psymtab.
14079 (scan_partial_symbols): Update.
14080
14081 2020-01-26 Tom Tromey <tom@tromey.com>
14082
14083 * xcoffread.c (xcoff_start_psymtab): Use new.
14084 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14085 renamed from start_psymtab_common.
14086 * psympriv.h (struct partial_symtab): Add new constructor.
14087 (start_psymtab_common): Don't declare.
14088 * mdebugread.c (parse_partial_symbols): Use new.
14089 * dwarf2read.c (create_partial_symtab): Use new.
14090 * dbxread.c (start_psymtab): Use new.
14091 * ctfread.c (create_partial_symtab): Use new.
14092
14093 2020-01-26 Tom Tromey <tom@tromey.com>
14094
14095 * xcoffread.c (xcoff_end_psymtab): Use new.
14096 * psymtab.c (start_psymtab_common): Use new.
14097 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14098 Update.
14099 * psympriv.h (struct partial_symtab): Add parameters to
14100 constructor. Don't inline.
14101 (allocate_psymtab): Don't declare.
14102 * mdebugread.c (new_psymtab): Use new.
14103 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14104 * dbxread.c (dbx_end_psymtab): Use new.
14105
14106 2020-01-26 Tom Tromey <tom@tromey.com>
14107
14108 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14109 allocate_psymtab. Update documentation.
14110 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14111 allocate_psymtab. Do not use new.
14112 (allocate_psymtab): Use new. Update.
14113
14114 2020-01-26 Tom Tromey <tom@tromey.com>
14115
14116 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14117 * psymtab.c (psym_print_stats): Update.
14118 * psympriv.h (struct partial_symtab) <readin,
14119 psymtabs_addrmap_supported, anonymous>: Now bool.
14120 * mdebugread.c (psymtab_to_symtab_1): Update.
14121 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14122 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14123 (process_full_comp_unit, process_full_type_unit): Update.
14124 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14125 * ctfread.c (psymtab_to_symtab): Update.
14126
14127 2020-01-26 Tom Tromey <tom@tromey.com>
14128
14129 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14130 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14131 * psymtab.c (psymtab_storage): Delete psymtabs.
14132 (psymtab_storage::allocate_psymtab): Use new.
14133 (psymtab_storage::discard_psymtab): Use delete.
14134 * psympriv.h (struct partial_symtab): Add constructor and
14135 initializers.
14136
14137 2020-01-26 Tom Tromey <tom@tromey.com>
14138
14139 * machoread.c: Do not include psympriv.h.
14140
14141 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14142
14143 * NEWS: Mention the new option and the set/show commands.
14144
14145 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14146
14147 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14148 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14149 (validate_exec_file): New variables, enums, functions.
14150 (exec_file_locate_attach, print_section_info): Style the filenames.
14151 (_initialize_exec): Install show_exec_file_mismatch_command and
14152 set_exec_file_mismatch_command.
14153 * gdbcore.h (validate_exec_file): Declare.
14154 * infcmd.c (attach_command): Call validate_exec_file.
14155 * remote.c ( remote_target::remote_add_inferior): Likewise.
14156
14157 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14158
14159 * frame.c (find_frame_sal): Move call to get_next_frame into more
14160 inner scope.
14161 * inline-frame.c (inilne_state) <inline_state>: Update argument
14162 types.
14163 (inilne_state) <skipped_symbol>: Rename to...
14164 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14165 (skip_inline_frames): Build vector of skipped symbols and use this
14166 to reate the inline_state.
14167 (inline_skipped_symbol): Add a comment and some assertions, fetch
14168 skipped symbol from the list.
14169
14170 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14171
14172 * buildsym.c (lte_is_less_than): Delete.
14173 (buildsym_compunit::end_symtab_with_blockvector): Create local
14174 lambda function to sort line table entries, and use
14175 std::stable_sort instead of std::sort.
14176 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14177 markers when looking for a previous line.
14178
14179 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14180
14181 * dwarf2read.c (lnp_state_machine::record_line): Include
14182 end_sequence parameter in debug print out. Record the line if we
14183 are at an end_sequence marker even if it's not the start of a
14184 statement.
14185 * symmisc.c (maintenance_print_one_line_table): Print end of
14186 sequence markers with 'END' not '0'.
14187
14188 2020-01-24 Pedro Alves <palves@redhat.com>
14189
14190 PR gdb/25410
14191 * thread.c (scoped_restore_current_thread::restore): Use
14192 switch_to_inferior_no_thread.
14193 * exec.c: Include "progspace-and-thread.h".
14194 (add_target_sections, remove_target_sections):
14195 scoped_restore_current_pspace_and_thread instead of
14196 scoped_restore_current_thread.
14197 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14198 and aspace to the inferior before calling clone_program_space.
14199 Remove stale comment.
14200
14201 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14202
14203 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14204 (arm_netbsd_nat_target::fetch_registers): ...this.
14205 (arm_nbsd_nat_target::store_registers): Rename to...
14206 (arm_netbsd_nat_target::store_registers): ...this.
14207
14208 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14209
14210 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14211 register_t.
14212
14213 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14214
14215 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14216 Update comment.
14217 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14218 Likewise.
14219 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14220 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14221 the correct replacement (iterate_over_regset_sections).
14222 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14223 Update comment.
14224
14225 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14226
14227 PR gdb/23718
14228 * gdb/python/python.c (execute_gdb_command): Call
14229 async_enable_stdin in catch block.
14230
14231 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14232
14233 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14234 SWITCH_THRU_ALL_UIS.
14235
14236 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14237
14238 PR tui/9765
14239 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14240 comment, add extra parameter, and update to store previous symbol
14241 when appropriate.
14242 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14243 add extra parameter.
14244 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14245 remove unneeded parameter, add try/catch around gdb_print_insn,
14246 rewrite to add items to asm_lines vector.
14247 (tui_find_backward_disassembly_start_address): New function.
14248 (tui_find_disassembly_address): Updated throughout.
14249 (tui_disasm_window::set_contents): Update for changes to
14250 tui_disassemble.
14251 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14252 number of lines to scroll.
14253
14254 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14255
14256 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14257 (SECT_OFF_DATA): Likewise.
14258 (SECT_OFF_RODATA): Likewise.
14259 (SECT_OFF_TEXT): Likewise.
14260 (SECT_OFF_BSS): Likewise.
14261 (struct objfile) <text_section_offset, data_section_offset>: New
14262 methods.
14263 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14264 objfile::text_section_offset.
14265 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14266 * coffread.c (coff_symtab_read): Likewise.
14267 (enter_linenos): Likewise.
14268 (process_coff_symbol): Likewise.
14269 * ctfread.c (get_objfile_text_range): Likewise.
14270 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14271 Use objfile::data_section_offset.
14272 * dwarf2-frame.c (execute_cfa_program): Use
14273 objfile::text_section_offset.
14274 (dwarf2_frame_find_fde): Likewise.
14275 * dwarf2read.c (create_addrmap_from_index): Likewise.
14276 (create_addrmap_from_aranges): Likewise.
14277 (dw2_find_pc_sect_compunit_symtab): Likewise.
14278 (process_psymtab_comp_unit_reader): Likewise.
14279 (add_partial_symbol): Likewise.
14280 (add_partial_subprogram): Likewise.
14281 (process_full_comp_unit): Likewise.
14282 (read_file_scope): Likewise.
14283 (read_func_scope): Likewise.
14284 (read_lexical_block_scope): Likewise.
14285 (read_call_site_scope): Likewise.
14286 (dwarf2_rnglists_process): Likewise.
14287 (dwarf2_ranges_process): Likewise.
14288 (dwarf2_ranges_read): Likewise.
14289 (dwarf_decode_lines_1): Likewise.
14290 (new_symbol): Likewise.
14291 (dwarf2_fetch_die_loc_sect_off): Likewise.
14292 (dwarf2_per_cu_text_offset): Likewise.
14293 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14294 * hppa-tdep.c (read_unwind_info): Likewise.
14295 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14296 * psympriv.h (struct partial_symtab): Likewise.
14297 * psymtab.c (find_pc_sect_psymtab): Likewise.
14298 * solib-svr4.c (enable_break): Likewise.
14299 * stap-probe.c (relocate_address): Use
14300 objfile::data_section_offset.
14301 * xcoffread.c (enter_line_range): Use
14302 objfile::text_section_offset.
14303 (read_xcoff_symtab): Likewise.
14304
14305 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14306
14307 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14308 declaration to narrower scopes.
14309
14310 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14311
14312 * darwin-nat.h (struct darwin_exception_msg, enum
14313 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14314 Move up.
14315 (class darwin_nat_target) <wait_1, check_new_threads,
14316 decode_exception_message, decode_message, stop_inferior,
14317 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14318 * darwin-nat.c (darwin_check_new_threads): Rename to...
14319 (darwin_nat_target::check_new_threads): ... this.
14320 (darwin_suspend_inferior_it): Remove.
14321 (darwin_decode_exception_message): Rename to...
14322 (darwin_nat_target::decode_exception_message): ... this.
14323 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14324 (darwin_decode_message): Rename to...
14325 (darwin_nat_target::decode_message): ... this.
14326 (cancel_breakpoint): Rename to...
14327 (darwin_nat_target::cancel_breakpoint): ... this.
14328 (darwin_wait): Rename to...
14329 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14330 instead of iterate_over_inferiors.
14331 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14332 (darwin_stop_inferior): Rename to...
14333 (darwin_nat_target::stop_inferior): ... this.
14334 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14335 (darwin_init_thread_list): Rename to...
14336 (darwin_nat_target::init_thread_list): ... this.
14337 (darwin_ptrace_him): Rename to...
14338 (darwin_nat_target::ptrace_him): ... this.
14339 (darwin_nat_target::create_inferior): Pass lambda function to
14340 fork_inferior.
14341 (darwin_nat_target::detach): Call stop_inferior instead of
14342 darwin_stop_inferior.
14343 * fork-inferior.h (fork_inferior): Change init_trace_fun
14344 parameter to gdb::function_view.
14345 * fork-inferior.c (fork_inferior): Likewise.
14346
14347 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14348
14349 * i386-cygwin-tdep.c (core_process_module_section): Update.
14350 * windows-nat.c (struct lm_info_windows): Add text_offset.
14351 (windows_xfer_shared_libraries): Update.
14352 * windows-tdep.c (windows_xfer_shared_library):
14353 Add text_offset_cached argument.
14354 * windows-tdep.h (windows_xfer_shared_library): Update.
14355
14356 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14357
14358 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14359
14360 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14361
14362 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14363 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14364 replace with range-based for.
14365 (gdbsim_interrupt_inferior): Remove.
14366 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14367 with a range-based for. Inline code from
14368 gdbsim_interrupt_inferior.
14369
14370 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14371
14372 * infrun.c (proceed): Fix indentation.
14373
14374 2020-01-21 Tom Tromey <tromey@adacore.com>
14375
14376 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14377 * python/python.c (python_extension_ops): Update.
14378 (gdbpy_colorize): New function.
14379 * python/lib/gdb/__init__.py (colorize): New function.
14380 * extension.h (ext_lang_colorize): Declare.
14381 * extension.c (ext_lang_colorize): New function.
14382 * extension-priv.h (struct extension_language_ops) <colorize>: New
14383 member.
14384 * cli/cli-style.c (_initialize_cli_style): Update help text.
14385
14386 2020-01-21 Luis Machado <luis.machado@linaro.org>
14387
14388 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14389 <cond>: Change type to bool.
14390 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14391 (aarch64_displaced_step_cb): Likewise.
14392 (aarch64_displaced_step_tb): Likewise.
14393
14394 2020-01-21 Luis Machado <luis.machado@linaro.org>
14395
14396 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14397 output.
14398
14399 2020-01-21 Luis Machado <luis.machado@linaro.org>
14400
14401 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14402 <pc_adjust>: Adjust the documentation.
14403 (aarch64_displaced_step_fixup): Check if PC really moved before
14404 adjusting it.
14405
14406 2020-01-19 Tom Tromey <tom@tromey.com>
14407
14408 * disasm.c (~gdb_disassembler): New destructor.
14409 (gdb_buffered_insn_length): Call disassemble_free_target.
14410 * disasm.h (class gdb_disassembler): Declare destructor. Use
14411 DISABLE_COPY_AND_ASSIGN.
14412
14413 2020-01-19 Tom Tromey <tom@tromey.com>
14414
14415 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14416 (die_reader_func_ftype): Remove.
14417 (cutu_reader): New class.
14418 (dw2_get_file_names_reader): Remove "data" parameter.
14419 (dw2_get_file_names): Use cutu_reader.
14420 (create_debug_type_hash_table): Update.
14421 (read_cutu_die_from_dwo): Update comment.
14422 (lookup_dwo_unit): Add dwo_name parameter.
14423 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14424 die_reader_func_ftype and data parameters.
14425 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14426 Remove die_reader_func_ftype and data parameters.
14427 (~cutu_reader): New; from init_cutu_and_read_dies.
14428 (cutu_reader::cutu_reader): Rename from
14429 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14430 and data parameters.
14431 (init_cutu_and_read_dies_simple): Remove.
14432 (struct process_psymtab_comp_unit_data): Remove.
14433 (process_psymtab_comp_unit_reader): Remove data parameter; add
14434 want_partial_unit and pretend_language parameters.
14435 (process_psymtab_comp_unit): Use cutu_reader.
14436 (build_type_psymtabs_reader): Remove data parameter.
14437 (build_type_psymtabs_1): Use cutu_reader.
14438 (process_skeletonless_type_unit): Likewise.
14439 (load_partial_comp_unit_reader): Remove.
14440 (load_partial_comp_unit): Use cutu_reader.
14441 (load_full_comp_unit_reader): Remove.
14442 (load_full_comp_unit): Use cutu_reader.
14443 (struct create_dwo_cu_data): Remove.
14444 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14445 dwo_unit parameters.
14446 (create_cus_hash_table): Use cutu_reader.
14447 (struct dwarf2_read_addr_index_data): Remove.
14448 (dwarf2_read_addr_index_reader): Remove.
14449 (dwarf2_read_addr_index): Use cutu_reader.
14450 (read_signatured_type_reader): Remove.
14451 (read_signatured_type): Use cutu_reader.
14452
14453 2020-01-19 Tom Tromey <tom@tromey.com>
14454
14455 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14456 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14457 (tui_wrefresh): Declare.
14458 * tui/tui-wingeneral.c (suppress_output): New global.
14459 (tui_suppress_output, ~tui_suppress_output): New constructor and
14460 destructor.
14461 (tui_wrefresh): New function.
14462 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14463 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14464 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14465 method.
14466 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14467 tui_wrefresh.
14468 (tui_data_window::no_refresh): New method.
14469 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14470 (tui_reg_command): Use tui_suppress_output
14471 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14472 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14473 method.
14474 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14475
14476 2020-01-19 Tom Tromey <tom@tromey.com>
14477
14478 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14479 Handle case where symtab is null.
14480
14481 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14482
14483 * linux-fork.c (one_fork_p): Simplify.
14484
14485 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14486
14487 * top.c (struct qt_args): Remove.
14488 (kill_or_detach): Change return type to void, replace `void *`
14489 parameter with a proper one.
14490 (print_inferior_quit_action): Likewise.
14491 (quit_confirm): Use range-based for loop to iterate over inferiors.
14492 (quit_force): Likewise.
14493
14494 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14495
14496 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14497 `void *` parameter with proper parameters.
14498 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14499 (print_one_inferior): Change return type to void, replace `void *`
14500 parameter with proper parameters.
14501 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14502 inferiors.
14503 (get_other_inferior): Remove.
14504 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14505 inferiors.
14506
14507 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14508
14509 * mi/mi-interp.c (report_initial_inferior): Remove.
14510 (mi_interp::init): Use range-based for to iterate over inferiors.
14511
14512 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14513
14514 * python/py-inferior.c (build_inferior_list): Remove.
14515 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14516
14517 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14518
14519 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14520 (btrace_stitch_trace): Likewise.
14521 * charset.c (intermediate_encoding): Likewise (vaild).
14522 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14523 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14524 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14525
14526 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14527
14528 * windows-tdep.c (windows_get_tlb_type):
14529 Add rtl_user_process_parameters type.
14530
14531 2020-01-16 Pedro Alves <palves@redhat.com>
14532 Norbert Lange <nolange79@gmail.com>
14533
14534 PR build/24805
14535 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14536 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14537 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14538 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14539 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14540 (ps_plog): Redeclare exported functions with default visibility.
14541
14542 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14543
14544 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14545 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14546
14547 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14548
14549 * infcmd.c (post_create_inferior): Use get_thread_regcache
14550 instead of get_current_regcache.
14551
14552 2020-01-14 Tom Tromey <tom@tromey.com>
14553
14554 PR symtab/12535:
14555 * python/python.c (gdbpy_decode_line): Treat empty string the same
14556 as no argument.
14557
14558 2020-01-14 Tom Tromey <tom@tromey.com>
14559
14560 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14561
14562 2020-01-14 Tom Tromey <tom@tromey.com>
14563
14564 * nat/linux-btrace.c: Don't include <config.h>.
14565 * nat/linux-ptrace.c: Don't include <config.h>.
14566 * nat/x86-linux-dregs.c: Don't include <config.h>.
14567
14568 2020-01-14 Tom Tromey <tom@tromey.com>
14569
14570 * configure: Rebuild.
14571 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14572
14573 2020-01-14 Tom Tromey <tom@tromey.com>
14574
14575 * nat/x86-linux-dregs.c: Include configh.h.
14576 * nat/linux-ptrace.c: Include configh.h.
14577 * nat/linux-btrace.c: Include configh.h.
14578 * defs.h: Include config.h, bfd.h.
14579 * configure.ac: Don't source common.host.
14580 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14581 * configure: Rebuild.
14582 * acinclude.m4: Update path.
14583 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14584 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14585 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14586 (CLIBS): Add LIBSUPPORT.
14587 (CDEPS): Likewise.
14588 (COMMON_SFILES): Remove gdbsupport files.
14589 (HFILES_NO_SRCDIR): Likewise.
14590 (stamp-version): Update path to create-version.sh.
14591 (ALLDEPFILES): Remove gdbsupport files.
14592
14593 2020-01-14 Tom Tromey <tom@tromey.com>
14594
14595 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14596 USE_WIN32API when needed.
14597 * configure.ac (USE_WIN32API): Don't define.
14598 (WIN32LIBS): Use WIN32APILIBS.
14599 * configure: Rebuild.
14600
14601 2020-01-14 Tom Tromey <tom@tromey.com>
14602
14603 * configure: Rebuild.
14604 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14605
14606 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14607
14608 * skip.c (skip_function_command): Make skip w/o arguments use the
14609 name of the inlined function if pc is inside any inlined function.
14610
14611 2020-01-14 Luis Machado <luis.machado@linaro.org>
14612
14613 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14614 * infrun.c (resume_1): Likewise.
14615 (handle_inferior_event): Remove stale comment.
14616 * linux-nat.c (linux_nat_target::resume): Update comments.
14617 (save_stop_reason): Likewise.
14618 (linux_nat_filter_event): Likewise.
14619 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14620
14621 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14622
14623 * elfread.c (record_minimal_symbol): Set section index to 0 for
14624 non-allocatable sections.
14625
14626
14627 2020-01-13 Ali Tamur <tamur@google.com>
14628
14629 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14630 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14631 to gdb::optional. Update comments.
14632 (dwo_file): Update comments.
14633 (read_attribute): Update API to take an additional out parameter,
14634 need_reprocess. This is used to mark attributes that need other
14635 attributes (e.g. str_offsets_base) for correct computation which may not
14636 have been read yet.
14637 (read_attribute_reprocess): New function declaration.
14638 (read_addr_index): Likewise.
14639 (read_dwo_str_index): Likewise.
14640 (read_stub_str_index): Likewise.
14641 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14642 (lookup_addr_base): New function definition.
14643 (lookup_ranges_base): Likewise.
14644 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14645 lookup_ranges_base.
14646 (init_cutu_and_read_dies): Update comments.
14647 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14648 unit. This is used to inherit parent's str_offsets_base and addr_base.
14649 Update comments.
14650 (init_cutu_and_read_dies_simple): Reflect API changes.
14651 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14652 (create_cus_hash_table): Change API to take parent compile unit.
14653 Reflect API changes.
14654 (open_and_init_dwo_file): Reflect API changes.
14655 (dwarf2_get_pc_bounds): Update comments.
14656 (dwarf2_record_block_ranges): Likewise.
14657 (read_full_die_1): Change implementation to reprocess attributes that
14658 need str_offsets_base and addr_base.
14659 (partial_die_info::read): Likewise.
14660 (read_attribute_reprocess): New function definition.
14661 (read_attribute_value): Change API to take an additional out parameter,
14662 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14663 when a non-dwo compile unit has index based attributes.
14664 (read_attribute): Reflect API changes.
14665 (read_addr_index_1): Reflect API changes. Update comments.
14666 (dwarf2_read_addr_index_data): Reflect API changes.
14667 (dwarf2_read_addr_index): Likewise.
14668 (read_str_index): Change API and implementation. This becomes a helper
14669 to be used by the new string index related methods. Update error
14670 message and comments.
14671 (read_dwo_str_index): New function definition.
14672 (read_stub_str_index): Likewise.
14673 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14674 * symfile.h (dwarf2_debug_sections): Likewise.
14675 * xcoffread.c (dwarf2_debug_sections): Likewise.
14676
14677 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14678
14679 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14680 core_reg_sect type to gdb_byte *.
14681 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14682 * cris-tdep.c (fetch_core_registers): Likewise.
14683 * corelow.c (core_target::get_core_register_section): Change
14684 type of `contents` to gdb::byte_vector.
14685
14686 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14687
14688 * tui/tui-wingeneral.c (box_win): Position the title in the center
14689 of the border.
14690
14691 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14692
14693 * corelow.c (core_target::get_core_register_section): Use
14694 std::vector instead of alloca.
14695
14696 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14697
14698 * warning.m4: Add -Wmissing-declarations to build_warnings.
14699 * configure: Re-generate.
14700
14701 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14702
14703 * python/python.c (init__gdb_module): Add declaration.
14704
14705 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14706
14707 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14708 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14709 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14710 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14711 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14712 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14713 * ada-exp.y (_initialize_ada_exp): Add declaration.
14714 * ada-lang.c (_initialize_ada_language): Add declaration.
14715 * ada-tasks.c (_initialize_tasks): Add declaration.
14716 * agent.c (_initialize_agent): Add declaration.
14717 * aix-thread.c (_initialize_aix_thread): Add declaration.
14718 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14719 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14720 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14721 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14722 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14723 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14724 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14725 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14726 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14727 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14728 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14729 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14730 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14731 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14732 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14733 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14734 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14735 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14736 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14737 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14738 * annotate.c (_initialize_annotate): Add declaration.
14739 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14740 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14741 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14742 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14743 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14744 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14745 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14746 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14747 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14748 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14749 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14750 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14751 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14752 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14753 * auto-load.c (_initialize_auto_load): Add declaration.
14754 * auxv.c (_initialize_auxv): Add declaration.
14755 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14756 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14757 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14758 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14759 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14760 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14761 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14762 * breakpoint.c (_initialize_breakpoint): Add declaration.
14763 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14764 * btrace.c (_initialize_btrace): Add declaration.
14765 * charset.c (_initialize_charset): Add declaration.
14766 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14767 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14768 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14769 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14770 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14771 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14772 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14773 * coffread.c (_initialize_coffread): Add declaration.
14774 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14775 * compile/compile.c (_initialize_compile): Add declaration.
14776 * complaints.c (_initialize_complaints): Add declaration.
14777 * completer.c (_initialize_completer): Add declaration.
14778 * copying.c (_initialize_copying): Add declaration.
14779 * corefile.c (_initialize_core): Add declaration.
14780 * corelow.c (_initialize_corelow): Add declaration.
14781 * cp-abi.c (_initialize_cp_abi): Add declaration.
14782 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14783 * cp-support.c (_initialize_cp_support): Add declaration.
14784 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14785 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14786 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14787 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14788 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14789 * ctfread.c (_initialize_ctfread): Add declaration.
14790 * d-lang.c (_initialize_d_language): Add declaration.
14791 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14792 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14793 * dbxread.c (_initialize_dbxread): Add declaration.
14794 * dcache.c (_initialize_dcache): Add declaration.
14795 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14796 * disasm.c (_initialize_disasm): Add declaration.
14797 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14798 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14799 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14800 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14801 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14802 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14803 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14804 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14805 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14806 * elfread.c (_initialize_elfread): Add declaration.
14807 * exec.c (_initialize_exec): Add declaration.
14808 * extension.c (_initialize_extension): Add declaration.
14809 * f-lang.c (_initialize_f_language): Add declaration.
14810 * f-valprint.c (_initialize_f_valprint): Add declaration.
14811 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14812 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14813 * filesystem.c (_initialize_filesystem): Add declaration.
14814 * findcmd.c (_initialize_mem_search): Add declaration.
14815 * findvar.c (_initialize_findvar): Add declaration.
14816 * fork-child.c (_initialize_fork_child): Add declaration.
14817 * frame-base.c (_initialize_frame_base): Add declaration.
14818 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14819 * frame.c (_initialize_frame): Add declaration.
14820 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14821 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14822 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14823 * gcore.c (_initialize_gcore): Add declaration.
14824 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14825 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14826 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14827 * gdbarch.c (_initialize_gdbarch): Add declaration.
14828 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14829 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14830 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14831 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14832 * go-lang.c (_initialize_go_language): Add declaration.
14833 * go32-nat.c (_initialize_go32_nat): Add declaration.
14834 * guile/guile.c (_initialize_guile): Add declaration.
14835 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14836 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14837 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14838 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14839 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14840 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14841 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14842 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14843 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14844 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14845 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14846 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14847 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14848 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14849 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14850 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14851 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14852 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14853 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14854 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14855 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14856 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14857 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14858 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14859 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14860 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14861 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14862 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14863 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14864 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14865 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14866 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14867 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14868 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14869 * infcall.c (_initialize_infcall): Add declaration.
14870 * infcmd.c (_initialize_infcmd): Add declaration.
14871 * inflow.c (_initialize_inflow): Add declaration.
14872 * infrun.c (_initialize_infrun): Add declaration.
14873 * interps.c (_initialize_interpreter): Add declaration.
14874 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14875 * jit.c (_initialize_jit): Add declaration.
14876 * language.c (_initialize_language): Add declaration.
14877 * linux-fork.c (_initialize_linux_fork): Add declaration.
14878 * linux-nat.c (_initialize_linux_nat): Add declaration.
14879 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14880 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14881 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14882 * m2-lang.c (_initialize_m2_language): Add declaration.
14883 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14884 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14885 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14886 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14887 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14888 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14889 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14890 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14891 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14892 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14893 * machoread.c (_initialize_machoread): Add declaration.
14894 * macrocmd.c (_initialize_macrocmd): Add declaration.
14895 * macroscope.c (_initialize_macroscope): Add declaration.
14896 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14897 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14898 * maint.c (_initialize_maint_cmds): Add declaration.
14899 * mdebugread.c (_initialize_mdebugread): Add declaration.
14900 * memattr.c (_initialize_mem): Add declaration.
14901 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14902 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14903 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14904 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14905 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14906 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14907 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14908 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14909 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14910 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14911 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14912 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14913 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14914 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14915 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14916 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14917 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14918 * mipsread.c (_initialize_mipsread): Add declaration.
14919 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14920 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14921 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14922 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14923 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14924 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14925 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14926 * nto-procfs.c (_initialize_procfs): Add declaration.
14927 * objc-lang.c (_initialize_objc_language): Add declaration.
14928 * observable.c (_initialize_observer): Add declaration.
14929 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14930 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14931 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14932 * osabi.c (_initialize_gdb_osabi): Add declaration.
14933 * osdata.c (_initialize_osdata): Add declaration.
14934 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14935 * parse.c (_initialize_parse): Add declaration.
14936 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14937 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14938 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14939 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14940 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14941 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14942 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14943 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14944 * printcmd.c (_initialize_printcmd): Add declaration.
14945 * probe.c (_initialize_probe): Add declaration.
14946 * proc-api.c (_initialize_proc_api): Add declaration.
14947 * proc-events.c (_initialize_proc_events): Add declaration.
14948 * proc-service.c (_initialize_proc_service): Add declaration.
14949 * procfs.c (_initialize_procfs): Add declaration.
14950 * producer.c (_initialize_producer): Add declaration.
14951 * psymtab.c (_initialize_psymtab): Add declaration.
14952 * python/python.c (_initialize_python): Add declaration.
14953 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14954 * record-btrace.c (_initialize_record_btrace): Add declaration.
14955 * record-full.c (_initialize_record_full): Add declaration.
14956 * record.c (_initialize_record): Add declaration.
14957 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14958 * regcache.c (_initialize_regcache): Add declaration.
14959 * reggroups.c (_initialize_reggroup): Add declaration.
14960 * remote-notif.c (_initialize_notif): Add declaration.
14961 * remote-sim.c (_initialize_remote_sim): Add declaration.
14962 * remote.c (_initialize_remote): Add declaration.
14963 * reverse.c (_initialize_reverse): Add declaration.
14964 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14965 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14966 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14967 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14968 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14969 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14970 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14971 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14972 Add declaration.
14973 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14974 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14975 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14976 * rust-exp.y (_initialize_rust_exp): Add declaration.
14977 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14978 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14979 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14980 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14981 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14982 * score-tdep.c (_initialize_score_tdep): Add declaration.
14983 * ser-go32.c (_initialize_ser_dos): Add declaration.
14984 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14985 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14986 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14987 * ser-uds.c (_initialize_ser_socket): Add declaration.
14988 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14989 * serial.c (_initialize_serial): Add declaration.
14990 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14991 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14992 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14993 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14994 * skip.c (_initialize_step_skip): Add declaration.
14995 * sol-thread.c (_initialize_sol_thread): Add declaration.
14996 * solib-aix.c (_initialize_solib_aix): Add declaration.
14997 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14998 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14999 * solib-frv.c (_initialize_frv_solib): Add declaration.
15000 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15001 * solib-target.c (_initialize_solib_target): Add declaration.
15002 * solib.c (_initialize_solib): Add declaration.
15003 * source-cache.c (_initialize_source_cache): Add declaration.
15004 * source.c (_initialize_source): Add declaration.
15005 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15006 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15007 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15008 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15009 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15010 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15011 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15012 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15013 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15014 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15015 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15016 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15017 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15018 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15019 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15020 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15021 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15022 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15023 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15024 * stabsread.c (_initialize_stabsread): Add declaration.
15025 * stack.c (_initialize_stack): Add declaration.
15026 * stap-probe.c (_initialize_stap_probe): Add declaration.
15027 * std-regs.c (_initialize_frame_reg): Add declaration.
15028 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15029 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15030 * symfile.c (_initialize_symfile): Add declaration.
15031 * symmisc.c (_initialize_symmisc): Add declaration.
15032 * symtab.c (_initialize_symtab): Add declaration.
15033 * target.c (_initialize_target): Add declaration.
15034 * target-connection.c (_initialize_target_connection): Add
15035 declaration.
15036 * target-dcache.c (_initialize_target_dcache): Add declaration.
15037 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15038 * thread.c (_initialize_thread): Add declaration.
15039 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15040 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15041 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15042 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15043 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15044 * tracectf.c (_initialize_ctf): Add declaration.
15045 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15046 * tracefile.c (_initialize_tracefile): Add declaration.
15047 * tracepoint.c (_initialize_tracepoint): Add declaration.
15048 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15049 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15050 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15051 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15052 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15053 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15054 * tui/tui.c (_initialize_tui): Add declaration.
15055 * typeprint.c (_initialize_typeprint): Add declaration.
15056 * ui-style.c (_initialize_ui_style): Add declaration.
15057 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15058 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15059 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15060 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15061 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15062 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15063 * unittests/filtered_iterator-selftests.c
15064 (_initialize_filtered_iterator_selftests): Add declaration.
15065 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15066 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15067 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15068 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15069 * unittests/main-thread-selftests.c
15070 (_initialize_main_thread_selftests): Add declaration.
15071 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15072 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15073 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15074 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15075 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15076 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15077 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15078 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15079 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15080 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15081 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15082 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15083 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15084 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15085 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15086 declaration.
15087 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15088 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15089 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15090 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15091 * user-regs.c (_initialize_user_regs): Add declaration.
15092 * utils.c (_initialize_utils): Add declaration.
15093 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15094 * valops.c (_initialize_valops): Add declaration.
15095 * valprint.c (_initialize_valprint): Add declaration.
15096 * value.c (_initialize_values): Add declaration.
15097 * varobj.c (_initialize_varobj): Add declaration.
15098 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15099 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15100 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15101 * windows-nat.c (_initialize_windows_nat): Add declaration.
15102 (_initialize_check_for_gdb_ini): Add declaration.
15103 (_initialize_loadable): Add declaration.
15104 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15105 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15106 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15107 * xcoffread.c (_initialize_xcoffread): Add declaration.
15108 * xml-support.c (_initialize_xml_support): Add declaration.
15109 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15110 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15111 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15112 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15113
15114 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15115
15116 * regformats/regdat.sh: Generate declaration for init function.
15117
15118 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15119
15120 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15121 up.
15122 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15123 close_one_inferior>: New methods.
15124 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15125 pass down target to find_inferior_pid.
15126 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15127 Pass down target to find_inferior_ptid.
15128 (gdbsim_target::create_inferior): Pass down target to
15129 add_thread_silent.
15130 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15131 target down to find_inferior_ptid and switch_to_thread.
15132 (gdbsim_target::close): Update to call close_one_inferior.
15133 (struct resume_data): Remove.
15134 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15135 directly, rather than through a void pointer.
15136 (gdbsim_target::resume): Update to call resume_one_inferior.
15137
15138 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15139
15140 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15141
15142 2020-01-12 Pedro Alves <palves@redhat.com>
15143
15144 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15145 directly for the current inferior instead of
15146 discard_all_inferiors.
15147 (discard_all_inferiors): Delete.
15148
15149 2020-01-11 Tom Tromey <tom@tromey.com>
15150
15151 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15152 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15153 deprecated_safe_get_selected_frame.
15154
15155 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15156
15157 * inferior.c (print_inferior): Switch inferior before printing it.
15158
15159 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15160 Pedro Alves <palves@redhat.com>
15161
15162 * progspace-and-thread.c (switch_to_program_space_and_thread):
15163 Assert there's an inferior for PSPACE. Use
15164 switch_to_inferior_no_thread to switch the inferior too.
15165 * progspace.c (program_space::~program_space): Call
15166 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15167 (program_space::free_all_objfiles): Don't call clear_symtab_users
15168 here.
15169 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15170
15171 2020-01-10 Pedro Alves <palves@redhat.com>
15172
15173 * NEWS: Mention multi-target debugging, "info connections", and
15174 "add-inferior -no-connection".
15175
15176 2020-01-10 Pedro Alves <palves@redhat.com>
15177
15178 * infrun.c: Include "target-connection.h".
15179 (check_multi_target_resumption): New.
15180 (proceed): Call it.
15181 * target-connection.c (make_target_connection_string): Make
15182 extern.
15183 * target-connection.h (make_target_connection_string): Declare.
15184
15185 2020-01-10 Pedro Alves <palves@redhat.com>
15186
15187 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15188 * inferior.c (uiout_field_connection): New function.
15189 (print_inferior): Add new "connection-id" column.
15190 (add_inferior_command): Show connection number/string of added
15191 inferior.
15192 * process-stratum-target.h
15193 (process_stratum_target::connection_string): New virtual method.
15194 (process_stratum_target::connection_number): New field.
15195 * remote.c (remote_target::connection_string): New override.
15196 * target-connection.c: New file.
15197 * target-connection.h: New file.
15198 * target.c (decref_target): Remove process_stratum targets from
15199 the connection list.
15200 (target_stack::push): Add process_stratum targets to the
15201 connection list.
15202
15203 2020-01-10 Pedro Alves <palves@redhat.com>
15204
15205 Revert:
15206 2016-04-12 Pedro Alves <palves@redhat.com>
15207 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15208 Remove references to name.
15209 * serial.h (struct serial) <name>: Delete.
15210
15211 2020-01-10 Pedro Alves <palves@redhat.com>
15212
15213 * gdbarch-selftests.c (register_to_value_test): Remove "target
15214 already pushed" check.
15215
15216 2020-01-10 Pedro Alves <palves@redhat.com>
15217 John Baldwin <jhb@FreeBSD.org>
15218
15219 * aarch64-linux-nat.c
15220 (aarch64_linux_nat_target::thread_architecture): Adjust.
15221 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15222 (task_command_1): Likewise.
15223 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15224 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15225 (aix_thread_target::store_registers)
15226 (aix_thread_target::thread_alive): Adjust.
15227 * amd64-fbsd-tdep.c: Include "inferior.h".
15228 (amd64fbsd_get_thread_local_address): Pass down target.
15229 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15230 thread's gdbarch instead of target_gdbarch.
15231 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15232 get_last_target_status.
15233 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15234 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15235 inferiors.
15236 (update_inserted_breakpoint_locations): Skip if inferiors with no
15237 execution.
15238 (update_global_location_list): When handling moribund locations,
15239 find representative inferior for location's pspace, and use thread
15240 count of its process_stratum target.
15241 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15242 * bsd-uthread.c (bsd_uthread_target::wait): Use
15243 as_process_stratum_target and adjust thread_change_ptid and
15244 add_thread calls.
15245 (bsd_uthread_target::update_thread_list): Use
15246 as_process_stratum_target and adjust find_thread_ptid,
15247 thread_change_ptid and add_thread calls.
15248 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15249 find_thread_ptid call.
15250 * corelow.c (add_to_thread_list): Adjust add_thread call.
15251 (core_target_open): Adjust add_thread_silent and thread_count
15252 calls.
15253 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15254 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15255 * event-top.c (async_disconnect): Pop targets from all inferiors.
15256 * exec.c (add_target_sections): Push exec target on all inferiors
15257 sharing the program space.
15258 (remove_target_sections): Remove the exec target from all
15259 inferiors sharing the program space.
15260 (exec_on_vfork): New.
15261 * exec.h (exec_on_vfork): Declare.
15262 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15263 Pass it down.
15264 (fbsd_nat_target::update_thread_list): Adjust.
15265 (fbsd_nat_target::resume): Adjust.
15266 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15267 down.
15268 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15269 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15270 get_thread_arch_regcache call.
15271 * fork-child.c (gdb_startup_inferior): Pass target down to
15272 startup_inferior and set_executing.
15273 * gdbthread.h (struct process_stratum_target): Forward declare.
15274 (add_thread, add_thread_silent, add_thread_with_info)
15275 (in_thread_list): Add process_stratum_target parameter.
15276 (find_thread_ptid(inferior*, ptid_t)): New overload.
15277 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15278 parameter.
15279 (all_threads()): Delete overload.
15280 (all_threads, all_non_exited_threads): Add process_stratum_target
15281 parameter.
15282 (all_threads_safe): Use brace initialization.
15283 (thread_count): Add process_stratum_target parameter.
15284 (set_resumed, set_running, set_stop_requested, set_executing)
15285 (threads_are_executing, finish_thread_state): Add
15286 process_stratum_target parameter.
15287 (switch_to_thread): Use is_current_thread.
15288 * i386-fbsd-tdep.c: Include "inferior.h".
15289 (i386fbsd_get_thread_local_address): Pass down target.
15290 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15291 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15292 have_inferiors check.
15293 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15294 (inf_ptrace_target::attach): Adjust.
15295 * infcall.c (run_inferior_call): Adjust.
15296 * infcmd.c (run_command_1): Pass target to
15297 scoped_finish_thread_state.
15298 (proceed_thread_callback): Skip inferiors with no execution.
15299 (continue_command): Rename 'all_threads' local to avoid hiding
15300 'all_threads' function. Adjust get_last_target_status call.
15301 (prepare_one_step): Adjust set_running call.
15302 (signal_command): Use user_visible_resume_target. Compare thread
15303 pointers instead of inferior_ptid.
15304 (info_program_command): Adjust to pass down target.
15305 (attach_command): Mark target's 'thread_executing' flag.
15306 (stop_current_target_threads_ns): New, factored out from ...
15307 (interrupt_target_1): ... this. Switch inferior before making
15308 target calls.
15309 * inferior-iter.h
15310 (struct all_inferiors_iterator, struct all_inferiors_range)
15311 (struct all_inferiors_safe_range)
15312 (struct all_non_exited_inferiors_range): Filter on
15313 process_stratum_target too. Remove explicit.
15314 * inferior.c (inferior::inferior): Push dummy target on target
15315 stack.
15316 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15317 Add process_stratum_target parameter, and pass it down.
15318 (have_live_inferiors): Adjust.
15319 (switch_to_inferior_and_push_target): New.
15320 (add_inferior_command, clone_inferior_command): Handle
15321 "-no-connection" parameter. Use
15322 switch_to_inferior_and_push_target.
15323 (_initialize_inferior): Mention "-no-connection" option in
15324 the help of "add-inferior" and "clone-inferior" commands.
15325 * inferior.h: Include "process-stratum-target.h".
15326 (interrupt_target_1): Use bool.
15327 (struct inferior) <push_target, unpush_target, target_is_pushed,
15328 find_target_beneath, top_target, process_target, target_at,
15329 m_stack>: New.
15330 (discard_all_inferiors): Delete.
15331 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15332 (all_inferiors, all_non_exited_inferiors): Add
15333 process_stratum_target parameter.
15334 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15335 (target_last_proc_target): New global.
15336 (follow_fork_inferior): Push target on new inferior. Pass target
15337 to add_thread_silent. Call exec_on_vfork. Handle target's
15338 reference count.
15339 (follow_fork): Adjust get_last_target_status call. Also consider
15340 target.
15341 (follow_exec): Push target on new inferior.
15342 (struct execution_control_state) <target>: New field.
15343 (user_visible_resume_target): New.
15344 (do_target_resume): Call target_async.
15345 (resume_1): Set target's threads_executing flag. Consider resume
15346 target.
15347 (commit_resume_all_targets): New.
15348 (proceed): Also consider resume target. Skip threads of inferiors
15349 with no execution. Commit resumtion in all targets.
15350 (start_remote): Pass current inferior to wait_for_inferior.
15351 (infrun_thread_stop_requested): Consider target as well. Pass
15352 thread_info pointer to clear_inline_frame_state instead of ptid.
15353 (infrun_thread_thread_exit): Consider target as well.
15354 (random_pending_event_thread): New inferior parameter. Use it.
15355 (do_target_wait): Rename to ...
15356 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15357 down.
15358 (threads_are_resumed_pending_p, do_target_wait): New.
15359 (prepare_for_detach): Adjust calls.
15360 (wait_for_inferior): New inferior parameter. Handle it. Use
15361 do_target_wait_1 instead of do_target_wait.
15362 (fetch_inferior_event): Adjust. Switch to representative
15363 inferior. Pass target down.
15364 (set_last_target_status): Add process_stratum_target parameter.
15365 Save target in global.
15366 (get_last_target_status): Add process_stratum_target parameter and
15367 handle it.
15368 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15369 (context_switch): Check inferior_ptid == null_ptid before calling
15370 inferior_thread().
15371 (get_inferior_stop_soon): Pass down target.
15372 (wait_one): Rename to ...
15373 (poll_one_curr_target): ... this.
15374 (struct wait_one_event): New.
15375 (wait_one): New.
15376 (stop_all_threads): Adjust.
15377 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15378 event's target.
15379 (switch_back_to_stepped_thread): Also consider target.
15380 (print_stop_event): Update.
15381 (normal_stop): Update. Also consider the resume target.
15382 * infrun.h (wait_for_inferior): Remove declaration.
15383 (user_visible_resume_target): New declaration.
15384 (get_last_target_status, set_last_target_status): New
15385 process_stratum_target parameter.
15386 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15387 process_stratum_target parameter, and use it.
15388 (clear_inline_frame_state (thread_info*)): New.
15389 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15390 process_stratum_target parameter.
15391 (clear_inline_frame_state (thread_info*)): Declare.
15392 * linux-fork.c (delete_checkpoint_command): Pass target down to
15393 find_thread_ptid.
15394 (checkpoint_command): Adjust.
15395 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15396 instead of just tweaking inferior_ptid.
15397 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15398 (exit_lwp): Pass target down to find_thread_ptid.
15399 (attach_proc_task_lwp_callback): Pass target down to
15400 add_thread/set_running/set_executing.
15401 (linux_nat_target::attach): Pass target down to
15402 thread_change_ptid.
15403 (get_detach_signal): Pass target down to find_thread_ptid.
15404 Consider last target status's target.
15405 (linux_resume_one_lwp_throw, resume_lwp)
15406 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15407 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15408 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15409 (linux_nat_target::async_wait_fd): New.
15410 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15411 target down.
15412 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15413 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15414 * linux-thread-db.c (struct thread_db_info::process_target): New
15415 field.
15416 (add_thread_db_info): Save target.
15417 (get_thread_db_info): New process_stratum_target parameter. Also
15418 match target.
15419 (delete_thread_db_info): New process_stratum_target parameter.
15420 Also match target.
15421 (thread_from_lwp): Adjust to pass down target.
15422 (thread_db_notice_clone): Pass down target.
15423 (check_thread_db_callback): Pass down target.
15424 (try_thread_db_load_1): Always push the thread_db target.
15425 (try_thread_db_load, record_thread): Pass target down.
15426 (thread_db_target::detach): Pass target down. Always unpush the
15427 thread_db target.
15428 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15429 target down. Always unpush the thread_db target.
15430 (find_new_threads_callback, thread_db_find_new_threads_2)
15431 (thread_db_target::update_thread_list): Pass target down.
15432 (thread_db_target::pid_to_str): Pass current inferior down.
15433 (thread_db_target::get_thread_local_address): Pass target down.
15434 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15435 target down.
15436 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15437 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15438 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15439 (procfs_init_inferior): Rename to ...
15440 (procfs_target::procfs_init_inferior): ... this and adjust.
15441 (procfs_target::create_inferior, procfs_notice_thread)
15442 (procfs_do_thread_registers): Adjust.
15443 * ppc-fbsd-tdep.c: Include "inferior.h".
15444 (ppcfbsd_get_thread_local_address): Pass down target.
15445 * proc-service.c (ps_xfer_memory): Switch current inferior and
15446 program space as well.
15447 (get_ps_regcache): Pass target down.
15448 * process-stratum-target.c
15449 (process_stratum_target::thread_address_space)
15450 (process_stratum_target::thread_architecture): Pass target down.
15451 * process-stratum-target.h
15452 (process_stratum_target::threads_executing): New field.
15453 (as_process_stratum_target): New.
15454 * ravenscar-thread.c
15455 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15456 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15457 down.
15458 * record-btrace.c (record_btrace_target::info_record): Adjust.
15459 (record_btrace_target::record_method)
15460 (record_btrace_target::record_is_replaying)
15461 (record_btrace_target::fetch_registers)
15462 (get_thread_current_frame_id, record_btrace_target::resume)
15463 (record_btrace_target::wait, record_btrace_target::stop): Pass
15464 target down.
15465 * record-full.c (record_full_wait_1): Switch to event thread.
15466 Pass target down.
15467 * regcache.c (regcache::regcache)
15468 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15469 process_stratum_target parameter and handle it.
15470 (current_thread_target): New global.
15471 (get_thread_regcache): Add process_stratum_target parameter and
15472 handle it. Switch inferior before calling target method.
15473 (get_thread_regcache): Pass target down.
15474 (get_thread_regcache_for_ptid): Pass target down.
15475 (registers_changed_ptid): Add process_stratum_target parameter and
15476 handle it.
15477 (registers_changed_thread, registers_changed): Pass target down.
15478 (test_get_thread_arch_aspace_regcache): New.
15479 (current_regcache_test): Define a couple local test_target_ops
15480 instances and use them for testing.
15481 (readwrite_regcache): Pass process_stratum_target parameter.
15482 (cooked_read_test, cooked_write_test): Pass mock_target down.
15483 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15484 (get_thread_arch_aspace_regcache): Add process_stratum_target
15485 parameter.
15486 (regcache::target): New method.
15487 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15488 (regcache::registers_changed_ptid): Add process_stratum_target
15489 parameter.
15490 (regcache::m_target): New field.
15491 (registers_changed_ptid): Add process_stratum_target parameter.
15492 * remote.c (remote_state::supports_vCont_probed): New field.
15493 (remote_target::async_wait_fd): New method.
15494 (remote_unpush_and_throw): Add remote_target parameter.
15495 (get_current_remote_target): Adjust.
15496 (remote_target::remote_add_inferior): Push target.
15497 (remote_target::remote_add_thread)
15498 (remote_target::remote_notice_new_inferior)
15499 (get_remote_thread_info): Pass target down.
15500 (remote_target::update_thread_list): Skip threads of inferiors
15501 bound to other targets. (remote_target::close): Don't discard
15502 inferiors. (remote_target::add_current_inferior_and_thread)
15503 (remote_target::process_initial_stop_replies)
15504 (remote_target::start_remote)
15505 (remote_target::remote_serial_quit_handler): Pass down target.
15506 (remote_target::remote_unpush_target): New remote_target
15507 parameter. Unpush the target from all inferiors.
15508 (remote_target::remote_unpush_and_throw): New remote_target
15509 parameter. Pass it down.
15510 (remote_target::open_1): Check whether the current inferior has
15511 execution instead of checking whether any inferior is live. Pass
15512 target down.
15513 (remote_target::remote_detach_1): Pass down target. Use
15514 remote_unpush_target.
15515 (extended_remote_target::attach): Pass down target.
15516 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15517 (remote_target::append_resumption): Pass down target.
15518 (remote_target::append_pending_thread_resumptions)
15519 (remote_target::remote_resume_with_hc, remote_target::resume)
15520 (remote_target::commit_resume): Pass down target.
15521 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15522 (remote_target::interrupt_query)
15523 (remote_target::remove_new_fork_children)
15524 (remote_target::check_pending_events_prevent_wildcard_vcont)
15525 (remote_target::remote_parse_stop_reply)
15526 (remote_target::process_stop_reply): Pass down target.
15527 (first_remote_resumed_thread): New remote_target parameter. Pass
15528 it down.
15529 (remote_target::wait_as): Pass down target.
15530 (unpush_and_perror): New remote_target parameter. Pass it down.
15531 (remote_target::readchar, remote_target::remote_serial_write)
15532 (remote_target::getpkt_or_notif_sane_1)
15533 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15534 down target.
15535 (remote_target::mourn_inferior): Pass down target. Use
15536 remote_unpush_target.
15537 (remote_target::core_of_thread)
15538 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15539 (remote_target::pid_to_exec_file)
15540 (remote_target::thread_handle_to_thread_info): Pass down target.
15541 (remote_target::async_wait_fd): New.
15542 * riscv-fbsd-tdep.c: Include "inferior.h".
15543 (riscv_fbsd_get_thread_local_address): Pass down target.
15544 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15545 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15546 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15547 Adjust.
15548 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15549 * solib-svr4.c (enable_break): Pass down target.
15550 * spu-multiarch.c (parse_spufs_run): Pass down target.
15551 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15552 * target-delegates.c: Regenerate.
15553 * target.c (g_target_stack): Delete.
15554 (current_top_target): Return the current inferior's top target.
15555 (target_has_execution_1): Refer to the passed-in inferior's top
15556 target.
15557 (target_supports_terminal_ours): Check whether the initial
15558 inferior was already created.
15559 (decref_target): New.
15560 (target_stack::push): Incref/decref the target.
15561 (push_target, push_target, unpush_target): Adjust.
15562 (target_stack::unpush): Defref target.
15563 (target_is_pushed): Return bool. Adjust to refer to the current
15564 inferior's target stack.
15565 (dispose_inferior): Delete, and inline parts ...
15566 (target_preopen): ... here. Only dispose of the current inferior.
15567 (target_detach): Hold strong target reference while detaching.
15568 Pass target down.
15569 (target_thread_name): Add assertion.
15570 (target_resume): Pass down target.
15571 (target_ops::beneath, find_target_at): Adjust to refer to the
15572 current inferior's target stack.
15573 (get_dummy_target): New.
15574 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15575 has a thread running.
15576 (initialize_targets): Rename to ...
15577 (_initialize_target): ... this.
15578 * target.h: Include "gdbsupport/refcounted-object.h".
15579 (struct target_ops): Inherit refcounted_object.
15580 (target_ops::shortname, target_ops::longname): Make const.
15581 (target_ops::async_wait_fd): New method.
15582 (decref_target): Declare.
15583 (struct target_ops_ref_policy): New.
15584 (target_ops_ref): New typedef.
15585 (get_dummy_target): Declare function.
15586 (target_is_pushed): Return bool.
15587 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15588 (all_matching_threads_iterator::all_matching_threads_iterator):
15589 Handle filter target.
15590 * thread-iter.h (struct all_matching_threads_iterator, struct
15591 all_matching_threads_range, class all_non_exited_threads_range):
15592 Filter by target too. Remove explicit.
15593 * thread.c (threads_executing): Delete.
15594 (inferior_thread): Pass down current inferior.
15595 (clear_thread_inferior_resources): Pass down thread pointer
15596 instead of ptid_t.
15597 (add_thread_silent, add_thread_with_info, add_thread): Add
15598 process_stratum_target parameter. Use it for thread and inferior
15599 searches.
15600 (is_current_thread): New.
15601 (thread_info::deletable): Use it.
15602 (find_thread_ptid, thread_count, in_thread_list)
15603 (thread_change_ptid, set_resumed, set_running): New
15604 process_stratum_target parameter. Pass it down.
15605 (set_executing): New process_stratum_target parameter. Pass it
15606 down. Adjust reference to 'threads_executing'.
15607 (threads_are_executing): New process_stratum_target parameter.
15608 Adjust reference to 'threads_executing'.
15609 (set_stop_requested, finish_thread_state): New
15610 process_stratum_target parameter. Pass it down.
15611 (switch_to_thread): Also match inferior.
15612 (switch_to_thread): New process_stratum_target parameter. Pass it
15613 down.
15614 (update_threads_executing): Reimplement.
15615 * top.c (quit_force): Pop targets from all inferior.
15616 (gdb_init): Don't call initialize_targets.
15617 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15618 Declare.
15619 (windows_add_thread, windows_delete_thread): Adjust.
15620 (get_windows_debug_event): Rename to ...
15621 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15622 * tracefile-tfile.c (tfile_target_open): Pass down target.
15623 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15624 Forward declare.
15625 (switch_to_thread): Add process_stratum_target parameter.
15626 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15627 parameter. Use it.
15628 (mi_on_resume): Pass target down.
15629 * nat/fork-inferior.c (startup_inferior): Add
15630 process_stratum_target parameter. Pass it down.
15631 * nat/fork-inferior.h (startup_inferior): Add
15632 process_stratum_target parameter.
15633 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15634
15635 2020-01-10 Pedro Alves <palves@redhat.com>
15636
15637 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15638 directly. Instead find the first thread in the thread list and
15639 use switch_to_thread.
15640
15641 2020-01-10 Pedro Alves <palves@redhat.com>
15642
15643 * remote.c (remote_target::remote_add_inferior): Don't bind a
15644 process to the current inferior if the current inferior is already
15645 bound to a process.
15646
15647 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15648 Pedro Alves <palves@redhat.com>
15649
15650 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15651 If no process is specified, return null_ptid instead of
15652 inferior_ptid.
15653 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15654 TARGET_WAITKIND_SIGNALLED with no pid.
15655
15656 2020-01-10 Pedro Alves <palves@redhat.com>
15657
15658 * remote.c (first_remote_resumed_thread): New.
15659 (remote_target::wait_as): Use it as default event_ptid instead of
15660 inferior_ptid.
15661
15662 2020-01-10 Pedro Alves <palves@redhat.com>
15663
15664 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15665
15666 2020-01-10 Pedro Alves <palves@redhat.com>
15667
15668 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15669 not -1.
15670
15671 2020-01-10 Pedro Alves <palves@redhat.com>
15672
15673 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15674 ptid to get_last_target_status.
15675 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15676 ptid to get_last_target_status.
15677 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15678 get_last_target_status.
15679 (info_program_command): Don't pass a target_waitstatus to
15680 get_last_target_status.
15681 * infrun.c (init_wait_for_inferior): Use
15682 nullify_last_target_wait_ptid.
15683 (get_last_target_status): Handle nullptr arguments.
15684 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15685 (print_stop_event): Don't pass a ptid to get_last_target_status.
15686 (normal_stop): Don't pass a ptid to get_last_target_status.
15687 * infrun.h (get_last_target_status, set_last_target_status): Move
15688 comments here and update.
15689 (nullify_last_target_wait_ptid): Declare.
15690 * linux-fork.c (fork_load_infrun_state): Remove local extern
15691 declaration of nullify_last_target_wait_ptid.
15692 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15693 to get_last_target_status.
15694
15695 2020-01-10 Pedro Alves <palves@redhat.com>
15696
15697 * gdbthread.h (scoped_restore_current_thread)
15698 <dont_restore, restore, m_dont_restore>: Declare.
15699 * thread.c (thread_alive): Add assertion. Return bool.
15700 (switch_to_thread_if_alive): New.
15701 (prune_threads): Switch inferior/thread.
15702 (print_thread_info_1): Switch thread before calling target methods.
15703 (scoped_restore_current_thread::restore): New, factored out from
15704 ...
15705 (scoped_restore_current_thread::~scoped_restore_current_thread):
15706 ... this.
15707 (scoped_restore_current_thread::scoped_restore_current_thread):
15708 Add assertion.
15709 (thread_apply_all_command, thread_select): Use
15710 switch_to_thread_if_alive.
15711 * infrun.c (proceed, restart_threads, handle_signal_stop)
15712 (switch_back_to_stepped_thread): Switch current thread before
15713 calling target methods.
15714
15715 2020-01-10 Pedro Alves <palves@redhat.com>
15716
15717 * inferior.c (switch_to_inferior_no_thread): New function,
15718 factored out from ...
15719 (inferior_command): ... here.
15720 * inferior.h (switch_to_inferior_no_thread): Declare.
15721 * mi/mi-main.c (run_one_inferior): Use
15722 switch_to_inferior_no_thread.
15723
15724 2020-01-10 Pedro Alves <palves@redhat.com>
15725
15726 * infcmd.c (kill_command): Remove dead code.
15727
15728 2020-01-10 Pedro Alves <palves@redhat.com>
15729
15730 * remote.c (remote_target::mourn_inferior): No longer check
15731 whether the target is running.
15732
15733 2020-01-10 Pedro Alves <palves@redhat.com>
15734
15735 * corelow.c (core_target::has_execution): Change parameter type to
15736 inferior pointer.
15737 * inferior.c (number_of_live_inferiors): Use
15738 inferior::has_execution instead of target_has_execution_1.
15739 * inferior.h (inferior::has_execution): New.
15740 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15741 inferior::has_execution instead of target_has_execution_1.
15742 * process-stratum-target.c
15743 (process_stratum_target::has_execution): Change parameter type to
15744 inferior pointer. Check the inferior's PID instead of
15745 inferior_ptid.
15746 * process-stratum-target.h
15747 (process_stratum_target::has_execution): Change parameter type to
15748 inferior pointer.
15749 * record-full.c (record_full_core_target::has_execution): Change
15750 parameter type to inferior pointer.
15751 * target.c (target_has_execution_1): Change parameter type to
15752 inferior pointer.
15753 (target_has_execution_current): Adjust.
15754 * target.h (target_ops::has_execution): Change parameter type to
15755 inferior pointer.
15756 (target_has_execution_1): Change parameter type to inferior
15757 pointer. Change return type to bool.
15758 * tracefile.h (tracefile_target::has_execution): Change parameter
15759 type to inferior pointer.
15760
15761 2020-01-10 Pedro Alves <palves@redhat.com>
15762
15763 * exceptions.c (print_flush): Remove current_top_target() check.
15764
15765 2020-01-10 Pedro Alves <palves@redhat.com>
15766
15767 * remote.c (show_remote_exec_file): Show the current inferior's
15768 exec-file instead of the command variable's value.
15769
15770 2020-01-10 Pedro Alves <palves@redhat.com>
15771
15772 * record-full.c (record_full_resume_ptid): New global.
15773 (record_full_target::resume): Set it.
15774 (record_full_wait_1): Use record_full_resume_ptid instead of
15775 inferior_ptid.
15776
15777 2020-01-10 Pedro Alves <palves@redhat.com>
15778
15779 * gdbthread.h (scoped_restore_current_thread)
15780 <dont_restore, restore, m_dont_restore>: Declare.
15781 * thread.c (thread_alive): Add assertion. Return bool.
15782 (switch_to_thread_if_alive): New.
15783 (prune_threads): Switch inferior/thread.
15784 (print_thread_info_1): Switch thread before calling target methods.
15785 (scoped_restore_current_thread::restore): New, factored out from
15786 ...
15787 (scoped_restore_current_thread::~scoped_restore_current_thread):
15788 ... this.
15789 (scoped_restore_current_thread::scoped_restore_current_thread):
15790 Add assertion.
15791 (thread_apply_all_command, thread_select): Use
15792 switch_to_thread_if_alive.
15793
15794 2020-01-10 George Barrett <bob@bob131.so>
15795
15796 * stap-probe.c (stap_modify_semaphore): Don't check for null
15797 semaphores.
15798 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15799 for null semaphores.
15800
15801 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15802
15803 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15804 all source windows, and maintain horizontal scroll status while
15805 doing so.
15806
15807 2020-01-09 Tom Tromey <tom@tromey.com>
15808
15809 PR tui/18932:
15810 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15811 update_source_window, not print_source_lines.
15812
15813 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15814
15815 * tui/tui.c (tui_enable): Register tui hooks after calling
15816 tui_display_main.
15817
15818 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15819
15820 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15821
15822 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15823
15824 * thread.c (print_thread_info_1): Fix indentation.
15825
15826 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15827
15828 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15829 unique_xmalloc_ptr outside the if to always free the demangled name.
15830
15831 2020-01-08 Tom Tromey <tromey@adacore.com>
15832
15833 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15834 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15835 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15836 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15837 Remove.
15838 (section_offsets): New typedef.
15839 * symtab.c (fixup_section, get_msymbol_address): Update.
15840 * symmisc.c (dump_msymbols): Update.
15841 * symfile.h (relative_addr_info_to_section_offsets)
15842 (symfile_map_offsets_to_segments): Update.
15843 * symfile.c (build_section_addr_info_from_objfile)
15844 (init_objfile_sect_indices): Update.
15845 (struct place_section_arg): Change type of "offsets".
15846 (place_section): Update.
15847 (relative_addr_info_to_section_offsets): Change type of
15848 "section_offsets". Remove "num_sections" parameter.
15849 (default_symfile_offsets, syms_from_objfile_1)
15850 (set_objfile_default_section_offset): Update.
15851 (reread_symbols): No need to preserve section offsets by hand.
15852 (symfile_map_offsets_to_segments): Change type of "offsets".
15853 * stap-probe.c (relocate_address): Update.
15854 * stabsread.h (process_one_symbol): Update.
15855 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15856 (solib_target_relocate_section_addresses): Update.
15857 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15858 Update.
15859 * solib-frv.c (frv_relocate_main_executable): Update.
15860 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15861 * solib-aix.c (solib_aix_get_section_offsets): Change return
15862 type.
15863 (solib_aix_solib_create_inferior_hook): Update.
15864 * remote.c (remote_target::get_offsets): Update.
15865 * psymtab.c (find_pc_sect_psymtab): Update.
15866 * psympriv.h (struct partial_symbol) <address, text_low,
15867 text_high>: Update.
15868 * objfiles.h (obj_section_offset): Update.
15869 (struct objfile) <section_offsets>: Change type.
15870 <num_sections>: Remove.
15871 (objfile_relocate): Update.
15872 * objfiles.c (entry_point_address_query): Update
15873 (relocate_one_symbol): Change type of "section_offsets".
15874 (objfile_relocate1, objfile_relocate1): Change type of
15875 "new_offsets".
15876 (objfile_rebase1): Update.
15877 * mipsread.c (mipscoff_symfile_read): Update.
15878 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15879 parameter.
15880 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15881 (parse_external, psymtab_to_symtab_1): Update.
15882 * machoread.c (macho_symfile_offsets): Update.
15883 * ia64-tdep.c (ia64_find_unwind_table): Update.
15884 * hppa-tdep.c (read_unwind_info): Update.
15885 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15886 * dwarf2read.c (create_addrmap_from_index)
15887 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15888 (process_psymtab_comp_unit_reader, add_partial_symbol)
15889 (add_partial_subprogram, process_full_comp_unit)
15890 (read_file_scope, read_func_scope, read_lexical_block_scope)
15891 (read_call_site_scope, dwarf2_rnglists_process)
15892 (dwarf2_ranges_process, dwarf2_ranges_read)
15893 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15894 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15895 Update.
15896 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15897 Update.
15898 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15899 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15900 (process_one_symbol): Change type of "section_offsets".
15901 * ctfread.c (get_objfile_text_range): Update.
15902 * coffread.c (coff_symtab_read, enter_linenos)
15903 (process_coff_symbol): Update.
15904 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15905 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15906
15907 2020-01-08 Tom Tromey <tromey@adacore.com>
15908
15909 * dwarf2read.c (parse_macro_definition): Use std::string.
15910 (parse_macro_definition): Likewise.
15911
15912 2020-01-08 Tom Tromey <tromey@adacore.com>
15913
15914 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15915 (ATTR_ALLOC_CHUNK): Remove.
15916
15917 2020-01-08 Tom Tromey <tromey@adacore.com>
15918
15919 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15920
15921 2020-01-08 Tom Tromey <tromey@adacore.com>
15922
15923 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15924 (dwarf2_compute_name, open_dwo_file): Likewise.
15925 (process_enumeration_scope): Use std::vector.
15926 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15927 (partial_die_info::fixup, dwarf2_start_subfile)
15928 (guess_full_die_structure_name, dwarf2_name): Likewise.
15929 (determine_prefix): Update.
15930 (guess_full_die_structure_name): Make return type const.
15931 (partial_die_full_name): Return unique_xmalloc_ptr.
15932 (DW_FIELD_ALLOC_CHUNK): Remove.
15933
15934 2020-01-07 Tom Tromey <tromey@adacore.com>
15935
15936 PR build/24937:
15937 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15938
15939 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15940
15941 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15942
15943 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15944
15945 * stack.c (print_frame_info): Move disassemble_next_line code
15946 inside source_print block.
15947
15948 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15949
15950 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15951 gdb/signals.h, as we are now using native signal symbols.
15952
15953 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15954
15955 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15956 overflow by an early check of content vs threshold.
15957 * tui/tui-source.c (tui_source_window::line_is_displayed):
15958 Likewise.
15959
15960 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15961
15962 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15963
15964 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15965
15966 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15967 export table if no section contains it's RVA.
15968
15969 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15970
15971 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15972
15973 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15974
15975 * source.c (print_source_lines_base): Set last_line_listed.
15976
15977 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15978
15979 * tui/tui-disasm.c: Remove trailing spaces.
15980
15981 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15982 Pedro Alves <palves@redhat.com>
15983
15984 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15985 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15986 (windows_gdb_signal_to_target): New function, uses the above
15987 enumeration to convert GDB internal signal codes to equivalent
15988 Windows codes.
15989 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15990 * windows-nat.c: Include "gdb_wait.h".
15991 (get_windows_debug_event): Extract the fatal exception from the
15992 exit status and convert to the equivalent Posix signal number.
15993 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15994 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15995 * gdbsupport/gdb_wait.c: New file, implements
15996 windows_status_to_termsig.
15997 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15998 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15999
16000 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16001
16002 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16003 show_layout.
16004
16005 2020-01-05 Luis Machado <luis.machado@linaro.org>
16006
16007 * aarch64-linux-nat.c
16008 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16009 and bfd_mach_aarch64.
16010
16011 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16012
16013 * ui-file.c (stdio_file::can_emit_style_escape)
16014 (tee_file::can_emit_style_escape): Ensure style is used also on
16015 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16016 to gdb_stdout.
16017 * main.c (set_gdb_data_directory): Use file style to output the
16018 warning that the given pathname is not a directory.
16019 * top.c (show_history_filename, gdb_safe_append_history)
16020 (show_gdb_datadir): Use file style.
16021
16022 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16023
16024 * solib-target.c (struct lm_info_target):
16025 Change offsets to be a unique_xmalloc_ptr.
16026 (solib_target_relocate_section_addresses): Update.
16027
16028 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16029
16030 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16031
16032 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16033
16034 * MAINTAINERS (Write After Approval): Add myself.
16035
16036 2020-01-02 Luis Machado <luis.machado@linaro.org>
16037
16038 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16039 Cell BE architecture.
16040 * target.h (struct target_ops) <thread_architecture>: Likewise.
16041
16042 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16043
16044 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16045
16046 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16047
16048 * MAINTAINERS (Write After Approval): Add myself.
16049
16050 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16051
16052 * gdbarch.sh: Update copyright year range of generated files.
16053
16054 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16055
16056 Update copyright year range in all GDB files.
16057
16058 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16059
16060 * copyright.py: Convert to Python 3.
16061
16062 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16063
16064 * copyright.py: Adapt after move of gnulib directory from gdb
16065 directory to toplevel directory.
16066
16067 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16068
16069 * copyright.py (main): Exit if run from the wrong directory.
16070
16071 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16072
16073 * top.c (print_gdb_version): Change copyright year to 2020.
16074
16075 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16076
16077 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16078
16079 For older changes see ChangeLog-2019.
16080 \f
16081 Local Variables:
16082 mode: change-log
16083 left-margin: 8
16084 fill-column: 74
16085 version-control: never
16086 coding: utf-8
16087 End:
This page took 0.348503 seconds and 5 git commands to generate.