gdbsupport: replace AC_TRY_COMPILE in common.m4
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * configure: Re-generate.
4
5 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * configure: Re-generate.
8
9 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
10
11 * configure: Re-generate.
12
13 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
14
15 * configure: Re-generate.
16
17 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
18
19 * acinclude.m4: Modernize.
20 * configure: Re-generate.
21
22 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
23
24 * configure.ac: Modernize.
25 * configure: Re-generate.
26
27 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
28
29 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
30 * configure: Re-generate.
31 * configure.ac: Remove AM_PROG_CC_STDC.
32
33 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
34
35 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
36 AC_CANONICAL_SYSTEM.
37 * configure: Re-generate.
38
39 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
40
41 * infrun.h (displaced_debug_printf): New macro. Replace
42 displaced debug prints throughout to use it.
43 (displaced_debug_printf_1): New declaration.
44 (displaced_step_dump_bytes): Return string, remove ui_file
45 parameter, update all callers.
46 * infrun.c (displaced_debug_printf_1): New function.
47 (displaced_step_dump_bytes): Return string, remove ui_file
48 parameter
49
50 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
53
54 2020-10-30 Tom Tromey <tromey@adacore.com>
55
56 * Makefile.in (stamp-init): Depend on config.status.
57
58 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
59
60 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
61
62 2020-10-30 Pedro Alves <pedro@palves.net>
63
64 * thread.c (lookup_selected_frame): Move ...
65 * frame.c (lookup_selected_frame): ... here.
66
67 2020-10-30 Pedro Alves <pedro@palves.net>
68
69 * blockframe.c (block_innermost_frame): Use get_selected_frame.
70 * frame.c
71 (scoped_restore_selected_frame::scoped_restore_selected_frame):
72 Use save_selected_frame. Save language as well.
73 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
74 Use restore_selected_frame, and restore language as well.
75 (selected_frame_id, selected_frame_level): New.
76 (selected_frame): Update comments.
77 (save_selected_frame, restore_selected_frame): New.
78 (get_selected_frame): Use lookup_selected_frame.
79 (get_selected_frame_if_set): Delete.
80 (select_frame): Record selected_frame_level and selected_frame_id.
81 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
82 fields.
83 (get_selected_frame): Make 'message' parameter optional.
84 (get_selected_frame_if_set): Delete declaration.
85 (select_frame): Update comments.
86 (save_selected_frame, restore_selected_frame)
87 (lookup_selected_frame): Declare.
88 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
89 * infrun.c (struct infcall_control_state) <selected_frame_level>:
90 New field.
91 (save_infcall_control_state): Use save_selected_frame.
92 (restore_selected_frame): Delete.
93 (restore_infcall_control_state): Use restore_selected_frame.
94 * stack.c (select_frame_command_core, frame_command_core): Use
95 get_selected_frame.
96 * thread.c (restore_selected_frame): Rename to ...
97 (lookup_selected_frame): ... this and make extern. Select the
98 current frame if the frame level is -1.
99 (scoped_restore_current_thread::restore): Also restore the
100 language.
101 (scoped_restore_current_thread::~scoped_restore_current_thread):
102 Don't try/catch.
103 (scoped_restore_current_thread::scoped_restore_current_thread):
104 Save the language as well. Use save_selected_frame.
105
106 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
107
108 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
109 documentation.
110 * gdbarch.h: Re-generate.
111
112 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
113
114 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
115 parameter.
116 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
117 Likewise.
118 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
119 Likewise.
120 * arch-utils.c (default_displaced_step_hw_singlestep):
121 Likewise.
122 * arch-utils.h (default_displaced_step_hw_singlestep):
123 Likewise.
124 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
125 Likewise.
126 * s390-tdep.c (s390_displaced_step_hw_singlestep):
127 Likewise.
128 * gdbarch.c: Re-generate.
129 * gdbarch.h: Re-generate.
130 * infrun.c (resume_1): Adjust.
131
132 2020-10-29 Tom Tromey <tom@tromey.com>
133
134 * progspace.c (program_space::~program_space): Don't call
135 exec_close.
136
137 2020-10-29 Tom Tromey <tom@tromey.com>
138
139 * exec.c (exec_target::close): Don't change current program
140 space.
141
142 2020-10-29 Tom Tromey <tom@tromey.com>
143
144 * symfile.c (add_symbol_file_command): Update.
145 * exec.c (program_space::add_target_sections): Rename.
146 * symfile-mem.c (symbol_file_add_from_memory): Update.
147 * progspace.h (struct program_space) <add_target_sections>:
148 Declare new overload.
149 * exec.h (add_target_sections_of_objfile): Don't declare.
150
151 2020-10-29 Tom Tromey <tom@tromey.com>
152
153 * solib.c (solib_map_sections): Update.
154 * exec.c (program_space::add_target_sections): Now a method.
155 (exec_file_attach): Update.
156 * exec.h (add_target_sections): Don't declare.
157 * progspace.h (struct program_space) <add_target_sections>:
158 Declare.
159
160 2020-10-29 Tom Tromey <tom@tromey.com>
161
162 * progspace.h (struct program_space) <remove_target_sections>:
163 Declare.
164 * exec.c (program_space::remove_target_sections): Now a method.
165 * exec.h (remove_target_sections): Don't declare.
166
167 2020-10-29 Tom Tromey <tom@tromey.com>
168
169 * inferior.c (delete_inferior): Update.
170 * progspace.c (program_space::empty): Rename from
171 program_space_empty_p. Return bool.
172 * progspace.h (struct program_space) <empty>: New method.
173 (program_space_empty_p): Don't declare.
174
175 2020-10-29 Tom Tromey <tom@tromey.com>
176
177 * progspace.c (program_space::~program_space): Don't call
178 clear_program_space_solib_cache.
179 (program_space::clear_solib_cache): Rename from
180 clear_solib_cache.
181 * solib.c (handle_solib_event): Update.
182 * progspace.h (struct program_space) <clear_solib_cache>: New
183 method.
184 (clear_program_space_solib_cache): Don't declare.
185
186 2020-10-29 Tom Tromey <tom@tromey.com>
187
188 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
189 * target.c (info_target_command): Update.
190 * symfile.c (syms_from_objfile_1, finish_new_objfile)
191 (symbol_file_clear, reread_symbols): Update.
192 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
193 * stabsread.c (scan_file_globals): Update.
194 * solib.c (update_solib_list): Update.
195 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
196 (svr4_fetch_objfile_link_map, enable_break)
197 (svr4_relocate_main_executable)
198 (svr4_iterate_over_objfiles_in_search_order): Update.
199 * solib-frv.c (lm_base, enable_break)
200 (frv_relocate_main_executable): Update.
201 (main_got, frv_fdpic_find_canonical_descriptor): Update.
202 (frv_fetch_objfile_link_map): Update.
203 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
204 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
205 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
206 * remote.c (remote_target::get_offsets): Update.
207 (remote_target::start_remote)
208 (extended_remote_target::post_attach): Update.
209 * objfiles.c (entry_point_address_query): Update.
210 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
211 * minsyms.c (get_symbol_leading_char): Update.
212 * frame.c (inside_main_func): Update.
213 * progspace.h (symfile_objfile): Remove macro.
214
215 2020-10-29 Tom Tromey <tom@tromey.com>
216
217 * exec.c (exec_file_attach): Update.
218 * progspace.c (program_space::exec_close): Update.
219 * progspace.h (struct program_space) <ebfd>: Now a
220 gdb_bfd_ref_ptr.
221 <set_exec_bfd>: Change argument type.
222 <exec_bfd>: Update.
223
224 2020-10-29 Tom Tromey <tom@tromey.com>
225
226 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
227 * symfile.c (reread_symbols): Update.
228 * symfile-mem.c (add_symbol_file_from_memory_command)
229 (add_vsyscall_page): Update.
230 * source-cache.c (source_cache::get_plain_source_lines): Update.
231 * solib-svr4.c (find_program_interpreter, elf_locate_base)
232 (svr4_current_sos_direct, svr4_exec_displacement)
233 (svr4_relocate_main_executable): Update.
234 (svr4_iterate_over_objfiles_in_search_order): Update.
235 * solib-frv.c (enable_break2, enable_break): Update.
236 * solib-dsbt.c (lm_base, enable_break): Update.
237 * solib-darwin.c (find_program_interpreter)
238 (darwin_solib_create_inferior_hook): Update.
239 * sol-thread.c (rw_common, ps_pdmodel): Update.
240 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
241 * remote.c (compare_sections_command)
242 (remote_target::trace_set_readonly_regions): Update.
243 * remote-sim.c (get_sim_inferior_data)
244 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
245 (gdbsim_target_open, gdbsim_target::files_info): Update.
246 * exec.h (exec_bfd): Remove macro.
247 * progspace.c (initialize_progspace): Update.
248 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
249 Update.
250 * nto-procfs.c (nto_procfs_target::post_attach)
251 (nto_procfs_target::create_inferior): Update.
252 * maint.c (maintenance_info_sections): Update.
253 * linux-thread-db.c (thread_db_target::get_thread_local_address):
254 Update.
255 * infcmd.c (post_create_inferior): Update.
256 * gcore.c (default_gcore_arch, default_gcore_target): Update.
257 (objfile_find_memory_regions): Update.
258 * exec.c (validate_exec_file, exec_file_attach)
259 (exec_read_partial_read_only, print_section_info): Update.
260 * corelow.c (core_target_open): Update.
261 * corefile.c (reopen_exec_file, validate_files): Update.
262 * arm-tdep.c (gdb_print_insn_arm): Update.
263 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
264 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
265 methods.
266
267 2020-10-29 Tom Tromey <tom@tromey.com>
268
269 * progspace.h (current_target_sections): Remove macro.
270 * solib-svr4.c (scan_dyntag): Update.
271 * solib-dsbt.c (scan_dyntag): Update.
272 * exec.c (exec_target::close): Update.
273 (add_target_sections, add_target_sections_of_objfile)
274 (remove_target_sections, exec_target::get_section_table)
275 (exec_target::files_info, set_section_command)
276 (exec_set_section_address, exec_target::has_memory)
277 (exec_target::has_memory): Update.
278
279 2020-10-29 Tom Tromey <tom@tromey.com>
280
281 * source-cache.c (source_cache::get_plain_source_lines): Use
282 current_program_space.
283 * corefile.c (reopen_exec_file): Use current_program_space.
284 * exec.c (exec_file_attach): Use current_program_space.
285 * exec.h (exec_bfd_mtime): Remove.
286
287 2020-10-29 Tom Tromey <tom@tromey.com>
288
289 * gcore.c (default_gcore_mach): Remove.
290 (create_gcore_bfd): Update.
291
292 2020-10-29 Tom Tromey <tom@tromey.com>
293
294 * progspace.c (program_space::exec_close): New method, from
295 exec_close in exec.c.
296 * exec.c (exec_close): Move to progspace.c.
297 (exec_target::close, exec_file_attach): Update.
298 * progspace.h (struct program_space) <exec_close>: Declare
299 method.
300
301 2020-10-29 Tom Tromey <tom@tromey.com>
302
303 * progspace.h (struct program_space) <exec_filename>: Rename from
304 pspace_exec_filename. Now a unique_xmalloc_ptr.
305 * inferior.c (print_selected_inferior): Update.
306 (print_inferior): Update.
307 * mi/mi-main.c (print_one_inferior): Update.
308 * exec.h (exec_filename): Remove macro.
309 * corefile.c (get_exec_file): Update.
310 * exec.c (exec_close): Update.
311 (exec_file_attach): Update.
312 * progspace.c (clone_program_space): Update.
313 (print_program_space): Update.
314
315 2020-10-29 Tom Tromey <tom@tromey.com>
316
317 * target-section.h (struct target_section): Add constructor.
318 * exec.c (build_section_table, add_target_sections_of_objfile):
319 Update.
320 * corelow.c (core_target::build_file_mappings): Update.
321
322 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
323
324 PR gdb/19318
325 * inferior.c (detach_inferior_command): Restore the current thread.
326 (kill_inferior_command): Ditto.
327
328 2020-10-28 Tom de Vries <tdevries@suse.de>
329
330 PR symtab/26772
331 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
332 map, check it in the "best match" loop.
333
334 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
335
336 * m32c-tdep.c: Remove unused includes.
337
338 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
339
340 * xtensa-tdep.c: Remove includes.
341
342 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
343
344 * breakpoint.c (struct condition_command_opts): New struct.
345 (condition_command_option_defs): New static global.
346 (make_condition_command_options_def_group): New function.
347 (condition_completer): Update to consider the '-force' flag.
348 (condition_command): Use gdb::option for the '-force' flag.
349
350 2020-10-27 Tom de Vries <tdevries@suse.de>
351
352 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
353 symbols in section check.
354
355 2020-10-27 Tom de Vries <tdevries@suse.de>
356
357 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
358
359 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
360
361 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
362 * breakpoint.c: Update the help text of the 'condition' and 'break'
363 commands.
364 (set_breakpoint_condition): Take a new bool parameter
365 to control whether condition definition should be forced even when
366 the condition expression is invalid in all of the current locations.
367 (condition_command): Update the call to 'set_breakpoint_condition'.
368 (find_condition_and_thread): Take the "-force-condition" flag into
369 account.
370 * linespec.c (linespec_keywords): Add "-force-condition" as an
371 element.
372 (FORCE_KEYWORD_INDEX): New #define.
373 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
374 as a keyword.
375 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
376 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
377 * python/py-breakpoint.c (bppy_set_condition): Ditto.
378 * NEWS: Mention the changes to the 'break' and 'condition' commands.
379
380 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
381
382 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
383 * breakpoint.c (set_breakpoint_location_condition): New function.
384 (set_breakpoint_condition): Disable a breakpoint location if parsing
385 the condition string gives an error.
386 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
387 (build_target_condition_list): Ditto.
388 (build_target_command_list): Ditto.
389 (build_bpstat_chain): Ditto.
390 (print_one_breakpoint_location): Ditto.
391 (print_one_breakpoint): Ditto.
392 (breakpoint_1): Ditto.
393 (bp_location::bp_location): Ditto.
394 (locations_are_equal): Ditto.
395 (update_breakpoint_locations): Ditto.
396 (enable_disable_bp_num_loc): Ditto.
397 (init_breakpoint_sal): Use set_breakpoint_location_condition.
398 (find_condition_and_thread_for_sals): New static function.
399 (create_breakpoint): Call find_condition_and_thread_for_sals.
400 (location_to_sals): Call find_condition_and_thread_for_sals instead
401 of find_condition_and_thread.
402
403 2020-10-26 Tom de Vries <tdevries@suse.de>
404
405 * dwarf2/read.c (process_full_comp_unit): Call
406 dwarf2_find_base_address.
407
408 2020-10-26 Tom Tromey <tromey@adacore.com>
409
410 * gdbtypes.c (create_range_type): Revert previous patch. Add
411 comment.
412
413 2020-10-26 Pedro Alves <pedro@palves.net>
414
415 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
416 (my_waitpid): Use gdb::handle_eintr.
417
418 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
419
420 * acinclude.m4: Update ptrace.m4 path.
421 * ptrace.m4: Moved to gdbsupport.
422
423 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
424
425 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
426 instead of target_gdbarch.
427
428 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
429
430 * jit.c (jit_reader_load_command): Pass current inferior.
431 (jit_inferior_init): Change parameter type to inferior, use it.
432 (jit_inferior_created): Remove.
433 (jit_inferior_created_hook): Pass inferior parameter down.
434 (_initialize_jit): Use jit_inferior_created_hook instead of
435 jit_inferior_created.
436 * jit.h (jit_inferior_created_hook): Add inferior parameter.
437 * infrun.c (follow_exec): Pass inferior to
438 jit_inferior_created_hook.
439
440 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
441
442 * linux-thread-db.c (check_pid_namespace_match): Add inferior
443 parameter and use it.
444 (thread_db_inferior_created): Pass inferior argument.
445
446 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
447
448 * aix-thread.c (aix_thread_inferior_created): Add inferior
449 parameter.
450 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
451 * dummy-frame.c (cleanup_dummy_frames): Likewise.
452 * jit.c (jit_inferior_created): Likewise.
453 * linux-thread-db.c (thread_db_inferior_created): Likewise.
454 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
455 * observable.h (inferior_created): Likewise.
456 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
457 * symfile-mem.c (add_vsyscall_page): Likewise.
458 * infcmd.c (post_create_inferior): Pass inferior argument.
459
460 2020-10-24 Joel Brobecker <brobecker@adacore.com>
461
462 GDB 10.1 released.
463
464 2020-10-23 Joel Brobecker <brobecker@adacore.com>
465
466 * ada-typeprint.c (ada_print_type): Remove superfluous second call
467 to ada_check_typedef.
468
469 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
470
471 * f-exp.y (f_parse): Rename to...
472 (f_language::parser): ...this.
473 * f-lang.c (f_get_encoding): Rename to...
474 (f_language::get_encoding): ...this.
475 (f_op_print_tab): Rename to...
476 (f_language::op_print_tab): ...this.
477 (exp_descriptor_f): Rename to...
478 (f_language::exp_descriptor_tab): ...this.
479 (class f_language): Moved to f-lang.h.
480 (f_language::language_arch_info): New function, moved out of class
481 declaration.
482 (f_language::search_name_hash): Likewise.
483 (f_language::lookup_symbol_nonlocal): Likewise.
484 (f_language::get_symbol_name_matcher_inner): Likewise.
485 * f-lang.h: Add 'valprint.h' include.
486 (class f_language): Moved here from f-lang.c.
487 * f-typeprint.c (f_type_print_args): Delete commented out
488 declaration.
489 (f_print_typedef): Rename to...
490 (f_language::print_typedef): ...this.
491 (f_print_type): Rename to...
492 (f_language::print_type): ...this.
493 (f_type_print_varspec_prefix): Delete declaration and rename to...
494 (f_language::f_type_print_varspec_prefix): ...this.
495 (f_type_print_varspec_suffix): Delete declaration and rename to...
496 (f_language::f_type_print_varspec_suffix): ...this.
497 (f_type_print_base): Delete declaration and rename to...
498 (f_language::f_type_print_base): ...this.
499 * f-valprint.c (f_value_print_inner): Rename to...
500 (f_language::value_print_inner): ...this.
501 * parse.c: Delete 'f-lang.h' include.
502
503 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
504
505 * language.h (language_defn::print_type): Add variable names in
506 declaration, and update header comment.
507
508 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
509
510 * ada-lang.c (ada_language::demangle): Rename to...
511 (ada_language::demangle_symbol): ...this.
512 * c-lang.c (cplus_language::demangle): Rename to...
513 (cplus_language::demangle_symbol): ...this.
514 * d-lang.c (d_language::demangle): Rename to...
515 (d_language::demangle_symbol): ...this.
516 * f-lang.c (f_language::demangle): Rename to...
517 (f_language::demangle_symbol): ...this.
518 * go-lang.c (go_language::demangle): Rename to...
519 (go_language::demangle_symbol): ...this.
520 * language.c (language_demangle): Update call to demangle_symbol.
521 (auto_or_unknown_language::demangle): Rename to...
522 (auto_or_unknown_language::demangle_symbol): ...this.
523 * language.h (language_defn::demangle): Rename to...
524 (language_defn::demangle_symbol): ...this.
525 * objc-lang.c (objc_language::demangle): Rename to...
526 (objc_language::demangle_symbol): ...this.
527 * rust-lang.c (rust_language::demangle): Rename to...
528 (rust_language::demangle_symbol): ...this.
529
530 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
533 (iterate_over_file_blocks): Replace use of macro with the macros
534 definition.
535
536 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
537
538 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
539 * valprint.c (maybe_print_array_index): Replace use of macro with
540 the macros definition.
541
542 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
543
544 * ada-lang.c (ada_language::print_array_index): Call value_print
545 directly.
546 * language.c (language_defn::print_array_index): Likewise.
547 * language.h (LA_VALUE_PRINT): Delete.
548 * valprint.c (value_print): Call value_print on the
549 current_language directly.
550
551 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
552
553 * language.h (LA_PRINT_TYPEDEF): Delete.
554 * typeprint.c (typedef_print): Call print_typedef directly on the
555 current_language object.
556
557 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
558
559 * m2-exp.y (m2_parse): Rename to...
560 (m2_language::parser): ...this. Update function signature.
561 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
562 (m2_op_print): Rename to...
563 (m2_language::op_print_tab): ...this, and make const.
564 (exp_descriptor_modula2): Rename to...
565 (m2_language::exp_descriptor_modula2): ...this.
566 (class m2_language): Move to m2-lang.h.
567 (m2_language::language_arch_info): New function, moved out of
568 class declaration.
569 (m2_language::printchar): New function, body from m2_printchar.
570 (m2_language::printstr): New function, moved out of class
571 declaration.
572 (m2_language::emitchar): Likewise.
573 * m2-lang.h (m2_parse): Delete declaration.
574 (m2_print_typedef): Delete declaration.
575 (m2_value_print_inner): Delete declaration.
576 (class m2_language): Class declaration moved from m2-lang.c,
577 larger functions are left in m2-lang.c.
578 * m2-typeprint.c (m2_print_typedef): Rename to...
579 (m2_language::print_typedef): ...this, and update function
580 signature.
581 * m2-valprint.c (m2_value_print_inner): Rename to...
582 (m2_language::value_print_inner): ...this, replace use of
583 LA_PRINT_STRING with a direct call to printstr member function,
584 and update recursive call.
585
586 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
587
588 * language.c (default_is_string_type_p): Delete, implementation
589 moved into auto_or_unknown_language::is_string_type_p.
590 (unk_op_print_tab): Moved into
591 auto_or_unknown_language::opcode_print_table.
592 (unknown_language_arch_info): Delete, implementation moved into
593 auto_or_unknown_language::language_arch_info.
594 (class auto_or_unknown_language): New class, member functions
595 copied from unknown_language class, with some updates.
596 (class unknown_language): Most member functions moved into
597 auto_or_unknown_language class. Inherit from
598 auto_or_unknown_language class.
599 (class auto_language): Inherit from auto_or_unknown_language.
600 Delete most member functions.
601
602 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
603
604 * stabsread.c (read_member_functions): Remove gdb_assert.
605
606 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
607
608 * gdbtypes.c (init_complex_type): Check target type name.
609
610 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
611
612 * target-debug.h (target_debug_print_struct_target_ops_p):
613 Remove.
614 (target_debug_print_async_callback_ftype_p): Remove.
615 (target_debug_print_struct_trace_state_variable_p): Remove.
616 (target_debug_print_struct_traceframe_info_p): Remove.
617 (target_debug_print_VEC__btrace_block_s__pp): Remove.
618 (target_debug_print_enum_btrace_format): Remove.
619 (target_debug_print_enum_info_proc_what): Remove.
620 (target_debug_print_thread_info_pp): Remove.
621
622 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
623
624 * target.h (struct target_ops) <make_corefile_notes>:
625 Change return type to unique pointer.
626 * target.c (dummy_make_corefile_notes): Likewise.
627 * exec.c (struct exec_target) <make_corefile_notes>:
628 Likewise.
629 (exec_target::make_corefile_notes): Likewise.
630 * procfs.c (class procfs_target) <make_corefile_notes>:
631 Likewise.
632 (procfs_do_thread_registers): Adjust to unique pointer.
633 (struct procfs_corefile_thread_data): Add constructor.
634 <note_data>: Change type to unique pointer.
635 (procfs_corefile_thread_callback): Adjust to unique pointer.
636 (procfs_target::make_corefile_notes): Change return type to
637 unique pointer.
638 * target-delegates.c: Re-generate.
639 * gcore.c (write_gcore_file_1): Adjust.
640 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
641 New.
642
643 2020-10-22 Tom de Vries <tdevries@suse.de>
644
645 * block.c (find_block_in_blockvector): Make sure the returned block
646 contains pc.
647
648 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
649
650 PR gdb/26693
651 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
652 parameter.
653 (load_cu): Pass existing CU.
654 (process_imported_unit_die): Likewise.
655 (follow_die_offset): Likewise.
656
657 2020-10-22 Luis Machado <luis.machado@linaro.org>
658
659 * corelow.c (core_target::xfer_partial): Also check for an empty
660 m_core_unavailable_mappings vector.
661
662 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
663
664 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
665 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
666 * f-exp.y (arglist): Allow for a series of subranges.
667 (subrange): Add cases for subranges with strides.
668 * f-lang.c (value_f90_subarray): Catch use of array strides and
669 throw an error.
670 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
671
672 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
673
674 * expprint.c (print_subexp_standard): Change enum range_type to
675 range_flag and rename variables to match.
676 (dump_subexp_body_standard): Likewise.
677 * expression.h (enum range_type): Rename to...
678 (enum range_flag): ...this.
679 (range_types): Rename to...
680 (range_flags): ...this.
681 * f-lang.c (value_f90_subarray): Change enum range_type to
682 range_flag and rename variables to match.
683 * parse.c (operator_length_standard): Likewise.
684 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
685 range_type to range_flag.
686 * rust-lang.c (rust_evaluate_funcall): Likewise.
687 (rust_range): Likewise.
688 (rust_compute_range): Likewise.
689 (rust_subscript): Likewise.
690
691 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
692
693 * expprint.c (print_subexp_standard): Update to reflect changes to
694 enum range_type.
695 (dump_subexp_body_standard): Likewise.
696 * expression.h (enum range_type): Convert to a bit field enum, and
697 make the enum unsigned.
698 * f-exp.y (subrange): Update to reflect changes to enum
699 range_type.
700 * f-lang.c (value_f90_subarray): Likewise.
701 * parse.c (operator_length_standard): Likewise.
702 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
703 * rust-lang.c (rust_range): Likewise.
704 (rust_compute_range): Likewise.
705 (rust_subscript): Likewise.
706
707 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
708
709 * infrun.c (displaced_step_in_progress_thread): Fix comment.
710 (displaced_step_in_progress): Fix comment.
711
712 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
713
714 * gdbarch.sh (make_corefile_notes): Return unique pointer.
715 * gdbarch.c: Re-generate.
716 * gdbarch.h: Re-generate.
717 * gcore.c (write_gcore_file_1): Adjust.
718 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
719 constructor.
720 <note_data>: Change type to unique pointer.
721 <abort_iteration>: Change type to bool.
722 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
723 (fbsd_collect_thread_registers): Return void, adjust.
724 (struct fbsd_corefile_thread_data): Add construtor.
725 <note_data>: Change type to unique pointer.
726 (fbsd_corefile_thread): Adjust.
727 (fbsd_make_corefile_notes): Return unique pointer, adjust.
728 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
729 to unique pointer, adjust.
730 (struct linux_collect_regset_section_cb_data): Add constructor.
731 <note_data>: Change type to unique pointer.
732 <abort_iteration>: Change type to bool.
733 (linux_collect_thread_registers): Return void, adjust.
734 (struct linux_corefile_thread_data): Add constructor.
735 <note_data>: Change type to unique pointer.
736 (linux_corefile_thread): Adjust.
737 (linux_make_corefile_notes): Return unique pointer, adjust.
738
739 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
740
741 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
742 * gdbarch.c: Re-generate.
743 * gdbarch.h: Re-generate.
744 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
745 bool.
746 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
747 Likewise.
748 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
749 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
750 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
751 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
752
753 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
754
755 * gdbarch.sh: Make generated predicates return bool.
756 * gdbarch.c: Re-generate.
757 * gdbarch.h: Re-generate.
758
759 2020-10-20 Tom Tromey <tom@tromey.com>
760
761 * varobj-iter.h (struct varobj_item): Remove typedef.
762
763 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
764
765 * infrun.c (currently_stepping): Change int to bool
766 (maybe_software_singlestep): Likewise.
767 (show_stop_on_solib_events): Likewise.
768 (stepping_past_nonsteppable_watchpoint): Likewise.
769 (displaced_step_in_progress_any_inferior): Likewise.
770 (displaced_step_in_progress_thread): Likewise.
771 (keep_going_stepped_thread): Likewise.
772 (thread_still_needs_step_over): Likewise.
773 (start_step_over): Likewise.
774 (do_target_resume): Likewise.
775 (resume_1): Likewise.
776 (clear_proceed_status): Likewise.
777 (thread_still_needs_step_over_bp): Likewise.
778 (proceed): Likewise.
779 (switch_back_to_stepped_thread): Likewise.
780 (adjust_pc_after_break): Likewise.
781 (stepped_in_from): Likewise.
782 (handle_stop_requested): Likewise.
783 (handle_syscall_event): Likewise.
784 (handle_no_resumed): Likewise.
785 (handle_inferior_event): Likewise.
786 (finish_step_over): Likewise.
787 (handle_signal_stop): Likewise.
788 (process_event_stop_test): Likewise.
789
790 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
791
792 * infrun.c (get_displaced_stepping_state): Fix comment.
793
794 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
795
796 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
797
798 2020-10-19 Tom Tromey <tromey@adacore.com>
799
800 PR tui/26719
801 * tui/tui-winsource.h (struct tui_source_window_base)
802 <refresh_window>: Rename from refresh_pad.
803 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
804 Rename from refresh_pad.
805 (tui_source_window_base::show_source_content)
806 (tui_source_window_base::do_scroll_horizontal): Update.
807
808 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
809
810 * thread.c (_initialize_thread): Fine-tune the help text of
811 'info threads'.
812
813 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
814
815 * frame.c: Remove the unused 'uinteger_option_def' type alias.
816
817 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
818
819 * breakpoint.c (handle_jit_event): Add an argument, change how
820 `jit_event_handler` is called.
821
822 2020-10-17 Tom Tromey <tom@tromey.com>
823
824 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
825 (scan_xcoff_symtab): Update.
826 * psymtab.h (class psymtab_storage) <global_psymbols,
827 static_psymbols, current_global_psymbols,
828 current_static_psymbols>: Remove.
829 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
830 (match_partial_symbol, lookup_partial_symbol): Update.
831 (print_partial_symbols): Change parameters.
832 (dump_psymtab, recursively_search_psymtabs)
833 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
834 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
835 (concat): Remove.
836 (end_psymtab_common): Simplify.
837 (append_psymbol_to_list): Change parameters.
838 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
839 (init_psymbol_list): Simplify.
840 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
841 * psympriv.h (struct partial_symtab) <empty>: New method.
842 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
843 Remove.
844 <global_psymbols, static_psymbols>: New members.
845 <add_psymbol>: New methods.
846 (add_psymbol_to_list): Don't declare.
847 (psymbol_placement): Move earlier.
848 * mdebugread.c (parse_partial_symbols): Update.
849 (handle_psymbol_enumerators): Change parameters.
850 (mdebug_expand_psymtab): Update.
851 * dwarf2/read.c (process_psymtab_comp_unit_reader)
852 (add_partial_symbol): Update.
853 * dwarf2/index-write.c (write_psymbols): Change parameters.
854 (write_one_signatured_type): Update.
855 (recursively_count_psymbols): Update.
856 (recursively_write_psymbols): Update.
857 (class debug_names) <recursively_write_psymbols>: Update.
858 <write_psymbols>: Change parameters.
859 <write_one_signatured_type>: Update.
860 * dbxread.c (read_dbx_symtab): Update.
861 (dbx_end_psymtab): Use partial_symtab::empty.
862 * ctfread.c (struct ctf_context) <pst>: New member.
863 (create_partial_symtab): Set it.
864 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
865 (scan_partial_symbols): Use the psymtab's context. Update.
866
867 2020-10-17 Tom Tromey <tom@tromey.com>
868
869 * valprint.c (generic_value_print): Remove comment.
870 * m2-valprint.c (m2_value_print_inner): Remove comment.
871 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
872 type.
873
874 2020-10-17 Tom de Vries <tdevries@suse.de>
875
876 PR symtab/26317
877 * source.c (select_source_symtab): Handling sal.symtab == NULL for
878 symbol main.
879
880 2020-10-14 Tom de Vries <tdevries@suse.de>
881
882 PR gdb/26733
883 * solib.c (solib_contains_address_p): Handle
884 'solib->sections == nullptr'.
885
886 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
887
888 PR gdb/26642
889 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
890 target can't do async.
891 * target.c (target_wait): Assert that we don't pass
892 TARGET_WNOHANG to a target that can't async.
893
894 2020-10-13 Kamil Rytarowski <n54@gmx.com>
895
896 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
897 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
898 * alpha-bsd-nat.c: Adjust include.
899 * alpha-bsd-tdep.h: Adjust comment.
900 * alpha-nbsd-tdep.c: Rename to ...
901 * alpha-netbsd-tdep.c: ... this, adjust include.
902 * amd64-nbsd-nat.c: Rename to ...
903 * amd64-netbsd-nat.c: ... this, adjust include.
904 * amd64-nbsd-tdep.c: Rename to ...
905 * amd64-netbsd-tdep.c: ... this, adjust include.
906 * amd64-tdep.h: Adjust include.
907 * arm-nbsd-nat.c: Rename to ...
908 * arm-netbsd-nat.c: ... this, adjust include.
909 * arm-nbsd-tdep.c: Rename to ...
910 * arm-netbsd-tdep.c: ... this, adjust include.
911 * arm-nbsd-tdep.h: Rename to ...
912 * arm-netbsd-tdep.h: ... this, adjust include.
913 * configure.nat: Adjust file lists.
914 * configure.tgt: Likewise.
915 * hppa-nbsd-nat.c: Rename to ...
916 * hppa-netbsd-nat.c: ... this, adjust include.
917 * hppa-nbsd-tdep.c: Rename to ...
918 * hppa-netbsd-tdep.c: ... this, adjust include.
919 * i386-nbsd-nat.c: Rename to ...
920 * i386-netbsd-nat.c: ... this, adjust include.
921 * i386-nbsd-tdep.c: Rename to ...
922 * i386-netbsd-tdep.c: ... this, adjust include.
923 * m68k-bsd-nat.c: Adjust include.
924 * mips-nbsd-nat.c: Rename to ...
925 * mips-netbsd-nat.c: ... this, adjust include.
926 * mips-nbsd-tdep.c: Rename to ...
927 * mips-netbsd-tdep.c: ... this, adjust include.
928 * mips-nbsd-tdep.h: Rename to ...
929 * mips-netbsd-tdep.h: ... this.
930 * nbsd-nat.c: Rename to ...
931 * netbsd-nat.c: ... this, adjust include.
932 * nbsd-nat.h: Rename to ...
933 * netbsd-nat.h: ... this, adjust include.
934 * nbsd-tdep.c: Rename to ...
935 * netbsd-tdep.c: ... this, adjust include.
936 * nbsd-tdep.h: Rename to ...
937 * netbsd-tdep.h: ... this.
938 * ppc-nbsd-nat.c: Rename to ...
939 * ppc-netbsd-nat.c: ... this, adjust include.
940 * ppc-nbsd-tdep.c: Rename to ...
941 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
942 * ppc-nbsd-tdep.h: Rename to ...
943 * ppc-netbsd-tdep.h: ... this.
944 * sh-nbsd-nat.c: Rename to ...
945 * sh-netbsd-nat.c: ... this, adjust include.
946 * sh-nbsd-tdep.c: Rename to ...
947 * sh-netbsd-tdep.c: ... this, adjust include.
948 * sparc-nbsd-nat.c: Rename to ...
949 * sparc-netbsd-nat.c: ... this.
950 * sparc-nbsd-tdep.c: Rename to ...
951 * sparc-netbsd-tdep.c: ... this, adjust include.
952 * sparc64-nbsd-nat.c: Rename to ...
953 * sparc64-netbsd-nat.c: ... this.
954 * sparc64-nbsd-tdep.c: Rename to ...
955 * sparc64-netbsd-tdep.c: ... this, adjust include.
956 * sparc64-tdep.h: Adjust comment.
957 * vax-bsd-nat.c: Adjust include.
958 * vax-nbsd-tdep.c: Rename to ...
959 * vax-netbsd-tdep.c: ... this, adjust include.
960
961 2020-10-12 Tom Tromey <tom@tromey.com>
962
963 * target.h (struct target_ops) <get_section_table>: Update.
964 (target_get_section_table): Update.
965 * target.c (target_get_section_table, target_section_by_addr)
966 (memory_xfer_partial_1): Update.
967 * target-section.h (target_section_table): Now an alias.
968 * target-delegates.c: Rebuild.
969 * target-debug.h (target_debug_print_target_section_table_p):
970 Rename from target_debug_print_struct_target_section_table_p.
971 * symfile.c (build_section_addr_info_from_section_table): Update.
972 * solib.c (solib_map_sections, solib_contains_address_p): Update.
973 * solib-svr4.c (scan_dyntag): Update.
974 * solib-dsbt.c (scan_dyntag): Update.
975 * remote.c (remote_target::remote_xfer_live_readonly_partial):
976 Update.
977 * record-full.c (record_full_core_target::xfer_partial): Update.
978 * progspace.h (struct program_space) <target_sections>: Update.
979 * exec.h (print_section_info): Update.
980 * exec.c (exec_target::close, build_section_table)
981 (add_target_sections, add_target_sections_of_objfile)
982 (remove_target_sections, exec_on_vfork)
983 (section_table_available_memory)
984 (section_table_xfer_memory_partial)
985 (exec_target::get_section_table, exec_target::xfer_partial)
986 (print_section_info, set_section_command)
987 (exec_set_section_address, exec_target::has_memory): Update.
988 * corelow.c (core_target::build_file_mappings)
989 (core_target::xfer_partial, core_target::info_proc_mappings)
990 (core_target::info_proc_mappings): Update.
991 * bfd-target.c (class target_bfd): Update
992
993 2020-10-12 Tom Tromey <tom@tromey.com>
994
995 * progspace.c (program_space::~program_space): Don't call
996 clear_section_table.
997 * exec.h (clear_section_table): Don't declare.
998 * exec.c (exec_target::close): Update.
999 (clear_section_table): Remove.
1000
1001 2020-10-12 Tom Tromey <tom@tromey.com>
1002
1003 * exec.c (add_target_sections_of_objfile): Simplify.
1004
1005 2020-10-12 Tom Tromey <tom@tromey.com>
1006
1007 * solib.c (solib_map_sections): Update.
1008 * record-full.c (record_full_core_open_1): Update.
1009 * exec.h (build_section_table): Return a target_section_table.
1010 * exec.c (exec_file_attach): Update.
1011 (build_section_table): Return a target_section_table.
1012 * corelow.c (core_target::core_target): Update.
1013 * bfd-target.c (target_bfd::target_bfd): Update.
1014
1015 2020-10-12 Tom Tromey <tom@tromey.com>
1016
1017 * target.c (target_section_by_addr, memory_xfer_partial_1):
1018 Update.
1019 * target-section.h (struct target_section_table): Use
1020 std::vector.
1021 * symfile.h (build_section_addr_info_from_section_table): Take a
1022 target_section_table.
1023 * symfile.c (build_section_addr_info_from_section_table): Take a
1024 target_section_table.
1025 * solist.h (struct so_list) <sections>: Change type.
1026 <sections_end>: Remove.
1027 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1028 (solib_contains_address_p): Update.
1029 * solib-svr4.c (scan_dyntag): Update.
1030 * solib-dsbt.c (scan_dyntag): Update.
1031 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1032 Update.
1033 * record-full.c (record_full_core_start, record_full_core_end):
1034 Remove.
1035 (record_full_core_sections): New global.
1036 (record_full_core_open_1, record_full_core_target::xfer_partial):
1037 Update.
1038 * exec.h (build_section_table, section_table_xfer_memory_partial)
1039 (add_target_sections): Take a target_section_table.
1040 * exec.c (exec_file_attach, clear_section_table): Update.
1041 (resize_section_table): Remove.
1042 (build_section_table, add_target_sections): Take a
1043 target_section_table.
1044 (add_target_sections_of_objfile, remove_target_sections)
1045 (exec_on_vfork): Update.
1046 (section_table_available_memory): Take a target_section_table.
1047 (section_table_read_available_memory): Update.
1048 (section_table_xfer_memory_partial): Take a target_section_table.
1049 (print_section_info, set_section_command)
1050 (exec_set_section_address, exec_target::has_memory): Update.
1051 * corelow.c (class core_target) <m_core_section_table,
1052 m_core_file_mappings>: Remove braces.
1053 <~core_target>: Remove.
1054 (core_target::core_target): Update.
1055 (core_target::~core_target): Remove.
1056 (core_target::build_file_mappings)
1057 (core_target::xfer_memory_via_mappings)
1058 (core_target::xfer_partial, core_target::info_proc_mappings):
1059 Update.
1060 * bfd-target.c (target_bfd::xfer_partial): Update.
1061 (target_bfd::target_bfd): Update.
1062 (target_bfd::~target_bfd): Remove.
1063
1064 2020-10-12 Tom Tromey <tom@tromey.com>
1065
1066 * target.h (struct target_section, struct target_section_table):
1067 Move to target-section.h.
1068 * target-section.h: New file.
1069
1070 2020-10-12 Pedro Alves <pedro@palves.net>
1071
1072 PR exp/26602
1073 * valops.c (struct struct_field_searcher): New.
1074 (update_search_result): Rename to ...
1075 (struct_field_searcher::update_result): ... this. Simplify
1076 prototype. Record all found fields.
1077 (do_search_struct_field): Rename to ...
1078 (struct_field_searcher::search): ... this. Simplify prototype.
1079 Maintain stack of visited baseclass path. Call update_result for
1080 fields too. Keep searching fields in baseclasses instead of
1081 stopping at the first found field.
1082 (search_struct_field): Use struct_field_searcher. When looking
1083 for fields, report ambiguous access attempts.
1084
1085 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1086
1087 * frame.c (inside_main_func): Check full symbols as well as
1088 minimal symbols.
1089
1090 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1091
1092 * ada-lang.c (advance_wild_match): Rewrite the function's
1093 description. Change the type of target0, t0 and t1 to char.
1094
1095 2020-10-09 Tom Tromey <tromey@adacore.com>
1096
1097 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1098
1099 2020-10-09 Tom Tromey <tromey@adacore.com>
1100
1101 * ada-lang.h (ada_encode): Return std::string.
1102 * ada-lang.c (ada_encode_1): Return std::string.
1103 (ada_encode): Likewise.
1104 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1105 Update.
1106 * ada-exp.y (block_lookup, write_var_or_type): Update.
1107
1108 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1109
1110 PR exp/26714
1111 * printcmd.c (print_formatted): Handle void results as
1112 unformatted prints.
1113
1114 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1115
1116 * arch/aarch32.c (aarch32_create_target_description): Release the
1117 target_desc_up as late as possible.
1118 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1119 * arch/amd64.c (amd64_create_target_description): Likewise.
1120 * arch/arc.c (arc_create_target_description): Return a
1121 target_desc_up, don't release it.
1122 * arch/arc.h (arc_create_target_description): Update declaration.
1123 (arc_lookup_target_description): Move target_desc_up into the
1124 cache, and return a borrowed pointer.
1125 * arch/arm.c (arm_create_target_description): Release the
1126 target_desc_up as late as possible.
1127 * arch/i386.c (i386_create_target_description): Likewise.
1128 * arch/riscv.h (riscv_create_target_description): Update
1129 declaration to match definition.
1130 * arch/tic6x.c (tic6x_create_target_description): Release the
1131 target_desc_up as late as possible.
1132
1133 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1134
1135 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1136 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1137
1138 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1139
1140 * source.c (directory_command): Notify observers that "directories"
1141 parameter has changed.
1142
1143 2020-10-08 Tom Tromey <tom@tromey.com>
1144
1145 * cli/cli-cmds.c (print_disassembly): Style function name and
1146 addresses. Add _() wrappers.
1147
1148 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1149
1150 * NEWS: Mention ARC support in GDBserver.
1151
1152 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1153
1154 * arch/aarch32.c (aarch32_create_target_description): Release
1155 unique_ptr returned from allocate_target_description.
1156 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1157 * arch/amd64.c (amd64_create_target_description): Likewise.
1158 * arch/arc.c (arc_create_target_description): Likewise.
1159 * arch/arm.c (arm_create_target_description): Likewise.
1160 * arch/i386.c (i386_create_target_description): Likewise.
1161 * arch/riscv.c (riscv_create_target_description): Update return
1162 type. Handle allocate_target_description returning a unique_ptr.
1163 (riscv_lookup_target_description): Update to handle unique_ptr.
1164 * arch/tic6x.c (tic6x_create_target_description): Release
1165 unique_ptr returned from allocate_target_description.
1166 * features/microblaze-with-stack-protect.c: Regenerate.
1167 * features/microblaze.c: Regenerate.
1168 * features/mips-dsp-linux.c: Regenerate.
1169 * features/mips-linux.c: Regenerate.
1170 * features/mips64-dsp-linux.c: Regenerate.
1171 * features/mips64-linux.c: Regenerate.
1172 * features/nds32.c: Regenerate.
1173 * features/nios2.c: Regenerate.
1174 * features/or1k.c: Regenerate.
1175 * features/rs6000/powerpc-32.c: Regenerate.
1176 * features/rs6000/powerpc-32l.c: Regenerate.
1177 * features/rs6000/powerpc-403.c: Regenerate.
1178 * features/rs6000/powerpc-403gc.c: Regenerate.
1179 * features/rs6000/powerpc-405.c: Regenerate.
1180 * features/rs6000/powerpc-505.c: Regenerate.
1181 * features/rs6000/powerpc-601.c: Regenerate.
1182 * features/rs6000/powerpc-602.c: Regenerate.
1183 * features/rs6000/powerpc-603.c: Regenerate.
1184 * features/rs6000/powerpc-604.c: Regenerate.
1185 * features/rs6000/powerpc-64.c: Regenerate.
1186 * features/rs6000/powerpc-64l.c: Regenerate.
1187 * features/rs6000/powerpc-7400.c: Regenerate.
1188 * features/rs6000/powerpc-750.c: Regenerate.
1189 * features/rs6000/powerpc-860.c: Regenerate.
1190 * features/rs6000/powerpc-altivec32.c: Regenerate.
1191 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1192 * features/rs6000/powerpc-altivec64.c: Regenerate.
1193 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1194 * features/rs6000/powerpc-e500.c: Regenerate.
1195 * features/rs6000/powerpc-e500l.c: Regenerate.
1196 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1197 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1198 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1199 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1200 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1201 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1202 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1203 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1204 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1205 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1206 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1207 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1208 * features/rs6000/powerpc-vsx32.c: Regenerate.
1209 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1210 * features/rs6000/powerpc-vsx64.c: Regenerate.
1211 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1212 * features/rs6000/rs6000.c: Regenerate.
1213 * features/rx.c: Regenerate.
1214 * features/s390-gs-linux64.c: Regenerate.
1215 * features/s390-linux32.c: Regenerate.
1216 * features/s390-linux32v1.c: Regenerate.
1217 * features/s390-linux32v2.c: Regenerate.
1218 * features/s390-linux64.c: Regenerate.
1219 * features/s390-linux64v1.c: Regenerate.
1220 * features/s390-linux64v2.c: Regenerate.
1221 * features/s390-te-linux64.c: Regenerate.
1222 * features/s390-tevx-linux64.c: Regenerate.
1223 * features/s390-vx-linux64.c: Regenerate.
1224 * features/s390x-gs-linux64.c: Regenerate.
1225 * features/s390x-linux64.c: Regenerate.
1226 * features/s390x-linux64v1.c: Regenerate.
1227 * features/s390x-linux64v2.c: Regenerate.
1228 * features/s390x-te-linux64.c: Regenerate.
1229 * features/s390x-tevx-linux64.c: Regenerate.
1230 * features/s390x-vx-linux64.c: Regenerate.
1231 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1232 from allocate_target_description.
1233 * target-descriptions.c (allocate_target_description): Update
1234 return type.
1235 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1236 allocate_target_description.
1237
1238 2020-10-07 Tom Tromey <tromey@adacore.com>
1239
1240 * unittests/search-memory-selftests.c: New file.
1241 * Makefile.in (SELFTESTS_SRCS): Add
1242 unittests/search-memory-selftests.c.
1243
1244 2020-10-07 Tom Tromey <tromey@adacore.com>
1245
1246 PR gdb/16930:
1247 * findcmd.c (_initialize_mem_search): Mention that the range is
1248 inclusive.
1249
1250 2020-10-07 Tom Tromey <tromey@adacore.com>
1251
1252 * target.h (simple_search_memory): Don't declare.
1253 * target.c (simple_search_memory): Move to gdbsupport.
1254 (default_search_memory): Update.
1255 * remote.c (remote_target::search_memory): Update.
1256
1257 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1258
1259 * Makefile.in (COMPILE): Add CXXFLAGS.
1260 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1261 (check-headers): Add CXXFLAGS.
1262
1263 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1264
1265 * arc-linux-tdep.h: New file.
1266 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1267 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1268 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1269 arc_linux_gregset, arc_linux_v2_regset,
1270 arc_linux_iterate_over_regset_sections,
1271 arc_linux_core_read_description): Implement.
1272 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1273 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1274 (arc_gdbarch_features_create): Add.
1275 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1276
1277 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1278
1279 * arch/arc.h: Rename "arc_gdbarch_features" to
1280 "arc_arch_features".
1281 * arc-tdep.h: Likewise.
1282 * arc-tdep.c: Likewise.
1283
1284 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1285
1286 * infcmd.c (attach_command): Remove the redundant call to
1287 `clear_proceed_status`.
1288
1289 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1290
1291 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1292
1293 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1294
1295 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1296 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1297 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1298
1299 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1300
1301 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1302 (_initialize_break_catch_sig): Don't allocate array.
1303
1304 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1305
1306 * symtab.c (find_pc_line): Return unmapped addresses when the
1307 requested address is also unmapped.
1308
1309 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1310
1311 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1312 tui/tui-out.h.
1313
1314 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1315
1316 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1317 type::is_vector instead of TYPE_VECTOR.
1318
1319 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1320
1321 * auto-load.c (auto_load_objfile_script_1): Don't use
1322 debugfile_holder as temporary variable when stripping drive
1323 letter.
1324
1325 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1326
1327 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1328 Add TYPE_CODE_COMPLEX.
1329 (amd64_windows_return_value): Fix types returned via XMM0.
1330
1331 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1332
1333 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1334 AArch64/ARM maintainers.
1335
1336 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1337
1338 * NEWS: Mention set/show debug event-loop.
1339
1340 2020-10-02 Tom Tromey <tromey@adacore.com>
1341
1342 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1343 REG_EXTENDED.
1344
1345 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1346
1347 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1348 * procfs.c (procfs_inferior_created): Remove.
1349 (_initialize_procfs): Don't register procfs_inferior_created.
1350
1351 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1352
1353 * async-event.c (invoke_async_signal_handlers): Add debug
1354 print.
1355 (check_async_event_handlers): Likewise.
1356 * event-top.c (show_debug_event_loop): New function.
1357 (_initialize_event_top): Register "set debug event-loop"
1358 setting.
1359
1360 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1361
1362 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1363 * debug.h: Remove.
1364 * infrun.c: Include gdbsupport/common-debug.h.
1365 * linux-nat.c: Likewise.
1366
1367 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1368
1369 * async-event.h (create_async_signal_handler): Add name
1370 parameter.
1371 (create_async_event_handler): Likewise.
1372 * async-event.c (struct async_signal_handler) <name>: New field.
1373 (struct async_event_handler) <name>: New field.
1374 (create_async_signal_handler): Assign name.
1375 (create_async_event_handler): Assign name.
1376 * event-top.c (async_init_signals): Pass name when creating
1377 handler.
1378 * infrun.c (_initialize_infrun): Likewise.
1379 * record-btrace.c (record_btrace_push_target): Likewise.
1380 * record-full.c (record_full_open): Likewise.
1381 * remote-notif.c (remote_notif_state_allocate): Likewise.
1382 * remote.c (remote_target::open_1): Likewise.
1383 * tui/tui-win.c (tui_initialize_win): Likewise.
1384
1385 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1386
1387 * async-event.c (initialize_async_signal_handlers): Pass name to
1388 add_file_handler
1389 * event-top.c (ui_register_input_event_handler): Likewise.
1390 * linux-nat.c (linux_nat_target::async): Likewise.
1391 * run-on-main-thread.c (_initialize_run_on_main_thread):
1392 Likewise
1393 * ser-base.c (reschedule): Likewise.
1394 (ser_base_async): Likewise.
1395 * tui/tui-io.c: Likewise.
1396 * top.h (struct ui) <num>: New field.
1397 * top.c (highest_ui_num): New variable.
1398 (ui::ui): Initialize num.
1399
1400 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1401
1402 * observable.h <inferior_created>: Remove parameters. Update all
1403 listeners.
1404 * inferior.h (post_create_inferior): Remove target parameter.
1405 Update all callers.
1406
1407 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1408
1409 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1410 and DW_MACRO_undef_strx.
1411 (dwarf_decode_macros): Likewise
1412 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1413 which is the value of DW_AT_str_offsets_base.
1414 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1415 str_offsets_base.
1416
1417 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1418
1419 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1420
1421 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1422
1423 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1424 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1425
1426 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1427
1428 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1429
1430 2020-09-30 Tom de Vries <tdevries@suse.de>
1431
1432 PR symtab/26683
1433 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1434
1435 2020-09-30 Tom Tromey <tromey@adacore.com>
1436
1437 * dwarf2/read.c (handle_variant): Use constant_value.
1438
1439 2020-09-29 Tom Tromey <tom@tromey.com>
1440
1441 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1442 (read_file_scope, dwarf2_get_pc_bounds)
1443 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1444 (read_structure_type, handle_struct_member_die)
1445 (read_enumeration_type, read_array_type, read_set_type)
1446 (read_tag_pointer_type, read_tag_reference_type)
1447 (read_subroutine_type, read_base_type, read_subrange_type)
1448 (read_full_die_1, partial_die_info::read)
1449 (partial_die_info::read, by, new_symbol)
1450 (dwarf2_const_value_data, dwarf2_const_value_attr)
1451 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1452 (prepare_one_comp_unit): Update.
1453 * dwarf2/attribute.h (DW_UNSND): Remove.
1454
1455 2020-09-29 Tom Tromey <tom@tromey.com>
1456
1457 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1458 (read_subroutine_type, partial_die_info::read)
1459 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1460 (dwarf2_add_member_fn): Update.
1461 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1462 * dwarf2/attribute.c (attribute::as_boolean): New method.
1463
1464 2020-09-29 Tom Tromey <tom@tromey.com>
1465
1466 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1467 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1468 method.
1469 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1470
1471 2020-09-29 Tom Tromey <tom@tromey.com>
1472
1473 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1474 the attribute's form.
1475
1476 2020-09-29 Tom Tromey <tom@tromey.com>
1477
1478 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1479 (dwarf2_add_member_fn): Update.
1480 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1481 * dwarf2/attribute.c (attribute::defaulted): New method, from
1482 is_valid_DW_AT_defaulted.
1483
1484 2020-09-29 Tom Tromey <tom@tromey.com>
1485
1486 * dwarf2/read.c (dw2_get_file_names_reader)
1487 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1488 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1489 (dwarf2_symbol_mark_computed): Use as_unsigned.
1490 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1491 method.
1492 <form_is_section_offset>: Update comment.
1493
1494 2020-09-29 Tom Tromey <tom@tromey.com>
1495
1496 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1497 dwarf2_default_access_attribute. Look up attribute.
1498 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1499 Update.
1500
1501 2020-09-29 Tom Tromey <tom@tromey.com>
1502
1503 * dwarf2/read.c (skip_one_die): Update.
1504 (read_full_die_1): Change how reprocessing is done.
1505 (partial_die_info::read): Update.
1506 (read_attribute_value): Remove need_reprocess parameter.
1507 (read_attribute): Likewise.
1508 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1509 New method.
1510
1511 2020-09-29 Tom Tromey <tom@tromey.com>
1512
1513 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1514 (dwarf2_const_value_attr, dump_die_shallow)
1515 (dwarf2_fetch_constant_bytes): Update.
1516 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1517 comment.
1518 <set_address>: New method.
1519 (DW_ADDR): Remove.
1520 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1521 (attribute::as_string, attribute::as_address): Add assert.
1522
1523 2020-09-29 Tom Tromey <tom@tromey.com>
1524
1525 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1526 (read_attribute_reprocess, read_attribute_value): Update.
1527 (read_attribute): Clear requires_reprocessing.
1528 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1529 form_requires_reprocessing>: New methods.
1530 <string_init>: Clear requires_reprocessing.
1531 <set_unsigned_reprocess>: New method.
1532 <name>: Shrink by one bit.
1533 <requires_reprocessing>: New member.
1534 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1535 method.
1536
1537 2020-09-29 Tom Tromey <tom@tromey.com>
1538
1539 * dwarf2/read.c (read_attribute_value): Update.
1540 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1541 set_unsigned>: New methods.
1542 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1543
1544 2020-09-29 Tom Tromey <tom@tromey.com>
1545
1546 * dwarf2/read.c (get_alignment, read_array_order)
1547 (read_attribute_value, dwarf2_const_value_attr)
1548 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1549 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1550 New methods.
1551 (DW_SND): Remove.
1552
1553 2020-09-29 Tom Tromey <tom@tromey.com>
1554
1555 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1556 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1557 Update.
1558 * dwarf2/attribute.h (struct attribute) <as_signature,
1559 set_signature>: New methods.
1560 (DW_SIGNATURE): Remove.
1561
1562 2020-09-29 Tom Tromey <tom@tromey.com>
1563
1564 * dwarf2/read.c (read_call_site_scope)
1565 (handle_data_member_location, dwarf2_add_member_fn)
1566 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1567 (partial_die_info::read, read_attribute_value)
1568 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1569 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1570 (dwarf2_symbol_mark_computed): Update.
1571 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1572 methods.
1573 (DW_BLOCK): Remove.
1574 * dwarf2/attribute.c (attribute::form_is_block): Add
1575 DW_FORM_data16.
1576
1577 2020-09-29 Tom Tromey <tom@tromey.com>
1578
1579 * dwarf2/read.c (read_cutu_die_from_dwo)
1580 (read_attribute_reprocess, read_attribute_value, read_attribute)
1581 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1582 (dwarf2_fetch_constant_bytes): Update.
1583 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1584 <set_string_noncanonical, set_string_canonical>: New methods.
1585 <string_is_canonical>: Update comment.
1586 <canonical_string_p>: Add assert.
1587 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1588 * dwarf2/attribute.c (attribute::form_is_string): New method.
1589 (attribute::string): Use it.
1590
1591 2020-09-29 Tom Tromey <tom@tromey.com>
1592
1593 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1594 (dump_die_shallow): Use canonical_string_p.
1595 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1596 method.
1597
1598 2020-09-29 Tom Tromey <tom@tromey.com>
1599
1600 * dwarf2/read.c (partial_die_info::read)
1601 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1602 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1603 attribute::as_string.
1604
1605 2020-09-29 Tom Tromey <tom@tromey.com>
1606
1607 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1608 DW_ADDR.
1609 (attribute::string): Don't use DW_STRING.
1610 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1611 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1612
1613 2020-09-29 Tom Tromey <tom@tromey.com>
1614
1615 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1616 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1617 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1618 * dwarf2/attribute.h (struct attribute): Rename methods.
1619 * dwarf2/attribute.c (attribute::as_address): Rename from
1620 value_as_address.
1621 (attribute::as_string): Rename from value_as_string.
1622
1623 2020-09-29 Tom Tromey <tom@tromey.com>
1624
1625 * dwarf2/read.c (partial_die_info::read) <case
1626 DW_AT_linkage_name>: Use value_as_string.
1627 (dwarf2_string_attr): Use value_as_string.
1628 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1629 method.
1630 * dwarf2/attribute.c (attribute::value_as_string): New method.
1631
1632 2020-09-29 Pedro Alves <pedro@palves.net>
1633
1634 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1635 defined before using '#pragma GCC diagnostic' instead of checking
1636 __clang__.
1637
1638 2020-09-28 Tom Tromey <tom@tromey.com>
1639
1640 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1641 (handle_signal_stop): Update.
1642 * procfs.c (procfs_target::insert_watchpoint): Update.
1643 * target.h (target_have_steppable_watchpoint): Now a function.
1644
1645 2020-09-28 Tom Tromey <tom@tromey.com>
1646
1647 * infrun.c (set_schedlock_func): Update.
1648 * target.h (target_can_lock_scheduler): Now a function.
1649
1650 2020-09-28 Tom Tromey <tom@tromey.com>
1651
1652 * inferior.h (class inferior) <has_execution>: Update.
1653 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1654 * valops.c (find_function_in_inferior)
1655 (value_allocate_space_in_inferior): Update.
1656 * top.c (kill_or_detach): Update.
1657 * target.c (target_preopen, set_target_permissions): Update.
1658 (target_has_execution_current): Remove.
1659 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1660 Update.
1661 * solib.c (update_solib_list, reload_shared_libraries): Update.
1662 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1663 * solib-dsbt.c (enable_break): Update.
1664 * score-tdep.c (score7_fetch_inst): Update.
1665 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1666 Update.
1667 * remote.c (remote_target::start_remote)
1668 (remote_target::remote_check_symbols, remote_target::open_1)
1669 (remote_target::remote_detach_1, remote_target::verify_memory)
1670 (remote_target::xfer_partial, remote_target::read_description)
1671 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1672 * record-full.c (record_full_open_1): Update.
1673 * record-btrace.c (record_btrace_target_open): Update.
1674 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1675 (value_nsstring): Update.
1676 * linux-thread-db.c (add_thread_db_info)
1677 (thread_db_find_new_threads_silently, check_thread_db_callback)
1678 (try_thread_db_load_1, record_thread): Update.
1679 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1680 Update.
1681 * linux-fork.c (checkpoint_command): Update.
1682 * infrun.c (set_non_stop, set_observer_mode)
1683 (check_multi_target_resumption, for_each_just_stopped_thread)
1684 (maybe_remove_breakpoints, normal_stop)
1685 (class infcall_suspend_state): Update.
1686 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1687 (info_program_command, attach_command): Update.
1688 * infcall.c (call_function_by_hand_dummy): Update.
1689 * inf-loop.c (inferior_event_handler): Update.
1690 * gcore.c (gcore_command, derive_heap_segment): Update.
1691 * exec.c (exec_file_command): Update.
1692 * eval.c (evaluate_subexp): Update.
1693 * compile/compile.c (compile_to_object): Update.
1694 * cli/cli-dump.c (restore_command): Update.
1695 * breakpoint.c (update_watchpoint)
1696 (update_inserted_breakpoint_locations)
1697 (insert_breakpoint_locations, get_bpstat_thread): Update.
1698 * target.h (target_has_execution): Remove macro.
1699 (target_has_execution_current): Don't declare.
1700 (target_has_execution): Rename from target_has_execution_1. Add
1701 argument default.
1702
1703 2020-09-28 Tom Tromey <tom@tromey.com>
1704
1705 * mi/mi-main.c (exec_reverse_continue)
1706 (mi_cmd_list_target_features): Update.
1707 * infrun.c (set_exec_direction_func): Update.
1708 * target.c (default_execution_direction): Update.
1709 * reverse.c (exec_reverse_once): Update.
1710 * target.h (target_can_execute_reverse): Now a function.
1711
1712 2020-09-28 Tom Tromey <tom@tromey.com>
1713
1714 * tui/tui-regs.c (tui_get_register)
1715 (tui_data_window::show_registers): Update.
1716 * thread.c (scoped_restore_current_thread::restore)
1717 (scoped_restore_current_thread::scoped_restore_current_thread):
1718 Update.
1719 * regcache-dump.c (regcache_print): Update.
1720 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1721 Update.
1722 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1723 * mep-tdep.c (current_me_module, current_options): Update.
1724 * linux-thread-db.c (thread_db_load): Update.
1725 * infcmd.c (registers_info, info_vector_command)
1726 (info_float_command): Update.
1727 * ia64-tdep.c (ia64_frame_prev_register)
1728 (ia64_sigtramp_frame_prev_register): Update.
1729 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1730 * gcore.c (derive_stack_segment): Update.
1731 * frame.c (get_current_frame, has_stack_frames): Update.
1732 * findvar.c (language_defn::read_var_value): Update.
1733 * arm-tdep.c (arm_pc_is_thumb): Update.
1734 * target.c (target_has_registers): Rename from
1735 target_has_registers_1.
1736 * target.h (target_has_registers): Remove macro.
1737 (target_has_registers): Rename from target_has_registers_1.
1738
1739 2020-09-28 Tom Tromey <tom@tromey.com>
1740
1741 * windows-tdep.c (tlb_make_value): Update.
1742 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1743 * thread.c (scoped_restore_current_thread::restore)
1744 (scoped_restore_current_thread::scoped_restore_current_thread)
1745 (thread_command): Update.
1746 * stack.c (backtrace_command_1, frame_apply_level_command)
1747 (frame_apply_all_command, frame_apply_command): Update.
1748 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1749 Update.
1750 * gcore.c (derive_stack_segment): Update.
1751 * frame.c (get_current_frame, has_stack_frames): Update.
1752 * auxv.c (info_auxv_command): Update.
1753 * ada-tasks.c (ada_build_task_list): Update.
1754 * target.c (target_has_stack): Rename from target_has_stack_1.
1755 * target.h (target_has_stack): Remove macro.
1756 (target_has_stack): Rename from target_has_stack_1.
1757
1758 2020-09-28 Tom Tromey <tom@tromey.com>
1759
1760 * target.c (target_has_memory): Rename from target_has_memory_1.
1761 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1762 * thread.c (scoped_restore_current_thread::restore)
1763 (scoped_restore_current_thread::scoped_restore_current_thread):
1764 Update.
1765 * frame.c (get_current_frame, has_stack_frames): Update.
1766 * target.h (target_has_memory): Remove macro.
1767 (target_has_memory): Rename from target_has_memory_1.
1768
1769 2020-09-28 Tom Tromey <tom@tromey.com>
1770
1771 * target.c (target_has_all_memory_1): Remove.
1772 * target.h (target_has_all_memory): Remove define.
1773 (target_has_all_memory_1): Don't declare.
1774
1775 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1776
1777 * ser-base.c: Adjust comments formatting.
1778
1779 2020-09-27 Tom Tromey <tom@tromey.com>
1780
1781 PR tui/25342:
1782 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1783
1784 2020-09-27 Tom Tromey <tom@tromey.com>
1785
1786 PR tui/25342:
1787 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1788
1789 2020-09-27 Tom Tromey <tom@tromey.com>
1790
1791 * unittests/tui-selftests.c: Update.
1792 * tui/tui-winsource.h (struct tui_source_window_base)
1793 <extra_margin, show_line_number, refresh_pad>: New methods.
1794 <m_max_length, m_pad>: New members.
1795 (tui_copy_source_line): Update.
1796 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1797 first_col, line_width, ndigits parameters. Add length.
1798 (tui_source_window_base::show_source_line): Write to pad. Line
1799 number now 0-based.
1800 (tui_source_window_base::refresh_pad): New method.
1801 (tui_source_window_base::show_source_content): Write to pad. Call
1802 refresh_pad.
1803 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1804 not refill.
1805 (tui_source_window_base::update_exec_info): Call
1806 show_line_number.
1807 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1808 method.
1809 <m_digits>: New member.
1810 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1811 and m_max_length.
1812 (tui_source_window::show_line_number): New method.
1813 * tui/tui-io.h (tui_puts): Fix comment.
1814 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1815 m_max_length.
1816
1817 2020-09-27 Tom Tromey <tom@tromey.com>
1818
1819 * tui/tui-winsource.c
1820 (tui_source_window_base::set_is_exec_point_at): Don't call
1821 show_source_line.
1822
1823 2020-09-27 Tom Tromey <tom@tromey.com>
1824
1825 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1826 method.
1827 <erase>: Update.
1828 <cursor_x, cursor_y>: Remove.
1829 <m_inner_window>: New member.
1830 (tui_py_window::rerender): Create inner window.
1831 (tui_py_window::output): Write to inner window.
1832
1833 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1834
1835 PR python/26586
1836 * cli/cli-script.c (execute_control_commands): don't set
1837 instream to nullptr here as this breaks the from_tty argument
1838 to gdb.execute in Python.
1839 (execute_user_command): set instream to nullptr here instead.
1840
1841 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1842
1843 * infrun.h (infrun_debug_printf): Fix formatting.
1844 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1845
1846 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1847
1848 * compile/compile-object-load.h (struct munmap_list): Add
1849 explicitly-defined move constructor.
1850
1851 2020-09-24 Tom Tromey <tromey@adacore.com>
1852
1853 PR tui/26638:
1854 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1855 method.
1856 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1857 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1858 (tui_prev_win): Rewrite.
1859
1860 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1861
1862 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1863 in WOW64 processes as SIGINT.
1864 * nat/windows-nat.h: Make wow64_process a shared variable.
1865 * windows-nat.c: Remove static wow64_process variable.
1866
1867 2020-09-23 Tom Tromey <tom@tromey.com>
1868
1869 PR symtab/25470:
1870 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1871 offset and bit size.
1872 * printcmd.c (print_scalar_formatted): Handle zero-length
1873 integer.
1874 (print_scalar_formatted): Use bit_size_differs_p.
1875 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1876 constant.
1877 (union type_specific): <int_stuff>: New member.
1878 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1879 methods.
1880 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1881 TYPE_SPECIFIC_FIELD.
1882 (recursive_dump_type, copy_type_recursive): Update.
1883 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1884 DW_AT_data_bit_offset.
1885
1886 2020-09-23 Tom Tromey <tom@tromey.com>
1887
1888 * utils.h (class gdb_argv): Add move operators.
1889 <append>: New methods.
1890 * compile/compile.c (build_argc_argv): Remove.
1891 (compile_args_argc): Remove.
1892 (compile_args_argv): Change type.
1893 (set_compile_args): Simplify.
1894 (append_args): Remove.
1895 (filter_args): Remove argcp parameter.
1896 (get_args): Return gdb_argv. Simplify.
1897 (compile_to_object): Update.
1898
1899 2020-09-23 Tom Tromey <tom@tromey.com>
1900
1901 * compile/compile-object-run.c (do_module_cleanup)
1902 <~do_module_cleanup> :Remove.
1903 (do_module_cleanup): Update.
1904 * compile/compile-object-load.h (struct munmap_list): Add move
1905 assignment operator.
1906 <source_file>: Now a std::string.
1907 <munmap_list>: Rename. No longer a pointer.
1908 * compile/compile-object-load.c (struct setup_sections_data): Add
1909 constructor.
1910 <setup_one_section>: Declare.
1911 <munmap_list>: Move earlier.
1912 <m_bfd>: New member.
1913 <m_last_size, m_last_section_first, m_last_prot,
1914 m_last_max_alignment>: Rename, add initializers where needed.
1915 (setup_sections_data::setup_one_section): Rename from
1916 setup_sections. Update.
1917 (compile_object_load): Update. Don't use bfd_map_over_sections.
1918
1919 2020-09-23 Tom Tromey <tom@tromey.com>
1920
1921 * compile/compile-object-run.c (struct do_module_cleanup): Add
1922 parameters to constructor. Update destructor.
1923 <source_file, scope, scope_data, out_value_type, out_value_addr,
1924 munmap_list_head, objfile_name_string>: Remove.
1925 <module>: New member.
1926 (do_module_cleanup): Update.
1927 (compile_object_run): Update.
1928
1929 2020-09-23 Tom Tromey <tom@tromey.com>
1930
1931 * compile/compile.c (eval_compile_command): Update.
1932 * compile/compile-object-run.h (compile_object_run): Take a
1933 compile_module_up.
1934 * compile/compile-object-run.c (compile_object_run): Take a
1935 compile_module_up.
1936 * compile/compile-object-load.h (struct compile_module): Add
1937 constructor, destructor.
1938 (compile_module_up): New typedef.
1939 (compile_object_load): Return compile_object_up.
1940 * compile/compile-object-load.c (compile_object_load): Return
1941 compile_module_up.
1942
1943 2020-09-23 Tom Tromey <tom@tromey.com>
1944
1945 * compile/compile-object-run.c (struct do_module_cleanup): Add
1946 constructor, destructor.
1947 <objfile_name_string>: Don't use struct hack.
1948 (do_module_cleanup): Use delete.
1949 (compile_object_run): Use new.
1950
1951 2020-09-23 Tom Tromey <tom@tromey.com>
1952
1953 * compile/compile-cplus-types.c
1954 (compile_cplus_convert_struct_or_union): Use std::vector.
1955 (compile_cplus_convert_func): Likewise.
1956 * compile/compile-c-types.c (convert_func): Use std::vector.
1957
1958 2020-09-21 Tom Tromey <tromey@adacore.com>
1959
1960 * sparc-tdep.c (sparc32_skip_prologue): Use
1961 skip_prologue_using_sal.
1962
1963 2020-09-19 Tom Tromey <tom@tromey.com>
1964
1965 * symfile.c (add_section_size_callback): Remove.
1966 (load_one_section): Rename from load_section_callback. Change
1967 parameters.
1968 (generic_load): Use foreach.
1969
1970 2020-09-19 Tom Tromey <tom@tromey.com>
1971
1972 * exec.c (add_to_section_table): Remove.
1973 (build_section_table): Use foreach.
1974
1975 2020-09-19 Tom Tromey <tom@tromey.com>
1976
1977 * elfread.c (elf_locate_sections): Change parameters.
1978 (elf_symfile_read): Use foreach.
1979
1980 2020-09-19 Tom Tromey <tom@tromey.com>
1981
1982 * cli/cli-dump.c (struct callback_data): Remove.
1983 (restore_one_section): Rename from restore_section_callback.
1984 Change parameters.
1985 (restore_binary_file): Change parameters.
1986 (restore_command): Use foreach.
1987
1988 2020-09-19 Tom Tromey <tom@tromey.com>
1989
1990 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1991 (gcore_copy_callback): Likewise.
1992 (gcore_memory_sections): Use foreach.
1993
1994 2020-09-19 Tom Tromey <tom@tromey.com>
1995
1996 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1997 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1998 parameters.
1999 (generic_elf_osabi_sniffer): Use foreach.
2000 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2001 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2002
2003 2020-09-19 Tom Tromey <tom@tromey.com>
2004
2005 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2006 (dwarf2_get_dwz_file): Use foreach.
2007 (dwarf2_locate_dwo_sections): Change parameters.
2008 (open_and_init_dwo_file): Use foreach.
2009 (dwarf2_locate_common_dwp_sections): Change parameters.
2010 (open_and_init_dwp_file): Use foreach.
2011
2012 2020-09-19 Tom Tromey <tom@tromey.com>
2013
2014 * symfile.h: (find_lowest_section): Don't declare.
2015 * symfile.c (find_lowest_section): Now static. Change
2016 parameters.
2017 (struct place_section_arg): Remove.
2018 (place_section): Change parameters.
2019 (addr_info_make_relative): Use foreach.
2020 (symfile_dummy_outputs): Remove.
2021 (default_symfile_relocate): Use foreach.
2022
2023 2020-09-19 Tom Tromey <tom@tromey.com>
2024
2025 * objfiles.c (add_to_objfile_sections): Rename from
2026 add_to_objfile_sections_full.
2027 (add_to_objfile_sections): Remove.
2028 (build_objfile_section_table): Use foreach.
2029
2030 2020-09-19 Tom Tromey <tom@tromey.com>
2031
2032 * stap-probe.c (get_stap_base_address_1): Remove.
2033 (get_stap_base_address): Use foreach.
2034
2035 2020-09-19 Tom Tromey <tom@tromey.com>
2036
2037 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2038 parameters.
2039 (gdb_bfd_close_or_warn): Use foreach.
2040
2041 2020-09-19 Tom Tromey <tom@tromey.com>
2042
2043 * corelow.c (add_to_thread_list): Change parameters.
2044 (core_target_open): Use foreach.
2045
2046 2020-09-19 Tom Tromey <tom@tromey.com>
2047
2048 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2049 existing function.
2050
2051 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2052
2053 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2054 for arrays.
2055
2056 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2057
2058 * eval.c: Remove 'f-lang.h' include.
2059 (value_f90_subarray): Moved to f-lang.c.
2060 (eval_call): Renamed to...
2061 (evaluate_subexp_do_call): ...this, is no longer static, header
2062 comment moved into header file.
2063 (evaluate_funcall): Update call to eval_call.
2064 (skip_undetermined_arglist): Moved to f-lang.c.
2065 (fortran_value_subarray): Likewise.
2066 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2067 moved to evaluate_subexp_f.
2068 (calc_f77_array_dims): Moved to f-lang.c
2069 * expprint.c (print_subexp_funcall): New function.
2070 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2071 moved to print_subexp_f, OP_FUNCALL uses new function.
2072 (dump_subexp_body_funcall): New function.
2073 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2074 moved to dump_subexp_f, OP_FUNCALL uses new function.
2075 * expression.h (evaluate_subexp_do_call): Declare.
2076 * f-lang.c (value_f90_subarray): Moved from eval.c.
2077 (skip_undetermined_arglist): Likewise.
2078 (calc_f77_array_dims): Likewise.
2079 (fortran_value_subarray): Likewise.
2080 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2081 (operator_length_f): Likewise.
2082 (print_subexp_f): Likewise.
2083 (dump_subexp_body_f): Likewise.
2084 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2085 declaration of this operation to here.
2086 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2087 support moved to operator_length_f.
2088 * parser-defs.h (dump_subexp_body_funcall): Declare.
2089 (print_subexp_funcall): Declare.
2090 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2091 fortran-operator.def.
2092
2093 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2094
2095 * eval.c (fortran_value_subarray): New function, content is taken
2096 from...
2097 (evaluate_subexp_standard): ...here, in two places. Now arrays
2098 and strings both call the new function.
2099 (calc_f77_array_dims): Add header comment, handle strings.
2100
2101 2020-09-18 Victor Collod <vcollod@nvidia.com>
2102
2103 PR gdb/26635
2104 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2105 (i386_analyze_prologue): Call i386_skip_endbr.
2106
2107 2020-09-18 Tom Tromey <tromey@adacore.com>
2108
2109 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2110 (windows_nat_target::wait): Update.
2111 * target/wait.h (enum target_wait_flag): New. Use
2112 DEF_ENUM_FLAGS_TYPE.
2113 * target/target.h (target_wait): Change type of options.
2114 * target.h (target_options_to_string, default_target_wait):
2115 Update.
2116 (struct target_ops) <wait>: Change type of options.
2117 * target.c (target_wait, default_target_wait, do_option): Change
2118 type of "options".
2119 (target_options_to_string): Likewise.
2120 * target-delegates.c: Rebuild.
2121 * target-debug.h (target_debug_print_target_wait_flags): Rename
2122 from target_debug_print_options.
2123 * sol-thread.c (class sol_thread_target) <wait>: Update.
2124 (sol_thread_target::wait): Update.
2125 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2126 (rs6000_nat_target::wait): Update.
2127 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2128 Update.
2129 (remote_target::wait_ns, remote_target::wait_as): Change type of
2130 "options".
2131 (remote_target::wait): Update.
2132 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2133 (gdbsim_target::wait): Update.
2134 * record-full.c (class record_full_base_target) <wait>: Update.
2135 (record_full_wait_1): Change type of "options".
2136 (record_full_base_target::wait): Update.
2137 * record-btrace.c (class record_btrace_target) <wait>: Update.
2138 (record_btrace_target::wait): Update.
2139 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2140 Update.
2141 (ravenscar_thread_target::wait): Update.
2142 * procfs.c (class procfs_target) <wait>: Update.
2143 (procfs_target::wait): Update.
2144 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2145 * obsd-nat.c (obsd_nat_target::wait): Update.
2146 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2147 (nto_procfs_target::wait): Update.
2148 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2149 * nbsd-nat.c (nbsd_wait): Change type of "options".
2150 (nbsd_nat_target::wait): Update.
2151 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2152 (thread_db_target::wait): Update.
2153 * linux-nat.h (class linux_nat_target) <wait>: Update.
2154 * linux-nat.c (linux_nat_target::wait): Update.
2155 (linux_nat_wait_1): Update.
2156 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2157 "options".
2158 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2159 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2160 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2161 (go32_nat_target::wait): Update.
2162 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2163 * gnu-nat.c (gnu_nat_target::wait): Update.
2164 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2165 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2166 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2167 * darwin-nat.c (darwin_nat_target::wait): Update.
2168 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2169 (bsd_uthread_target::wait): Update.
2170 * aix-thread.c (class aix_thread_target) <wait>: Update.
2171 (aix_thread_target::wait): Update.
2172
2173 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2174
2175 * compile/compile-object-run.c (create_copied_type_recursive): New
2176 function.
2177 (compile_object_run): Use new function.
2178
2179 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2180
2181 * NEWS: Mention x86_64 Cygwin core file support.
2182
2183 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2184
2185 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2186 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2187
2188 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2189
2190 * windows-tdep.h: Add prototypes.
2191 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2192 (i386_windows_core_pid_to_str): Move and rename ...
2193 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2194 (windows_core_pid_to_str): ... and here.
2195 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2196
2197 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2198 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2199 (amd64_windows_init_abi_common): ... and register.
2200
2201 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2202
2203 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2204 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2205
2206 2020-09-18 Pedro Alves <pedro@palves.net>
2207
2208 PR gdb/26631
2209 * thread.c (thread_find_command): Switch inferior before calling
2210 target methods.
2211
2212 2020-09-17 Tom Tromey <tromey@adacore.com>
2213
2214 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2215 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2216 (tdesc_arch_data_up): New typedef.
2217 (tdesc_use_registers, tdesc_data_alloc): Update.
2218 (tdesc_data_cleanup): Don't declare.
2219 * target-descriptions.c (tdesc_data_alloc): Return a
2220 tdesc_arch_data_up.
2221 (tdesc_arch_data_deleter::operator()): Rename from
2222 tdesc_data_cleanup. Change argument type.
2223 (tdesc_use_registers): Change early_data to an rvalue reference.
2224 (tdesc_use_registers): Don't use delete.
2225 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2226 * s390-tdep.c (s390_gdbarch_init): Update.
2227 * rx-tdep.c (rx_gdbarch_init): Update.
2228 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2229 * riscv-tdep.c (riscv_gdbarch_init): Update.
2230 * or1k-tdep.c (or1k_gdbarch_init): Update.
2231 * nios2-tdep.c (nios2_gdbarch_init): Update.
2232 * nds32-tdep.c (nds32_gdbarch_init): Update.
2233 * mips-tdep.c (mips_gdbarch_init): Update.
2234 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2235 * m68k-tdep.c (m68k_gdbarch_init): Update.
2236 * i386-tdep.c (i386_gdbarch_init): Update.
2237 * arm-tdep.c (arm_gdbarch_init): Update.
2238 * arc-tdep.c (arc_tdesc_init): Update.
2239 (arc_gdbarch_init): Update.
2240 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2241
2242 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2243
2244 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2245 for WOW64 processes.
2246
2247 2020-09-17 Tom Tromey <tom@tromey.com>
2248
2249 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2250
2251 2020-09-17 Tom Tromey <tom@tromey.com>
2252
2253 * value.c (preserve_values): Update.
2254 * python/py-type.c (save_objfile_types): Update.
2255 * guile/scm-type.c (save_objfile_types): Update.
2256 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2257 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2258 * compile/compile-object-run.c (compile_object_run): Update.
2259
2260 2020-09-17 Tom Tromey <tom@tromey.com>
2261
2262 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2263 Remove.
2264 <m_table>: Now htab_up.
2265 * typeprint.c (typedef_hash_table::recursively_update)
2266 (typedef_hash_table::add_template_parameters)
2267 (typedef_hash_table::typedef_hash_table): Update.
2268 (typedef_hash_table::~typedef_hash_table): Remove.
2269 (typedef_hash_table::typedef_hash_table)
2270 (typedef_hash_table::find_global_typedef)
2271 (typedef_hash_table::find_typedef): Update.
2272
2273 2020-09-17 Tom Tromey <tom@tromey.com>
2274
2275 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2276
2277 2020-09-17 Tom Tromey <tom@tromey.com>
2278
2279 * linespec.c (class decode_compound_collector)
2280 <~decode_compound_collector>: Remove.
2281 <m_unique_syms>: Now htab_up.
2282 (decode_compound_collector::operator ()): Update.
2283 (class symtab_collector) <~symtab_collector>: Remove.
2284 <m_symtab_table>: Now htab_up.
2285 (symtab_collector::operator ()): Update.
2286
2287 2020-09-17 Tom Tromey <tom@tromey.com>
2288
2289 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2290 (filename_seen_cache::clear): Update.
2291 (~filename_seen_cache): Remove.
2292 (filename_seen_cache::seen): Update.
2293 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2294 htab_up.
2295 <~filename_seen_cache>: Remove.
2296 <traverse>: Update.
2297
2298 2020-09-17 Tom Tromey <tom@tromey.com>
2299
2300 * completer.c (completion_tracker::discard_completions)
2301 (completion_tracker::~completion_tracker)
2302 (completion_tracker::maybe_add_completion)
2303 (completion_tracker::remove_completion)
2304 (completion_tracker::recompute_lowest_common_denominator)
2305 (completion_tracker::build_completion_result): Update.
2306 * completer.h (class completion_tracker) <have_completions>:
2307 Update.
2308 <m_entries_hash>: Now htab_up.
2309
2310 2020-09-17 Tom Tromey <tom@tromey.com>
2311
2312 * breakpoint.c (ambiguous_names_p): Use htab_up.
2313
2314 2020-09-17 Tom Tromey <tom@tromey.com>
2315
2316 * auto-load.c (struct auto_load_pspace_info)
2317 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2318 <loaded_script_files, loaded_script_texts>: Change type to
2319 htab_up.
2320 (~auto_load_pspace_info) Remove.
2321 (init_loaded_scripts_info, maybe_add_script_file)
2322 (maybe_add_script_text, auto_load_info_scripts): Update.
2323
2324 2020-09-17 Tom Tromey <tromey@adacore.com>
2325
2326 * c-exp.y (name_obstack): Now static.
2327
2328 2020-09-17 Chungyi Chi <demonic@csie.io>
2329
2330 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2331
2332 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2333
2334 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2335 (add_solib_catchpoint): Likewise.
2336 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2337 to bool.
2338 (add_solib_catchpoint): Change int parameter/variable to bool.
2339 (catch_load_or_unload): Likewise.
2340 (init_catchpoint): Likewise.
2341 (create_fork_vfork_event_catchpoint): Likewise.
2342 (catch_fork_command_1): Likewise.
2343 (catch_exec_command_1): Likewise.
2344
2345 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2346
2347 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2348 Change instance_flags to m_instance_flags.
2349
2350 2020-09-16 Tom Tromey <tromey@adacore.com>
2351
2352 PR gdb/26598:
2353 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2354
2355 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2356
2357 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2358 PL_FLAG_EXEC.
2359 (fbsd_nat_target::insert_exec_catchpoint)
2360 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2361 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2362 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2363
2364 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2365
2366 * configure.ac: Remove check for kinfo_getvmmap().
2367 * configure, config.in: Regenerate.
2368 * fbsd-nat.c (fbsd_read_mapping): Remove
2369 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2370 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2371 kinfo_get_vmmap() are always present.
2372
2373 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2374
2375 * fbsd-nat.c: Always include support for
2376 TARGET_OBJECT_SIGNAL_INFO.
2377
2378 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2379
2380 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2381 sysctl and remove procfs fallback.
2382
2383 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2384
2385 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2386 * fbsd-nat.h: Likewise.
2387
2388 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2389
2390 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2391 argument.
2392
2393 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2394
2395 * ada-lang.c (ada_language_data): Delete.
2396 (ada_language): Remove references to ada_language_data.
2397 * c-lang.c (c_language_data): Delete.
2398 (c_language): Remove references to c_language_data.
2399 (cplus_language_data): Delete.
2400 (cplus_language): Remove references to cplus_language_data.
2401 (asm_language_data): Delete.
2402 (asm_language): Remove references to asm_language_data.
2403 (minimal_language_data): Delete.
2404 (minimal_language): Remove references to minimal_language_data.
2405 * d-lang.c (d_language_data): Delete.
2406 (d_language): Remove references to d_language_data.
2407 * f-lang.c (f_language_data): Delete.
2408 (f_language): Remove references to f_language_data.
2409 * go-lang.c (go_language_data): Delete.
2410 (go_language): Remove references to go_language_data.
2411 * language.c (unknown_language_data): Delete.
2412 (unknown_language): Remove references to unknown_language_data.
2413 (auto_language_data): Delete.
2414 (auto_language): Remove references to auto_language_data.
2415 * language.h (language_data): Delete struct.
2416 (language_defn): No longer inherit from language_data.
2417 * m2-lang.c (m2_language_data): Delete.
2418 (m2_language): Remove references to m2_language_data.
2419 * objc-lang.c (objc_language_data): Delete.
2420 (objc_language): Remove references to objc_language_data.
2421 * opencl-lang.c (opencl_language_data): Delete.
2422 (opencl_language): Remove references to opencl_language_data.
2423 * p-lang.c (pascal_language_data): Delete.
2424 (pascal_language): Remove references to pascal_language_data.
2425 * rust-lang.c (rust_language_data): Delete.
2426 (rust_language): Remove references to rust_language_data.
2427
2428 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2429
2430 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2431 initializer.
2432 (ada_language::opcode_print_table): New member function.
2433 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2434 (c_language::opcode_print_table): New member function.
2435 (cplus_language_data): Remove la_op_print_tab initializer.
2436 (cplus_language::opcode_print_table): New member function.
2437 (asm_language_data): Remove la_op_print_tab initializer.
2438 (asm_language::opcode_print_table): New member function.
2439 (minimal_language_data): Remove la_op_print_tab initializer.
2440 (minimal_language::opcode_print_table): New member function.
2441 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2442 (d_language::opcode_print_table): New member function.
2443 * expprint.c (print_subexp_standard): Update call to
2444 opcode_print_table.
2445 (op_string): Likewise.
2446 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2447 (f_language::opcode_print_table): New member function.
2448 * go-lang.c (go_language_data): Remove la_op_print_tab
2449 initializer.
2450 (go_language::opcode_print_table): New member function.
2451 * language.c (unknown_language_data): Remove la_op_print_tab
2452 initializer.
2453 (unknown_language::opcode_print_table): New member function.
2454 (auto_language_data): Remove la_op_print_tab initializer.
2455 (auto_language::opcode_print_table): New member function.
2456 * language.h (language_data): Remove la_op_print_tab field.
2457 (language_defn::opcode_print_table): Declare new member function.
2458 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2459 initializer.
2460 (m2_language::opcode_print_table): New member function.
2461 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2462 initializer.
2463 (objc_language::opcode_print_table): New member function.
2464 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2465 initializer.
2466 (opencl_language::opcode_print_table): New member function.
2467 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2468 initializer.
2469 (pascal_language::opcode_print_table): New member function.
2470 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2471 initializer.
2472 (rust_language::opcode_print_table): New member function.
2473
2474 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2475
2476 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2477 (ada_language::expression_ops): New member function.
2478 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2479 (c_language::expression_ops): New member function.
2480 (cplus_language_data): Remove la_exp_desc initializer.
2481 (cplus_language::expression_ops): New member function.
2482 (asm_language_data): Remove la_exp_desc initializer.
2483 (asm_language::expression_ops): New member function.
2484 (minimal_language_data): Remove la_exp_desc initializer.
2485 (minimal_language::expression_ops): New member function.
2486 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2487 (d_language::expression_ops): New member function.
2488 * eval.c (evaluate_subexp): Update call to expression_ops.
2489 * expprint.c (print_subexp): Likewise.
2490 (op_name): Likewise.
2491 (dump_subexp_body): Likewise.
2492 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2493 (f_language::expression_ops): New member function.
2494 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2495 (go_language::expression_ops): New member function.
2496 * language.c (language_defn::expression_ops): New function.
2497 (unknown_language_data): Remove la_exp_desc initializer.
2498 (auto_language_data): Likewise.
2499 * language.h (language_data): Remove la_exp_desc field.
2500 (language_defn::expression_ops): Declare new member function.
2501 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2502 (m2_language::expression_ops): New member function.
2503 * objc-lang.c (objc_language_data): Remove la_exp_desc
2504 initializer.
2505 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2506 initializer.
2507 (opencl_language::expression_ops): New member function.
2508 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2509 * parse.c (operator_length): Update call to expression_ops.
2510 (exp_iterate): Likewise.
2511 * rust-lang.c (rust_language_data): Remove la_exp_desc
2512 initializer.
2513 (ruse_language::expression_ops): New member function.
2514
2515 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2516
2517 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2518 initializer.
2519 (ada_language::varobj_ops): New member function.
2520 * c-lang.c (c_language_data): Remove la_varobj_ops
2521 initializer.
2522 (cplus_language_data): Likewise.
2523 (cplus_language::varobj_ops): New member function.
2524 (asm_language_data): Remove la_varobj_ops initializer.
2525 (minimal_language_data): Likewise.
2526 * d-lang.c (d_language_data): Likewise.
2527 * f-lang.c (f_language_data): Likewise.
2528 * go-lang.c (go_language_data): Likewise.
2529 * language.c (language_defn::varobj_ops): New function.
2530 (unknown_language_data): Remove la_varobj_ops
2531 initializer.
2532 (auto_language_data): Likewise.
2533 * language.h (language_data): Remove la_varobj_ops field.
2534 (language_defn::varobj_ops): Declare new member function.
2535 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2536 * objc-lang.c (objc_language_data): Likewise.
2537 * opencl-lang.c (opencl_language_data): Likewise.
2538 * p-lang.c (pascal_language_data): Likewise.
2539 * rust-lang.c (rust_language_data): Likewise.
2540 * varobj.c (varobj_create): Update call to varobj_ops.
2541 * varobj.h (default_varobj_ops): Delete define.
2542
2543 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2544
2545 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2546 initializer.
2547 * c-lang.c (c_language_data): Likewise.
2548 (c_language::macro_expansion): New member function.
2549 (cplus_language_data): Likewise.
2550 (cplus_language::macro_expansion): New member function.
2551 (asm_language_data): Likewise.
2552 (asm_language::macro_expansion): New member function.
2553 (minimal_language_data): Likewise.
2554 (minimal_language::macro_expansion): New member function.
2555 * d-lang.c (d_language_data): Remove la_macro_expansion
2556 initializer.
2557 * f-lang.c (f_language_data): Likewise.
2558 * go-lang.c (go_language_data): Likewise.
2559 * language.c (unknown_language_data): Likewise.
2560 (auto_language_data): Likewise.
2561 * language.h (language_data): Remove la_macro_expansion field.
2562 (language_defn::macro_expansion): New member function.
2563 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2564 initializer.
2565 * objc-lang.c (objc_language_data): Likewise.
2566 (objc_language::macro_expansion): New member function.
2567 * opencl-lang.c (opencl_language_data): Likewise.
2568 (opencl_language::macro_expansion): New member function.
2569 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2570 initializer.
2571 * rust-lang.c (rust_language_data): Likewise.
2572 * symtab.c (default_collect_symbol_completion_matches_break_on):
2573 Update call to macro_expansion.
2574
2575 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2576
2577 * ada-lang.c (ada_language_data): Remove la_array_ordering
2578 initializer.
2579 * c-lang.c (c_language_data): Likewise.
2580 (cplus_language_data): Likewise.
2581 (asm_language_data): Likewise.
2582 (minimal_language_data): Likewise.
2583 * d-lang.c (d_language_data): Likewise.
2584 * dwarf2/read.c (read_array_order): Update for call to
2585 array_ordering.
2586 * f-lang.c (f_language_data): Remove la_array_ordering
2587 initializer.
2588 (f_language::array_ordering): New member function.
2589 * go-lang.c (go_language_data): Remove la_array_ordering
2590 initializer.
2591 * language.c (unknown_language_data): Likewise.
2592 (auto_language_data): Likewise.
2593 * language.h (language_data): Delete la_array_ordering field.
2594 (language_defn::array_ordering): New member function.
2595 * m2-lang.c (m2_language_data): Remove la_array_ordering
2596 initializer.
2597 * objc-lang.c (objc_language_data): Likewise.
2598 * opencl-lang.c (opencl_language_data): Likewise.
2599 * p-lang.c (pascal_language_data): Likewise.
2600 * rust-lang.c (rust_language_data): Likewise.
2601
2602 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2603
2604 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2605 initializer.
2606 * c-lang.c (c_language_data): Likewise.
2607 (cplus_language_data): Likewise.
2608 (asm_language_data): Likewise.
2609 (minimal_language_data): Likewise.
2610 * d-lang.c (d_language_data): Likewise.
2611 * f-lang.c (f_language_data): Likewise.
2612 (f_language::case_sensitivity): New member function.
2613 * go-lang.c (go_language_data): Remove la_case_sensitivity
2614 initializer.
2615 * language.c (enum case_mode): Moved here from language.h.
2616 (case_mode): Make static.
2617 (show_case_command): Update for case_sensitivity being a method.
2618 (set_case_command): Likewise.
2619 (set_range_case): Likewise.
2620 (unknown_language_data): Remove la_case_sensitivity initializer.
2621 (auto_language_data): Likewise.
2622 * language.h (case_mode): Delete, move enum declaration to
2623 language.c.
2624 (language_data): Delete la_case_sensitivity field.
2625 (language_defn::case_sensitivity): New member function.
2626 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2627 initializer.
2628 * objc-lang.c (objc_language_data): Likewise.
2629 * opencl-lang.c (opencl_language_data): Likewise.
2630 * p-lang.c (pascal_language_data): Likewise.
2631 * rust-lang.c (rust_language_data): Likewise.
2632
2633 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2634
2635 * ada-lang.c (ada_language_data): Remove la_range_check
2636 initializer.
2637 * c-lang.c (c_language_data): Likewise.
2638 (cplus_language_data): Likewise.
2639 (asm_language_data): Likewise.
2640 (minimal_language_data): Likewise.
2641 * d-lang.c (d_language_data): Likewise.
2642 * f-lang.c (f_language_data): Likewise.
2643 (f_language::range_checking_on_by_default): New member function.
2644 * go-lang.c (go_language_data): Remove la_range_check initializer.
2645 * language.c (enum range_mode): Moved here from language.h.
2646 (range_mode): Made static.
2647 (show_range_command): Update to use
2648 range_checking_on_by_default.
2649 (set_range_command): Likewise.
2650 (set_range_case): Likewise.
2651 (unknown_language_data): Remove la_range_check initializer.
2652 (auto_language_data): Likewise.
2653 * language.h (range_mode): Delete. Enum definition moved to
2654 language.c.
2655 (language_data): Remove la_range_check field.
2656 (language_defn::range_checking_on_by_default): New member
2657 function.
2658 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2659 (m2_language::range_checking_on_by_default): New member function.
2660 * objc-lang.c (objc_language_data): Remove la_range_check
2661 initializer.
2662 * opencl-lang.c (opencl_language_data): Likewise.
2663 * p-lang.c (pascal_language_data): Likewise.
2664 (pascal_language::range_checking_on_by_default): New member
2665 function.
2666 * rust-lang.c (rust_language_data): Remove la_range_check
2667 initializer.
2668 (rust_language::range_checking_on_by_default): New member
2669 function.
2670
2671 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2672
2673 * dwarf2/read.c (dwarf2_physname): Remove special case for
2674 language_go.
2675 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2676 member function.
2677
2678 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2679
2680 * ada-lang.c (ada_language_data): Remove
2681 la_store_sym_names_in_linkage_form_p initializer.
2682 (ada_language::store_sym_names_in_linkage_form_p): New member
2683 function.
2684 * c-lang.c (c_language_data): Remove
2685 la_store_sym_names_in_linkage_form_p initializer.
2686 (c_language::store_sym_names_in_linkage_form_p): New member
2687 function.
2688 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2689 initializer.
2690 (asm_language_data): Likewise.
2691 (asm_language::store_sym_names_in_linkage_form_p): New member
2692 function.
2693 (minimal_language_data): Remove
2694 la_store_sym_names_in_linkage_form_p initializer.
2695 (minimal_language::store_sym_names_in_linkage_form_p): New member
2696 function.
2697 * d-lang.c (d_language_data): Remove
2698 la_store_sym_names_in_linkage_form_p initializer.
2699 * dwarf2/read.c (dwarf2_physname): Update call to
2700 store_sym_names_in_linkage_form_p.
2701 * f-lang.c (f_language_data): Remove
2702 la_store_sym_names_in_linkage_form_p initializer.
2703 * go-lang.c (go_language_data): Remove
2704 la_store_sym_names_in_linkage_form_p initializer.
2705 * language.c (unknown_language_data): Remove
2706 la_store_sym_names_in_linkage_form_p initializer.
2707 (unknown_language::store_sym_names_in_linkage_form_p): New member
2708 function.
2709 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2710 initializer.
2711 (auto_language::store_sym_names_in_linkage_form_p): New member
2712 function.
2713 * language.h (language_data): Remove
2714 la_store_sym_names_in_linkage_form_p member variable.
2715 (language_defn::store_sym_names_in_linkage_form_p): New member
2716 function.
2717 * m2-lang.c (m2_language_data): Remove
2718 la_store_sym_names_in_linkage_form_p initializer.
2719 * objc-lang.c (objc_language_data): Likewise.
2720 * opencl-lang.c (opencl_language_data): Likewise.
2721 * p-lang.c (pascal_language_data): Likewise.
2722 * rust-lang.c (rust_language_data): Likewise.
2723
2724 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2725
2726 * ada-lang.c (ada_language_data): Remove string_lower_bound
2727 initializer.
2728 * c-lang.c (c_language_data): Likewise.
2729 (cplus_language_data): Likewise.
2730 (asm_language_data): Likewise.
2731 (minimal_language_data): Likewise.
2732 * d-lang.c (d_language_data): Likewise.
2733 * f-lang.c (f_language_data): Likewise.
2734 * go-lang.c (go_language_data): Likewise.
2735 * language.c (unknown_language_data): Likewise.
2736 (auto_language_data): Likewise.
2737 * language.h (language_data): Remove string_lower_bound field.
2738 (language_defn::string_lower_bound): New member function.
2739 * m2-lang.c (m2_language_data): Remove string_lower_bound
2740 initializer.
2741 (m2_language::string_lower_bound): New member function.
2742 * objc-lang.c (objc_language_data): Remove string_lower_bound
2743 initializer.
2744 * opencl-lang.c (opencl_language_data): Likewise.
2745 * p-lang.c (pascal_language_data): Likewise.
2746 * rust-lang.c (rust_language_data): Likewise.
2747 * valops.c (value_cstring): Update call to string_lower_bound.
2748 (value_string): Likewise.
2749 * value.c (allocate_repeated_value): Likewise.
2750
2751 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2752
2753 * valops.c (value_repeat): Fix incorrect argument name in comment.
2754
2755 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2756
2757 * ada-lang.c (ada_language_data): Remove c_style_arrays
2758 initializer.
2759 (ada_language::c_style_arrays_p): New member fuction.
2760 * c-lang.c (c_language_data): Remove c_style_arrays
2761 initializer.
2762 (cplus_language_data): Likewise.
2763 (asm_language_data): Likewise.
2764 (minimal_language_data): Likewise.
2765 * d-lang.c (d_language_data): Likewise.
2766 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2767 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2768 (f_language::c_style_arrays_p): New member function.
2769 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2770 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2771 * language.c (unknown_language_data): Remove c_style_arrays
2772 initializer.
2773 (auto_language_data): Likewise.
2774 * language.h (language_data): Remove c_style_arrays field.
2775 (language_defn::c_style_arrays_p): New member function.
2776 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2777 (m2_language::c_style_arrays_p): New member function.
2778 * objc-lang.c (objc_language_data): Remove c_style_arrays
2779 initializer.
2780 * opencl-lang.c (opencl_language_data): Likewise.
2781 * p-lang.c (pascal_language_data): Likewise.
2782 * rust-lang.c (rust_language_data): Likewise.
2783 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2784 and update local variable to a bool.
2785 * valops.c (value_cast): Update call to c_style_arrays_p.
2786 (value_array): Likewise.
2787 * value.c (coerce_array): Likewise.
2788
2789 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2790
2791 * ada-lang.c (ada_language_data): Remove la_language initializer.
2792 * c-lang.c (c_language_data): Likewise.
2793 (cplus_language_data): Likewise.
2794 (asm_language_data): Likewise.
2795 (minimal_language_data): Likewise.
2796 * d-lang.c (d_language_data): Likewise.
2797 * f-lang.c (f_language_data): Likewise.
2798 * go-lang.c (go_language_data): Likewise.
2799 * language.c (unknown_language_data): Likewise.
2800 (auto_language_data): Likewise.
2801 * language.h (language_data): Remove la_language field.
2802 (language_defn::language_defn): Initialise la_language field.
2803 (language_defn::la_language): New member variable.
2804 * m2-lang.c (m2_language_data): Remove la_language field.
2805 * objc-lang.c (objc_language_data): Likewise.
2806 * opencl-lang.c (opencl_language_data): Likewise.
2807 * p-lang.c (pascal_language_data): Likewise.
2808 * rust-lang.c (rust_language_data): Likewise.
2809
2810 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2811
2812 * ada-lang.c (ada_extensions): Delete, moved into
2813 ada_language::filename_extensions.
2814 (ada_language_data): Remove la_filename_extensions initializer.
2815 (ada_language::filename_extensions): New member function.
2816 * c-lang.c (c_extensions): Delete, moved into
2817 c_language::filename_extensions.
2818 (c_language_data): Remove la_filename_extensions initializer.
2819 (c_language::filename_extensions): New member function.
2820 (cplus_extensions): Delete, moved into
2821 cplus_language::filename_extensions.
2822 (cplus_language_data): Remove la_filename_extensions initializer.
2823 (cplus_language::filename_extensions): New member function.
2824 (asm_extensions): Delete, moved into
2825 asm_language::filename_extensions.
2826 (asm_language_data): Remove la_filename_extensions initializer.
2827 (asm_language::filename_extensions): New member function.
2828 (minimal_language_data): Remove la_filename_extensions
2829 initializer.
2830 * d-lang.c (d_extensions): Delete, moved into
2831 d_language::filename_extensions.
2832 (d_language_data): Remove la_filename_extensions initializer.
2833 (d_language::filename_extensions): New member function.
2834 * f-lang.c (f_extensions): Delete, moved into
2835 f_language::filename_extensions.
2836 (f_language_data): Remove la_filename_extensions initializer.
2837 (f_language::filename_extensions): New member function.
2838 * go-lang.c (go_language_data): Remove la_filename_extensions
2839 initializer.
2840 * language.c (add_set_language_command): Update now that
2841 filename_extensions returns a vector.
2842 (unknown_language_data): Remove la_filename_extensions
2843 initializer.
2844 (auto_language_data): Likewise.
2845 * language.h (language_data): Remove la_filename_extensions field.
2846 (language_defn::filename_extensions): New member function.
2847 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2848 initializer.
2849 * objc-lang.c (objc_extensions): Delete, moved into
2850 objc_language::filename_extensions.
2851 (objc_language_data): Remove la_filename_extensions initializer.
2852 (objc_language::filename_extensions): New member function.
2853 * opencl-lang.c (opencl_language_data): Remove
2854 la_filename_extensions initializer.
2855 * p-lang.c (pascal_extensions): Delete, moved into
2856 pascal_language::filename_extensions.
2857 (pascal_language_data): Remove la_filename_extensions initializer.
2858 (pascal_language::filename_extensions): New member function.
2859 * rust-lang.c (rust_extensions): Delete, moved into
2860 rust_language::filename_extensions.
2861 (rust_language_data): Remove la_filename_extensions initializer.
2862 (rust_language::filename_extensions): New member function.
2863 * symfile.c (add_filename_language): Add new assert.
2864
2865 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2866
2867 * ada-lang.c (ada_language_data): Remove la_name and
2868 la_natural_name initializers.
2869 (ada_language::name): New member function.
2870 (ada_language::natural_name): New member function.
2871 * c-lang.c (c_language_data): Remove la_name and
2872 la_natural_name initializers.
2873 (c_language::name): New member function.
2874 (c_language::natural_name): New member function.
2875 (cplus_language_data): Remove la_name and
2876 la_natural_name initializers.
2877 (cplus_language::name): New member function.
2878 (cplus_language::natural_name): New member function.
2879 (asm_language_data): Remove la_name and
2880 la_natural_name initializers.
2881 (asm_language::name): New member function.
2882 (asm_language::natural_name): New member function.
2883 (minimal_language_data): Remove la_name and
2884 la_natural_name initializers.
2885 (minimal_language::name): New member function.
2886 (minimal_language::natural_name): New member function.
2887 * compile/compile.c (compile_to_object): Update call to
2888 lanugage_defn::name.
2889 * d-lang.c (d_language_data): Remove la_name and
2890 la_natural_name initializers.
2891 (d_language::name): New member function.
2892 (d_language::natural_name): New member function.
2893 * expprint.c (print_subexp_standard): Update call to
2894 language_defn::name.
2895 (dump_raw_expression): Likewise
2896 (dump_prefix_expression): Likewise.
2897 * f-lang.c (f_language_data): Remove la_name and
2898 la_natural_name initializers.
2899 (f_language::name): New member function.
2900 (f_language::natural_name): New member function.
2901 * go-lang.c (go_language_data): Remove la_name and
2902 la_natural_name initializers.
2903 (go_language::name): New member function.
2904 (go_language::natural_name): New member function.
2905 * language.c (show_language_command): Update call to
2906 language_defn::name.
2907 (set_language_command): Likewise.
2908 (language_enum): Likewise.
2909 (language_str): Likewise.
2910 (add_set_language_command): Likewise, use
2911 language_defn::natural_name in the doc string.
2912 (unknown_language_data): Remove la_name and
2913 la_natural_name initializers.
2914 (unknown_language::name): New member function.
2915 (unknown_language::natural_name): New member function.
2916 (auto_language_data): Remove la_name and
2917 la_natural_name initializers.
2918 (auto_language::name): New member function.
2919 (auto_language::natural_name): New member function.
2920 (language_lookup_primitive_type_as_symbol): Update call to
2921 language_defn::name.
2922 * language.h (language_data): Remove la_name and la_natural_name
2923 member variables.
2924 (language_defn::name): New member function.
2925 (language_defn::natural_name): New member function.
2926 * m2-lang.c (m2_language_data): Remove la_name and
2927 la_natural_name initializers.
2928 (m2_language::name): New member function.
2929 (m2_language::natural_name): New member function.
2930 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2931 language_defn::natural_name.
2932 * objc-lang.c (objc_language_data): Remove la_name and
2933 la_natural_name initializers.
2934 (objc_language::name): New member function.
2935 (objc_language::natural_name): New member function.
2936 * opencl-lang.c (opencl_language_data): Remove la_name and
2937 la_natural_name initializers.
2938 (opencl_language::name): New member function.
2939 (opencl_language::natural_name): New member function.
2940 * p-lang.c (pascal_language_data): Remove la_name and
2941 la_natural_name initializers.
2942 (pascal_language::name): New member function.
2943 (pascal_language::natural_name): New member function.
2944 * rust-lang.c (rust_language_data): Remove la_name and
2945 la_natural_name initializers.
2946 (rust_language::name): New member function.
2947 (rust_language::natural_name): New member function.
2948 * symtab.c (lookup_language_this): Update call to
2949 language_defn::name.
2950
2951 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2952
2953 * ada-lang.c (ada_language_data): Remove la_name_of_this
2954 initializer.
2955 * ax-gdb.c (gen_expr): Update call to name_of_this.
2956 * c-exp.y (classify_name): Likewise.
2957 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2958 (cplus_language_data): Likewise.
2959 (cplus_language::name_of_this): New member function.
2960 (asm_language_data): Remove la_name_of_this initializer.
2961 (minimal_language_data): Likewise.
2962 * d-lang.c (d_language_data): Likewise.
2963 (d_language::name_of_this): New member function.
2964 * expprint.c (print_subexp_standard): Update call to name_of_this.
2965 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2966 * go-lang.c (go_language_data): Likewise.
2967 * language.c (unknown_language_data): Likewise.
2968 (unknown_language::name_of_this): New member function.
2969 (auto_language_data): Remove la_name_of_this initializer.
2970 (auto_language::name_of_this): New member function.
2971 * language.h (language_data): Delete la_name_of_this member
2972 variable.
2973 (language_defn::name_of_this): New member function.
2974 * m2-lang.c (m2_language_data): Remove la_name_of_this
2975 initializer.
2976 * objc-lang.c (objc_language_data): Likewise.
2977 (objc_language::name_of_this): New member function.
2978 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2979 initializer.
2980 * p-lang.c (pascal_language_data): Likewise.
2981 (pascal_language::name_of_this): New member function.
2982 * rust-lang.c (rust_language_data): Remove la_name_of_this
2983 initializer.
2984 * symtab.c (lookup_language_this): Update call to name_of_this.
2985 (lookup_symbol_aux): Likewise.
2986 * valops.c (value_of_this): Likewise.
2987
2988 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2989
2990 * ada-lang.c (ada_language_data): Remove
2991 la_struct_too_deep_ellipsis initializer.
2992 (ada_language::struct_too_deep_ellipsis): New member function.
2993 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2994 initializer.
2995 (cplus_language_data): Likewise.
2996 (asm_language_data): Likewise.
2997 (minimal_language_data): Likewise.
2998 * cp-valprint.c (cp_print_value): Update call to
2999 struct_too_deep_ellipsis.
3000 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3001 initializer.
3002 * f-lang.c (f_language_data): Likewise.
3003 (f_language::struct_too_deep_ellipsis): New member function.
3004 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3005 initializer.
3006 * language.c (unknown_language_data): Likewise.
3007 (auto_language_data): Likewise.
3008 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3009 member variable.
3010 (language_defn::struct_too_deep_ellipsis): New member function.
3011 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3012 initializer.Q
3013 * objc-lang.c (objc_language_data): Likewise.
3014 * opencl-lang.c (opencl_language_data): Likewise.
3015 * p-lang.c (pascal_language_data): Likewise.
3016 * rust-lang.c (rust_language_data): Likewise.
3017 * valprint.c (val_print_check_max_depth): Update call to
3018 struct_too_deep_ellipsis.
3019
3020 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3021
3022 * MAINTAINERS (Write After Approval): Add myself.
3023
3024 2020-09-15 Tom Tromey <tom@tromey.com>
3025
3026 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3027 Remove.
3028
3029 2020-09-15 Tom Tromey <tom@tromey.com>
3030
3031 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3032 and TYPE_CODE_METHODPTR cases.
3033 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3034 (c_value_print_inner): Update.
3035 * valprint.c (generic_value_print_memberptr): New function, from
3036 c_value_print_memberptr.
3037 (generic_value_print): Use it. Call cplus_print_method_ptr.
3038
3039 2020-09-15 Tom Tromey <tromey@adacore.com>
3040
3041 * python/python-internal.h (PyInt_FromLong): Remove define.
3042 * python/py-value.c (convert_value_from_python): Use
3043 gdb_py_object_from_longest.
3044 * python/py-type.c (typy_get_code): Use
3045 gdb_py_object_from_longest.
3046 * python/py-symtab.c (salpy_get_line): Use
3047 gdb_py_object_from_longest.
3048 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3049 gdb_py_object_from_longest.
3050 * python/py-record.c (recpy_gap_reason_code): Use
3051 gdb_py_object_from_longest.
3052 * python/py-record-btrace.c (recpy_bt_insn_size)
3053 (recpy_bt_func_level, btpy_list_count): Use
3054 gdb_py_object_from_longest.
3055 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3056 gdb_py_object_from_longest. Fix error handling.
3057 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3058 gdb_py_object_from_longest.
3059 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3060 gdb_py_object_from_longest.
3061 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3062 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3063 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3064
3065 2020-09-15 Tom Tromey <tromey@adacore.com>
3066
3067 * python/python.c (gdbpy_parameter_value): Use
3068 gdb_py_object_from_ulongest.
3069
3070 2020-09-15 Tom Tromey <tromey@adacore.com>
3071
3072 * python/py-infevents.c (create_register_changed_event_object):
3073 Use gdb_py_object_from_longest.
3074 * python/py-exitedevent.c (create_exited_event_object): Use
3075 gdb_py_object_from_longest.
3076
3077 2020-09-15 Tom Tromey <tromey@adacore.com>
3078
3079 * python/python.c (gdbpy_parameter_value): Use
3080 gdb_py_object_from_longest.
3081 * python/py-type.c (convert_field, typy_range): Use
3082 gdb_py_object_from_longest.
3083 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3084 gdb_py_object_from_longest.
3085 * python/py-lazy-string.c (stpy_get_length): Use
3086 gdb_py_object_from_longest.
3087 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3088 gdb_py_object_from_longest.
3089 * python/py-infevents.c (create_memory_changed_event_object): Use
3090 gdb_py_object_from_longest.
3091 * python/py-inferior.c (infpy_get_num): Use
3092 gdb_py_object_from_longest.
3093 (infpy_get_pid): Likewise.
3094
3095 2020-09-15 Tom Tromey <tromey@adacore.com>
3096
3097 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3098 defines.
3099 * python/py-value.c (valpy_long): Use
3100 gdb_py_object_from_ulongest.
3101 * python/py-symtab.c (salpy_get_pc): Use
3102 gdb_py_object_from_ulongest.
3103 (salpy_get_last): Likewise.
3104 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3105 gdb_py_object_from_ulongest.
3106 * python/py-lazy-string.c (stpy_get_address): Use
3107 gdb_py_object_from_ulongest.
3108 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3109 * python/py-arch.c (archpy_disassemble): Use
3110 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3111 error handling.
3112
3113 2020-09-15 Tom Tromey <tromey@adacore.com>
3114
3115 * python/python-internal.h (gdb_py_long_from_longest): Remove
3116 defines.
3117 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3118 * python/py-type.c (convert_field, typy_get_sizeof): Use
3119 gdb_py_object_from_longest.
3120 * python/py-record-btrace.c (btpy_list_index): Use
3121 gdb_py_object_from_longest.
3122
3123 2020-09-15 Tom Tromey <tromey@adacore.com>
3124
3125 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3126 * python/py-record.c (recpy_element_number): Use
3127 gdb_py_object_from_longest.
3128 (recpy_gap_number): Likewise.
3129
3130 2020-09-15 Tom Tromey <tromey@adacore.com>
3131
3132 * top.c (ui::ui): Update.
3133 (highest_ui_num): Remove.
3134 * top.h (struct ui) <num>: Remove.
3135
3136 2020-09-15 Tom Tromey <tromey@adacore.com>
3137
3138 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3139 * ui-style.c (ansi_regex_text): Now array.
3140 * rust-exp.y (number_regex_text): Now array.
3141 * linespec.c (linespec_quote_characters): Now array.
3142 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3143 Now arrays.
3144
3145 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3146
3147 * debuginfod-support.c (debuginfod_client_deleter): New.
3148 (debuginfod_client_up): New.
3149 (debuginfod_init): Return debuginfod_client_up.
3150 (debuginfod_source_query): Adjust.
3151 (debuginfod_debuginfo_query): Adjust.
3152
3153 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3154
3155 * debuginfod-support.c (debuginfod_source_query): Use
3156 make_unique_xstrdup.
3157
3158 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3159
3160 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3161 with `type::instance_flags`.
3162
3163 2020-09-14 Michael Mullin <masmullin@gmail.com>
3164
3165 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3166 Remove baton parameter.
3167
3168 2020-09-14 Pedro Alves <pedro@palves.net>
3169
3170 * Makefile.in (SELFTESTS_SRCS): Add
3171 unittests/enum-flags-selftests.c.
3172 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3173 btrace_function_flags instead of enum btrace_function_flag.
3174 * compile/compile-c-types.c (convert_qualified): Use
3175 enum_flags::raw.
3176 * compile/compile-cplus-symbols.c (convert_one_symbol)
3177 (convert_symbol_bmsym):
3178 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3179 (compile_cplus_convert_struct_or_union_methods)
3180 (compile_cplus_instance::convert_qualified_base):
3181 * go-exp.y (parse_string_or_char): Add cast to int.
3182 * unittests/enum-flags-selftests.c: New file.
3183 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3184 type to btrace_thread_flags from btrace_thread_flag.
3185 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3186 local's type to btrace_thread_flags from btrace_thread_flag. Add
3187 cast in DEBUG call.
3188
3189 2020-09-14 Pedro Alves <pedro@palves.net>
3190
3191 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3192 * gdbtypes.c (address_space_name_to_int): Rename to ...
3193 (address_space_name_to_type_instance_flags): ... this.
3194 (address_space_int_to_name): Rename to ...
3195 (address_space_type_instance_flags_to_name): ... this.
3196 * gdbtypes.h (address_space_name_to_int): Rename to ...
3197 (address_space_name_to_type_instance_flags): ... this.
3198 (address_space_int_to_name): Rename to ...
3199 (address_space_type_instance_flags_to_name): ... this.
3200 * type-stack.c (type_stack::insert): Adjust to rename.
3201 * type-stack.h (type_stack::insert): Likewise.
3202
3203 2020-09-14 Pedro Alves <pedro@palves.net>
3204 Andrew Burgess <andrew.burgess@embecosm.com>
3205
3206 * avr-tdep.c (avr_address_class_type_flags): Return
3207 type_instance_flags.
3208 (avr_address_class_type_flags_to_name): Take a
3209 type_instance_flags.
3210 (avr_address_class_name_to_type_flags): Return bool and take a
3211 type_instance_flags.
3212 * d-lang.c (build_d_types): Use type::set_instance_flags.
3213 * ft32-tdep.c (ft32_address_class_type_flags): Return
3214 type_instance_flags.
3215 (ft32_address_class_type_flags_to_name): Take a
3216 type_instance_flags.
3217 (ft32_address_class_name_to_type_flags): Return bool and take a
3218 type_instance_flags.
3219 (ft32_gdbarch_init): Use type::set_instance_flags.
3220 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3221 * gdbarch.h, gdbarch.c: Regenerate.
3222 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3223 (address_class_name_to_type_flags): Use type_instance_flags and
3224 bool.
3225 * gdbtypes.c (address_space_name_to_int)
3226 (address_space_int_to_name, make_qualified_type): Use
3227 type_instance_flags.
3228 (make_qualified_type): Use type_instance_flags and
3229 type::set_instance_flags.
3230 (make_type_with_address_space, make_cv_type, make_vector_type)
3231 (check_typedef): Use type_instance_flags.
3232 (recursive_dump_type): Cast type_instance_flags to unsigned for
3233 printing.
3234 (copy_type_recursive): Use type::set_instance_flags.
3235 (gdbtypes_post_init): Use type::set_instance_flags.
3236 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3237 <m_instance_flags>: ... this.
3238 <instance_flags, set_instance_flags>: New methods.
3239 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3240 (SET_TYPE_INSTANCE_FLAGS): New.
3241 (address_space_name_to_int, address_space_int_to_name)
3242 (make_type_with_address_space): Pass flags using
3243 type_instance_flags instead of int.
3244 * stabsread.c (cleanup_undefined_types_noname): Use
3245 type::set_instance_flags.
3246 * s390-tdep.c (s390_address_class_type_flags): Return
3247 type_instance_flags.
3248 (s390_address_class_type_flags_to_name): Take a
3249 type_instance_flags.
3250 (s390_address_class_name_to_type_flags): Return bool and take a
3251 type_instance_flags.
3252 * type-stack.c (type_stack::follow_types): Use
3253 type_instance_flags.
3254 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3255
3256 2020-09-14 Tom Tromey <tromey@adacore.com>
3257
3258 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3259 * x86-tdep.c (x86_is_thunk_register_name)
3260 (x86_in_indirect_branch_thunk): Update.
3261 * sparc64-tdep.c (sparc64_fpu_register_names)
3262 (sparc64_cp0_register_names, sparc64_register_names)
3263 (sparc64_pseudo_register_names): Now const.
3264 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3265 cp0_registers_num>: Now const.
3266 * sparc-tdep.c (sparc_core_register_names)
3267 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3268 (sparc32_pseudo_register_names): Now const.
3269 (validate_tdesc_registers): Update.
3270 * rust-lang.c (rust_extensions): Now const.
3271 * p-lang.c (p_extensions): Now const.
3272 * objc-lang.c (objc_extensions): Now const.
3273 * nto-tdep.c (nto_thread_state_str): Now const.
3274 * moxie-tdep.c (moxie_register_names): Now const.
3275 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3276 Now const.
3277 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3278 (mips_linux_reg_names): Now const.
3279 (mips_gdbarch_init): Update.
3280 * microblaze-tdep.c (microblaze_register_names): Now const.
3281 * m68k-tdep.c (m68k_register_names): Now const.
3282 * m32r-tdep.c (m32r_register_names): Now const.
3283 * ia64-tdep.c (ia64_register_names): Now const.
3284 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3285 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3286 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3287 ymm_avx512_register_names, pkeys_register_names>: Now const.
3288 * i386-tdep.c (i386_register_names, i386_zmm_names)
3289 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3290 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3291 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3292 * f-lang.c (f_extensions): Now const.
3293 * d-lang.c (d_extensions): Now const.
3294 * csky-tdep.c (csky_register_names): Now const.
3295 * charset.c (default_charset_names, charset_enum): Now const.
3296 (_initialize_charset): Update.
3297 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3298 const.
3299 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3300 (bsd_uthread_solib_loaded): Update.
3301 (bsd_uthread_state): Now const.
3302 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3303 (amd64_ymm_avx512_names, amd64_ymmh_names)
3304 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3305 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3306 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3307 (amd64_dword_names): Now const.
3308 * agent.c (can_use_agent_enum): Now const.
3309 * ada-tasks.c (task_states, long_task_states): Now const.
3310 * ada-lang.c (known_runtime_file_name_patterns)
3311 (known_auxiliary_function_name_patterns, attribute_names)
3312 (standard_exc, ada_extensions): Now const.
3313
3314 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3315
3316 * bcache.h (struct bcache) <bcache>: Remove constructor.
3317 <m_hash_function, m_compare_function>: Remove.
3318 <~bcache>: Make virtual.
3319 <compare>: Remove static method, introduce virtual method.
3320 <default_hash>: Remove.
3321 <hash>: New virtual method.
3322 * bcache.c (bcache::expand_hash_table): Update.
3323 (bcache::insert): Update.
3324 (bcache::hash): New.
3325 (bcache::compare): Update comment and parameter names.
3326 * gdbtypes.c (types_deeply_equal): Update.
3327 * psymtab.h (struct psymbol_bcache): New struct.
3328 (class psymtab_storage) <psymtab_storage>: Make default.
3329 <psymbol_cache>: Change type to psymbol_bcache.
3330 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3331 (psymbol_hash): Change to...
3332 (psymbol_bcache::hash): ... this.
3333 (psymbol_compare): Change to...
3334 (psymbol_bcache::compare): ... this.
3335
3336 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3337
3338 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3339 checking for initial lwp.
3340
3341 2020-09-14 Tom Tromey <tromey@adacore.com>
3342
3343 * m68k-tdep.c (m68k_extract_return_value): Use
3344 pointer_result_regnum.
3345 (m68k_store_return_value): Likewise.
3346 (m68k_reg_struct_return_p): Handle vectors and arrays.
3347 (m68k_return_value): Handle arrays.
3348 (m68k_svr4_return_value): Fix single-element aggregate handling.
3349 Handle long double. Adjust for embedded ABI.
3350 (m68k_svr4_init_abi): Set pointer_result_regnum.
3351 (m68k_embedded_init_abi): New function.
3352 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3353 (m68k_osabi_sniffer): New function.
3354 (_initialize_m68k_tdep): Register osabi sniffer.
3355 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3356 member.
3357
3358 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3359
3360 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3361 with gdb::unique_xmalloc_ptr<char>.
3362
3363 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3364
3365 * xml-support.h (xml_fetch_another): Change type to be a
3366 function_view.
3367 (xml_process_xincludes): Remove baton parameter.
3368 (xml_fetch_content_from_file): Change baton parameter to
3369 dirname.
3370 * xml-support.c (struct xinclude_parsing_data)
3371 <xinclude_parsing_data>: Remove baton parameter.
3372 <fetcher_baton>: Remove.
3373 (xinclude_start_include): Adjust.
3374 (xml_process_xincludes): Adjust.
3375 (xml_fetch_content_from_file): Replace baton parameter with
3376 dirname.
3377 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3378 (xml_init_syscalls_info): Use a lambda.
3379 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3380 (file_read_description_xml): Use a lambda.
3381 (fetch_available_features_from_target): Change baton parameter
3382 to target_ops.
3383 (target_read_description_xml): Use a lambda.
3384 (target_fetch_description_xml): Use a lambda.
3385 (string_read_description_xml): Update.
3386
3387 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3388
3389 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3390 uses with type::endianity_is_not_default.
3391
3392 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3393
3394 * gdbtypes.h (struct type) <endianity_is_not_default,
3395 set_endianity_is_not_default>: New methods.
3396 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3397 type::endianity_is_not_default, change all write call sites to
3398 use type::set_endianity_is_not_default.
3399
3400 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3401
3402 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3403 uses with type::is_fixed_instance.
3404
3405 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3406
3407 * gdbtypes.h (struct type) <is_fixed_instance,
3408 set_is_fixed_instance>: New methods.
3409 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3410 write call sites to use type::set_is_fixed_instance.
3411
3412 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3413
3414 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3415 uses with type::is_gnu_ifunc.
3416
3417 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3418
3419 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3420 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3421 use type::set_is_gnu_ifunc.
3422
3423 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3424
3425 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3426 uses with type::stub_is_supported.
3427
3428 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3429
3430 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3431 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3432 use type::set_stub_is_supported.
3433
3434 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3435
3436 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3437 uses with type::is_vector.
3438
3439 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3440
3441 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3442 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3443 use type::set_is_vector.
3444
3445 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3446
3447 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3448 uses with type::has_varargs.
3449
3450 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3451
3452 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3453 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3454 use type::set_has_varargs.
3455
3456 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3457
3458 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3459 uses with type::is_prototyped.
3460
3461 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3462
3463 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3464 New methods.
3465 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3466 call sites to use type::set_is_prototyped.
3467
3468 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3469
3470 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3471 uses with type::target_is_stub.
3472
3473 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3474
3475 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3476 New methods.
3477 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3478 sites to use type::set_target_is_stub.
3479
3480 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3481
3482 * gdbtypes.h (TYPE_STUB): Remove, replace all
3483 uses with type::is_stub.
3484
3485 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3486
3487 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3488 (TYPE_STUB): Use type::is_stub, change all write call sites to
3489 use type::set_is_stub.
3490
3491 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3492
3493 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3494 type::has_no_signedness.
3495
3496 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3497
3498 * gdbtypes.h (struct type) <has_no_signedness,
3499 set_has_no_signedness>: New methods.
3500 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3501 call sites to use type::set_has_no_signedness.
3502
3503 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3504
3505 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3506 type::is_unsigned.
3507
3508 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3509
3510 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3511 methods.
3512 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3513 sites to use type::set_is_unsigned.
3514
3515 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3516 Adam Renquinha <arenquinha@cimeq.qc.ca>
3517
3518 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3519 pointer and stack frame offset when unwinding.
3520
3521 2020-09-13 Pedro Alves <pedro@palves.net>
3522
3523 * NEWS: Document "-break-insert --qualified".
3524 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3525
3526 2020-09-13 Pedro Alves <pedro@palves.net>
3527
3528 * linespec.c (classify_mtype, compare_msyms): Delete.
3529 (search_minsyms_for_name): Remove classification logic. Instead
3530 filter out trampoline symbols if we also found an external
3531 function of the same name.
3532
3533 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3534
3535 * NEWS: Create a new section for the next release branch.
3536 Rename the section of the current branch, now that it has
3537 been cut.
3538
3539 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3540
3541 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3542 * version.in: Bump version to 11.0.50.DATE-git.
3543
3544 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3545
3546 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3547
3548 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3549 Felix Willgerodt <Felix.Willgerodt@intel.com>
3550
3551 * gdbarch.sh: Added bfloat16 type.
3552 * gdbarch.c: Regenerated.
3553 * gdbarch.h: Regenerated.
3554 * gdbtypes.c (floatformats_bfloat16): New struct.
3555 (gdbtypes_post_init): Add builtin_bfloat16.
3556 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3557 (floatformats_bfloat16): New struct.
3558 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3559 (i386_ymm_type): Add field "v16_bfloat16"
3560 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3561 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3562 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3563 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3564 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3565 * features/i386/64bit-avx512.c: Regenerated.
3566 * features/i386/64bit-sse.xml: Add bfloat16 type.
3567 * features/i386/64bit-sse.c: Regenerated.
3568
3569 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3570
3571 * i386-tdep.c (i386_zmm_type): Fix field names.
3572 (i386_ymm_type): Fix field names.
3573
3574 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3575
3576 * breakpoint.c: Fix typo in the help message of the
3577 "set breakpoint condition-evaluation" command.
3578
3579 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3580
3581 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3582 * (nbsd_nat_target::pid_to_exec_file)
3583 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3584 (nbsd_nat_target::post_startup_inferior)
3585 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3586 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3587 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3588 * (nbsd_thread_lister): Remove.
3589
3590 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3591
3592 * fork-inferior.c (startup_inferior): Avoid double free.
3593
3594 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3595
3596 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3597 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3598
3599 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3600
3601 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3602 * netbsd-nat.c: Include <sys/ptrace.h>.
3603 * (netbsd_nat::enable_proc_events): Add.
3604
3605 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3606
3607 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3608 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3609 (netbsd_nat::for_each_thread): Add.
3610 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3611 "gdbsupport/common-debug.h".
3612 * (netbsd_nat::netbsd_thread_lister)
3613 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3614 (netbsd_nat::for_each_thread): Add.
3615
3616 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3617
3618 * netbsd-nat.h: Include <unistd.h>.
3619 * (netbsd_nat::pid_to_exec_file): Add.
3620 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3621 * (netbsd_nat::pid_to_exec_file) Add.
3622
3623 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3624
3625 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3626
3627 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3628
3629 * netbsd-nat.h: New file.
3630 * netbsd-nat.c: Likewise.
3631
3632 2020-09-09 Tom Tromey <tromey@adacore.com>
3633
3634 * ada-lang.c (remove_extra_symbols): Do not increment when
3635 removing an element
3636
3637 2020-09-08 Tom Tromey <tromey@adacore.com>
3638
3639 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3640
3641 2020-09-08 Tom Tromey <tromey@adacore.com>
3642
3643 PR win32/25302:
3644 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3645 (gdb_bfd_init_data): New function.
3646 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3647
3648 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3649
3650 * infrun.c (fetch_inferior_event): Use
3651 `switch_to_target_no_thread` to switch the target.
3652
3653 2020-09-06 Tom Tromey <tom@tromey.com>
3654
3655 * symfile.h (dwarf2_free_objfile): Don't declare.
3656
3657 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3658
3659 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3660 to match 16 byte real/complex type generated by Flang compiler.
3661
3662 2020-09-03 Tom de Vries <tdevries@suse.de>
3663
3664 PR breakpoint/26546
3665 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3666 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3667
3668 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3669
3670 * maint.c (index_digits): New function.
3671 (struct maint_print_section_data): Remove.
3672 (print_bfd_section_info): Remove print_data parameter, add arg
3673 and index_digits.
3674 (print_objfile_section_info): Likewise.
3675 (print_bfd_section_info_maybe_relocated): Likewise (plus
3676 objfile).
3677 (maintenance_info_sections): Adjust calls.
3678
3679 2020-09-02 Tom Tromey <tromey@adacore.com>
3680
3681 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3682 for null pointers.
3683 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3684
3685 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3686
3687 * bcache.h (struct bcache) <insert>: Change type of `added` to
3688 pointer to bool.
3689 * bcache.c (bcache::insert): Likewise.
3690 * gdbtypes.c (check_types_worklist): Adjust.
3691 * psymtab.c (add_psymbol_to_bcache): Adjust.
3692
3693 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3694
3695 * corelow.c (unordered_set): Include.
3696 (class core_target): Add field 'm_core_unavailable_mappings'.
3697 (core_target::build_file_mappings): Print only one warning
3698 per inaccessible file. Add unavailable/broken mappings
3699 to m_core_unavailable_mappings.
3700 (core_target::xfer_partial): Call...
3701 (core_target::xfer_memory_via_mappings): New method.
3702
3703 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3704
3705 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3706 type to bool.
3707
3708 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3709
3710 * dwarf2/read.c (struct field_info): Fix indentation.
3711
3712 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3713
3714 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3715 ordering in comment.
3716 * frame.c (frame_id_eq): Fix indentation.
3717
3718 2020-08-31 Scott Linder <scott@scottlinder.com>
3719 Simon Marchi <simon.marchi@efficios.com>
3720
3721 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3722 inline frame ids in outer frame.
3723
3724 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3725
3726 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3727 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3728 (outer_frame_id): Use FID_STACK_OUTER instead of
3729 FID_STACK_INVALID.
3730 (frame_id_p): Don't check for outer_frame_id.
3731
3732 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3733
3734 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3735 regnum/frame in value. Call allocate_value_lazy.
3736 * frame.c (frame_unwind_register_value): Use
3737 val_print_not_saved.
3738
3739 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3740
3741 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3742
3743 2020-08-29 Pedro Alves <pedro@palves.net>
3744
3745 * progspace.c (print_program_space): Use all_inferiors. Switch to
3746 the inferior before calling target_pid_to_str.
3747
3748 2020-08-28 Tom Tromey <tom@tromey.com>
3749
3750 * xcoffread.c (xcoff_end_psymtab): Update comment.
3751 * dbxread.c (dbx_end_psymtab): Update comment.
3752
3753 2020-08-28 Tom de Vries <tdevries@suse.de>
3754
3755 PR breakpoint/26544
3756 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3757 event_location.
3758 (create_breakpoint): Same.
3759 (base_breakpoint_decode_location): Same.
3760 (bkpt_create_sals_from_location): Same.
3761 (bkpt_decode_location): Same.
3762 (bkpt_probe_create_sals_from_location): Same.
3763 (bkpt_probe_decode_location): Same.
3764 (tracepoint_create_sals_from_location): Same.
3765 (tracepoint_decode_location): Same.
3766 (tracepoint_probe_decode_location): Same.
3767 (strace_marker_create_sals_from_location): Same.
3768 (strace_marker_decode_location): Same.
3769 (create_sals_from_location_default): Same.
3770 (decode_location_default): Same.
3771 * breakpoint.h (struct breakpoint_ops): Same.
3772 (create_breakpoint): Same.
3773 * linespec.h (decode_line_full): Same.
3774 * linespec.c (decode_line_full): Same. Throw error if
3775 result.size () == 0.
3776
3777 2020-08-27 Pedro Alves <pedro@palves.net>
3778
3779 PR gdb/26524
3780 * breakpoint.c (until_break_fsm) <location_breakpoint,
3781 caller_breakpoint>: Delete fields.
3782 <breakpoints>: New field.
3783 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3784 two individual breakpoints.
3785 (until_break_fsm::should_stop): Loop over breakpoints in the
3786 breakpoint vector.
3787 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3788 vector.
3789 (until_break_command): Handle location expanding into multiple
3790 sals.
3791
3792 2020-08-27 Pedro Alves <pedro@palves.net>
3793
3794 PR gdb/26523
3795 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3796 bp_until breakpoints user-specified locations. Update intro
3797 comment.
3798
3799 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3800
3801 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3802 gdb_bfd_sections): New.
3803 * maint.c (print_bfd_section_info): Change param type to
3804 maint_print_section_data.
3805 (print_objfile_section_info): Likewise.
3806 (print_bfd_section_info_maybe_relocated): Likewise.
3807 (maintenance_info_sections): Use gdb_bfd_sections.
3808
3809 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3810
3811 * MAINTAINERS: Add ARC target and maintainer.
3812
3813 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3814
3815 * configure.tgt: ARC support for GNU/Linux.
3816 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3817 * arc-linux-tdep.c: New file.
3818 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3819 * arc-tdep.c (arc_write_pc): Use it.
3820
3821 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3822
3823 * arc-tdep.c (arc_check_for_hardware_loop): New.
3824 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3825
3826 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3827
3828 * arc-tdep.h: Include "gdbarch.h".
3829
3830 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3831
3832 * arch/arc.h
3833 (arc_gdbarch_features): New class to stir the selection of target XML.
3834 (arc_create_target_description): Use FEATURES to choose XML target.
3835 (arc_lookup_target_description): Use arc_create_target_description
3836 to create _new_ target descriptions or return the already created
3837 ones if the FEATURES is the same.
3838 * arch/arc.c: Implementation of prototypes described above.
3839 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3840 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3841 * arc-tdep.c (*_feature_name): Make feature names consistent.
3842 (arc_register_feature): A new struct to hold information about
3843 registers of a particular target/feature.
3844 (arc_check_tdesc_feature): Check if XML provides registers in
3845 compliance with ARC_REGISTER_FEATURE structs.
3846 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3847 (determine_*_reg_feature_set): Which feature name to look for.
3848 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3849 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3850 to expected ISA enums to be used in arc_gdbarch_features structs.
3851 * features/Makefile (FEATURE_XMLFILES): Add new files.
3852 * gdb/features/arc/v1-aux.c: New file.
3853 * gdb/features/arc/v1-aux.xml: Likewise.
3854 * gdb/features/arc/v1-core.c: Likewise.
3855 * gdb/features/arc/v1-core.xml: Likewise.
3856 * gdb/features/arc/v2-aux.c: Likewise.
3857 * gdb/features/arc/v2-aux.xml: Likewise.
3858 * gdb/features/arc/v2-core.c: Likewise.
3859 * gdb/features/arc/v2-core.xml: Likewise.
3860 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3861
3862 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3863 Andrew Burgess <andrew.burgess@embecosm.com>
3864
3865 PR m2/26372
3866 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3867 an assert. Remove single element array indexing pattern as the
3868 MULTI_SUBSCRIPT support will handle this case too.
3869
3870 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3871
3872 * value.h (valprint_check_validity): Move declaration from
3873 here...
3874 * valprint.h (valprint_check_validity): ... to here.
3875
3876 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3877
3878 * debug.h: New file.
3879 * debug.c (debug_prefixed_vprintf): New function.
3880 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3881 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3882
3883 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3884
3885 * infrun.h (infrun_debug_printf_1): New function declaration.
3886 (infrun_debug_printf): New macro.
3887 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3888 throughout.
3889 (infrun_debug_printf): New function.
3890 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3891 (handle_jit_event): Likewise.
3892
3893 2020-08-21 Mark Wielaard <mark@klomp.org>
3894
3895 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3896
3897 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3898
3899 * frame.c (enum class frame_id_status): New.
3900 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3901 (fprintf_frame): Update.
3902 (compute_frame_id): Set frame id status to "computing" on entry.
3903 Set it back to "not_computed" on failure and to "computed" on
3904 success.
3905 (get_frame_id): Assert the frame id is not being computed.
3906 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3907 (create_new_frame): Likewise.
3908 (frame_cleanup_after_sniffer): Update assert.
3909
3910 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3911
3912 * regcache.c (pid_ptid_regcache_map): New type.
3913 (target_ptid_regcache_map): Remove.
3914 (target_pid_ptid_regcache_map): New type.
3915 (regcaches): Change type to target_pid_ptid_regcache_map.
3916 (get_thread_arch_aspace_regcache): Update.
3917 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3918 case.
3919 (regcaches_size): Update.
3920 (regcache_count): Update.
3921 (registers_changed_ptid_target_pid_test): New.
3922 (_initialize_regcache): Register new test.
3923
3924 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3925
3926 * regcache.c (regcache_count): New.
3927 (struct regcache_test_data): New.
3928 (regcache_test_data_up): New.
3929 (populate_regcaches_for_test): New.
3930 (regcaches_test): Remove.
3931 (get_thread_arch_aspace_regcache_test): New.
3932 (registers_changed_ptid_all_test): New.
3933 (registers_changed_ptid_target_test): New.
3934 (registers_changed_ptid_target_ptid_test): New.
3935 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3936 (_initialize_regcache): Register new tests.
3937
3938 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3939
3940 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3941 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3942 gdbarch and aspace parameter. Use current inferior's aspace.
3943 Validate regcache's arch value.
3944 (regcaches_test): Update.
3945
3946 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3947
3948 * regcache.c (regcaches_test): Call registers_changed.
3949
3950 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3951
3952 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3953
3954 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3955
3956 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3957 to find the end of prologue for flang compiled binaries.
3958 * arm-tdep.c (arm_skip_prologue): Likewise.
3959 * i386-tdep.c (i386_skip_prologue): Likewise.
3960 * producer.c (producer_is_llvm): New function.
3961 (producer_parsing_tests): Added new tests for clang/flang.
3962 * producer.h (producer_is_llvm): New declaration.
3963
3964 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3965
3966 * linux-nat.c (linux_nat_debug_printf): New function.
3967 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3968
3969 2020-08-18 Aaron Merey <amerey@redhat.com>
3970
3971 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3972 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3973 (CLIBS): Add DEBUGINFOD_LIBS.
3974
3975 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3976
3977 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3978 'gdbarch_num_regs'.
3979
3980 2020-08-17 Tom Tromey <tromey@adacore.com>
3981
3982 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3983 ada_get_decoded_value returns NULL.
3984
3985 2020-08-17 Tom Tromey <tromey@adacore.com>
3986
3987 * python/py-inferior.c (infpy_search_memory): Use
3988 gdb_py_object_from_ulongest.
3989 * python/py-infevents.c (create_inferior_call_event_object)
3990 (create_memory_changed_event_object): Use
3991 gdb_py_object_from_ulongest.
3992 * python/py-linetable.c (ltpy_entry_get_pc): Use
3993 gdb_py_object_from_ulongest.
3994
3995 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3996
3997 * loc.c (class symbol_needs_eval_context): Fix indentation.
3998
3999 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4000
4001 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4002 bool.
4003
4004 2020-08-17 Tom de Vries <tdevries@suse.de>
4005
4006 PR gdb/26393
4007 * gdbtypes.c (dump_dynamic_prop): New function.
4008 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4009
4010 2020-08-15 Tom de Vries <tdevries@suse.de>
4011
4012 PR backtrace/26390
4013 * stack.c (print_frame_args): Temporarily set the selected
4014 frame to FRAME while printing the frame's arguments.
4015
4016 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4017
4018 PR breakpoints/26385
4019 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4020 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4021
4022 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4023
4024 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4025 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4026 and >= to check return value instead of == -1 and != -1.
4027
4028 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4029
4030 * utils.h (class gdb_argv) <as_array_view>: New method.
4031 * utils.c (gdb_argv_as_array_view_test): New.
4032 (_initialize_utils): Register selftest.
4033 * maint.c (maintenance_selftest): Use the new method.
4034
4035 2020-08-13 Kamil Rytarowski <n54@gmx.com>
4036
4037 * target.h (supports_dumpcore, dumpcore): New
4038 function declarations.
4039 * target.c (supports_dumpcore, dumpcore): New
4040 functions.
4041 * target-delegates.c: Rebuild.
4042 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4043 and target_dumpcore ().
4044
4045 2020-08-13 Aaron Merey <amerey@redhat.com>
4046
4047 * debuginfod-support.c: Replace global variables with user_data.
4048
4049 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4050
4051 * maint.c (maintenance_selftest): Split args and pass array_view
4052 to run_tests.
4053
4054 2020-08-12 Luis Machado <luis.machado@linaro.org>
4055
4056 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4057 type's length.
4058 Use %s and pulongest to print the length.
4059
4060 2020-08-12 Pedro Alves <palves@redhat.com>
4061
4062 * NEWS: Move "Multi-target debugging support" item to the
4063 "Changes since GDB 9" section.
4064
4065 2020-08-12 Pedro Alves <palves@redhat.com>
4066
4067 PR gdb/26336
4068 * progspace.c (program_space::remove_objfile): Invalidate the
4069 frame cache.
4070
4071 2020-08-11 Tom de Vries <tdevries@suse.de>
4072
4073 * MAINTAINERS: Mark ms1 as deleted.
4074
4075 2020-08-10 Luis Machado <luis.machado@linaro.org>
4076
4077 PR gdb/26310
4078
4079 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4080 act accordingly.
4081 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4082 movz/str/stur/stp skipping behavior.
4083
4084 2020-08-10 Luis Machado <luis.machado@linaro.org>
4085
4086 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4087 struct user_sve_header instead of struct sve_context.
4088
4089 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4090
4091 * read.h (dwarf2_fetch_die_loc_sect_off,
4092 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4093 `void *` parameter with function_view.
4094 * read.c (dwarf2_fetch_die_loc_sect_off,
4095 dwarf2_fetch_die_loc_cu_off): Likewise.
4096 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4097 (per_cu_dwarf_call): Adjust.
4098 (get_frame_address_in_block_wrapper): Remove.
4099 (indirect_synthetic_pointer): Adjust.
4100 (get_ax_pc): Remove.
4101 (dwarf2_compile_expr_to_ax): Adjust.
4102
4103 2020-08-08 Tom de Vries <tdevries@suse.de>
4104
4105 PR build/26344
4106 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4107 constructor.
4108 * regcache.c (get_thread_arch_aspace_regcache): Same.
4109
4110 2020-08-07 Tom Tromey <tromey@adacore.com>
4111
4112 * ravenscar-thread.c
4113 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4114 New method.
4115 (ravenscar_thread_target::wait): Check
4116 runtime_initialized.
4117 (ravenscar_thread_target::prepare_to_store)
4118 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4119 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4120 (ravenscar_thread_target::stopped_by_watchpoint)
4121 (ravenscar_thread_target::stopped_data_address)
4122 (ravenscar_thread_target::core_of_thread): Use
4123 scoped_restore_current_thread and
4124 set_base_thread_from_ravenscar_task.
4125
4126 2020-08-07 Tom Tromey <tromey@adacore.com>
4127
4128 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4129
4130 2020-08-07 Tom Tromey <tromey@adacore.com>
4131
4132 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4133 update_inferior_ptid before update_thread_list.
4134 (temporarily_change_regcache_ptid): New class.
4135 (ravenscar_thread_target::fetch_registers)
4136 (ravenscar_thread_target::store_registers)
4137 (ravenscar_thread_target::prepare_to_store): Use base thread when
4138 forwarding operation.
4139
4140 2020-08-07 Tom Tromey <tromey@adacore.com>
4141
4142 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4143 "is_pid" case.
4144
4145 2020-08-07 Tom Tromey <tromey@adacore.com>
4146
4147 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4148 New methods.
4149 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4150 first.
4151 (ravenscar_thread_target::add_thread): Rename from
4152 ravenscar_add_thread.
4153 (ravenscar_thread_target::update_thread_list): Use a lambda.
4154 (ravenscar_thread_target::xfer_partial): New method.
4155
4156 2020-08-07 Tom Tromey <tromey@adacore.com>
4157
4158 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4159 gdb::function_view.
4160 (iterate_over_live_ada_tasks): Change type of argument.
4161 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4162 of argument.
4163
4164 2020-08-07 Tom Tromey <tromey@adacore.com>
4165
4166 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4167 Remove.
4168 (ravenscar_thread_target::extra_thread_info): Remove.
4169 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4170 defer to target beneath for non-Ravenscar threads.
4171
4172 2020-08-07 Tom Tromey <tromey@adacore.com>
4173
4174 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4175 get_base_thread_from_ravenscar_task>: Now methods.
4176 <m_cpu_map>: New member.
4177 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4178 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4179 (ravenscar_thread_target::task_is_currently_active): Update.
4180 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4181 Now a method.
4182 (ravenscar_thread_target::add_active_thread): Put initial thread
4183 into the m_cpu_map.
4184
4185 2020-08-07 Tom Tromey <tromey@adacore.com>
4186
4187 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4188 event_ptid.
4189
4190 2020-08-07 Tom Tromey <tromey@adacore.com>
4191
4192 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4193 runtime_initialized.
4194
4195 2020-08-07 Tom Tromey <tromey@adacore.com>
4196
4197 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4198 add_active_thread.
4199 (ravenscar_thread_target::add_active_thread): Now public.
4200 (ravenscar_inferior_created): Call add_active_thread after pushing
4201 the target.
4202
4203 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4204
4205 * regcache.c (ptid_regcache_map): New type.
4206 (target_ptid_regcache_map): New type.
4207 (regcaches): Change type to target_ptid_regcache_map.
4208 (get_thread_arch_aspace_regcache): Update to regcaches' new
4209 type.
4210 (regcache_thread_ptid_changed): Likewise.
4211 (registers_changed_ptid): Likewise.
4212 (regcaches_size): Likewise.
4213 (regcaches_test): Update.
4214 (regcache_thread_ptid_changed): Update.
4215 * regcache.h (regcache_up): New type.
4216 * gdbsupport/ptid.h (hash_ptid): New struct.
4217
4218 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4219
4220 * observable.h (thread_ptid_changed): Add parameter
4221 `process_stratum_target *`.
4222 * infrun.c (infrun_thread_ptid_changed): Add parameter
4223 `process_stratum_target *` and use it.
4224 (selftests): New namespace.
4225 (infrun_thread_ptid_changed): New function.
4226 (_initialize_infrun): Register selftest.
4227 * regcache.c (regcache_thread_ptid_changed): Add parameter
4228 `process_stratum_target *` and use it.
4229 (regcache_thread_ptid_changed): New function.
4230 (_initialize_regcache): Register selftest.
4231 * thread.c (thread_change_ptid): Pass target to
4232 thread_ptid_changed observable.
4233
4234 2020-08-06 Caroline Tice <cmtice@google.com>
4235
4236 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4237 (struct dwp_sections): Update field comments. Add loclists and
4238 rnglists fields.
4239 (struct virtual_v2_dwo_sections): Rename struct to
4240 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4241 size & offset fields for loclists and rnglists.
4242 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4243 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4244 skipping dummy type units.
4245 (create_dwp_hash_table): Update the large comment above the function to
4246 discuss Version 5 DWP files as well, with references. Update all the
4247 version checks in the function to check for version 5 as well. Add new
4248 section at the end to create dwp hash table for version 5.
4249 (create_dwp_v2_section): Rename function to
4250 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4251 Add V5 to error message text.
4252 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4253 into calls to create_dwp_v2_or_v5_section.
4254 (create_dwo_unit_in_dwp_v5): New function.
4255 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4256 check for version2; add else clause to handle version 5.
4257 (open_and_init_dwo_file): Add code to check dwarf version & only call
4258 create_debug_types_hash_table (with sections.types) if version is not 5;
4259 else call create_debug_type_hash_table, with sections.info.
4260 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4261 version 5.
4262 (dwarf2_locate_v5_dwp_sections): New function.
4263 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4264 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4265
4266 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4267
4268 * regcache.h (class regcache): Remove friend
4269 registers_changed_ptid.
4270 <regcache_thread_ptid_changed>: Remove.
4271 <regcaches>: Remove.
4272 * regcache.c (regcache::regcaches): Rename to...
4273 (regcaches): ... this. Make static.
4274 (get_thread_arch_aspace_regcache): Update.
4275 (regcache::regcache_thread_ptid_changed): Rename to...
4276 (regcache_thread_ptid_changed): ... this. Update.
4277 (class regcache_access): Remove.
4278 (regcaches_test): Update.
4279 (_initialize_regcache): Update.
4280 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4281 <forward_list>.
4282
4283 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4284
4285 * regcache.h (class regcache) <current_regcache>: Rename to...
4286 <regcaches>: ... this. Move doc here.
4287 * regcache.c (regcache::current_regcache) Rename to...
4288 (regcache::regcaches): ... this. Move doc to header.
4289 (get_thread_arch_aspace_regcache): Update.
4290 (regcache::regcache_thread_ptid_changed): Update.
4291 (registers_changed_ptid): Update.
4292 (class regcache_access) <current_regcache_size>: Rename to...
4293 <regcaches_size>: ... this.
4294 (current_regcache_test): Rename to...
4295 (regcaches_test): ... this.
4296 (_initialize_regcache): Update.
4297
4298 2020-08-06 Victor Collod <vcollod@nvidia.com>
4299
4300 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4301
4302 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4303
4304 * corelow.c (core_target::build_file_mappings): Don't output
4305 null pathname in warning.
4306
4307 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4308
4309 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4310 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4311 gdb.dwarf2/dw2-single-line-discriminators.exp,
4312 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4313
4314 2020-08-05 Tom Tromey <tromey@adacore.com>
4315
4316 PR rust/26197:
4317 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4318 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4319 Fix off-by-one and type size errors in ordinary case.
4320
4321 2020-08-05 Tom de Vries <tdevries@suse.de>
4322
4323 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4324 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4325
4326 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4327
4328 * frame.h (frame_id_p): Return bool.
4329 (frame_id_artificial_p): Return bool.
4330 (frame_id_eq): Return bool.
4331 (has_stack_frames): Return bool.
4332 (get_selected_frame): Fix typo in comment.
4333 (get_frame_pc_if_available): Return bool.
4334 (get_frame_address_in_block_if_available): Return bool.
4335 (get_frame_func_if_available): Return bool.
4336 (read_frame_register_unsigned): Return bool.
4337 (get_frame_register_bytes): Return bool.
4338 (safe_frame_unwind_memory): Return bool.
4339 (deprecated_frame_register_read): Return bool.
4340 (frame_unwinder_is): Return bool.
4341 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4342 bool.
4343 <this_id::p>: Likewise.
4344 <prev_p>: Likewise.
4345 (frame_stash_add): Return bool.
4346 (get_frame_id): Use bool.
4347 (frame_id_build_special) Use bool.
4348 (frame_id_build_unavailable_stack): Use bool.
4349 (frame_id_build): Use bool.
4350 (frame_id_p): Return bool, use true/false instead of 1/0.
4351 (frame_id_artificial_p): Likewise.
4352 (frame_id_eq): Likewise.
4353 (frame_id_inner): Likewise.
4354 (get_frame_func_if_available): Likewise.
4355 (read_frame_register_unsigned): Likewise.
4356 (deprecated_frame_register_read): Likewise.
4357 (get_frame_register_bytes): Likewise.
4358 (has_stack_frames): Likewise.
4359 (inside_main_func): Likewise.
4360 (inside_entry_func): Likewise.
4361 (get_frame_pc_if_available): Likewise.
4362 (get_frame_address_in_block_if_available): Likewise.
4363 (frame_unwinder_is): Likewise.
4364 (safe_frame_unwind_memory): Likewise.
4365 (frame_unwind_arch): Likewise.
4366
4367 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4368
4369 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4370 type to cached_copy_status.
4371 (fprintf_frame): Adjust.
4372 (get_frame_func_if_available): Adjust.
4373 (frame_cleanup_after_sniffer): Adjust.
4374
4375 2020-08-04 Mark Wielaard <mark@klomp.org>
4376
4377 * MAINTAINERS (Write After Approval): Update email address.
4378
4379 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4380
4381 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4382 dynamic_prop::const_val.
4383
4384 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4385
4386 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4387 dynamic_prop::kind.
4388
4389 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4390
4391 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4392
4393 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4394
4395 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4396
4397 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4398 Jose E. Marchesi <jose.marchesi@oracle.com>
4399
4400 * configure.tgt: Add entry for bpf-*-*.
4401 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4402 (ALLDEPFILES): Add bpf-tdep.c.
4403 * bpf-tdep.c: New file.
4404 * MAINTAINERS: Add bpf target and maintainer.
4405 * NEWS: Mention the support for the new target.
4406
4407 2020-08-04 Tom de Vries <tdevries@suse.de>
4408
4409 PR symtab/23270
4410 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4411 Error.
4412
4413 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4414
4415 * syscalls/freebsd.xml: Regenerate.
4416
4417 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4418
4419 * syscalls/update-freebsd.sh: Fix usage and year range.
4420
4421 2020-08-03 Tom de Vries <tdevries@suse.de>
4422
4423 PR symtab/26333
4424 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4425 DW_LNE_lo_user/DW_LNE_hi_user range.
4426
4427 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4428
4429 PR ada/26318
4430 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4431 kind.
4432
4433 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4434
4435 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4436
4437 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4438
4439 * breakpoint.c (set_breakpoint_condition): Update the condition
4440 expressions after checking that the input condition string parses
4441 successfully and does not contain junk at the end.
4442
4443 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4444
4445 * breakpoint.c (set_breakpoint_condition): Update the
4446 condition string after parsing the new condition successfully.
4447
4448 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4449
4450 * proc-api.c (_STRUCTURED_PROC): Don't define.
4451 * proc-events.c: Likewise.
4452 * proc-flags.c: Likewise.
4453 * proc-why.c: Likewise.
4454 * procfs.c: Likewise.
4455
4456 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4457 * configure, config.in: Regenerate.
4458
4459 2020-07-30 Tom de Vries <tdevries@suse.de>
4460
4461 PR build/26320
4462 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4463 m_red/m_green/m_blue in a union.
4464
4465 2020-07-29 Tom de Vries <tdevries@suse.de>
4466
4467 PR tdep/26280
4468 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4469
4470 2020-07-28 Tom Tromey <tromey@adacore.com>
4471
4472 PR symtab/26270:
4473 * symtab.h (find_pc_partial_function_sym): Declare.
4474 * cli/cli-cmds.c (disassemble_command): Use
4475 find_pc_partial_function_sym. Check asm_demangle.
4476 * blockframe.c (cache_pc_function_sym): New global.
4477 (cache_pc_function_name): Remove.
4478 (clear_pc_function_cache): Update.
4479 (find_pc_partial_function_sym): New function, from
4480 find_pc_partial_function.
4481 (find_pc_partial_function): Rewrite using
4482 find_pc_partial_function_sym.
4483
4484 2020-07-28 Tom Tromey <tromey@adacore.com>
4485
4486 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4487 help. Add usage.
4488
4489 2020-07-28 Tom Tromey <tromey@adacore.com>
4490
4491 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4492 <DW_OP_GNU_variable_value>: Cast to address type.
4493
4494 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4495
4496 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4497 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4498 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4499 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4500 (nbsd_get_siginfo_type): New.
4501 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4502 (_initialize_nbsd_tdep): New.
4503
4504 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4505
4506 PR binutils/26301
4507 * configure: Regenerated.
4508
4509 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4510
4511 PR binutils/26301
4512 * configure: Regenerated.
4513
4514 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4515
4516 * python/py-frame.c: Remove 'user-regs.h' include.
4517 (frapy_read_register): Rewrite to make use of
4518 gdbpy_parse_register_id.
4519 * python/py-registers.c (gdbpy_parse_register_id): New function,
4520 moved here from python/py-unwind.c. Updated the return type, and
4521 also accepts register descriptor objects.
4522 * python/py-unwind.c: Remove 'user-regs.h' include.
4523 (pyuw_parse_register_id): Moved to python/py-registers.c.
4524 (unwind_infopy_add_saved_register): Update to use
4525 gdbpy_parse_register_id.
4526 (pending_framepy_read_register): Likewise.
4527 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4528
4529 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4530
4531 * python/py-registers.c: Add 'user-regs.h' include.
4532 (register_descriptor_iter_find): New function.
4533 (register_descriptor_iterator_object_methods): New static global
4534 methods array.
4535 (register_descriptor_iterator_object_type): Add pointer to methods
4536 array.
4537
4538 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4539
4540 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4541 for all architectures on FreeBSD 11.3 and later.
4542
4543 2020-07-27 Tom Tromey <tromey@adacore.com>
4544
4545 * gcore.h (load_corefile): Don't declare.
4546
4547 2020-07-27 Tom de Vries <tdevries@suse.de>
4548
4549 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4550 * config.in: Regenerate.
4551 * configure: Regenerate.
4552
4553 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4554
4555 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4556 ws2tcpip.h. When checking whether socklen_t type is defined, use
4557 ws2tcpip.h if it is available and sys/socket.h isn't.
4558 * configure: Regenerate.
4559 * config.in: Regenerate.
4560
4561 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4562
4563 PR fortran/23051
4564 PR fortran/26139
4565 * valops.c (value_ind): Pass address to
4566 readjust_indirect_value_type.
4567 * value.c (readjust_indirect_value_type): Make parameter
4568 non-const, and add extra address parameter. Resolve original type
4569 before using it.
4570 * value.h (readjust_indirect_value_type): Update function
4571 signature and comment.
4572
4573 2020-07-25 Tom de Vries <tdevries@suse.de>
4574
4575 PR symtab/26243
4576 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4577 entries.
4578
4579 2020-07-24 Aaron Merey <amerey@redhat.com>
4580
4581 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4582 * configure: Rebuild.
4583
4584 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4585
4586 PR corefiles/26294
4587 * corelow.c (_initialize_corelow): Add period to help text
4588 for "maintenance print core-file-backed-mappings".
4589
4590 2020-07-23 Pedro Alves <pedro@palves.net>
4591
4592 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4593 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4594 meanwhile.
4595 * frame.c (frame_cache_generation, get_frame_cache_generation):
4596 New.
4597 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4598 (get_prev_frame_if_no_cycle): On exception, don't touch
4599 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4600 * frame.h (get_frame_cache_generation): Declare.
4601
4602 2020-07-23 Tom de Vries <tdevries@suse.de>
4603
4604 PR tui/26282
4605 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4606 New default constructor.
4607
4608 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4609
4610 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4611 exclude non-statement entries.
4612
4613 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4614
4615 * NEWS (New commands): Mention new command
4616 "maintenance print core-file-backed-mappings".
4617
4618 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4619
4620 * corelow.c (gdbcmd.h): Include.
4621 (core_target::info_proc_mappings): New method.
4622 (get_current_core_target): New function.
4623 (maintenance_print_core_file_backed_mappings): New function.
4624 (_initialize_corelow): Add core-file-backed-mappings to
4625 "maint print" commands.
4626
4627 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4628
4629 * linux-tdep.c (dump_note_entry_p): New function.
4630 (linux_dump_mapping_p_ftype): New typedef.
4631 (linux_find_memory_regions_full): Add new parameter,
4632 should_dump_mapping_p.
4633 (linux_find_memory_regions): Adjust call to
4634 linux_find_memory_regions_full.
4635 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4636 call to linux_find_memory_regions_full.
4637
4638 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4639
4640 * corelow.c (solist.h, unordered_map): Include.
4641 (class core_target): Add field m_core_file_mappings and
4642 method build_file_mappings.
4643 (core_target::core_target): Call build_file_mappings.
4644 (core_target::~core_target): Free memory associated with
4645 m_core_file_mappings.
4646 (core_target::build_file_mappings): New method.
4647 (core_target::xfer_partial): Use m_core_file_mappings
4648 for memory transfers.
4649 * linux-tdep.c (linux_read_core_file_mappings): New
4650 function.
4651 (linux_core_info_proc_mappings): Rewrite to use
4652 linux_read_core_file_mappings.
4653 (linux_init_abi): Register linux_read_core_file_mappings.
4654
4655 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4656
4657 * arch-utils.c (default_read_core_file_mappings): New function.
4658 * arch-utils.c (default_read_core_file_mappings): Declare.
4659 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4660 * gdbarch.h, gdbarch.c: Regenerate.
4661
4662 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4663
4664 PR corefiles/25631
4665 * corelow.c (core_target:xfer_partial): Revise
4666 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4667 case after first checking the stratum beneath the core
4668 target.
4669 (has_all_memory): Return true.
4670 * target.c (raw_memory_xfer_partial): Revise comment
4671 regarding use of has_all_memory.
4672
4673 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4674
4675 * exec.h (section_table_xfer_memory): Revise declaration,
4676 replacing section name parameter with an optional callback
4677 predicate.
4678 * exec.c (section_table_xfer_memory): Likewise.
4679 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4680 of section_table_xfer_memory.
4681
4682 2020-07-22 Tom Tromey <tromey@adacore.com>
4683
4684 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4685 lookup_symbol_search_name.
4686
4687 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4688
4689 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4690 redundant local variable.
4691 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4692 reference, not pointer, update code accordingly.
4693
4694 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4695 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4696
4697 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4698 * jit.c (jit_breakpoint_re_set_internal): Use the
4699 `skip_jit_symbol_lookup` field.
4700
4701 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4702 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4703
4704 * jit.c (jit_read_descriptor): Define the descriptor address once,
4705 use twice.
4706 (jit_breakpoint_deleted): Move the declaration of the loop variable
4707 `iter` into the loop header.
4708 (jit_breakpoint_re_set_internal): Move the declaration of the local
4709 variable `objf_data` to the first point of definition.
4710 (jit_event_handler): Move the declaration of local variables
4711 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4712 Rename `objf` to `jited`.
4713
4714 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4715
4716 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4717 Remove.
4718 * jit.c (get_jiter_objfile_data): Update.
4719
4720 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4721 Simon Marchi <simon.marchi@polymtl.ca>
4722
4723 * jit.c (struct jit_program_space_data): Remove.
4724 (jit_program_space_key): Remove.
4725 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4726 stuff.
4727 (get_jit_program_space_data): Remove.
4728 (jit_breakpoint_deleted): Iterate on all of the program space's
4729 objfiles.
4730 (jit_inferior_init): Likewise.
4731 (jit_breakpoint_re_set_internal): Likewise. Also change return
4732 type to void.
4733 (jit_breakpoint_re_set): Pass current_program_space to
4734 jit_breakpoint_re_set_internal.
4735
4736 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4737
4738 * jit.h (struct jiter_objfile_data) <cached_code_address,
4739 jit_breakpoint>: Move to here from ...
4740 * jit.c (jit_program_space_data): ... here.
4741 (jiter_objfile_data::~jiter_objfile_data): Update.
4742 (jit_breakpoint_deleted): Update.
4743 (jit_breakpoint_re_set_internal): Update.
4744
4745 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4746
4747 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4748 checks.
4749 (jit_read_descriptor): Remove NULL check.
4750 (jit_event_handler): Add an assertion.
4751
4752 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4753
4754 * jit.h (struct jit_objfile_data): Split into...
4755 (struct jiter_objfile_data): ... this ...
4756 (struct jited_objfile_data): ... and this.
4757 * objfiles.h (struct objfile) <jit_data>: Remove.
4758 <jiter_data, jited_data>: New fields.
4759 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4760 (jiter_objfile_data::~jiter_objfile_data): ... this.
4761 (get_jit_objfile_data): Rename to ...
4762 (get_jiter_objfile_data): ... this.
4763 (add_objfile_entry): Update.
4764 (jit_read_descriptor): Use get_jiter_objfile_data.
4765 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4766 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4767 (jit_inferior_exit_hook): Use objfile's jited_data field.
4768
4769 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4770
4771 * jit.h: Forward-declare `struct minimal_symbol`.
4772 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4773 constructor, destructor, and an objfile* field.
4774 * jit.c (jit_objfile_data): Remove.
4775 (struct jit_objfile_data): Migrate from here to jit.h.
4776 (jit_objfile_data::~jit_objfile_data): New destructor
4777 implementation with code moved from free_objfile_data.
4778 (free_objfile_data): Delete.
4779 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4780 (jit_find_objf_with_entry_addr): Ditto.
4781 (jit_inferior_exit_hook): Ditto.
4782 (_initialize_jit): Remove the call to
4783 register_objfile_data_with_cleanup.
4784 * objfiles.h (struct objfile) <jit_data>: New field.
4785
4786 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4787
4788 * jit.h: Forward-declare `struct objfile`.
4789 (jit_event_handler): Add a second parameter, the JITer objfile.
4790 * jit.c (jit_read_descriptor): Change the signature to take the
4791 JITer objfile as an argument instead of the jit_program_space_data.
4792 (jit_inferior_init): Update the call to jit_read_descriptor.
4793 (jit_event_handler): Use the new JITer objfile argument when calling
4794 jit_read_descriptor.
4795 * breakpoint.c (handle_jit_event): Update the call to
4796 jit_event_handler to pass the JITer objfile.
4797
4798 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4799
4800 * gdbarch.c: Regenerate.
4801 * gdbarch.h: Regenerate.
4802 * gdbarch.sh (handle_segmentation_fault): Remove method.
4803 * infrun.c (handle_segmentation_fault): Remove.
4804 (print_signal_received_reason): Remove call to
4805 handle_segmentation_fault.
4806
4807 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4808
4809 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4810 Rename to sparc64_linux_report_signal_info and add siggnal
4811 argument.
4812 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4813 instead of sparc64_linux_handle_segmentation_fault.
4814
4815 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4816
4817 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4818 i386_linux_report_signal_info instead of
4819 i386_linux_handle_segmentation_fault.
4820 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4821 to i386_linux_report_signal_info and add siggnal argument.
4822 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4823 of i386_linux_handle_segmentation_fault.
4824 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4825 to i386_linux_report_signal_info and add siggnal argument.
4826
4827 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4828
4829 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4830 hook if present.
4831
4832 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4833
4834 * gdbarch.c: Regenerate.
4835 * gdbarch.h: Regenerate.
4836 * gdbarch.sh (report_signal_info): New method.
4837 * infrun.c (print_signal_received_reason): Invoke gdbarch
4838 report_signal_info hook if present.
4839
4840 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4841
4842 * python/py-registers.c : Add 'unordered_map' include.
4843 (gdbpy_new_reggroup): Renamed to...
4844 (gdbpy_get_reggroup): ...this. Update to only create register
4845 group descriptors when needed.
4846 (gdbpy_reggroup_iter_next): Update.
4847
4848 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4849
4850 * python/py-registers.c (gdbpy_register_object_data): New static
4851 global.
4852 (gdbpy_register_object_data_init): New function.
4853 (gdbpy_new_register_descriptor): Renamed to...
4854 (gdbpy_get_register_descriptor): ...this, and update to reuse
4855 existing register descriptors where possible.
4856 (gdbpy_register_descriptor_iter_next): Update.
4857 (gdbpy_initialize_registers): Register new gdbarch data.
4858
4859 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4860
4861 * linux-nat.c (stopped_pids): Make static.
4862
4863 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4864
4865 PR ada/26235
4866 * gdbtypes.c (ada_discrete_type_low_bound,
4867 ada_discrete_type_high_bound): Handle undefined bounds.
4868
4869 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4870
4871 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4872 declaration.
4873 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4874 function.
4875
4876 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4877
4878 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4879 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4880 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4881 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4882 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4883 method.
4884
4885 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4886
4887 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4888 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4889 which are deprecated in Guile 3.0.
4890 * configure.ac (try_guile_versions): Add "guile-3.0".
4891 * configure (try_guile_versions): Regenerate.
4892 * NEWS: Update entry.
4893
4894 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4895 Doug Evans <dje@google.com>
4896
4897 PR gdb/21104
4898 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4899 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4900 USING_GUILE_BEFORE_2_2.
4901 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4902 Change type to 'scm_t_port_type *'.
4903 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4904 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4905 parameter and honor it. Update callers.
4906 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4907 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4908 functions.
4909 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4910 USING_GUILE_BEFORE_2_2.
4911 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4912 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4913 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4914 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4915 and 'SCM_PORT_TYPE'.
4916 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4917 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4918 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4919 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4920 [!USING_GUILE_BEFORE_2_2]: New functions.
4921 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4922 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4923 'gdbscm_memory_port_read'.
4924 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4925 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4926 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4927 function.
4928 (ioscm_init_memory_port): Remove.
4929 (ioscm_init_memory_port_stream): New function
4930 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4931 function.
4932 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4933 Return scm_from_uint (0).
4934 (gdbscm_set_memory_port_read_buffer_size_x)
4935 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4936 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4937 Return scm_from_uint (0).
4938 (gdbscm_set_memory_port_write_buffer_size_x)
4939 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4940 * configure.ac (try_guile_versions): Add "guile-2.2".
4941 * configure: Regenerate.
4942 * NEWS: Add entry.
4943
4944 2020-07-18 Tom Tromey <tom@tromey.com>
4945
4946 * linux-nat.c (linux_multi_process): Remove.
4947 (linux_nat_target::supports_multi_process): Return true.
4948
4949 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4950
4951 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4952 (riscv_lookup_target_description): Return pointer out of
4953 unique_ptr.
4954 * target-descriptions.c (allocate_target_description): Add
4955 comment.
4956 (target_desc_deleter::operator()): Likewise.
4957 * target-descriptions.h (struct target_desc_deleter): Moved to
4958 gdbsupport/tdesc.h.
4959 (target_desc_up): Likewise.
4960
4961 2020-07-17 Tom Tromey <tromey@adacore.com>
4962
4963 * linux-nat.c (linux_nat_target::supports_non_stop)
4964 (linux_nat_target::always_non_stop_p): Use "true".
4965 (linux_nat_target::supports_disable_randomization): Use "true" and
4966 "false".
4967
4968 2020-07-16 Caroline Tice <cmtice@google.com>
4969
4970 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4971 (RNGLIST_HEADER_SIZE64): New constant definition.
4972 (struct dwop_section_names): Add rnglists_dwo.
4973 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4974 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4975 (struct dwo_sections): Add rnglists field.
4976 (read_attribut_reprocess): Add tag parameter.
4977 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4978 (cu_debug_rnglists_section): New function (decl & definition).
4979 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4980 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4981 die whose range is being checked; get rnglist section from
4982 cu_debug_rnglists_section, to get from either objfile or dwo file as
4983 appropriate. Add cases for DW_RLE_base_addressx,
4984 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4985 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4986 test inside if-condition and updating complaint message.
4987 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4988 dwarf2_rnglists_process.
4989 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4990 dwarf2_ranges_process.
4991 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4992 need_ranges_base and update comment appropriately. Also pass die tag
4993 to dwarf2_ranges_read.
4994 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4995 need_ranges_base and update comment appropriately. Also pass die tag
4996 to dwarf2_ranges_process.
4997 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4998 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4999 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5000 need_ranges_base and update comment appropriately. Also pass die tag
5001 to read_attribute_reprocess and dwarf2_ranges_read.
5002 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5003 and update function comment appropriately.
5004 (read_loclist_index): Call read_loclists_rnglists_header instead of
5005 read_loclist_header.
5006 (read_rnglist_index): New function.
5007 (read_attribute_reprocess): Add tag parameter. Add code for
5008 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5009 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5010
5011 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5012
5013 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5014 being resolved.
5015
5016 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5017
5018 * arch-utils.c (show_architecture): Update formatting of messages.
5019
5020 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5021
5022 * gdbtypes.h (struct type) <bounds>: Handle array and string
5023 types.
5024 * ada-lang.c (assign_aggregate): Use type::bounds on
5025 array/string type.
5026 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5027 * c-varobj.c (c_number_of_children): Likewise.
5028 (c_describe_child): Likewise.
5029 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5030 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5031 (f_type_print_base): Likewise.
5032 * f-valprint.c (f77_array_offset_tbl): Likewise.
5033 (f77_get_upperbound): Likewise.
5034 (f77_print_array_1): Likewise.
5035 * guile/scm-type.c (gdbscm_type_range): Likewise.
5036 * m2-typeprint.c (m2_array): Likewise.
5037 (m2_is_long_set_of_type): Likewise.
5038 * m2-valprint.c (get_long_set_bounds): Likewise.
5039 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5040 * python/py-type.c (typy_range): Likewise.
5041 * rust-lang.c (rust_internal_print_type): Likewise.
5042 * type-stack.c (type_stack::follow_types): Likewise.
5043 * valarith.c (value_subscripted_rvalue): Likewise.
5044 * valops.c (value_cast): Likewise.
5045
5046 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5047
5048 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5049 callers to use the equivalent accessor methods.
5050
5051 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5052
5053 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5054 (struct type) <bit_stride>: New method.
5055 (TYPE_BIT_STRIDE): Remove.
5056 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5057
5058 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5059
5060 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5061 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5062 callers to use the equivalent accessor methods instead.
5063
5064 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5065
5066 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5067 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5068 callers to use the equivalent accessor methods instead.
5069
5070 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5071
5072 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5073 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5074 to use dynamic_prop::kind.
5075
5076 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5077
5078 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5079 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5080 to get the bound property's kind and check against
5081 PROP_UNDEFINED.
5082
5083 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5084
5085 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5086 all callers to use type::range_bounds followed by
5087 dynamic_prop::{low,high}.
5088
5089 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5090
5091 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5092 const_val, set_const_val, baton, set_locexpr, set_loclist,
5093 set_addr_offset, variant_parts, set_variant_parts,
5094 original_type, set_original_type>: New methods.
5095 <kind>: Rename to...
5096 <m_kind>: ... this. Update all users to use the new methods
5097 instead.
5098 <data>: Rename to...
5099 <m_data>: ... this. Update all users to use the new methods
5100 instead.
5101
5102 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5103
5104 * gdbtypes.c (get_discrete_bounds): Return failure if
5105 the range type's bounds are not both defined and constant
5106 values.
5107 (get_array_bounds): Update comment. Remove undefined bound check.
5108
5109 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5110
5111 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5112 the type::bounds method directly.
5113
5114 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5115
5116 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5117 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5118 are used to set the range type's bounds to use set_bounds.
5119
5120 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5121
5122 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5123
5124 2020-07-10 Pedro Alves <pedro@palves.net>
5125
5126 * gdbthread.h (inferior_ref): Define.
5127 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5128 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5129 * thread.c
5130 (scoped_restore_current_thread::restore):
5131 Adjust to gdb::ref_ptr.
5132 (scoped_restore_current_thread::~scoped_restore_current_thread):
5133 Remove manual decref handling.
5134 (scoped_restore_current_thread::scoped_restore_current_thread):
5135 Adjust to use
5136 inferior_ref::new_reference/thread_info_ref::new_reference.
5137 Incref the thread before calling get_frame_id instead of after.
5138 Let TARGET_CLOSE_ERROR propagate.
5139
5140 2020-07-10 Pedro Alves <pedro@palves.net>
5141
5142 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5143 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5144 NOT_AVAILABLE_ERROR.
5145 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5146 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5147
5148 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5149 Pedro Alves <pedro@palves.net>
5150
5151 PR gdb/26199
5152 * infrun.c (threads_are_resumed_pending_p): Delete.
5153 (do_target_wait): Remove threads_are_executing and
5154 threads_are_resumed_pending_p checks from the inferior_matches
5155 lambda. Update comments.
5156
5157 2020-07-10 Pedro Alves <pedro@palves.net>
5158
5159 PR gdb/26199
5160 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5161 executing threads.
5162
5163 2020-07-10 Pedro Alves <pedro@palves.net>
5164
5165 PR gdb/26199
5166 * infrun.c (handle_no_resumed): Handle multiple targets.
5167
5168 2020-07-10 Pedro Alves <pedro@palves.net>
5169
5170 PR gdb/26199
5171 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5172 target_is_async_p.
5173
5174 2020-07-10 Pedro Alves <pedro@palves.net>
5175
5176 PR gdb/26199
5177 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5178 threads, not all threads.
5179
5180 2020-07-10 Pedro Alves <pedro@palves.net>
5181
5182 PR gdb/26199
5183 * remote.c (remote_target::open_1): Pass remote target pointer as
5184 data to create_async_event_handler.
5185 (remote_async_inferior_event_handler): Mark async event handler
5186 before returning if the remote target still has either pending
5187 events or unacknowledged notifications.
5188
5189 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5190
5191 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5192 declaration.
5193 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5194 function.
5195
5196 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5197
5198 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5199 inferior_ptid.
5200
5201 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5202
5203 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5204 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5205 AT_FREEBSD_PS_STRINGS.
5206
5207 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5208
5209 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5210 of debugfile path on Windows.
5211
5212 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5213
5214 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5215 argument to 'data'.
5216
5217 2020-07-08 Tom Tromey <tromey@adacore.com>
5218
5219 * ada-lang.c (ada_exception_message_1): Use read_memory.
5220
5221 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5222
5223 PR python/22748
5224 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5225 special handling for inline frames.
5226 * findvar.c (value_of_register_lazy): Skip inline frames when
5227 creating lazy register values.
5228 * frame.c (frame_id_computed_p): Delete definition.
5229 * frame.h (frame_id_computed_p): Delete declaration.
5230
5231 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5232
5233 * NEWS: Mention additions to Python API.
5234 * python/py-arch.c (archpy_register_groups): New function.
5235 (arch_object_methods): Add 'register_groups' method.
5236 * python/py-registers.c (reggroup_iterator_object): New struct.
5237 (reggroup_object): New struct.
5238 (gdbpy_new_reggroup): New function.
5239 (gdbpy_reggroup_to_string): New function.
5240 (gdbpy_reggroup_name): New function.
5241 (gdbpy_reggroup_iter): New function.
5242 (gdbpy_reggroup_iter_next): New function.
5243 (gdbpy_new_reggroup_iterator): New function
5244 (gdbpy_initialize_registers): Register new types.
5245 (reggroup_iterator_object_type): Define new Python type.
5246 (gdbpy_reggroup_getset): New static global.
5247 (reggroup_object_type): Define new Python type.
5248 * python/python-internal.h
5249
5250 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5251
5252 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5253 * python/py-arch.c (archpy_registers): New function.
5254 (arch_object_methods): Add 'registers' method.
5255 * python/py-registers.c: New file.
5256 * python/python-internal.h
5257 (gdbpy_new_register_descriptor_iterator): Declare.
5258 (gdbpy_initialize_registers): Declare.
5259 * python/python.c (do_start_initialization): Call
5260 gdbpy_initialize_registers.
5261 * NEWS: Mention additions to the Python API.
5262
5263 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5264
5265 * NEWS: Mention new Python API method.
5266 * python/py-unwind.c (pending_framepy_architecture): New function.
5267 (pending_frame_object_methods): Add architecture method.
5268
5269 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5270
5271 * gdbarch.c: Regenerate.
5272 * gdbarch.h: Regenerate.
5273 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5274 (gdbarch_data): Use internal_error for the case where
5275 deprecated_set_gdbarch_data was originally needed.
5276 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5277 and use passed in obstack.
5278 (libunwind_frame_set_descr): Should no longer get back NULL from
5279 gdbarch_data.
5280 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5281 type.
5282 * user-regs.c (user_regs_init): Update parameters, and use passed
5283 in obstack.
5284 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5285 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5286
5287 2020-07-06 Tom de Vries <tdevries@suse.de>
5288
5289 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5290 End-Of-Sequence in lte_is_less_than.
5291 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5292 "gdb: Don't reorder line table entries too much when sorting".
5293
5294 2020-07-06 Tom de Vries <tdevries@suse.de>
5295
5296 PR tui/26205
5297 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5298
5299 2020-07-05 Tom de Vries <tdevries@suse.de>
5300
5301 PR build/26187
5302 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5303 std::uncaught_exceptions instead of deprecated
5304 std::uncaught_exception.
5305
5306 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5307
5308 * macroexp.h (macro_stringify): Return
5309 gdb::unique_xmalloc_ptr<char>.
5310 * macroexp.c (macro_stringify): Likewise.
5311 * macrotab.c (fixup_definition): Update.
5312
5313 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5314
5315 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5316 (lex_one_token): Update.
5317 * macroexp.c (struct macro_buffer) <release>: Return
5318 gdb::unique_xmalloc_ptr<char>.
5319 (macro_stringify): Update.
5320 (macro_expand): Update.
5321 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5322 * macroexp.h (macro_expand_next): Likewise.
5323
5324 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5325
5326 * macroexp.h (macro_lookup_ftype): Remove.
5327 (macro_expand, macro_expand_once, macro_expand_next): Remove
5328 lookup function parameters, add scope parameter.
5329 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5330 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5331 * macroscope.h (standard_macro_lookup): Change parameter type
5332 to macro_scope.
5333 * macroscope.c (standard_macro_lookup): Likewise.
5334 * c-exp.y (lex_one_token): Update.
5335 * macrocmd.c (macro_expand_command): Likewise.
5336 (macro_expand_once_command): Likewise.
5337
5338 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5339
5340 * inf-loop.c (inferior_event_handler): Remove client_data param.
5341 * inf-loop.h (inferior_event_handler): Likewise.
5342 * infcmd.c (step_1): Adjust.
5343 * infrun.c (proceed): Adjust.
5344 (fetch_inferior_event): Remove client_data param.
5345 (infrun_async_inferior_event_handler): Adjust.
5346 * infrun.h (fetch_inferior_event): Remove `void *` param.
5347 * linux-nat.c (handle_target_event): Adjust.
5348 * record-btrace.c (record_btrace_handle_async_inferior_event):
5349 Adjust.
5350 * record-full.c (record_full_async_inferior_event_handler):
5351 Adjust.
5352 * remote.c (remote_async_inferior_event_handler): Adjust.
5353
5354 2020-07-01 Tom Tromey <tom@tromey.com>
5355
5356 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5357 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5358
5359 2020-07-01 Tom Tromey <tom@tromey.com>
5360
5361 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5362 tui_gen_win_info.
5363 (tui_win_info::make_window): Merge with
5364 tui_gen_win_info::make_window.
5365 (tui_win_info::make_visible): Move from tui_gen_win_info.
5366 * tui/tui-win.c (tui_win_info::max_width): Move from
5367 tui_gen_win_info.
5368 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5369 type.
5370 <window_factory>: Likewise.
5371 * tui/tui-layout.c (tui_win_info::resize): Move from
5372 tui_gen_win_info.
5373 (make_standard_window): Change return type.
5374 (get_locator_window, tui_get_window_by_name): Likewise.
5375 (tui_layout_window::apply): Remove a cast.
5376 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5377 (struct tui_win_info): Merge with tui_gen_win_info.
5378 (struct tui_gen_win_info): Remove.
5379
5380 2020-07-01 Tom Tromey <tom@tromey.com>
5381
5382 * tui/tui-stack.h (struct tui_locator_window): Derive from
5383 tui_win_info.
5384 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5385 <can_box>: New method.
5386
5387 2020-07-01 Tom Tromey <tom@tromey.com>
5388
5389 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5390
5391 2020-07-01 Tom Tromey <tom@tromey.com>
5392
5393 * tui/tui-regs.c (tui_data_window::display_registers_from)
5394 (tui_data_window::display_registers_from)
5395 (tui_data_window::first_data_item_displayed)
5396 (tui_data_window::delete_data_content_windows): Update.
5397 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5398 Remove.
5399 (tui_data_window::check_register_values): Update.
5400 (tui_data_item_window::rerender): Add parameters. Update.
5401 (tui_data_item_window::refresh_window): Remove.
5402 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5403 virtual.
5404 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5405 tui_gen_win_info.
5406 <refresh_window, max_height, min_height>: Remove.
5407 <rerender>: Add parameters.
5408 <x, y, visible>: New members.
5409 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5410 <m_item_width>: New member.
5411
5412 2020-07-01 Tom Tromey <tom@tromey.com>
5413
5414 * tui/tui-regs.c (tui_data_window::show_register_group)
5415 (tui_data_window::check_register_values): Update.
5416 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5417 from item_no.
5418
5419 2020-07-01 Tom Tromey <tom@tromey.com>
5420
5421 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5422 useless "if".
5423
5424 2020-07-01 Tom Tromey <tom@tromey.com>
5425
5426 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5427 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5428
5429 2020-07-01 Tom Tromey <tom@tromey.com>
5430
5431 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5432 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5433 (struct tui_line_or_address): Move from tui-data.h.
5434 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5435 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5436 (tui_cmd_window, tui_source_window_base, tui_source_window)
5437 (tui_disasm_window): Don't declare.
5438 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5439 to tui-winsource.h.
5440 (SINGLE_KEY): Move to tui-stack.c.
5441
5442 2020-07-01 Tom Tromey <tom@tromey.com>
5443
5444 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5445 std::string.
5446 * tui/tui-regs.c (class tab_expansion_file): New.
5447 (tab_expansion_file::write): New method.
5448 (tui_register_format): Change return type. Use
5449 tab_expansion_file.
5450 (tui_get_register, tui_data_window::display_registers_from)
5451 (tui_data_item_window::rerender): Update.
5452 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5453 * tui/tui-io.c (tui_expand_tabs): Remove.
5454
5455 2020-07-01 Tom Tromey <tom@tromey.com>
5456
5457 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5458
5459 2020-07-01 Fangrui Song <maskray@google.com>
5460
5461 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5462
5463 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5464
5465 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5466 forms for DW_AT_associated and DW_AT_allocated attributes,
5467 which is already checked in function attr_to_dynamic_prop.
5468
5469 2020-06-30 Tom Tromey <tromey@adacore.com>
5470
5471 * dwarf2/read.c (quirk_rust_enum): Correctly call
5472 alloc_rust_variant for default-less enum.
5473
5474 2020-06-30 Tom Tromey <tromey@adacore.com>
5475
5476 PR build/26183:
5477 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5478 gdb::to_string.
5479
5480 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5481
5482 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5483 * gdbarch.h: Re-generate.
5484
5485 2020-06-28 Tom Tromey <tom@tromey.com>
5486
5487 * command.h (cmd_types): Remove.
5488 (cmd_type): Don't declare.
5489 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5490 typedef.
5491 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5492 * cli/cli-decode.c (cmd_type): Remove.
5493
5494 2020-06-27 Pedro Alves <palves@redhat.com>
5495
5496 * fork-child.c (prefork_hook): Adjust.
5497 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5498 Delete.
5499 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5500 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5501 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5502 Remove declarations.
5503 (struct inferior) <set_tty, tty>: New methods.
5504 (struct inferior) <terminal>: Rename to ...
5505 (struct inferior) <m_terminal>: ... this and make private.
5506 * main.c (captured_main_1): Adjust.
5507 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5508 (mi_cmd_inferior_tty_show): Adjust.
5509 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5510 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5511
5512 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5513
5514 * configure.ac: Add --enable-libctf: handle --disable-static
5515 properly.
5516 * acinclude.m4: sinclude ../config/enable.m4.
5517 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5518 (LIBCTF): Substitute in.
5519 (CTF_DEPS): New, likewise.
5520 (CLIBS): libctf needs symbols from libbfd: move earlier.
5521 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5522 flags.
5523 * ctfread.c: Surround in ENABLE_LIBCTF.
5524 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5525 * configure: Regenerate.
5526 * config.in: Likewise.
5527
5528 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5529
5530 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5531
5532 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5533
5534 * inferior.h (struct inferior) <terminal>: Change type to
5535 gdb::unique_xmalloc_ptr<char>.
5536 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5537 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5538 field, adjust to unique pointer.
5539 (get_inferior_io_terminal): Adjust to unique pointer.
5540
5541 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5542
5543 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5544 registers, not just the known core set of registers.
5545
5546 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5547
5548 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5549 fflags, frm, and fcsr registers.
5550 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5551 restore groups.
5552 (riscv_tdesc_unknown_reg): New function.
5553 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5554 tdesc_use_registers.
5555 * riscv-tdep.h (struct gdbarch_tdep): Add
5556 unknown_csrs_first_regnum, unknown_csrs_count,
5557 duplicate_fflags_regnum, duplicate_frm_regnum, and
5558 duplicate_fcsr_regnum fields.
5559
5560 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5561
5562 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5563 callback, use the callback (when not null) to help number unknown
5564 registers.
5565 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5566 (tdesc_use_registers): Add extra parameter to declaration.
5567
5568 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5569
5570 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5571 in the file.
5572 (class riscv_pending_register_alias): Likewise.
5573 (riscv_register_feature::register_info): Change 'required_p' field
5574 to 'required', and change its type. Add 'check' member function.
5575 (riscv_register_feature::register_info::check): Define new member
5576 function.
5577 (riscv_xreg_feature): Change initialisation of 'required' field.
5578 (riscv_freg_feature): Likewise.
5579 (riscv_virtual_feature): Likewise.
5580 (riscv_csr_feature): Likewise.
5581 (riscv_check_tdesc_feature): Take extra parameter, the csr
5582 tdesc_feature, rewrite the function to use the new
5583 riscv_register_feature::register_info::check function.
5584 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5585
5586 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5587
5588 * features/Makefile: Remove all references to the deleted files
5589 below.
5590 * features/riscv/32bit-csr.c: Deleted.
5591 * features/riscv/32bit-csr.xml: Deleted.
5592 * features/riscv/64bit-csr.c: Deleted.
5593 * features/riscv/64bit-csr.xml: Deleted.
5594 * features/riscv/rebuild-csr-xml.sh: Deleted.
5595
5596 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5597
5598 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5599 whitespace error for declaration of names member variable.
5600 (struct riscv_register_feature): Add new prefer_first_name member
5601 variable, and fix whitespace error in declaration of registers.
5602 (riscv_xreg_feature): Initialize prefer_first_name field.
5603 (riscv_freg_feature): Likewise.
5604 (riscv_virtual_feature): Likewise.
5605 (riscv_csr_feature): Likewise.
5606 (riscv_register_name): Expand on comments. Remove register name
5607 modifications for CSR and virtual registers.
5608
5609 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5610
5611 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5612 errors.
5613
5614 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5615
5616 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5617 riscv-opc.h.
5618 (class riscv_pending_register_alias): New class.
5619 (riscv_check_tdesc_feature): Take vector of pending aliases and
5620 populate it as appropriate.
5621 (riscv_setup_register_aliases): Delete.
5622 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5623 to riscv_check_tdesc_feature in all cases. Use the vector to
5624 create the register aliases.
5625
5626 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5627
5628 * sol2-tdep.c (sol2_static_transform_name): Remove.
5629 (sol2_init_abi): Don't register it.
5630 * gdbarch.sh (static_transform_name): Remove.
5631 * gdbarch.c, gdbarch.h: Regenerate.
5632
5633 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5634 gdbarch_static_transform_name.
5635 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5636 * stabsread.c (define_symbol) <'X'>: Remove.
5637 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5638 handling.
5639 <'V'>: Likewise.
5640 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5641 <'S'>: Remove call to gdbarch_static_transform_name.
5642
5643 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5644
5645 * procfs.c (procfs_pre_trace): New function.
5646 (procfs_target::create_inferior): Pass it to fork_inferior.
5647
5648 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5649
5650 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5651 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5652 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5653 sol2-tdep.o, sparc-sol2-tdep.o.
5654 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5655 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5656 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5657 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5658
5659 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5660
5661 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5662 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5663 Call sol2_init_abi.
5664 Remove calls to set_gdbarch_skip_solib_resolver,
5665 set_gdbarch_core_pid_to_str.
5666 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5667 (i386_sol2_static_transform_name): Remove.
5668 (i386_sol2_init_abi): Call sol2_init_abi.
5669 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5670 set_gdbarch_static_transform_name,
5671 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5672 Use sol2_sigtramp_p.
5673 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5674 (sol2_sigtramp_p): New function.
5675 (sol2_static_transform_name): New function.
5676 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5677 (sol2_init_abi): New function.
5678 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5679 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5680 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5681 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5682 (sparc_sol2_static_transform_name): Remove.
5683 (sparc32_sol2_init_abi): Call sol2_init_abi.
5684 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5685 set_gdbarch_static_transform_name,
5686 set_gdbarch_skip_solib_resolver,
5687 set_gdbarch_core_pid_to_str.
5688 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5689 (sparc_sol2_static_transform_name): Remove
5690 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5691 call sol2_sigtramp_p.
5692 (sparc64_sol2_init_abi): Call sol2_init_abi.
5693 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5694 set_gdbarch_static_transform_name,
5695 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5696
5697 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5698
5699 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5700 * exec.c (validate_exec_file): If from_tty, set both
5701 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5702 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5703 and from_tty, unconditionally ask a confirmation.
5704
5705 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5706
5707 * target-descriptions.c (tdesc_architecture_name): Protect against
5708 NULL pointer dereference.
5709 (maint_print_xml_tdesc_cmd): New function.
5710 (_initialize_target_descriptions): Register new 'maint print
5711 xml-tdesc' command and give it the filename completer.
5712 * NEWS: Mention new 'maint print xml-tdesc' command.
5713
5714 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5715
5716 * target-descriptions.c (class tdesc_compatible_info): New class.
5717 (struct target_desc): Change type of compatible vector.
5718 (tdesc_compatible_p): Update for change in type of
5719 target_desc::compatible.
5720 (tdesc_compatible_info_list): New function.
5721 (tdesc_compatible_info_arch_name): New function.
5722 (tdesc_add_compatible): Update for change in type of
5723 target_desc::compatible.
5724 (print_c_tdesc::visit_pre): Likewise.
5725
5726 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5727
5728 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5729 whitespace to underscore.
5730 (maint_print_c_tdesc_cmd): Use fake filename for target
5731 descriptions that came from the target.
5732 (_initialize_target_descriptions): Add filename command completion
5733 for 'maint print c-tdesc'.
5734
5735 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5736
5737 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5738 lines.
5739
5740 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5741
5742 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5743 lines.
5744 (dwarf2_find_location_expression): Likewise.
5745 (call_site_parameter_matches): Likewise.
5746 (dwarf2_compile_expr_to_ax): Likewise.
5747 (disassemble_dwarf_expression): Likewise.
5748 (loclist_describe_location): Likewise.
5749
5750 2020-06-23 Pedro Alves <palves@redhat.com>
5751
5752 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5753 progspace-and-thread.h. Include scoped-mock-context.h instead.
5754 (register_to_value_test): Use scoped_mock_context.
5755 * regcache.c: Include "scoped-mock-context.h".
5756 (cooked_read_test): Don't error out if a target is already pushed.
5757 Use scoped_mock_context. Adjust.
5758 * scoped-mock-context.h: New file.
5759
5760 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5761
5762 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5763 initializer.
5764 (ada_language::is_string_type_p): New member function.
5765 * c-lang.c (c_language_data): Delete la_is_string_type_p
5766 initializer.
5767 (cplus_language_data): Likewise.
5768 (asm_language_data): Likewise.
5769 (minimal_language_data): Likewise.
5770 * d-lang.c (d_language_data): Likewise.
5771 * f-lang.c (f_is_string_type_p): Delete function, implementation
5772 moved to f_language::is_string_type_p.
5773 (f_language_data): Delete la_is_string_type_p initializer.
5774 (f_language::is_string_type_p): New member function,
5775 implementation from f_is_string_type_p.
5776 * go-lang.c (go_is_string_type_p): Delete function, implementation
5777 moved to go_language::is_string_type_p.
5778 (go_language_data): Delete la_is_string_type_p initializer.
5779 (go_language::is_string_type_p): New member function,
5780 implementation from go_is_string_type_p.
5781 * language.c (language_defn::is_string_type_p): Define new member
5782 function.
5783 (default_is_string_type_p): Make static, add comment copied from
5784 header file.
5785 (unknown_language_data): Delete la_is_string_type_p initializer.
5786 (unknown_language::is_string_type_p): New member function.
5787 (auto_language_data): Delete la_is_string_type_p initializer.
5788 (auto_language::is_string_type_p): New member function.
5789 * language.h (language_data): Delete la_is_string_type_p field.
5790 (language_defn::is_string_type_p): Declare new function.
5791 (default_is_string_type_p): Delete desclaration, move comment to
5792 definition.
5793 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5794 moved to m2_language::is_string_type_p.
5795 (m2_language_data): Delete la_is_string_type_p initializer.
5796 (m2_language::is_string_type_p): New member function,
5797 implementation from m2_is_string_type_p.
5798 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5799 initializer.
5800 * opencl-lang.c (opencl_language_data): Likewise.
5801 * p-lang.c (pascal_is_string_type_p): Delete function,
5802 implementation moved to pascal_language::is_string_type_p.
5803 (pascal_language_data): Delete la_is_string_type_p initializer.
5804 (pascal_language::is_string_type_p): New member function,
5805 implementation from pascal_is_string_type_p.
5806 * rust-lang.c (rust_is_string_type_p): Delete function,
5807 implementation moved to rust_language::is_string_type_p.
5808 (rust_language_data): Delete la_is_string_type_p initializer.
5809 (rust_language::is_string_type_p): New member function,
5810 implementation from rust_is_string_type_p.
5811 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5812 is_string_type_p.
5813
5814 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5815
5816 * ada-lang.c (ada_language_data): Delete la_print_typedef
5817 initializer.
5818 (ada_language::print_typedef): New member function.
5819 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5820 (cplus_language_data): Likewise.
5821 (asm_language_data): Likewise.
5822 (minimal_language_data): Likewise.
5823 * d-lang.c (d_language_data): Likewise.
5824 * f-lang.c (f_language_data): Likewise.
5825 (f_language::print_typedef): New member function.
5826 * go-lang.c (go_language_data): Delete la_print_typedef
5827 initializer.
5828 * language.c (language_defn::print_typedef): Define member
5829 function.
5830 (unknown_language_data): Delete la_print_typedef initializer.
5831 (unknown_language::print_typedef): New member function.
5832 (auto_language_data): Delete la_print_typedef initializer.
5833 (auto_language::print_typedef): New member function.
5834 * language.h (language_data): Delete la_print_typedef field.
5835 (language_defn::print_typedef): Declare new member function.
5836 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5837 (default_print_typedef): Delete declaration.
5838 * m2-lang.c (m2_language_data): Delete la_print_typedef
5839 initializer.
5840 (m2_language::print_typedef): New member function.
5841 * objc-lang.c (objc_language_data): Delete la_print_typedef
5842 initializer.
5843 * opencl-lang.c (opencl_language_data): Likewise.
5844 * p-lang.c (pascal_language_data): Likewise.
5845 (pascal_language::print_typedef): New member function.
5846 * rust-lang.c (rust_print_typedef): Delete function,
5847 implementation moved to rust_language::print_typedef.
5848 (rust_language): Delete la_print_typedef initializer.
5849 (rust_language::print_typedef): New member function,
5850 implementation from rust_print_typedef.
5851 * typeprint.c (default_print_typedef): Delete.
5852
5853 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5854
5855 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5856 (ada_language::printstr): New member function.
5857 * c-lang.c (c_language_data): Delete la_printstr initializer.
5858 (cplus_language_data): Likewise.
5859 (asm_language_data): Likewise.
5860 (minimal_language_data): Likewise.
5861 * d-lang.c (d_language_data): Likewise.
5862 * f-lang.c (f_printstr): Rename to f_language::printstr.
5863 (f_language_data): Delete la_printstr initializer.
5864 (f_language::printstr): New member function, implementation from
5865 f_printstr.
5866 * go-lang.c (go_language_data): Delete la_printstr initializer.
5867 * language.c (language_defn::printstr): Define new member
5868 function.
5869 (unk_lang_printstr): Delete.
5870 (unknown_language_data): Delete la_printstr initializer.
5871 (unknown_language::printstr): New member function.
5872 (auto_language_data): Delete la_printstr initializer.
5873 (auto_language::printstr): New member function.
5874 * language.h (language_data): Delete la_printstr field.
5875 (language_defn::printstr): Declare new member function.
5876 (LA_PRINT_STRING): Update call to printstr.
5877 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5878 (m2_language_data): Delete la_printstr initializer.
5879 (m2_language::printstr): New member function, implementation from
5880 m2_printstr.
5881 * objc-lang.c (objc_language_data): Delete la_printstr
5882 initializer.
5883 * opencl-lang.c (opencl_language_data): Likewise.
5884 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5885 (pascal_language_data): Delete la_printstr initializer.
5886 (pascal_language::printstr): New member function, implementation
5887 from pascal_printstr.
5888 * p-lang.h (pascal_printstr): Delete declaration.
5889 * rust-lang.c (rust_printstr): Update header comment.
5890 (rust_language_data): Delete la_printstr initializer.
5891 (rust_language::printstr): New member function.
5892
5893 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5894
5895 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5896 (ada_language::printchar): New member function.
5897 * c-lang.c (c_language_data): Delete la_printchar initializer.
5898 (cplus_language_data): Likewise.
5899 (asm_language_data): Likewise.
5900 (minimal_language_data): Likewise.
5901 * d-lang.c (d_language_data): Likewise.
5902 * f-lang.c (f_printchar): Rename to f_language::printchar.
5903 (f_language_data): Delete la_printchar initializer.
5904 (f_language::printchar): New member function, implementation from
5905 f_printchar.
5906 * go-lang.c (go_language_data): Delete la_printchar initializer.
5907 * language.c (unk_lang_printchar): Delete.
5908 (language_defn::printchar): Define new member function.
5909 (unknown_language_data): Delete la_printchar initializer.
5910 (unknown_language::printchar): New member function.
5911 (auto_language_data): Delete la_printchar initializer.
5912 (auto_language::printchar): New member function.
5913 * language.h (language_data): Delete la_printchar field.
5914 (language_defn::printchar): Declare new member function.
5915 (LA_PRINT_CHAR): Update call to printchar.
5916 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5917 (m2_language::printchar): New member function.
5918 * objc-lang.c (objc_language_data): Delete la_printchar
5919 initializer.
5920 * opencl-lang.c (opencl_language_data): Likewise.
5921 * p-lang.c (pascal_language_data): Delete la_printchar
5922 initializer.
5923 (pascal_language::printchar): New member function.
5924 * rust-lang.c (rust_printchar): Rename to
5925 rust_language::printchar.
5926 (rust_language_data): Delete la_printchar initializer.
5927 (rust_language::printchar): New member function, implementation
5928 from rust_printchar.
5929
5930 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5931
5932 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5933 (ada_language_data): Delete la_emitchar initializer.
5934 (ada_language::emitchar): New member function, implementation from
5935 emit_char.
5936 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5937 (cplus_language_data): Likewise.
5938 (asm_language_data): Likewise.
5939 (minimal_language_data): Likewise.
5940 * d-lang.c (d_language_data): Likewise.
5941 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5942 (f_language_data): Delete la_emitchar initializer.
5943 (f_language::emitchar): New member function, implementation from
5944 f_emit_char.
5945 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5946 * language.c (unk_lang_emit_char): Delete.
5947 (language_defn::emitchar): New member function definition.
5948 (unknown_language_data): Delete la_emitchar initializer.
5949 (unknown_language::emitchar): New member function.
5950 (auto_language_data): Delete la_emitchar initializer.
5951 (auto_language::emitchar): New member function.
5952 * language.h (language_data): Delete la_emitchar field.
5953 (language_defn::emitchar): New member field declaration.
5954 (LA_EMIT_CHAR): Update call to emitchar.
5955 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5956 (m2_language_data): Delete la_emitchar initializer.
5957 (m2_language::emitchar): New member function, implementation from
5958 m2_emit_char.
5959 * objc-lang.c (objc_language_data): Delete la_emitchar
5960 initializer.
5961 * opencl-lang.c (opencl_language_data): Likewise.
5962 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5963 (pascal_language_data): Delete la_emitchar initializer.
5964 (pascal_language::emitchar): New member function, implementation
5965 from pascal_emit_char.
5966 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5967 (rust_language_data): Delete la_emitchar initializer.
5968 (rust_language::emitchar): New member function, implementation
5969 from rust_emitchar.
5970
5971 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5972
5973 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5974 (ada_language_data): Delete la_post_parser initializer.
5975 (ada_language::post_parser): New member function.
5976 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5977 (cplus_language_data): Likewise.
5978 (asm_language_data): Likewise.
5979 (minimal_language_data): Likewise.
5980 * d-lang.c (d_language_data): Likewise.
5981 * f-lang.c (f_language_data): Likewise.
5982 * go-lang.c (go_language_data): Likewise.
5983 * language.c (unknown_language_data): Likewise.
5984 (auto_language_data): Likewise.
5985 * language.h (language_data): Delete la_post_parser field.
5986 (language_defn::post_parser): New member function.
5987 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5988 * objc-lang.c (objc_language_data): Likewise.
5989 * opencl-lang.c (opencl_language_data): Likewise.
5990 * p-lang.c (pascal_language_data): Likewise.
5991 * parse.c (parse_exp_in_context): Update call to post_parser.
5992 (null_post_parser): Delete definition.
5993 * parser-defs.h (null_post_parser): Delete declaration.
5994 * rust-lang.c (rust_language_data): Delete la_post_parser
5995 initializer.
5996
5997 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5998
5999 * ada-lang.c (parse): Rename to ada_language::parser.
6000 (ada_language_data): Delete la_parser initializer.
6001 (ada_language::parser): New member function, implementation from
6002 parse.
6003 * c-lang.c (c_language_data): Delete la_parser initializer.
6004 (cplus_language_data): Likewise.
6005 (asm_language_data): Likewise.
6006 (minimal_language_data): Likewise.
6007 * d-lang.c (d_language_data): Likewise.
6008 (d_language::parser): New member function.
6009 * f-lang.c (f_language_data): Delete la_parser initializer.
6010 (f_language::parser): New member function.
6011 * go-lang.c (go_language_data): Delete la_parser initializer.
6012 (go_language::parser): New member function.
6013 * language.c (unk_lang_parser): Delete.
6014 (language_defn::parser): Define new member function.
6015 (unknown_language_data): Delete la_parser initializer.
6016 (unknown_language::parser): New member function.
6017 (auto_language_data): Delete la_parser initializer.
6018 (auto_language::parser): New member function.
6019 * language.h (language_data): Delete la_parser field.
6020 (language_defn::parser): Declare new member function.
6021 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6022 (m2_language::parser): New member function.
6023 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6024 * opencl-lang.c (opencl_language_data): Likewise.
6025 * p-lang.c (pascal_language_data): Likewise.
6026 (pascal_language::parser): New member function.
6027 * parse.c (parse_exp_in_context): Update call to parser.
6028 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6029 (rust_language::parser): New member function.
6030
6031 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6032
6033 * top.c (print_gdb_configuration): Print --with-python-libdir
6034 configuration value.
6035
6036 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6037
6038 * NEWS: Mention change to the alias command.
6039
6040 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6041
6042 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6043 (alias_command_completer)
6044 (make_alias_options_def_group): New functions.
6045 (alias_opts, alias_option_defs): New struct and array.
6046 (alias_usage_error): Update usage.
6047 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6048 Use option framework.
6049 (_initialize_cli_cmds): Update alias command help.
6050 Update aliases command help.
6051 (show_user):
6052 Add NULL for new default_args lookup_cmd argument.
6053 (valid_command_p): Rename to validate_aliased_command.
6054 Add NULL for new default_args lookup_cmd argument. Verify that the
6055 aliased_command has no default args.
6056 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6057 (lookup_cmd_1, lookup_cmd): New argument default_args.
6058 (add_alias_cmd):
6059 Add NULL for new default_args lookup_cmd argument.
6060 (print_help_for_command): Show default args under the layout
6061 alias some_alias = some_aliased_cmd some_alias_default_arg.
6062 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6063 xfree default_args in destructor.
6064 * cli/cli-script.c (process_next_line, do_define_command):
6065 Add NULL for new default_args lookup_cmd argument.
6066 * command.h: Declare new default_args argument in lookup_cmd
6067 and lookup_cmd_1.
6068 * completer.c (complete_line_internal_1):
6069 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6070 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6071 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6072 Likewise.
6073 * infcmd.c (_initialize_infcmd): Likewise.
6074 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6075 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6076 * python/py-param.c (add_setshow_generic): Likewise.
6077 * remote.c (_initialize_remote): Likewise.
6078 * top.c (execute_command): Prepend default_args if command has some.
6079 (set_verbose):
6080 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6081 * tracepoint.c (validate_actionline, encode_actions_1):
6082 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6083
6084 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6085
6086 * jit.c (jit_read_descriptor): Use bool as the return type.
6087 (jit_breakpoint_re_set_internal): Use bool as the return type.
6088 Invert the return value logic; return true if the jit breakpoint
6089 has been successfully initialized.
6090 (jit_inferior_init): Update the call to
6091 jit_breakpoint_re_set_internal.
6092
6093 2020-06-22 Pedro Alves <palves@redhat.com>
6094
6095 PR gdb/25939
6096 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6097 Use the current inferior instead. Don't return
6098 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6099 wait again.
6100 * sol-thread.c (sol_thread_target::wait): Don't reference
6101 inferior_ptid.
6102 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6103 (sol_update_thread_list_callback): Use the current inferior's pid
6104 instead of inferior_ptid.
6105
6106 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6107
6108 * procfs.c: Cleanup many comments.
6109
6110 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6111 (AFTER_WATCHFLAG): Replace by value.
6112
6113 (MAIN_PROC_NAME_FORMAT): Inline ...
6114 (create_procinfo): ... here.
6115
6116 (procfs_debug_inferior): Remove SYS_exec handling.
6117 (syscall_is_exec): Likewise.
6118 (procfs_set_exec_trap): Likewise.
6119
6120 (syscall_is_lwp_exit): Inline in callers.
6121 (syscall_is_exit): Likewise.
6122 (syscall_is_exec): Likewise.
6123 (syscall_is_lwp_create): Likewise.
6124
6125 (invalidate_cache): Remove #if 0 code.
6126
6127 (make_signal_thread_runnable): Remove.
6128 (procfs_target::resume): Remove #if 0 code.
6129
6130 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6131
6132 PR gdb/25939
6133 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6134 call ...
6135 (procfs_target::create_inferior): ... here.
6136
6137 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6138
6139 * exec.c (validate_exec_file): Ensure the build-id is up to
6140 date by calling reopen_exec_file (that checks file timestamp
6141 to decide to re-read the file).
6142
6143 2020-06-18 Pedro Alves <palves@redhat.com>
6144
6145 PR gdb/25412
6146 * gdbthread.h (delete_thread, delete_thread_silent)
6147 (find_thread_ptid): Update comments.
6148 * thread.c (current_thread_): New global.
6149 (is_current_thread): Move higher, and reimplement.
6150 (inferior_thread): Reimplement.
6151 (set_thread_exited): Use bool. Add assertions.
6152 (add_thread_silent): Simplify thread-reuse handling by always
6153 calling delete_thread.
6154 (delete_thread): Remove intro comment.
6155 (find_thread_ptid): Skip exited threads.
6156 (switch_to_thread_no_regs): Write to current_thread_.
6157 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6158 INFERIOR_PTID. Clear current_thread_.
6159
6160 2020-06-18 Pedro Alves <palves@redhat.com>
6161
6162 * aix-thread.c (pd_update): Use switch_to_thread.
6163
6164 2020-06-18 Pedro Alves <palves@redhat.com>
6165
6166 * ravenscar-thread.c (ravenscar_thread_target): Update.
6167 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6168 (ravenscar_thread_target::add_active_thread): ... this. Don't
6169 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6170 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6171
6172 2020-06-18 Pedro Alves <palves@redhat.com>
6173
6174 * nat/windows-nat.c (current_windows_thread): Remove.
6175 * nat/windows-nat.h (current_windows_thread): Remove.
6176 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6177 Adjust.
6178 (display_selectors): Adjust to fetch the current
6179 windows_thread_info based on inferior_ptid.
6180 (fake_create_process): No longer write to current_windows_thread.
6181 (windows_nat_target::get_windows_debug_event):
6182 Don't set inferior_ptid or current_windows_thread.
6183 (windows_nat_target::wait): Adjust to not rely on
6184 current_windows_thread.
6185 (do_initial_windows_stuff): Now a method of windows_nat_target.
6186 Switch to the last_ptid thread.
6187 (windows_nat_target::attach): Adjust.
6188 (windows_nat_target::detach): Use switch_to_no_thread instead of
6189 writing to inferior_ptid directly.
6190 (windows_nat_target::create_inferior): Adjust.
6191
6192 2020-06-18 Pedro Alves <palves@redhat.com>
6193
6194 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6195
6196 2020-06-18 Pedro Alves <palves@redhat.com>
6197
6198 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6199 after creating it, instead of writing to inferior_ptid. Don't
6200 write to inferior_ptid.
6201
6202 2020-06-18 Pedro Alves <palves@redhat.com>
6203
6204 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6205
6206 2020-06-18 Pedro Alves <palves@redhat.com>
6207
6208 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6209 it, instead of writing to inferior_ptid.
6210
6211 2020-06-18 Pedro Alves <palves@redhat.com>
6212
6213 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6214 to inferior_ptid.
6215
6216 2020-06-18 Pedro Alves <palves@redhat.com>
6217
6218 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6219 instead of writing to inferior_ptid directly.
6220
6221 2020-06-18 Pedro Alves <palves@redhat.com>
6222
6223 * corelow.c (core_target::close): Use switch_to_no_thread instead
6224 of writing to inferior_ptid directly.
6225 (add_to_thread_list, core_target_open): Use switch_to_thread
6226 instead of writing to inferior_ptid directly.
6227
6228 2020-06-18 Pedro Alves <palves@redhat.com>
6229
6230 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6231 inferior_ptid.
6232 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6233 inferior_ptid.
6234 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6235 inferior_ptid directly.
6236 (darwin_nat_target::init_thread_list): Switch to thread, instead
6237 of writing to inferior_ptid.
6238 (darwin_nat_target::attach): Don't write to inferior_ptid.
6239 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6240
6241 2020-06-18 Pedro Alves <palves@redhat.com>
6242
6243 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6244 thread.
6245 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6246 Instead use switch_to_thread.
6247 (gnu_nat_target::detach): Use switch_to_no_thread
6248 instead of writing to inferior_ptid directly. Used passed-in
6249 inferior instead of looking up the inferior by pid.
6250
6251 2020-06-18 Pedro Alves <palves@redhat.com>
6252
6253 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6254 inferior_ptid.
6255
6256 2020-06-18 Pedro Alves <palves@redhat.com>
6257
6258 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6259 inferior_ptid.
6260 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6261 thread.
6262 (nto_procfs_target::detach): Avoid referencing
6263 inferior_ptid. Use switch_to_no_thread instead of writing to
6264 inferior_ptid directly.
6265 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6266 instead of writing to inferior_ptid directly.
6267 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6268 to thread.
6269
6270 2020-06-18 Pedro Alves <palves@redhat.com>
6271
6272 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6273 after creating it, instead of writing to inferior_ptid.
6274 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6275 to inferior_ptid directly.
6276 (gdbsim_target::wait): Don't write to inferior_ptid.
6277
6278 2020-06-18 Pedro Alves <palves@redhat.com>
6279
6280 * remote.c (remote_target::remote_notice_new_inferior): Use
6281 switch_to_thread instead of writing to inferior_ptid directly.
6282 (remote_target::add_current_inferior_and_thread): Use
6283 switch_to_no_thread instead of writing to inferior_ptid directly.
6284 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6285 and switch_to_thread instead of using set_current_inferior or
6286 writing to inferior_ptid directly.
6287
6288 2020-06-18 Pedro Alves <palves@redhat.com>
6289
6290 * tracectf.c (ctf_target_open): Switch to added thread instead of
6291 writing to inferior_ptid directly.
6292 (ctf_target::close): Use switch_to_no_thread instead of writing to
6293 inferior_ptid directly.
6294
6295 2020-06-18 Pedro Alves <palves@redhat.com>
6296
6297 * tracefile-tfile.c (tfile_target_open): Don't write to
6298 inferior_ptid directly, instead switch to added thread.
6299 (tfile_target::close): Use switch_to_no_thread instead of writing
6300 to inferior_ptid directly.
6301
6302 2020-06-18 Pedro Alves <palves@redhat.com>
6303
6304 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6305 (procfs_target::detach): Use switch_to_no_thread
6306 instead of writing to inferior_ptid directly.
6307 (do_attach): Change return type to void. Switch to the added
6308 thread.
6309 (procfs_target::create_inferior): Switch to the added thread.
6310 (procfs_do_thread_registers): Don't write to inferior_ptid.
6311
6312 2020-06-18 Pedro Alves <palves@redhat.com>
6313
6314 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6315 of writing to inferior_ptid.
6316 (scoped_restore_exited_inferior): Delete.
6317 (handle_vfork_child_exec_or_exit): Simplify using
6318 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6319 instead of writing to inferior_ptid.
6320 (THREAD_STOPPED_BY): Delete.
6321 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6322 (thread_stopped_by_hw_breakpoint): Delete.
6323 (save_waitstatus): Use
6324 scoped_restore_current_thread+switch_to_thread, and call
6325 target_stopped_by_watchpoint instead of
6326 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6327 instead of thread_stopped_by_sw_breakpoint, and
6328 target_stopped_by_hw_breakpoint instead of
6329 thread_stopped_by_hw_breakpoint.
6330 (handle_inferior_event)
6331 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6332 inferior_ptid directly, nor
6333 set_current_inferior/set_current_program_space. Use
6334 switch_to_thread / switch_to_inferior_no_thread instead.
6335
6336 2020-06-18 Pedro Alves <palves@redhat.com>
6337
6338 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6339 instead of writing to inferior_ptid.
6340
6341 2020-06-18 Pedro Alves <palves@redhat.com>
6342
6343 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6344 added thread.
6345 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6346 to the added thread.
6347 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6348 instead of writing to inferior_ptid.
6349
6350 2020-06-18 Pedro Alves <palves@redhat.com>
6351
6352 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6353 (register_to_value_test): Mock a program_space too. Heap-allocate
6354 the address space. Don't write to inferior_ptid. Use
6355 switch_to_thread instead.
6356
6357 2020-06-18 Pedro Alves <palves@redhat.com>
6358
6359 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6360 Delete.
6361 (find_signalled_thread()): New, factored out from
6362 linux_make_corefile_notes and adjusted to handle exited threads.
6363 (linux_make_corefile_notes): Adjust to use the new
6364 find_signalled_thread.
6365
6366 2020-06-18 Pedro Alves <palves@redhat.com>
6367
6368 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6369 of saving/restoring inferior_ptid.
6370
6371 2020-06-17 Tom Tromey <tom@tromey.com>
6372
6373 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6374 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6375 declare.
6376 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6377
6378 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6379
6380 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6381 of partial symtabs.
6382
6383 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6384
6385 * regformats/reg-arm.dat: Remove.
6386 * regformats/reg-bfin.dat: Remove.
6387 * regformats/reg-cris.dat: Remove.
6388 * regformats/reg-crisv32.dat: Remove.
6389 * regformats/reg-m32r.dat: Remove.
6390 * regformats/reg-tilegx.dat: Remove.
6391 * regformats/reg-tilegx32.dat: Remove.
6392
6393 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6394
6395 * features/Makefile (WHICH): Remove arm files.
6396 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6397 * regformats/arm/arm-with-neon.dat: Remove.
6398 * regformats/arm/arm-with-vfpv2.dat: Remove.
6399 * regformats/arm/arm-with-vfpv3.dat: Remove.
6400
6401 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6402
6403 * features/Makefile (XMLTOC): Remove rx.xml.
6404
6405 2020-06-17 Pedro Alves <palves@redhat.com>
6406
6407 * gdbthread.h (thread_control_state) <trap_expected> Update
6408 comments.
6409
6410 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6411
6412 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6413 ada_language::lookup_symbol_nonlocal.
6414 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6415 (ada_language::lookup_symbol_nonlocal): New member function,
6416 implementation from ada_lookup_symbol_nonlocal.
6417 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6418 initializer.
6419 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6420 initializer.
6421 (cplus_language::lookup_symbol_nonlocal): New member function.
6422 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6423 (minimal_language_data) Likewise.
6424 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6425 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6426 initializer.
6427 (d_language::lookup_symbol_nonlocal): New member function.
6428 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6429 initializer.
6430 (f_language::lookup_symbol_nonlocal): New member function.
6431 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6432 initializer.
6433 * language.c (unknown_language_data): Likewise.
6434 (auto_language_data): Likewise.
6435 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6436 field.
6437 (language_defn::lookup_symbol_nonlocal): New member function.
6438 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6439 initializer.
6440 * objc-lang.c (objc_language_data): Likewise.
6441 * opencl-lang.c (opencl_language_data): Likewise.
6442 * p-lang.c (pascal_language_data): Likewise.
6443 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6444 rust_language::lookup_symbol_nonlocal.
6445 (rust_language_data): Delete la_lookup_symbol_nonlocal
6446 initializer.
6447 (rust_language::lookup_symbol_nonlocal): New member function,
6448 implementation from rust_lookup_symbol_nonlocal.
6449 * symtab.c (lookup_symbol_aux): Update call to
6450 lookup_symbol_nonlocal.
6451 (basic_lookup_symbol_nonlocal): Rename to...
6452 (language_defn::lookup_symbol_nonlocal): ...this, and update
6453 header comment. Remove language_defn parameter, and replace with
6454 uses of `this'.
6455 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6456
6457 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6458
6459 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6460 initializer.
6461 (ada_language::value_print_inner): New member function.
6462 * c-lang.c (c_language_data): Delete la_value_print_inner
6463 initializer.
6464 (cplus_language_data): Likewise.
6465 (asm_language_data): Likewise.
6466 (minimal_language_data): Likewise.
6467 * d-lang.c (d_language_data): Likewise.
6468 (d_language::value_print_inner): New member function.
6469 * f-lang.c (f_language_data): Delete la_value_print_inner
6470 initializer.
6471 (f_language::value_print_inner): New member function.
6472 * f-lang.h (f_value_print_innner): Rename to...
6473 (f_value_print_inner): ...this (note spelling of 'inner').
6474 * f-valprint.c (f_value_print_innner): Rename to...
6475 (f_value_print_inner): ...this (note spelling of 'inner').
6476 * go-lang.c (go_language_data): Delete la_value_print_inner
6477 initializer.
6478 (go_language::value_print_inner): New member function.
6479 * language.c (language_defn::value_print_inner): Define new member
6480 function.
6481 (unk_lang_value_print_inner): Delete.
6482 (unknown_language_data): Delete la_value_print_inner initializer.
6483 (unknown_language::value_print_inner): New member function.
6484 (auto_language_data): Delete la_value_print_inner initializer.
6485 (auto_language::value_print_inner): New member function.
6486 * language.h (language_data): Delete la_value_print_inner field.
6487 (language_defn::value_print_inner): Delcare new member function.
6488 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6489 initializer.
6490 (m2_language::value_print_inner): New member function.
6491 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6492 initializer.
6493 * opencl-lang.c (opencl_language_data): Likewise.
6494 * p-lang.c (pascal_language_data): Likewise.
6495 (pascal_language::value_print_inner): New member function.
6496 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6497 initializer.
6498 (rust_language::value_print_inner): New member function.
6499 * valprint.c (do_val_print): Update call to value_print_inner.
6500
6501 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6502
6503 * ada-lang.c (ada_language_data): Delete la_value_print
6504 initializer.
6505 (ada_language::value_print): New member function.
6506 * c-lang.c (c_language_data): Delete la_value_print initializer.
6507 (cplus_language_data): Likewise.
6508 (asm_language_data): Likewise.
6509 (minimal_language_data): Likewise.
6510 * d-lang.c (d_language_data): Likewise.
6511 * f-lang.c (f_language_data): Likewise.
6512 * go-lang.c (go_language_data): Likewise.
6513 * language.c (unk_lang_value_print): Delete.
6514 (language_defn::value_print): Define new member function.
6515 (unknown_language_data): Delete la_value_print initializer.
6516 (unknown_language::value_print): New member function.
6517 (auto_language_data): Delete la_value_print initializer.
6518 (auto_language::value_print): New member function.
6519 * language.h (language_data): Delete la_value_print field.
6520 (language_defn::value_print): Declare new member function.
6521 (LA_VALUE_PRINT): Update call to value_print.
6522 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6523 * objc-lang.c (objc_language_data): Likewise.
6524 * opencl-lang.c (opencl_language_data): Likewise.
6525 * p-lang.c (pascal_language_data): Likewise.
6526 (pascal_language::value_print): New member function.
6527 * rust-lang.c (rust_language_data): Delete la_value_print
6528 initializer.
6529
6530 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6531
6532 * ada-lang.c (ada_watch_location_expression): Rename to
6533 ada_language::watch_location_expression.
6534 (ada_language_data): Delete la_watch_location_expression
6535 initializer.
6536 (ada_language::watch_location_expression): New member function,
6537 implementation from ada_watch_location_expression.
6538 * breakpoint.c (watch_command_1): Update call to
6539 watch_location_expression.
6540 * c-lang.c (c_watch_location_expression): Rename to
6541 language_defn::watch_location_expression.
6542 (c_language_data): Delete la_watch_location_expression
6543 initializer.
6544 (cplus_language_data): Likewise.
6545 (asm_language_data): Likewise.
6546 (minimal_language_data): Likewise.
6547 * c-lang.h (c_watch_location_expression): Delete declaration.
6548 * d-lang.c (d_language_data): Delete la_watch_location_expression
6549 initializer.
6550 * f-lang.c (f_language_data): Likewise.
6551 * go-lang.c (go_language_data): Likewise.
6552 * language.c (language_defn::watch_location_expression): Member
6553 function implementation from c_watch_location_expression.
6554 (unknown_language_data): Delete la_watch_location_expression
6555 initializer.
6556 (auto_language_data): Likewise.
6557 * language.h (language_data): Delete la_watch_location_expression
6558 field.
6559 (language_defn::watch_location_expression): Declare new member
6560 function.
6561 * m2-lang.c (m2_language_data): Delete
6562 la_watch_location_expression initializer.
6563 * objc-lang.c (objc_language_data): Likewise.
6564 * opencl-lang.c (opencl_language_data): Likewise.
6565 * p-lang.c (pascal_language_data): Likewise.
6566 * rust-lang.c (rust_watch_location_expression): Rename to
6567 rust_language::watch_location_expression.
6568 (rust_language_data): Delete la_watch_location_expression
6569 initializer.
6570 (rust_language::watch_location_expression): New member function,
6571 implementation from rust_watch_location_expression.
6572
6573 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6574
6575 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6576 ada_language::collect_symbol_completion_matches.
6577 (ada_language_data): Delete la_collect_symbol_completion_matches
6578 initializer.
6579 (ada_language::collect_symbol_completion_matches): New member
6580 function, implementation from
6581 ada_collect_symbol_completion_matches.
6582 * c-lang.c (c_language_data): Delete
6583 la_collect_symbol_completion_matches initializer.
6584 (cplus_language_data): Likewise.
6585 (asm_language_data): Likewise.
6586 (minimal_language_data): Likewise.
6587 * d-lang.c (d_language_data): Likewise.
6588 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6589 f_language::collect_symbol_completion_matches.
6590 (f_language_data): Delete la_collect_symbol_completion_matches
6591 initializer.
6592 (f_language::collect_symbol_completion_matches) New member
6593 function, implementation from f_collect_symbol_completion_matches.
6594 * go-lang.c (go_language_data): Delete
6595 la_collect_symbol_completion_matches initializer.
6596 * language.c (unknown_language_data): Likewise.
6597 (auto_language_data): Likewise.
6598 * language.h (language_data): Delete
6599 la_collect_symbol_completion_matches field.
6600 (language_defn::collect_symbol_completion_matches): New member
6601 function.
6602 * m2-lang.c (m2_language_data): Delete
6603 la_collect_symbol_completion_matches initializer.
6604 * objc-lang.c (objc_language_data): Likewise.
6605 * opencl-lang.c (opencl_language_data): Likewise.
6606 * p-lang.c (pascal_language_data): Likewise.
6607 * rust-lang.c (rust_language_data): Likewise.
6608 * symtab.c (default_collect_symbol_completion_matches): Delete.
6609 (collect_symbol_completion_matches): Update call to
6610 collect_symbol_completion_matches.
6611 (collect_symbol_completion_matches_type): Likewise.
6612 * symtab.h (default_collect_symbol_completion_matches): Delete
6613 declaration.
6614
6615 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6616
6617 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6618 (ada_language_data): Delete la_word_break_characters initializer.
6619 (ada_language::word_break_characters): New member function.
6620 * c-lang.c (c_language_data): Delete la_word_break_characters
6621 initializer.
6622 (cplus_language_data): Likewise.
6623 (asm_language_data): Likewise.
6624 (minimal_language_data): Likewise.
6625 * completer.c: Update global comment.
6626 (advance_to_expression_complete_word_point): Update call to
6627 word_break_characters.
6628 (complete_files_symbols): Likewise.
6629 (complete_line_internal_1): Likewise.
6630 (default_completer_handle_brkchars): Likewise.
6631 (skip_quoted_chars): Likewise.
6632 * d-lang.c (d_language_data): Delete la_word_break_characters
6633 initializer.
6634 * f-lang.c (f_word_break_characters): Delete.
6635 (f_language_data): Delete la_word_break_characters initializer.
6636 (f_language::word_break_characters): New member function.
6637 * go-lang.c (go_language_data): Delete la_word_break_characters
6638 initializer.
6639 * language.c (unknown_language_data): Likewise.
6640 (auto_language_data): Likewise.
6641 * language.h (default_word_break_characters): Move declaration to
6642 earlier in the file.
6643 (language_data): Delete la_word_break_characters field.
6644 (language_defn::word_break_characters): New member function.
6645 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6646 initializer.
6647 * objc-lang.c (objc_language_data): Likewise.
6648 * opencl-lang.c (opencl_language_data): Likewise.
6649 * p-lang.c (pascal_language_data): Likewise.
6650 * rust-lang.c (rust_language_data): Likewise.
6651
6652 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6653
6654 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6655 (ada_language_data): Delete la_get_symbol_name_matcher
6656 initializer.
6657 (language_defn::get_symbol_name_matcher_inner): New member
6658 function.
6659 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6660 initializer.
6661 (cplus_language_data): Likewise.
6662 (cplus_language::get_symbol_name_matcher_inner): New member
6663 function.
6664 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6665 (minimal_language_data): Likewise.
6666 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6667 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6668 initializer.
6669 * dictionary.c (iter_match_first_hashed): Update call to
6670 get_symbol_name_matcher.
6671 (iter_match_next_hashed): Likewise.
6672 (iter_match_next_linear): Likewise.
6673 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6674 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6675 initializer.
6676 (f_language::get_symbol_name_matcher_inner): New member function.
6677 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6678 initializer.
6679 * language.c (default_symbol_name_matcher): Update header comment,
6680 make static.
6681 (language_defn::get_symbol_name_matcher): New definition.
6682 (language_defn::get_symbol_name_matcher_inner): Likewise.
6683 (get_symbol_name_matcher): Delete.
6684 (unknown_language_data): Delete la_get_symbol_name_matcher
6685 initializer.
6686 (auto_language_data): Likewise.
6687 * language.h (language_data): Delete la_get_symbol_name_matcher
6688 field.
6689 (language_defn::get_symbol_name_matcher): New member function.
6690 (language_defn::get_symbol_name_matcher_inner): Likewise.
6691 (default_symbol_name_matcher): Delete declaration.
6692 * linespec.c (find_methods): Update call to
6693 get_symbol_name_matcher.
6694 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6695 initializer.
6696 * minsyms.c (lookup_minimal_symbol): Update call to
6697 get_symbol_name_matcher.
6698 (iterate_over_minimal_symbols): Likewise.
6699 * objc-lang.c (objc_language_data): Delete
6700 la_get_symbol_name_matcher initializer.
6701 * opencl-lang.c (opencl_language_data): Likewise.
6702 * p-lang.c (pascal_language_data): Likewise.
6703 * psymtab.c (psymbol_name_matches): Update call to
6704 get_symbol_name_matcher.
6705 * rust-lang.c (rust_language_data): Delete
6706 la_get_symbol_name_matcher initializer.
6707 * symtab.c (symbol_matches_search_name): Update call to
6708 get_symbol_name_matcher.
6709 (compare_symbol_name): Likewise.
6710
6711 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6712
6713 * ada-lang.c (ada_language_data): Delete la_compute_program
6714 initializer.
6715 * c-lang.c (c_language_data): Likewise.
6716 (c_language::compute_program): New member function.
6717 (cplus_language_data): Delete la_compute_program initializer.
6718 (cplus_language::compute_program): New member function.
6719 (asm_language_data): Delete la_compute_program initializer.
6720 (minimal_language_data): Likewise.
6721 * c-lang.h (c_compute_program): Update comment.
6722 (cplus_compute_program): Likewise.
6723 * compile/compile-c-support.c (c_compute_program): Likewise.
6724 (cplus_compute_program): Likewise.
6725 * compile/compile.c (compile_to_object): Update call to
6726 la_compute_program.
6727 * d-lang.c (d_language_data): Delete la_compute_program
6728 initializer.
6729 * f-lang.c (f_language_data): Likewise.
6730 * go-lang.c (go_language_data): Likewise.
6731 * language.c (unknown_language_data): Likewise.
6732 (auto_language_data): Likewise.
6733 * language.h (language_data): Delete la_compute_program field.
6734 (language_defn::compute_program): New member function.
6735 * m2-lang.c (m2_language_data): Delete la_compute_program
6736 initializer.
6737 * objc-lang.c (objc_language_data): Likewise.
6738 * opencl-lang.c (opencl_language_data): Likewise.
6739 * p-lang.c (pascal_language_data): Likewise.
6740 * rust-lang.c (rust_language_data): Likewise.
6741
6742 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6743
6744 * ada-lang.c (ada_language_data) Delete
6745 la_class_name_from_physname initializer.
6746 * c-lang.c (c_language_data): Likewise.
6747 (cplus_language_data): Likewise.
6748 (cplus_language::class_name_from_physname): New member function.
6749 (asm_language_data): Delete la_class_name_from_physname
6750 initializer.
6751 (minimal_language_data): Likewise.
6752 * d-lang.c (d_language_data): Likewise.
6753 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6754 method on language_defn class.
6755 (guess_full_die_structure_name): Likewise.
6756 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6757 initializer.
6758 * go-lang.c (go_language_data): Likewise.
6759 * language.c (language_class_name_from_physname): Delete.
6760 (unk_lang_class_name): Delete.
6761 (unknown_language_data): Delete la_class_name_from_physname
6762 initializer.
6763 (auto_language_data): Likewise.
6764 * language.h (language_data): Delete la_class_name_from_physname
6765 field.
6766 (language_defn::class_name_from_physname): New function.
6767 (language_class_name_from_physname): Delete declaration.
6768 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6769 initializer.
6770 * objc-lang.c (objc_language_data): Likewise.
6771 * opencl-lang.c (opencl_language_data): Likewise.
6772 * p-lang.c (pascal_language_data): Likewise.
6773 * rust-lang.c (rust_language_data): Likewise.
6774
6775 2020-06-16 Tom Tromey <tom@tromey.com>
6776
6777 * tui/tui-data.h (STATUS_NAME): New macro.
6778 * tui/tui-layout.c (tui_remove_some_windows)
6779 (initialize_known_windows, tui_register_window)
6780 (tui_layout_split::remove_windows, initialize_layouts)
6781 (tui_new_layout_command): Don't use hard-coded window names.
6782
6783 2020-06-16 Tom Tromey <tom@tromey.com>
6784
6785 PR tui/25348:
6786 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6787 tui_initialize_readline. Only run once. Call rl_initialize.
6788 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6789 tui_initialize_readline.
6790 * tui/tui-io.c (tui_setup_io): Call
6791 tui_ensure_readline_initialized.
6792 * tui/tui-interp.c (tui_interp::init): Update.
6793
6794 2020-06-16 Tom Tromey <tom@tromey.com>
6795
6796 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6797 Also preserve the status window.
6798
6799 2020-06-16 Tom Tromey <tom@tromey.com>
6800
6801 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6802 where m_window==nullptr.
6803
6804 2020-06-15 Tom Tromey <tromey@adacore.com>
6805
6806 * windows-nat.c (windows_nat::handle_output_debug_string):
6807 Update.
6808 (windows_nat::handle_ms_vc_exception): Update.
6809 * target.h (target_read_string): Change API.
6810 * target.c (target_read_string): Change API.
6811 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6812 Update.
6813 * solib-frv.c (frv_current_sos): Update.
6814 * solib-dsbt.c (dsbt_current_sos): Update.
6815 * solib-darwin.c (darwin_current_sos): Update.
6816 * linux-thread-db.c (inferior_has_bug): Update.
6817 * expprint.c (print_subexp_standard): Update.
6818 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6819 (ada_exception_message_1): Update.
6820
6821 2020-06-15 Tom Tromey <tromey@adacore.com>
6822
6823 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6824
6825 2020-06-15 Tom Tromey <tromey@adacore.com>
6826
6827 * valprint.c (read_string): Update comment.
6828 * target.c (MIN): Remove.
6829 (target_read_string): Rewrite.
6830
6831 2020-06-15 Tom Tromey <tromey@adacore.com>
6832
6833 * corefile.c (read_memory_string): Remove.
6834 * ada-valprint.c (ada_value_print_ptr): Update.
6835 * ada-lang.h (ada_tag_name): Change return type.
6836 * ada-lang.c (type_from_tag): Update.
6837 (ada_tag_name_from_tsd): Change return type. Use
6838 target_read_string.
6839 (ada_tag_name): Likewise.
6840 * gdbcore.h (read_memory_string): Don't declare.
6841
6842 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6843
6844 * symtab.c (rbreak_command): Ignore Windows drive colon.
6845
6846 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6847
6848 * NEWS: Mention removed GDBserver host support.
6849
6850 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6851
6852 * features/riscv/rebuild-csr-xml.sh: Updated.
6853
6854 2020-06-11 Tom Tromey <tom@tromey.com>
6855
6856 PR gdb/18318:
6857 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6858
6859 2020-06-09 Jonny Grant <jg@jguk.org>
6860 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6861
6862 * main.c (captured_main_1): Don't print new line after help.
6863 (print_gdb_help): add mailing list and IRC channel information
6864 to --help. Add new lines between items in the footer. Remove
6865 quotes around bug url.
6866
6867 2020-06-11 Keith Seitz <keiths@redhat.com>
6868
6869 PR gdb/21356
6870 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6871 Resolve typedefs for type length calculations.
6872
6873 2020-06-10 Tom de Vries <tdevries@suse.de>
6874
6875 PR ada/24713
6876 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6877 (write_psymbols): Enable .gdb_index for ada.
6878 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6879 ada.
6880
6881 2020-06-10 Tom de Vries <tdevries@suse.de>
6882
6883 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6884 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6885 namei" instead of "const char *name" argument.
6886 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6887 dw2_symtab_iter_init.
6888
6889 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6890
6891 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6892 to use type::field and field::type instead.
6893
6894 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6895
6896 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6897 to use field::type instead.
6898
6899 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6900
6901 * gdbtypes.h (struct field) <type, set_type>: New methods.
6902 Rename `type` field to...
6903 <m_type>: ... this. Change references throughout to use type or
6904 set_type methods.
6905 (FIELD_TYPE): Use field::type. Change call sites that modify
6906 the field's type to use field::set_type instead.
6907
6908 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6909
6910 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6911 to use type::index_type instead.
6912
6913 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6914
6915 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6916 methods.
6917 (TYPE_INDEX_TYPE): Use type::index_type.
6918 * gdbtypes.c (create_array_type_with_stride): Likewise.
6919
6920 2020-06-07 Tom Tromey <tom@tromey.com>
6921
6922 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6923 parameter.
6924 (generic_value_print): Update.
6925
6926 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6927
6928 Revert commit 982a38f60b0.
6929 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6930
6931 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6932
6933 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6934 avoid use after free.
6935
6936 2020-06-05 Tom de Vries <tdevries@suse.de>
6937
6938 * NEWS: Fix typos.
6939
6940 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6941
6942 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6943 the per_bfd object.
6944 (dwarf2_read_debug_names): Likewise.
6945 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6946 object when re-using a per_bfd object with an index.
6947
6948 2020-06-03 Tom de Vries <tdevries@suse.de>
6949
6950 PR symtab/26046
6951 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6952 children for C++.
6953 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6954 DW_TAG_subprogram.
6955
6956 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6957
6958 * ada-lang.c (ada_language_data): Delete skip_trampoline
6959 initializer.
6960 * c-lang.c (c_language_data): Likewise.
6961 (cplus_language_data): Likewise.
6962 (cplus_language::skip_trampoline): New member function.
6963 (asm_language_data): Delete skip_trampoline initializer.
6964 (minimal_language_data): Likewise.
6965 * d-lang.c (d_language_data): Likewise.
6966 * f-lang.c (f_language_data): Likewise.
6967 * go-lang.c (go_language_data): Likewise.
6968 * language.c (unk_lang_trampoline): Delete function.
6969 (skip_language_trampoline): Update.
6970 (unknown_language_data): Delete skip_trampoline initializer.
6971 (auto_language_data): Likewise.
6972 * language.h (language_data): Delete skip_trampoline field.
6973 (language_defn::skip_trampoline): New function.
6974 * m2-lang.c (m2_language_data): Delete skip_trampoline
6975 initializer.
6976 * objc-lang.c (objc_skip_trampoline): Delete function, move
6977 implementation to objc_language::skip_trampoline.
6978 (objc_language_data): Delete skip_trampoline initializer.
6979 (objc_language::skip_trampoline): New member function with
6980 implementation from objc_skip_trampoline.
6981 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6982 initializer.
6983 * p-lang.c (pascal_language_data): Likewise.
6984 * rust-lang.c (rust_language_data): Likewise.
6985
6986 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6987
6988 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6989 (ada_language::demangle): New member function.
6990 * c-lang.c (c_language_data): Delete la_demangle initializer.
6991 (cplus_language_data): Delete la_demangle initializer.
6992 (cplus_language::demangle): New member function.
6993 (asm_language_data): Delete la_demangle initializer.
6994 (minimal_language_data): Delete la_demangle initializer.
6995 * d-lang.c (d_language_data): Delete la_demangle initializer.
6996 (d_language::demangle): New member function.
6997 * f-lang.c (f_language_data): Delete la_demangle initializer.
6998 (f_language::demangle): New member function.
6999 * go-lang.c (go_language_data): Delete la_demangle initializer.
7000 (go_language::demangle): New member function.
7001 * language.c (language_demangle): Update.
7002 (unk_lang_demangle): Delete.
7003 (unknown_language_data): Delete la_demangle initializer.
7004 (unknown_language::demangle): New member function.
7005 (auto_language_data): Delete la_demangle initializer.
7006 (auto_language::demangle): New member function.
7007 * language.h (language_data): Delete la_demangle field.
7008 (language_defn::demangle): New function.
7009 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7010 * objc-lang.c (objc_language_data): Delete la_demangle
7011 initializer.
7012 (objc_language::demangle): New member function.
7013 * opencl-lang.c (opencl_language_data): Delete la_demangle
7014 initializer.
7015 * p-lang.c (pascal_language_data): Likewise.
7016 * rust-lang.c (rust_language_data): Likewise.
7017 (rust_language::demangle): New member function.
7018
7019 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7020
7021 * ada-lang.c (ada_language_data): Delete la_print_type
7022 initializer.
7023 (ada_language::print_type): New member function.
7024 * c-lang.c (c_language_data): Delete la_print_type initializer.
7025 (c_language::print_type): New member function.
7026 (cplus_language_data): Delete la_print_type initializer.
7027 (cplus_language::print_type): New member function.
7028 (asm_language_data): Delete la_print_type initializer.
7029 (asm_language::print_type): New member function.
7030 (minimal_language_data): Delete la_print_type initializer.
7031 (minimal_language::print_type): New member function.
7032 * d-lang.c (d_language_data): Delete la_print_type initializer.
7033 (d_language::print_type): New member function.
7034 * f-lang.c (f_language_data): Delete la_print_type initializer.
7035 (f_language::print_type): New member function.
7036 * go-lang.c (go_language_data): Delete la_print_type initializer.
7037 (go_language::print_type): New member function.
7038 * language.c (unk_lang_print_type): Delete.
7039 (unknown_language_data): Delete la_print_type initializer.
7040 (unknown_language::print_type): New member function.
7041 (auto_language_data): Delete la_print_type initializer.
7042 (auto_language::print_type): New member function.
7043 * language.h (language_data): Delete la_print_type field.
7044 (language_defn::print_type): New function.
7045 (LA_PRINT_TYPE): Update.
7046 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7047 (m2_language::print_type): New member function.
7048 * objc-lang.c (objc_language_data): Delete la_print_type
7049 initializer.
7050 (objc_language::print_type): New member function.
7051 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7052 to opencl_language::print_type.
7053 (opencl_language_data): Delete la_print_type initializer.
7054 (opencl_language::print_type): New member function, implementation
7055 from opencl_print_type.
7056 * p-lang.c (pascal_language_data): Delete la_print_type
7057 initializer.
7058 (pascal_language::print_type): New member function.
7059 * rust-lang.c (rust_print_type): Delete, implementation moved to
7060 rust_language::print_type.
7061 (rust_language_data): Delete la_print_type initializer.
7062 (rust_language::print_type): New member function, implementation
7063 from rust_print_type.
7064
7065 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7066
7067 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7068 implementation moves to...
7069 (ada_language::sniff_from_mangled_name): ...here. Update return
7070 type.
7071 (ada_language_data): Delete la_sniff_from_mangled_name
7072 initializer.
7073 * c-lang.c (c_language_data): Likewise.
7074 (cplus_language_data): Likewise.
7075 (cplus_language::sniff_from_mangled_name): New member function,
7076 implementation taken from gdb_sniff_from_mangled_name.
7077 (asm_language_data): Delete la_sniff_from_mangled_name
7078 initializer.
7079 (minimal_language_data): Likewise.
7080 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7081 implementation moves to cplus_language::sniff_from_mangled_name.
7082 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7083 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7084 moves to...
7085 (d_language::sniff_from_mangled_name): ...here.
7086 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7087 * f-lang.c (f_language_data): Likewise.
7088 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7089 moves to...
7090 (go_language::sniff_from_mangled_name): ...here.
7091 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7092 * language.c (language_sniff_from_mangled_name): Delete.
7093 (unknown_language_data): Delete la_sniff_from_mangled_name
7094 initializer.
7095 (auto_language_data): Likewise.
7096 * language.h (language_data): Delete la_sniff_from_mangled_name
7097 field.
7098 (language_defn::sniff_from_mangled_name): New function.
7099 (language_sniff_from_mangled_name): Delete declaration.
7100 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7101 field.
7102 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7103 implementation moves to...
7104 (objc_language::sniff_from_mangled_name): ...here.
7105 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7106 * opencl-lang.c (opencl_language_data): Likewise.
7107 * p-lang.c (pascal_language_data): Likewise.
7108 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7109 implementation moves to...
7110 (rust_language::sniff_from_mangled_name): ...here.
7111 (rust_language_data): Delete la_sniff_from_mangled_name
7112 initializer.
7113 * symtab.c (symbol_find_demangled_name): Call
7114 sniff_from_mangled_name member function.
7115
7116 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7117
7118 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7119 initializer.
7120 * c-lang.c (c_language_data): Likewise.
7121 (cplus_language_data): Likewise.
7122 (cplus_language::search_name_hash): New member function.
7123 (asm_language_data): Delete la_search_name_hash initializer.
7124 (minimal_language_data): Likewise.
7125 * d-lang.c (d_language_data): Likewise.
7126 * dictionary.c (default_search_name_hash): Rename to...
7127 (language_defn::search_name_hash): ...this.
7128 * f-lang.c (f_language_data): Likewise.
7129 (f_language::search_name_hash): New member function.
7130 * go-lang.c (go_language_data): Delete la_search_name_hash
7131 initializer.
7132 * language.c (unknown_language_data): Likewise.
7133 (auto_language_data): Likewise.
7134 * language.h (struct language_data): Delete la_search_name_hash
7135 field.
7136 (language_defn::search_name_hash): Declare new member function.
7137 (default_search_name_hash): Delete declaration.
7138 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7139 initializer.
7140 * objc-lang.c (objc_language_data): Likewise.
7141 * opencl-lang.c (opencl_language_data): Likewise.
7142 * p-lang.c (pascal_language_data): Likewise.
7143 * rust-lang.c (rust_language_data): Likewise.
7144 * symtab.c (search_name_hash): Update call.
7145
7146 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7147
7148 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7149 initializer.
7150 * c-lang.c (class compile_instance): Declare.
7151 (c_language_data): Delete la_get_compile_instance initializer.
7152 (c_language::get_compile_instance): New member function.
7153 (cplus_language_data): Delete la_get_compile_instance initializer.
7154 (cplus_language::get_compile_instance): New member function.
7155 (asm_language_data): Delete la_get_compile_instance initializer.
7156 (minimal_language_data): Likewise.
7157 * c-lang.h (c_get_compile_context): Update comment.
7158 (cplus_get_compile_context): Update comment.
7159 * compile/compile.c (compile_to_object): Update calls, don't rely
7160 on function pointer being NULL.
7161 * d-lang.c (d_language_data): Delete la_get_compile_instance
7162 initializer.
7163 * f-lang.c (f_language_data): Likewise.
7164 * go-lang.c (go_language_data): Likewise.
7165 * language.c (unknown_language_data): Likewise.
7166 (auto_language_data): Likewise.
7167 * language.h (language_data): Delete la_get_compile_instance field.
7168 (language_defn::get_compile_instance): New member function.
7169 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7170 initializer.
7171 * objc-lang.c (objc_language_data): Likewise.
7172 * opencl-lang.c (opencl_language_data): Likewise.
7173 * p-lang.c (pascal_language_data): Likewise.
7174 * rust-lang.c (rust_language_data): Likewise.
7175
7176 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7177
7178 * ada-lang.c (ada_add_all_symbols): Update comment.
7179 (ada_iterate_over_symbols): Delete, move implementation to...
7180 (ada_language::iterate_over_symbols): ...here, a new member
7181 function, rewrite to use range based for loop.
7182 (ada_language_data): Delete la_iterate_over_symbols initializer.
7183 * c-lang.c (c_language_data): Likewise.
7184 (cplus_language_data): Likewise.
7185 (asm_language_data): Likewise.
7186 (minimal_language_data): Likewise.
7187 * d-lang.c (d_language_data): Likewise.
7188 * f-lang.c (f_language_data): Likewise.
7189 * go-lang.c (go_language_data): Likewise.
7190 * language.c (unknown_language_data): Likewise.
7191 (auto_language_data): Likewise.
7192 * language.h (language_data): Delete la_iterate_over_symbols field.
7193 (language_defn::iterate_over_symbols): New member function.
7194 (LA_ITERATE_OVER_SYMBOLS): Update.
7195 * linespec.c (iterate_over_all_matching_symtabs): Update.
7196 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7197 initializer.
7198 * objc-lang.c (objc_language_data): Likewise.
7199 * opencl-lang.c (opencl_language_data): Likewise.
7200 * p-lang.c (pascal_language_data): Likewise.
7201 * rust-lang.c (rust_language_data): Likewise.
7202
7203 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7204
7205 * ada-lang.c (ada_language_data): Delete
7206 la_lookup_transparent_type initializer.
7207 * c-lang.c (c_language_data): Likewise.
7208 (cplus_language_data): Likewise.
7209 (cplus_language::lookup_transparent_type): New member function.
7210 (asm_language_data): Delete la_lookup_transparent_type
7211 initializer.
7212 (minimal_language_data): Likewise.
7213 * d-lang.c (d_language_data): Likewise.
7214 * f-lang.c (f_language_data): Likewise.
7215 * go-lang.c (go_language_data): Likewise.
7216 * language.c (unknown_language_data): Likewise.
7217 (auto_language_data): Likewise.
7218 * language.h (struct language_data): Delete
7219 la_lookup_transparent_type field.
7220 (language_defn::lookup_transparent_type): New member function.
7221 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7222 initializer.
7223 * objc-lang.c (objc_language_data): Likewise.
7224 * opencl-lang.c (opencl_language_data): Likewise.
7225 * p-lang.c (pascal_language_data): Likewise.
7226 * rust-lang.c (rust_language_data): Likewise.
7227 * symtab.c (symbol_matches_domain): Update call.
7228
7229 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7230
7231 * ada-lang.c (ada_language_arch_info): Delete function, move
7232 implementation to...
7233 (ada_language::language_arch_info): ...here, a new member
7234 function.
7235 (ada_language_data): Delete la_language_arch_info.
7236 * c-lang.c (c_language_data): Likewise.
7237 (c_language::language_arch_info): New member function.
7238 (cplus_language_arch_info): Delete function, move
7239 implementation to...
7240 (cplus_language::language_arch_info): ...here, a new member
7241 function.
7242 (cplus_language_data): Delete la_language_arch_info.
7243 (asm_language_data): Likewise.
7244 (asm_language::language_arch_info): New member function.
7245 (minimal_language_data): Delete la_language_arch_info.
7246 (minimal_language::language_arch_info): New member function.
7247 * d-lang.c (d_language_arch_info): Delete function, move
7248 implementation to...
7249 (d_language::language_arch_info): ...here, a new member
7250 function.
7251 (d_language_data): Delete la_language_arch_info.
7252 * f-lang.c (f_language_arch_info): Delete function, move
7253 implementation to...
7254 (f_language::language_arch_info): ...here, a new member
7255 function.
7256 (f_language_data): Delete la_language_arch_info.
7257 * go-lang.c (go_language_arch_info): Delete function, move
7258 implementation to...
7259 (go_language::language_arch_info): ...here, a new member
7260 function.
7261 (go_language_data): Delete la_language_arch_info.
7262 * language.c (unknown_language_data): Likewise.
7263 (unknown_language::language_arch_info): New member function.
7264 (auto_language_data): Delete la_language_arch_info.
7265 (auto_language::language_arch_info): New member function.
7266 (language_gdbarch_post_init): Update call to
7267 la_language_arch_info.
7268 * language.h (language_data): Delete la_language_arch_info
7269 function pointer.
7270 (language_defn::language_arch_info): New function.
7271 * m2-lang.c (m2_language_arch_info): Delete function, move
7272 implementation to...
7273 (m2_language::language_arch_info): ...here, a new member
7274 function.
7275 (m2_language_data): Delete la_language_arch_info.
7276 * objc-lang.c (objc_language_arch_info): Delete function, move
7277 implementation to...
7278 (objc_language::language_arch_info): ...here, a new member
7279 function.
7280 (objc_language_data): Delete la_language_arch_info.
7281 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7282 implementation to...
7283 (opencl_language::language_arch_info): ...here, a new member
7284 function.
7285 (opencl_language_data): Delete la_language_arch_info.
7286 * p-lang.c (pascal_language_arch_info): Delete function, move
7287 implementation to...
7288 (pascal_language::language_arch_info): ...here, a new member
7289 function.
7290 (pascal_language_data): Delete la_language_arch_info.
7291 * rust-lang.c (rust_language_arch_info): Delete function, move
7292 implementation to...
7293 (rust_language::language_arch_info): ...here, a new member
7294 function.
7295 (rust_language_data): Delete la_language_arch_info.
7296
7297 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7298
7299 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7300 initializer.
7301 * c-lang.c (c_language_data): Likewise.
7302 (cplus_language_data): Likewise.
7303 (cplus_language::pass_by_reference_info): New method.
7304 (asm_language_data): Delete la_pass_by_reference initializer.
7305 (minimal_language_data): Likewise.
7306 * cp-abi.c (cp_pass_by_reference): Remove use of
7307 default_pass_by_reference.
7308 * d-lang.c (d_language_data): Likewise.
7309 * f-lang.c (f_language_data): Likewise.
7310 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7311 default_pass_by_reference.
7312 * go-lang.c (go_language_data): Likewise.
7313 * language.c (language_pass_by_reference): Update.
7314 (default_pass_by_reference): Delete.
7315 (unknown_language_data): Delete la_pass_by_reference
7316 initializer.
7317 (auto_language_data): Likewise.
7318 * language.h (struct language_data): Delete la_pass_by_reference
7319 field.
7320 (language_defn::pass_by_reference_info): New member function.
7321 (default_pass_by_reference): Delete declaration.
7322 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7323 initializer.
7324 * objc-lang.c (objc_language_data): Likewise.
7325 * opencl-lang.c (opencl_language_data): Likewise.
7326 * p-lang.c (pascal_language_data): Likewise.
7327 * rust-lang.c (rust_language_data): Likewise.
7328
7329 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7330
7331 * ada-lang.c (ada_read_var_value): Delete function, move
7332 implementation to...
7333 (ada_language::read_var_value): ...here.
7334 (ada_language_data): Delete la_read_var_value initializer.
7335 * c-lang.c (c_language_data): Likewise.
7336 (cplus_language_data): Likewise.
7337 (minimal_language_data): Likewise.
7338 * d-lang.c (d_language_data): Likewise.
7339 * f-lang.c (f_language_data): Likewise.
7340 * findvar.c (default_read_var_value): Rename to...
7341 (language_defn::read_var_value): ...this.
7342 * findvar.c (read_var_value): Update header comment, and change to
7343 call member function instead of function pointer.
7344 * go-lang.c (go_language_data): Likewise.
7345 * language.c (unknown_language_data): Delete la_read_var_value
7346 initializer.
7347 (auto_language_data): Likewise.
7348 * language.h (struct language_data): Delete la_read_var_value
7349 field.
7350 (language_defn::read_var_value): New member function.
7351 (default_read_var_value): Delete declaration.
7352 * m2-lang.c (m2_language_data): Delete la_read_var_value
7353 initializer.
7354 * objc-lang.c (objc_language_data): Likewise.
7355 * opencl-lang.c (opencl_language_data): Likewise.
7356 * p-lang.c (pascal_language_data): Likewise.
7357 * rust-lang.c (rust_language_data): Likewise.
7358 * value.h (default_read_var_value): Delete declaration.
7359
7360 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7361
7362 * ada-lang.c (ada_print_array_index): Delete function, move
7363 implementation to...
7364 (ada_language::print_array_index): ...here.
7365 (ada_language_data): Delete la_print_array_index initializer.
7366 * c-lang.c (c_language_data): Likewise.
7367 (cplus_language_data): Likewise.
7368 (minimal_language_data): Likewise.
7369 * d-lang.c (d_language_data): Likewise.
7370 * f-lang.c (f_language_data): Likewise.
7371 * go-lang.c (go_language_data): Likewise.
7372 * language.c (default_print_array_index): Delete function, move
7373 implementation to...
7374 (language_defn::print_array_index): ...here.
7375 (unknown_language_data): Delete la_print_array_index initializer.
7376 (auto_language_data): Likewise.
7377 * language.h (struct language_data): Delete la_print_array_index
7378 field.
7379 (language_defn::print_array_index): New member function.
7380 (LA_PRINT_ARRAY_INDEX): Update.
7381 (default_print_array_index): Delete declaration.
7382 * m2-lang.c (m2_language_data): Delete la_print_array_index
7383 initializer.
7384 * objc-lang.c (objc_language_data): Likewise.
7385 * opencl-lang.c (opencl_language_data): Likewise.
7386 * p-lang.c (pascal_language_data): Likewise.
7387 * rust-lang.c (rust_language_data): Likewise.
7388
7389 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7390
7391 * gdb/ada-lang.c (ada_language_defn): Convert to...
7392 (ada_language_data): ...this.
7393 (class ada_language): New class.
7394 (ada_language_defn): New static global.
7395 * gdb/c-lang.c (c_language_defn): Convert to...
7396 (c_language_data): ...this.
7397 (class c_language): New class.
7398 (c_language_defn): New static global.
7399 (cplus_language_defn): Convert to...
7400 (cplus_language_data): ...this.
7401 (class cplus_language): New class.
7402 (cplus_language_defn): New static global.
7403 (asm_language_defn): Convert to...
7404 (asm_language_data): ...this.
7405 (class asm_language): New class.
7406 (asm_language_defn): New static global.
7407 (minimal_language_defn): Convert to...
7408 (minimal_language_data): ...this.
7409 (class minimal_language): New class.
7410 (minimal_language_defn): New static global.
7411 * gdb/d-lang.c (d_language_defn): Convert to...
7412 (d_language_data): ...this.
7413 (class d_language): New class.
7414 (d_language_defn): New static global.
7415 * gdb/f-lang.c (f_language_defn): Convert to...
7416 (f_language_data): ...this.
7417 (class f_language): New class.
7418 (f_language_defn): New static global.
7419 * gdb/go-lang.c (go_language_defn): Convert to...
7420 (go_language_data): ...this.
7421 (class go_language): New class.
7422 (go_language_defn): New static global.
7423 * gdb/language.c (unknown_language_defn): Remove declaration.
7424 (current_language): Initialize to nullptr, real initialization is
7425 moved to _initialize_language.
7426 (languages): Delete global.
7427 (language_defn::languages): Define.
7428 (set_language_command): Use language_defn::languages.
7429 (set_language): Likewise.
7430 (range_error): Likewise.
7431 (language_enum): Likewise.
7432 (language_def): Likewise.
7433 (add_set_language_command): Use language_def::languages for the
7434 language list, and language_def to lookup language pointers.
7435 (skip_language_trampoline): Use language_defn::languages.
7436 (unknown_language_defn): Convert to...
7437 (unknown_language_data): ...this.
7438 (class unknown_language): New class.
7439 (unknown_language_defn): New static global.
7440 (auto_language_defn): Convert to...
7441 (auto_language_data): ...this.
7442 (class auto_language): New class.
7443 (auto_language_defn): New static global.
7444 (language_gdbarch_post_init): Use language_defn::languages.
7445 (_initialize_language): Initialize current_language.
7446 * gdb/language.h (struct language_defn): Rename to...
7447 (struct language_data): ...this.
7448 (struct language_defn): New.
7449 (auto_language_defn): Delete.
7450 (unknown_language_defn): Delete.
7451 (minimal_language_defn): Delete.
7452 (ada_language_defn): Delete.
7453 (asm_language_defn): Delete.
7454 (c_language_defn): Delete.
7455 (cplus_language_defn): Delete.
7456 (d_language_defn): Delete.
7457 (f_language_defn): Delete.
7458 (go_language_defn): Delete.
7459 (m2_language_defn): Delete.
7460 (objc_language_defn): Delete.
7461 (opencl_language_defn): Delete.
7462 (pascal_language_defn): Delete.
7463 (rust_language_defn): Delete.
7464 * gdb/m2-lang.c (m2_language_defn): Convert to...
7465 (m2_language_data): ...this.
7466 (class m2_language): New class.
7467 (m2_language_defn): New static global.
7468 * gdb/objc-lang.c (objc_language_defn): Convert to...
7469 (objc_language_data): ...this.
7470 (class objc_language): New class.
7471 (objc_language_defn): New static global.
7472 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7473 (opencl_language_data): ...this.
7474 (class opencl_language): New class.
7475 (opencl_language_defn): New static global.
7476 * gdb/p-lang.c (pascal_language_defn): Convert to...
7477 (pascal_language_data): ...this.
7478 (class pascal_language): New class.
7479 (pascal_language_defn): New static global.
7480 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7481 language pointer, update comment format.
7482 * gdb/rust-lang.c (rust_language_defn): Convert to...
7483 (rust_language_data): ...this.
7484 (class rust_language): New class.
7485 (rust_language_defn): New static global.
7486
7487 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7488
7489 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7490 member variable.
7491 <m_stmt_at_address>: New member variable.
7492 (lnp_state_machine::record_line): Don't record some lines, update
7493 tracking of is_stmt at the same address.
7494 (lnp_state_machine::lnp_state_machine): Initialise new member
7495 variables.
7496
7497 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7498
7499 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7500 "-include gnu-nat-mig.h".
7501 * gnu-nat-mig.h: New file.
7502 * gnu-nat.c: Include "gnu-nat-mig.h".
7503 (exc_server, msg_reply_server, notify_server,
7504 process_reply_server): Remove declarations.
7505
7506 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7507
7508 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7509 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7510 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7511 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7512 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7513 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7514 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7515 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7516 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7517 to gnu_nat_target class.
7518 * gnu-nat.c: Likewise.
7519 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7520 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7521 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7522 object.
7523 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7524 instead of `gnu_target'.
7525
7526 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7527
7528 * i386-gnu-tdep.c: Include "gdbcore.h"
7529 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7530 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7531 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7532 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7533 i386_gnu_sigcontext_addr): New functions
7534 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7535 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7536 tdep.
7537
7538 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7539
7540 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7541 before fork_inferior call. Avoid calling it if target_is_pushed returns
7542 true.
7543
7544 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7545
7546 * gnu-nat.h (gnu_target): New variable declaration.
7547 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7548 gnu_target.
7549 * gnu-nat.c (gnu_target): New variable.
7550 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7551 add_thread_silent, and add_thread calls.
7552 (gnu_nat_target::create_inferior): Pass gnu_target to
7553 add_thread_silent, thread_change_ptid call.
7554 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7555 call.
7556
7557 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7558
7559 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7560 (gnu_nat_target::find_memory_regions): Remove unused
7561 `old_address' variable.
7562
7563 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7564
7565 * gnu-nat.c: Include "gdbarch.h".
7566
7567 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7568
7569 * reply_mig_hack.awk (Error return): Cast function through
7570 void *, to bypass compiler function call check.
7571
7572 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7573
7574 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7575 $(srcdir)/reply_mig_hack.awk.
7576
7577 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7578
7579 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7580
7581 2020-05-30 Jonny Grant <jg@jguk.org>
7582
7583 * configure.ac (ACX_BUGURL): change bug URL to https.
7584
7585 2020-05-30 Pedro Alves <palves@redhat.com>
7586
7587 * cp-support.c (replace_typedefs_template): New.
7588 (replace_typedefs_qualified_name): Handle
7589 DEMANGLE_COMPONENT_TEMPLATE.
7590
7591 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7592
7593 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7594 dwarf2/index-cache.h, dwarf2/index-write.c,
7595 dwarf2/index-write.h, dwarf2/line-header.c,
7596 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7597 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7598 variables and fields from `dwarf2_per_objfile` to just
7599 `per_objfile` throughout.
7600
7601 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7602
7603 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7604 <push_dwarf_reg_entry_value>: Add comment.
7605
7606 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7607 Keith Seitz <keiths@redhat.com>
7608
7609 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7610 instead of PyEval_ReleaseLock.
7611 (class gdbpy_gil): Move to earlier in file.
7612 (finalize_python): Set gdb_python_initialized.
7613 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7614 when not initialized.
7615
7616 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7617
7618 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7619 <push_dwarf_reg_entry_value>: Remove assert. Override
7620 per_objfile with caller_per_objfile.
7621
7622 2020-05-28 Tom de Vries <tdevries@suse.de>
7623
7624 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7625 PR gold/15646 workaround to symbol kind "type".
7626
7627 2020-05-27 Tom Tromey <tromey@adacore.com>
7628
7629 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7630
7631 2020-05-27 Tom Tromey <tromey@adacore.com>
7632
7633 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7634 Use htab_find_with_hash.
7635 <add_abbrev>: Remove "abbrev_number" parameter.
7636 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7637 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7638 (hash_abbrev): Add comment.
7639 (abbrev_table::lookup_abbrev): Move to header file.
7640 (abbrev_table::read): Update.
7641
7642 2020-05-27 Tom Tromey <tromey@adacore.com>
7643
7644 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7645 method.
7646 <canonical_name>: New member.
7647 <raw_name>: Rename from "name".
7648 (partial_die_info): Initialize canonical_name.
7649 (scan_partial_symbols): Check raw_name.
7650 (partial_die_parent_scope, partial_die_full_name)
7651 (add_partial_symbol, add_partial_subprogram)
7652 (add_partial_enumeration, load_partial_dies): Use "name" method.
7653 (partial_die_info::name): New method.
7654 (partial_die_info::read, guess_partial_die_structure_name)
7655 (partial_die_info::fixup): Update.
7656
7657 2020-05-27 Tom Tromey <tromey@adacore.com>
7658
7659 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7660 <get_ref_die_offset>: Inline.
7661 <get_ref_die_offset_complaint>: New method.
7662 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7663 (attribute::get_ref_die_offset_complaint): Rename from
7664 get_ref_die_offset. Just issue complaint.
7665
7666 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7667
7668 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7669
7670 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7671
7672 * exec.c (exec_file_attach): Use errno value of first openp failure.
7673
7674 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7675
7676 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7677 Don't close thread handle.
7678
7679 2020-05-27 Tom Tromey <tom@tromey.com>
7680 Simon Marchi <simon.marchi@efficios.com>
7681
7682 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7683 shared_ptr.
7684 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7685 member.
7686 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7687 dwarf2_per_bfd_objfile_data_key>: New globals.
7688 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7689 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7690 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7691 shared.
7692 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7693 short-circuit when sharing.
7694 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7695 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7696
7697 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7698
7699 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7700 to...
7701 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7702 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7703
7704 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7705
7706 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7707 build_name_components, find_name_components_bounds>:
7708 Add per_objfile parameter.
7709 (struct mapped_index) <symbol_name_at>: Likewise.
7710 (struct mapped_debug_names): Remove constructor.
7711 <dwarf2_per_objfile>: Remove field.
7712 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7713 (mapped_index_base::find_name_components_bounds,
7714 mapped_index_base::build_name_components,
7715 dw2_expand_symtabs_matching_symbol): Likewise.
7716 (class mock_mapped_index) <symbol_name_at>: Likewise.
7717 (check_match): Likewise.
7718 (check_find_bounds_finds): Likewise.
7719 (test_mapped_index_find_name_component_bounds): Update.
7720 (CHECK_MATCH): Update.
7721 (dw2_expand_symtabs_matching): Update.
7722 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7723 per_objfile parameter.
7724 <find_vec_in_debug_names>: Likewise.
7725 <m_per_objfile>: New field.
7726 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7727 parameter.
7728 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7729 (dw2_debug_names_iterator::next): Update.
7730 (dw2_debug_names_lookup_symbol): Update.
7731 (dw2_debug_names_expand_symtabs_for_function): Update.
7732 (dw2_debug_names_map_matching_symbols): Update.
7733 (dw2_debug_names_expand_symtabs_matching): Update.
7734 (dwarf2_read_debug_names): Update.
7735
7736 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7737
7738 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7739 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7740 move to dwarf2_per_objfile.
7741 <read_in_chain>: Remove.
7742 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7743 remove_all_cus, age_comp_units>: New methods.
7744 <m_dwarf2_cus>: New member.
7745 (struct dwarf2_per_cu_data) <cu>: Remove.
7746 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7747 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7748 moved to methods of dwarf2_per_objfile.
7749 (dwarf2_clear_marks): Remove.
7750 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7751 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7752 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7753 (dwarf2_per_objfile::remove_all_cus): New.
7754 (class free_cached_comp_units) <~free_cached_comp_units>:
7755 Update.
7756 (load_cu): Update.
7757 (dw2_do_instantiate_symtab): Adjust.
7758 (fill_in_sig_entry_from_dwo_entry): Adjust.
7759 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7760 (cutu_reader::cutu_reader): Likewise.
7761 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7762 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7763 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7764 and dwarf2_per_objfile::age_comp_units.
7765 (load_partial_comp_unit): Update.
7766 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7767 (process_queue): Likewise.
7768 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7769 backlink.
7770 (dwarf2_read_addr_index): Likewise.
7771 (follow_die_offset): Likewise.
7772 (dwarf2_fetch_die_loc_sect_off): Likewise.
7773 (dwarf2_fetch_constant_bytes): Likewise.
7774 (dwarf2_fetch_die_type_sect_off): Likewise.
7775 (follow_die_sig_1): Likewise.
7776 (load_full_type_unit): Likewise.
7777 (read_signatured_type): Likewise.
7778 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7779 (dwarf2_cu::~dwarf2_cu): Remove.
7780 (dwarf2_per_objfile::get_cu): New.
7781 (dwarf2_per_objfile::set_cu): New.
7782 (age_cached_comp_units): Rename to...
7783 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7784 to std::unordered_map.
7785 (free_one_cached_comp_unit): Rename to...
7786 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7787 to std::unordered_map.
7788 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7789 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7790 a dwarf2_per_objfile in data.
7791 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7792 (dwarf2_clear_marks): Remove.
7793
7794 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7795
7796 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7797 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7798 (init_tu_and_read_dwo_dies): Likewise.
7799 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7800 (cutu_reader::cutu_reader): Likewise.
7801 (load_partial_comp_unit): Likewise.
7802 (process_psymtab_comp_unit): Update.
7803 (build_type_psymtabs_1): Update.
7804 (process_skeletonless_type_unit): Update.
7805 (load_full_comp_unit): Update.
7806 (find_partial_die): Update.
7807 (dwarf2_read_addr_index): Update.
7808 (read_signatured_type): Update.
7809
7810 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7811
7812 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7813 m_header_read_in>: New fields.
7814 <get_header>: New method.
7815 * dwarf2/read.c (per_cu_header_read_in): Remove.
7816 (dwarf2_per_cu_data::get_header): New.
7817 (dwarf2_per_cu_data::addr_size): Update.
7818 (dwarf2_per_cu_data::offset_size): Update.
7819 (dwarf2_per_cu_data::ref_addr_size): Update.
7820
7821 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7822
7823 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7824 (dw2_do_instantiate_symtab): Update.
7825 (queue_and_load_all_dwo_tus): Change parameter from
7826 dwarf2_per_cu_data to dwarf2_cu.
7827 (dwarf2_fetch_die_loc_sect_off): Update.
7828 (dwarf2_fetch_constant_bytes): Update.
7829 (dwarf2_fetch_die_type_sect_off): Update.
7830
7831 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7832
7833 * dwarf2/read.c (process_full_comp_unit,
7834 process_full_type_unit): Remove per_cu, per_objfile paramters.
7835 Add dwarf2_cu parameter.
7836 (process_queue): Update.
7837
7838 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7839
7840 * dwarf2/read.c (create_cu_from_index_list): Replace
7841 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7842 (create_cus_from_index_list): Likewise.
7843 (create_cus_from_index): Likewise.
7844 (create_signatured_type_table_from_index): Likewise.
7845 (create_cus_from_debug_names_list): Likewise.
7846 (create_cus_from_debug_names): Likewise.
7847 (dwarf2_read_gdb_index): Update.
7848 (dwarf2_read_debug_names): Update.
7849
7850 2020-05-27 Tom Tromey <tom@tromey.com>
7851 Simon Marchi <simon.marchi@efficios.com>
7852
7853 * dwarf2/read.h (struct dwarf2_per_objfile)
7854 <get_type_for_signatured_type, set_type_for_signatured_type>:
7855 New methods.
7856 <m_type_map>: New member.
7857 (struct signatured_type) <type>: Remove.
7858 * dwarf2/read.c
7859 (dwarf2_per_objfile::get_type_for_signatured_type,
7860 dwarf2_per_objfile::set_type_for_signatured_type): New.
7861 (get_signatured_type): Use new methods.
7862
7863 2020-05-27 Tom Tromey <tom@tromey.com>
7864 Simon Marchi <simon.marchi@efficios.com>
7865
7866 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7867 (struct dwarf2_per_objfile) <type_units>: New member.
7868 <get_type_unit_group_unshareable>: New method.
7869 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7870 num_symtabs, symtabs>: Remove; move to
7871 type_unit_group_unshareable.
7872 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7873 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7874 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7875
7876 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7877
7878 * dwarf2/read.h (struct dwarf2_per_cu_data):
7879 <dwarf2_per_objfile>: Remove.
7880 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7881 dwarf2_per_objfile.
7882 (create_signatured_type_table_from_index): Likewise.
7883 (create_signatured_type_table_from_debug_names): Likewise.
7884 (create_debug_type_hash_table): Likewise.
7885 (fill_in_sig_entry_from_dwo_entry): Likewise.
7886 (create_type_unit_group): Likewise.
7887 (read_comp_units_from_section): Likewise.
7888 (create_cus_hash_table): Likewise.
7889
7890 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7891
7892 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7893 dwarf2_per_cu_data::dwarf2_per_objfile.
7894 (compute_compunit_symtab_includes): Likewise.
7895 (dwarf2_cu::start_symtab): Likewise.
7896
7897 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7898
7899 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7900 parameter.
7901 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7902 (read_namespace_alias): Update.
7903 (lookup_die_type): Update.
7904 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7905 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7906 Update.
7907 (disassemble_dwarf_expression): Update.
7908
7909 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7910
7911 * dwarf2/read.h (struct dwarf2_queue_item): Add
7912 dwarf2_per_objfile parameter, assign new parameter.
7913 <per_objfile>: New field.
7914 * dwarf2/read.c (free_one_cached_comp_unit): Add
7915 dwarf2_per_objfile parameter.
7916 (queue_comp_unit): Likewise.
7917 (dw2_do_instantiate_symtab): Update.
7918 (process_psymtab_comp_unit): Update.
7919 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7920 (process_imported_unit_die): Update.
7921 (queue_and_load_dwo_tu): Update.
7922 (follow_die_offset): Update.
7923 (follow_die_sig_1): Update.
7924
7925 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7926
7927 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7928 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7929 (read_call_site_scope): Assign per_objfile.
7930 (dwarf2_per_cu_data::objfile): Remove.
7931 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7932 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7933 dwarf2_per_objfile parameter.
7934 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7935 dwarf2_per_objfile parameter.
7936 (dwarf_expr_reg_to_entry_parameter): Add output
7937 dwarf2_per_objfile parameter.
7938 (locexpr_get_frame_base): Update.
7939 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7940 <push_dwarf_reg_entry_value>: Update.
7941 <call_site_to_target_addr>: Update.
7942 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7943 parameter.
7944 (value_of_dwarf_reg_entry): Update.
7945 (rw_pieced_value): Update.
7946 (indirect_synthetic_pointer): Update.
7947 (dwarf2_evaluate_property): Update.
7948 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7949 parameter.
7950 (locexpr_read_variable): Update.
7951 (locexpr_get_symbol_read_needs): Update.
7952 (loclist_read_variable): Update.
7953
7954 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7955
7956 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7957 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7958 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7959 parameter.
7960 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7961 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7962 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7963 parameter.
7964 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7965 sect_variable_value): Add dwarf2_per_objfile parameter.
7966 (class dwarf_evaluate_loc_desc) <dwarf_call,
7967 dwarf_variable_value>: Update.
7968 (fetch_const_value_from_synthetic_pointer): Add
7969 dwarf2_per_objfile parameter.
7970 (fetch_const_value_from_synthetic_pointer): Update.
7971 (coerced_pieced_ref): Update.
7972 (class symbol_needs_eval_context) <dwarf_call,
7973 dwarf_variable_value>: Update.
7974 (dwarf2_compile_expr_to_ax): Update.
7975
7976 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7977
7978 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7979 parameter.
7980 (dwarf2_evaluate_loc_desc_full): Update.
7981
7982 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7983
7984 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7985 parameter.
7986 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7987 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7988 dwarf2_per_objfile parameter.
7989 (decode_debug_loc_dwo_addresses): Likewise.
7990 (dwarf2_find_location_expression): Update.
7991 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7992 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7993 parameter.
7994 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7995 parameter.
7996 (locexpr_describe_location_1): Likewise.
7997 (locexpr_describe_location): Update.
7998
7999 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8000
8001 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8002 Remove.
8003 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8004 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8005 (dwarf2_compile_property_to_c): Update.
8006 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8007 use text offset from objfile.
8008 (locexpr_tracepoint_var_ref): Update.
8009 (locexpr_generate_c_location): Update.
8010 (loclist_describe_location): Update.
8011 (loclist_tracepoint_var_ref): Update.
8012 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8013 dwarf2_per_objfile parameter.
8014 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8015 use text offset from objfile.
8016 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8017
8018 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8019
8020 * dwarf2/expr.h (struct dwarf_expr_context)
8021 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8022 <offset>: Remove.
8023 <per_objfile>: New member.
8024 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8025 dwarf2_per_objfile parameter. Don't set offset, set
8026 per_objfile.
8027 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8028 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8029 a dwarf2_per_objfile object instead of an offset.
8030 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8031 constructor.
8032 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8033 to dwarf2_expr_executor constructor. Don't set offset.
8034 (dwarf2_fetch_cfa_info): Update.
8035 (struct dwarf2_frame_cache) <text_offset>: Remove.
8036 <per_objfile>: New field.
8037 (dwarf2_frame_cache): Update.
8038 (dwarf2_frame_prev_register): Update.
8039 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8040 <dwarf_evaluate_loc_desc>: Add constructor.
8041 (dwarf2_evaluate_loc_desc_full): Update.
8042 (dwarf2_locexpr_baton_eval): Update.
8043 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8044 Add constructor.
8045 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8046
8047 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8048
8049 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8050 addr_sized_int_type>: Move to dwarf2_cu.
8051 <int_type>: Move to dwarf2_per_objfile.
8052 (struct dwarf2_per_objfile) <int_type>: Move here.
8053 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8054 addr_sized_int_type>: Move here.
8055 (read_func_scope): Update.
8056 (read_array_type): Update.
8057 (read_tag_string_type): Update.
8058 (attr_to_dynamic_prop): Update.
8059 (dwarf2_per_cu_data::int_type): Rename to...
8060 (dwarf2_per_objfile::int_type): ... this.
8061 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8062 (dwarf2_cu::addr_sized_int_type): ... this.
8063 (read_subrange_type): Update.
8064 (dwarf2_per_cu_data::addr_type): Rename to...
8065 (dwarf2_cu::addr_type): ... this.
8066 (set_die_type): Update.
8067
8068 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8069
8070 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8071 data through per_cu->cu.
8072
8073 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8074
8075 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8076 dwarf2_per_cu_data parameter fo dwarf2_cu.
8077 (lookup_dwo_type_unit): Likewise.
8078 (read_cutu_die_from_dwo): Likewise.
8079 (lookup_dwo_unit): Likewise.
8080 (open_and_init_dwo_file): Likewise.
8081 (lookup_dwo_cutu): Likewise.
8082 (lookup_dwo_comp_unit): Likewise.
8083 (lookup_dwo_type_unit): Likewise.
8084 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8085 (cutu_reader::cutu_reader): Update.
8086
8087 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8088
8089 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8090 parameter.
8091 (process_full_type_unit): Likewise.
8092 (process_queue): Update.
8093
8094 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8095
8096 * dwarf2/read.c (recursively_compute_inclusions): Add
8097 dwarf2_per_objfile parameter.
8098 (compute_compunit_symtab_includes): Likewise.
8099 (process_cu_includes): Update.
8100
8101 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8102
8103 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8104 parameter.
8105 (create_type_unit_group): Update.
8106 (process_psymtab_comp_unit_reader): Update.
8107 (build_type_psymtabs_reader): Update.
8108
8109 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8110
8111 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8112 object through m_this_cu->cu.
8113
8114 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8115
8116 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8117 the info parameter.
8118 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8119
8120 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8121
8122 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8123 per_objfile parameter.
8124 (load_full_type_unit): Add per_objfile parameter.
8125 (read_signatured_type): Likewise.
8126 (load_full_comp_unit): Likewise.
8127 (load_cu): Likewise.
8128 (dw2_do_instantiate_symtab): Likewise.
8129 (dw2_get_file_names): Likewise.
8130 (dw2_map_symtabs_matching_filename): Update.
8131 (dw_expand_symtabs_matching_file_matcher): Update.
8132 (dw2_map_symbol_filenames): Update.
8133 (process_psymtab_comp_unit): Add per_objfile parameter.
8134 (build_type_psymtabs_1): Update.
8135 (process_skeletonless_type_unit): Update.
8136 (dwarf2_build_psymtabs_hard): Update.
8137 (load_partial_comp_unit): Add per_objfile parameter.
8138 (scan_partial_symbols): Update.
8139 (load_full_comp_unit): Add per_objfile parameter.
8140 (process_imported_unit_die): Update.
8141 (create_cus_hash_table): Update.
8142 (find_partial_die): Update.
8143 (dwarf2_read_addr_index): Update.
8144 (follow_die_offset): Update.
8145 (dwarf2_fetch_die_loc_sect_off): Update.
8146 (dwarf2_fetch_constant_bytes): Update.
8147 (dwarf2_fetch_die_type_sect_off): Update.
8148 (follow_die_sig_1): Update.
8149 (load_full_type_unit): Add per_objfile parameter.
8150 (read_signatured_type): Likewise.
8151
8152 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8153
8154 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8155 of objfile_name.
8156
8157 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8158
8159 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8160 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8161 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8162 field.
8163 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8164 (create_cus_from_index): Update.
8165 (dwarf2_read_gdb_index): Update.
8166 (create_cus_from_debug_names): Update.
8167 (dwarf2_read_debug_names): Update.
8168 (get_abbrev_section_for_cu): Update.
8169 (create_all_comp_units): Update.
8170 (read_attribute_value): Update.
8171 (get_debug_line_section): Update.
8172 * dwarf2/index-cache.c (index_cache::store): Update.
8173 * dwarf2/index-write.c (save_gdb_index_command): Update.
8174 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8175
8176 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8177
8178 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8179 member.
8180 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8181 dwarf2_per_cu_data::per_bfd.
8182 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8183 (create_type_unit_group): Likewise.
8184 (queue_comp_unit): Remove reference to
8185 per_cu->dwarf2_per_objfile.
8186 (maybe_queue_comp_unit): Likewise.
8187 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8188 (create_cus_hash_table): Assign new field.
8189
8190 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8191
8192 * dwarf2/read.c: Replace
8193 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8194 dwarf2_cu->per_objfile throughout.
8195
8196 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8197
8198 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8199 parameter, don't use per_cu->dwarf2_per_objfile.
8200 (dw2_instantiate_symtab): Likewise.
8201 (dw2_find_last_source_symtab): Update.
8202 (dw2_map_expand_apply): Update.
8203 (dw2_lookup_symbol): Update.
8204 (dw2_expand_symtabs_for_function): Update.
8205 (dw2_expand_all_symtabs): Update.
8206 (dw2_expand_symtabs_with_fullname): Update.
8207 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8208 don't use per_cu->dwarf2_per_objfile.
8209 (dw2_expand_marked_cus): Update.
8210 (dw2_find_pc_sect_compunit_symtab): Update.
8211 (dw2_debug_names_lookup_symbol): Update.
8212 (dw2_debug_names_expand_symtabs_for_function): Update.
8213 (dw2_debug_names_map_matching_symbols): Update.
8214 (dwarf2_psymtab::expand_psymtab): Update.
8215
8216 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8217
8218 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8219 <per_objfile>: New member.
8220 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8221 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8222 call to dwarf2_cu.
8223 (cutu_reader::cutu_reader): Update.
8224 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8225
8226 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8227
8228 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8229 struct dwarf2_per_objfile.
8230 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8231 dwarf2_per_bfd.
8232 * dwarf2/read.c (set_die_type): Update.
8233 (get_die_type_at_offset): Update.
8234
8235 2020-05-27 Tom Tromey <tom@tromey.com>
8236 Simon Marchi <simon.marchi@efficios.com>
8237
8238 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8239 method.
8240 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8241 get_symtab, set_symtab>: New methods.
8242 <m_symtabs>: New field.
8243 (struct dwarf2_psymtab): Derive from partial_symtab.
8244 <readin_p, get_compunit_symtab>: Declare methods.
8245 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8246 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8247 New methods.
8248 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8249 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8250 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8251 (dw2_symtab_iter_next, dw2_print_stats)
8252 (dw2_expand_symtabs_with_fullname)
8253 (dw2_expand_symtabs_matching_one)
8254 (dw_expand_symtabs_matching_file_matcher)
8255 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8256 (dw2_debug_names_iterator::next)
8257 (dw2_debug_names_map_matching_symbols)
8258 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8259 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8260 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8261 New methods.
8262 (get_compunit_symtab, process_full_comp_unit)
8263 (process_full_type_unit): Update.
8264 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8265
8266 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8267
8268 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8269 then introduce a new dwarf2_per_objfile type.
8270 <read_line_string>: Move to the new dwarf2_per_objfile type.
8271 <objfile>: Likewise.
8272 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8273 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8274 dwarf2_per_objfile->per_bfd.
8275 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8276 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8277 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8278 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8279 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8280 (dwarf2_per_objfile::locate_sections): Rename to...
8281 (dwarf2_per_bfd::locate_sections): ... this.
8282 (dwarf2_per_objfile::get_cutu): Rename to...
8283 (dwarf2_per_bfd::get_cutu): ... this.
8284 (dwarf2_per_objfile::get_cu): Rename to...
8285 (dwarf2_per_bfd::get_cu): ... this.
8286 (dwarf2_per_objfile::get_tu): Rename to...
8287 (dwarf2_per_bfd::get_tu): ... this.
8288 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8289 (dwarf2_per_bfd::allocate_per_cu): ... this.
8290 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8291 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8292 (get_gdb_index_contents_ftype): Change parameter from
8293 dwarf2_per_objfile to dwarf2_per_bfd.
8294 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8295 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8296
8297 2020-05-27 Tom Tromey <tom@tromey.com>
8298 Simon Marchi <simon.marchi@efficios.com>
8299
8300 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8301 (allocate_piece_closure): Set "per_objfile" member.
8302 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8303 (locexpr_describe_location, loclist_describe_location): Use new
8304 member.
8305 * dwarf2/read.c (read_call_site_scope)
8306 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8307 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8308 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8309 handle_data_member_location): Set per_objfile member.
8310 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8311 member.
8312 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8313
8314 2020-05-27 Tom Tromey <tom@tromey.com>
8315
8316 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8317 allocate_signatured_type>: Declare new methods.
8318 <m_num_psymtabs>: New member.
8319 (struct dwarf2_per_cu_data) <index>: New member.
8320 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8321 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8322 (create_cu_from_index_list): Use allocate_per_cu.
8323 (create_signatured_type_table_from_index)
8324 (create_signatured_type_table_from_debug_names)
8325 (create_debug_type_hash_table, add_type_unit)
8326 (read_comp_units_from_section): Use allocate_signatured_type.
8327
8328 2020-05-27 Tom Tromey <tom@tromey.com>
8329
8330 * psymtab.c (partial_map_expand_apply)
8331 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8332 (psym_lookup_global_symbol_language)
8333 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8334 (psym_print_stats, psym_expand_symtabs_for_function)
8335 (psym_map_symbol_filenames, psym_map_matching_symbols)
8336 (psym_expand_symtabs_matching)
8337 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8338 (maintenance_check_psymtabs): Update.
8339 * psympriv.h (struct partial_symtab) <readin_p,
8340 get_compunit_symtab>: Add objfile parameter.
8341 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8342 Likewise.
8343 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8344 get_compunit_symtab>: Likewise.
8345 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8346
8347 2020-05-27 Tom Tromey <tom@tromey.com>
8348
8349 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8350 member.
8351 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8352 (create_cu_from_index_list)
8353 (create_signatured_type_table_from_index)
8354 (create_signatured_type_table_from_debug_names)
8355 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8356 (dwarf2_create_include_psymtab)
8357 (create_debug_type_hash_table, add_type_unit)
8358 (create_type_unit_group, read_comp_units_from_section)
8359 (dwarf2_compute_name, create_cus_hash_table)
8360 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8361 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8362 obstack.
8363 (dw2_get_real_path): Likewise. Change argument to
8364 dwarf2_per_objfile.
8365
8366 2020-05-27 Luis Machado <luis.machado@linaro.org>
8367
8368 PR tdep/26000
8369 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8370 for ldrd (immediate).
8371
8372 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8373
8374 * command.h: Add comment giving the name of class_tui.
8375 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8376 create the fake command for the help for class_tui.
8377
8378 2020-05-26 Tom Tromey <tromey@adacore.com>
8379
8380 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8381 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8382 (val_atr): New function.
8383 (value_val_atr): Use it.
8384 * ada-valprint.c (print_optional_low_bound): Change low bound
8385 handling for enums.
8386 (val_print_packed_array_elements): Don't call discrete_position.
8387 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8388 discrete_position for enum types.
8389 * language.c (default_print_array_index): Change type.
8390 * language.h (struct language_defn) <la_print_array_index>: Add
8391 index_type parameter, change type of index_value.
8392 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8393 (default_print_array_index): Update.
8394 * valprint.c (maybe_print_array_index): Don't call
8395 value_from_longest. Update.
8396 (value_print_array_elements): Don't call discrete_position.
8397
8398 2020-05-26 Tom Tromey <tromey@adacore.com>
8399
8400 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8401 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8402
8403 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8404
8405 PR gdb/13519
8406 * avr-tdep.c (avr_integer_to_address): Return data or code
8407 address accordingly to the second 'type' argument of the
8408 function.
8409
8410 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8411
8412 * infcmd.c, inferior.h: (construct_inferior_arguments):
8413 Moved function from here to gdbsupport/common-inferior.{h,cc}
8414
8415 2020-05-23 Tom Tromey <tom@tromey.com>
8416
8417 Revert commit eca1f90c:
8418 * NEWS: Remove entry for completion styling.
8419 * completer.c (_rl_completion_prefix_display_length): Move
8420 declaration later.
8421 (gdb_fnprint): Revert.
8422 (gdb_display_match_list_1): Likewise.
8423 * cli/cli-style.c (completion_prefix_style)
8424 (completion_difference_style, completion_suffix_style): Remove.
8425 (_initialize_cli_style): Revert.
8426 * cli/cli-style.h (completion_prefix_style)
8427 (completion_difference_style, completion_suffix_style): Don't
8428 declare.
8429
8430 2020-05-24 Pedro Alves <palves@redhat.com>
8431
8432 * symtab.c (completion_list_add_name): Return boolean indication
8433 of whether the symbol matched.
8434 (completion_list_add_symbol): Don't try to remove C++ aliases if
8435 the symbol didn't match in the first place.
8436 * symtab.h (completion_list_add_name): Return bool.
8437
8438 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8439
8440 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8441 type::field.
8442
8443 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8444
8445 GDB 9.2 released.
8446
8447 2020-05-23 Tom Tromey <tom@tromey.com>
8448
8449 * NEWS: Add entry for completion styling.
8450 * completer.c (_rl_completion_prefix_display_length): Move
8451 declaration earlier.
8452 (gdb_fnprint): Use completion_style.
8453 (gdb_display_match_list_1): Likewise.
8454 * cli/cli-style.c (completion_prefix_style)
8455 (completion_difference_style, completion_suffix_style): New
8456 globals.
8457 (_initialize_cli_style): Register new globals.
8458 * cli/cli-style.h (completion_prefix_style)
8459 (completion_difference_style, completion_suffix_style): Declare.
8460
8461 2020-05-23 Pedro Alves <palves@redhat.com>
8462
8463 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8464 (parse_escape): Use ISDIGIT instead of isdigit.
8465 (puts_debug): Use gdb_isprint instead of isprint.
8466 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8467 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8468 ISSPACE instead of isspace.
8469 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8470 instead of isspace.
8471 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8472 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8473 instead of isxdigit and ISDIGIT instead of isdigit.
8474
8475 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8476
8477 * gdbtypes.h (struct type) <field>: New method.
8478 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8479 or type::field.
8480
8481 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8482
8483 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8484 (TYPE_FIELDS): Use type::fields. Change all call sites that
8485 modify the propery to use type::set_fields instead.
8486
8487 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8488
8489 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8490 type::num_fields instead.
8491
8492 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8493
8494 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8495 methods.
8496 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8497 that modify the number of fields to use type::set_num_fields
8498 instead.
8499
8500 2020-05-22 Tom Tromey <tromey@adacore.com>
8501
8502 * compile/compile-object-load.h (munmap_list_free): Don't
8503 declare.
8504
8505 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8506
8507 * annotate.c (annotate_source_line): Update return type, add call
8508 to update current symtab and line.
8509 * annotate.h (annotate_source_line): Update return type, and
8510 extend header comment.
8511 * source.c (info_line_command): Check annotation_level before
8512 calling annotate_source_line.
8513 * stack.c (print_frame_info): If calling annotate_source_line
8514 returns true, then don't print any other source line information.
8515
8516 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8517
8518 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8519
8520 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8521
8522 * coffread.c (patch_type): Remove NULL check before xfree.
8523 * corefile.c (set_gnutarget): Likewise.
8524 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8525 * exec.c (build_section_table): Likewise.
8526 * remote.c (remote_target::pass_signals): Likewise.
8527 * utils.c (n_spaces): Likewise.
8528 * cli/cli-script.c (document_command): Likewise.
8529 * i386-windows-tdep.c (core_process_module_section): Likewise.
8530 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8531
8532 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8533
8534 * symfile.c (reread_symbols): Clear objfile's section_offsets
8535 vector and section indices, re-compute them by calling
8536 sym_offsets.
8537
8538 2020-05-20 Tom Tromey <tromey@adacore.com>
8539
8540 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8541 (desc_one_bound, desc_index_type): Compute field name.
8542
8543 2020-05-20 Tom de Vries <tdevries@suse.de>
8544
8545 PR symtab/25833
8546 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8547
8548 2020-05-20 Alan Modra <amodra@gmail.com>
8549
8550 PR 25993
8551 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8552 bfd_set_filename.
8553 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8554 passed to bfd_set_filename.
8555 * symfile-mem.c (add_vsyscall_page): Likewise for string
8556 passed to symbol_file_add_from_memory.
8557 (symbol_file_add_from_memory): Make name param a const char* and
8558 don't strdup.
8559
8560 2020-05-20 Alan Modra <amodra@gmail.com>
8561
8562 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8563 rather than accessing bfd->filename directly.
8564 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8565 and use bfd_section_name.
8566 * dwarf2/frame.c (decode_frame_entry): Likewise.
8567 * exec.c (exec_set_section_address): Likewise.
8568 * solib-aix.c (solib_aix_bfd_open): Likewise.
8569 * stap-probe.c (get_stap_base_address): Likewise.
8570 * symfile.c (reread_symbols): Likewise.
8571
8572 2020-05-19 Tom Tromey <tromey@adacore.com>
8573
8574 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8575
8576 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8577
8578 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8579
8580 2020-05-19 Pedro Alves <palves@redhat.com>
8581
8582 * NEWS (set exec-file-mismatch): Adjust entry.
8583 * exec.c: Include "build-id.h".
8584 (validate_exec_file): Try to match build IDs instead of filenames.
8585 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8586 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8587 and pass down 'warn_if_slow'.
8588 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8589 gdb_bfd_open_closure to pass it down.
8590 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8591
8592 2020-05-19 Pedro Alves <palves@redhat.com>
8593
8594 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8595 * target.c (target_fileio_open_1): Rename to target_fileio_open
8596 and make extern. Use bool.
8597 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8598 (target_fileio_read_alloc_1): Adjust.
8599 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8600 (target_fileio_open_warn_if_slow): Delete declaration.
8601
8602 2020-05-19 Pedro Alves <palves@redhat.com>
8603
8604 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8605 Adjust all callers.
8606
8607 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8608
8609 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8610 whether disp is negative.
8611
8612 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8613
8614 * symfile.h (struct symfile_segment_data)
8615 <~symfile_segment_data>: Remove.
8616 <segment_info>: Change to std::vector.
8617 * symfile.c (default_symfile_segments): Update.
8618 * elfread.c (elf_symfile_segments): Update.
8619
8620 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8621
8622 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8623 <segments>: New.
8624 <segment_bases, segment_sizes>: Remove.
8625 * symfile.c (default_symfile_segments): Update.
8626 * elfread.c (elf_symfile_segments): Update.
8627 * remote.c (remote_target::get_offsets): Update.
8628 * solib-target.c (solib_target_relocate_section_addresses):
8629 Update.
8630
8631 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8632
8633 * symfile.h (struct symfile_segment_data): Initialize fields.
8634 <~symfile_segment_data>: Add.
8635 (symfile_segment_data_up): New.
8636 (struct sym_fns) <sym_segments>: Return a
8637 symfile_segment_data_up.
8638 (default_symfile_segments): Return a symfile_segment_data_up.
8639 (free_symfile_segment_data): Remove.
8640 (get_symfile_segment_data): Return a symfile_segment_data_up.
8641 * symfile.c (default_symfile_segments): Likewise.
8642 (get_symfile_segment_data): Likewise.
8643 (free_symfile_segment_data): Remove.
8644 (symfile_find_segment_sections): Update.
8645 * elfread.c (elf_symfile_segments): Return a
8646 symfile_segment_data_up.
8647 * remote.c (remote_target::get_offsets): Update.
8648 * solib-target.c (solib_target_relocate_section_addresses):
8649 Update.
8650 * symfile-debug.c (debug_sym_segments): Return a
8651 symfile_segment_data_up.
8652
8653 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8654
8655 PR build/25981
8656 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8657 Hardcode register numbers.
8658
8659 PR build/25981
8660 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8661 procfs_find_LDT_entry): Remove.
8662 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8663 procfs_find_LDT_entry): Remove.
8664 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8665 Remove.
8666
8667 2020-05-17 Pedro Alves <palves@redhat.com>
8668 Andrew Burgess <andrew.burgess@embecosm.com>
8669 Keno Fischer <keno@juliacomputing.com>
8670
8671 PR gdb/25741
8672 * breakpoint.c (build_target_condition_list): Update comments.
8673 (build_target_command_list): Update comments and skip matching
8674 locations.
8675 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8676 a separate function. Simplify "set breakpoint auto-hw off"
8677 handling.
8678 (insert_breakpoints): Update comment.
8679 (tracepoint_locations_match): New parameter. For breakpoints,
8680 compare location types too, if the caller wants to.
8681 (handle_automatic_hardware_breakpoints): New functions.
8682 (bp_location_is_less_than): Also sort by location type and
8683 hardware breakpoint length.
8684 (update_global_location_list): Handle "set breakpoint auto-hw on"
8685 here.
8686 (update_breakpoint_locations): Ask breakpoint_locations_match to
8687 ignore location types.
8688
8689 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8690
8691 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8692 type::name instead.
8693
8694 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8695
8696 * gdbtypes.h (struct type) <name, set_name>: New methods.
8697 (TYPE_CODE): Use type::name. Change all call sites used to set
8698 the name to use type::set_name instead.
8699
8700 2020-05-16 Tom Tromey <tom@tromey.com>
8701
8702 * top.c (quit_force): Update.
8703 * infrun.c (handle_no_resumed): Update.
8704 * top.h (all_uis): New function.
8705 (ALL_UIS): Remove.
8706
8707 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8708
8709 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8710
8711 2020-05-16 Pedro Alves <palves@redhat.com>
8712
8713 * ia64-linux-nat.c
8714 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8715 Declare method.
8716 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8717
8718 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8719
8720 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8721 (sparc64_adi_info): Likewise.
8722
8723 2020-05-15 Tom Tromey <tom@tromey.com>
8724
8725 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8726 block_objfile.
8727 (lookup_objfile_from_block): Remove.
8728 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8729 (lookup_global_symbol): Use block_objfile.
8730 * symtab.h (lookup_objfile_from_block): Don't declare.
8731 * printcmd.c (clear_dangling_display_expressions): Use
8732 block_objfile.
8733 * parse.c (operator_check_standard): Use block_objfile.
8734
8735 2020-05-15 Tom Tromey <tom@tromey.com>
8736
8737 * language.c (language_alloc_type_symbol): Set
8738 SYMBOL_SECTION.
8739 * symtab.c (initialize_objfile_symbol): Remove.
8740 (allocate_symbol): Remove.
8741 (allocate_template_symbol): Remove.
8742 * dwarf2/read.c (fixup_go_packaging): Use "new".
8743 (new_symbol): Use "new".
8744 (read_variable): Don't call initialize_objfile_symbol. Use
8745 "new".
8746 (read_func_scope): Use "new".
8747 * xcoffread.c (process_xcoff_symbol): Don't call
8748 initialize_objfile_symbol.
8749 (SYMBOL_DUP): Remove.
8750 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8751 "new".
8752 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8753 (allocate_template_symbol): Don't declare.
8754 (struct symbol): Add copy constructor. Change defaults.
8755 * jit.c (finalize_symtab): Use "new".
8756 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8757 Use "new".
8758 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8759 (common_block_end): Use "new".
8760 * mdebugread.c (parse_symbol): Use "new".
8761 (new_symbol): Likewise.
8762
8763 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8764
8765 * NEWS: Mention changes to help and apropos.
8766
8767 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8768
8769 * command.h (enum command_class): Improve comments, document
8770 that class_alias is for user-defined aliases, give the class
8771 name for each class, remove unused class_xdb.
8772 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8773 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8774 by a precise class.
8775 * infcmd.c (_initialize_infcmd): Likewise.
8776 * reverse.c (_initialize_reverse): Likewise.
8777 * stack.c (_initialize_stack): Likewise.
8778 * symfile.c (_initialize_symfile): Likewise.
8779 * tracepoint.c (_initialize_tracepoint): Likewise.
8780
8781 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8782
8783 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8784 when their aliased command is traversed.
8785 (help_cmd): Add fput_command_names_styled call to
8786 output command name and aliases when command has an alias.
8787
8788 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8789
8790 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8791 * cli/cli-decode.c (help_cmd_list): Declare as static,
8792 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8793 a command together with the command.
8794 (fput_command_name_styled, fput_command_names_styled): New functions.
8795 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8796 fput_command_name_styled.
8797 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8798 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8799
8800 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8801
8802 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8803 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8804 * command.h (cmd_show_list): Likewise.
8805 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8806 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8807
8808 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8809
8810 * unittests/command-def-selftests.c (traverse_command_structure):
8811 Verify all commands of a list have the same prefix command and
8812 that only the top cmdlist commands have a null prefix.
8813
8814 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8815
8816 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8817 as prefix, not one of its aliases.
8818 (set_cmd_prefix): Remove.
8819 (do_add_cmd): Centralize the setting of the prefix of a command, when
8820 command is defined after its full chain of prefix commands.
8821 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8822 (add_setshow_cmd_full): Likewise.
8823 (update_prefix_field_of_prefixed_commands): New function.
8824 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8825 update_prefix_field_of_prefixed_commands.
8826 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8827 addresses of remote_set_cmdlist and remote_show_cmdlist given
8828 as argument, not the address of an argument.
8829 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8830 * gdb/remote.c (_initialize_remote): Likewise.
8831
8832 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8833
8834 * cli/cli-cmds.c (alias_command): Check for an existing alias
8835 using lookup_cmd_composition, as valid_command_p is too strict
8836 and forbids aliases that are the prefix of an existing alias
8837 or command.
8838 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8839 command is properly recognised as a valid command.
8840
8841 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8842
8843 * unittests/help-doc-selftests.c: Rename to
8844 unittests/command-def-selftests.c
8845 * unittests/command-def-selftests.c (help_doc_tests): Update some
8846 comments.
8847 (command_structure_tests, traverse_command_structure): New namespace
8848 and function.
8849 (command_structure_invariants_tests): New function.
8850 (_initialize_command_def_selftests) Renamed from
8851 _initialize_help_doc_selftests, register command_structure_invariants
8852 selftest.
8853
8854 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8855
8856 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8857 an alias of 'show'.
8858
8859 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8860
8861 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8862 ada_is_fixed_point_type. Update all callers.
8863 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8864 all callers.
8865 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8866 Update all callers.
8867 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8868 print_fixed_point_type. Update all callers.
8869 * ada-valprint.c (ada_value_print_num): Replace call to
8870 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8871
8872 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8873
8874 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8875 processors.
8876 (cpu_supports_bts): Add CV_AMD case.
8877
8878 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8879 Simon Marchi <simon.marchi@efficios.com>
8880
8881 * infrun.c (stop_all_threads): Collect multiple wait events at
8882 each pass.
8883
8884 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8885
8886 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8887 type::code instead.
8888
8889 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8890
8891 * gdbtypes.h (struct type) <code, set_code>: New methods.
8892 (TYPE_CODE): Use type::code. Change all call sites used to set
8893 the code to use type::set_code instead.
8894
8895 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8896 Tom de Vries <tdevries@suse.de>
8897 Pedro Alves <palves@redhat.com>
8898
8899 PR threads/25478
8900 * infrun.c (stop_all_threads): Do NOT ignore
8901 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8902 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8903 received.
8904 (handle_no_resumed): Remove code handling a live inferior with no
8905 threads.
8906 * remote.c (has_single_non_exited_thread): New.
8907 (remote_target::update_thread_list): Do not delete a thread if is
8908 the last thread of the process.
8909 * thread.c (thread_select): Call delete_exited_threads instead of
8910 prune_threads.
8911
8912 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8913
8914 * infrun.c (stop_all_threads): Enable/disable thread events of all
8915 targets. Move a debug message denoting the end of the function
8916 into the SCOPED_EXIT block.
8917
8918 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8919
8920 * process-stratum-target.h: Include <set>.
8921 (all_non_exited_process_targets, switch_to_target_no_thread): New
8922 function declarations.
8923 * process-stratum-target.c (all_non_exited_process_targets)
8924 (switch_to_target_no_thread): New function implementations.
8925
8926 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8927
8928 * infrun.c (handle_inferior_event): Extract out a piece of code
8929 into...
8930 (mark_non_executing_threads): ...this new function.
8931
8932 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8933
8934 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8935 use.
8936
8937 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8938
8939 * regcache.c (regcache_read_pc_protected): New function
8940 implementation that returns 0 if the PC cannot read via
8941 'regcache_read_pc'.
8942 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8943 instead of 'regcache_read_pc'.
8944 (keep_going_pass_signal): Ditto.
8945
8946 2020-05-13 Tom Tromey <tromey@adacore.com>
8947
8948 * ada-lang.c (align_value): Remove.
8949 (ada_template_to_fixed_record_type_1): Use align_up.
8950
8951 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8952
8953 * async-event.c: Update the copyright year.
8954 * async-event.h: Update the copyright year.
8955
8956 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8957
8958 * objfiles.h (is_addr_in_objfile,
8959 shared_objfile_contains_address_p): Return bool.
8960 * objfile.c (is_addr_in_objfile,
8961 shared_objfile_contains_address_p): Return bool.
8962
8963 2020-05-11 Tom Tromey <tromey@adacore.com>
8964
8965 * cli/cli-cmds.c (info_command): Restore.
8966 (_initialize_cli_cmds): Use add_prefix_command for "info".
8967 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8968
8969 2020-05-11 Tom Tromey <tromey@adacore.com>
8970
8971 * ada-lang.c (ada_value_primitive_field): Now public.
8972 * ada-lang.h (ada_value_primitive_field): Declare.
8973 * ada-valprint.c (print_field_values): Use
8974 ada_value_primitive_field for wrapper fields.
8975
8976 2020-05-11 Tom de Vries <tdevries@suse.de>
8977
8978 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8979 MODULE_DOMAIN.
8980
8981 2020-05-11 Tom de Vries <tdevries@suse.de>
8982
8983 PR symtab/25941
8984 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8985 with length 0, if not gdb-produced.
8986 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8987
8988 2020-05-09 Tom de Vries <tdevries@suse.de>
8989
8990 PR gdb/25955
8991 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8992 calculation.
8993
8994 2020-05-09 Tom Tromey <tom@tromey.com>
8995
8996 * top.c (server_command): Now bool.
8997 * top.h (server_command): Now bool.
8998
8999 2020-05-08 Tom Tromey <tromey@adacore.com>
9000
9001 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9002 already being processed.
9003
9004 2020-05-08 Tom Tromey <tom@tromey.com>
9005
9006 * printcmd.c (struct display) <next>: Remove.
9007 <display>: New constructor.
9008 <exp_string>: Now a std::string.
9009 <enabled_p>: Now a bool.
9010 (display_number): Move definition earlier.
9011 (displays): Rename from display_chain. Now a std::vector.
9012 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9013 (display_command): Update.
9014 (do_one_display, disable_display)
9015 (enable_disable_display_command, do_enable_disable_display):
9016 Update.
9017 (free_display): Remove.
9018 (clear_displays): Rewrite.
9019 (delete_display): Update.
9020 (map_display_numbers): Use function_view. Remove "data"
9021 parameter. Update.
9022 (do_delete_display): Remove.
9023 (undisplay_command): Update.
9024 (do_one_display, do_displays, disable_display)
9025 (info_display_command): Update.
9026 (do_enable_disable_display): Remove.
9027 (enable_disable_display_command)
9028 (clear_dangling_display_expressions): Update.
9029
9030 2020-05-08 Tom Tromey <tom@tromey.com>
9031
9032 * symtab.c (set_symbol_cache_size)
9033 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9034 (maintenance_print_symbol_cache_statistics): Update.
9035 * symmisc.c (print_symbol_bcache_statistics)
9036 (print_objfile_statistics, maintenance_print_objfiles)
9037 (maintenance_info_symtabs, maintenance_check_symtabs)
9038 (maintenance_expand_symtabs, maintenance_info_line_tables):
9039 Update.
9040 * symfile-debug.c (set_debug_symfile): Update.
9041 * source.c (forget_cached_source_info): Update.
9042 * python/python.c (gdbpy_progspaces): Update.
9043 * psymtab.c (maintenance_info_psymtabs): Update.
9044 * probe.c (parse_probes): Update.
9045 * linespec.c (iterate_over_all_matching_symtabs)
9046 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9047 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9048 * exec.c (exec_target::close): Update.
9049 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9050 * breakpoint.c (print_one_breakpoint_location)
9051 (create_longjmp_master_breakpoint)
9052 (create_std_terminate_master_breakpoint): Update.
9053 * progspace.c (program_spaces): Now a std::vector.
9054 (maybe_new_address_space): Update.
9055 (add_program_space): Remove.
9056 (program_space::program_space): Update.
9057 (remove_program_space): Update.
9058 (number_of_program_spaces): Remove.
9059 (print_program_space, update_address_spaces): Update.
9060 * progspace.h (program_spaces): Change type.
9061 (ALL_PSPACES): Remove.
9062 (number_of_program_spaces): Don't declare.
9063 (struct program_space) <next>: Remove.
9064
9065 2020-05-08 Tom Tromey <tom@tromey.com>
9066
9067 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9068 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9069 (enable_break): Update.
9070 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9071 (frv_fdpic_find_canonical_descriptor): Update.
9072 (frv_fetch_objfile_link_map): Update.
9073 * progspace.c (program_space::free_all_objfiles): Update.
9074 (program_space::solibs): New method.
9075 * progspace.h (struct program_space) <solibs>: New method.
9076 * solist.h (master_so_list): Don't declare.
9077 (ALL_SO_LIBS): Remove.
9078 * solib.h (so_list_head): Remove.
9079 (update_solib_list): Update comment.
9080 * solib.c (master_so_list): Remove.
9081 (solib_used, update_solib_list, solib_add)
9082 (info_sharedlibrary_command, clear_solib)
9083 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9084
9085 2020-05-08 Tom Tromey <tom@tromey.com>
9086
9087 * extension.c (extension_languages): Now a std::array.
9088 (ALL_EXTENSION_LANGUAGES): Remove.
9089 (get_ext_lang_defn, get_ext_lang_of_file)
9090 (eval_ext_lang_from_control_command): Update.
9091 (finish_ext_lang_initialization)
9092 (auto_load_ext_lang_scripts_for_objfile)
9093 (ext_lang_type_printers::ext_lang_type_printers)
9094 (apply_ext_lang_type_printers)
9095 (ext_lang_type_printers::~ext_lang_type_printers)
9096 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9097 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9098 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9099 (get_matching_xmethod_workers, ext_lang_colorize)
9100 (ext_lang_before_prompt): Update.
9101 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9102
9103 2020-05-08 Tom Tromey <tom@tromey.com>
9104
9105 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9106 overload.
9107 <swap_string, m_string>: Remove.
9108 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9109 Update.
9110 * stabsread.c (define_symbol, read_type): Update.
9111 * linespec.c (find_linespec_symbols): Update.
9112 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9113 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9114 * dbxread.c (read_dbx_symtab): Update.
9115 * cp-support.h (cp_canonicalize_string_full)
9116 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9117 Return unique_xmalloc_ptr.
9118 * cp-support.c (inspect_type): Update.
9119 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9120 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9121 Likewise.
9122 * c-typeprint.c (print_name_maybe_canonical): Update.
9123 * break-catch-throw.c (check_status_exception_catchpoint):
9124 Update.
9125
9126 2020-05-08 Tom de Vries <tdevries@suse.de>
9127
9128 * infrun.c (follow_fork): Copy current_line and current_symtab to
9129 child thread.
9130
9131 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9132
9133 * async-event.c (struct async_signal_handler, struct
9134 async_event_handler): Reformat, remove typedef.
9135
9136 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9137
9138 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9139 access thistype->main_type->dyn_prop_list directly.
9140
9141 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9142
9143 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9144 (remove_dyn_prop): Remove. Update all users to use
9145 type::remove_dyn_prop.
9146 * gdbtypes.c (remove_dyn_prop): Rename to...
9147 (type::remove_dyn_prop): ... this.
9148
9149 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9150
9151 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9152 (add_dyn_prop): Remove. Update all users to use
9153 type::add_dyn_prop.
9154 * gdbtypes.c (add_dyn_prop): Rename to...
9155 (type::add_dyn_prop): ... this.
9156
9157 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9158
9159 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9160 (get_dyn_prop): Remove. Update all users to use
9161 type::dyn_prop.
9162 * gdbtypes.c (get_dyn_prop): Rename to...
9163 (type::dyn_prop): ... this.
9164
9165 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9166
9167 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9168
9169 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9170
9171 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9172 instruction, skip it if it's there.
9173
9174 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9175
9176 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9177
9178 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9179
9180 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9181 * gdbtypes.c (recursive_dump_type): Remove use of
9182 TYPE_INCOMPLETE.
9183
9184 2020-05-03 Tom Tromey <tom@tromey.com>
9185
9186 * breakpoint.c (catch_command, tcatch_command): Remove.
9187 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9188 add_show_prefix_cmd.
9189 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9190 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9191 Remove.
9192 (add_internal_problem_command): Use add_basic_prefix_cmd,
9193 add_show_prefix_cmd.
9194 * mips-tdep.c (set_mipsfpu_command): Remove.
9195 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9196 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9197 (_initialize_index_cache): Use add_basic_prefix_cmd.
9198 * memattr.c (dummy_cmd): Remove.
9199 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9200 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9201 (_initialize_tui_win): Use add_basic_prefix_cmd,
9202 add_show_prefix_cmd.
9203 * cli/cli-logging.c (set_logging_command): Remove.
9204 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9205 add_show_prefix_cmd.
9206 (show_logging_command): Remove.
9207 * target.c (target_command): Remove.
9208 (add_target): Use add_basic_prefix_cmd.
9209
9210 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9211
9212 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9213
9214 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9215
9216 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9217 info_command.
9218
9219 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9220
9221 * nbsd-nat.c (nbsd_enable_proc_events)
9222 (nbsd_nat_target::post_startup_inferior): Add.
9223 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9224 (nbsd_nat_target::update_thread_list): Rewrite.
9225 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9226 "PTRACE_LWP_CREATE".
9227 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9228
9229 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9230
9231 * stack.c (_initialize_stack): Remove duplicated creation
9232 of "frame" command and "f" alias.
9233
9234 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9235
9236 PR gdb/18706
9237 * gdbtypes.c (check_typedef): Calculate size of array of
9238 stubbed type.
9239
9240 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9241
9242 PR gdb/15559
9243 * i386-tdep.c (i386_push_dummy_call): Call
9244 i386_thiscall_push_dummy_call.
9245 (i386_thiscall_push_dummy_call): New function.
9246 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9247 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9248 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9249
9250 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9251
9252 * gdbarch.sh (do_read): Add shellcheck disable directive for
9253 warning SC2162.
9254
9255 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9256
9257 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9258 "referenced but not assigned" warning.
9259
9260 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9261
9262 * gdbarch.sh: Remove code that sets fallbackdefault.
9263
9264 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9265
9266 * gdbarch.sh: Use shell operators && and || instead of
9267 -a and -o.
9268
9269 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9270
9271 * gdbarch.sh: Use $(...) instead of `...`.
9272
9273 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9274
9275 * gdbarch.sh: Use double quotes around variables.
9276
9277 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9278
9279 * gdbarch.sh: Use %s with printf, instead of variables in the
9280 format string.
9281
9282 2020-04-29 Tom Tromey <tromey@adacore.com>
9283
9284 PR ada/25875:
9285 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9286 type fields here.
9287 (read_enumeration_type): Call
9288 update_enumeration_type_from_children later. Update comments.
9289 (process_enumeration_scope): Don't create type fields.
9290
9291 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9292
9293 * nbsd-tdep.c: Include "xml-syscall.h".
9294 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9295
9296 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9297
9298 * nbsd-nat.c: Include "sys/wait.h".
9299 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9300 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9301 (nbsd_nat_target::remove_exec_catchpoint)
9302 (nbsd_nat_target::set_syscall_catchpoint): Add.
9303 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9304 (nbsd_nat_target::insert_exec_catchpoint)
9305 (nbsd_nat_target::remove_exec_catchpoint)
9306 (nbsd_nat_target::set_syscall_catchpoint): Add.
9307 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9308 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9309 `nbsd_get_syscall_number'.
9310
9311 2020-04-29 Tom Tromey <tom@tromey.com>
9312
9313 * stack.c (print_block_frame_labels): Remove.
9314
9315 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9316
9317 PR gdb/17320
9318 * ada-valprint.c (val_print_packed_array_elements): Move array
9319 end bracket to new line.
9320 (ada_val_print_string): Remove extra spaces before first array
9321 element.
9322 * c-valprint.c (c_value_print_array): Likewise.
9323 * m2-valprint.c (m2_print_array_contents): Likewise.
9324 (m2_value_print_inner): Likewise.
9325 * p-valprint.c (pascal_value_print_inner): Likewise.
9326 * valprint.c (generic_val_print_array): Likewise.
9327 (value_print_array_elements): Move first array element and array
9328 end bracket to new line.
9329
9330 2020-04-29 Tom de Vries <tdevries@suse.de>
9331
9332 PR symtab/25889
9333 * linespec.c (find_method): Fix ix calculation.
9334
9335 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9336
9337 * syscalls/update-netbsd.sh: New file.
9338 * syscalls/netbsd.xml: Regenerate.
9339 * data-directory/Makefile.in: Register `netbsd.xml' in
9340 `SYSCALLS_FILES'.
9341
9342 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9343
9344 * syscalls/update-freebsd.sh: Add double quotes.
9345
9346 2020-04-28 Tom Tromey <tom@tromey.com>
9347
9348 * NEWS: Update.
9349 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9350 (cmdpy_init): Allow class_tui.
9351
9352 2020-04-28 Mark Williams <mark@myosotissp.com>
9353
9354 PR gdb/24480
9355 * dwarf2read.c: Add missing assingments to list_in_scope when
9356 start_symtab was already called.
9357
9358 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9359
9360 PR gdb/25881
9361 * dwarf2/read.c (offset_map_type): Use
9362 gdb:hash_enum<sect_offset> as hash function.
9363
9364 2020-04-28 Tom de Vries <tdevries@suse.de>
9365
9366 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9367 with DW_AT_signature.
9368
9369 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9370
9371 * configure.ac: Remove check for fs_base/gs_base in
9372 user_regs_struct.
9373 * configure: Re-generate.
9374 * config.in: Re-generate.
9375 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9376 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9377 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9378
9379 2020-04-27 Luis Machado <luis.machado@linaro.org>
9380
9381 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9382 problematic inline frame unwinding situation.
9383 * frame.c (frame_id_computed_p): New function.
9384 * frame.h (frame_id_computed_p): New prototype.
9385
9386 2020-04-26 Tom Tromey <tom@tromey.com>
9387
9388 * command.h (enum command_class) <class_pseudo>: Remove.
9389
9390 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9391
9392 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9393 and whitespace.
9394
9395 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9396
9397 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9398 `PT_GET_PROCESS_STATE' block.
9399
9400 2020-04-24 Tom Tromey <tom@tromey.com>
9401
9402 * symtab.h (symbol_get_demangled_name): Don't declare.
9403 * symtab.c (symbol_get_demangled_name): Remove.
9404 (general_symbol_info::natural_name)
9405 (general_symbol_info::demangled_name): Update.
9406
9407 2020-04-24 Tom Tromey <tom@tromey.com>
9408
9409 PR rust/25025:
9410 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9411
9412 2020-04-24 Tom Tromey <tom@tromey.com>
9413
9414 PR symtab/12707:
9415 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9416 exists.
9417 (new_symbol): Likewise.
9418 * compile/compile-object-load.c (get_out_value_type): Use
9419 symbol_matches_search_name.
9420
9421 2020-04-24 Tom Tromey <tom@tromey.com>
9422
9423 * dwarf2/read.c (add_partial_symbol): Do not call
9424 compute_and_set_names.
9425
9426 2020-04-24 Tom Tromey <tom@tromey.com>
9427
9428 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9429 overload.
9430
9431 2020-04-24 Tom Tromey <tom@tromey.com>
9432
9433 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9434 (add_psymbol_to_list): New overload. Make old overload call new
9435 one.
9436 * psympriv.h (add_psymbol_to_list): New overload.
9437
9438 2020-04-24 Tom Tromey <tom@tromey.com>
9439
9440 * dwarf2/read.c (partial_die_info::read) <case
9441 DW_AT_linkage_name>: Use value_as_string.
9442 (dwarf2_string_attr): Use value_as_string.
9443 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9444 method.
9445 * dwarf2/attribute.c (attribute::value_as_string): New method.
9446
9447 2020-04-24 Tom Tromey <tom@tromey.com>
9448
9449 * symtab.c (general_symbol_info::natural_name)
9450 (general_symbol_info::demangled_name): Check for language_rust.
9451
9452 2020-04-24 Tom Tromey <tom@tromey.com>
9453
9454 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9455 (dwarf2_physname): ... from here.
9456 (partial_die_info::read): Add Rust "{" hack.
9457
9458 2020-04-24 Tom Tromey <tom@tromey.com>
9459
9460 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9461 method.
9462 (symbol_set_demangled_name): Don't declare.
9463 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9464 symbol_set_demangled_name.
9465 (general_symbol_info::set_language)
9466 (general_symbol_info::compute_and_set_names): Update.
9467 * minsyms.c (minimal_symbol_reader::install): Update.
9468 * dwarf2/read.c (new_symbol): Update.
9469
9470 2020-04-24 Tom Tromey <tromey@adacore.com>
9471
9472 PR python/23662:
9473 * python/py-type.c (convert_field): Handle
9474 FIELD_LOC_KIND_DWARF_BLOCK.
9475 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9476 (typy_get_dynamic): Nw function.
9477 (type_object_getset): Add "dynamic".
9478 * NEWS: Add entry.
9479
9480 2020-04-24 Tom Tromey <tromey@adacore.com>
9481
9482 * ada-typeprint.c (print_choices, print_variant_part)
9483 (print_record_field_types_dynamic): New functions.
9484 (print_record_field_types): Use print_record_field_types_dynamic.
9485
9486 2020-04-24 Tom Tromey <tromey@adacore.com>
9487
9488 * dwarf2/read.c (handle_data_member_location): New overload.
9489 (dwarf2_add_field): Use it.
9490 (decode_locdesc): Add "computed" parameter. Update comment.
9491 * gdbtypes.c (is_dynamic_type_internal): Also look for
9492 FIELD_LOC_KIND_DWARF_BLOCK.
9493 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9494 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9495 virtual base classes.
9496 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9497 FIELD_LOC_KIND_DWARF_BLOCK.
9498
9499 2020-04-24 Tom Tromey <tromey@adacore.com>
9500
9501 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9502 * gdbtypes.c (is_dynamic_type_internal): Check
9503 TYPE_HAS_DYNAMIC_LENGTH.
9504 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9505 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9506 New macros.
9507 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9508 constant.
9509
9510 2020-04-24 Tom Tromey <tromey@adacore.com>
9511
9512 * dwarf2/read.c (struct variant_field): Rewrite.
9513 (struct variant_part_builder): New.
9514 (struct nextfield): Remove "variant" field. Add "offset".
9515 (struct field_info): Add "current_variant_part" and
9516 "variant_parts".
9517 (alloc_discriminant_info): Remove.
9518 (alloc_rust_variant): New function.
9519 (quirk_rust_enum): Update.
9520 (dwarf2_add_field): Set "offset" member. Don't handle
9521 DW_TAG_variant_part.
9522 (offset_map_type): New typedef.
9523 (convert_variant_range, create_one_variant)
9524 (create_one_variant_part, create_variant_parts)
9525 (add_variant_property): New functions.
9526 (dwarf2_attach_fields_to_type): Call add_variant_property.
9527 (read_structure_type): Don't handle DW_TAG_variant_part.
9528 (handle_variant_part, handle_variant): New functions.
9529 (handle_struct_member_die): Use them.
9530 (process_structure_scope): Don't handle variant parts.
9531 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9532 (struct discriminant_info): Remove.
9533 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9534 (struct main_type) <flag_discriminated_union>: Remove.
9535 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9536 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9537 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9538 Update.
9539 * valops.c (value_union_variant): Remove.
9540 * value.h (value_union_variant): Don't declare.
9541
9542 2020-04-24 Tom Tromey <tromey@adacore.com>
9543
9544 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9545 (ada_value_primitive_packed_val): Update.
9546 * ada-valprint.c (ada_value_print_1): Update.
9547 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9548 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9549 just an address. Use evaluate_for_locexpr_baton.
9550 (dwarf2_evaluate_property): Update.
9551 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9552 array_view.
9553 * findvar.c (default_read_var_value): Update.
9554 * gdbtypes.c (compute_variant_fields_inner)
9555 (resolve_dynamic_type_internal): Update.
9556 (resolve_dynamic_type): Change type of valaddr parameter.
9557 * gdbtypes.h (resolve_dynamic_type): Update.
9558 * valarith.c (value_subscripted_rvalue): Update.
9559 * value.c (value_from_contents_and_address): Update.
9560
9561 2020-04-24 Tom Tromey <tromey@adacore.com>
9562
9563 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9564 "push_initial_value" parameter.
9565 (dwarf2_evaluate_property): Likewise.
9566 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9567
9568 2020-04-24 Tom Tromey <tromey@adacore.com>
9569
9570 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9571 (variant::matches, compute_variant_fields_recurse)
9572 (compute_variant_fields_inner, compute_variant_fields): New
9573 functions.
9574 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9575 Use resolved_type after type is made.
9576 (operator==): Add new cases.
9577 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9578 (struct discriminant_range, struct variant, struct variant_part):
9579 New.
9580 (union dynamic_prop_data) <variant_parts, original_type>: New
9581 members.
9582 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9583 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9584 constants.
9585 * value.c (unpack_bits_as_long): Now public.
9586 * value.h (unpack_bits_as_long): Declare.
9587
9588 2020-04-24 Tom Tromey <tromey@adacore.com>
9589
9590 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9591 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9592
9593 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9594
9595 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9596
9597 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9598
9599 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9600 (remove_fork_catchpoint, post_startup_inferior)
9601 (post_attach): Move...
9602 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9603 (remove_fork_catchpoint, post_startup_inferior)
9604 (post_attach): ...here.
9605 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9606 (remove_fork_catchpoint, post_startup_inferior)
9607 (post_attach): Move...
9608 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9609 (remove_fork_catchpoint, post_startup_inferior)
9610 (post_attach): ...here.
9611
9612 2020-04-24 Tom Tromey <tromey@adacore.com>
9613
9614 * nat/windows-nat.h (struct windows_thread_info)
9615 <pc_adjusted>: New member.
9616 * windows-nat.c (windows_fetch_one_register): Check
9617 pc_adjusted.
9618 (windows_nat_target::get_windows_debug_event)
9619 (windows_nat_target::wait): Set pc_adjusted.
9620
9621 2020-04-24 Tom de Vries <tdevries@suse.de>
9622
9623 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9624 Run gdb-add-index inside temp dir.
9625
9626 2020-04-23 Tom Tromey <tromey@adacore.com>
9627
9628 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9629 in loop.
9630
9631 2020-04-23 Luis Machado <luis.machado@linaro.org>
9632
9633 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9634 get_frame_register instead of gdbarch_unwind_pc.
9635
9636 2020-04-23 Tom de Vries <tdevries@suse.de>
9637
9638 * symtab.c (lookup_global_symbol): Prefer def over decl.
9639
9640 2020-04-23 Tom de Vries <tdevries@suse.de>
9641
9642 PR symtab/25807
9643 * block.c (best_symbol, better_symbol): Promote to external.
9644 * block.h (best_symbol, better_symbol): Declare.
9645 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9646 decl.
9647
9648 2020-04-23 Tom Tromey <tromey@adacore.com>
9649
9650 PR ada/25837:
9651 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9652 "const char *", not a "const std::string &".
9653 <name_and_matcher::operator==>: Update.
9654 * unittests/lookup_name_info-selftests.c: Change type of
9655 "result".
9656
9657 2020-04-23 Tom Tromey <tom@tromey.com>
9658
9659 * inferior.h (iterate_over_inferiors): Don't declare.
9660 * inferior.c (iterate_over_inferiors): Remove.
9661 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9662 Remove.
9663 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9664 use iterate_over_inferiors.
9665 (darwin_resume_inferior_it)
9666 (struct resume_inferior_threads_param)
9667 (darwin_resume_inferior_threads_it): Remove.
9668 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9669
9670 2020-04-23 Tom de Vries <tdevries@suse.de>
9671
9672 * blockframe.c (find_pc_partial_function): Use
9673 find_pc_sect_compunit_symtab rather than
9674 objfile->sf->qf->find_pc_sect_compunit_symtab.
9675
9676 2020-04-22 Tom de Vries <tdevries@suse.de>
9677
9678 PR symtab/25764
9679 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9680 in psymtabs.
9681
9682 2020-04-22 Tom de Vries <tdevries@suse.de>
9683
9684 PR symtab/25801
9685 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9686 symtabs.
9687
9688 2020-04-22 Tom de Vries <tdevries@suse.de>
9689
9690 PR symtab/25700
9691 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9692 CU if already created.
9693
9694 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9695
9696 * infrun.c (displaced_step_fixup): Switch to the event_thread
9697 before calling displaced_step_restore, not after.
9698
9699 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9700
9701 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9702 its inferior is not recorded by us.
9703 (record_btrace_target_open): Replace call to
9704 all_non_exited_threads () with call to current_inferior
9705 ()->non_exited_threads ().
9706 (record_btrace_target::stop_recording): Likewise.
9707 (record_btrace_target::close): Likewise.
9708 (record_btrace_target::wait): Likewise.
9709 (record_btrace_target::record_stop_replaying): Likewise.
9710
9711 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9712
9713 * btrace.c (btrace_enable): Throw an error on double enables and
9714 when enabling recording fails.
9715 (btrace_disable): Throw an error if the thread is not recorded.
9716
9717 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9718
9719 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9720 request if we do not have a thread_info.
9721
9722 2020-04-21 Tom de Vries <tdevries@suse.de>
9723
9724 PR gdb/25471
9725 * thread.c
9726 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9727 exception in get_frame_id.
9728
9729 2020-04-20 Tom Tromey <tromey@adacore.com>
9730
9731 * python/python.c (struct gdbpy_event): Mark move constructor as
9732 noexcept.
9733 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9734 constructor as noexcept.
9735 * completer.h (struct completion_result): Mark move constructor as
9736 noexcept.
9737 * completer.c (completion_result::completion_result): Use
9738 initialization style. Don't call reset_match_list.
9739
9740 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9741
9742 * MAINTAINERS (Write After Approval): Add myself.
9743
9744 2020-04-18 Tom Tromey <tom@tromey.com>
9745
9746 * windows-tdep.c (init_w32_command_list)
9747 (w32_prefix_command_valid): Restore.
9748 (_initialize_windows_tdep): Call init_w32_command_list.
9749
9750 2020-04-18 Tom Tromey <tom@tromey.com>
9751
9752 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9753 * value.c (value_fn_field): Update.
9754 * valops.c (find_function_in_inferior)
9755 (value_allocate_space_in_inferior): Update.
9756 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9757 Update.
9758 * tui/tui-source.c (tui_source_window::set_contents): Update.
9759 * symtab.c (lookup_global_or_static_symbol)
9760 (find_function_start_sal_1, skip_prologue_sal)
9761 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9762 * symmisc.c (dump_msymbols, dump_symtab_1)
9763 (maintenance_print_one_line_table): Update.
9764 * symfile.c (init_entry_point_info, section_is_mapped)
9765 (list_overlays_command, simple_read_overlay_table)
9766 (simple_overlay_update_1): Update.
9767 * stap-probe.c (handle_stap_probe): Update.
9768 * stabsread.c (dbx_init_float_type, define_symbol)
9769 (read_one_struct_field, read_enum_type, read_range_type): Update.
9770 * source.c (info_line_command): Update.
9771 * python/python.c (gdbpy_source_objfile_script)
9772 (gdbpy_execute_objfile_script): Update.
9773 * python/py-type.c (save_objfile_types): Update.
9774 * python/py-objfile.c (py_free_objfile): Update.
9775 * python/py-inferior.c (python_new_objfile): Update.
9776 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9777 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9778 (maintenance_check_psymtabs): Update.
9779 * printcmd.c (info_address_command): Update.
9780 * objfiles.h (struct objfile) <arch>: New method, from
9781 get_objfile_arch.
9782 (get_objfile_arch): Don't declare.
9783 * objfiles.c (get_objfile_arch): Remove.
9784 (filter_overlapping_sections): Update.
9785 * minsyms.c (msymbol_is_function): Update.
9786 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9787 (output_nondebug_symbol): Update.
9788 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9789 (mdebug_expand_psymtab): Update.
9790 * machoread.c (macho_add_oso_symfile): Update.
9791 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9792 Update.
9793 * linux-fork.c (checkpoint_command): Update.
9794 * linespec.c (convert_linespec_to_sals): Update.
9795 * jit.c (finalize_symtab): Update.
9796 * infrun.c (insert_exception_resume_from_probe): Update.
9797 * ia64-tdep.c (ia64_find_unwind_table): Update.
9798 * hppa-tdep.c (internalize_unwinds): Update.
9799 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9800 Update.
9801 * gcore.c (call_target_sbrk): Update.
9802 * elfread.c (record_minimal_symbol, elf_symtab_read)
9803 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9804 (elf_gnu_ifunc_resolve_by_got): Update.
9805 * dwarf2/read.c (create_addrmap_from_index)
9806 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9807 (read_debug_names_from_section)
9808 (process_psymtab_comp_unit_reader, add_partial_symbol)
9809 (add_partial_subprogram, process_full_comp_unit)
9810 (read_file_scope, read_func_scope, read_lexical_block_scope)
9811 (read_call_site_scope, dwarf2_ranges_read)
9812 (dwarf2_record_block_ranges, dwarf2_add_field)
9813 (mark_common_block_symbol_computed, read_tag_pointer_type)
9814 (read_tag_string_type, dwarf2_init_float_type)
9815 (dwarf2_init_complex_target_type, read_base_type)
9816 (partial_die_info::read, partial_die_info::read)
9817 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9818 (dwarf2_fetch_die_loc_sect_off): Update.
9819 * dwarf2/loc.c (dwarf2_find_location_expression)
9820 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9821 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9822 (dwarf2_loc_desc_get_symbol_read_needs)
9823 (locexpr_describe_location_piece, locexpr_describe_location_1)
9824 (loclist_describe_location): Update.
9825 * dwarf2/index-write.c (write_debug_names): Update.
9826 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9827 * dtrace-probe.c (dtrace_process_dof): Update.
9828 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9829 (process_one_symbol): Update.
9830 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9831 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9832 (coff_read_enum_type): Update.
9833 * cli/cli-cmds.c (edit_command, list_command): Update.
9834 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9835 * breakpoint.c (create_overlay_event_breakpoint)
9836 (create_longjmp_master_breakpoint)
9837 (create_std_terminate_master_breakpoint)
9838 (create_exception_master_breakpoint, get_sal_arch): Update.
9839 * block.c (block_gdbarch): Update.
9840 * annotate.c (annotate_source_line): Update.
9841
9842 2020-04-17 Tom Tromey <tromey@adacore.com>
9843
9844 * auto-load.c (show_auto_load_cmd): Remove.
9845 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9846 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9847 (maintenance_print_arc_command): Remove.
9848 * tui/tui-win.c (tui_command): Remove.
9849 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9850 * tui/tui-layout.c (tui_layout_command): Remove.
9851 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9852 * python/python.c (user_set_python, user_show_python): Remove.
9853 (_initialize_python): Use add_basic_prefix_cmd,
9854 add_show_prefix_cmd.
9855 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9856 (install_gdb_commands): Use add_basic_prefix_cmd,
9857 add_show_prefix_cmd.
9858 (info_guile_command): Remove.
9859 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9860 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9861 add_show_prefix_cmd.
9862 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9863 Remove do_set and do_show parameters.
9864 * cli/cli-style.c (set_style, show_style): Remove.
9865 (_initialize_cli_style): Use add_basic_prefix_cmd,
9866 add_show_prefix_cmd.
9867 (cli_style_option::add_setshow_commands): Remove do_set and
9868 do_show parameters.
9869 (cli_style_option::add_setshow_commands): Use
9870 add_basic_prefix_cmd, add_show_prefix_cmd.
9871 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9872 (set_style_name): Remove.
9873 * cli/cli-dump.c (dump_command, append_command): Remove.
9874 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9875 (tekhex_dump_command, binary_dump_command)
9876 (binary_append_command): Remove.
9877 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9878 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9879 (init_w32_command_list): Remove; move into ...
9880 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9881 * valprint.c (set_print, show_print, set_print_raw)
9882 (show_print_raw): Remove.
9883 (_initialize_valprint): Use add_basic_prefix_cmd,
9884 add_show_prefix_cmd.
9885 * typeprint.c (set_print_type, show_print_type): Remove.
9886 (_initialize_typeprint): Use add_basic_prefix_cmd,
9887 add_show_prefix_cmd.
9888 * record.c (set_record_command, show_record_command): Remove.
9889 (_initialize_record): Use add_basic_prefix_cmd,
9890 add_show_prefix_cmd.
9891 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9892 add_show_prefix_cmd.
9893 (info_command, show_command, set_debug, show_debug): Remove.
9894 * top.h (set_history, show_history): Don't declare.
9895 * top.c (set_history, show_history): Remove.
9896 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9897 (unset_tdesc_cmd): Remove.
9898 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9899 add_show_prefix_cmd.
9900 * symtab.c (info_module_command): Remove.
9901 (_initialize_symtab): Use add_basic_prefix_cmd.
9902 * symfile.c (overlay_command): Remove.
9903 (_initialize_symfile): Use add_basic_prefix_cmd.
9904 * sparc64-tdep.c (info_adi_command): Remove.
9905 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9906 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9907 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9908 add_show_prefix_cmd.
9909 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9910 (_initialize_serial): Use add_basic_prefix_cmd,
9911 add_show_prefix_cmd.
9912 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9913 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9914 add_show_prefix_cmd.
9915 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9916 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9917 add_show_prefix_cmd.
9918 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9919 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9920 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9921 add_show_prefix_cmd.
9922 * remote.c (remote_command, set_remote_cmd): Remove.
9923 (_initialize_remote): Use add_basic_prefix_cmd.
9924 * record-full.c (set_record_full_command)
9925 (show_record_full_command): Remove.
9926 (_initialize_record_full): Use add_basic_prefix_cmd,
9927 add_show_prefix_cmd.
9928 * record-btrace.c (cmd_set_record_btrace)
9929 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9930 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9931 (cmd_show_record_btrace_pt): Remove.
9932 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9933 add_show_prefix_cmd.
9934 * ravenscar-thread.c (set_ravenscar_command)
9935 (show_ravenscar_command): Remove.
9936 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9937 add_show_prefix_cmd.
9938 * mips-tdep.c (show_mips_command, set_mips_command)
9939 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9940 add_show_prefix_cmd.
9941 * maint.c (maintenance_command, maintenance_info_command)
9942 (maintenance_check_command, maintenance_print_command)
9943 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9944 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9945 add_show_prefix_cmd.
9946 (show_per_command_cmd): Remove.
9947 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9948 Remove.
9949 (maintenance_show_test_settings_cmd): Remove.
9950 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9951 add_show_prefix_cmd.
9952 * maint-test-options.c (maintenance_test_options_command):
9953 Remove.
9954 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9955 * macrocmd.c (macro_command): Remove
9956 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9957 * language.c (set_check, show_check): Remove.
9958 (_initialize_language): Use add_basic_prefix_cmd,
9959 add_show_prefix_cmd.
9960 * infcmd.c (unset_command): Remove.
9961 (_initialize_infcmd): Use add_basic_prefix_cmd.
9962 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9963 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9964 add_show_prefix_cmd.
9965 * go32-nat.c (go32_info_dos_command): Remove.
9966 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9967 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9968 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9969 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9970 (_initialize_frame): Use add_basic_prefix_cmd,
9971 add_show_prefix_cmd.
9972 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9973 (_initialize_dcache): Use add_basic_prefix_cmd,
9974 add_show_prefix_cmd.
9975 * cp-support.c (maint_cplus_command): Remove.
9976 (_initialize_cp_support): Use add_basic_prefix_cmd.
9977 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9978 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9979 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9980 add_basic_prefix_cmd, add_show_prefix_cmd.
9981 * breakpoint.c (save_command): Remove.
9982 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9983 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9984 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9985 add_show_prefix_cmd.
9986 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9987 (set_ada_command, show_ada_command): Remove.
9988 (_initialize_ada_language): Use add_basic_prefix_cmd,
9989 add_show_prefix_cmd.
9990 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9991
9992 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9993
9994 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9995 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9996
9997 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9998
9999 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10000 warning messages.
10001
10002 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10003
10004 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10005 import table is not at beginning of .idata section.
10006
10007 2020-04-16 Pedro Alves <palves@redhat.com>
10008
10009 * inferior.c (delete_inferior): Use delete operator directly
10010 instead of delete_program_space.
10011 * progspace.c (add_program_space): New, factored out from
10012 program_space::program_space.
10013 (remove_program_space): New, factored out from
10014 delete_program_space.
10015 (program_space::program_space): Remove intro comment. Rewrite.
10016 (program_space::~program_space): Remove intro comment. Call
10017 remove_program_space.
10018 (delete_program_space): Delete.
10019 * progspace.h (program_space::program_space): Make explicit. Move
10020 intro comment here, adjusted.
10021 (program_space::~program_space): Move intro comment here,
10022 adjusted.
10023 (delete_program_space): Remove.
10024
10025 2020-04-16 Tom Tromey <tromey@adacore.com>
10026
10027 * windows-nat.c (windows_nat::handle_access_violation): New
10028 function.
10029 * nat/windows-nat.h (handle_access_violation): Declare.
10030 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10031 windows-nat.c. Call handle_access_violation.
10032
10033 2020-04-16 Tom de Vries <tdevries@suse.de>
10034
10035 PR symtab/25791
10036 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10037 CUs without psymtab.
10038
10039 2020-04-16 Kevin Buettner <kevinb@redhat.com>
10040
10041 * python/python.c (do_start_initialization): Don't call
10042 PyEval_InitThreads for Python 3.9 and beyond.
10043
10044 2020-04-15 Kamil Rytarowski <n54@gmx.com>
10045
10046 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10047 thread functions.
10048 (obsd_nat_target::wait): Likewise.
10049
10050 2020-04-15 Tom Tromey <tromey@adacore.com>
10051
10052 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10053 (DEBUG_EXCEPT): Use debug_printf.
10054
10055 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10056
10057 * completer.c (class completion_tracker::completion_hash_entry)
10058 <hash_name>: New member function.
10059 (completion_tracker::discard_completions): New callback to hash a
10060 completion_hash_entry, pass this to htab_create_alloc.
10061
10062 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10063
10064 * windows-nat.c (windows_make_so): Warn rather than stopping with
10065 an error if realpath() fails.
10066
10067 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10068
10069 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10070 (nbsd_nat_target::info_proc): Add do_status.
10071
10072 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10073 Tom de Vries <tdevries@suse.de>
10074
10075 PR symtab/25718
10076 * psympriv.h (struct partial_symtab::read_symtab)
10077 (struct partial_symtab::expand_psymtab)
10078 (struct partial_symtab::read_dependencies): Update comments.
10079 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10080 read_symtab for includer.
10081 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10082 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10083 (struct dwarf2_include_psymtab::m_readin): Remove.
10084 (struct dwarf2_include_psymtab::includer): New member function.
10085 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10086
10087 2020-04-14 Tom de Vries <tdevries@suse.de>
10088
10089 PR symtab/25720
10090 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10091 with NULL symbol_matcher and lookup_name.
10092 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10093 and lookup_name.
10094 * dwarf2/read.c (dw2_expand_symtabs_matching)
10095 (dw2_debug_names_expand_symtabs_matching): Same.
10096 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10097 Make lookup_name a pointer. Update comment.
10098 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10099 lookup_name being a pointer.
10100 * symfile.c (expand_symtabs_matching): Same.
10101 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10102 * linespec.c (iterate_over_all_matching_symtabs): Same.
10103
10104 2020-04-13 Tom Tromey <tom@tromey.com>
10105
10106 * run-on-main-thread.c: Update include.
10107 * unittests/main-thread-selftests.c: Update include.
10108 * tui/tui-win.c: Update include.
10109 * tui/tui-io.c: Update include.
10110 * tui/tui-interp.c: Update include.
10111 * tui/tui-hooks.c: Update include.
10112 * top.h: Update include.
10113 * top.c: Update include.
10114 * ser-base.c: Update include.
10115 * remote.c: Update include.
10116 * remote-notif.c: Update include.
10117 * remote-fileio.c: Update include.
10118 * record-full.c: Update include.
10119 * record-btrace.c: Update include.
10120 * python/python.c: Update include.
10121 * posix-hdep.c: Update include.
10122 * mingw-hdep.c: Update include.
10123 * mi/mi-main.c: Update include.
10124 * mi/mi-interp.c: Update include.
10125 * main.c: Update include.
10126 * linux-nat.c: Update include.
10127 * interps.c: Update include.
10128 * infrun.c: Update include.
10129 * inf-loop.c: Update include.
10130 * event-top.c: Update include.
10131 * event-loop.c: Move to ../gdbsupport/.
10132 * event-loop.h: Move to ../gdbsupport/.
10133 * async-event.h: Update include.
10134 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10135
10136 2020-04-13 Tom Tromey <tom@tromey.com>
10137
10138 * tui/tui-win.c: Include async-event.h.
10139 * remote.c: Include async-event.h.
10140 * remote-notif.c: Include async-event.h.
10141 * record-full.c: Include async-event.h.
10142 * record-btrace.c: Include async-event.h.
10143 * infrun.c: Include async-event.h.
10144 * event-top.c: Include async-event.h.
10145 * event-loop.h: Move some declarations to async-event.h.
10146 * event-loop.c: Don't include ser-event.h or top.h. Move some
10147 code to async-event.c.
10148 * async-event.h: New file.
10149 * async-event.c: New file.
10150 * Makefile.in (COMMON_SFILES): Add async-event.c.
10151 (HFILES_NO_SRCDIR): Add async-event.h.
10152
10153 2020-04-13 Tom Tromey <tom@tromey.com>
10154
10155 * utils.c (flush_streams): New function.
10156 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10157
10158 2020-04-13 Tom Tromey <tom@tromey.com>
10159
10160 * event-loop.c (handle_file_event): Use warning, not
10161 printf_unfiltered.
10162
10163 2020-04-13 Tom Tromey <tom@tromey.com>
10164
10165 * event-loop.c: Include <chrono>.
10166
10167 2020-04-13 Tom Tromey <tom@tromey.com>
10168
10169 * gdb_select.h: Move to ../gdbsupport/.
10170 * event-loop.c: Update include path.
10171 * top.c: Update include path.
10172 * ser-base.c: Update include path.
10173 * ui-file.c: Update include path.
10174 * ser-tcp.c: Update include path.
10175 * guile/scm-ports.c: Update include path.
10176 * posix-hdep.c: Update include path.
10177 * ser-unix.c: Update include path.
10178 * gdb_usleep.c: Update include path.
10179 * mingw-hdep.c: Update include path.
10180 * inflow.c: Update include path.
10181 * infrun.c: Update include path.
10182 * event-top.c: Update include path.
10183
10184 2020-04-13 Tom Tromey <tom@tromey.com>
10185
10186 * configure: Rebuild.
10187 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10188
10189 2020-04-13 Tom Tromey <tom@tromey.com>
10190
10191 * event-loop.h (start_event_loop): Don't declare.
10192 * event-loop.c (start_event_loop): Move...
10193 * main.c (start_event_loop): ...here. Now static.
10194
10195 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10196
10197 * MAINTAINERS: Update my email address.
10198
10199 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10200
10201 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10202 IP_ALL.
10203
10204 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10205
10206 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10207 (nbsd_nat_target::info_proc): Add do_cmdline.
10208
10209 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10210
10211 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10212 (nbsd_nat_target::info_proc): Add do_cwd.
10213
10214 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10215
10216 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10217
10218 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10219
10220 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10221 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10222 (nbsd_nat_target::info_proc): New functions.
10223 * nbsd-nat.c (kinfo_get_vmmap): New function.
10224 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10225 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10226 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10227 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10228 functions.
10229 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10230 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10231 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10232 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10233 (KINFO_VME_FLAG_GROWS_DOWN): New.
10234
10235 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10236
10237 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10238 bit shift.
10239
10240 2020-04-10 Tom Tromey <tromey@adacore.com>
10241
10242 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10243
10244 2020-04-10 Tom Tromey <tromey@adacore.com>
10245
10246 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10247 separate debug files.
10248
10249 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10250
10251 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10252 Move to...
10253 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10254 ... here.
10255 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10256 Check for STATUS_WX86_BREAKPOINT.
10257 (windows_nat_target::wait): Same.
10258
10259 2020-04-10 Tom de Vries <tdevries@suse.de>
10260
10261 PR cli/25808
10262 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10263
10264 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10265
10266 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10267 (Write After Approval): Remove Tom de Vries.
10268
10269 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10270
10271 revert partially:
10272 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10273
10274 * buildsym.c (record_line): Fix undefined behavior and preserve
10275 lines at eof.
10276
10277 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10278
10279 * auxv.h (svr4_auxv_parse): New.
10280 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10281 and generic_auxv_parse.
10282 (svr4_auxv_parse): Add.
10283 * obsd-tdep.c: Include "auxv.h".
10284 (obsd_auxv_parse): Remove.
10285 (obsd_init_abi): Remove comment.
10286 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10287 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10288 * nbsd-tdep.c: Include "auxv.h".
10289 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10290
10291 2020-04-08 Tom Tromey <tromey@adacore.com>
10292
10293 * nat/windows-nat.h (last_wait_event): Don't declare.
10294 (wait_for_debug_event): Update comment.
10295 * nat/windows-nat.c (last_wait_event): Now static.
10296
10297 2020-04-08 Tom Tromey <tromey@adacore.com>
10298
10299 * windows-nat.c (wait_for_debug_event): Move to
10300 nat/windows-nat.c.
10301 * nat/windows-nat.h (wait_for_debug_event): Declare.
10302 * nat/windows-nat.c (wait_for_debug_event): Move from
10303 windows-nat.c. No longer static.
10304
10305 2020-04-08 Tom Tromey <tromey@adacore.com>
10306
10307 * windows-nat.c (get_windows_debug_event): Use
10308 fetch_pending_stop.
10309 * nat/windows-nat.h (fetch_pending_stop): Declare.
10310 * nat/windows-nat.c (fetch_pending_stop): New function.
10311
10312 2020-04-08 Tom Tromey <tromey@adacore.com>
10313
10314 * windows-nat.c (windows_continue): Use matching_pending_stop and
10315 continue_last_debug_event.
10316 * nat/windows-nat.h (matching_pending_stop)
10317 (continue_last_debug_event): Declare.
10318 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10319 (matching_pending_stop, continue_last_debug_event): New
10320 functions.
10321
10322 2020-04-08 Tom Tromey <tromey@adacore.com>
10323
10324 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10325 (handle_exception_result): Move to nat/windows-nat.h.
10326 (DEBUG_EXCEPTION_SIMPLE): Remove.
10327 (windows_nat::handle_ms_vc_exception): New function.
10328 (handle_exception): Move to nat/windows-nat.c.
10329 (get_windows_debug_event): Update.
10330 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10331 nat/windows-nat.c.
10332 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10333 (handle_exception_result): Move from windows-nat.c.
10334 (handle_exception): Declare.
10335 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10336 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10337 windows-nat.c.
10338
10339 2020-04-08 Tom Tromey <tromey@adacore.com>
10340
10341 * windows-nat.c (exception_count, event_count): Remove.
10342 (handle_exception, get_windows_debug_event)
10343 (do_initial_windows_stuff): Update.
10344
10345 2020-04-08 Tom Tromey <tromey@adacore.com>
10346
10347 * windows-nat.c (windows_nat::handle_load_dll)
10348 (windows_nat::handle_unload_dll): Rename. No longer static.
10349 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10350 Declare.
10351
10352 2020-04-08 Tom Tromey <tromey@adacore.com>
10353
10354 * complaints.h (stop_whining): Declare at top-level.
10355 (complaint): Don't declare stop_whining.
10356
10357 2020-04-08 Tom Tromey <tromey@adacore.com>
10358
10359 * windows-nat.c (windows_nat::handle_output_debug_string):
10360 Rename. No longer static.
10361 * nat/windows-nat.h (handle_output_debug_string): Declare.
10362
10363 2020-04-08 Tom Tromey <tromey@adacore.com>
10364
10365 * windows-nat.c (current_process_handle, current_process_id)
10366 (main_thread_id, last_sig, current_event, last_wait_event)
10367 (current_windows_thread, desired_stop_thread_id, pending_stops)
10368 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10369 (display_selectors, fake_create_process)
10370 (get_windows_debug_event): Update.
10371 * nat/windows-nat.h (current_process_handle, current_process_id)
10372 (main_thread_id, last_sig, current_event, last_wait_event)
10373 (current_windows_thread, desired_stop_thread_id, pending_stops)
10374 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10375 * nat/windows-nat.c (current_process_handle, current_process_id)
10376 (main_thread_id, last_sig, current_event, last_wait_event)
10377 (current_windows_thread, desired_stop_thread_id, pending_stops)
10378 (siginfo_er): New globals. Move from windows-nat.c.
10379
10380 2020-04-08 Tom Tromey <tromey@adacore.com>
10381
10382 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10383 (handle_load_dll): Update.
10384 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10385
10386 2020-04-08 Tom Tromey <tromey@adacore.com>
10387
10388 * windows-nat.c (enum thread_disposition_type): Move to
10389 nat/windows-nat.h.
10390 (windows_nat::thread_rec): Rename from thread_rec. No longer
10391 static.
10392 (windows_add_thread, windows_nat_target::fetch_registers)
10393 (windows_nat_target::store_registers, handle_exception)
10394 (windows_nat_target::resume, get_windows_debug_event)
10395 (windows_nat_target::get_tib_address)
10396 (windows_nat_target::thread_name)
10397 (windows_nat_target::thread_alive): Update.
10398 * nat/windows-nat.h (enum thread_disposition_type): Move from
10399 windows-nat.c.
10400 (thread_rec): Declare.
10401
10402 2020-04-08 Tom Tromey <tromey@adacore.com>
10403
10404 * windows-nat.c: Add "using namespace".
10405 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10406 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10407
10408 2020-04-08 Tom Tromey <tromey@adacore.com>
10409
10410 * nat/windows-nat.h (struct windows_thread_info): Declare
10411 destructor.
10412 * nat/windows-nat.c (~windows_thread_info): New.
10413
10414 2020-04-08 Tom Tromey <tromey@adacore.com>
10415
10416 PR gdb/22992
10417 * windows-nat.c (current_event): Update comment.
10418 (last_wait_event, desired_stop_thread_id): New globals.
10419 (struct pending_stop): New.
10420 (pending_stops): New global.
10421 (windows_nat_target) <stopped_by_sw_breakpoint>
10422 <supports_stopped_by_sw_breakpoint>: New methods.
10423 (windows_fetch_one_register): Add assertions. Adjust PC.
10424 (windows_continue): Handle pending stops. Suspend other threads
10425 when stepping. Use last_wait_event
10426 (wait_for_debug_event): New function.
10427 (get_windows_debug_event): Use wait_for_debug_event. Handle
10428 pending stops. Queue spurious stops.
10429 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10430 (windows_nat_target::kill): Use wait_for_debug_event.
10431 * nat/windows-nat.h (struct windows_thread_info)
10432 <stopped_at_software_breakpoint>: New field.
10433 * nat/windows-nat.c (windows_thread_info::resume): Clear
10434 stopped_at_software_breakpoint.
10435
10436 2020-04-08 Tom Tromey <tromey@adacore.com>
10437
10438 * windows-nat.c (enum thread_disposition_type): New.
10439 (thread_rec): Replace "get_context" parameter with "disposition";
10440 change type.
10441 (windows_add_thread, windows_nat_target::fetch_registers)
10442 (windows_nat_target::store_registers, handle_exception)
10443 (windows_nat_target::resume, get_windows_debug_event)
10444 (windows_nat_target::get_tib_address)
10445 (windows_nat_target::thread_name)
10446 (windows_nat_target::thread_alive): Update.
10447
10448 2020-04-08 Tom Tromey <tromey@adacore.com>
10449
10450 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10451 (windows_continue): Use windows_continue::resume.
10452 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10453 resume>: Declare new methods.
10454 * nat/windows-nat.c: New file.
10455 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10456
10457 2020-04-08 Tom Tromey <tromey@adacore.com>
10458
10459 * windows-nat.c (windows_add_thread, windows_delete_thread)
10460 (windows_nat_target::fetch_registers)
10461 (windows_nat_target::store_registers, fake_create_process)
10462 (windows_nat_target::resume, windows_nat_target::resume)
10463 (get_windows_debug_event, windows_nat_target::wait)
10464 (windows_nat_target::pid_to_str)
10465 (windows_nat_target::get_tib_address)
10466 (windows_nat_target::get_ada_task_ptid)
10467 (windows_nat_target::thread_name)
10468 (windows_nat_target::thread_alive): Use lwp, not tid.
10469
10470 2020-04-08 Tom Tromey <tromey@adacore.com>
10471
10472 * windows-nat.c (handle_exception)
10473 (windows_nat_target::thread_name): Update.
10474 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10475 <name>: Now unique_xmalloc_ptr.
10476
10477 2020-04-08 Tom Tromey <tromey@adacore.com>
10478
10479 * windows-nat.c (thread_rec)
10480 (windows_nat_target::fetch_registers): Update.
10481 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10482 Update comment.
10483 <debug_registers_changed, reload_context>: Now bool.
10484
10485 2020-04-08 Tom Tromey <tromey@adacore.com>
10486
10487 * windows-nat.c (windows_add_thread): Use new.
10488 (windows_init_thread_list, windows_delete_thread): Use delete.
10489 (get_windows_debug_event): Update.
10490 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10491 destructor, and initializers.
10492
10493 2020-04-08 Tom Tromey <tromey@adacore.com>
10494
10495 * windows-nat.c (struct windows_thread_info): Remove.
10496 * nat/windows-nat.h: New file.
10497
10498 2020-04-08 Tom Tromey <tromey@adacore.com>
10499
10500 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10501 (thread_rec, windows_add_thread, windows_delete_thread)
10502 (windows_continue): Update.
10503
10504 2020-04-08 Tom Tromey <tromey@adacore.com>
10505
10506 * windows-nat.c (struct windows_thread_info): Remove typedef.
10507 (thread_head): Remove.
10508 (thread_list): New global.
10509 (thread_rec, windows_add_thread, windows_init_thread_list)
10510 (windows_delete_thread, windows_continue): Update.
10511
10512 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10513
10514 * windows-tdep.h (windows_init_abi): Add comment.
10515 (cygwin_init_abi): New declaration.
10516 * windows-tdep.c: Split signal enumeration in two, one for
10517 Windows and one for Cygwin.
10518 (windows_gdb_signal_to_target): Only deal with signal of the
10519 Windows OS ABI.
10520 (cygwin_gdb_signal_to_target): New function.
10521 (windows_init_abi): Rename to windows_init_abi_common, don't set
10522 gdb_signal_to_target gdbarch method. Add new new function with
10523 this name.
10524 (cygwin_init_abi): New function.
10525 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10526 comment. Don't call windows_init_abi.
10527 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10528 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10529 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10530 i386_windows_init_abi_common, don't call windows_init_abi. Add
10531 a new function of this name.
10532 (i386_cygwin_init_abi): New function.
10533 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10534 OS ABI Cygwin.
10535
10536 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10537
10538 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10539 parameter.c.
10540 (dwarf2_read_gdb_index): Update.
10541
10542 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10543
10544 * nbsd-tdep.c: Include "objfiles.h".
10545 (nbsd_skip_solib_resolver): New.
10546 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10547
10548 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10549
10550 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10551 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10552 with DW_LLE_base_addressx are being emitted in DWARFv5.
10553 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10554 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10555 unsigned integer.
10556
10557 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10558
10559 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10560 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10561 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10562 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10563 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10564 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10565 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10566
10567
10568 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10569
10570 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10571 (read_loclist_index): New function definition.
10572 (lookup_loclist_base): New function definition.
10573 (read_loclist_header): New function definition.
10574 (dwarf2_cu): Add loclist_base and loclist_header field.
10575 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10576 (read_full_die_1): Read the value of DW_AT_loclists_base.
10577 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10578 (read_attribute_value): Handle DW_FORM_loclistx.
10579 (skip_one_die): Handle DW_FORM_loclistx.
10580 (loclist_header): New structure declaration.
10581 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10582
10583 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10584
10585 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10586 constructor. Remove `addr` parameter from other constructor and
10587 add `per_cu` parameter.
10588 * dwarf2/read.c (create_partial_symtab): Update.
10589
10590 2020-04-07 Tom de Vries <tdevries@suse.de>
10591
10592 PR symtab/25796
10593 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10594 (partial_die_info::fixup): Inherit has_const_value.
10595
10596 2020-04-07 Tom de Vries <tdevries@suse.de>
10597
10598 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10599 symbols without address.
10600
10601 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10602
10603 * nbsd-nat.h (struct thread_info): Add forward declaration.
10604 (nbsd_nat_target::thread_alive): Add.
10605 (nbsd_nat_target::thread_name): Likewise.
10606 (nbsd_nat_target::update_thread_list): Likewise.
10607 (update_thread_list::post_attach): Likewise.
10608 (post_attach::pid_to_str): Likewise.
10609 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10610 (nbsd_thread_lister): Add.
10611 (nbsd_nat_target::thread_alive): Likewise.
10612 (nbsd_nat_target::thread_name): Likewise.
10613 (nbsd_add_threads): Likewise.
10614 (update_thread_list::post_attach): Likewise.
10615 (nbsd_nat_target::update_thread_list): Likewise.
10616 (post_attach::pid_to_str): Likewise.
10617
10618 2020-04-06 Tom Tromey <tromey@adacore.com>
10619
10620 * ada-valprint.c (print_variant_part): Extract the variant field.
10621 (print_field_values): Use the field as the outer value when
10622 recursing.
10623
10624 2020-04-06 Tom Tromey <tromey@adacore.com>
10625
10626 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10627 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10628 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10629 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10630 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10631
10632 2020-04-06 Tom Tromey <tromey@adacore.com>
10633
10634 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10635 TYPE_CODE_ERROR.
10636
10637 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10638
10639 * nbsd-tdep.c: Include "gdbarch.h".
10640 Define enum with NetBSD signal numbers.
10641 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10642 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10643 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10644 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10645 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10646 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10647 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10648 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10649 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10650 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10651 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10652 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10653
10654 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10655
10656 PR gdb/25325
10657 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10658
10659 2020-04-03 Tom Tromey <tromey@adacore.com>
10660
10661 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10662 Read constant block.
10663
10664 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10665
10666 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10667 (gdb_bfd_get_full_section_contents): New declaration.
10668 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10669 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10670 gdb_bfd_get_full_section_contents.
10671
10672 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10673
10674 * exec.c (build_section_table): Replace internal_error with
10675 gdb_assert.
10676 (section_table_xfer_memory_partial): Likewise.
10677 * mdebugread.c (parse_partial_symbols): Likewise.
10678 * psymtab.c (lookup_partial_symbol): Likewise.
10679 * utils.c (wrap_here): Likewise.
10680
10681 2020-04-02 Tom Tromey <tromey@adacore.com>
10682
10683 * f-lang.c (build_fortran_types): Use arch_type to initialize
10684 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10685
10686 2020-04-02 Tom Tromey <tromey@adacore.com>
10687
10688 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10689 of attributes.
10690
10691 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10692 Bernd Edlinger <bernd.edlinger@hotmail.de>
10693 Tom Tromey <tromey@adacore.com>
10694
10695 * buildsym.c (buildsym_compunit::record_line): Remove
10696 deduplication code.
10697
10698 2020-04-02 Tom de Vries <tdevries@suse.de>
10699
10700 PR ada/24671
10701 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10702
10703 2020-04-02 Tom de Vries <tdevries@suse.de>
10704
10705 * dwarf2/read.c (dwarf2_gdb_index_functions,
10706 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10707 NULL.
10708 * psymtab.c (psym_lookup_global_symbol_language): New function.
10709 (psym_functions): Init psym_lookup_global_symbol_language with
10710 psym_lookup_global_symbol_language.
10711 * symfile-debug.c (debug_sym_quick_functions): Init
10712 lookup_global_symbol_language with NULL.
10713 * symfile.c (set_initial_language): Remove fixme comment.
10714 * symfile.h (struct quick_symbol_functions): Add
10715 lookup_global_symbol_language.
10716 * symtab.c (find_quick_global_symbol_language): New function.
10717 (find_main_name): Use find_quick_global_symbol_language.
10718
10719 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10720
10721 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10722
10723 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10724
10725 * buildsym.c (record_line): Fix undefined behavior and preserve
10726 lines at eof.
10727
10728 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10729
10730 * buildsym.c (record_line): Fix the resizing condition.
10731
10732 2020-04-01 Tom Tromey <tom@tromey.com>
10733
10734 * value.h (value_literal_complex): Add comment.
10735 * valops.c (value_literal_complex): Refer to value.h.
10736
10737 2020-04-01 Tom Tromey <tom@tromey.com>
10738
10739 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10740 (scalar_type): New rule, from typebase.
10741 (typebase): Use scalar_type. Recognize complex types.
10742 (field_name): Handle FLOAT_KEYWORD.
10743 (ident_tokens): Add _Complex and __complex__.
10744
10745 2020-04-01 Tom Tromey <tom@tromey.com>
10746
10747 PR exp/25299:
10748 * valarith.c (promotion_type, complex_binop): New functions.
10749 (scalar_binop): Handle complex numbers. Use promotion_type.
10750 (value_pos, value_neg, value_complement): Handle complex numbers.
10751
10752 2020-04-01 Tom Tromey <tom@tromey.com>
10753
10754 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10755 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10756 (parse_number): Handle complex numbers.
10757
10758 2020-04-01 Tom Tromey <tom@tromey.com>
10759
10760 * c-valprint.c (c_decorations): Change complex suffix to "i".
10761
10762 2020-04-01 Tom Tromey <tom@tromey.com>
10763
10764 * valprint.c (generic_value_print_complex): Use accessors.
10765 * value.h (value_real_part, value_imaginary_part): Declare.
10766 * valops.c (value_real_part, value_imaginary_part): New
10767 functions.
10768 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10769
10770 2020-04-01 Tom Tromey <tom@tromey.com>
10771
10772 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10773 (read_range_type): Update.
10774 * mdebugread.c (basic_type): Update.
10775 * go-lang.c (build_go_types): Use init_complex_type.
10776 * gdbtypes.h (struct main_type) <complex_type>: New member.
10777 (init_complex_type): Update.
10778 (arch_complex_type): Don't declare.
10779 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10780 Make name if none given. Use alloc_type_copy. Look for cached
10781 complex type.
10782 (arch_complex_type): Remove.
10783 (gdbtypes_post_init): Use init_complex_type.
10784 * f-lang.c (build_fortran_types): Use init_complex_type.
10785 * dwarf2/read.c (read_base_type): Update.
10786 * d-lang.c (build_d_types): Use init_complex_type.
10787 * ctfread.c (read_base_type): Update.
10788
10789 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10790
10791 * infrun.c (stop_all_threads): Update assertion, plus when
10792 stopping threads, take into account that we might be trying
10793 to stop an all-stop target.
10794 (stop_waiting): Call 'stop_all_threads' if there exists a
10795 non-stop target.
10796
10797 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10798
10799 * target.h (exists_non_stop_target): New function declaration.
10800 * target.c (exists_non_stop_target): New function.
10801
10802 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10803
10804 PR gdb/24789
10805 * eval.c (is_integral_or_integral_reference): New function.
10806 (evaluate_subexp_standard): Allow integer references in
10807 pointer arithmetic.
10808
10809 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10810
10811 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10812 check for no ptid in the stop reply when the target is non-stop.
10813
10814 2020-04-01 Tom Tromey <tromey@adacore.com>
10815
10816 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10817 "name" parameter to rvalue reference. Initialize m_name_holder.
10818 <lookup_name_info>: New overloads.
10819 <name>: Return gdb::string_view.
10820 <c_str>: New method.
10821 <make_ignore_params>: Update.
10822 <search_name_hash>: Update.
10823 <language_lookup_name>: Return const char *.
10824 <m_name>: Change type.
10825 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10826 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10827 (lookup_name_info::match_any): Update.
10828 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10829 Update.
10830 * minsyms.c (linkage_name_str): Update.
10831 * language.c (default_symbol_name_matcher): Update.
10832 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10833 Update.
10834 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10835 (ada_lookup_name_info::ada_lookup_name_info): Update.
10836 (literal_symbol_name_matcher): Update.
10837
10838 2020-04-01 Tom Tromey <tromey@adacore.com>
10839
10840 * psymtab.c (psymtab_search_name): Remove function.
10841 (psym_lookup_symbol): Create search name and lookup name here.
10842 (lookup_partial_symbol): Remove "name" parameter; add
10843 lookup_name.
10844 (psym_expand_symtabs_for_function): Update.
10845
10846 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10847
10848 PR tui/25597:
10849 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10850
10851 2020-03-31 Tom Tromey <tromey@adacore.com>
10852
10853 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10854 memcpy.
10855
10856 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10857
10858 * features/riscv/32bit-csr.xml: Regenerated.
10859 * features/riscv/64bit-csr.xml: Regenerated.
10860
10861 2020-03-30 Tom Tromey <tromey@adacore.com>
10862
10863 * ada-valprint.c (print_variant_part): Update.
10864 * ada-lang.h (ada_which_variant_applies): Update.
10865 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10866 outer_valaddr parameters; replace with "outer" value parameter.
10867 (to_fixed_variant_branch_type): Update.
10868
10869 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10870
10871 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10872 <list>. Remove inclusion of observable.h.
10873 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10874 (struct arch_lwp_info): New struct.
10875 (class ppc_linux_dreg_interface): New class.
10876 (struct ppc_linux_process_info): New struct.
10877 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10878 <low_new_clone, low_forget_process, low_prepare_to_resume>
10879 <copy_thread_dreg_state, mark_thread_stale>
10880 <mark_debug_registers_changed, register_hw_breakpoint>
10881 <clear_hw_breakpoint, register_wp, clear_wp>
10882 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10883 <num_memory_accesses, get_trigger_type>
10884 <create_watchpoint_request, hwdebug_point_cmp>
10885 <init_arch_lwp_info, get_arch_lwp_info>
10886 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10887 methods.
10888 <struct ptid_hash>: New inner struct.
10889 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10890 members.
10891 (saved_dabr_value, hwdebug_info, max_slots_number)
10892 (struct hw_break_tuple, struct thread_points, ppc_threads)
10893 (have_ptrace_hwdebug_interface)
10894 (hwdebug_find_thread_points_by_tid)
10895 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10896 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10897 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10898 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10899 use m_dreg_interface.
10900 (hwdebug_point_cmp): Change to...
10901 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10902 reference arguments instead of pointers.
10903 (ppc_linux_nat_target::ranged_break_num_registers): Use
10904 m_dreg_interface.
10905 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10906 m_dreg_interface. Call register_hw_breakpoint.
10907 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10908 m_dreg_interface. Call clear_hw_breakpoint.
10909 (get_trigger_type): Change to...
10910 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10911 comment.
10912 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10913 use m_dreg_interface. Call register_hw_breakpoint.
10914 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10915 use m_dreg_interface. Call clear_hw_breakpoint.
10916 (can_use_watchpoint_cond_accel): Change to...
10917 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10918 method. Update comment, use m_dreg_interface and
10919 m_process_info.
10920 (calculate_dvc): Change to...
10921 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10922 m_dreg_interface.
10923 (num_memory_accesses): Change to...
10924 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10925 (check_condition): Change to...
10926 (ppc_linux_nat_target::check_condition): ...this method.
10927 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10928 comment, use m_dreg_interface.
10929 (create_watchpoint_request): Change to...
10930 (ppc_linux_nat_target::create_watchpoint_request): ...this
10931 method. Use m_dreg_interface.
10932 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10933 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10934 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10935 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10936 (ppc_linux_nat_target::low_forget_process)
10937 (ppc_linux_nat_target::low_new_fork)
10938 (ppc_linux_nat_target::low_new_clone)
10939 (ppc_linux_nat_target::low_delete_thread)
10940 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10941 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10942 only call mark_thread_stale.
10943 (ppc_linux_thread_exit): Remove.
10944 (ppc_linux_nat_target::stopped_data_address): Change to...
10945 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10946 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10947 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10948 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10949 comment. Call low_stopped_data_address.
10950 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10951 m_dreg_interface.
10952 (ppc_linux_nat_target::masked_watch_num_registers): Use
10953 m_dreg_interface.
10954 (ppc_linux_nat_target::copy_thread_dreg_state)
10955 (ppc_linux_nat_target::mark_thread_stale)
10956 (ppc_linux_nat_target::mark_debug_registers_changed)
10957 (ppc_linux_nat_target::register_hw_breakpoint)
10958 (ppc_linux_nat_target::clear_hw_breakpoint)
10959 (ppc_linux_nat_target::register_wp)
10960 (ppc_linux_nat_target::clear_wp)
10961 (ppc_linux_nat_target::init_arch_lwp_info)
10962 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10963 (_initialize_ppc_linux_nat): Remove observer callback.
10964
10965 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10966
10967 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10968 (ppc_linux_nat_target::auxv_parse)
10969 (ppc_linux_nat_target::read_description)
10970 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10971 Move up.
10972
10973 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10974
10975 * linux-nat.h (low_new_clone): New method.
10976 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10977
10978 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10979
10980 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10981 (dbx_expand_psymtab): ... this.
10982 (start_psymtab): Update.
10983 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10984 (mdebug_expand_psymtab): ... this.
10985 (parse_partial_symbols): Update.
10986 (new_psymtab): Update.
10987 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10988 (xcoff_expand_psymtab): ... this.
10989 (xcoff_start_psymtab): Update.
10990
10991 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10992
10993 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10994 <expand_dependencies>: ... this.
10995 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10996 (partial_symtab::expand_dependencies): ... this.
10997 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10998 Update.
10999 (dwarf2_psymtab::expand_psymtab): Update.
11000 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11001 * mdebugread.c (psymtab_to_symtab_1): Update.
11002 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11003
11004 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11005
11006 * psympriv.h (discard_psymtab): Remove.
11007 * dbxread.c (dbx_end_psymtab): Update.
11008 * xcoffread.c (xcoff_end_psymtab): Update.
11009
11010 2020-03-28 Tom Tromey <tom@tromey.com>
11011
11012 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11013 comment.
11014
11015 2020-03-28 Tom Tromey <tom@tromey.com>
11016
11017 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11018
11019 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
11020
11021 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11022
11023 2020-03-26 John Baldwin <jhb@FreeBSD.org>
11024
11025 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11026
11027 2020-03-26 Tom Tromey <tom@tromey.com>
11028
11029 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11030 (mark_common_block_symbol_computed, read_tag_string_type)
11031 (attr_to_dynamic_prop, read_subrange_type): Update.
11032 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11033 to be methods on struct attribute.
11034 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11035 (read_call_site_scope, partial_die_info::read)
11036 (partial_die_info::read, lookup_die_type, follow_die_ref):
11037 Update.
11038 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11039 from dwarf2_get_ref_die_offset.
11040 (attribute::constant_value): New method, from
11041 dwarf2_get_attr_constant_value.
11042 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11043 Declare method.
11044 <constant_value>: New method.
11045
11046 2020-03-26 Tom Tromey <tom@tromey.com>
11047
11048 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11049 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11050 (dwarf_type_encoding_name): Move to stringify.c.
11051 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11052 * dwarf2/stringify.c: New file.
11053 * dwarf2/stringify.h: New file.
11054
11055 2020-03-26 Tom Tromey <tom@tromey.com>
11056
11057 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11058 Rewrite.
11059
11060 2020-03-26 Tom Tromey <tom@tromey.com>
11061
11062 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11063 methods.
11064 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11065 (lookup_ranges_base): Likewise.
11066 (read_cutu_die_from_dwo, read_full_die_1): Update.
11067
11068 2020-03-26 Tom Tromey <tom@tromey.com>
11069
11070 * dwarf2/read.c (read_import_statement, read_file_scope)
11071 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11072 (read_lexical_block_scope, read_call_site_scope)
11073 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11074 (handle_struct_member_die, process_structure_scope)
11075 (update_enumeration_type_from_children)
11076 (process_enumeration_scope, read_array_type, read_common_block)
11077 (read_namespace, read_module, read_subroutine_type): Update.
11078 (sibling_die): Remove.
11079
11080 2020-03-26 Tom Tromey <tom@tromey.com>
11081
11082 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11083 (build_type_psymtabs_reader, read_structure_type)
11084 (read_enumeration_type, read_full_die_1): Update.
11085 (dwarf2_attr_no_follow): Move to die.h.
11086 * dwarf2/die.h (struct die_info) <attr>: New method.
11087
11088 2020-03-26 Tom Tromey <tom@tromey.com>
11089
11090 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11091 <base_address>: Now an optional.
11092 (dwarf2_find_base_address, dwarf2_rnglists_process)
11093 (dwarf2_ranges_process, fill_in_loclist_baton)
11094 (dwarf2_symbol_mark_computed): Update.
11095
11096 2020-03-26 Tom Tromey <tom@tromey.com>
11097
11098 * dwarf2/read.c (struct die_info): Move to die.h.
11099 * dwarf2/die.h: New file.
11100
11101 2020-03-26 Tom Tromey <tom@tromey.com>
11102
11103 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11104 * dwarf2/read.c
11105 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11106 Move to line-header.c.
11107 (read_checked_initial_length_and_offset, read_formatted_entries):
11108 Likewise.
11109 (dwarf_decode_line_header): Split into two.
11110 * dwarf2/line-header.c
11111 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11112 Move from read.c.
11113 (read_checked_initial_length_and_offset, read_formatted_entries):
11114 Likewise.
11115 (dwarf_decode_line_header): New function, split from read.c.
11116
11117 2020-03-26 Tom Tromey <tom@tromey.com>
11118
11119 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11120 Declare method.
11121 * dwarf2/read.c (read_attribute_value): Update.
11122 (dwarf2_per_objfile::read_line_string): Rename from
11123 read_indirect_line_string.
11124 (read_formatted_entries): Update.
11125
11126 2020-03-26 Tom Tromey <tom@tromey.com>
11127
11128 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11129 variable.
11130
11131 2020-03-26 Tom Tromey <tom@tromey.com>
11132
11133 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11134 const.
11135 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11136 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11137 parameter const.
11138
11139 2020-03-26 Tom Tromey <tom@tromey.com>
11140
11141 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11142 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11143 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11144 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11145
11146 2020-03-26 Tom Tromey <tom@tromey.com>
11147
11148 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11149 file_names_size, file_full_name, file_file_name>: Use const.
11150 <file_name_at, file_names>: Add const overload.
11151 * dwarf2/line-header.c (line_header::file_file_name)
11152 (line_header::file_full_name): Update.
11153
11154 2020-03-26 Tom Tromey <tom@tromey.com>
11155
11156 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11157 (macro_start_file, consume_improper_spaces)
11158 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11159 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11160 (dwarf_decode_macros): Move to macro.c.
11161 * dwarf2/macro.c: New file.
11162 * dwarf2/macro.h: New file.
11163 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11164
11165 2020-03-26 Tom Tromey <tom@tromey.com>
11166
11167 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11168 method.
11169 * dwarf2/section.c: New method. From
11170 read_indirect_string_at_offset_from.
11171 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11172 (read_indirect_string_at_offset_from): Move to section.c.
11173 (read_indirect_string_at_offset): Rewrite.
11174 (read_indirect_line_string_at_offset): Remove.
11175 (read_indirect_string, read_indirect_line_string)
11176 (dwarf_decode_macro_bytes): Update.
11177
11178 2020-03-26 Tom Tromey <tom@tromey.com>
11179
11180 * dwarf2/section.h (struct dwarf2_section_info)
11181 <overload_complaint>: Declare.
11182 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11183 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11184 Rename from dwarf2_section_buffer_overflow_complaint.
11185 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11186 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11187
11188 2020-03-26 Tom Tromey <tom@tromey.com>
11189
11190 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11191 Declare.
11192 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11193 Move from read.c.
11194 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11195 to section.c.
11196
11197 2020-03-26 Tom Tromey <tom@tromey.com>
11198
11199 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11200
11201 2020-03-26 Tom Tromey <tom@tromey.com>
11202
11203 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11204 "builder".
11205 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11206 parameter.
11207 (dwarf_decode_macros): Update.
11208
11209 2020-03-26 Tom Tromey <tom@tromey.com>
11210
11211 * dwarf2/read.c (read_attribute_value): Update.
11212 (read_indirect_string_from_dwz): Move to dwz.c; change into
11213 method.
11214 (dwarf_decode_macro_bytes): Update.
11215 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11216 * dwarf2/dwz.c: New file.
11217 * Makefile.in (COMMON_SFILES): Add dwz.c.
11218
11219 2020-03-26 Tom Tromey <tom@tromey.com>
11220
11221 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11222 * dwarf2/read.c: Add include.
11223 * dwarf2/index-write.c: Add include.
11224 * dwarf2/index-cache.c: Add include.
11225 * dwarf2/dwz.h: New file.
11226
11227 2020-03-25 Tom Tromey <tom@tromey.com>
11228
11229 * compile/compile-object-load.c (get_out_value_type): Mention
11230 correct symbol name in error message.
11231
11232 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11233
11234 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11235
11236 2020-03-25 Tom de Vries <tdevries@suse.de>
11237
11238 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11239 * symmisc.c (dump_symtab_1): Print user and includes fields.
11240 (maintenance_info_symtabs): Same.
11241
11242 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11243
11244 PR gdb/25534
11245 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11246 (riscv_regcache_cooked_write): New function.
11247 (riscv_push_dummy_call): Use new function.
11248 (riscv_return_value): Likewise.
11249
11250 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11251
11252 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11253 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11254 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11255 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11256 * infrun.c (follow_fork): Likewise.
11257 (follow_fork_inferior): Likewise.
11258 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11259 * linux-nat.h (class linux_nat_target): Likewise.
11260 * remote.c (class remote_target) <follow_fork>: Likewise.
11261 (remote_target::follow_fork): Likewise.
11262 * target-delegates.c: Re-generate.
11263 * target.c (default_follow_fork): Likewise.
11264 (target_follow_fork): Likewise.
11265 * target.h (struct target_ops) <follow_fork>: Likewise.
11266 (target_follow_fork): Likewise.
11267
11268 2020-03-24 Tom de Vries <tdevries@suse.de>
11269
11270 * psymtab.c (maintenance_info_psymtabs): Print user field.
11271
11272 2020-03-20 Tom Tromey <tromey@adacore.com>
11273
11274 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11275 const.
11276 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11277 const.
11278
11279 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11280
11281 * ptrace.m4: Don't check for ptrace declaration.
11282 * config.in: Re-generate.
11283 * configure: Re-generate.
11284 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11285 not defined.
11286
11287 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11288
11289 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11290 `PTRACE_TYPE_RET'.
11291 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11292 * sparc-nat.c (gdb_ptrace): Likewise.
11293 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11294
11295 2020-03-20 Tom Tromey <tromey@adacore.com>
11296
11297 * c-exp.y (lex_one_token): Fix assert.
11298
11299 2020-03-20 Tom Tromey <tromey@adacore.com>
11300
11301 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11302 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11303 strncpy call.
11304
11305 2020-03-20 Tom Tromey <tromey@adacore.com>
11306
11307 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11308
11309 2020-03-20 Tom Tromey <tromey@adacore.com>
11310
11311 * ada-valprint.c (print_variant_part): Remove parameters; switch
11312 to value-based API.
11313 (print_field_values): Likewise.
11314 (ada_val_print_struct_union): Likewise.
11315 (ada_value_print_1): Update.
11316
11317 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11318
11319 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11320 nbsd_nat_target instead of inf_ptrace_target.
11321 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11322 nbsd_nat_target.
11323
11324 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11325
11326 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11327 it to the ptrace call.
11328 * (store_registers): Likewise.
11329
11330 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11331
11332 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11333 it to the ptrace call.
11334 * (store_registers): Likewise.
11335
11336 2020-03-19 Luis Machado <luis.machado@linaro.org>
11337
11338 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11339 valid, fetch vg value from ptrace.
11340
11341 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11342 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11343 * inf-ptrace.c: Likewise.
11344 * (gdb_ptrace): Add.
11345 * (inf_ptrace_target::resume): Update.
11346 * (inf_ptrace_target::xfer_partial): Likewise.
11347 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11348 * (inf_ptrace_peek_poke): Update.
11349
11350 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11351
11352 * x86-bsd-nat.c (gdb_ptrace): New.
11353 * (x86bsd_dr_set): Add new argument `ptid'.
11354 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11355 x86bsd_dr_set_addr): Update.
11356
11357 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11358
11359 * remote.c (remote_target::process_stop_reply): Handle events for
11360 all threads differently.
11361
11362 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11363
11364 * completer.c (completion_tracker::remove_completion): Define new
11365 function.
11366 * completer.h (completion_tracker::remove_completion): Declare new
11367 function.
11368 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11369 when adding a C++ function symbol.
11370
11371 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11372
11373 * completer.c (completion_tracker::completion_hash_entry): Define
11374 new class.
11375 (advance_to_filename_complete_word_point): Call
11376 recompute_lowest_common_denominator.
11377 (completion_tracker::completion_tracker): Call discard_completions
11378 to setup the hash table.
11379 (completion_tracker::discard_completions): Allow for being called
11380 from the constructor, pass new equal function, and element deleter
11381 when constructing the hash table. Initialise new class member
11382 variables.
11383 (completion_tracker::maybe_add_completion): Remove use of
11384 m_entries_vec, and store more information into m_entries_hash.
11385 (completion_tracker::recompute_lcd_visitor): New function, most
11386 content taken from...
11387 (completion_tracker::recompute_lowest_common_denominator):
11388 ...here, this now just visits each item in the hash calling the
11389 above visitor.
11390 (completion_tracker::build_completion_result): Remove use of
11391 m_entries_vec, call recompute_lowest_common_denominator.
11392 * completer.h (completion_tracker::have_completions): Remove use
11393 of m_entries_vec.
11394 (completion_tracker::completion_hash_entry): Declare new class.
11395 (completion_tracker::recompute_lowest_common_denominator): Change
11396 function signature.
11397 (completion_tracker::recompute_lcd_visitor): Declare new function.
11398 (completion_tracker::m_entries_vec): Delete.
11399 (completion_tracker::m_entries_hash): Initialize to NULL.
11400 (completion_tracker::m_lowest_common_denominator_valid): New
11401 member variable.
11402 (completion_tracker::m_lowest_common_denominator_max_length): New
11403 member variable.
11404
11405 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11406
11407 * regformats/regdef.h: Put reg in gdb namespace.
11408
11409 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11410
11411 * i386-bsd-nat.c (gdb_ptrace): New.
11412 * (i386bsd_fetch_inferior_registers,
11413 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11414 * (i386bsd_fetch_inferior_registers,
11415 i386bsd_store_inferior_registers) Use gdb_ptrace.
11416
11417 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11418
11419 * amd64-bsd-nat.c (gdb_ptrace): New.
11420 * (amd64bsd_fetch_inferior_registers,
11421 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11422 * (amd64bsd_fetch_inferior_registers,
11423 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11424
11425 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11426
11427 * user-regs.c (user_reg::read): Rename to...
11428 (user_reg::xread): ...this.
11429 * (append_user_reg): Rename argument `read' to `xread'.
11430 * (user_reg_add_builtin): Likewise.
11431 * (user_reg_add): Likewise.
11432 * (value_of_user_reg): Likewise.
11433
11434 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11435
11436 * sparc-nat.c (gdb_ptrace): New.
11437 * sparc-nat.c (sparc_fetch_inferior_registers)
11438 (sparc_store_inferior_registers) Remove obsolete comment.
11439 * sparc-nat.c (sparc_fetch_inferior_registers)
11440 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11441 * sparc-nat.c (sparc_fetch_inferior_registers)
11442 (sparc_store_inferior_registers) Use gdb_ptrace.
11443
11444 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11445
11446 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11447 it to the ptrace call.
11448 * sh-nbsd-nat.c (store_registers): Likewise.
11449
11450 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11451
11452 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11453 nbsd_nat_target instead of inf_ptrace_target.
11454 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11455 nbsd_nat_target.
11456
11457 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11458
11459 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11460
11461 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11462
11463 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11464 <sys/sysctl.h>.
11465 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11466
11467 2020-03-17 Tom de Vries <tdevries@suse.de>
11468
11469 PR gdb/23710
11470 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11471 fields.
11472 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11473 fields.
11474 (process_imported_unit_die): Skip import of c++ CUs.
11475
11476 2020-03-16 Tom Tromey <tom@tromey.com>
11477
11478 * p-valprint.c (pascal_object_print_value): Initialize
11479 base_value.
11480
11481 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11482 Shahab Vahedi <shahab@synopsys.com>
11483
11484 * Makefile.in: Add arch/arc.o
11485 * configure.tgt: Likewise.
11486 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11487 (_initialize_arc_tdep): Don't initialize old target descriptions.
11488 (arc_read_description): New function to cache target descriptions.
11489 * arc-tdep.h (arc_read_description): Add proto type.
11490 * arch/arc.c: New file.
11491 * arch/arc.h: Likewise.
11492 * features/Makefile: Replace old target descriptions with new.
11493 * features/arc-arcompact.c: Remove.
11494 * features/arc-arcompact.xml: Likewise.
11495 * features/arc-v2.c: Likewise
11496 * features/arc-v2.xml: Likewise
11497 * features/arc/aux-arcompact.xml: New file.
11498 * features/arc/aux-v2.xml: Likewise.
11499 * features/arc/core-arcompact.xml: Likewise.
11500 * features/arc/core-v2.xml: Likewise.
11501 * features/arc/aux-arcompact.c: Generate.
11502 * features/arc/aux-v2.c: Likewise.
11503 * features/arc/core-arcompact.c: Likewise.
11504 * features/arc/core-v2.c: Likewise.
11505 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11506
11507 2020-03-16 Tom Tromey <tromey@adacore.com>
11508
11509 PR gdb/25663:
11510 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11511 putting value into bcache.
11512
11513 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11514
11515 PR gdb/21500
11516 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11517 to...
11518 (amd64_windows_init_abi_common): ... this. Don't set size of
11519 long type.
11520 (amd64_windows_init_abi): New function.
11521 (amd64_cygwin_init_abi): New function.
11522 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11523 the Cygwin OS ABI.
11524 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11525 comment.
11526
11527 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11528
11529 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11530 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11531 (pe_import_directory_entry): New struct type.
11532 (is_linked_with_cygwin_dll): New function.
11533 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11534 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11535 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11536
11537 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11538
11539 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11540 i386_cygwin_core_osabi_sniffer.
11541
11542 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11543
11544 * i386-cygwin-tdep.c: Rename to...
11545 * i386-windows-tdep.c: ... this.
11546 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11547 i386-windows-tdep.c.
11548 * configure.tgt: Likewise.
11549
11550 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11551
11552 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11553 * osabi.c (gdb_osabi_names): Add "Windows".
11554 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11555 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11556 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11557 i386_cygwin_osabi_sniffer.
11558 (_initialize_i386_cygwin_tdep): Register OS ABI
11559 GDB_OSABI_WINDOWS for i386.
11560 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11561 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11562 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11563 for x86-64.
11564 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11565 when the target matches '*-*-mingw*'.
11566
11567 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11568
11569 * defs.h (enum gdb_osabi): Move to...
11570 * osabi.h (enum gdb_osabi): ... here.
11571 * gdbarch.sh: Include osabi.h in gdbarch.h.
11572 * gdbarch.h: Re-generate.
11573
11574 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11575
11576 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11577 function.
11578 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11579
11580 2020-03-14 Tom Tromey <tom@tromey.com>
11581
11582 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11583 for C++.
11584 (c_type_print_modifier): Likewise. Add "language" parameter.
11585 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11586 (c_type_print_base_1): Update.
11587 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11588 constants.
11589 * type-stack.c (type_stack::insert): Handle tp_atomic and
11590 tp_restrict.
11591 (type_stack::follow_type_instance_flags): Likewise.
11592 (type_stack::follow_types): Likewise. Merge type-following code.
11593 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11594 (space_identifier, cv_with_space_id)
11595 (const_or_volatile_or_space_identifier_noopt)
11596 (const_or_volatile_or_space_identifier): Remove.
11597 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11598 rules.
11599 (ptr_operator, typebase): Update.
11600 (enum token_flag) <FLAG_C>: New constant.
11601 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11602 "_Atomic".
11603 (lex_one_token): Handle FLAG_C.
11604
11605 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11606
11607 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11608 it to the ptrace call.
11609 * m68k-bsd-nat.c (store_registers): Likewise.
11610
11611 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11612
11613 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11614 gdb_byte *.
11615 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11616 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11617 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11618
11619 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11620
11621 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11622 nbsd_nat_target instead of inf_ptrace_target.
11623 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11624 nbsd_nat_target.
11625
11626 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11627
11628 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11629 register_t.
11630
11631 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11632
11633 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11634 it to the ptrace call.
11635 * alpha-bsd-nat.c (store_registers): Likewise.
11636
11637 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11638
11639 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11640 includes.
11641 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11642 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11643 fill_fpregset): Likewise.
11644
11645 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11646
11647 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11648 nbsd_nat_target instead of inf_ptrace_target.
11649 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11650 nbsd_nat_target.
11651
11652 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11653
11654 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11655 register_t.
11656
11657 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11658
11659 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11660 it to the ptrace call.
11661 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11662 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11663 * arm-nbsd-nat.c (store_register): Likewise.
11664 * arm-nbsd-nat.c (store_regs): Likewise.
11665 * arm-nbsd-nat.c (store_fp_register): Likewise.
11666 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11667
11668 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11669
11670 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11671 nbsd_nat_target instead of inf_ptrace_target.
11672 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11673 nbsd_nat_target.
11674
11675 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11676
11677 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11678 it to the ptrace call.
11679 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11680
11681 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11682
11683 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11684 it to the ptrace call.
11685 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11686
11687 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11688
11689 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11690 gdb_byte *.
11691 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11692
11693 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11694
11695 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11696 instead of inf_ptrace_target.
11697 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11698 nbsd_nat_target.
11699
11700 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11701
11702 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11703 register_t.
11704
11705 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11706
11707 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11708 register_t.
11709
11710 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11711
11712 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11713 register_t.
11714
11715 2020-03-13 Tom Tromey <tom@tromey.com>
11716
11717 * value.h (val_print): Don't declare.
11718 * valprint.h (val_print_array_elements)
11719 (val_print_scalar_formatted, generic_val_print): Don't declare.
11720 * valprint.c (generic_val_print_array): Take a struct value.
11721 (generic_val_print_ptr, generic_val_print_memberptr)
11722 (generic_val_print_bool, generic_val_print_int)
11723 (generic_val_print_char, generic_val_print_complex)
11724 (generic_val_print): Remove.
11725 (generic_value_print): Update.
11726 (do_val_print): Remove unused parameters. Don't call
11727 la_val_print.
11728 (val_print): Remove.
11729 (common_val_print): Update. Don't call value_check_printable.
11730 (val_print_scalar_formatted, val_print_array_elements): Remove.
11731 * rust-lang.c (rust_val_print): Remove.
11732 (rust_language_defn): Update.
11733 * p-valprint.c (pascal_val_print): Remove.
11734 (pascal_value_print_inner): Update.
11735 (pascal_object_print_val_fields, pascal_object_print_val):
11736 Remove.
11737 (pascal_object_print_static_field): Update.
11738 * p-lang.h (pascal_val_print): Don't declare.
11739 * p-lang.c (pascal_language_defn): Update.
11740 * opencl-lang.c (opencl_language_defn): Update.
11741 * objc-lang.c (objc_language_defn): Update.
11742 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11743 * m2-lang.h (m2_val_print): Don't declare.
11744 * m2-lang.c (m2_language_defn): Update.
11745 * language.h (struct language_defn) <la_val_print>: Remove.
11746 * language.c (unk_lang_value_print_inner): Rename. Change
11747 argument types.
11748 (unknown_language_defn, auto_language_defn): Update.
11749 * go-valprint.c (go_val_print): Remove.
11750 * go-lang.h (go_val_print): Don't declare.
11751 * go-lang.c (go_language_defn): Update.
11752 * f-valprint.c (f_val_print): Remove.
11753 * f-lang.h (f_value_print): Don't declare.
11754 * f-lang.c (f_language_defn): Update.
11755 * d-valprint.c (d_val_print): Remove.
11756 * d-lang.h (d_value_print): Don't declare.
11757 * d-lang.c (d_language_defn): Update.
11758 * cp-valprint.c (cp_print_value_fields)
11759 (cp_print_value_fields_rtti, cp_print_value): Remove.
11760 (cp_print_static_field): Update.
11761 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11762 (c_val_print_struct, c_val_print_union, c_val_print_int)
11763 (c_val_print_memberptr, c_val_print): Remove.
11764 * c-lang.h (c_val_print_array, cp_print_value_fields)
11765 (cp_print_value_fields_rtti): Don't declare.
11766 * c-lang.c (c_language_defn, cplus_language_defn)
11767 (asm_language_defn, minimal_language_defn): Update.
11768 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11769 (ada_val_print_enum): Take a struct value.
11770 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11771 (ada_val_print): Remove.
11772 (ada_value_print_1): Update.
11773 (printable_val_type): Remove.
11774 * ada-lang.h (ada_val_print): Don't declare.
11775 * ada-lang.c (ada_language_defn): Update.
11776
11777 2020-03-13 Tom Tromey <tom@tromey.com>
11778
11779 * valprint.c (do_val_print): Update.
11780 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11781 a struct value.
11782 (value_to_value_object_no_release): Declare.
11783 * python/py-value.c (value_to_value_object_no_release): New
11784 function.
11785 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11786 struct value.
11787 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11788 function.
11789 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11790 a struct value.
11791 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11792 Declare.
11793 (gdbscm_apply_val_pretty_printer): Take a struct value.
11794 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11795 value.
11796 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11797 value.
11798 * extension-priv.h (struct extension_language_ops)
11799 <apply_val_pretty_printer>: Take a struct value.
11800 * cp-valprint.c (cp_print_value): Create a struct value.
11801 (cp_print_value): Update.
11802
11803 2020-03-13 Tom Tromey <tom@tromey.com>
11804
11805 * ada-valprint.c (print_field_values): Call common_val_print.
11806
11807 2020-03-13 Tom Tromey <tom@tromey.com>
11808
11809 * ada-valprint.c (val_print_packed_array_elements): Remove
11810 bitoffset and val parameters. Call common_val_print.
11811 (ada_val_print_string): Remove offset, address, and original_value
11812 parameters.
11813 (ada_val_print_array): Update.
11814 (ada_value_print_array): New function.
11815 (ada_value_print_1): Call it.
11816
11817 2020-03-13 Tom Tromey <tom@tromey.com>
11818
11819 * ada-valprint.c (ada_value_print): Use common_val_print.
11820
11821 2020-03-13 Tom Tromey <tom@tromey.com>
11822
11823 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11824
11825 2020-03-13 Tom Tromey <tom@tromey.com>
11826
11827 * ada-valprint.c (ada_value_print_num): New function.
11828 (ada_value_print_1): Use it.
11829
11830 2020-03-13 Tom Tromey <tom@tromey.com>
11831
11832 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11833
11834 2020-03-13 Tom Tromey <tom@tromey.com>
11835
11836 * ada-valprint.c (ada_value_print_ptr): New function.
11837 (ada_value_print_1): Use it.
11838
11839 2020-03-13 Tom Tromey <tom@tromey.com>
11840
11841 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11842 call common_val_print.
11843 (ada_val_print_1): Update.
11844 (ada_value_print_1): New function.
11845 (ada_value_print_inner): Rewrite.
11846
11847 2020-03-13 Tom Tromey <tom@tromey.com>
11848
11849 * cp-valprint.c (cp_print_value_fields): Update.
11850 (cp_print_value): New function.
11851
11852 2020-03-13 Tom Tromey <tom@tromey.com>
11853
11854 * m2-valprint.c (m2_value_print_inner): Use
11855 cp_print_value_fields.
11856 * cp-valprint.c (cp_print_value_fields): New function.
11857 * c-valprint.c (c_value_print_struct): New function.
11858 (c_value_print_inner): Use c_value_print_struct.
11859 * c-lang.h (cp_print_value_fields): Declare.
11860
11861 2020-03-13 Tom Tromey <tom@tromey.com>
11862
11863 * c-valprint.c (c_value_print_array): New function.
11864 (c_value_print_inner): Use it.
11865
11866 2020-03-13 Tom Tromey <tom@tromey.com>
11867
11868 * c-valprint.c (c_value_print_memberptr): New function.
11869 (c_value_print_inner): Use it.
11870
11871 2020-03-13 Tom Tromey <tom@tromey.com>
11872
11873 * c-valprint.c (c_value_print_int): New function.
11874 (c_value_print_inner): Use it.
11875
11876 2020-03-13 Tom Tromey <tom@tromey.com>
11877
11878 * c-valprint.c (c_value_print_ptr): New function.
11879 (c_value_print_inner): Use it.
11880
11881 2020-03-13 Tom Tromey <tom@tromey.com>
11882
11883 * c-valprint.c (c_value_print_inner): Rewrite.
11884
11885 2020-03-13 Tom Tromey <tom@tromey.com>
11886
11887 * valprint.c (generic_value_print_complex): New function.
11888 (generic_value_print): Use it.
11889
11890 2020-03-13 Tom Tromey <tom@tromey.com>
11891
11892 * valprint.c (generic_val_print_float): Don't call
11893 val_print_scalar_formatted.
11894 (generic_val_print, generic_value_print): Update.
11895
11896 2020-03-13 Tom Tromey <tom@tromey.com>
11897
11898 * valprint.c (generic_value_print_char): New function
11899 (generic_value_print): Use it.
11900
11901 2020-03-13 Tom Tromey <tom@tromey.com>
11902
11903 * valprint.c (generic_value_print_int): New function.
11904 (generic_value_print): Use it.
11905
11906 2020-03-13 Tom Tromey <tom@tromey.com>
11907
11908 * valprint.c (generic_value_print_bool): New function.
11909 (generic_value_print): Use it.
11910
11911 2020-03-13 Tom Tromey <tom@tromey.com>
11912
11913 * valprint.c (generic_val_print_func): Simplify.
11914 (generic_val_print, generic_value_print): Update.
11915
11916 2020-03-13 Tom Tromey <tom@tromey.com>
11917
11918 * valprint.c (generic_val_print_flags): Remove.
11919 (generic_val_print, generic_value_print): Update.
11920 (val_print_type_code_flags): Add original_value parameter.
11921
11922 2020-03-13 Tom Tromey <tom@tromey.com>
11923
11924 * valprint.c (generic_val_print): Update.
11925 (generic_value_print): Update.
11926 * valprint.c (generic_val_print_enum): Don't call
11927 val_print_scalar_formatted.
11928
11929 2020-03-13 Tom Tromey <tom@tromey.com>
11930
11931 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11932 * valprint.c (generic_value_print_ptr): New function.
11933
11934 2020-03-13 Tom Tromey <tom@tromey.com>
11935
11936 * valprint.c (generic_value_print): Rewrite.
11937
11938 2020-03-13 Tom Tromey <tom@tromey.com>
11939
11940 * p-valprint.c (pascal_object_print_value_fields)
11941 (pascal_object_print_value): New functions.
11942
11943 2020-03-13 Tom Tromey <tom@tromey.com>
11944
11945 * p-valprint.c (pascal_value_print_inner): Rewrite.
11946
11947 2020-03-13 Tom Tromey <tom@tromey.com>
11948
11949 * f-valprint.c (f_value_print_innner): Rewrite.
11950
11951 2020-03-13 Tom Tromey <tom@tromey.com>
11952
11953 * m2-valprint.c (m2_print_unbounded_array): New overload.
11954 (m2_print_unbounded_array): Update.
11955 (m2_print_array_contents): Take a struct value.
11956 (m2_value_print_inner): Rewrite.
11957
11958 2020-03-13 Tom Tromey <tom@tromey.com>
11959
11960 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11961 (d_value_print_inner): New function.
11962 * d-lang.h (d_value_print_inner): Declare.
11963 * d-lang.c (d_language_defn): Use d_value_print_inner.
11964
11965 2020-03-13 Tom Tromey <tom@tromey.com>
11966
11967 * go-valprint.c (go_value_print_inner): New function.
11968 * go-lang.h (go_value_print_inner): Declare.
11969 * go-lang.c (go_language_defn): Use go_value_print_inner.
11970
11971 2020-03-13 Tom Tromey <tom@tromey.com>
11972
11973 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11974 API.
11975 (rust_val_print): Rewrite.
11976 (rust_value_print_inner): New function, from rust_val_print.
11977 (rust_language_defn): Use rust_value_print_inner.
11978
11979 2020-03-13 Tom Tromey <tom@tromey.com>
11980
11981 * ada-valprint.c (ada_value_print_inner): New function.
11982 * ada-lang.h (ada_value_print_inner): Declare.
11983 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11984
11985 2020-03-13 Tom Tromey <tom@tromey.com>
11986
11987 * f-valprint.c (f_value_print_innner): New function.
11988 * f-lang.h (f_value_print_innner): Declare.
11989 * f-lang.c (f_language_defn): Use f_value_print_innner.
11990
11991 2020-03-13 Tom Tromey <tom@tromey.com>
11992
11993 * p-valprint.c (pascal_value_print_inner): New function.
11994 * p-lang.h (pascal_value_print_inner): Declare.
11995 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11996
11997 2020-03-13 Tom Tromey <tom@tromey.com>
11998
11999 * m2-valprint.c (m2_value_print_inner): New function.
12000 * m2-lang.h (m2_value_print_inner): Declare.
12001 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12002
12003 2020-03-13 Tom Tromey <tom@tromey.com>
12004
12005 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12006 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12007 * c-valprint.c (c_value_print_inner): New function.
12008 * c-lang.h (c_value_print_inner): Declare.
12009 * c-lang.c (c_language_defn, cplus_language_defn)
12010 (asm_language_defn, minimal_language_defn): Use
12011 c_value_print_inner.
12012
12013 2020-03-13 Tom Tromey <tom@tromey.com>
12014
12015 * p-valprint.c (pascal_object_print_value_fields): Now static.
12016 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12017
12018 2020-03-13 Tom Tromey <tom@tromey.com>
12019
12020 * c-valprint.c (c_val_print_array): Simplify.
12021
12022 2020-03-13 Tom Tromey <tom@tromey.com>
12023
12024 * valprint.c (value_print_array_elements): New function.
12025 * valprint.h (value_print_array_elements): Declare.
12026
12027 2020-03-13 Tom Tromey <tom@tromey.com>
12028
12029 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12030 * mips-tdep.c (mips_print_register): Use
12031 value_print_scalar_formatted.
12032
12033 2020-03-13 Tom Tromey <tom@tromey.com>
12034
12035 * valprint.h (value_print_scalar_formatted): Declare.
12036 * valprint.c (value_print_scalar_formatted): New function.
12037
12038 2020-03-13 Tom Tromey <tom@tromey.com>
12039
12040 * valprint.h (generic_value_print): Declare.
12041 * valprint.c (generic_value_print): New function.
12042
12043 2020-03-13 Tom Tromey <tom@tromey.com>
12044
12045 * valprint.c (do_val_print): Call la_value_print_inner, if
12046 available.
12047 * rust-lang.c (rust_language_defn): Update.
12048 * p-lang.c (pascal_language_defn): Update.
12049 * opencl-lang.c (opencl_language_defn): Update.
12050 * objc-lang.c (objc_language_defn): Update.
12051 * m2-lang.c (m2_language_defn): Update.
12052 * language.h (struct language_defn) <la_value_print_inner>: New
12053 member.
12054 * language.c (unknown_language_defn, auto_language_defn): Update.
12055 * go-lang.c (go_language_defn): Update.
12056 * f-lang.c (f_language_defn): Update.
12057 * d-lang.c (d_language_defn): Update.
12058 * c-lang.c (c_language_defn, cplus_language_defn)
12059 (asm_language_defn, minimal_language_defn): Update.
12060 * ada-lang.c (ada_language_defn): Update.
12061
12062 2020-03-13 Tom Tromey <tom@tromey.com>
12063
12064 * c-valprint.c (c_value_print): Use common_val_print.
12065
12066 2020-03-13 Tom Tromey <tom@tromey.com>
12067
12068 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12069
12070 2020-03-13 Tom Tromey <tom@tromey.com>
12071
12072 * f-valprint.c (f77_print_array_1, f_val_print): Use
12073 common_val_print.
12074
12075 2020-03-13 Tom Tromey <tom@tromey.com>
12076
12077 * riscv-tdep.c (riscv_print_one_register_info): Use
12078 common_val_print.
12079
12080 2020-03-13 Tom Tromey <tom@tromey.com>
12081
12082 * mi/mi-main.c (output_register): Use common_val_print.
12083
12084 2020-03-13 Tom Tromey <tom@tromey.com>
12085
12086 * infcmd.c (default_print_one_register_info): Use
12087 common_val_print.
12088
12089 2020-03-13 Tom Tromey <tom@tromey.com>
12090
12091 * valprint.h (common_val_print_checked): Declare.
12092 * valprint.c (common_val_print_checked): New function.
12093 * stack.c (print_frame_arg): Use common_val_print_checked.
12094
12095 2020-03-13 Tom Tromey <tom@tromey.com>
12096
12097 * valprint.c (do_val_print): New function, from val_print.
12098 (val_print): Use do_val_print.
12099 (common_val_print): Use do_val_print.
12100
12101 2020-03-13 Tom Tromey <tom@tromey.com>
12102
12103 * valprint.c (value_print): Use scoped_value_mark.
12104
12105 2020-03-13 Tom de Vries <tdevries@suse.de>
12106
12107 PR symtab/25646
12108 * psymtab.c (partial_symtab::partial_symtab): Don't set
12109 globals_offset and statics_offset. Push element onto
12110 current_global_psymbols and current_static_psymbols stacks.
12111 (concat): New function.
12112 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12113 element from current_global_psymbols and current_static_psymbols
12114 stacks. Concat popped elements to global_psymbols and
12115 static_symbols.
12116 (add_psymbol_to_list): Use current_global_psymbols and
12117 current_static_psymbols stacks.
12118 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12119 current_static_psymbols fields.
12120
12121 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12122
12123 * corelow.c (sniff_core_bfd): Remove.
12124 (class core_target) <m_core_vec>: Remove.
12125 (core_target::core_target): Update.
12126 (core_file_fns): Remove.
12127 (deprecated_add_core_fns): Remove.
12128 (default_core_sniffer): Remove.
12129 (sniff_core_bfd): Remove.
12130 (default_check_format): Remove.
12131 (gdb_check_format): Remove.
12132 (core_target_open): Update.
12133 (core_target::get_core_register_section): Update.
12134 (get_core_registers_cb): Update.
12135 (core_target::fetch_registers): Update.
12136 * gdbcore.h (struct core_fns): Remove.
12137 (deprecated_add_core_fns): Remove.
12138 (default_core_sniffer): Remove.
12139 (default_check_format): Remove.
12140
12141 2020-03-12 Tom Tromey <tom@tromey.com>
12142
12143 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12144 CORE_ADDR.
12145 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12146
12147 2020-03-12 Tom Tromey <tom@tromey.com>
12148
12149 * remote.c (remote_target::download_tracepoint)
12150 (remote_target::enable_tracepoint)
12151 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12152 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12153 sprintf_vma.
12154
12155 2020-03-12 Tom Tromey <tom@tromey.com>
12156
12157 * symfile-mem.c: Update CORE_ADDR size assert.
12158
12159 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12160
12161 * selftest.m4: Move to gdbsupport/.
12162 * acinclude.m4: Update path to selftest.m4.
12163
12164 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12165
12166 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12167 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12168 gdbarch-selfselftests.c and selftest-arch.c.
12169 (SUBDIR_UNITTESTS_OBS): Rename to...
12170 (SELFTESTS_OBS): ... this.
12171 (COMMON_SFILES): Remove disasm-selftests.c and
12172 gdbarch-selftests.c.
12173 * configure.ac: Don't add selftest-arch.{c,o} to
12174 CONFIG_{SRCS,OBS}.
12175 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12176 preprocessor conditions.
12177
12178 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12179
12180 * configure.ac: Don't source bfd/development.sh.
12181 * selftest.m4: Modify comment.
12182 * configure: Re-generate.
12183
12184 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12185
12186 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12187 not "true" or "false".
12188 * configure: Re-generate.
12189
12190 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12191
12192 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12193 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12194 renamed to arm_nbsd_supply_gregset.
12195 (fetch_register): Update to call arm_nbsd_supply_gregset.
12196 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12197 (arm_netbsd_nat_target::fetch_registers): Update.
12198 (fetch_elfcore_registers): Removed.
12199 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12200 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12201 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12202 not require NetBSD system headers.
12203 (arm_nbsd_regset): New struct.
12204 (arm_nbsd_iterate_over_regset_sections): New function.
12205 (arm_netbsd_init_abi_common): Updated to call
12206 set_gdbarch_iterate_over_regset_sections.
12207 * arm-nbsd-tdep.h: New file.
12208
12209 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12210
12211 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12212 recursion.
12213
12214 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12215
12216 * configure: Re-generate.
12217
12218 2020-03-11 Tom Tromey <tromey@adacore.com>
12219
12220 * ada-typeprint.c (print_choices): Fix comment.
12221
12222 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12223
12224 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12225 previous item in the list, when the list has no items.
12226
12227 2020-03-11 Tom de Vries <tdevries@suse.de>
12228
12229 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12230 PROP_LOCLIST handling code.
12231
12232 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12233
12234 * buildsym-legacy.c (record_line): Pass extra parameter to
12235 record_line.
12236 * buildsym.c (buildsym_compunit::record_line): Take an extra
12237 parameter, reduce duplication in the line table, and record the
12238 is_stmt flag in the line table.
12239 * buildsym.h (buildsym_compunit::record_line): Add extra
12240 parameter.
12241 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12242 non-statement lines.
12243 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12244 this to the symtab builder.
12245 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12246 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12247 through to dwarf_record_line_1.
12248 * infrun.c (process_event_stop_test): When stepping, don't stop at
12249 a non-statement instruction, and only refresh the step info when
12250 we land in the middle of a line's range. Also add an extra
12251 comment.
12252 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12253 field.
12254 * record-btrace.c (btrace_find_line_range): Only record lines
12255 marked as is-statement.
12256 * stack.c (frame_show_address): Show the frame address if we are
12257 in a non-statement sal.
12258 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12259 (maintenance_print_one_line_table): Print a header for the is_stmt
12260 column, and include is_stmt information in the output.
12261 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12262 preference to non-statements.
12263 (find_pcs_for_symtab_line): Prefer is-statement entries.
12264 (find_line_common): Likewise.
12265 * symtab.h (struct linetable_entry): Add is_stmt field.
12266 (struct symtab_and_line): Likewise.
12267 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12268 arranging the line table.
12269
12270 2020-03-07 Tom de Vries <tdevries@suse.de>
12271
12272 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12273 DIE.
12274
12275 2020-03-07 Tom Tromey <tom@tromey.com>
12276
12277 * valops.c (value_literal_complex): Remove obsolete comment.
12278 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12279 comment.
12280
12281 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12282
12283 * infrun.h: Forward-declare thread_info.
12284 (set_step_info): Add thread_info parameter, add doc.
12285 * infrun.c (set_step_info): Add thread_info parameter, move doc
12286 to header.
12287 * infrun.c (process_event_stop_test): Pass thread to
12288 set_step_info call.
12289 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12290 set_step_info.
12291 (prepare_one_step): Add thread_info parameter, pass it to
12292 set_step_frame and prepare_one_step (recursive) call.
12293 (step_1): Pass thread to prepare_one_step call.
12294 (step_command_fsm::should_stop): Pass thread to
12295 prepare_one_step.
12296 (until_next_fsm): Pass thread to set_step_frame call.
12297 (finish_command): Pass thread to set_step_info call.
12298
12299 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12300
12301 * windows-tdep.c (windows_solib_create_inferior_hook):
12302 Check if inferior is running.
12303
12304 2020-03-06 Tom de Vries <tdevries@suse.de>
12305
12306 * NEWS: Fix "the the".
12307 * ctfread.c: Same.
12308
12309 2020-03-06 Tom de Vries <tdevries@suse.de>
12310
12311 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12312
12313 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12314
12315 * .dir-locals.el: Add a comment referencing the other copies of
12316 this file.
12317
12318 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12319
12320 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12321 psargs.
12322
12323 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12324
12325 * .gitattributes: New file.
12326
12327 2020-03-04 Tom Tromey <tom@tromey.com>
12328
12329 * symmisc.c (print_symbol_bcache_statistics)
12330 (print_objfile_statistics): Update.
12331 * symfile.c (allocate_symtab): Use intern.
12332 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12333 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12334 macro_cache>: Remove.
12335 <string_cache>: New member.
12336 (struct objfile) <intern>: New methods.
12337 * elfread.c (elf_symtab_read): Use intern.
12338 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12339 (dwarf2_compute_name, dwarf2_physname)
12340 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12341 names.
12342 (guess_partial_die_structure_name): Update.
12343 (partial_die_info::fixup): Intern name.
12344 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12345 name.
12346 (dwarf2_name): Intern name. Update.
12347 * buildsym.c (buildsym_compunit::get_macro_table): Use
12348 string_cache.
12349
12350 2020-03-04 Tom Tromey <tom@tromey.com>
12351
12352 * jit.c (bfd_open_from_target_memory): Make "target" const.
12353 * corefile.c (gnutarget): Now const.
12354 * gdbcore.h (gnutarget): Now const.
12355
12356 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12357
12358 * NEWS: Mention support for WOW64 processes.
12359 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12360 (amd64_windows_segment_register_p): Remove static.
12361 (_initialize_amd64_windows_nat): Update.
12362 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12363 * i386-windows-nat.c (context_offset): Update.
12364 (i386_mappings): Rename and remove static.
12365 (i386_windows_segment_register_p): Remove static.
12366 (_initialize_i386_windows_nat): Update.
12367 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12368 (STATUS_WX86_SINGLE_STEP): New macro.
12369 (EnumProcessModulesEx): New macro.
12370 (Wow64SuspendThread): New macro.
12371 (Wow64GetThreadContext): New macro.
12372 (Wow64SetThreadContext): New macro.
12373 (Wow64GetThreadSelectorEntry): New macro.
12374 (windows_set_context_register_offsets): Add static.
12375 (windows_set_segment_register_p): Likewise.
12376 (windows_add_thread): Adapt for WOW64 processes.
12377 (windows_fetch_one_register): Likewise.
12378 (windows_nat_target::fetch_registers): Likewise.
12379 (windows_store_one_register): Likewise.
12380 (display_selector): Likewise.
12381 (display_selectors): Likewise.
12382 (handle_exception): Likewise.
12383 (windows_continue): Likewise.
12384 (windows_nat_target::resume): Likewise.
12385 (windows_add_all_dlls): Likewise.
12386 (do_initial_windows_stuff): Likewise.
12387 (windows_nat_target::attach): Likewise.
12388 (windows_get_exec_module_filename): Likewise.
12389 (windows_nat_target::create_inferior): Likewise.
12390 (windows_xfer_siginfo): Likewise.
12391 (_initialize_loadable): Initialize Wow64SuspendThread,
12392 Wow64GetThreadContext, Wow64SetThreadContext,
12393 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12394 * windows-nat.h (windows_set_context_register_offsets):
12395 Remove declaration.
12396 (windows_set_segment_register_p): Likewise.
12397 (i386_windows_segment_register_p): Add declaration.
12398 (amd64_windows_segment_register_p): Likewise.
12399
12400 2020-03-04 Luis Machado <luis.machado@linaro.org>
12401
12402 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12403 in "info registers" for AArch64/ARM.
12404
12405 The change caused "info registers" to not print GPR's.
12406
12407 gdb/ChangeLog:
12408
12409 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12410
12411 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12412 when reg->group is empty and reggroup is not.
12413
12414 2020-03-03 Tom Tromey <tromey@adacore.com>
12415
12416 * dwarf2/frame.c (struct dwarf2_frame_cache)
12417 <checked_tailcall_bottom, entry_cfa_sp_offset,
12418 entry_cfa_sp_offset_p>: Remove members.
12419 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12420 (dwarf2_frame_prev_register): Don't call
12421 dwarf2_tailcall_sniffer_first.
12422 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12423 * frame-unwind.c (add_unwinder): New fuction.
12424 (frame_unwind_init): Use it. Add tailcall unwinder.
12425
12426 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12427 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12428
12429 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12430 value should be printed as true.
12431
12432 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12433
12434 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12435 (windows_init_abi): Set and use windows_so_ops.
12436
12437 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12438
12439 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12440 when verifying if dealing with a convenience variable.
12441
12442 2020-03-03 Luis Machado <luis.machado@linaro.org>
12443
12444 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12445
12446 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12447
12448 * infrun.c (gdbarch_supports_displaced_stepping): New.
12449 (use_displaced_stepping): Break up conditions in smaller pieces.
12450 Use gdbarch_supports_displaced_stepping.
12451 (displaced_step_prepare_throw): Use
12452 gdbarch_supports_displaced_stepping.
12453
12454 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12455
12456 * NEWS: Mention new behaviour of the history filename.
12457 * top.c (write_history_p): Add comment.
12458 (show_write_history_p): Add header comment, give a different
12459 message when history writing is on, but the history filename is
12460 empty.
12461 (history_filename): Add comment.
12462 (history_filename_empty): New function.
12463 (show_history_filename): Add header comment, give a different
12464 message when the filename is empty.
12465 (init_history): Compare history_filename against nullptr, and only
12466 read history if the filename is not empty.
12467 (set_history_filename): Add header comment, and only make
12468 non-empty filenames absolute.
12469 (init_main): Make the filename argument to 'set history filename'
12470 optional.
12471
12472 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12473
12474 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12475 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12476 (fetch_fp_register): Update.
12477 (fetch_fp_regs): Update.
12478 (store_fp_register): Update.
12479 (store_fp_regs): Update.
12480 (arm_netbsd_nat_target::read_description): New function.
12481 (fetch_elfcore_registers): Update.
12482
12483 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12484
12485 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12486 general_thread if the stop reply is missing a thread-id.
12487 (remote_target::process_stop_reply): Use the first non-exited
12488 thread if the target didn't pass a thread-id.
12489 * infrun.c (do_target_wait): Move call to
12490 switch_to_inferior_no_thread to ....
12491 (do_target_wait_1): ... here.
12492
12493 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12494
12495 * debuginfod-support.c: Include defs.h first.
12496
12497 2020-02-28 Tom de Vries <tdevries@suse.de>
12498
12499 * symfile.c (set_initial_language): Use default language for lookup.
12500
12501 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12502
12503 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12504 reader variable, pass `this` to read_cutu_die_from_dwo.
12505
12506 2020-02-27 Aaron Merey <amerey@redhat.com>
12507
12508 * source.c (open_source_file): Check for nullptr when computing
12509 srcpath.
12510
12511 2020-02-27 Tom Tromey <tromey@adacore.com>
12512
12513 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12514 member.
12515 (dwarf2_add_field): Don't update nfields.
12516 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12517
12518 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12519
12520 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12521 abs.
12522
12523 2020-02-26 Tom Tromey <tom@tromey.com>
12524
12525 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12526 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12527 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12528 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12529 per_cu_data.
12530
12531 2020-02-26 Tom Tromey <tom@tromey.com>
12532
12533 * dwarf2/index-write.c (psym_index_map): Change type.
12534 (add_address_entry_worker, write_one_signatured_type)
12535 (recursively_count_psymbols, recursively_write_psymbols)
12536 (class debug_names, psyms_seen_size, write_gdbindex)
12537 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12538
12539 2020-02-26 Aaron Merey <amerey@redhat.com>
12540
12541 * Makefile.in: Handle optional debuginfod support.
12542 * NEWS: Update.
12543 * README: Add --with-debuginfod summary.
12544 * config.in: Regenerate.
12545 * configure: Regenerate.
12546 * configure.ac: Handle optional debuginfod support.
12547 * debuginfod-support.c: debuginfod helper functions.
12548 * debuginfod-support.h: Ditto.
12549 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12550 summary.
12551 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12552 when a dwz file cannot be found.
12553 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12554 debuginfo file cannot be found.
12555 * source.c (open_source_file): Query debuginfod servers when a
12556 source file cannot be found.
12557 * top.c (print_gdb_configuration): Include
12558 --{with,without}-debuginfod in the output.
12559
12560 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12561
12562 * thread.c (thr_try_catch_cmd): Print thread name.
12563
12564 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12565
12566 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12567 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12568 dwarf2_fetch_die_type_sect_off): Move to...
12569 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12570 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12571 dwarf2_fetch_die_type_sect_off): ... here.
12572 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12573 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12574 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12575
12576 2020-02-26 Tom de Vries <tdevries@suse.de>
12577
12578 PR gdb/25603
12579 * symfile.c (set_initial_language): Exit-early if
12580 language_mode == language_mode_manual.
12581
12582 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12583
12584 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12585 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12586 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12587
12588 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12589
12590 * gdbtypes.c (create_array_type_with_stride): Handle negative
12591 array strides.
12592 * valarith.c (value_subscripted_rvalue): Likewise.
12593
12594 2020-02-25 Luis Machado <luis.machado@linaro.org>
12595
12596 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12597
12598 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12599
12600 * loc.h (dwarf2_get_die_type): Move to...
12601 * read.h (dwarf2_get_die_type): ... here.
12602 * read.c (dwarf2_get_die_type): Move doc to header.
12603
12604 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12605
12606 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12607 'gnulib/Makefile.in' to the list.
12608
12609 2020-02-24 Tom Tromey <tom@tromey.com>
12610
12611 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12612 Remove.
12613 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12614 XOBNEWVEC.
12615
12616 2020-02-24 Tom Tromey <tom@tromey.com>
12617
12618 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12619 New method.
12620 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12621 (dw2_do_instantiate_symtab, dw2_get_file_names)
12622 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12623
12624 2020-02-24 Tom Tromey <tom@tromey.com>
12625
12626 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12627 make_scoped_restore.
12628 (dwarf2_psymtab::read_symtab): Don't clear
12629 reading_partial_symbols.
12630
12631 2020-02-24 Tom de Vries <tdevries@suse.de>
12632
12633 PR gdb/25592
12634 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12635
12636 2020-02-24 Tom de Vries <tdevries@suse.de>
12637
12638 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12639 commands layout next/prev/regs.
12640
12641 2020-02-22 Tom Tromey <tom@tromey.com>
12642
12643 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12644 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12645
12646 2020-02-22 Tom Tromey <tom@tromey.com>
12647
12648 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12649
12650 2020-02-22 Tom Tromey <tom@tromey.com>
12651
12652 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12653 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12654 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12655 * tui/tui.c (_initialize_tui): Add usage text.
12656
12657 2020-02-22 Tom Tromey <tom@tromey.com>
12658
12659 * tui/tui-win.c (tui_set_focus_command)
12660 (tui_set_win_height_command): Use error_no_arg.
12661 (_initialize_tui_win): Update help text.
12662 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12663
12664 2020-02-22 Tom Tromey <tom@tromey.com>
12665
12666 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12667 * tui/tui-disasm.h (struct tui_disasm_window)
12668 <display_start_addr>: Declare.
12669 * tui/tui-source.h (struct tui_source_window)
12670 <display_start_addr>: Declare.
12671 * tui/tui-winsource.h (struct tui_source_window_base)
12672 <show_source_line, display_start_addr>: New methods.
12673 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12674 Rename and move to protected section.
12675 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12676 (tui_source_window_base::do_erase_source_content): Update.
12677 (tui_source_window_base::show_source_line): Now a method.
12678 (tui_source_window_base::show_source_content)
12679 (tui_source_window_base::tui_source_window_base)
12680 (tui_source_window_base::rerender)
12681 (tui_source_window_base::refill)
12682 (tui_source_window_base::do_scroll_horizontal)
12683 (tui_source_window_base::set_is_exec_point_at)
12684 (tui_source_window_base::update_breakpoint_info)
12685 (tui_source_window_base::update_exec_info): Update.
12686 * tui/tui-source.c (tui_source_window::set_contents)
12687 (tui_source_window::showing_source_p)
12688 (tui_source_window::do_scroll_vertical)
12689 (tui_source_window::location_matches_p)
12690 (tui_source_window::line_is_displayed): Update.
12691 (tui_source_window::display_start_addr): New method.
12692 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12693 (tui_disasm_window::do_scroll_vertical)
12694 (tui_disasm_window::location_matches_p): Update.
12695 (tui_disasm_window::display_start_addr): New method.
12696
12697 2020-02-22 Tom Tromey <tom@tromey.com>
12698
12699 * NEWS: Add entry for gdb.register_window_type.
12700 * tui/tui-layout.h (window_factory): New typedef.
12701 (tui_register_window): Declare.
12702 * tui/tui-layout.c (saved_tui_windows): New global.
12703 (tui_apply_current_layout): Use it.
12704 (tui_register_window): New function.
12705 * python/python.c (do_start_initialization): Call
12706 gdbpy_initialize_tui.
12707 (python_GdbMethods): Add "register_window_type" function.
12708 * python/python-internal.h (gdbpy_register_tui_window)
12709 (gdbpy_initialize_tui): Declare.
12710 * python/py-tui.c: New file.
12711 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12712
12713 2020-02-22 Tom Tromey <tom@tromey.com>
12714
12715 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12716
12717 2020-02-22 Tom Tromey <tom@tromey.com>
12718
12719 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12720 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12721 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12722 (tui_set_win_focus_to): Move from tui-win.c.
12723
12724 2020-02-22 Tom Tromey <tom@tromey.com>
12725
12726 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12727 functions.
12728 (known_window_types): New global.
12729 (tui_get_window_by_name): Reimplement.
12730 (initialize_known_windows): New function.
12731 (validate_window_name): Rewrite.
12732 (_initialize_tui_layout): Call initialize_known_windows.
12733
12734 2020-02-22 Tom Tromey <tom@tromey.com>
12735
12736 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12737 Remove constants.
12738 * tui/tui-winsource.h (struct tui_source_window_base)
12739 <tui_source_window_base>: Remove parameter.
12740 * tui/tui-winsource.c
12741 (tui_source_window_base::tui_source_window_base): Remove
12742 parameter.
12743 (tui_source_window_base::refill): Update.
12744 * tui/tui-stack.h (struct tui_locator_window)
12745 <tui_locator_window>: Update.
12746 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12747 Default the constructor.
12748 * tui/tui-regs.h (struct tui_data_item_window)
12749 <tui_data_item_window>: Default the constructor.
12750 (struct tui_data_window) <tui_data_window>: Likewise.
12751 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12752 Default the constructor.
12753 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12754 Default the constructor.
12755 <type>: Remove.
12756 (struct tui_win_info) <tui_win_info>: Default the constructor.
12757 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12758 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12759 Default the constructor.
12760
12761 2020-02-22 Tom Tromey <tom@tromey.com>
12762
12763 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12764 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12765 * tui/tui-win.c (tui_resize_all): Don't call
12766 tui_delete_invisible_windows.
12767 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12768 done.
12769 (tui_set_layout): Update.
12770 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12771 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12772 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12773
12774 2020-02-22 Tom Tromey <tom@tromey.com>
12775
12776 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12777 correctly.
12778
12779 2020-02-22 Tom Tromey <tom@tromey.com>
12780
12781 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12782
12783 2020-02-22 Tom Tromey <tom@tromey.com>
12784
12785 * tui/tui-winsource.h (struct tui_source_window_iterator)
12786 <inner_iterator>: New etytypedef.
12787 <tui_source_window_iterator>: Take "end" parameter.
12788 <tui_source_window_iterator>: Take iterator.
12789 <operator*, advance>: Update.
12790 <m_iter>: Change type.
12791 <m_end>: New field.
12792 (struct tui_source_windows) <begin, end>: Update.
12793 * tui/tui-layout.c (tui_windows): New global.
12794 (tui_apply_current_layout): Clear tui_windows.
12795 (tui_layout_window::apply): Update tui_windows.
12796 * tui/tui-data.h (tui_windows): Declare.
12797 (all_tui_windows): Now inline function.
12798 (class tui_window_iterator, struct all_tui_windows): Remove.
12799
12800 2020-02-22 Tom Tromey <tom@tromey.com>
12801
12802 PR tui/17850:
12803 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12804 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12805 "height" argument.
12806 (class tui_layout_window) <get_sizes>: Likewise.
12807 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12808 argument.
12809 <get_sizes>: Add "height" argument.
12810 <m_vertical>: New field.
12811 * tui/tui-layout.c (tui_layout_split::clone): Update.
12812 (tui_layout_split::get_sizes): Add "height" argument.
12813 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12814 (tui_new_layout_command): Parse "-horizontal".
12815 (_initialize_tui_layout): Update help string.
12816 (tui_layout_split::specification): Add "-horizontal" when needed.
12817 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12818 argument.
12819 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12820 New methods.
12821
12822 2020-02-22 Tom Tromey <tom@tromey.com>
12823
12824 * tui/tui-layout.h (enum tui_adjust_result): New.
12825 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12826 (class tui_layout_window) <adjust_size>: Return
12827 tui_adjust_result. Rewrite.
12828 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12829 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12830
12831 2020-02-22 Tom Tromey <tom@tromey.com>
12832
12833 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12834 parameter and return types.
12835 (class tui_layout_base) <specification>: Add "depth".
12836 (class tui_layout_window) <specification>: Add "depth".
12837 (class tui_layout_split) <specification>: Add "depth".
12838 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12839 and return types.
12840 (tui_new_layout_command): Parse sub-layouts.
12841 (_initialize_tui_layout): Update help string.
12842 (tui_layout_window::specification): Add "depth".
12843 (add_layout_command): Update.
12844
12845 2020-02-22 Tom Tromey <tom@tromey.com>
12846
12847 * NEWS: Add "tui new-layout" item.
12848 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12849 Add new-layout command to help text.
12850 (validate_window_name): New function.
12851 (tui_new_layout_command): New function.
12852 (_initialize_tui_layout): Register "new-layout".
12853 (tui_layout_window::specification): New method.
12854 (tui_layout_window::specification): New method.
12855 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12856 method.
12857 (class tui_layout_window) <specification>: New method.
12858 (class tui_layout_split) <specification>: New method.
12859
12860 2020-02-22 Tom Tromey <tom@tromey.com>
12861
12862 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12863 * tui/tui-win.c (window_name_completer): Update comment.
12864 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12865 Declare method.
12866 (class tui_layout_window) <replace_window>: Likewise.
12867 (class tui_layout_split) <replace_window>: Likewise.
12868 (tui_set_layout): Don't declare.
12869 (tui_set_initial_layout): Declare function.
12870 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12871 (asm_regs_layout): New globals.
12872 (tui_current_layout, show_layout): Remove.
12873 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12874 (find_layout, tui_apply_layout): New function.
12875 (layout_completer): Remove.
12876 (tui_next_layout): Reimplement.
12877 (tui_next_layout_command): New function.
12878 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12879 (tui_regs_layout): Reimplement.
12880 (tui_regs_layout_command): New function.
12881 (extract_display_start_addr): Rewrite.
12882 (next_layout, prev_layout): Remove.
12883 (tui_layout_window::replace_window): New method.
12884 (tui_layout_split::replace_window): New method.
12885 (destroy_layout): New function.
12886 (layout_list): New global.
12887 (add_layout_command): New function.
12888 (initialize_layouts): Update.
12889 (tui_layout_command): New function.
12890 (_initialize_tui_layout): Install "layout" commands.
12891 * tui/tui-data.h (enum tui_layout_type): Remove.
12892 (tui_current_layout): Don't declare.
12893
12894 2020-02-22 Tom Tromey <tom@tromey.com>
12895
12896 * tui/tui-regs.c (tui_reg_layout): Remove.
12897 (tui_reg_command): Use tui_regs_layout.
12898 * tui/tui-layout.h (tui_reg_command): Declare.
12899 * tui/tui-layout.c (tui_reg_command): New function.
12900
12901 2020-02-22 Tom Tromey <tom@tromey.com>
12902
12903 * tui/tui.c (tui_rl_delete_other_windows): Call
12904 tui_remove_some_windows.
12905 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12906 Declare method.
12907 (class tui_layout_window) <remove_windows>: New method.
12908 (class tui_layout_split) <remove_windows>: Declare.
12909 (tui_remove_some_windows): Declare.
12910 * tui/tui-layout.c (tui_remove_some_windows): New function.
12911 (tui_layout_split::remove_windows): New method.
12912
12913 2020-02-22 Tom Tromey <tom@tromey.com>
12914
12915 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12916 * tui/tui-layout.h (tui_next_layout): Declare.
12917 * tui/tui-layout.c (tui_next_layout): New function.
12918
12919 2020-02-22 Tom Tromey <tom@tromey.com>
12920
12921 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12922 correct coordinates.
12923
12924 2020-02-22 Tom Tromey <tom@tromey.com>
12925
12926 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12927 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12928 DATA_WIN case.
12929
12930 2020-02-22 Tom Tromey <tom@tromey.com>
12931
12932 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12933 TUI_DISASM_WIN, not tui_win_list.
12934
12935 2020-02-22 Tom Tromey <tom@tromey.com>
12936
12937 * valprint.c (generic_val_print_enum_1)
12938 (val_print_type_code_flags): Style member names.
12939 * rust-lang.c (val_print_struct, rust_print_enum)
12940 (rust_print_struct_def, rust_internal_print_type): Style member
12941 names.
12942 * p-valprint.c (pascal_object_print_value_fields): Style member
12943 names. Only call fprintf_symbol_filtered for static members.
12944 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12945 * f-valprint.c (f_val_print): Style member names.
12946 * f-typeprint.c (f_type_print_base): Style member names.
12947 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12948 call fprintf_symbol_filtered for static members.
12949 (cp_print_class_member): Style member names.
12950 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12951 member names.
12952 * ada-valprint.c (ada_print_scalar): Style enum names.
12953 (ada_val_print_enum): Likewise.
12954 * ada-typeprint.c (print_enum_type): Style enum names.
12955
12956 2020-02-21 Tom Tromey <tom@tromey.com>
12957
12958 * psympriv.h (struct partial_symtab): Update comment.
12959
12960 2020-02-21 Tom Tromey <tromey@adacore.com>
12961
12962 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12963 type is CORE_ADDR.
12964
12965 2020-02-21 Tom de Vries <tdevries@suse.de>
12966
12967 PR gdb/25534
12968 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12969 if dependencies[i]->user != NULL.
12970
12971 2020-02-21 Ali Tamur <tamur@google.com>
12972
12973 * dwarf2/read.c (dwarf2_name): Add null check.
12974
12975 2020-02-20 Tom Tromey <tom@tromey.com>
12976
12977 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12978 ">=", in binary search.
12979 (dwarf2_find_containing_comp_unit): New overload.
12980 (run_test): New self-test.
12981 (_initialize_dwarf2_read): Register new test.
12982
12983 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12984
12985 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12986 * riscv-tdep.h: Likewise.
12987 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12988 rv32-only CSR.
12989 * features/riscv/64bit-csr.xml: Regenerated.
12990
12991 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12992 Tom Tromey <tom@tromey.com>
12993
12994 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12995 of 'fputc_unfiltered'.
12996 (putchar_unfiltered): Call 'fputc_unfiltered'.
12997 (fputc_unfiltered): Call 'fputs_unfiltered'.
12998
12999 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13000
13001 * config.in: Regenerate.
13002 * configure: Regenerate.
13003 * configure.ac: Add --with-python-libdir option.
13004 * main.c: Use WITH_PYTHON_LIBDIR.
13005
13006 2020-02-19 Tom Tromey <tom@tromey.com>
13007
13008 * symtab.c (general_symbol_info::compute_and_set_names): Use
13009 obstack_strndup. Simplify call to symbol_set_demangled_name.
13010
13011 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
13012
13013 * dwarf2/read.c (allocate_signatured_type_table,
13014 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13015 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13016 Remove objfile parameter, update all callers.
13017
13018 2020-02-19 Doug Evans <dje@google.com>
13019
13020 PR rust/25535
13021 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13022 rust_enum_variant calculation.
13023
13024 2020-02-19 Tom Tromey <tromey@adacore.com>
13025
13026 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13027
13028 2020-02-19 Tom Tromey <tromey@adacore.com>
13029
13030 * ada-lang.c (cache_symbol): Use obstack_strdup.
13031
13032 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13033
13034 * configure: Regenerate.
13035
13036 2020-02-19 Tom Tromey <tromey@adacore.com>
13037
13038 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13039 NULL check.
13040
13041 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
13042
13043 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13044
13045 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13046
13047 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13048 if GDBSERVER is not defined.
13049 (riscv_tdesc_cache): Likewise, also store const target_desc.
13050 (STATIC_IN_GDB): Define.
13051 (riscv_create_target_description): Update declaration with
13052 STATIC_IN_GDB.
13053 (riscv_lookup_target_description): New function, only define if
13054 GDBSERVER is not defined.
13055 * arch/riscv.h (riscv_create_target_description): Declare only
13056 when GDBSERVER is defined.
13057 (riscv_lookup_target_description): New declaration when GDBSERVER
13058 is not defined.
13059 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13060 (riscv_linux_read_features): ...this, and return
13061 riscv_gdbarch_features instead of target_desc.
13062 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13063 (riscv_linux_read_description): Rename to...
13064 (riscv_linux_read_features): ...this.
13065 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13066 Update to use riscv_gdbarch_features and
13067 riscv_lookup_target_description.
13068 * riscv-tdep.c (riscv_find_default_target_description): Use
13069 riscv_lookup_target_description instead of
13070 riscv_create_target_description.
13071
13072 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13073
13074 * valprint.c (generic_val_print_enum_1): When printing a flag
13075 enum with value 0 and there is no enumerator with value 0, print
13076 just "0" instead of "(unknown: 0x0)".
13077
13078 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13079
13080 * valprint.c (generic_val_print_enum_1): Print unknown part of
13081 flag enum in hex.
13082
13083 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13084
13085 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13086 flag enums to contain duplicate enumerators.
13087 * valprint.c (generic_val_print_enum_1): Update comment.
13088
13089 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13090
13091 * dwarf2/read.c: Include "count-one-bits.h".
13092 (update_enumeration_type_from_children): If an enumerator has
13093 multiple bits set, don't treat the enumeration as a "flag enum".
13094 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13095 of flag enums have 0 or 1 bit set.
13096
13097 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13098
13099 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13100 conversion.
13101 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13102 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13103 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13104 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13105 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13106
13107 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13108
13109 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13110
13111 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13112
13113 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13114 displaced_step_closure_up.
13115 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13116 (struct displaced_step_closure_up):
13117 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13118 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13119 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13120 Likewise.
13121 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13122 * gdbarch.c, gdbarch.h: Re-generate.
13123 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13124 displaced_step_closure_up.
13125 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13126 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13127 * infrun.h (displaced_step_closure_up): New type alias.
13128 (struct displaced_step_inferior_state) <step_closure>: Change
13129 type to displaced_step_closure_up.
13130 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13131 displaced_step_closure_up.
13132 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13133
13134 2020-02-14 Tom Tromey <tom@tromey.com>
13135
13136 * minidebug.c (gnu_debug_key): New global.
13137 (find_separate_debug_file_in_section): Use it.
13138
13139 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13140
13141 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13142 std::unique_ptr.
13143 * gdbarch.c: Re-generate.
13144 * gdbarch.h: Re-generate.
13145 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13146 change.
13147 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13148 type to std::unique_ptr.
13149 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13150 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13151 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13152 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13153 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13154 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13155 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13156 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13157 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13158
13159 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13160
13161 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13162 std::unique_ptr.
13163 (displaced_step_clear): Rename to...
13164 (displaced_step_reset): ... this. Just call displaced->reset ().
13165 (displaced_step_clear_cleanup): Rename to...
13166 (displaced_step_reset_cleanup): ... this.
13167 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13168 (displaced_step_fixup): Likewise.
13169 (resume_1): Likewise.
13170 (handle_inferior_event): Restore child's memory before calling
13171 displaced_step_fixup on the parent.
13172 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13173 to std::unique_ptr.
13174 <step_closure>: Change type to std::unique_ptr.
13175
13176 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13177
13178 * arm-tdep.c: Include count-one-bits.h.
13179 (cleanup_block_store_pc): Use count_one_bits.
13180 (cleanup_block_load_pc): Use count_one_bits.
13181 (arm_copy_block_xfer): Use count_one_bits.
13182 (thumb2_copy_block_xfer): Use count_one_bits.
13183 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13184 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13185 (thumb_get_next_pcs_raw): Use count_one_bits.
13186 (arm_get_next_pcs_raw): Use count_one_bits_l.
13187 * arch/arm.c (bitcount): Remove.
13188 * arch/arm.h (bitcount): Remove.
13189
13190 2020-02-14 Tom Tromey <tromey@adacore.com>
13191
13192 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13193 Update.
13194 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13195 * dwarf2/loc.c (call_site_find_chain_1): Return
13196 unique_xmalloc_ptr.
13197 (call_site_find_chain): Likewise.
13198
13199 2020-02-14 Richard Biener <rguenther@suse.de>
13200
13201 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13202 on expression with division operators.
13203
13204 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13205
13206 * MAINTAINERS (Write After Approval): Adding myself.
13207
13208 2020-02-12 Tom Tromey <tom@tromey.com>
13209
13210 * event-loop.c (event_data, gdb_event, event_handler_func):
13211 Remove.
13212
13213 2020-02-12 Tom Tromey <tom@tromey.com>
13214
13215 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13216 (dwarf2_frame_objfile_data): Add comment.
13217 (find_comp_unit, set_comp_unit): New functions.
13218 (dwarf2_frame_find_fde): Use find_comp_unit.
13219 (dwarf2_build_frame_info): Use set_comp_unit.
13220
13221 2020-02-12 Tom Tromey <tom@tromey.com>
13222
13223 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13224 (comp_unit): Don't initialize objfile.
13225 (execute_cfa_program): Add text_offset parameter.
13226 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13227 (dwarf2_frame_cache): Update.
13228 (dwarf2_build_frame_info): Don't set "objfile" member.
13229
13230 2020-02-12 Tom Tromey <tom@tromey.com>
13231
13232 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13233 (decode_frame_entry): Likewise.
13234 (dwarf2_build_frame_info): Update.
13235
13236 2020-02-12 Tom Tromey <tom@tromey.com>
13237
13238 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13239 (decode_frame_entry_1): Use the comp_unit obstack.
13240
13241 2020-02-12 Tom Tromey <tom@tromey.com>
13242
13243 * dwarf2/frame.c (struct comp_unit): Add initializers and
13244 constructor.
13245 (dwarf2_frame_objfile_data): Store a comp_unit.
13246 (dwarf2_frame_find_fde): Update.
13247 (dwarf2_build_frame_info): Use "new".
13248
13249 2020-02-12 Tom Tromey <tom@tromey.com>
13250
13251 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13252 (dwarf2_fde_table): Typedef for std::vector.
13253 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13254 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13255 (decode_frame_entry): Update.
13256 (dwarf2_build_frame_info): Use "new".
13257
13258 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13259
13260 * arm-tdep.c (arm_gdbarch_init): Update.
13261 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13262 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13263 have_neon, is_m>: Change to bool.
13264
13265 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13266
13267 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13268
13269 2020-02-12 Tom Tromey <tom@tromey.com>
13270
13271 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13272
13273 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13274
13275 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13276 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13277
13278 2020-02-11 Tom Tromey <tom@tromey.com>
13279
13280 * psymtab.h: Update comment.
13281
13282 2020-02-11 Tom Tromey <tom@tromey.com>
13283
13284 * gdb_obstack.h (struct auto_obstack): Use
13285 DISABLE_COPY_AND_ASSIGN.
13286
13287 2020-02-11 Tom Tromey <tom@tromey.com>
13288
13289 * dwarf2/frame.h (struct objfile): Don't forward declare.
13290
13291 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13292
13293 * cris-tdep.c (cris_supply_gregset): Change signature to match
13294 what struct regset expects.
13295 (cris_regset): New struct.
13296 (fetch_core_registers): Remove.
13297 (cris_iterate_over_regset_sections): New function.
13298 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13299 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13300
13301 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13302
13303 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13304 registers.
13305
13306 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13307
13308 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13309
13310 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13311
13312 * configure: Re-generate.
13313
13314 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13315
13316 * configure: Re-generate.
13317
13318 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13319
13320 * acinclude: Update warning.m4 path.
13321 * warning.m4: Move to gdbsupport.
13322
13323 2020-02-11 Tom Tromey <tromey@adacore.com>
13324
13325 * remote.c (remote_console_output): Update.
13326 * printcmd.c (printf_command): Update.
13327 * event-loop.c (gdb_wait_for_event): Update.
13328 * linux-nat.c (sigchld_handler): Update.
13329 * remote-sim.c (gdb_os_write_stdout): Update.
13330 (gdb_os_flush_stdout): Update.
13331 (gdb_os_flush_stderr): Update.
13332 (gdb_os_write_stderr): Update.
13333 * exceptions.c (print_exception): Update.
13334 * remote-fileio.c (remote_fileio_func_read): Update.
13335 (remote_fileio_func_write): Update.
13336 * tui/tui.c (tui_enable): Update.
13337 * tui/tui-interp.c (tui_interp::init): Update.
13338 * utils.c (init_page_info): Update.
13339 (putchar_unfiltered, fputc_unfiltered): Update.
13340 (gdb_flush): Update.
13341 (emit_style_escape): Update.
13342 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13343 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13344 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13345 (stderr_file::write): Update.
13346 (stderr_file::puts): Update.
13347 * ui-file.h (ui_file_isatty, ui_file_write)
13348 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13349 (ui_file_puts): Don't declare.
13350
13351 2020-02-10 Tom de Vries <tdevries@suse.de>
13352
13353 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13354 sentinel to char *.
13355
13356 2020-02-09 Tom de Vries <tdevries@suse.de>
13357
13358 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13359 filename if it matches "<artificial>".
13360
13361 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13362
13363 * windows-tdep.c (struct enum_value_name): New struct.
13364 (create_enum): New function.
13365 (windows_get_siginfo_type): Create and use enum types.
13366
13367 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13368
13369 * NEWS: Mention $_siginfo support for Windows.
13370 * windows-nat.c (handle_exception): Set siginfo_er.
13371 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13372 (windows_xfer_siginfo): New function.
13373 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13374 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13375 (init_windows_gdbarch_data): New function.
13376 (get_windows_gdbarch_data): New function.
13377 (windows_get_siginfo_type): New function.
13378 (windows_init_abi): Register windows_get_siginfo_type.
13379 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13380
13381 2020-02-08 Tom Tromey <tom@tromey.com>
13382
13383 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13384 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13385 <keep>: Declare method.
13386 <m_keep>: Remove member.
13387 <~cutu_reader>: Remove.
13388 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13389 (cutu_reader::cutu_reader): Update.
13390 (cutu_reader::keep): Rename from ~cutu_reader.
13391 (process_psymtab_comp_unit, build_type_psymtabs_1)
13392 (process_skeletonless_type_unit, load_partial_comp_unit)
13393 (load_full_comp_unit, dwarf2_read_addr_index)
13394 (read_signatured_type): Update.
13395
13396 2020-02-08 Tom Tromey <tom@tromey.com>
13397
13398 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13399 "want_partial_unit" parameter.
13400 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13401 Inline check for DW_TAG_partial_unit.
13402 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13403
13404 2020-02-08 Tom Tromey <tom@tromey.com>
13405
13406 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13407 read.c.
13408 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13409 read.c.
13410
13411 2020-02-08 Tom Tromey <tom@tromey.com>
13412
13413 * dwarf2/read.c (read_address): Move to comp-unit.c.
13414 (dwarf2_rnglists_process, dwarf2_ranges_process)
13415 (read_attribute_value, dwarf_decode_lines_1)
13416 (var_decode_location, decode_locdesc): Update.
13417 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13418 read.c. Remove "cu" parameter.
13419 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13420 method.
13421
13422 2020-02-08 Tom Tromey <tom@tromey.com>
13423
13424 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13425 (read_indirect_line_string): Update.
13426 * dwarf2/comp-unit.c (read_offset): Remove.
13427 (read_comp_unit_head): Update.
13428 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13429 method.
13430 (read_offset): Don't declare.
13431
13432 2020-02-08 Tom Tromey <tom@tromey.com>
13433
13434 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13435 * dwarf2/read.c (struct comp_unit_head): Move to
13436 dwarf2/comp-unit.h.
13437 (enum class rcuh_kind): Move to comp-unit.h.
13438 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13439 (read_comp_unit_head, error_check_comp_unit_head)
13440 (read_and_check_comp_unit_head): Move to comp-unit.c.
13441 (read_offset, dwarf_unit_type_name): Likewise.
13442 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13443 (cutu_reader::cutu_reader, read_call_site_scope)
13444 (find_partial_die, follow_die_offset): Update.
13445 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13446
13447 2020-02-08 Tom Tromey <tom@tromey.com>
13448
13449 * dwarf2/read.c (read_offset_1): Move to leb.c.
13450 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13451 (dwarf_decode_macro_bytes): Update.
13452 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13453 * dwarf2/leb.h (read_offset): Declare.
13454
13455 2020-02-08 Tom Tromey <tom@tromey.com>
13456
13457 * dwarf2/read.c (dwarf2_section_size): Remove.
13458 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13459 Update.
13460 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13461
13462 2020-02-08 Tom Tromey <tom@tromey.com>
13463
13464 * dwarf2/read.c (read_initial_length): Move to leb.c.
13465 * dwarf2/leb.h (read_initial_length): Declare.
13466 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13467 handle_nonstd parameter.
13468 * dwarf2/frame.c (read_initial_length): Remove.
13469 (decode_frame_entry_1): Update.
13470
13471 2020-02-08 Tom Tromey <tom@tromey.com>
13472
13473 * dwarf2/loc.c (dwarf2_find_location_expression)
13474 (dwarf_evaluate_loc_desc::get_tls_address)
13475 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13476 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13477 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13478 (dwarf2_compile_property_to_c)
13479 (dwarf2_loc_desc_get_symbol_read_needs)
13480 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13481 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13482 (loclist_describe_location, loclist_tracepoint_var_ref)
13483 (loclist_generate_c_location): Update.
13484 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13485 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13486 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13487 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13488 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13489 (dwarf2_per_cu_data::addr_size)
13490 (dwarf2_per_cu_data::ref_addr_size)
13491 (dwarf2_per_cu_data::text_offset)
13492 (dwarf2_per_cu_data::addr_type): Now methods.
13493 (per_cu_header_read_in): Make per_cu "const".
13494 (dwarf2_version): Remove.
13495 (dwarf2_per_cu_data::int_type): Now a method.
13496 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13497 (set_die_type, read_array_type, read_subrange_index_type)
13498 (read_tag_string_type, read_subrange_type): Update.
13499 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13500 offset_size, ref_addr_size, text_offset, addr_type, version,
13501 objfile, int_type, addr_sized_int_type>: Declare methods.
13502
13503 2020-02-08 Tom Tromey <tom@tromey.com>
13504
13505 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13506 Move earlier.
13507
13508 2020-02-08 Tom Tromey <tom@tromey.com>
13509
13510 * dwarf2/read.h (dwarf_line_debug): Declare.
13511 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13512 * dwarf2/read.c: Move line_header code to new files.
13513 (dwarf_line_debug): No longer static.
13514 * dwarf2/line-header.c: New file.
13515 * dwarf2/line-header.h: New file.
13516
13517 2020-02-08 Tom Tromey <tom@tromey.com>
13518
13519 * dwarf2/read.c (struct line_header) <file_full_name,
13520 file_file_name>: Return unique_xmalloc_ptr.
13521 (line_header::file_file_name): Update.
13522 (line_header::file_full_name): Update.
13523 (dw2_get_file_names_reader): Update.
13524 (macro_start_file): Update.
13525
13526 2020-02-08 Tom Tromey <tom@tromey.com>
13527
13528 * dwarf2/read.c (struct line_header) <file_full_name,
13529 file_file_name>: Declare methods.
13530 (dw2_get_file_names_reader): Update.
13531 (file_file_name): Now a method.
13532 (file_full_name): Likewise.
13533 (macro_start_file): Update.
13534
13535 2020-02-08 Tom Tromey <tom@tromey.com>
13536
13537 * dwarf2/read.c (dwarf_always_disassemble)
13538 (show_dwarf_always_disassemble): Move to loc.c.
13539 (_initialize_dwarf2_read): Move "always-disassemble" registration
13540 to loc.c.
13541 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13542 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13543 static.
13544 (show_dwarf_always_disassemble): Move from read.c.
13545 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13546
13547 2020-02-08 Tom Tromey <tom@tromey.com>
13548
13549 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13550 (create_quick_file_names_table): Return htab_up.
13551 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13552 Update.
13553 * dwarf2/read.h (struct dwarf2_per_objfile)
13554 <quick_file_names_table>: Now htab_up.
13555
13556 2020-02-08 Tom Tromey <tom@tromey.com>
13557
13558 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13559
13560 2020-02-08 Tom Tromey <tom@tromey.com>
13561
13562 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13563 Rewrite.
13564 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13565 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13566 (abbrev_table::abbrev_table): No longer inline.
13567 (ABBREV_HASH_SIZE): Remove.
13568 (abbrev_table::m_abbrevs): Now an htab_up.
13569
13570 2020-02-08 Tom Tromey <tom@tromey.com>
13571
13572 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13573 (cutu_reader): Update.
13574 (build_type_psymtabs_1): Update.
13575 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13576 (abbrev_table::alloc_abbrev): Update.
13577 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13578 (abbrev_table::read): New static method, renamed from
13579 abbrev_table_read_table.
13580 (abbrev_table::alloc_abbrev)
13581 (abbrev_table::add_abbrev): Now private.
13582 (abbrev_table::abbrev_table): Now private.
13583 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13584
13585 2020-02-08 Tom Tromey <tom@tromey.com>
13586
13587 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13588 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13589 htab_up.
13590
13591 2020-02-08 Tom Tromey <tom@tromey.com>
13592
13593 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13594 htab_up.
13595 (lookup_dwo_unit_in_dwp): Update.
13596 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13597 on obstack.
13598
13599 2020-02-08 Tom Tromey <tom@tromey.com>
13600
13601 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13602 obstack.
13603
13604 2020-02-08 Tom Tromey <tom@tromey.com>
13605
13606 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13607 line_header_hash.
13608 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13609 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13610 Change type to htab_up.
13611
13612 2020-02-08 Tom Tromey <tom@tromey.com>
13613
13614 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13615 htab_up. Don't allocate on obstack.
13616 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13617 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13618 Change type to htab_up.
13619
13620 2020-02-08 Tom Tromey <tom@tromey.com>
13621
13622 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13623 Change type to htab_up.
13624 * dwarf2/read.c (create_signatured_type_table_from_index)
13625 (create_signatured_type_table_from_debug_names)
13626 (create_all_type_units, add_type_unit)
13627 (lookup_dwo_signatured_type, lookup_signatured_type)
13628 (process_skeletonless_type_unit): Update.
13629 (create_debug_type_hash_table, create_debug_types_hash_table):
13630 Change type of types_htab.
13631 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13632 htab_up. Don't allocate on obstack.
13633 (create_cus_hash_table): Change type of cus_htab parameter.
13634 (struct dwo_file) <cus, tus>: Now htab_up.
13635 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13636 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13637 (queue_and_load_all_dwo_tus): Update.
13638 * dwarf2/index-write.c (write_gdbindex): Update.
13639 (write_debug_names): Update.
13640
13641 2020-02-08 Tom Tromey <tom@tromey.com>
13642
13643 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13644 dwarf2/read.c. Remove "next" member. Add constructor ntad
13645 destructor.
13646 (struct dwarf2_per_objfile) <queue>: New member.
13647 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13648 dwarf2/read.h.
13649 (dwarf2_queue, dwarf2_queue_tail): Remove.
13650 (class dwarf2_queue_guard): Add parameter to constructor. Use
13651 DISABLE_COPY_AND_ASSIGN.
13652 <m_per_objfile>: New member.
13653 <~dwarf2_queue_guard>: Rewrite.
13654 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13655 Update.
13656 (~dwarf2_queue_item): New.
13657
13658 2020-02-08 Tom Tromey <tom@tromey.com>
13659
13660 * dwarf2/read.c (struct die_info) <has_children>: New member.
13661 (dw2_get_file_names_reader): Remove has_children.
13662 (dw2_get_file_names): Update.
13663 (read_cutu_die_from_dwo): Remove has_children.
13664 (cutu_reader::init_tu_and_read_dwo_dies)
13665 (cutu_reader::cutu_reader): Update.
13666 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13667 Remove has_children.
13668 (build_type_psymtabs_1, process_skeletonless_type_unit)
13669 (load_partial_comp_unit, load_full_comp_unit): Update.
13670 (create_dwo_cu_reader): Remove has_children.
13671 (create_cus_hash_table, read_die_and_children): Update.
13672 (read_full_die_1,read_full_die): Remove has_children.
13673 (read_signatured_type): Update.
13674 (class cutu_reader) <has_children>: Remove.
13675
13676 2020-02-08 Tom Tromey <tom@tromey.com>
13677
13678 * dwarf2/expr.c: Rename from dwarf2expr.c.
13679 * dwarf2/expr.h: Rename from dwarf2expr.h.
13680 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13681 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13682 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13683 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13684 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13685 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13686 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13687 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13688 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13689 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13690 * dwarf2/loc.c: Rename from dwarf2loc.c.
13691 * dwarf2/loc.h: Rename from dwarf2loc.h.
13692 * dwarf2/read.c: Rename from dwarf2read.c.
13693 * dwarf2/read.h: Rename from dwarf2read.h.
13694 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13695 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13696 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13697 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13698 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13699 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13700 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13701 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13702 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13703 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13704 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13705 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13706 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13707 Update.
13708 * Makefile.in (COMMON_SFILES): Update.
13709 (HFILES_NO_SRCDIR): Update.
13710
13711 2020-02-08 Tom Tromey <tom@tromey.com>
13712
13713 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13714 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13715
13716 2020-02-08 Tom Tromey <tom@tromey.com>
13717
13718 * dwarf2read.h (struct die_info): Don't declare.
13719
13720 2020-02-08 Tom Tromey <tom@tromey.com>
13721
13722 * dwarf2read.h (die_info_ptr): Remove typedef.
13723
13724 2020-02-08 Tom Tromey <tom@tromey.com>
13725
13726 * dwarf2read.c (read_call_site_scope)
13727 (handle_data_member_location, dwarf2_add_member_fn)
13728 (mark_common_block_symbol_computed, read_common_block)
13729 (attr_to_dynamic_prop, partial_die_info::read)
13730 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13731 (dwarf2_symbol_mark_computed, set_die_type): Update.
13732 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13733 method.
13734 (attr_form_is_block): Don't declare.
13735 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13736
13737 2020-02-08 Tom Tromey <tom@tromey.com>
13738
13739 * dwarf2read.c (dwarf2_find_base_address, )
13740 (read_call_site_scope, rust_containing_type)
13741 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13742 (handle_data_member_location, dwarf2_add_member_fn)
13743 (get_alignment, read_structure_type, process_structure_scope)
13744 (mark_common_block_symbol_computed, read_common_block)
13745 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13746 (partial_die_info::read, read_attribute_value, new_symbol)
13747 (lookup_die_type, dwarf2_get_ref_die_offset)
13748 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13749 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13750 (dwarf2_symbol_mark_computed): Update.
13751 * dwarf2/attribute.h (struct attribute) <value_as_address,
13752 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13753 methods.
13754 (value_as_address, attr_form_is_section_offset)
13755 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13756 * dwarf2/attribute.c (attribute::value_as_address)
13757 (attribute::form_is_section_offset, attribute::form_is_constant)
13758 (attribute::form_is_ref): Now methods.
13759
13760 2020-02-08 Tom Tromey <tom@tromey.com>
13761
13762 * dwarf2read.c (struct attribute, DW_STRING)
13763 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13764 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13765 (attr_form_is_block, attr_form_is_section_offset)
13766 (attr_form_is_constant, attr_form_is_ref): Move.
13767 * dwarf2/attribute.h: New file.
13768 * dwarf2/attribute.c: New file, from dwarf2read.c.
13769 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13770
13771 2020-02-08 Tom Tromey <tom@tromey.com>
13772
13773 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13774 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13775 Move.
13776 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13777 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13778 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13779 abbrev.c.
13780 * dwarf2/abbrev.h: New file.
13781 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13782 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13783
13784 2020-02-08 Tom Tromey <tom@tromey.com>
13785
13786 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13787 (dwarf2_section_size, dwarf2_get_section_info)
13788 (create_signatured_type_table_from_debug_names)
13789 (create_addrmap_from_aranges, read_debug_names_from_section)
13790 (get_gdb_index_contents_from_section, read_comp_unit_head)
13791 (error_check_comp_unit_head, read_abbrev_offset)
13792 (create_debug_type_hash_table, init_cu_die_reader)
13793 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13794 (read_comp_units_from_section, create_cus_hash_table)
13795 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13796 (create_dwp_v2_section, dwarf2_rnglists_process)
13797 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13798 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13799 (read_indirect_string_from_dwz, read_addr_index_1)
13800 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13801 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13802 (fill_in_loclist_baton): Update.
13803 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13804 get_containing_section, get_bfd_owner, get_bfd_section,
13805 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13806 (dwarf2_read_section, get_section_name, get_section_file_name)
13807 (get_containing_section, get_section_bfd_owner)
13808 (get_section_bfd_section, get_section_name, get_section_file_name)
13809 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13810 declare.
13811 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13812 (dwarf2_section_info::get_bfd_owner)
13813 (dwarf2_section_info::get_bfd_section)
13814 (dwarf2_section_info::get_name)
13815 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13816 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13817 (dwarf2_section_info::read): Now methods.
13818 * dwarf-index-write.c (class debug_names): Update.
13819
13820 2020-02-08 Tom Tromey <tom@tromey.com>
13821
13822 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13823 Move to dwarf2/section.h.
13824 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13825 (get_section_bfd_section, get_section_name)
13826 (get_section_file_name, get_section_id, get_section_flags)
13827 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13828 dwarf2/section.c.
13829 * dwarf2/section.h: New file.
13830 * dwarf2/section.c: New file, from dwarf2read.c.
13831 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13832
13833 2020-02-08 Tom Tromey <tom@tromey.com>
13834
13835 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13836 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13837 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13838 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13839 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13840 * dwarf2/leb.h: New file, from dwarf2read.c.
13841 * dwarf2/leb.c: New file, from dwarf2read.c.
13842 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13843 Remove.
13844 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13845 (COMMON_SFILES): Add dwarf2/leb.c.
13846
13847 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13848
13849 GDB 9.1 released.
13850
13851 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13852
13853 PR gdb/25190:
13854 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13855 * gdb/remote.c (remote_console_output): Update.
13856 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13857 (ui_file_puts): ...this.
13858 * gdb/ui-file.h (ui_file_puts): Add declaration.
13859 * gdb/utils.c (emit_style_escape): Update.
13860 (flush_wrap_buffer): Update.
13861 (fputs_maybe_filtered): Update.
13862 (fputs_unfiltered): Add function.
13863
13864 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13865
13866 * gdb/event-loop.c (gdb_wait_for_event): Update.
13867 * gdb/printcmd.c (printf_command): Update.
13868 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13869 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13870 (gdb_os_flush_stderr): Update.
13871 * gdb/remote.c (remote_console_output): Update.
13872 * gdb/ui-file.c (gdb_flush): Rename to...
13873 (ui_file_flush): ...this.
13874 (stderr_file::write): Update.
13875 (stderr_file::puts): Update.
13876 * gdb/ui-file.h (gdb_flush): Rename to...
13877 (ui_file_flush): ...this.
13878 * gdb/utils.c (gdb_flush): Add function.
13879 * gdb/utils.h (gdb_flush): Add declaration.
13880
13881 2020-02-07 Tom Tromey <tromey@adacore.com>
13882
13883 PR breakpoints/24915:
13884 * source.c (find_and_open_source): Do not check basenames_may_differ.
13885
13886 2020-02-07 Tom Tromey <tom@tromey.com>
13887
13888 * README: Update gdbserver documentation.
13889 * gdbserver: Move to top level.
13890 * configure.tgt (build_gdbserver): Remove.
13891 * configure.ac: Remove --enable-gdbserver.
13892 * configure: Rebuild.
13893 * Makefile.in (distclean): Don't mention gdbserver.
13894
13895 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13896
13897 * source-cache.c (source_cache::ensure): Surround
13898 get_plain_source_lines with a try/catch.
13899 (source_cache::get_line_charpos): Get rid of try/catch
13900 and only check for the return value of "ensure".
13901 * tui/tui-source.c (tui_source_window::set_contents):
13902 Simplify "nlines" calculation.
13903
13904 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13905
13906 * MAINTAINERS (Write After Approval): Add myself.
13907
13908 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13909
13910 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13911 function call.
13912
13913 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13914
13915 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13916
13917 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13918
13919 * nat/riscv-linux-tdesc.h: New file.
13920 * nat/riscv-linux-tdesc.c: New file, taking code from...
13921 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13922 ... here.
13923 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13924 NATDEPFILES.
13925
13926 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13927
13928 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13929 we don't set the fake simulator ptid to the null_ptid.
13930
13931 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13932
13933 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13934 * gdbthread.h (class thread_info) <resumed>: Likewise.
13935 * infrun.c (resume_1): Likewise.
13936 (proceed): Likewise.
13937 (infrun_thread_stop_requested): Likewise.
13938 (stop_all_threads): Likewise.
13939 (handle_inferior_event): Likewise.
13940 (restart_threads): Likewise.
13941 (finish_step_over): Likewise.
13942 (keep_going_stepped_thread): Likewise.
13943 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13944 (linux_handle_extended_wait): Likewise.
13945 * record-btrace.c (get_thread_current_frame_id): Likewise.
13946 * record-full.c (record_full_wait_1): Likewise.
13947 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13948 * target.c (target_resume): Likewise.
13949 * thread.c (set_running_thread): Likewise.
13950
13951 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13952
13953 * f-valprint.c (f77_print_array_1): Changed datatype of index
13954 variable to LONGEST from int to enable it to contain bound
13955 values correctly.
13956
13957 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13958
13959 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13960 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13961 offsets according to FLEN determined.
13962 (riscv_linux_nat_target::read_description): Determine FLEN
13963 dynamically.
13964 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13965 according to FLEN determined.
13966 (riscv_linux_nat_target::store_registers): Likewise.
13967
13968 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13969
13970 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13971 when reg->group is empty and reggroup is not.
13972
13973 2020-01-31 Tom Tromey <tromey@adacore.com>
13974
13975 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13976 Call beneath target's mourn_inferior after unpushing.
13977
13978 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13979
13980 PR tui/9765
13981 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13982 have enough lines to fill the screen, still return the lowest
13983 address we found.
13984
13985 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13986
13987 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13988 '-', '<', and '>' commands.
13989
13990 2020-01-29 Pedro Alves <palves@redhat.com>
13991 Sergio Durigan Junior <sergiodj@redhat.com>
13992
13993 * infcmd.c (construct_inferior_arguments): Assert that
13994 'argc' is greater than 0.
13995
13996 2020-01-29 Luis Machado <luis.machado@linaro.org>
13997
13998 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13999 (BRK_INSN_MASK): Define to 0xd4200000.
14000 (aarch64_program_breakpoint_here_p): New function.
14001 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14002 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14003 breakpoint.c.
14004 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14005 breakpoint.h
14006 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14007 call gdbarch_program_breakpoint_here_p.
14008 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14009 default_program_breakpoint_here_p, changed return type to bool and
14010 simplified.
14011 * breakpoint.h (program_breakpoint_here): Moved prototype to
14012 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14013 return type to bool.
14014 * gdbarch.c: Regenerate.
14015 * gdbarch.h: Regenerate.
14016 * gdbarch.sh (program_breakpoint_here_p): New method.
14017 * infrun.c (handle_signal_stop): Call
14018 gdbarch_program_breakpoint_here_p.
14019
14020 2020-01-26 Tom Tromey <tom@tromey.com>
14021
14022 * ctfread.c (struct ctf_fp_info): Reindent.
14023 (_initialize_ctfread): Remove.
14024
14025 2020-01-26 Tom Tromey <tom@tromey.com>
14026
14027 * psymtab.c (partial_map_expand_apply)
14028 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14029 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14030 (psym_print_stats, psym_expand_symtabs_for_function)
14031 (psym_map_symbol_filenames, psym_map_matching_symbols)
14032 (psym_expand_symtabs_matching)
14033 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14034 (maintenance_check_psymtabs): Use new methods.
14035 * psympriv.h (struct partial_symtab) <readin_p,
14036 get_compunit_symtab>: New methods.
14037 <readin, compunit_symtab>: Remove members.
14038 (struct standard_psymtab): New.
14039 (struct legacy_psymtab): Derive from standard_psymtab.
14040 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14041 standard_psymtab.
14042 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14043
14044 2020-01-26 Tom Tromey <tom@tromey.com>
14045
14046 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14047 read_dependencies. Add assert.
14048 * psymtab.c (partial_symtab::read_dependencies): New method.
14049 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14050 method.
14051 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14052 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14053 read_dependencies.
14054 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14055 Add assert.
14056
14057 2020-01-26 Tom Tromey <tom@tromey.com>
14058
14059 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14060 Call expand_psymtab.
14061 (xcoff_read_symtab): Call expand_psymtab.
14062 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14063 legacy_expand_psymtab.
14064 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14065 method.
14066 (struct legacy_psymtab) <expand_psymtab>: Implement.
14067 <legacy_expand_psymtab>: New member.
14068 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14069 (parse_partial_symbols): Set legacy_expand_psymtab.
14070 (psymtab_to_symtab_1): Change argument order. Call
14071 expand_psymtab.
14072 (new_psymtab): Set legacy_expand_psymtab.
14073 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14074 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14075 expand_psymtab.
14076 (dwarf2_psymtab::expand_psymtab): Rename from
14077 psymtab_to_symtab_1. Call expand_psymtab.
14078 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14079 (dbx_end_psymtab): Likewise.
14080 (dbx_psymtab_to_symtab_1): Change argument order. Call
14081 expand_psymtab.
14082 (dbx_read_symtab): Call expand_psymtab.
14083 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14084 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14085 (ctf_psymtab::read_symtab): Call expand_psymtab.
14086
14087 2020-01-26 Tom Tromey <tom@tromey.com>
14088
14089 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14090 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14091 messages.
14092 * mdebugread.c (mdebug_read_symtab): Remove prints.
14093 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14094 assert.
14095 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14096
14097 2020-01-26 Tom Tromey <tom@tromey.com>
14098
14099 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14100 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14101 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14102 legacy_symtab.
14103 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14104 * psymtab.c (psymtab_to_symtab): Call method.
14105 (dump_psymtab): Update.
14106 * psympriv.h (struct partial_symtab): Add virtual destructor.
14107 <read_symtab>: New method.
14108 (struct legacy_symtab): New.
14109 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14110 (struct pst_map) <pst>: Now a legacy_psymtab.
14111 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14112 (new_psymtab): Use legacy_psymtab.
14113 * dwarf2read.h (struct dwarf2_psymtab): New.
14114 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14115 * dwarf2read.c (dwarf2_create_include_psymtab)
14116 (dwarf2_build_include_psymtabs, create_type_unit_group)
14117 (create_partial_symtab, process_psymtab_comp_unit_reader)
14118 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14119 (set_partial_user): Use dwarf2_psymtab.
14120 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14121 (psymtab_to_symtab_1, process_full_comp_unit)
14122 (process_full_type_unit, dwarf2_ranges_read)
14123 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14124 (dwarf_decode_lines): Use dwarf2_psymtab.
14125 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14126 (add_address_entry_worker, write_one_signatured_type)
14127 (recursively_count_psymbols, recursively_write_psymbols)
14128 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14129 (write_debug_names): Likewise.
14130 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14131 <pst>: Now a legacy_psymtab.
14132 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14133 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14134 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14135 * ctfread.c (struct ctf_psymtab): New.
14136 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14137 ctf_psymtab.
14138 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14139 (create_partial_symtab): Return a ctf_psymtab.
14140 (scan_partial_symbols): Update.
14141
14142 2020-01-26 Tom Tromey <tom@tromey.com>
14143
14144 * xcoffread.c (xcoff_start_psymtab): Use new.
14145 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14146 renamed from start_psymtab_common.
14147 * psympriv.h (struct partial_symtab): Add new constructor.
14148 (start_psymtab_common): Don't declare.
14149 * mdebugread.c (parse_partial_symbols): Use new.
14150 * dwarf2read.c (create_partial_symtab): Use new.
14151 * dbxread.c (start_psymtab): Use new.
14152 * ctfread.c (create_partial_symtab): Use new.
14153
14154 2020-01-26 Tom Tromey <tom@tromey.com>
14155
14156 * xcoffread.c (xcoff_end_psymtab): Use new.
14157 * psymtab.c (start_psymtab_common): Use new.
14158 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14159 Update.
14160 * psympriv.h (struct partial_symtab): Add parameters to
14161 constructor. Don't inline.
14162 (allocate_psymtab): Don't declare.
14163 * mdebugread.c (new_psymtab): Use new.
14164 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14165 * dbxread.c (dbx_end_psymtab): Use new.
14166
14167 2020-01-26 Tom Tromey <tom@tromey.com>
14168
14169 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14170 allocate_psymtab. Update documentation.
14171 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14172 allocate_psymtab. Do not use new.
14173 (allocate_psymtab): Use new. Update.
14174
14175 2020-01-26 Tom Tromey <tom@tromey.com>
14176
14177 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14178 * psymtab.c (psym_print_stats): Update.
14179 * psympriv.h (struct partial_symtab) <readin,
14180 psymtabs_addrmap_supported, anonymous>: Now bool.
14181 * mdebugread.c (psymtab_to_symtab_1): Update.
14182 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14183 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14184 (process_full_comp_unit, process_full_type_unit): Update.
14185 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14186 * ctfread.c (psymtab_to_symtab): Update.
14187
14188 2020-01-26 Tom Tromey <tom@tromey.com>
14189
14190 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14191 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14192 * psymtab.c (psymtab_storage): Delete psymtabs.
14193 (psymtab_storage::allocate_psymtab): Use new.
14194 (psymtab_storage::discard_psymtab): Use delete.
14195 * psympriv.h (struct partial_symtab): Add constructor and
14196 initializers.
14197
14198 2020-01-26 Tom Tromey <tom@tromey.com>
14199
14200 * machoread.c: Do not include psympriv.h.
14201
14202 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14203
14204 * NEWS: Mention the new option and the set/show commands.
14205
14206 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14207
14208 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14209 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14210 (validate_exec_file): New variables, enums, functions.
14211 (exec_file_locate_attach, print_section_info): Style the filenames.
14212 (_initialize_exec): Install show_exec_file_mismatch_command and
14213 set_exec_file_mismatch_command.
14214 * gdbcore.h (validate_exec_file): Declare.
14215 * infcmd.c (attach_command): Call validate_exec_file.
14216 * remote.c ( remote_target::remote_add_inferior): Likewise.
14217
14218 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14219
14220 * frame.c (find_frame_sal): Move call to get_next_frame into more
14221 inner scope.
14222 * inline-frame.c (inilne_state) <inline_state>: Update argument
14223 types.
14224 (inilne_state) <skipped_symbol>: Rename to...
14225 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14226 (skip_inline_frames): Build vector of skipped symbols and use this
14227 to reate the inline_state.
14228 (inline_skipped_symbol): Add a comment and some assertions, fetch
14229 skipped symbol from the list.
14230
14231 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14232
14233 * buildsym.c (lte_is_less_than): Delete.
14234 (buildsym_compunit::end_symtab_with_blockvector): Create local
14235 lambda function to sort line table entries, and use
14236 std::stable_sort instead of std::sort.
14237 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14238 markers when looking for a previous line.
14239
14240 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14241
14242 * dwarf2read.c (lnp_state_machine::record_line): Include
14243 end_sequence parameter in debug print out. Record the line if we
14244 are at an end_sequence marker even if it's not the start of a
14245 statement.
14246 * symmisc.c (maintenance_print_one_line_table): Print end of
14247 sequence markers with 'END' not '0'.
14248
14249 2020-01-24 Pedro Alves <palves@redhat.com>
14250
14251 PR gdb/25410
14252 * thread.c (scoped_restore_current_thread::restore): Use
14253 switch_to_inferior_no_thread.
14254 * exec.c: Include "progspace-and-thread.h".
14255 (add_target_sections, remove_target_sections):
14256 scoped_restore_current_pspace_and_thread instead of
14257 scoped_restore_current_thread.
14258 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14259 and aspace to the inferior before calling clone_program_space.
14260 Remove stale comment.
14261
14262 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14263
14264 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14265 (arm_netbsd_nat_target::fetch_registers): ...this.
14266 (arm_nbsd_nat_target::store_registers): Rename to...
14267 (arm_netbsd_nat_target::store_registers): ...this.
14268
14269 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14270
14271 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14272 register_t.
14273
14274 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14275
14276 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14277 Update comment.
14278 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14279 Likewise.
14280 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14281 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14282 the correct replacement (iterate_over_regset_sections).
14283 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14284 Update comment.
14285
14286 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14287
14288 PR gdb/23718
14289 * gdb/python/python.c (execute_gdb_command): Call
14290 async_enable_stdin in catch block.
14291
14292 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14293
14294 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14295 SWITCH_THRU_ALL_UIS.
14296
14297 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14298
14299 PR tui/9765
14300 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14301 comment, add extra parameter, and update to store previous symbol
14302 when appropriate.
14303 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14304 add extra parameter.
14305 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14306 remove unneeded parameter, add try/catch around gdb_print_insn,
14307 rewrite to add items to asm_lines vector.
14308 (tui_find_backward_disassembly_start_address): New function.
14309 (tui_find_disassembly_address): Updated throughout.
14310 (tui_disasm_window::set_contents): Update for changes to
14311 tui_disassemble.
14312 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14313 number of lines to scroll.
14314
14315 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14316
14317 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14318 (SECT_OFF_DATA): Likewise.
14319 (SECT_OFF_RODATA): Likewise.
14320 (SECT_OFF_TEXT): Likewise.
14321 (SECT_OFF_BSS): Likewise.
14322 (struct objfile) <text_section_offset, data_section_offset>: New
14323 methods.
14324 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14325 objfile::text_section_offset.
14326 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14327 * coffread.c (coff_symtab_read): Likewise.
14328 (enter_linenos): Likewise.
14329 (process_coff_symbol): Likewise.
14330 * ctfread.c (get_objfile_text_range): Likewise.
14331 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14332 Use objfile::data_section_offset.
14333 * dwarf2-frame.c (execute_cfa_program): Use
14334 objfile::text_section_offset.
14335 (dwarf2_frame_find_fde): Likewise.
14336 * dwarf2read.c (create_addrmap_from_index): Likewise.
14337 (create_addrmap_from_aranges): Likewise.
14338 (dw2_find_pc_sect_compunit_symtab): Likewise.
14339 (process_psymtab_comp_unit_reader): Likewise.
14340 (add_partial_symbol): Likewise.
14341 (add_partial_subprogram): Likewise.
14342 (process_full_comp_unit): Likewise.
14343 (read_file_scope): Likewise.
14344 (read_func_scope): Likewise.
14345 (read_lexical_block_scope): Likewise.
14346 (read_call_site_scope): Likewise.
14347 (dwarf2_rnglists_process): Likewise.
14348 (dwarf2_ranges_process): Likewise.
14349 (dwarf2_ranges_read): Likewise.
14350 (dwarf_decode_lines_1): Likewise.
14351 (new_symbol): Likewise.
14352 (dwarf2_fetch_die_loc_sect_off): Likewise.
14353 (dwarf2_per_cu_text_offset): Likewise.
14354 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14355 * hppa-tdep.c (read_unwind_info): Likewise.
14356 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14357 * psympriv.h (struct partial_symtab): Likewise.
14358 * psymtab.c (find_pc_sect_psymtab): Likewise.
14359 * solib-svr4.c (enable_break): Likewise.
14360 * stap-probe.c (relocate_address): Use
14361 objfile::data_section_offset.
14362 * xcoffread.c (enter_line_range): Use
14363 objfile::text_section_offset.
14364 (read_xcoff_symtab): Likewise.
14365
14366 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14367
14368 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14369 declaration to narrower scopes.
14370
14371 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14372
14373 * darwin-nat.h (struct darwin_exception_msg, enum
14374 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14375 Move up.
14376 (class darwin_nat_target) <wait_1, check_new_threads,
14377 decode_exception_message, decode_message, stop_inferior,
14378 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14379 * darwin-nat.c (darwin_check_new_threads): Rename to...
14380 (darwin_nat_target::check_new_threads): ... this.
14381 (darwin_suspend_inferior_it): Remove.
14382 (darwin_decode_exception_message): Rename to...
14383 (darwin_nat_target::decode_exception_message): ... this.
14384 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14385 (darwin_decode_message): Rename to...
14386 (darwin_nat_target::decode_message): ... this.
14387 (cancel_breakpoint): Rename to...
14388 (darwin_nat_target::cancel_breakpoint): ... this.
14389 (darwin_wait): Rename to...
14390 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14391 instead of iterate_over_inferiors.
14392 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14393 (darwin_stop_inferior): Rename to...
14394 (darwin_nat_target::stop_inferior): ... this.
14395 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14396 (darwin_init_thread_list): Rename to...
14397 (darwin_nat_target::init_thread_list): ... this.
14398 (darwin_ptrace_him): Rename to...
14399 (darwin_nat_target::ptrace_him): ... this.
14400 (darwin_nat_target::create_inferior): Pass lambda function to
14401 fork_inferior.
14402 (darwin_nat_target::detach): Call stop_inferior instead of
14403 darwin_stop_inferior.
14404 * fork-inferior.h (fork_inferior): Change init_trace_fun
14405 parameter to gdb::function_view.
14406 * fork-inferior.c (fork_inferior): Likewise.
14407
14408 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14409
14410 * i386-cygwin-tdep.c (core_process_module_section): Update.
14411 * windows-nat.c (struct lm_info_windows): Add text_offset.
14412 (windows_xfer_shared_libraries): Update.
14413 * windows-tdep.c (windows_xfer_shared_library):
14414 Add text_offset_cached argument.
14415 * windows-tdep.h (windows_xfer_shared_library): Update.
14416
14417 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14418
14419 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14420
14421 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14422
14423 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14424 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14425 replace with range-based for.
14426 (gdbsim_interrupt_inferior): Remove.
14427 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14428 with a range-based for. Inline code from
14429 gdbsim_interrupt_inferior.
14430
14431 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14432
14433 * infrun.c (proceed): Fix indentation.
14434
14435 2020-01-21 Tom Tromey <tromey@adacore.com>
14436
14437 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14438 * python/python.c (python_extension_ops): Update.
14439 (gdbpy_colorize): New function.
14440 * python/lib/gdb/__init__.py (colorize): New function.
14441 * extension.h (ext_lang_colorize): Declare.
14442 * extension.c (ext_lang_colorize): New function.
14443 * extension-priv.h (struct extension_language_ops) <colorize>: New
14444 member.
14445 * cli/cli-style.c (_initialize_cli_style): Update help text.
14446
14447 2020-01-21 Luis Machado <luis.machado@linaro.org>
14448
14449 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14450 <cond>: Change type to bool.
14451 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14452 (aarch64_displaced_step_cb): Likewise.
14453 (aarch64_displaced_step_tb): Likewise.
14454
14455 2020-01-21 Luis Machado <luis.machado@linaro.org>
14456
14457 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14458 output.
14459
14460 2020-01-21 Luis Machado <luis.machado@linaro.org>
14461
14462 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14463 <pc_adjust>: Adjust the documentation.
14464 (aarch64_displaced_step_fixup): Check if PC really moved before
14465 adjusting it.
14466
14467 2020-01-19 Tom Tromey <tom@tromey.com>
14468
14469 * disasm.c (~gdb_disassembler): New destructor.
14470 (gdb_buffered_insn_length): Call disassemble_free_target.
14471 * disasm.h (class gdb_disassembler): Declare destructor. Use
14472 DISABLE_COPY_AND_ASSIGN.
14473
14474 2020-01-19 Tom Tromey <tom@tromey.com>
14475
14476 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14477 (die_reader_func_ftype): Remove.
14478 (cutu_reader): New class.
14479 (dw2_get_file_names_reader): Remove "data" parameter.
14480 (dw2_get_file_names): Use cutu_reader.
14481 (create_debug_type_hash_table): Update.
14482 (read_cutu_die_from_dwo): Update comment.
14483 (lookup_dwo_unit): Add dwo_name parameter.
14484 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14485 die_reader_func_ftype and data parameters.
14486 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14487 Remove die_reader_func_ftype and data parameters.
14488 (~cutu_reader): New; from init_cutu_and_read_dies.
14489 (cutu_reader::cutu_reader): Rename from
14490 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14491 and data parameters.
14492 (init_cutu_and_read_dies_simple): Remove.
14493 (struct process_psymtab_comp_unit_data): Remove.
14494 (process_psymtab_comp_unit_reader): Remove data parameter; add
14495 want_partial_unit and pretend_language parameters.
14496 (process_psymtab_comp_unit): Use cutu_reader.
14497 (build_type_psymtabs_reader): Remove data parameter.
14498 (build_type_psymtabs_1): Use cutu_reader.
14499 (process_skeletonless_type_unit): Likewise.
14500 (load_partial_comp_unit_reader): Remove.
14501 (load_partial_comp_unit): Use cutu_reader.
14502 (load_full_comp_unit_reader): Remove.
14503 (load_full_comp_unit): Use cutu_reader.
14504 (struct create_dwo_cu_data): Remove.
14505 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14506 dwo_unit parameters.
14507 (create_cus_hash_table): Use cutu_reader.
14508 (struct dwarf2_read_addr_index_data): Remove.
14509 (dwarf2_read_addr_index_reader): Remove.
14510 (dwarf2_read_addr_index): Use cutu_reader.
14511 (read_signatured_type_reader): Remove.
14512 (read_signatured_type): Use cutu_reader.
14513
14514 2020-01-19 Tom Tromey <tom@tromey.com>
14515
14516 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14517 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14518 (tui_wrefresh): Declare.
14519 * tui/tui-wingeneral.c (suppress_output): New global.
14520 (tui_suppress_output, ~tui_suppress_output): New constructor and
14521 destructor.
14522 (tui_wrefresh): New function.
14523 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14524 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14525 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14526 method.
14527 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14528 tui_wrefresh.
14529 (tui_data_window::no_refresh): New method.
14530 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14531 (tui_reg_command): Use tui_suppress_output
14532 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14533 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14534 method.
14535 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14536
14537 2020-01-19 Tom Tromey <tom@tromey.com>
14538
14539 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14540 Handle case where symtab is null.
14541
14542 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14543
14544 * linux-fork.c (one_fork_p): Simplify.
14545
14546 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14547
14548 * top.c (struct qt_args): Remove.
14549 (kill_or_detach): Change return type to void, replace `void *`
14550 parameter with a proper one.
14551 (print_inferior_quit_action): Likewise.
14552 (quit_confirm): Use range-based for loop to iterate over inferiors.
14553 (quit_force): Likewise.
14554
14555 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14556
14557 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14558 `void *` parameter with proper parameters.
14559 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14560 (print_one_inferior): Change return type to void, replace `void *`
14561 parameter with proper parameters.
14562 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14563 inferiors.
14564 (get_other_inferior): Remove.
14565 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14566 inferiors.
14567
14568 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14569
14570 * mi/mi-interp.c (report_initial_inferior): Remove.
14571 (mi_interp::init): Use range-based for to iterate over inferiors.
14572
14573 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14574
14575 * python/py-inferior.c (build_inferior_list): Remove.
14576 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14577
14578 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14579
14580 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14581 (btrace_stitch_trace): Likewise.
14582 * charset.c (intermediate_encoding): Likewise (vaild).
14583 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14584 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14585 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14586
14587 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14588
14589 * windows-tdep.c (windows_get_tlb_type):
14590 Add rtl_user_process_parameters type.
14591
14592 2020-01-16 Pedro Alves <palves@redhat.com>
14593 Norbert Lange <nolange79@gmail.com>
14594
14595 PR build/24805
14596 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14597 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14598 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14599 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14600 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14601 (ps_plog): Redeclare exported functions with default visibility.
14602
14603 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14604
14605 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14606 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14607
14608 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14609
14610 * infcmd.c (post_create_inferior): Use get_thread_regcache
14611 instead of get_current_regcache.
14612
14613 2020-01-14 Tom Tromey <tom@tromey.com>
14614
14615 PR symtab/12535:
14616 * python/python.c (gdbpy_decode_line): Treat empty string the same
14617 as no argument.
14618
14619 2020-01-14 Tom Tromey <tom@tromey.com>
14620
14621 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14622
14623 2020-01-14 Tom Tromey <tom@tromey.com>
14624
14625 * nat/linux-btrace.c: Don't include <config.h>.
14626 * nat/linux-ptrace.c: Don't include <config.h>.
14627 * nat/x86-linux-dregs.c: Don't include <config.h>.
14628
14629 2020-01-14 Tom Tromey <tom@tromey.com>
14630
14631 * configure: Rebuild.
14632 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14633
14634 2020-01-14 Tom Tromey <tom@tromey.com>
14635
14636 * nat/x86-linux-dregs.c: Include configh.h.
14637 * nat/linux-ptrace.c: Include configh.h.
14638 * nat/linux-btrace.c: Include configh.h.
14639 * defs.h: Include config.h, bfd.h.
14640 * configure.ac: Don't source common.host.
14641 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14642 * configure: Rebuild.
14643 * acinclude.m4: Update path.
14644 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14645 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14646 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14647 (CLIBS): Add LIBSUPPORT.
14648 (CDEPS): Likewise.
14649 (COMMON_SFILES): Remove gdbsupport files.
14650 (HFILES_NO_SRCDIR): Likewise.
14651 (stamp-version): Update path to create-version.sh.
14652 (ALLDEPFILES): Remove gdbsupport files.
14653
14654 2020-01-14 Tom Tromey <tom@tromey.com>
14655
14656 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14657 USE_WIN32API when needed.
14658 * configure.ac (USE_WIN32API): Don't define.
14659 (WIN32LIBS): Use WIN32APILIBS.
14660 * configure: Rebuild.
14661
14662 2020-01-14 Tom Tromey <tom@tromey.com>
14663
14664 * configure: Rebuild.
14665 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14666
14667 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14668
14669 * skip.c (skip_function_command): Make skip w/o arguments use the
14670 name of the inlined function if pc is inside any inlined function.
14671
14672 2020-01-14 Luis Machado <luis.machado@linaro.org>
14673
14674 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14675 * infrun.c (resume_1): Likewise.
14676 (handle_inferior_event): Remove stale comment.
14677 * linux-nat.c (linux_nat_target::resume): Update comments.
14678 (save_stop_reason): Likewise.
14679 (linux_nat_filter_event): Likewise.
14680 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14681
14682 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14683
14684 * elfread.c (record_minimal_symbol): Set section index to 0 for
14685 non-allocatable sections.
14686
14687
14688 2020-01-13 Ali Tamur <tamur@google.com>
14689
14690 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14691 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14692 to gdb::optional. Update comments.
14693 (dwo_file): Update comments.
14694 (read_attribute): Update API to take an additional out parameter,
14695 need_reprocess. This is used to mark attributes that need other
14696 attributes (e.g. str_offsets_base) for correct computation which may not
14697 have been read yet.
14698 (read_attribute_reprocess): New function declaration.
14699 (read_addr_index): Likewise.
14700 (read_dwo_str_index): Likewise.
14701 (read_stub_str_index): Likewise.
14702 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14703 (lookup_addr_base): New function definition.
14704 (lookup_ranges_base): Likewise.
14705 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14706 lookup_ranges_base.
14707 (init_cutu_and_read_dies): Update comments.
14708 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14709 unit. This is used to inherit parent's str_offsets_base and addr_base.
14710 Update comments.
14711 (init_cutu_and_read_dies_simple): Reflect API changes.
14712 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14713 (create_cus_hash_table): Change API to take parent compile unit.
14714 Reflect API changes.
14715 (open_and_init_dwo_file): Reflect API changes.
14716 (dwarf2_get_pc_bounds): Update comments.
14717 (dwarf2_record_block_ranges): Likewise.
14718 (read_full_die_1): Change implementation to reprocess attributes that
14719 need str_offsets_base and addr_base.
14720 (partial_die_info::read): Likewise.
14721 (read_attribute_reprocess): New function definition.
14722 (read_attribute_value): Change API to take an additional out parameter,
14723 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14724 when a non-dwo compile unit has index based attributes.
14725 (read_attribute): Reflect API changes.
14726 (read_addr_index_1): Reflect API changes. Update comments.
14727 (dwarf2_read_addr_index_data): Reflect API changes.
14728 (dwarf2_read_addr_index): Likewise.
14729 (read_str_index): Change API and implementation. This becomes a helper
14730 to be used by the new string index related methods. Update error
14731 message and comments.
14732 (read_dwo_str_index): New function definition.
14733 (read_stub_str_index): Likewise.
14734 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14735 * symfile.h (dwarf2_debug_sections): Likewise.
14736 * xcoffread.c (dwarf2_debug_sections): Likewise.
14737
14738 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14739
14740 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14741 core_reg_sect type to gdb_byte *.
14742 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14743 * cris-tdep.c (fetch_core_registers): Likewise.
14744 * corelow.c (core_target::get_core_register_section): Change
14745 type of `contents` to gdb::byte_vector.
14746
14747 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14748
14749 * tui/tui-wingeneral.c (box_win): Position the title in the center
14750 of the border.
14751
14752 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14753
14754 * corelow.c (core_target::get_core_register_section): Use
14755 std::vector instead of alloca.
14756
14757 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14758
14759 * warning.m4: Add -Wmissing-declarations to build_warnings.
14760 * configure: Re-generate.
14761
14762 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14763
14764 * python/python.c (init__gdb_module): Add declaration.
14765
14766 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14767
14768 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14769 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14770 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14771 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14772 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14773 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14774 * ada-exp.y (_initialize_ada_exp): Add declaration.
14775 * ada-lang.c (_initialize_ada_language): Add declaration.
14776 * ada-tasks.c (_initialize_tasks): Add declaration.
14777 * agent.c (_initialize_agent): Add declaration.
14778 * aix-thread.c (_initialize_aix_thread): Add declaration.
14779 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14780 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14781 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14782 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14783 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14784 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14785 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14786 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14787 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14788 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14789 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14790 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14791 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14792 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14793 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14794 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14795 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14796 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14797 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14798 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14799 * annotate.c (_initialize_annotate): Add declaration.
14800 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14801 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14802 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14803 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14804 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14805 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14806 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14807 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14808 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14809 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14810 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14811 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14812 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14813 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14814 * auto-load.c (_initialize_auto_load): Add declaration.
14815 * auxv.c (_initialize_auxv): Add declaration.
14816 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14817 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14818 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14819 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14820 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14821 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14822 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14823 * breakpoint.c (_initialize_breakpoint): Add declaration.
14824 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14825 * btrace.c (_initialize_btrace): Add declaration.
14826 * charset.c (_initialize_charset): Add declaration.
14827 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14828 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14829 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14830 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14831 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14832 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14833 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14834 * coffread.c (_initialize_coffread): Add declaration.
14835 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14836 * compile/compile.c (_initialize_compile): Add declaration.
14837 * complaints.c (_initialize_complaints): Add declaration.
14838 * completer.c (_initialize_completer): Add declaration.
14839 * copying.c (_initialize_copying): Add declaration.
14840 * corefile.c (_initialize_core): Add declaration.
14841 * corelow.c (_initialize_corelow): Add declaration.
14842 * cp-abi.c (_initialize_cp_abi): Add declaration.
14843 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14844 * cp-support.c (_initialize_cp_support): Add declaration.
14845 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14846 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14847 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14848 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14849 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14850 * ctfread.c (_initialize_ctfread): Add declaration.
14851 * d-lang.c (_initialize_d_language): Add declaration.
14852 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14853 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14854 * dbxread.c (_initialize_dbxread): Add declaration.
14855 * dcache.c (_initialize_dcache): Add declaration.
14856 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14857 * disasm.c (_initialize_disasm): Add declaration.
14858 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14859 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14860 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14861 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14862 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14863 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14864 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14865 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14866 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14867 * elfread.c (_initialize_elfread): Add declaration.
14868 * exec.c (_initialize_exec): Add declaration.
14869 * extension.c (_initialize_extension): Add declaration.
14870 * f-lang.c (_initialize_f_language): Add declaration.
14871 * f-valprint.c (_initialize_f_valprint): Add declaration.
14872 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14873 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14874 * filesystem.c (_initialize_filesystem): Add declaration.
14875 * findcmd.c (_initialize_mem_search): Add declaration.
14876 * findvar.c (_initialize_findvar): Add declaration.
14877 * fork-child.c (_initialize_fork_child): Add declaration.
14878 * frame-base.c (_initialize_frame_base): Add declaration.
14879 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14880 * frame.c (_initialize_frame): Add declaration.
14881 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14882 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14883 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14884 * gcore.c (_initialize_gcore): Add declaration.
14885 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14886 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14887 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14888 * gdbarch.c (_initialize_gdbarch): Add declaration.
14889 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14890 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14891 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14892 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14893 * go-lang.c (_initialize_go_language): Add declaration.
14894 * go32-nat.c (_initialize_go32_nat): Add declaration.
14895 * guile/guile.c (_initialize_guile): Add declaration.
14896 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14897 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14898 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14899 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14900 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14901 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14902 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14903 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14904 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14905 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14906 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14907 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14908 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14909 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14910 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14911 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14912 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14913 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14914 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14915 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14916 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14917 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14918 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14919 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14920 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14921 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14922 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14923 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14924 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14925 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14926 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14927 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14928 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14929 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14930 * infcall.c (_initialize_infcall): Add declaration.
14931 * infcmd.c (_initialize_infcmd): Add declaration.
14932 * inflow.c (_initialize_inflow): Add declaration.
14933 * infrun.c (_initialize_infrun): Add declaration.
14934 * interps.c (_initialize_interpreter): Add declaration.
14935 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14936 * jit.c (_initialize_jit): Add declaration.
14937 * language.c (_initialize_language): Add declaration.
14938 * linux-fork.c (_initialize_linux_fork): Add declaration.
14939 * linux-nat.c (_initialize_linux_nat): Add declaration.
14940 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14941 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14942 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14943 * m2-lang.c (_initialize_m2_language): Add declaration.
14944 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14945 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14946 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14947 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14948 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14949 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14950 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14951 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14952 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14953 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14954 * machoread.c (_initialize_machoread): Add declaration.
14955 * macrocmd.c (_initialize_macrocmd): Add declaration.
14956 * macroscope.c (_initialize_macroscope): Add declaration.
14957 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14958 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14959 * maint.c (_initialize_maint_cmds): Add declaration.
14960 * mdebugread.c (_initialize_mdebugread): Add declaration.
14961 * memattr.c (_initialize_mem): Add declaration.
14962 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14963 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14964 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14965 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14966 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14967 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14968 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14969 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14970 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14971 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14972 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14973 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14974 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14975 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14976 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14977 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14978 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14979 * mipsread.c (_initialize_mipsread): Add declaration.
14980 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14981 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14982 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14983 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14984 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14985 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14986 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14987 * nto-procfs.c (_initialize_procfs): Add declaration.
14988 * objc-lang.c (_initialize_objc_language): Add declaration.
14989 * observable.c (_initialize_observer): Add declaration.
14990 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14991 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14992 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14993 * osabi.c (_initialize_gdb_osabi): Add declaration.
14994 * osdata.c (_initialize_osdata): Add declaration.
14995 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14996 * parse.c (_initialize_parse): Add declaration.
14997 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14998 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14999 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15000 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15001 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15002 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15003 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15004 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15005 * printcmd.c (_initialize_printcmd): Add declaration.
15006 * probe.c (_initialize_probe): Add declaration.
15007 * proc-api.c (_initialize_proc_api): Add declaration.
15008 * proc-events.c (_initialize_proc_events): Add declaration.
15009 * proc-service.c (_initialize_proc_service): Add declaration.
15010 * procfs.c (_initialize_procfs): Add declaration.
15011 * producer.c (_initialize_producer): Add declaration.
15012 * psymtab.c (_initialize_psymtab): Add declaration.
15013 * python/python.c (_initialize_python): Add declaration.
15014 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15015 * record-btrace.c (_initialize_record_btrace): Add declaration.
15016 * record-full.c (_initialize_record_full): Add declaration.
15017 * record.c (_initialize_record): Add declaration.
15018 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15019 * regcache.c (_initialize_regcache): Add declaration.
15020 * reggroups.c (_initialize_reggroup): Add declaration.
15021 * remote-notif.c (_initialize_notif): Add declaration.
15022 * remote-sim.c (_initialize_remote_sim): Add declaration.
15023 * remote.c (_initialize_remote): Add declaration.
15024 * reverse.c (_initialize_reverse): Add declaration.
15025 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15026 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15027 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15028 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15029 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15030 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15031 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15032 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15033 Add declaration.
15034 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15035 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15036 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15037 * rust-exp.y (_initialize_rust_exp): Add declaration.
15038 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15039 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15040 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15041 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15042 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15043 * score-tdep.c (_initialize_score_tdep): Add declaration.
15044 * ser-go32.c (_initialize_ser_dos): Add declaration.
15045 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15046 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15047 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15048 * ser-uds.c (_initialize_ser_socket): Add declaration.
15049 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15050 * serial.c (_initialize_serial): Add declaration.
15051 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15052 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15053 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15054 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15055 * skip.c (_initialize_step_skip): Add declaration.
15056 * sol-thread.c (_initialize_sol_thread): Add declaration.
15057 * solib-aix.c (_initialize_solib_aix): Add declaration.
15058 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15059 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15060 * solib-frv.c (_initialize_frv_solib): Add declaration.
15061 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15062 * solib-target.c (_initialize_solib_target): Add declaration.
15063 * solib.c (_initialize_solib): Add declaration.
15064 * source-cache.c (_initialize_source_cache): Add declaration.
15065 * source.c (_initialize_source): Add declaration.
15066 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15067 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15068 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15069 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15070 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15071 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15072 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15073 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15074 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15075 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15076 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15077 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15078 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15079 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15080 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15081 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15082 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15083 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15084 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15085 * stabsread.c (_initialize_stabsread): Add declaration.
15086 * stack.c (_initialize_stack): Add declaration.
15087 * stap-probe.c (_initialize_stap_probe): Add declaration.
15088 * std-regs.c (_initialize_frame_reg): Add declaration.
15089 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15090 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15091 * symfile.c (_initialize_symfile): Add declaration.
15092 * symmisc.c (_initialize_symmisc): Add declaration.
15093 * symtab.c (_initialize_symtab): Add declaration.
15094 * target.c (_initialize_target): Add declaration.
15095 * target-connection.c (_initialize_target_connection): Add
15096 declaration.
15097 * target-dcache.c (_initialize_target_dcache): Add declaration.
15098 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15099 * thread.c (_initialize_thread): Add declaration.
15100 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15101 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15102 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15103 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15104 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15105 * tracectf.c (_initialize_ctf): Add declaration.
15106 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15107 * tracefile.c (_initialize_tracefile): Add declaration.
15108 * tracepoint.c (_initialize_tracepoint): Add declaration.
15109 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15110 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15111 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15112 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15113 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15114 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15115 * tui/tui.c (_initialize_tui): Add declaration.
15116 * typeprint.c (_initialize_typeprint): Add declaration.
15117 * ui-style.c (_initialize_ui_style): Add declaration.
15118 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15119 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15120 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15121 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15122 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15123 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15124 * unittests/filtered_iterator-selftests.c
15125 (_initialize_filtered_iterator_selftests): Add declaration.
15126 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15127 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15128 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15129 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15130 * unittests/main-thread-selftests.c
15131 (_initialize_main_thread_selftests): Add declaration.
15132 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15133 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15134 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15135 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15136 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15137 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15138 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15139 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15140 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15141 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15142 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15143 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15144 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15145 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15146 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15147 declaration.
15148 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15149 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15150 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15151 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15152 * user-regs.c (_initialize_user_regs): Add declaration.
15153 * utils.c (_initialize_utils): Add declaration.
15154 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15155 * valops.c (_initialize_valops): Add declaration.
15156 * valprint.c (_initialize_valprint): Add declaration.
15157 * value.c (_initialize_values): Add declaration.
15158 * varobj.c (_initialize_varobj): Add declaration.
15159 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15160 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15161 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15162 * windows-nat.c (_initialize_windows_nat): Add declaration.
15163 (_initialize_check_for_gdb_ini): Add declaration.
15164 (_initialize_loadable): Add declaration.
15165 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15166 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15167 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15168 * xcoffread.c (_initialize_xcoffread): Add declaration.
15169 * xml-support.c (_initialize_xml_support): Add declaration.
15170 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15171 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15172 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15173 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15174
15175 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15176
15177 * regformats/regdat.sh: Generate declaration for init function.
15178
15179 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15180
15181 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15182 up.
15183 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15184 close_one_inferior>: New methods.
15185 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15186 pass down target to find_inferior_pid.
15187 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15188 Pass down target to find_inferior_ptid.
15189 (gdbsim_target::create_inferior): Pass down target to
15190 add_thread_silent.
15191 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15192 target down to find_inferior_ptid and switch_to_thread.
15193 (gdbsim_target::close): Update to call close_one_inferior.
15194 (struct resume_data): Remove.
15195 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15196 directly, rather than through a void pointer.
15197 (gdbsim_target::resume): Update to call resume_one_inferior.
15198
15199 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15200
15201 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15202
15203 2020-01-12 Pedro Alves <palves@redhat.com>
15204
15205 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15206 directly for the current inferior instead of
15207 discard_all_inferiors.
15208 (discard_all_inferiors): Delete.
15209
15210 2020-01-11 Tom Tromey <tom@tromey.com>
15211
15212 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15213 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15214 deprecated_safe_get_selected_frame.
15215
15216 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15217
15218 * inferior.c (print_inferior): Switch inferior before printing it.
15219
15220 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15221 Pedro Alves <palves@redhat.com>
15222
15223 * progspace-and-thread.c (switch_to_program_space_and_thread):
15224 Assert there's an inferior for PSPACE. Use
15225 switch_to_inferior_no_thread to switch the inferior too.
15226 * progspace.c (program_space::~program_space): Call
15227 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15228 (program_space::free_all_objfiles): Don't call clear_symtab_users
15229 here.
15230 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15231
15232 2020-01-10 Pedro Alves <palves@redhat.com>
15233
15234 * NEWS: Mention multi-target debugging, "info connections", and
15235 "add-inferior -no-connection".
15236
15237 2020-01-10 Pedro Alves <palves@redhat.com>
15238
15239 * infrun.c: Include "target-connection.h".
15240 (check_multi_target_resumption): New.
15241 (proceed): Call it.
15242 * target-connection.c (make_target_connection_string): Make
15243 extern.
15244 * target-connection.h (make_target_connection_string): Declare.
15245
15246 2020-01-10 Pedro Alves <palves@redhat.com>
15247
15248 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15249 * inferior.c (uiout_field_connection): New function.
15250 (print_inferior): Add new "connection-id" column.
15251 (add_inferior_command): Show connection number/string of added
15252 inferior.
15253 * process-stratum-target.h
15254 (process_stratum_target::connection_string): New virtual method.
15255 (process_stratum_target::connection_number): New field.
15256 * remote.c (remote_target::connection_string): New override.
15257 * target-connection.c: New file.
15258 * target-connection.h: New file.
15259 * target.c (decref_target): Remove process_stratum targets from
15260 the connection list.
15261 (target_stack::push): Add process_stratum targets to the
15262 connection list.
15263
15264 2020-01-10 Pedro Alves <palves@redhat.com>
15265
15266 Revert:
15267 2016-04-12 Pedro Alves <palves@redhat.com>
15268 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15269 Remove references to name.
15270 * serial.h (struct serial) <name>: Delete.
15271
15272 2020-01-10 Pedro Alves <palves@redhat.com>
15273
15274 * gdbarch-selftests.c (register_to_value_test): Remove "target
15275 already pushed" check.
15276
15277 2020-01-10 Pedro Alves <palves@redhat.com>
15278 John Baldwin <jhb@FreeBSD.org>
15279
15280 * aarch64-linux-nat.c
15281 (aarch64_linux_nat_target::thread_architecture): Adjust.
15282 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15283 (task_command_1): Likewise.
15284 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15285 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15286 (aix_thread_target::store_registers)
15287 (aix_thread_target::thread_alive): Adjust.
15288 * amd64-fbsd-tdep.c: Include "inferior.h".
15289 (amd64fbsd_get_thread_local_address): Pass down target.
15290 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15291 thread's gdbarch instead of target_gdbarch.
15292 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15293 get_last_target_status.
15294 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15295 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15296 inferiors.
15297 (update_inserted_breakpoint_locations): Skip if inferiors with no
15298 execution.
15299 (update_global_location_list): When handling moribund locations,
15300 find representative inferior for location's pspace, and use thread
15301 count of its process_stratum target.
15302 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15303 * bsd-uthread.c (bsd_uthread_target::wait): Use
15304 as_process_stratum_target and adjust thread_change_ptid and
15305 add_thread calls.
15306 (bsd_uthread_target::update_thread_list): Use
15307 as_process_stratum_target and adjust find_thread_ptid,
15308 thread_change_ptid and add_thread calls.
15309 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15310 find_thread_ptid call.
15311 * corelow.c (add_to_thread_list): Adjust add_thread call.
15312 (core_target_open): Adjust add_thread_silent and thread_count
15313 calls.
15314 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15315 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15316 * event-top.c (async_disconnect): Pop targets from all inferiors.
15317 * exec.c (add_target_sections): Push exec target on all inferiors
15318 sharing the program space.
15319 (remove_target_sections): Remove the exec target from all
15320 inferiors sharing the program space.
15321 (exec_on_vfork): New.
15322 * exec.h (exec_on_vfork): Declare.
15323 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15324 Pass it down.
15325 (fbsd_nat_target::update_thread_list): Adjust.
15326 (fbsd_nat_target::resume): Adjust.
15327 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15328 down.
15329 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15330 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15331 get_thread_arch_regcache call.
15332 * fork-child.c (gdb_startup_inferior): Pass target down to
15333 startup_inferior and set_executing.
15334 * gdbthread.h (struct process_stratum_target): Forward declare.
15335 (add_thread, add_thread_silent, add_thread_with_info)
15336 (in_thread_list): Add process_stratum_target parameter.
15337 (find_thread_ptid(inferior*, ptid_t)): New overload.
15338 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15339 parameter.
15340 (all_threads()): Delete overload.
15341 (all_threads, all_non_exited_threads): Add process_stratum_target
15342 parameter.
15343 (all_threads_safe): Use brace initialization.
15344 (thread_count): Add process_stratum_target parameter.
15345 (set_resumed, set_running, set_stop_requested, set_executing)
15346 (threads_are_executing, finish_thread_state): Add
15347 process_stratum_target parameter.
15348 (switch_to_thread): Use is_current_thread.
15349 * i386-fbsd-tdep.c: Include "inferior.h".
15350 (i386fbsd_get_thread_local_address): Pass down target.
15351 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15352 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15353 have_inferiors check.
15354 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15355 (inf_ptrace_target::attach): Adjust.
15356 * infcall.c (run_inferior_call): Adjust.
15357 * infcmd.c (run_command_1): Pass target to
15358 scoped_finish_thread_state.
15359 (proceed_thread_callback): Skip inferiors with no execution.
15360 (continue_command): Rename 'all_threads' local to avoid hiding
15361 'all_threads' function. Adjust get_last_target_status call.
15362 (prepare_one_step): Adjust set_running call.
15363 (signal_command): Use user_visible_resume_target. Compare thread
15364 pointers instead of inferior_ptid.
15365 (info_program_command): Adjust to pass down target.
15366 (attach_command): Mark target's 'thread_executing' flag.
15367 (stop_current_target_threads_ns): New, factored out from ...
15368 (interrupt_target_1): ... this. Switch inferior before making
15369 target calls.
15370 * inferior-iter.h
15371 (struct all_inferiors_iterator, struct all_inferiors_range)
15372 (struct all_inferiors_safe_range)
15373 (struct all_non_exited_inferiors_range): Filter on
15374 process_stratum_target too. Remove explicit.
15375 * inferior.c (inferior::inferior): Push dummy target on target
15376 stack.
15377 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15378 Add process_stratum_target parameter, and pass it down.
15379 (have_live_inferiors): Adjust.
15380 (switch_to_inferior_and_push_target): New.
15381 (add_inferior_command, clone_inferior_command): Handle
15382 "-no-connection" parameter. Use
15383 switch_to_inferior_and_push_target.
15384 (_initialize_inferior): Mention "-no-connection" option in
15385 the help of "add-inferior" and "clone-inferior" commands.
15386 * inferior.h: Include "process-stratum-target.h".
15387 (interrupt_target_1): Use bool.
15388 (struct inferior) <push_target, unpush_target, target_is_pushed,
15389 find_target_beneath, top_target, process_target, target_at,
15390 m_stack>: New.
15391 (discard_all_inferiors): Delete.
15392 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15393 (all_inferiors, all_non_exited_inferiors): Add
15394 process_stratum_target parameter.
15395 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15396 (target_last_proc_target): New global.
15397 (follow_fork_inferior): Push target on new inferior. Pass target
15398 to add_thread_silent. Call exec_on_vfork. Handle target's
15399 reference count.
15400 (follow_fork): Adjust get_last_target_status call. Also consider
15401 target.
15402 (follow_exec): Push target on new inferior.
15403 (struct execution_control_state) <target>: New field.
15404 (user_visible_resume_target): New.
15405 (do_target_resume): Call target_async.
15406 (resume_1): Set target's threads_executing flag. Consider resume
15407 target.
15408 (commit_resume_all_targets): New.
15409 (proceed): Also consider resume target. Skip threads of inferiors
15410 with no execution. Commit resumtion in all targets.
15411 (start_remote): Pass current inferior to wait_for_inferior.
15412 (infrun_thread_stop_requested): Consider target as well. Pass
15413 thread_info pointer to clear_inline_frame_state instead of ptid.
15414 (infrun_thread_thread_exit): Consider target as well.
15415 (random_pending_event_thread): New inferior parameter. Use it.
15416 (do_target_wait): Rename to ...
15417 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15418 down.
15419 (threads_are_resumed_pending_p, do_target_wait): New.
15420 (prepare_for_detach): Adjust calls.
15421 (wait_for_inferior): New inferior parameter. Handle it. Use
15422 do_target_wait_1 instead of do_target_wait.
15423 (fetch_inferior_event): Adjust. Switch to representative
15424 inferior. Pass target down.
15425 (set_last_target_status): Add process_stratum_target parameter.
15426 Save target in global.
15427 (get_last_target_status): Add process_stratum_target parameter and
15428 handle it.
15429 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15430 (context_switch): Check inferior_ptid == null_ptid before calling
15431 inferior_thread().
15432 (get_inferior_stop_soon): Pass down target.
15433 (wait_one): Rename to ...
15434 (poll_one_curr_target): ... this.
15435 (struct wait_one_event): New.
15436 (wait_one): New.
15437 (stop_all_threads): Adjust.
15438 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15439 event's target.
15440 (switch_back_to_stepped_thread): Also consider target.
15441 (print_stop_event): Update.
15442 (normal_stop): Update. Also consider the resume target.
15443 * infrun.h (wait_for_inferior): Remove declaration.
15444 (user_visible_resume_target): New declaration.
15445 (get_last_target_status, set_last_target_status): New
15446 process_stratum_target parameter.
15447 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15448 process_stratum_target parameter, and use it.
15449 (clear_inline_frame_state (thread_info*)): New.
15450 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15451 process_stratum_target parameter.
15452 (clear_inline_frame_state (thread_info*)): Declare.
15453 * linux-fork.c (delete_checkpoint_command): Pass target down to
15454 find_thread_ptid.
15455 (checkpoint_command): Adjust.
15456 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15457 instead of just tweaking inferior_ptid.
15458 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15459 (exit_lwp): Pass target down to find_thread_ptid.
15460 (attach_proc_task_lwp_callback): Pass target down to
15461 add_thread/set_running/set_executing.
15462 (linux_nat_target::attach): Pass target down to
15463 thread_change_ptid.
15464 (get_detach_signal): Pass target down to find_thread_ptid.
15465 Consider last target status's target.
15466 (linux_resume_one_lwp_throw, resume_lwp)
15467 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15468 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15469 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15470 (linux_nat_target::async_wait_fd): New.
15471 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15472 target down.
15473 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15474 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15475 * linux-thread-db.c (struct thread_db_info::process_target): New
15476 field.
15477 (add_thread_db_info): Save target.
15478 (get_thread_db_info): New process_stratum_target parameter. Also
15479 match target.
15480 (delete_thread_db_info): New process_stratum_target parameter.
15481 Also match target.
15482 (thread_from_lwp): Adjust to pass down target.
15483 (thread_db_notice_clone): Pass down target.
15484 (check_thread_db_callback): Pass down target.
15485 (try_thread_db_load_1): Always push the thread_db target.
15486 (try_thread_db_load, record_thread): Pass target down.
15487 (thread_db_target::detach): Pass target down. Always unpush the
15488 thread_db target.
15489 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15490 target down. Always unpush the thread_db target.
15491 (find_new_threads_callback, thread_db_find_new_threads_2)
15492 (thread_db_target::update_thread_list): Pass target down.
15493 (thread_db_target::pid_to_str): Pass current inferior down.
15494 (thread_db_target::get_thread_local_address): Pass target down.
15495 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15496 target down.
15497 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15498 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15499 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15500 (procfs_init_inferior): Rename to ...
15501 (procfs_target::procfs_init_inferior): ... this and adjust.
15502 (procfs_target::create_inferior, procfs_notice_thread)
15503 (procfs_do_thread_registers): Adjust.
15504 * ppc-fbsd-tdep.c: Include "inferior.h".
15505 (ppcfbsd_get_thread_local_address): Pass down target.
15506 * proc-service.c (ps_xfer_memory): Switch current inferior and
15507 program space as well.
15508 (get_ps_regcache): Pass target down.
15509 * process-stratum-target.c
15510 (process_stratum_target::thread_address_space)
15511 (process_stratum_target::thread_architecture): Pass target down.
15512 * process-stratum-target.h
15513 (process_stratum_target::threads_executing): New field.
15514 (as_process_stratum_target): New.
15515 * ravenscar-thread.c
15516 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15517 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15518 down.
15519 * record-btrace.c (record_btrace_target::info_record): Adjust.
15520 (record_btrace_target::record_method)
15521 (record_btrace_target::record_is_replaying)
15522 (record_btrace_target::fetch_registers)
15523 (get_thread_current_frame_id, record_btrace_target::resume)
15524 (record_btrace_target::wait, record_btrace_target::stop): Pass
15525 target down.
15526 * record-full.c (record_full_wait_1): Switch to event thread.
15527 Pass target down.
15528 * regcache.c (regcache::regcache)
15529 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15530 process_stratum_target parameter and handle it.
15531 (current_thread_target): New global.
15532 (get_thread_regcache): Add process_stratum_target parameter and
15533 handle it. Switch inferior before calling target method.
15534 (get_thread_regcache): Pass target down.
15535 (get_thread_regcache_for_ptid): Pass target down.
15536 (registers_changed_ptid): Add process_stratum_target parameter and
15537 handle it.
15538 (registers_changed_thread, registers_changed): Pass target down.
15539 (test_get_thread_arch_aspace_regcache): New.
15540 (current_regcache_test): Define a couple local test_target_ops
15541 instances and use them for testing.
15542 (readwrite_regcache): Pass process_stratum_target parameter.
15543 (cooked_read_test, cooked_write_test): Pass mock_target down.
15544 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15545 (get_thread_arch_aspace_regcache): Add process_stratum_target
15546 parameter.
15547 (regcache::target): New method.
15548 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15549 (regcache::registers_changed_ptid): Add process_stratum_target
15550 parameter.
15551 (regcache::m_target): New field.
15552 (registers_changed_ptid): Add process_stratum_target parameter.
15553 * remote.c (remote_state::supports_vCont_probed): New field.
15554 (remote_target::async_wait_fd): New method.
15555 (remote_unpush_and_throw): Add remote_target parameter.
15556 (get_current_remote_target): Adjust.
15557 (remote_target::remote_add_inferior): Push target.
15558 (remote_target::remote_add_thread)
15559 (remote_target::remote_notice_new_inferior)
15560 (get_remote_thread_info): Pass target down.
15561 (remote_target::update_thread_list): Skip threads of inferiors
15562 bound to other targets. (remote_target::close): Don't discard
15563 inferiors. (remote_target::add_current_inferior_and_thread)
15564 (remote_target::process_initial_stop_replies)
15565 (remote_target::start_remote)
15566 (remote_target::remote_serial_quit_handler): Pass down target.
15567 (remote_target::remote_unpush_target): New remote_target
15568 parameter. Unpush the target from all inferiors.
15569 (remote_target::remote_unpush_and_throw): New remote_target
15570 parameter. Pass it down.
15571 (remote_target::open_1): Check whether the current inferior has
15572 execution instead of checking whether any inferior is live. Pass
15573 target down.
15574 (remote_target::remote_detach_1): Pass down target. Use
15575 remote_unpush_target.
15576 (extended_remote_target::attach): Pass down target.
15577 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15578 (remote_target::append_resumption): Pass down target.
15579 (remote_target::append_pending_thread_resumptions)
15580 (remote_target::remote_resume_with_hc, remote_target::resume)
15581 (remote_target::commit_resume): Pass down target.
15582 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15583 (remote_target::interrupt_query)
15584 (remote_target::remove_new_fork_children)
15585 (remote_target::check_pending_events_prevent_wildcard_vcont)
15586 (remote_target::remote_parse_stop_reply)
15587 (remote_target::process_stop_reply): Pass down target.
15588 (first_remote_resumed_thread): New remote_target parameter. Pass
15589 it down.
15590 (remote_target::wait_as): Pass down target.
15591 (unpush_and_perror): New remote_target parameter. Pass it down.
15592 (remote_target::readchar, remote_target::remote_serial_write)
15593 (remote_target::getpkt_or_notif_sane_1)
15594 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15595 down target.
15596 (remote_target::mourn_inferior): Pass down target. Use
15597 remote_unpush_target.
15598 (remote_target::core_of_thread)
15599 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15600 (remote_target::pid_to_exec_file)
15601 (remote_target::thread_handle_to_thread_info): Pass down target.
15602 (remote_target::async_wait_fd): New.
15603 * riscv-fbsd-tdep.c: Include "inferior.h".
15604 (riscv_fbsd_get_thread_local_address): Pass down target.
15605 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15606 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15607 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15608 Adjust.
15609 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15610 * solib-svr4.c (enable_break): Pass down target.
15611 * spu-multiarch.c (parse_spufs_run): Pass down target.
15612 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15613 * target-delegates.c: Regenerate.
15614 * target.c (g_target_stack): Delete.
15615 (current_top_target): Return the current inferior's top target.
15616 (target_has_execution_1): Refer to the passed-in inferior's top
15617 target.
15618 (target_supports_terminal_ours): Check whether the initial
15619 inferior was already created.
15620 (decref_target): New.
15621 (target_stack::push): Incref/decref the target.
15622 (push_target, push_target, unpush_target): Adjust.
15623 (target_stack::unpush): Defref target.
15624 (target_is_pushed): Return bool. Adjust to refer to the current
15625 inferior's target stack.
15626 (dispose_inferior): Delete, and inline parts ...
15627 (target_preopen): ... here. Only dispose of the current inferior.
15628 (target_detach): Hold strong target reference while detaching.
15629 Pass target down.
15630 (target_thread_name): Add assertion.
15631 (target_resume): Pass down target.
15632 (target_ops::beneath, find_target_at): Adjust to refer to the
15633 current inferior's target stack.
15634 (get_dummy_target): New.
15635 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15636 has a thread running.
15637 (initialize_targets): Rename to ...
15638 (_initialize_target): ... this.
15639 * target.h: Include "gdbsupport/refcounted-object.h".
15640 (struct target_ops): Inherit refcounted_object.
15641 (target_ops::shortname, target_ops::longname): Make const.
15642 (target_ops::async_wait_fd): New method.
15643 (decref_target): Declare.
15644 (struct target_ops_ref_policy): New.
15645 (target_ops_ref): New typedef.
15646 (get_dummy_target): Declare function.
15647 (target_is_pushed): Return bool.
15648 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15649 (all_matching_threads_iterator::all_matching_threads_iterator):
15650 Handle filter target.
15651 * thread-iter.h (struct all_matching_threads_iterator, struct
15652 all_matching_threads_range, class all_non_exited_threads_range):
15653 Filter by target too. Remove explicit.
15654 * thread.c (threads_executing): Delete.
15655 (inferior_thread): Pass down current inferior.
15656 (clear_thread_inferior_resources): Pass down thread pointer
15657 instead of ptid_t.
15658 (add_thread_silent, add_thread_with_info, add_thread): Add
15659 process_stratum_target parameter. Use it for thread and inferior
15660 searches.
15661 (is_current_thread): New.
15662 (thread_info::deletable): Use it.
15663 (find_thread_ptid, thread_count, in_thread_list)
15664 (thread_change_ptid, set_resumed, set_running): New
15665 process_stratum_target parameter. Pass it down.
15666 (set_executing): New process_stratum_target parameter. Pass it
15667 down. Adjust reference to 'threads_executing'.
15668 (threads_are_executing): New process_stratum_target parameter.
15669 Adjust reference to 'threads_executing'.
15670 (set_stop_requested, finish_thread_state): New
15671 process_stratum_target parameter. Pass it down.
15672 (switch_to_thread): Also match inferior.
15673 (switch_to_thread): New process_stratum_target parameter. Pass it
15674 down.
15675 (update_threads_executing): Reimplement.
15676 * top.c (quit_force): Pop targets from all inferior.
15677 (gdb_init): Don't call initialize_targets.
15678 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15679 Declare.
15680 (windows_add_thread, windows_delete_thread): Adjust.
15681 (get_windows_debug_event): Rename to ...
15682 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15683 * tracefile-tfile.c (tfile_target_open): Pass down target.
15684 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15685 Forward declare.
15686 (switch_to_thread): Add process_stratum_target parameter.
15687 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15688 parameter. Use it.
15689 (mi_on_resume): Pass target down.
15690 * nat/fork-inferior.c (startup_inferior): Add
15691 process_stratum_target parameter. Pass it down.
15692 * nat/fork-inferior.h (startup_inferior): Add
15693 process_stratum_target parameter.
15694 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15695
15696 2020-01-10 Pedro Alves <palves@redhat.com>
15697
15698 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15699 directly. Instead find the first thread in the thread list and
15700 use switch_to_thread.
15701
15702 2020-01-10 Pedro Alves <palves@redhat.com>
15703
15704 * remote.c (remote_target::remote_add_inferior): Don't bind a
15705 process to the current inferior if the current inferior is already
15706 bound to a process.
15707
15708 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15709 Pedro Alves <palves@redhat.com>
15710
15711 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15712 If no process is specified, return null_ptid instead of
15713 inferior_ptid.
15714 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15715 TARGET_WAITKIND_SIGNALLED with no pid.
15716
15717 2020-01-10 Pedro Alves <palves@redhat.com>
15718
15719 * remote.c (first_remote_resumed_thread): New.
15720 (remote_target::wait_as): Use it as default event_ptid instead of
15721 inferior_ptid.
15722
15723 2020-01-10 Pedro Alves <palves@redhat.com>
15724
15725 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15726
15727 2020-01-10 Pedro Alves <palves@redhat.com>
15728
15729 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15730 not -1.
15731
15732 2020-01-10 Pedro Alves <palves@redhat.com>
15733
15734 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15735 ptid to get_last_target_status.
15736 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15737 ptid to get_last_target_status.
15738 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15739 get_last_target_status.
15740 (info_program_command): Don't pass a target_waitstatus to
15741 get_last_target_status.
15742 * infrun.c (init_wait_for_inferior): Use
15743 nullify_last_target_wait_ptid.
15744 (get_last_target_status): Handle nullptr arguments.
15745 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15746 (print_stop_event): Don't pass a ptid to get_last_target_status.
15747 (normal_stop): Don't pass a ptid to get_last_target_status.
15748 * infrun.h (get_last_target_status, set_last_target_status): Move
15749 comments here and update.
15750 (nullify_last_target_wait_ptid): Declare.
15751 * linux-fork.c (fork_load_infrun_state): Remove local extern
15752 declaration of nullify_last_target_wait_ptid.
15753 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15754 to get_last_target_status.
15755
15756 2020-01-10 Pedro Alves <palves@redhat.com>
15757
15758 * gdbthread.h (scoped_restore_current_thread)
15759 <dont_restore, restore, m_dont_restore>: Declare.
15760 * thread.c (thread_alive): Add assertion. Return bool.
15761 (switch_to_thread_if_alive): New.
15762 (prune_threads): Switch inferior/thread.
15763 (print_thread_info_1): Switch thread before calling target methods.
15764 (scoped_restore_current_thread::restore): New, factored out from
15765 ...
15766 (scoped_restore_current_thread::~scoped_restore_current_thread):
15767 ... this.
15768 (scoped_restore_current_thread::scoped_restore_current_thread):
15769 Add assertion.
15770 (thread_apply_all_command, thread_select): Use
15771 switch_to_thread_if_alive.
15772 * infrun.c (proceed, restart_threads, handle_signal_stop)
15773 (switch_back_to_stepped_thread): Switch current thread before
15774 calling target methods.
15775
15776 2020-01-10 Pedro Alves <palves@redhat.com>
15777
15778 * inferior.c (switch_to_inferior_no_thread): New function,
15779 factored out from ...
15780 (inferior_command): ... here.
15781 * inferior.h (switch_to_inferior_no_thread): Declare.
15782 * mi/mi-main.c (run_one_inferior): Use
15783 switch_to_inferior_no_thread.
15784
15785 2020-01-10 Pedro Alves <palves@redhat.com>
15786
15787 * infcmd.c (kill_command): Remove dead code.
15788
15789 2020-01-10 Pedro Alves <palves@redhat.com>
15790
15791 * remote.c (remote_target::mourn_inferior): No longer check
15792 whether the target is running.
15793
15794 2020-01-10 Pedro Alves <palves@redhat.com>
15795
15796 * corelow.c (core_target::has_execution): Change parameter type to
15797 inferior pointer.
15798 * inferior.c (number_of_live_inferiors): Use
15799 inferior::has_execution instead of target_has_execution_1.
15800 * inferior.h (inferior::has_execution): New.
15801 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15802 inferior::has_execution instead of target_has_execution_1.
15803 * process-stratum-target.c
15804 (process_stratum_target::has_execution): Change parameter type to
15805 inferior pointer. Check the inferior's PID instead of
15806 inferior_ptid.
15807 * process-stratum-target.h
15808 (process_stratum_target::has_execution): Change parameter type to
15809 inferior pointer.
15810 * record-full.c (record_full_core_target::has_execution): Change
15811 parameter type to inferior pointer.
15812 * target.c (target_has_execution_1): Change parameter type to
15813 inferior pointer.
15814 (target_has_execution_current): Adjust.
15815 * target.h (target_ops::has_execution): Change parameter type to
15816 inferior pointer.
15817 (target_has_execution_1): Change parameter type to inferior
15818 pointer. Change return type to bool.
15819 * tracefile.h (tracefile_target::has_execution): Change parameter
15820 type to inferior pointer.
15821
15822 2020-01-10 Pedro Alves <palves@redhat.com>
15823
15824 * exceptions.c (print_flush): Remove current_top_target() check.
15825
15826 2020-01-10 Pedro Alves <palves@redhat.com>
15827
15828 * remote.c (show_remote_exec_file): Show the current inferior's
15829 exec-file instead of the command variable's value.
15830
15831 2020-01-10 Pedro Alves <palves@redhat.com>
15832
15833 * record-full.c (record_full_resume_ptid): New global.
15834 (record_full_target::resume): Set it.
15835 (record_full_wait_1): Use record_full_resume_ptid instead of
15836 inferior_ptid.
15837
15838 2020-01-10 Pedro Alves <palves@redhat.com>
15839
15840 * gdbthread.h (scoped_restore_current_thread)
15841 <dont_restore, restore, m_dont_restore>: Declare.
15842 * thread.c (thread_alive): Add assertion. Return bool.
15843 (switch_to_thread_if_alive): New.
15844 (prune_threads): Switch inferior/thread.
15845 (print_thread_info_1): Switch thread before calling target methods.
15846 (scoped_restore_current_thread::restore): New, factored out from
15847 ...
15848 (scoped_restore_current_thread::~scoped_restore_current_thread):
15849 ... this.
15850 (scoped_restore_current_thread::scoped_restore_current_thread):
15851 Add assertion.
15852 (thread_apply_all_command, thread_select): Use
15853 switch_to_thread_if_alive.
15854
15855 2020-01-10 George Barrett <bob@bob131.so>
15856
15857 * stap-probe.c (stap_modify_semaphore): Don't check for null
15858 semaphores.
15859 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15860 for null semaphores.
15861
15862 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15863
15864 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15865 all source windows, and maintain horizontal scroll status while
15866 doing so.
15867
15868 2020-01-09 Tom Tromey <tom@tromey.com>
15869
15870 PR tui/18932:
15871 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15872 update_source_window, not print_source_lines.
15873
15874 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15875
15876 * tui/tui.c (tui_enable): Register tui hooks after calling
15877 tui_display_main.
15878
15879 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15880
15881 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15882
15883 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15884
15885 * thread.c (print_thread_info_1): Fix indentation.
15886
15887 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15888
15889 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15890 unique_xmalloc_ptr outside the if to always free the demangled name.
15891
15892 2020-01-08 Tom Tromey <tromey@adacore.com>
15893
15894 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15895 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15896 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15897 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15898 Remove.
15899 (section_offsets): New typedef.
15900 * symtab.c (fixup_section, get_msymbol_address): Update.
15901 * symmisc.c (dump_msymbols): Update.
15902 * symfile.h (relative_addr_info_to_section_offsets)
15903 (symfile_map_offsets_to_segments): Update.
15904 * symfile.c (build_section_addr_info_from_objfile)
15905 (init_objfile_sect_indices): Update.
15906 (struct place_section_arg): Change type of "offsets".
15907 (place_section): Update.
15908 (relative_addr_info_to_section_offsets): Change type of
15909 "section_offsets". Remove "num_sections" parameter.
15910 (default_symfile_offsets, syms_from_objfile_1)
15911 (set_objfile_default_section_offset): Update.
15912 (reread_symbols): No need to preserve section offsets by hand.
15913 (symfile_map_offsets_to_segments): Change type of "offsets".
15914 * stap-probe.c (relocate_address): Update.
15915 * stabsread.h (process_one_symbol): Update.
15916 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15917 (solib_target_relocate_section_addresses): Update.
15918 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15919 Update.
15920 * solib-frv.c (frv_relocate_main_executable): Update.
15921 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15922 * solib-aix.c (solib_aix_get_section_offsets): Change return
15923 type.
15924 (solib_aix_solib_create_inferior_hook): Update.
15925 * remote.c (remote_target::get_offsets): Update.
15926 * psymtab.c (find_pc_sect_psymtab): Update.
15927 * psympriv.h (struct partial_symbol) <address, text_low,
15928 text_high>: Update.
15929 * objfiles.h (obj_section_offset): Update.
15930 (struct objfile) <section_offsets>: Change type.
15931 <num_sections>: Remove.
15932 (objfile_relocate): Update.
15933 * objfiles.c (entry_point_address_query): Update
15934 (relocate_one_symbol): Change type of "section_offsets".
15935 (objfile_relocate1, objfile_relocate1): Change type of
15936 "new_offsets".
15937 (objfile_rebase1): Update.
15938 * mipsread.c (mipscoff_symfile_read): Update.
15939 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15940 parameter.
15941 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15942 (parse_external, psymtab_to_symtab_1): Update.
15943 * machoread.c (macho_symfile_offsets): Update.
15944 * ia64-tdep.c (ia64_find_unwind_table): Update.
15945 * hppa-tdep.c (read_unwind_info): Update.
15946 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15947 * dwarf2read.c (create_addrmap_from_index)
15948 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15949 (process_psymtab_comp_unit_reader, add_partial_symbol)
15950 (add_partial_subprogram, process_full_comp_unit)
15951 (read_file_scope, read_func_scope, read_lexical_block_scope)
15952 (read_call_site_scope, dwarf2_rnglists_process)
15953 (dwarf2_ranges_process, dwarf2_ranges_read)
15954 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15955 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15956 Update.
15957 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15958 Update.
15959 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15960 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15961 (process_one_symbol): Change type of "section_offsets".
15962 * ctfread.c (get_objfile_text_range): Update.
15963 * coffread.c (coff_symtab_read, enter_linenos)
15964 (process_coff_symbol): Update.
15965 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15966 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15967
15968 2020-01-08 Tom Tromey <tromey@adacore.com>
15969
15970 * dwarf2read.c (parse_macro_definition): Use std::string.
15971 (parse_macro_definition): Likewise.
15972
15973 2020-01-08 Tom Tromey <tromey@adacore.com>
15974
15975 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15976 (ATTR_ALLOC_CHUNK): Remove.
15977
15978 2020-01-08 Tom Tromey <tromey@adacore.com>
15979
15980 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15981
15982 2020-01-08 Tom Tromey <tromey@adacore.com>
15983
15984 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15985 (dwarf2_compute_name, open_dwo_file): Likewise.
15986 (process_enumeration_scope): Use std::vector.
15987 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15988 (partial_die_info::fixup, dwarf2_start_subfile)
15989 (guess_full_die_structure_name, dwarf2_name): Likewise.
15990 (determine_prefix): Update.
15991 (guess_full_die_structure_name): Make return type const.
15992 (partial_die_full_name): Return unique_xmalloc_ptr.
15993 (DW_FIELD_ALLOC_CHUNK): Remove.
15994
15995 2020-01-07 Tom Tromey <tromey@adacore.com>
15996
15997 PR build/24937:
15998 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15999
16000 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16001
16002 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16003
16004 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16005
16006 * stack.c (print_frame_info): Move disassemble_next_line code
16007 inside source_print block.
16008
16009 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16010
16011 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16012 gdb/signals.h, as we are now using native signal symbols.
16013
16014 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16015
16016 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16017 overflow by an early check of content vs threshold.
16018 * tui/tui-source.c (tui_source_window::line_is_displayed):
16019 Likewise.
16020
16021 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16022
16023 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16024
16025 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16026
16027 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16028 export table if no section contains it's RVA.
16029
16030 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16031
16032 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16033
16034 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
16035
16036 * source.c (print_source_lines_base): Set last_line_listed.
16037
16038 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16039
16040 * tui/tui-disasm.c: Remove trailing spaces.
16041
16042 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16043 Pedro Alves <palves@redhat.com>
16044
16045 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16046 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16047 (windows_gdb_signal_to_target): New function, uses the above
16048 enumeration to convert GDB internal signal codes to equivalent
16049 Windows codes.
16050 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16051 * windows-nat.c: Include "gdb_wait.h".
16052 (get_windows_debug_event): Extract the fatal exception from the
16053 exit status and convert to the equivalent Posix signal number.
16054 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16055 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16056 * gdbsupport/gdb_wait.c: New file, implements
16057 windows_status_to_termsig.
16058 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16059 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16060
16061 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16062
16063 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16064 show_layout.
16065
16066 2020-01-05 Luis Machado <luis.machado@linaro.org>
16067
16068 * aarch64-linux-nat.c
16069 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16070 and bfd_mach_aarch64.
16071
16072 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16073
16074 * ui-file.c (stdio_file::can_emit_style_escape)
16075 (tee_file::can_emit_style_escape): Ensure style is used also on
16076 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16077 to gdb_stdout.
16078 * main.c (set_gdb_data_directory): Use file style to output the
16079 warning that the given pathname is not a directory.
16080 * top.c (show_history_filename, gdb_safe_append_history)
16081 (show_gdb_datadir): Use file style.
16082
16083 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16084
16085 * solib-target.c (struct lm_info_target):
16086 Change offsets to be a unique_xmalloc_ptr.
16087 (solib_target_relocate_section_addresses): Update.
16088
16089 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16090
16091 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16092
16093 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16094
16095 * MAINTAINERS (Write After Approval): Add myself.
16096
16097 2020-01-02 Luis Machado <luis.machado@linaro.org>
16098
16099 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16100 Cell BE architecture.
16101 * target.h (struct target_ops) <thread_architecture>: Likewise.
16102
16103 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16104
16105 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16106
16107 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16108
16109 * MAINTAINERS (Write After Approval): Add myself.
16110
16111 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16112
16113 * gdbarch.sh: Update copyright year range of generated files.
16114
16115 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16116
16117 Update copyright year range in all GDB files.
16118
16119 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16120
16121 * copyright.py: Convert to Python 3.
16122
16123 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16124
16125 * copyright.py: Adapt after move of gnulib directory from gdb
16126 directory to toplevel directory.
16127
16128 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16129
16130 * copyright.py (main): Exit if run from the wrong directory.
16131
16132 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16133
16134 * top.c (print_gdb_version): Change copyright year to 2020.
16135
16136 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16137
16138 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16139
16140 For older changes see ChangeLog-2019.
16141 \f
16142 Local Variables:
16143 mode: change-log
16144 left-margin: 8
16145 fill-column: 74
16146 version-control: never
16147 coding: utf-8
16148 End:
This page took 0.335408 seconds and 5 git commands to generate.