]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb: remove parameter of gdbarch_displaced_step_hw_singlestep
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
4 parameter.
5 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
6 Likewise.
7 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
8 Likewise.
9 * arch-utils.c (default_displaced_step_hw_singlestep):
10 Likewise.
11 * arch-utils.h (default_displaced_step_hw_singlestep):
12 Likewise.
13 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
14 Likewise.
15 * s390-tdep.c (s390_displaced_step_hw_singlestep):
16 Likewise.
17 * gdbarch.c: Re-generate.
18 * gdbarch.h: Re-generate.
19 * infrun.c (resume_1): Adjust.
20
21 2020-10-29 Tom Tromey <tom@tromey.com>
22
23 * progspace.c (program_space::~program_space): Don't call
24 exec_close.
25
26 2020-10-29 Tom Tromey <tom@tromey.com>
27
28 * exec.c (exec_target::close): Don't change current program
29 space.
30
31 2020-10-29 Tom Tromey <tom@tromey.com>
32
33 * symfile.c (add_symbol_file_command): Update.
34 * exec.c (program_space::add_target_sections): Rename.
35 * symfile-mem.c (symbol_file_add_from_memory): Update.
36 * progspace.h (struct program_space) <add_target_sections>:
37 Declare new overload.
38 * exec.h (add_target_sections_of_objfile): Don't declare.
39
40 2020-10-29 Tom Tromey <tom@tromey.com>
41
42 * solib.c (solib_map_sections): Update.
43 * exec.c (program_space::add_target_sections): Now a method.
44 (exec_file_attach): Update.
45 * exec.h (add_target_sections): Don't declare.
46 * progspace.h (struct program_space) <add_target_sections>:
47 Declare.
48
49 2020-10-29 Tom Tromey <tom@tromey.com>
50
51 * progspace.h (struct program_space) <remove_target_sections>:
52 Declare.
53 * exec.c (program_space::remove_target_sections): Now a method.
54 * exec.h (remove_target_sections): Don't declare.
55
56 2020-10-29 Tom Tromey <tom@tromey.com>
57
58 * inferior.c (delete_inferior): Update.
59 * progspace.c (program_space::empty): Rename from
60 program_space_empty_p. Return bool.
61 * progspace.h (struct program_space) <empty>: New method.
62 (program_space_empty_p): Don't declare.
63
64 2020-10-29 Tom Tromey <tom@tromey.com>
65
66 * progspace.c (program_space::~program_space): Don't call
67 clear_program_space_solib_cache.
68 (program_space::clear_solib_cache): Rename from
69 clear_solib_cache.
70 * solib.c (handle_solib_event): Update.
71 * progspace.h (struct program_space) <clear_solib_cache>: New
72 method.
73 (clear_program_space_solib_cache): Don't declare.
74
75 2020-10-29 Tom Tromey <tom@tromey.com>
76
77 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
78 * target.c (info_target_command): Update.
79 * symfile.c (syms_from_objfile_1, finish_new_objfile)
80 (symbol_file_clear, reread_symbols): Update.
81 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
82 * stabsread.c (scan_file_globals): Update.
83 * solib.c (update_solib_list): Update.
84 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
85 (svr4_fetch_objfile_link_map, enable_break)
86 (svr4_relocate_main_executable)
87 (svr4_iterate_over_objfiles_in_search_order): Update.
88 * solib-frv.c (lm_base, enable_break)
89 (frv_relocate_main_executable): Update.
90 (main_got, frv_fdpic_find_canonical_descriptor): Update.
91 (frv_fetch_objfile_link_map): Update.
92 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
93 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
94 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
95 * remote.c (remote_target::get_offsets): Update.
96 (remote_target::start_remote)
97 (extended_remote_target::post_attach): Update.
98 * objfiles.c (entry_point_address_query): Update.
99 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
100 * minsyms.c (get_symbol_leading_char): Update.
101 * frame.c (inside_main_func): Update.
102 * progspace.h (symfile_objfile): Remove macro.
103
104 2020-10-29 Tom Tromey <tom@tromey.com>
105
106 * exec.c (exec_file_attach): Update.
107 * progspace.c (program_space::exec_close): Update.
108 * progspace.h (struct program_space) <ebfd>: Now a
109 gdb_bfd_ref_ptr.
110 <set_exec_bfd>: Change argument type.
111 <exec_bfd>: Update.
112
113 2020-10-29 Tom Tromey <tom@tromey.com>
114
115 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
116 * symfile.c (reread_symbols): Update.
117 * symfile-mem.c (add_symbol_file_from_memory_command)
118 (add_vsyscall_page): Update.
119 * source-cache.c (source_cache::get_plain_source_lines): Update.
120 * solib-svr4.c (find_program_interpreter, elf_locate_base)
121 (svr4_current_sos_direct, svr4_exec_displacement)
122 (svr4_relocate_main_executable): Update.
123 (svr4_iterate_over_objfiles_in_search_order): Update.
124 * solib-frv.c (enable_break2, enable_break): Update.
125 * solib-dsbt.c (lm_base, enable_break): Update.
126 * solib-darwin.c (find_program_interpreter)
127 (darwin_solib_create_inferior_hook): Update.
128 * sol-thread.c (rw_common, ps_pdmodel): Update.
129 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
130 * remote.c (compare_sections_command)
131 (remote_target::trace_set_readonly_regions): Update.
132 * remote-sim.c (get_sim_inferior_data)
133 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
134 (gdbsim_target_open, gdbsim_target::files_info): Update.
135 * exec.h (exec_bfd): Remove macro.
136 * progspace.c (initialize_progspace): Update.
137 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
138 Update.
139 * nto-procfs.c (nto_procfs_target::post_attach)
140 (nto_procfs_target::create_inferior): Update.
141 * maint.c (maintenance_info_sections): Update.
142 * linux-thread-db.c (thread_db_target::get_thread_local_address):
143 Update.
144 * infcmd.c (post_create_inferior): Update.
145 * gcore.c (default_gcore_arch, default_gcore_target): Update.
146 (objfile_find_memory_regions): Update.
147 * exec.c (validate_exec_file, exec_file_attach)
148 (exec_read_partial_read_only, print_section_info): Update.
149 * corelow.c (core_target_open): Update.
150 * corefile.c (reopen_exec_file, validate_files): Update.
151 * arm-tdep.c (gdb_print_insn_arm): Update.
152 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
153 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
154 methods.
155
156 2020-10-29 Tom Tromey <tom@tromey.com>
157
158 * progspace.h (current_target_sections): Remove macro.
159 * solib-svr4.c (scan_dyntag): Update.
160 * solib-dsbt.c (scan_dyntag): Update.
161 * exec.c (exec_target::close): Update.
162 (add_target_sections, add_target_sections_of_objfile)
163 (remove_target_sections, exec_target::get_section_table)
164 (exec_target::files_info, set_section_command)
165 (exec_set_section_address, exec_target::has_memory)
166 (exec_target::has_memory): Update.
167
168 2020-10-29 Tom Tromey <tom@tromey.com>
169
170 * source-cache.c (source_cache::get_plain_source_lines): Use
171 current_program_space.
172 * corefile.c (reopen_exec_file): Use current_program_space.
173 * exec.c (exec_file_attach): Use current_program_space.
174 * exec.h (exec_bfd_mtime): Remove.
175
176 2020-10-29 Tom Tromey <tom@tromey.com>
177
178 * gcore.c (default_gcore_mach): Remove.
179 (create_gcore_bfd): Update.
180
181 2020-10-29 Tom Tromey <tom@tromey.com>
182
183 * progspace.c (program_space::exec_close): New method, from
184 exec_close in exec.c.
185 * exec.c (exec_close): Move to progspace.c.
186 (exec_target::close, exec_file_attach): Update.
187 * progspace.h (struct program_space) <exec_close>: Declare
188 method.
189
190 2020-10-29 Tom Tromey <tom@tromey.com>
191
192 * progspace.h (struct program_space) <exec_filename>: Rename from
193 pspace_exec_filename. Now a unique_xmalloc_ptr.
194 * inferior.c (print_selected_inferior): Update.
195 (print_inferior): Update.
196 * mi/mi-main.c (print_one_inferior): Update.
197 * exec.h (exec_filename): Remove macro.
198 * corefile.c (get_exec_file): Update.
199 * exec.c (exec_close): Update.
200 (exec_file_attach): Update.
201 * progspace.c (clone_program_space): Update.
202 (print_program_space): Update.
203
204 2020-10-29 Tom Tromey <tom@tromey.com>
205
206 * target-section.h (struct target_section): Add constructor.
207 * exec.c (build_section_table, add_target_sections_of_objfile):
208 Update.
209 * corelow.c (core_target::build_file_mappings): Update.
210
211 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
212
213 PR gdb/19318
214 * inferior.c (detach_inferior_command): Restore the current thread.
215 (kill_inferior_command): Ditto.
216
217 2020-10-28 Tom de Vries <tdevries@suse.de>
218
219 PR symtab/26772
220 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
221 map, check it in the "best match" loop.
222
223 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
224
225 * m32c-tdep.c: Remove unused includes.
226
227 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
228
229 * xtensa-tdep.c: Remove includes.
230
231 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
232
233 * breakpoint.c (struct condition_command_opts): New struct.
234 (condition_command_option_defs): New static global.
235 (make_condition_command_options_def_group): New function.
236 (condition_completer): Update to consider the '-force' flag.
237 (condition_command): Use gdb::option for the '-force' flag.
238
239 2020-10-27 Tom de Vries <tdevries@suse.de>
240
241 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
242 symbols in section check.
243
244 2020-10-27 Tom de Vries <tdevries@suse.de>
245
246 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
247
248 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
249
250 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
251 * breakpoint.c: Update the help text of the 'condition' and 'break'
252 commands.
253 (set_breakpoint_condition): Take a new bool parameter
254 to control whether condition definition should be forced even when
255 the condition expression is invalid in all of the current locations.
256 (condition_command): Update the call to 'set_breakpoint_condition'.
257 (find_condition_and_thread): Take the "-force-condition" flag into
258 account.
259 * linespec.c (linespec_keywords): Add "-force-condition" as an
260 element.
261 (FORCE_KEYWORD_INDEX): New #define.
262 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
263 as a keyword.
264 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
265 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
266 * python/py-breakpoint.c (bppy_set_condition): Ditto.
267 * NEWS: Mention the changes to the 'break' and 'condition' commands.
268
269 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
270
271 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
272 * breakpoint.c (set_breakpoint_location_condition): New function.
273 (set_breakpoint_condition): Disable a breakpoint location if parsing
274 the condition string gives an error.
275 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
276 (build_target_condition_list): Ditto.
277 (build_target_command_list): Ditto.
278 (build_bpstat_chain): Ditto.
279 (print_one_breakpoint_location): Ditto.
280 (print_one_breakpoint): Ditto.
281 (breakpoint_1): Ditto.
282 (bp_location::bp_location): Ditto.
283 (locations_are_equal): Ditto.
284 (update_breakpoint_locations): Ditto.
285 (enable_disable_bp_num_loc): Ditto.
286 (init_breakpoint_sal): Use set_breakpoint_location_condition.
287 (find_condition_and_thread_for_sals): New static function.
288 (create_breakpoint): Call find_condition_and_thread_for_sals.
289 (location_to_sals): Call find_condition_and_thread_for_sals instead
290 of find_condition_and_thread.
291
292 2020-10-26 Tom de Vries <tdevries@suse.de>
293
294 * dwarf2/read.c (process_full_comp_unit): Call
295 dwarf2_find_base_address.
296
297 2020-10-26 Tom Tromey <tromey@adacore.com>
298
299 * gdbtypes.c (create_range_type): Revert previous patch. Add
300 comment.
301
302 2020-10-26 Pedro Alves <pedro@palves.net>
303
304 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
305 (my_waitpid): Use gdb::handle_eintr.
306
307 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
308
309 * acinclude.m4: Update ptrace.m4 path.
310 * ptrace.m4: Moved to gdbsupport.
311
312 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
313
314 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
315 instead of target_gdbarch.
316
317 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
318
319 * jit.c (jit_reader_load_command): Pass current inferior.
320 (jit_inferior_init): Change parameter type to inferior, use it.
321 (jit_inferior_created): Remove.
322 (jit_inferior_created_hook): Pass inferior parameter down.
323 (_initialize_jit): Use jit_inferior_created_hook instead of
324 jit_inferior_created.
325 * jit.h (jit_inferior_created_hook): Add inferior parameter.
326 * infrun.c (follow_exec): Pass inferior to
327 jit_inferior_created_hook.
328
329 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
330
331 * linux-thread-db.c (check_pid_namespace_match): Add inferior
332 parameter and use it.
333 (thread_db_inferior_created): Pass inferior argument.
334
335 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
336
337 * aix-thread.c (aix_thread_inferior_created): Add inferior
338 parameter.
339 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
340 * dummy-frame.c (cleanup_dummy_frames): Likewise.
341 * jit.c (jit_inferior_created): Likewise.
342 * linux-thread-db.c (thread_db_inferior_created): Likewise.
343 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
344 * observable.h (inferior_created): Likewise.
345 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
346 * symfile-mem.c (add_vsyscall_page): Likewise.
347 * infcmd.c (post_create_inferior): Pass inferior argument.
348
349 2020-10-24 Joel Brobecker <brobecker@adacore.com>
350
351 GDB 10.1 released.
352
353 2020-10-23 Joel Brobecker <brobecker@adacore.com>
354
355 * ada-typeprint.c (ada_print_type): Remove superfluous second call
356 to ada_check_typedef.
357
358 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
359
360 * f-exp.y (f_parse): Rename to...
361 (f_language::parser): ...this.
362 * f-lang.c (f_get_encoding): Rename to...
363 (f_language::get_encoding): ...this.
364 (f_op_print_tab): Rename to...
365 (f_language::op_print_tab): ...this.
366 (exp_descriptor_f): Rename to...
367 (f_language::exp_descriptor_tab): ...this.
368 (class f_language): Moved to f-lang.h.
369 (f_language::language_arch_info): New function, moved out of class
370 declaration.
371 (f_language::search_name_hash): Likewise.
372 (f_language::lookup_symbol_nonlocal): Likewise.
373 (f_language::get_symbol_name_matcher_inner): Likewise.
374 * f-lang.h: Add 'valprint.h' include.
375 (class f_language): Moved here from f-lang.c.
376 * f-typeprint.c (f_type_print_args): Delete commented out
377 declaration.
378 (f_print_typedef): Rename to...
379 (f_language::print_typedef): ...this.
380 (f_print_type): Rename to...
381 (f_language::print_type): ...this.
382 (f_type_print_varspec_prefix): Delete declaration and rename to...
383 (f_language::f_type_print_varspec_prefix): ...this.
384 (f_type_print_varspec_suffix): Delete declaration and rename to...
385 (f_language::f_type_print_varspec_suffix): ...this.
386 (f_type_print_base): Delete declaration and rename to...
387 (f_language::f_type_print_base): ...this.
388 * f-valprint.c (f_value_print_inner): Rename to...
389 (f_language::value_print_inner): ...this.
390 * parse.c: Delete 'f-lang.h' include.
391
392 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
393
394 * language.h (language_defn::print_type): Add variable names in
395 declaration, and update header comment.
396
397 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
398
399 * ada-lang.c (ada_language::demangle): Rename to...
400 (ada_language::demangle_symbol): ...this.
401 * c-lang.c (cplus_language::demangle): Rename to...
402 (cplus_language::demangle_symbol): ...this.
403 * d-lang.c (d_language::demangle): Rename to...
404 (d_language::demangle_symbol): ...this.
405 * f-lang.c (f_language::demangle): Rename to...
406 (f_language::demangle_symbol): ...this.
407 * go-lang.c (go_language::demangle): Rename to...
408 (go_language::demangle_symbol): ...this.
409 * language.c (language_demangle): Update call to demangle_symbol.
410 (auto_or_unknown_language::demangle): Rename to...
411 (auto_or_unknown_language::demangle_symbol): ...this.
412 * language.h (language_defn::demangle): Rename to...
413 (language_defn::demangle_symbol): ...this.
414 * objc-lang.c (objc_language::demangle): Rename to...
415 (objc_language::demangle_symbol): ...this.
416 * rust-lang.c (rust_language::demangle): Rename to...
417 (rust_language::demangle_symbol): ...this.
418
419 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
420
421 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
422 (iterate_over_file_blocks): Replace use of macro with the macros
423 definition.
424
425 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
426
427 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
428 * valprint.c (maybe_print_array_index): Replace use of macro with
429 the macros definition.
430
431 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
432
433 * ada-lang.c (ada_language::print_array_index): Call value_print
434 directly.
435 * language.c (language_defn::print_array_index): Likewise.
436 * language.h (LA_VALUE_PRINT): Delete.
437 * valprint.c (value_print): Call value_print on the
438 current_language directly.
439
440 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
441
442 * language.h (LA_PRINT_TYPEDEF): Delete.
443 * typeprint.c (typedef_print): Call print_typedef directly on the
444 current_language object.
445
446 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
447
448 * m2-exp.y (m2_parse): Rename to...
449 (m2_language::parser): ...this. Update function signature.
450 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
451 (m2_op_print): Rename to...
452 (m2_language::op_print_tab): ...this, and make const.
453 (exp_descriptor_modula2): Rename to...
454 (m2_language::exp_descriptor_modula2): ...this.
455 (class m2_language): Move to m2-lang.h.
456 (m2_language::language_arch_info): New function, moved out of
457 class declaration.
458 (m2_language::printchar): New function, body from m2_printchar.
459 (m2_language::printstr): New function, moved out of class
460 declaration.
461 (m2_language::emitchar): Likewise.
462 * m2-lang.h (m2_parse): Delete declaration.
463 (m2_print_typedef): Delete declaration.
464 (m2_value_print_inner): Delete declaration.
465 (class m2_language): Class declaration moved from m2-lang.c,
466 larger functions are left in m2-lang.c.
467 * m2-typeprint.c (m2_print_typedef): Rename to...
468 (m2_language::print_typedef): ...this, and update function
469 signature.
470 * m2-valprint.c (m2_value_print_inner): Rename to...
471 (m2_language::value_print_inner): ...this, replace use of
472 LA_PRINT_STRING with a direct call to printstr member function,
473 and update recursive call.
474
475 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
476
477 * language.c (default_is_string_type_p): Delete, implementation
478 moved into auto_or_unknown_language::is_string_type_p.
479 (unk_op_print_tab): Moved into
480 auto_or_unknown_language::opcode_print_table.
481 (unknown_language_arch_info): Delete, implementation moved into
482 auto_or_unknown_language::language_arch_info.
483 (class auto_or_unknown_language): New class, member functions
484 copied from unknown_language class, with some updates.
485 (class unknown_language): Most member functions moved into
486 auto_or_unknown_language class. Inherit from
487 auto_or_unknown_language class.
488 (class auto_language): Inherit from auto_or_unknown_language.
489 Delete most member functions.
490
491 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
492
493 * stabsread.c (read_member_functions): Remove gdb_assert.
494
495 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
496
497 * gdbtypes.c (init_complex_type): Check target type name.
498
499 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
500
501 * target-debug.h (target_debug_print_struct_target_ops_p):
502 Remove.
503 (target_debug_print_async_callback_ftype_p): Remove.
504 (target_debug_print_struct_trace_state_variable_p): Remove.
505 (target_debug_print_struct_traceframe_info_p): Remove.
506 (target_debug_print_VEC__btrace_block_s__pp): Remove.
507 (target_debug_print_enum_btrace_format): Remove.
508 (target_debug_print_enum_info_proc_what): Remove.
509 (target_debug_print_thread_info_pp): Remove.
510
511 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
512
513 * target.h (struct target_ops) <make_corefile_notes>:
514 Change return type to unique pointer.
515 * target.c (dummy_make_corefile_notes): Likewise.
516 * exec.c (struct exec_target) <make_corefile_notes>:
517 Likewise.
518 (exec_target::make_corefile_notes): Likewise.
519 * procfs.c (class procfs_target) <make_corefile_notes>:
520 Likewise.
521 (procfs_do_thread_registers): Adjust to unique pointer.
522 (struct procfs_corefile_thread_data): Add constructor.
523 <note_data>: Change type to unique pointer.
524 (procfs_corefile_thread_callback): Adjust to unique pointer.
525 (procfs_target::make_corefile_notes): Change return type to
526 unique pointer.
527 * target-delegates.c: Re-generate.
528 * gcore.c (write_gcore_file_1): Adjust.
529 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
530 New.
531
532 2020-10-22 Tom de Vries <tdevries@suse.de>
533
534 * block.c (find_block_in_blockvector): Make sure the returned block
535 contains pc.
536
537 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
538
539 PR gdb/26693
540 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
541 parameter.
542 (load_cu): Pass existing CU.
543 (process_imported_unit_die): Likewise.
544 (follow_die_offset): Likewise.
545
546 2020-10-22 Luis Machado <luis.machado@linaro.org>
547
548 * corelow.c (core_target::xfer_partial): Also check for an empty
549 m_core_unavailable_mappings vector.
550
551 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
552
553 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
554 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
555 * f-exp.y (arglist): Allow for a series of subranges.
556 (subrange): Add cases for subranges with strides.
557 * f-lang.c (value_f90_subarray): Catch use of array strides and
558 throw an error.
559 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
560
561 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
562
563 * expprint.c (print_subexp_standard): Change enum range_type to
564 range_flag and rename variables to match.
565 (dump_subexp_body_standard): Likewise.
566 * expression.h (enum range_type): Rename to...
567 (enum range_flag): ...this.
568 (range_types): Rename to...
569 (range_flags): ...this.
570 * f-lang.c (value_f90_subarray): Change enum range_type to
571 range_flag and rename variables to match.
572 * parse.c (operator_length_standard): Likewise.
573 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
574 range_type to range_flag.
575 * rust-lang.c (rust_evaluate_funcall): Likewise.
576 (rust_range): Likewise.
577 (rust_compute_range): Likewise.
578 (rust_subscript): Likewise.
579
580 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
581
582 * expprint.c (print_subexp_standard): Update to reflect changes to
583 enum range_type.
584 (dump_subexp_body_standard): Likewise.
585 * expression.h (enum range_type): Convert to a bit field enum, and
586 make the enum unsigned.
587 * f-exp.y (subrange): Update to reflect changes to enum
588 range_type.
589 * f-lang.c (value_f90_subarray): Likewise.
590 * parse.c (operator_length_standard): Likewise.
591 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
592 * rust-lang.c (rust_range): Likewise.
593 (rust_compute_range): Likewise.
594 (rust_subscript): Likewise.
595
596 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
597
598 * infrun.c (displaced_step_in_progress_thread): Fix comment.
599 (displaced_step_in_progress): Fix comment.
600
601 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
602
603 * gdbarch.sh (make_corefile_notes): Return unique pointer.
604 * gdbarch.c: Re-generate.
605 * gdbarch.h: Re-generate.
606 * gcore.c (write_gcore_file_1): Adjust.
607 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
608 constructor.
609 <note_data>: Change type to unique pointer.
610 <abort_iteration>: Change type to bool.
611 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
612 (fbsd_collect_thread_registers): Return void, adjust.
613 (struct fbsd_corefile_thread_data): Add construtor.
614 <note_data>: Change type to unique pointer.
615 (fbsd_corefile_thread): Adjust.
616 (fbsd_make_corefile_notes): Return unique pointer, adjust.
617 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
618 to unique pointer, adjust.
619 (struct linux_collect_regset_section_cb_data): Add constructor.
620 <note_data>: Change type to unique pointer.
621 <abort_iteration>: Change type to bool.
622 (linux_collect_thread_registers): Return void, adjust.
623 (struct linux_corefile_thread_data): Add constructor.
624 <note_data>: Change type to unique pointer.
625 (linux_corefile_thread): Adjust.
626 (linux_make_corefile_notes): Return unique pointer, adjust.
627
628 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
629
630 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
631 * gdbarch.c: Re-generate.
632 * gdbarch.h: Re-generate.
633 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
634 bool.
635 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
636 Likewise.
637 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
638 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
639 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
640 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
641
642 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
643
644 * gdbarch.sh: Make generated predicates return bool.
645 * gdbarch.c: Re-generate.
646 * gdbarch.h: Re-generate.
647
648 2020-10-20 Tom Tromey <tom@tromey.com>
649
650 * varobj-iter.h (struct varobj_item): Remove typedef.
651
652 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
653
654 * infrun.c (currently_stepping): Change int to bool
655 (maybe_software_singlestep): Likewise.
656 (show_stop_on_solib_events): Likewise.
657 (stepping_past_nonsteppable_watchpoint): Likewise.
658 (displaced_step_in_progress_any_inferior): Likewise.
659 (displaced_step_in_progress_thread): Likewise.
660 (keep_going_stepped_thread): Likewise.
661 (thread_still_needs_step_over): Likewise.
662 (start_step_over): Likewise.
663 (do_target_resume): Likewise.
664 (resume_1): Likewise.
665 (clear_proceed_status): Likewise.
666 (thread_still_needs_step_over_bp): Likewise.
667 (proceed): Likewise.
668 (switch_back_to_stepped_thread): Likewise.
669 (adjust_pc_after_break): Likewise.
670 (stepped_in_from): Likewise.
671 (handle_stop_requested): Likewise.
672 (handle_syscall_event): Likewise.
673 (handle_no_resumed): Likewise.
674 (handle_inferior_event): Likewise.
675 (finish_step_over): Likewise.
676 (handle_signal_stop): Likewise.
677 (process_event_stop_test): Likewise.
678
679 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
680
681 * infrun.c (get_displaced_stepping_state): Fix comment.
682
683 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
684
685 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
686
687 2020-10-19 Tom Tromey <tromey@adacore.com>
688
689 PR tui/26719
690 * tui/tui-winsource.h (struct tui_source_window_base)
691 <refresh_window>: Rename from refresh_pad.
692 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
693 Rename from refresh_pad.
694 (tui_source_window_base::show_source_content)
695 (tui_source_window_base::do_scroll_horizontal): Update.
696
697 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
698
699 * thread.c (_initialize_thread): Fine-tune the help text of
700 'info threads'.
701
702 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
703
704 * frame.c: Remove the unused 'uinteger_option_def' type alias.
705
706 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
707
708 * breakpoint.c (handle_jit_event): Add an argument, change how
709 `jit_event_handler` is called.
710
711 2020-10-17 Tom Tromey <tom@tromey.com>
712
713 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
714 (scan_xcoff_symtab): Update.
715 * psymtab.h (class psymtab_storage) <global_psymbols,
716 static_psymbols, current_global_psymbols,
717 current_static_psymbols>: Remove.
718 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
719 (match_partial_symbol, lookup_partial_symbol): Update.
720 (print_partial_symbols): Change parameters.
721 (dump_psymtab, recursively_search_psymtabs)
722 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
723 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
724 (concat): Remove.
725 (end_psymtab_common): Simplify.
726 (append_psymbol_to_list): Change parameters.
727 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
728 (init_psymbol_list): Simplify.
729 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
730 * psympriv.h (struct partial_symtab) <empty>: New method.
731 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
732 Remove.
733 <global_psymbols, static_psymbols>: New members.
734 <add_psymbol>: New methods.
735 (add_psymbol_to_list): Don't declare.
736 (psymbol_placement): Move earlier.
737 * mdebugread.c (parse_partial_symbols): Update.
738 (handle_psymbol_enumerators): Change parameters.
739 (mdebug_expand_psymtab): Update.
740 * dwarf2/read.c (process_psymtab_comp_unit_reader)
741 (add_partial_symbol): Update.
742 * dwarf2/index-write.c (write_psymbols): Change parameters.
743 (write_one_signatured_type): Update.
744 (recursively_count_psymbols): Update.
745 (recursively_write_psymbols): Update.
746 (class debug_names) <recursively_write_psymbols>: Update.
747 <write_psymbols>: Change parameters.
748 <write_one_signatured_type>: Update.
749 * dbxread.c (read_dbx_symtab): Update.
750 (dbx_end_psymtab): Use partial_symtab::empty.
751 * ctfread.c (struct ctf_context) <pst>: New member.
752 (create_partial_symtab): Set it.
753 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
754 (scan_partial_symbols): Use the psymtab's context. Update.
755
756 2020-10-17 Tom Tromey <tom@tromey.com>
757
758 * valprint.c (generic_value_print): Remove comment.
759 * m2-valprint.c (m2_value_print_inner): Remove comment.
760 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
761 type.
762
763 2020-10-17 Tom de Vries <tdevries@suse.de>
764
765 PR symtab/26317
766 * source.c (select_source_symtab): Handling sal.symtab == NULL for
767 symbol main.
768
769 2020-10-14 Tom de Vries <tdevries@suse.de>
770
771 PR gdb/26733
772 * solib.c (solib_contains_address_p): Handle
773 'solib->sections == nullptr'.
774
775 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
776
777 PR gdb/26642
778 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
779 target can't do async.
780 * target.c (target_wait): Assert that we don't pass
781 TARGET_WNOHANG to a target that can't async.
782
783 2020-10-13 Kamil Rytarowski <n54@gmx.com>
784
785 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
786 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
787 * alpha-bsd-nat.c: Adjust include.
788 * alpha-bsd-tdep.h: Adjust comment.
789 * alpha-nbsd-tdep.c: Rename to ...
790 * alpha-netbsd-tdep.c: ... this, adjust include.
791 * amd64-nbsd-nat.c: Rename to ...
792 * amd64-netbsd-nat.c: ... this, adjust include.
793 * amd64-nbsd-tdep.c: Rename to ...
794 * amd64-netbsd-tdep.c: ... this, adjust include.
795 * amd64-tdep.h: Adjust include.
796 * arm-nbsd-nat.c: Rename to ...
797 * arm-netbsd-nat.c: ... this, adjust include.
798 * arm-nbsd-tdep.c: Rename to ...
799 * arm-netbsd-tdep.c: ... this, adjust include.
800 * arm-nbsd-tdep.h: Rename to ...
801 * arm-netbsd-tdep.h: ... this, adjust include.
802 * configure.nat: Adjust file lists.
803 * configure.tgt: Likewise.
804 * hppa-nbsd-nat.c: Rename to ...
805 * hppa-netbsd-nat.c: ... this, adjust include.
806 * hppa-nbsd-tdep.c: Rename to ...
807 * hppa-netbsd-tdep.c: ... this, adjust include.
808 * i386-nbsd-nat.c: Rename to ...
809 * i386-netbsd-nat.c: ... this, adjust include.
810 * i386-nbsd-tdep.c: Rename to ...
811 * i386-netbsd-tdep.c: ... this, adjust include.
812 * m68k-bsd-nat.c: Adjust include.
813 * mips-nbsd-nat.c: Rename to ...
814 * mips-netbsd-nat.c: ... this, adjust include.
815 * mips-nbsd-tdep.c: Rename to ...
816 * mips-netbsd-tdep.c: ... this, adjust include.
817 * mips-nbsd-tdep.h: Rename to ...
818 * mips-netbsd-tdep.h: ... this.
819 * nbsd-nat.c: Rename to ...
820 * netbsd-nat.c: ... this, adjust include.
821 * nbsd-nat.h: Rename to ...
822 * netbsd-nat.h: ... this, adjust include.
823 * nbsd-tdep.c: Rename to ...
824 * netbsd-tdep.c: ... this, adjust include.
825 * nbsd-tdep.h: Rename to ...
826 * netbsd-tdep.h: ... this.
827 * ppc-nbsd-nat.c: Rename to ...
828 * ppc-netbsd-nat.c: ... this, adjust include.
829 * ppc-nbsd-tdep.c: Rename to ...
830 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
831 * ppc-nbsd-tdep.h: Rename to ...
832 * ppc-netbsd-tdep.h: ... this.
833 * sh-nbsd-nat.c: Rename to ...
834 * sh-netbsd-nat.c: ... this, adjust include.
835 * sh-nbsd-tdep.c: Rename to ...
836 * sh-netbsd-tdep.c: ... this, adjust include.
837 * sparc-nbsd-nat.c: Rename to ...
838 * sparc-netbsd-nat.c: ... this.
839 * sparc-nbsd-tdep.c: Rename to ...
840 * sparc-netbsd-tdep.c: ... this, adjust include.
841 * sparc64-nbsd-nat.c: Rename to ...
842 * sparc64-netbsd-nat.c: ... this.
843 * sparc64-nbsd-tdep.c: Rename to ...
844 * sparc64-netbsd-tdep.c: ... this, adjust include.
845 * sparc64-tdep.h: Adjust comment.
846 * vax-bsd-nat.c: Adjust include.
847 * vax-nbsd-tdep.c: Rename to ...
848 * vax-netbsd-tdep.c: ... this, adjust include.
849
850 2020-10-12 Tom Tromey <tom@tromey.com>
851
852 * target.h (struct target_ops) <get_section_table>: Update.
853 (target_get_section_table): Update.
854 * target.c (target_get_section_table, target_section_by_addr)
855 (memory_xfer_partial_1): Update.
856 * target-section.h (target_section_table): Now an alias.
857 * target-delegates.c: Rebuild.
858 * target-debug.h (target_debug_print_target_section_table_p):
859 Rename from target_debug_print_struct_target_section_table_p.
860 * symfile.c (build_section_addr_info_from_section_table): Update.
861 * solib.c (solib_map_sections, solib_contains_address_p): Update.
862 * solib-svr4.c (scan_dyntag): Update.
863 * solib-dsbt.c (scan_dyntag): Update.
864 * remote.c (remote_target::remote_xfer_live_readonly_partial):
865 Update.
866 * record-full.c (record_full_core_target::xfer_partial): Update.
867 * progspace.h (struct program_space) <target_sections>: Update.
868 * exec.h (print_section_info): Update.
869 * exec.c (exec_target::close, build_section_table)
870 (add_target_sections, add_target_sections_of_objfile)
871 (remove_target_sections, exec_on_vfork)
872 (section_table_available_memory)
873 (section_table_xfer_memory_partial)
874 (exec_target::get_section_table, exec_target::xfer_partial)
875 (print_section_info, set_section_command)
876 (exec_set_section_address, exec_target::has_memory): Update.
877 * corelow.c (core_target::build_file_mappings)
878 (core_target::xfer_partial, core_target::info_proc_mappings)
879 (core_target::info_proc_mappings): Update.
880 * bfd-target.c (class target_bfd): Update
881
882 2020-10-12 Tom Tromey <tom@tromey.com>
883
884 * progspace.c (program_space::~program_space): Don't call
885 clear_section_table.
886 * exec.h (clear_section_table): Don't declare.
887 * exec.c (exec_target::close): Update.
888 (clear_section_table): Remove.
889
890 2020-10-12 Tom Tromey <tom@tromey.com>
891
892 * exec.c (add_target_sections_of_objfile): Simplify.
893
894 2020-10-12 Tom Tromey <tom@tromey.com>
895
896 * solib.c (solib_map_sections): Update.
897 * record-full.c (record_full_core_open_1): Update.
898 * exec.h (build_section_table): Return a target_section_table.
899 * exec.c (exec_file_attach): Update.
900 (build_section_table): Return a target_section_table.
901 * corelow.c (core_target::core_target): Update.
902 * bfd-target.c (target_bfd::target_bfd): Update.
903
904 2020-10-12 Tom Tromey <tom@tromey.com>
905
906 * target.c (target_section_by_addr, memory_xfer_partial_1):
907 Update.
908 * target-section.h (struct target_section_table): Use
909 std::vector.
910 * symfile.h (build_section_addr_info_from_section_table): Take a
911 target_section_table.
912 * symfile.c (build_section_addr_info_from_section_table): Take a
913 target_section_table.
914 * solist.h (struct so_list) <sections>: Change type.
915 <sections_end>: Remove.
916 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
917 (solib_contains_address_p): Update.
918 * solib-svr4.c (scan_dyntag): Update.
919 * solib-dsbt.c (scan_dyntag): Update.
920 * remote.c (remote_target::remote_xfer_live_readonly_partial):
921 Update.
922 * record-full.c (record_full_core_start, record_full_core_end):
923 Remove.
924 (record_full_core_sections): New global.
925 (record_full_core_open_1, record_full_core_target::xfer_partial):
926 Update.
927 * exec.h (build_section_table, section_table_xfer_memory_partial)
928 (add_target_sections): Take a target_section_table.
929 * exec.c (exec_file_attach, clear_section_table): Update.
930 (resize_section_table): Remove.
931 (build_section_table, add_target_sections): Take a
932 target_section_table.
933 (add_target_sections_of_objfile, remove_target_sections)
934 (exec_on_vfork): Update.
935 (section_table_available_memory): Take a target_section_table.
936 (section_table_read_available_memory): Update.
937 (section_table_xfer_memory_partial): Take a target_section_table.
938 (print_section_info, set_section_command)
939 (exec_set_section_address, exec_target::has_memory): Update.
940 * corelow.c (class core_target) <m_core_section_table,
941 m_core_file_mappings>: Remove braces.
942 <~core_target>: Remove.
943 (core_target::core_target): Update.
944 (core_target::~core_target): Remove.
945 (core_target::build_file_mappings)
946 (core_target::xfer_memory_via_mappings)
947 (core_target::xfer_partial, core_target::info_proc_mappings):
948 Update.
949 * bfd-target.c (target_bfd::xfer_partial): Update.
950 (target_bfd::target_bfd): Update.
951 (target_bfd::~target_bfd): Remove.
952
953 2020-10-12 Tom Tromey <tom@tromey.com>
954
955 * target.h (struct target_section, struct target_section_table):
956 Move to target-section.h.
957 * target-section.h: New file.
958
959 2020-10-12 Pedro Alves <pedro@palves.net>
960
961 PR exp/26602
962 * valops.c (struct struct_field_searcher): New.
963 (update_search_result): Rename to ...
964 (struct_field_searcher::update_result): ... this. Simplify
965 prototype. Record all found fields.
966 (do_search_struct_field): Rename to ...
967 (struct_field_searcher::search): ... this. Simplify prototype.
968 Maintain stack of visited baseclass path. Call update_result for
969 fields too. Keep searching fields in baseclasses instead of
970 stopping at the first found field.
971 (search_struct_field): Use struct_field_searcher. When looking
972 for fields, report ambiguous access attempts.
973
974 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
975
976 * frame.c (inside_main_func): Check full symbols as well as
977 minimal symbols.
978
979 2020-10-09 Joel Brobecker <brobecker@adacore.com>
980
981 * ada-lang.c (advance_wild_match): Rewrite the function's
982 description. Change the type of target0, t0 and t1 to char.
983
984 2020-10-09 Tom Tromey <tromey@adacore.com>
985
986 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
987
988 2020-10-09 Tom Tromey <tromey@adacore.com>
989
990 * ada-lang.h (ada_encode): Return std::string.
991 * ada-lang.c (ada_encode_1): Return std::string.
992 (ada_encode): Likewise.
993 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
994 Update.
995 * ada-exp.y (block_lookup, write_var_or_type): Update.
996
997 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
998
999 PR exp/26714
1000 * printcmd.c (print_formatted): Handle void results as
1001 unformatted prints.
1002
1003 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1004
1005 * arch/aarch32.c (aarch32_create_target_description): Release the
1006 target_desc_up as late as possible.
1007 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1008 * arch/amd64.c (amd64_create_target_description): Likewise.
1009 * arch/arc.c (arc_create_target_description): Return a
1010 target_desc_up, don't release it.
1011 * arch/arc.h (arc_create_target_description): Update declaration.
1012 (arc_lookup_target_description): Move target_desc_up into the
1013 cache, and return a borrowed pointer.
1014 * arch/arm.c (arm_create_target_description): Release the
1015 target_desc_up as late as possible.
1016 * arch/i386.c (i386_create_target_description): Likewise.
1017 * arch/riscv.h (riscv_create_target_description): Update
1018 declaration to match definition.
1019 * arch/tic6x.c (tic6x_create_target_description): Release the
1020 target_desc_up as late as possible.
1021
1022 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1023
1024 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1025 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1026
1027 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1028
1029 * source.c (directory_command): Notify observers that "directories"
1030 parameter has changed.
1031
1032 2020-10-08 Tom Tromey <tom@tromey.com>
1033
1034 * cli/cli-cmds.c (print_disassembly): Style function name and
1035 addresses. Add _() wrappers.
1036
1037 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1038
1039 * NEWS: Mention ARC support in GDBserver.
1040
1041 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1042
1043 * arch/aarch32.c (aarch32_create_target_description): Release
1044 unique_ptr returned from allocate_target_description.
1045 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1046 * arch/amd64.c (amd64_create_target_description): Likewise.
1047 * arch/arc.c (arc_create_target_description): Likewise.
1048 * arch/arm.c (arm_create_target_description): Likewise.
1049 * arch/i386.c (i386_create_target_description): Likewise.
1050 * arch/riscv.c (riscv_create_target_description): Update return
1051 type. Handle allocate_target_description returning a unique_ptr.
1052 (riscv_lookup_target_description): Update to handle unique_ptr.
1053 * arch/tic6x.c (tic6x_create_target_description): Release
1054 unique_ptr returned from allocate_target_description.
1055 * features/microblaze-with-stack-protect.c: Regenerate.
1056 * features/microblaze.c: Regenerate.
1057 * features/mips-dsp-linux.c: Regenerate.
1058 * features/mips-linux.c: Regenerate.
1059 * features/mips64-dsp-linux.c: Regenerate.
1060 * features/mips64-linux.c: Regenerate.
1061 * features/nds32.c: Regenerate.
1062 * features/nios2.c: Regenerate.
1063 * features/or1k.c: Regenerate.
1064 * features/rs6000/powerpc-32.c: Regenerate.
1065 * features/rs6000/powerpc-32l.c: Regenerate.
1066 * features/rs6000/powerpc-403.c: Regenerate.
1067 * features/rs6000/powerpc-403gc.c: Regenerate.
1068 * features/rs6000/powerpc-405.c: Regenerate.
1069 * features/rs6000/powerpc-505.c: Regenerate.
1070 * features/rs6000/powerpc-601.c: Regenerate.
1071 * features/rs6000/powerpc-602.c: Regenerate.
1072 * features/rs6000/powerpc-603.c: Regenerate.
1073 * features/rs6000/powerpc-604.c: Regenerate.
1074 * features/rs6000/powerpc-64.c: Regenerate.
1075 * features/rs6000/powerpc-64l.c: Regenerate.
1076 * features/rs6000/powerpc-7400.c: Regenerate.
1077 * features/rs6000/powerpc-750.c: Regenerate.
1078 * features/rs6000/powerpc-860.c: Regenerate.
1079 * features/rs6000/powerpc-altivec32.c: Regenerate.
1080 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1081 * features/rs6000/powerpc-altivec64.c: Regenerate.
1082 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1083 * features/rs6000/powerpc-e500.c: Regenerate.
1084 * features/rs6000/powerpc-e500l.c: Regenerate.
1085 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1086 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1087 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1088 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1089 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1090 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1091 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1092 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1093 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1094 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1095 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1096 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1097 * features/rs6000/powerpc-vsx32.c: Regenerate.
1098 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1099 * features/rs6000/powerpc-vsx64.c: Regenerate.
1100 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1101 * features/rs6000/rs6000.c: Regenerate.
1102 * features/rx.c: Regenerate.
1103 * features/s390-gs-linux64.c: Regenerate.
1104 * features/s390-linux32.c: Regenerate.
1105 * features/s390-linux32v1.c: Regenerate.
1106 * features/s390-linux32v2.c: Regenerate.
1107 * features/s390-linux64.c: Regenerate.
1108 * features/s390-linux64v1.c: Regenerate.
1109 * features/s390-linux64v2.c: Regenerate.
1110 * features/s390-te-linux64.c: Regenerate.
1111 * features/s390-tevx-linux64.c: Regenerate.
1112 * features/s390-vx-linux64.c: Regenerate.
1113 * features/s390x-gs-linux64.c: Regenerate.
1114 * features/s390x-linux64.c: Regenerate.
1115 * features/s390x-linux64v1.c: Regenerate.
1116 * features/s390x-linux64v2.c: Regenerate.
1117 * features/s390x-te-linux64.c: Regenerate.
1118 * features/s390x-tevx-linux64.c: Regenerate.
1119 * features/s390x-vx-linux64.c: Regenerate.
1120 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1121 from allocate_target_description.
1122 * target-descriptions.c (allocate_target_description): Update
1123 return type.
1124 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1125 allocate_target_description.
1126
1127 2020-10-07 Tom Tromey <tromey@adacore.com>
1128
1129 * unittests/search-memory-selftests.c: New file.
1130 * Makefile.in (SELFTESTS_SRCS): Add
1131 unittests/search-memory-selftests.c.
1132
1133 2020-10-07 Tom Tromey <tromey@adacore.com>
1134
1135 PR gdb/16930:
1136 * findcmd.c (_initialize_mem_search): Mention that the range is
1137 inclusive.
1138
1139 2020-10-07 Tom Tromey <tromey@adacore.com>
1140
1141 * target.h (simple_search_memory): Don't declare.
1142 * target.c (simple_search_memory): Move to gdbsupport.
1143 (default_search_memory): Update.
1144 * remote.c (remote_target::search_memory): Update.
1145
1146 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1147
1148 * Makefile.in (COMPILE): Add CXXFLAGS.
1149 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1150 (check-headers): Add CXXFLAGS.
1151
1152 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1153
1154 * arc-linux-tdep.h: New file.
1155 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1156 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1157 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1158 arc_linux_gregset, arc_linux_v2_regset,
1159 arc_linux_iterate_over_regset_sections,
1160 arc_linux_core_read_description): Implement.
1161 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1162 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1163 (arc_gdbarch_features_create): Add.
1164 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1165
1166 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1167
1168 * arch/arc.h: Rename "arc_gdbarch_features" to
1169 "arc_arch_features".
1170 * arc-tdep.h: Likewise.
1171 * arc-tdep.c: Likewise.
1172
1173 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1174
1175 * infcmd.c (attach_command): Remove the redundant call to
1176 `clear_proceed_status`.
1177
1178 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1179
1180 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1181
1182 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1183
1184 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1185 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1186 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1187
1188 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1189
1190 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1191 (_initialize_break_catch_sig): Don't allocate array.
1192
1193 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1194
1195 * symtab.c (find_pc_line): Return unmapped addresses when the
1196 requested address is also unmapped.
1197
1198 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1199
1200 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1201 tui/tui-out.h.
1202
1203 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1204
1205 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1206 type::is_vector instead of TYPE_VECTOR.
1207
1208 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1209
1210 * auto-load.c (auto_load_objfile_script_1): Don't use
1211 debugfile_holder as temporary variable when stripping drive
1212 letter.
1213
1214 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1215
1216 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1217 Add TYPE_CODE_COMPLEX.
1218 (amd64_windows_return_value): Fix types returned via XMM0.
1219
1220 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1221
1222 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1223 AArch64/ARM maintainers.
1224
1225 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1226
1227 * NEWS: Mention set/show debug event-loop.
1228
1229 2020-10-02 Tom Tromey <tromey@adacore.com>
1230
1231 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1232 REG_EXTENDED.
1233
1234 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1235
1236 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1237 * procfs.c (procfs_inferior_created): Remove.
1238 (_initialize_procfs): Don't register procfs_inferior_created.
1239
1240 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1241
1242 * async-event.c (invoke_async_signal_handlers): Add debug
1243 print.
1244 (check_async_event_handlers): Likewise.
1245 * event-top.c (show_debug_event_loop): New function.
1246 (_initialize_event_top): Register "set debug event-loop"
1247 setting.
1248
1249 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1250
1251 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1252 * debug.h: Remove.
1253 * infrun.c: Include gdbsupport/common-debug.h.
1254 * linux-nat.c: Likewise.
1255
1256 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1257
1258 * async-event.h (create_async_signal_handler): Add name
1259 parameter.
1260 (create_async_event_handler): Likewise.
1261 * async-event.c (struct async_signal_handler) <name>: New field.
1262 (struct async_event_handler) <name>: New field.
1263 (create_async_signal_handler): Assign name.
1264 (create_async_event_handler): Assign name.
1265 * event-top.c (async_init_signals): Pass name when creating
1266 handler.
1267 * infrun.c (_initialize_infrun): Likewise.
1268 * record-btrace.c (record_btrace_push_target): Likewise.
1269 * record-full.c (record_full_open): Likewise.
1270 * remote-notif.c (remote_notif_state_allocate): Likewise.
1271 * remote.c (remote_target::open_1): Likewise.
1272 * tui/tui-win.c (tui_initialize_win): Likewise.
1273
1274 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1275
1276 * async-event.c (initialize_async_signal_handlers): Pass name to
1277 add_file_handler
1278 * event-top.c (ui_register_input_event_handler): Likewise.
1279 * linux-nat.c (linux_nat_target::async): Likewise.
1280 * run-on-main-thread.c (_initialize_run_on_main_thread):
1281 Likewise
1282 * ser-base.c (reschedule): Likewise.
1283 (ser_base_async): Likewise.
1284 * tui/tui-io.c: Likewise.
1285 * top.h (struct ui) <num>: New field.
1286 * top.c (highest_ui_num): New variable.
1287 (ui::ui): Initialize num.
1288
1289 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1290
1291 * observable.h <inferior_created>: Remove parameters. Update all
1292 listeners.
1293 * inferior.h (post_create_inferior): Remove target parameter.
1294 Update all callers.
1295
1296 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1297
1298 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1299 and DW_MACRO_undef_strx.
1300 (dwarf_decode_macros): Likewise
1301 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1302 which is the value of DW_AT_str_offsets_base.
1303 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1304 str_offsets_base.
1305
1306 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1307
1308 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1309
1310 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1311
1312 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1313 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1314
1315 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1316
1317 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1318
1319 2020-09-30 Tom de Vries <tdevries@suse.de>
1320
1321 PR symtab/26683
1322 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1323
1324 2020-09-30 Tom Tromey <tromey@adacore.com>
1325
1326 * dwarf2/read.c (handle_variant): Use constant_value.
1327
1328 2020-09-29 Tom Tromey <tom@tromey.com>
1329
1330 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1331 (read_file_scope, dwarf2_get_pc_bounds)
1332 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1333 (read_structure_type, handle_struct_member_die)
1334 (read_enumeration_type, read_array_type, read_set_type)
1335 (read_tag_pointer_type, read_tag_reference_type)
1336 (read_subroutine_type, read_base_type, read_subrange_type)
1337 (read_full_die_1, partial_die_info::read)
1338 (partial_die_info::read, by, new_symbol)
1339 (dwarf2_const_value_data, dwarf2_const_value_attr)
1340 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1341 (prepare_one_comp_unit): Update.
1342 * dwarf2/attribute.h (DW_UNSND): Remove.
1343
1344 2020-09-29 Tom Tromey <tom@tromey.com>
1345
1346 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1347 (read_subroutine_type, partial_die_info::read)
1348 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1349 (dwarf2_add_member_fn): Update.
1350 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1351 * dwarf2/attribute.c (attribute::as_boolean): New method.
1352
1353 2020-09-29 Tom Tromey <tom@tromey.com>
1354
1355 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1356 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1357 method.
1358 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1359
1360 2020-09-29 Tom Tromey <tom@tromey.com>
1361
1362 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1363 the attribute's form.
1364
1365 2020-09-29 Tom Tromey <tom@tromey.com>
1366
1367 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1368 (dwarf2_add_member_fn): Update.
1369 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1370 * dwarf2/attribute.c (attribute::defaulted): New method, from
1371 is_valid_DW_AT_defaulted.
1372
1373 2020-09-29 Tom Tromey <tom@tromey.com>
1374
1375 * dwarf2/read.c (dw2_get_file_names_reader)
1376 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1377 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1378 (dwarf2_symbol_mark_computed): Use as_unsigned.
1379 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1380 method.
1381 <form_is_section_offset>: Update comment.
1382
1383 2020-09-29 Tom Tromey <tom@tromey.com>
1384
1385 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1386 dwarf2_default_access_attribute. Look up attribute.
1387 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1388 Update.
1389
1390 2020-09-29 Tom Tromey <tom@tromey.com>
1391
1392 * dwarf2/read.c (skip_one_die): Update.
1393 (read_full_die_1): Change how reprocessing is done.
1394 (partial_die_info::read): Update.
1395 (read_attribute_value): Remove need_reprocess parameter.
1396 (read_attribute): Likewise.
1397 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1398 New method.
1399
1400 2020-09-29 Tom Tromey <tom@tromey.com>
1401
1402 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1403 (dwarf2_const_value_attr, dump_die_shallow)
1404 (dwarf2_fetch_constant_bytes): Update.
1405 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1406 comment.
1407 <set_address>: New method.
1408 (DW_ADDR): Remove.
1409 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1410 (attribute::as_string, attribute::as_address): Add assert.
1411
1412 2020-09-29 Tom Tromey <tom@tromey.com>
1413
1414 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1415 (read_attribute_reprocess, read_attribute_value): Update.
1416 (read_attribute): Clear requires_reprocessing.
1417 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1418 form_requires_reprocessing>: New methods.
1419 <string_init>: Clear requires_reprocessing.
1420 <set_unsigned_reprocess>: New method.
1421 <name>: Shrink by one bit.
1422 <requires_reprocessing>: New member.
1423 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1424 method.
1425
1426 2020-09-29 Tom Tromey <tom@tromey.com>
1427
1428 * dwarf2/read.c (read_attribute_value): Update.
1429 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1430 set_unsigned>: New methods.
1431 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1432
1433 2020-09-29 Tom Tromey <tom@tromey.com>
1434
1435 * dwarf2/read.c (get_alignment, read_array_order)
1436 (read_attribute_value, dwarf2_const_value_attr)
1437 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1438 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1439 New methods.
1440 (DW_SND): Remove.
1441
1442 2020-09-29 Tom Tromey <tom@tromey.com>
1443
1444 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1445 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1446 Update.
1447 * dwarf2/attribute.h (struct attribute) <as_signature,
1448 set_signature>: New methods.
1449 (DW_SIGNATURE): Remove.
1450
1451 2020-09-29 Tom Tromey <tom@tromey.com>
1452
1453 * dwarf2/read.c (read_call_site_scope)
1454 (handle_data_member_location, dwarf2_add_member_fn)
1455 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1456 (partial_die_info::read, read_attribute_value)
1457 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1458 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1459 (dwarf2_symbol_mark_computed): Update.
1460 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1461 methods.
1462 (DW_BLOCK): Remove.
1463 * dwarf2/attribute.c (attribute::form_is_block): Add
1464 DW_FORM_data16.
1465
1466 2020-09-29 Tom Tromey <tom@tromey.com>
1467
1468 * dwarf2/read.c (read_cutu_die_from_dwo)
1469 (read_attribute_reprocess, read_attribute_value, read_attribute)
1470 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1471 (dwarf2_fetch_constant_bytes): Update.
1472 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1473 <set_string_noncanonical, set_string_canonical>: New methods.
1474 <string_is_canonical>: Update comment.
1475 <canonical_string_p>: Add assert.
1476 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1477 * dwarf2/attribute.c (attribute::form_is_string): New method.
1478 (attribute::string): Use it.
1479
1480 2020-09-29 Tom Tromey <tom@tromey.com>
1481
1482 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1483 (dump_die_shallow): Use canonical_string_p.
1484 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1485 method.
1486
1487 2020-09-29 Tom Tromey <tom@tromey.com>
1488
1489 * dwarf2/read.c (partial_die_info::read)
1490 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1491 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1492 attribute::as_string.
1493
1494 2020-09-29 Tom Tromey <tom@tromey.com>
1495
1496 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1497 DW_ADDR.
1498 (attribute::string): Don't use DW_STRING.
1499 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1500 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1501
1502 2020-09-29 Tom Tromey <tom@tromey.com>
1503
1504 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1505 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1506 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1507 * dwarf2/attribute.h (struct attribute): Rename methods.
1508 * dwarf2/attribute.c (attribute::as_address): Rename from
1509 value_as_address.
1510 (attribute::as_string): Rename from value_as_string.
1511
1512 2020-09-29 Tom Tromey <tom@tromey.com>
1513
1514 * dwarf2/read.c (partial_die_info::read) <case
1515 DW_AT_linkage_name>: Use value_as_string.
1516 (dwarf2_string_attr): Use value_as_string.
1517 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1518 method.
1519 * dwarf2/attribute.c (attribute::value_as_string): New method.
1520
1521 2020-09-29 Pedro Alves <pedro@palves.net>
1522
1523 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1524 defined before using '#pragma GCC diagnostic' instead of checking
1525 __clang__.
1526
1527 2020-09-28 Tom Tromey <tom@tromey.com>
1528
1529 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1530 (handle_signal_stop): Update.
1531 * procfs.c (procfs_target::insert_watchpoint): Update.
1532 * target.h (target_have_steppable_watchpoint): Now a function.
1533
1534 2020-09-28 Tom Tromey <tom@tromey.com>
1535
1536 * infrun.c (set_schedlock_func): Update.
1537 * target.h (target_can_lock_scheduler): Now a function.
1538
1539 2020-09-28 Tom Tromey <tom@tromey.com>
1540
1541 * inferior.h (class inferior) <has_execution>: Update.
1542 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1543 * valops.c (find_function_in_inferior)
1544 (value_allocate_space_in_inferior): Update.
1545 * top.c (kill_or_detach): Update.
1546 * target.c (target_preopen, set_target_permissions): Update.
1547 (target_has_execution_current): Remove.
1548 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1549 Update.
1550 * solib.c (update_solib_list, reload_shared_libraries): Update.
1551 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1552 * solib-dsbt.c (enable_break): Update.
1553 * score-tdep.c (score7_fetch_inst): Update.
1554 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1555 Update.
1556 * remote.c (remote_target::start_remote)
1557 (remote_target::remote_check_symbols, remote_target::open_1)
1558 (remote_target::remote_detach_1, remote_target::verify_memory)
1559 (remote_target::xfer_partial, remote_target::read_description)
1560 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1561 * record-full.c (record_full_open_1): Update.
1562 * record-btrace.c (record_btrace_target_open): Update.
1563 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1564 (value_nsstring): Update.
1565 * linux-thread-db.c (add_thread_db_info)
1566 (thread_db_find_new_threads_silently, check_thread_db_callback)
1567 (try_thread_db_load_1, record_thread): Update.
1568 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1569 Update.
1570 * linux-fork.c (checkpoint_command): Update.
1571 * infrun.c (set_non_stop, set_observer_mode)
1572 (check_multi_target_resumption, for_each_just_stopped_thread)
1573 (maybe_remove_breakpoints, normal_stop)
1574 (class infcall_suspend_state): Update.
1575 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1576 (info_program_command, attach_command): Update.
1577 * infcall.c (call_function_by_hand_dummy): Update.
1578 * inf-loop.c (inferior_event_handler): Update.
1579 * gcore.c (gcore_command, derive_heap_segment): Update.
1580 * exec.c (exec_file_command): Update.
1581 * eval.c (evaluate_subexp): Update.
1582 * compile/compile.c (compile_to_object): Update.
1583 * cli/cli-dump.c (restore_command): Update.
1584 * breakpoint.c (update_watchpoint)
1585 (update_inserted_breakpoint_locations)
1586 (insert_breakpoint_locations, get_bpstat_thread): Update.
1587 * target.h (target_has_execution): Remove macro.
1588 (target_has_execution_current): Don't declare.
1589 (target_has_execution): Rename from target_has_execution_1. Add
1590 argument default.
1591
1592 2020-09-28 Tom Tromey <tom@tromey.com>
1593
1594 * mi/mi-main.c (exec_reverse_continue)
1595 (mi_cmd_list_target_features): Update.
1596 * infrun.c (set_exec_direction_func): Update.
1597 * target.c (default_execution_direction): Update.
1598 * reverse.c (exec_reverse_once): Update.
1599 * target.h (target_can_execute_reverse): Now a function.
1600
1601 2020-09-28 Tom Tromey <tom@tromey.com>
1602
1603 * tui/tui-regs.c (tui_get_register)
1604 (tui_data_window::show_registers): Update.
1605 * thread.c (scoped_restore_current_thread::restore)
1606 (scoped_restore_current_thread::scoped_restore_current_thread):
1607 Update.
1608 * regcache-dump.c (regcache_print): Update.
1609 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1610 Update.
1611 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1612 * mep-tdep.c (current_me_module, current_options): Update.
1613 * linux-thread-db.c (thread_db_load): Update.
1614 * infcmd.c (registers_info, info_vector_command)
1615 (info_float_command): Update.
1616 * ia64-tdep.c (ia64_frame_prev_register)
1617 (ia64_sigtramp_frame_prev_register): Update.
1618 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1619 * gcore.c (derive_stack_segment): Update.
1620 * frame.c (get_current_frame, has_stack_frames): Update.
1621 * findvar.c (language_defn::read_var_value): Update.
1622 * arm-tdep.c (arm_pc_is_thumb): Update.
1623 * target.c (target_has_registers): Rename from
1624 target_has_registers_1.
1625 * target.h (target_has_registers): Remove macro.
1626 (target_has_registers): Rename from target_has_registers_1.
1627
1628 2020-09-28 Tom Tromey <tom@tromey.com>
1629
1630 * windows-tdep.c (tlb_make_value): Update.
1631 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1632 * thread.c (scoped_restore_current_thread::restore)
1633 (scoped_restore_current_thread::scoped_restore_current_thread)
1634 (thread_command): Update.
1635 * stack.c (backtrace_command_1, frame_apply_level_command)
1636 (frame_apply_all_command, frame_apply_command): Update.
1637 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1638 Update.
1639 * gcore.c (derive_stack_segment): Update.
1640 * frame.c (get_current_frame, has_stack_frames): Update.
1641 * auxv.c (info_auxv_command): Update.
1642 * ada-tasks.c (ada_build_task_list): Update.
1643 * target.c (target_has_stack): Rename from target_has_stack_1.
1644 * target.h (target_has_stack): Remove macro.
1645 (target_has_stack): Rename from target_has_stack_1.
1646
1647 2020-09-28 Tom Tromey <tom@tromey.com>
1648
1649 * target.c (target_has_memory): Rename from target_has_memory_1.
1650 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1651 * thread.c (scoped_restore_current_thread::restore)
1652 (scoped_restore_current_thread::scoped_restore_current_thread):
1653 Update.
1654 * frame.c (get_current_frame, has_stack_frames): Update.
1655 * target.h (target_has_memory): Remove macro.
1656 (target_has_memory): Rename from target_has_memory_1.
1657
1658 2020-09-28 Tom Tromey <tom@tromey.com>
1659
1660 * target.c (target_has_all_memory_1): Remove.
1661 * target.h (target_has_all_memory): Remove define.
1662 (target_has_all_memory_1): Don't declare.
1663
1664 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1665
1666 * ser-base.c: Adjust comments formatting.
1667
1668 2020-09-27 Tom Tromey <tom@tromey.com>
1669
1670 PR tui/25342:
1671 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1672
1673 2020-09-27 Tom Tromey <tom@tromey.com>
1674
1675 PR tui/25342:
1676 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1677
1678 2020-09-27 Tom Tromey <tom@tromey.com>
1679
1680 * unittests/tui-selftests.c: Update.
1681 * tui/tui-winsource.h (struct tui_source_window_base)
1682 <extra_margin, show_line_number, refresh_pad>: New methods.
1683 <m_max_length, m_pad>: New members.
1684 (tui_copy_source_line): Update.
1685 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1686 first_col, line_width, ndigits parameters. Add length.
1687 (tui_source_window_base::show_source_line): Write to pad. Line
1688 number now 0-based.
1689 (tui_source_window_base::refresh_pad): New method.
1690 (tui_source_window_base::show_source_content): Write to pad. Call
1691 refresh_pad.
1692 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1693 not refill.
1694 (tui_source_window_base::update_exec_info): Call
1695 show_line_number.
1696 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1697 method.
1698 <m_digits>: New member.
1699 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1700 and m_max_length.
1701 (tui_source_window::show_line_number): New method.
1702 * tui/tui-io.h (tui_puts): Fix comment.
1703 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1704 m_max_length.
1705
1706 2020-09-27 Tom Tromey <tom@tromey.com>
1707
1708 * tui/tui-winsource.c
1709 (tui_source_window_base::set_is_exec_point_at): Don't call
1710 show_source_line.
1711
1712 2020-09-27 Tom Tromey <tom@tromey.com>
1713
1714 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1715 method.
1716 <erase>: Update.
1717 <cursor_x, cursor_y>: Remove.
1718 <m_inner_window>: New member.
1719 (tui_py_window::rerender): Create inner window.
1720 (tui_py_window::output): Write to inner window.
1721
1722 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1723
1724 PR python/26586
1725 * cli/cli-script.c (execute_control_commands): don't set
1726 instream to nullptr here as this breaks the from_tty argument
1727 to gdb.execute in Python.
1728 (execute_user_command): set instream to nullptr here instead.
1729
1730 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1731
1732 * infrun.h (infrun_debug_printf): Fix formatting.
1733 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1734
1735 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1736
1737 * compile/compile-object-load.h (struct munmap_list): Add
1738 explicitly-defined move constructor.
1739
1740 2020-09-24 Tom Tromey <tromey@adacore.com>
1741
1742 PR tui/26638:
1743 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1744 method.
1745 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1746 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1747 (tui_prev_win): Rewrite.
1748
1749 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1750
1751 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1752 in WOW64 processes as SIGINT.
1753 * nat/windows-nat.h: Make wow64_process a shared variable.
1754 * windows-nat.c: Remove static wow64_process variable.
1755
1756 2020-09-23 Tom Tromey <tom@tromey.com>
1757
1758 PR symtab/25470:
1759 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1760 offset and bit size.
1761 * printcmd.c (print_scalar_formatted): Handle zero-length
1762 integer.
1763 (print_scalar_formatted): Use bit_size_differs_p.
1764 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1765 constant.
1766 (union type_specific): <int_stuff>: New member.
1767 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1768 methods.
1769 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1770 TYPE_SPECIFIC_FIELD.
1771 (recursive_dump_type, copy_type_recursive): Update.
1772 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1773 DW_AT_data_bit_offset.
1774
1775 2020-09-23 Tom Tromey <tom@tromey.com>
1776
1777 * utils.h (class gdb_argv): Add move operators.
1778 <append>: New methods.
1779 * compile/compile.c (build_argc_argv): Remove.
1780 (compile_args_argc): Remove.
1781 (compile_args_argv): Change type.
1782 (set_compile_args): Simplify.
1783 (append_args): Remove.
1784 (filter_args): Remove argcp parameter.
1785 (get_args): Return gdb_argv. Simplify.
1786 (compile_to_object): Update.
1787
1788 2020-09-23 Tom Tromey <tom@tromey.com>
1789
1790 * compile/compile-object-run.c (do_module_cleanup)
1791 <~do_module_cleanup> :Remove.
1792 (do_module_cleanup): Update.
1793 * compile/compile-object-load.h (struct munmap_list): Add move
1794 assignment operator.
1795 <source_file>: Now a std::string.
1796 <munmap_list>: Rename. No longer a pointer.
1797 * compile/compile-object-load.c (struct setup_sections_data): Add
1798 constructor.
1799 <setup_one_section>: Declare.
1800 <munmap_list>: Move earlier.
1801 <m_bfd>: New member.
1802 <m_last_size, m_last_section_first, m_last_prot,
1803 m_last_max_alignment>: Rename, add initializers where needed.
1804 (setup_sections_data::setup_one_section): Rename from
1805 setup_sections. Update.
1806 (compile_object_load): Update. Don't use bfd_map_over_sections.
1807
1808 2020-09-23 Tom Tromey <tom@tromey.com>
1809
1810 * compile/compile-object-run.c (struct do_module_cleanup): Add
1811 parameters to constructor. Update destructor.
1812 <source_file, scope, scope_data, out_value_type, out_value_addr,
1813 munmap_list_head, objfile_name_string>: Remove.
1814 <module>: New member.
1815 (do_module_cleanup): Update.
1816 (compile_object_run): Update.
1817
1818 2020-09-23 Tom Tromey <tom@tromey.com>
1819
1820 * compile/compile.c (eval_compile_command): Update.
1821 * compile/compile-object-run.h (compile_object_run): Take a
1822 compile_module_up.
1823 * compile/compile-object-run.c (compile_object_run): Take a
1824 compile_module_up.
1825 * compile/compile-object-load.h (struct compile_module): Add
1826 constructor, destructor.
1827 (compile_module_up): New typedef.
1828 (compile_object_load): Return compile_object_up.
1829 * compile/compile-object-load.c (compile_object_load): Return
1830 compile_module_up.
1831
1832 2020-09-23 Tom Tromey <tom@tromey.com>
1833
1834 * compile/compile-object-run.c (struct do_module_cleanup): Add
1835 constructor, destructor.
1836 <objfile_name_string>: Don't use struct hack.
1837 (do_module_cleanup): Use delete.
1838 (compile_object_run): Use new.
1839
1840 2020-09-23 Tom Tromey <tom@tromey.com>
1841
1842 * compile/compile-cplus-types.c
1843 (compile_cplus_convert_struct_or_union): Use std::vector.
1844 (compile_cplus_convert_func): Likewise.
1845 * compile/compile-c-types.c (convert_func): Use std::vector.
1846
1847 2020-09-21 Tom Tromey <tromey@adacore.com>
1848
1849 * sparc-tdep.c (sparc32_skip_prologue): Use
1850 skip_prologue_using_sal.
1851
1852 2020-09-19 Tom Tromey <tom@tromey.com>
1853
1854 * symfile.c (add_section_size_callback): Remove.
1855 (load_one_section): Rename from load_section_callback. Change
1856 parameters.
1857 (generic_load): Use foreach.
1858
1859 2020-09-19 Tom Tromey <tom@tromey.com>
1860
1861 * exec.c (add_to_section_table): Remove.
1862 (build_section_table): Use foreach.
1863
1864 2020-09-19 Tom Tromey <tom@tromey.com>
1865
1866 * elfread.c (elf_locate_sections): Change parameters.
1867 (elf_symfile_read): Use foreach.
1868
1869 2020-09-19 Tom Tromey <tom@tromey.com>
1870
1871 * cli/cli-dump.c (struct callback_data): Remove.
1872 (restore_one_section): Rename from restore_section_callback.
1873 Change parameters.
1874 (restore_binary_file): Change parameters.
1875 (restore_command): Use foreach.
1876
1877 2020-09-19 Tom Tromey <tom@tromey.com>
1878
1879 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1880 (gcore_copy_callback): Likewise.
1881 (gcore_memory_sections): Use foreach.
1882
1883 2020-09-19 Tom Tromey <tom@tromey.com>
1884
1885 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1886 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1887 parameters.
1888 (generic_elf_osabi_sniffer): Use foreach.
1889 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1890 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1891
1892 2020-09-19 Tom Tromey <tom@tromey.com>
1893
1894 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1895 (dwarf2_get_dwz_file): Use foreach.
1896 (dwarf2_locate_dwo_sections): Change parameters.
1897 (open_and_init_dwo_file): Use foreach.
1898 (dwarf2_locate_common_dwp_sections): Change parameters.
1899 (open_and_init_dwp_file): Use foreach.
1900
1901 2020-09-19 Tom Tromey <tom@tromey.com>
1902
1903 * symfile.h: (find_lowest_section): Don't declare.
1904 * symfile.c (find_lowest_section): Now static. Change
1905 parameters.
1906 (struct place_section_arg): Remove.
1907 (place_section): Change parameters.
1908 (addr_info_make_relative): Use foreach.
1909 (symfile_dummy_outputs): Remove.
1910 (default_symfile_relocate): Use foreach.
1911
1912 2020-09-19 Tom Tromey <tom@tromey.com>
1913
1914 * objfiles.c (add_to_objfile_sections): Rename from
1915 add_to_objfile_sections_full.
1916 (add_to_objfile_sections): Remove.
1917 (build_objfile_section_table): Use foreach.
1918
1919 2020-09-19 Tom Tromey <tom@tromey.com>
1920
1921 * stap-probe.c (get_stap_base_address_1): Remove.
1922 (get_stap_base_address): Use foreach.
1923
1924 2020-09-19 Tom Tromey <tom@tromey.com>
1925
1926 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1927 parameters.
1928 (gdb_bfd_close_or_warn): Use foreach.
1929
1930 2020-09-19 Tom Tromey <tom@tromey.com>
1931
1932 * corelow.c (add_to_thread_list): Change parameters.
1933 (core_target_open): Use foreach.
1934
1935 2020-09-19 Tom Tromey <tom@tromey.com>
1936
1937 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1938 existing function.
1939
1940 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1941
1942 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1943 for arrays.
1944
1945 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1946
1947 * eval.c: Remove 'f-lang.h' include.
1948 (value_f90_subarray): Moved to f-lang.c.
1949 (eval_call): Renamed to...
1950 (evaluate_subexp_do_call): ...this, is no longer static, header
1951 comment moved into header file.
1952 (evaluate_funcall): Update call to eval_call.
1953 (skip_undetermined_arglist): Moved to f-lang.c.
1954 (fortran_value_subarray): Likewise.
1955 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1956 moved to evaluate_subexp_f.
1957 (calc_f77_array_dims): Moved to f-lang.c
1958 * expprint.c (print_subexp_funcall): New function.
1959 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1960 moved to print_subexp_f, OP_FUNCALL uses new function.
1961 (dump_subexp_body_funcall): New function.
1962 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1963 moved to dump_subexp_f, OP_FUNCALL uses new function.
1964 * expression.h (evaluate_subexp_do_call): Declare.
1965 * f-lang.c (value_f90_subarray): Moved from eval.c.
1966 (skip_undetermined_arglist): Likewise.
1967 (calc_f77_array_dims): Likewise.
1968 (fortran_value_subarray): Likewise.
1969 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1970 (operator_length_f): Likewise.
1971 (print_subexp_f): Likewise.
1972 (dump_subexp_body_f): Likewise.
1973 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1974 declaration of this operation to here.
1975 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1976 support moved to operator_length_f.
1977 * parser-defs.h (dump_subexp_body_funcall): Declare.
1978 (print_subexp_funcall): Declare.
1979 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1980 fortran-operator.def.
1981
1982 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1983
1984 * eval.c (fortran_value_subarray): New function, content is taken
1985 from...
1986 (evaluate_subexp_standard): ...here, in two places. Now arrays
1987 and strings both call the new function.
1988 (calc_f77_array_dims): Add header comment, handle strings.
1989
1990 2020-09-18 Victor Collod <vcollod@nvidia.com>
1991
1992 PR gdb/26635
1993 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1994 (i386_analyze_prologue): Call i386_skip_endbr.
1995
1996 2020-09-18 Tom Tromey <tromey@adacore.com>
1997
1998 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1999 (windows_nat_target::wait): Update.
2000 * target/wait.h (enum target_wait_flag): New. Use
2001 DEF_ENUM_FLAGS_TYPE.
2002 * target/target.h (target_wait): Change type of options.
2003 * target.h (target_options_to_string, default_target_wait):
2004 Update.
2005 (struct target_ops) <wait>: Change type of options.
2006 * target.c (target_wait, default_target_wait, do_option): Change
2007 type of "options".
2008 (target_options_to_string): Likewise.
2009 * target-delegates.c: Rebuild.
2010 * target-debug.h (target_debug_print_target_wait_flags): Rename
2011 from target_debug_print_options.
2012 * sol-thread.c (class sol_thread_target) <wait>: Update.
2013 (sol_thread_target::wait): Update.
2014 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2015 (rs6000_nat_target::wait): Update.
2016 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2017 Update.
2018 (remote_target::wait_ns, remote_target::wait_as): Change type of
2019 "options".
2020 (remote_target::wait): Update.
2021 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2022 (gdbsim_target::wait): Update.
2023 * record-full.c (class record_full_base_target) <wait>: Update.
2024 (record_full_wait_1): Change type of "options".
2025 (record_full_base_target::wait): Update.
2026 * record-btrace.c (class record_btrace_target) <wait>: Update.
2027 (record_btrace_target::wait): Update.
2028 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2029 Update.
2030 (ravenscar_thread_target::wait): Update.
2031 * procfs.c (class procfs_target) <wait>: Update.
2032 (procfs_target::wait): Update.
2033 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2034 * obsd-nat.c (obsd_nat_target::wait): Update.
2035 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2036 (nto_procfs_target::wait): Update.
2037 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2038 * nbsd-nat.c (nbsd_wait): Change type of "options".
2039 (nbsd_nat_target::wait): Update.
2040 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2041 (thread_db_target::wait): Update.
2042 * linux-nat.h (class linux_nat_target) <wait>: Update.
2043 * linux-nat.c (linux_nat_target::wait): Update.
2044 (linux_nat_wait_1): Update.
2045 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2046 "options".
2047 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2048 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2049 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2050 (go32_nat_target::wait): Update.
2051 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2052 * gnu-nat.c (gnu_nat_target::wait): Update.
2053 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2054 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2055 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2056 * darwin-nat.c (darwin_nat_target::wait): Update.
2057 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2058 (bsd_uthread_target::wait): Update.
2059 * aix-thread.c (class aix_thread_target) <wait>: Update.
2060 (aix_thread_target::wait): Update.
2061
2062 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * compile/compile-object-run.c (create_copied_type_recursive): New
2065 function.
2066 (compile_object_run): Use new function.
2067
2068 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2069
2070 * NEWS: Mention x86_64 Cygwin core file support.
2071
2072 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2073
2074 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2075 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2076
2077 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2078
2079 * windows-tdep.h: Add prototypes.
2080 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2081 (i386_windows_core_pid_to_str): Move and rename ...
2082 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2083 (windows_core_pid_to_str): ... and here.
2084 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2085
2086 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2087 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2088 (amd64_windows_init_abi_common): ... and register.
2089
2090 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2091
2092 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2093 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2094
2095 2020-09-18 Pedro Alves <pedro@palves.net>
2096
2097 PR gdb/26631
2098 * thread.c (thread_find_command): Switch inferior before calling
2099 target methods.
2100
2101 2020-09-17 Tom Tromey <tromey@adacore.com>
2102
2103 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2104 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2105 (tdesc_arch_data_up): New typedef.
2106 (tdesc_use_registers, tdesc_data_alloc): Update.
2107 (tdesc_data_cleanup): Don't declare.
2108 * target-descriptions.c (tdesc_data_alloc): Return a
2109 tdesc_arch_data_up.
2110 (tdesc_arch_data_deleter::operator()): Rename from
2111 tdesc_data_cleanup. Change argument type.
2112 (tdesc_use_registers): Change early_data to an rvalue reference.
2113 (tdesc_use_registers): Don't use delete.
2114 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2115 * s390-tdep.c (s390_gdbarch_init): Update.
2116 * rx-tdep.c (rx_gdbarch_init): Update.
2117 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2118 * riscv-tdep.c (riscv_gdbarch_init): Update.
2119 * or1k-tdep.c (or1k_gdbarch_init): Update.
2120 * nios2-tdep.c (nios2_gdbarch_init): Update.
2121 * nds32-tdep.c (nds32_gdbarch_init): Update.
2122 * mips-tdep.c (mips_gdbarch_init): Update.
2123 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2124 * m68k-tdep.c (m68k_gdbarch_init): Update.
2125 * i386-tdep.c (i386_gdbarch_init): Update.
2126 * arm-tdep.c (arm_gdbarch_init): Update.
2127 * arc-tdep.c (arc_tdesc_init): Update.
2128 (arc_gdbarch_init): Update.
2129 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2130
2131 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2132
2133 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2134 for WOW64 processes.
2135
2136 2020-09-17 Tom Tromey <tom@tromey.com>
2137
2138 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2139
2140 2020-09-17 Tom Tromey <tom@tromey.com>
2141
2142 * value.c (preserve_values): Update.
2143 * python/py-type.c (save_objfile_types): Update.
2144 * guile/scm-type.c (save_objfile_types): Update.
2145 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2146 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2147 * compile/compile-object-run.c (compile_object_run): Update.
2148
2149 2020-09-17 Tom Tromey <tom@tromey.com>
2150
2151 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2152 Remove.
2153 <m_table>: Now htab_up.
2154 * typeprint.c (typedef_hash_table::recursively_update)
2155 (typedef_hash_table::add_template_parameters)
2156 (typedef_hash_table::typedef_hash_table): Update.
2157 (typedef_hash_table::~typedef_hash_table): Remove.
2158 (typedef_hash_table::typedef_hash_table)
2159 (typedef_hash_table::find_global_typedef)
2160 (typedef_hash_table::find_typedef): Update.
2161
2162 2020-09-17 Tom Tromey <tom@tromey.com>
2163
2164 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2165
2166 2020-09-17 Tom Tromey <tom@tromey.com>
2167
2168 * linespec.c (class decode_compound_collector)
2169 <~decode_compound_collector>: Remove.
2170 <m_unique_syms>: Now htab_up.
2171 (decode_compound_collector::operator ()): Update.
2172 (class symtab_collector) <~symtab_collector>: Remove.
2173 <m_symtab_table>: Now htab_up.
2174 (symtab_collector::operator ()): Update.
2175
2176 2020-09-17 Tom Tromey <tom@tromey.com>
2177
2178 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2179 (filename_seen_cache::clear): Update.
2180 (~filename_seen_cache): Remove.
2181 (filename_seen_cache::seen): Update.
2182 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2183 htab_up.
2184 <~filename_seen_cache>: Remove.
2185 <traverse>: Update.
2186
2187 2020-09-17 Tom Tromey <tom@tromey.com>
2188
2189 * completer.c (completion_tracker::discard_completions)
2190 (completion_tracker::~completion_tracker)
2191 (completion_tracker::maybe_add_completion)
2192 (completion_tracker::remove_completion)
2193 (completion_tracker::recompute_lowest_common_denominator)
2194 (completion_tracker::build_completion_result): Update.
2195 * completer.h (class completion_tracker) <have_completions>:
2196 Update.
2197 <m_entries_hash>: Now htab_up.
2198
2199 2020-09-17 Tom Tromey <tom@tromey.com>
2200
2201 * breakpoint.c (ambiguous_names_p): Use htab_up.
2202
2203 2020-09-17 Tom Tromey <tom@tromey.com>
2204
2205 * auto-load.c (struct auto_load_pspace_info)
2206 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2207 <loaded_script_files, loaded_script_texts>: Change type to
2208 htab_up.
2209 (~auto_load_pspace_info) Remove.
2210 (init_loaded_scripts_info, maybe_add_script_file)
2211 (maybe_add_script_text, auto_load_info_scripts): Update.
2212
2213 2020-09-17 Tom Tromey <tromey@adacore.com>
2214
2215 * c-exp.y (name_obstack): Now static.
2216
2217 2020-09-17 Chungyi Chi <demonic@csie.io>
2218
2219 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2220
2221 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2222
2223 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2224 (add_solib_catchpoint): Likewise.
2225 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2226 to bool.
2227 (add_solib_catchpoint): Change int parameter/variable to bool.
2228 (catch_load_or_unload): Likewise.
2229 (init_catchpoint): Likewise.
2230 (create_fork_vfork_event_catchpoint): Likewise.
2231 (catch_fork_command_1): Likewise.
2232 (catch_exec_command_1): Likewise.
2233
2234 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2235
2236 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2237 Change instance_flags to m_instance_flags.
2238
2239 2020-09-16 Tom Tromey <tromey@adacore.com>
2240
2241 PR gdb/26598:
2242 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2243
2244 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2245
2246 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2247 PL_FLAG_EXEC.
2248 (fbsd_nat_target::insert_exec_catchpoint)
2249 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2250 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2251 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2252
2253 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2254
2255 * configure.ac: Remove check for kinfo_getvmmap().
2256 * configure, config.in: Regenerate.
2257 * fbsd-nat.c (fbsd_read_mapping): Remove
2258 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2259 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2260 kinfo_get_vmmap() are always present.
2261
2262 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2263
2264 * fbsd-nat.c: Always include support for
2265 TARGET_OBJECT_SIGNAL_INFO.
2266
2267 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2268
2269 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2270 sysctl and remove procfs fallback.
2271
2272 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2273
2274 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2275 * fbsd-nat.h: Likewise.
2276
2277 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2278
2279 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2280 argument.
2281
2282 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2283
2284 * ada-lang.c (ada_language_data): Delete.
2285 (ada_language): Remove references to ada_language_data.
2286 * c-lang.c (c_language_data): Delete.
2287 (c_language): Remove references to c_language_data.
2288 (cplus_language_data): Delete.
2289 (cplus_language): Remove references to cplus_language_data.
2290 (asm_language_data): Delete.
2291 (asm_language): Remove references to asm_language_data.
2292 (minimal_language_data): Delete.
2293 (minimal_language): Remove references to minimal_language_data.
2294 * d-lang.c (d_language_data): Delete.
2295 (d_language): Remove references to d_language_data.
2296 * f-lang.c (f_language_data): Delete.
2297 (f_language): Remove references to f_language_data.
2298 * go-lang.c (go_language_data): Delete.
2299 (go_language): Remove references to go_language_data.
2300 * language.c (unknown_language_data): Delete.
2301 (unknown_language): Remove references to unknown_language_data.
2302 (auto_language_data): Delete.
2303 (auto_language): Remove references to auto_language_data.
2304 * language.h (language_data): Delete struct.
2305 (language_defn): No longer inherit from language_data.
2306 * m2-lang.c (m2_language_data): Delete.
2307 (m2_language): Remove references to m2_language_data.
2308 * objc-lang.c (objc_language_data): Delete.
2309 (objc_language): Remove references to objc_language_data.
2310 * opencl-lang.c (opencl_language_data): Delete.
2311 (opencl_language): Remove references to opencl_language_data.
2312 * p-lang.c (pascal_language_data): Delete.
2313 (pascal_language): Remove references to pascal_language_data.
2314 * rust-lang.c (rust_language_data): Delete.
2315 (rust_language): Remove references to rust_language_data.
2316
2317 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2318
2319 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2320 initializer.
2321 (ada_language::opcode_print_table): New member function.
2322 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2323 (c_language::opcode_print_table): New member function.
2324 (cplus_language_data): Remove la_op_print_tab initializer.
2325 (cplus_language::opcode_print_table): New member function.
2326 (asm_language_data): Remove la_op_print_tab initializer.
2327 (asm_language::opcode_print_table): New member function.
2328 (minimal_language_data): Remove la_op_print_tab initializer.
2329 (minimal_language::opcode_print_table): New member function.
2330 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2331 (d_language::opcode_print_table): New member function.
2332 * expprint.c (print_subexp_standard): Update call to
2333 opcode_print_table.
2334 (op_string): Likewise.
2335 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2336 (f_language::opcode_print_table): New member function.
2337 * go-lang.c (go_language_data): Remove la_op_print_tab
2338 initializer.
2339 (go_language::opcode_print_table): New member function.
2340 * language.c (unknown_language_data): Remove la_op_print_tab
2341 initializer.
2342 (unknown_language::opcode_print_table): New member function.
2343 (auto_language_data): Remove la_op_print_tab initializer.
2344 (auto_language::opcode_print_table): New member function.
2345 * language.h (language_data): Remove la_op_print_tab field.
2346 (language_defn::opcode_print_table): Declare new member function.
2347 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2348 initializer.
2349 (m2_language::opcode_print_table): New member function.
2350 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2351 initializer.
2352 (objc_language::opcode_print_table): New member function.
2353 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2354 initializer.
2355 (opencl_language::opcode_print_table): New member function.
2356 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2357 initializer.
2358 (pascal_language::opcode_print_table): New member function.
2359 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2360 initializer.
2361 (rust_language::opcode_print_table): New member function.
2362
2363 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2364
2365 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2366 (ada_language::expression_ops): New member function.
2367 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2368 (c_language::expression_ops): New member function.
2369 (cplus_language_data): Remove la_exp_desc initializer.
2370 (cplus_language::expression_ops): New member function.
2371 (asm_language_data): Remove la_exp_desc initializer.
2372 (asm_language::expression_ops): New member function.
2373 (minimal_language_data): Remove la_exp_desc initializer.
2374 (minimal_language::expression_ops): New member function.
2375 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2376 (d_language::expression_ops): New member function.
2377 * eval.c (evaluate_subexp): Update call to expression_ops.
2378 * expprint.c (print_subexp): Likewise.
2379 (op_name): Likewise.
2380 (dump_subexp_body): Likewise.
2381 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2382 (f_language::expression_ops): New member function.
2383 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2384 (go_language::expression_ops): New member function.
2385 * language.c (language_defn::expression_ops): New function.
2386 (unknown_language_data): Remove la_exp_desc initializer.
2387 (auto_language_data): Likewise.
2388 * language.h (language_data): Remove la_exp_desc field.
2389 (language_defn::expression_ops): Declare new member function.
2390 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2391 (m2_language::expression_ops): New member function.
2392 * objc-lang.c (objc_language_data): Remove la_exp_desc
2393 initializer.
2394 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2395 initializer.
2396 (opencl_language::expression_ops): New member function.
2397 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2398 * parse.c (operator_length): Update call to expression_ops.
2399 (exp_iterate): Likewise.
2400 * rust-lang.c (rust_language_data): Remove la_exp_desc
2401 initializer.
2402 (ruse_language::expression_ops): New member function.
2403
2404 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2405
2406 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2407 initializer.
2408 (ada_language::varobj_ops): New member function.
2409 * c-lang.c (c_language_data): Remove la_varobj_ops
2410 initializer.
2411 (cplus_language_data): Likewise.
2412 (cplus_language::varobj_ops): New member function.
2413 (asm_language_data): Remove la_varobj_ops initializer.
2414 (minimal_language_data): Likewise.
2415 * d-lang.c (d_language_data): Likewise.
2416 * f-lang.c (f_language_data): Likewise.
2417 * go-lang.c (go_language_data): Likewise.
2418 * language.c (language_defn::varobj_ops): New function.
2419 (unknown_language_data): Remove la_varobj_ops
2420 initializer.
2421 (auto_language_data): Likewise.
2422 * language.h (language_data): Remove la_varobj_ops field.
2423 (language_defn::varobj_ops): Declare new member function.
2424 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2425 * objc-lang.c (objc_language_data): Likewise.
2426 * opencl-lang.c (opencl_language_data): Likewise.
2427 * p-lang.c (pascal_language_data): Likewise.
2428 * rust-lang.c (rust_language_data): Likewise.
2429 * varobj.c (varobj_create): Update call to varobj_ops.
2430 * varobj.h (default_varobj_ops): Delete define.
2431
2432 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2433
2434 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2435 initializer.
2436 * c-lang.c (c_language_data): Likewise.
2437 (c_language::macro_expansion): New member function.
2438 (cplus_language_data): Likewise.
2439 (cplus_language::macro_expansion): New member function.
2440 (asm_language_data): Likewise.
2441 (asm_language::macro_expansion): New member function.
2442 (minimal_language_data): Likewise.
2443 (minimal_language::macro_expansion): New member function.
2444 * d-lang.c (d_language_data): Remove la_macro_expansion
2445 initializer.
2446 * f-lang.c (f_language_data): Likewise.
2447 * go-lang.c (go_language_data): Likewise.
2448 * language.c (unknown_language_data): Likewise.
2449 (auto_language_data): Likewise.
2450 * language.h (language_data): Remove la_macro_expansion field.
2451 (language_defn::macro_expansion): New member function.
2452 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2453 initializer.
2454 * objc-lang.c (objc_language_data): Likewise.
2455 (objc_language::macro_expansion): New member function.
2456 * opencl-lang.c (opencl_language_data): Likewise.
2457 (opencl_language::macro_expansion): New member function.
2458 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2459 initializer.
2460 * rust-lang.c (rust_language_data): Likewise.
2461 * symtab.c (default_collect_symbol_completion_matches_break_on):
2462 Update call to macro_expansion.
2463
2464 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2465
2466 * ada-lang.c (ada_language_data): Remove la_array_ordering
2467 initializer.
2468 * c-lang.c (c_language_data): Likewise.
2469 (cplus_language_data): Likewise.
2470 (asm_language_data): Likewise.
2471 (minimal_language_data): Likewise.
2472 * d-lang.c (d_language_data): Likewise.
2473 * dwarf2/read.c (read_array_order): Update for call to
2474 array_ordering.
2475 * f-lang.c (f_language_data): Remove la_array_ordering
2476 initializer.
2477 (f_language::array_ordering): New member function.
2478 * go-lang.c (go_language_data): Remove la_array_ordering
2479 initializer.
2480 * language.c (unknown_language_data): Likewise.
2481 (auto_language_data): Likewise.
2482 * language.h (language_data): Delete la_array_ordering field.
2483 (language_defn::array_ordering): New member function.
2484 * m2-lang.c (m2_language_data): Remove la_array_ordering
2485 initializer.
2486 * objc-lang.c (objc_language_data): Likewise.
2487 * opencl-lang.c (opencl_language_data): Likewise.
2488 * p-lang.c (pascal_language_data): Likewise.
2489 * rust-lang.c (rust_language_data): Likewise.
2490
2491 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2492
2493 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2494 initializer.
2495 * c-lang.c (c_language_data): Likewise.
2496 (cplus_language_data): Likewise.
2497 (asm_language_data): Likewise.
2498 (minimal_language_data): Likewise.
2499 * d-lang.c (d_language_data): Likewise.
2500 * f-lang.c (f_language_data): Likewise.
2501 (f_language::case_sensitivity): New member function.
2502 * go-lang.c (go_language_data): Remove la_case_sensitivity
2503 initializer.
2504 * language.c (enum case_mode): Moved here from language.h.
2505 (case_mode): Make static.
2506 (show_case_command): Update for case_sensitivity being a method.
2507 (set_case_command): Likewise.
2508 (set_range_case): Likewise.
2509 (unknown_language_data): Remove la_case_sensitivity initializer.
2510 (auto_language_data): Likewise.
2511 * language.h (case_mode): Delete, move enum declaration to
2512 language.c.
2513 (language_data): Delete la_case_sensitivity field.
2514 (language_defn::case_sensitivity): New member function.
2515 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2516 initializer.
2517 * objc-lang.c (objc_language_data): Likewise.
2518 * opencl-lang.c (opencl_language_data): Likewise.
2519 * p-lang.c (pascal_language_data): Likewise.
2520 * rust-lang.c (rust_language_data): Likewise.
2521
2522 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2523
2524 * ada-lang.c (ada_language_data): Remove la_range_check
2525 initializer.
2526 * c-lang.c (c_language_data): Likewise.
2527 (cplus_language_data): Likewise.
2528 (asm_language_data): Likewise.
2529 (minimal_language_data): Likewise.
2530 * d-lang.c (d_language_data): Likewise.
2531 * f-lang.c (f_language_data): Likewise.
2532 (f_language::range_checking_on_by_default): New member function.
2533 * go-lang.c (go_language_data): Remove la_range_check initializer.
2534 * language.c (enum range_mode): Moved here from language.h.
2535 (range_mode): Made static.
2536 (show_range_command): Update to use
2537 range_checking_on_by_default.
2538 (set_range_command): Likewise.
2539 (set_range_case): Likewise.
2540 (unknown_language_data): Remove la_range_check initializer.
2541 (auto_language_data): Likewise.
2542 * language.h (range_mode): Delete. Enum definition moved to
2543 language.c.
2544 (language_data): Remove la_range_check field.
2545 (language_defn::range_checking_on_by_default): New member
2546 function.
2547 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2548 (m2_language::range_checking_on_by_default): New member function.
2549 * objc-lang.c (objc_language_data): Remove la_range_check
2550 initializer.
2551 * opencl-lang.c (opencl_language_data): Likewise.
2552 * p-lang.c (pascal_language_data): Likewise.
2553 (pascal_language::range_checking_on_by_default): New member
2554 function.
2555 * rust-lang.c (rust_language_data): Remove la_range_check
2556 initializer.
2557 (rust_language::range_checking_on_by_default): New member
2558 function.
2559
2560 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2561
2562 * dwarf2/read.c (dwarf2_physname): Remove special case for
2563 language_go.
2564 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2565 member function.
2566
2567 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2568
2569 * ada-lang.c (ada_language_data): Remove
2570 la_store_sym_names_in_linkage_form_p initializer.
2571 (ada_language::store_sym_names_in_linkage_form_p): New member
2572 function.
2573 * c-lang.c (c_language_data): Remove
2574 la_store_sym_names_in_linkage_form_p initializer.
2575 (c_language::store_sym_names_in_linkage_form_p): New member
2576 function.
2577 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2578 initializer.
2579 (asm_language_data): Likewise.
2580 (asm_language::store_sym_names_in_linkage_form_p): New member
2581 function.
2582 (minimal_language_data): Remove
2583 la_store_sym_names_in_linkage_form_p initializer.
2584 (minimal_language::store_sym_names_in_linkage_form_p): New member
2585 function.
2586 * d-lang.c (d_language_data): Remove
2587 la_store_sym_names_in_linkage_form_p initializer.
2588 * dwarf2/read.c (dwarf2_physname): Update call to
2589 store_sym_names_in_linkage_form_p.
2590 * f-lang.c (f_language_data): Remove
2591 la_store_sym_names_in_linkage_form_p initializer.
2592 * go-lang.c (go_language_data): Remove
2593 la_store_sym_names_in_linkage_form_p initializer.
2594 * language.c (unknown_language_data): Remove
2595 la_store_sym_names_in_linkage_form_p initializer.
2596 (unknown_language::store_sym_names_in_linkage_form_p): New member
2597 function.
2598 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2599 initializer.
2600 (auto_language::store_sym_names_in_linkage_form_p): New member
2601 function.
2602 * language.h (language_data): Remove
2603 la_store_sym_names_in_linkage_form_p member variable.
2604 (language_defn::store_sym_names_in_linkage_form_p): New member
2605 function.
2606 * m2-lang.c (m2_language_data): Remove
2607 la_store_sym_names_in_linkage_form_p initializer.
2608 * objc-lang.c (objc_language_data): Likewise.
2609 * opencl-lang.c (opencl_language_data): Likewise.
2610 * p-lang.c (pascal_language_data): Likewise.
2611 * rust-lang.c (rust_language_data): Likewise.
2612
2613 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2614
2615 * ada-lang.c (ada_language_data): Remove string_lower_bound
2616 initializer.
2617 * c-lang.c (c_language_data): Likewise.
2618 (cplus_language_data): Likewise.
2619 (asm_language_data): Likewise.
2620 (minimal_language_data): Likewise.
2621 * d-lang.c (d_language_data): Likewise.
2622 * f-lang.c (f_language_data): Likewise.
2623 * go-lang.c (go_language_data): Likewise.
2624 * language.c (unknown_language_data): Likewise.
2625 (auto_language_data): Likewise.
2626 * language.h (language_data): Remove string_lower_bound field.
2627 (language_defn::string_lower_bound): New member function.
2628 * m2-lang.c (m2_language_data): Remove string_lower_bound
2629 initializer.
2630 (m2_language::string_lower_bound): New member function.
2631 * objc-lang.c (objc_language_data): Remove string_lower_bound
2632 initializer.
2633 * opencl-lang.c (opencl_language_data): Likewise.
2634 * p-lang.c (pascal_language_data): Likewise.
2635 * rust-lang.c (rust_language_data): Likewise.
2636 * valops.c (value_cstring): Update call to string_lower_bound.
2637 (value_string): Likewise.
2638 * value.c (allocate_repeated_value): Likewise.
2639
2640 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2641
2642 * valops.c (value_repeat): Fix incorrect argument name in comment.
2643
2644 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2645
2646 * ada-lang.c (ada_language_data): Remove c_style_arrays
2647 initializer.
2648 (ada_language::c_style_arrays_p): New member fuction.
2649 * c-lang.c (c_language_data): Remove c_style_arrays
2650 initializer.
2651 (cplus_language_data): Likewise.
2652 (asm_language_data): Likewise.
2653 (minimal_language_data): Likewise.
2654 * d-lang.c (d_language_data): Likewise.
2655 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2656 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2657 (f_language::c_style_arrays_p): New member function.
2658 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2659 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2660 * language.c (unknown_language_data): Remove c_style_arrays
2661 initializer.
2662 (auto_language_data): Likewise.
2663 * language.h (language_data): Remove c_style_arrays field.
2664 (language_defn::c_style_arrays_p): New member function.
2665 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2666 (m2_language::c_style_arrays_p): New member function.
2667 * objc-lang.c (objc_language_data): Remove c_style_arrays
2668 initializer.
2669 * opencl-lang.c (opencl_language_data): Likewise.
2670 * p-lang.c (pascal_language_data): Likewise.
2671 * rust-lang.c (rust_language_data): Likewise.
2672 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2673 and update local variable to a bool.
2674 * valops.c (value_cast): Update call to c_style_arrays_p.
2675 (value_array): Likewise.
2676 * value.c (coerce_array): Likewise.
2677
2678 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2679
2680 * ada-lang.c (ada_language_data): Remove la_language initializer.
2681 * c-lang.c (c_language_data): Likewise.
2682 (cplus_language_data): Likewise.
2683 (asm_language_data): Likewise.
2684 (minimal_language_data): Likewise.
2685 * d-lang.c (d_language_data): Likewise.
2686 * f-lang.c (f_language_data): Likewise.
2687 * go-lang.c (go_language_data): Likewise.
2688 * language.c (unknown_language_data): Likewise.
2689 (auto_language_data): Likewise.
2690 * language.h (language_data): Remove la_language field.
2691 (language_defn::language_defn): Initialise la_language field.
2692 (language_defn::la_language): New member variable.
2693 * m2-lang.c (m2_language_data): Remove la_language field.
2694 * objc-lang.c (objc_language_data): Likewise.
2695 * opencl-lang.c (opencl_language_data): Likewise.
2696 * p-lang.c (pascal_language_data): Likewise.
2697 * rust-lang.c (rust_language_data): Likewise.
2698
2699 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2700
2701 * ada-lang.c (ada_extensions): Delete, moved into
2702 ada_language::filename_extensions.
2703 (ada_language_data): Remove la_filename_extensions initializer.
2704 (ada_language::filename_extensions): New member function.
2705 * c-lang.c (c_extensions): Delete, moved into
2706 c_language::filename_extensions.
2707 (c_language_data): Remove la_filename_extensions initializer.
2708 (c_language::filename_extensions): New member function.
2709 (cplus_extensions): Delete, moved into
2710 cplus_language::filename_extensions.
2711 (cplus_language_data): Remove la_filename_extensions initializer.
2712 (cplus_language::filename_extensions): New member function.
2713 (asm_extensions): Delete, moved into
2714 asm_language::filename_extensions.
2715 (asm_language_data): Remove la_filename_extensions initializer.
2716 (asm_language::filename_extensions): New member function.
2717 (minimal_language_data): Remove la_filename_extensions
2718 initializer.
2719 * d-lang.c (d_extensions): Delete, moved into
2720 d_language::filename_extensions.
2721 (d_language_data): Remove la_filename_extensions initializer.
2722 (d_language::filename_extensions): New member function.
2723 * f-lang.c (f_extensions): Delete, moved into
2724 f_language::filename_extensions.
2725 (f_language_data): Remove la_filename_extensions initializer.
2726 (f_language::filename_extensions): New member function.
2727 * go-lang.c (go_language_data): Remove la_filename_extensions
2728 initializer.
2729 * language.c (add_set_language_command): Update now that
2730 filename_extensions returns a vector.
2731 (unknown_language_data): Remove la_filename_extensions
2732 initializer.
2733 (auto_language_data): Likewise.
2734 * language.h (language_data): Remove la_filename_extensions field.
2735 (language_defn::filename_extensions): New member function.
2736 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2737 initializer.
2738 * objc-lang.c (objc_extensions): Delete, moved into
2739 objc_language::filename_extensions.
2740 (objc_language_data): Remove la_filename_extensions initializer.
2741 (objc_language::filename_extensions): New member function.
2742 * opencl-lang.c (opencl_language_data): Remove
2743 la_filename_extensions initializer.
2744 * p-lang.c (pascal_extensions): Delete, moved into
2745 pascal_language::filename_extensions.
2746 (pascal_language_data): Remove la_filename_extensions initializer.
2747 (pascal_language::filename_extensions): New member function.
2748 * rust-lang.c (rust_extensions): Delete, moved into
2749 rust_language::filename_extensions.
2750 (rust_language_data): Remove la_filename_extensions initializer.
2751 (rust_language::filename_extensions): New member function.
2752 * symfile.c (add_filename_language): Add new assert.
2753
2754 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2755
2756 * ada-lang.c (ada_language_data): Remove la_name and
2757 la_natural_name initializers.
2758 (ada_language::name): New member function.
2759 (ada_language::natural_name): New member function.
2760 * c-lang.c (c_language_data): Remove la_name and
2761 la_natural_name initializers.
2762 (c_language::name): New member function.
2763 (c_language::natural_name): New member function.
2764 (cplus_language_data): Remove la_name and
2765 la_natural_name initializers.
2766 (cplus_language::name): New member function.
2767 (cplus_language::natural_name): New member function.
2768 (asm_language_data): Remove la_name and
2769 la_natural_name initializers.
2770 (asm_language::name): New member function.
2771 (asm_language::natural_name): New member function.
2772 (minimal_language_data): Remove la_name and
2773 la_natural_name initializers.
2774 (minimal_language::name): New member function.
2775 (minimal_language::natural_name): New member function.
2776 * compile/compile.c (compile_to_object): Update call to
2777 lanugage_defn::name.
2778 * d-lang.c (d_language_data): Remove la_name and
2779 la_natural_name initializers.
2780 (d_language::name): New member function.
2781 (d_language::natural_name): New member function.
2782 * expprint.c (print_subexp_standard): Update call to
2783 language_defn::name.
2784 (dump_raw_expression): Likewise
2785 (dump_prefix_expression): Likewise.
2786 * f-lang.c (f_language_data): Remove la_name and
2787 la_natural_name initializers.
2788 (f_language::name): New member function.
2789 (f_language::natural_name): New member function.
2790 * go-lang.c (go_language_data): Remove la_name and
2791 la_natural_name initializers.
2792 (go_language::name): New member function.
2793 (go_language::natural_name): New member function.
2794 * language.c (show_language_command): Update call to
2795 language_defn::name.
2796 (set_language_command): Likewise.
2797 (language_enum): Likewise.
2798 (language_str): Likewise.
2799 (add_set_language_command): Likewise, use
2800 language_defn::natural_name in the doc string.
2801 (unknown_language_data): Remove la_name and
2802 la_natural_name initializers.
2803 (unknown_language::name): New member function.
2804 (unknown_language::natural_name): New member function.
2805 (auto_language_data): Remove la_name and
2806 la_natural_name initializers.
2807 (auto_language::name): New member function.
2808 (auto_language::natural_name): New member function.
2809 (language_lookup_primitive_type_as_symbol): Update call to
2810 language_defn::name.
2811 * language.h (language_data): Remove la_name and la_natural_name
2812 member variables.
2813 (language_defn::name): New member function.
2814 (language_defn::natural_name): New member function.
2815 * m2-lang.c (m2_language_data): Remove la_name and
2816 la_natural_name initializers.
2817 (m2_language::name): New member function.
2818 (m2_language::natural_name): New member function.
2819 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2820 language_defn::natural_name.
2821 * objc-lang.c (objc_language_data): Remove la_name and
2822 la_natural_name initializers.
2823 (objc_language::name): New member function.
2824 (objc_language::natural_name): New member function.
2825 * opencl-lang.c (opencl_language_data): Remove la_name and
2826 la_natural_name initializers.
2827 (opencl_language::name): New member function.
2828 (opencl_language::natural_name): New member function.
2829 * p-lang.c (pascal_language_data): Remove la_name and
2830 la_natural_name initializers.
2831 (pascal_language::name): New member function.
2832 (pascal_language::natural_name): New member function.
2833 * rust-lang.c (rust_language_data): Remove la_name and
2834 la_natural_name initializers.
2835 (rust_language::name): New member function.
2836 (rust_language::natural_name): New member function.
2837 * symtab.c (lookup_language_this): Update call to
2838 language_defn::name.
2839
2840 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2841
2842 * ada-lang.c (ada_language_data): Remove la_name_of_this
2843 initializer.
2844 * ax-gdb.c (gen_expr): Update call to name_of_this.
2845 * c-exp.y (classify_name): Likewise.
2846 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2847 (cplus_language_data): Likewise.
2848 (cplus_language::name_of_this): New member function.
2849 (asm_language_data): Remove la_name_of_this initializer.
2850 (minimal_language_data): Likewise.
2851 * d-lang.c (d_language_data): Likewise.
2852 (d_language::name_of_this): New member function.
2853 * expprint.c (print_subexp_standard): Update call to name_of_this.
2854 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2855 * go-lang.c (go_language_data): Likewise.
2856 * language.c (unknown_language_data): Likewise.
2857 (unknown_language::name_of_this): New member function.
2858 (auto_language_data): Remove la_name_of_this initializer.
2859 (auto_language::name_of_this): New member function.
2860 * language.h (language_data): Delete la_name_of_this member
2861 variable.
2862 (language_defn::name_of_this): New member function.
2863 * m2-lang.c (m2_language_data): Remove la_name_of_this
2864 initializer.
2865 * objc-lang.c (objc_language_data): Likewise.
2866 (objc_language::name_of_this): New member function.
2867 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2868 initializer.
2869 * p-lang.c (pascal_language_data): Likewise.
2870 (pascal_language::name_of_this): New member function.
2871 * rust-lang.c (rust_language_data): Remove la_name_of_this
2872 initializer.
2873 * symtab.c (lookup_language_this): Update call to name_of_this.
2874 (lookup_symbol_aux): Likewise.
2875 * valops.c (value_of_this): Likewise.
2876
2877 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2878
2879 * ada-lang.c (ada_language_data): Remove
2880 la_struct_too_deep_ellipsis initializer.
2881 (ada_language::struct_too_deep_ellipsis): New member function.
2882 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2883 initializer.
2884 (cplus_language_data): Likewise.
2885 (asm_language_data): Likewise.
2886 (minimal_language_data): Likewise.
2887 * cp-valprint.c (cp_print_value): Update call to
2888 struct_too_deep_ellipsis.
2889 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2890 initializer.
2891 * f-lang.c (f_language_data): Likewise.
2892 (f_language::struct_too_deep_ellipsis): New member function.
2893 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2894 initializer.
2895 * language.c (unknown_language_data): Likewise.
2896 (auto_language_data): Likewise.
2897 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2898 member variable.
2899 (language_defn::struct_too_deep_ellipsis): New member function.
2900 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2901 initializer.Q
2902 * objc-lang.c (objc_language_data): Likewise.
2903 * opencl-lang.c (opencl_language_data): Likewise.
2904 * p-lang.c (pascal_language_data): Likewise.
2905 * rust-lang.c (rust_language_data): Likewise.
2906 * valprint.c (val_print_check_max_depth): Update call to
2907 struct_too_deep_ellipsis.
2908
2909 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2910
2911 * MAINTAINERS (Write After Approval): Add myself.
2912
2913 2020-09-15 Tom Tromey <tom@tromey.com>
2914
2915 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2916 Remove.
2917
2918 2020-09-15 Tom Tromey <tom@tromey.com>
2919
2920 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2921 and TYPE_CODE_METHODPTR cases.
2922 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2923 (c_value_print_inner): Update.
2924 * valprint.c (generic_value_print_memberptr): New function, from
2925 c_value_print_memberptr.
2926 (generic_value_print): Use it. Call cplus_print_method_ptr.
2927
2928 2020-09-15 Tom Tromey <tromey@adacore.com>
2929
2930 * python/python-internal.h (PyInt_FromLong): Remove define.
2931 * python/py-value.c (convert_value_from_python): Use
2932 gdb_py_object_from_longest.
2933 * python/py-type.c (typy_get_code): Use
2934 gdb_py_object_from_longest.
2935 * python/py-symtab.c (salpy_get_line): Use
2936 gdb_py_object_from_longest.
2937 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2938 gdb_py_object_from_longest.
2939 * python/py-record.c (recpy_gap_reason_code): Use
2940 gdb_py_object_from_longest.
2941 * python/py-record-btrace.c (recpy_bt_insn_size)
2942 (recpy_bt_func_level, btpy_list_count): Use
2943 gdb_py_object_from_longest.
2944 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2945 gdb_py_object_from_longest. Fix error handling.
2946 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2947 gdb_py_object_from_longest.
2948 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2949 gdb_py_object_from_longest.
2950 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2951 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2952 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2953
2954 2020-09-15 Tom Tromey <tromey@adacore.com>
2955
2956 * python/python.c (gdbpy_parameter_value): Use
2957 gdb_py_object_from_ulongest.
2958
2959 2020-09-15 Tom Tromey <tromey@adacore.com>
2960
2961 * python/py-infevents.c (create_register_changed_event_object):
2962 Use gdb_py_object_from_longest.
2963 * python/py-exitedevent.c (create_exited_event_object): Use
2964 gdb_py_object_from_longest.
2965
2966 2020-09-15 Tom Tromey <tromey@adacore.com>
2967
2968 * python/python.c (gdbpy_parameter_value): Use
2969 gdb_py_object_from_longest.
2970 * python/py-type.c (convert_field, typy_range): Use
2971 gdb_py_object_from_longest.
2972 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2973 gdb_py_object_from_longest.
2974 * python/py-lazy-string.c (stpy_get_length): Use
2975 gdb_py_object_from_longest.
2976 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2977 gdb_py_object_from_longest.
2978 * python/py-infevents.c (create_memory_changed_event_object): Use
2979 gdb_py_object_from_longest.
2980 * python/py-inferior.c (infpy_get_num): Use
2981 gdb_py_object_from_longest.
2982 (infpy_get_pid): Likewise.
2983
2984 2020-09-15 Tom Tromey <tromey@adacore.com>
2985
2986 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2987 defines.
2988 * python/py-value.c (valpy_long): Use
2989 gdb_py_object_from_ulongest.
2990 * python/py-symtab.c (salpy_get_pc): Use
2991 gdb_py_object_from_ulongest.
2992 (salpy_get_last): Likewise.
2993 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2994 gdb_py_object_from_ulongest.
2995 * python/py-lazy-string.c (stpy_get_address): Use
2996 gdb_py_object_from_ulongest.
2997 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2998 * python/py-arch.c (archpy_disassemble): Use
2999 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3000 error handling.
3001
3002 2020-09-15 Tom Tromey <tromey@adacore.com>
3003
3004 * python/python-internal.h (gdb_py_long_from_longest): Remove
3005 defines.
3006 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3007 * python/py-type.c (convert_field, typy_get_sizeof): Use
3008 gdb_py_object_from_longest.
3009 * python/py-record-btrace.c (btpy_list_index): Use
3010 gdb_py_object_from_longest.
3011
3012 2020-09-15 Tom Tromey <tromey@adacore.com>
3013
3014 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3015 * python/py-record.c (recpy_element_number): Use
3016 gdb_py_object_from_longest.
3017 (recpy_gap_number): Likewise.
3018
3019 2020-09-15 Tom Tromey <tromey@adacore.com>
3020
3021 * top.c (ui::ui): Update.
3022 (highest_ui_num): Remove.
3023 * top.h (struct ui) <num>: Remove.
3024
3025 2020-09-15 Tom Tromey <tromey@adacore.com>
3026
3027 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3028 * ui-style.c (ansi_regex_text): Now array.
3029 * rust-exp.y (number_regex_text): Now array.
3030 * linespec.c (linespec_quote_characters): Now array.
3031 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3032 Now arrays.
3033
3034 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3035
3036 * debuginfod-support.c (debuginfod_client_deleter): New.
3037 (debuginfod_client_up): New.
3038 (debuginfod_init): Return debuginfod_client_up.
3039 (debuginfod_source_query): Adjust.
3040 (debuginfod_debuginfo_query): Adjust.
3041
3042 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3043
3044 * debuginfod-support.c (debuginfod_source_query): Use
3045 make_unique_xstrdup.
3046
3047 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3048
3049 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3050 with `type::instance_flags`.
3051
3052 2020-09-14 Michael Mullin <masmullin@gmail.com>
3053
3054 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3055 Remove baton parameter.
3056
3057 2020-09-14 Pedro Alves <pedro@palves.net>
3058
3059 * Makefile.in (SELFTESTS_SRCS): Add
3060 unittests/enum-flags-selftests.c.
3061 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3062 btrace_function_flags instead of enum btrace_function_flag.
3063 * compile/compile-c-types.c (convert_qualified): Use
3064 enum_flags::raw.
3065 * compile/compile-cplus-symbols.c (convert_one_symbol)
3066 (convert_symbol_bmsym):
3067 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3068 (compile_cplus_convert_struct_or_union_methods)
3069 (compile_cplus_instance::convert_qualified_base):
3070 * go-exp.y (parse_string_or_char): Add cast to int.
3071 * unittests/enum-flags-selftests.c: New file.
3072 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3073 type to btrace_thread_flags from btrace_thread_flag.
3074 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3075 local's type to btrace_thread_flags from btrace_thread_flag. Add
3076 cast in DEBUG call.
3077
3078 2020-09-14 Pedro Alves <pedro@palves.net>
3079
3080 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3081 * gdbtypes.c (address_space_name_to_int): Rename to ...
3082 (address_space_name_to_type_instance_flags): ... this.
3083 (address_space_int_to_name): Rename to ...
3084 (address_space_type_instance_flags_to_name): ... this.
3085 * gdbtypes.h (address_space_name_to_int): Rename to ...
3086 (address_space_name_to_type_instance_flags): ... this.
3087 (address_space_int_to_name): Rename to ...
3088 (address_space_type_instance_flags_to_name): ... this.
3089 * type-stack.c (type_stack::insert): Adjust to rename.
3090 * type-stack.h (type_stack::insert): Likewise.
3091
3092 2020-09-14 Pedro Alves <pedro@palves.net>
3093 Andrew Burgess <andrew.burgess@embecosm.com>
3094
3095 * avr-tdep.c (avr_address_class_type_flags): Return
3096 type_instance_flags.
3097 (avr_address_class_type_flags_to_name): Take a
3098 type_instance_flags.
3099 (avr_address_class_name_to_type_flags): Return bool and take a
3100 type_instance_flags.
3101 * d-lang.c (build_d_types): Use type::set_instance_flags.
3102 * ft32-tdep.c (ft32_address_class_type_flags): Return
3103 type_instance_flags.
3104 (ft32_address_class_type_flags_to_name): Take a
3105 type_instance_flags.
3106 (ft32_address_class_name_to_type_flags): Return bool and take a
3107 type_instance_flags.
3108 (ft32_gdbarch_init): Use type::set_instance_flags.
3109 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3110 * gdbarch.h, gdbarch.c: Regenerate.
3111 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3112 (address_class_name_to_type_flags): Use type_instance_flags and
3113 bool.
3114 * gdbtypes.c (address_space_name_to_int)
3115 (address_space_int_to_name, make_qualified_type): Use
3116 type_instance_flags.
3117 (make_qualified_type): Use type_instance_flags and
3118 type::set_instance_flags.
3119 (make_type_with_address_space, make_cv_type, make_vector_type)
3120 (check_typedef): Use type_instance_flags.
3121 (recursive_dump_type): Cast type_instance_flags to unsigned for
3122 printing.
3123 (copy_type_recursive): Use type::set_instance_flags.
3124 (gdbtypes_post_init): Use type::set_instance_flags.
3125 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3126 <m_instance_flags>: ... this.
3127 <instance_flags, set_instance_flags>: New methods.
3128 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3129 (SET_TYPE_INSTANCE_FLAGS): New.
3130 (address_space_name_to_int, address_space_int_to_name)
3131 (make_type_with_address_space): Pass flags using
3132 type_instance_flags instead of int.
3133 * stabsread.c (cleanup_undefined_types_noname): Use
3134 type::set_instance_flags.
3135 * s390-tdep.c (s390_address_class_type_flags): Return
3136 type_instance_flags.
3137 (s390_address_class_type_flags_to_name): Take a
3138 type_instance_flags.
3139 (s390_address_class_name_to_type_flags): Return bool and take a
3140 type_instance_flags.
3141 * type-stack.c (type_stack::follow_types): Use
3142 type_instance_flags.
3143 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3144
3145 2020-09-14 Tom Tromey <tromey@adacore.com>
3146
3147 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3148 * x86-tdep.c (x86_is_thunk_register_name)
3149 (x86_in_indirect_branch_thunk): Update.
3150 * sparc64-tdep.c (sparc64_fpu_register_names)
3151 (sparc64_cp0_register_names, sparc64_register_names)
3152 (sparc64_pseudo_register_names): Now const.
3153 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3154 cp0_registers_num>: Now const.
3155 * sparc-tdep.c (sparc_core_register_names)
3156 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3157 (sparc32_pseudo_register_names): Now const.
3158 (validate_tdesc_registers): Update.
3159 * rust-lang.c (rust_extensions): Now const.
3160 * p-lang.c (p_extensions): Now const.
3161 * objc-lang.c (objc_extensions): Now const.
3162 * nto-tdep.c (nto_thread_state_str): Now const.
3163 * moxie-tdep.c (moxie_register_names): Now const.
3164 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3165 Now const.
3166 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3167 (mips_linux_reg_names): Now const.
3168 (mips_gdbarch_init): Update.
3169 * microblaze-tdep.c (microblaze_register_names): Now const.
3170 * m68k-tdep.c (m68k_register_names): Now const.
3171 * m32r-tdep.c (m32r_register_names): Now const.
3172 * ia64-tdep.c (ia64_register_names): Now const.
3173 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3174 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3175 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3176 ymm_avx512_register_names, pkeys_register_names>: Now const.
3177 * i386-tdep.c (i386_register_names, i386_zmm_names)
3178 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3179 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3180 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3181 * f-lang.c (f_extensions): Now const.
3182 * d-lang.c (d_extensions): Now const.
3183 * csky-tdep.c (csky_register_names): Now const.
3184 * charset.c (default_charset_names, charset_enum): Now const.
3185 (_initialize_charset): Update.
3186 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3187 const.
3188 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3189 (bsd_uthread_solib_loaded): Update.
3190 (bsd_uthread_state): Now const.
3191 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3192 (amd64_ymm_avx512_names, amd64_ymmh_names)
3193 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3194 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3195 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3196 (amd64_dword_names): Now const.
3197 * agent.c (can_use_agent_enum): Now const.
3198 * ada-tasks.c (task_states, long_task_states): Now const.
3199 * ada-lang.c (known_runtime_file_name_patterns)
3200 (known_auxiliary_function_name_patterns, attribute_names)
3201 (standard_exc, ada_extensions): Now const.
3202
3203 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3204
3205 * bcache.h (struct bcache) <bcache>: Remove constructor.
3206 <m_hash_function, m_compare_function>: Remove.
3207 <~bcache>: Make virtual.
3208 <compare>: Remove static method, introduce virtual method.
3209 <default_hash>: Remove.
3210 <hash>: New virtual method.
3211 * bcache.c (bcache::expand_hash_table): Update.
3212 (bcache::insert): Update.
3213 (bcache::hash): New.
3214 (bcache::compare): Update comment and parameter names.
3215 * gdbtypes.c (types_deeply_equal): Update.
3216 * psymtab.h (struct psymbol_bcache): New struct.
3217 (class psymtab_storage) <psymtab_storage>: Make default.
3218 <psymbol_cache>: Change type to psymbol_bcache.
3219 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3220 (psymbol_hash): Change to...
3221 (psymbol_bcache::hash): ... this.
3222 (psymbol_compare): Change to...
3223 (psymbol_bcache::compare): ... this.
3224
3225 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3226
3227 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3228 checking for initial lwp.
3229
3230 2020-09-14 Tom Tromey <tromey@adacore.com>
3231
3232 * m68k-tdep.c (m68k_extract_return_value): Use
3233 pointer_result_regnum.
3234 (m68k_store_return_value): Likewise.
3235 (m68k_reg_struct_return_p): Handle vectors and arrays.
3236 (m68k_return_value): Handle arrays.
3237 (m68k_svr4_return_value): Fix single-element aggregate handling.
3238 Handle long double. Adjust for embedded ABI.
3239 (m68k_svr4_init_abi): Set pointer_result_regnum.
3240 (m68k_embedded_init_abi): New function.
3241 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3242 (m68k_osabi_sniffer): New function.
3243 (_initialize_m68k_tdep): Register osabi sniffer.
3244 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3245 member.
3246
3247 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3248
3249 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3250 with gdb::unique_xmalloc_ptr<char>.
3251
3252 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3253
3254 * xml-support.h (xml_fetch_another): Change type to be a
3255 function_view.
3256 (xml_process_xincludes): Remove baton parameter.
3257 (xml_fetch_content_from_file): Change baton parameter to
3258 dirname.
3259 * xml-support.c (struct xinclude_parsing_data)
3260 <xinclude_parsing_data>: Remove baton parameter.
3261 <fetcher_baton>: Remove.
3262 (xinclude_start_include): Adjust.
3263 (xml_process_xincludes): Adjust.
3264 (xml_fetch_content_from_file): Replace baton parameter with
3265 dirname.
3266 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3267 (xml_init_syscalls_info): Use a lambda.
3268 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3269 (file_read_description_xml): Use a lambda.
3270 (fetch_available_features_from_target): Change baton parameter
3271 to target_ops.
3272 (target_read_description_xml): Use a lambda.
3273 (target_fetch_description_xml): Use a lambda.
3274 (string_read_description_xml): Update.
3275
3276 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3277
3278 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3279 uses with type::endianity_is_not_default.
3280
3281 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3282
3283 * gdbtypes.h (struct type) <endianity_is_not_default,
3284 set_endianity_is_not_default>: New methods.
3285 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3286 type::endianity_is_not_default, change all write call sites to
3287 use type::set_endianity_is_not_default.
3288
3289 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3290
3291 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3292 uses with type::is_fixed_instance.
3293
3294 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3295
3296 * gdbtypes.h (struct type) <is_fixed_instance,
3297 set_is_fixed_instance>: New methods.
3298 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3299 write call sites to use type::set_is_fixed_instance.
3300
3301 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3302
3303 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3304 uses with type::is_gnu_ifunc.
3305
3306 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3307
3308 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3309 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3310 use type::set_is_gnu_ifunc.
3311
3312 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3313
3314 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3315 uses with type::stub_is_supported.
3316
3317 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3318
3319 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3320 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3321 use type::set_stub_is_supported.
3322
3323 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3324
3325 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3326 uses with type::is_vector.
3327
3328 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3329
3330 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3331 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3332 use type::set_is_vector.
3333
3334 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3335
3336 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3337 uses with type::has_varargs.
3338
3339 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3340
3341 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3342 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3343 use type::set_has_varargs.
3344
3345 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3346
3347 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3348 uses with type::is_prototyped.
3349
3350 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3351
3352 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3353 New methods.
3354 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3355 call sites to use type::set_is_prototyped.
3356
3357 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3358
3359 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3360 uses with type::target_is_stub.
3361
3362 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3363
3364 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3365 New methods.
3366 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3367 sites to use type::set_target_is_stub.
3368
3369 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3370
3371 * gdbtypes.h (TYPE_STUB): Remove, replace all
3372 uses with type::is_stub.
3373
3374 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3375
3376 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3377 (TYPE_STUB): Use type::is_stub, change all write call sites to
3378 use type::set_is_stub.
3379
3380 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3381
3382 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3383 type::has_no_signedness.
3384
3385 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3386
3387 * gdbtypes.h (struct type) <has_no_signedness,
3388 set_has_no_signedness>: New methods.
3389 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3390 call sites to use type::set_has_no_signedness.
3391
3392 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3393
3394 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3395 type::is_unsigned.
3396
3397 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3398
3399 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3400 methods.
3401 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3402 sites to use type::set_is_unsigned.
3403
3404 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3405 Adam Renquinha <arenquinha@cimeq.qc.ca>
3406
3407 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3408 pointer and stack frame offset when unwinding.
3409
3410 2020-09-13 Pedro Alves <pedro@palves.net>
3411
3412 * NEWS: Document "-break-insert --qualified".
3413 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3414
3415 2020-09-13 Pedro Alves <pedro@palves.net>
3416
3417 * linespec.c (classify_mtype, compare_msyms): Delete.
3418 (search_minsyms_for_name): Remove classification logic. Instead
3419 filter out trampoline symbols if we also found an external
3420 function of the same name.
3421
3422 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3423
3424 * NEWS: Create a new section for the next release branch.
3425 Rename the section of the current branch, now that it has
3426 been cut.
3427
3428 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3429
3430 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3431 * version.in: Bump version to 11.0.50.DATE-git.
3432
3433 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3434
3435 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3436
3437 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3438 Felix Willgerodt <Felix.Willgerodt@intel.com>
3439
3440 * gdbarch.sh: Added bfloat16 type.
3441 * gdbarch.c: Regenerated.
3442 * gdbarch.h: Regenerated.
3443 * gdbtypes.c (floatformats_bfloat16): New struct.
3444 (gdbtypes_post_init): Add builtin_bfloat16.
3445 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3446 (floatformats_bfloat16): New struct.
3447 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3448 (i386_ymm_type): Add field "v16_bfloat16"
3449 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3450 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3451 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3452 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3453 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3454 * features/i386/64bit-avx512.c: Regenerated.
3455 * features/i386/64bit-sse.xml: Add bfloat16 type.
3456 * features/i386/64bit-sse.c: Regenerated.
3457
3458 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3459
3460 * i386-tdep.c (i386_zmm_type): Fix field names.
3461 (i386_ymm_type): Fix field names.
3462
3463 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3464
3465 * breakpoint.c: Fix typo in the help message of the
3466 "set breakpoint condition-evaluation" command.
3467
3468 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3469
3470 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3471 * (nbsd_nat_target::pid_to_exec_file)
3472 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3473 (nbsd_nat_target::post_startup_inferior)
3474 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3475 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3476 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3477 * (nbsd_thread_lister): Remove.
3478
3479 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3480
3481 * fork-inferior.c (startup_inferior): Avoid double free.
3482
3483 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3484
3485 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3486 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3487
3488 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3489
3490 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3491 * netbsd-nat.c: Include <sys/ptrace.h>.
3492 * (netbsd_nat::enable_proc_events): Add.
3493
3494 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3495
3496 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3497 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3498 (netbsd_nat::for_each_thread): Add.
3499 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3500 "gdbsupport/common-debug.h".
3501 * (netbsd_nat::netbsd_thread_lister)
3502 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3503 (netbsd_nat::for_each_thread): Add.
3504
3505 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3506
3507 * netbsd-nat.h: Include <unistd.h>.
3508 * (netbsd_nat::pid_to_exec_file): Add.
3509 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3510 * (netbsd_nat::pid_to_exec_file) Add.
3511
3512 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3513
3514 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3515
3516 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3517
3518 * netbsd-nat.h: New file.
3519 * netbsd-nat.c: Likewise.
3520
3521 2020-09-09 Tom Tromey <tromey@adacore.com>
3522
3523 * ada-lang.c (remove_extra_symbols): Do not increment when
3524 removing an element
3525
3526 2020-09-08 Tom Tromey <tromey@adacore.com>
3527
3528 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3529
3530 2020-09-08 Tom Tromey <tromey@adacore.com>
3531
3532 PR win32/25302:
3533 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3534 (gdb_bfd_init_data): New function.
3535 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3536
3537 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3538
3539 * infrun.c (fetch_inferior_event): Use
3540 `switch_to_target_no_thread` to switch the target.
3541
3542 2020-09-06 Tom Tromey <tom@tromey.com>
3543
3544 * symfile.h (dwarf2_free_objfile): Don't declare.
3545
3546 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3547
3548 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3549 to match 16 byte real/complex type generated by Flang compiler.
3550
3551 2020-09-03 Tom de Vries <tdevries@suse.de>
3552
3553 PR breakpoint/26546
3554 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3555 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3556
3557 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3558
3559 * maint.c (index_digits): New function.
3560 (struct maint_print_section_data): Remove.
3561 (print_bfd_section_info): Remove print_data parameter, add arg
3562 and index_digits.
3563 (print_objfile_section_info): Likewise.
3564 (print_bfd_section_info_maybe_relocated): Likewise (plus
3565 objfile).
3566 (maintenance_info_sections): Adjust calls.
3567
3568 2020-09-02 Tom Tromey <tromey@adacore.com>
3569
3570 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3571 for null pointers.
3572 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3573
3574 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3575
3576 * bcache.h (struct bcache) <insert>: Change type of `added` to
3577 pointer to bool.
3578 * bcache.c (bcache::insert): Likewise.
3579 * gdbtypes.c (check_types_worklist): Adjust.
3580 * psymtab.c (add_psymbol_to_bcache): Adjust.
3581
3582 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3583
3584 * corelow.c (unordered_set): Include.
3585 (class core_target): Add field 'm_core_unavailable_mappings'.
3586 (core_target::build_file_mappings): Print only one warning
3587 per inaccessible file. Add unavailable/broken mappings
3588 to m_core_unavailable_mappings.
3589 (core_target::xfer_partial): Call...
3590 (core_target::xfer_memory_via_mappings): New method.
3591
3592 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3593
3594 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3595 type to bool.
3596
3597 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3598
3599 * dwarf2/read.c (struct field_info): Fix indentation.
3600
3601 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3602
3603 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3604 ordering in comment.
3605 * frame.c (frame_id_eq): Fix indentation.
3606
3607 2020-08-31 Scott Linder <scott@scottlinder.com>
3608 Simon Marchi <simon.marchi@efficios.com>
3609
3610 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3611 inline frame ids in outer frame.
3612
3613 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3614
3615 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3616 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3617 (outer_frame_id): Use FID_STACK_OUTER instead of
3618 FID_STACK_INVALID.
3619 (frame_id_p): Don't check for outer_frame_id.
3620
3621 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3622
3623 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3624 regnum/frame in value. Call allocate_value_lazy.
3625 * frame.c (frame_unwind_register_value): Use
3626 val_print_not_saved.
3627
3628 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3629
3630 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3631
3632 2020-08-29 Pedro Alves <pedro@palves.net>
3633
3634 * progspace.c (print_program_space): Use all_inferiors. Switch to
3635 the inferior before calling target_pid_to_str.
3636
3637 2020-08-28 Tom Tromey <tom@tromey.com>
3638
3639 * xcoffread.c (xcoff_end_psymtab): Update comment.
3640 * dbxread.c (dbx_end_psymtab): Update comment.
3641
3642 2020-08-28 Tom de Vries <tdevries@suse.de>
3643
3644 PR breakpoint/26544
3645 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3646 event_location.
3647 (create_breakpoint): Same.
3648 (base_breakpoint_decode_location): Same.
3649 (bkpt_create_sals_from_location): Same.
3650 (bkpt_decode_location): Same.
3651 (bkpt_probe_create_sals_from_location): Same.
3652 (bkpt_probe_decode_location): Same.
3653 (tracepoint_create_sals_from_location): Same.
3654 (tracepoint_decode_location): Same.
3655 (tracepoint_probe_decode_location): Same.
3656 (strace_marker_create_sals_from_location): Same.
3657 (strace_marker_decode_location): Same.
3658 (create_sals_from_location_default): Same.
3659 (decode_location_default): Same.
3660 * breakpoint.h (struct breakpoint_ops): Same.
3661 (create_breakpoint): Same.
3662 * linespec.h (decode_line_full): Same.
3663 * linespec.c (decode_line_full): Same. Throw error if
3664 result.size () == 0.
3665
3666 2020-08-27 Pedro Alves <pedro@palves.net>
3667
3668 PR gdb/26524
3669 * breakpoint.c (until_break_fsm) <location_breakpoint,
3670 caller_breakpoint>: Delete fields.
3671 <breakpoints>: New field.
3672 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3673 two individual breakpoints.
3674 (until_break_fsm::should_stop): Loop over breakpoints in the
3675 breakpoint vector.
3676 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3677 vector.
3678 (until_break_command): Handle location expanding into multiple
3679 sals.
3680
3681 2020-08-27 Pedro Alves <pedro@palves.net>
3682
3683 PR gdb/26523
3684 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3685 bp_until breakpoints user-specified locations. Update intro
3686 comment.
3687
3688 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3689
3690 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3691 gdb_bfd_sections): New.
3692 * maint.c (print_bfd_section_info): Change param type to
3693 maint_print_section_data.
3694 (print_objfile_section_info): Likewise.
3695 (print_bfd_section_info_maybe_relocated): Likewise.
3696 (maintenance_info_sections): Use gdb_bfd_sections.
3697
3698 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3699
3700 * MAINTAINERS: Add ARC target and maintainer.
3701
3702 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3703
3704 * configure.tgt: ARC support for GNU/Linux.
3705 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3706 * arc-linux-tdep.c: New file.
3707 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3708 * arc-tdep.c (arc_write_pc): Use it.
3709
3710 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3711
3712 * arc-tdep.c (arc_check_for_hardware_loop): New.
3713 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3714
3715 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3716
3717 * arc-tdep.h: Include "gdbarch.h".
3718
3719 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3720
3721 * arch/arc.h
3722 (arc_gdbarch_features): New class to stir the selection of target XML.
3723 (arc_create_target_description): Use FEATURES to choose XML target.
3724 (arc_lookup_target_description): Use arc_create_target_description
3725 to create _new_ target descriptions or return the already created
3726 ones if the FEATURES is the same.
3727 * arch/arc.c: Implementation of prototypes described above.
3728 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3729 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3730 * arc-tdep.c (*_feature_name): Make feature names consistent.
3731 (arc_register_feature): A new struct to hold information about
3732 registers of a particular target/feature.
3733 (arc_check_tdesc_feature): Check if XML provides registers in
3734 compliance with ARC_REGISTER_FEATURE structs.
3735 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3736 (determine_*_reg_feature_set): Which feature name to look for.
3737 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3738 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3739 to expected ISA enums to be used in arc_gdbarch_features structs.
3740 * features/Makefile (FEATURE_XMLFILES): Add new files.
3741 * gdb/features/arc/v1-aux.c: New file.
3742 * gdb/features/arc/v1-aux.xml: Likewise.
3743 * gdb/features/arc/v1-core.c: Likewise.
3744 * gdb/features/arc/v1-core.xml: Likewise.
3745 * gdb/features/arc/v2-aux.c: Likewise.
3746 * gdb/features/arc/v2-aux.xml: Likewise.
3747 * gdb/features/arc/v2-core.c: Likewise.
3748 * gdb/features/arc/v2-core.xml: Likewise.
3749 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3750
3751 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3752 Andrew Burgess <andrew.burgess@embecosm.com>
3753
3754 PR m2/26372
3755 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3756 an assert. Remove single element array indexing pattern as the
3757 MULTI_SUBSCRIPT support will handle this case too.
3758
3759 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3760
3761 * value.h (valprint_check_validity): Move declaration from
3762 here...
3763 * valprint.h (valprint_check_validity): ... to here.
3764
3765 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3766
3767 * debug.h: New file.
3768 * debug.c (debug_prefixed_vprintf): New function.
3769 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3770 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3771
3772 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3773
3774 * infrun.h (infrun_debug_printf_1): New function declaration.
3775 (infrun_debug_printf): New macro.
3776 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3777 throughout.
3778 (infrun_debug_printf): New function.
3779 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3780 (handle_jit_event): Likewise.
3781
3782 2020-08-21 Mark Wielaard <mark@klomp.org>
3783
3784 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3785
3786 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3787
3788 * frame.c (enum class frame_id_status): New.
3789 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3790 (fprintf_frame): Update.
3791 (compute_frame_id): Set frame id status to "computing" on entry.
3792 Set it back to "not_computed" on failure and to "computed" on
3793 success.
3794 (get_frame_id): Assert the frame id is not being computed.
3795 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3796 (create_new_frame): Likewise.
3797 (frame_cleanup_after_sniffer): Update assert.
3798
3799 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3800
3801 * regcache.c (pid_ptid_regcache_map): New type.
3802 (target_ptid_regcache_map): Remove.
3803 (target_pid_ptid_regcache_map): New type.
3804 (regcaches): Change type to target_pid_ptid_regcache_map.
3805 (get_thread_arch_aspace_regcache): Update.
3806 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3807 case.
3808 (regcaches_size): Update.
3809 (regcache_count): Update.
3810 (registers_changed_ptid_target_pid_test): New.
3811 (_initialize_regcache): Register new test.
3812
3813 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3814
3815 * regcache.c (regcache_count): New.
3816 (struct regcache_test_data): New.
3817 (regcache_test_data_up): New.
3818 (populate_regcaches_for_test): New.
3819 (regcaches_test): Remove.
3820 (get_thread_arch_aspace_regcache_test): New.
3821 (registers_changed_ptid_all_test): New.
3822 (registers_changed_ptid_target_test): New.
3823 (registers_changed_ptid_target_ptid_test): New.
3824 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3825 (_initialize_regcache): Register new tests.
3826
3827 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3828
3829 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3830 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3831 gdbarch and aspace parameter. Use current inferior's aspace.
3832 Validate regcache's arch value.
3833 (regcaches_test): Update.
3834
3835 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3836
3837 * regcache.c (regcaches_test): Call registers_changed.
3838
3839 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3840
3841 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3842
3843 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3844
3845 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3846 to find the end of prologue for flang compiled binaries.
3847 * arm-tdep.c (arm_skip_prologue): Likewise.
3848 * i386-tdep.c (i386_skip_prologue): Likewise.
3849 * producer.c (producer_is_llvm): New function.
3850 (producer_parsing_tests): Added new tests for clang/flang.
3851 * producer.h (producer_is_llvm): New declaration.
3852
3853 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3854
3855 * linux-nat.c (linux_nat_debug_printf): New function.
3856 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3857
3858 2020-08-18 Aaron Merey <amerey@redhat.com>
3859
3860 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3861 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3862 (CLIBS): Add DEBUGINFOD_LIBS.
3863
3864 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3865
3866 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3867 'gdbarch_num_regs'.
3868
3869 2020-08-17 Tom Tromey <tromey@adacore.com>
3870
3871 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3872 ada_get_decoded_value returns NULL.
3873
3874 2020-08-17 Tom Tromey <tromey@adacore.com>
3875
3876 * python/py-inferior.c (infpy_search_memory): Use
3877 gdb_py_object_from_ulongest.
3878 * python/py-infevents.c (create_inferior_call_event_object)
3879 (create_memory_changed_event_object): Use
3880 gdb_py_object_from_ulongest.
3881 * python/py-linetable.c (ltpy_entry_get_pc): Use
3882 gdb_py_object_from_ulongest.
3883
3884 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3885
3886 * loc.c (class symbol_needs_eval_context): Fix indentation.
3887
3888 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3889
3890 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3891 bool.
3892
3893 2020-08-17 Tom de Vries <tdevries@suse.de>
3894
3895 PR gdb/26393
3896 * gdbtypes.c (dump_dynamic_prop): New function.
3897 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3898
3899 2020-08-15 Tom de Vries <tdevries@suse.de>
3900
3901 PR backtrace/26390
3902 * stack.c (print_frame_args): Temporarily set the selected
3903 frame to FRAME while printing the frame's arguments.
3904
3905 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3906
3907 PR breakpoints/26385
3908 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3909 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3910
3911 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3912
3913 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3914 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3915 and >= to check return value instead of == -1 and != -1.
3916
3917 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3918
3919 * utils.h (class gdb_argv) <as_array_view>: New method.
3920 * utils.c (gdb_argv_as_array_view_test): New.
3921 (_initialize_utils): Register selftest.
3922 * maint.c (maintenance_selftest): Use the new method.
3923
3924 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3925
3926 * target.h (supports_dumpcore, dumpcore): New
3927 function declarations.
3928 * target.c (supports_dumpcore, dumpcore): New
3929 functions.
3930 * target-delegates.c: Rebuild.
3931 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3932 and target_dumpcore ().
3933
3934 2020-08-13 Aaron Merey <amerey@redhat.com>
3935
3936 * debuginfod-support.c: Replace global variables with user_data.
3937
3938 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3939
3940 * maint.c (maintenance_selftest): Split args and pass array_view
3941 to run_tests.
3942
3943 2020-08-12 Luis Machado <luis.machado@linaro.org>
3944
3945 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3946 type's length.
3947 Use %s and pulongest to print the length.
3948
3949 2020-08-12 Pedro Alves <palves@redhat.com>
3950
3951 * NEWS: Move "Multi-target debugging support" item to the
3952 "Changes since GDB 9" section.
3953
3954 2020-08-12 Pedro Alves <palves@redhat.com>
3955
3956 PR gdb/26336
3957 * progspace.c (program_space::remove_objfile): Invalidate the
3958 frame cache.
3959
3960 2020-08-11 Tom de Vries <tdevries@suse.de>
3961
3962 * MAINTAINERS: Mark ms1 as deleted.
3963
3964 2020-08-10 Luis Machado <luis.machado@linaro.org>
3965
3966 PR gdb/26310
3967
3968 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3969 act accordingly.
3970 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3971 movz/str/stur/stp skipping behavior.
3972
3973 2020-08-10 Luis Machado <luis.machado@linaro.org>
3974
3975 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3976 struct user_sve_header instead of struct sve_context.
3977
3978 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3979
3980 * read.h (dwarf2_fetch_die_loc_sect_off,
3981 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3982 `void *` parameter with function_view.
3983 * read.c (dwarf2_fetch_die_loc_sect_off,
3984 dwarf2_fetch_die_loc_cu_off): Likewise.
3985 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3986 (per_cu_dwarf_call): Adjust.
3987 (get_frame_address_in_block_wrapper): Remove.
3988 (indirect_synthetic_pointer): Adjust.
3989 (get_ax_pc): Remove.
3990 (dwarf2_compile_expr_to_ax): Adjust.
3991
3992 2020-08-08 Tom de Vries <tdevries@suse.de>
3993
3994 PR build/26344
3995 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3996 constructor.
3997 * regcache.c (get_thread_arch_aspace_regcache): Same.
3998
3999 2020-08-07 Tom Tromey <tromey@adacore.com>
4000
4001 * ravenscar-thread.c
4002 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4003 New method.
4004 (ravenscar_thread_target::wait): Check
4005 runtime_initialized.
4006 (ravenscar_thread_target::prepare_to_store)
4007 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4008 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4009 (ravenscar_thread_target::stopped_by_watchpoint)
4010 (ravenscar_thread_target::stopped_data_address)
4011 (ravenscar_thread_target::core_of_thread): Use
4012 scoped_restore_current_thread and
4013 set_base_thread_from_ravenscar_task.
4014
4015 2020-08-07 Tom Tromey <tromey@adacore.com>
4016
4017 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4018
4019 2020-08-07 Tom Tromey <tromey@adacore.com>
4020
4021 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4022 update_inferior_ptid before update_thread_list.
4023 (temporarily_change_regcache_ptid): New class.
4024 (ravenscar_thread_target::fetch_registers)
4025 (ravenscar_thread_target::store_registers)
4026 (ravenscar_thread_target::prepare_to_store): Use base thread when
4027 forwarding operation.
4028
4029 2020-08-07 Tom Tromey <tromey@adacore.com>
4030
4031 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4032 "is_pid" case.
4033
4034 2020-08-07 Tom Tromey <tromey@adacore.com>
4035
4036 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4037 New methods.
4038 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4039 first.
4040 (ravenscar_thread_target::add_thread): Rename from
4041 ravenscar_add_thread.
4042 (ravenscar_thread_target::update_thread_list): Use a lambda.
4043 (ravenscar_thread_target::xfer_partial): New method.
4044
4045 2020-08-07 Tom Tromey <tromey@adacore.com>
4046
4047 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4048 gdb::function_view.
4049 (iterate_over_live_ada_tasks): Change type of argument.
4050 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4051 of argument.
4052
4053 2020-08-07 Tom Tromey <tromey@adacore.com>
4054
4055 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4056 Remove.
4057 (ravenscar_thread_target::extra_thread_info): Remove.
4058 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4059 defer to target beneath for non-Ravenscar threads.
4060
4061 2020-08-07 Tom Tromey <tromey@adacore.com>
4062
4063 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4064 get_base_thread_from_ravenscar_task>: Now methods.
4065 <m_cpu_map>: New member.
4066 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4067 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4068 (ravenscar_thread_target::task_is_currently_active): Update.
4069 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4070 Now a method.
4071 (ravenscar_thread_target::add_active_thread): Put initial thread
4072 into the m_cpu_map.
4073
4074 2020-08-07 Tom Tromey <tromey@adacore.com>
4075
4076 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4077 event_ptid.
4078
4079 2020-08-07 Tom Tromey <tromey@adacore.com>
4080
4081 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4082 runtime_initialized.
4083
4084 2020-08-07 Tom Tromey <tromey@adacore.com>
4085
4086 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4087 add_active_thread.
4088 (ravenscar_thread_target::add_active_thread): Now public.
4089 (ravenscar_inferior_created): Call add_active_thread after pushing
4090 the target.
4091
4092 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4093
4094 * regcache.c (ptid_regcache_map): New type.
4095 (target_ptid_regcache_map): New type.
4096 (regcaches): Change type to target_ptid_regcache_map.
4097 (get_thread_arch_aspace_regcache): Update to regcaches' new
4098 type.
4099 (regcache_thread_ptid_changed): Likewise.
4100 (registers_changed_ptid): Likewise.
4101 (regcaches_size): Likewise.
4102 (regcaches_test): Update.
4103 (regcache_thread_ptid_changed): Update.
4104 * regcache.h (regcache_up): New type.
4105 * gdbsupport/ptid.h (hash_ptid): New struct.
4106
4107 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4108
4109 * observable.h (thread_ptid_changed): Add parameter
4110 `process_stratum_target *`.
4111 * infrun.c (infrun_thread_ptid_changed): Add parameter
4112 `process_stratum_target *` and use it.
4113 (selftests): New namespace.
4114 (infrun_thread_ptid_changed): New function.
4115 (_initialize_infrun): Register selftest.
4116 * regcache.c (regcache_thread_ptid_changed): Add parameter
4117 `process_stratum_target *` and use it.
4118 (regcache_thread_ptid_changed): New function.
4119 (_initialize_regcache): Register selftest.
4120 * thread.c (thread_change_ptid): Pass target to
4121 thread_ptid_changed observable.
4122
4123 2020-08-06 Caroline Tice <cmtice@google.com>
4124
4125 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4126 (struct dwp_sections): Update field comments. Add loclists and
4127 rnglists fields.
4128 (struct virtual_v2_dwo_sections): Rename struct to
4129 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4130 size & offset fields for loclists and rnglists.
4131 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4132 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4133 skipping dummy type units.
4134 (create_dwp_hash_table): Update the large comment above the function to
4135 discuss Version 5 DWP files as well, with references. Update all the
4136 version checks in the function to check for version 5 as well. Add new
4137 section at the end to create dwp hash table for version 5.
4138 (create_dwp_v2_section): Rename function to
4139 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4140 Add V5 to error message text.
4141 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4142 into calls to create_dwp_v2_or_v5_section.
4143 (create_dwo_unit_in_dwp_v5): New function.
4144 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4145 check for version2; add else clause to handle version 5.
4146 (open_and_init_dwo_file): Add code to check dwarf version & only call
4147 create_debug_types_hash_table (with sections.types) if version is not 5;
4148 else call create_debug_type_hash_table, with sections.info.
4149 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4150 version 5.
4151 (dwarf2_locate_v5_dwp_sections): New function.
4152 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4153 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4154
4155 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4156
4157 * regcache.h (class regcache): Remove friend
4158 registers_changed_ptid.
4159 <regcache_thread_ptid_changed>: Remove.
4160 <regcaches>: Remove.
4161 * regcache.c (regcache::regcaches): Rename to...
4162 (regcaches): ... this. Make static.
4163 (get_thread_arch_aspace_regcache): Update.
4164 (regcache::regcache_thread_ptid_changed): Rename to...
4165 (regcache_thread_ptid_changed): ... this. Update.
4166 (class regcache_access): Remove.
4167 (regcaches_test): Update.
4168 (_initialize_regcache): Update.
4169 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4170 <forward_list>.
4171
4172 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4173
4174 * regcache.h (class regcache) <current_regcache>: Rename to...
4175 <regcaches>: ... this. Move doc here.
4176 * regcache.c (regcache::current_regcache) Rename to...
4177 (regcache::regcaches): ... this. Move doc to header.
4178 (get_thread_arch_aspace_regcache): Update.
4179 (regcache::regcache_thread_ptid_changed): Update.
4180 (registers_changed_ptid): Update.
4181 (class regcache_access) <current_regcache_size>: Rename to...
4182 <regcaches_size>: ... this.
4183 (current_regcache_test): Rename to...
4184 (regcaches_test): ... this.
4185 (_initialize_regcache): Update.
4186
4187 2020-08-06 Victor Collod <vcollod@nvidia.com>
4188
4189 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4190
4191 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4192
4193 * corelow.c (core_target::build_file_mappings): Don't output
4194 null pathname in warning.
4195
4196 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4197
4198 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4199 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4200 gdb.dwarf2/dw2-single-line-discriminators.exp,
4201 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4202
4203 2020-08-05 Tom Tromey <tromey@adacore.com>
4204
4205 PR rust/26197:
4206 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4207 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4208 Fix off-by-one and type size errors in ordinary case.
4209
4210 2020-08-05 Tom de Vries <tdevries@suse.de>
4211
4212 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4213 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4214
4215 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4216
4217 * frame.h (frame_id_p): Return bool.
4218 (frame_id_artificial_p): Return bool.
4219 (frame_id_eq): Return bool.
4220 (has_stack_frames): Return bool.
4221 (get_selected_frame): Fix typo in comment.
4222 (get_frame_pc_if_available): Return bool.
4223 (get_frame_address_in_block_if_available): Return bool.
4224 (get_frame_func_if_available): Return bool.
4225 (read_frame_register_unsigned): Return bool.
4226 (get_frame_register_bytes): Return bool.
4227 (safe_frame_unwind_memory): Return bool.
4228 (deprecated_frame_register_read): Return bool.
4229 (frame_unwinder_is): Return bool.
4230 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4231 bool.
4232 <this_id::p>: Likewise.
4233 <prev_p>: Likewise.
4234 (frame_stash_add): Return bool.
4235 (get_frame_id): Use bool.
4236 (frame_id_build_special) Use bool.
4237 (frame_id_build_unavailable_stack): Use bool.
4238 (frame_id_build): Use bool.
4239 (frame_id_p): Return bool, use true/false instead of 1/0.
4240 (frame_id_artificial_p): Likewise.
4241 (frame_id_eq): Likewise.
4242 (frame_id_inner): Likewise.
4243 (get_frame_func_if_available): Likewise.
4244 (read_frame_register_unsigned): Likewise.
4245 (deprecated_frame_register_read): Likewise.
4246 (get_frame_register_bytes): Likewise.
4247 (has_stack_frames): Likewise.
4248 (inside_main_func): Likewise.
4249 (inside_entry_func): Likewise.
4250 (get_frame_pc_if_available): Likewise.
4251 (get_frame_address_in_block_if_available): Likewise.
4252 (frame_unwinder_is): Likewise.
4253 (safe_frame_unwind_memory): Likewise.
4254 (frame_unwind_arch): Likewise.
4255
4256 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4257
4258 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4259 type to cached_copy_status.
4260 (fprintf_frame): Adjust.
4261 (get_frame_func_if_available): Adjust.
4262 (frame_cleanup_after_sniffer): Adjust.
4263
4264 2020-08-04 Mark Wielaard <mark@klomp.org>
4265
4266 * MAINTAINERS (Write After Approval): Update email address.
4267
4268 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4269
4270 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4271 dynamic_prop::const_val.
4272
4273 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4274
4275 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4276 dynamic_prop::kind.
4277
4278 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4279
4280 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4281
4282 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4283
4284 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4285
4286 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4287 Jose E. Marchesi <jose.marchesi@oracle.com>
4288
4289 * configure.tgt: Add entry for bpf-*-*.
4290 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4291 (ALLDEPFILES): Add bpf-tdep.c.
4292 * bpf-tdep.c: New file.
4293 * MAINTAINERS: Add bpf target and maintainer.
4294 * NEWS: Mention the support for the new target.
4295
4296 2020-08-04 Tom de Vries <tdevries@suse.de>
4297
4298 PR symtab/23270
4299 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4300 Error.
4301
4302 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4303
4304 * syscalls/freebsd.xml: Regenerate.
4305
4306 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4307
4308 * syscalls/update-freebsd.sh: Fix usage and year range.
4309
4310 2020-08-03 Tom de Vries <tdevries@suse.de>
4311
4312 PR symtab/26333
4313 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4314 DW_LNE_lo_user/DW_LNE_hi_user range.
4315
4316 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4317
4318 PR ada/26318
4319 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4320 kind.
4321
4322 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4323
4324 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4325
4326 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4327
4328 * breakpoint.c (set_breakpoint_condition): Update the condition
4329 expressions after checking that the input condition string parses
4330 successfully and does not contain junk at the end.
4331
4332 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4333
4334 * breakpoint.c (set_breakpoint_condition): Update the
4335 condition string after parsing the new condition successfully.
4336
4337 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4338
4339 * proc-api.c (_STRUCTURED_PROC): Don't define.
4340 * proc-events.c: Likewise.
4341 * proc-flags.c: Likewise.
4342 * proc-why.c: Likewise.
4343 * procfs.c: Likewise.
4344
4345 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4346 * configure, config.in: Regenerate.
4347
4348 2020-07-30 Tom de Vries <tdevries@suse.de>
4349
4350 PR build/26320
4351 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4352 m_red/m_green/m_blue in a union.
4353
4354 2020-07-29 Tom de Vries <tdevries@suse.de>
4355
4356 PR tdep/26280
4357 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4358
4359 2020-07-28 Tom Tromey <tromey@adacore.com>
4360
4361 PR symtab/26270:
4362 * symtab.h (find_pc_partial_function_sym): Declare.
4363 * cli/cli-cmds.c (disassemble_command): Use
4364 find_pc_partial_function_sym. Check asm_demangle.
4365 * blockframe.c (cache_pc_function_sym): New global.
4366 (cache_pc_function_name): Remove.
4367 (clear_pc_function_cache): Update.
4368 (find_pc_partial_function_sym): New function, from
4369 find_pc_partial_function.
4370 (find_pc_partial_function): Rewrite using
4371 find_pc_partial_function_sym.
4372
4373 2020-07-28 Tom Tromey <tromey@adacore.com>
4374
4375 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4376 help. Add usage.
4377
4378 2020-07-28 Tom Tromey <tromey@adacore.com>
4379
4380 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4381 <DW_OP_GNU_variable_value>: Cast to address type.
4382
4383 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4384
4385 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4386 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4387 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4388 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4389 (nbsd_get_siginfo_type): New.
4390 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4391 (_initialize_nbsd_tdep): New.
4392
4393 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4394
4395 PR binutils/26301
4396 * configure: Regenerated.
4397
4398 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4399
4400 PR binutils/26301
4401 * configure: Regenerated.
4402
4403 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4404
4405 * python/py-frame.c: Remove 'user-regs.h' include.
4406 (frapy_read_register): Rewrite to make use of
4407 gdbpy_parse_register_id.
4408 * python/py-registers.c (gdbpy_parse_register_id): New function,
4409 moved here from python/py-unwind.c. Updated the return type, and
4410 also accepts register descriptor objects.
4411 * python/py-unwind.c: Remove 'user-regs.h' include.
4412 (pyuw_parse_register_id): Moved to python/py-registers.c.
4413 (unwind_infopy_add_saved_register): Update to use
4414 gdbpy_parse_register_id.
4415 (pending_framepy_read_register): Likewise.
4416 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4417
4418 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4419
4420 * python/py-registers.c: Add 'user-regs.h' include.
4421 (register_descriptor_iter_find): New function.
4422 (register_descriptor_iterator_object_methods): New static global
4423 methods array.
4424 (register_descriptor_iterator_object_type): Add pointer to methods
4425 array.
4426
4427 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4428
4429 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4430 for all architectures on FreeBSD 11.3 and later.
4431
4432 2020-07-27 Tom Tromey <tromey@adacore.com>
4433
4434 * gcore.h (load_corefile): Don't declare.
4435
4436 2020-07-27 Tom de Vries <tdevries@suse.de>
4437
4438 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4439 * config.in: Regenerate.
4440 * configure: Regenerate.
4441
4442 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4443
4444 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4445 ws2tcpip.h. When checking whether socklen_t type is defined, use
4446 ws2tcpip.h if it is available and sys/socket.h isn't.
4447 * configure: Regenerate.
4448 * config.in: Regenerate.
4449
4450 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4451
4452 PR fortran/23051
4453 PR fortran/26139
4454 * valops.c (value_ind): Pass address to
4455 readjust_indirect_value_type.
4456 * value.c (readjust_indirect_value_type): Make parameter
4457 non-const, and add extra address parameter. Resolve original type
4458 before using it.
4459 * value.h (readjust_indirect_value_type): Update function
4460 signature and comment.
4461
4462 2020-07-25 Tom de Vries <tdevries@suse.de>
4463
4464 PR symtab/26243
4465 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4466 entries.
4467
4468 2020-07-24 Aaron Merey <amerey@redhat.com>
4469
4470 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4471 * configure: Rebuild.
4472
4473 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4474
4475 PR corefiles/26294
4476 * corelow.c (_initialize_corelow): Add period to help text
4477 for "maintenance print core-file-backed-mappings".
4478
4479 2020-07-23 Pedro Alves <pedro@palves.net>
4480
4481 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4482 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4483 meanwhile.
4484 * frame.c (frame_cache_generation, get_frame_cache_generation):
4485 New.
4486 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4487 (get_prev_frame_if_no_cycle): On exception, don't touch
4488 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4489 * frame.h (get_frame_cache_generation): Declare.
4490
4491 2020-07-23 Tom de Vries <tdevries@suse.de>
4492
4493 PR tui/26282
4494 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4495 New default constructor.
4496
4497 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4498
4499 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4500 exclude non-statement entries.
4501
4502 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4503
4504 * NEWS (New commands): Mention new command
4505 "maintenance print core-file-backed-mappings".
4506
4507 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4508
4509 * corelow.c (gdbcmd.h): Include.
4510 (core_target::info_proc_mappings): New method.
4511 (get_current_core_target): New function.
4512 (maintenance_print_core_file_backed_mappings): New function.
4513 (_initialize_corelow): Add core-file-backed-mappings to
4514 "maint print" commands.
4515
4516 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4517
4518 * linux-tdep.c (dump_note_entry_p): New function.
4519 (linux_dump_mapping_p_ftype): New typedef.
4520 (linux_find_memory_regions_full): Add new parameter,
4521 should_dump_mapping_p.
4522 (linux_find_memory_regions): Adjust call to
4523 linux_find_memory_regions_full.
4524 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4525 call to linux_find_memory_regions_full.
4526
4527 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4528
4529 * corelow.c (solist.h, unordered_map): Include.
4530 (class core_target): Add field m_core_file_mappings and
4531 method build_file_mappings.
4532 (core_target::core_target): Call build_file_mappings.
4533 (core_target::~core_target): Free memory associated with
4534 m_core_file_mappings.
4535 (core_target::build_file_mappings): New method.
4536 (core_target::xfer_partial): Use m_core_file_mappings
4537 for memory transfers.
4538 * linux-tdep.c (linux_read_core_file_mappings): New
4539 function.
4540 (linux_core_info_proc_mappings): Rewrite to use
4541 linux_read_core_file_mappings.
4542 (linux_init_abi): Register linux_read_core_file_mappings.
4543
4544 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4545
4546 * arch-utils.c (default_read_core_file_mappings): New function.
4547 * arch-utils.c (default_read_core_file_mappings): Declare.
4548 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4549 * gdbarch.h, gdbarch.c: Regenerate.
4550
4551 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4552
4553 PR corefiles/25631
4554 * corelow.c (core_target:xfer_partial): Revise
4555 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4556 case after first checking the stratum beneath the core
4557 target.
4558 (has_all_memory): Return true.
4559 * target.c (raw_memory_xfer_partial): Revise comment
4560 regarding use of has_all_memory.
4561
4562 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4563
4564 * exec.h (section_table_xfer_memory): Revise declaration,
4565 replacing section name parameter with an optional callback
4566 predicate.
4567 * exec.c (section_table_xfer_memory): Likewise.
4568 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4569 of section_table_xfer_memory.
4570
4571 2020-07-22 Tom Tromey <tromey@adacore.com>
4572
4573 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4574 lookup_symbol_search_name.
4575
4576 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4577
4578 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4579 redundant local variable.
4580 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4581 reference, not pointer, update code accordingly.
4582
4583 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4584 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4585
4586 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4587 * jit.c (jit_breakpoint_re_set_internal): Use the
4588 `skip_jit_symbol_lookup` field.
4589
4590 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4591 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4592
4593 * jit.c (jit_read_descriptor): Define the descriptor address once,
4594 use twice.
4595 (jit_breakpoint_deleted): Move the declaration of the loop variable
4596 `iter` into the loop header.
4597 (jit_breakpoint_re_set_internal): Move the declaration of the local
4598 variable `objf_data` to the first point of definition.
4599 (jit_event_handler): Move the declaration of local variables
4600 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4601 Rename `objf` to `jited`.
4602
4603 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4604
4605 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4606 Remove.
4607 * jit.c (get_jiter_objfile_data): Update.
4608
4609 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4610 Simon Marchi <simon.marchi@polymtl.ca>
4611
4612 * jit.c (struct jit_program_space_data): Remove.
4613 (jit_program_space_key): Remove.
4614 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4615 stuff.
4616 (get_jit_program_space_data): Remove.
4617 (jit_breakpoint_deleted): Iterate on all of the program space's
4618 objfiles.
4619 (jit_inferior_init): Likewise.
4620 (jit_breakpoint_re_set_internal): Likewise. Also change return
4621 type to void.
4622 (jit_breakpoint_re_set): Pass current_program_space to
4623 jit_breakpoint_re_set_internal.
4624
4625 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4626
4627 * jit.h (struct jiter_objfile_data) <cached_code_address,
4628 jit_breakpoint>: Move to here from ...
4629 * jit.c (jit_program_space_data): ... here.
4630 (jiter_objfile_data::~jiter_objfile_data): Update.
4631 (jit_breakpoint_deleted): Update.
4632 (jit_breakpoint_re_set_internal): Update.
4633
4634 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4635
4636 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4637 checks.
4638 (jit_read_descriptor): Remove NULL check.
4639 (jit_event_handler): Add an assertion.
4640
4641 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4642
4643 * jit.h (struct jit_objfile_data): Split into...
4644 (struct jiter_objfile_data): ... this ...
4645 (struct jited_objfile_data): ... and this.
4646 * objfiles.h (struct objfile) <jit_data>: Remove.
4647 <jiter_data, jited_data>: New fields.
4648 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4649 (jiter_objfile_data::~jiter_objfile_data): ... this.
4650 (get_jit_objfile_data): Rename to ...
4651 (get_jiter_objfile_data): ... this.
4652 (add_objfile_entry): Update.
4653 (jit_read_descriptor): Use get_jiter_objfile_data.
4654 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4655 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4656 (jit_inferior_exit_hook): Use objfile's jited_data field.
4657
4658 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4659
4660 * jit.h: Forward-declare `struct minimal_symbol`.
4661 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4662 constructor, destructor, and an objfile* field.
4663 * jit.c (jit_objfile_data): Remove.
4664 (struct jit_objfile_data): Migrate from here to jit.h.
4665 (jit_objfile_data::~jit_objfile_data): New destructor
4666 implementation with code moved from free_objfile_data.
4667 (free_objfile_data): Delete.
4668 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4669 (jit_find_objf_with_entry_addr): Ditto.
4670 (jit_inferior_exit_hook): Ditto.
4671 (_initialize_jit): Remove the call to
4672 register_objfile_data_with_cleanup.
4673 * objfiles.h (struct objfile) <jit_data>: New field.
4674
4675 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4676
4677 * jit.h: Forward-declare `struct objfile`.
4678 (jit_event_handler): Add a second parameter, the JITer objfile.
4679 * jit.c (jit_read_descriptor): Change the signature to take the
4680 JITer objfile as an argument instead of the jit_program_space_data.
4681 (jit_inferior_init): Update the call to jit_read_descriptor.
4682 (jit_event_handler): Use the new JITer objfile argument when calling
4683 jit_read_descriptor.
4684 * breakpoint.c (handle_jit_event): Update the call to
4685 jit_event_handler to pass the JITer objfile.
4686
4687 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4688
4689 * gdbarch.c: Regenerate.
4690 * gdbarch.h: Regenerate.
4691 * gdbarch.sh (handle_segmentation_fault): Remove method.
4692 * infrun.c (handle_segmentation_fault): Remove.
4693 (print_signal_received_reason): Remove call to
4694 handle_segmentation_fault.
4695
4696 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4697
4698 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4699 Rename to sparc64_linux_report_signal_info and add siggnal
4700 argument.
4701 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4702 instead of sparc64_linux_handle_segmentation_fault.
4703
4704 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4705
4706 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4707 i386_linux_report_signal_info instead of
4708 i386_linux_handle_segmentation_fault.
4709 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4710 to i386_linux_report_signal_info and add siggnal argument.
4711 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4712 of i386_linux_handle_segmentation_fault.
4713 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4714 to i386_linux_report_signal_info and add siggnal argument.
4715
4716 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4717
4718 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4719 hook if present.
4720
4721 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4722
4723 * gdbarch.c: Regenerate.
4724 * gdbarch.h: Regenerate.
4725 * gdbarch.sh (report_signal_info): New method.
4726 * infrun.c (print_signal_received_reason): Invoke gdbarch
4727 report_signal_info hook if present.
4728
4729 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4730
4731 * python/py-registers.c : Add 'unordered_map' include.
4732 (gdbpy_new_reggroup): Renamed to...
4733 (gdbpy_get_reggroup): ...this. Update to only create register
4734 group descriptors when needed.
4735 (gdbpy_reggroup_iter_next): Update.
4736
4737 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4738
4739 * python/py-registers.c (gdbpy_register_object_data): New static
4740 global.
4741 (gdbpy_register_object_data_init): New function.
4742 (gdbpy_new_register_descriptor): Renamed to...
4743 (gdbpy_get_register_descriptor): ...this, and update to reuse
4744 existing register descriptors where possible.
4745 (gdbpy_register_descriptor_iter_next): Update.
4746 (gdbpy_initialize_registers): Register new gdbarch data.
4747
4748 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4749
4750 * linux-nat.c (stopped_pids): Make static.
4751
4752 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4753
4754 PR ada/26235
4755 * gdbtypes.c (ada_discrete_type_low_bound,
4756 ada_discrete_type_high_bound): Handle undefined bounds.
4757
4758 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4759
4760 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4761 declaration.
4762 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4763 function.
4764
4765 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4766
4767 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4768 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4769 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4770 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4771 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4772 method.
4773
4774 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4775
4776 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4777 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4778 which are deprecated in Guile 3.0.
4779 * configure.ac (try_guile_versions): Add "guile-3.0".
4780 * configure (try_guile_versions): Regenerate.
4781 * NEWS: Update entry.
4782
4783 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4784 Doug Evans <dje@google.com>
4785
4786 PR gdb/21104
4787 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4788 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4789 USING_GUILE_BEFORE_2_2.
4790 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4791 Change type to 'scm_t_port_type *'.
4792 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4793 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4794 parameter and honor it. Update callers.
4795 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4796 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4797 functions.
4798 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4799 USING_GUILE_BEFORE_2_2.
4800 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4801 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4802 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4803 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4804 and 'SCM_PORT_TYPE'.
4805 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4806 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4807 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4808 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4809 [!USING_GUILE_BEFORE_2_2]: New functions.
4810 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4811 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4812 'gdbscm_memory_port_read'.
4813 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4814 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4815 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4816 function.
4817 (ioscm_init_memory_port): Remove.
4818 (ioscm_init_memory_port_stream): New function
4819 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4820 function.
4821 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4822 Return scm_from_uint (0).
4823 (gdbscm_set_memory_port_read_buffer_size_x)
4824 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4825 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4826 Return scm_from_uint (0).
4827 (gdbscm_set_memory_port_write_buffer_size_x)
4828 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4829 * configure.ac (try_guile_versions): Add "guile-2.2".
4830 * configure: Regenerate.
4831 * NEWS: Add entry.
4832
4833 2020-07-18 Tom Tromey <tom@tromey.com>
4834
4835 * linux-nat.c (linux_multi_process): Remove.
4836 (linux_nat_target::supports_multi_process): Return true.
4837
4838 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4839
4840 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4841 (riscv_lookup_target_description): Return pointer out of
4842 unique_ptr.
4843 * target-descriptions.c (allocate_target_description): Add
4844 comment.
4845 (target_desc_deleter::operator()): Likewise.
4846 * target-descriptions.h (struct target_desc_deleter): Moved to
4847 gdbsupport/tdesc.h.
4848 (target_desc_up): Likewise.
4849
4850 2020-07-17 Tom Tromey <tromey@adacore.com>
4851
4852 * linux-nat.c (linux_nat_target::supports_non_stop)
4853 (linux_nat_target::always_non_stop_p): Use "true".
4854 (linux_nat_target::supports_disable_randomization): Use "true" and
4855 "false".
4856
4857 2020-07-16 Caroline Tice <cmtice@google.com>
4858
4859 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4860 (RNGLIST_HEADER_SIZE64): New constant definition.
4861 (struct dwop_section_names): Add rnglists_dwo.
4862 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4863 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4864 (struct dwo_sections): Add rnglists field.
4865 (read_attribut_reprocess): Add tag parameter.
4866 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4867 (cu_debug_rnglists_section): New function (decl & definition).
4868 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4869 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4870 die whose range is being checked; get rnglist section from
4871 cu_debug_rnglists_section, to get from either objfile or dwo file as
4872 appropriate. Add cases for DW_RLE_base_addressx,
4873 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4874 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4875 test inside if-condition and updating complaint message.
4876 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4877 dwarf2_rnglists_process.
4878 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4879 dwarf2_ranges_process.
4880 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4881 need_ranges_base and update comment appropriately. Also pass die tag
4882 to dwarf2_ranges_read.
4883 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4884 need_ranges_base and update comment appropriately. Also pass die tag
4885 to dwarf2_ranges_process.
4886 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4887 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4888 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4889 need_ranges_base and update comment appropriately. Also pass die tag
4890 to read_attribute_reprocess and dwarf2_ranges_read.
4891 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4892 and update function comment appropriately.
4893 (read_loclist_index): Call read_loclists_rnglists_header instead of
4894 read_loclist_header.
4895 (read_rnglist_index): New function.
4896 (read_attribute_reprocess): Add tag parameter. Add code for
4897 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4898 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4899
4900 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4901
4902 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4903 being resolved.
4904
4905 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4906
4907 * arch-utils.c (show_architecture): Update formatting of messages.
4908
4909 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4910
4911 * gdbtypes.h (struct type) <bounds>: Handle array and string
4912 types.
4913 * ada-lang.c (assign_aggregate): Use type::bounds on
4914 array/string type.
4915 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4916 * c-varobj.c (c_number_of_children): Likewise.
4917 (c_describe_child): Likewise.
4918 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4919 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4920 (f_type_print_base): Likewise.
4921 * f-valprint.c (f77_array_offset_tbl): Likewise.
4922 (f77_get_upperbound): Likewise.
4923 (f77_print_array_1): Likewise.
4924 * guile/scm-type.c (gdbscm_type_range): Likewise.
4925 * m2-typeprint.c (m2_array): Likewise.
4926 (m2_is_long_set_of_type): Likewise.
4927 * m2-valprint.c (get_long_set_bounds): Likewise.
4928 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4929 * python/py-type.c (typy_range): Likewise.
4930 * rust-lang.c (rust_internal_print_type): Likewise.
4931 * type-stack.c (type_stack::follow_types): Likewise.
4932 * valarith.c (value_subscripted_rvalue): Likewise.
4933 * valops.c (value_cast): Likewise.
4934
4935 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4936
4937 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4938 callers to use the equivalent accessor methods.
4939
4940 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4941
4942 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4943 (struct type) <bit_stride>: New method.
4944 (TYPE_BIT_STRIDE): Remove.
4945 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4946
4947 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4948
4949 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4950 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4951 callers to use the equivalent accessor methods instead.
4952
4953 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4954
4955 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4956 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4957 callers to use the equivalent accessor methods instead.
4958
4959 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4960
4961 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4962 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4963 to use dynamic_prop::kind.
4964
4965 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4966
4967 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4968 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4969 to get the bound property's kind and check against
4970 PROP_UNDEFINED.
4971
4972 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4973
4974 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4975 all callers to use type::range_bounds followed by
4976 dynamic_prop::{low,high}.
4977
4978 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4979
4980 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4981 const_val, set_const_val, baton, set_locexpr, set_loclist,
4982 set_addr_offset, variant_parts, set_variant_parts,
4983 original_type, set_original_type>: New methods.
4984 <kind>: Rename to...
4985 <m_kind>: ... this. Update all users to use the new methods
4986 instead.
4987 <data>: Rename to...
4988 <m_data>: ... this. Update all users to use the new methods
4989 instead.
4990
4991 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4992
4993 * gdbtypes.c (get_discrete_bounds): Return failure if
4994 the range type's bounds are not both defined and constant
4995 values.
4996 (get_array_bounds): Update comment. Remove undefined bound check.
4997
4998 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4999
5000 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5001 the type::bounds method directly.
5002
5003 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5004
5005 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5006 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5007 are used to set the range type's bounds to use set_bounds.
5008
5009 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5010
5011 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5012
5013 2020-07-10 Pedro Alves <pedro@palves.net>
5014
5015 * gdbthread.h (inferior_ref): Define.
5016 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5017 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5018 * thread.c
5019 (scoped_restore_current_thread::restore):
5020 Adjust to gdb::ref_ptr.
5021 (scoped_restore_current_thread::~scoped_restore_current_thread):
5022 Remove manual decref handling.
5023 (scoped_restore_current_thread::scoped_restore_current_thread):
5024 Adjust to use
5025 inferior_ref::new_reference/thread_info_ref::new_reference.
5026 Incref the thread before calling get_frame_id instead of after.
5027 Let TARGET_CLOSE_ERROR propagate.
5028
5029 2020-07-10 Pedro Alves <pedro@palves.net>
5030
5031 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5032 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5033 NOT_AVAILABLE_ERROR.
5034 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5035 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5036
5037 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5038 Pedro Alves <pedro@palves.net>
5039
5040 PR gdb/26199
5041 * infrun.c (threads_are_resumed_pending_p): Delete.
5042 (do_target_wait): Remove threads_are_executing and
5043 threads_are_resumed_pending_p checks from the inferior_matches
5044 lambda. Update comments.
5045
5046 2020-07-10 Pedro Alves <pedro@palves.net>
5047
5048 PR gdb/26199
5049 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5050 executing threads.
5051
5052 2020-07-10 Pedro Alves <pedro@palves.net>
5053
5054 PR gdb/26199
5055 * infrun.c (handle_no_resumed): Handle multiple targets.
5056
5057 2020-07-10 Pedro Alves <pedro@palves.net>
5058
5059 PR gdb/26199
5060 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5061 target_is_async_p.
5062
5063 2020-07-10 Pedro Alves <pedro@palves.net>
5064
5065 PR gdb/26199
5066 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5067 threads, not all threads.
5068
5069 2020-07-10 Pedro Alves <pedro@palves.net>
5070
5071 PR gdb/26199
5072 * remote.c (remote_target::open_1): Pass remote target pointer as
5073 data to create_async_event_handler.
5074 (remote_async_inferior_event_handler): Mark async event handler
5075 before returning if the remote target still has either pending
5076 events or unacknowledged notifications.
5077
5078 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5079
5080 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5081 declaration.
5082 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5083 function.
5084
5085 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5086
5087 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5088 inferior_ptid.
5089
5090 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5091
5092 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5093 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5094 AT_FREEBSD_PS_STRINGS.
5095
5096 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5097
5098 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5099 of debugfile path on Windows.
5100
5101 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5102
5103 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5104 argument to 'data'.
5105
5106 2020-07-08 Tom Tromey <tromey@adacore.com>
5107
5108 * ada-lang.c (ada_exception_message_1): Use read_memory.
5109
5110 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5111
5112 PR python/22748
5113 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5114 special handling for inline frames.
5115 * findvar.c (value_of_register_lazy): Skip inline frames when
5116 creating lazy register values.
5117 * frame.c (frame_id_computed_p): Delete definition.
5118 * frame.h (frame_id_computed_p): Delete declaration.
5119
5120 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5121
5122 * NEWS: Mention additions to Python API.
5123 * python/py-arch.c (archpy_register_groups): New function.
5124 (arch_object_methods): Add 'register_groups' method.
5125 * python/py-registers.c (reggroup_iterator_object): New struct.
5126 (reggroup_object): New struct.
5127 (gdbpy_new_reggroup): New function.
5128 (gdbpy_reggroup_to_string): New function.
5129 (gdbpy_reggroup_name): New function.
5130 (gdbpy_reggroup_iter): New function.
5131 (gdbpy_reggroup_iter_next): New function.
5132 (gdbpy_new_reggroup_iterator): New function
5133 (gdbpy_initialize_registers): Register new types.
5134 (reggroup_iterator_object_type): Define new Python type.
5135 (gdbpy_reggroup_getset): New static global.
5136 (reggroup_object_type): Define new Python type.
5137 * python/python-internal.h
5138
5139 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5140
5141 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5142 * python/py-arch.c (archpy_registers): New function.
5143 (arch_object_methods): Add 'registers' method.
5144 * python/py-registers.c: New file.
5145 * python/python-internal.h
5146 (gdbpy_new_register_descriptor_iterator): Declare.
5147 (gdbpy_initialize_registers): Declare.
5148 * python/python.c (do_start_initialization): Call
5149 gdbpy_initialize_registers.
5150 * NEWS: Mention additions to the Python API.
5151
5152 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5153
5154 * NEWS: Mention new Python API method.
5155 * python/py-unwind.c (pending_framepy_architecture): New function.
5156 (pending_frame_object_methods): Add architecture method.
5157
5158 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5159
5160 * gdbarch.c: Regenerate.
5161 * gdbarch.h: Regenerate.
5162 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5163 (gdbarch_data): Use internal_error for the case where
5164 deprecated_set_gdbarch_data was originally needed.
5165 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5166 and use passed in obstack.
5167 (libunwind_frame_set_descr): Should no longer get back NULL from
5168 gdbarch_data.
5169 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5170 type.
5171 * user-regs.c (user_regs_init): Update parameters, and use passed
5172 in obstack.
5173 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5174 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5175
5176 2020-07-06 Tom de Vries <tdevries@suse.de>
5177
5178 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5179 End-Of-Sequence in lte_is_less_than.
5180 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5181 "gdb: Don't reorder line table entries too much when sorting".
5182
5183 2020-07-06 Tom de Vries <tdevries@suse.de>
5184
5185 PR tui/26205
5186 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5187
5188 2020-07-05 Tom de Vries <tdevries@suse.de>
5189
5190 PR build/26187
5191 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5192 std::uncaught_exceptions instead of deprecated
5193 std::uncaught_exception.
5194
5195 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5196
5197 * macroexp.h (macro_stringify): Return
5198 gdb::unique_xmalloc_ptr<char>.
5199 * macroexp.c (macro_stringify): Likewise.
5200 * macrotab.c (fixup_definition): Update.
5201
5202 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5203
5204 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5205 (lex_one_token): Update.
5206 * macroexp.c (struct macro_buffer) <release>: Return
5207 gdb::unique_xmalloc_ptr<char>.
5208 (macro_stringify): Update.
5209 (macro_expand): Update.
5210 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5211 * macroexp.h (macro_expand_next): Likewise.
5212
5213 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5214
5215 * macroexp.h (macro_lookup_ftype): Remove.
5216 (macro_expand, macro_expand_once, macro_expand_next): Remove
5217 lookup function parameters, add scope parameter.
5218 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5219 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5220 * macroscope.h (standard_macro_lookup): Change parameter type
5221 to macro_scope.
5222 * macroscope.c (standard_macro_lookup): Likewise.
5223 * c-exp.y (lex_one_token): Update.
5224 * macrocmd.c (macro_expand_command): Likewise.
5225 (macro_expand_once_command): Likewise.
5226
5227 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5228
5229 * inf-loop.c (inferior_event_handler): Remove client_data param.
5230 * inf-loop.h (inferior_event_handler): Likewise.
5231 * infcmd.c (step_1): Adjust.
5232 * infrun.c (proceed): Adjust.
5233 (fetch_inferior_event): Remove client_data param.
5234 (infrun_async_inferior_event_handler): Adjust.
5235 * infrun.h (fetch_inferior_event): Remove `void *` param.
5236 * linux-nat.c (handle_target_event): Adjust.
5237 * record-btrace.c (record_btrace_handle_async_inferior_event):
5238 Adjust.
5239 * record-full.c (record_full_async_inferior_event_handler):
5240 Adjust.
5241 * remote.c (remote_async_inferior_event_handler): Adjust.
5242
5243 2020-07-01 Tom Tromey <tom@tromey.com>
5244
5245 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5246 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5247
5248 2020-07-01 Tom Tromey <tom@tromey.com>
5249
5250 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5251 tui_gen_win_info.
5252 (tui_win_info::make_window): Merge with
5253 tui_gen_win_info::make_window.
5254 (tui_win_info::make_visible): Move from tui_gen_win_info.
5255 * tui/tui-win.c (tui_win_info::max_width): Move from
5256 tui_gen_win_info.
5257 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5258 type.
5259 <window_factory>: Likewise.
5260 * tui/tui-layout.c (tui_win_info::resize): Move from
5261 tui_gen_win_info.
5262 (make_standard_window): Change return type.
5263 (get_locator_window, tui_get_window_by_name): Likewise.
5264 (tui_layout_window::apply): Remove a cast.
5265 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5266 (struct tui_win_info): Merge with tui_gen_win_info.
5267 (struct tui_gen_win_info): Remove.
5268
5269 2020-07-01 Tom Tromey <tom@tromey.com>
5270
5271 * tui/tui-stack.h (struct tui_locator_window): Derive from
5272 tui_win_info.
5273 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5274 <can_box>: New method.
5275
5276 2020-07-01 Tom Tromey <tom@tromey.com>
5277
5278 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5279
5280 2020-07-01 Tom Tromey <tom@tromey.com>
5281
5282 * tui/tui-regs.c (tui_data_window::display_registers_from)
5283 (tui_data_window::display_registers_from)
5284 (tui_data_window::first_data_item_displayed)
5285 (tui_data_window::delete_data_content_windows): Update.
5286 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5287 Remove.
5288 (tui_data_window::check_register_values): Update.
5289 (tui_data_item_window::rerender): Add parameters. Update.
5290 (tui_data_item_window::refresh_window): Remove.
5291 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5292 virtual.
5293 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5294 tui_gen_win_info.
5295 <refresh_window, max_height, min_height>: Remove.
5296 <rerender>: Add parameters.
5297 <x, y, visible>: New members.
5298 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5299 <m_item_width>: New member.
5300
5301 2020-07-01 Tom Tromey <tom@tromey.com>
5302
5303 * tui/tui-regs.c (tui_data_window::show_register_group)
5304 (tui_data_window::check_register_values): Update.
5305 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5306 from item_no.
5307
5308 2020-07-01 Tom Tromey <tom@tromey.com>
5309
5310 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5311 useless "if".
5312
5313 2020-07-01 Tom Tromey <tom@tromey.com>
5314
5315 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5316 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5317
5318 2020-07-01 Tom Tromey <tom@tromey.com>
5319
5320 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5321 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5322 (struct tui_line_or_address): Move from tui-data.h.
5323 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5324 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5325 (tui_cmd_window, tui_source_window_base, tui_source_window)
5326 (tui_disasm_window): Don't declare.
5327 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5328 to tui-winsource.h.
5329 (SINGLE_KEY): Move to tui-stack.c.
5330
5331 2020-07-01 Tom Tromey <tom@tromey.com>
5332
5333 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5334 std::string.
5335 * tui/tui-regs.c (class tab_expansion_file): New.
5336 (tab_expansion_file::write): New method.
5337 (tui_register_format): Change return type. Use
5338 tab_expansion_file.
5339 (tui_get_register, tui_data_window::display_registers_from)
5340 (tui_data_item_window::rerender): Update.
5341 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5342 * tui/tui-io.c (tui_expand_tabs): Remove.
5343
5344 2020-07-01 Tom Tromey <tom@tromey.com>
5345
5346 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5347
5348 2020-07-01 Fangrui Song <maskray@google.com>
5349
5350 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5351
5352 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5353
5354 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5355 forms for DW_AT_associated and DW_AT_allocated attributes,
5356 which is already checked in function attr_to_dynamic_prop.
5357
5358 2020-06-30 Tom Tromey <tromey@adacore.com>
5359
5360 * dwarf2/read.c (quirk_rust_enum): Correctly call
5361 alloc_rust_variant for default-less enum.
5362
5363 2020-06-30 Tom Tromey <tromey@adacore.com>
5364
5365 PR build/26183:
5366 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5367 gdb::to_string.
5368
5369 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5370
5371 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5372 * gdbarch.h: Re-generate.
5373
5374 2020-06-28 Tom Tromey <tom@tromey.com>
5375
5376 * command.h (cmd_types): Remove.
5377 (cmd_type): Don't declare.
5378 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5379 typedef.
5380 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5381 * cli/cli-decode.c (cmd_type): Remove.
5382
5383 2020-06-27 Pedro Alves <palves@redhat.com>
5384
5385 * fork-child.c (prefork_hook): Adjust.
5386 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5387 Delete.
5388 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5389 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5390 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5391 Remove declarations.
5392 (struct inferior) <set_tty, tty>: New methods.
5393 (struct inferior) <terminal>: Rename to ...
5394 (struct inferior) <m_terminal>: ... this and make private.
5395 * main.c (captured_main_1): Adjust.
5396 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5397 (mi_cmd_inferior_tty_show): Adjust.
5398 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5399 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5400
5401 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5402
5403 * configure.ac: Add --enable-libctf: handle --disable-static
5404 properly.
5405 * acinclude.m4: sinclude ../config/enable.m4.
5406 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5407 (LIBCTF): Substitute in.
5408 (CTF_DEPS): New, likewise.
5409 (CLIBS): libctf needs symbols from libbfd: move earlier.
5410 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5411 flags.
5412 * ctfread.c: Surround in ENABLE_LIBCTF.
5413 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5414 * configure: Regenerate.
5415 * config.in: Likewise.
5416
5417 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5418
5419 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5420
5421 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5422
5423 * inferior.h (struct inferior) <terminal>: Change type to
5424 gdb::unique_xmalloc_ptr<char>.
5425 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5426 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5427 field, adjust to unique pointer.
5428 (get_inferior_io_terminal): Adjust to unique pointer.
5429
5430 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5431
5432 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5433 registers, not just the known core set of registers.
5434
5435 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5436
5437 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5438 fflags, frm, and fcsr registers.
5439 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5440 restore groups.
5441 (riscv_tdesc_unknown_reg): New function.
5442 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5443 tdesc_use_registers.
5444 * riscv-tdep.h (struct gdbarch_tdep): Add
5445 unknown_csrs_first_regnum, unknown_csrs_count,
5446 duplicate_fflags_regnum, duplicate_frm_regnum, and
5447 duplicate_fcsr_regnum fields.
5448
5449 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5450
5451 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5452 callback, use the callback (when not null) to help number unknown
5453 registers.
5454 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5455 (tdesc_use_registers): Add extra parameter to declaration.
5456
5457 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5458
5459 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5460 in the file.
5461 (class riscv_pending_register_alias): Likewise.
5462 (riscv_register_feature::register_info): Change 'required_p' field
5463 to 'required', and change its type. Add 'check' member function.
5464 (riscv_register_feature::register_info::check): Define new member
5465 function.
5466 (riscv_xreg_feature): Change initialisation of 'required' field.
5467 (riscv_freg_feature): Likewise.
5468 (riscv_virtual_feature): Likewise.
5469 (riscv_csr_feature): Likewise.
5470 (riscv_check_tdesc_feature): Take extra parameter, the csr
5471 tdesc_feature, rewrite the function to use the new
5472 riscv_register_feature::register_info::check function.
5473 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5474
5475 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5476
5477 * features/Makefile: Remove all references to the deleted files
5478 below.
5479 * features/riscv/32bit-csr.c: Deleted.
5480 * features/riscv/32bit-csr.xml: Deleted.
5481 * features/riscv/64bit-csr.c: Deleted.
5482 * features/riscv/64bit-csr.xml: Deleted.
5483 * features/riscv/rebuild-csr-xml.sh: Deleted.
5484
5485 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5486
5487 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5488 whitespace error for declaration of names member variable.
5489 (struct riscv_register_feature): Add new prefer_first_name member
5490 variable, and fix whitespace error in declaration of registers.
5491 (riscv_xreg_feature): Initialize prefer_first_name field.
5492 (riscv_freg_feature): Likewise.
5493 (riscv_virtual_feature): Likewise.
5494 (riscv_csr_feature): Likewise.
5495 (riscv_register_name): Expand on comments. Remove register name
5496 modifications for CSR and virtual registers.
5497
5498 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5499
5500 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5501 errors.
5502
5503 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5504
5505 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5506 riscv-opc.h.
5507 (class riscv_pending_register_alias): New class.
5508 (riscv_check_tdesc_feature): Take vector of pending aliases and
5509 populate it as appropriate.
5510 (riscv_setup_register_aliases): Delete.
5511 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5512 to riscv_check_tdesc_feature in all cases. Use the vector to
5513 create the register aliases.
5514
5515 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5516
5517 * sol2-tdep.c (sol2_static_transform_name): Remove.
5518 (sol2_init_abi): Don't register it.
5519 * gdbarch.sh (static_transform_name): Remove.
5520 * gdbarch.c, gdbarch.h: Regenerate.
5521
5522 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5523 gdbarch_static_transform_name.
5524 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5525 * stabsread.c (define_symbol) <'X'>: Remove.
5526 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5527 handling.
5528 <'V'>: Likewise.
5529 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5530 <'S'>: Remove call to gdbarch_static_transform_name.
5531
5532 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5533
5534 * procfs.c (procfs_pre_trace): New function.
5535 (procfs_target::create_inferior): Pass it to fork_inferior.
5536
5537 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5538
5539 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5540 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5541 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5542 sol2-tdep.o, sparc-sol2-tdep.o.
5543 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5544 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5545 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5546 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5547
5548 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5549
5550 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5551 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5552 Call sol2_init_abi.
5553 Remove calls to set_gdbarch_skip_solib_resolver,
5554 set_gdbarch_core_pid_to_str.
5555 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5556 (i386_sol2_static_transform_name): Remove.
5557 (i386_sol2_init_abi): Call sol2_init_abi.
5558 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5559 set_gdbarch_static_transform_name,
5560 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5561 Use sol2_sigtramp_p.
5562 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5563 (sol2_sigtramp_p): New function.
5564 (sol2_static_transform_name): New function.
5565 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5566 (sol2_init_abi): New function.
5567 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5568 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5569 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5570 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5571 (sparc_sol2_static_transform_name): Remove.
5572 (sparc32_sol2_init_abi): Call sol2_init_abi.
5573 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5574 set_gdbarch_static_transform_name,
5575 set_gdbarch_skip_solib_resolver,
5576 set_gdbarch_core_pid_to_str.
5577 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5578 (sparc_sol2_static_transform_name): Remove
5579 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5580 call sol2_sigtramp_p.
5581 (sparc64_sol2_init_abi): Call sol2_init_abi.
5582 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5583 set_gdbarch_static_transform_name,
5584 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5585
5586 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5587
5588 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5589 * exec.c (validate_exec_file): If from_tty, set both
5590 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5591 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5592 and from_tty, unconditionally ask a confirmation.
5593
5594 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5595
5596 * target-descriptions.c (tdesc_architecture_name): Protect against
5597 NULL pointer dereference.
5598 (maint_print_xml_tdesc_cmd): New function.
5599 (_initialize_target_descriptions): Register new 'maint print
5600 xml-tdesc' command and give it the filename completer.
5601 * NEWS: Mention new 'maint print xml-tdesc' command.
5602
5603 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5604
5605 * target-descriptions.c (class tdesc_compatible_info): New class.
5606 (struct target_desc): Change type of compatible vector.
5607 (tdesc_compatible_p): Update for change in type of
5608 target_desc::compatible.
5609 (tdesc_compatible_info_list): New function.
5610 (tdesc_compatible_info_arch_name): New function.
5611 (tdesc_add_compatible): Update for change in type of
5612 target_desc::compatible.
5613 (print_c_tdesc::visit_pre): Likewise.
5614
5615 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5616
5617 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5618 whitespace to underscore.
5619 (maint_print_c_tdesc_cmd): Use fake filename for target
5620 descriptions that came from the target.
5621 (_initialize_target_descriptions): Add filename command completion
5622 for 'maint print c-tdesc'.
5623
5624 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5625
5626 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5627 lines.
5628
5629 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5630
5631 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5632 lines.
5633 (dwarf2_find_location_expression): Likewise.
5634 (call_site_parameter_matches): Likewise.
5635 (dwarf2_compile_expr_to_ax): Likewise.
5636 (disassemble_dwarf_expression): Likewise.
5637 (loclist_describe_location): Likewise.
5638
5639 2020-06-23 Pedro Alves <palves@redhat.com>
5640
5641 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5642 progspace-and-thread.h. Include scoped-mock-context.h instead.
5643 (register_to_value_test): Use scoped_mock_context.
5644 * regcache.c: Include "scoped-mock-context.h".
5645 (cooked_read_test): Don't error out if a target is already pushed.
5646 Use scoped_mock_context. Adjust.
5647 * scoped-mock-context.h: New file.
5648
5649 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5650
5651 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5652 initializer.
5653 (ada_language::is_string_type_p): New member function.
5654 * c-lang.c (c_language_data): Delete la_is_string_type_p
5655 initializer.
5656 (cplus_language_data): Likewise.
5657 (asm_language_data): Likewise.
5658 (minimal_language_data): Likewise.
5659 * d-lang.c (d_language_data): Likewise.
5660 * f-lang.c (f_is_string_type_p): Delete function, implementation
5661 moved to f_language::is_string_type_p.
5662 (f_language_data): Delete la_is_string_type_p initializer.
5663 (f_language::is_string_type_p): New member function,
5664 implementation from f_is_string_type_p.
5665 * go-lang.c (go_is_string_type_p): Delete function, implementation
5666 moved to go_language::is_string_type_p.
5667 (go_language_data): Delete la_is_string_type_p initializer.
5668 (go_language::is_string_type_p): New member function,
5669 implementation from go_is_string_type_p.
5670 * language.c (language_defn::is_string_type_p): Define new member
5671 function.
5672 (default_is_string_type_p): Make static, add comment copied from
5673 header file.
5674 (unknown_language_data): Delete la_is_string_type_p initializer.
5675 (unknown_language::is_string_type_p): New member function.
5676 (auto_language_data): Delete la_is_string_type_p initializer.
5677 (auto_language::is_string_type_p): New member function.
5678 * language.h (language_data): Delete la_is_string_type_p field.
5679 (language_defn::is_string_type_p): Declare new function.
5680 (default_is_string_type_p): Delete desclaration, move comment to
5681 definition.
5682 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5683 moved to m2_language::is_string_type_p.
5684 (m2_language_data): Delete la_is_string_type_p initializer.
5685 (m2_language::is_string_type_p): New member function,
5686 implementation from m2_is_string_type_p.
5687 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5688 initializer.
5689 * opencl-lang.c (opencl_language_data): Likewise.
5690 * p-lang.c (pascal_is_string_type_p): Delete function,
5691 implementation moved to pascal_language::is_string_type_p.
5692 (pascal_language_data): Delete la_is_string_type_p initializer.
5693 (pascal_language::is_string_type_p): New member function,
5694 implementation from pascal_is_string_type_p.
5695 * rust-lang.c (rust_is_string_type_p): Delete function,
5696 implementation moved to rust_language::is_string_type_p.
5697 (rust_language_data): Delete la_is_string_type_p initializer.
5698 (rust_language::is_string_type_p): New member function,
5699 implementation from rust_is_string_type_p.
5700 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5701 is_string_type_p.
5702
5703 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5704
5705 * ada-lang.c (ada_language_data): Delete la_print_typedef
5706 initializer.
5707 (ada_language::print_typedef): New member function.
5708 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5709 (cplus_language_data): Likewise.
5710 (asm_language_data): Likewise.
5711 (minimal_language_data): Likewise.
5712 * d-lang.c (d_language_data): Likewise.
5713 * f-lang.c (f_language_data): Likewise.
5714 (f_language::print_typedef): New member function.
5715 * go-lang.c (go_language_data): Delete la_print_typedef
5716 initializer.
5717 * language.c (language_defn::print_typedef): Define member
5718 function.
5719 (unknown_language_data): Delete la_print_typedef initializer.
5720 (unknown_language::print_typedef): New member function.
5721 (auto_language_data): Delete la_print_typedef initializer.
5722 (auto_language::print_typedef): New member function.
5723 * language.h (language_data): Delete la_print_typedef field.
5724 (language_defn::print_typedef): Declare new member function.
5725 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5726 (default_print_typedef): Delete declaration.
5727 * m2-lang.c (m2_language_data): Delete la_print_typedef
5728 initializer.
5729 (m2_language::print_typedef): New member function.
5730 * objc-lang.c (objc_language_data): Delete la_print_typedef
5731 initializer.
5732 * opencl-lang.c (opencl_language_data): Likewise.
5733 * p-lang.c (pascal_language_data): Likewise.
5734 (pascal_language::print_typedef): New member function.
5735 * rust-lang.c (rust_print_typedef): Delete function,
5736 implementation moved to rust_language::print_typedef.
5737 (rust_language): Delete la_print_typedef initializer.
5738 (rust_language::print_typedef): New member function,
5739 implementation from rust_print_typedef.
5740 * typeprint.c (default_print_typedef): Delete.
5741
5742 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5743
5744 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5745 (ada_language::printstr): New member function.
5746 * c-lang.c (c_language_data): Delete la_printstr initializer.
5747 (cplus_language_data): Likewise.
5748 (asm_language_data): Likewise.
5749 (minimal_language_data): Likewise.
5750 * d-lang.c (d_language_data): Likewise.
5751 * f-lang.c (f_printstr): Rename to f_language::printstr.
5752 (f_language_data): Delete la_printstr initializer.
5753 (f_language::printstr): New member function, implementation from
5754 f_printstr.
5755 * go-lang.c (go_language_data): Delete la_printstr initializer.
5756 * language.c (language_defn::printstr): Define new member
5757 function.
5758 (unk_lang_printstr): Delete.
5759 (unknown_language_data): Delete la_printstr initializer.
5760 (unknown_language::printstr): New member function.
5761 (auto_language_data): Delete la_printstr initializer.
5762 (auto_language::printstr): New member function.
5763 * language.h (language_data): Delete la_printstr field.
5764 (language_defn::printstr): Declare new member function.
5765 (LA_PRINT_STRING): Update call to printstr.
5766 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5767 (m2_language_data): Delete la_printstr initializer.
5768 (m2_language::printstr): New member function, implementation from
5769 m2_printstr.
5770 * objc-lang.c (objc_language_data): Delete la_printstr
5771 initializer.
5772 * opencl-lang.c (opencl_language_data): Likewise.
5773 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5774 (pascal_language_data): Delete la_printstr initializer.
5775 (pascal_language::printstr): New member function, implementation
5776 from pascal_printstr.
5777 * p-lang.h (pascal_printstr): Delete declaration.
5778 * rust-lang.c (rust_printstr): Update header comment.
5779 (rust_language_data): Delete la_printstr initializer.
5780 (rust_language::printstr): New member function.
5781
5782 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5783
5784 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5785 (ada_language::printchar): New member function.
5786 * c-lang.c (c_language_data): Delete la_printchar initializer.
5787 (cplus_language_data): Likewise.
5788 (asm_language_data): Likewise.
5789 (minimal_language_data): Likewise.
5790 * d-lang.c (d_language_data): Likewise.
5791 * f-lang.c (f_printchar): Rename to f_language::printchar.
5792 (f_language_data): Delete la_printchar initializer.
5793 (f_language::printchar): New member function, implementation from
5794 f_printchar.
5795 * go-lang.c (go_language_data): Delete la_printchar initializer.
5796 * language.c (unk_lang_printchar): Delete.
5797 (language_defn::printchar): Define new member function.
5798 (unknown_language_data): Delete la_printchar initializer.
5799 (unknown_language::printchar): New member function.
5800 (auto_language_data): Delete la_printchar initializer.
5801 (auto_language::printchar): New member function.
5802 * language.h (language_data): Delete la_printchar field.
5803 (language_defn::printchar): Declare new member function.
5804 (LA_PRINT_CHAR): Update call to printchar.
5805 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5806 (m2_language::printchar): New member function.
5807 * objc-lang.c (objc_language_data): Delete la_printchar
5808 initializer.
5809 * opencl-lang.c (opencl_language_data): Likewise.
5810 * p-lang.c (pascal_language_data): Delete la_printchar
5811 initializer.
5812 (pascal_language::printchar): New member function.
5813 * rust-lang.c (rust_printchar): Rename to
5814 rust_language::printchar.
5815 (rust_language_data): Delete la_printchar initializer.
5816 (rust_language::printchar): New member function, implementation
5817 from rust_printchar.
5818
5819 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5820
5821 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5822 (ada_language_data): Delete la_emitchar initializer.
5823 (ada_language::emitchar): New member function, implementation from
5824 emit_char.
5825 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5826 (cplus_language_data): Likewise.
5827 (asm_language_data): Likewise.
5828 (minimal_language_data): Likewise.
5829 * d-lang.c (d_language_data): Likewise.
5830 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5831 (f_language_data): Delete la_emitchar initializer.
5832 (f_language::emitchar): New member function, implementation from
5833 f_emit_char.
5834 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5835 * language.c (unk_lang_emit_char): Delete.
5836 (language_defn::emitchar): New member function definition.
5837 (unknown_language_data): Delete la_emitchar initializer.
5838 (unknown_language::emitchar): New member function.
5839 (auto_language_data): Delete la_emitchar initializer.
5840 (auto_language::emitchar): New member function.
5841 * language.h (language_data): Delete la_emitchar field.
5842 (language_defn::emitchar): New member field declaration.
5843 (LA_EMIT_CHAR): Update call to emitchar.
5844 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5845 (m2_language_data): Delete la_emitchar initializer.
5846 (m2_language::emitchar): New member function, implementation from
5847 m2_emit_char.
5848 * objc-lang.c (objc_language_data): Delete la_emitchar
5849 initializer.
5850 * opencl-lang.c (opencl_language_data): Likewise.
5851 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5852 (pascal_language_data): Delete la_emitchar initializer.
5853 (pascal_language::emitchar): New member function, implementation
5854 from pascal_emit_char.
5855 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5856 (rust_language_data): Delete la_emitchar initializer.
5857 (rust_language::emitchar): New member function, implementation
5858 from rust_emitchar.
5859
5860 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5861
5862 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5863 (ada_language_data): Delete la_post_parser initializer.
5864 (ada_language::post_parser): New member function.
5865 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5866 (cplus_language_data): Likewise.
5867 (asm_language_data): Likewise.
5868 (minimal_language_data): Likewise.
5869 * d-lang.c (d_language_data): Likewise.
5870 * f-lang.c (f_language_data): Likewise.
5871 * go-lang.c (go_language_data): Likewise.
5872 * language.c (unknown_language_data): Likewise.
5873 (auto_language_data): Likewise.
5874 * language.h (language_data): Delete la_post_parser field.
5875 (language_defn::post_parser): New member function.
5876 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5877 * objc-lang.c (objc_language_data): Likewise.
5878 * opencl-lang.c (opencl_language_data): Likewise.
5879 * p-lang.c (pascal_language_data): Likewise.
5880 * parse.c (parse_exp_in_context): Update call to post_parser.
5881 (null_post_parser): Delete definition.
5882 * parser-defs.h (null_post_parser): Delete declaration.
5883 * rust-lang.c (rust_language_data): Delete la_post_parser
5884 initializer.
5885
5886 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5887
5888 * ada-lang.c (parse): Rename to ada_language::parser.
5889 (ada_language_data): Delete la_parser initializer.
5890 (ada_language::parser): New member function, implementation from
5891 parse.
5892 * c-lang.c (c_language_data): Delete la_parser initializer.
5893 (cplus_language_data): Likewise.
5894 (asm_language_data): Likewise.
5895 (minimal_language_data): Likewise.
5896 * d-lang.c (d_language_data): Likewise.
5897 (d_language::parser): New member function.
5898 * f-lang.c (f_language_data): Delete la_parser initializer.
5899 (f_language::parser): New member function.
5900 * go-lang.c (go_language_data): Delete la_parser initializer.
5901 (go_language::parser): New member function.
5902 * language.c (unk_lang_parser): Delete.
5903 (language_defn::parser): Define new member function.
5904 (unknown_language_data): Delete la_parser initializer.
5905 (unknown_language::parser): New member function.
5906 (auto_language_data): Delete la_parser initializer.
5907 (auto_language::parser): New member function.
5908 * language.h (language_data): Delete la_parser field.
5909 (language_defn::parser): Declare new member function.
5910 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5911 (m2_language::parser): New member function.
5912 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5913 * opencl-lang.c (opencl_language_data): Likewise.
5914 * p-lang.c (pascal_language_data): Likewise.
5915 (pascal_language::parser): New member function.
5916 * parse.c (parse_exp_in_context): Update call to parser.
5917 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5918 (rust_language::parser): New member function.
5919
5920 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5921
5922 * top.c (print_gdb_configuration): Print --with-python-libdir
5923 configuration value.
5924
5925 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5926
5927 * NEWS: Mention change to the alias command.
5928
5929 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5930
5931 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5932 (alias_command_completer)
5933 (make_alias_options_def_group): New functions.
5934 (alias_opts, alias_option_defs): New struct and array.
5935 (alias_usage_error): Update usage.
5936 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5937 Use option framework.
5938 (_initialize_cli_cmds): Update alias command help.
5939 Update aliases command help.
5940 (show_user):
5941 Add NULL for new default_args lookup_cmd argument.
5942 (valid_command_p): Rename to validate_aliased_command.
5943 Add NULL for new default_args lookup_cmd argument. Verify that the
5944 aliased_command has no default args.
5945 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5946 (lookup_cmd_1, lookup_cmd): New argument default_args.
5947 (add_alias_cmd):
5948 Add NULL for new default_args lookup_cmd argument.
5949 (print_help_for_command): Show default args under the layout
5950 alias some_alias = some_aliased_cmd some_alias_default_arg.
5951 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5952 xfree default_args in destructor.
5953 * cli/cli-script.c (process_next_line, do_define_command):
5954 Add NULL for new default_args lookup_cmd argument.
5955 * command.h: Declare new default_args argument in lookup_cmd
5956 and lookup_cmd_1.
5957 * completer.c (complete_line_internal_1):
5958 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5959 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5960 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5961 Likewise.
5962 * infcmd.c (_initialize_infcmd): Likewise.
5963 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5964 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5965 * python/py-param.c (add_setshow_generic): Likewise.
5966 * remote.c (_initialize_remote): Likewise.
5967 * top.c (execute_command): Prepend default_args if command has some.
5968 (set_verbose):
5969 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5970 * tracepoint.c (validate_actionline, encode_actions_1):
5971 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5972
5973 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5974
5975 * jit.c (jit_read_descriptor): Use bool as the return type.
5976 (jit_breakpoint_re_set_internal): Use bool as the return type.
5977 Invert the return value logic; return true if the jit breakpoint
5978 has been successfully initialized.
5979 (jit_inferior_init): Update the call to
5980 jit_breakpoint_re_set_internal.
5981
5982 2020-06-22 Pedro Alves <palves@redhat.com>
5983
5984 PR gdb/25939
5985 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5986 Use the current inferior instead. Don't return
5987 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5988 wait again.
5989 * sol-thread.c (sol_thread_target::wait): Don't reference
5990 inferior_ptid.
5991 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5992 (sol_update_thread_list_callback): Use the current inferior's pid
5993 instead of inferior_ptid.
5994
5995 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5996
5997 * procfs.c: Cleanup many comments.
5998
5999 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6000 (AFTER_WATCHFLAG): Replace by value.
6001
6002 (MAIN_PROC_NAME_FORMAT): Inline ...
6003 (create_procinfo): ... here.
6004
6005 (procfs_debug_inferior): Remove SYS_exec handling.
6006 (syscall_is_exec): Likewise.
6007 (procfs_set_exec_trap): Likewise.
6008
6009 (syscall_is_lwp_exit): Inline in callers.
6010 (syscall_is_exit): Likewise.
6011 (syscall_is_exec): Likewise.
6012 (syscall_is_lwp_create): Likewise.
6013
6014 (invalidate_cache): Remove #if 0 code.
6015
6016 (make_signal_thread_runnable): Remove.
6017 (procfs_target::resume): Remove #if 0 code.
6018
6019 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6020
6021 PR gdb/25939
6022 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6023 call ...
6024 (procfs_target::create_inferior): ... here.
6025
6026 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6027
6028 * exec.c (validate_exec_file): Ensure the build-id is up to
6029 date by calling reopen_exec_file (that checks file timestamp
6030 to decide to re-read the file).
6031
6032 2020-06-18 Pedro Alves <palves@redhat.com>
6033
6034 PR gdb/25412
6035 * gdbthread.h (delete_thread, delete_thread_silent)
6036 (find_thread_ptid): Update comments.
6037 * thread.c (current_thread_): New global.
6038 (is_current_thread): Move higher, and reimplement.
6039 (inferior_thread): Reimplement.
6040 (set_thread_exited): Use bool. Add assertions.
6041 (add_thread_silent): Simplify thread-reuse handling by always
6042 calling delete_thread.
6043 (delete_thread): Remove intro comment.
6044 (find_thread_ptid): Skip exited threads.
6045 (switch_to_thread_no_regs): Write to current_thread_.
6046 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6047 INFERIOR_PTID. Clear current_thread_.
6048
6049 2020-06-18 Pedro Alves <palves@redhat.com>
6050
6051 * aix-thread.c (pd_update): Use switch_to_thread.
6052
6053 2020-06-18 Pedro Alves <palves@redhat.com>
6054
6055 * ravenscar-thread.c (ravenscar_thread_target): Update.
6056 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6057 (ravenscar_thread_target::add_active_thread): ... this. Don't
6058 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6059 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6060
6061 2020-06-18 Pedro Alves <palves@redhat.com>
6062
6063 * nat/windows-nat.c (current_windows_thread): Remove.
6064 * nat/windows-nat.h (current_windows_thread): Remove.
6065 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6066 Adjust.
6067 (display_selectors): Adjust to fetch the current
6068 windows_thread_info based on inferior_ptid.
6069 (fake_create_process): No longer write to current_windows_thread.
6070 (windows_nat_target::get_windows_debug_event):
6071 Don't set inferior_ptid or current_windows_thread.
6072 (windows_nat_target::wait): Adjust to not rely on
6073 current_windows_thread.
6074 (do_initial_windows_stuff): Now a method of windows_nat_target.
6075 Switch to the last_ptid thread.
6076 (windows_nat_target::attach): Adjust.
6077 (windows_nat_target::detach): Use switch_to_no_thread instead of
6078 writing to inferior_ptid directly.
6079 (windows_nat_target::create_inferior): Adjust.
6080
6081 2020-06-18 Pedro Alves <palves@redhat.com>
6082
6083 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6084
6085 2020-06-18 Pedro Alves <palves@redhat.com>
6086
6087 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6088 after creating it, instead of writing to inferior_ptid. Don't
6089 write to inferior_ptid.
6090
6091 2020-06-18 Pedro Alves <palves@redhat.com>
6092
6093 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6094
6095 2020-06-18 Pedro Alves <palves@redhat.com>
6096
6097 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6098 it, instead of writing to inferior_ptid.
6099
6100 2020-06-18 Pedro Alves <palves@redhat.com>
6101
6102 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6103 to inferior_ptid.
6104
6105 2020-06-18 Pedro Alves <palves@redhat.com>
6106
6107 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6108 instead of writing to inferior_ptid directly.
6109
6110 2020-06-18 Pedro Alves <palves@redhat.com>
6111
6112 * corelow.c (core_target::close): Use switch_to_no_thread instead
6113 of writing to inferior_ptid directly.
6114 (add_to_thread_list, core_target_open): Use switch_to_thread
6115 instead of writing to inferior_ptid directly.
6116
6117 2020-06-18 Pedro Alves <palves@redhat.com>
6118
6119 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6120 inferior_ptid.
6121 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6122 inferior_ptid.
6123 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6124 inferior_ptid directly.
6125 (darwin_nat_target::init_thread_list): Switch to thread, instead
6126 of writing to inferior_ptid.
6127 (darwin_nat_target::attach): Don't write to inferior_ptid.
6128 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6129
6130 2020-06-18 Pedro Alves <palves@redhat.com>
6131
6132 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6133 thread.
6134 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6135 Instead use switch_to_thread.
6136 (gnu_nat_target::detach): Use switch_to_no_thread
6137 instead of writing to inferior_ptid directly. Used passed-in
6138 inferior instead of looking up the inferior by pid.
6139
6140 2020-06-18 Pedro Alves <palves@redhat.com>
6141
6142 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6143 inferior_ptid.
6144
6145 2020-06-18 Pedro Alves <palves@redhat.com>
6146
6147 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6148 inferior_ptid.
6149 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6150 thread.
6151 (nto_procfs_target::detach): Avoid referencing
6152 inferior_ptid. Use switch_to_no_thread instead of writing to
6153 inferior_ptid directly.
6154 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6155 instead of writing to inferior_ptid directly.
6156 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6157 to thread.
6158
6159 2020-06-18 Pedro Alves <palves@redhat.com>
6160
6161 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6162 after creating it, instead of writing to inferior_ptid.
6163 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6164 to inferior_ptid directly.
6165 (gdbsim_target::wait): Don't write to inferior_ptid.
6166
6167 2020-06-18 Pedro Alves <palves@redhat.com>
6168
6169 * remote.c (remote_target::remote_notice_new_inferior): Use
6170 switch_to_thread instead of writing to inferior_ptid directly.
6171 (remote_target::add_current_inferior_and_thread): Use
6172 switch_to_no_thread instead of writing to inferior_ptid directly.
6173 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6174 and switch_to_thread instead of using set_current_inferior or
6175 writing to inferior_ptid directly.
6176
6177 2020-06-18 Pedro Alves <palves@redhat.com>
6178
6179 * tracectf.c (ctf_target_open): Switch to added thread instead of
6180 writing to inferior_ptid directly.
6181 (ctf_target::close): Use switch_to_no_thread instead of writing to
6182 inferior_ptid directly.
6183
6184 2020-06-18 Pedro Alves <palves@redhat.com>
6185
6186 * tracefile-tfile.c (tfile_target_open): Don't write to
6187 inferior_ptid directly, instead switch to added thread.
6188 (tfile_target::close): Use switch_to_no_thread instead of writing
6189 to inferior_ptid directly.
6190
6191 2020-06-18 Pedro Alves <palves@redhat.com>
6192
6193 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6194 (procfs_target::detach): Use switch_to_no_thread
6195 instead of writing to inferior_ptid directly.
6196 (do_attach): Change return type to void. Switch to the added
6197 thread.
6198 (procfs_target::create_inferior): Switch to the added thread.
6199 (procfs_do_thread_registers): Don't write to inferior_ptid.
6200
6201 2020-06-18 Pedro Alves <palves@redhat.com>
6202
6203 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6204 of writing to inferior_ptid.
6205 (scoped_restore_exited_inferior): Delete.
6206 (handle_vfork_child_exec_or_exit): Simplify using
6207 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6208 instead of writing to inferior_ptid.
6209 (THREAD_STOPPED_BY): Delete.
6210 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6211 (thread_stopped_by_hw_breakpoint): Delete.
6212 (save_waitstatus): Use
6213 scoped_restore_current_thread+switch_to_thread, and call
6214 target_stopped_by_watchpoint instead of
6215 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6216 instead of thread_stopped_by_sw_breakpoint, and
6217 target_stopped_by_hw_breakpoint instead of
6218 thread_stopped_by_hw_breakpoint.
6219 (handle_inferior_event)
6220 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6221 inferior_ptid directly, nor
6222 set_current_inferior/set_current_program_space. Use
6223 switch_to_thread / switch_to_inferior_no_thread instead.
6224
6225 2020-06-18 Pedro Alves <palves@redhat.com>
6226
6227 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6228 instead of writing to inferior_ptid.
6229
6230 2020-06-18 Pedro Alves <palves@redhat.com>
6231
6232 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6233 added thread.
6234 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6235 to the added thread.
6236 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6237 instead of writing to inferior_ptid.
6238
6239 2020-06-18 Pedro Alves <palves@redhat.com>
6240
6241 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6242 (register_to_value_test): Mock a program_space too. Heap-allocate
6243 the address space. Don't write to inferior_ptid. Use
6244 switch_to_thread instead.
6245
6246 2020-06-18 Pedro Alves <palves@redhat.com>
6247
6248 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6249 Delete.
6250 (find_signalled_thread()): New, factored out from
6251 linux_make_corefile_notes and adjusted to handle exited threads.
6252 (linux_make_corefile_notes): Adjust to use the new
6253 find_signalled_thread.
6254
6255 2020-06-18 Pedro Alves <palves@redhat.com>
6256
6257 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6258 of saving/restoring inferior_ptid.
6259
6260 2020-06-17 Tom Tromey <tom@tromey.com>
6261
6262 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6263 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6264 declare.
6265 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6266
6267 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6268
6269 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6270 of partial symtabs.
6271
6272 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6273
6274 * regformats/reg-arm.dat: Remove.
6275 * regformats/reg-bfin.dat: Remove.
6276 * regformats/reg-cris.dat: Remove.
6277 * regformats/reg-crisv32.dat: Remove.
6278 * regformats/reg-m32r.dat: Remove.
6279 * regformats/reg-tilegx.dat: Remove.
6280 * regformats/reg-tilegx32.dat: Remove.
6281
6282 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6283
6284 * features/Makefile (WHICH): Remove arm files.
6285 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6286 * regformats/arm/arm-with-neon.dat: Remove.
6287 * regformats/arm/arm-with-vfpv2.dat: Remove.
6288 * regformats/arm/arm-with-vfpv3.dat: Remove.
6289
6290 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6291
6292 * features/Makefile (XMLTOC): Remove rx.xml.
6293
6294 2020-06-17 Pedro Alves <palves@redhat.com>
6295
6296 * gdbthread.h (thread_control_state) <trap_expected> Update
6297 comments.
6298
6299 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6300
6301 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6302 ada_language::lookup_symbol_nonlocal.
6303 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6304 (ada_language::lookup_symbol_nonlocal): New member function,
6305 implementation from ada_lookup_symbol_nonlocal.
6306 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6307 initializer.
6308 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6309 initializer.
6310 (cplus_language::lookup_symbol_nonlocal): New member function.
6311 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6312 (minimal_language_data) Likewise.
6313 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6314 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6315 initializer.
6316 (d_language::lookup_symbol_nonlocal): New member function.
6317 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6318 initializer.
6319 (f_language::lookup_symbol_nonlocal): New member function.
6320 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6321 initializer.
6322 * language.c (unknown_language_data): Likewise.
6323 (auto_language_data): Likewise.
6324 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6325 field.
6326 (language_defn::lookup_symbol_nonlocal): New member function.
6327 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6328 initializer.
6329 * objc-lang.c (objc_language_data): Likewise.
6330 * opencl-lang.c (opencl_language_data): Likewise.
6331 * p-lang.c (pascal_language_data): Likewise.
6332 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6333 rust_language::lookup_symbol_nonlocal.
6334 (rust_language_data): Delete la_lookup_symbol_nonlocal
6335 initializer.
6336 (rust_language::lookup_symbol_nonlocal): New member function,
6337 implementation from rust_lookup_symbol_nonlocal.
6338 * symtab.c (lookup_symbol_aux): Update call to
6339 lookup_symbol_nonlocal.
6340 (basic_lookup_symbol_nonlocal): Rename to...
6341 (language_defn::lookup_symbol_nonlocal): ...this, and update
6342 header comment. Remove language_defn parameter, and replace with
6343 uses of `this'.
6344 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6345
6346 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6347
6348 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6349 initializer.
6350 (ada_language::value_print_inner): New member function.
6351 * c-lang.c (c_language_data): Delete la_value_print_inner
6352 initializer.
6353 (cplus_language_data): Likewise.
6354 (asm_language_data): Likewise.
6355 (minimal_language_data): Likewise.
6356 * d-lang.c (d_language_data): Likewise.
6357 (d_language::value_print_inner): New member function.
6358 * f-lang.c (f_language_data): Delete la_value_print_inner
6359 initializer.
6360 (f_language::value_print_inner): New member function.
6361 * f-lang.h (f_value_print_innner): Rename to...
6362 (f_value_print_inner): ...this (note spelling of 'inner').
6363 * f-valprint.c (f_value_print_innner): Rename to...
6364 (f_value_print_inner): ...this (note spelling of 'inner').
6365 * go-lang.c (go_language_data): Delete la_value_print_inner
6366 initializer.
6367 (go_language::value_print_inner): New member function.
6368 * language.c (language_defn::value_print_inner): Define new member
6369 function.
6370 (unk_lang_value_print_inner): Delete.
6371 (unknown_language_data): Delete la_value_print_inner initializer.
6372 (unknown_language::value_print_inner): New member function.
6373 (auto_language_data): Delete la_value_print_inner initializer.
6374 (auto_language::value_print_inner): New member function.
6375 * language.h (language_data): Delete la_value_print_inner field.
6376 (language_defn::value_print_inner): Delcare new member function.
6377 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6378 initializer.
6379 (m2_language::value_print_inner): New member function.
6380 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6381 initializer.
6382 * opencl-lang.c (opencl_language_data): Likewise.
6383 * p-lang.c (pascal_language_data): Likewise.
6384 (pascal_language::value_print_inner): New member function.
6385 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6386 initializer.
6387 (rust_language::value_print_inner): New member function.
6388 * valprint.c (do_val_print): Update call to value_print_inner.
6389
6390 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6391
6392 * ada-lang.c (ada_language_data): Delete la_value_print
6393 initializer.
6394 (ada_language::value_print): New member function.
6395 * c-lang.c (c_language_data): Delete la_value_print initializer.
6396 (cplus_language_data): Likewise.
6397 (asm_language_data): Likewise.
6398 (minimal_language_data): Likewise.
6399 * d-lang.c (d_language_data): Likewise.
6400 * f-lang.c (f_language_data): Likewise.
6401 * go-lang.c (go_language_data): Likewise.
6402 * language.c (unk_lang_value_print): Delete.
6403 (language_defn::value_print): Define new member function.
6404 (unknown_language_data): Delete la_value_print initializer.
6405 (unknown_language::value_print): New member function.
6406 (auto_language_data): Delete la_value_print initializer.
6407 (auto_language::value_print): New member function.
6408 * language.h (language_data): Delete la_value_print field.
6409 (language_defn::value_print): Declare new member function.
6410 (LA_VALUE_PRINT): Update call to value_print.
6411 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6412 * objc-lang.c (objc_language_data): Likewise.
6413 * opencl-lang.c (opencl_language_data): Likewise.
6414 * p-lang.c (pascal_language_data): Likewise.
6415 (pascal_language::value_print): New member function.
6416 * rust-lang.c (rust_language_data): Delete la_value_print
6417 initializer.
6418
6419 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6420
6421 * ada-lang.c (ada_watch_location_expression): Rename to
6422 ada_language::watch_location_expression.
6423 (ada_language_data): Delete la_watch_location_expression
6424 initializer.
6425 (ada_language::watch_location_expression): New member function,
6426 implementation from ada_watch_location_expression.
6427 * breakpoint.c (watch_command_1): Update call to
6428 watch_location_expression.
6429 * c-lang.c (c_watch_location_expression): Rename to
6430 language_defn::watch_location_expression.
6431 (c_language_data): Delete la_watch_location_expression
6432 initializer.
6433 (cplus_language_data): Likewise.
6434 (asm_language_data): Likewise.
6435 (minimal_language_data): Likewise.
6436 * c-lang.h (c_watch_location_expression): Delete declaration.
6437 * d-lang.c (d_language_data): Delete la_watch_location_expression
6438 initializer.
6439 * f-lang.c (f_language_data): Likewise.
6440 * go-lang.c (go_language_data): Likewise.
6441 * language.c (language_defn::watch_location_expression): Member
6442 function implementation from c_watch_location_expression.
6443 (unknown_language_data): Delete la_watch_location_expression
6444 initializer.
6445 (auto_language_data): Likewise.
6446 * language.h (language_data): Delete la_watch_location_expression
6447 field.
6448 (language_defn::watch_location_expression): Declare new member
6449 function.
6450 * m2-lang.c (m2_language_data): Delete
6451 la_watch_location_expression initializer.
6452 * objc-lang.c (objc_language_data): Likewise.
6453 * opencl-lang.c (opencl_language_data): Likewise.
6454 * p-lang.c (pascal_language_data): Likewise.
6455 * rust-lang.c (rust_watch_location_expression): Rename to
6456 rust_language::watch_location_expression.
6457 (rust_language_data): Delete la_watch_location_expression
6458 initializer.
6459 (rust_language::watch_location_expression): New member function,
6460 implementation from rust_watch_location_expression.
6461
6462 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6463
6464 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6465 ada_language::collect_symbol_completion_matches.
6466 (ada_language_data): Delete la_collect_symbol_completion_matches
6467 initializer.
6468 (ada_language::collect_symbol_completion_matches): New member
6469 function, implementation from
6470 ada_collect_symbol_completion_matches.
6471 * c-lang.c (c_language_data): Delete
6472 la_collect_symbol_completion_matches initializer.
6473 (cplus_language_data): Likewise.
6474 (asm_language_data): Likewise.
6475 (minimal_language_data): Likewise.
6476 * d-lang.c (d_language_data): Likewise.
6477 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6478 f_language::collect_symbol_completion_matches.
6479 (f_language_data): Delete la_collect_symbol_completion_matches
6480 initializer.
6481 (f_language::collect_symbol_completion_matches) New member
6482 function, implementation from f_collect_symbol_completion_matches.
6483 * go-lang.c (go_language_data): Delete
6484 la_collect_symbol_completion_matches initializer.
6485 * language.c (unknown_language_data): Likewise.
6486 (auto_language_data): Likewise.
6487 * language.h (language_data): Delete
6488 la_collect_symbol_completion_matches field.
6489 (language_defn::collect_symbol_completion_matches): New member
6490 function.
6491 * m2-lang.c (m2_language_data): Delete
6492 la_collect_symbol_completion_matches initializer.
6493 * objc-lang.c (objc_language_data): Likewise.
6494 * opencl-lang.c (opencl_language_data): Likewise.
6495 * p-lang.c (pascal_language_data): Likewise.
6496 * rust-lang.c (rust_language_data): Likewise.
6497 * symtab.c (default_collect_symbol_completion_matches): Delete.
6498 (collect_symbol_completion_matches): Update call to
6499 collect_symbol_completion_matches.
6500 (collect_symbol_completion_matches_type): Likewise.
6501 * symtab.h (default_collect_symbol_completion_matches): Delete
6502 declaration.
6503
6504 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6505
6506 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6507 (ada_language_data): Delete la_word_break_characters initializer.
6508 (ada_language::word_break_characters): New member function.
6509 * c-lang.c (c_language_data): Delete la_word_break_characters
6510 initializer.
6511 (cplus_language_data): Likewise.
6512 (asm_language_data): Likewise.
6513 (minimal_language_data): Likewise.
6514 * completer.c: Update global comment.
6515 (advance_to_expression_complete_word_point): Update call to
6516 word_break_characters.
6517 (complete_files_symbols): Likewise.
6518 (complete_line_internal_1): Likewise.
6519 (default_completer_handle_brkchars): Likewise.
6520 (skip_quoted_chars): Likewise.
6521 * d-lang.c (d_language_data): Delete la_word_break_characters
6522 initializer.
6523 * f-lang.c (f_word_break_characters): Delete.
6524 (f_language_data): Delete la_word_break_characters initializer.
6525 (f_language::word_break_characters): New member function.
6526 * go-lang.c (go_language_data): Delete la_word_break_characters
6527 initializer.
6528 * language.c (unknown_language_data): Likewise.
6529 (auto_language_data): Likewise.
6530 * language.h (default_word_break_characters): Move declaration to
6531 earlier in the file.
6532 (language_data): Delete la_word_break_characters field.
6533 (language_defn::word_break_characters): New member function.
6534 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6535 initializer.
6536 * objc-lang.c (objc_language_data): Likewise.
6537 * opencl-lang.c (opencl_language_data): Likewise.
6538 * p-lang.c (pascal_language_data): Likewise.
6539 * rust-lang.c (rust_language_data): Likewise.
6540
6541 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6542
6543 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6544 (ada_language_data): Delete la_get_symbol_name_matcher
6545 initializer.
6546 (language_defn::get_symbol_name_matcher_inner): New member
6547 function.
6548 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6549 initializer.
6550 (cplus_language_data): Likewise.
6551 (cplus_language::get_symbol_name_matcher_inner): New member
6552 function.
6553 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6554 (minimal_language_data): Likewise.
6555 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6556 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6557 initializer.
6558 * dictionary.c (iter_match_first_hashed): Update call to
6559 get_symbol_name_matcher.
6560 (iter_match_next_hashed): Likewise.
6561 (iter_match_next_linear): Likewise.
6562 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6563 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6564 initializer.
6565 (f_language::get_symbol_name_matcher_inner): New member function.
6566 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6567 initializer.
6568 * language.c (default_symbol_name_matcher): Update header comment,
6569 make static.
6570 (language_defn::get_symbol_name_matcher): New definition.
6571 (language_defn::get_symbol_name_matcher_inner): Likewise.
6572 (get_symbol_name_matcher): Delete.
6573 (unknown_language_data): Delete la_get_symbol_name_matcher
6574 initializer.
6575 (auto_language_data): Likewise.
6576 * language.h (language_data): Delete la_get_symbol_name_matcher
6577 field.
6578 (language_defn::get_symbol_name_matcher): New member function.
6579 (language_defn::get_symbol_name_matcher_inner): Likewise.
6580 (default_symbol_name_matcher): Delete declaration.
6581 * linespec.c (find_methods): Update call to
6582 get_symbol_name_matcher.
6583 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6584 initializer.
6585 * minsyms.c (lookup_minimal_symbol): Update call to
6586 get_symbol_name_matcher.
6587 (iterate_over_minimal_symbols): Likewise.
6588 * objc-lang.c (objc_language_data): Delete
6589 la_get_symbol_name_matcher initializer.
6590 * opencl-lang.c (opencl_language_data): Likewise.
6591 * p-lang.c (pascal_language_data): Likewise.
6592 * psymtab.c (psymbol_name_matches): Update call to
6593 get_symbol_name_matcher.
6594 * rust-lang.c (rust_language_data): Delete
6595 la_get_symbol_name_matcher initializer.
6596 * symtab.c (symbol_matches_search_name): Update call to
6597 get_symbol_name_matcher.
6598 (compare_symbol_name): Likewise.
6599
6600 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6601
6602 * ada-lang.c (ada_language_data): Delete la_compute_program
6603 initializer.
6604 * c-lang.c (c_language_data): Likewise.
6605 (c_language::compute_program): New member function.
6606 (cplus_language_data): Delete la_compute_program initializer.
6607 (cplus_language::compute_program): New member function.
6608 (asm_language_data): Delete la_compute_program initializer.
6609 (minimal_language_data): Likewise.
6610 * c-lang.h (c_compute_program): Update comment.
6611 (cplus_compute_program): Likewise.
6612 * compile/compile-c-support.c (c_compute_program): Likewise.
6613 (cplus_compute_program): Likewise.
6614 * compile/compile.c (compile_to_object): Update call to
6615 la_compute_program.
6616 * d-lang.c (d_language_data): Delete la_compute_program
6617 initializer.
6618 * f-lang.c (f_language_data): Likewise.
6619 * go-lang.c (go_language_data): Likewise.
6620 * language.c (unknown_language_data): Likewise.
6621 (auto_language_data): Likewise.
6622 * language.h (language_data): Delete la_compute_program field.
6623 (language_defn::compute_program): New member function.
6624 * m2-lang.c (m2_language_data): Delete la_compute_program
6625 initializer.
6626 * objc-lang.c (objc_language_data): Likewise.
6627 * opencl-lang.c (opencl_language_data): Likewise.
6628 * p-lang.c (pascal_language_data): Likewise.
6629 * rust-lang.c (rust_language_data): Likewise.
6630
6631 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6632
6633 * ada-lang.c (ada_language_data) Delete
6634 la_class_name_from_physname initializer.
6635 * c-lang.c (c_language_data): Likewise.
6636 (cplus_language_data): Likewise.
6637 (cplus_language::class_name_from_physname): New member function.
6638 (asm_language_data): Delete la_class_name_from_physname
6639 initializer.
6640 (minimal_language_data): Likewise.
6641 * d-lang.c (d_language_data): Likewise.
6642 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6643 method on language_defn class.
6644 (guess_full_die_structure_name): Likewise.
6645 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6646 initializer.
6647 * go-lang.c (go_language_data): Likewise.
6648 * language.c (language_class_name_from_physname): Delete.
6649 (unk_lang_class_name): Delete.
6650 (unknown_language_data): Delete la_class_name_from_physname
6651 initializer.
6652 (auto_language_data): Likewise.
6653 * language.h (language_data): Delete la_class_name_from_physname
6654 field.
6655 (language_defn::class_name_from_physname): New function.
6656 (language_class_name_from_physname): Delete declaration.
6657 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6658 initializer.
6659 * objc-lang.c (objc_language_data): Likewise.
6660 * opencl-lang.c (opencl_language_data): Likewise.
6661 * p-lang.c (pascal_language_data): Likewise.
6662 * rust-lang.c (rust_language_data): Likewise.
6663
6664 2020-06-16 Tom Tromey <tom@tromey.com>
6665
6666 * tui/tui-data.h (STATUS_NAME): New macro.
6667 * tui/tui-layout.c (tui_remove_some_windows)
6668 (initialize_known_windows, tui_register_window)
6669 (tui_layout_split::remove_windows, initialize_layouts)
6670 (tui_new_layout_command): Don't use hard-coded window names.
6671
6672 2020-06-16 Tom Tromey <tom@tromey.com>
6673
6674 PR tui/25348:
6675 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6676 tui_initialize_readline. Only run once. Call rl_initialize.
6677 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6678 tui_initialize_readline.
6679 * tui/tui-io.c (tui_setup_io): Call
6680 tui_ensure_readline_initialized.
6681 * tui/tui-interp.c (tui_interp::init): Update.
6682
6683 2020-06-16 Tom Tromey <tom@tromey.com>
6684
6685 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6686 Also preserve the status window.
6687
6688 2020-06-16 Tom Tromey <tom@tromey.com>
6689
6690 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6691 where m_window==nullptr.
6692
6693 2020-06-15 Tom Tromey <tromey@adacore.com>
6694
6695 * windows-nat.c (windows_nat::handle_output_debug_string):
6696 Update.
6697 (windows_nat::handle_ms_vc_exception): Update.
6698 * target.h (target_read_string): Change API.
6699 * target.c (target_read_string): Change API.
6700 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6701 Update.
6702 * solib-frv.c (frv_current_sos): Update.
6703 * solib-dsbt.c (dsbt_current_sos): Update.
6704 * solib-darwin.c (darwin_current_sos): Update.
6705 * linux-thread-db.c (inferior_has_bug): Update.
6706 * expprint.c (print_subexp_standard): Update.
6707 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6708 (ada_exception_message_1): Update.
6709
6710 2020-06-15 Tom Tromey <tromey@adacore.com>
6711
6712 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6713
6714 2020-06-15 Tom Tromey <tromey@adacore.com>
6715
6716 * valprint.c (read_string): Update comment.
6717 * target.c (MIN): Remove.
6718 (target_read_string): Rewrite.
6719
6720 2020-06-15 Tom Tromey <tromey@adacore.com>
6721
6722 * corefile.c (read_memory_string): Remove.
6723 * ada-valprint.c (ada_value_print_ptr): Update.
6724 * ada-lang.h (ada_tag_name): Change return type.
6725 * ada-lang.c (type_from_tag): Update.
6726 (ada_tag_name_from_tsd): Change return type. Use
6727 target_read_string.
6728 (ada_tag_name): Likewise.
6729 * gdbcore.h (read_memory_string): Don't declare.
6730
6731 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6732
6733 * symtab.c (rbreak_command): Ignore Windows drive colon.
6734
6735 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6736
6737 * NEWS: Mention removed GDBserver host support.
6738
6739 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6740
6741 * features/riscv/rebuild-csr-xml.sh: Updated.
6742
6743 2020-06-11 Tom Tromey <tom@tromey.com>
6744
6745 PR gdb/18318:
6746 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6747
6748 2020-06-09 Jonny Grant <jg@jguk.org>
6749 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6750
6751 * main.c (captured_main_1): Don't print new line after help.
6752 (print_gdb_help): add mailing list and IRC channel information
6753 to --help. Add new lines between items in the footer. Remove
6754 quotes around bug url.
6755
6756 2020-06-11 Keith Seitz <keiths@redhat.com>
6757
6758 PR gdb/21356
6759 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6760 Resolve typedefs for type length calculations.
6761
6762 2020-06-10 Tom de Vries <tdevries@suse.de>
6763
6764 PR ada/24713
6765 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6766 (write_psymbols): Enable .gdb_index for ada.
6767 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6768 ada.
6769
6770 2020-06-10 Tom de Vries <tdevries@suse.de>
6771
6772 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6773 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6774 namei" instead of "const char *name" argument.
6775 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6776 dw2_symtab_iter_init.
6777
6778 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6779
6780 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6781 to use type::field and field::type instead.
6782
6783 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6784
6785 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6786 to use field::type instead.
6787
6788 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6789
6790 * gdbtypes.h (struct field) <type, set_type>: New methods.
6791 Rename `type` field to...
6792 <m_type>: ... this. Change references throughout to use type or
6793 set_type methods.
6794 (FIELD_TYPE): Use field::type. Change call sites that modify
6795 the field's type to use field::set_type instead.
6796
6797 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6798
6799 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6800 to use type::index_type instead.
6801
6802 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6803
6804 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6805 methods.
6806 (TYPE_INDEX_TYPE): Use type::index_type.
6807 * gdbtypes.c (create_array_type_with_stride): Likewise.
6808
6809 2020-06-07 Tom Tromey <tom@tromey.com>
6810
6811 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6812 parameter.
6813 (generic_value_print): Update.
6814
6815 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6816
6817 Revert commit 982a38f60b0.
6818 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6819
6820 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6821
6822 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6823 avoid use after free.
6824
6825 2020-06-05 Tom de Vries <tdevries@suse.de>
6826
6827 * NEWS: Fix typos.
6828
6829 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6830
6831 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6832 the per_bfd object.
6833 (dwarf2_read_debug_names): Likewise.
6834 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6835 object when re-using a per_bfd object with an index.
6836
6837 2020-06-03 Tom de Vries <tdevries@suse.de>
6838
6839 PR symtab/26046
6840 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6841 children for C++.
6842 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6843 DW_TAG_subprogram.
6844
6845 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6846
6847 * ada-lang.c (ada_language_data): Delete skip_trampoline
6848 initializer.
6849 * c-lang.c (c_language_data): Likewise.
6850 (cplus_language_data): Likewise.
6851 (cplus_language::skip_trampoline): New member function.
6852 (asm_language_data): Delete skip_trampoline initializer.
6853 (minimal_language_data): Likewise.
6854 * d-lang.c (d_language_data): Likewise.
6855 * f-lang.c (f_language_data): Likewise.
6856 * go-lang.c (go_language_data): Likewise.
6857 * language.c (unk_lang_trampoline): Delete function.
6858 (skip_language_trampoline): Update.
6859 (unknown_language_data): Delete skip_trampoline initializer.
6860 (auto_language_data): Likewise.
6861 * language.h (language_data): Delete skip_trampoline field.
6862 (language_defn::skip_trampoline): New function.
6863 * m2-lang.c (m2_language_data): Delete skip_trampoline
6864 initializer.
6865 * objc-lang.c (objc_skip_trampoline): Delete function, move
6866 implementation to objc_language::skip_trampoline.
6867 (objc_language_data): Delete skip_trampoline initializer.
6868 (objc_language::skip_trampoline): New member function with
6869 implementation from objc_skip_trampoline.
6870 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6871 initializer.
6872 * p-lang.c (pascal_language_data): Likewise.
6873 * rust-lang.c (rust_language_data): Likewise.
6874
6875 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6876
6877 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6878 (ada_language::demangle): New member function.
6879 * c-lang.c (c_language_data): Delete la_demangle initializer.
6880 (cplus_language_data): Delete la_demangle initializer.
6881 (cplus_language::demangle): New member function.
6882 (asm_language_data): Delete la_demangle initializer.
6883 (minimal_language_data): Delete la_demangle initializer.
6884 * d-lang.c (d_language_data): Delete la_demangle initializer.
6885 (d_language::demangle): New member function.
6886 * f-lang.c (f_language_data): Delete la_demangle initializer.
6887 (f_language::demangle): New member function.
6888 * go-lang.c (go_language_data): Delete la_demangle initializer.
6889 (go_language::demangle): New member function.
6890 * language.c (language_demangle): Update.
6891 (unk_lang_demangle): Delete.
6892 (unknown_language_data): Delete la_demangle initializer.
6893 (unknown_language::demangle): New member function.
6894 (auto_language_data): Delete la_demangle initializer.
6895 (auto_language::demangle): New member function.
6896 * language.h (language_data): Delete la_demangle field.
6897 (language_defn::demangle): New function.
6898 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6899 * objc-lang.c (objc_language_data): Delete la_demangle
6900 initializer.
6901 (objc_language::demangle): New member function.
6902 * opencl-lang.c (opencl_language_data): Delete la_demangle
6903 initializer.
6904 * p-lang.c (pascal_language_data): Likewise.
6905 * rust-lang.c (rust_language_data): Likewise.
6906 (rust_language::demangle): New member function.
6907
6908 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6909
6910 * ada-lang.c (ada_language_data): Delete la_print_type
6911 initializer.
6912 (ada_language::print_type): New member function.
6913 * c-lang.c (c_language_data): Delete la_print_type initializer.
6914 (c_language::print_type): New member function.
6915 (cplus_language_data): Delete la_print_type initializer.
6916 (cplus_language::print_type): New member function.
6917 (asm_language_data): Delete la_print_type initializer.
6918 (asm_language::print_type): New member function.
6919 (minimal_language_data): Delete la_print_type initializer.
6920 (minimal_language::print_type): New member function.
6921 * d-lang.c (d_language_data): Delete la_print_type initializer.
6922 (d_language::print_type): New member function.
6923 * f-lang.c (f_language_data): Delete la_print_type initializer.
6924 (f_language::print_type): New member function.
6925 * go-lang.c (go_language_data): Delete la_print_type initializer.
6926 (go_language::print_type): New member function.
6927 * language.c (unk_lang_print_type): Delete.
6928 (unknown_language_data): Delete la_print_type initializer.
6929 (unknown_language::print_type): New member function.
6930 (auto_language_data): Delete la_print_type initializer.
6931 (auto_language::print_type): New member function.
6932 * language.h (language_data): Delete la_print_type field.
6933 (language_defn::print_type): New function.
6934 (LA_PRINT_TYPE): Update.
6935 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6936 (m2_language::print_type): New member function.
6937 * objc-lang.c (objc_language_data): Delete la_print_type
6938 initializer.
6939 (objc_language::print_type): New member function.
6940 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6941 to opencl_language::print_type.
6942 (opencl_language_data): Delete la_print_type initializer.
6943 (opencl_language::print_type): New member function, implementation
6944 from opencl_print_type.
6945 * p-lang.c (pascal_language_data): Delete la_print_type
6946 initializer.
6947 (pascal_language::print_type): New member function.
6948 * rust-lang.c (rust_print_type): Delete, implementation moved to
6949 rust_language::print_type.
6950 (rust_language_data): Delete la_print_type initializer.
6951 (rust_language::print_type): New member function, implementation
6952 from rust_print_type.
6953
6954 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6955
6956 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6957 implementation moves to...
6958 (ada_language::sniff_from_mangled_name): ...here. Update return
6959 type.
6960 (ada_language_data): Delete la_sniff_from_mangled_name
6961 initializer.
6962 * c-lang.c (c_language_data): Likewise.
6963 (cplus_language_data): Likewise.
6964 (cplus_language::sniff_from_mangled_name): New member function,
6965 implementation taken from gdb_sniff_from_mangled_name.
6966 (asm_language_data): Delete la_sniff_from_mangled_name
6967 initializer.
6968 (minimal_language_data): Likewise.
6969 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6970 implementation moves to cplus_language::sniff_from_mangled_name.
6971 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6972 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6973 moves to...
6974 (d_language::sniff_from_mangled_name): ...here.
6975 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6976 * f-lang.c (f_language_data): Likewise.
6977 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6978 moves to...
6979 (go_language::sniff_from_mangled_name): ...here.
6980 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6981 * language.c (language_sniff_from_mangled_name): Delete.
6982 (unknown_language_data): Delete la_sniff_from_mangled_name
6983 initializer.
6984 (auto_language_data): Likewise.
6985 * language.h (language_data): Delete la_sniff_from_mangled_name
6986 field.
6987 (language_defn::sniff_from_mangled_name): New function.
6988 (language_sniff_from_mangled_name): Delete declaration.
6989 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6990 field.
6991 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6992 implementation moves to...
6993 (objc_language::sniff_from_mangled_name): ...here.
6994 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6995 * opencl-lang.c (opencl_language_data): Likewise.
6996 * p-lang.c (pascal_language_data): Likewise.
6997 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6998 implementation moves to...
6999 (rust_language::sniff_from_mangled_name): ...here.
7000 (rust_language_data): Delete la_sniff_from_mangled_name
7001 initializer.
7002 * symtab.c (symbol_find_demangled_name): Call
7003 sniff_from_mangled_name member function.
7004
7005 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7006
7007 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7008 initializer.
7009 * c-lang.c (c_language_data): Likewise.
7010 (cplus_language_data): Likewise.
7011 (cplus_language::search_name_hash): New member function.
7012 (asm_language_data): Delete la_search_name_hash initializer.
7013 (minimal_language_data): Likewise.
7014 * d-lang.c (d_language_data): Likewise.
7015 * dictionary.c (default_search_name_hash): Rename to...
7016 (language_defn::search_name_hash): ...this.
7017 * f-lang.c (f_language_data): Likewise.
7018 (f_language::search_name_hash): New member function.
7019 * go-lang.c (go_language_data): Delete la_search_name_hash
7020 initializer.
7021 * language.c (unknown_language_data): Likewise.
7022 (auto_language_data): Likewise.
7023 * language.h (struct language_data): Delete la_search_name_hash
7024 field.
7025 (language_defn::search_name_hash): Declare new member function.
7026 (default_search_name_hash): Delete declaration.
7027 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7028 initializer.
7029 * objc-lang.c (objc_language_data): Likewise.
7030 * opencl-lang.c (opencl_language_data): Likewise.
7031 * p-lang.c (pascal_language_data): Likewise.
7032 * rust-lang.c (rust_language_data): Likewise.
7033 * symtab.c (search_name_hash): Update call.
7034
7035 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7036
7037 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7038 initializer.
7039 * c-lang.c (class compile_instance): Declare.
7040 (c_language_data): Delete la_get_compile_instance initializer.
7041 (c_language::get_compile_instance): New member function.
7042 (cplus_language_data): Delete la_get_compile_instance initializer.
7043 (cplus_language::get_compile_instance): New member function.
7044 (asm_language_data): Delete la_get_compile_instance initializer.
7045 (minimal_language_data): Likewise.
7046 * c-lang.h (c_get_compile_context): Update comment.
7047 (cplus_get_compile_context): Update comment.
7048 * compile/compile.c (compile_to_object): Update calls, don't rely
7049 on function pointer being NULL.
7050 * d-lang.c (d_language_data): Delete la_get_compile_instance
7051 initializer.
7052 * f-lang.c (f_language_data): Likewise.
7053 * go-lang.c (go_language_data): Likewise.
7054 * language.c (unknown_language_data): Likewise.
7055 (auto_language_data): Likewise.
7056 * language.h (language_data): Delete la_get_compile_instance field.
7057 (language_defn::get_compile_instance): New member function.
7058 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7059 initializer.
7060 * objc-lang.c (objc_language_data): Likewise.
7061 * opencl-lang.c (opencl_language_data): Likewise.
7062 * p-lang.c (pascal_language_data): Likewise.
7063 * rust-lang.c (rust_language_data): Likewise.
7064
7065 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7066
7067 * ada-lang.c (ada_add_all_symbols): Update comment.
7068 (ada_iterate_over_symbols): Delete, move implementation to...
7069 (ada_language::iterate_over_symbols): ...here, a new member
7070 function, rewrite to use range based for loop.
7071 (ada_language_data): Delete la_iterate_over_symbols initializer.
7072 * c-lang.c (c_language_data): Likewise.
7073 (cplus_language_data): Likewise.
7074 (asm_language_data): Likewise.
7075 (minimal_language_data): Likewise.
7076 * d-lang.c (d_language_data): Likewise.
7077 * f-lang.c (f_language_data): Likewise.
7078 * go-lang.c (go_language_data): Likewise.
7079 * language.c (unknown_language_data): Likewise.
7080 (auto_language_data): Likewise.
7081 * language.h (language_data): Delete la_iterate_over_symbols field.
7082 (language_defn::iterate_over_symbols): New member function.
7083 (LA_ITERATE_OVER_SYMBOLS): Update.
7084 * linespec.c (iterate_over_all_matching_symtabs): Update.
7085 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7086 initializer.
7087 * objc-lang.c (objc_language_data): Likewise.
7088 * opencl-lang.c (opencl_language_data): Likewise.
7089 * p-lang.c (pascal_language_data): Likewise.
7090 * rust-lang.c (rust_language_data): Likewise.
7091
7092 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7093
7094 * ada-lang.c (ada_language_data): Delete
7095 la_lookup_transparent_type initializer.
7096 * c-lang.c (c_language_data): Likewise.
7097 (cplus_language_data): Likewise.
7098 (cplus_language::lookup_transparent_type): New member function.
7099 (asm_language_data): Delete la_lookup_transparent_type
7100 initializer.
7101 (minimal_language_data): Likewise.
7102 * d-lang.c (d_language_data): Likewise.
7103 * f-lang.c (f_language_data): Likewise.
7104 * go-lang.c (go_language_data): Likewise.
7105 * language.c (unknown_language_data): Likewise.
7106 (auto_language_data): Likewise.
7107 * language.h (struct language_data): Delete
7108 la_lookup_transparent_type field.
7109 (language_defn::lookup_transparent_type): New member function.
7110 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7111 initializer.
7112 * objc-lang.c (objc_language_data): Likewise.
7113 * opencl-lang.c (opencl_language_data): Likewise.
7114 * p-lang.c (pascal_language_data): Likewise.
7115 * rust-lang.c (rust_language_data): Likewise.
7116 * symtab.c (symbol_matches_domain): Update call.
7117
7118 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7119
7120 * ada-lang.c (ada_language_arch_info): Delete function, move
7121 implementation to...
7122 (ada_language::language_arch_info): ...here, a new member
7123 function.
7124 (ada_language_data): Delete la_language_arch_info.
7125 * c-lang.c (c_language_data): Likewise.
7126 (c_language::language_arch_info): New member function.
7127 (cplus_language_arch_info): Delete function, move
7128 implementation to...
7129 (cplus_language::language_arch_info): ...here, a new member
7130 function.
7131 (cplus_language_data): Delete la_language_arch_info.
7132 (asm_language_data): Likewise.
7133 (asm_language::language_arch_info): New member function.
7134 (minimal_language_data): Delete la_language_arch_info.
7135 (minimal_language::language_arch_info): New member function.
7136 * d-lang.c (d_language_arch_info): Delete function, move
7137 implementation to...
7138 (d_language::language_arch_info): ...here, a new member
7139 function.
7140 (d_language_data): Delete la_language_arch_info.
7141 * f-lang.c (f_language_arch_info): Delete function, move
7142 implementation to...
7143 (f_language::language_arch_info): ...here, a new member
7144 function.
7145 (f_language_data): Delete la_language_arch_info.
7146 * go-lang.c (go_language_arch_info): Delete function, move
7147 implementation to...
7148 (go_language::language_arch_info): ...here, a new member
7149 function.
7150 (go_language_data): Delete la_language_arch_info.
7151 * language.c (unknown_language_data): Likewise.
7152 (unknown_language::language_arch_info): New member function.
7153 (auto_language_data): Delete la_language_arch_info.
7154 (auto_language::language_arch_info): New member function.
7155 (language_gdbarch_post_init): Update call to
7156 la_language_arch_info.
7157 * language.h (language_data): Delete la_language_arch_info
7158 function pointer.
7159 (language_defn::language_arch_info): New function.
7160 * m2-lang.c (m2_language_arch_info): Delete function, move
7161 implementation to...
7162 (m2_language::language_arch_info): ...here, a new member
7163 function.
7164 (m2_language_data): Delete la_language_arch_info.
7165 * objc-lang.c (objc_language_arch_info): Delete function, move
7166 implementation to...
7167 (objc_language::language_arch_info): ...here, a new member
7168 function.
7169 (objc_language_data): Delete la_language_arch_info.
7170 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7171 implementation to...
7172 (opencl_language::language_arch_info): ...here, a new member
7173 function.
7174 (opencl_language_data): Delete la_language_arch_info.
7175 * p-lang.c (pascal_language_arch_info): Delete function, move
7176 implementation to...
7177 (pascal_language::language_arch_info): ...here, a new member
7178 function.
7179 (pascal_language_data): Delete la_language_arch_info.
7180 * rust-lang.c (rust_language_arch_info): Delete function, move
7181 implementation to...
7182 (rust_language::language_arch_info): ...here, a new member
7183 function.
7184 (rust_language_data): Delete la_language_arch_info.
7185
7186 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7187
7188 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7189 initializer.
7190 * c-lang.c (c_language_data): Likewise.
7191 (cplus_language_data): Likewise.
7192 (cplus_language::pass_by_reference_info): New method.
7193 (asm_language_data): Delete la_pass_by_reference initializer.
7194 (minimal_language_data): Likewise.
7195 * cp-abi.c (cp_pass_by_reference): Remove use of
7196 default_pass_by_reference.
7197 * d-lang.c (d_language_data): Likewise.
7198 * f-lang.c (f_language_data): Likewise.
7199 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7200 default_pass_by_reference.
7201 * go-lang.c (go_language_data): Likewise.
7202 * language.c (language_pass_by_reference): Update.
7203 (default_pass_by_reference): Delete.
7204 (unknown_language_data): Delete la_pass_by_reference
7205 initializer.
7206 (auto_language_data): Likewise.
7207 * language.h (struct language_data): Delete la_pass_by_reference
7208 field.
7209 (language_defn::pass_by_reference_info): New member function.
7210 (default_pass_by_reference): Delete declaration.
7211 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7212 initializer.
7213 * objc-lang.c (objc_language_data): Likewise.
7214 * opencl-lang.c (opencl_language_data): Likewise.
7215 * p-lang.c (pascal_language_data): Likewise.
7216 * rust-lang.c (rust_language_data): Likewise.
7217
7218 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7219
7220 * ada-lang.c (ada_read_var_value): Delete function, move
7221 implementation to...
7222 (ada_language::read_var_value): ...here.
7223 (ada_language_data): Delete la_read_var_value initializer.
7224 * c-lang.c (c_language_data): Likewise.
7225 (cplus_language_data): Likewise.
7226 (minimal_language_data): Likewise.
7227 * d-lang.c (d_language_data): Likewise.
7228 * f-lang.c (f_language_data): Likewise.
7229 * findvar.c (default_read_var_value): Rename to...
7230 (language_defn::read_var_value): ...this.
7231 * findvar.c (read_var_value): Update header comment, and change to
7232 call member function instead of function pointer.
7233 * go-lang.c (go_language_data): Likewise.
7234 * language.c (unknown_language_data): Delete la_read_var_value
7235 initializer.
7236 (auto_language_data): Likewise.
7237 * language.h (struct language_data): Delete la_read_var_value
7238 field.
7239 (language_defn::read_var_value): New member function.
7240 (default_read_var_value): Delete declaration.
7241 * m2-lang.c (m2_language_data): Delete la_read_var_value
7242 initializer.
7243 * objc-lang.c (objc_language_data): Likewise.
7244 * opencl-lang.c (opencl_language_data): Likewise.
7245 * p-lang.c (pascal_language_data): Likewise.
7246 * rust-lang.c (rust_language_data): Likewise.
7247 * value.h (default_read_var_value): Delete declaration.
7248
7249 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7250
7251 * ada-lang.c (ada_print_array_index): Delete function, move
7252 implementation to...
7253 (ada_language::print_array_index): ...here.
7254 (ada_language_data): Delete la_print_array_index initializer.
7255 * c-lang.c (c_language_data): Likewise.
7256 (cplus_language_data): Likewise.
7257 (minimal_language_data): Likewise.
7258 * d-lang.c (d_language_data): Likewise.
7259 * f-lang.c (f_language_data): Likewise.
7260 * go-lang.c (go_language_data): Likewise.
7261 * language.c (default_print_array_index): Delete function, move
7262 implementation to...
7263 (language_defn::print_array_index): ...here.
7264 (unknown_language_data): Delete la_print_array_index initializer.
7265 (auto_language_data): Likewise.
7266 * language.h (struct language_data): Delete la_print_array_index
7267 field.
7268 (language_defn::print_array_index): New member function.
7269 (LA_PRINT_ARRAY_INDEX): Update.
7270 (default_print_array_index): Delete declaration.
7271 * m2-lang.c (m2_language_data): Delete la_print_array_index
7272 initializer.
7273 * objc-lang.c (objc_language_data): Likewise.
7274 * opencl-lang.c (opencl_language_data): Likewise.
7275 * p-lang.c (pascal_language_data): Likewise.
7276 * rust-lang.c (rust_language_data): Likewise.
7277
7278 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7279
7280 * gdb/ada-lang.c (ada_language_defn): Convert to...
7281 (ada_language_data): ...this.
7282 (class ada_language): New class.
7283 (ada_language_defn): New static global.
7284 * gdb/c-lang.c (c_language_defn): Convert to...
7285 (c_language_data): ...this.
7286 (class c_language): New class.
7287 (c_language_defn): New static global.
7288 (cplus_language_defn): Convert to...
7289 (cplus_language_data): ...this.
7290 (class cplus_language): New class.
7291 (cplus_language_defn): New static global.
7292 (asm_language_defn): Convert to...
7293 (asm_language_data): ...this.
7294 (class asm_language): New class.
7295 (asm_language_defn): New static global.
7296 (minimal_language_defn): Convert to...
7297 (minimal_language_data): ...this.
7298 (class minimal_language): New class.
7299 (minimal_language_defn): New static global.
7300 * gdb/d-lang.c (d_language_defn): Convert to...
7301 (d_language_data): ...this.
7302 (class d_language): New class.
7303 (d_language_defn): New static global.
7304 * gdb/f-lang.c (f_language_defn): Convert to...
7305 (f_language_data): ...this.
7306 (class f_language): New class.
7307 (f_language_defn): New static global.
7308 * gdb/go-lang.c (go_language_defn): Convert to...
7309 (go_language_data): ...this.
7310 (class go_language): New class.
7311 (go_language_defn): New static global.
7312 * gdb/language.c (unknown_language_defn): Remove declaration.
7313 (current_language): Initialize to nullptr, real initialization is
7314 moved to _initialize_language.
7315 (languages): Delete global.
7316 (language_defn::languages): Define.
7317 (set_language_command): Use language_defn::languages.
7318 (set_language): Likewise.
7319 (range_error): Likewise.
7320 (language_enum): Likewise.
7321 (language_def): Likewise.
7322 (add_set_language_command): Use language_def::languages for the
7323 language list, and language_def to lookup language pointers.
7324 (skip_language_trampoline): Use language_defn::languages.
7325 (unknown_language_defn): Convert to...
7326 (unknown_language_data): ...this.
7327 (class unknown_language): New class.
7328 (unknown_language_defn): New static global.
7329 (auto_language_defn): Convert to...
7330 (auto_language_data): ...this.
7331 (class auto_language): New class.
7332 (auto_language_defn): New static global.
7333 (language_gdbarch_post_init): Use language_defn::languages.
7334 (_initialize_language): Initialize current_language.
7335 * gdb/language.h (struct language_defn): Rename to...
7336 (struct language_data): ...this.
7337 (struct language_defn): New.
7338 (auto_language_defn): Delete.
7339 (unknown_language_defn): Delete.
7340 (minimal_language_defn): Delete.
7341 (ada_language_defn): Delete.
7342 (asm_language_defn): Delete.
7343 (c_language_defn): Delete.
7344 (cplus_language_defn): Delete.
7345 (d_language_defn): Delete.
7346 (f_language_defn): Delete.
7347 (go_language_defn): Delete.
7348 (m2_language_defn): Delete.
7349 (objc_language_defn): Delete.
7350 (opencl_language_defn): Delete.
7351 (pascal_language_defn): Delete.
7352 (rust_language_defn): Delete.
7353 * gdb/m2-lang.c (m2_language_defn): Convert to...
7354 (m2_language_data): ...this.
7355 (class m2_language): New class.
7356 (m2_language_defn): New static global.
7357 * gdb/objc-lang.c (objc_language_defn): Convert to...
7358 (objc_language_data): ...this.
7359 (class objc_language): New class.
7360 (objc_language_defn): New static global.
7361 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7362 (opencl_language_data): ...this.
7363 (class opencl_language): New class.
7364 (opencl_language_defn): New static global.
7365 * gdb/p-lang.c (pascal_language_defn): Convert to...
7366 (pascal_language_data): ...this.
7367 (class pascal_language): New class.
7368 (pascal_language_defn): New static global.
7369 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7370 language pointer, update comment format.
7371 * gdb/rust-lang.c (rust_language_defn): Convert to...
7372 (rust_language_data): ...this.
7373 (class rust_language): New class.
7374 (rust_language_defn): New static global.
7375
7376 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7377
7378 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7379 member variable.
7380 <m_stmt_at_address>: New member variable.
7381 (lnp_state_machine::record_line): Don't record some lines, update
7382 tracking of is_stmt at the same address.
7383 (lnp_state_machine::lnp_state_machine): Initialise new member
7384 variables.
7385
7386 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7387
7388 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7389 "-include gnu-nat-mig.h".
7390 * gnu-nat-mig.h: New file.
7391 * gnu-nat.c: Include "gnu-nat-mig.h".
7392 (exc_server, msg_reply_server, notify_server,
7393 process_reply_server): Remove declarations.
7394
7395 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7396
7397 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7398 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7399 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7400 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7401 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7402 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7403 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7404 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7405 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7406 to gnu_nat_target class.
7407 * gnu-nat.c: Likewise.
7408 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7409 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7410 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7411 object.
7412 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7413 instead of `gnu_target'.
7414
7415 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7416
7417 * i386-gnu-tdep.c: Include "gdbcore.h"
7418 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7419 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7420 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7421 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7422 i386_gnu_sigcontext_addr): New functions
7423 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7424 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7425 tdep.
7426
7427 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7428
7429 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7430 before fork_inferior call. Avoid calling it if target_is_pushed returns
7431 true.
7432
7433 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7434
7435 * gnu-nat.h (gnu_target): New variable declaration.
7436 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7437 gnu_target.
7438 * gnu-nat.c (gnu_target): New variable.
7439 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7440 add_thread_silent, and add_thread calls.
7441 (gnu_nat_target::create_inferior): Pass gnu_target to
7442 add_thread_silent, thread_change_ptid call.
7443 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7444 call.
7445
7446 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7447
7448 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7449 (gnu_nat_target::find_memory_regions): Remove unused
7450 `old_address' variable.
7451
7452 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7453
7454 * gnu-nat.c: Include "gdbarch.h".
7455
7456 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7457
7458 * reply_mig_hack.awk (Error return): Cast function through
7459 void *, to bypass compiler function call check.
7460
7461 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7462
7463 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7464 $(srcdir)/reply_mig_hack.awk.
7465
7466 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7467
7468 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7469
7470 2020-05-30 Jonny Grant <jg@jguk.org>
7471
7472 * configure.ac (ACX_BUGURL): change bug URL to https.
7473
7474 2020-05-30 Pedro Alves <palves@redhat.com>
7475
7476 * cp-support.c (replace_typedefs_template): New.
7477 (replace_typedefs_qualified_name): Handle
7478 DEMANGLE_COMPONENT_TEMPLATE.
7479
7480 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7481
7482 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7483 dwarf2/index-cache.h, dwarf2/index-write.c,
7484 dwarf2/index-write.h, dwarf2/line-header.c,
7485 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7486 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7487 variables and fields from `dwarf2_per_objfile` to just
7488 `per_objfile` throughout.
7489
7490 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7491
7492 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7493 <push_dwarf_reg_entry_value>: Add comment.
7494
7495 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7496 Keith Seitz <keiths@redhat.com>
7497
7498 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7499 instead of PyEval_ReleaseLock.
7500 (class gdbpy_gil): Move to earlier in file.
7501 (finalize_python): Set gdb_python_initialized.
7502 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7503 when not initialized.
7504
7505 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7506
7507 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7508 <push_dwarf_reg_entry_value>: Remove assert. Override
7509 per_objfile with caller_per_objfile.
7510
7511 2020-05-28 Tom de Vries <tdevries@suse.de>
7512
7513 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7514 PR gold/15646 workaround to symbol kind "type".
7515
7516 2020-05-27 Tom Tromey <tromey@adacore.com>
7517
7518 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7519
7520 2020-05-27 Tom Tromey <tromey@adacore.com>
7521
7522 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7523 Use htab_find_with_hash.
7524 <add_abbrev>: Remove "abbrev_number" parameter.
7525 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7526 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7527 (hash_abbrev): Add comment.
7528 (abbrev_table::lookup_abbrev): Move to header file.
7529 (abbrev_table::read): Update.
7530
7531 2020-05-27 Tom Tromey <tromey@adacore.com>
7532
7533 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7534 method.
7535 <canonical_name>: New member.
7536 <raw_name>: Rename from "name".
7537 (partial_die_info): Initialize canonical_name.
7538 (scan_partial_symbols): Check raw_name.
7539 (partial_die_parent_scope, partial_die_full_name)
7540 (add_partial_symbol, add_partial_subprogram)
7541 (add_partial_enumeration, load_partial_dies): Use "name" method.
7542 (partial_die_info::name): New method.
7543 (partial_die_info::read, guess_partial_die_structure_name)
7544 (partial_die_info::fixup): Update.
7545
7546 2020-05-27 Tom Tromey <tromey@adacore.com>
7547
7548 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7549 <get_ref_die_offset>: Inline.
7550 <get_ref_die_offset_complaint>: New method.
7551 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7552 (attribute::get_ref_die_offset_complaint): Rename from
7553 get_ref_die_offset. Just issue complaint.
7554
7555 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7556
7557 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7558
7559 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7560
7561 * exec.c (exec_file_attach): Use errno value of first openp failure.
7562
7563 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7564
7565 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7566 Don't close thread handle.
7567
7568 2020-05-27 Tom Tromey <tom@tromey.com>
7569 Simon Marchi <simon.marchi@efficios.com>
7570
7571 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7572 shared_ptr.
7573 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7574 member.
7575 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7576 dwarf2_per_bfd_objfile_data_key>: New globals.
7577 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7578 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7579 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7580 shared.
7581 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7582 short-circuit when sharing.
7583 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7584 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7585
7586 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7587
7588 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7589 to...
7590 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7591 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7592
7593 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7594
7595 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7596 build_name_components, find_name_components_bounds>:
7597 Add per_objfile parameter.
7598 (struct mapped_index) <symbol_name_at>: Likewise.
7599 (struct mapped_debug_names): Remove constructor.
7600 <dwarf2_per_objfile>: Remove field.
7601 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7602 (mapped_index_base::find_name_components_bounds,
7603 mapped_index_base::build_name_components,
7604 dw2_expand_symtabs_matching_symbol): Likewise.
7605 (class mock_mapped_index) <symbol_name_at>: Likewise.
7606 (check_match): Likewise.
7607 (check_find_bounds_finds): Likewise.
7608 (test_mapped_index_find_name_component_bounds): Update.
7609 (CHECK_MATCH): Update.
7610 (dw2_expand_symtabs_matching): Update.
7611 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7612 per_objfile parameter.
7613 <find_vec_in_debug_names>: Likewise.
7614 <m_per_objfile>: New field.
7615 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7616 parameter.
7617 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7618 (dw2_debug_names_iterator::next): Update.
7619 (dw2_debug_names_lookup_symbol): Update.
7620 (dw2_debug_names_expand_symtabs_for_function): Update.
7621 (dw2_debug_names_map_matching_symbols): Update.
7622 (dw2_debug_names_expand_symtabs_matching): Update.
7623 (dwarf2_read_debug_names): Update.
7624
7625 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7626
7627 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7628 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7629 move to dwarf2_per_objfile.
7630 <read_in_chain>: Remove.
7631 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7632 remove_all_cus, age_comp_units>: New methods.
7633 <m_dwarf2_cus>: New member.
7634 (struct dwarf2_per_cu_data) <cu>: Remove.
7635 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7636 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7637 moved to methods of dwarf2_per_objfile.
7638 (dwarf2_clear_marks): Remove.
7639 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7640 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7641 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7642 (dwarf2_per_objfile::remove_all_cus): New.
7643 (class free_cached_comp_units) <~free_cached_comp_units>:
7644 Update.
7645 (load_cu): Update.
7646 (dw2_do_instantiate_symtab): Adjust.
7647 (fill_in_sig_entry_from_dwo_entry): Adjust.
7648 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7649 (cutu_reader::cutu_reader): Likewise.
7650 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7651 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7652 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7653 and dwarf2_per_objfile::age_comp_units.
7654 (load_partial_comp_unit): Update.
7655 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7656 (process_queue): Likewise.
7657 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7658 backlink.
7659 (dwarf2_read_addr_index): Likewise.
7660 (follow_die_offset): Likewise.
7661 (dwarf2_fetch_die_loc_sect_off): Likewise.
7662 (dwarf2_fetch_constant_bytes): Likewise.
7663 (dwarf2_fetch_die_type_sect_off): Likewise.
7664 (follow_die_sig_1): Likewise.
7665 (load_full_type_unit): Likewise.
7666 (read_signatured_type): Likewise.
7667 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7668 (dwarf2_cu::~dwarf2_cu): Remove.
7669 (dwarf2_per_objfile::get_cu): New.
7670 (dwarf2_per_objfile::set_cu): New.
7671 (age_cached_comp_units): Rename to...
7672 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7673 to std::unordered_map.
7674 (free_one_cached_comp_unit): Rename to...
7675 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7676 to std::unordered_map.
7677 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7678 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7679 a dwarf2_per_objfile in data.
7680 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7681 (dwarf2_clear_marks): Remove.
7682
7683 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7684
7685 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7686 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7687 (init_tu_and_read_dwo_dies): Likewise.
7688 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7689 (cutu_reader::cutu_reader): Likewise.
7690 (load_partial_comp_unit): Likewise.
7691 (process_psymtab_comp_unit): Update.
7692 (build_type_psymtabs_1): Update.
7693 (process_skeletonless_type_unit): Update.
7694 (load_full_comp_unit): Update.
7695 (find_partial_die): Update.
7696 (dwarf2_read_addr_index): Update.
7697 (read_signatured_type): Update.
7698
7699 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7700
7701 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7702 m_header_read_in>: New fields.
7703 <get_header>: New method.
7704 * dwarf2/read.c (per_cu_header_read_in): Remove.
7705 (dwarf2_per_cu_data::get_header): New.
7706 (dwarf2_per_cu_data::addr_size): Update.
7707 (dwarf2_per_cu_data::offset_size): Update.
7708 (dwarf2_per_cu_data::ref_addr_size): Update.
7709
7710 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7711
7712 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7713 (dw2_do_instantiate_symtab): Update.
7714 (queue_and_load_all_dwo_tus): Change parameter from
7715 dwarf2_per_cu_data to dwarf2_cu.
7716 (dwarf2_fetch_die_loc_sect_off): Update.
7717 (dwarf2_fetch_constant_bytes): Update.
7718 (dwarf2_fetch_die_type_sect_off): Update.
7719
7720 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7721
7722 * dwarf2/read.c (process_full_comp_unit,
7723 process_full_type_unit): Remove per_cu, per_objfile paramters.
7724 Add dwarf2_cu parameter.
7725 (process_queue): Update.
7726
7727 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7728
7729 * dwarf2/read.c (create_cu_from_index_list): Replace
7730 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7731 (create_cus_from_index_list): Likewise.
7732 (create_cus_from_index): Likewise.
7733 (create_signatured_type_table_from_index): Likewise.
7734 (create_cus_from_debug_names_list): Likewise.
7735 (create_cus_from_debug_names): Likewise.
7736 (dwarf2_read_gdb_index): Update.
7737 (dwarf2_read_debug_names): Update.
7738
7739 2020-05-27 Tom Tromey <tom@tromey.com>
7740 Simon Marchi <simon.marchi@efficios.com>
7741
7742 * dwarf2/read.h (struct dwarf2_per_objfile)
7743 <get_type_for_signatured_type, set_type_for_signatured_type>:
7744 New methods.
7745 <m_type_map>: New member.
7746 (struct signatured_type) <type>: Remove.
7747 * dwarf2/read.c
7748 (dwarf2_per_objfile::get_type_for_signatured_type,
7749 dwarf2_per_objfile::set_type_for_signatured_type): New.
7750 (get_signatured_type): Use new methods.
7751
7752 2020-05-27 Tom Tromey <tom@tromey.com>
7753 Simon Marchi <simon.marchi@efficios.com>
7754
7755 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7756 (struct dwarf2_per_objfile) <type_units>: New member.
7757 <get_type_unit_group_unshareable>: New method.
7758 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7759 num_symtabs, symtabs>: Remove; move to
7760 type_unit_group_unshareable.
7761 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7762 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7763 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7764
7765 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7766
7767 * dwarf2/read.h (struct dwarf2_per_cu_data):
7768 <dwarf2_per_objfile>: Remove.
7769 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7770 dwarf2_per_objfile.
7771 (create_signatured_type_table_from_index): Likewise.
7772 (create_signatured_type_table_from_debug_names): Likewise.
7773 (create_debug_type_hash_table): Likewise.
7774 (fill_in_sig_entry_from_dwo_entry): Likewise.
7775 (create_type_unit_group): Likewise.
7776 (read_comp_units_from_section): Likewise.
7777 (create_cus_hash_table): Likewise.
7778
7779 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7780
7781 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7782 dwarf2_per_cu_data::dwarf2_per_objfile.
7783 (compute_compunit_symtab_includes): Likewise.
7784 (dwarf2_cu::start_symtab): Likewise.
7785
7786 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7787
7788 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7789 parameter.
7790 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7791 (read_namespace_alias): Update.
7792 (lookup_die_type): Update.
7793 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7794 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7795 Update.
7796 (disassemble_dwarf_expression): Update.
7797
7798 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7799
7800 * dwarf2/read.h (struct dwarf2_queue_item): Add
7801 dwarf2_per_objfile parameter, assign new parameter.
7802 <per_objfile>: New field.
7803 * dwarf2/read.c (free_one_cached_comp_unit): Add
7804 dwarf2_per_objfile parameter.
7805 (queue_comp_unit): Likewise.
7806 (dw2_do_instantiate_symtab): Update.
7807 (process_psymtab_comp_unit): Update.
7808 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7809 (process_imported_unit_die): Update.
7810 (queue_and_load_dwo_tu): Update.
7811 (follow_die_offset): Update.
7812 (follow_die_sig_1): Update.
7813
7814 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7815
7816 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7817 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7818 (read_call_site_scope): Assign per_objfile.
7819 (dwarf2_per_cu_data::objfile): Remove.
7820 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7821 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7822 dwarf2_per_objfile parameter.
7823 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7824 dwarf2_per_objfile parameter.
7825 (dwarf_expr_reg_to_entry_parameter): Add output
7826 dwarf2_per_objfile parameter.
7827 (locexpr_get_frame_base): Update.
7828 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7829 <push_dwarf_reg_entry_value>: Update.
7830 <call_site_to_target_addr>: Update.
7831 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7832 parameter.
7833 (value_of_dwarf_reg_entry): Update.
7834 (rw_pieced_value): Update.
7835 (indirect_synthetic_pointer): Update.
7836 (dwarf2_evaluate_property): Update.
7837 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7838 parameter.
7839 (locexpr_read_variable): Update.
7840 (locexpr_get_symbol_read_needs): Update.
7841 (loclist_read_variable): Update.
7842
7843 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7844
7845 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7846 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7847 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7848 parameter.
7849 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7850 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7851 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7852 parameter.
7853 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7854 sect_variable_value): Add dwarf2_per_objfile parameter.
7855 (class dwarf_evaluate_loc_desc) <dwarf_call,
7856 dwarf_variable_value>: Update.
7857 (fetch_const_value_from_synthetic_pointer): Add
7858 dwarf2_per_objfile parameter.
7859 (fetch_const_value_from_synthetic_pointer): Update.
7860 (coerced_pieced_ref): Update.
7861 (class symbol_needs_eval_context) <dwarf_call,
7862 dwarf_variable_value>: Update.
7863 (dwarf2_compile_expr_to_ax): Update.
7864
7865 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7866
7867 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7868 parameter.
7869 (dwarf2_evaluate_loc_desc_full): Update.
7870
7871 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7872
7873 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7874 parameter.
7875 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7876 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7877 dwarf2_per_objfile parameter.
7878 (decode_debug_loc_dwo_addresses): Likewise.
7879 (dwarf2_find_location_expression): Update.
7880 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7881 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7882 parameter.
7883 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7884 parameter.
7885 (locexpr_describe_location_1): Likewise.
7886 (locexpr_describe_location): Update.
7887
7888 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7889
7890 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7891 Remove.
7892 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7893 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7894 (dwarf2_compile_property_to_c): Update.
7895 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7896 use text offset from objfile.
7897 (locexpr_tracepoint_var_ref): Update.
7898 (locexpr_generate_c_location): Update.
7899 (loclist_describe_location): Update.
7900 (loclist_tracepoint_var_ref): Update.
7901 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7902 dwarf2_per_objfile parameter.
7903 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7904 use text offset from objfile.
7905 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7906
7907 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7908
7909 * dwarf2/expr.h (struct dwarf_expr_context)
7910 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7911 <offset>: Remove.
7912 <per_objfile>: New member.
7913 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7914 dwarf2_per_objfile parameter. Don't set offset, set
7915 per_objfile.
7916 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7917 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7918 a dwarf2_per_objfile object instead of an offset.
7919 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7920 constructor.
7921 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7922 to dwarf2_expr_executor constructor. Don't set offset.
7923 (dwarf2_fetch_cfa_info): Update.
7924 (struct dwarf2_frame_cache) <text_offset>: Remove.
7925 <per_objfile>: New field.
7926 (dwarf2_frame_cache): Update.
7927 (dwarf2_frame_prev_register): Update.
7928 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7929 <dwarf_evaluate_loc_desc>: Add constructor.
7930 (dwarf2_evaluate_loc_desc_full): Update.
7931 (dwarf2_locexpr_baton_eval): Update.
7932 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7933 Add constructor.
7934 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7935
7936 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7937
7938 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7939 addr_sized_int_type>: Move to dwarf2_cu.
7940 <int_type>: Move to dwarf2_per_objfile.
7941 (struct dwarf2_per_objfile) <int_type>: Move here.
7942 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7943 addr_sized_int_type>: Move here.
7944 (read_func_scope): Update.
7945 (read_array_type): Update.
7946 (read_tag_string_type): Update.
7947 (attr_to_dynamic_prop): Update.
7948 (dwarf2_per_cu_data::int_type): Rename to...
7949 (dwarf2_per_objfile::int_type): ... this.
7950 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7951 (dwarf2_cu::addr_sized_int_type): ... this.
7952 (read_subrange_type): Update.
7953 (dwarf2_per_cu_data::addr_type): Rename to...
7954 (dwarf2_cu::addr_type): ... this.
7955 (set_die_type): Update.
7956
7957 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7958
7959 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7960 data through per_cu->cu.
7961
7962 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7963
7964 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7965 dwarf2_per_cu_data parameter fo dwarf2_cu.
7966 (lookup_dwo_type_unit): Likewise.
7967 (read_cutu_die_from_dwo): Likewise.
7968 (lookup_dwo_unit): Likewise.
7969 (open_and_init_dwo_file): Likewise.
7970 (lookup_dwo_cutu): Likewise.
7971 (lookup_dwo_comp_unit): Likewise.
7972 (lookup_dwo_type_unit): Likewise.
7973 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7974 (cutu_reader::cutu_reader): Update.
7975
7976 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7977
7978 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7979 parameter.
7980 (process_full_type_unit): Likewise.
7981 (process_queue): Update.
7982
7983 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7984
7985 * dwarf2/read.c (recursively_compute_inclusions): Add
7986 dwarf2_per_objfile parameter.
7987 (compute_compunit_symtab_includes): Likewise.
7988 (process_cu_includes): Update.
7989
7990 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7991
7992 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7993 parameter.
7994 (create_type_unit_group): Update.
7995 (process_psymtab_comp_unit_reader): Update.
7996 (build_type_psymtabs_reader): Update.
7997
7998 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7999
8000 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8001 object through m_this_cu->cu.
8002
8003 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8004
8005 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8006 the info parameter.
8007 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8008
8009 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8010
8011 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8012 per_objfile parameter.
8013 (load_full_type_unit): Add per_objfile parameter.
8014 (read_signatured_type): Likewise.
8015 (load_full_comp_unit): Likewise.
8016 (load_cu): Likewise.
8017 (dw2_do_instantiate_symtab): Likewise.
8018 (dw2_get_file_names): Likewise.
8019 (dw2_map_symtabs_matching_filename): Update.
8020 (dw_expand_symtabs_matching_file_matcher): Update.
8021 (dw2_map_symbol_filenames): Update.
8022 (process_psymtab_comp_unit): Add per_objfile parameter.
8023 (build_type_psymtabs_1): Update.
8024 (process_skeletonless_type_unit): Update.
8025 (dwarf2_build_psymtabs_hard): Update.
8026 (load_partial_comp_unit): Add per_objfile parameter.
8027 (scan_partial_symbols): Update.
8028 (load_full_comp_unit): Add per_objfile parameter.
8029 (process_imported_unit_die): Update.
8030 (create_cus_hash_table): Update.
8031 (find_partial_die): Update.
8032 (dwarf2_read_addr_index): Update.
8033 (follow_die_offset): Update.
8034 (dwarf2_fetch_die_loc_sect_off): Update.
8035 (dwarf2_fetch_constant_bytes): Update.
8036 (dwarf2_fetch_die_type_sect_off): Update.
8037 (follow_die_sig_1): Update.
8038 (load_full_type_unit): Add per_objfile parameter.
8039 (read_signatured_type): Likewise.
8040
8041 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8042
8043 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8044 of objfile_name.
8045
8046 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8047
8048 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8049 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8050 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8051 field.
8052 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8053 (create_cus_from_index): Update.
8054 (dwarf2_read_gdb_index): Update.
8055 (create_cus_from_debug_names): Update.
8056 (dwarf2_read_debug_names): Update.
8057 (get_abbrev_section_for_cu): Update.
8058 (create_all_comp_units): Update.
8059 (read_attribute_value): Update.
8060 (get_debug_line_section): Update.
8061 * dwarf2/index-cache.c (index_cache::store): Update.
8062 * dwarf2/index-write.c (save_gdb_index_command): Update.
8063 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8064
8065 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8066
8067 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8068 member.
8069 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8070 dwarf2_per_cu_data::per_bfd.
8071 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8072 (create_type_unit_group): Likewise.
8073 (queue_comp_unit): Remove reference to
8074 per_cu->dwarf2_per_objfile.
8075 (maybe_queue_comp_unit): Likewise.
8076 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8077 (create_cus_hash_table): Assign new field.
8078
8079 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8080
8081 * dwarf2/read.c: Replace
8082 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8083 dwarf2_cu->per_objfile throughout.
8084
8085 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8086
8087 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8088 parameter, don't use per_cu->dwarf2_per_objfile.
8089 (dw2_instantiate_symtab): Likewise.
8090 (dw2_find_last_source_symtab): Update.
8091 (dw2_map_expand_apply): Update.
8092 (dw2_lookup_symbol): Update.
8093 (dw2_expand_symtabs_for_function): Update.
8094 (dw2_expand_all_symtabs): Update.
8095 (dw2_expand_symtabs_with_fullname): Update.
8096 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8097 don't use per_cu->dwarf2_per_objfile.
8098 (dw2_expand_marked_cus): Update.
8099 (dw2_find_pc_sect_compunit_symtab): Update.
8100 (dw2_debug_names_lookup_symbol): Update.
8101 (dw2_debug_names_expand_symtabs_for_function): Update.
8102 (dw2_debug_names_map_matching_symbols): Update.
8103 (dwarf2_psymtab::expand_psymtab): Update.
8104
8105 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8106
8107 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8108 <per_objfile>: New member.
8109 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8110 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8111 call to dwarf2_cu.
8112 (cutu_reader::cutu_reader): Update.
8113 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8114
8115 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8116
8117 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8118 struct dwarf2_per_objfile.
8119 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8120 dwarf2_per_bfd.
8121 * dwarf2/read.c (set_die_type): Update.
8122 (get_die_type_at_offset): Update.
8123
8124 2020-05-27 Tom Tromey <tom@tromey.com>
8125 Simon Marchi <simon.marchi@efficios.com>
8126
8127 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8128 method.
8129 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8130 get_symtab, set_symtab>: New methods.
8131 <m_symtabs>: New field.
8132 (struct dwarf2_psymtab): Derive from partial_symtab.
8133 <readin_p, get_compunit_symtab>: Declare methods.
8134 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8135 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8136 New methods.
8137 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8138 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8139 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8140 (dw2_symtab_iter_next, dw2_print_stats)
8141 (dw2_expand_symtabs_with_fullname)
8142 (dw2_expand_symtabs_matching_one)
8143 (dw_expand_symtabs_matching_file_matcher)
8144 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8145 (dw2_debug_names_iterator::next)
8146 (dw2_debug_names_map_matching_symbols)
8147 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8148 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8149 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8150 New methods.
8151 (get_compunit_symtab, process_full_comp_unit)
8152 (process_full_type_unit): Update.
8153 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8154
8155 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8156
8157 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8158 then introduce a new dwarf2_per_objfile type.
8159 <read_line_string>: Move to the new dwarf2_per_objfile type.
8160 <objfile>: Likewise.
8161 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8162 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8163 dwarf2_per_objfile->per_bfd.
8164 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8165 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8166 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8167 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8168 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8169 (dwarf2_per_objfile::locate_sections): Rename to...
8170 (dwarf2_per_bfd::locate_sections): ... this.
8171 (dwarf2_per_objfile::get_cutu): Rename to...
8172 (dwarf2_per_bfd::get_cutu): ... this.
8173 (dwarf2_per_objfile::get_cu): Rename to...
8174 (dwarf2_per_bfd::get_cu): ... this.
8175 (dwarf2_per_objfile::get_tu): Rename to...
8176 (dwarf2_per_bfd::get_tu): ... this.
8177 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8178 (dwarf2_per_bfd::allocate_per_cu): ... this.
8179 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8180 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8181 (get_gdb_index_contents_ftype): Change parameter from
8182 dwarf2_per_objfile to dwarf2_per_bfd.
8183 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8184 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8185
8186 2020-05-27 Tom Tromey <tom@tromey.com>
8187 Simon Marchi <simon.marchi@efficios.com>
8188
8189 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8190 (allocate_piece_closure): Set "per_objfile" member.
8191 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8192 (locexpr_describe_location, loclist_describe_location): Use new
8193 member.
8194 * dwarf2/read.c (read_call_site_scope)
8195 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8196 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8197 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8198 handle_data_member_location): Set per_objfile member.
8199 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8200 member.
8201 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8202
8203 2020-05-27 Tom Tromey <tom@tromey.com>
8204
8205 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8206 allocate_signatured_type>: Declare new methods.
8207 <m_num_psymtabs>: New member.
8208 (struct dwarf2_per_cu_data) <index>: New member.
8209 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8210 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8211 (create_cu_from_index_list): Use allocate_per_cu.
8212 (create_signatured_type_table_from_index)
8213 (create_signatured_type_table_from_debug_names)
8214 (create_debug_type_hash_table, add_type_unit)
8215 (read_comp_units_from_section): Use allocate_signatured_type.
8216
8217 2020-05-27 Tom Tromey <tom@tromey.com>
8218
8219 * psymtab.c (partial_map_expand_apply)
8220 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8221 (psym_lookup_global_symbol_language)
8222 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8223 (psym_print_stats, psym_expand_symtabs_for_function)
8224 (psym_map_symbol_filenames, psym_map_matching_symbols)
8225 (psym_expand_symtabs_matching)
8226 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8227 (maintenance_check_psymtabs): Update.
8228 * psympriv.h (struct partial_symtab) <readin_p,
8229 get_compunit_symtab>: Add objfile parameter.
8230 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8231 Likewise.
8232 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8233 get_compunit_symtab>: Likewise.
8234 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8235
8236 2020-05-27 Tom Tromey <tom@tromey.com>
8237
8238 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8239 member.
8240 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8241 (create_cu_from_index_list)
8242 (create_signatured_type_table_from_index)
8243 (create_signatured_type_table_from_debug_names)
8244 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8245 (dwarf2_create_include_psymtab)
8246 (create_debug_type_hash_table, add_type_unit)
8247 (create_type_unit_group, read_comp_units_from_section)
8248 (dwarf2_compute_name, create_cus_hash_table)
8249 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8250 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8251 obstack.
8252 (dw2_get_real_path): Likewise. Change argument to
8253 dwarf2_per_objfile.
8254
8255 2020-05-27 Luis Machado <luis.machado@linaro.org>
8256
8257 PR tdep/26000
8258 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8259 for ldrd (immediate).
8260
8261 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8262
8263 * command.h: Add comment giving the name of class_tui.
8264 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8265 create the fake command for the help for class_tui.
8266
8267 2020-05-26 Tom Tromey <tromey@adacore.com>
8268
8269 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8270 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8271 (val_atr): New function.
8272 (value_val_atr): Use it.
8273 * ada-valprint.c (print_optional_low_bound): Change low bound
8274 handling for enums.
8275 (val_print_packed_array_elements): Don't call discrete_position.
8276 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8277 discrete_position for enum types.
8278 * language.c (default_print_array_index): Change type.
8279 * language.h (struct language_defn) <la_print_array_index>: Add
8280 index_type parameter, change type of index_value.
8281 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8282 (default_print_array_index): Update.
8283 * valprint.c (maybe_print_array_index): Don't call
8284 value_from_longest. Update.
8285 (value_print_array_elements): Don't call discrete_position.
8286
8287 2020-05-26 Tom Tromey <tromey@adacore.com>
8288
8289 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8290 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8291
8292 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8293
8294 PR gdb/13519
8295 * avr-tdep.c (avr_integer_to_address): Return data or code
8296 address accordingly to the second 'type' argument of the
8297 function.
8298
8299 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8300
8301 * infcmd.c, inferior.h: (construct_inferior_arguments):
8302 Moved function from here to gdbsupport/common-inferior.{h,cc}
8303
8304 2020-05-23 Tom Tromey <tom@tromey.com>
8305
8306 Revert commit eca1f90c:
8307 * NEWS: Remove entry for completion styling.
8308 * completer.c (_rl_completion_prefix_display_length): Move
8309 declaration later.
8310 (gdb_fnprint): Revert.
8311 (gdb_display_match_list_1): Likewise.
8312 * cli/cli-style.c (completion_prefix_style)
8313 (completion_difference_style, completion_suffix_style): Remove.
8314 (_initialize_cli_style): Revert.
8315 * cli/cli-style.h (completion_prefix_style)
8316 (completion_difference_style, completion_suffix_style): Don't
8317 declare.
8318
8319 2020-05-24 Pedro Alves <palves@redhat.com>
8320
8321 * symtab.c (completion_list_add_name): Return boolean indication
8322 of whether the symbol matched.
8323 (completion_list_add_symbol): Don't try to remove C++ aliases if
8324 the symbol didn't match in the first place.
8325 * symtab.h (completion_list_add_name): Return bool.
8326
8327 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8328
8329 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8330 type::field.
8331
8332 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8333
8334 GDB 9.2 released.
8335
8336 2020-05-23 Tom Tromey <tom@tromey.com>
8337
8338 * NEWS: Add entry for completion styling.
8339 * completer.c (_rl_completion_prefix_display_length): Move
8340 declaration earlier.
8341 (gdb_fnprint): Use completion_style.
8342 (gdb_display_match_list_1): Likewise.
8343 * cli/cli-style.c (completion_prefix_style)
8344 (completion_difference_style, completion_suffix_style): New
8345 globals.
8346 (_initialize_cli_style): Register new globals.
8347 * cli/cli-style.h (completion_prefix_style)
8348 (completion_difference_style, completion_suffix_style): Declare.
8349
8350 2020-05-23 Pedro Alves <palves@redhat.com>
8351
8352 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8353 (parse_escape): Use ISDIGIT instead of isdigit.
8354 (puts_debug): Use gdb_isprint instead of isprint.
8355 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8356 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8357 ISSPACE instead of isspace.
8358 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8359 instead of isspace.
8360 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8361 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8362 instead of isxdigit and ISDIGIT instead of isdigit.
8363
8364 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8365
8366 * gdbtypes.h (struct type) <field>: New method.
8367 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8368 or type::field.
8369
8370 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8371
8372 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8373 (TYPE_FIELDS): Use type::fields. Change all call sites that
8374 modify the propery to use type::set_fields instead.
8375
8376 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8377
8378 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8379 type::num_fields instead.
8380
8381 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8382
8383 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8384 methods.
8385 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8386 that modify the number of fields to use type::set_num_fields
8387 instead.
8388
8389 2020-05-22 Tom Tromey <tromey@adacore.com>
8390
8391 * compile/compile-object-load.h (munmap_list_free): Don't
8392 declare.
8393
8394 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8395
8396 * annotate.c (annotate_source_line): Update return type, add call
8397 to update current symtab and line.
8398 * annotate.h (annotate_source_line): Update return type, and
8399 extend header comment.
8400 * source.c (info_line_command): Check annotation_level before
8401 calling annotate_source_line.
8402 * stack.c (print_frame_info): If calling annotate_source_line
8403 returns true, then don't print any other source line information.
8404
8405 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8406
8407 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8408
8409 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8410
8411 * coffread.c (patch_type): Remove NULL check before xfree.
8412 * corefile.c (set_gnutarget): Likewise.
8413 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8414 * exec.c (build_section_table): Likewise.
8415 * remote.c (remote_target::pass_signals): Likewise.
8416 * utils.c (n_spaces): Likewise.
8417 * cli/cli-script.c (document_command): Likewise.
8418 * i386-windows-tdep.c (core_process_module_section): Likewise.
8419 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8420
8421 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8422
8423 * symfile.c (reread_symbols): Clear objfile's section_offsets
8424 vector and section indices, re-compute them by calling
8425 sym_offsets.
8426
8427 2020-05-20 Tom Tromey <tromey@adacore.com>
8428
8429 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8430 (desc_one_bound, desc_index_type): Compute field name.
8431
8432 2020-05-20 Tom de Vries <tdevries@suse.de>
8433
8434 PR symtab/25833
8435 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8436
8437 2020-05-20 Alan Modra <amodra@gmail.com>
8438
8439 PR 25993
8440 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8441 bfd_set_filename.
8442 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8443 passed to bfd_set_filename.
8444 * symfile-mem.c (add_vsyscall_page): Likewise for string
8445 passed to symbol_file_add_from_memory.
8446 (symbol_file_add_from_memory): Make name param a const char* and
8447 don't strdup.
8448
8449 2020-05-20 Alan Modra <amodra@gmail.com>
8450
8451 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8452 rather than accessing bfd->filename directly.
8453 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8454 and use bfd_section_name.
8455 * dwarf2/frame.c (decode_frame_entry): Likewise.
8456 * exec.c (exec_set_section_address): Likewise.
8457 * solib-aix.c (solib_aix_bfd_open): Likewise.
8458 * stap-probe.c (get_stap_base_address): Likewise.
8459 * symfile.c (reread_symbols): Likewise.
8460
8461 2020-05-19 Tom Tromey <tromey@adacore.com>
8462
8463 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8464
8465 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8466
8467 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8468
8469 2020-05-19 Pedro Alves <palves@redhat.com>
8470
8471 * NEWS (set exec-file-mismatch): Adjust entry.
8472 * exec.c: Include "build-id.h".
8473 (validate_exec_file): Try to match build IDs instead of filenames.
8474 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8475 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8476 and pass down 'warn_if_slow'.
8477 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8478 gdb_bfd_open_closure to pass it down.
8479 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8480
8481 2020-05-19 Pedro Alves <palves@redhat.com>
8482
8483 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8484 * target.c (target_fileio_open_1): Rename to target_fileio_open
8485 and make extern. Use bool.
8486 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8487 (target_fileio_read_alloc_1): Adjust.
8488 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8489 (target_fileio_open_warn_if_slow): Delete declaration.
8490
8491 2020-05-19 Pedro Alves <palves@redhat.com>
8492
8493 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8494 Adjust all callers.
8495
8496 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8497
8498 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8499 whether disp is negative.
8500
8501 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8502
8503 * symfile.h (struct symfile_segment_data)
8504 <~symfile_segment_data>: Remove.
8505 <segment_info>: Change to std::vector.
8506 * symfile.c (default_symfile_segments): Update.
8507 * elfread.c (elf_symfile_segments): Update.
8508
8509 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8510
8511 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8512 <segments>: New.
8513 <segment_bases, segment_sizes>: Remove.
8514 * symfile.c (default_symfile_segments): Update.
8515 * elfread.c (elf_symfile_segments): Update.
8516 * remote.c (remote_target::get_offsets): Update.
8517 * solib-target.c (solib_target_relocate_section_addresses):
8518 Update.
8519
8520 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8521
8522 * symfile.h (struct symfile_segment_data): Initialize fields.
8523 <~symfile_segment_data>: Add.
8524 (symfile_segment_data_up): New.
8525 (struct sym_fns) <sym_segments>: Return a
8526 symfile_segment_data_up.
8527 (default_symfile_segments): Return a symfile_segment_data_up.
8528 (free_symfile_segment_data): Remove.
8529 (get_symfile_segment_data): Return a symfile_segment_data_up.
8530 * symfile.c (default_symfile_segments): Likewise.
8531 (get_symfile_segment_data): Likewise.
8532 (free_symfile_segment_data): Remove.
8533 (symfile_find_segment_sections): Update.
8534 * elfread.c (elf_symfile_segments): Return a
8535 symfile_segment_data_up.
8536 * remote.c (remote_target::get_offsets): Update.
8537 * solib-target.c (solib_target_relocate_section_addresses):
8538 Update.
8539 * symfile-debug.c (debug_sym_segments): Return a
8540 symfile_segment_data_up.
8541
8542 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8543
8544 PR build/25981
8545 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8546 Hardcode register numbers.
8547
8548 PR build/25981
8549 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8550 procfs_find_LDT_entry): Remove.
8551 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8552 procfs_find_LDT_entry): Remove.
8553 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8554 Remove.
8555
8556 2020-05-17 Pedro Alves <palves@redhat.com>
8557 Andrew Burgess <andrew.burgess@embecosm.com>
8558 Keno Fischer <keno@juliacomputing.com>
8559
8560 PR gdb/25741
8561 * breakpoint.c (build_target_condition_list): Update comments.
8562 (build_target_command_list): Update comments and skip matching
8563 locations.
8564 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8565 a separate function. Simplify "set breakpoint auto-hw off"
8566 handling.
8567 (insert_breakpoints): Update comment.
8568 (tracepoint_locations_match): New parameter. For breakpoints,
8569 compare location types too, if the caller wants to.
8570 (handle_automatic_hardware_breakpoints): New functions.
8571 (bp_location_is_less_than): Also sort by location type and
8572 hardware breakpoint length.
8573 (update_global_location_list): Handle "set breakpoint auto-hw on"
8574 here.
8575 (update_breakpoint_locations): Ask breakpoint_locations_match to
8576 ignore location types.
8577
8578 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8579
8580 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8581 type::name instead.
8582
8583 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8584
8585 * gdbtypes.h (struct type) <name, set_name>: New methods.
8586 (TYPE_CODE): Use type::name. Change all call sites used to set
8587 the name to use type::set_name instead.
8588
8589 2020-05-16 Tom Tromey <tom@tromey.com>
8590
8591 * top.c (quit_force): Update.
8592 * infrun.c (handle_no_resumed): Update.
8593 * top.h (all_uis): New function.
8594 (ALL_UIS): Remove.
8595
8596 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8597
8598 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8599
8600 2020-05-16 Pedro Alves <palves@redhat.com>
8601
8602 * ia64-linux-nat.c
8603 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8604 Declare method.
8605 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8606
8607 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8608
8609 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8610 (sparc64_adi_info): Likewise.
8611
8612 2020-05-15 Tom Tromey <tom@tromey.com>
8613
8614 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8615 block_objfile.
8616 (lookup_objfile_from_block): Remove.
8617 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8618 (lookup_global_symbol): Use block_objfile.
8619 * symtab.h (lookup_objfile_from_block): Don't declare.
8620 * printcmd.c (clear_dangling_display_expressions): Use
8621 block_objfile.
8622 * parse.c (operator_check_standard): Use block_objfile.
8623
8624 2020-05-15 Tom Tromey <tom@tromey.com>
8625
8626 * language.c (language_alloc_type_symbol): Set
8627 SYMBOL_SECTION.
8628 * symtab.c (initialize_objfile_symbol): Remove.
8629 (allocate_symbol): Remove.
8630 (allocate_template_symbol): Remove.
8631 * dwarf2/read.c (fixup_go_packaging): Use "new".
8632 (new_symbol): Use "new".
8633 (read_variable): Don't call initialize_objfile_symbol. Use
8634 "new".
8635 (read_func_scope): Use "new".
8636 * xcoffread.c (process_xcoff_symbol): Don't call
8637 initialize_objfile_symbol.
8638 (SYMBOL_DUP): Remove.
8639 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8640 "new".
8641 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8642 (allocate_template_symbol): Don't declare.
8643 (struct symbol): Add copy constructor. Change defaults.
8644 * jit.c (finalize_symtab): Use "new".
8645 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8646 Use "new".
8647 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8648 (common_block_end): Use "new".
8649 * mdebugread.c (parse_symbol): Use "new".
8650 (new_symbol): Likewise.
8651
8652 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8653
8654 * NEWS: Mention changes to help and apropos.
8655
8656 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8657
8658 * command.h (enum command_class): Improve comments, document
8659 that class_alias is for user-defined aliases, give the class
8660 name for each class, remove unused class_xdb.
8661 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8662 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8663 by a precise class.
8664 * infcmd.c (_initialize_infcmd): Likewise.
8665 * reverse.c (_initialize_reverse): Likewise.
8666 * stack.c (_initialize_stack): Likewise.
8667 * symfile.c (_initialize_symfile): Likewise.
8668 * tracepoint.c (_initialize_tracepoint): Likewise.
8669
8670 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8671
8672 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8673 when their aliased command is traversed.
8674 (help_cmd): Add fput_command_names_styled call to
8675 output command name and aliases when command has an alias.
8676
8677 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8678
8679 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8680 * cli/cli-decode.c (help_cmd_list): Declare as static,
8681 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8682 a command together with the command.
8683 (fput_command_name_styled, fput_command_names_styled): New functions.
8684 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8685 fput_command_name_styled.
8686 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8687 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8688
8689 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8690
8691 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8692 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8693 * command.h (cmd_show_list): Likewise.
8694 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8695 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8696
8697 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8698
8699 * unittests/command-def-selftests.c (traverse_command_structure):
8700 Verify all commands of a list have the same prefix command and
8701 that only the top cmdlist commands have a null prefix.
8702
8703 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8704
8705 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8706 as prefix, not one of its aliases.
8707 (set_cmd_prefix): Remove.
8708 (do_add_cmd): Centralize the setting of the prefix of a command, when
8709 command is defined after its full chain of prefix commands.
8710 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8711 (add_setshow_cmd_full): Likewise.
8712 (update_prefix_field_of_prefixed_commands): New function.
8713 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8714 update_prefix_field_of_prefixed_commands.
8715 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8716 addresses of remote_set_cmdlist and remote_show_cmdlist given
8717 as argument, not the address of an argument.
8718 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8719 * gdb/remote.c (_initialize_remote): Likewise.
8720
8721 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8722
8723 * cli/cli-cmds.c (alias_command): Check for an existing alias
8724 using lookup_cmd_composition, as valid_command_p is too strict
8725 and forbids aliases that are the prefix of an existing alias
8726 or command.
8727 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8728 command is properly recognised as a valid command.
8729
8730 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8731
8732 * unittests/help-doc-selftests.c: Rename to
8733 unittests/command-def-selftests.c
8734 * unittests/command-def-selftests.c (help_doc_tests): Update some
8735 comments.
8736 (command_structure_tests, traverse_command_structure): New namespace
8737 and function.
8738 (command_structure_invariants_tests): New function.
8739 (_initialize_command_def_selftests) Renamed from
8740 _initialize_help_doc_selftests, register command_structure_invariants
8741 selftest.
8742
8743 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8744
8745 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8746 an alias of 'show'.
8747
8748 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8749
8750 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8751 ada_is_fixed_point_type. Update all callers.
8752 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8753 all callers.
8754 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8755 Update all callers.
8756 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8757 print_fixed_point_type. Update all callers.
8758 * ada-valprint.c (ada_value_print_num): Replace call to
8759 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8760
8761 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8762
8763 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8764 processors.
8765 (cpu_supports_bts): Add CV_AMD case.
8766
8767 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8768 Simon Marchi <simon.marchi@efficios.com>
8769
8770 * infrun.c (stop_all_threads): Collect multiple wait events at
8771 each pass.
8772
8773 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8774
8775 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8776 type::code instead.
8777
8778 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8779
8780 * gdbtypes.h (struct type) <code, set_code>: New methods.
8781 (TYPE_CODE): Use type::code. Change all call sites used to set
8782 the code to use type::set_code instead.
8783
8784 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8785 Tom de Vries <tdevries@suse.de>
8786 Pedro Alves <palves@redhat.com>
8787
8788 PR threads/25478
8789 * infrun.c (stop_all_threads): Do NOT ignore
8790 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8791 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8792 received.
8793 (handle_no_resumed): Remove code handling a live inferior with no
8794 threads.
8795 * remote.c (has_single_non_exited_thread): New.
8796 (remote_target::update_thread_list): Do not delete a thread if is
8797 the last thread of the process.
8798 * thread.c (thread_select): Call delete_exited_threads instead of
8799 prune_threads.
8800
8801 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8802
8803 * infrun.c (stop_all_threads): Enable/disable thread events of all
8804 targets. Move a debug message denoting the end of the function
8805 into the SCOPED_EXIT block.
8806
8807 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8808
8809 * process-stratum-target.h: Include <set>.
8810 (all_non_exited_process_targets, switch_to_target_no_thread): New
8811 function declarations.
8812 * process-stratum-target.c (all_non_exited_process_targets)
8813 (switch_to_target_no_thread): New function implementations.
8814
8815 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8816
8817 * infrun.c (handle_inferior_event): Extract out a piece of code
8818 into...
8819 (mark_non_executing_threads): ...this new function.
8820
8821 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8822
8823 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8824 use.
8825
8826 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8827
8828 * regcache.c (regcache_read_pc_protected): New function
8829 implementation that returns 0 if the PC cannot read via
8830 'regcache_read_pc'.
8831 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8832 instead of 'regcache_read_pc'.
8833 (keep_going_pass_signal): Ditto.
8834
8835 2020-05-13 Tom Tromey <tromey@adacore.com>
8836
8837 * ada-lang.c (align_value): Remove.
8838 (ada_template_to_fixed_record_type_1): Use align_up.
8839
8840 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8841
8842 * async-event.c: Update the copyright year.
8843 * async-event.h: Update the copyright year.
8844
8845 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8846
8847 * objfiles.h (is_addr_in_objfile,
8848 shared_objfile_contains_address_p): Return bool.
8849 * objfile.c (is_addr_in_objfile,
8850 shared_objfile_contains_address_p): Return bool.
8851
8852 2020-05-11 Tom Tromey <tromey@adacore.com>
8853
8854 * cli/cli-cmds.c (info_command): Restore.
8855 (_initialize_cli_cmds): Use add_prefix_command for "info".
8856 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8857
8858 2020-05-11 Tom Tromey <tromey@adacore.com>
8859
8860 * ada-lang.c (ada_value_primitive_field): Now public.
8861 * ada-lang.h (ada_value_primitive_field): Declare.
8862 * ada-valprint.c (print_field_values): Use
8863 ada_value_primitive_field for wrapper fields.
8864
8865 2020-05-11 Tom de Vries <tdevries@suse.de>
8866
8867 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8868 MODULE_DOMAIN.
8869
8870 2020-05-11 Tom de Vries <tdevries@suse.de>
8871
8872 PR symtab/25941
8873 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8874 with length 0, if not gdb-produced.
8875 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8876
8877 2020-05-09 Tom de Vries <tdevries@suse.de>
8878
8879 PR gdb/25955
8880 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8881 calculation.
8882
8883 2020-05-09 Tom Tromey <tom@tromey.com>
8884
8885 * top.c (server_command): Now bool.
8886 * top.h (server_command): Now bool.
8887
8888 2020-05-08 Tom Tromey <tromey@adacore.com>
8889
8890 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8891 already being processed.
8892
8893 2020-05-08 Tom Tromey <tom@tromey.com>
8894
8895 * printcmd.c (struct display) <next>: Remove.
8896 <display>: New constructor.
8897 <exp_string>: Now a std::string.
8898 <enabled_p>: Now a bool.
8899 (display_number): Move definition earlier.
8900 (displays): Rename from display_chain. Now a std::vector.
8901 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8902 (display_command): Update.
8903 (do_one_display, disable_display)
8904 (enable_disable_display_command, do_enable_disable_display):
8905 Update.
8906 (free_display): Remove.
8907 (clear_displays): Rewrite.
8908 (delete_display): Update.
8909 (map_display_numbers): Use function_view. Remove "data"
8910 parameter. Update.
8911 (do_delete_display): Remove.
8912 (undisplay_command): Update.
8913 (do_one_display, do_displays, disable_display)
8914 (info_display_command): Update.
8915 (do_enable_disable_display): Remove.
8916 (enable_disable_display_command)
8917 (clear_dangling_display_expressions): Update.
8918
8919 2020-05-08 Tom Tromey <tom@tromey.com>
8920
8921 * symtab.c (set_symbol_cache_size)
8922 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8923 (maintenance_print_symbol_cache_statistics): Update.
8924 * symmisc.c (print_symbol_bcache_statistics)
8925 (print_objfile_statistics, maintenance_print_objfiles)
8926 (maintenance_info_symtabs, maintenance_check_symtabs)
8927 (maintenance_expand_symtabs, maintenance_info_line_tables):
8928 Update.
8929 * symfile-debug.c (set_debug_symfile): Update.
8930 * source.c (forget_cached_source_info): Update.
8931 * python/python.c (gdbpy_progspaces): Update.
8932 * psymtab.c (maintenance_info_psymtabs): Update.
8933 * probe.c (parse_probes): Update.
8934 * linespec.c (iterate_over_all_matching_symtabs)
8935 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8936 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8937 * exec.c (exec_target::close): Update.
8938 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8939 * breakpoint.c (print_one_breakpoint_location)
8940 (create_longjmp_master_breakpoint)
8941 (create_std_terminate_master_breakpoint): Update.
8942 * progspace.c (program_spaces): Now a std::vector.
8943 (maybe_new_address_space): Update.
8944 (add_program_space): Remove.
8945 (program_space::program_space): Update.
8946 (remove_program_space): Update.
8947 (number_of_program_spaces): Remove.
8948 (print_program_space, update_address_spaces): Update.
8949 * progspace.h (program_spaces): Change type.
8950 (ALL_PSPACES): Remove.
8951 (number_of_program_spaces): Don't declare.
8952 (struct program_space) <next>: Remove.
8953
8954 2020-05-08 Tom Tromey <tom@tromey.com>
8955
8956 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8957 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8958 (enable_break): Update.
8959 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8960 (frv_fdpic_find_canonical_descriptor): Update.
8961 (frv_fetch_objfile_link_map): Update.
8962 * progspace.c (program_space::free_all_objfiles): Update.
8963 (program_space::solibs): New method.
8964 * progspace.h (struct program_space) <solibs>: New method.
8965 * solist.h (master_so_list): Don't declare.
8966 (ALL_SO_LIBS): Remove.
8967 * solib.h (so_list_head): Remove.
8968 (update_solib_list): Update comment.
8969 * solib.c (master_so_list): Remove.
8970 (solib_used, update_solib_list, solib_add)
8971 (info_sharedlibrary_command, clear_solib)
8972 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8973
8974 2020-05-08 Tom Tromey <tom@tromey.com>
8975
8976 * extension.c (extension_languages): Now a std::array.
8977 (ALL_EXTENSION_LANGUAGES): Remove.
8978 (get_ext_lang_defn, get_ext_lang_of_file)
8979 (eval_ext_lang_from_control_command): Update.
8980 (finish_ext_lang_initialization)
8981 (auto_load_ext_lang_scripts_for_objfile)
8982 (ext_lang_type_printers::ext_lang_type_printers)
8983 (apply_ext_lang_type_printers)
8984 (ext_lang_type_printers::~ext_lang_type_printers)
8985 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8986 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8987 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8988 (get_matching_xmethod_workers, ext_lang_colorize)
8989 (ext_lang_before_prompt): Update.
8990 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8991
8992 2020-05-08 Tom Tromey <tom@tromey.com>
8993
8994 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8995 overload.
8996 <swap_string, m_string>: Remove.
8997 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8998 Update.
8999 * stabsread.c (define_symbol, read_type): Update.
9000 * linespec.c (find_linespec_symbols): Update.
9001 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9002 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9003 * dbxread.c (read_dbx_symtab): Update.
9004 * cp-support.h (cp_canonicalize_string_full)
9005 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9006 Return unique_xmalloc_ptr.
9007 * cp-support.c (inspect_type): Update.
9008 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9009 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9010 Likewise.
9011 * c-typeprint.c (print_name_maybe_canonical): Update.
9012 * break-catch-throw.c (check_status_exception_catchpoint):
9013 Update.
9014
9015 2020-05-08 Tom de Vries <tdevries@suse.de>
9016
9017 * infrun.c (follow_fork): Copy current_line and current_symtab to
9018 child thread.
9019
9020 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9021
9022 * async-event.c (struct async_signal_handler, struct
9023 async_event_handler): Reformat, remove typedef.
9024
9025 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9026
9027 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9028 access thistype->main_type->dyn_prop_list directly.
9029
9030 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9031
9032 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9033 (remove_dyn_prop): Remove. Update all users to use
9034 type::remove_dyn_prop.
9035 * gdbtypes.c (remove_dyn_prop): Rename to...
9036 (type::remove_dyn_prop): ... this.
9037
9038 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9039
9040 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9041 (add_dyn_prop): Remove. Update all users to use
9042 type::add_dyn_prop.
9043 * gdbtypes.c (add_dyn_prop): Rename to...
9044 (type::add_dyn_prop): ... this.
9045
9046 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9047
9048 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9049 (get_dyn_prop): Remove. Update all users to use
9050 type::dyn_prop.
9051 * gdbtypes.c (get_dyn_prop): Rename to...
9052 (type::dyn_prop): ... this.
9053
9054 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9055
9056 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9057
9058 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9059
9060 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9061 instruction, skip it if it's there.
9062
9063 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9064
9065 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9066
9067 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9068
9069 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9070 * gdbtypes.c (recursive_dump_type): Remove use of
9071 TYPE_INCOMPLETE.
9072
9073 2020-05-03 Tom Tromey <tom@tromey.com>
9074
9075 * breakpoint.c (catch_command, tcatch_command): Remove.
9076 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9077 add_show_prefix_cmd.
9078 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9079 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9080 Remove.
9081 (add_internal_problem_command): Use add_basic_prefix_cmd,
9082 add_show_prefix_cmd.
9083 * mips-tdep.c (set_mipsfpu_command): Remove.
9084 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9085 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9086 (_initialize_index_cache): Use add_basic_prefix_cmd.
9087 * memattr.c (dummy_cmd): Remove.
9088 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9089 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9090 (_initialize_tui_win): Use add_basic_prefix_cmd,
9091 add_show_prefix_cmd.
9092 * cli/cli-logging.c (set_logging_command): Remove.
9093 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9094 add_show_prefix_cmd.
9095 (show_logging_command): Remove.
9096 * target.c (target_command): Remove.
9097 (add_target): Use add_basic_prefix_cmd.
9098
9099 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9100
9101 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9102
9103 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9104
9105 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9106 info_command.
9107
9108 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9109
9110 * nbsd-nat.c (nbsd_enable_proc_events)
9111 (nbsd_nat_target::post_startup_inferior): Add.
9112 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9113 (nbsd_nat_target::update_thread_list): Rewrite.
9114 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9115 "PTRACE_LWP_CREATE".
9116 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9117
9118 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9119
9120 * stack.c (_initialize_stack): Remove duplicated creation
9121 of "frame" command and "f" alias.
9122
9123 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9124
9125 PR gdb/18706
9126 * gdbtypes.c (check_typedef): Calculate size of array of
9127 stubbed type.
9128
9129 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9130
9131 PR gdb/15559
9132 * i386-tdep.c (i386_push_dummy_call): Call
9133 i386_thiscall_push_dummy_call.
9134 (i386_thiscall_push_dummy_call): New function.
9135 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9136 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9137 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9138
9139 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9140
9141 * gdbarch.sh (do_read): Add shellcheck disable directive for
9142 warning SC2162.
9143
9144 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9145
9146 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9147 "referenced but not assigned" warning.
9148
9149 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9150
9151 * gdbarch.sh: Remove code that sets fallbackdefault.
9152
9153 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9154
9155 * gdbarch.sh: Use shell operators && and || instead of
9156 -a and -o.
9157
9158 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9159
9160 * gdbarch.sh: Use $(...) instead of `...`.
9161
9162 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9163
9164 * gdbarch.sh: Use double quotes around variables.
9165
9166 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9167
9168 * gdbarch.sh: Use %s with printf, instead of variables in the
9169 format string.
9170
9171 2020-04-29 Tom Tromey <tromey@adacore.com>
9172
9173 PR ada/25875:
9174 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9175 type fields here.
9176 (read_enumeration_type): Call
9177 update_enumeration_type_from_children later. Update comments.
9178 (process_enumeration_scope): Don't create type fields.
9179
9180 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9181
9182 * nbsd-tdep.c: Include "xml-syscall.h".
9183 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9184
9185 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9186
9187 * nbsd-nat.c: Include "sys/wait.h".
9188 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9189 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9190 (nbsd_nat_target::remove_exec_catchpoint)
9191 (nbsd_nat_target::set_syscall_catchpoint): Add.
9192 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9193 (nbsd_nat_target::insert_exec_catchpoint)
9194 (nbsd_nat_target::remove_exec_catchpoint)
9195 (nbsd_nat_target::set_syscall_catchpoint): Add.
9196 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9197 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9198 `nbsd_get_syscall_number'.
9199
9200 2020-04-29 Tom Tromey <tom@tromey.com>
9201
9202 * stack.c (print_block_frame_labels): Remove.
9203
9204 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9205
9206 PR gdb/17320
9207 * ada-valprint.c (val_print_packed_array_elements): Move array
9208 end bracket to new line.
9209 (ada_val_print_string): Remove extra spaces before first array
9210 element.
9211 * c-valprint.c (c_value_print_array): Likewise.
9212 * m2-valprint.c (m2_print_array_contents): Likewise.
9213 (m2_value_print_inner): Likewise.
9214 * p-valprint.c (pascal_value_print_inner): Likewise.
9215 * valprint.c (generic_val_print_array): Likewise.
9216 (value_print_array_elements): Move first array element and array
9217 end bracket to new line.
9218
9219 2020-04-29 Tom de Vries <tdevries@suse.de>
9220
9221 PR symtab/25889
9222 * linespec.c (find_method): Fix ix calculation.
9223
9224 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9225
9226 * syscalls/update-netbsd.sh: New file.
9227 * syscalls/netbsd.xml: Regenerate.
9228 * data-directory/Makefile.in: Register `netbsd.xml' in
9229 `SYSCALLS_FILES'.
9230
9231 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9232
9233 * syscalls/update-freebsd.sh: Add double quotes.
9234
9235 2020-04-28 Tom Tromey <tom@tromey.com>
9236
9237 * NEWS: Update.
9238 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9239 (cmdpy_init): Allow class_tui.
9240
9241 2020-04-28 Mark Williams <mark@myosotissp.com>
9242
9243 PR gdb/24480
9244 * dwarf2read.c: Add missing assingments to list_in_scope when
9245 start_symtab was already called.
9246
9247 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9248
9249 PR gdb/25881
9250 * dwarf2/read.c (offset_map_type): Use
9251 gdb:hash_enum<sect_offset> as hash function.
9252
9253 2020-04-28 Tom de Vries <tdevries@suse.de>
9254
9255 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9256 with DW_AT_signature.
9257
9258 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9259
9260 * configure.ac: Remove check for fs_base/gs_base in
9261 user_regs_struct.
9262 * configure: Re-generate.
9263 * config.in: Re-generate.
9264 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9265 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9266 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9267
9268 2020-04-27 Luis Machado <luis.machado@linaro.org>
9269
9270 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9271 problematic inline frame unwinding situation.
9272 * frame.c (frame_id_computed_p): New function.
9273 * frame.h (frame_id_computed_p): New prototype.
9274
9275 2020-04-26 Tom Tromey <tom@tromey.com>
9276
9277 * command.h (enum command_class) <class_pseudo>: Remove.
9278
9279 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9280
9281 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9282 and whitespace.
9283
9284 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9285
9286 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9287 `PT_GET_PROCESS_STATE' block.
9288
9289 2020-04-24 Tom Tromey <tom@tromey.com>
9290
9291 * symtab.h (symbol_get_demangled_name): Don't declare.
9292 * symtab.c (symbol_get_demangled_name): Remove.
9293 (general_symbol_info::natural_name)
9294 (general_symbol_info::demangled_name): Update.
9295
9296 2020-04-24 Tom Tromey <tom@tromey.com>
9297
9298 PR rust/25025:
9299 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9300
9301 2020-04-24 Tom Tromey <tom@tromey.com>
9302
9303 PR symtab/12707:
9304 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9305 exists.
9306 (new_symbol): Likewise.
9307 * compile/compile-object-load.c (get_out_value_type): Use
9308 symbol_matches_search_name.
9309
9310 2020-04-24 Tom Tromey <tom@tromey.com>
9311
9312 * dwarf2/read.c (add_partial_symbol): Do not call
9313 compute_and_set_names.
9314
9315 2020-04-24 Tom Tromey <tom@tromey.com>
9316
9317 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9318 overload.
9319
9320 2020-04-24 Tom Tromey <tom@tromey.com>
9321
9322 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9323 (add_psymbol_to_list): New overload. Make old overload call new
9324 one.
9325 * psympriv.h (add_psymbol_to_list): New overload.
9326
9327 2020-04-24 Tom Tromey <tom@tromey.com>
9328
9329 * dwarf2/read.c (partial_die_info::read) <case
9330 DW_AT_linkage_name>: Use value_as_string.
9331 (dwarf2_string_attr): Use value_as_string.
9332 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9333 method.
9334 * dwarf2/attribute.c (attribute::value_as_string): New method.
9335
9336 2020-04-24 Tom Tromey <tom@tromey.com>
9337
9338 * symtab.c (general_symbol_info::natural_name)
9339 (general_symbol_info::demangled_name): Check for language_rust.
9340
9341 2020-04-24 Tom Tromey <tom@tromey.com>
9342
9343 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9344 (dwarf2_physname): ... from here.
9345 (partial_die_info::read): Add Rust "{" hack.
9346
9347 2020-04-24 Tom Tromey <tom@tromey.com>
9348
9349 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9350 method.
9351 (symbol_set_demangled_name): Don't declare.
9352 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9353 symbol_set_demangled_name.
9354 (general_symbol_info::set_language)
9355 (general_symbol_info::compute_and_set_names): Update.
9356 * minsyms.c (minimal_symbol_reader::install): Update.
9357 * dwarf2/read.c (new_symbol): Update.
9358
9359 2020-04-24 Tom Tromey <tromey@adacore.com>
9360
9361 PR python/23662:
9362 * python/py-type.c (convert_field): Handle
9363 FIELD_LOC_KIND_DWARF_BLOCK.
9364 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9365 (typy_get_dynamic): Nw function.
9366 (type_object_getset): Add "dynamic".
9367 * NEWS: Add entry.
9368
9369 2020-04-24 Tom Tromey <tromey@adacore.com>
9370
9371 * ada-typeprint.c (print_choices, print_variant_part)
9372 (print_record_field_types_dynamic): New functions.
9373 (print_record_field_types): Use print_record_field_types_dynamic.
9374
9375 2020-04-24 Tom Tromey <tromey@adacore.com>
9376
9377 * dwarf2/read.c (handle_data_member_location): New overload.
9378 (dwarf2_add_field): Use it.
9379 (decode_locdesc): Add "computed" parameter. Update comment.
9380 * gdbtypes.c (is_dynamic_type_internal): Also look for
9381 FIELD_LOC_KIND_DWARF_BLOCK.
9382 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9383 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9384 virtual base classes.
9385 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9386 FIELD_LOC_KIND_DWARF_BLOCK.
9387
9388 2020-04-24 Tom Tromey <tromey@adacore.com>
9389
9390 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9391 * gdbtypes.c (is_dynamic_type_internal): Check
9392 TYPE_HAS_DYNAMIC_LENGTH.
9393 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9394 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9395 New macros.
9396 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9397 constant.
9398
9399 2020-04-24 Tom Tromey <tromey@adacore.com>
9400
9401 * dwarf2/read.c (struct variant_field): Rewrite.
9402 (struct variant_part_builder): New.
9403 (struct nextfield): Remove "variant" field. Add "offset".
9404 (struct field_info): Add "current_variant_part" and
9405 "variant_parts".
9406 (alloc_discriminant_info): Remove.
9407 (alloc_rust_variant): New function.
9408 (quirk_rust_enum): Update.
9409 (dwarf2_add_field): Set "offset" member. Don't handle
9410 DW_TAG_variant_part.
9411 (offset_map_type): New typedef.
9412 (convert_variant_range, create_one_variant)
9413 (create_one_variant_part, create_variant_parts)
9414 (add_variant_property): New functions.
9415 (dwarf2_attach_fields_to_type): Call add_variant_property.
9416 (read_structure_type): Don't handle DW_TAG_variant_part.
9417 (handle_variant_part, handle_variant): New functions.
9418 (handle_struct_member_die): Use them.
9419 (process_structure_scope): Don't handle variant parts.
9420 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9421 (struct discriminant_info): Remove.
9422 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9423 (struct main_type) <flag_discriminated_union>: Remove.
9424 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9425 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9426 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9427 Update.
9428 * valops.c (value_union_variant): Remove.
9429 * value.h (value_union_variant): Don't declare.
9430
9431 2020-04-24 Tom Tromey <tromey@adacore.com>
9432
9433 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9434 (ada_value_primitive_packed_val): Update.
9435 * ada-valprint.c (ada_value_print_1): Update.
9436 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9437 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9438 just an address. Use evaluate_for_locexpr_baton.
9439 (dwarf2_evaluate_property): Update.
9440 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9441 array_view.
9442 * findvar.c (default_read_var_value): Update.
9443 * gdbtypes.c (compute_variant_fields_inner)
9444 (resolve_dynamic_type_internal): Update.
9445 (resolve_dynamic_type): Change type of valaddr parameter.
9446 * gdbtypes.h (resolve_dynamic_type): Update.
9447 * valarith.c (value_subscripted_rvalue): Update.
9448 * value.c (value_from_contents_and_address): Update.
9449
9450 2020-04-24 Tom Tromey <tromey@adacore.com>
9451
9452 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9453 "push_initial_value" parameter.
9454 (dwarf2_evaluate_property): Likewise.
9455 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9456
9457 2020-04-24 Tom Tromey <tromey@adacore.com>
9458
9459 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9460 (variant::matches, compute_variant_fields_recurse)
9461 (compute_variant_fields_inner, compute_variant_fields): New
9462 functions.
9463 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9464 Use resolved_type after type is made.
9465 (operator==): Add new cases.
9466 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9467 (struct discriminant_range, struct variant, struct variant_part):
9468 New.
9469 (union dynamic_prop_data) <variant_parts, original_type>: New
9470 members.
9471 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9472 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9473 constants.
9474 * value.c (unpack_bits_as_long): Now public.
9475 * value.h (unpack_bits_as_long): Declare.
9476
9477 2020-04-24 Tom Tromey <tromey@adacore.com>
9478
9479 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9480 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9481
9482 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9483
9484 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9485
9486 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9487
9488 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9489 (remove_fork_catchpoint, post_startup_inferior)
9490 (post_attach): Move...
9491 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9492 (remove_fork_catchpoint, post_startup_inferior)
9493 (post_attach): ...here.
9494 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9495 (remove_fork_catchpoint, post_startup_inferior)
9496 (post_attach): Move...
9497 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9498 (remove_fork_catchpoint, post_startup_inferior)
9499 (post_attach): ...here.
9500
9501 2020-04-24 Tom Tromey <tromey@adacore.com>
9502
9503 * nat/windows-nat.h (struct windows_thread_info)
9504 <pc_adjusted>: New member.
9505 * windows-nat.c (windows_fetch_one_register): Check
9506 pc_adjusted.
9507 (windows_nat_target::get_windows_debug_event)
9508 (windows_nat_target::wait): Set pc_adjusted.
9509
9510 2020-04-24 Tom de Vries <tdevries@suse.de>
9511
9512 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9513 Run gdb-add-index inside temp dir.
9514
9515 2020-04-23 Tom Tromey <tromey@adacore.com>
9516
9517 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9518 in loop.
9519
9520 2020-04-23 Luis Machado <luis.machado@linaro.org>
9521
9522 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9523 get_frame_register instead of gdbarch_unwind_pc.
9524
9525 2020-04-23 Tom de Vries <tdevries@suse.de>
9526
9527 * symtab.c (lookup_global_symbol): Prefer def over decl.
9528
9529 2020-04-23 Tom de Vries <tdevries@suse.de>
9530
9531 PR symtab/25807
9532 * block.c (best_symbol, better_symbol): Promote to external.
9533 * block.h (best_symbol, better_symbol): Declare.
9534 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9535 decl.
9536
9537 2020-04-23 Tom Tromey <tromey@adacore.com>
9538
9539 PR ada/25837:
9540 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9541 "const char *", not a "const std::string &".
9542 <name_and_matcher::operator==>: Update.
9543 * unittests/lookup_name_info-selftests.c: Change type of
9544 "result".
9545
9546 2020-04-23 Tom Tromey <tom@tromey.com>
9547
9548 * inferior.h (iterate_over_inferiors): Don't declare.
9549 * inferior.c (iterate_over_inferiors): Remove.
9550 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9551 Remove.
9552 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9553 use iterate_over_inferiors.
9554 (darwin_resume_inferior_it)
9555 (struct resume_inferior_threads_param)
9556 (darwin_resume_inferior_threads_it): Remove.
9557 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9558
9559 2020-04-23 Tom de Vries <tdevries@suse.de>
9560
9561 * blockframe.c (find_pc_partial_function): Use
9562 find_pc_sect_compunit_symtab rather than
9563 objfile->sf->qf->find_pc_sect_compunit_symtab.
9564
9565 2020-04-22 Tom de Vries <tdevries@suse.de>
9566
9567 PR symtab/25764
9568 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9569 in psymtabs.
9570
9571 2020-04-22 Tom de Vries <tdevries@suse.de>
9572
9573 PR symtab/25801
9574 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9575 symtabs.
9576
9577 2020-04-22 Tom de Vries <tdevries@suse.de>
9578
9579 PR symtab/25700
9580 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9581 CU if already created.
9582
9583 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9584
9585 * infrun.c (displaced_step_fixup): Switch to the event_thread
9586 before calling displaced_step_restore, not after.
9587
9588 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9589
9590 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9591 its inferior is not recorded by us.
9592 (record_btrace_target_open): Replace call to
9593 all_non_exited_threads () with call to current_inferior
9594 ()->non_exited_threads ().
9595 (record_btrace_target::stop_recording): Likewise.
9596 (record_btrace_target::close): Likewise.
9597 (record_btrace_target::wait): Likewise.
9598 (record_btrace_target::record_stop_replaying): Likewise.
9599
9600 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9601
9602 * btrace.c (btrace_enable): Throw an error on double enables and
9603 when enabling recording fails.
9604 (btrace_disable): Throw an error if the thread is not recorded.
9605
9606 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9607
9608 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9609 request if we do not have a thread_info.
9610
9611 2020-04-21 Tom de Vries <tdevries@suse.de>
9612
9613 PR gdb/25471
9614 * thread.c
9615 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9616 exception in get_frame_id.
9617
9618 2020-04-20 Tom Tromey <tromey@adacore.com>
9619
9620 * python/python.c (struct gdbpy_event): Mark move constructor as
9621 noexcept.
9622 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9623 constructor as noexcept.
9624 * completer.h (struct completion_result): Mark move constructor as
9625 noexcept.
9626 * completer.c (completion_result::completion_result): Use
9627 initialization style. Don't call reset_match_list.
9628
9629 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9630
9631 * MAINTAINERS (Write After Approval): Add myself.
9632
9633 2020-04-18 Tom Tromey <tom@tromey.com>
9634
9635 * windows-tdep.c (init_w32_command_list)
9636 (w32_prefix_command_valid): Restore.
9637 (_initialize_windows_tdep): Call init_w32_command_list.
9638
9639 2020-04-18 Tom Tromey <tom@tromey.com>
9640
9641 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9642 * value.c (value_fn_field): Update.
9643 * valops.c (find_function_in_inferior)
9644 (value_allocate_space_in_inferior): Update.
9645 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9646 Update.
9647 * tui/tui-source.c (tui_source_window::set_contents): Update.
9648 * symtab.c (lookup_global_or_static_symbol)
9649 (find_function_start_sal_1, skip_prologue_sal)
9650 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9651 * symmisc.c (dump_msymbols, dump_symtab_1)
9652 (maintenance_print_one_line_table): Update.
9653 * symfile.c (init_entry_point_info, section_is_mapped)
9654 (list_overlays_command, simple_read_overlay_table)
9655 (simple_overlay_update_1): Update.
9656 * stap-probe.c (handle_stap_probe): Update.
9657 * stabsread.c (dbx_init_float_type, define_symbol)
9658 (read_one_struct_field, read_enum_type, read_range_type): Update.
9659 * source.c (info_line_command): Update.
9660 * python/python.c (gdbpy_source_objfile_script)
9661 (gdbpy_execute_objfile_script): Update.
9662 * python/py-type.c (save_objfile_types): Update.
9663 * python/py-objfile.c (py_free_objfile): Update.
9664 * python/py-inferior.c (python_new_objfile): Update.
9665 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9666 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9667 (maintenance_check_psymtabs): Update.
9668 * printcmd.c (info_address_command): Update.
9669 * objfiles.h (struct objfile) <arch>: New method, from
9670 get_objfile_arch.
9671 (get_objfile_arch): Don't declare.
9672 * objfiles.c (get_objfile_arch): Remove.
9673 (filter_overlapping_sections): Update.
9674 * minsyms.c (msymbol_is_function): Update.
9675 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9676 (output_nondebug_symbol): Update.
9677 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9678 (mdebug_expand_psymtab): Update.
9679 * machoread.c (macho_add_oso_symfile): Update.
9680 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9681 Update.
9682 * linux-fork.c (checkpoint_command): Update.
9683 * linespec.c (convert_linespec_to_sals): Update.
9684 * jit.c (finalize_symtab): Update.
9685 * infrun.c (insert_exception_resume_from_probe): Update.
9686 * ia64-tdep.c (ia64_find_unwind_table): Update.
9687 * hppa-tdep.c (internalize_unwinds): Update.
9688 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9689 Update.
9690 * gcore.c (call_target_sbrk): Update.
9691 * elfread.c (record_minimal_symbol, elf_symtab_read)
9692 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9693 (elf_gnu_ifunc_resolve_by_got): Update.
9694 * dwarf2/read.c (create_addrmap_from_index)
9695 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9696 (read_debug_names_from_section)
9697 (process_psymtab_comp_unit_reader, add_partial_symbol)
9698 (add_partial_subprogram, process_full_comp_unit)
9699 (read_file_scope, read_func_scope, read_lexical_block_scope)
9700 (read_call_site_scope, dwarf2_ranges_read)
9701 (dwarf2_record_block_ranges, dwarf2_add_field)
9702 (mark_common_block_symbol_computed, read_tag_pointer_type)
9703 (read_tag_string_type, dwarf2_init_float_type)
9704 (dwarf2_init_complex_target_type, read_base_type)
9705 (partial_die_info::read, partial_die_info::read)
9706 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9707 (dwarf2_fetch_die_loc_sect_off): Update.
9708 * dwarf2/loc.c (dwarf2_find_location_expression)
9709 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9710 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9711 (dwarf2_loc_desc_get_symbol_read_needs)
9712 (locexpr_describe_location_piece, locexpr_describe_location_1)
9713 (loclist_describe_location): Update.
9714 * dwarf2/index-write.c (write_debug_names): Update.
9715 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9716 * dtrace-probe.c (dtrace_process_dof): Update.
9717 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9718 (process_one_symbol): Update.
9719 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9720 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9721 (coff_read_enum_type): Update.
9722 * cli/cli-cmds.c (edit_command, list_command): Update.
9723 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9724 * breakpoint.c (create_overlay_event_breakpoint)
9725 (create_longjmp_master_breakpoint)
9726 (create_std_terminate_master_breakpoint)
9727 (create_exception_master_breakpoint, get_sal_arch): Update.
9728 * block.c (block_gdbarch): Update.
9729 * annotate.c (annotate_source_line): Update.
9730
9731 2020-04-17 Tom Tromey <tromey@adacore.com>
9732
9733 * auto-load.c (show_auto_load_cmd): Remove.
9734 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9735 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9736 (maintenance_print_arc_command): Remove.
9737 * tui/tui-win.c (tui_command): Remove.
9738 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9739 * tui/tui-layout.c (tui_layout_command): Remove.
9740 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9741 * python/python.c (user_set_python, user_show_python): Remove.
9742 (_initialize_python): Use add_basic_prefix_cmd,
9743 add_show_prefix_cmd.
9744 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9745 (install_gdb_commands): Use add_basic_prefix_cmd,
9746 add_show_prefix_cmd.
9747 (info_guile_command): Remove.
9748 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9749 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9750 add_show_prefix_cmd.
9751 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9752 Remove do_set and do_show parameters.
9753 * cli/cli-style.c (set_style, show_style): Remove.
9754 (_initialize_cli_style): Use add_basic_prefix_cmd,
9755 add_show_prefix_cmd.
9756 (cli_style_option::add_setshow_commands): Remove do_set and
9757 do_show parameters.
9758 (cli_style_option::add_setshow_commands): Use
9759 add_basic_prefix_cmd, add_show_prefix_cmd.
9760 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9761 (set_style_name): Remove.
9762 * cli/cli-dump.c (dump_command, append_command): Remove.
9763 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9764 (tekhex_dump_command, binary_dump_command)
9765 (binary_append_command): Remove.
9766 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9767 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9768 (init_w32_command_list): Remove; move into ...
9769 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9770 * valprint.c (set_print, show_print, set_print_raw)
9771 (show_print_raw): Remove.
9772 (_initialize_valprint): Use add_basic_prefix_cmd,
9773 add_show_prefix_cmd.
9774 * typeprint.c (set_print_type, show_print_type): Remove.
9775 (_initialize_typeprint): Use add_basic_prefix_cmd,
9776 add_show_prefix_cmd.
9777 * record.c (set_record_command, show_record_command): Remove.
9778 (_initialize_record): Use add_basic_prefix_cmd,
9779 add_show_prefix_cmd.
9780 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9781 add_show_prefix_cmd.
9782 (info_command, show_command, set_debug, show_debug): Remove.
9783 * top.h (set_history, show_history): Don't declare.
9784 * top.c (set_history, show_history): Remove.
9785 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9786 (unset_tdesc_cmd): Remove.
9787 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9788 add_show_prefix_cmd.
9789 * symtab.c (info_module_command): Remove.
9790 (_initialize_symtab): Use add_basic_prefix_cmd.
9791 * symfile.c (overlay_command): Remove.
9792 (_initialize_symfile): Use add_basic_prefix_cmd.
9793 * sparc64-tdep.c (info_adi_command): Remove.
9794 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9795 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9796 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9797 add_show_prefix_cmd.
9798 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9799 (_initialize_serial): Use add_basic_prefix_cmd,
9800 add_show_prefix_cmd.
9801 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9802 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9803 add_show_prefix_cmd.
9804 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9805 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9806 add_show_prefix_cmd.
9807 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9808 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9809 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9810 add_show_prefix_cmd.
9811 * remote.c (remote_command, set_remote_cmd): Remove.
9812 (_initialize_remote): Use add_basic_prefix_cmd.
9813 * record-full.c (set_record_full_command)
9814 (show_record_full_command): Remove.
9815 (_initialize_record_full): Use add_basic_prefix_cmd,
9816 add_show_prefix_cmd.
9817 * record-btrace.c (cmd_set_record_btrace)
9818 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9819 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9820 (cmd_show_record_btrace_pt): Remove.
9821 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9822 add_show_prefix_cmd.
9823 * ravenscar-thread.c (set_ravenscar_command)
9824 (show_ravenscar_command): Remove.
9825 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9826 add_show_prefix_cmd.
9827 * mips-tdep.c (show_mips_command, set_mips_command)
9828 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9829 add_show_prefix_cmd.
9830 * maint.c (maintenance_command, maintenance_info_command)
9831 (maintenance_check_command, maintenance_print_command)
9832 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9833 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9834 add_show_prefix_cmd.
9835 (show_per_command_cmd): Remove.
9836 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9837 Remove.
9838 (maintenance_show_test_settings_cmd): Remove.
9839 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9840 add_show_prefix_cmd.
9841 * maint-test-options.c (maintenance_test_options_command):
9842 Remove.
9843 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9844 * macrocmd.c (macro_command): Remove
9845 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9846 * language.c (set_check, show_check): Remove.
9847 (_initialize_language): Use add_basic_prefix_cmd,
9848 add_show_prefix_cmd.
9849 * infcmd.c (unset_command): Remove.
9850 (_initialize_infcmd): Use add_basic_prefix_cmd.
9851 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9852 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9853 add_show_prefix_cmd.
9854 * go32-nat.c (go32_info_dos_command): Remove.
9855 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9856 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9857 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9858 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9859 (_initialize_frame): Use add_basic_prefix_cmd,
9860 add_show_prefix_cmd.
9861 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9862 (_initialize_dcache): Use add_basic_prefix_cmd,
9863 add_show_prefix_cmd.
9864 * cp-support.c (maint_cplus_command): Remove.
9865 (_initialize_cp_support): Use add_basic_prefix_cmd.
9866 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9867 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9868 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9869 add_basic_prefix_cmd, add_show_prefix_cmd.
9870 * breakpoint.c (save_command): Remove.
9871 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9872 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9873 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9874 add_show_prefix_cmd.
9875 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9876 (set_ada_command, show_ada_command): Remove.
9877 (_initialize_ada_language): Use add_basic_prefix_cmd,
9878 add_show_prefix_cmd.
9879 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9880
9881 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9882
9883 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9884 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9885
9886 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9887
9888 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9889 warning messages.
9890
9891 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9892
9893 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9894 import table is not at beginning of .idata section.
9895
9896 2020-04-16 Pedro Alves <palves@redhat.com>
9897
9898 * inferior.c (delete_inferior): Use delete operator directly
9899 instead of delete_program_space.
9900 * progspace.c (add_program_space): New, factored out from
9901 program_space::program_space.
9902 (remove_program_space): New, factored out from
9903 delete_program_space.
9904 (program_space::program_space): Remove intro comment. Rewrite.
9905 (program_space::~program_space): Remove intro comment. Call
9906 remove_program_space.
9907 (delete_program_space): Delete.
9908 * progspace.h (program_space::program_space): Make explicit. Move
9909 intro comment here, adjusted.
9910 (program_space::~program_space): Move intro comment here,
9911 adjusted.
9912 (delete_program_space): Remove.
9913
9914 2020-04-16 Tom Tromey <tromey@adacore.com>
9915
9916 * windows-nat.c (windows_nat::handle_access_violation): New
9917 function.
9918 * nat/windows-nat.h (handle_access_violation): Declare.
9919 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9920 windows-nat.c. Call handle_access_violation.
9921
9922 2020-04-16 Tom de Vries <tdevries@suse.de>
9923
9924 PR symtab/25791
9925 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9926 CUs without psymtab.
9927
9928 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9929
9930 * python/python.c (do_start_initialization): Don't call
9931 PyEval_InitThreads for Python 3.9 and beyond.
9932
9933 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9934
9935 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9936 thread functions.
9937 (obsd_nat_target::wait): Likewise.
9938
9939 2020-04-15 Tom Tromey <tromey@adacore.com>
9940
9941 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9942 (DEBUG_EXCEPT): Use debug_printf.
9943
9944 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9945
9946 * completer.c (class completion_tracker::completion_hash_entry)
9947 <hash_name>: New member function.
9948 (completion_tracker::discard_completions): New callback to hash a
9949 completion_hash_entry, pass this to htab_create_alloc.
9950
9951 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9952
9953 * windows-nat.c (windows_make_so): Warn rather than stopping with
9954 an error if realpath() fails.
9955
9956 2020-04-14 Kamil Rytarowski <n54@gmx.com>
9957
9958 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9959 (nbsd_nat_target::info_proc): Add do_status.
9960
9961 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9962 Tom de Vries <tdevries@suse.de>
9963
9964 PR symtab/25718
9965 * psympriv.h (struct partial_symtab::read_symtab)
9966 (struct partial_symtab::expand_psymtab)
9967 (struct partial_symtab::read_dependencies): Update comments.
9968 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9969 read_symtab for includer.
9970 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9971 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9972 (struct dwarf2_include_psymtab::m_readin): Remove.
9973 (struct dwarf2_include_psymtab::includer): New member function.
9974 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9975
9976 2020-04-14 Tom de Vries <tdevries@suse.de>
9977
9978 PR symtab/25720
9979 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9980 with NULL symbol_matcher and lookup_name.
9981 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9982 and lookup_name.
9983 * dwarf2/read.c (dw2_expand_symtabs_matching)
9984 (dw2_debug_names_expand_symtabs_matching): Same.
9985 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9986 Make lookup_name a pointer. Update comment.
9987 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9988 lookup_name being a pointer.
9989 * symfile.c (expand_symtabs_matching): Same.
9990 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9991 * linespec.c (iterate_over_all_matching_symtabs): Same.
9992
9993 2020-04-13 Tom Tromey <tom@tromey.com>
9994
9995 * run-on-main-thread.c: Update include.
9996 * unittests/main-thread-selftests.c: Update include.
9997 * tui/tui-win.c: Update include.
9998 * tui/tui-io.c: Update include.
9999 * tui/tui-interp.c: Update include.
10000 * tui/tui-hooks.c: Update include.
10001 * top.h: Update include.
10002 * top.c: Update include.
10003 * ser-base.c: Update include.
10004 * remote.c: Update include.
10005 * remote-notif.c: Update include.
10006 * remote-fileio.c: Update include.
10007 * record-full.c: Update include.
10008 * record-btrace.c: Update include.
10009 * python/python.c: Update include.
10010 * posix-hdep.c: Update include.
10011 * mingw-hdep.c: Update include.
10012 * mi/mi-main.c: Update include.
10013 * mi/mi-interp.c: Update include.
10014 * main.c: Update include.
10015 * linux-nat.c: Update include.
10016 * interps.c: Update include.
10017 * infrun.c: Update include.
10018 * inf-loop.c: Update include.
10019 * event-top.c: Update include.
10020 * event-loop.c: Move to ../gdbsupport/.
10021 * event-loop.h: Move to ../gdbsupport/.
10022 * async-event.h: Update include.
10023 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10024
10025 2020-04-13 Tom Tromey <tom@tromey.com>
10026
10027 * tui/tui-win.c: Include async-event.h.
10028 * remote.c: Include async-event.h.
10029 * remote-notif.c: Include async-event.h.
10030 * record-full.c: Include async-event.h.
10031 * record-btrace.c: Include async-event.h.
10032 * infrun.c: Include async-event.h.
10033 * event-top.c: Include async-event.h.
10034 * event-loop.h: Move some declarations to async-event.h.
10035 * event-loop.c: Don't include ser-event.h or top.h. Move some
10036 code to async-event.c.
10037 * async-event.h: New file.
10038 * async-event.c: New file.
10039 * Makefile.in (COMMON_SFILES): Add async-event.c.
10040 (HFILES_NO_SRCDIR): Add async-event.h.
10041
10042 2020-04-13 Tom Tromey <tom@tromey.com>
10043
10044 * utils.c (flush_streams): New function.
10045 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10046
10047 2020-04-13 Tom Tromey <tom@tromey.com>
10048
10049 * event-loop.c (handle_file_event): Use warning, not
10050 printf_unfiltered.
10051
10052 2020-04-13 Tom Tromey <tom@tromey.com>
10053
10054 * event-loop.c: Include <chrono>.
10055
10056 2020-04-13 Tom Tromey <tom@tromey.com>
10057
10058 * gdb_select.h: Move to ../gdbsupport/.
10059 * event-loop.c: Update include path.
10060 * top.c: Update include path.
10061 * ser-base.c: Update include path.
10062 * ui-file.c: Update include path.
10063 * ser-tcp.c: Update include path.
10064 * guile/scm-ports.c: Update include path.
10065 * posix-hdep.c: Update include path.
10066 * ser-unix.c: Update include path.
10067 * gdb_usleep.c: Update include path.
10068 * mingw-hdep.c: Update include path.
10069 * inflow.c: Update include path.
10070 * infrun.c: Update include path.
10071 * event-top.c: Update include path.
10072
10073 2020-04-13 Tom Tromey <tom@tromey.com>
10074
10075 * configure: Rebuild.
10076 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10077
10078 2020-04-13 Tom Tromey <tom@tromey.com>
10079
10080 * event-loop.h (start_event_loop): Don't declare.
10081 * event-loop.c (start_event_loop): Move...
10082 * main.c (start_event_loop): ...here. Now static.
10083
10084 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10085
10086 * MAINTAINERS: Update my email address.
10087
10088 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10089
10090 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10091 IP_ALL.
10092
10093 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10094
10095 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10096 (nbsd_nat_target::info_proc): Add do_cmdline.
10097
10098 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10099
10100 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10101 (nbsd_nat_target::info_proc): Add do_cwd.
10102
10103 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10104
10105 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10106
10107 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10108
10109 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10110 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10111 (nbsd_nat_target::info_proc): New functions.
10112 * nbsd-nat.c (kinfo_get_vmmap): New function.
10113 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10114 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10115 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10116 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10117 functions.
10118 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10119 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10120 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10121 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10122 (KINFO_VME_FLAG_GROWS_DOWN): New.
10123
10124 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10125
10126 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10127 bit shift.
10128
10129 2020-04-10 Tom Tromey <tromey@adacore.com>
10130
10131 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10132
10133 2020-04-10 Tom Tromey <tromey@adacore.com>
10134
10135 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10136 separate debug files.
10137
10138 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10139
10140 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10141 Move to...
10142 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10143 ... here.
10144 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10145 Check for STATUS_WX86_BREAKPOINT.
10146 (windows_nat_target::wait): Same.
10147
10148 2020-04-10 Tom de Vries <tdevries@suse.de>
10149
10150 PR cli/25808
10151 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10152
10153 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10154
10155 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10156 (Write After Approval): Remove Tom de Vries.
10157
10158 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10159
10160 revert partially:
10161 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10162
10163 * buildsym.c (record_line): Fix undefined behavior and preserve
10164 lines at eof.
10165
10166 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10167
10168 * auxv.h (svr4_auxv_parse): New.
10169 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10170 and generic_auxv_parse.
10171 (svr4_auxv_parse): Add.
10172 * obsd-tdep.c: Include "auxv.h".
10173 (obsd_auxv_parse): Remove.
10174 (obsd_init_abi): Remove comment.
10175 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10176 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10177 * nbsd-tdep.c: Include "auxv.h".
10178 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10179
10180 2020-04-08 Tom Tromey <tromey@adacore.com>
10181
10182 * nat/windows-nat.h (last_wait_event): Don't declare.
10183 (wait_for_debug_event): Update comment.
10184 * nat/windows-nat.c (last_wait_event): Now static.
10185
10186 2020-04-08 Tom Tromey <tromey@adacore.com>
10187
10188 * windows-nat.c (wait_for_debug_event): Move to
10189 nat/windows-nat.c.
10190 * nat/windows-nat.h (wait_for_debug_event): Declare.
10191 * nat/windows-nat.c (wait_for_debug_event): Move from
10192 windows-nat.c. No longer static.
10193
10194 2020-04-08 Tom Tromey <tromey@adacore.com>
10195
10196 * windows-nat.c (get_windows_debug_event): Use
10197 fetch_pending_stop.
10198 * nat/windows-nat.h (fetch_pending_stop): Declare.
10199 * nat/windows-nat.c (fetch_pending_stop): New function.
10200
10201 2020-04-08 Tom Tromey <tromey@adacore.com>
10202
10203 * windows-nat.c (windows_continue): Use matching_pending_stop and
10204 continue_last_debug_event.
10205 * nat/windows-nat.h (matching_pending_stop)
10206 (continue_last_debug_event): Declare.
10207 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10208 (matching_pending_stop, continue_last_debug_event): New
10209 functions.
10210
10211 2020-04-08 Tom Tromey <tromey@adacore.com>
10212
10213 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10214 (handle_exception_result): Move to nat/windows-nat.h.
10215 (DEBUG_EXCEPTION_SIMPLE): Remove.
10216 (windows_nat::handle_ms_vc_exception): New function.
10217 (handle_exception): Move to nat/windows-nat.c.
10218 (get_windows_debug_event): Update.
10219 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10220 nat/windows-nat.c.
10221 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10222 (handle_exception_result): Move from windows-nat.c.
10223 (handle_exception): Declare.
10224 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10225 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10226 windows-nat.c.
10227
10228 2020-04-08 Tom Tromey <tromey@adacore.com>
10229
10230 * windows-nat.c (exception_count, event_count): Remove.
10231 (handle_exception, get_windows_debug_event)
10232 (do_initial_windows_stuff): Update.
10233
10234 2020-04-08 Tom Tromey <tromey@adacore.com>
10235
10236 * windows-nat.c (windows_nat::handle_load_dll)
10237 (windows_nat::handle_unload_dll): Rename. No longer static.
10238 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10239 Declare.
10240
10241 2020-04-08 Tom Tromey <tromey@adacore.com>
10242
10243 * complaints.h (stop_whining): Declare at top-level.
10244 (complaint): Don't declare stop_whining.
10245
10246 2020-04-08 Tom Tromey <tromey@adacore.com>
10247
10248 * windows-nat.c (windows_nat::handle_output_debug_string):
10249 Rename. No longer static.
10250 * nat/windows-nat.h (handle_output_debug_string): Declare.
10251
10252 2020-04-08 Tom Tromey <tromey@adacore.com>
10253
10254 * windows-nat.c (current_process_handle, current_process_id)
10255 (main_thread_id, last_sig, current_event, last_wait_event)
10256 (current_windows_thread, desired_stop_thread_id, pending_stops)
10257 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10258 (display_selectors, fake_create_process)
10259 (get_windows_debug_event): Update.
10260 * nat/windows-nat.h (current_process_handle, current_process_id)
10261 (main_thread_id, last_sig, current_event, last_wait_event)
10262 (current_windows_thread, desired_stop_thread_id, pending_stops)
10263 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10264 * nat/windows-nat.c (current_process_handle, current_process_id)
10265 (main_thread_id, last_sig, current_event, last_wait_event)
10266 (current_windows_thread, desired_stop_thread_id, pending_stops)
10267 (siginfo_er): New globals. Move from windows-nat.c.
10268
10269 2020-04-08 Tom Tromey <tromey@adacore.com>
10270
10271 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10272 (handle_load_dll): Update.
10273 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10274
10275 2020-04-08 Tom Tromey <tromey@adacore.com>
10276
10277 * windows-nat.c (enum thread_disposition_type): Move to
10278 nat/windows-nat.h.
10279 (windows_nat::thread_rec): Rename from thread_rec. No longer
10280 static.
10281 (windows_add_thread, windows_nat_target::fetch_registers)
10282 (windows_nat_target::store_registers, handle_exception)
10283 (windows_nat_target::resume, get_windows_debug_event)
10284 (windows_nat_target::get_tib_address)
10285 (windows_nat_target::thread_name)
10286 (windows_nat_target::thread_alive): Update.
10287 * nat/windows-nat.h (enum thread_disposition_type): Move from
10288 windows-nat.c.
10289 (thread_rec): Declare.
10290
10291 2020-04-08 Tom Tromey <tromey@adacore.com>
10292
10293 * windows-nat.c: Add "using namespace".
10294 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10295 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10296
10297 2020-04-08 Tom Tromey <tromey@adacore.com>
10298
10299 * nat/windows-nat.h (struct windows_thread_info): Declare
10300 destructor.
10301 * nat/windows-nat.c (~windows_thread_info): New.
10302
10303 2020-04-08 Tom Tromey <tromey@adacore.com>
10304
10305 PR gdb/22992
10306 * windows-nat.c (current_event): Update comment.
10307 (last_wait_event, desired_stop_thread_id): New globals.
10308 (struct pending_stop): New.
10309 (pending_stops): New global.
10310 (windows_nat_target) <stopped_by_sw_breakpoint>
10311 <supports_stopped_by_sw_breakpoint>: New methods.
10312 (windows_fetch_one_register): Add assertions. Adjust PC.
10313 (windows_continue): Handle pending stops. Suspend other threads
10314 when stepping. Use last_wait_event
10315 (wait_for_debug_event): New function.
10316 (get_windows_debug_event): Use wait_for_debug_event. Handle
10317 pending stops. Queue spurious stops.
10318 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10319 (windows_nat_target::kill): Use wait_for_debug_event.
10320 * nat/windows-nat.h (struct windows_thread_info)
10321 <stopped_at_software_breakpoint>: New field.
10322 * nat/windows-nat.c (windows_thread_info::resume): Clear
10323 stopped_at_software_breakpoint.
10324
10325 2020-04-08 Tom Tromey <tromey@adacore.com>
10326
10327 * windows-nat.c (enum thread_disposition_type): New.
10328 (thread_rec): Replace "get_context" parameter with "disposition";
10329 change type.
10330 (windows_add_thread, windows_nat_target::fetch_registers)
10331 (windows_nat_target::store_registers, handle_exception)
10332 (windows_nat_target::resume, get_windows_debug_event)
10333 (windows_nat_target::get_tib_address)
10334 (windows_nat_target::thread_name)
10335 (windows_nat_target::thread_alive): Update.
10336
10337 2020-04-08 Tom Tromey <tromey@adacore.com>
10338
10339 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10340 (windows_continue): Use windows_continue::resume.
10341 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10342 resume>: Declare new methods.
10343 * nat/windows-nat.c: New file.
10344 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10345
10346 2020-04-08 Tom Tromey <tromey@adacore.com>
10347
10348 * windows-nat.c (windows_add_thread, windows_delete_thread)
10349 (windows_nat_target::fetch_registers)
10350 (windows_nat_target::store_registers, fake_create_process)
10351 (windows_nat_target::resume, windows_nat_target::resume)
10352 (get_windows_debug_event, windows_nat_target::wait)
10353 (windows_nat_target::pid_to_str)
10354 (windows_nat_target::get_tib_address)
10355 (windows_nat_target::get_ada_task_ptid)
10356 (windows_nat_target::thread_name)
10357 (windows_nat_target::thread_alive): Use lwp, not tid.
10358
10359 2020-04-08 Tom Tromey <tromey@adacore.com>
10360
10361 * windows-nat.c (handle_exception)
10362 (windows_nat_target::thread_name): Update.
10363 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10364 <name>: Now unique_xmalloc_ptr.
10365
10366 2020-04-08 Tom Tromey <tromey@adacore.com>
10367
10368 * windows-nat.c (thread_rec)
10369 (windows_nat_target::fetch_registers): Update.
10370 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10371 Update comment.
10372 <debug_registers_changed, reload_context>: Now bool.
10373
10374 2020-04-08 Tom Tromey <tromey@adacore.com>
10375
10376 * windows-nat.c (windows_add_thread): Use new.
10377 (windows_init_thread_list, windows_delete_thread): Use delete.
10378 (get_windows_debug_event): Update.
10379 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10380 destructor, and initializers.
10381
10382 2020-04-08 Tom Tromey <tromey@adacore.com>
10383
10384 * windows-nat.c (struct windows_thread_info): Remove.
10385 * nat/windows-nat.h: New file.
10386
10387 2020-04-08 Tom Tromey <tromey@adacore.com>
10388
10389 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10390 (thread_rec, windows_add_thread, windows_delete_thread)
10391 (windows_continue): Update.
10392
10393 2020-04-08 Tom Tromey <tromey@adacore.com>
10394
10395 * windows-nat.c (struct windows_thread_info): Remove typedef.
10396 (thread_head): Remove.
10397 (thread_list): New global.
10398 (thread_rec, windows_add_thread, windows_init_thread_list)
10399 (windows_delete_thread, windows_continue): Update.
10400
10401 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10402
10403 * windows-tdep.h (windows_init_abi): Add comment.
10404 (cygwin_init_abi): New declaration.
10405 * windows-tdep.c: Split signal enumeration in two, one for
10406 Windows and one for Cygwin.
10407 (windows_gdb_signal_to_target): Only deal with signal of the
10408 Windows OS ABI.
10409 (cygwin_gdb_signal_to_target): New function.
10410 (windows_init_abi): Rename to windows_init_abi_common, don't set
10411 gdb_signal_to_target gdbarch method. Add new new function with
10412 this name.
10413 (cygwin_init_abi): New function.
10414 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10415 comment. Don't call windows_init_abi.
10416 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10417 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10418 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10419 i386_windows_init_abi_common, don't call windows_init_abi. Add
10420 a new function of this name.
10421 (i386_cygwin_init_abi): New function.
10422 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10423 OS ABI Cygwin.
10424
10425 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10426
10427 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10428 parameter.c.
10429 (dwarf2_read_gdb_index): Update.
10430
10431 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10432
10433 * nbsd-tdep.c: Include "objfiles.h".
10434 (nbsd_skip_solib_resolver): New.
10435 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10436
10437 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10438
10439 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10440 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10441 with DW_LLE_base_addressx are being emitted in DWARFv5.
10442 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10443 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10444 unsigned integer.
10445
10446 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10447
10448 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10449 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10450 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10451 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10452 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10453 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10454 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10455
10456
10457 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10458
10459 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10460 (read_loclist_index): New function definition.
10461 (lookup_loclist_base): New function definition.
10462 (read_loclist_header): New function definition.
10463 (dwarf2_cu): Add loclist_base and loclist_header field.
10464 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10465 (read_full_die_1): Read the value of DW_AT_loclists_base.
10466 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10467 (read_attribute_value): Handle DW_FORM_loclistx.
10468 (skip_one_die): Handle DW_FORM_loclistx.
10469 (loclist_header): New structure declaration.
10470 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10471
10472 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10473
10474 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10475 constructor. Remove `addr` parameter from other constructor and
10476 add `per_cu` parameter.
10477 * dwarf2/read.c (create_partial_symtab): Update.
10478
10479 2020-04-07 Tom de Vries <tdevries@suse.de>
10480
10481 PR symtab/25796
10482 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10483 (partial_die_info::fixup): Inherit has_const_value.
10484
10485 2020-04-07 Tom de Vries <tdevries@suse.de>
10486
10487 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10488 symbols without address.
10489
10490 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10491
10492 * nbsd-nat.h (struct thread_info): Add forward declaration.
10493 (nbsd_nat_target::thread_alive): Add.
10494 (nbsd_nat_target::thread_name): Likewise.
10495 (nbsd_nat_target::update_thread_list): Likewise.
10496 (update_thread_list::post_attach): Likewise.
10497 (post_attach::pid_to_str): Likewise.
10498 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10499 (nbsd_thread_lister): Add.
10500 (nbsd_nat_target::thread_alive): Likewise.
10501 (nbsd_nat_target::thread_name): Likewise.
10502 (nbsd_add_threads): Likewise.
10503 (update_thread_list::post_attach): Likewise.
10504 (nbsd_nat_target::update_thread_list): Likewise.
10505 (post_attach::pid_to_str): Likewise.
10506
10507 2020-04-06 Tom Tromey <tromey@adacore.com>
10508
10509 * ada-valprint.c (print_variant_part): Extract the variant field.
10510 (print_field_values): Use the field as the outer value when
10511 recursing.
10512
10513 2020-04-06 Tom Tromey <tromey@adacore.com>
10514
10515 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10516 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10517 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10518 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10519 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10520
10521 2020-04-06 Tom Tromey <tromey@adacore.com>
10522
10523 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10524 TYPE_CODE_ERROR.
10525
10526 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10527
10528 * nbsd-tdep.c: Include "gdbarch.h".
10529 Define enum with NetBSD signal numbers.
10530 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10531 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10532 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10533 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10534 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10535 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10536 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10537 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10538 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10539 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10540 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10541 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10542
10543 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10544
10545 PR gdb/25325
10546 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10547
10548 2020-04-03 Tom Tromey <tromey@adacore.com>
10549
10550 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10551 Read constant block.
10552
10553 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10554
10555 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10556 (gdb_bfd_get_full_section_contents): New declaration.
10557 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10558 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10559 gdb_bfd_get_full_section_contents.
10560
10561 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10562
10563 * exec.c (build_section_table): Replace internal_error with
10564 gdb_assert.
10565 (section_table_xfer_memory_partial): Likewise.
10566 * mdebugread.c (parse_partial_symbols): Likewise.
10567 * psymtab.c (lookup_partial_symbol): Likewise.
10568 * utils.c (wrap_here): Likewise.
10569
10570 2020-04-02 Tom Tromey <tromey@adacore.com>
10571
10572 * f-lang.c (build_fortran_types): Use arch_type to initialize
10573 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10574
10575 2020-04-02 Tom Tromey <tromey@adacore.com>
10576
10577 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10578 of attributes.
10579
10580 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10581 Bernd Edlinger <bernd.edlinger@hotmail.de>
10582 Tom Tromey <tromey@adacore.com>
10583
10584 * buildsym.c (buildsym_compunit::record_line): Remove
10585 deduplication code.
10586
10587 2020-04-02 Tom de Vries <tdevries@suse.de>
10588
10589 PR ada/24671
10590 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10591
10592 2020-04-02 Tom de Vries <tdevries@suse.de>
10593
10594 * dwarf2/read.c (dwarf2_gdb_index_functions,
10595 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10596 NULL.
10597 * psymtab.c (psym_lookup_global_symbol_language): New function.
10598 (psym_functions): Init psym_lookup_global_symbol_language with
10599 psym_lookup_global_symbol_language.
10600 * symfile-debug.c (debug_sym_quick_functions): Init
10601 lookup_global_symbol_language with NULL.
10602 * symfile.c (set_initial_language): Remove fixme comment.
10603 * symfile.h (struct quick_symbol_functions): Add
10604 lookup_global_symbol_language.
10605 * symtab.c (find_quick_global_symbol_language): New function.
10606 (find_main_name): Use find_quick_global_symbol_language.
10607
10608 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10609
10610 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10611
10612 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10613
10614 * buildsym.c (record_line): Fix undefined behavior and preserve
10615 lines at eof.
10616
10617 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10618
10619 * buildsym.c (record_line): Fix the resizing condition.
10620
10621 2020-04-01 Tom Tromey <tom@tromey.com>
10622
10623 * value.h (value_literal_complex): Add comment.
10624 * valops.c (value_literal_complex): Refer to value.h.
10625
10626 2020-04-01 Tom Tromey <tom@tromey.com>
10627
10628 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10629 (scalar_type): New rule, from typebase.
10630 (typebase): Use scalar_type. Recognize complex types.
10631 (field_name): Handle FLOAT_KEYWORD.
10632 (ident_tokens): Add _Complex and __complex__.
10633
10634 2020-04-01 Tom Tromey <tom@tromey.com>
10635
10636 PR exp/25299:
10637 * valarith.c (promotion_type, complex_binop): New functions.
10638 (scalar_binop): Handle complex numbers. Use promotion_type.
10639 (value_pos, value_neg, value_complement): Handle complex numbers.
10640
10641 2020-04-01 Tom Tromey <tom@tromey.com>
10642
10643 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10644 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10645 (parse_number): Handle complex numbers.
10646
10647 2020-04-01 Tom Tromey <tom@tromey.com>
10648
10649 * c-valprint.c (c_decorations): Change complex suffix to "i".
10650
10651 2020-04-01 Tom Tromey <tom@tromey.com>
10652
10653 * valprint.c (generic_value_print_complex): Use accessors.
10654 * value.h (value_real_part, value_imaginary_part): Declare.
10655 * valops.c (value_real_part, value_imaginary_part): New
10656 functions.
10657 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10658
10659 2020-04-01 Tom Tromey <tom@tromey.com>
10660
10661 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10662 (read_range_type): Update.
10663 * mdebugread.c (basic_type): Update.
10664 * go-lang.c (build_go_types): Use init_complex_type.
10665 * gdbtypes.h (struct main_type) <complex_type>: New member.
10666 (init_complex_type): Update.
10667 (arch_complex_type): Don't declare.
10668 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10669 Make name if none given. Use alloc_type_copy. Look for cached
10670 complex type.
10671 (arch_complex_type): Remove.
10672 (gdbtypes_post_init): Use init_complex_type.
10673 * f-lang.c (build_fortran_types): Use init_complex_type.
10674 * dwarf2/read.c (read_base_type): Update.
10675 * d-lang.c (build_d_types): Use init_complex_type.
10676 * ctfread.c (read_base_type): Update.
10677
10678 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10679
10680 * infrun.c (stop_all_threads): Update assertion, plus when
10681 stopping threads, take into account that we might be trying
10682 to stop an all-stop target.
10683 (stop_waiting): Call 'stop_all_threads' if there exists a
10684 non-stop target.
10685
10686 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10687
10688 * target.h (exists_non_stop_target): New function declaration.
10689 * target.c (exists_non_stop_target): New function.
10690
10691 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10692
10693 PR gdb/24789
10694 * eval.c (is_integral_or_integral_reference): New function.
10695 (evaluate_subexp_standard): Allow integer references in
10696 pointer arithmetic.
10697
10698 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10699
10700 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10701 check for no ptid in the stop reply when the target is non-stop.
10702
10703 2020-04-01 Tom Tromey <tromey@adacore.com>
10704
10705 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10706 "name" parameter to rvalue reference. Initialize m_name_holder.
10707 <lookup_name_info>: New overloads.
10708 <name>: Return gdb::string_view.
10709 <c_str>: New method.
10710 <make_ignore_params>: Update.
10711 <search_name_hash>: Update.
10712 <language_lookup_name>: Return const char *.
10713 <m_name>: Change type.
10714 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10715 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10716 (lookup_name_info::match_any): Update.
10717 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10718 Update.
10719 * minsyms.c (linkage_name_str): Update.
10720 * language.c (default_symbol_name_matcher): Update.
10721 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10722 Update.
10723 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10724 (ada_lookup_name_info::ada_lookup_name_info): Update.
10725 (literal_symbol_name_matcher): Update.
10726
10727 2020-04-01 Tom Tromey <tromey@adacore.com>
10728
10729 * psymtab.c (psymtab_search_name): Remove function.
10730 (psym_lookup_symbol): Create search name and lookup name here.
10731 (lookup_partial_symbol): Remove "name" parameter; add
10732 lookup_name.
10733 (psym_expand_symtabs_for_function): Update.
10734
10735 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10736
10737 PR tui/25597:
10738 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10739
10740 2020-03-31 Tom Tromey <tromey@adacore.com>
10741
10742 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10743 memcpy.
10744
10745 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10746
10747 * features/riscv/32bit-csr.xml: Regenerated.
10748 * features/riscv/64bit-csr.xml: Regenerated.
10749
10750 2020-03-30 Tom Tromey <tromey@adacore.com>
10751
10752 * ada-valprint.c (print_variant_part): Update.
10753 * ada-lang.h (ada_which_variant_applies): Update.
10754 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10755 outer_valaddr parameters; replace with "outer" value parameter.
10756 (to_fixed_variant_branch_type): Update.
10757
10758 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10759
10760 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10761 <list>. Remove inclusion of observable.h.
10762 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10763 (struct arch_lwp_info): New struct.
10764 (class ppc_linux_dreg_interface): New class.
10765 (struct ppc_linux_process_info): New struct.
10766 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10767 <low_new_clone, low_forget_process, low_prepare_to_resume>
10768 <copy_thread_dreg_state, mark_thread_stale>
10769 <mark_debug_registers_changed, register_hw_breakpoint>
10770 <clear_hw_breakpoint, register_wp, clear_wp>
10771 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10772 <num_memory_accesses, get_trigger_type>
10773 <create_watchpoint_request, hwdebug_point_cmp>
10774 <init_arch_lwp_info, get_arch_lwp_info>
10775 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10776 methods.
10777 <struct ptid_hash>: New inner struct.
10778 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10779 members.
10780 (saved_dabr_value, hwdebug_info, max_slots_number)
10781 (struct hw_break_tuple, struct thread_points, ppc_threads)
10782 (have_ptrace_hwdebug_interface)
10783 (hwdebug_find_thread_points_by_tid)
10784 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10785 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10786 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10787 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10788 use m_dreg_interface.
10789 (hwdebug_point_cmp): Change to...
10790 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10791 reference arguments instead of pointers.
10792 (ppc_linux_nat_target::ranged_break_num_registers): Use
10793 m_dreg_interface.
10794 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10795 m_dreg_interface. Call register_hw_breakpoint.
10796 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10797 m_dreg_interface. Call clear_hw_breakpoint.
10798 (get_trigger_type): Change to...
10799 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10800 comment.
10801 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10802 use m_dreg_interface. Call register_hw_breakpoint.
10803 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10804 use m_dreg_interface. Call clear_hw_breakpoint.
10805 (can_use_watchpoint_cond_accel): Change to...
10806 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10807 method. Update comment, use m_dreg_interface and
10808 m_process_info.
10809 (calculate_dvc): Change to...
10810 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10811 m_dreg_interface.
10812 (num_memory_accesses): Change to...
10813 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10814 (check_condition): Change to...
10815 (ppc_linux_nat_target::check_condition): ...this method.
10816 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10817 comment, use m_dreg_interface.
10818 (create_watchpoint_request): Change to...
10819 (ppc_linux_nat_target::create_watchpoint_request): ...this
10820 method. Use m_dreg_interface.
10821 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10822 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10823 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10824 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10825 (ppc_linux_nat_target::low_forget_process)
10826 (ppc_linux_nat_target::low_new_fork)
10827 (ppc_linux_nat_target::low_new_clone)
10828 (ppc_linux_nat_target::low_delete_thread)
10829 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10830 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10831 only call mark_thread_stale.
10832 (ppc_linux_thread_exit): Remove.
10833 (ppc_linux_nat_target::stopped_data_address): Change to...
10834 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10835 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10836 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10837 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10838 comment. Call low_stopped_data_address.
10839 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10840 m_dreg_interface.
10841 (ppc_linux_nat_target::masked_watch_num_registers): Use
10842 m_dreg_interface.
10843 (ppc_linux_nat_target::copy_thread_dreg_state)
10844 (ppc_linux_nat_target::mark_thread_stale)
10845 (ppc_linux_nat_target::mark_debug_registers_changed)
10846 (ppc_linux_nat_target::register_hw_breakpoint)
10847 (ppc_linux_nat_target::clear_hw_breakpoint)
10848 (ppc_linux_nat_target::register_wp)
10849 (ppc_linux_nat_target::clear_wp)
10850 (ppc_linux_nat_target::init_arch_lwp_info)
10851 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10852 (_initialize_ppc_linux_nat): Remove observer callback.
10853
10854 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10855
10856 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10857 (ppc_linux_nat_target::auxv_parse)
10858 (ppc_linux_nat_target::read_description)
10859 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10860 Move up.
10861
10862 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10863
10864 * linux-nat.h (low_new_clone): New method.
10865 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10866
10867 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10868
10869 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10870 (dbx_expand_psymtab): ... this.
10871 (start_psymtab): Update.
10872 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10873 (mdebug_expand_psymtab): ... this.
10874 (parse_partial_symbols): Update.
10875 (new_psymtab): Update.
10876 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10877 (xcoff_expand_psymtab): ... this.
10878 (xcoff_start_psymtab): Update.
10879
10880 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10881
10882 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10883 <expand_dependencies>: ... this.
10884 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10885 (partial_symtab::expand_dependencies): ... this.
10886 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10887 Update.
10888 (dwarf2_psymtab::expand_psymtab): Update.
10889 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10890 * mdebugread.c (psymtab_to_symtab_1): Update.
10891 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10892
10893 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10894
10895 * psympriv.h (discard_psymtab): Remove.
10896 * dbxread.c (dbx_end_psymtab): Update.
10897 * xcoffread.c (xcoff_end_psymtab): Update.
10898
10899 2020-03-28 Tom Tromey <tom@tromey.com>
10900
10901 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10902 comment.
10903
10904 2020-03-28 Tom Tromey <tom@tromey.com>
10905
10906 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10907
10908 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10909
10910 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10911
10912 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10913
10914 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10915
10916 2020-03-26 Tom Tromey <tom@tromey.com>
10917
10918 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10919 (mark_common_block_symbol_computed, read_tag_string_type)
10920 (attr_to_dynamic_prop, read_subrange_type): Update.
10921 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10922 to be methods on struct attribute.
10923 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10924 (read_call_site_scope, partial_die_info::read)
10925 (partial_die_info::read, lookup_die_type, follow_die_ref):
10926 Update.
10927 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10928 from dwarf2_get_ref_die_offset.
10929 (attribute::constant_value): New method, from
10930 dwarf2_get_attr_constant_value.
10931 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10932 Declare method.
10933 <constant_value>: New method.
10934
10935 2020-03-26 Tom Tromey <tom@tromey.com>
10936
10937 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10938 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10939 (dwarf_type_encoding_name): Move to stringify.c.
10940 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10941 * dwarf2/stringify.c: New file.
10942 * dwarf2/stringify.h: New file.
10943
10944 2020-03-26 Tom Tromey <tom@tromey.com>
10945
10946 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10947 Rewrite.
10948
10949 2020-03-26 Tom Tromey <tom@tromey.com>
10950
10951 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10952 methods.
10953 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10954 (lookup_ranges_base): Likewise.
10955 (read_cutu_die_from_dwo, read_full_die_1): Update.
10956
10957 2020-03-26 Tom Tromey <tom@tromey.com>
10958
10959 * dwarf2/read.c (read_import_statement, read_file_scope)
10960 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10961 (read_lexical_block_scope, read_call_site_scope)
10962 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10963 (handle_struct_member_die, process_structure_scope)
10964 (update_enumeration_type_from_children)
10965 (process_enumeration_scope, read_array_type, read_common_block)
10966 (read_namespace, read_module, read_subroutine_type): Update.
10967 (sibling_die): Remove.
10968
10969 2020-03-26 Tom Tromey <tom@tromey.com>
10970
10971 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10972 (build_type_psymtabs_reader, read_structure_type)
10973 (read_enumeration_type, read_full_die_1): Update.
10974 (dwarf2_attr_no_follow): Move to die.h.
10975 * dwarf2/die.h (struct die_info) <attr>: New method.
10976
10977 2020-03-26 Tom Tromey <tom@tromey.com>
10978
10979 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10980 <base_address>: Now an optional.
10981 (dwarf2_find_base_address, dwarf2_rnglists_process)
10982 (dwarf2_ranges_process, fill_in_loclist_baton)
10983 (dwarf2_symbol_mark_computed): Update.
10984
10985 2020-03-26 Tom Tromey <tom@tromey.com>
10986
10987 * dwarf2/read.c (struct die_info): Move to die.h.
10988 * dwarf2/die.h: New file.
10989
10990 2020-03-26 Tom Tromey <tom@tromey.com>
10991
10992 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10993 * dwarf2/read.c
10994 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10995 Move to line-header.c.
10996 (read_checked_initial_length_and_offset, read_formatted_entries):
10997 Likewise.
10998 (dwarf_decode_line_header): Split into two.
10999 * dwarf2/line-header.c
11000 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11001 Move from read.c.
11002 (read_checked_initial_length_and_offset, read_formatted_entries):
11003 Likewise.
11004 (dwarf_decode_line_header): New function, split from read.c.
11005
11006 2020-03-26 Tom Tromey <tom@tromey.com>
11007
11008 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11009 Declare method.
11010 * dwarf2/read.c (read_attribute_value): Update.
11011 (dwarf2_per_objfile::read_line_string): Rename from
11012 read_indirect_line_string.
11013 (read_formatted_entries): Update.
11014
11015 2020-03-26 Tom Tromey <tom@tromey.com>
11016
11017 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11018 variable.
11019
11020 2020-03-26 Tom Tromey <tom@tromey.com>
11021
11022 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11023 const.
11024 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11025 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11026 parameter const.
11027
11028 2020-03-26 Tom Tromey <tom@tromey.com>
11029
11030 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11031 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11032 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11033 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11034
11035 2020-03-26 Tom Tromey <tom@tromey.com>
11036
11037 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11038 file_names_size, file_full_name, file_file_name>: Use const.
11039 <file_name_at, file_names>: Add const overload.
11040 * dwarf2/line-header.c (line_header::file_file_name)
11041 (line_header::file_full_name): Update.
11042
11043 2020-03-26 Tom Tromey <tom@tromey.com>
11044
11045 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11046 (macro_start_file, consume_improper_spaces)
11047 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11048 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11049 (dwarf_decode_macros): Move to macro.c.
11050 * dwarf2/macro.c: New file.
11051 * dwarf2/macro.h: New file.
11052 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11053
11054 2020-03-26 Tom Tromey <tom@tromey.com>
11055
11056 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11057 method.
11058 * dwarf2/section.c: New method. From
11059 read_indirect_string_at_offset_from.
11060 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11061 (read_indirect_string_at_offset_from): Move to section.c.
11062 (read_indirect_string_at_offset): Rewrite.
11063 (read_indirect_line_string_at_offset): Remove.
11064 (read_indirect_string, read_indirect_line_string)
11065 (dwarf_decode_macro_bytes): Update.
11066
11067 2020-03-26 Tom Tromey <tom@tromey.com>
11068
11069 * dwarf2/section.h (struct dwarf2_section_info)
11070 <overload_complaint>: Declare.
11071 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11072 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11073 Rename from dwarf2_section_buffer_overflow_complaint.
11074 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11075 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11076
11077 2020-03-26 Tom Tromey <tom@tromey.com>
11078
11079 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11080 Declare.
11081 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11082 Move from read.c.
11083 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11084 to section.c.
11085
11086 2020-03-26 Tom Tromey <tom@tromey.com>
11087
11088 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11089
11090 2020-03-26 Tom Tromey <tom@tromey.com>
11091
11092 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11093 "builder".
11094 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11095 parameter.
11096 (dwarf_decode_macros): Update.
11097
11098 2020-03-26 Tom Tromey <tom@tromey.com>
11099
11100 * dwarf2/read.c (read_attribute_value): Update.
11101 (read_indirect_string_from_dwz): Move to dwz.c; change into
11102 method.
11103 (dwarf_decode_macro_bytes): Update.
11104 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11105 * dwarf2/dwz.c: New file.
11106 * Makefile.in (COMMON_SFILES): Add dwz.c.
11107
11108 2020-03-26 Tom Tromey <tom@tromey.com>
11109
11110 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11111 * dwarf2/read.c: Add include.
11112 * dwarf2/index-write.c: Add include.
11113 * dwarf2/index-cache.c: Add include.
11114 * dwarf2/dwz.h: New file.
11115
11116 2020-03-25 Tom Tromey <tom@tromey.com>
11117
11118 * compile/compile-object-load.c (get_out_value_type): Mention
11119 correct symbol name in error message.
11120
11121 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11122
11123 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11124
11125 2020-03-25 Tom de Vries <tdevries@suse.de>
11126
11127 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11128 * symmisc.c (dump_symtab_1): Print user and includes fields.
11129 (maintenance_info_symtabs): Same.
11130
11131 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11132
11133 PR gdb/25534
11134 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11135 (riscv_regcache_cooked_write): New function.
11136 (riscv_push_dummy_call): Use new function.
11137 (riscv_return_value): Likewise.
11138
11139 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11140
11141 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11142 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11143 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11144 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11145 * infrun.c (follow_fork): Likewise.
11146 (follow_fork_inferior): Likewise.
11147 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11148 * linux-nat.h (class linux_nat_target): Likewise.
11149 * remote.c (class remote_target) <follow_fork>: Likewise.
11150 (remote_target::follow_fork): Likewise.
11151 * target-delegates.c: Re-generate.
11152 * target.c (default_follow_fork): Likewise.
11153 (target_follow_fork): Likewise.
11154 * target.h (struct target_ops) <follow_fork>: Likewise.
11155 (target_follow_fork): Likewise.
11156
11157 2020-03-24 Tom de Vries <tdevries@suse.de>
11158
11159 * psymtab.c (maintenance_info_psymtabs): Print user field.
11160
11161 2020-03-20 Tom Tromey <tromey@adacore.com>
11162
11163 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11164 const.
11165 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11166 const.
11167
11168 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11169
11170 * ptrace.m4: Don't check for ptrace declaration.
11171 * config.in: Re-generate.
11172 * configure: Re-generate.
11173 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11174 not defined.
11175
11176 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11177
11178 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11179 `PTRACE_TYPE_RET'.
11180 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11181 * sparc-nat.c (gdb_ptrace): Likewise.
11182 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11183
11184 2020-03-20 Tom Tromey <tromey@adacore.com>
11185
11186 * c-exp.y (lex_one_token): Fix assert.
11187
11188 2020-03-20 Tom Tromey <tromey@adacore.com>
11189
11190 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11191 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11192 strncpy call.
11193
11194 2020-03-20 Tom Tromey <tromey@adacore.com>
11195
11196 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11197
11198 2020-03-20 Tom Tromey <tromey@adacore.com>
11199
11200 * ada-valprint.c (print_variant_part): Remove parameters; switch
11201 to value-based API.
11202 (print_field_values): Likewise.
11203 (ada_val_print_struct_union): Likewise.
11204 (ada_value_print_1): Update.
11205
11206 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11207
11208 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11209 nbsd_nat_target instead of inf_ptrace_target.
11210 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11211 nbsd_nat_target.
11212
11213 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11214
11215 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11216 it to the ptrace call.
11217 * (store_registers): Likewise.
11218
11219 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11220
11221 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11222 it to the ptrace call.
11223 * (store_registers): Likewise.
11224
11225 2020-03-19 Luis Machado <luis.machado@linaro.org>
11226
11227 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11228 valid, fetch vg value from ptrace.
11229
11230 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11231 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11232 * inf-ptrace.c: Likewise.
11233 * (gdb_ptrace): Add.
11234 * (inf_ptrace_target::resume): Update.
11235 * (inf_ptrace_target::xfer_partial): Likewise.
11236 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11237 * (inf_ptrace_peek_poke): Update.
11238
11239 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11240
11241 * x86-bsd-nat.c (gdb_ptrace): New.
11242 * (x86bsd_dr_set): Add new argument `ptid'.
11243 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11244 x86bsd_dr_set_addr): Update.
11245
11246 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11247
11248 * remote.c (remote_target::process_stop_reply): Handle events for
11249 all threads differently.
11250
11251 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11252
11253 * completer.c (completion_tracker::remove_completion): Define new
11254 function.
11255 * completer.h (completion_tracker::remove_completion): Declare new
11256 function.
11257 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11258 when adding a C++ function symbol.
11259
11260 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11261
11262 * completer.c (completion_tracker::completion_hash_entry): Define
11263 new class.
11264 (advance_to_filename_complete_word_point): Call
11265 recompute_lowest_common_denominator.
11266 (completion_tracker::completion_tracker): Call discard_completions
11267 to setup the hash table.
11268 (completion_tracker::discard_completions): Allow for being called
11269 from the constructor, pass new equal function, and element deleter
11270 when constructing the hash table. Initialise new class member
11271 variables.
11272 (completion_tracker::maybe_add_completion): Remove use of
11273 m_entries_vec, and store more information into m_entries_hash.
11274 (completion_tracker::recompute_lcd_visitor): New function, most
11275 content taken from...
11276 (completion_tracker::recompute_lowest_common_denominator):
11277 ...here, this now just visits each item in the hash calling the
11278 above visitor.
11279 (completion_tracker::build_completion_result): Remove use of
11280 m_entries_vec, call recompute_lowest_common_denominator.
11281 * completer.h (completion_tracker::have_completions): Remove use
11282 of m_entries_vec.
11283 (completion_tracker::completion_hash_entry): Declare new class.
11284 (completion_tracker::recompute_lowest_common_denominator): Change
11285 function signature.
11286 (completion_tracker::recompute_lcd_visitor): Declare new function.
11287 (completion_tracker::m_entries_vec): Delete.
11288 (completion_tracker::m_entries_hash): Initialize to NULL.
11289 (completion_tracker::m_lowest_common_denominator_valid): New
11290 member variable.
11291 (completion_tracker::m_lowest_common_denominator_max_length): New
11292 member variable.
11293
11294 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11295
11296 * regformats/regdef.h: Put reg in gdb namespace.
11297
11298 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11299
11300 * i386-bsd-nat.c (gdb_ptrace): New.
11301 * (i386bsd_fetch_inferior_registers,
11302 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11303 * (i386bsd_fetch_inferior_registers,
11304 i386bsd_store_inferior_registers) Use gdb_ptrace.
11305
11306 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11307
11308 * amd64-bsd-nat.c (gdb_ptrace): New.
11309 * (amd64bsd_fetch_inferior_registers,
11310 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11311 * (amd64bsd_fetch_inferior_registers,
11312 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11313
11314 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11315
11316 * user-regs.c (user_reg::read): Rename to...
11317 (user_reg::xread): ...this.
11318 * (append_user_reg): Rename argument `read' to `xread'.
11319 * (user_reg_add_builtin): Likewise.
11320 * (user_reg_add): Likewise.
11321 * (value_of_user_reg): Likewise.
11322
11323 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11324
11325 * sparc-nat.c (gdb_ptrace): New.
11326 * sparc-nat.c (sparc_fetch_inferior_registers)
11327 (sparc_store_inferior_registers) Remove obsolete comment.
11328 * sparc-nat.c (sparc_fetch_inferior_registers)
11329 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11330 * sparc-nat.c (sparc_fetch_inferior_registers)
11331 (sparc_store_inferior_registers) Use gdb_ptrace.
11332
11333 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11334
11335 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11336 it to the ptrace call.
11337 * sh-nbsd-nat.c (store_registers): Likewise.
11338
11339 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11340
11341 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11342 nbsd_nat_target instead of inf_ptrace_target.
11343 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11344 nbsd_nat_target.
11345
11346 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11347
11348 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11349
11350 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11351
11352 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11353 <sys/sysctl.h>.
11354 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11355
11356 2020-03-17 Tom de Vries <tdevries@suse.de>
11357
11358 PR gdb/23710
11359 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11360 fields.
11361 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11362 fields.
11363 (process_imported_unit_die): Skip import of c++ CUs.
11364
11365 2020-03-16 Tom Tromey <tom@tromey.com>
11366
11367 * p-valprint.c (pascal_object_print_value): Initialize
11368 base_value.
11369
11370 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11371 Shahab Vahedi <shahab@synopsys.com>
11372
11373 * Makefile.in: Add arch/arc.o
11374 * configure.tgt: Likewise.
11375 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11376 (_initialize_arc_tdep): Don't initialize old target descriptions.
11377 (arc_read_description): New function to cache target descriptions.
11378 * arc-tdep.h (arc_read_description): Add proto type.
11379 * arch/arc.c: New file.
11380 * arch/arc.h: Likewise.
11381 * features/Makefile: Replace old target descriptions with new.
11382 * features/arc-arcompact.c: Remove.
11383 * features/arc-arcompact.xml: Likewise.
11384 * features/arc-v2.c: Likewise
11385 * features/arc-v2.xml: Likewise
11386 * features/arc/aux-arcompact.xml: New file.
11387 * features/arc/aux-v2.xml: Likewise.
11388 * features/arc/core-arcompact.xml: Likewise.
11389 * features/arc/core-v2.xml: Likewise.
11390 * features/arc/aux-arcompact.c: Generate.
11391 * features/arc/aux-v2.c: Likewise.
11392 * features/arc/core-arcompact.c: Likewise.
11393 * features/arc/core-v2.c: Likewise.
11394 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11395
11396 2020-03-16 Tom Tromey <tromey@adacore.com>
11397
11398 PR gdb/25663:
11399 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11400 putting value into bcache.
11401
11402 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11403
11404 PR gdb/21500
11405 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11406 to...
11407 (amd64_windows_init_abi_common): ... this. Don't set size of
11408 long type.
11409 (amd64_windows_init_abi): New function.
11410 (amd64_cygwin_init_abi): New function.
11411 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11412 the Cygwin OS ABI.
11413 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11414 comment.
11415
11416 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11417
11418 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11419 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11420 (pe_import_directory_entry): New struct type.
11421 (is_linked_with_cygwin_dll): New function.
11422 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11423 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11424 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11425
11426 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11427
11428 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11429 i386_cygwin_core_osabi_sniffer.
11430
11431 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11432
11433 * i386-cygwin-tdep.c: Rename to...
11434 * i386-windows-tdep.c: ... this.
11435 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11436 i386-windows-tdep.c.
11437 * configure.tgt: Likewise.
11438
11439 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11440
11441 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11442 * osabi.c (gdb_osabi_names): Add "Windows".
11443 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11444 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11445 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11446 i386_cygwin_osabi_sniffer.
11447 (_initialize_i386_cygwin_tdep): Register OS ABI
11448 GDB_OSABI_WINDOWS for i386.
11449 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11450 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11451 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11452 for x86-64.
11453 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11454 when the target matches '*-*-mingw*'.
11455
11456 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11457
11458 * defs.h (enum gdb_osabi): Move to...
11459 * osabi.h (enum gdb_osabi): ... here.
11460 * gdbarch.sh: Include osabi.h in gdbarch.h.
11461 * gdbarch.h: Re-generate.
11462
11463 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11464
11465 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11466 function.
11467 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11468
11469 2020-03-14 Tom Tromey <tom@tromey.com>
11470
11471 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11472 for C++.
11473 (c_type_print_modifier): Likewise. Add "language" parameter.
11474 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11475 (c_type_print_base_1): Update.
11476 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11477 constants.
11478 * type-stack.c (type_stack::insert): Handle tp_atomic and
11479 tp_restrict.
11480 (type_stack::follow_type_instance_flags): Likewise.
11481 (type_stack::follow_types): Likewise. Merge type-following code.
11482 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11483 (space_identifier, cv_with_space_id)
11484 (const_or_volatile_or_space_identifier_noopt)
11485 (const_or_volatile_or_space_identifier): Remove.
11486 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11487 rules.
11488 (ptr_operator, typebase): Update.
11489 (enum token_flag) <FLAG_C>: New constant.
11490 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11491 "_Atomic".
11492 (lex_one_token): Handle FLAG_C.
11493
11494 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11495
11496 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11497 it to the ptrace call.
11498 * m68k-bsd-nat.c (store_registers): Likewise.
11499
11500 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11501
11502 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11503 gdb_byte *.
11504 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11505 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11506 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11507
11508 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11509
11510 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11511 nbsd_nat_target instead of inf_ptrace_target.
11512 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11513 nbsd_nat_target.
11514
11515 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11516
11517 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11518 register_t.
11519
11520 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11521
11522 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11523 it to the ptrace call.
11524 * alpha-bsd-nat.c (store_registers): Likewise.
11525
11526 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11527
11528 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11529 includes.
11530 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11531 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11532 fill_fpregset): Likewise.
11533
11534 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11535
11536 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11537 nbsd_nat_target instead of inf_ptrace_target.
11538 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11539 nbsd_nat_target.
11540
11541 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11542
11543 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11544 register_t.
11545
11546 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11547
11548 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11549 it to the ptrace call.
11550 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11551 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11552 * arm-nbsd-nat.c (store_register): Likewise.
11553 * arm-nbsd-nat.c (store_regs): Likewise.
11554 * arm-nbsd-nat.c (store_fp_register): Likewise.
11555 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11556
11557 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11558
11559 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11560 nbsd_nat_target instead of inf_ptrace_target.
11561 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11562 nbsd_nat_target.
11563
11564 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11565
11566 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11567 it to the ptrace call.
11568 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11569
11570 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11571
11572 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11573 it to the ptrace call.
11574 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11575
11576 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11577
11578 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11579 gdb_byte *.
11580 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11581
11582 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11583
11584 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11585 instead of inf_ptrace_target.
11586 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11587 nbsd_nat_target.
11588
11589 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11590
11591 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11592 register_t.
11593
11594 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11595
11596 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11597 register_t.
11598
11599 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11600
11601 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11602 register_t.
11603
11604 2020-03-13 Tom Tromey <tom@tromey.com>
11605
11606 * value.h (val_print): Don't declare.
11607 * valprint.h (val_print_array_elements)
11608 (val_print_scalar_formatted, generic_val_print): Don't declare.
11609 * valprint.c (generic_val_print_array): Take a struct value.
11610 (generic_val_print_ptr, generic_val_print_memberptr)
11611 (generic_val_print_bool, generic_val_print_int)
11612 (generic_val_print_char, generic_val_print_complex)
11613 (generic_val_print): Remove.
11614 (generic_value_print): Update.
11615 (do_val_print): Remove unused parameters. Don't call
11616 la_val_print.
11617 (val_print): Remove.
11618 (common_val_print): Update. Don't call value_check_printable.
11619 (val_print_scalar_formatted, val_print_array_elements): Remove.
11620 * rust-lang.c (rust_val_print): Remove.
11621 (rust_language_defn): Update.
11622 * p-valprint.c (pascal_val_print): Remove.
11623 (pascal_value_print_inner): Update.
11624 (pascal_object_print_val_fields, pascal_object_print_val):
11625 Remove.
11626 (pascal_object_print_static_field): Update.
11627 * p-lang.h (pascal_val_print): Don't declare.
11628 * p-lang.c (pascal_language_defn): Update.
11629 * opencl-lang.c (opencl_language_defn): Update.
11630 * objc-lang.c (objc_language_defn): Update.
11631 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11632 * m2-lang.h (m2_val_print): Don't declare.
11633 * m2-lang.c (m2_language_defn): Update.
11634 * language.h (struct language_defn) <la_val_print>: Remove.
11635 * language.c (unk_lang_value_print_inner): Rename. Change
11636 argument types.
11637 (unknown_language_defn, auto_language_defn): Update.
11638 * go-valprint.c (go_val_print): Remove.
11639 * go-lang.h (go_val_print): Don't declare.
11640 * go-lang.c (go_language_defn): Update.
11641 * f-valprint.c (f_val_print): Remove.
11642 * f-lang.h (f_value_print): Don't declare.
11643 * f-lang.c (f_language_defn): Update.
11644 * d-valprint.c (d_val_print): Remove.
11645 * d-lang.h (d_value_print): Don't declare.
11646 * d-lang.c (d_language_defn): Update.
11647 * cp-valprint.c (cp_print_value_fields)
11648 (cp_print_value_fields_rtti, cp_print_value): Remove.
11649 (cp_print_static_field): Update.
11650 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11651 (c_val_print_struct, c_val_print_union, c_val_print_int)
11652 (c_val_print_memberptr, c_val_print): Remove.
11653 * c-lang.h (c_val_print_array, cp_print_value_fields)
11654 (cp_print_value_fields_rtti): Don't declare.
11655 * c-lang.c (c_language_defn, cplus_language_defn)
11656 (asm_language_defn, minimal_language_defn): Update.
11657 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11658 (ada_val_print_enum): Take a struct value.
11659 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11660 (ada_val_print): Remove.
11661 (ada_value_print_1): Update.
11662 (printable_val_type): Remove.
11663 * ada-lang.h (ada_val_print): Don't declare.
11664 * ada-lang.c (ada_language_defn): Update.
11665
11666 2020-03-13 Tom Tromey <tom@tromey.com>
11667
11668 * valprint.c (do_val_print): Update.
11669 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11670 a struct value.
11671 (value_to_value_object_no_release): Declare.
11672 * python/py-value.c (value_to_value_object_no_release): New
11673 function.
11674 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11675 struct value.
11676 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11677 function.
11678 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11679 a struct value.
11680 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11681 Declare.
11682 (gdbscm_apply_val_pretty_printer): Take a struct value.
11683 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11684 value.
11685 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11686 value.
11687 * extension-priv.h (struct extension_language_ops)
11688 <apply_val_pretty_printer>: Take a struct value.
11689 * cp-valprint.c (cp_print_value): Create a struct value.
11690 (cp_print_value): Update.
11691
11692 2020-03-13 Tom Tromey <tom@tromey.com>
11693
11694 * ada-valprint.c (print_field_values): Call common_val_print.
11695
11696 2020-03-13 Tom Tromey <tom@tromey.com>
11697
11698 * ada-valprint.c (val_print_packed_array_elements): Remove
11699 bitoffset and val parameters. Call common_val_print.
11700 (ada_val_print_string): Remove offset, address, and original_value
11701 parameters.
11702 (ada_val_print_array): Update.
11703 (ada_value_print_array): New function.
11704 (ada_value_print_1): Call it.
11705
11706 2020-03-13 Tom Tromey <tom@tromey.com>
11707
11708 * ada-valprint.c (ada_value_print): Use common_val_print.
11709
11710 2020-03-13 Tom Tromey <tom@tromey.com>
11711
11712 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11713
11714 2020-03-13 Tom Tromey <tom@tromey.com>
11715
11716 * ada-valprint.c (ada_value_print_num): New function.
11717 (ada_value_print_1): Use it.
11718
11719 2020-03-13 Tom Tromey <tom@tromey.com>
11720
11721 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11722
11723 2020-03-13 Tom Tromey <tom@tromey.com>
11724
11725 * ada-valprint.c (ada_value_print_ptr): New function.
11726 (ada_value_print_1): Use it.
11727
11728 2020-03-13 Tom Tromey <tom@tromey.com>
11729
11730 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11731 call common_val_print.
11732 (ada_val_print_1): Update.
11733 (ada_value_print_1): New function.
11734 (ada_value_print_inner): Rewrite.
11735
11736 2020-03-13 Tom Tromey <tom@tromey.com>
11737
11738 * cp-valprint.c (cp_print_value_fields): Update.
11739 (cp_print_value): New function.
11740
11741 2020-03-13 Tom Tromey <tom@tromey.com>
11742
11743 * m2-valprint.c (m2_value_print_inner): Use
11744 cp_print_value_fields.
11745 * cp-valprint.c (cp_print_value_fields): New function.
11746 * c-valprint.c (c_value_print_struct): New function.
11747 (c_value_print_inner): Use c_value_print_struct.
11748 * c-lang.h (cp_print_value_fields): Declare.
11749
11750 2020-03-13 Tom Tromey <tom@tromey.com>
11751
11752 * c-valprint.c (c_value_print_array): New function.
11753 (c_value_print_inner): Use it.
11754
11755 2020-03-13 Tom Tromey <tom@tromey.com>
11756
11757 * c-valprint.c (c_value_print_memberptr): New function.
11758 (c_value_print_inner): Use it.
11759
11760 2020-03-13 Tom Tromey <tom@tromey.com>
11761
11762 * c-valprint.c (c_value_print_int): New function.
11763 (c_value_print_inner): Use it.
11764
11765 2020-03-13 Tom Tromey <tom@tromey.com>
11766
11767 * c-valprint.c (c_value_print_ptr): New function.
11768 (c_value_print_inner): Use it.
11769
11770 2020-03-13 Tom Tromey <tom@tromey.com>
11771
11772 * c-valprint.c (c_value_print_inner): Rewrite.
11773
11774 2020-03-13 Tom Tromey <tom@tromey.com>
11775
11776 * valprint.c (generic_value_print_complex): New function.
11777 (generic_value_print): Use it.
11778
11779 2020-03-13 Tom Tromey <tom@tromey.com>
11780
11781 * valprint.c (generic_val_print_float): Don't call
11782 val_print_scalar_formatted.
11783 (generic_val_print, generic_value_print): Update.
11784
11785 2020-03-13 Tom Tromey <tom@tromey.com>
11786
11787 * valprint.c (generic_value_print_char): New function
11788 (generic_value_print): Use it.
11789
11790 2020-03-13 Tom Tromey <tom@tromey.com>
11791
11792 * valprint.c (generic_value_print_int): New function.
11793 (generic_value_print): Use it.
11794
11795 2020-03-13 Tom Tromey <tom@tromey.com>
11796
11797 * valprint.c (generic_value_print_bool): New function.
11798 (generic_value_print): Use it.
11799
11800 2020-03-13 Tom Tromey <tom@tromey.com>
11801
11802 * valprint.c (generic_val_print_func): Simplify.
11803 (generic_val_print, generic_value_print): Update.
11804
11805 2020-03-13 Tom Tromey <tom@tromey.com>
11806
11807 * valprint.c (generic_val_print_flags): Remove.
11808 (generic_val_print, generic_value_print): Update.
11809 (val_print_type_code_flags): Add original_value parameter.
11810
11811 2020-03-13 Tom Tromey <tom@tromey.com>
11812
11813 * valprint.c (generic_val_print): Update.
11814 (generic_value_print): Update.
11815 * valprint.c (generic_val_print_enum): Don't call
11816 val_print_scalar_formatted.
11817
11818 2020-03-13 Tom Tromey <tom@tromey.com>
11819
11820 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11821 * valprint.c (generic_value_print_ptr): New function.
11822
11823 2020-03-13 Tom Tromey <tom@tromey.com>
11824
11825 * valprint.c (generic_value_print): Rewrite.
11826
11827 2020-03-13 Tom Tromey <tom@tromey.com>
11828
11829 * p-valprint.c (pascal_object_print_value_fields)
11830 (pascal_object_print_value): New functions.
11831
11832 2020-03-13 Tom Tromey <tom@tromey.com>
11833
11834 * p-valprint.c (pascal_value_print_inner): Rewrite.
11835
11836 2020-03-13 Tom Tromey <tom@tromey.com>
11837
11838 * f-valprint.c (f_value_print_innner): Rewrite.
11839
11840 2020-03-13 Tom Tromey <tom@tromey.com>
11841
11842 * m2-valprint.c (m2_print_unbounded_array): New overload.
11843 (m2_print_unbounded_array): Update.
11844 (m2_print_array_contents): Take a struct value.
11845 (m2_value_print_inner): Rewrite.
11846
11847 2020-03-13 Tom Tromey <tom@tromey.com>
11848
11849 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11850 (d_value_print_inner): New function.
11851 * d-lang.h (d_value_print_inner): Declare.
11852 * d-lang.c (d_language_defn): Use d_value_print_inner.
11853
11854 2020-03-13 Tom Tromey <tom@tromey.com>
11855
11856 * go-valprint.c (go_value_print_inner): New function.
11857 * go-lang.h (go_value_print_inner): Declare.
11858 * go-lang.c (go_language_defn): Use go_value_print_inner.
11859
11860 2020-03-13 Tom Tromey <tom@tromey.com>
11861
11862 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11863 API.
11864 (rust_val_print): Rewrite.
11865 (rust_value_print_inner): New function, from rust_val_print.
11866 (rust_language_defn): Use rust_value_print_inner.
11867
11868 2020-03-13 Tom Tromey <tom@tromey.com>
11869
11870 * ada-valprint.c (ada_value_print_inner): New function.
11871 * ada-lang.h (ada_value_print_inner): Declare.
11872 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11873
11874 2020-03-13 Tom Tromey <tom@tromey.com>
11875
11876 * f-valprint.c (f_value_print_innner): New function.
11877 * f-lang.h (f_value_print_innner): Declare.
11878 * f-lang.c (f_language_defn): Use f_value_print_innner.
11879
11880 2020-03-13 Tom Tromey <tom@tromey.com>
11881
11882 * p-valprint.c (pascal_value_print_inner): New function.
11883 * p-lang.h (pascal_value_print_inner): Declare.
11884 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11885
11886 2020-03-13 Tom Tromey <tom@tromey.com>
11887
11888 * m2-valprint.c (m2_value_print_inner): New function.
11889 * m2-lang.h (m2_value_print_inner): Declare.
11890 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11891
11892 2020-03-13 Tom Tromey <tom@tromey.com>
11893
11894 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11895 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11896 * c-valprint.c (c_value_print_inner): New function.
11897 * c-lang.h (c_value_print_inner): Declare.
11898 * c-lang.c (c_language_defn, cplus_language_defn)
11899 (asm_language_defn, minimal_language_defn): Use
11900 c_value_print_inner.
11901
11902 2020-03-13 Tom Tromey <tom@tromey.com>
11903
11904 * p-valprint.c (pascal_object_print_value_fields): Now static.
11905 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11906
11907 2020-03-13 Tom Tromey <tom@tromey.com>
11908
11909 * c-valprint.c (c_val_print_array): Simplify.
11910
11911 2020-03-13 Tom Tromey <tom@tromey.com>
11912
11913 * valprint.c (value_print_array_elements): New function.
11914 * valprint.h (value_print_array_elements): Declare.
11915
11916 2020-03-13 Tom Tromey <tom@tromey.com>
11917
11918 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11919 * mips-tdep.c (mips_print_register): Use
11920 value_print_scalar_formatted.
11921
11922 2020-03-13 Tom Tromey <tom@tromey.com>
11923
11924 * valprint.h (value_print_scalar_formatted): Declare.
11925 * valprint.c (value_print_scalar_formatted): New function.
11926
11927 2020-03-13 Tom Tromey <tom@tromey.com>
11928
11929 * valprint.h (generic_value_print): Declare.
11930 * valprint.c (generic_value_print): New function.
11931
11932 2020-03-13 Tom Tromey <tom@tromey.com>
11933
11934 * valprint.c (do_val_print): Call la_value_print_inner, if
11935 available.
11936 * rust-lang.c (rust_language_defn): Update.
11937 * p-lang.c (pascal_language_defn): Update.
11938 * opencl-lang.c (opencl_language_defn): Update.
11939 * objc-lang.c (objc_language_defn): Update.
11940 * m2-lang.c (m2_language_defn): Update.
11941 * language.h (struct language_defn) <la_value_print_inner>: New
11942 member.
11943 * language.c (unknown_language_defn, auto_language_defn): Update.
11944 * go-lang.c (go_language_defn): Update.
11945 * f-lang.c (f_language_defn): Update.
11946 * d-lang.c (d_language_defn): Update.
11947 * c-lang.c (c_language_defn, cplus_language_defn)
11948 (asm_language_defn, minimal_language_defn): Update.
11949 * ada-lang.c (ada_language_defn): Update.
11950
11951 2020-03-13 Tom Tromey <tom@tromey.com>
11952
11953 * c-valprint.c (c_value_print): Use common_val_print.
11954
11955 2020-03-13 Tom Tromey <tom@tromey.com>
11956
11957 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11958
11959 2020-03-13 Tom Tromey <tom@tromey.com>
11960
11961 * f-valprint.c (f77_print_array_1, f_val_print): Use
11962 common_val_print.
11963
11964 2020-03-13 Tom Tromey <tom@tromey.com>
11965
11966 * riscv-tdep.c (riscv_print_one_register_info): Use
11967 common_val_print.
11968
11969 2020-03-13 Tom Tromey <tom@tromey.com>
11970
11971 * mi/mi-main.c (output_register): Use common_val_print.
11972
11973 2020-03-13 Tom Tromey <tom@tromey.com>
11974
11975 * infcmd.c (default_print_one_register_info): Use
11976 common_val_print.
11977
11978 2020-03-13 Tom Tromey <tom@tromey.com>
11979
11980 * valprint.h (common_val_print_checked): Declare.
11981 * valprint.c (common_val_print_checked): New function.
11982 * stack.c (print_frame_arg): Use common_val_print_checked.
11983
11984 2020-03-13 Tom Tromey <tom@tromey.com>
11985
11986 * valprint.c (do_val_print): New function, from val_print.
11987 (val_print): Use do_val_print.
11988 (common_val_print): Use do_val_print.
11989
11990 2020-03-13 Tom Tromey <tom@tromey.com>
11991
11992 * valprint.c (value_print): Use scoped_value_mark.
11993
11994 2020-03-13 Tom de Vries <tdevries@suse.de>
11995
11996 PR symtab/25646
11997 * psymtab.c (partial_symtab::partial_symtab): Don't set
11998 globals_offset and statics_offset. Push element onto
11999 current_global_psymbols and current_static_psymbols stacks.
12000 (concat): New function.
12001 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12002 element from current_global_psymbols and current_static_psymbols
12003 stacks. Concat popped elements to global_psymbols and
12004 static_symbols.
12005 (add_psymbol_to_list): Use current_global_psymbols and
12006 current_static_psymbols stacks.
12007 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12008 current_static_psymbols fields.
12009
12010 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12011
12012 * corelow.c (sniff_core_bfd): Remove.
12013 (class core_target) <m_core_vec>: Remove.
12014 (core_target::core_target): Update.
12015 (core_file_fns): Remove.
12016 (deprecated_add_core_fns): Remove.
12017 (default_core_sniffer): Remove.
12018 (sniff_core_bfd): Remove.
12019 (default_check_format): Remove.
12020 (gdb_check_format): Remove.
12021 (core_target_open): Update.
12022 (core_target::get_core_register_section): Update.
12023 (get_core_registers_cb): Update.
12024 (core_target::fetch_registers): Update.
12025 * gdbcore.h (struct core_fns): Remove.
12026 (deprecated_add_core_fns): Remove.
12027 (default_core_sniffer): Remove.
12028 (default_check_format): Remove.
12029
12030 2020-03-12 Tom Tromey <tom@tromey.com>
12031
12032 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12033 CORE_ADDR.
12034 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12035
12036 2020-03-12 Tom Tromey <tom@tromey.com>
12037
12038 * remote.c (remote_target::download_tracepoint)
12039 (remote_target::enable_tracepoint)
12040 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12041 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12042 sprintf_vma.
12043
12044 2020-03-12 Tom Tromey <tom@tromey.com>
12045
12046 * symfile-mem.c: Update CORE_ADDR size assert.
12047
12048 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12049
12050 * selftest.m4: Move to gdbsupport/.
12051 * acinclude.m4: Update path to selftest.m4.
12052
12053 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12054
12055 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12056 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12057 gdbarch-selfselftests.c and selftest-arch.c.
12058 (SUBDIR_UNITTESTS_OBS): Rename to...
12059 (SELFTESTS_OBS): ... this.
12060 (COMMON_SFILES): Remove disasm-selftests.c and
12061 gdbarch-selftests.c.
12062 * configure.ac: Don't add selftest-arch.{c,o} to
12063 CONFIG_{SRCS,OBS}.
12064 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12065 preprocessor conditions.
12066
12067 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12068
12069 * configure.ac: Don't source bfd/development.sh.
12070 * selftest.m4: Modify comment.
12071 * configure: Re-generate.
12072
12073 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12074
12075 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12076 not "true" or "false".
12077 * configure: Re-generate.
12078
12079 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12080
12081 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12082 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12083 renamed to arm_nbsd_supply_gregset.
12084 (fetch_register): Update to call arm_nbsd_supply_gregset.
12085 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12086 (arm_netbsd_nat_target::fetch_registers): Update.
12087 (fetch_elfcore_registers): Removed.
12088 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12089 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12090 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12091 not require NetBSD system headers.
12092 (arm_nbsd_regset): New struct.
12093 (arm_nbsd_iterate_over_regset_sections): New function.
12094 (arm_netbsd_init_abi_common): Updated to call
12095 set_gdbarch_iterate_over_regset_sections.
12096 * arm-nbsd-tdep.h: New file.
12097
12098 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12099
12100 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12101 recursion.
12102
12103 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12104
12105 * configure: Re-generate.
12106
12107 2020-03-11 Tom Tromey <tromey@adacore.com>
12108
12109 * ada-typeprint.c (print_choices): Fix comment.
12110
12111 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12112
12113 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12114 previous item in the list, when the list has no items.
12115
12116 2020-03-11 Tom de Vries <tdevries@suse.de>
12117
12118 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12119 PROP_LOCLIST handling code.
12120
12121 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12122
12123 * buildsym-legacy.c (record_line): Pass extra parameter to
12124 record_line.
12125 * buildsym.c (buildsym_compunit::record_line): Take an extra
12126 parameter, reduce duplication in the line table, and record the
12127 is_stmt flag in the line table.
12128 * buildsym.h (buildsym_compunit::record_line): Add extra
12129 parameter.
12130 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12131 non-statement lines.
12132 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12133 this to the symtab builder.
12134 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12135 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12136 through to dwarf_record_line_1.
12137 * infrun.c (process_event_stop_test): When stepping, don't stop at
12138 a non-statement instruction, and only refresh the step info when
12139 we land in the middle of a line's range. Also add an extra
12140 comment.
12141 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12142 field.
12143 * record-btrace.c (btrace_find_line_range): Only record lines
12144 marked as is-statement.
12145 * stack.c (frame_show_address): Show the frame address if we are
12146 in a non-statement sal.
12147 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12148 (maintenance_print_one_line_table): Print a header for the is_stmt
12149 column, and include is_stmt information in the output.
12150 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12151 preference to non-statements.
12152 (find_pcs_for_symtab_line): Prefer is-statement entries.
12153 (find_line_common): Likewise.
12154 * symtab.h (struct linetable_entry): Add is_stmt field.
12155 (struct symtab_and_line): Likewise.
12156 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12157 arranging the line table.
12158
12159 2020-03-07 Tom de Vries <tdevries@suse.de>
12160
12161 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12162 DIE.
12163
12164 2020-03-07 Tom Tromey <tom@tromey.com>
12165
12166 * valops.c (value_literal_complex): Remove obsolete comment.
12167 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12168 comment.
12169
12170 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12171
12172 * infrun.h: Forward-declare thread_info.
12173 (set_step_info): Add thread_info parameter, add doc.
12174 * infrun.c (set_step_info): Add thread_info parameter, move doc
12175 to header.
12176 * infrun.c (process_event_stop_test): Pass thread to
12177 set_step_info call.
12178 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12179 set_step_info.
12180 (prepare_one_step): Add thread_info parameter, pass it to
12181 set_step_frame and prepare_one_step (recursive) call.
12182 (step_1): Pass thread to prepare_one_step call.
12183 (step_command_fsm::should_stop): Pass thread to
12184 prepare_one_step.
12185 (until_next_fsm): Pass thread to set_step_frame call.
12186 (finish_command): Pass thread to set_step_info call.
12187
12188 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12189
12190 * windows-tdep.c (windows_solib_create_inferior_hook):
12191 Check if inferior is running.
12192
12193 2020-03-06 Tom de Vries <tdevries@suse.de>
12194
12195 * NEWS: Fix "the the".
12196 * ctfread.c: Same.
12197
12198 2020-03-06 Tom de Vries <tdevries@suse.de>
12199
12200 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12201
12202 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12203
12204 * .dir-locals.el: Add a comment referencing the other copies of
12205 this file.
12206
12207 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12208
12209 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12210 psargs.
12211
12212 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12213
12214 * .gitattributes: New file.
12215
12216 2020-03-04 Tom Tromey <tom@tromey.com>
12217
12218 * symmisc.c (print_symbol_bcache_statistics)
12219 (print_objfile_statistics): Update.
12220 * symfile.c (allocate_symtab): Use intern.
12221 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12222 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12223 macro_cache>: Remove.
12224 <string_cache>: New member.
12225 (struct objfile) <intern>: New methods.
12226 * elfread.c (elf_symtab_read): Use intern.
12227 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12228 (dwarf2_compute_name, dwarf2_physname)
12229 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12230 names.
12231 (guess_partial_die_structure_name): Update.
12232 (partial_die_info::fixup): Intern name.
12233 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12234 name.
12235 (dwarf2_name): Intern name. Update.
12236 * buildsym.c (buildsym_compunit::get_macro_table): Use
12237 string_cache.
12238
12239 2020-03-04 Tom Tromey <tom@tromey.com>
12240
12241 * jit.c (bfd_open_from_target_memory): Make "target" const.
12242 * corefile.c (gnutarget): Now const.
12243 * gdbcore.h (gnutarget): Now const.
12244
12245 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12246
12247 * NEWS: Mention support for WOW64 processes.
12248 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12249 (amd64_windows_segment_register_p): Remove static.
12250 (_initialize_amd64_windows_nat): Update.
12251 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12252 * i386-windows-nat.c (context_offset): Update.
12253 (i386_mappings): Rename and remove static.
12254 (i386_windows_segment_register_p): Remove static.
12255 (_initialize_i386_windows_nat): Update.
12256 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12257 (STATUS_WX86_SINGLE_STEP): New macro.
12258 (EnumProcessModulesEx): New macro.
12259 (Wow64SuspendThread): New macro.
12260 (Wow64GetThreadContext): New macro.
12261 (Wow64SetThreadContext): New macro.
12262 (Wow64GetThreadSelectorEntry): New macro.
12263 (windows_set_context_register_offsets): Add static.
12264 (windows_set_segment_register_p): Likewise.
12265 (windows_add_thread): Adapt for WOW64 processes.
12266 (windows_fetch_one_register): Likewise.
12267 (windows_nat_target::fetch_registers): Likewise.
12268 (windows_store_one_register): Likewise.
12269 (display_selector): Likewise.
12270 (display_selectors): Likewise.
12271 (handle_exception): Likewise.
12272 (windows_continue): Likewise.
12273 (windows_nat_target::resume): Likewise.
12274 (windows_add_all_dlls): Likewise.
12275 (do_initial_windows_stuff): Likewise.
12276 (windows_nat_target::attach): Likewise.
12277 (windows_get_exec_module_filename): Likewise.
12278 (windows_nat_target::create_inferior): Likewise.
12279 (windows_xfer_siginfo): Likewise.
12280 (_initialize_loadable): Initialize Wow64SuspendThread,
12281 Wow64GetThreadContext, Wow64SetThreadContext,
12282 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12283 * windows-nat.h (windows_set_context_register_offsets):
12284 Remove declaration.
12285 (windows_set_segment_register_p): Likewise.
12286 (i386_windows_segment_register_p): Add declaration.
12287 (amd64_windows_segment_register_p): Likewise.
12288
12289 2020-03-04 Luis Machado <luis.machado@linaro.org>
12290
12291 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12292 in "info registers" for AArch64/ARM.
12293
12294 The change caused "info registers" to not print GPR's.
12295
12296 gdb/ChangeLog:
12297
12298 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12299
12300 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12301 when reg->group is empty and reggroup is not.
12302
12303 2020-03-03 Tom Tromey <tromey@adacore.com>
12304
12305 * dwarf2/frame.c (struct dwarf2_frame_cache)
12306 <checked_tailcall_bottom, entry_cfa_sp_offset,
12307 entry_cfa_sp_offset_p>: Remove members.
12308 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12309 (dwarf2_frame_prev_register): Don't call
12310 dwarf2_tailcall_sniffer_first.
12311 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12312 * frame-unwind.c (add_unwinder): New fuction.
12313 (frame_unwind_init): Use it. Add tailcall unwinder.
12314
12315 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12316 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12317
12318 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12319 value should be printed as true.
12320
12321 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12322
12323 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12324 (windows_init_abi): Set and use windows_so_ops.
12325
12326 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12327
12328 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12329 when verifying if dealing with a convenience variable.
12330
12331 2020-03-03 Luis Machado <luis.machado@linaro.org>
12332
12333 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12334
12335 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12336
12337 * infrun.c (gdbarch_supports_displaced_stepping): New.
12338 (use_displaced_stepping): Break up conditions in smaller pieces.
12339 Use gdbarch_supports_displaced_stepping.
12340 (displaced_step_prepare_throw): Use
12341 gdbarch_supports_displaced_stepping.
12342
12343 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12344
12345 * NEWS: Mention new behaviour of the history filename.
12346 * top.c (write_history_p): Add comment.
12347 (show_write_history_p): Add header comment, give a different
12348 message when history writing is on, but the history filename is
12349 empty.
12350 (history_filename): Add comment.
12351 (history_filename_empty): New function.
12352 (show_history_filename): Add header comment, give a different
12353 message when the filename is empty.
12354 (init_history): Compare history_filename against nullptr, and only
12355 read history if the filename is not empty.
12356 (set_history_filename): Add header comment, and only make
12357 non-empty filenames absolute.
12358 (init_main): Make the filename argument to 'set history filename'
12359 optional.
12360
12361 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12362
12363 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12364 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12365 (fetch_fp_register): Update.
12366 (fetch_fp_regs): Update.
12367 (store_fp_register): Update.
12368 (store_fp_regs): Update.
12369 (arm_netbsd_nat_target::read_description): New function.
12370 (fetch_elfcore_registers): Update.
12371
12372 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12373
12374 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12375 general_thread if the stop reply is missing a thread-id.
12376 (remote_target::process_stop_reply): Use the first non-exited
12377 thread if the target didn't pass a thread-id.
12378 * infrun.c (do_target_wait): Move call to
12379 switch_to_inferior_no_thread to ....
12380 (do_target_wait_1): ... here.
12381
12382 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12383
12384 * debuginfod-support.c: Include defs.h first.
12385
12386 2020-02-28 Tom de Vries <tdevries@suse.de>
12387
12388 * symfile.c (set_initial_language): Use default language for lookup.
12389
12390 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12391
12392 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12393 reader variable, pass `this` to read_cutu_die_from_dwo.
12394
12395 2020-02-27 Aaron Merey <amerey@redhat.com>
12396
12397 * source.c (open_source_file): Check for nullptr when computing
12398 srcpath.
12399
12400 2020-02-27 Tom Tromey <tromey@adacore.com>
12401
12402 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12403 member.
12404 (dwarf2_add_field): Don't update nfields.
12405 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12406
12407 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12408
12409 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12410 abs.
12411
12412 2020-02-26 Tom Tromey <tom@tromey.com>
12413
12414 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12415 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12416 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12417 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12418 per_cu_data.
12419
12420 2020-02-26 Tom Tromey <tom@tromey.com>
12421
12422 * dwarf2/index-write.c (psym_index_map): Change type.
12423 (add_address_entry_worker, write_one_signatured_type)
12424 (recursively_count_psymbols, recursively_write_psymbols)
12425 (class debug_names, psyms_seen_size, write_gdbindex)
12426 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12427
12428 2020-02-26 Aaron Merey <amerey@redhat.com>
12429
12430 * Makefile.in: Handle optional debuginfod support.
12431 * NEWS: Update.
12432 * README: Add --with-debuginfod summary.
12433 * config.in: Regenerate.
12434 * configure: Regenerate.
12435 * configure.ac: Handle optional debuginfod support.
12436 * debuginfod-support.c: debuginfod helper functions.
12437 * debuginfod-support.h: Ditto.
12438 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12439 summary.
12440 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12441 when a dwz file cannot be found.
12442 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12443 debuginfo file cannot be found.
12444 * source.c (open_source_file): Query debuginfod servers when a
12445 source file cannot be found.
12446 * top.c (print_gdb_configuration): Include
12447 --{with,without}-debuginfod in the output.
12448
12449 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12450
12451 * thread.c (thr_try_catch_cmd): Print thread name.
12452
12453 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12454
12455 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12456 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12457 dwarf2_fetch_die_type_sect_off): Move to...
12458 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12459 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12460 dwarf2_fetch_die_type_sect_off): ... here.
12461 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12462 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12463 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12464
12465 2020-02-26 Tom de Vries <tdevries@suse.de>
12466
12467 PR gdb/25603
12468 * symfile.c (set_initial_language): Exit-early if
12469 language_mode == language_mode_manual.
12470
12471 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12472
12473 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12474 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12475 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12476
12477 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12478
12479 * gdbtypes.c (create_array_type_with_stride): Handle negative
12480 array strides.
12481 * valarith.c (value_subscripted_rvalue): Likewise.
12482
12483 2020-02-25 Luis Machado <luis.machado@linaro.org>
12484
12485 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12486
12487 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12488
12489 * loc.h (dwarf2_get_die_type): Move to...
12490 * read.h (dwarf2_get_die_type): ... here.
12491 * read.c (dwarf2_get_die_type): Move doc to header.
12492
12493 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12494
12495 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12496 'gnulib/Makefile.in' to the list.
12497
12498 2020-02-24 Tom Tromey <tom@tromey.com>
12499
12500 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12501 Remove.
12502 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12503 XOBNEWVEC.
12504
12505 2020-02-24 Tom Tromey <tom@tromey.com>
12506
12507 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12508 New method.
12509 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12510 (dw2_do_instantiate_symtab, dw2_get_file_names)
12511 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12512
12513 2020-02-24 Tom Tromey <tom@tromey.com>
12514
12515 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12516 make_scoped_restore.
12517 (dwarf2_psymtab::read_symtab): Don't clear
12518 reading_partial_symbols.
12519
12520 2020-02-24 Tom de Vries <tdevries@suse.de>
12521
12522 PR gdb/25592
12523 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12524
12525 2020-02-24 Tom de Vries <tdevries@suse.de>
12526
12527 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12528 commands layout next/prev/regs.
12529
12530 2020-02-22 Tom Tromey <tom@tromey.com>
12531
12532 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12533 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12534
12535 2020-02-22 Tom Tromey <tom@tromey.com>
12536
12537 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12538
12539 2020-02-22 Tom Tromey <tom@tromey.com>
12540
12541 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12542 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12543 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12544 * tui/tui.c (_initialize_tui): Add usage text.
12545
12546 2020-02-22 Tom Tromey <tom@tromey.com>
12547
12548 * tui/tui-win.c (tui_set_focus_command)
12549 (tui_set_win_height_command): Use error_no_arg.
12550 (_initialize_tui_win): Update help text.
12551 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12552
12553 2020-02-22 Tom Tromey <tom@tromey.com>
12554
12555 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12556 * tui/tui-disasm.h (struct tui_disasm_window)
12557 <display_start_addr>: Declare.
12558 * tui/tui-source.h (struct tui_source_window)
12559 <display_start_addr>: Declare.
12560 * tui/tui-winsource.h (struct tui_source_window_base)
12561 <show_source_line, display_start_addr>: New methods.
12562 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12563 Rename and move to protected section.
12564 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12565 (tui_source_window_base::do_erase_source_content): Update.
12566 (tui_source_window_base::show_source_line): Now a method.
12567 (tui_source_window_base::show_source_content)
12568 (tui_source_window_base::tui_source_window_base)
12569 (tui_source_window_base::rerender)
12570 (tui_source_window_base::refill)
12571 (tui_source_window_base::do_scroll_horizontal)
12572 (tui_source_window_base::set_is_exec_point_at)
12573 (tui_source_window_base::update_breakpoint_info)
12574 (tui_source_window_base::update_exec_info): Update.
12575 * tui/tui-source.c (tui_source_window::set_contents)
12576 (tui_source_window::showing_source_p)
12577 (tui_source_window::do_scroll_vertical)
12578 (tui_source_window::location_matches_p)
12579 (tui_source_window::line_is_displayed): Update.
12580 (tui_source_window::display_start_addr): New method.
12581 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12582 (tui_disasm_window::do_scroll_vertical)
12583 (tui_disasm_window::location_matches_p): Update.
12584 (tui_disasm_window::display_start_addr): New method.
12585
12586 2020-02-22 Tom Tromey <tom@tromey.com>
12587
12588 * NEWS: Add entry for gdb.register_window_type.
12589 * tui/tui-layout.h (window_factory): New typedef.
12590 (tui_register_window): Declare.
12591 * tui/tui-layout.c (saved_tui_windows): New global.
12592 (tui_apply_current_layout): Use it.
12593 (tui_register_window): New function.
12594 * python/python.c (do_start_initialization): Call
12595 gdbpy_initialize_tui.
12596 (python_GdbMethods): Add "register_window_type" function.
12597 * python/python-internal.h (gdbpy_register_tui_window)
12598 (gdbpy_initialize_tui): Declare.
12599 * python/py-tui.c: New file.
12600 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12601
12602 2020-02-22 Tom Tromey <tom@tromey.com>
12603
12604 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12605
12606 2020-02-22 Tom Tromey <tom@tromey.com>
12607
12608 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12609 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12610 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12611 (tui_set_win_focus_to): Move from tui-win.c.
12612
12613 2020-02-22 Tom Tromey <tom@tromey.com>
12614
12615 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12616 functions.
12617 (known_window_types): New global.
12618 (tui_get_window_by_name): Reimplement.
12619 (initialize_known_windows): New function.
12620 (validate_window_name): Rewrite.
12621 (_initialize_tui_layout): Call initialize_known_windows.
12622
12623 2020-02-22 Tom Tromey <tom@tromey.com>
12624
12625 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12626 Remove constants.
12627 * tui/tui-winsource.h (struct tui_source_window_base)
12628 <tui_source_window_base>: Remove parameter.
12629 * tui/tui-winsource.c
12630 (tui_source_window_base::tui_source_window_base): Remove
12631 parameter.
12632 (tui_source_window_base::refill): Update.
12633 * tui/tui-stack.h (struct tui_locator_window)
12634 <tui_locator_window>: Update.
12635 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12636 Default the constructor.
12637 * tui/tui-regs.h (struct tui_data_item_window)
12638 <tui_data_item_window>: Default the constructor.
12639 (struct tui_data_window) <tui_data_window>: Likewise.
12640 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12641 Default the constructor.
12642 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12643 Default the constructor.
12644 <type>: Remove.
12645 (struct tui_win_info) <tui_win_info>: Default the constructor.
12646 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12647 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12648 Default the constructor.
12649
12650 2020-02-22 Tom Tromey <tom@tromey.com>
12651
12652 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12653 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12654 * tui/tui-win.c (tui_resize_all): Don't call
12655 tui_delete_invisible_windows.
12656 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12657 done.
12658 (tui_set_layout): Update.
12659 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12660 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12661 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12662
12663 2020-02-22 Tom Tromey <tom@tromey.com>
12664
12665 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12666 correctly.
12667
12668 2020-02-22 Tom Tromey <tom@tromey.com>
12669
12670 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12671
12672 2020-02-22 Tom Tromey <tom@tromey.com>
12673
12674 * tui/tui-winsource.h (struct tui_source_window_iterator)
12675 <inner_iterator>: New etytypedef.
12676 <tui_source_window_iterator>: Take "end" parameter.
12677 <tui_source_window_iterator>: Take iterator.
12678 <operator*, advance>: Update.
12679 <m_iter>: Change type.
12680 <m_end>: New field.
12681 (struct tui_source_windows) <begin, end>: Update.
12682 * tui/tui-layout.c (tui_windows): New global.
12683 (tui_apply_current_layout): Clear tui_windows.
12684 (tui_layout_window::apply): Update tui_windows.
12685 * tui/tui-data.h (tui_windows): Declare.
12686 (all_tui_windows): Now inline function.
12687 (class tui_window_iterator, struct all_tui_windows): Remove.
12688
12689 2020-02-22 Tom Tromey <tom@tromey.com>
12690
12691 PR tui/17850:
12692 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12693 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12694 "height" argument.
12695 (class tui_layout_window) <get_sizes>: Likewise.
12696 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12697 argument.
12698 <get_sizes>: Add "height" argument.
12699 <m_vertical>: New field.
12700 * tui/tui-layout.c (tui_layout_split::clone): Update.
12701 (tui_layout_split::get_sizes): Add "height" argument.
12702 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12703 (tui_new_layout_command): Parse "-horizontal".
12704 (_initialize_tui_layout): Update help string.
12705 (tui_layout_split::specification): Add "-horizontal" when needed.
12706 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12707 argument.
12708 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12709 New methods.
12710
12711 2020-02-22 Tom Tromey <tom@tromey.com>
12712
12713 * tui/tui-layout.h (enum tui_adjust_result): New.
12714 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12715 (class tui_layout_window) <adjust_size>: Return
12716 tui_adjust_result. Rewrite.
12717 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12718 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12719
12720 2020-02-22 Tom Tromey <tom@tromey.com>
12721
12722 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12723 parameter and return types.
12724 (class tui_layout_base) <specification>: Add "depth".
12725 (class tui_layout_window) <specification>: Add "depth".
12726 (class tui_layout_split) <specification>: Add "depth".
12727 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12728 and return types.
12729 (tui_new_layout_command): Parse sub-layouts.
12730 (_initialize_tui_layout): Update help string.
12731 (tui_layout_window::specification): Add "depth".
12732 (add_layout_command): Update.
12733
12734 2020-02-22 Tom Tromey <tom@tromey.com>
12735
12736 * NEWS: Add "tui new-layout" item.
12737 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12738 Add new-layout command to help text.
12739 (validate_window_name): New function.
12740 (tui_new_layout_command): New function.
12741 (_initialize_tui_layout): Register "new-layout".
12742 (tui_layout_window::specification): New method.
12743 (tui_layout_window::specification): New method.
12744 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12745 method.
12746 (class tui_layout_window) <specification>: New method.
12747 (class tui_layout_split) <specification>: New method.
12748
12749 2020-02-22 Tom Tromey <tom@tromey.com>
12750
12751 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12752 * tui/tui-win.c (window_name_completer): Update comment.
12753 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12754 Declare method.
12755 (class tui_layout_window) <replace_window>: Likewise.
12756 (class tui_layout_split) <replace_window>: Likewise.
12757 (tui_set_layout): Don't declare.
12758 (tui_set_initial_layout): Declare function.
12759 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12760 (asm_regs_layout): New globals.
12761 (tui_current_layout, show_layout): Remove.
12762 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12763 (find_layout, tui_apply_layout): New function.
12764 (layout_completer): Remove.
12765 (tui_next_layout): Reimplement.
12766 (tui_next_layout_command): New function.
12767 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12768 (tui_regs_layout): Reimplement.
12769 (tui_regs_layout_command): New function.
12770 (extract_display_start_addr): Rewrite.
12771 (next_layout, prev_layout): Remove.
12772 (tui_layout_window::replace_window): New method.
12773 (tui_layout_split::replace_window): New method.
12774 (destroy_layout): New function.
12775 (layout_list): New global.
12776 (add_layout_command): New function.
12777 (initialize_layouts): Update.
12778 (tui_layout_command): New function.
12779 (_initialize_tui_layout): Install "layout" commands.
12780 * tui/tui-data.h (enum tui_layout_type): Remove.
12781 (tui_current_layout): Don't declare.
12782
12783 2020-02-22 Tom Tromey <tom@tromey.com>
12784
12785 * tui/tui-regs.c (tui_reg_layout): Remove.
12786 (tui_reg_command): Use tui_regs_layout.
12787 * tui/tui-layout.h (tui_reg_command): Declare.
12788 * tui/tui-layout.c (tui_reg_command): New function.
12789
12790 2020-02-22 Tom Tromey <tom@tromey.com>
12791
12792 * tui/tui.c (tui_rl_delete_other_windows): Call
12793 tui_remove_some_windows.
12794 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12795 Declare method.
12796 (class tui_layout_window) <remove_windows>: New method.
12797 (class tui_layout_split) <remove_windows>: Declare.
12798 (tui_remove_some_windows): Declare.
12799 * tui/tui-layout.c (tui_remove_some_windows): New function.
12800 (tui_layout_split::remove_windows): New method.
12801
12802 2020-02-22 Tom Tromey <tom@tromey.com>
12803
12804 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12805 * tui/tui-layout.h (tui_next_layout): Declare.
12806 * tui/tui-layout.c (tui_next_layout): New function.
12807
12808 2020-02-22 Tom Tromey <tom@tromey.com>
12809
12810 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12811 correct coordinates.
12812
12813 2020-02-22 Tom Tromey <tom@tromey.com>
12814
12815 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12816 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12817 DATA_WIN case.
12818
12819 2020-02-22 Tom Tromey <tom@tromey.com>
12820
12821 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12822 TUI_DISASM_WIN, not tui_win_list.
12823
12824 2020-02-22 Tom Tromey <tom@tromey.com>
12825
12826 * valprint.c (generic_val_print_enum_1)
12827 (val_print_type_code_flags): Style member names.
12828 * rust-lang.c (val_print_struct, rust_print_enum)
12829 (rust_print_struct_def, rust_internal_print_type): Style member
12830 names.
12831 * p-valprint.c (pascal_object_print_value_fields): Style member
12832 names. Only call fprintf_symbol_filtered for static members.
12833 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12834 * f-valprint.c (f_val_print): Style member names.
12835 * f-typeprint.c (f_type_print_base): Style member names.
12836 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12837 call fprintf_symbol_filtered for static members.
12838 (cp_print_class_member): Style member names.
12839 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12840 member names.
12841 * ada-valprint.c (ada_print_scalar): Style enum names.
12842 (ada_val_print_enum): Likewise.
12843 * ada-typeprint.c (print_enum_type): Style enum names.
12844
12845 2020-02-21 Tom Tromey <tom@tromey.com>
12846
12847 * psympriv.h (struct partial_symtab): Update comment.
12848
12849 2020-02-21 Tom Tromey <tromey@adacore.com>
12850
12851 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12852 type is CORE_ADDR.
12853
12854 2020-02-21 Tom de Vries <tdevries@suse.de>
12855
12856 PR gdb/25534
12857 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12858 if dependencies[i]->user != NULL.
12859
12860 2020-02-21 Ali Tamur <tamur@google.com>
12861
12862 * dwarf2/read.c (dwarf2_name): Add null check.
12863
12864 2020-02-20 Tom Tromey <tom@tromey.com>
12865
12866 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12867 ">=", in binary search.
12868 (dwarf2_find_containing_comp_unit): New overload.
12869 (run_test): New self-test.
12870 (_initialize_dwarf2_read): Register new test.
12871
12872 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12873
12874 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12875 * riscv-tdep.h: Likewise.
12876 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12877 rv32-only CSR.
12878 * features/riscv/64bit-csr.xml: Regenerated.
12879
12880 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12881 Tom Tromey <tom@tromey.com>
12882
12883 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12884 of 'fputc_unfiltered'.
12885 (putchar_unfiltered): Call 'fputc_unfiltered'.
12886 (fputc_unfiltered): Call 'fputs_unfiltered'.
12887
12888 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12889
12890 * config.in: Regenerate.
12891 * configure: Regenerate.
12892 * configure.ac: Add --with-python-libdir option.
12893 * main.c: Use WITH_PYTHON_LIBDIR.
12894
12895 2020-02-19 Tom Tromey <tom@tromey.com>
12896
12897 * symtab.c (general_symbol_info::compute_and_set_names): Use
12898 obstack_strndup. Simplify call to symbol_set_demangled_name.
12899
12900 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12901
12902 * dwarf2/read.c (allocate_signatured_type_table,
12903 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12904 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12905 Remove objfile parameter, update all callers.
12906
12907 2020-02-19 Doug Evans <dje@google.com>
12908
12909 PR rust/25535
12910 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12911 rust_enum_variant calculation.
12912
12913 2020-02-19 Tom Tromey <tromey@adacore.com>
12914
12915 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12916
12917 2020-02-19 Tom Tromey <tromey@adacore.com>
12918
12919 * ada-lang.c (cache_symbol): Use obstack_strdup.
12920
12921 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12922
12923 * configure: Regenerate.
12924
12925 2020-02-19 Tom Tromey <tromey@adacore.com>
12926
12927 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12928 NULL check.
12929
12930 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12931
12932 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12933
12934 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12935
12936 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12937 if GDBSERVER is not defined.
12938 (riscv_tdesc_cache): Likewise, also store const target_desc.
12939 (STATIC_IN_GDB): Define.
12940 (riscv_create_target_description): Update declaration with
12941 STATIC_IN_GDB.
12942 (riscv_lookup_target_description): New function, only define if
12943 GDBSERVER is not defined.
12944 * arch/riscv.h (riscv_create_target_description): Declare only
12945 when GDBSERVER is defined.
12946 (riscv_lookup_target_description): New declaration when GDBSERVER
12947 is not defined.
12948 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12949 (riscv_linux_read_features): ...this, and return
12950 riscv_gdbarch_features instead of target_desc.
12951 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12952 (riscv_linux_read_description): Rename to...
12953 (riscv_linux_read_features): ...this.
12954 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12955 Update to use riscv_gdbarch_features and
12956 riscv_lookup_target_description.
12957 * riscv-tdep.c (riscv_find_default_target_description): Use
12958 riscv_lookup_target_description instead of
12959 riscv_create_target_description.
12960
12961 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12962
12963 * valprint.c (generic_val_print_enum_1): When printing a flag
12964 enum with value 0 and there is no enumerator with value 0, print
12965 just "0" instead of "(unknown: 0x0)".
12966
12967 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12968
12969 * valprint.c (generic_val_print_enum_1): Print unknown part of
12970 flag enum in hex.
12971
12972 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12973
12974 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12975 flag enums to contain duplicate enumerators.
12976 * valprint.c (generic_val_print_enum_1): Update comment.
12977
12978 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12979
12980 * dwarf2/read.c: Include "count-one-bits.h".
12981 (update_enumeration_type_from_children): If an enumerator has
12982 multiple bits set, don't treat the enumeration as a "flag enum".
12983 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12984 of flag enums have 0 or 1 bit set.
12985
12986 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12987
12988 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12989 conversion.
12990 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12991 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12992 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12993 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12994 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12995
12996 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12997
12998 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12999
13000 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13001
13002 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13003 displaced_step_closure_up.
13004 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13005 (struct displaced_step_closure_up):
13006 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13007 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13008 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13009 Likewise.
13010 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13011 * gdbarch.c, gdbarch.h: Re-generate.
13012 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13013 displaced_step_closure_up.
13014 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13015 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13016 * infrun.h (displaced_step_closure_up): New type alias.
13017 (struct displaced_step_inferior_state) <step_closure>: Change
13018 type to displaced_step_closure_up.
13019 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13020 displaced_step_closure_up.
13021 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13022
13023 2020-02-14 Tom Tromey <tom@tromey.com>
13024
13025 * minidebug.c (gnu_debug_key): New global.
13026 (find_separate_debug_file_in_section): Use it.
13027
13028 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13029
13030 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13031 std::unique_ptr.
13032 * gdbarch.c: Re-generate.
13033 * gdbarch.h: Re-generate.
13034 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13035 change.
13036 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13037 type to std::unique_ptr.
13038 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13039 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13040 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13041 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13042 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13043 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13044 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13045 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13046 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13047
13048 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13049
13050 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13051 std::unique_ptr.
13052 (displaced_step_clear): Rename to...
13053 (displaced_step_reset): ... this. Just call displaced->reset ().
13054 (displaced_step_clear_cleanup): Rename to...
13055 (displaced_step_reset_cleanup): ... this.
13056 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13057 (displaced_step_fixup): Likewise.
13058 (resume_1): Likewise.
13059 (handle_inferior_event): Restore child's memory before calling
13060 displaced_step_fixup on the parent.
13061 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13062 to std::unique_ptr.
13063 <step_closure>: Change type to std::unique_ptr.
13064
13065 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13066
13067 * arm-tdep.c: Include count-one-bits.h.
13068 (cleanup_block_store_pc): Use count_one_bits.
13069 (cleanup_block_load_pc): Use count_one_bits.
13070 (arm_copy_block_xfer): Use count_one_bits.
13071 (thumb2_copy_block_xfer): Use count_one_bits.
13072 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13073 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13074 (thumb_get_next_pcs_raw): Use count_one_bits.
13075 (arm_get_next_pcs_raw): Use count_one_bits_l.
13076 * arch/arm.c (bitcount): Remove.
13077 * arch/arm.h (bitcount): Remove.
13078
13079 2020-02-14 Tom Tromey <tromey@adacore.com>
13080
13081 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13082 Update.
13083 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13084 * dwarf2/loc.c (call_site_find_chain_1): Return
13085 unique_xmalloc_ptr.
13086 (call_site_find_chain): Likewise.
13087
13088 2020-02-14 Richard Biener <rguenther@suse.de>
13089
13090 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13091 on expression with division operators.
13092
13093 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13094
13095 * MAINTAINERS (Write After Approval): Adding myself.
13096
13097 2020-02-12 Tom Tromey <tom@tromey.com>
13098
13099 * event-loop.c (event_data, gdb_event, event_handler_func):
13100 Remove.
13101
13102 2020-02-12 Tom Tromey <tom@tromey.com>
13103
13104 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13105 (dwarf2_frame_objfile_data): Add comment.
13106 (find_comp_unit, set_comp_unit): New functions.
13107 (dwarf2_frame_find_fde): Use find_comp_unit.
13108 (dwarf2_build_frame_info): Use set_comp_unit.
13109
13110 2020-02-12 Tom Tromey <tom@tromey.com>
13111
13112 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13113 (comp_unit): Don't initialize objfile.
13114 (execute_cfa_program): Add text_offset parameter.
13115 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13116 (dwarf2_frame_cache): Update.
13117 (dwarf2_build_frame_info): Don't set "objfile" member.
13118
13119 2020-02-12 Tom Tromey <tom@tromey.com>
13120
13121 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13122 (decode_frame_entry): Likewise.
13123 (dwarf2_build_frame_info): Update.
13124
13125 2020-02-12 Tom Tromey <tom@tromey.com>
13126
13127 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13128 (decode_frame_entry_1): Use the comp_unit obstack.
13129
13130 2020-02-12 Tom Tromey <tom@tromey.com>
13131
13132 * dwarf2/frame.c (struct comp_unit): Add initializers and
13133 constructor.
13134 (dwarf2_frame_objfile_data): Store a comp_unit.
13135 (dwarf2_frame_find_fde): Update.
13136 (dwarf2_build_frame_info): Use "new".
13137
13138 2020-02-12 Tom Tromey <tom@tromey.com>
13139
13140 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13141 (dwarf2_fde_table): Typedef for std::vector.
13142 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13143 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13144 (decode_frame_entry): Update.
13145 (dwarf2_build_frame_info): Use "new".
13146
13147 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13148
13149 * arm-tdep.c (arm_gdbarch_init): Update.
13150 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13151 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13152 have_neon, is_m>: Change to bool.
13153
13154 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13155
13156 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13157
13158 2020-02-12 Tom Tromey <tom@tromey.com>
13159
13160 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13161
13162 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13163
13164 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13165 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13166
13167 2020-02-11 Tom Tromey <tom@tromey.com>
13168
13169 * psymtab.h: Update comment.
13170
13171 2020-02-11 Tom Tromey <tom@tromey.com>
13172
13173 * gdb_obstack.h (struct auto_obstack): Use
13174 DISABLE_COPY_AND_ASSIGN.
13175
13176 2020-02-11 Tom Tromey <tom@tromey.com>
13177
13178 * dwarf2/frame.h (struct objfile): Don't forward declare.
13179
13180 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13181
13182 * cris-tdep.c (cris_supply_gregset): Change signature to match
13183 what struct regset expects.
13184 (cris_regset): New struct.
13185 (fetch_core_registers): Remove.
13186 (cris_iterate_over_regset_sections): New function.
13187 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13188 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13189
13190 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13191
13192 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13193 registers.
13194
13195 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13196
13197 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13198
13199 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13200
13201 * configure: Re-generate.
13202
13203 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13204
13205 * configure: Re-generate.
13206
13207 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13208
13209 * acinclude: Update warning.m4 path.
13210 * warning.m4: Move to gdbsupport.
13211
13212 2020-02-11 Tom Tromey <tromey@adacore.com>
13213
13214 * remote.c (remote_console_output): Update.
13215 * printcmd.c (printf_command): Update.
13216 * event-loop.c (gdb_wait_for_event): Update.
13217 * linux-nat.c (sigchld_handler): Update.
13218 * remote-sim.c (gdb_os_write_stdout): Update.
13219 (gdb_os_flush_stdout): Update.
13220 (gdb_os_flush_stderr): Update.
13221 (gdb_os_write_stderr): Update.
13222 * exceptions.c (print_exception): Update.
13223 * remote-fileio.c (remote_fileio_func_read): Update.
13224 (remote_fileio_func_write): Update.
13225 * tui/tui.c (tui_enable): Update.
13226 * tui/tui-interp.c (tui_interp::init): Update.
13227 * utils.c (init_page_info): Update.
13228 (putchar_unfiltered, fputc_unfiltered): Update.
13229 (gdb_flush): Update.
13230 (emit_style_escape): Update.
13231 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13232 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13233 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13234 (stderr_file::write): Update.
13235 (stderr_file::puts): Update.
13236 * ui-file.h (ui_file_isatty, ui_file_write)
13237 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13238 (ui_file_puts): Don't declare.
13239
13240 2020-02-10 Tom de Vries <tdevries@suse.de>
13241
13242 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13243 sentinel to char *.
13244
13245 2020-02-09 Tom de Vries <tdevries@suse.de>
13246
13247 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13248 filename if it matches "<artificial>".
13249
13250 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13251
13252 * windows-tdep.c (struct enum_value_name): New struct.
13253 (create_enum): New function.
13254 (windows_get_siginfo_type): Create and use enum types.
13255
13256 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13257
13258 * NEWS: Mention $_siginfo support for Windows.
13259 * windows-nat.c (handle_exception): Set siginfo_er.
13260 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13261 (windows_xfer_siginfo): New function.
13262 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13263 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13264 (init_windows_gdbarch_data): New function.
13265 (get_windows_gdbarch_data): New function.
13266 (windows_get_siginfo_type): New function.
13267 (windows_init_abi): Register windows_get_siginfo_type.
13268 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13269
13270 2020-02-08 Tom Tromey <tom@tromey.com>
13271
13272 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13273 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13274 <keep>: Declare method.
13275 <m_keep>: Remove member.
13276 <~cutu_reader>: Remove.
13277 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13278 (cutu_reader::cutu_reader): Update.
13279 (cutu_reader::keep): Rename from ~cutu_reader.
13280 (process_psymtab_comp_unit, build_type_psymtabs_1)
13281 (process_skeletonless_type_unit, load_partial_comp_unit)
13282 (load_full_comp_unit, dwarf2_read_addr_index)
13283 (read_signatured_type): Update.
13284
13285 2020-02-08 Tom Tromey <tom@tromey.com>
13286
13287 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13288 "want_partial_unit" parameter.
13289 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13290 Inline check for DW_TAG_partial_unit.
13291 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13292
13293 2020-02-08 Tom Tromey <tom@tromey.com>
13294
13295 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13296 read.c.
13297 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13298 read.c.
13299
13300 2020-02-08 Tom Tromey <tom@tromey.com>
13301
13302 * dwarf2/read.c (read_address): Move to comp-unit.c.
13303 (dwarf2_rnglists_process, dwarf2_ranges_process)
13304 (read_attribute_value, dwarf_decode_lines_1)
13305 (var_decode_location, decode_locdesc): Update.
13306 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13307 read.c. Remove "cu" parameter.
13308 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13309 method.
13310
13311 2020-02-08 Tom Tromey <tom@tromey.com>
13312
13313 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13314 (read_indirect_line_string): Update.
13315 * dwarf2/comp-unit.c (read_offset): Remove.
13316 (read_comp_unit_head): Update.
13317 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13318 method.
13319 (read_offset): Don't declare.
13320
13321 2020-02-08 Tom Tromey <tom@tromey.com>
13322
13323 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13324 * dwarf2/read.c (struct comp_unit_head): Move to
13325 dwarf2/comp-unit.h.
13326 (enum class rcuh_kind): Move to comp-unit.h.
13327 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13328 (read_comp_unit_head, error_check_comp_unit_head)
13329 (read_and_check_comp_unit_head): Move to comp-unit.c.
13330 (read_offset, dwarf_unit_type_name): Likewise.
13331 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13332 (cutu_reader::cutu_reader, read_call_site_scope)
13333 (find_partial_die, follow_die_offset): Update.
13334 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13335
13336 2020-02-08 Tom Tromey <tom@tromey.com>
13337
13338 * dwarf2/read.c (read_offset_1): Move to leb.c.
13339 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13340 (dwarf_decode_macro_bytes): Update.
13341 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13342 * dwarf2/leb.h (read_offset): Declare.
13343
13344 2020-02-08 Tom Tromey <tom@tromey.com>
13345
13346 * dwarf2/read.c (dwarf2_section_size): Remove.
13347 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13348 Update.
13349 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13350
13351 2020-02-08 Tom Tromey <tom@tromey.com>
13352
13353 * dwarf2/read.c (read_initial_length): Move to leb.c.
13354 * dwarf2/leb.h (read_initial_length): Declare.
13355 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13356 handle_nonstd parameter.
13357 * dwarf2/frame.c (read_initial_length): Remove.
13358 (decode_frame_entry_1): Update.
13359
13360 2020-02-08 Tom Tromey <tom@tromey.com>
13361
13362 * dwarf2/loc.c (dwarf2_find_location_expression)
13363 (dwarf_evaluate_loc_desc::get_tls_address)
13364 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13365 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13366 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13367 (dwarf2_compile_property_to_c)
13368 (dwarf2_loc_desc_get_symbol_read_needs)
13369 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13370 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13371 (loclist_describe_location, loclist_tracepoint_var_ref)
13372 (loclist_generate_c_location): Update.
13373 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13374 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13375 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13376 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13377 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13378 (dwarf2_per_cu_data::addr_size)
13379 (dwarf2_per_cu_data::ref_addr_size)
13380 (dwarf2_per_cu_data::text_offset)
13381 (dwarf2_per_cu_data::addr_type): Now methods.
13382 (per_cu_header_read_in): Make per_cu "const".
13383 (dwarf2_version): Remove.
13384 (dwarf2_per_cu_data::int_type): Now a method.
13385 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13386 (set_die_type, read_array_type, read_subrange_index_type)
13387 (read_tag_string_type, read_subrange_type): Update.
13388 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13389 offset_size, ref_addr_size, text_offset, addr_type, version,
13390 objfile, int_type, addr_sized_int_type>: Declare methods.
13391
13392 2020-02-08 Tom Tromey <tom@tromey.com>
13393
13394 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13395 Move earlier.
13396
13397 2020-02-08 Tom Tromey <tom@tromey.com>
13398
13399 * dwarf2/read.h (dwarf_line_debug): Declare.
13400 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13401 * dwarf2/read.c: Move line_header code to new files.
13402 (dwarf_line_debug): No longer static.
13403 * dwarf2/line-header.c: New file.
13404 * dwarf2/line-header.h: New file.
13405
13406 2020-02-08 Tom Tromey <tom@tromey.com>
13407
13408 * dwarf2/read.c (struct line_header) <file_full_name,
13409 file_file_name>: Return unique_xmalloc_ptr.
13410 (line_header::file_file_name): Update.
13411 (line_header::file_full_name): Update.
13412 (dw2_get_file_names_reader): Update.
13413 (macro_start_file): Update.
13414
13415 2020-02-08 Tom Tromey <tom@tromey.com>
13416
13417 * dwarf2/read.c (struct line_header) <file_full_name,
13418 file_file_name>: Declare methods.
13419 (dw2_get_file_names_reader): Update.
13420 (file_file_name): Now a method.
13421 (file_full_name): Likewise.
13422 (macro_start_file): Update.
13423
13424 2020-02-08 Tom Tromey <tom@tromey.com>
13425
13426 * dwarf2/read.c (dwarf_always_disassemble)
13427 (show_dwarf_always_disassemble): Move to loc.c.
13428 (_initialize_dwarf2_read): Move "always-disassemble" registration
13429 to loc.c.
13430 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13431 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13432 static.
13433 (show_dwarf_always_disassemble): Move from read.c.
13434 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13435
13436 2020-02-08 Tom Tromey <tom@tromey.com>
13437
13438 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13439 (create_quick_file_names_table): Return htab_up.
13440 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13441 Update.
13442 * dwarf2/read.h (struct dwarf2_per_objfile)
13443 <quick_file_names_table>: Now htab_up.
13444
13445 2020-02-08 Tom Tromey <tom@tromey.com>
13446
13447 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13448
13449 2020-02-08 Tom Tromey <tom@tromey.com>
13450
13451 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13452 Rewrite.
13453 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13454 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13455 (abbrev_table::abbrev_table): No longer inline.
13456 (ABBREV_HASH_SIZE): Remove.
13457 (abbrev_table::m_abbrevs): Now an htab_up.
13458
13459 2020-02-08 Tom Tromey <tom@tromey.com>
13460
13461 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13462 (cutu_reader): Update.
13463 (build_type_psymtabs_1): Update.
13464 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13465 (abbrev_table::alloc_abbrev): Update.
13466 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13467 (abbrev_table::read): New static method, renamed from
13468 abbrev_table_read_table.
13469 (abbrev_table::alloc_abbrev)
13470 (abbrev_table::add_abbrev): Now private.
13471 (abbrev_table::abbrev_table): Now private.
13472 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13473
13474 2020-02-08 Tom Tromey <tom@tromey.com>
13475
13476 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13477 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13478 htab_up.
13479
13480 2020-02-08 Tom Tromey <tom@tromey.com>
13481
13482 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13483 htab_up.
13484 (lookup_dwo_unit_in_dwp): Update.
13485 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13486 on obstack.
13487
13488 2020-02-08 Tom Tromey <tom@tromey.com>
13489
13490 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13491 obstack.
13492
13493 2020-02-08 Tom Tromey <tom@tromey.com>
13494
13495 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13496 line_header_hash.
13497 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13498 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13499 Change type to htab_up.
13500
13501 2020-02-08 Tom Tromey <tom@tromey.com>
13502
13503 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13504 htab_up. Don't allocate on obstack.
13505 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13506 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13507 Change type to htab_up.
13508
13509 2020-02-08 Tom Tromey <tom@tromey.com>
13510
13511 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13512 Change type to htab_up.
13513 * dwarf2/read.c (create_signatured_type_table_from_index)
13514 (create_signatured_type_table_from_debug_names)
13515 (create_all_type_units, add_type_unit)
13516 (lookup_dwo_signatured_type, lookup_signatured_type)
13517 (process_skeletonless_type_unit): Update.
13518 (create_debug_type_hash_table, create_debug_types_hash_table):
13519 Change type of types_htab.
13520 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13521 htab_up. Don't allocate on obstack.
13522 (create_cus_hash_table): Change type of cus_htab parameter.
13523 (struct dwo_file) <cus, tus>: Now htab_up.
13524 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13525 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13526 (queue_and_load_all_dwo_tus): Update.
13527 * dwarf2/index-write.c (write_gdbindex): Update.
13528 (write_debug_names): Update.
13529
13530 2020-02-08 Tom Tromey <tom@tromey.com>
13531
13532 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13533 dwarf2/read.c. Remove "next" member. Add constructor ntad
13534 destructor.
13535 (struct dwarf2_per_objfile) <queue>: New member.
13536 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13537 dwarf2/read.h.
13538 (dwarf2_queue, dwarf2_queue_tail): Remove.
13539 (class dwarf2_queue_guard): Add parameter to constructor. Use
13540 DISABLE_COPY_AND_ASSIGN.
13541 <m_per_objfile>: New member.
13542 <~dwarf2_queue_guard>: Rewrite.
13543 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13544 Update.
13545 (~dwarf2_queue_item): New.
13546
13547 2020-02-08 Tom Tromey <tom@tromey.com>
13548
13549 * dwarf2/read.c (struct die_info) <has_children>: New member.
13550 (dw2_get_file_names_reader): Remove has_children.
13551 (dw2_get_file_names): Update.
13552 (read_cutu_die_from_dwo): Remove has_children.
13553 (cutu_reader::init_tu_and_read_dwo_dies)
13554 (cutu_reader::cutu_reader): Update.
13555 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13556 Remove has_children.
13557 (build_type_psymtabs_1, process_skeletonless_type_unit)
13558 (load_partial_comp_unit, load_full_comp_unit): Update.
13559 (create_dwo_cu_reader): Remove has_children.
13560 (create_cus_hash_table, read_die_and_children): Update.
13561 (read_full_die_1,read_full_die): Remove has_children.
13562 (read_signatured_type): Update.
13563 (class cutu_reader) <has_children>: Remove.
13564
13565 2020-02-08 Tom Tromey <tom@tromey.com>
13566
13567 * dwarf2/expr.c: Rename from dwarf2expr.c.
13568 * dwarf2/expr.h: Rename from dwarf2expr.h.
13569 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13570 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13571 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13572 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13573 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13574 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13575 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13576 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13577 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13578 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13579 * dwarf2/loc.c: Rename from dwarf2loc.c.
13580 * dwarf2/loc.h: Rename from dwarf2loc.h.
13581 * dwarf2/read.c: Rename from dwarf2read.c.
13582 * dwarf2/read.h: Rename from dwarf2read.h.
13583 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13584 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13585 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13586 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13587 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13588 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13589 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13590 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13591 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13592 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13593 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13594 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13595 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13596 Update.
13597 * Makefile.in (COMMON_SFILES): Update.
13598 (HFILES_NO_SRCDIR): Update.
13599
13600 2020-02-08 Tom Tromey <tom@tromey.com>
13601
13602 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13603 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13604
13605 2020-02-08 Tom Tromey <tom@tromey.com>
13606
13607 * dwarf2read.h (struct die_info): Don't declare.
13608
13609 2020-02-08 Tom Tromey <tom@tromey.com>
13610
13611 * dwarf2read.h (die_info_ptr): Remove typedef.
13612
13613 2020-02-08 Tom Tromey <tom@tromey.com>
13614
13615 * dwarf2read.c (read_call_site_scope)
13616 (handle_data_member_location, dwarf2_add_member_fn)
13617 (mark_common_block_symbol_computed, read_common_block)
13618 (attr_to_dynamic_prop, partial_die_info::read)
13619 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13620 (dwarf2_symbol_mark_computed, set_die_type): Update.
13621 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13622 method.
13623 (attr_form_is_block): Don't declare.
13624 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13625
13626 2020-02-08 Tom Tromey <tom@tromey.com>
13627
13628 * dwarf2read.c (dwarf2_find_base_address, )
13629 (read_call_site_scope, rust_containing_type)
13630 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13631 (handle_data_member_location, dwarf2_add_member_fn)
13632 (get_alignment, read_structure_type, process_structure_scope)
13633 (mark_common_block_symbol_computed, read_common_block)
13634 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13635 (partial_die_info::read, read_attribute_value, new_symbol)
13636 (lookup_die_type, dwarf2_get_ref_die_offset)
13637 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13638 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13639 (dwarf2_symbol_mark_computed): Update.
13640 * dwarf2/attribute.h (struct attribute) <value_as_address,
13641 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13642 methods.
13643 (value_as_address, attr_form_is_section_offset)
13644 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13645 * dwarf2/attribute.c (attribute::value_as_address)
13646 (attribute::form_is_section_offset, attribute::form_is_constant)
13647 (attribute::form_is_ref): Now methods.
13648
13649 2020-02-08 Tom Tromey <tom@tromey.com>
13650
13651 * dwarf2read.c (struct attribute, DW_STRING)
13652 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13653 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13654 (attr_form_is_block, attr_form_is_section_offset)
13655 (attr_form_is_constant, attr_form_is_ref): Move.
13656 * dwarf2/attribute.h: New file.
13657 * dwarf2/attribute.c: New file, from dwarf2read.c.
13658 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13659
13660 2020-02-08 Tom Tromey <tom@tromey.com>
13661
13662 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13663 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13664 Move.
13665 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13666 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13667 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13668 abbrev.c.
13669 * dwarf2/abbrev.h: New file.
13670 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13671 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13672
13673 2020-02-08 Tom Tromey <tom@tromey.com>
13674
13675 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13676 (dwarf2_section_size, dwarf2_get_section_info)
13677 (create_signatured_type_table_from_debug_names)
13678 (create_addrmap_from_aranges, read_debug_names_from_section)
13679 (get_gdb_index_contents_from_section, read_comp_unit_head)
13680 (error_check_comp_unit_head, read_abbrev_offset)
13681 (create_debug_type_hash_table, init_cu_die_reader)
13682 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13683 (read_comp_units_from_section, create_cus_hash_table)
13684 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13685 (create_dwp_v2_section, dwarf2_rnglists_process)
13686 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13687 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13688 (read_indirect_string_from_dwz, read_addr_index_1)
13689 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13690 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13691 (fill_in_loclist_baton): Update.
13692 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13693 get_containing_section, get_bfd_owner, get_bfd_section,
13694 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13695 (dwarf2_read_section, get_section_name, get_section_file_name)
13696 (get_containing_section, get_section_bfd_owner)
13697 (get_section_bfd_section, get_section_name, get_section_file_name)
13698 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13699 declare.
13700 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13701 (dwarf2_section_info::get_bfd_owner)
13702 (dwarf2_section_info::get_bfd_section)
13703 (dwarf2_section_info::get_name)
13704 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13705 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13706 (dwarf2_section_info::read): Now methods.
13707 * dwarf-index-write.c (class debug_names): Update.
13708
13709 2020-02-08 Tom Tromey <tom@tromey.com>
13710
13711 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13712 Move to dwarf2/section.h.
13713 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13714 (get_section_bfd_section, get_section_name)
13715 (get_section_file_name, get_section_id, get_section_flags)
13716 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13717 dwarf2/section.c.
13718 * dwarf2/section.h: New file.
13719 * dwarf2/section.c: New file, from dwarf2read.c.
13720 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13721
13722 2020-02-08 Tom Tromey <tom@tromey.com>
13723
13724 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13725 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13726 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13727 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13728 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13729 * dwarf2/leb.h: New file, from dwarf2read.c.
13730 * dwarf2/leb.c: New file, from dwarf2read.c.
13731 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13732 Remove.
13733 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13734 (COMMON_SFILES): Add dwarf2/leb.c.
13735
13736 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13737
13738 GDB 9.1 released.
13739
13740 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13741
13742 PR gdb/25190:
13743 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13744 * gdb/remote.c (remote_console_output): Update.
13745 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13746 (ui_file_puts): ...this.
13747 * gdb/ui-file.h (ui_file_puts): Add declaration.
13748 * gdb/utils.c (emit_style_escape): Update.
13749 (flush_wrap_buffer): Update.
13750 (fputs_maybe_filtered): Update.
13751 (fputs_unfiltered): Add function.
13752
13753 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13754
13755 * gdb/event-loop.c (gdb_wait_for_event): Update.
13756 * gdb/printcmd.c (printf_command): Update.
13757 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13758 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13759 (gdb_os_flush_stderr): Update.
13760 * gdb/remote.c (remote_console_output): Update.
13761 * gdb/ui-file.c (gdb_flush): Rename to...
13762 (ui_file_flush): ...this.
13763 (stderr_file::write): Update.
13764 (stderr_file::puts): Update.
13765 * gdb/ui-file.h (gdb_flush): Rename to...
13766 (ui_file_flush): ...this.
13767 * gdb/utils.c (gdb_flush): Add function.
13768 * gdb/utils.h (gdb_flush): Add declaration.
13769
13770 2020-02-07 Tom Tromey <tromey@adacore.com>
13771
13772 PR breakpoints/24915:
13773 * source.c (find_and_open_source): Do not check basenames_may_differ.
13774
13775 2020-02-07 Tom Tromey <tom@tromey.com>
13776
13777 * README: Update gdbserver documentation.
13778 * gdbserver: Move to top level.
13779 * configure.tgt (build_gdbserver): Remove.
13780 * configure.ac: Remove --enable-gdbserver.
13781 * configure: Rebuild.
13782 * Makefile.in (distclean): Don't mention gdbserver.
13783
13784 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13785
13786 * source-cache.c (source_cache::ensure): Surround
13787 get_plain_source_lines with a try/catch.
13788 (source_cache::get_line_charpos): Get rid of try/catch
13789 and only check for the return value of "ensure".
13790 * tui/tui-source.c (tui_source_window::set_contents):
13791 Simplify "nlines" calculation.
13792
13793 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13794
13795 * MAINTAINERS (Write After Approval): Add myself.
13796
13797 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13798
13799 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13800 function call.
13801
13802 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13803
13804 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13805
13806 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13807
13808 * nat/riscv-linux-tdesc.h: New file.
13809 * nat/riscv-linux-tdesc.c: New file, taking code from...
13810 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13811 ... here.
13812 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13813 NATDEPFILES.
13814
13815 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13816
13817 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13818 we don't set the fake simulator ptid to the null_ptid.
13819
13820 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13821
13822 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13823 * gdbthread.h (class thread_info) <resumed>: Likewise.
13824 * infrun.c (resume_1): Likewise.
13825 (proceed): Likewise.
13826 (infrun_thread_stop_requested): Likewise.
13827 (stop_all_threads): Likewise.
13828 (handle_inferior_event): Likewise.
13829 (restart_threads): Likewise.
13830 (finish_step_over): Likewise.
13831 (keep_going_stepped_thread): Likewise.
13832 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13833 (linux_handle_extended_wait): Likewise.
13834 * record-btrace.c (get_thread_current_frame_id): Likewise.
13835 * record-full.c (record_full_wait_1): Likewise.
13836 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13837 * target.c (target_resume): Likewise.
13838 * thread.c (set_running_thread): Likewise.
13839
13840 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13841
13842 * f-valprint.c (f77_print_array_1): Changed datatype of index
13843 variable to LONGEST from int to enable it to contain bound
13844 values correctly.
13845
13846 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13847
13848 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13849 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13850 offsets according to FLEN determined.
13851 (riscv_linux_nat_target::read_description): Determine FLEN
13852 dynamically.
13853 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13854 according to FLEN determined.
13855 (riscv_linux_nat_target::store_registers): Likewise.
13856
13857 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13858
13859 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13860 when reg->group is empty and reggroup is not.
13861
13862 2020-01-31 Tom Tromey <tromey@adacore.com>
13863
13864 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13865 Call beneath target's mourn_inferior after unpushing.
13866
13867 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13868
13869 PR tui/9765
13870 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13871 have enough lines to fill the screen, still return the lowest
13872 address we found.
13873
13874 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13875
13876 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13877 '-', '<', and '>' commands.
13878
13879 2020-01-29 Pedro Alves <palves@redhat.com>
13880 Sergio Durigan Junior <sergiodj@redhat.com>
13881
13882 * infcmd.c (construct_inferior_arguments): Assert that
13883 'argc' is greater than 0.
13884
13885 2020-01-29 Luis Machado <luis.machado@linaro.org>
13886
13887 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13888 (BRK_INSN_MASK): Define to 0xd4200000.
13889 (aarch64_program_breakpoint_here_p): New function.
13890 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13891 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13892 breakpoint.c.
13893 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13894 breakpoint.h
13895 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13896 call gdbarch_program_breakpoint_here_p.
13897 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13898 default_program_breakpoint_here_p, changed return type to bool and
13899 simplified.
13900 * breakpoint.h (program_breakpoint_here): Moved prototype to
13901 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13902 return type to bool.
13903 * gdbarch.c: Regenerate.
13904 * gdbarch.h: Regenerate.
13905 * gdbarch.sh (program_breakpoint_here_p): New method.
13906 * infrun.c (handle_signal_stop): Call
13907 gdbarch_program_breakpoint_here_p.
13908
13909 2020-01-26 Tom Tromey <tom@tromey.com>
13910
13911 * ctfread.c (struct ctf_fp_info): Reindent.
13912 (_initialize_ctfread): Remove.
13913
13914 2020-01-26 Tom Tromey <tom@tromey.com>
13915
13916 * psymtab.c (partial_map_expand_apply)
13917 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13918 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13919 (psym_print_stats, psym_expand_symtabs_for_function)
13920 (psym_map_symbol_filenames, psym_map_matching_symbols)
13921 (psym_expand_symtabs_matching)
13922 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13923 (maintenance_check_psymtabs): Use new methods.
13924 * psympriv.h (struct partial_symtab) <readin_p,
13925 get_compunit_symtab>: New methods.
13926 <readin, compunit_symtab>: Remove members.
13927 (struct standard_psymtab): New.
13928 (struct legacy_psymtab): Derive from standard_psymtab.
13929 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13930 standard_psymtab.
13931 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13932
13933 2020-01-26 Tom Tromey <tom@tromey.com>
13934
13935 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13936 read_dependencies. Add assert.
13937 * psymtab.c (partial_symtab::read_dependencies): New method.
13938 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13939 method.
13940 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13941 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13942 read_dependencies.
13943 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13944 Add assert.
13945
13946 2020-01-26 Tom Tromey <tom@tromey.com>
13947
13948 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13949 Call expand_psymtab.
13950 (xcoff_read_symtab): Call expand_psymtab.
13951 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13952 legacy_expand_psymtab.
13953 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13954 method.
13955 (struct legacy_psymtab) <expand_psymtab>: Implement.
13956 <legacy_expand_psymtab>: New member.
13957 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13958 (parse_partial_symbols): Set legacy_expand_psymtab.
13959 (psymtab_to_symtab_1): Change argument order. Call
13960 expand_psymtab.
13961 (new_psymtab): Set legacy_expand_psymtab.
13962 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13963 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13964 expand_psymtab.
13965 (dwarf2_psymtab::expand_psymtab): Rename from
13966 psymtab_to_symtab_1. Call expand_psymtab.
13967 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13968 (dbx_end_psymtab): Likewise.
13969 (dbx_psymtab_to_symtab_1): Change argument order. Call
13970 expand_psymtab.
13971 (dbx_read_symtab): Call expand_psymtab.
13972 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13973 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13974 (ctf_psymtab::read_symtab): Call expand_psymtab.
13975
13976 2020-01-26 Tom Tromey <tom@tromey.com>
13977
13978 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13979 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13980 messages.
13981 * mdebugread.c (mdebug_read_symtab): Remove prints.
13982 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13983 assert.
13984 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13985
13986 2020-01-26 Tom Tromey <tom@tromey.com>
13987
13988 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13989 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13990 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13991 legacy_symtab.
13992 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13993 * psymtab.c (psymtab_to_symtab): Call method.
13994 (dump_psymtab): Update.
13995 * psympriv.h (struct partial_symtab): Add virtual destructor.
13996 <read_symtab>: New method.
13997 (struct legacy_symtab): New.
13998 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13999 (struct pst_map) <pst>: Now a legacy_psymtab.
14000 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14001 (new_psymtab): Use legacy_psymtab.
14002 * dwarf2read.h (struct dwarf2_psymtab): New.
14003 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14004 * dwarf2read.c (dwarf2_create_include_psymtab)
14005 (dwarf2_build_include_psymtabs, create_type_unit_group)
14006 (create_partial_symtab, process_psymtab_comp_unit_reader)
14007 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14008 (set_partial_user): Use dwarf2_psymtab.
14009 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14010 (psymtab_to_symtab_1, process_full_comp_unit)
14011 (process_full_type_unit, dwarf2_ranges_read)
14012 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14013 (dwarf_decode_lines): Use dwarf2_psymtab.
14014 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14015 (add_address_entry_worker, write_one_signatured_type)
14016 (recursively_count_psymbols, recursively_write_psymbols)
14017 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14018 (write_debug_names): Likewise.
14019 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14020 <pst>: Now a legacy_psymtab.
14021 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14022 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14023 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14024 * ctfread.c (struct ctf_psymtab): New.
14025 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14026 ctf_psymtab.
14027 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14028 (create_partial_symtab): Return a ctf_psymtab.
14029 (scan_partial_symbols): Update.
14030
14031 2020-01-26 Tom Tromey <tom@tromey.com>
14032
14033 * xcoffread.c (xcoff_start_psymtab): Use new.
14034 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14035 renamed from start_psymtab_common.
14036 * psympriv.h (struct partial_symtab): Add new constructor.
14037 (start_psymtab_common): Don't declare.
14038 * mdebugread.c (parse_partial_symbols): Use new.
14039 * dwarf2read.c (create_partial_symtab): Use new.
14040 * dbxread.c (start_psymtab): Use new.
14041 * ctfread.c (create_partial_symtab): Use new.
14042
14043 2020-01-26 Tom Tromey <tom@tromey.com>
14044
14045 * xcoffread.c (xcoff_end_psymtab): Use new.
14046 * psymtab.c (start_psymtab_common): Use new.
14047 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14048 Update.
14049 * psympriv.h (struct partial_symtab): Add parameters to
14050 constructor. Don't inline.
14051 (allocate_psymtab): Don't declare.
14052 * mdebugread.c (new_psymtab): Use new.
14053 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14054 * dbxread.c (dbx_end_psymtab): Use new.
14055
14056 2020-01-26 Tom Tromey <tom@tromey.com>
14057
14058 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14059 allocate_psymtab. Update documentation.
14060 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14061 allocate_psymtab. Do not use new.
14062 (allocate_psymtab): Use new. Update.
14063
14064 2020-01-26 Tom Tromey <tom@tromey.com>
14065
14066 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14067 * psymtab.c (psym_print_stats): Update.
14068 * psympriv.h (struct partial_symtab) <readin,
14069 psymtabs_addrmap_supported, anonymous>: Now bool.
14070 * mdebugread.c (psymtab_to_symtab_1): Update.
14071 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14072 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14073 (process_full_comp_unit, process_full_type_unit): Update.
14074 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14075 * ctfread.c (psymtab_to_symtab): Update.
14076
14077 2020-01-26 Tom Tromey <tom@tromey.com>
14078
14079 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14080 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14081 * psymtab.c (psymtab_storage): Delete psymtabs.
14082 (psymtab_storage::allocate_psymtab): Use new.
14083 (psymtab_storage::discard_psymtab): Use delete.
14084 * psympriv.h (struct partial_symtab): Add constructor and
14085 initializers.
14086
14087 2020-01-26 Tom Tromey <tom@tromey.com>
14088
14089 * machoread.c: Do not include psympriv.h.
14090
14091 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14092
14093 * NEWS: Mention the new option and the set/show commands.
14094
14095 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14096
14097 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14098 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14099 (validate_exec_file): New variables, enums, functions.
14100 (exec_file_locate_attach, print_section_info): Style the filenames.
14101 (_initialize_exec): Install show_exec_file_mismatch_command and
14102 set_exec_file_mismatch_command.
14103 * gdbcore.h (validate_exec_file): Declare.
14104 * infcmd.c (attach_command): Call validate_exec_file.
14105 * remote.c ( remote_target::remote_add_inferior): Likewise.
14106
14107 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14108
14109 * frame.c (find_frame_sal): Move call to get_next_frame into more
14110 inner scope.
14111 * inline-frame.c (inilne_state) <inline_state>: Update argument
14112 types.
14113 (inilne_state) <skipped_symbol>: Rename to...
14114 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14115 (skip_inline_frames): Build vector of skipped symbols and use this
14116 to reate the inline_state.
14117 (inline_skipped_symbol): Add a comment and some assertions, fetch
14118 skipped symbol from the list.
14119
14120 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14121
14122 * buildsym.c (lte_is_less_than): Delete.
14123 (buildsym_compunit::end_symtab_with_blockvector): Create local
14124 lambda function to sort line table entries, and use
14125 std::stable_sort instead of std::sort.
14126 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14127 markers when looking for a previous line.
14128
14129 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14130
14131 * dwarf2read.c (lnp_state_machine::record_line): Include
14132 end_sequence parameter in debug print out. Record the line if we
14133 are at an end_sequence marker even if it's not the start of a
14134 statement.
14135 * symmisc.c (maintenance_print_one_line_table): Print end of
14136 sequence markers with 'END' not '0'.
14137
14138 2020-01-24 Pedro Alves <palves@redhat.com>
14139
14140 PR gdb/25410
14141 * thread.c (scoped_restore_current_thread::restore): Use
14142 switch_to_inferior_no_thread.
14143 * exec.c: Include "progspace-and-thread.h".
14144 (add_target_sections, remove_target_sections):
14145 scoped_restore_current_pspace_and_thread instead of
14146 scoped_restore_current_thread.
14147 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14148 and aspace to the inferior before calling clone_program_space.
14149 Remove stale comment.
14150
14151 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14152
14153 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14154 (arm_netbsd_nat_target::fetch_registers): ...this.
14155 (arm_nbsd_nat_target::store_registers): Rename to...
14156 (arm_netbsd_nat_target::store_registers): ...this.
14157
14158 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14159
14160 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14161 register_t.
14162
14163 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14164
14165 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14166 Update comment.
14167 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14168 Likewise.
14169 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14170 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14171 the correct replacement (iterate_over_regset_sections).
14172 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14173 Update comment.
14174
14175 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14176
14177 PR gdb/23718
14178 * gdb/python/python.c (execute_gdb_command): Call
14179 async_enable_stdin in catch block.
14180
14181 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14182
14183 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14184 SWITCH_THRU_ALL_UIS.
14185
14186 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14187
14188 PR tui/9765
14189 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14190 comment, add extra parameter, and update to store previous symbol
14191 when appropriate.
14192 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14193 add extra parameter.
14194 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14195 remove unneeded parameter, add try/catch around gdb_print_insn,
14196 rewrite to add items to asm_lines vector.
14197 (tui_find_backward_disassembly_start_address): New function.
14198 (tui_find_disassembly_address): Updated throughout.
14199 (tui_disasm_window::set_contents): Update for changes to
14200 tui_disassemble.
14201 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14202 number of lines to scroll.
14203
14204 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14205
14206 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14207 (SECT_OFF_DATA): Likewise.
14208 (SECT_OFF_RODATA): Likewise.
14209 (SECT_OFF_TEXT): Likewise.
14210 (SECT_OFF_BSS): Likewise.
14211 (struct objfile) <text_section_offset, data_section_offset>: New
14212 methods.
14213 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14214 objfile::text_section_offset.
14215 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14216 * coffread.c (coff_symtab_read): Likewise.
14217 (enter_linenos): Likewise.
14218 (process_coff_symbol): Likewise.
14219 * ctfread.c (get_objfile_text_range): Likewise.
14220 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14221 Use objfile::data_section_offset.
14222 * dwarf2-frame.c (execute_cfa_program): Use
14223 objfile::text_section_offset.
14224 (dwarf2_frame_find_fde): Likewise.
14225 * dwarf2read.c (create_addrmap_from_index): Likewise.
14226 (create_addrmap_from_aranges): Likewise.
14227 (dw2_find_pc_sect_compunit_symtab): Likewise.
14228 (process_psymtab_comp_unit_reader): Likewise.
14229 (add_partial_symbol): Likewise.
14230 (add_partial_subprogram): Likewise.
14231 (process_full_comp_unit): Likewise.
14232 (read_file_scope): Likewise.
14233 (read_func_scope): Likewise.
14234 (read_lexical_block_scope): Likewise.
14235 (read_call_site_scope): Likewise.
14236 (dwarf2_rnglists_process): Likewise.
14237 (dwarf2_ranges_process): Likewise.
14238 (dwarf2_ranges_read): Likewise.
14239 (dwarf_decode_lines_1): Likewise.
14240 (new_symbol): Likewise.
14241 (dwarf2_fetch_die_loc_sect_off): Likewise.
14242 (dwarf2_per_cu_text_offset): Likewise.
14243 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14244 * hppa-tdep.c (read_unwind_info): Likewise.
14245 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14246 * psympriv.h (struct partial_symtab): Likewise.
14247 * psymtab.c (find_pc_sect_psymtab): Likewise.
14248 * solib-svr4.c (enable_break): Likewise.
14249 * stap-probe.c (relocate_address): Use
14250 objfile::data_section_offset.
14251 * xcoffread.c (enter_line_range): Use
14252 objfile::text_section_offset.
14253 (read_xcoff_symtab): Likewise.
14254
14255 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14256
14257 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14258 declaration to narrower scopes.
14259
14260 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14261
14262 * darwin-nat.h (struct darwin_exception_msg, enum
14263 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14264 Move up.
14265 (class darwin_nat_target) <wait_1, check_new_threads,
14266 decode_exception_message, decode_message, stop_inferior,
14267 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14268 * darwin-nat.c (darwin_check_new_threads): Rename to...
14269 (darwin_nat_target::check_new_threads): ... this.
14270 (darwin_suspend_inferior_it): Remove.
14271 (darwin_decode_exception_message): Rename to...
14272 (darwin_nat_target::decode_exception_message): ... this.
14273 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14274 (darwin_decode_message): Rename to...
14275 (darwin_nat_target::decode_message): ... this.
14276 (cancel_breakpoint): Rename to...
14277 (darwin_nat_target::cancel_breakpoint): ... this.
14278 (darwin_wait): Rename to...
14279 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14280 instead of iterate_over_inferiors.
14281 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14282 (darwin_stop_inferior): Rename to...
14283 (darwin_nat_target::stop_inferior): ... this.
14284 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14285 (darwin_init_thread_list): Rename to...
14286 (darwin_nat_target::init_thread_list): ... this.
14287 (darwin_ptrace_him): Rename to...
14288 (darwin_nat_target::ptrace_him): ... this.
14289 (darwin_nat_target::create_inferior): Pass lambda function to
14290 fork_inferior.
14291 (darwin_nat_target::detach): Call stop_inferior instead of
14292 darwin_stop_inferior.
14293 * fork-inferior.h (fork_inferior): Change init_trace_fun
14294 parameter to gdb::function_view.
14295 * fork-inferior.c (fork_inferior): Likewise.
14296
14297 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14298
14299 * i386-cygwin-tdep.c (core_process_module_section): Update.
14300 * windows-nat.c (struct lm_info_windows): Add text_offset.
14301 (windows_xfer_shared_libraries): Update.
14302 * windows-tdep.c (windows_xfer_shared_library):
14303 Add text_offset_cached argument.
14304 * windows-tdep.h (windows_xfer_shared_library): Update.
14305
14306 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14307
14308 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14309
14310 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14311
14312 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14313 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14314 replace with range-based for.
14315 (gdbsim_interrupt_inferior): Remove.
14316 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14317 with a range-based for. Inline code from
14318 gdbsim_interrupt_inferior.
14319
14320 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14321
14322 * infrun.c (proceed): Fix indentation.
14323
14324 2020-01-21 Tom Tromey <tromey@adacore.com>
14325
14326 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14327 * python/python.c (python_extension_ops): Update.
14328 (gdbpy_colorize): New function.
14329 * python/lib/gdb/__init__.py (colorize): New function.
14330 * extension.h (ext_lang_colorize): Declare.
14331 * extension.c (ext_lang_colorize): New function.
14332 * extension-priv.h (struct extension_language_ops) <colorize>: New
14333 member.
14334 * cli/cli-style.c (_initialize_cli_style): Update help text.
14335
14336 2020-01-21 Luis Machado <luis.machado@linaro.org>
14337
14338 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14339 <cond>: Change type to bool.
14340 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14341 (aarch64_displaced_step_cb): Likewise.
14342 (aarch64_displaced_step_tb): Likewise.
14343
14344 2020-01-21 Luis Machado <luis.machado@linaro.org>
14345
14346 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14347 output.
14348
14349 2020-01-21 Luis Machado <luis.machado@linaro.org>
14350
14351 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14352 <pc_adjust>: Adjust the documentation.
14353 (aarch64_displaced_step_fixup): Check if PC really moved before
14354 adjusting it.
14355
14356 2020-01-19 Tom Tromey <tom@tromey.com>
14357
14358 * disasm.c (~gdb_disassembler): New destructor.
14359 (gdb_buffered_insn_length): Call disassemble_free_target.
14360 * disasm.h (class gdb_disassembler): Declare destructor. Use
14361 DISABLE_COPY_AND_ASSIGN.
14362
14363 2020-01-19 Tom Tromey <tom@tromey.com>
14364
14365 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14366 (die_reader_func_ftype): Remove.
14367 (cutu_reader): New class.
14368 (dw2_get_file_names_reader): Remove "data" parameter.
14369 (dw2_get_file_names): Use cutu_reader.
14370 (create_debug_type_hash_table): Update.
14371 (read_cutu_die_from_dwo): Update comment.
14372 (lookup_dwo_unit): Add dwo_name parameter.
14373 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14374 die_reader_func_ftype and data parameters.
14375 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14376 Remove die_reader_func_ftype and data parameters.
14377 (~cutu_reader): New; from init_cutu_and_read_dies.
14378 (cutu_reader::cutu_reader): Rename from
14379 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14380 and data parameters.
14381 (init_cutu_and_read_dies_simple): Remove.
14382 (struct process_psymtab_comp_unit_data): Remove.
14383 (process_psymtab_comp_unit_reader): Remove data parameter; add
14384 want_partial_unit and pretend_language parameters.
14385 (process_psymtab_comp_unit): Use cutu_reader.
14386 (build_type_psymtabs_reader): Remove data parameter.
14387 (build_type_psymtabs_1): Use cutu_reader.
14388 (process_skeletonless_type_unit): Likewise.
14389 (load_partial_comp_unit_reader): Remove.
14390 (load_partial_comp_unit): Use cutu_reader.
14391 (load_full_comp_unit_reader): Remove.
14392 (load_full_comp_unit): Use cutu_reader.
14393 (struct create_dwo_cu_data): Remove.
14394 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14395 dwo_unit parameters.
14396 (create_cus_hash_table): Use cutu_reader.
14397 (struct dwarf2_read_addr_index_data): Remove.
14398 (dwarf2_read_addr_index_reader): Remove.
14399 (dwarf2_read_addr_index): Use cutu_reader.
14400 (read_signatured_type_reader): Remove.
14401 (read_signatured_type): Use cutu_reader.
14402
14403 2020-01-19 Tom Tromey <tom@tromey.com>
14404
14405 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14406 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14407 (tui_wrefresh): Declare.
14408 * tui/tui-wingeneral.c (suppress_output): New global.
14409 (tui_suppress_output, ~tui_suppress_output): New constructor and
14410 destructor.
14411 (tui_wrefresh): New function.
14412 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14413 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14414 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14415 method.
14416 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14417 tui_wrefresh.
14418 (tui_data_window::no_refresh): New method.
14419 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14420 (tui_reg_command): Use tui_suppress_output
14421 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14422 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14423 method.
14424 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14425
14426 2020-01-19 Tom Tromey <tom@tromey.com>
14427
14428 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14429 Handle case where symtab is null.
14430
14431 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14432
14433 * linux-fork.c (one_fork_p): Simplify.
14434
14435 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14436
14437 * top.c (struct qt_args): Remove.
14438 (kill_or_detach): Change return type to void, replace `void *`
14439 parameter with a proper one.
14440 (print_inferior_quit_action): Likewise.
14441 (quit_confirm): Use range-based for loop to iterate over inferiors.
14442 (quit_force): Likewise.
14443
14444 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14445
14446 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14447 `void *` parameter with proper parameters.
14448 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14449 (print_one_inferior): Change return type to void, replace `void *`
14450 parameter with proper parameters.
14451 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14452 inferiors.
14453 (get_other_inferior): Remove.
14454 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14455 inferiors.
14456
14457 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14458
14459 * mi/mi-interp.c (report_initial_inferior): Remove.
14460 (mi_interp::init): Use range-based for to iterate over inferiors.
14461
14462 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14463
14464 * python/py-inferior.c (build_inferior_list): Remove.
14465 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14466
14467 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14468
14469 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14470 (btrace_stitch_trace): Likewise.
14471 * charset.c (intermediate_encoding): Likewise (vaild).
14472 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14473 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14474 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14475
14476 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14477
14478 * windows-tdep.c (windows_get_tlb_type):
14479 Add rtl_user_process_parameters type.
14480
14481 2020-01-16 Pedro Alves <palves@redhat.com>
14482 Norbert Lange <nolange79@gmail.com>
14483
14484 PR build/24805
14485 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14486 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14487 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14488 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14489 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14490 (ps_plog): Redeclare exported functions with default visibility.
14491
14492 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14493
14494 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14495 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14496
14497 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14498
14499 * infcmd.c (post_create_inferior): Use get_thread_regcache
14500 instead of get_current_regcache.
14501
14502 2020-01-14 Tom Tromey <tom@tromey.com>
14503
14504 PR symtab/12535:
14505 * python/python.c (gdbpy_decode_line): Treat empty string the same
14506 as no argument.
14507
14508 2020-01-14 Tom Tromey <tom@tromey.com>
14509
14510 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14511
14512 2020-01-14 Tom Tromey <tom@tromey.com>
14513
14514 * nat/linux-btrace.c: Don't include <config.h>.
14515 * nat/linux-ptrace.c: Don't include <config.h>.
14516 * nat/x86-linux-dregs.c: Don't include <config.h>.
14517
14518 2020-01-14 Tom Tromey <tom@tromey.com>
14519
14520 * configure: Rebuild.
14521 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14522
14523 2020-01-14 Tom Tromey <tom@tromey.com>
14524
14525 * nat/x86-linux-dregs.c: Include configh.h.
14526 * nat/linux-ptrace.c: Include configh.h.
14527 * nat/linux-btrace.c: Include configh.h.
14528 * defs.h: Include config.h, bfd.h.
14529 * configure.ac: Don't source common.host.
14530 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14531 * configure: Rebuild.
14532 * acinclude.m4: Update path.
14533 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14534 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14535 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14536 (CLIBS): Add LIBSUPPORT.
14537 (CDEPS): Likewise.
14538 (COMMON_SFILES): Remove gdbsupport files.
14539 (HFILES_NO_SRCDIR): Likewise.
14540 (stamp-version): Update path to create-version.sh.
14541 (ALLDEPFILES): Remove gdbsupport files.
14542
14543 2020-01-14 Tom Tromey <tom@tromey.com>
14544
14545 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14546 USE_WIN32API when needed.
14547 * configure.ac (USE_WIN32API): Don't define.
14548 (WIN32LIBS): Use WIN32APILIBS.
14549 * configure: Rebuild.
14550
14551 2020-01-14 Tom Tromey <tom@tromey.com>
14552
14553 * configure: Rebuild.
14554 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14555
14556 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14557
14558 * skip.c (skip_function_command): Make skip w/o arguments use the
14559 name of the inlined function if pc is inside any inlined function.
14560
14561 2020-01-14 Luis Machado <luis.machado@linaro.org>
14562
14563 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14564 * infrun.c (resume_1): Likewise.
14565 (handle_inferior_event): Remove stale comment.
14566 * linux-nat.c (linux_nat_target::resume): Update comments.
14567 (save_stop_reason): Likewise.
14568 (linux_nat_filter_event): Likewise.
14569 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14570
14571 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14572
14573 * elfread.c (record_minimal_symbol): Set section index to 0 for
14574 non-allocatable sections.
14575
14576
14577 2020-01-13 Ali Tamur <tamur@google.com>
14578
14579 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14580 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14581 to gdb::optional. Update comments.
14582 (dwo_file): Update comments.
14583 (read_attribute): Update API to take an additional out parameter,
14584 need_reprocess. This is used to mark attributes that need other
14585 attributes (e.g. str_offsets_base) for correct computation which may not
14586 have been read yet.
14587 (read_attribute_reprocess): New function declaration.
14588 (read_addr_index): Likewise.
14589 (read_dwo_str_index): Likewise.
14590 (read_stub_str_index): Likewise.
14591 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14592 (lookup_addr_base): New function definition.
14593 (lookup_ranges_base): Likewise.
14594 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14595 lookup_ranges_base.
14596 (init_cutu_and_read_dies): Update comments.
14597 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14598 unit. This is used to inherit parent's str_offsets_base and addr_base.
14599 Update comments.
14600 (init_cutu_and_read_dies_simple): Reflect API changes.
14601 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14602 (create_cus_hash_table): Change API to take parent compile unit.
14603 Reflect API changes.
14604 (open_and_init_dwo_file): Reflect API changes.
14605 (dwarf2_get_pc_bounds): Update comments.
14606 (dwarf2_record_block_ranges): Likewise.
14607 (read_full_die_1): Change implementation to reprocess attributes that
14608 need str_offsets_base and addr_base.
14609 (partial_die_info::read): Likewise.
14610 (read_attribute_reprocess): New function definition.
14611 (read_attribute_value): Change API to take an additional out parameter,
14612 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14613 when a non-dwo compile unit has index based attributes.
14614 (read_attribute): Reflect API changes.
14615 (read_addr_index_1): Reflect API changes. Update comments.
14616 (dwarf2_read_addr_index_data): Reflect API changes.
14617 (dwarf2_read_addr_index): Likewise.
14618 (read_str_index): Change API and implementation. This becomes a helper
14619 to be used by the new string index related methods. Update error
14620 message and comments.
14621 (read_dwo_str_index): New function definition.
14622 (read_stub_str_index): Likewise.
14623 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14624 * symfile.h (dwarf2_debug_sections): Likewise.
14625 * xcoffread.c (dwarf2_debug_sections): Likewise.
14626
14627 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14628
14629 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14630 core_reg_sect type to gdb_byte *.
14631 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14632 * cris-tdep.c (fetch_core_registers): Likewise.
14633 * corelow.c (core_target::get_core_register_section): Change
14634 type of `contents` to gdb::byte_vector.
14635
14636 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14637
14638 * tui/tui-wingeneral.c (box_win): Position the title in the center
14639 of the border.
14640
14641 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14642
14643 * corelow.c (core_target::get_core_register_section): Use
14644 std::vector instead of alloca.
14645
14646 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14647
14648 * warning.m4: Add -Wmissing-declarations to build_warnings.
14649 * configure: Re-generate.
14650
14651 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14652
14653 * python/python.c (init__gdb_module): Add declaration.
14654
14655 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14656
14657 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14658 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14659 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14660 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14661 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14662 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14663 * ada-exp.y (_initialize_ada_exp): Add declaration.
14664 * ada-lang.c (_initialize_ada_language): Add declaration.
14665 * ada-tasks.c (_initialize_tasks): Add declaration.
14666 * agent.c (_initialize_agent): Add declaration.
14667 * aix-thread.c (_initialize_aix_thread): Add declaration.
14668 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14669 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14670 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14671 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14672 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14673 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14674 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14675 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14676 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14677 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14678 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14679 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14680 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14681 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14682 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14683 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14684 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14685 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14686 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14687 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14688 * annotate.c (_initialize_annotate): Add declaration.
14689 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14690 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14691 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14692 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14693 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14694 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14695 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14696 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14697 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14698 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14699 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14700 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14701 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14702 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14703 * auto-load.c (_initialize_auto_load): Add declaration.
14704 * auxv.c (_initialize_auxv): Add declaration.
14705 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14706 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14707 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14708 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14709 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14710 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14711 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14712 * breakpoint.c (_initialize_breakpoint): Add declaration.
14713 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14714 * btrace.c (_initialize_btrace): Add declaration.
14715 * charset.c (_initialize_charset): Add declaration.
14716 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14717 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14718 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14719 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14720 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14721 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14722 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14723 * coffread.c (_initialize_coffread): Add declaration.
14724 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14725 * compile/compile.c (_initialize_compile): Add declaration.
14726 * complaints.c (_initialize_complaints): Add declaration.
14727 * completer.c (_initialize_completer): Add declaration.
14728 * copying.c (_initialize_copying): Add declaration.
14729 * corefile.c (_initialize_core): Add declaration.
14730 * corelow.c (_initialize_corelow): Add declaration.
14731 * cp-abi.c (_initialize_cp_abi): Add declaration.
14732 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14733 * cp-support.c (_initialize_cp_support): Add declaration.
14734 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14735 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14736 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14737 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14738 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14739 * ctfread.c (_initialize_ctfread): Add declaration.
14740 * d-lang.c (_initialize_d_language): Add declaration.
14741 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14742 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14743 * dbxread.c (_initialize_dbxread): Add declaration.
14744 * dcache.c (_initialize_dcache): Add declaration.
14745 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14746 * disasm.c (_initialize_disasm): Add declaration.
14747 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14748 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14749 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14750 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14751 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14752 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14753 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14754 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14755 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14756 * elfread.c (_initialize_elfread): Add declaration.
14757 * exec.c (_initialize_exec): Add declaration.
14758 * extension.c (_initialize_extension): Add declaration.
14759 * f-lang.c (_initialize_f_language): Add declaration.
14760 * f-valprint.c (_initialize_f_valprint): Add declaration.
14761 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14762 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14763 * filesystem.c (_initialize_filesystem): Add declaration.
14764 * findcmd.c (_initialize_mem_search): Add declaration.
14765 * findvar.c (_initialize_findvar): Add declaration.
14766 * fork-child.c (_initialize_fork_child): Add declaration.
14767 * frame-base.c (_initialize_frame_base): Add declaration.
14768 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14769 * frame.c (_initialize_frame): Add declaration.
14770 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14771 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14772 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14773 * gcore.c (_initialize_gcore): Add declaration.
14774 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14775 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14776 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14777 * gdbarch.c (_initialize_gdbarch): Add declaration.
14778 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14779 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14780 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14781 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14782 * go-lang.c (_initialize_go_language): Add declaration.
14783 * go32-nat.c (_initialize_go32_nat): Add declaration.
14784 * guile/guile.c (_initialize_guile): Add declaration.
14785 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14786 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14787 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14788 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14789 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14790 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14791 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14792 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14793 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14794 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14795 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14796 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14797 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14798 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14799 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14800 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14801 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14802 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14803 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14804 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14805 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14806 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14807 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14808 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14809 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14810 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14811 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14812 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14813 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14814 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14815 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14816 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14817 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14818 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14819 * infcall.c (_initialize_infcall): Add declaration.
14820 * infcmd.c (_initialize_infcmd): Add declaration.
14821 * inflow.c (_initialize_inflow): Add declaration.
14822 * infrun.c (_initialize_infrun): Add declaration.
14823 * interps.c (_initialize_interpreter): Add declaration.
14824 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14825 * jit.c (_initialize_jit): Add declaration.
14826 * language.c (_initialize_language): Add declaration.
14827 * linux-fork.c (_initialize_linux_fork): Add declaration.
14828 * linux-nat.c (_initialize_linux_nat): Add declaration.
14829 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14830 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14831 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14832 * m2-lang.c (_initialize_m2_language): Add declaration.
14833 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14834 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14835 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14836 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14837 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14838 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14839 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14840 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14841 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14842 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14843 * machoread.c (_initialize_machoread): Add declaration.
14844 * macrocmd.c (_initialize_macrocmd): Add declaration.
14845 * macroscope.c (_initialize_macroscope): Add declaration.
14846 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14847 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14848 * maint.c (_initialize_maint_cmds): Add declaration.
14849 * mdebugread.c (_initialize_mdebugread): Add declaration.
14850 * memattr.c (_initialize_mem): Add declaration.
14851 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14852 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14853 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14854 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14855 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14856 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14857 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14858 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14859 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14860 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14861 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14862 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14863 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14864 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14865 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14866 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14867 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14868 * mipsread.c (_initialize_mipsread): Add declaration.
14869 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14870 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14871 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14872 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14873 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14874 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14875 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14876 * nto-procfs.c (_initialize_procfs): Add declaration.
14877 * objc-lang.c (_initialize_objc_language): Add declaration.
14878 * observable.c (_initialize_observer): Add declaration.
14879 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14880 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14881 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14882 * osabi.c (_initialize_gdb_osabi): Add declaration.
14883 * osdata.c (_initialize_osdata): Add declaration.
14884 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14885 * parse.c (_initialize_parse): Add declaration.
14886 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14887 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14888 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14889 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14890 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14891 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14892 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14893 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14894 * printcmd.c (_initialize_printcmd): Add declaration.
14895 * probe.c (_initialize_probe): Add declaration.
14896 * proc-api.c (_initialize_proc_api): Add declaration.
14897 * proc-events.c (_initialize_proc_events): Add declaration.
14898 * proc-service.c (_initialize_proc_service): Add declaration.
14899 * procfs.c (_initialize_procfs): Add declaration.
14900 * producer.c (_initialize_producer): Add declaration.
14901 * psymtab.c (_initialize_psymtab): Add declaration.
14902 * python/python.c (_initialize_python): Add declaration.
14903 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14904 * record-btrace.c (_initialize_record_btrace): Add declaration.
14905 * record-full.c (_initialize_record_full): Add declaration.
14906 * record.c (_initialize_record): Add declaration.
14907 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14908 * regcache.c (_initialize_regcache): Add declaration.
14909 * reggroups.c (_initialize_reggroup): Add declaration.
14910 * remote-notif.c (_initialize_notif): Add declaration.
14911 * remote-sim.c (_initialize_remote_sim): Add declaration.
14912 * remote.c (_initialize_remote): Add declaration.
14913 * reverse.c (_initialize_reverse): Add declaration.
14914 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14915 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14916 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14917 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14918 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14919 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14920 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14921 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14922 Add declaration.
14923 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14924 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14925 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14926 * rust-exp.y (_initialize_rust_exp): Add declaration.
14927 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14928 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14929 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14930 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14931 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14932 * score-tdep.c (_initialize_score_tdep): Add declaration.
14933 * ser-go32.c (_initialize_ser_dos): Add declaration.
14934 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14935 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14936 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14937 * ser-uds.c (_initialize_ser_socket): Add declaration.
14938 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14939 * serial.c (_initialize_serial): Add declaration.
14940 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14941 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14942 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14943 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14944 * skip.c (_initialize_step_skip): Add declaration.
14945 * sol-thread.c (_initialize_sol_thread): Add declaration.
14946 * solib-aix.c (_initialize_solib_aix): Add declaration.
14947 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14948 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14949 * solib-frv.c (_initialize_frv_solib): Add declaration.
14950 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14951 * solib-target.c (_initialize_solib_target): Add declaration.
14952 * solib.c (_initialize_solib): Add declaration.
14953 * source-cache.c (_initialize_source_cache): Add declaration.
14954 * source.c (_initialize_source): Add declaration.
14955 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14956 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14957 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14958 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14959 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14960 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14961 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14962 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14963 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14964 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14965 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14966 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14967 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14968 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14969 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14970 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14971 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14972 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14973 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14974 * stabsread.c (_initialize_stabsread): Add declaration.
14975 * stack.c (_initialize_stack): Add declaration.
14976 * stap-probe.c (_initialize_stap_probe): Add declaration.
14977 * std-regs.c (_initialize_frame_reg): Add declaration.
14978 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14979 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14980 * symfile.c (_initialize_symfile): Add declaration.
14981 * symmisc.c (_initialize_symmisc): Add declaration.
14982 * symtab.c (_initialize_symtab): Add declaration.
14983 * target.c (_initialize_target): Add declaration.
14984 * target-connection.c (_initialize_target_connection): Add
14985 declaration.
14986 * target-dcache.c (_initialize_target_dcache): Add declaration.
14987 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14988 * thread.c (_initialize_thread): Add declaration.
14989 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14990 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14991 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14992 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14993 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14994 * tracectf.c (_initialize_ctf): Add declaration.
14995 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14996 * tracefile.c (_initialize_tracefile): Add declaration.
14997 * tracepoint.c (_initialize_tracepoint): Add declaration.
14998 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14999 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15000 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15001 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15002 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15003 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15004 * tui/tui.c (_initialize_tui): Add declaration.
15005 * typeprint.c (_initialize_typeprint): Add declaration.
15006 * ui-style.c (_initialize_ui_style): Add declaration.
15007 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15008 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15009 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15010 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15011 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15012 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15013 * unittests/filtered_iterator-selftests.c
15014 (_initialize_filtered_iterator_selftests): Add declaration.
15015 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15016 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15017 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15018 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15019 * unittests/main-thread-selftests.c
15020 (_initialize_main_thread_selftests): Add declaration.
15021 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15022 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15023 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15024 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15025 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15026 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15027 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15028 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15029 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15030 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15031 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15032 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15033 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15034 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15035 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15036 declaration.
15037 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15038 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15039 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15040 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15041 * user-regs.c (_initialize_user_regs): Add declaration.
15042 * utils.c (_initialize_utils): Add declaration.
15043 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15044 * valops.c (_initialize_valops): Add declaration.
15045 * valprint.c (_initialize_valprint): Add declaration.
15046 * value.c (_initialize_values): Add declaration.
15047 * varobj.c (_initialize_varobj): Add declaration.
15048 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15049 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15050 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15051 * windows-nat.c (_initialize_windows_nat): Add declaration.
15052 (_initialize_check_for_gdb_ini): Add declaration.
15053 (_initialize_loadable): Add declaration.
15054 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15055 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15056 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15057 * xcoffread.c (_initialize_xcoffread): Add declaration.
15058 * xml-support.c (_initialize_xml_support): Add declaration.
15059 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15060 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15061 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15062 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15063
15064 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15065
15066 * regformats/regdat.sh: Generate declaration for init function.
15067
15068 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15069
15070 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15071 up.
15072 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15073 close_one_inferior>: New methods.
15074 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15075 pass down target to find_inferior_pid.
15076 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15077 Pass down target to find_inferior_ptid.
15078 (gdbsim_target::create_inferior): Pass down target to
15079 add_thread_silent.
15080 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15081 target down to find_inferior_ptid and switch_to_thread.
15082 (gdbsim_target::close): Update to call close_one_inferior.
15083 (struct resume_data): Remove.
15084 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15085 directly, rather than through a void pointer.
15086 (gdbsim_target::resume): Update to call resume_one_inferior.
15087
15088 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15089
15090 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15091
15092 2020-01-12 Pedro Alves <palves@redhat.com>
15093
15094 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15095 directly for the current inferior instead of
15096 discard_all_inferiors.
15097 (discard_all_inferiors): Delete.
15098
15099 2020-01-11 Tom Tromey <tom@tromey.com>
15100
15101 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15102 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15103 deprecated_safe_get_selected_frame.
15104
15105 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15106
15107 * inferior.c (print_inferior): Switch inferior before printing it.
15108
15109 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15110 Pedro Alves <palves@redhat.com>
15111
15112 * progspace-and-thread.c (switch_to_program_space_and_thread):
15113 Assert there's an inferior for PSPACE. Use
15114 switch_to_inferior_no_thread to switch the inferior too.
15115 * progspace.c (program_space::~program_space): Call
15116 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15117 (program_space::free_all_objfiles): Don't call clear_symtab_users
15118 here.
15119 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15120
15121 2020-01-10 Pedro Alves <palves@redhat.com>
15122
15123 * NEWS: Mention multi-target debugging, "info connections", and
15124 "add-inferior -no-connection".
15125
15126 2020-01-10 Pedro Alves <palves@redhat.com>
15127
15128 * infrun.c: Include "target-connection.h".
15129 (check_multi_target_resumption): New.
15130 (proceed): Call it.
15131 * target-connection.c (make_target_connection_string): Make
15132 extern.
15133 * target-connection.h (make_target_connection_string): Declare.
15134
15135 2020-01-10 Pedro Alves <palves@redhat.com>
15136
15137 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15138 * inferior.c (uiout_field_connection): New function.
15139 (print_inferior): Add new "connection-id" column.
15140 (add_inferior_command): Show connection number/string of added
15141 inferior.
15142 * process-stratum-target.h
15143 (process_stratum_target::connection_string): New virtual method.
15144 (process_stratum_target::connection_number): New field.
15145 * remote.c (remote_target::connection_string): New override.
15146 * target-connection.c: New file.
15147 * target-connection.h: New file.
15148 * target.c (decref_target): Remove process_stratum targets from
15149 the connection list.
15150 (target_stack::push): Add process_stratum targets to the
15151 connection list.
15152
15153 2020-01-10 Pedro Alves <palves@redhat.com>
15154
15155 Revert:
15156 2016-04-12 Pedro Alves <palves@redhat.com>
15157 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15158 Remove references to name.
15159 * serial.h (struct serial) <name>: Delete.
15160
15161 2020-01-10 Pedro Alves <palves@redhat.com>
15162
15163 * gdbarch-selftests.c (register_to_value_test): Remove "target
15164 already pushed" check.
15165
15166 2020-01-10 Pedro Alves <palves@redhat.com>
15167 John Baldwin <jhb@FreeBSD.org>
15168
15169 * aarch64-linux-nat.c
15170 (aarch64_linux_nat_target::thread_architecture): Adjust.
15171 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15172 (task_command_1): Likewise.
15173 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15174 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15175 (aix_thread_target::store_registers)
15176 (aix_thread_target::thread_alive): Adjust.
15177 * amd64-fbsd-tdep.c: Include "inferior.h".
15178 (amd64fbsd_get_thread_local_address): Pass down target.
15179 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15180 thread's gdbarch instead of target_gdbarch.
15181 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15182 get_last_target_status.
15183 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15184 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15185 inferiors.
15186 (update_inserted_breakpoint_locations): Skip if inferiors with no
15187 execution.
15188 (update_global_location_list): When handling moribund locations,
15189 find representative inferior for location's pspace, and use thread
15190 count of its process_stratum target.
15191 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15192 * bsd-uthread.c (bsd_uthread_target::wait): Use
15193 as_process_stratum_target and adjust thread_change_ptid and
15194 add_thread calls.
15195 (bsd_uthread_target::update_thread_list): Use
15196 as_process_stratum_target and adjust find_thread_ptid,
15197 thread_change_ptid and add_thread calls.
15198 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15199 find_thread_ptid call.
15200 * corelow.c (add_to_thread_list): Adjust add_thread call.
15201 (core_target_open): Adjust add_thread_silent and thread_count
15202 calls.
15203 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15204 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15205 * event-top.c (async_disconnect): Pop targets from all inferiors.
15206 * exec.c (add_target_sections): Push exec target on all inferiors
15207 sharing the program space.
15208 (remove_target_sections): Remove the exec target from all
15209 inferiors sharing the program space.
15210 (exec_on_vfork): New.
15211 * exec.h (exec_on_vfork): Declare.
15212 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15213 Pass it down.
15214 (fbsd_nat_target::update_thread_list): Adjust.
15215 (fbsd_nat_target::resume): Adjust.
15216 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15217 down.
15218 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15219 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15220 get_thread_arch_regcache call.
15221 * fork-child.c (gdb_startup_inferior): Pass target down to
15222 startup_inferior and set_executing.
15223 * gdbthread.h (struct process_stratum_target): Forward declare.
15224 (add_thread, add_thread_silent, add_thread_with_info)
15225 (in_thread_list): Add process_stratum_target parameter.
15226 (find_thread_ptid(inferior*, ptid_t)): New overload.
15227 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15228 parameter.
15229 (all_threads()): Delete overload.
15230 (all_threads, all_non_exited_threads): Add process_stratum_target
15231 parameter.
15232 (all_threads_safe): Use brace initialization.
15233 (thread_count): Add process_stratum_target parameter.
15234 (set_resumed, set_running, set_stop_requested, set_executing)
15235 (threads_are_executing, finish_thread_state): Add
15236 process_stratum_target parameter.
15237 (switch_to_thread): Use is_current_thread.
15238 * i386-fbsd-tdep.c: Include "inferior.h".
15239 (i386fbsd_get_thread_local_address): Pass down target.
15240 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15241 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15242 have_inferiors check.
15243 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15244 (inf_ptrace_target::attach): Adjust.
15245 * infcall.c (run_inferior_call): Adjust.
15246 * infcmd.c (run_command_1): Pass target to
15247 scoped_finish_thread_state.
15248 (proceed_thread_callback): Skip inferiors with no execution.
15249 (continue_command): Rename 'all_threads' local to avoid hiding
15250 'all_threads' function. Adjust get_last_target_status call.
15251 (prepare_one_step): Adjust set_running call.
15252 (signal_command): Use user_visible_resume_target. Compare thread
15253 pointers instead of inferior_ptid.
15254 (info_program_command): Adjust to pass down target.
15255 (attach_command): Mark target's 'thread_executing' flag.
15256 (stop_current_target_threads_ns): New, factored out from ...
15257 (interrupt_target_1): ... this. Switch inferior before making
15258 target calls.
15259 * inferior-iter.h
15260 (struct all_inferiors_iterator, struct all_inferiors_range)
15261 (struct all_inferiors_safe_range)
15262 (struct all_non_exited_inferiors_range): Filter on
15263 process_stratum_target too. Remove explicit.
15264 * inferior.c (inferior::inferior): Push dummy target on target
15265 stack.
15266 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15267 Add process_stratum_target parameter, and pass it down.
15268 (have_live_inferiors): Adjust.
15269 (switch_to_inferior_and_push_target): New.
15270 (add_inferior_command, clone_inferior_command): Handle
15271 "-no-connection" parameter. Use
15272 switch_to_inferior_and_push_target.
15273 (_initialize_inferior): Mention "-no-connection" option in
15274 the help of "add-inferior" and "clone-inferior" commands.
15275 * inferior.h: Include "process-stratum-target.h".
15276 (interrupt_target_1): Use bool.
15277 (struct inferior) <push_target, unpush_target, target_is_pushed,
15278 find_target_beneath, top_target, process_target, target_at,
15279 m_stack>: New.
15280 (discard_all_inferiors): Delete.
15281 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15282 (all_inferiors, all_non_exited_inferiors): Add
15283 process_stratum_target parameter.
15284 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15285 (target_last_proc_target): New global.
15286 (follow_fork_inferior): Push target on new inferior. Pass target
15287 to add_thread_silent. Call exec_on_vfork. Handle target's
15288 reference count.
15289 (follow_fork): Adjust get_last_target_status call. Also consider
15290 target.
15291 (follow_exec): Push target on new inferior.
15292 (struct execution_control_state) <target>: New field.
15293 (user_visible_resume_target): New.
15294 (do_target_resume): Call target_async.
15295 (resume_1): Set target's threads_executing flag. Consider resume
15296 target.
15297 (commit_resume_all_targets): New.
15298 (proceed): Also consider resume target. Skip threads of inferiors
15299 with no execution. Commit resumtion in all targets.
15300 (start_remote): Pass current inferior to wait_for_inferior.
15301 (infrun_thread_stop_requested): Consider target as well. Pass
15302 thread_info pointer to clear_inline_frame_state instead of ptid.
15303 (infrun_thread_thread_exit): Consider target as well.
15304 (random_pending_event_thread): New inferior parameter. Use it.
15305 (do_target_wait): Rename to ...
15306 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15307 down.
15308 (threads_are_resumed_pending_p, do_target_wait): New.
15309 (prepare_for_detach): Adjust calls.
15310 (wait_for_inferior): New inferior parameter. Handle it. Use
15311 do_target_wait_1 instead of do_target_wait.
15312 (fetch_inferior_event): Adjust. Switch to representative
15313 inferior. Pass target down.
15314 (set_last_target_status): Add process_stratum_target parameter.
15315 Save target in global.
15316 (get_last_target_status): Add process_stratum_target parameter and
15317 handle it.
15318 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15319 (context_switch): Check inferior_ptid == null_ptid before calling
15320 inferior_thread().
15321 (get_inferior_stop_soon): Pass down target.
15322 (wait_one): Rename to ...
15323 (poll_one_curr_target): ... this.
15324 (struct wait_one_event): New.
15325 (wait_one): New.
15326 (stop_all_threads): Adjust.
15327 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15328 event's target.
15329 (switch_back_to_stepped_thread): Also consider target.
15330 (print_stop_event): Update.
15331 (normal_stop): Update. Also consider the resume target.
15332 * infrun.h (wait_for_inferior): Remove declaration.
15333 (user_visible_resume_target): New declaration.
15334 (get_last_target_status, set_last_target_status): New
15335 process_stratum_target parameter.
15336 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15337 process_stratum_target parameter, and use it.
15338 (clear_inline_frame_state (thread_info*)): New.
15339 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15340 process_stratum_target parameter.
15341 (clear_inline_frame_state (thread_info*)): Declare.
15342 * linux-fork.c (delete_checkpoint_command): Pass target down to
15343 find_thread_ptid.
15344 (checkpoint_command): Adjust.
15345 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15346 instead of just tweaking inferior_ptid.
15347 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15348 (exit_lwp): Pass target down to find_thread_ptid.
15349 (attach_proc_task_lwp_callback): Pass target down to
15350 add_thread/set_running/set_executing.
15351 (linux_nat_target::attach): Pass target down to
15352 thread_change_ptid.
15353 (get_detach_signal): Pass target down to find_thread_ptid.
15354 Consider last target status's target.
15355 (linux_resume_one_lwp_throw, resume_lwp)
15356 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15357 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15358 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15359 (linux_nat_target::async_wait_fd): New.
15360 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15361 target down.
15362 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15363 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15364 * linux-thread-db.c (struct thread_db_info::process_target): New
15365 field.
15366 (add_thread_db_info): Save target.
15367 (get_thread_db_info): New process_stratum_target parameter. Also
15368 match target.
15369 (delete_thread_db_info): New process_stratum_target parameter.
15370 Also match target.
15371 (thread_from_lwp): Adjust to pass down target.
15372 (thread_db_notice_clone): Pass down target.
15373 (check_thread_db_callback): Pass down target.
15374 (try_thread_db_load_1): Always push the thread_db target.
15375 (try_thread_db_load, record_thread): Pass target down.
15376 (thread_db_target::detach): Pass target down. Always unpush the
15377 thread_db target.
15378 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15379 target down. Always unpush the thread_db target.
15380 (find_new_threads_callback, thread_db_find_new_threads_2)
15381 (thread_db_target::update_thread_list): Pass target down.
15382 (thread_db_target::pid_to_str): Pass current inferior down.
15383 (thread_db_target::get_thread_local_address): Pass target down.
15384 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15385 target down.
15386 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15387 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15388 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15389 (procfs_init_inferior): Rename to ...
15390 (procfs_target::procfs_init_inferior): ... this and adjust.
15391 (procfs_target::create_inferior, procfs_notice_thread)
15392 (procfs_do_thread_registers): Adjust.
15393 * ppc-fbsd-tdep.c: Include "inferior.h".
15394 (ppcfbsd_get_thread_local_address): Pass down target.
15395 * proc-service.c (ps_xfer_memory): Switch current inferior and
15396 program space as well.
15397 (get_ps_regcache): Pass target down.
15398 * process-stratum-target.c
15399 (process_stratum_target::thread_address_space)
15400 (process_stratum_target::thread_architecture): Pass target down.
15401 * process-stratum-target.h
15402 (process_stratum_target::threads_executing): New field.
15403 (as_process_stratum_target): New.
15404 * ravenscar-thread.c
15405 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15406 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15407 down.
15408 * record-btrace.c (record_btrace_target::info_record): Adjust.
15409 (record_btrace_target::record_method)
15410 (record_btrace_target::record_is_replaying)
15411 (record_btrace_target::fetch_registers)
15412 (get_thread_current_frame_id, record_btrace_target::resume)
15413 (record_btrace_target::wait, record_btrace_target::stop): Pass
15414 target down.
15415 * record-full.c (record_full_wait_1): Switch to event thread.
15416 Pass target down.
15417 * regcache.c (regcache::regcache)
15418 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15419 process_stratum_target parameter and handle it.
15420 (current_thread_target): New global.
15421 (get_thread_regcache): Add process_stratum_target parameter and
15422 handle it. Switch inferior before calling target method.
15423 (get_thread_regcache): Pass target down.
15424 (get_thread_regcache_for_ptid): Pass target down.
15425 (registers_changed_ptid): Add process_stratum_target parameter and
15426 handle it.
15427 (registers_changed_thread, registers_changed): Pass target down.
15428 (test_get_thread_arch_aspace_regcache): New.
15429 (current_regcache_test): Define a couple local test_target_ops
15430 instances and use them for testing.
15431 (readwrite_regcache): Pass process_stratum_target parameter.
15432 (cooked_read_test, cooked_write_test): Pass mock_target down.
15433 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15434 (get_thread_arch_aspace_regcache): Add process_stratum_target
15435 parameter.
15436 (regcache::target): New method.
15437 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15438 (regcache::registers_changed_ptid): Add process_stratum_target
15439 parameter.
15440 (regcache::m_target): New field.
15441 (registers_changed_ptid): Add process_stratum_target parameter.
15442 * remote.c (remote_state::supports_vCont_probed): New field.
15443 (remote_target::async_wait_fd): New method.
15444 (remote_unpush_and_throw): Add remote_target parameter.
15445 (get_current_remote_target): Adjust.
15446 (remote_target::remote_add_inferior): Push target.
15447 (remote_target::remote_add_thread)
15448 (remote_target::remote_notice_new_inferior)
15449 (get_remote_thread_info): Pass target down.
15450 (remote_target::update_thread_list): Skip threads of inferiors
15451 bound to other targets. (remote_target::close): Don't discard
15452 inferiors. (remote_target::add_current_inferior_and_thread)
15453 (remote_target::process_initial_stop_replies)
15454 (remote_target::start_remote)
15455 (remote_target::remote_serial_quit_handler): Pass down target.
15456 (remote_target::remote_unpush_target): New remote_target
15457 parameter. Unpush the target from all inferiors.
15458 (remote_target::remote_unpush_and_throw): New remote_target
15459 parameter. Pass it down.
15460 (remote_target::open_1): Check whether the current inferior has
15461 execution instead of checking whether any inferior is live. Pass
15462 target down.
15463 (remote_target::remote_detach_1): Pass down target. Use
15464 remote_unpush_target.
15465 (extended_remote_target::attach): Pass down target.
15466 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15467 (remote_target::append_resumption): Pass down target.
15468 (remote_target::append_pending_thread_resumptions)
15469 (remote_target::remote_resume_with_hc, remote_target::resume)
15470 (remote_target::commit_resume): Pass down target.
15471 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15472 (remote_target::interrupt_query)
15473 (remote_target::remove_new_fork_children)
15474 (remote_target::check_pending_events_prevent_wildcard_vcont)
15475 (remote_target::remote_parse_stop_reply)
15476 (remote_target::process_stop_reply): Pass down target.
15477 (first_remote_resumed_thread): New remote_target parameter. Pass
15478 it down.
15479 (remote_target::wait_as): Pass down target.
15480 (unpush_and_perror): New remote_target parameter. Pass it down.
15481 (remote_target::readchar, remote_target::remote_serial_write)
15482 (remote_target::getpkt_or_notif_sane_1)
15483 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15484 down target.
15485 (remote_target::mourn_inferior): Pass down target. Use
15486 remote_unpush_target.
15487 (remote_target::core_of_thread)
15488 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15489 (remote_target::pid_to_exec_file)
15490 (remote_target::thread_handle_to_thread_info): Pass down target.
15491 (remote_target::async_wait_fd): New.
15492 * riscv-fbsd-tdep.c: Include "inferior.h".
15493 (riscv_fbsd_get_thread_local_address): Pass down target.
15494 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15495 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15496 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15497 Adjust.
15498 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15499 * solib-svr4.c (enable_break): Pass down target.
15500 * spu-multiarch.c (parse_spufs_run): Pass down target.
15501 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15502 * target-delegates.c: Regenerate.
15503 * target.c (g_target_stack): Delete.
15504 (current_top_target): Return the current inferior's top target.
15505 (target_has_execution_1): Refer to the passed-in inferior's top
15506 target.
15507 (target_supports_terminal_ours): Check whether the initial
15508 inferior was already created.
15509 (decref_target): New.
15510 (target_stack::push): Incref/decref the target.
15511 (push_target, push_target, unpush_target): Adjust.
15512 (target_stack::unpush): Defref target.
15513 (target_is_pushed): Return bool. Adjust to refer to the current
15514 inferior's target stack.
15515 (dispose_inferior): Delete, and inline parts ...
15516 (target_preopen): ... here. Only dispose of the current inferior.
15517 (target_detach): Hold strong target reference while detaching.
15518 Pass target down.
15519 (target_thread_name): Add assertion.
15520 (target_resume): Pass down target.
15521 (target_ops::beneath, find_target_at): Adjust to refer to the
15522 current inferior's target stack.
15523 (get_dummy_target): New.
15524 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15525 has a thread running.
15526 (initialize_targets): Rename to ...
15527 (_initialize_target): ... this.
15528 * target.h: Include "gdbsupport/refcounted-object.h".
15529 (struct target_ops): Inherit refcounted_object.
15530 (target_ops::shortname, target_ops::longname): Make const.
15531 (target_ops::async_wait_fd): New method.
15532 (decref_target): Declare.
15533 (struct target_ops_ref_policy): New.
15534 (target_ops_ref): New typedef.
15535 (get_dummy_target): Declare function.
15536 (target_is_pushed): Return bool.
15537 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15538 (all_matching_threads_iterator::all_matching_threads_iterator):
15539 Handle filter target.
15540 * thread-iter.h (struct all_matching_threads_iterator, struct
15541 all_matching_threads_range, class all_non_exited_threads_range):
15542 Filter by target too. Remove explicit.
15543 * thread.c (threads_executing): Delete.
15544 (inferior_thread): Pass down current inferior.
15545 (clear_thread_inferior_resources): Pass down thread pointer
15546 instead of ptid_t.
15547 (add_thread_silent, add_thread_with_info, add_thread): Add
15548 process_stratum_target parameter. Use it for thread and inferior
15549 searches.
15550 (is_current_thread): New.
15551 (thread_info::deletable): Use it.
15552 (find_thread_ptid, thread_count, in_thread_list)
15553 (thread_change_ptid, set_resumed, set_running): New
15554 process_stratum_target parameter. Pass it down.
15555 (set_executing): New process_stratum_target parameter. Pass it
15556 down. Adjust reference to 'threads_executing'.
15557 (threads_are_executing): New process_stratum_target parameter.
15558 Adjust reference to 'threads_executing'.
15559 (set_stop_requested, finish_thread_state): New
15560 process_stratum_target parameter. Pass it down.
15561 (switch_to_thread): Also match inferior.
15562 (switch_to_thread): New process_stratum_target parameter. Pass it
15563 down.
15564 (update_threads_executing): Reimplement.
15565 * top.c (quit_force): Pop targets from all inferior.
15566 (gdb_init): Don't call initialize_targets.
15567 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15568 Declare.
15569 (windows_add_thread, windows_delete_thread): Adjust.
15570 (get_windows_debug_event): Rename to ...
15571 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15572 * tracefile-tfile.c (tfile_target_open): Pass down target.
15573 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15574 Forward declare.
15575 (switch_to_thread): Add process_stratum_target parameter.
15576 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15577 parameter. Use it.
15578 (mi_on_resume): Pass target down.
15579 * nat/fork-inferior.c (startup_inferior): Add
15580 process_stratum_target parameter. Pass it down.
15581 * nat/fork-inferior.h (startup_inferior): Add
15582 process_stratum_target parameter.
15583 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15584
15585 2020-01-10 Pedro Alves <palves@redhat.com>
15586
15587 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15588 directly. Instead find the first thread in the thread list and
15589 use switch_to_thread.
15590
15591 2020-01-10 Pedro Alves <palves@redhat.com>
15592
15593 * remote.c (remote_target::remote_add_inferior): Don't bind a
15594 process to the current inferior if the current inferior is already
15595 bound to a process.
15596
15597 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15598 Pedro Alves <palves@redhat.com>
15599
15600 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15601 If no process is specified, return null_ptid instead of
15602 inferior_ptid.
15603 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15604 TARGET_WAITKIND_SIGNALLED with no pid.
15605
15606 2020-01-10 Pedro Alves <palves@redhat.com>
15607
15608 * remote.c (first_remote_resumed_thread): New.
15609 (remote_target::wait_as): Use it as default event_ptid instead of
15610 inferior_ptid.
15611
15612 2020-01-10 Pedro Alves <palves@redhat.com>
15613
15614 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15615
15616 2020-01-10 Pedro Alves <palves@redhat.com>
15617
15618 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15619 not -1.
15620
15621 2020-01-10 Pedro Alves <palves@redhat.com>
15622
15623 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15624 ptid to get_last_target_status.
15625 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15626 ptid to get_last_target_status.
15627 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15628 get_last_target_status.
15629 (info_program_command): Don't pass a target_waitstatus to
15630 get_last_target_status.
15631 * infrun.c (init_wait_for_inferior): Use
15632 nullify_last_target_wait_ptid.
15633 (get_last_target_status): Handle nullptr arguments.
15634 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15635 (print_stop_event): Don't pass a ptid to get_last_target_status.
15636 (normal_stop): Don't pass a ptid to get_last_target_status.
15637 * infrun.h (get_last_target_status, set_last_target_status): Move
15638 comments here and update.
15639 (nullify_last_target_wait_ptid): Declare.
15640 * linux-fork.c (fork_load_infrun_state): Remove local extern
15641 declaration of nullify_last_target_wait_ptid.
15642 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15643 to get_last_target_status.
15644
15645 2020-01-10 Pedro Alves <palves@redhat.com>
15646
15647 * gdbthread.h (scoped_restore_current_thread)
15648 <dont_restore, restore, m_dont_restore>: Declare.
15649 * thread.c (thread_alive): Add assertion. Return bool.
15650 (switch_to_thread_if_alive): New.
15651 (prune_threads): Switch inferior/thread.
15652 (print_thread_info_1): Switch thread before calling target methods.
15653 (scoped_restore_current_thread::restore): New, factored out from
15654 ...
15655 (scoped_restore_current_thread::~scoped_restore_current_thread):
15656 ... this.
15657 (scoped_restore_current_thread::scoped_restore_current_thread):
15658 Add assertion.
15659 (thread_apply_all_command, thread_select): Use
15660 switch_to_thread_if_alive.
15661 * infrun.c (proceed, restart_threads, handle_signal_stop)
15662 (switch_back_to_stepped_thread): Switch current thread before
15663 calling target methods.
15664
15665 2020-01-10 Pedro Alves <palves@redhat.com>
15666
15667 * inferior.c (switch_to_inferior_no_thread): New function,
15668 factored out from ...
15669 (inferior_command): ... here.
15670 * inferior.h (switch_to_inferior_no_thread): Declare.
15671 * mi/mi-main.c (run_one_inferior): Use
15672 switch_to_inferior_no_thread.
15673
15674 2020-01-10 Pedro Alves <palves@redhat.com>
15675
15676 * infcmd.c (kill_command): Remove dead code.
15677
15678 2020-01-10 Pedro Alves <palves@redhat.com>
15679
15680 * remote.c (remote_target::mourn_inferior): No longer check
15681 whether the target is running.
15682
15683 2020-01-10 Pedro Alves <palves@redhat.com>
15684
15685 * corelow.c (core_target::has_execution): Change parameter type to
15686 inferior pointer.
15687 * inferior.c (number_of_live_inferiors): Use
15688 inferior::has_execution instead of target_has_execution_1.
15689 * inferior.h (inferior::has_execution): New.
15690 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15691 inferior::has_execution instead of target_has_execution_1.
15692 * process-stratum-target.c
15693 (process_stratum_target::has_execution): Change parameter type to
15694 inferior pointer. Check the inferior's PID instead of
15695 inferior_ptid.
15696 * process-stratum-target.h
15697 (process_stratum_target::has_execution): Change parameter type to
15698 inferior pointer.
15699 * record-full.c (record_full_core_target::has_execution): Change
15700 parameter type to inferior pointer.
15701 * target.c (target_has_execution_1): Change parameter type to
15702 inferior pointer.
15703 (target_has_execution_current): Adjust.
15704 * target.h (target_ops::has_execution): Change parameter type to
15705 inferior pointer.
15706 (target_has_execution_1): Change parameter type to inferior
15707 pointer. Change return type to bool.
15708 * tracefile.h (tracefile_target::has_execution): Change parameter
15709 type to inferior pointer.
15710
15711 2020-01-10 Pedro Alves <palves@redhat.com>
15712
15713 * exceptions.c (print_flush): Remove current_top_target() check.
15714
15715 2020-01-10 Pedro Alves <palves@redhat.com>
15716
15717 * remote.c (show_remote_exec_file): Show the current inferior's
15718 exec-file instead of the command variable's value.
15719
15720 2020-01-10 Pedro Alves <palves@redhat.com>
15721
15722 * record-full.c (record_full_resume_ptid): New global.
15723 (record_full_target::resume): Set it.
15724 (record_full_wait_1): Use record_full_resume_ptid instead of
15725 inferior_ptid.
15726
15727 2020-01-10 Pedro Alves <palves@redhat.com>
15728
15729 * gdbthread.h (scoped_restore_current_thread)
15730 <dont_restore, restore, m_dont_restore>: Declare.
15731 * thread.c (thread_alive): Add assertion. Return bool.
15732 (switch_to_thread_if_alive): New.
15733 (prune_threads): Switch inferior/thread.
15734 (print_thread_info_1): Switch thread before calling target methods.
15735 (scoped_restore_current_thread::restore): New, factored out from
15736 ...
15737 (scoped_restore_current_thread::~scoped_restore_current_thread):
15738 ... this.
15739 (scoped_restore_current_thread::scoped_restore_current_thread):
15740 Add assertion.
15741 (thread_apply_all_command, thread_select): Use
15742 switch_to_thread_if_alive.
15743
15744 2020-01-10 George Barrett <bob@bob131.so>
15745
15746 * stap-probe.c (stap_modify_semaphore): Don't check for null
15747 semaphores.
15748 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15749 for null semaphores.
15750
15751 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15752
15753 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15754 all source windows, and maintain horizontal scroll status while
15755 doing so.
15756
15757 2020-01-09 Tom Tromey <tom@tromey.com>
15758
15759 PR tui/18932:
15760 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15761 update_source_window, not print_source_lines.
15762
15763 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15764
15765 * tui/tui.c (tui_enable): Register tui hooks after calling
15766 tui_display_main.
15767
15768 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15769
15770 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15771
15772 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15773
15774 * thread.c (print_thread_info_1): Fix indentation.
15775
15776 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15777
15778 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15779 unique_xmalloc_ptr outside the if to always free the demangled name.
15780
15781 2020-01-08 Tom Tromey <tromey@adacore.com>
15782
15783 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15784 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15785 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15786 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15787 Remove.
15788 (section_offsets): New typedef.
15789 * symtab.c (fixup_section, get_msymbol_address): Update.
15790 * symmisc.c (dump_msymbols): Update.
15791 * symfile.h (relative_addr_info_to_section_offsets)
15792 (symfile_map_offsets_to_segments): Update.
15793 * symfile.c (build_section_addr_info_from_objfile)
15794 (init_objfile_sect_indices): Update.
15795 (struct place_section_arg): Change type of "offsets".
15796 (place_section): Update.
15797 (relative_addr_info_to_section_offsets): Change type of
15798 "section_offsets". Remove "num_sections" parameter.
15799 (default_symfile_offsets, syms_from_objfile_1)
15800 (set_objfile_default_section_offset): Update.
15801 (reread_symbols): No need to preserve section offsets by hand.
15802 (symfile_map_offsets_to_segments): Change type of "offsets".
15803 * stap-probe.c (relocate_address): Update.
15804 * stabsread.h (process_one_symbol): Update.
15805 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15806 (solib_target_relocate_section_addresses): Update.
15807 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15808 Update.
15809 * solib-frv.c (frv_relocate_main_executable): Update.
15810 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15811 * solib-aix.c (solib_aix_get_section_offsets): Change return
15812 type.
15813 (solib_aix_solib_create_inferior_hook): Update.
15814 * remote.c (remote_target::get_offsets): Update.
15815 * psymtab.c (find_pc_sect_psymtab): Update.
15816 * psympriv.h (struct partial_symbol) <address, text_low,
15817 text_high>: Update.
15818 * objfiles.h (obj_section_offset): Update.
15819 (struct objfile) <section_offsets>: Change type.
15820 <num_sections>: Remove.
15821 (objfile_relocate): Update.
15822 * objfiles.c (entry_point_address_query): Update
15823 (relocate_one_symbol): Change type of "section_offsets".
15824 (objfile_relocate1, objfile_relocate1): Change type of
15825 "new_offsets".
15826 (objfile_rebase1): Update.
15827 * mipsread.c (mipscoff_symfile_read): Update.
15828 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15829 parameter.
15830 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15831 (parse_external, psymtab_to_symtab_1): Update.
15832 * machoread.c (macho_symfile_offsets): Update.
15833 * ia64-tdep.c (ia64_find_unwind_table): Update.
15834 * hppa-tdep.c (read_unwind_info): Update.
15835 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15836 * dwarf2read.c (create_addrmap_from_index)
15837 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15838 (process_psymtab_comp_unit_reader, add_partial_symbol)
15839 (add_partial_subprogram, process_full_comp_unit)
15840 (read_file_scope, read_func_scope, read_lexical_block_scope)
15841 (read_call_site_scope, dwarf2_rnglists_process)
15842 (dwarf2_ranges_process, dwarf2_ranges_read)
15843 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15844 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15845 Update.
15846 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15847 Update.
15848 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15849 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15850 (process_one_symbol): Change type of "section_offsets".
15851 * ctfread.c (get_objfile_text_range): Update.
15852 * coffread.c (coff_symtab_read, enter_linenos)
15853 (process_coff_symbol): Update.
15854 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15855 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15856
15857 2020-01-08 Tom Tromey <tromey@adacore.com>
15858
15859 * dwarf2read.c (parse_macro_definition): Use std::string.
15860 (parse_macro_definition): Likewise.
15861
15862 2020-01-08 Tom Tromey <tromey@adacore.com>
15863
15864 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15865 (ATTR_ALLOC_CHUNK): Remove.
15866
15867 2020-01-08 Tom Tromey <tromey@adacore.com>
15868
15869 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15870
15871 2020-01-08 Tom Tromey <tromey@adacore.com>
15872
15873 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15874 (dwarf2_compute_name, open_dwo_file): Likewise.
15875 (process_enumeration_scope): Use std::vector.
15876 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15877 (partial_die_info::fixup, dwarf2_start_subfile)
15878 (guess_full_die_structure_name, dwarf2_name): Likewise.
15879 (determine_prefix): Update.
15880 (guess_full_die_structure_name): Make return type const.
15881 (partial_die_full_name): Return unique_xmalloc_ptr.
15882 (DW_FIELD_ALLOC_CHUNK): Remove.
15883
15884 2020-01-07 Tom Tromey <tromey@adacore.com>
15885
15886 PR build/24937:
15887 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15888
15889 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15890
15891 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15892
15893 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15894
15895 * stack.c (print_frame_info): Move disassemble_next_line code
15896 inside source_print block.
15897
15898 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15899
15900 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15901 gdb/signals.h, as we are now using native signal symbols.
15902
15903 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15904
15905 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15906 overflow by an early check of content vs threshold.
15907 * tui/tui-source.c (tui_source_window::line_is_displayed):
15908 Likewise.
15909
15910 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15911
15912 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15913
15914 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15915
15916 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15917 export table if no section contains it's RVA.
15918
15919 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15920
15921 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15922
15923 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15924
15925 * source.c (print_source_lines_base): Set last_line_listed.
15926
15927 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15928
15929 * tui/tui-disasm.c: Remove trailing spaces.
15930
15931 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15932 Pedro Alves <palves@redhat.com>
15933
15934 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15935 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15936 (windows_gdb_signal_to_target): New function, uses the above
15937 enumeration to convert GDB internal signal codes to equivalent
15938 Windows codes.
15939 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15940 * windows-nat.c: Include "gdb_wait.h".
15941 (get_windows_debug_event): Extract the fatal exception from the
15942 exit status and convert to the equivalent Posix signal number.
15943 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15944 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15945 * gdbsupport/gdb_wait.c: New file, implements
15946 windows_status_to_termsig.
15947 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15948 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15949
15950 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15951
15952 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15953 show_layout.
15954
15955 2020-01-05 Luis Machado <luis.machado@linaro.org>
15956
15957 * aarch64-linux-nat.c
15958 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15959 and bfd_mach_aarch64.
15960
15961 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15962
15963 * ui-file.c (stdio_file::can_emit_style_escape)
15964 (tee_file::can_emit_style_escape): Ensure style is used also on
15965 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15966 to gdb_stdout.
15967 * main.c (set_gdb_data_directory): Use file style to output the
15968 warning that the given pathname is not a directory.
15969 * top.c (show_history_filename, gdb_safe_append_history)
15970 (show_gdb_datadir): Use file style.
15971
15972 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15973
15974 * solib-target.c (struct lm_info_target):
15975 Change offsets to be a unique_xmalloc_ptr.
15976 (solib_target_relocate_section_addresses): Update.
15977
15978 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15979
15980 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15981
15982 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15983
15984 * MAINTAINERS (Write After Approval): Add myself.
15985
15986 2020-01-02 Luis Machado <luis.machado@linaro.org>
15987
15988 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15989 Cell BE architecture.
15990 * target.h (struct target_ops) <thread_architecture>: Likewise.
15991
15992 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15993
15994 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15995
15996 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15997
15998 * MAINTAINERS (Write After Approval): Add myself.
15999
16000 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16001
16002 * gdbarch.sh: Update copyright year range of generated files.
16003
16004 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16005
16006 Update copyright year range in all GDB files.
16007
16008 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16009
16010 * copyright.py: Convert to Python 3.
16011
16012 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16013
16014 * copyright.py: Adapt after move of gnulib directory from gdb
16015 directory to toplevel directory.
16016
16017 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16018
16019 * copyright.py (main): Exit if run from the wrong directory.
16020
16021 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16022
16023 * top.c (print_gdb_version): Change copyright year to 2020.
16024
16025 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16026
16027 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16028
16029 For older changes see ChangeLog-2019.
16030 \f
16031 Local Variables:
16032 mode: change-log
16033 left-margin: 8
16034 fill-column: 74
16035 version-control: never
16036 coding: utf-8
16037 End: